From e7a38528e4916d6090fec1d87f0917c12faa2b18 Mon Sep 17 00:00:00 2001 From: fzorb Date: Fri, 10 Jan 2025 19:54:37 +0200 Subject: [PATCH] oops --- vendor/autoload.php | 25 - vendor/bin/carbon | 119 - .../carbonphp/carbon-doctrine-types/LICENSE | 21 - .../carbonphp/carbon-doctrine-types/README.md | 14 - .../carbon-doctrine-types/composer.json | 36 - .../Carbon/Doctrine/CarbonDoctrineType.php | 16 - .../Carbon/Doctrine/CarbonImmutableType.php | 9 - .../src/Carbon/Doctrine/CarbonType.php | 9 - .../Carbon/Doctrine/CarbonTypeConverter.php | 131 - .../Doctrine/DateTimeDefaultPrecision.php | 30 - .../Carbon/Doctrine/DateTimeImmutableType.php | 32 - .../src/Carbon/Doctrine/DateTimeType.php | 24 - vendor/composer/ClassLoader.php | 579 -- vendor/composer/InstalledVersions.php | 359 -- vendor/composer/LICENSE | 21 - vendor/composer/autoload_classmap.php | 21 - vendor/composer/autoload_files.php | 20 - vendor/composer/autoload_namespaces.php | 10 - vendor/composer/autoload_psr4.php | 45 - vendor/composer/autoload_real.php | 50 - vendor/composer/autoload_static.php | 276 - vendor/composer/installed.json | 2969 ---------- vendor/composer/installed.php | 419 -- vendor/composer/platform_check.php | 26 - .../php-image-editor/.github/FUNDING.yml | 1 - vendor/dantsu/php-image-editor/.gitignore | 6 - vendor/dantsu/php-image-editor/LICENSE | 21 - vendor/dantsu/php-image-editor/README.md | 83 - vendor/dantsu/php-image-editor/composer.json | 33 - .../classes/DantSu/PHPImageEditor/Image.md | 1439 ----- vendor/dantsu/php-image-editor/docs/index.md | 22 - .../php-image-editor/src/Geometry2D.php | 61 - vendor/dantsu/php-image-editor/src/Image.php | 1418 ----- .../src/samples/resources/font.ttf | Bin 87116 -> 0 bytes .../src/samples/resources/photo.jpg | Bin 370025 -> 0 bytes .../src/samples/resources/sample1.png | Bin 15038 -> 0 bytes .../src/samples/resources/sample2.jpg | Bin 94359 -> 0 bytes .../src/samples/resources/sample5_base.png | Bin 5972 -> 0 bytes .../src/samples/resources/sample5_mask.png | Bin 6116 -> 0 bytes .../src/samples/resources/watermark.png | Bin 50611 -> 0 bytes .../php-image-editor/src/samples/sample1.php | 28 - .../php-image-editor/src/samples/sample2.php | 18 - .../php-image-editor/src/samples/sample3.php | 19 - .../php-image-editor/src/samples/sample4.php | 23 - .../php-image-editor/src/samples/sample5.php | 14 - .../php-image-editor/src/samples/sample6.php | 24 - .../php-osm-static-api/.github/FUNDING.yml | 1 - vendor/dantsu/php-osm-static-api/.gitignore | 6 - vendor/dantsu/php-osm-static-api/LICENSE | 21 - vendor/dantsu/php-osm-static-api/README.md | 77 - .../dantsu/php-osm-static-api/composer.json | 33 - .../DantSu/OpenStreetMapStaticAPI/Circle.md | 150 - .../OpenStreetMapStaticAPI/Interfaces/Draw.md | 63 - .../DantSu/OpenStreetMapStaticAPI/LatLng.md | 85 - .../DantSu/OpenStreetMapStaticAPI/Line.md | 122 - .../DantSu/OpenStreetMapStaticAPI/MapData.md | 464 -- .../DantSu/OpenStreetMapStaticAPI/Markers.md | 158 - .../OpenStreetMapStaticAPI/OpenStreetMap.md | 341 -- .../DantSu/OpenStreetMapStaticAPI/Polygon.md | 123 - .../OpenStreetMapStaticAPI/TileLayer.md | 289 - .../Utils/GeographicConverter.md | 127 - .../DantSu/OpenStreetMapStaticAPI/XY.md | 85 - .../dantsu/php-osm-static-api/docs/index.md | 54 - .../dantsu/php-osm-static-api/src/Circle.php | 126 - .../src/Interfaces/Draw.php | 14 - .../dantsu/php-osm-static-api/src/LatLng.php | 54 - vendor/dantsu/php-osm-static-api/src/Line.php | 90 - .../dantsu/php-osm-static-api/src/MapData.php | 367 -- .../dantsu/php-osm-static-api/src/Markers.php | 123 - .../php-osm-static-api/src/OpenStreetMap.php | 283 - .../dantsu/php-osm-static-api/src/Polygon.php | 120 - .../php-osm-static-api/src/TileLayer.php | 206 - .../src/Utils/GeographicConverter.php | 101 - vendor/dantsu/php-osm-static-api/src/XY.php | 52 - .../php-osm-static-api/src/resources/font.ttf | Bin 32020 -> 0 bytes .../src/samples/resources/marker.png | Bin 1601 -> 0 bytes .../src/samples/resources/marker2.png | Bin 1470 -> 0 bytes .../src/samples/resources/sample1.png | Bin 237682 -> 0 bytes .../src/samples/resources/sample4.png | Bin 134736 -> 0 bytes .../src/samples/sample1.php | 37 - .../src/samples/sample2.php | 90 - .../src/samples/sample3.php | 37 - .../src/samples/sample4.php | 52 - vendor/discord-php/http/.gitignore | 9 - .../discord-php/http/.php-cs-fixer.dist.php | 102 - vendor/discord-php/http/LICENSE | 22 - vendor/discord-php/http/README.md | 92 - vendor/discord-php/http/composer.json | 43 - .../discord-php/http/examples/file-upload.php | 57 - vendor/discord-php/http/phpunit.xml | 31 - .../discord-php/http/src/Discord/Bucket.php | 228 - .../http/src/Discord/DriverInterface.php | 34 - .../http/src/Discord/Drivers/Guzzle.php | 77 - .../http/src/Discord/Drivers/React.php | 65 - .../discord-php/http/src/Discord/Endpoint.php | 449 -- .../Exceptions/BadRequestException.php | 22 - .../Exceptions/ContentTooLongException.php | 22 - .../Exceptions/InvalidTokenException.php | 22 - .../Exceptions/MethodNotAllowedException.php | 22 - .../Exceptions/NoPermissionsException.php | 22 - .../Discord/Exceptions/NotFoundException.php | 22 - .../Discord/Exceptions/RateLimitException.php | 23 - .../Exceptions/RequestFailedException.php | 23 - vendor/discord-php/http/src/Discord/Http.php | 551 -- .../src/Discord/Multipart/MultipartBody.php | 58 - .../src/Discord/Multipart/MultipartField.php | 54 - .../http/src/Discord/RateLimit.php | 78 - .../discord-php/http/src/Discord/Request.php | 145 - .../tests/Discord/DriverInterfaceTest.php | 134 - .../http/tests/Discord/EndpointTest.php | 165 - .../tests/Discord/Multipart/MultipartTest.php | 126 - .../http/tests/Discord/RequestTest.php | 78 - .../http/tests/Drivers/GuzzleTest.php | 16 - .../http/tests/Drivers/ReactTest.php | 16 - .../http/tests/Drivers/_server.php | 23 - vendor/discord/interactions/.gitignore | 3 - vendor/discord/interactions/README.md | 46 - vendor/discord/interactions/composer.json | 28 - .../interactions/discord/Interaction.php | 19 - .../discord/InteractionResponseFlags.php | 8 - .../discord/InteractionResponseType.php | 14 - .../interactions/discord/InteractionType.php | 12 - .../interactions/examples/simple_example.php | 20 - vendor/evenement/evenement/.gitattributes | 7 - vendor/evenement/evenement/LICENSE | 19 - vendor/evenement/evenement/README.md | 64 - vendor/evenement/evenement/composer.json | 29 - .../evenement/evenement/src/EventEmitter.php | 17 - .../evenement/src/EventEmitterInterface.php | 22 - .../evenement/src/EventEmitterTrait.php | 154 - vendor/fig/http-message-util/.gitignore | 1 - vendor/fig/http-message-util/CHANGELOG.md | 147 - vendor/fig/http-message-util/LICENSE | 19 - vendor/fig/http-message-util/README.md | 17 - vendor/fig/http-message-util/composer.json | 28 - .../src/RequestMethodInterface.php | 34 - .../src/StatusCodeInterface.php | 107 - vendor/guzzlehttp/guzzle/CHANGELOG.md | 1664 ------ vendor/guzzlehttp/guzzle/LICENSE | 27 - vendor/guzzlehttp/guzzle/README.md | 94 - vendor/guzzlehttp/guzzle/UPGRADING.md | 1253 ----- vendor/guzzlehttp/guzzle/composer.json | 131 - .../guzzlehttp/guzzle/src/BodySummarizer.php | 28 - .../guzzle/src/BodySummarizerInterface.php | 13 - vendor/guzzlehttp/guzzle/src/Client.php | 483 -- .../guzzlehttp/guzzle/src/ClientInterface.php | 84 - vendor/guzzlehttp/guzzle/src/ClientTrait.php | 241 - .../guzzle/src/Cookie/CookieJar.php | 307 - .../guzzle/src/Cookie/CookieJarInterface.php | 80 - .../guzzle/src/Cookie/FileCookieJar.php | 101 - .../guzzle/src/Cookie/SessionCookieJar.php | 77 - .../guzzle/src/Cookie/SetCookie.php | 488 -- .../src/Exception/BadResponseException.php | 39 - .../guzzle/src/Exception/ClientException.php | 10 - .../guzzle/src/Exception/ConnectException.php | 56 - .../guzzle/src/Exception/GuzzleException.php | 9 - .../Exception/InvalidArgumentException.php | 7 - .../guzzle/src/Exception/RequestException.php | 150 - .../guzzle/src/Exception/ServerException.php | 10 - .../Exception/TooManyRedirectsException.php | 7 - .../src/Exception/TransferException.php | 7 - .../guzzle/src/Handler/CurlFactory.php | 736 --- .../src/Handler/CurlFactoryInterface.php | 25 - .../guzzle/src/Handler/CurlHandler.php | 49 - .../guzzle/src/Handler/CurlMultiHandler.php | 284 - .../guzzle/src/Handler/EasyHandle.php | 112 - .../guzzle/src/Handler/HeaderProcessor.php | 42 - .../guzzle/src/Handler/MockHandler.php | 212 - .../guzzlehttp/guzzle/src/Handler/Proxy.php | 51 - .../guzzle/src/Handler/StreamHandler.php | 621 --- vendor/guzzlehttp/guzzle/src/HandlerStack.php | 275 - .../guzzle/src/MessageFormatter.php | 199 - .../guzzle/src/MessageFormatterInterface.php | 18 - vendor/guzzlehttp/guzzle/src/Middleware.php | 268 - vendor/guzzlehttp/guzzle/src/Pool.php | 125 - .../guzzle/src/PrepareBodyMiddleware.php | 105 - .../guzzle/src/RedirectMiddleware.php | 228 - .../guzzlehttp/guzzle/src/RequestOptions.php | 274 - .../guzzlehttp/guzzle/src/RetryMiddleware.php | 119 - .../guzzlehttp/guzzle/src/TransferStats.php | 133 - vendor/guzzlehttp/guzzle/src/Utils.php | 384 -- vendor/guzzlehttp/guzzle/src/functions.php | 167 - .../guzzle/src/functions_include.php | 6 - vendor/guzzlehttp/promises/CHANGELOG.md | 166 - vendor/guzzlehttp/promises/LICENSE | 24 - vendor/guzzlehttp/promises/README.md | 559 -- vendor/guzzlehttp/promises/composer.json | 58 - .../promises/src/AggregateException.php | 19 - .../promises/src/CancellationException.php | 12 - vendor/guzzlehttp/promises/src/Coroutine.php | 162 - vendor/guzzlehttp/promises/src/Create.php | 79 - vendor/guzzlehttp/promises/src/Each.php | 81 - .../guzzlehttp/promises/src/EachPromise.php | 248 - .../promises/src/FulfilledPromise.php | 89 - vendor/guzzlehttp/promises/src/Is.php | 40 - vendor/guzzlehttp/promises/src/Promise.php | 281 - .../promises/src/PromiseInterface.php | 91 - .../promises/src/PromisorInterface.php | 16 - .../promises/src/RejectedPromise.php | 95 - .../promises/src/RejectionException.php | 49 - vendor/guzzlehttp/promises/src/TaskQueue.php | 71 - .../promises/src/TaskQueueInterface.php | 24 - vendor/guzzlehttp/promises/src/Utils.php | 261 - vendor/guzzlehttp/psr7/CHANGELOG.md | 465 -- vendor/guzzlehttp/psr7/LICENSE | 26 - vendor/guzzlehttp/psr7/README.md | 887 --- vendor/guzzlehttp/psr7/composer.json | 93 - vendor/guzzlehttp/psr7/src/AppendStream.php | 248 - vendor/guzzlehttp/psr7/src/BufferStream.php | 147 - vendor/guzzlehttp/psr7/src/CachingStream.php | 153 - vendor/guzzlehttp/psr7/src/DroppingStream.php | 49 - .../src/Exception/MalformedUriException.php | 14 - vendor/guzzlehttp/psr7/src/FnStream.php | 180 - vendor/guzzlehttp/psr7/src/Header.php | 134 - vendor/guzzlehttp/psr7/src/HttpFactory.php | 94 - vendor/guzzlehttp/psr7/src/InflateStream.php | 37 - vendor/guzzlehttp/psr7/src/LazyOpenStream.php | 49 - vendor/guzzlehttp/psr7/src/LimitStream.php | 157 - vendor/guzzlehttp/psr7/src/Message.php | 246 - vendor/guzzlehttp/psr7/src/MessageTrait.php | 265 - vendor/guzzlehttp/psr7/src/MimeType.php | 1259 ----- .../guzzlehttp/psr7/src/MultipartStream.php | 165 - vendor/guzzlehttp/psr7/src/NoSeekStream.php | 28 - vendor/guzzlehttp/psr7/src/PumpStream.php | 179 - vendor/guzzlehttp/psr7/src/Query.php | 118 - vendor/guzzlehttp/psr7/src/Request.php | 159 - vendor/guzzlehttp/psr7/src/Response.php | 161 - vendor/guzzlehttp/psr7/src/Rfc7230.php | 23 - vendor/guzzlehttp/psr7/src/ServerRequest.php | 340 -- vendor/guzzlehttp/psr7/src/Stream.php | 283 - .../psr7/src/StreamDecoratorTrait.php | 156 - vendor/guzzlehttp/psr7/src/StreamWrapper.php | 207 - vendor/guzzlehttp/psr7/src/UploadedFile.php | 211 - vendor/guzzlehttp/psr7/src/Uri.php | 743 --- vendor/guzzlehttp/psr7/src/UriComparator.php | 52 - vendor/guzzlehttp/psr7/src/UriNormalizer.php | 220 - vendor/guzzlehttp/psr7/src/UriResolver.php | 211 - vendor/guzzlehttp/psr7/src/Utils.php | 477 -- vendor/monolog/monolog/CHANGELOG.md | 785 --- vendor/monolog/monolog/LICENSE | 19 - vendor/monolog/monolog/README.md | 135 - vendor/monolog/monolog/composer.json | 82 - .../Monolog/Attribute/AsMonologProcessor.php | 38 - .../Monolog/Attribute/WithMonologChannel.php | 29 - .../monolog/src/Monolog/DateTimeImmutable.php | 24 - .../monolog/src/Monolog/ErrorHandler.php | 279 - .../Monolog/Formatter/ChromePHPFormatter.php | 87 - .../Monolog/Formatter/ElasticaFormatter.php | 87 - .../Formatter/ElasticsearchFormatter.php | 86 - .../Monolog/Formatter/FlowdockFormatter.php | 106 - .../Monolog/Formatter/FluentdFormatter.php | 85 - .../Monolog/Formatter/FormatterInterface.php | 38 - .../Formatter/GelfMessageFormatter.php | 150 - .../Formatter/GoogleCloudLoggingFormatter.php | 40 - .../src/Monolog/Formatter/HtmlFormatter.php | 142 - .../src/Monolog/Formatter/JsonFormatter.php | 230 - .../src/Monolog/Formatter/LineFormatter.php | 314 -- .../src/Monolog/Formatter/LogglyFormatter.php | 47 - .../Monolog/Formatter/LogmaticFormatter.php | 70 - .../Monolog/Formatter/LogstashFormatter.php | 100 - .../Monolog/Formatter/MongoDBFormatter.php | 159 - .../Monolog/Formatter/NormalizerFormatter.php | 353 -- .../src/Monolog/Formatter/ScalarFormatter.php | 49 - .../src/Monolog/Formatter/SyslogFormatter.php | 65 - .../Monolog/Formatter/WildfireFormatter.php | 137 - .../src/Monolog/Handler/AbstractHandler.php | 104 - .../Handler/AbstractProcessingHandler.php | 60 - .../Monolog/Handler/AbstractSyslogHandler.php | 95 - .../src/Monolog/Handler/AmqpHandler.php | 170 - .../Monolog/Handler/BrowserConsoleHandler.php | 300 - .../src/Monolog/Handler/BufferHandler.php | 165 - .../src/Monolog/Handler/ChromePHPHandler.php | 186 - .../src/Monolog/Handler/CouchDBHandler.php | 97 - .../src/Monolog/Handler/CubeHandler.php | 167 - .../monolog/src/Monolog/Handler/Curl/Util.php | 69 - .../Monolog/Handler/DeduplicationHandler.php | 174 - .../Handler/DoctrineCouchDBHandler.php | 47 - .../src/Monolog/Handler/DynamoDbHandler.php | 80 - .../src/Monolog/Handler/ElasticaHandler.php | 143 - .../Monolog/Handler/ElasticsearchHandler.php | 238 - .../src/Monolog/Handler/ErrorLogHandler.php | 94 - .../Monolog/Handler/FallbackGroupHandler.php | 68 - .../src/Monolog/Handler/FilterHandler.php | 202 - .../ActivationStrategyInterface.php | 27 - .../ChannelLevelActivationStrategy.php | 69 - .../ErrorLevelActivationStrategy.php | 42 - .../Monolog/Handler/FingersCrossedHandler.php | 242 - .../src/Monolog/Handler/FirePHPHandler.php | 174 - .../src/Monolog/Handler/FleepHookHandler.php | 132 - .../src/Monolog/Handler/FlowdockHandler.php | 127 - .../Handler/FormattableHandlerInterface.php | 34 - .../Handler/FormattableHandlerTrait.php | 57 - .../src/Monolog/Handler/GelfHandler.php | 58 - .../src/Monolog/Handler/GroupHandler.php | 130 - .../monolog/src/Monolog/Handler/Handler.php | 62 - .../src/Monolog/Handler/HandlerInterface.php | 76 - .../src/Monolog/Handler/HandlerWrapper.php | 134 - .../src/Monolog/Handler/IFTTTHandler.php | 75 - .../src/Monolog/Handler/InsightOpsHandler.php | 74 - .../src/Monolog/Handler/LogEntriesHandler.php | 68 - .../src/Monolog/Handler/LogglyHandler.php | 156 - .../src/Monolog/Handler/LogmaticHandler.php | 98 - .../src/Monolog/Handler/MailHandler.php | 91 - .../src/Monolog/Handler/MandrillHandler.php | 83 - .../Handler/MissingExtensionException.php | 21 - .../src/Monolog/Handler/MongoDBHandler.php | 82 - .../Monolog/Handler/NativeMailerHandler.php | 173 - .../src/Monolog/Handler/NewRelicHandler.php | 180 - .../src/Monolog/Handler/NoopHandler.php | 42 - .../src/Monolog/Handler/NullHandler.php | 56 - .../src/Monolog/Handler/OverflowHandler.php | 139 - .../src/Monolog/Handler/PHPConsoleHandler.php | 303 - .../src/Monolog/Handler/ProcessHandler.php | 191 - .../Handler/ProcessableHandlerInterface.php | 43 - .../Handler/ProcessableHandlerTrait.php | 70 - .../src/Monolog/Handler/PsrHandler.php | 92 - .../src/Monolog/Handler/PushoverHandler.php | 246 - .../src/Monolog/Handler/RedisHandler.php | 94 - .../Monolog/Handler/RedisPubSubHandler.php | 65 - .../src/Monolog/Handler/RollbarHandler.php | 132 - .../Monolog/Handler/RotatingFileHandler.php | 218 - .../src/Monolog/Handler/SamplingHandler.php | 121 - .../src/Monolog/Handler/SendGridHandler.php | 100 - .../src/Monolog/Handler/Slack/SlackRecord.php | 381 -- .../src/Monolog/Handler/SlackHandler.php | 267 - .../Monolog/Handler/SlackWebhookHandler.php | 128 - .../src/Monolog/Handler/SocketHandler.php | 436 -- .../src/Monolog/Handler/SqsHandler.php | 61 - .../src/Monolog/Handler/StreamHandler.php | 246 - .../Monolog/Handler/SymfonyMailerHandler.php | 109 - .../src/Monolog/Handler/SyslogHandler.php | 63 - .../Monolog/Handler/SyslogUdp/UdpSocket.php | 77 - .../src/Monolog/Handler/SyslogUdpHandler.php | 154 - .../Monolog/Handler/TelegramBotHandler.php | 297 - .../src/Monolog/Handler/TestHandler.php | 195 - .../Handler/WebRequestRecognizerTrait.php | 23 - .../Handler/WhatFailureGroupHandler.php | 80 - .../Monolog/Handler/ZendMonitorHandler.php | 90 - .../JsonSerializableDateTimeImmutable.php | 48 - vendor/monolog/monolog/src/Monolog/Level.php | 209 - .../monolog/monolog/src/Monolog/LogRecord.php | 127 - vendor/monolog/monolog/src/Monolog/Logger.php | 751 --- .../Processor/ClosureContextProcessor.php | 51 - .../src/Monolog/Processor/GitProcessor.php | 75 - .../Monolog/Processor/HostnameProcessor.php | 37 - .../Processor/IntrospectionProcessor.php | 126 - .../Processor/LoadAverageProcessor.php | 66 - .../Processor/MemoryPeakUsageProcessor.php | 39 - .../src/Monolog/Processor/MemoryProcessor.php | 60 - .../Processor/MemoryUsageProcessor.php | 39 - .../Monolog/Processor/MercurialProcessor.php | 80 - .../Monolog/Processor/ProcessIdProcessor.php | 32 - .../Monolog/Processor/ProcessorInterface.php | 27 - .../Processor/PsrLogMessageProcessor.php | 87 - .../src/Monolog/Processor/TagProcessor.php | 65 - .../src/Monolog/Processor/UidProcessor.php | 67 - .../src/Monolog/Processor/WebProcessor.php | 115 - .../monolog/monolog/src/Monolog/Registry.php | 133 - .../src/Monolog/ResettableInterface.php | 31 - .../monolog/src/Monolog/SignalHandler.php | 113 - .../monolog/src/Monolog/Test/TestCase.php | 74 - vendor/monolog/monolog/src/Monolog/Utils.php | 257 - vendor/nesbot/carbon/.phpstorm.meta.php | 10 - vendor/nesbot/carbon/LICENSE | 19 - vendor/nesbot/carbon/bin/carbon | 23 - vendor/nesbot/carbon/bin/carbon.bat | 4 - vendor/nesbot/carbon/composer.json | 126 - vendor/nesbot/carbon/extension.neon | 5 - .../MessageFormatterMapperStrongType.php | 28 - .../MessageFormatterMapperWeakType.php | 36 - .../lazy/Carbon/ProtectedDatePeriod.php | 73 - .../lazy/Carbon/TranslatorStrongType.php | 52 - .../carbon/lazy/Carbon/TranslatorWeakType.php | 32 - .../lazy/Carbon/UnprotectedDatePeriod.php | 20 - vendor/nesbot/carbon/readme.md | 180 - vendor/nesbot/carbon/sponsors.php | 216 - .../carbon/src/Carbon/AbstractTranslator.php | 411 -- vendor/nesbot/carbon/src/Carbon/Callback.php | 129 - vendor/nesbot/carbon/src/Carbon/Carbon.php | 847 --- .../src/Carbon/CarbonConverterInterface.php | 21 - .../carbon/src/Carbon/CarbonImmutable.php | 890 --- .../carbon/src/Carbon/CarbonInterface.php | 4934 ----------------- .../carbon/src/Carbon/CarbonInterval.php | 3402 ------------ .../nesbot/carbon/src/Carbon/CarbonPeriod.php | 2579 --------- .../src/Carbon/CarbonPeriodImmutable.php | 38 - .../carbon/src/Carbon/CarbonTimeZone.php | 322 -- .../nesbot/carbon/src/Carbon/Cli/Invoker.php | 40 - .../Exceptions/BadComparisonUnitException.php | 50 - .../BadFluentConstructorException.php | 51 - .../Exceptions/BadFluentSetterException.php | 51 - .../Exceptions/BadMethodCallException.php | 19 - .../Exceptions/EndLessPeriodException.php | 21 - .../src/Carbon/Exceptions/Exception.php | 19 - .../Carbon/Exceptions/ImmutableException.php | 50 - .../Exceptions/InvalidArgumentException.php | 19 - .../Exceptions/InvalidCastException.php | 21 - .../Exceptions/InvalidDateException.php | 69 - .../Exceptions/InvalidFormatException.php | 21 - .../Exceptions/InvalidIntervalException.php | 21 - .../Exceptions/InvalidPeriodDateException.php | 21 - .../InvalidPeriodParameterException.php | 21 - .../Exceptions/InvalidTimeZoneException.php | 21 - .../Exceptions/InvalidTypeException.php | 21 - .../Exceptions/NotACarbonClassException.php | 56 - .../Carbon/Exceptions/NotAPeriodException.php | 21 - .../Exceptions/NotLocaleAwareException.php | 34 - .../Carbon/Exceptions/OutOfRangeException.php | 103 - .../Carbon/Exceptions/ParseErrorException.php | 90 - .../Carbon/Exceptions/RuntimeException.php | 19 - .../src/Carbon/Exceptions/UnitException.php | 21 - .../Exceptions/UnitNotConfiguredException.php | 50 - .../Exceptions/UnknownGetterException.php | 51 - .../Exceptions/UnknownMethodException.php | 51 - .../Exceptions/UnknownSetterException.php | 51 - .../Exceptions/UnknownUnitException.php | 50 - .../Exceptions/UnreachableException.php | 21 - .../Exceptions/UnsupportedUnitException.php | 27 - vendor/nesbot/carbon/src/Carbon/Factory.php | 846 --- .../carbon/src/Carbon/FactoryImmutable.php | 192 - vendor/nesbot/carbon/src/Carbon/Lang/aa.php | 15 - .../nesbot/carbon/src/Carbon/Lang/aa_DJ.php | 44 - .../nesbot/carbon/src/Carbon/Lang/aa_ER.php | 28 - .../carbon/src/Carbon/Lang/aa_ER@saaho.php | 28 - .../nesbot/carbon/src/Carbon/Lang/aa_ET.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/af.php | 77 - .../nesbot/carbon/src/Carbon/Lang/af_NA.php | 28 - .../nesbot/carbon/src/Carbon/Lang/af_ZA.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/agq.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/agr.php | 15 - .../nesbot/carbon/src/Carbon/Lang/agr_PE.php | 44 - vendor/nesbot/carbon/src/Carbon/Lang/ak.php | 15 - .../nesbot/carbon/src/Carbon/Lang/ak_GH.php | 40 - vendor/nesbot/carbon/src/Carbon/Lang/am.php | 15 - .../nesbot/carbon/src/Carbon/Lang/am_ET.php | 59 - vendor/nesbot/carbon/src/Carbon/Lang/an.php | 15 - .../nesbot/carbon/src/Carbon/Lang/an_ES.php | 55 - vendor/nesbot/carbon/src/Carbon/Lang/anp.php | 15 - .../nesbot/carbon/src/Carbon/Lang/anp_IN.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/ar.php | 93 - .../nesbot/carbon/src/Carbon/Lang/ar_AE.php | 29 - .../nesbot/carbon/src/Carbon/Lang/ar_BH.php | 29 - .../nesbot/carbon/src/Carbon/Lang/ar_DJ.php | 13 - .../nesbot/carbon/src/Carbon/Lang/ar_DZ.php | 92 - .../nesbot/carbon/src/Carbon/Lang/ar_EG.php | 29 - .../nesbot/carbon/src/Carbon/Lang/ar_EH.php | 13 - .../nesbot/carbon/src/Carbon/Lang/ar_ER.php | 13 - .../nesbot/carbon/src/Carbon/Lang/ar_IL.php | 13 - .../nesbot/carbon/src/Carbon/Lang/ar_IN.php | 26 - .../nesbot/carbon/src/Carbon/Lang/ar_IQ.php | 29 - .../nesbot/carbon/src/Carbon/Lang/ar_JO.php | 29 - .../nesbot/carbon/src/Carbon/Lang/ar_KM.php | 13 - .../nesbot/carbon/src/Carbon/Lang/ar_KW.php | 95 - .../nesbot/carbon/src/Carbon/Lang/ar_LB.php | 29 - .../nesbot/carbon/src/Carbon/Lang/ar_LY.php | 92 - .../nesbot/carbon/src/Carbon/Lang/ar_MA.php | 92 - .../nesbot/carbon/src/Carbon/Lang/ar_MR.php | 13 - .../nesbot/carbon/src/Carbon/Lang/ar_OM.php | 29 - .../nesbot/carbon/src/Carbon/Lang/ar_PS.php | 18 - .../nesbot/carbon/src/Carbon/Lang/ar_QA.php | 29 - .../nesbot/carbon/src/Carbon/Lang/ar_SA.php | 94 - .../nesbot/carbon/src/Carbon/Lang/ar_SD.php | 29 - .../nesbot/carbon/src/Carbon/Lang/ar_SO.php | 13 - .../nesbot/carbon/src/Carbon/Lang/ar_SS.php | 27 - .../nesbot/carbon/src/Carbon/Lang/ar_SY.php | 29 - .../carbon/src/Carbon/Lang/ar_Shakl.php | 95 - .../nesbot/carbon/src/Carbon/Lang/ar_TD.php | 13 - .../nesbot/carbon/src/Carbon/Lang/ar_TN.php | 91 - .../nesbot/carbon/src/Carbon/Lang/ar_YE.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/as.php | 15 - .../nesbot/carbon/src/Carbon/Lang/as_IN.php | 56 - vendor/nesbot/carbon/src/Carbon/Lang/asa.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/ast.php | 59 - .../nesbot/carbon/src/Carbon/Lang/ast_ES.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/ayc.php | 15 - .../nesbot/carbon/src/Carbon/Lang/ayc_PE.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/az.php | 128 - .../nesbot/carbon/src/Carbon/Lang/az_AZ.php | 21 - .../nesbot/carbon/src/Carbon/Lang/az_Cyrl.php | 20 - .../nesbot/carbon/src/Carbon/Lang/az_IR.php | 27 - .../nesbot/carbon/src/Carbon/Lang/az_Latn.php | 29 - vendor/nesbot/carbon/src/Carbon/Lang/bas.php | 32 - vendor/nesbot/carbon/src/Carbon/Lang/be.php | 160 - .../nesbot/carbon/src/Carbon/Lang/be_BY.php | 22 - .../carbon/src/Carbon/Lang/be_BY@latin.php | 27 - vendor/nesbot/carbon/src/Carbon/Lang/bem.php | 15 - .../nesbot/carbon/src/Carbon/Lang/bem_ZM.php | 56 - vendor/nesbot/carbon/src/Carbon/Lang/ber.php | 15 - .../nesbot/carbon/src/Carbon/Lang/ber_DZ.php | 27 - .../nesbot/carbon/src/Carbon/Lang/ber_MA.php | 27 - vendor/nesbot/carbon/src/Carbon/Lang/bez.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/bg.php | 108 - .../nesbot/carbon/src/Carbon/Lang/bg_BG.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/bhb.php | 15 - .../nesbot/carbon/src/Carbon/Lang/bhb_IN.php | 27 - vendor/nesbot/carbon/src/Carbon/Lang/bho.php | 15 - .../nesbot/carbon/src/Carbon/Lang/bho_IN.php | 56 - vendor/nesbot/carbon/src/Carbon/Lang/bi.php | 15 - .../nesbot/carbon/src/Carbon/Lang/bi_VU.php | 54 - vendor/nesbot/carbon/src/Carbon/Lang/bm.php | 70 - vendor/nesbot/carbon/src/Carbon/Lang/bn.php | 100 - .../nesbot/carbon/src/Carbon/Lang/bn_BD.php | 27 - .../nesbot/carbon/src/Carbon/Lang/bn_IN.php | 26 - vendor/nesbot/carbon/src/Carbon/Lang/bo.php | 71 - .../nesbot/carbon/src/Carbon/Lang/bo_CN.php | 12 - .../nesbot/carbon/src/Carbon/Lang/bo_IN.php | 29 - vendor/nesbot/carbon/src/Carbon/Lang/br.php | 74 - .../nesbot/carbon/src/Carbon/Lang/br_FR.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/brx.php | 15 - .../nesbot/carbon/src/Carbon/Lang/brx_IN.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/bs.php | 93 - .../nesbot/carbon/src/Carbon/Lang/bs_BA.php | 12 - .../nesbot/carbon/src/Carbon/Lang/bs_Cyrl.php | 28 - .../nesbot/carbon/src/Carbon/Lang/bs_Latn.php | 13 - vendor/nesbot/carbon/src/Carbon/Lang/byn.php | 15 - .../nesbot/carbon/src/Carbon/Lang/byn_ER.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/ca.php | 117 - .../nesbot/carbon/src/Carbon/Lang/ca_AD.php | 13 - .../nesbot/carbon/src/Carbon/Lang/ca_ES.php | 12 - .../carbon/src/Carbon/Lang/ca_ES_Valencia.php | 23 - .../nesbot/carbon/src/Carbon/Lang/ca_FR.php | 13 - .../nesbot/carbon/src/Carbon/Lang/ca_IT.php | 13 - vendor/nesbot/carbon/src/Carbon/Lang/ccp.php | 28 - .../nesbot/carbon/src/Carbon/Lang/ccp_IN.php | 14 - vendor/nesbot/carbon/src/Carbon/Lang/ce.php | 15 - .../nesbot/carbon/src/Carbon/Lang/ce_RU.php | 55 - vendor/nesbot/carbon/src/Carbon/Lang/cgg.php | 31 - vendor/nesbot/carbon/src/Carbon/Lang/chr.php | 15 - .../nesbot/carbon/src/Carbon/Lang/chr_US.php | 59 - vendor/nesbot/carbon/src/Carbon/Lang/ckb.php | 90 - vendor/nesbot/carbon/src/Carbon/Lang/cmn.php | 15 - .../nesbot/carbon/src/Carbon/Lang/cmn_TW.php | 55 - vendor/nesbot/carbon/src/Carbon/Lang/crh.php | 15 - .../nesbot/carbon/src/Carbon/Lang/crh_UA.php | 56 - vendor/nesbot/carbon/src/Carbon/Lang/cs.php | 124 - .../nesbot/carbon/src/Carbon/Lang/cs_CZ.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/csb.php | 15 - .../nesbot/carbon/src/Carbon/Lang/csb_PL.php | 41 - vendor/nesbot/carbon/src/Carbon/Lang/cu.php | 52 - vendor/nesbot/carbon/src/Carbon/Lang/cv.php | 65 - .../nesbot/carbon/src/Carbon/Lang/cv_RU.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/cy.php | 79 - .../nesbot/carbon/src/Carbon/Lang/cy_GB.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/da.php | 81 - .../nesbot/carbon/src/Carbon/Lang/da_DK.php | 12 - .../nesbot/carbon/src/Carbon/Lang/da_GL.php | 19 - vendor/nesbot/carbon/src/Carbon/Lang/dav.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/de.php | 135 - .../nesbot/carbon/src/Carbon/Lang/de_AT.php | 27 - .../nesbot/carbon/src/Carbon/Lang/de_BE.php | 20 - .../nesbot/carbon/src/Carbon/Lang/de_CH.php | 20 - .../nesbot/carbon/src/Carbon/Lang/de_DE.php | 16 - .../nesbot/carbon/src/Carbon/Lang/de_IT.php | 16 - .../nesbot/carbon/src/Carbon/Lang/de_LI.php | 12 - .../nesbot/carbon/src/Carbon/Lang/de_LU.php | 20 - vendor/nesbot/carbon/src/Carbon/Lang/dje.php | 40 - vendor/nesbot/carbon/src/Carbon/Lang/doi.php | 15 - .../nesbot/carbon/src/Carbon/Lang/doi_IN.php | 32 - vendor/nesbot/carbon/src/Carbon/Lang/dsb.php | 15 - .../nesbot/carbon/src/Carbon/Lang/dsb_DE.php | 60 - vendor/nesbot/carbon/src/Carbon/Lang/dua.php | 56 - vendor/nesbot/carbon/src/Carbon/Lang/dv.php | 89 - .../nesbot/carbon/src/Carbon/Lang/dv_MV.php | 87 - vendor/nesbot/carbon/src/Carbon/Lang/dyo.php | 27 - vendor/nesbot/carbon/src/Carbon/Lang/dz.php | 15 - .../nesbot/carbon/src/Carbon/Lang/dz_BT.php | 44 - vendor/nesbot/carbon/src/Carbon/Lang/ebu.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/ee.php | 56 - .../nesbot/carbon/src/Carbon/Lang/ee_TG.php | 19 - vendor/nesbot/carbon/src/Carbon/Lang/el.php | 89 - .../nesbot/carbon/src/Carbon/Lang/el_CY.php | 19 - .../nesbot/carbon/src/Carbon/Lang/el_GR.php | 19 - vendor/nesbot/carbon/src/Carbon/Lang/en.php | 95 - .../nesbot/carbon/src/Carbon/Lang/en_001.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_150.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_AG.php | 20 - .../nesbot/carbon/src/Carbon/Lang/en_AI.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_AS.php | 14 - .../nesbot/carbon/src/Carbon/Lang/en_AT.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_AU.php | 30 - .../nesbot/carbon/src/Carbon/Lang/en_BB.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_BE.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_BI.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_BM.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_BS.php | 14 - .../nesbot/carbon/src/Carbon/Lang/en_BW.php | 14 - .../nesbot/carbon/src/Carbon/Lang/en_BZ.php | 14 - .../nesbot/carbon/src/Carbon/Lang/en_CA.php | 30 - .../nesbot/carbon/src/Carbon/Lang/en_CC.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_CH.php | 21 - .../nesbot/carbon/src/Carbon/Lang/en_CK.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_CM.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_CX.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_CY.php | 27 - .../nesbot/carbon/src/Carbon/Lang/en_DE.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_DG.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_DK.php | 21 - .../nesbot/carbon/src/Carbon/Lang/en_DM.php | 14 - .../nesbot/carbon/src/Carbon/Lang/en_ER.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_FI.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_FJ.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_FK.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_FM.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_GB.php | 29 - .../nesbot/carbon/src/Carbon/Lang/en_GD.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_GG.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_GH.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_GI.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_GM.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_GU.php | 14 - .../nesbot/carbon/src/Carbon/Lang/en_GY.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_HK.php | 18 - .../nesbot/carbon/src/Carbon/Lang/en_IE.php | 30 - .../nesbot/carbon/src/Carbon/Lang/en_IL.php | 30 - .../nesbot/carbon/src/Carbon/Lang/en_IM.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_IN.php | 25 - .../nesbot/carbon/src/Carbon/Lang/en_IO.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_ISO.php | 22 - .../nesbot/carbon/src/Carbon/Lang/en_JE.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_JM.php | 14 - .../nesbot/carbon/src/Carbon/Lang/en_KE.php | 14 - .../nesbot/carbon/src/Carbon/Lang/en_KI.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_KN.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_KY.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_LC.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_LR.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_LS.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_MG.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_MH.php | 14 - .../nesbot/carbon/src/Carbon/Lang/en_MO.php | 14 - .../nesbot/carbon/src/Carbon/Lang/en_MP.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_MS.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_MT.php | 14 - .../nesbot/carbon/src/Carbon/Lang/en_MU.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_MW.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_MY.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_NA.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_NF.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_NG.php | 17 - .../nesbot/carbon/src/Carbon/Lang/en_NL.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_NR.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_NU.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_NZ.php | 30 - .../nesbot/carbon/src/Carbon/Lang/en_PG.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_PH.php | 18 - .../nesbot/carbon/src/Carbon/Lang/en_PK.php | 14 - .../nesbot/carbon/src/Carbon/Lang/en_PN.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_PR.php | 14 - .../nesbot/carbon/src/Carbon/Lang/en_PW.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_RW.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_SB.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_SC.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_SD.php | 15 - .../nesbot/carbon/src/Carbon/Lang/en_SE.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_SG.php | 23 - .../nesbot/carbon/src/Carbon/Lang/en_SH.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_SI.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_SL.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_SS.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_SX.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_SZ.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_TC.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_TK.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_TO.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_TT.php | 14 - .../nesbot/carbon/src/Carbon/Lang/en_TV.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_TZ.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_UG.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_UM.php | 14 - .../nesbot/carbon/src/Carbon/Lang/en_US.php | 14 - .../carbon/src/Carbon/Lang/en_US_Posix.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_VC.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_VG.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_VI.php | 14 - .../nesbot/carbon/src/Carbon/Lang/en_VU.php | 12 - .../nesbot/carbon/src/Carbon/Lang/en_WS.php | 14 - .../nesbot/carbon/src/Carbon/Lang/en_ZA.php | 25 - .../nesbot/carbon/src/Carbon/Lang/en_ZM.php | 20 - .../nesbot/carbon/src/Carbon/Lang/en_ZW.php | 14 - vendor/nesbot/carbon/src/Carbon/Lang/eo.php | 77 - vendor/nesbot/carbon/src/Carbon/Lang/es.php | 125 - .../nesbot/carbon/src/Carbon/Lang/es_419.php | 19 - .../nesbot/carbon/src/Carbon/Lang/es_AR.php | 19 - .../nesbot/carbon/src/Carbon/Lang/es_BO.php | 19 - .../nesbot/carbon/src/Carbon/Lang/es_BR.php | 14 - .../nesbot/carbon/src/Carbon/Lang/es_BZ.php | 14 - .../nesbot/carbon/src/Carbon/Lang/es_CL.php | 19 - .../nesbot/carbon/src/Carbon/Lang/es_CO.php | 19 - .../nesbot/carbon/src/Carbon/Lang/es_CR.php | 19 - .../nesbot/carbon/src/Carbon/Lang/es_CU.php | 14 - .../nesbot/carbon/src/Carbon/Lang/es_DO.php | 31 - .../nesbot/carbon/src/Carbon/Lang/es_EA.php | 14 - .../nesbot/carbon/src/Carbon/Lang/es_EC.php | 19 - .../nesbot/carbon/src/Carbon/Lang/es_ES.php | 16 - .../nesbot/carbon/src/Carbon/Lang/es_GQ.php | 14 - .../nesbot/carbon/src/Carbon/Lang/es_GT.php | 19 - .../nesbot/carbon/src/Carbon/Lang/es_HN.php | 19 - .../nesbot/carbon/src/Carbon/Lang/es_IC.php | 14 - .../nesbot/carbon/src/Carbon/Lang/es_MX.php | 20 - .../nesbot/carbon/src/Carbon/Lang/es_NI.php | 19 - .../nesbot/carbon/src/Carbon/Lang/es_PA.php | 19 - .../nesbot/carbon/src/Carbon/Lang/es_PE.php | 19 - .../nesbot/carbon/src/Carbon/Lang/es_PH.php | 22 - .../nesbot/carbon/src/Carbon/Lang/es_PR.php | 19 - .../nesbot/carbon/src/Carbon/Lang/es_PY.php | 19 - .../nesbot/carbon/src/Carbon/Lang/es_SV.php | 20 - .../nesbot/carbon/src/Carbon/Lang/es_US.php | 38 - .../nesbot/carbon/src/Carbon/Lang/es_UY.php | 21 - .../nesbot/carbon/src/Carbon/Lang/es_VE.php | 19 - vendor/nesbot/carbon/src/Carbon/Lang/et.php | 93 - .../nesbot/carbon/src/Carbon/Lang/et_EE.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/eu.php | 67 - .../nesbot/carbon/src/Carbon/Lang/eu_ES.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/ewo.php | 55 - vendor/nesbot/carbon/src/Carbon/Lang/fa.php | 84 - .../nesbot/carbon/src/Carbon/Lang/fa_AF.php | 21 - .../nesbot/carbon/src/Carbon/Lang/fa_IR.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/ff.php | 60 - .../nesbot/carbon/src/Carbon/Lang/ff_CM.php | 12 - .../nesbot/carbon/src/Carbon/Lang/ff_GN.php | 12 - .../nesbot/carbon/src/Carbon/Lang/ff_MR.php | 21 - .../nesbot/carbon/src/Carbon/Lang/ff_SN.php | 16 - vendor/nesbot/carbon/src/Carbon/Lang/fi.php | 88 - .../nesbot/carbon/src/Carbon/Lang/fi_FI.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/fil.php | 15 - .../nesbot/carbon/src/Carbon/Lang/fil_PH.php | 63 - vendor/nesbot/carbon/src/Carbon/Lang/fo.php | 69 - .../nesbot/carbon/src/Carbon/Lang/fo_DK.php | 19 - .../nesbot/carbon/src/Carbon/Lang/fo_FO.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/fr.php | 118 - .../nesbot/carbon/src/Carbon/Lang/fr_BE.php | 16 - .../nesbot/carbon/src/Carbon/Lang/fr_BF.php | 12 - .../nesbot/carbon/src/Carbon/Lang/fr_BI.php | 12 - .../nesbot/carbon/src/Carbon/Lang/fr_BJ.php | 12 - .../nesbot/carbon/src/Carbon/Lang/fr_BL.php | 12 - .../nesbot/carbon/src/Carbon/Lang/fr_CA.php | 25 - .../nesbot/carbon/src/Carbon/Lang/fr_CD.php | 12 - .../nesbot/carbon/src/Carbon/Lang/fr_CF.php | 12 - .../nesbot/carbon/src/Carbon/Lang/fr_CG.php | 12 - .../nesbot/carbon/src/Carbon/Lang/fr_CH.php | 24 - .../nesbot/carbon/src/Carbon/Lang/fr_CI.php | 12 - .../nesbot/carbon/src/Carbon/Lang/fr_CM.php | 14 - .../nesbot/carbon/src/Carbon/Lang/fr_DJ.php | 22 - .../nesbot/carbon/src/Carbon/Lang/fr_DZ.php | 23 - .../nesbot/carbon/src/Carbon/Lang/fr_FR.php | 12 - .../nesbot/carbon/src/Carbon/Lang/fr_GA.php | 12 - .../nesbot/carbon/src/Carbon/Lang/fr_GF.php | 12 - .../nesbot/carbon/src/Carbon/Lang/fr_GN.php | 12 - .../nesbot/carbon/src/Carbon/Lang/fr_GP.php | 12 - .../nesbot/carbon/src/Carbon/Lang/fr_GQ.php | 12 - .../nesbot/carbon/src/Carbon/Lang/fr_HT.php | 12 - .../nesbot/carbon/src/Carbon/Lang/fr_KM.php | 12 - .../nesbot/carbon/src/Carbon/Lang/fr_LU.php | 20 - .../nesbot/carbon/src/Carbon/Lang/fr_MA.php | 15 - .../nesbot/carbon/src/Carbon/Lang/fr_MC.php | 12 - .../nesbot/carbon/src/Carbon/Lang/fr_MF.php | 12 - .../nesbot/carbon/src/Carbon/Lang/fr_MG.php | 12 - .../nesbot/carbon/src/Carbon/Lang/fr_ML.php | 12 - .../nesbot/carbon/src/Carbon/Lang/fr_MQ.php | 12 - .../nesbot/carbon/src/Carbon/Lang/fr_MR.php | 21 - .../nesbot/carbon/src/Carbon/Lang/fr_MU.php | 12 - .../nesbot/carbon/src/Carbon/Lang/fr_NC.php | 12 - .../nesbot/carbon/src/Carbon/Lang/fr_NE.php | 12 - .../nesbot/carbon/src/Carbon/Lang/fr_PF.php | 12 - .../nesbot/carbon/src/Carbon/Lang/fr_PM.php | 12 - .../nesbot/carbon/src/Carbon/Lang/fr_RE.php | 12 - .../nesbot/carbon/src/Carbon/Lang/fr_RW.php | 12 - .../nesbot/carbon/src/Carbon/Lang/fr_SC.php | 12 - .../nesbot/carbon/src/Carbon/Lang/fr_SN.php | 12 - .../nesbot/carbon/src/Carbon/Lang/fr_SY.php | 23 - .../nesbot/carbon/src/Carbon/Lang/fr_TD.php | 21 - .../nesbot/carbon/src/Carbon/Lang/fr_TG.php | 12 - .../nesbot/carbon/src/Carbon/Lang/fr_TN.php | 22 - .../nesbot/carbon/src/Carbon/Lang/fr_VU.php | 21 - .../nesbot/carbon/src/Carbon/Lang/fr_WF.php | 12 - .../nesbot/carbon/src/Carbon/Lang/fr_YT.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/fur.php | 15 - .../nesbot/carbon/src/Carbon/Lang/fur_IT.php | 39 - vendor/nesbot/carbon/src/Carbon/Lang/fy.php | 76 - .../nesbot/carbon/src/Carbon/Lang/fy_DE.php | 27 - .../nesbot/carbon/src/Carbon/Lang/fy_NL.php | 27 - vendor/nesbot/carbon/src/Carbon/Lang/ga.php | 75 - .../nesbot/carbon/src/Carbon/Lang/ga_IE.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/gd.php | 75 - .../nesbot/carbon/src/Carbon/Lang/gd_GB.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/gez.php | 15 - .../nesbot/carbon/src/Carbon/Lang/gez_ER.php | 56 - .../nesbot/carbon/src/Carbon/Lang/gez_ET.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/gl.php | 98 - .../nesbot/carbon/src/Carbon/Lang/gl_ES.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/gom.php | 15 - .../carbon/src/Carbon/Lang/gom_Latn.php | 77 - vendor/nesbot/carbon/src/Carbon/Lang/gsw.php | 49 - .../nesbot/carbon/src/Carbon/Lang/gsw_CH.php | 12 - .../nesbot/carbon/src/Carbon/Lang/gsw_FR.php | 20 - .../nesbot/carbon/src/Carbon/Lang/gsw_LI.php | 20 - vendor/nesbot/carbon/src/Carbon/Lang/gu.php | 82 - .../nesbot/carbon/src/Carbon/Lang/gu_IN.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/guz.php | 48 - vendor/nesbot/carbon/src/Carbon/Lang/gv.php | 15 - .../nesbot/carbon/src/Carbon/Lang/gv_GB.php | 55 - vendor/nesbot/carbon/src/Carbon/Lang/ha.php | 60 - .../nesbot/carbon/src/Carbon/Lang/ha_GH.php | 12 - .../nesbot/carbon/src/Carbon/Lang/ha_NE.php | 12 - .../nesbot/carbon/src/Carbon/Lang/ha_NG.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/hak.php | 15 - .../nesbot/carbon/src/Carbon/Lang/hak_TW.php | 56 - vendor/nesbot/carbon/src/Carbon/Lang/haw.php | 55 - vendor/nesbot/carbon/src/Carbon/Lang/he.php | 86 - .../nesbot/carbon/src/Carbon/Lang/he_IL.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/hi.php | 82 - .../nesbot/carbon/src/Carbon/Lang/hi_IN.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/hif.php | 15 - .../nesbot/carbon/src/Carbon/Lang/hif_FJ.php | 55 - vendor/nesbot/carbon/src/Carbon/Lang/hne.php | 15 - .../nesbot/carbon/src/Carbon/Lang/hne_IN.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/hr.php | 99 - .../nesbot/carbon/src/Carbon/Lang/hr_BA.php | 32 - .../nesbot/carbon/src/Carbon/Lang/hr_HR.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/hsb.php | 15 - .../nesbot/carbon/src/Carbon/Lang/hsb_DE.php | 60 - vendor/nesbot/carbon/src/Carbon/Lang/ht.php | 15 - .../nesbot/carbon/src/Carbon/Lang/ht_HT.php | 55 - vendor/nesbot/carbon/src/Carbon/Lang/hu.php | 118 - .../nesbot/carbon/src/Carbon/Lang/hu_HU.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/hy.php | 90 - .../nesbot/carbon/src/Carbon/Lang/hy_AM.php | 24 - vendor/nesbot/carbon/src/Carbon/Lang/i18n.php | 23 - vendor/nesbot/carbon/src/Carbon/Lang/ia.php | 15 - .../nesbot/carbon/src/Carbon/Lang/ia_FR.php | 55 - vendor/nesbot/carbon/src/Carbon/Lang/id.php | 92 - .../nesbot/carbon/src/Carbon/Lang/id_ID.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/ig.php | 15 - .../nesbot/carbon/src/Carbon/Lang/ig_NG.php | 55 - vendor/nesbot/carbon/src/Carbon/Lang/ii.php | 56 - vendor/nesbot/carbon/src/Carbon/Lang/ik.php | 15 - .../nesbot/carbon/src/Carbon/Lang/ik_CA.php | 51 - vendor/nesbot/carbon/src/Carbon/Lang/in.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/is.php | 55 - .../nesbot/carbon/src/Carbon/Lang/is_IS.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/it.php | 111 - .../nesbot/carbon/src/Carbon/Lang/it_CH.php | 20 - .../nesbot/carbon/src/Carbon/Lang/it_IT.php | 16 - .../nesbot/carbon/src/Carbon/Lang/it_SM.php | 12 - .../nesbot/carbon/src/Carbon/Lang/it_VA.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/iu.php | 15 - .../nesbot/carbon/src/Carbon/Lang/iu_CA.php | 55 - vendor/nesbot/carbon/src/Carbon/Lang/iw.php | 59 - vendor/nesbot/carbon/src/Carbon/Lang/ja.php | 98 - .../nesbot/carbon/src/Carbon/Lang/ja_JP.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/jgo.php | 14 - vendor/nesbot/carbon/src/Carbon/Lang/jmc.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/jv.php | 71 - vendor/nesbot/carbon/src/Carbon/Lang/ka.php | 204 - .../nesbot/carbon/src/Carbon/Lang/ka_GE.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/kab.php | 15 - .../nesbot/carbon/src/Carbon/Lang/kab_DZ.php | 56 - vendor/nesbot/carbon/src/Carbon/Lang/kam.php | 51 - vendor/nesbot/carbon/src/Carbon/Lang/kde.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/kea.php | 49 - vendor/nesbot/carbon/src/Carbon/Lang/khq.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/ki.php | 56 - vendor/nesbot/carbon/src/Carbon/Lang/kk.php | 103 - .../nesbot/carbon/src/Carbon/Lang/kk_KZ.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/kkj.php | 14 - vendor/nesbot/carbon/src/Carbon/Lang/kl.php | 15 - .../nesbot/carbon/src/Carbon/Lang/kl_GL.php | 64 - vendor/nesbot/carbon/src/Carbon/Lang/kln.php | 32 - vendor/nesbot/carbon/src/Carbon/Lang/km.php | 71 - .../nesbot/carbon/src/Carbon/Lang/km_KH.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/kn.php | 75 - .../nesbot/carbon/src/Carbon/Lang/kn_IN.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/ko.php | 84 - .../nesbot/carbon/src/Carbon/Lang/ko_KP.php | 14 - .../nesbot/carbon/src/Carbon/Lang/ko_KR.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/kok.php | 15 - .../nesbot/carbon/src/Carbon/Lang/kok_IN.php | 56 - vendor/nesbot/carbon/src/Carbon/Lang/ks.php | 15 - .../nesbot/carbon/src/Carbon/Lang/ks_IN.php | 52 - .../src/Carbon/Lang/ks_IN@devanagari.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/ksb.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/ksf.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/ksh.php | 57 - vendor/nesbot/carbon/src/Carbon/Lang/ku.php | 57 - .../nesbot/carbon/src/Carbon/Lang/ku_TR.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/kw.php | 15 - .../nesbot/carbon/src/Carbon/Lang/kw_GB.php | 55 - vendor/nesbot/carbon/src/Carbon/Lang/ky.php | 106 - .../nesbot/carbon/src/Carbon/Lang/ky_KG.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/lag.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/lb.php | 85 - .../nesbot/carbon/src/Carbon/Lang/lb_LU.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/lg.php | 15 - .../nesbot/carbon/src/Carbon/Lang/lg_UG.php | 55 - vendor/nesbot/carbon/src/Carbon/Lang/li.php | 15 - .../nesbot/carbon/src/Carbon/Lang/li_NL.php | 55 - vendor/nesbot/carbon/src/Carbon/Lang/lij.php | 15 - .../nesbot/carbon/src/Carbon/Lang/lij_IT.php | 55 - vendor/nesbot/carbon/src/Carbon/Lang/lkt.php | 42 - vendor/nesbot/carbon/src/Carbon/Lang/ln.php | 60 - .../nesbot/carbon/src/Carbon/Lang/ln_AO.php | 17 - .../nesbot/carbon/src/Carbon/Lang/ln_CD.php | 16 - .../nesbot/carbon/src/Carbon/Lang/ln_CF.php | 17 - .../nesbot/carbon/src/Carbon/Lang/ln_CG.php | 17 - vendor/nesbot/carbon/src/Carbon/Lang/lo.php | 62 - .../nesbot/carbon/src/Carbon/Lang/lo_LA.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/lrc.php | 18 - .../nesbot/carbon/src/Carbon/Lang/lrc_IQ.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/lt.php | 132 - .../nesbot/carbon/src/Carbon/Lang/lt_LT.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/lu.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/luo.php | 56 - vendor/nesbot/carbon/src/Carbon/Lang/luy.php | 58 - vendor/nesbot/carbon/src/Carbon/Lang/lv.php | 177 - .../nesbot/carbon/src/Carbon/Lang/lv_LV.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/lzh.php | 15 - .../nesbot/carbon/src/Carbon/Lang/lzh_TW.php | 57 - vendor/nesbot/carbon/src/Carbon/Lang/mag.php | 15 - .../nesbot/carbon/src/Carbon/Lang/mag_IN.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/mai.php | 15 - .../nesbot/carbon/src/Carbon/Lang/mai_IN.php | 52 - vendor/nesbot/carbon/src/Carbon/Lang/mas.php | 52 - .../nesbot/carbon/src/Carbon/Lang/mas_TZ.php | 14 - vendor/nesbot/carbon/src/Carbon/Lang/mer.php | 44 - vendor/nesbot/carbon/src/Carbon/Lang/mfe.php | 15 - .../nesbot/carbon/src/Carbon/Lang/mfe_MU.php | 54 - vendor/nesbot/carbon/src/Carbon/Lang/mg.php | 15 - .../nesbot/carbon/src/Carbon/Lang/mg_MG.php | 55 - vendor/nesbot/carbon/src/Carbon/Lang/mgh.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/mgo.php | 27 - vendor/nesbot/carbon/src/Carbon/Lang/mhr.php | 15 - .../nesbot/carbon/src/Carbon/Lang/mhr_RU.php | 55 - vendor/nesbot/carbon/src/Carbon/Lang/mi.php | 66 - .../nesbot/carbon/src/Carbon/Lang/mi_NZ.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/miq.php | 15 - .../nesbot/carbon/src/Carbon/Lang/miq_NI.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/mjw.php | 15 - .../nesbot/carbon/src/Carbon/Lang/mjw_IN.php | 27 - vendor/nesbot/carbon/src/Carbon/Lang/mk.php | 110 - .../nesbot/carbon/src/Carbon/Lang/mk_MK.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/ml.php | 76 - .../nesbot/carbon/src/Carbon/Lang/ml_IN.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/mn.php | 116 - .../nesbot/carbon/src/Carbon/Lang/mn_MN.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/mni.php | 15 - .../nesbot/carbon/src/Carbon/Lang/mni_IN.php | 36 - vendor/nesbot/carbon/src/Carbon/Lang/mo.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/mr.php | 86 - .../nesbot/carbon/src/Carbon/Lang/mr_IN.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/ms.php | 104 - .../nesbot/carbon/src/Carbon/Lang/ms_BN.php | 22 - .../nesbot/carbon/src/Carbon/Lang/ms_MY.php | 18 - .../nesbot/carbon/src/Carbon/Lang/ms_SG.php | 22 - vendor/nesbot/carbon/src/Carbon/Lang/mt.php | 65 - .../nesbot/carbon/src/Carbon/Lang/mt_MT.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/mua.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/my.php | 70 - .../nesbot/carbon/src/Carbon/Lang/my_MM.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/mzn.php | 25 - vendor/nesbot/carbon/src/Carbon/Lang/nan.php | 15 - .../nesbot/carbon/src/Carbon/Lang/nan_TW.php | 56 - .../carbon/src/Carbon/Lang/nan_TW@latin.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/naq.php | 52 - vendor/nesbot/carbon/src/Carbon/Lang/nb.php | 84 - .../nesbot/carbon/src/Carbon/Lang/nb_NO.php | 12 - .../nesbot/carbon/src/Carbon/Lang/nb_SJ.php | 18 - vendor/nesbot/carbon/src/Carbon/Lang/nd.php | 55 - vendor/nesbot/carbon/src/Carbon/Lang/nds.php | 15 - .../nesbot/carbon/src/Carbon/Lang/nds_DE.php | 60 - .../nesbot/carbon/src/Carbon/Lang/nds_NL.php | 27 - vendor/nesbot/carbon/src/Carbon/Lang/ne.php | 82 - .../nesbot/carbon/src/Carbon/Lang/ne_IN.php | 25 - .../nesbot/carbon/src/Carbon/Lang/ne_NP.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/nhn.php | 15 - .../nesbot/carbon/src/Carbon/Lang/nhn_MX.php | 51 - vendor/nesbot/carbon/src/Carbon/Lang/niu.php | 15 - .../nesbot/carbon/src/Carbon/Lang/niu_NU.php | 55 - vendor/nesbot/carbon/src/Carbon/Lang/nl.php | 113 - .../nesbot/carbon/src/Carbon/Lang/nl_AW.php | 27 - .../nesbot/carbon/src/Carbon/Lang/nl_BE.php | 27 - .../nesbot/carbon/src/Carbon/Lang/nl_BQ.php | 12 - .../nesbot/carbon/src/Carbon/Lang/nl_CW.php | 12 - .../nesbot/carbon/src/Carbon/Lang/nl_NL.php | 24 - .../nesbot/carbon/src/Carbon/Lang/nl_SR.php | 12 - .../nesbot/carbon/src/Carbon/Lang/nl_SX.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/nmg.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/nn.php | 78 - .../nesbot/carbon/src/Carbon/Lang/nn_NO.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/nnh.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/no.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/nr.php | 15 - .../nesbot/carbon/src/Carbon/Lang/nr_ZA.php | 27 - vendor/nesbot/carbon/src/Carbon/Lang/nso.php | 15 - .../nesbot/carbon/src/Carbon/Lang/nso_ZA.php | 55 - vendor/nesbot/carbon/src/Carbon/Lang/nus.php | 36 - vendor/nesbot/carbon/src/Carbon/Lang/nyn.php | 27 - vendor/nesbot/carbon/src/Carbon/Lang/oc.php | 101 - .../nesbot/carbon/src/Carbon/Lang/oc_FR.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/om.php | 61 - .../nesbot/carbon/src/Carbon/Lang/om_ET.php | 12 - .../nesbot/carbon/src/Carbon/Lang/om_KE.php | 14 - vendor/nesbot/carbon/src/Carbon/Lang/or.php | 15 - .../nesbot/carbon/src/Carbon/Lang/or_IN.php | 51 - vendor/nesbot/carbon/src/Carbon/Lang/os.php | 15 - .../nesbot/carbon/src/Carbon/Lang/os_RU.php | 55 - vendor/nesbot/carbon/src/Carbon/Lang/pa.php | 76 - .../nesbot/carbon/src/Carbon/Lang/pa_Arab.php | 26 - .../nesbot/carbon/src/Carbon/Lang/pa_Guru.php | 27 - .../nesbot/carbon/src/Carbon/Lang/pa_IN.php | 19 - .../nesbot/carbon/src/Carbon/Lang/pa_PK.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/pap.php | 39 - .../nesbot/carbon/src/Carbon/Lang/pap_AW.php | 16 - .../nesbot/carbon/src/Carbon/Lang/pap_CW.php | 16 - vendor/nesbot/carbon/src/Carbon/Lang/pl.php | 113 - .../nesbot/carbon/src/Carbon/Lang/pl_PL.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/prg.php | 52 - vendor/nesbot/carbon/src/Carbon/Lang/ps.php | 55 - .../nesbot/carbon/src/Carbon/Lang/ps_AF.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/pt.php | 111 - .../nesbot/carbon/src/Carbon/Lang/pt_AO.php | 12 - .../nesbot/carbon/src/Carbon/Lang/pt_BR.php | 39 - .../nesbot/carbon/src/Carbon/Lang/pt_CH.php | 12 - .../nesbot/carbon/src/Carbon/Lang/pt_CV.php | 12 - .../nesbot/carbon/src/Carbon/Lang/pt_GQ.php | 12 - .../nesbot/carbon/src/Carbon/Lang/pt_GW.php | 12 - .../nesbot/carbon/src/Carbon/Lang/pt_LU.php | 12 - .../nesbot/carbon/src/Carbon/Lang/pt_MO.php | 20 - .../nesbot/carbon/src/Carbon/Lang/pt_MZ.php | 14 - .../nesbot/carbon/src/Carbon/Lang/pt_PT.php | 27 - .../nesbot/carbon/src/Carbon/Lang/pt_ST.php | 12 - .../nesbot/carbon/src/Carbon/Lang/pt_TL.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/qu.php | 22 - .../nesbot/carbon/src/Carbon/Lang/qu_BO.php | 14 - .../nesbot/carbon/src/Carbon/Lang/qu_EC.php | 14 - vendor/nesbot/carbon/src/Carbon/Lang/quz.php | 15 - .../nesbot/carbon/src/Carbon/Lang/quz_PE.php | 55 - vendor/nesbot/carbon/src/Carbon/Lang/raj.php | 15 - .../nesbot/carbon/src/Carbon/Lang/raj_IN.php | 48 - vendor/nesbot/carbon/src/Carbon/Lang/rm.php | 51 - vendor/nesbot/carbon/src/Carbon/Lang/rn.php | 56 - vendor/nesbot/carbon/src/Carbon/Lang/ro.php | 77 - .../nesbot/carbon/src/Carbon/Lang/ro_MD.php | 21 - .../nesbot/carbon/src/Carbon/Lang/ro_RO.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/rof.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/ru.php | 174 - .../nesbot/carbon/src/Carbon/Lang/ru_BY.php | 12 - .../nesbot/carbon/src/Carbon/Lang/ru_KG.php | 12 - .../nesbot/carbon/src/Carbon/Lang/ru_KZ.php | 12 - .../nesbot/carbon/src/Carbon/Lang/ru_MD.php | 12 - .../nesbot/carbon/src/Carbon/Lang/ru_RU.php | 12 - .../nesbot/carbon/src/Carbon/Lang/ru_UA.php | 20 - vendor/nesbot/carbon/src/Carbon/Lang/rw.php | 15 - .../nesbot/carbon/src/Carbon/Lang/rw_RW.php | 55 - vendor/nesbot/carbon/src/Carbon/Lang/rwk.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/sa.php | 15 - .../nesbot/carbon/src/Carbon/Lang/sa_IN.php | 56 - vendor/nesbot/carbon/src/Carbon/Lang/sah.php | 15 - .../nesbot/carbon/src/Carbon/Lang/sah_RU.php | 27 - vendor/nesbot/carbon/src/Carbon/Lang/saq.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/sat.php | 15 - .../nesbot/carbon/src/Carbon/Lang/sat_IN.php | 55 - vendor/nesbot/carbon/src/Carbon/Lang/sbp.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/sc.php | 15 - .../nesbot/carbon/src/Carbon/Lang/sc_IT.php | 55 - vendor/nesbot/carbon/src/Carbon/Lang/sd.php | 81 - .../nesbot/carbon/src/Carbon/Lang/sd_IN.php | 26 - .../src/Carbon/Lang/sd_IN@devanagari.php | 27 - vendor/nesbot/carbon/src/Carbon/Lang/se.php | 73 - .../nesbot/carbon/src/Carbon/Lang/se_FI.php | 27 - .../nesbot/carbon/src/Carbon/Lang/se_NO.php | 12 - .../nesbot/carbon/src/Carbon/Lang/se_SE.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/seh.php | 27 - vendor/nesbot/carbon/src/Carbon/Lang/ses.php | 56 - vendor/nesbot/carbon/src/Carbon/Lang/sg.php | 52 - vendor/nesbot/carbon/src/Carbon/Lang/sgs.php | 15 - .../nesbot/carbon/src/Carbon/Lang/sgs_LT.php | 55 - vendor/nesbot/carbon/src/Carbon/Lang/sh.php | 58 - vendor/nesbot/carbon/src/Carbon/Lang/shi.php | 57 - .../carbon/src/Carbon/Lang/shi_Latn.php | 33 - .../carbon/src/Carbon/Lang/shi_Tfng.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/shn.php | 15 - .../nesbot/carbon/src/Carbon/Lang/shn_MM.php | 56 - vendor/nesbot/carbon/src/Carbon/Lang/shs.php | 15 - .../nesbot/carbon/src/Carbon/Lang/shs_CA.php | 39 - vendor/nesbot/carbon/src/Carbon/Lang/si.php | 78 - .../nesbot/carbon/src/Carbon/Lang/si_LK.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/sid.php | 15 - .../nesbot/carbon/src/Carbon/Lang/sid_ET.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/sk.php | 160 - .../nesbot/carbon/src/Carbon/Lang/sk_SK.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/sl.php | 129 - .../nesbot/carbon/src/Carbon/Lang/sl_SI.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/sm.php | 15 - .../nesbot/carbon/src/Carbon/Lang/sm_WS.php | 54 - vendor/nesbot/carbon/src/Carbon/Lang/smn.php | 57 - vendor/nesbot/carbon/src/Carbon/Lang/sn.php | 56 - vendor/nesbot/carbon/src/Carbon/Lang/so.php | 74 - .../nesbot/carbon/src/Carbon/Lang/so_DJ.php | 20 - .../nesbot/carbon/src/Carbon/Lang/so_ET.php | 16 - .../nesbot/carbon/src/Carbon/Lang/so_KE.php | 16 - .../nesbot/carbon/src/Carbon/Lang/so_SO.php | 16 - vendor/nesbot/carbon/src/Carbon/Lang/sq.php | 79 - .../nesbot/carbon/src/Carbon/Lang/sq_AL.php | 12 - .../nesbot/carbon/src/Carbon/Lang/sq_MK.php | 19 - .../nesbot/carbon/src/Carbon/Lang/sq_XK.php | 19 - vendor/nesbot/carbon/src/Carbon/Lang/sr.php | 98 - .../nesbot/carbon/src/Carbon/Lang/sr_Cyrl.php | 97 - .../carbon/src/Carbon/Lang/sr_Cyrl_BA.php | 33 - .../carbon/src/Carbon/Lang/sr_Cyrl_ME.php | 103 - .../carbon/src/Carbon/Lang/sr_Cyrl_XK.php | 24 - .../nesbot/carbon/src/Carbon/Lang/sr_Latn.php | 12 - .../carbon/src/Carbon/Lang/sr_Latn_BA.php | 33 - .../carbon/src/Carbon/Lang/sr_Latn_ME.php | 61 - .../carbon/src/Carbon/Lang/sr_Latn_XK.php | 24 - .../nesbot/carbon/src/Carbon/Lang/sr_ME.php | 12 - .../nesbot/carbon/src/Carbon/Lang/sr_RS.php | 16 - .../carbon/src/Carbon/Lang/sr_RS@latin.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/ss.php | 78 - .../nesbot/carbon/src/Carbon/Lang/ss_ZA.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/st.php | 15 - .../nesbot/carbon/src/Carbon/Lang/st_ZA.php | 55 - vendor/nesbot/carbon/src/Carbon/Lang/sv.php | 87 - .../nesbot/carbon/src/Carbon/Lang/sv_AX.php | 19 - .../nesbot/carbon/src/Carbon/Lang/sv_FI.php | 12 - .../nesbot/carbon/src/Carbon/Lang/sv_SE.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/sw.php | 74 - .../nesbot/carbon/src/Carbon/Lang/sw_CD.php | 17 - .../nesbot/carbon/src/Carbon/Lang/sw_KE.php | 27 - .../nesbot/carbon/src/Carbon/Lang/sw_TZ.php | 28 - .../nesbot/carbon/src/Carbon/Lang/sw_UG.php | 17 - vendor/nesbot/carbon/src/Carbon/Lang/szl.php | 15 - .../nesbot/carbon/src/Carbon/Lang/szl_PL.php | 55 - vendor/nesbot/carbon/src/Carbon/Lang/ta.php | 97 - .../nesbot/carbon/src/Carbon/Lang/ta_IN.php | 27 - .../nesbot/carbon/src/Carbon/Lang/ta_LK.php | 28 - .../nesbot/carbon/src/Carbon/Lang/ta_MY.php | 28 - .../nesbot/carbon/src/Carbon/Lang/ta_SG.php | 27 - vendor/nesbot/carbon/src/Carbon/Lang/tcy.php | 15 - .../nesbot/carbon/src/Carbon/Lang/tcy_IN.php | 40 - vendor/nesbot/carbon/src/Carbon/Lang/te.php | 89 - .../nesbot/carbon/src/Carbon/Lang/te_IN.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/teo.php | 28 - .../nesbot/carbon/src/Carbon/Lang/teo_KE.php | 14 - vendor/nesbot/carbon/src/Carbon/Lang/tet.php | 64 - vendor/nesbot/carbon/src/Carbon/Lang/tg.php | 104 - .../nesbot/carbon/src/Carbon/Lang/tg_TJ.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/th.php | 73 - .../nesbot/carbon/src/Carbon/Lang/th_TH.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/the.php | 15 - .../nesbot/carbon/src/Carbon/Lang/the_NP.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/ti.php | 15 - .../nesbot/carbon/src/Carbon/Lang/ti_ER.php | 56 - .../nesbot/carbon/src/Carbon/Lang/ti_ET.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/tig.php | 15 - .../nesbot/carbon/src/Carbon/Lang/tig_ER.php | 56 - vendor/nesbot/carbon/src/Carbon/Lang/tk.php | 15 - .../nesbot/carbon/src/Carbon/Lang/tk_TM.php | 67 - vendor/nesbot/carbon/src/Carbon/Lang/tl.php | 61 - .../nesbot/carbon/src/Carbon/Lang/tl_PH.php | 18 - vendor/nesbot/carbon/src/Carbon/Lang/tlh.php | 72 - vendor/nesbot/carbon/src/Carbon/Lang/tn.php | 15 - .../nesbot/carbon/src/Carbon/Lang/tn_ZA.php | 55 - vendor/nesbot/carbon/src/Carbon/Lang/to.php | 15 - .../nesbot/carbon/src/Carbon/Lang/to_TO.php | 55 - vendor/nesbot/carbon/src/Carbon/Lang/tpi.php | 15 - .../nesbot/carbon/src/Carbon/Lang/tpi_PG.php | 56 - vendor/nesbot/carbon/src/Carbon/Lang/tr.php | 121 - .../nesbot/carbon/src/Carbon/Lang/tr_CY.php | 23 - .../nesbot/carbon/src/Carbon/Lang/tr_TR.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/ts.php | 15 - .../nesbot/carbon/src/Carbon/Lang/ts_ZA.php | 55 - vendor/nesbot/carbon/src/Carbon/Lang/tt.php | 15 - .../nesbot/carbon/src/Carbon/Lang/tt_RU.php | 39 - .../carbon/src/Carbon/Lang/tt_RU@iqtelif.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/twq.php | 14 - vendor/nesbot/carbon/src/Carbon/Lang/tzl.php | 65 - vendor/nesbot/carbon/src/Carbon/Lang/tzm.php | 57 - .../carbon/src/Carbon/Lang/tzm_Latn.php | 64 - vendor/nesbot/carbon/src/Carbon/Lang/ug.php | 84 - .../nesbot/carbon/src/Carbon/Lang/ug_CN.php | 17 - vendor/nesbot/carbon/src/Carbon/Lang/uk.php | 190 - .../nesbot/carbon/src/Carbon/Lang/uk_UA.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/unm.php | 15 - .../nesbot/carbon/src/Carbon/Lang/unm_US.php | 58 - vendor/nesbot/carbon/src/Carbon/Lang/ur.php | 94 - .../nesbot/carbon/src/Carbon/Lang/ur_IN.php | 26 - .../nesbot/carbon/src/Carbon/Lang/ur_PK.php | 27 - vendor/nesbot/carbon/src/Carbon/Lang/uz.php | 85 - .../nesbot/carbon/src/Carbon/Lang/uz_Arab.php | 28 - .../nesbot/carbon/src/Carbon/Lang/uz_Cyrl.php | 20 - .../nesbot/carbon/src/Carbon/Lang/uz_Latn.php | 74 - .../nesbot/carbon/src/Carbon/Lang/uz_UZ.php | 27 - .../carbon/src/Carbon/Lang/uz_UZ@cyrillic.php | 27 - vendor/nesbot/carbon/src/Carbon/Lang/vai.php | 35 - .../carbon/src/Carbon/Lang/vai_Latn.php | 27 - .../carbon/src/Carbon/Lang/vai_Vaii.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/ve.php | 15 - .../nesbot/carbon/src/Carbon/Lang/ve_ZA.php | 50 - vendor/nesbot/carbon/src/Carbon/Lang/vi.php | 76 - .../nesbot/carbon/src/Carbon/Lang/vi_VN.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/vo.php | 52 - vendor/nesbot/carbon/src/Carbon/Lang/vun.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/wa.php | 15 - .../nesbot/carbon/src/Carbon/Lang/wa_BE.php | 55 - vendor/nesbot/carbon/src/Carbon/Lang/wae.php | 15 - .../nesbot/carbon/src/Carbon/Lang/wae_CH.php | 31 - vendor/nesbot/carbon/src/Carbon/Lang/wal.php | 15 - .../nesbot/carbon/src/Carbon/Lang/wal_ET.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/wo.php | 15 - .../nesbot/carbon/src/Carbon/Lang/wo_SN.php | 39 - vendor/nesbot/carbon/src/Carbon/Lang/xh.php | 15 - .../nesbot/carbon/src/Carbon/Lang/xh_ZA.php | 55 - vendor/nesbot/carbon/src/Carbon/Lang/xog.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/yav.php | 28 - vendor/nesbot/carbon/src/Carbon/Lang/yi.php | 15 - .../nesbot/carbon/src/Carbon/Lang/yi_US.php | 55 - vendor/nesbot/carbon/src/Carbon/Lang/yo.php | 65 - .../nesbot/carbon/src/Carbon/Lang/yo_BJ.php | 28 - .../nesbot/carbon/src/Carbon/Lang/yo_NG.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/yue.php | 15 - .../nesbot/carbon/src/Carbon/Lang/yue_HK.php | 28 - .../carbon/src/Carbon/Lang/yue_Hans.php | 12 - .../carbon/src/Carbon/Lang/yue_Hant.php | 12 - vendor/nesbot/carbon/src/Carbon/Lang/yuw.php | 15 - .../nesbot/carbon/src/Carbon/Lang/yuw_PG.php | 27 - vendor/nesbot/carbon/src/Carbon/Lang/zgh.php | 80 - vendor/nesbot/carbon/src/Carbon/Lang/zh.php | 29 - .../nesbot/carbon/src/Carbon/Lang/zh_CN.php | 33 - .../nesbot/carbon/src/Carbon/Lang/zh_HK.php | 12 - .../nesbot/carbon/src/Carbon/Lang/zh_Hans.php | 102 - .../carbon/src/Carbon/Lang/zh_Hans_HK.php | 12 - .../carbon/src/Carbon/Lang/zh_Hans_MO.php | 12 - .../carbon/src/Carbon/Lang/zh_Hans_SG.php | 12 - .../nesbot/carbon/src/Carbon/Lang/zh_Hant.php | 104 - .../carbon/src/Carbon/Lang/zh_Hant_HK.php | 12 - .../carbon/src/Carbon/Lang/zh_Hant_MO.php | 12 - .../carbon/src/Carbon/Lang/zh_Hant_TW.php | 12 - .../nesbot/carbon/src/Carbon/Lang/zh_MO.php | 21 - .../nesbot/carbon/src/Carbon/Lang/zh_SG.php | 26 - .../nesbot/carbon/src/Carbon/Lang/zh_TW.php | 12 - .../nesbot/carbon/src/Carbon/Lang/zh_YUE.php | 20 - vendor/nesbot/carbon/src/Carbon/Lang/zu.php | 15 - .../nesbot/carbon/src/Carbon/Lang/zu_ZA.php | 55 - vendor/nesbot/carbon/src/Carbon/Language.php | 271 - .../src/Carbon/Laravel/ServiceProvider.php | 129 - .../carbon/src/Carbon/List/languages.php | 1241 ----- .../nesbot/carbon/src/Carbon/List/regions.php | 292 - .../MessageFormatterMapper.php | 46 - vendor/nesbot/carbon/src/Carbon/Month.php | 79 - .../src/Carbon/PHPStan/MacroExtension.php | 137 - .../Carbon/PHPStan/MacroMethodReflection.php | 124 - .../carbon/src/Carbon/Traits/Boundaries.php | 469 -- .../nesbot/carbon/src/Carbon/Traits/Cast.php | 48 - .../carbon/src/Carbon/Traits/Comparison.php | 1333 ----- .../carbon/src/Carbon/Traits/Converter.php | 556 -- .../carbon/src/Carbon/Traits/Creator.php | 938 ---- .../nesbot/carbon/src/Carbon/Traits/Date.php | 2971 ---------- .../Traits/DeprecatedPeriodProperties.php | 83 - .../carbon/src/Carbon/Traits/Difference.php | 855 --- .../src/Carbon/Traits/IntervalRounding.php | 59 - .../carbon/src/Carbon/Traits/IntervalStep.php | 94 - .../carbon/src/Carbon/Traits/LocalFactory.php | 67 - .../carbon/src/Carbon/Traits/Localization.php | 728 --- .../nesbot/carbon/src/Carbon/Traits/Macro.php | 109 - .../src/Carbon/Traits/MagicParameter.php | 35 - .../nesbot/carbon/src/Carbon/Traits/Mixin.php | 208 - .../carbon/src/Carbon/Traits/Modifiers.php | 476 -- .../carbon/src/Carbon/Traits/Mutability.php | 69 - .../Carbon/Traits/ObjectInitialisation.php | 24 - .../carbon/src/Carbon/Traits/Options.php | 213 - .../carbon/src/Carbon/Traits/Rounding.php | 226 - .../src/Carbon/Traits/Serialization.php | 318 -- .../src/Carbon/Traits/StaticLocalization.php | 81 - .../src/Carbon/Traits/StaticOptions.php | 164 - .../nesbot/carbon/src/Carbon/Traits/Test.php | 185 - .../carbon/src/Carbon/Traits/Timestamp.php | 191 - .../src/Carbon/Traits/ToStringFormat.php | 52 - .../nesbot/carbon/src/Carbon/Traits/Units.php | 469 -- .../nesbot/carbon/src/Carbon/Traits/Week.php | 223 - .../nesbot/carbon/src/Carbon/Translator.php | 34 - .../carbon/src/Carbon/TranslatorImmutable.php | 100 - .../Carbon/TranslatorStrongTypeInterface.php | 24 - vendor/nesbot/carbon/src/Carbon/Unit.php | 119 - vendor/nesbot/carbon/src/Carbon/WeekDay.php | 68 - .../nesbot/carbon/src/Carbon/WrapperClock.php | 187 - vendor/psr/clock/CHANGELOG.md | 11 - vendor/psr/clock/LICENSE | 19 - vendor/psr/clock/README.md | 61 - vendor/psr/clock/composer.json | 21 - vendor/psr/clock/src/ClockInterface.php | 13 - vendor/psr/http-client/CHANGELOG.md | 31 - vendor/psr/http-client/LICENSE | 19 - vendor/psr/http-client/README.md | 12 - vendor/psr/http-client/composer.json | 30 - .../src/ClientExceptionInterface.php | 10 - .../psr/http-client/src/ClientInterface.php | 20 - .../src/NetworkExceptionInterface.php | 24 - .../src/RequestExceptionInterface.php | 24 - vendor/psr/http-factory/LICENSE | 21 - vendor/psr/http-factory/README.md | 12 - vendor/psr/http-factory/composer.json | 38 - .../src/RequestFactoryInterface.php | 18 - .../src/ResponseFactoryInterface.php | 18 - .../src/ServerRequestFactoryInterface.php | 24 - .../src/StreamFactoryInterface.php | 45 - .../src/UploadedFileFactoryInterface.php | 34 - .../http-factory/src/UriFactoryInterface.php | 17 - vendor/psr/http-message/CHANGELOG.md | 36 - vendor/psr/http-message/LICENSE | 19 - vendor/psr/http-message/README.md | 16 - vendor/psr/http-message/composer.json | 26 - .../psr/http-message/docs/PSR7-Interfaces.md | 130 - vendor/psr/http-message/docs/PSR7-Usage.md | 159 - .../psr/http-message/src/MessageInterface.php | 189 - .../psr/http-message/src/RequestInterface.php | 131 - .../http-message/src/ResponseInterface.php | 70 - .../src/ServerRequestInterface.php | 263 - .../psr/http-message/src/StreamInterface.php | 160 - .../src/UploadedFileInterface.php | 125 - vendor/psr/http-message/src/UriInterface.php | 326 -- vendor/psr/log/LICENSE | 19 - vendor/psr/log/README.md | 58 - vendor/psr/log/composer.json | 26 - vendor/psr/log/src/AbstractLogger.php | 15 - .../psr/log/src/InvalidArgumentException.php | 7 - vendor/psr/log/src/LogLevel.php | 18 - vendor/psr/log/src/LoggerAwareInterface.php | 14 - vendor/psr/log/src/LoggerAwareTrait.php | 22 - vendor/psr/log/src/LoggerInterface.php | 98 - vendor/psr/log/src/LoggerTrait.php | 98 - vendor/psr/log/src/NullLogger.php | 26 - vendor/psr/simple-cache/.editorconfig | 12 - vendor/psr/simple-cache/LICENSE.md | 21 - vendor/psr/simple-cache/README.md | 8 - vendor/psr/simple-cache/composer.json | 25 - .../psr/simple-cache/src/CacheException.php | 10 - .../psr/simple-cache/src/CacheInterface.php | 114 - .../src/InvalidArgumentException.php | 13 - vendor/ralouphie/getallheaders/LICENSE | 21 - vendor/ralouphie/getallheaders/README.md | 27 - vendor/ralouphie/getallheaders/composer.json | 26 - .../getallheaders/src/getallheaders.php | 46 - vendor/ratchet/pawl/.github/workflows/ci.yml | 45 - vendor/ratchet/pawl/.gitignore | 5 - vendor/ratchet/pawl/LICENSE | 19 - vendor/ratchet/pawl/README.md | 84 - vendor/ratchet/pawl/composer.json | 25 - vendor/ratchet/pawl/phpunit.xml.dist | 22 - vendor/ratchet/pawl/phpunit.xml.legacy | 22 - vendor/ratchet/pawl/src/Connector.php | 156 - vendor/ratchet/pawl/src/WebSocket.php | 157 - vendor/ratchet/pawl/src/functions.php | 17 - vendor/ratchet/pawl/src/functions_include.php | 5 - .../pawl/tests/autobahn/fuzzingserver.json | 10 - vendor/ratchet/pawl/tests/autobahn/runner.php | 67 - .../ratchet/pawl/tests/unit/ConnectorTest.php | 117 - .../pawl/tests/unit/RequestUriTest.php | 39 - .../ratchet/rfc6455/.github/workflows/ci.yml | 43 - vendor/ratchet/rfc6455/.gitignore | 4 - vendor/ratchet/rfc6455/LICENSE | 19 - vendor/ratchet/rfc6455/README.md | 13 - vendor/ratchet/rfc6455/composer.json | 46 - vendor/ratchet/rfc6455/phpunit.xml.dist | 27 - .../src/Handshake/ClientNegotiator.php | 71 - ...validPermessageDeflateOptionsException.php | 7 - .../src/Handshake/NegotiatorInterface.php | 47 - .../Handshake/PermessageDeflateOptions.php | 266 - .../rfc6455/src/Handshake/RequestVerifier.php | 163 - .../src/Handshake/ResponseVerifier.php | 70 - .../src/Handshake/ServerNegotiator.php | 162 - .../src/Messaging/CloseFrameChecker.php | 24 - .../rfc6455/src/Messaging/DataInterface.php | 34 - .../ratchet/rfc6455/src/Messaging/Frame.php | 481 -- .../rfc6455/src/Messaging/FrameInterface.php | 38 - .../ratchet/rfc6455/src/Messaging/Message.php | 136 - .../rfc6455/src/Messaging/MessageBuffer.php | 550 -- .../src/Messaging/MessageInterface.php | 20 - .../ratchet/rfc6455/tests/AbResultsTest.php | 32 - .../ratchet/rfc6455/tests/ab/clientRunner.php | 268 - .../rfc6455/tests/ab/docker_bootstrap.sh | 12 - .../rfc6455/tests/ab/fuzzingclient.json | 16 - .../tests/ab/fuzzingclient_skip_deflate.json | 14 - .../rfc6455/tests/ab/fuzzingserver.json | 12 - .../tests/ab/fuzzingserver_skip_deflate.json | 10 - .../ratchet/rfc6455/tests/ab/run_ab_tests.sh | 48 - .../ratchet/rfc6455/tests/ab/startServer.php | 86 - vendor/ratchet/rfc6455/tests/bootstrap.php | 19 - .../PermessageDeflateOptionsTest.php | 30 - .../unit/Handshake/RequestVerifierTest.php | 180 - .../unit/Handshake/ResponseVerifierTest.php | 39 - .../unit/Handshake/ServerNegotiatorTest.php | 219 - .../tests/unit/Messaging/FrameTest.php | 504 -- .../unit/Messaging/MessageBufferTest.php | 376 -- .../tests/unit/Messaging/MessageTest.php | 61 - vendor/react/async/CHANGELOG.md | 112 - vendor/react/async/LICENSE | 19 - vendor/react/async/README.md | 672 --- vendor/react/async/composer.json | 50 - vendor/react/async/src/FiberFactory.php | 33 - vendor/react/async/src/FiberInterface.php | 23 - vendor/react/async/src/FiberMap.php | 42 - vendor/react/async/src/SimpleFiber.php | 79 - vendor/react/async/src/functions.php | 846 --- vendor/react/async/src/functions_include.php | 9 - vendor/react/cache/CHANGELOG.md | 96 - vendor/react/cache/LICENSE | 21 - vendor/react/cache/README.md | 367 -- vendor/react/cache/composer.json | 45 - vendor/react/cache/src/ArrayCache.php | 181 - vendor/react/cache/src/CacheInterface.php | 194 - vendor/react/child-process/CHANGELOG.md | 176 - vendor/react/child-process/LICENSE | 21 - vendor/react/child-process/README.md | 619 --- vendor/react/child-process/composer.json | 49 - vendor/react/child-process/src/Process.php | 585 -- vendor/react/datagram/CHANGELOG.md | 154 - vendor/react/datagram/LICENSE | 21 - vendor/react/datagram/README.md | 68 - vendor/react/datagram/composer.json | 50 - vendor/react/datagram/src/Buffer.php | 122 - vendor/react/datagram/src/Factory.php | 155 - vendor/react/datagram/src/Socket.php | 151 - vendor/react/datagram/src/SocketInterface.php | 29 - vendor/react/dns/CHANGELOG.md | 452 -- vendor/react/dns/LICENSE | 21 - vendor/react/dns/README.md | 453 -- vendor/react/dns/composer.json | 49 - vendor/react/dns/src/BadServerException.php | 7 - vendor/react/dns/src/Config/Config.php | 137 - vendor/react/dns/src/Config/HostsFile.php | 153 - vendor/react/dns/src/Model/Message.php | 230 - vendor/react/dns/src/Model/Record.php | 153 - .../react/dns/src/Protocol/BinaryDumper.php | 199 - vendor/react/dns/src/Protocol/Parser.php | 356 -- .../react/dns/src/Query/CachingExecutor.php | 88 - .../dns/src/Query/CancellationException.php | 7 - vendor/react/dns/src/Query/CoopExecutor.php | 91 - .../react/dns/src/Query/ExecutorInterface.php | 43 - .../react/dns/src/Query/FallbackExecutor.php | 49 - .../react/dns/src/Query/HostsFileExecutor.php | 89 - vendor/react/dns/src/Query/Query.php | 69 - vendor/react/dns/src/Query/RetryExecutor.php | 85 - .../src/Query/SelectiveTransportExecutor.php | 85 - .../dns/src/Query/TcpTransportExecutor.php | 382 -- .../react/dns/src/Query/TimeoutException.php | 7 - .../react/dns/src/Query/TimeoutExecutor.php | 78 - .../dns/src/Query/UdpTransportExecutor.php | 221 - .../react/dns/src/RecordNotFoundException.php | 7 - vendor/react/dns/src/Resolver/Factory.php | 226 - vendor/react/dns/src/Resolver/Resolver.php | 147 - .../dns/src/Resolver/ResolverInterface.php | 94 - vendor/react/event-loop/CHANGELOG.md | 468 -- vendor/react/event-loop/LICENSE | 21 - vendor/react/event-loop/README.md | 930 ---- vendor/react/event-loop/composer.json | 47 - vendor/react/event-loop/src/ExtEvLoop.php | 253 - vendor/react/event-loop/src/ExtEventLoop.php | 275 - vendor/react/event-loop/src/ExtLibevLoop.php | 201 - .../react/event-loop/src/ExtLibeventLoop.php | 285 - vendor/react/event-loop/src/ExtUvLoop.php | 342 -- vendor/react/event-loop/src/Factory.php | 75 - vendor/react/event-loop/src/Loop.php | 266 - vendor/react/event-loop/src/LoopInterface.php | 472 -- .../react/event-loop/src/SignalsHandler.php | 63 - .../react/event-loop/src/StreamSelectLoop.php | 330 -- .../event-loop/src/Tick/FutureTickQueue.php | 60 - vendor/react/event-loop/src/Timer/Timer.php | 55 - vendor/react/event-loop/src/Timer/Timers.php | 113 - .../react/event-loop/src/TimerInterface.php | 27 - vendor/react/http/CHANGELOG.md | 920 --- vendor/react/http/LICENSE | 21 - vendor/react/http/README.md | 3024 ---------- vendor/react/http/composer.json | 57 - vendor/react/http/src/Browser.php | 858 --- vendor/react/http/src/Client/Client.php | 27 - vendor/react/http/src/HttpServer.php | 351 -- vendor/react/http/src/Io/AbstractMessage.php | 172 - vendor/react/http/src/Io/AbstractRequest.php | 156 - vendor/react/http/src/Io/BufferedBody.php | 179 - vendor/react/http/src/Io/ChunkedDecoder.php | 175 - vendor/react/http/src/Io/ChunkedEncoder.php | 92 - .../http/src/Io/ClientConnectionManager.php | 137 - .../react/http/src/Io/ClientRequestState.php | 16 - .../react/http/src/Io/ClientRequestStream.php | 307 - vendor/react/http/src/Io/Clock.php | 54 - .../http/src/Io/CloseProtectionStream.php | 111 - vendor/react/http/src/Io/EmptyBodyStream.php | 142 - vendor/react/http/src/Io/HttpBodyStream.php | 182 - vendor/react/http/src/Io/IniUtil.php | 48 - .../react/http/src/Io/LengthLimitedStream.php | 108 - vendor/react/http/src/Io/MiddlewareRunner.php | 61 - vendor/react/http/src/Io/MultipartParser.php | 345 -- .../react/http/src/Io/PauseBufferStream.php | 188 - .../react/http/src/Io/ReadableBodyStream.php | 153 - .../react/http/src/Io/RequestHeaderParser.php | 179 - vendor/react/http/src/Io/Sender.php | 152 - vendor/react/http/src/Io/StreamingServer.php | 405 -- vendor/react/http/src/Io/Transaction.php | 330 -- vendor/react/http/src/Io/UploadedFile.php | 130 - vendor/react/http/src/Message/Request.php | 57 - vendor/react/http/src/Message/Response.php | 414 -- .../http/src/Message/ResponseException.php | 43 - .../react/http/src/Message/ServerRequest.php | 331 -- vendor/react/http/src/Message/Uri.php | 356 -- .../LimitConcurrentRequestsMiddleware.php | 211 - .../RequestBodyBufferMiddleware.php | 109 - .../RequestBodyParserMiddleware.php | 46 - .../Middleware/StreamingRequestMiddleware.php | 69 - vendor/react/http/src/Server.php | 18 - vendor/react/promise/CHANGELOG.md | 156 - vendor/react/promise/LICENSE | 24 - vendor/react/promise/README.md | 722 --- vendor/react/promise/composer.json | 57 - vendor/react/promise/src/Deferred.php | 52 - .../src/Exception/CompositeException.php | 32 - .../promise/src/Exception/LengthException.php | 7 - .../src/Internal/CancellationQueue.php | 64 - .../promise/src/Internal/FulfilledPromise.php | 89 - .../promise/src/Internal/RejectedPromise.php | 128 - vendor/react/promise/src/Promise.php | 303 - vendor/react/promise/src/PromiseInterface.php | 152 - vendor/react/promise/src/functions.php | 345 -- .../react/promise/src/functions_include.php | 5 - vendor/react/socket/CHANGELOG.md | 785 --- vendor/react/socket/LICENSE | 21 - vendor/react/socket/README.md | 1564 ------ vendor/react/socket/composer.json | 52 - vendor/react/socket/src/Connection.php | 183 - .../react/socket/src/ConnectionInterface.php | 119 - vendor/react/socket/src/Connector.php | 236 - .../react/socket/src/ConnectorInterface.php | 59 - vendor/react/socket/src/DnsConnector.php | 117 - vendor/react/socket/src/FdServer.php | 222 - vendor/react/socket/src/FixedUriConnector.php | 41 - .../src/HappyEyeBallsConnectionBuilder.php | 334 -- .../socket/src/HappyEyeBallsConnector.php | 80 - vendor/react/socket/src/LimitingServer.php | 203 - vendor/react/socket/src/SecureConnector.php | 132 - vendor/react/socket/src/SecureServer.php | 210 - vendor/react/socket/src/Server.php | 118 - vendor/react/socket/src/ServerInterface.php | 151 - vendor/react/socket/src/SocketServer.php | 215 - vendor/react/socket/src/StreamEncryption.php | 158 - vendor/react/socket/src/TcpConnector.php | 173 - vendor/react/socket/src/TcpServer.php | 262 - vendor/react/socket/src/TimeoutConnector.php | 79 - vendor/react/socket/src/UnixConnector.php | 58 - vendor/react/socket/src/UnixServer.php | 162 - vendor/react/stream/CHANGELOG.md | 460 -- vendor/react/stream/LICENSE | 21 - vendor/react/stream/README.md | 1249 ----- vendor/react/stream/composer.json | 47 - vendor/react/stream/src/CompositeStream.php | 83 - .../react/stream/src/DuplexResourceStream.php | 240 - .../stream/src/DuplexStreamInterface.php | 39 - .../stream/src/ReadableResourceStream.php | 188 - .../stream/src/ReadableStreamInterface.php | 362 -- vendor/react/stream/src/ThroughStream.php | 195 - vendor/react/stream/src/Util.php | 75 - .../stream/src/WritableResourceStream.php | 178 - .../stream/src/WritableStreamInterface.php | 347 -- vendor/symfony/clock/CHANGELOG.md | 25 - vendor/symfony/clock/Clock.php | 89 - vendor/symfony/clock/ClockAwareTrait.php | 38 - vendor/symfony/clock/ClockInterface.php | 24 - vendor/symfony/clock/DatePoint.php | 169 - vendor/symfony/clock/LICENSE | 19 - vendor/symfony/clock/MockClock.php | 98 - vendor/symfony/clock/MonotonicClock.php | 93 - vendor/symfony/clock/NativeClock.php | 67 - vendor/symfony/clock/README.md | 47 - vendor/symfony/clock/Resources/now.php | 28 - .../clock/Test/ClockSensitiveTrait.php | 77 - vendor/symfony/clock/composer.json | 34 - .../deprecation-contracts/CHANGELOG.md | 5 - vendor/symfony/deprecation-contracts/LICENSE | 19 - .../symfony/deprecation-contracts/README.md | 26 - .../deprecation-contracts/composer.json | 35 - .../deprecation-contracts/function.php | 27 - vendor/symfony/options-resolver/CHANGELOG.md | 96 - .../Debug/OptionsResolverIntrospector.php | 104 - .../Exception/AccessException.php | 22 - .../Exception/ExceptionInterface.php | 21 - .../Exception/InvalidArgumentException.php | 21 - .../Exception/InvalidOptionsException.php | 23 - .../Exception/MissingOptionsException.php | 23 - .../Exception/NoConfigurationException.php | 26 - .../Exception/NoSuchOptionException.php | 26 - .../Exception/OptionDefinitionException.php | 21 - .../Exception/UndefinedOptionsException.php | 24 - vendor/symfony/options-resolver/LICENSE | 19 - .../options-resolver/OptionConfigurator.php | 146 - vendor/symfony/options-resolver/Options.php | 22 - .../options-resolver/OptionsResolver.php | 1317 ----- vendor/symfony/options-resolver/README.md | 15 - vendor/symfony/options-resolver/composer.json | 29 - vendor/symfony/polyfill-mbstring/LICENSE | 19 - vendor/symfony/polyfill-mbstring/Mbstring.php | 1045 ---- vendor/symfony/polyfill-mbstring/README.md | 13 - .../Resources/unidata/caseFolding.php | 119 - .../Resources/unidata/lowerCase.php | 1397 ----- .../Resources/unidata/titleCaseRegexp.php | 5 - .../Resources/unidata/upperCase.php | 1489 ----- .../symfony/polyfill-mbstring/bootstrap.php | 172 - .../symfony/polyfill-mbstring/bootstrap80.php | 167 - .../symfony/polyfill-mbstring/composer.json | 38 - vendor/symfony/polyfill-php83/LICENSE | 19 - vendor/symfony/polyfill-php83/Php83.php | 197 - vendor/symfony/polyfill-php83/README.md | 22 - .../Resources/stubs/DateError.php | 16 - .../Resources/stubs/DateException.php | 16 - .../stubs/DateInvalidOperationException.php | 16 - .../stubs/DateInvalidTimeZoneException.php | 16 - .../DateMalformedIntervalStringException.php | 16 - .../DateMalformedPeriodStringException.php | 16 - .../stubs/DateMalformedStringException.php | 16 - .../Resources/stubs/DateObjectError.php | 16 - .../Resources/stubs/DateRangeError.php | 16 - .../Resources/stubs/Override.php | 20 - .../Resources/stubs/SQLite3Exception.php | 16 - vendor/symfony/polyfill-php83/bootstrap.php | 50 - vendor/symfony/polyfill-php83/bootstrap81.php | 22 - vendor/symfony/polyfill-php83/composer.json | 33 - .../translation-contracts/CHANGELOG.md | 5 - vendor/symfony/translation-contracts/LICENSE | 19 - .../LocaleAwareInterface.php | 29 - .../symfony/translation-contracts/README.md | 9 - .../Test/TranslatorTest.php | 385 -- .../TranslatableInterface.php | 20 - .../TranslatorInterface.php | 68 - .../translation-contracts/TranslatorTrait.php | 225 - .../translation-contracts/composer.json | 37 - vendor/symfony/translation/CHANGELOG.md | 230 - .../Catalogue/AbstractOperation.php | 183 - .../translation/Catalogue/MergeOperation.php | 69 - .../Catalogue/OperationInterface.php | 61 - .../translation/Catalogue/TargetOperation.php | 83 - .../CatalogueMetadataAwareInterface.php | 44 - .../Command/TranslationLintCommand.php | 129 - .../Command/TranslationPullCommand.php | 176 - .../Command/TranslationPushCommand.php | 176 - .../translation/Command/TranslationTrait.php | 77 - .../translation/Command/XliffLintCommand.php | 288 - .../TranslationDataCollector.php | 146 - .../translation/DataCollectorTranslator.php | 130 - .../DataCollectorTranslatorPass.php | 36 - .../LoggingTranslatorPass.php | 59 - .../TranslationDumperPass.php | 35 - .../TranslationExtractorPass.php | 40 - .../DependencyInjection/TranslatorPass.php | 91 - .../TranslatorPathsPass.php | 142 - .../translation/Dumper/CsvFileDumper.php | 54 - .../translation/Dumper/DumperInterface.php | 30 - .../symfony/translation/Dumper/FileDumper.php | 101 - .../translation/Dumper/IcuResFileDumper.php | 95 - .../translation/Dumper/IniFileDumper.php | 39 - .../translation/Dumper/JsonFileDumper.php | 34 - .../translation/Dumper/MoFileDumper.php | 73 - .../translation/Dumper/PhpFileDumper.php | 32 - .../translation/Dumper/PoFileDumper.php | 131 - .../translation/Dumper/QtFileDumper.php | 55 - .../translation/Dumper/XliffFileDumper.php | 227 - .../translation/Dumper/YamlFileDumper.php | 54 - .../Exception/ExceptionInterface.php | 21 - .../Exception/IncompleteDsnException.php | 24 - .../Exception/InvalidArgumentException.php | 21 - .../Exception/InvalidResourceException.php | 21 - .../translation/Exception/LogicException.php | 21 - .../MissingRequiredOptionException.php | 25 - .../Exception/NotFoundResourceException.php | 21 - .../Exception/ProviderException.php | 43 - .../Exception/ProviderExceptionInterface.php | 23 - .../Exception/RuntimeException.php | 21 - .../Exception/UnsupportedSchemeException.php | 58 - .../Extractor/AbstractFileExtractor.php | 61 - .../translation/Extractor/ChainExtractor.php | 51 - .../Extractor/ExtractorInterface.php | 39 - .../translation/Extractor/PhpAstExtractor.php | 85 - .../Extractor/Visitor/AbstractVisitor.php | 135 - .../Extractor/Visitor/ConstraintVisitor.php | 112 - .../Extractor/Visitor/TransMethodVisitor.php | 65 - .../Visitor/TranslatableMessageVisitor.php | 65 - .../translation/Formatter/IntlFormatter.php | 57 - .../Formatter/IntlFormatterInterface.php | 27 - .../Formatter/MessageFormatter.php | 46 - .../Formatter/MessageFormatterInterface.php | 28 - .../translation/IdentityTranslator.php | 26 - vendor/symfony/translation/LICENSE | 19 - .../translation/Loader/ArrayLoader.php | 57 - .../translation/Loader/CsvFileLoader.php | 69 - .../symfony/translation/Loader/FileLoader.php | 57 - .../translation/Loader/IcuDatFileLoader.php | 58 - .../translation/Loader/IcuResFileLoader.php | 86 - .../translation/Loader/IniFileLoader.php | 25 - .../translation/Loader/JsonFileLoader.php | 51 - .../translation/Loader/LoaderInterface.php | 32 - .../translation/Loader/MoFileLoader.php | 138 - .../translation/Loader/PhpFileLoader.php | 35 - .../translation/Loader/PoFileLoader.php | 147 - .../translation/Loader/QtFileLoader.php | 78 - .../translation/Loader/XliffFileLoader.php | 248 - .../translation/Loader/YamlFileLoader.php | 51 - vendor/symfony/translation/LocaleSwitcher.php | 83 - .../symfony/translation/LoggingTranslator.php | 98 - .../symfony/translation/MessageCatalogue.php | 306 - .../translation/MessageCatalogueInterface.php | 122 - .../translation/MetadataAwareInterface.php | 44 - .../Provider/AbstractProviderFactory.php | 37 - vendor/symfony/translation/Provider/Dsn.php | 110 - .../Provider/FilteringProvider.php | 58 - .../translation/Provider/NullProvider.php | 39 - .../Provider/NullProviderFactory.php | 34 - .../Provider/ProviderFactoryInterface.php | 26 - .../Provider/ProviderInterface.php | 30 - .../TranslationProviderCollection.php | 57 - .../TranslationProviderCollectionFactory.php | 54 - .../PseudoLocalizationTranslator.php | 385 -- vendor/symfony/translation/README.md | 46 - .../translation/Reader/TranslationReader.php | 59 - .../Reader/TranslationReaderInterface.php | 27 - .../Resources/bin/translation-status.php | 274 - .../translation/Resources/data/parents.json | 142 - .../translation/Resources/functions.php | 22 - .../schemas/xliff-core-1.2-transitional.xsd | 2261 -------- .../Resources/schemas/xliff-core-2.0.xsd | 411 -- .../translation/Resources/schemas/xml.xsd | 309 -- .../Test/AbstractProviderFactoryTestCase.php | 79 - .../Test/IncompleteDsnTestTrait.php | 42 - .../Test/ProviderFactoryTestCase.php | 85 - .../translation/Test/ProviderTestCase.php | 84 - .../translation/TranslatableMessage.php | 56 - vendor/symfony/translation/Translator.php | 445 -- vendor/symfony/translation/TranslatorBag.php | 102 - .../translation/TranslatorBagInterface.php | 36 - .../translation/Util/ArrayConverter.php | 142 - .../symfony/translation/Util/XliffUtils.php | 191 - .../translation/Writer/TranslationWriter.php | 71 - .../Writer/TranslationWriterInterface.php | 33 - vendor/symfony/translation/composer.json | 60 - vendor/team-reflex/discord-php/.editorconfig | 15 - .../discord-php/.github/FUNDING.yml | 2 - .../.github/ISSUE_TEMPLATE/bug_report.md | 39 - .../.github/ISSUE_TEMPLATE/config.yml | 4 - .../.github/ISSUE_TEMPLATE/feature_request.md | 22 - .../discord-php/.github/dependabot.yml | 11 - .../discord-php/.github/workflows/docs.yml | 36 - .../discord-php/.github/workflows/unit.yml | 41 - vendor/team-reflex/discord-php/.gitignore | 31 - .../discord-php/.php-cs-fixer.dist.php | 102 - vendor/team-reflex/discord-php/.phplint.yml | 7 - vendor/team-reflex/discord-php/CHANGELOG.md | 384 -- .../team-reflex/discord-php/CONTRIBUTING.md | 3 - vendor/team-reflex/discord-php/LICENSE.md | 21 - vendor/team-reflex/discord-php/README.md | 106 - .../team-reflex/discord-php/V6_CONVERSION.md | 110 - .../team-reflex/discord-php/V7_CONVERSION.md | 100 - vendor/team-reflex/discord-php/composer.json | 65 - .../team-reflex/discord-php/docs/.gitignore | 6 - vendor/team-reflex/discord-php/docs/README.md | 17 - .../discord-php/docs/gatsby-browser.js | 1 - .../discord-php/docs/gatsby-config.js | 89 - .../discord-php/docs/gatsby-node.js | 55 - .../team-reflex/discord-php/docs/package.json | 33 - .../docs/src/components/NodeList.js | 45 - .../discord-php/docs/src/components/api.js | 114 - .../docs/src/components/api.module.css | 164 - .../docs/src/components/index-page.js | 40 - .../docs/src/components/layout.css | 167 - .../docs/src/components/layout.module.css | 29 - .../docs/src/components/template.js | 41 - .../docs/src/pages/api/00_intro.md | 75 - .../discord-php/docs/src/pages/api/01_faq.md | 39 - .../docs/src/pages/api/02_basics.md | 156 - .../docs/src/pages/api/03_events/00_events.md | 17 - .../api/03_events/01_application_commands.md | 13 - .../api/03_events/02_auto_moderations.md | 53 - .../src/pages/api/03_events/03_channels.md | 128 - .../docs/src/pages/api/03_events/04_guilds.md | 312 -- .../src/pages/api/03_events/05_invites.md | 35 - .../pages/api/03_events/06_interactions.md | 18 - .../src/pages/api/03_events/07_messages.md | 124 - .../src/pages/api/03_events/08_presences.md | 39 - .../pages/api/03_events/09_stage_instances.md | 35 - .../docs/src/pages/api/03_events/10_voices.md | 29 - .../src/pages/api/03_events/11_webhooks.md | 26 - .../docs/src/pages/api/04_repositories.md | 90 - .../docs/src/pages/api/05_parts/00_parts.md | 54 - .../docs/src/pages/api/05_parts/01_guild.md | 131 - .../docs/src/pages/api/05_parts/02_channel.md | 363 -- .../docs/src/pages/api/05_parts/03_member.md | 199 - .../docs/src/pages/api/05_parts/04_message.md | 235 - .../docs/src/pages/api/05_parts/05_user.md | 89 - .../docs/src/pages/api/06_collection.md | 233 - .../docs/src/pages/api/07_permissions.md | 111 - .../docs/src/pages/api/08_message_builder.md | 118 - .../docs/src/pages/api/09_components.md | 167 - .../docs/src/pages/api/10_interactions.md | 54 - .../discord-php/docs/src/utils/index.js | 5 - .../discord-php/docs/src/utils/typography.js | 6 - .../discord-php/docs/static/favicon.ico | Bin 1150 -> 0 bytes .../docs/static/reference/index.html | 3 - .../discord-php/examples/browser.php | 66 - .../team-reflex/discord-php/examples/ping.php | 51 - .../team-reflex/discord-php/guide/basics.rst | 105 - .../discord-php/guide/collection.rst | 258 - .../discord-php/guide/components.rst | 218 - .../guide/events/application_commands.rst | 15 - .../guide/events/auto_moderations.rst | 59 - .../discord-php/guide/events/channels.rst | 143 - .../discord-php/guide/events/guilds.rst | 331 -- .../discord-php/guide/events/index.rst | 32 - .../discord-php/guide/events/interactions.rst | 20 - .../discord-php/guide/events/invites.rst | 39 - .../discord-php/guide/events/messages.rst | 124 - .../discord-php/guide/events/presences.rst | 44 - .../guide/events/stage_instances.rst | 40 - .../discord-php/guide/events/voices.rst | 33 - .../discord-php/guide/events/webhooks.rst | 27 - vendor/team-reflex/discord-php/guide/faq.rst | 43 - .../team-reflex/discord-php/guide/index.rst | 92 - .../discord-php/guide/interactions.rst | 85 - .../discord-php/guide/message_builder.rst | 123 - .../discord-php/guide/parts/channel.rst | 487 -- .../discord-php/guide/parts/guild.rst | 184 - .../discord-php/guide/parts/index.rst | 64 - .../discord-php/guide/parts/member.rst | 271 - .../discord-php/guide/parts/message.rst | 322 -- .../discord-php/guide/parts/user.rst | 128 - .../discord-php/guide/permissions.rst | 123 - .../discord-php/guide/repositories.rst | 106 - .../team-reflex/discord-php/phpdoc.dist.xml | 27 - vendor/team-reflex/discord-php/phpunit.xml | 27 - .../Discord/Builders/CommandAttributes.php | 300 - .../src/Discord/Builders/CommandBuilder.php | 123 - .../Discord/Builders/Components/ActionRow.php | 119 - .../Discord/Builders/Components/Button.php | 470 -- .../Builders/Components/ChannelSelect.php | 60 - .../Discord/Builders/Components/Component.php | 47 - .../Builders/Components/MentionableSelect.php | 29 - .../Discord/Builders/Components/Option.php | 249 - .../Builders/Components/RoleSelect.php | 29 - .../Builders/Components/SelectMenu.php | 535 -- .../Builders/Components/StringSelect.php | 93 - .../Discord/Builders/Components/TextInput.php | 354 -- .../Builders/Components/UserSelect.php | 29 - .../src/Discord/Builders/MessageBuilder.php | 775 --- .../src/Discord/CommandClient/Command.php | 320 -- .../discord-php/src/Discord/Discord.php | 1748 ------ .../src/Discord/DiscordCommandClient.php | 485 -- .../Exceptions/BufferTimedOutException.php | 30 - .../Exceptions/DCANotFoundException.php | 21 - .../Exceptions/FFmpegNotFoundException.php | 21 - .../Exceptions/FileNotFoundException.php | 21 - .../Discord/Exceptions/IntentException.php | 21 - .../Exceptions/InvalidOverwriteException.php | 19 - .../Exceptions/LibSodiumNotFoundException.php | 21 - .../Exceptions/OpusNotFoundException.php | 21 - .../Exceptions/OutdatedDCAException.php | 21 - .../Exceptions/PartRequestFailedException.php | 24 - .../src/Discord/Factory/Factory.php | 95 - .../src/Discord/Helpers/BigInt.php | 218 - .../src/Discord/Helpers/Buffer.php | 209 - .../src/Discord/Helpers/CacheConfig.php | 89 - .../src/Discord/Helpers/CacheWrapper.php | 512 -- .../src/Discord/Helpers/Collection.php | 44 - .../Discord/Helpers/CollectionInterface.php | 51 - .../src/Discord/Helpers/CollectionTrait.php | 464 -- .../Discord/Helpers/LegacyCacheWrapper.php | 207 - .../src/Discord/Helpers/Multipart.php | 139 - .../src/Discord/Helpers/RegisteredCommand.php | 220 - .../src/Discord/Parts/Channel/Attachment.php | 51 - .../src/Discord/Parts/Channel/Channel.php | 1592 ------ .../Discord/Parts/Channel/Forum/Reaction.php | 36 - .../src/Discord/Parts/Channel/Forum/Tag.php | 43 - .../src/Discord/Parts/Channel/Invite.php | 304 - .../src/Discord/Parts/Channel/Message.php | 1185 ---- .../src/Discord/Parts/Channel/Overwrite.php | 113 - .../src/Discord/Parts/Channel/Poll.php | 140 - .../src/Discord/Parts/Channel/Poll/Poll.php | 173 - .../Discord/Parts/Channel/Poll/PollAnswer.php | 180 - .../Parts/Channel/Poll/PollAnswerCount.php | 37 - .../Discord/Parts/Channel/Poll/PollMedia.php | 96 - .../Parts/Channel/Poll/PollResults.php | 45 - .../src/Discord/Parts/Channel/Reaction.php | 295 - .../Discord/Parts/Channel/StageInstance.php | 125 - .../src/Discord/Parts/Channel/Webhook.php | 276 - .../src/Discord/Parts/Embed/Author.php | 39 - .../src/Discord/Parts/Embed/Embed.php | 608 -- .../src/Discord/Parts/Embed/Field.php | 47 - .../src/Discord/Parts/Embed/Footer.php | 37 - .../src/Discord/Parts/Embed/Image.php | 40 - .../src/Discord/Parts/Embed/Video.php | 39 - .../Discord/Parts/Guild/AuditLog/AuditLog.php | 225 - .../Discord/Parts/Guild/AuditLog/Entry.php | 140 - .../Discord/Parts/Guild/AuditLog/Options.php | 55 - .../Parts/Guild/AutoModeration/Action.php | 66 - .../Guild/AutoModeration/ActionMetadata.php | 47 - .../Parts/Guild/AutoModeration/Rule.php | 224 - .../src/Discord/Parts/Guild/Ban.php | 98 - .../Parts/Guild/CommandPermissions.php | 105 - .../src/Discord/Parts/Guild/Emoji.php | 159 - .../src/Discord/Parts/Guild/Guild.php | 1665 ------ .../src/Discord/Parts/Guild/GuildTemplate.php | 220 - .../src/Discord/Parts/Guild/Integration.php | 164 - .../src/Discord/Parts/Guild/Role.php | 186 - .../Discord/Parts/Guild/ScheduledEvent.php | 323 -- .../src/Discord/Parts/Guild/Sound.php | 127 - .../src/Discord/Parts/Guild/Sticker.php | 177 - .../Discord/Parts/Guild/WelcomeChannel.php | 51 - .../src/Discord/Parts/Guild/WelcomeScreen.php | 52 - .../src/Discord/Parts/Guild/Widget.php | 128 - .../Parts/Interactions/Command/Choice.php | 123 - .../Parts/Interactions/Command/Command.php | 189 - .../Parts/Interactions/Command/Option.php | 436 -- .../Parts/Interactions/Command/Permission.php | 41 - .../Parts/Interactions/Interaction.php | 631 --- .../Parts/Interactions/Request/Component.php | 110 - .../Interactions/Request/InteractionData.php | 116 - .../Parts/Interactions/Request/Option.php | 71 - .../Parts/Interactions/Request/Resolved.php | 220 - .../src/Discord/Parts/OAuth/Application.php | 258 - .../discord-php/src/Discord/Parts/Part.php | 109 - .../src/Discord/Parts/PartInterface.php | 57 - .../src/Discord/Parts/PartTrait.php | 494 -- .../Parts/Permissions/ChannelPermission.php | 49 - .../Discord/Parts/Permissions/Permission.php | 258 - .../Parts/Permissions/RolePermission.php | 61 - .../src/Discord/Parts/Thread/Member.php | 120 - .../src/Discord/Parts/Thread/Thread.php | 907 --- .../src/Discord/Parts/User/Activity.php | 149 - .../src/Discord/Parts/User/Client.php | 183 - .../src/Discord/Parts/User/Member.php | 866 --- .../src/Discord/Parts/User/User.php | 319 -- .../AutoModerationActionExecution.php | 152 - .../Parts/WebSockets/MessageInteraction.php | 90 - .../Parts/WebSockets/MessageReaction.php | 271 - .../Parts/WebSockets/PresenceUpdate.php | 176 - .../Discord/Parts/WebSockets/TypingStart.php | 140 - .../Parts/WebSockets/VoiceServerUpdate.php | 49 - .../Parts/WebSockets/VoiceStateUpdate.php | 147 - .../Discord/Repository/AbstractRepository.php | 51 - .../AbstractRepositoryInterface.php | 64 - .../Repository/AbstractRepositoryTrait.php | 790 --- .../Repository/Channel/InviteRepository.php | 48 - .../Repository/Channel/MessageRepository.php | 57 - .../Channel/OverwriteRepository.php | 45 - .../Channel/PollAnswerRepository.php | 46 - .../Repository/Channel/ReactionRepository.php | 68 - .../Channel/StageInstanceRepository.php | 49 - .../Repository/Channel/ThreadRepository.php | 174 - .../Channel/VoiceMemberRepository.php | 47 - .../Channel/WebhookMessageRepository.php | 48 - .../Repository/Channel/WebhookRepository.php | 48 - .../Discord/Repository/EmojiRepository.php | 82 - .../Guild/AutoModerationRuleRepository.php | 49 - .../Repository/Guild/BanRepository.php | 136 - .../Repository/Guild/ChannelRepository.php | 49 - .../Guild/CommandPermissionsRepository.php | 59 - .../Repository/Guild/EmojiRepository.php | 49 - .../Guild/GuildCommandRepository.php | 60 - .../Guild/GuildTemplateRepository.php | 79 - .../Guild/IntegrationRepository.php | 46 - .../Repository/Guild/InviteRepository.php | 47 - .../Repository/Guild/MemberRepository.php | 107 - .../Repository/Guild/RoleRepository.php | 49 - .../Guild/ScheduledEventRepository.php | 85 - .../Repository/Guild/SoundRepository.php | 79 - .../Repository/Guild/StickerRepository.php | 49 - .../Discord/Repository/GuildRepository.php | 69 - .../Interaction/GlobalCommandRepository.php | 49 - .../Repository/PrivateChannelRepository.php | 43 - .../Discord/Repository/SoundRepository.php | 52 - .../Repository/Thread/MemberRepository.php | 61 - .../src/Discord/Repository/UserRepository.php | 43 - .../discord-php/src/Discord/Voice/Buffer.php | 186 - .../discord-php/src/Discord/Voice/OggPage.php | 142 - .../src/Discord/Voice/OggStream.php | 143 - .../src/Discord/Voice/OpusHead.php | 135 - .../src/Discord/Voice/OpusTags.php | 66 - .../src/Discord/Voice/RecieveStream.php | 282 - .../src/Discord/Voice/VoiceClient.php | 1774 ------ .../src/Discord/Voice/VoicePacket.php | 235 - .../src/Discord/WebSockets/Event.php | 206 - .../ApplicationCommandPermissionsUpdate.php | 61 - .../Events/AutoModerationActionExecution.php | 36 - .../Events/AutoModerationRuleCreate.php | 40 - .../Events/AutoModerationRuleDelete.php | 43 - .../Events/AutoModerationRuleUpdate.php | 53 - .../WebSockets/Events/ChannelCreate.php | 44 - .../WebSockets/Events/ChannelDelete.php | 42 - .../WebSockets/Events/ChannelPinsUpdate.php | 31 - .../WebSockets/Events/ChannelUpdate.php | 60 - .../Events/GuildAuditLogEntryCreate.php | 34 - .../Discord/WebSockets/Events/GuildBanAdd.php | 42 - .../WebSockets/Events/GuildBanRemove.php | 44 - .../Discord/WebSockets/Events/GuildCreate.php | 148 - .../Discord/WebSockets/Events/GuildDelete.php | 30 - .../WebSockets/Events/GuildEmojisUpdate.php | 59 - .../Events/GuildIntegrationsUpdate.php | 30 - .../WebSockets/Events/GuildMemberAdd.php | 43 - .../WebSockets/Events/GuildMemberRemove.php | 50 - .../WebSockets/Events/GuildMemberUpdate.php | 55 - .../WebSockets/Events/GuildRoleCreate.php | 40 - .../WebSockets/Events/GuildRoleDelete.php | 38 - .../WebSockets/Events/GuildRoleUpdate.php | 54 - .../Events/GuildScheduledEventCreate.php | 44 - .../Events/GuildScheduledEventDelete.php | 47 - .../Events/GuildScheduledEventUpdate.php | 57 - .../Events/GuildScheduledEventUserAdd.php | 31 - .../Events/GuildScheduledEventUserRemove.php | 31 - .../Events/GuildSoundboardSoundCreate.php | 48 - .../Events/GuildSoundboardSoundDelete.php | 44 - .../Events/GuildSoundboardSoundUpdate.php | 57 - .../Events/GuildSoundboardSoundsUpdate.php | 49 - .../WebSockets/Events/GuildStickersUpdate.php | 58 - .../Discord/WebSockets/Events/GuildUpdate.php | 44 - .../WebSockets/Events/IntegrationCreate.php | 44 - .../WebSockets/Events/IntegrationDelete.php | 41 - .../WebSockets/Events/IntegrationUpdate.php | 57 - .../WebSockets/Events/InteractionCreate.php | 107 - .../WebSockets/Events/InviteCreate.php | 56 - .../WebSockets/Events/InviteDelete.php | 49 - .../WebSockets/Events/MessageCreate.php | 98 - .../WebSockets/Events/MessageDelete.php | 69 - .../WebSockets/Events/MessageDeleteBulk.php | 38 - .../WebSockets/Events/MessagePollVoteAdd.php | 68 - .../Events/MessagePollVoteRemove.php | 61 - .../WebSockets/Events/MessageReactionAdd.php | 83 - .../Events/MessageReactionRemove.php | 73 - .../Events/MessageReactionRemoveAll.php | 60 - .../Events/MessageReactionRemoveEmoji.php | 60 - .../WebSockets/Events/MessageUpdate.php | 95 - .../WebSockets/Events/PresenceUpdate.php | 50 - .../WebSockets/Events/SoundboardSounds.php | 49 - .../WebSockets/Events/StageInstanceCreate.php | 44 - .../WebSockets/Events/StageInstanceDelete.php | 47 - .../WebSockets/Events/StageInstanceUpdate.php | 59 - .../WebSockets/Events/ThreadCreate.php | 53 - .../WebSockets/Events/ThreadDelete.php | 39 - .../WebSockets/Events/ThreadListSync.php | 63 - .../WebSockets/Events/ThreadMemberUpdate.php | 46 - .../WebSockets/Events/ThreadMembersUpdate.php | 62 - .../WebSockets/Events/ThreadUpdate.php | 56 - .../Discord/WebSockets/Events/TypingStart.php | 45 - .../Discord/WebSockets/Events/UserUpdate.php | 41 - .../WebSockets/Events/VoiceServerUpdate.php | 33 - .../WebSockets/Events/VoiceStateUpdate.php | 77 - .../WebSockets/Events/WebhooksUpdate.php | 48 - .../src/Discord/WebSockets/Handlers.php | 188 - .../src/Discord/WebSockets/Intents.php | 274 - .../discord-php/src/Discord/WebSockets/Op.php | 212 - .../discord-php/src/Discord/functions.php | 366 -- .../discord-php/tests/CollectionsTest.php | 294 - .../discord-php/tests/DiscordSingleton.php | 113 - .../discord-php/tests/DiscordTest.php | 47 - .../discord-php/tests/DiscordTestCase.php | 34 - .../discord-php/tests/FunctionsTest.php | 231 - .../tests/Parts/Channel/ChannelTest.php | 279 - .../Channel/Message/EmbedMessageTest.php | 77 - .../Channel/Message/EmptyMessageTest.php | 258 - .../Parts/Channel/Message/MessageTest.php | 54 - .../Channel/Message/RemoveReactionTest.php | 104 - .../tests/Parts/Embed/EmbedTest.php | 72 - .../discord-php/tests/bootstrap.php | 18 - .../discord-php/tests/functions.php | 70 - vendor/trafficcophp/bytebuffer/.gitignore | 4 - vendor/trafficcophp/bytebuffer/.travis.yml | 12 - vendor/trafficcophp/bytebuffer/README.md | 57 - vendor/trafficcophp/bytebuffer/composer.json | 20 - vendor/trafficcophp/bytebuffer/composer.lock | 5 - .../trafficcophp/bytebuffer/phpunit.xml.dist | 22 - .../ByteBuffer/AbstractBuffer.php | 9 - .../src/TrafficCophp/ByteBuffer/Buffer.php | 147 - .../src/TrafficCophp/ByteBuffer/LengthMap.php | 27 - .../ByteBuffer/ReadableBuffer.php | 12 - .../ByteBuffer/WriteableBuffer.php | 12 - .../TrafficCophp/ByteBuffer/BufferTest.php | 146 - 2076 files changed, 220001 deletions(-) delete mode 100644 vendor/autoload.php delete mode 100755 vendor/bin/carbon delete mode 100644 vendor/carbonphp/carbon-doctrine-types/LICENSE delete mode 100644 vendor/carbonphp/carbon-doctrine-types/README.md delete mode 100644 vendor/carbonphp/carbon-doctrine-types/composer.json delete mode 100644 vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/CarbonDoctrineType.php delete mode 100644 vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/CarbonImmutableType.php delete mode 100644 vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/CarbonType.php delete mode 100644 vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/CarbonTypeConverter.php delete mode 100644 vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/DateTimeDefaultPrecision.php delete mode 100644 vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/DateTimeImmutableType.php delete mode 100644 vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/DateTimeType.php delete mode 100644 vendor/composer/ClassLoader.php delete mode 100644 vendor/composer/InstalledVersions.php delete mode 100644 vendor/composer/LICENSE delete mode 100644 vendor/composer/autoload_classmap.php delete mode 100644 vendor/composer/autoload_files.php delete mode 100644 vendor/composer/autoload_namespaces.php delete mode 100644 vendor/composer/autoload_psr4.php delete mode 100644 vendor/composer/autoload_real.php delete mode 100644 vendor/composer/autoload_static.php delete mode 100644 vendor/composer/installed.json delete mode 100644 vendor/composer/installed.php delete mode 100644 vendor/composer/platform_check.php delete mode 100644 vendor/dantsu/php-image-editor/.github/FUNDING.yml delete mode 100644 vendor/dantsu/php-image-editor/.gitignore delete mode 100644 vendor/dantsu/php-image-editor/LICENSE delete mode 100644 vendor/dantsu/php-image-editor/README.md delete mode 100644 vendor/dantsu/php-image-editor/composer.json delete mode 100644 vendor/dantsu/php-image-editor/docs/classes/DantSu/PHPImageEditor/Image.md delete mode 100644 vendor/dantsu/php-image-editor/docs/index.md delete mode 100644 vendor/dantsu/php-image-editor/src/Geometry2D.php delete mode 100644 vendor/dantsu/php-image-editor/src/Image.php delete mode 100644 vendor/dantsu/php-image-editor/src/samples/resources/font.ttf delete mode 100644 vendor/dantsu/php-image-editor/src/samples/resources/photo.jpg delete mode 100644 vendor/dantsu/php-image-editor/src/samples/resources/sample1.png delete mode 100644 vendor/dantsu/php-image-editor/src/samples/resources/sample2.jpg delete mode 100644 vendor/dantsu/php-image-editor/src/samples/resources/sample5_base.png delete mode 100644 vendor/dantsu/php-image-editor/src/samples/resources/sample5_mask.png delete mode 100644 vendor/dantsu/php-image-editor/src/samples/resources/watermark.png delete mode 100644 vendor/dantsu/php-image-editor/src/samples/sample1.php delete mode 100644 vendor/dantsu/php-image-editor/src/samples/sample2.php delete mode 100644 vendor/dantsu/php-image-editor/src/samples/sample3.php delete mode 100644 vendor/dantsu/php-image-editor/src/samples/sample4.php delete mode 100644 vendor/dantsu/php-image-editor/src/samples/sample5.php delete mode 100644 vendor/dantsu/php-image-editor/src/samples/sample6.php delete mode 100644 vendor/dantsu/php-osm-static-api/.github/FUNDING.yml delete mode 100644 vendor/dantsu/php-osm-static-api/.gitignore delete mode 100644 vendor/dantsu/php-osm-static-api/LICENSE delete mode 100644 vendor/dantsu/php-osm-static-api/README.md delete mode 100644 vendor/dantsu/php-osm-static-api/composer.json delete mode 100644 vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/Circle.md delete mode 100644 vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/Interfaces/Draw.md delete mode 100644 vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/LatLng.md delete mode 100644 vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/Line.md delete mode 100644 vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/MapData.md delete mode 100644 vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/Markers.md delete mode 100644 vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/OpenStreetMap.md delete mode 100644 vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/Polygon.md delete mode 100644 vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/TileLayer.md delete mode 100644 vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/Utils/GeographicConverter.md delete mode 100644 vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/XY.md delete mode 100644 vendor/dantsu/php-osm-static-api/docs/index.md delete mode 100644 vendor/dantsu/php-osm-static-api/src/Circle.php delete mode 100644 vendor/dantsu/php-osm-static-api/src/Interfaces/Draw.php delete mode 100644 vendor/dantsu/php-osm-static-api/src/LatLng.php delete mode 100644 vendor/dantsu/php-osm-static-api/src/Line.php delete mode 100644 vendor/dantsu/php-osm-static-api/src/MapData.php delete mode 100644 vendor/dantsu/php-osm-static-api/src/Markers.php delete mode 100644 vendor/dantsu/php-osm-static-api/src/OpenStreetMap.php delete mode 100644 vendor/dantsu/php-osm-static-api/src/Polygon.php delete mode 100644 vendor/dantsu/php-osm-static-api/src/TileLayer.php delete mode 100644 vendor/dantsu/php-osm-static-api/src/Utils/GeographicConverter.php delete mode 100644 vendor/dantsu/php-osm-static-api/src/XY.php delete mode 100644 vendor/dantsu/php-osm-static-api/src/resources/font.ttf delete mode 100644 vendor/dantsu/php-osm-static-api/src/samples/resources/marker.png delete mode 100644 vendor/dantsu/php-osm-static-api/src/samples/resources/marker2.png delete mode 100644 vendor/dantsu/php-osm-static-api/src/samples/resources/sample1.png delete mode 100644 vendor/dantsu/php-osm-static-api/src/samples/resources/sample4.png delete mode 100644 vendor/dantsu/php-osm-static-api/src/samples/sample1.php delete mode 100644 vendor/dantsu/php-osm-static-api/src/samples/sample2.php delete mode 100644 vendor/dantsu/php-osm-static-api/src/samples/sample3.php delete mode 100644 vendor/dantsu/php-osm-static-api/src/samples/sample4.php delete mode 100644 vendor/discord-php/http/.gitignore delete mode 100644 vendor/discord-php/http/.php-cs-fixer.dist.php delete mode 100644 vendor/discord-php/http/LICENSE delete mode 100644 vendor/discord-php/http/README.md delete mode 100644 vendor/discord-php/http/composer.json delete mode 100644 vendor/discord-php/http/examples/file-upload.php delete mode 100644 vendor/discord-php/http/phpunit.xml delete mode 100644 vendor/discord-php/http/src/Discord/Bucket.php delete mode 100644 vendor/discord-php/http/src/Discord/DriverInterface.php delete mode 100644 vendor/discord-php/http/src/Discord/Drivers/Guzzle.php delete mode 100644 vendor/discord-php/http/src/Discord/Drivers/React.php delete mode 100644 vendor/discord-php/http/src/Discord/Endpoint.php delete mode 100644 vendor/discord-php/http/src/Discord/Exceptions/BadRequestException.php delete mode 100644 vendor/discord-php/http/src/Discord/Exceptions/ContentTooLongException.php delete mode 100644 vendor/discord-php/http/src/Discord/Exceptions/InvalidTokenException.php delete mode 100644 vendor/discord-php/http/src/Discord/Exceptions/MethodNotAllowedException.php delete mode 100644 vendor/discord-php/http/src/Discord/Exceptions/NoPermissionsException.php delete mode 100644 vendor/discord-php/http/src/Discord/Exceptions/NotFoundException.php delete mode 100644 vendor/discord-php/http/src/Discord/Exceptions/RateLimitException.php delete mode 100644 vendor/discord-php/http/src/Discord/Exceptions/RequestFailedException.php delete mode 100644 vendor/discord-php/http/src/Discord/Http.php delete mode 100644 vendor/discord-php/http/src/Discord/Multipart/MultipartBody.php delete mode 100644 vendor/discord-php/http/src/Discord/Multipart/MultipartField.php delete mode 100644 vendor/discord-php/http/src/Discord/RateLimit.php delete mode 100644 vendor/discord-php/http/src/Discord/Request.php delete mode 100644 vendor/discord-php/http/tests/Discord/DriverInterfaceTest.php delete mode 100644 vendor/discord-php/http/tests/Discord/EndpointTest.php delete mode 100644 vendor/discord-php/http/tests/Discord/Multipart/MultipartTest.php delete mode 100644 vendor/discord-php/http/tests/Discord/RequestTest.php delete mode 100644 vendor/discord-php/http/tests/Drivers/GuzzleTest.php delete mode 100644 vendor/discord-php/http/tests/Drivers/ReactTest.php delete mode 100644 vendor/discord-php/http/tests/Drivers/_server.php delete mode 100644 vendor/discord/interactions/.gitignore delete mode 100644 vendor/discord/interactions/README.md delete mode 100644 vendor/discord/interactions/composer.json delete mode 100644 vendor/discord/interactions/discord/Interaction.php delete mode 100644 vendor/discord/interactions/discord/InteractionResponseFlags.php delete mode 100644 vendor/discord/interactions/discord/InteractionResponseType.php delete mode 100644 vendor/discord/interactions/discord/InteractionType.php delete mode 100644 vendor/discord/interactions/examples/simple_example.php delete mode 100644 vendor/evenement/evenement/.gitattributes delete mode 100644 vendor/evenement/evenement/LICENSE delete mode 100644 vendor/evenement/evenement/README.md delete mode 100644 vendor/evenement/evenement/composer.json delete mode 100644 vendor/evenement/evenement/src/EventEmitter.php delete mode 100644 vendor/evenement/evenement/src/EventEmitterInterface.php delete mode 100644 vendor/evenement/evenement/src/EventEmitterTrait.php delete mode 100644 vendor/fig/http-message-util/.gitignore delete mode 100644 vendor/fig/http-message-util/CHANGELOG.md delete mode 100644 vendor/fig/http-message-util/LICENSE delete mode 100644 vendor/fig/http-message-util/README.md delete mode 100644 vendor/fig/http-message-util/composer.json delete mode 100644 vendor/fig/http-message-util/src/RequestMethodInterface.php delete mode 100644 vendor/fig/http-message-util/src/StatusCodeInterface.php delete mode 100644 vendor/guzzlehttp/guzzle/CHANGELOG.md delete mode 100644 vendor/guzzlehttp/guzzle/LICENSE delete mode 100644 vendor/guzzlehttp/guzzle/README.md delete mode 100644 vendor/guzzlehttp/guzzle/UPGRADING.md delete mode 100644 vendor/guzzlehttp/guzzle/composer.json delete mode 100644 vendor/guzzlehttp/guzzle/src/BodySummarizer.php delete mode 100644 vendor/guzzlehttp/guzzle/src/BodySummarizerInterface.php delete mode 100644 vendor/guzzlehttp/guzzle/src/Client.php delete mode 100644 vendor/guzzlehttp/guzzle/src/ClientInterface.php delete mode 100644 vendor/guzzlehttp/guzzle/src/ClientTrait.php delete mode 100644 vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php delete mode 100644 vendor/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php delete mode 100644 vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php delete mode 100644 vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php delete mode 100644 vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php delete mode 100644 vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php delete mode 100644 vendor/guzzlehttp/guzzle/src/Exception/ClientException.php delete mode 100644 vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php delete mode 100644 vendor/guzzlehttp/guzzle/src/Exception/GuzzleException.php delete mode 100644 vendor/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php delete mode 100644 vendor/guzzlehttp/guzzle/src/Exception/RequestException.php delete mode 100644 vendor/guzzlehttp/guzzle/src/Exception/ServerException.php delete mode 100644 vendor/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php delete mode 100644 vendor/guzzlehttp/guzzle/src/Exception/TransferException.php delete mode 100644 vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php delete mode 100644 vendor/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php delete mode 100644 vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php delete mode 100644 vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php delete mode 100644 vendor/guzzlehttp/guzzle/src/Handler/EasyHandle.php delete mode 100644 vendor/guzzlehttp/guzzle/src/Handler/HeaderProcessor.php delete mode 100644 vendor/guzzlehttp/guzzle/src/Handler/MockHandler.php delete mode 100644 vendor/guzzlehttp/guzzle/src/Handler/Proxy.php delete mode 100644 vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php delete mode 100644 vendor/guzzlehttp/guzzle/src/HandlerStack.php delete mode 100644 vendor/guzzlehttp/guzzle/src/MessageFormatter.php delete mode 100644 vendor/guzzlehttp/guzzle/src/MessageFormatterInterface.php delete mode 100644 vendor/guzzlehttp/guzzle/src/Middleware.php delete mode 100644 vendor/guzzlehttp/guzzle/src/Pool.php delete mode 100644 vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php delete mode 100644 vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php delete mode 100644 vendor/guzzlehttp/guzzle/src/RequestOptions.php delete mode 100644 vendor/guzzlehttp/guzzle/src/RetryMiddleware.php delete mode 100644 vendor/guzzlehttp/guzzle/src/TransferStats.php delete mode 100644 vendor/guzzlehttp/guzzle/src/Utils.php delete mode 100644 vendor/guzzlehttp/guzzle/src/functions.php delete mode 100644 vendor/guzzlehttp/guzzle/src/functions_include.php delete mode 100644 vendor/guzzlehttp/promises/CHANGELOG.md delete mode 100644 vendor/guzzlehttp/promises/LICENSE delete mode 100644 vendor/guzzlehttp/promises/README.md delete mode 100644 vendor/guzzlehttp/promises/composer.json delete mode 100644 vendor/guzzlehttp/promises/src/AggregateException.php delete mode 100644 vendor/guzzlehttp/promises/src/CancellationException.php delete mode 100644 vendor/guzzlehttp/promises/src/Coroutine.php delete mode 100644 vendor/guzzlehttp/promises/src/Create.php delete mode 100644 vendor/guzzlehttp/promises/src/Each.php delete mode 100644 vendor/guzzlehttp/promises/src/EachPromise.php delete mode 100644 vendor/guzzlehttp/promises/src/FulfilledPromise.php delete mode 100644 vendor/guzzlehttp/promises/src/Is.php delete mode 100644 vendor/guzzlehttp/promises/src/Promise.php delete mode 100644 vendor/guzzlehttp/promises/src/PromiseInterface.php delete mode 100644 vendor/guzzlehttp/promises/src/PromisorInterface.php delete mode 100644 vendor/guzzlehttp/promises/src/RejectedPromise.php delete mode 100644 vendor/guzzlehttp/promises/src/RejectionException.php delete mode 100644 vendor/guzzlehttp/promises/src/TaskQueue.php delete mode 100644 vendor/guzzlehttp/promises/src/TaskQueueInterface.php delete mode 100644 vendor/guzzlehttp/promises/src/Utils.php delete mode 100644 vendor/guzzlehttp/psr7/CHANGELOG.md delete mode 100644 vendor/guzzlehttp/psr7/LICENSE delete mode 100644 vendor/guzzlehttp/psr7/README.md delete mode 100644 vendor/guzzlehttp/psr7/composer.json delete mode 100644 vendor/guzzlehttp/psr7/src/AppendStream.php delete mode 100644 vendor/guzzlehttp/psr7/src/BufferStream.php delete mode 100644 vendor/guzzlehttp/psr7/src/CachingStream.php delete mode 100644 vendor/guzzlehttp/psr7/src/DroppingStream.php delete mode 100644 vendor/guzzlehttp/psr7/src/Exception/MalformedUriException.php delete mode 100644 vendor/guzzlehttp/psr7/src/FnStream.php delete mode 100644 vendor/guzzlehttp/psr7/src/Header.php delete mode 100644 vendor/guzzlehttp/psr7/src/HttpFactory.php delete mode 100644 vendor/guzzlehttp/psr7/src/InflateStream.php delete mode 100644 vendor/guzzlehttp/psr7/src/LazyOpenStream.php delete mode 100644 vendor/guzzlehttp/psr7/src/LimitStream.php delete mode 100644 vendor/guzzlehttp/psr7/src/Message.php delete mode 100644 vendor/guzzlehttp/psr7/src/MessageTrait.php delete mode 100644 vendor/guzzlehttp/psr7/src/MimeType.php delete mode 100644 vendor/guzzlehttp/psr7/src/MultipartStream.php delete mode 100644 vendor/guzzlehttp/psr7/src/NoSeekStream.php delete mode 100644 vendor/guzzlehttp/psr7/src/PumpStream.php delete mode 100644 vendor/guzzlehttp/psr7/src/Query.php delete mode 100644 vendor/guzzlehttp/psr7/src/Request.php delete mode 100644 vendor/guzzlehttp/psr7/src/Response.php delete mode 100644 vendor/guzzlehttp/psr7/src/Rfc7230.php delete mode 100644 vendor/guzzlehttp/psr7/src/ServerRequest.php delete mode 100644 vendor/guzzlehttp/psr7/src/Stream.php delete mode 100644 vendor/guzzlehttp/psr7/src/StreamDecoratorTrait.php delete mode 100644 vendor/guzzlehttp/psr7/src/StreamWrapper.php delete mode 100644 vendor/guzzlehttp/psr7/src/UploadedFile.php delete mode 100644 vendor/guzzlehttp/psr7/src/Uri.php delete mode 100644 vendor/guzzlehttp/psr7/src/UriComparator.php delete mode 100644 vendor/guzzlehttp/psr7/src/UriNormalizer.php delete mode 100644 vendor/guzzlehttp/psr7/src/UriResolver.php delete mode 100644 vendor/guzzlehttp/psr7/src/Utils.php delete mode 100644 vendor/monolog/monolog/CHANGELOG.md delete mode 100644 vendor/monolog/monolog/LICENSE delete mode 100644 vendor/monolog/monolog/README.md delete mode 100644 vendor/monolog/monolog/composer.json delete mode 100644 vendor/monolog/monolog/src/Monolog/Attribute/AsMonologProcessor.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Attribute/WithMonologChannel.php delete mode 100644 vendor/monolog/monolog/src/Monolog/DateTimeImmutable.php delete mode 100644 vendor/monolog/monolog/src/Monolog/ErrorHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Formatter/ChromePHPFormatter.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Formatter/ElasticaFormatter.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Formatter/ElasticsearchFormatter.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Formatter/FormatterInterface.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Formatter/GelfMessageFormatter.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Formatter/GoogleCloudLoggingFormatter.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Formatter/LogmaticFormatter.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Formatter/LogstashFormatter.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Formatter/SyslogFormatter.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/AbstractHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/AbstractSyslogHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/AmqpHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/BufferHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/CubeHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/Curl/Util.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/DynamoDbHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/ElasticaHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/ElasticsearchHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/ErrorLogHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/FallbackGroupHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/FilterHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ActivationStrategyInterface.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/FirePHPHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/FleepHookHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/FormattableHandlerInterface.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/FormattableHandlerTrait.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/GelfHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/GroupHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/Handler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/HandlerInterface.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/HandlerWrapper.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/InsightOpsHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/LogEntriesHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/LogglyHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/LogmaticHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/MailHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/MandrillHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/MissingExtensionException.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/NoopHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/NullHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/OverflowHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/ProcessHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/ProcessableHandlerInterface.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/ProcessableHandlerTrait.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/PsrHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/PushoverHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/RedisHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/RedisPubSubHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/RollbarHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/SamplingHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/SendGridHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/SlackHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/SocketHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/SqsHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/SymfonyMailerHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/SyslogHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/SyslogUdp/UdpSocket.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/SyslogUdpHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/TelegramBotHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/TestHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/WebRequestRecognizerTrait.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/JsonSerializableDateTimeImmutable.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Level.php delete mode 100644 vendor/monolog/monolog/src/Monolog/LogRecord.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Logger.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Processor/ClosureContextProcessor.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Processor/GitProcessor.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Processor/HostnameProcessor.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Processor/LoadAverageProcessor.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Processor/MemoryUsageProcessor.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Processor/ProcessorInterface.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Processor/TagProcessor.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Processor/UidProcessor.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Processor/WebProcessor.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Registry.php delete mode 100644 vendor/monolog/monolog/src/Monolog/ResettableInterface.php delete mode 100644 vendor/monolog/monolog/src/Monolog/SignalHandler.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Test/TestCase.php delete mode 100644 vendor/monolog/monolog/src/Monolog/Utils.php delete mode 100644 vendor/nesbot/carbon/.phpstorm.meta.php delete mode 100644 vendor/nesbot/carbon/LICENSE delete mode 100755 vendor/nesbot/carbon/bin/carbon delete mode 100644 vendor/nesbot/carbon/bin/carbon.bat delete mode 100644 vendor/nesbot/carbon/composer.json delete mode 100644 vendor/nesbot/carbon/extension.neon delete mode 100644 vendor/nesbot/carbon/lazy/Carbon/MessageFormatter/MessageFormatterMapperStrongType.php delete mode 100644 vendor/nesbot/carbon/lazy/Carbon/MessageFormatter/MessageFormatterMapperWeakType.php delete mode 100644 vendor/nesbot/carbon/lazy/Carbon/ProtectedDatePeriod.php delete mode 100644 vendor/nesbot/carbon/lazy/Carbon/TranslatorStrongType.php delete mode 100644 vendor/nesbot/carbon/lazy/Carbon/TranslatorWeakType.php delete mode 100644 vendor/nesbot/carbon/lazy/Carbon/UnprotectedDatePeriod.php delete mode 100644 vendor/nesbot/carbon/readme.md delete mode 100644 vendor/nesbot/carbon/sponsors.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/AbstractTranslator.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Callback.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Carbon.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/CarbonConverterInterface.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/CarbonImmutable.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/CarbonInterface.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/CarbonInterval.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/CarbonPeriod.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/CarbonPeriodImmutable.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/CarbonTimeZone.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Cli/Invoker.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Exceptions/BadComparisonUnitException.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Exceptions/BadFluentConstructorException.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Exceptions/BadFluentSetterException.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Exceptions/BadMethodCallException.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Exceptions/EndLessPeriodException.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Exceptions/Exception.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Exceptions/ImmutableException.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidArgumentException.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidCastException.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidDateException.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidFormatException.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidIntervalException.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidPeriodDateException.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidPeriodParameterException.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidTimeZoneException.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidTypeException.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Exceptions/NotACarbonClassException.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Exceptions/NotAPeriodException.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Exceptions/NotLocaleAwareException.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Exceptions/OutOfRangeException.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Exceptions/ParseErrorException.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Exceptions/RuntimeException.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Exceptions/UnitException.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Exceptions/UnitNotConfiguredException.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Exceptions/UnknownGetterException.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Exceptions/UnknownMethodException.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Exceptions/UnknownSetterException.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Exceptions/UnknownUnitException.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Exceptions/UnreachableException.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Exceptions/UnsupportedUnitException.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Factory.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/FactoryImmutable.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/aa.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/aa_DJ.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/aa_ER.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/aa_ER@saaho.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/aa_ET.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/af.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/af_NA.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/af_ZA.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/agq.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/agr.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/agr_PE.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ak.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ak_GH.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/am.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/am_ET.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/an.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/an_ES.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/anp.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/anp_IN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ar.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ar_AE.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ar_BH.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ar_DJ.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ar_DZ.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ar_EG.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ar_EH.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ar_ER.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ar_IL.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ar_IN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ar_IQ.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ar_JO.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ar_KM.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ar_KW.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ar_LB.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ar_LY.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ar_MA.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ar_MR.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ar_OM.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ar_PS.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ar_QA.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ar_SA.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ar_SD.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ar_SO.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ar_SS.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ar_SY.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ar_Shakl.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ar_TD.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ar_TN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ar_YE.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/as.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/as_IN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/asa.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ast.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ast_ES.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ayc.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ayc_PE.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/az.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/az_AZ.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/az_Cyrl.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/az_IR.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/az_Latn.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/bas.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/be.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/be_BY.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/be_BY@latin.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/bem.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/bem_ZM.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ber.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ber_DZ.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ber_MA.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/bez.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/bg.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/bg_BG.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/bhb.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/bhb_IN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/bho.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/bho_IN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/bi.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/bi_VU.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/bm.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/bn.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/bn_BD.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/bn_IN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/bo.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/bo_CN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/bo_IN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/br.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/br_FR.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/brx.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/brx_IN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/bs.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/bs_BA.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/bs_Cyrl.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/bs_Latn.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/byn.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/byn_ER.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ca.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ca_AD.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ca_ES.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ca_ES_Valencia.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ca_FR.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ca_IT.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ccp.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ccp_IN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ce.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ce_RU.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/cgg.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/chr.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/chr_US.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ckb.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/cmn.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/cmn_TW.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/crh.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/crh_UA.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/cs.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/cs_CZ.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/csb.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/csb_PL.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/cu.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/cv.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/cv_RU.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/cy.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/cy_GB.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/da.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/da_DK.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/da_GL.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/dav.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/de.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/de_AT.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/de_BE.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/de_CH.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/de_DE.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/de_IT.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/de_LI.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/de_LU.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/dje.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/doi.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/doi_IN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/dsb.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/dsb_DE.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/dua.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/dv.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/dv_MV.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/dyo.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/dz.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/dz_BT.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ebu.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ee.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ee_TG.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/el.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/el_CY.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/el_GR.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_001.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_150.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_AG.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_AI.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_AS.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_AT.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_AU.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_BB.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_BE.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_BI.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_BM.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_BS.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_BW.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_BZ.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_CA.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_CC.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_CH.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_CK.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_CM.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_CX.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_CY.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_DE.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_DG.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_DK.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_DM.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_ER.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_FI.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_FJ.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_FK.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_FM.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_GB.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_GD.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_GG.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_GH.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_GI.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_GM.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_GU.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_GY.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_HK.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_IE.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_IL.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_IM.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_IN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_IO.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_ISO.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_JE.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_JM.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_KE.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_KI.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_KN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_KY.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_LC.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_LR.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_LS.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_MG.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_MH.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_MO.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_MP.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_MS.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_MT.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_MU.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_MW.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_MY.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_NA.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_NF.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_NG.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_NL.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_NR.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_NU.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_NZ.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_PG.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_PH.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_PK.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_PN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_PR.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_PW.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_RW.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_SB.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_SC.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_SD.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_SE.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_SG.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_SH.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_SI.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_SL.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_SS.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_SX.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_SZ.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_TC.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_TK.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_TO.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_TT.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_TV.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_TZ.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_UG.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_UM.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_US.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_US_Posix.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_VC.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_VG.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_VI.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_VU.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_WS.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_ZA.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_ZM.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/en_ZW.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/eo.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/es.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/es_419.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/es_AR.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/es_BO.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/es_BR.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/es_BZ.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/es_CL.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/es_CO.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/es_CR.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/es_CU.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/es_DO.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/es_EA.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/es_EC.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/es_ES.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/es_GQ.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/es_GT.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/es_HN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/es_IC.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/es_MX.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/es_NI.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/es_PA.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/es_PE.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/es_PH.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/es_PR.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/es_PY.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/es_SV.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/es_US.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/es_UY.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/es_VE.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/et.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/et_EE.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/eu.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/eu_ES.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ewo.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fa.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fa_AF.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fa_IR.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ff.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ff_CM.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ff_GN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ff_MR.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ff_SN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fi.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fi_FI.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fil.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fil_PH.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fo.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fo_DK.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fo_FO.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_BE.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_BF.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_BI.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_BJ.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_BL.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_CA.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_CD.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_CF.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_CG.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_CH.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_CI.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_CM.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_DJ.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_DZ.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_FR.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_GA.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_GF.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_GN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_GP.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_GQ.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_HT.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_KM.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_LU.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_MA.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_MC.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_MF.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_MG.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_ML.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_MQ.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_MR.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_MU.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_NC.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_NE.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_PF.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_PM.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_RE.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_RW.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_SC.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_SN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_SY.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_TD.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_TG.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_TN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_VU.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_WF.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fr_YT.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fur.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fur_IT.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fy.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fy_DE.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/fy_NL.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ga.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ga_IE.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/gd.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/gd_GB.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/gez.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/gez_ER.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/gez_ET.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/gl.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/gl_ES.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/gom.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/gom_Latn.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/gsw.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/gsw_CH.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/gsw_FR.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/gsw_LI.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/gu.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/gu_IN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/guz.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/gv.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/gv_GB.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ha.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ha_GH.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ha_NE.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ha_NG.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/hak.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/hak_TW.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/haw.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/he.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/he_IL.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/hi.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/hi_IN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/hif.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/hif_FJ.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/hne.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/hne_IN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/hr.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/hr_BA.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/hr_HR.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/hsb.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/hsb_DE.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ht.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ht_HT.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/hu.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/hu_HU.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/hy.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/hy_AM.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/i18n.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ia.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ia_FR.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/id.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/id_ID.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ig.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ig_NG.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ii.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ik.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ik_CA.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/in.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/is.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/is_IS.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/it.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/it_CH.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/it_IT.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/it_SM.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/it_VA.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/iu.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/iu_CA.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/iw.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ja.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ja_JP.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/jgo.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/jmc.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/jv.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ka.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ka_GE.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/kab.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/kab_DZ.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/kam.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/kde.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/kea.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/khq.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ki.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/kk.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/kk_KZ.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/kkj.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/kl.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/kl_GL.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/kln.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/km.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/km_KH.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/kn.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/kn_IN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ko.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ko_KP.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ko_KR.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/kok.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/kok_IN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ks.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ks_IN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ks_IN@devanagari.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ksb.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ksf.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ksh.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ku.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ku_TR.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/kw.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/kw_GB.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ky.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ky_KG.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/lag.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/lb.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/lb_LU.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/lg.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/lg_UG.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/li.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/li_NL.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/lij.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/lij_IT.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/lkt.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ln.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ln_AO.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ln_CD.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ln_CF.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ln_CG.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/lo.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/lo_LA.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/lrc.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/lrc_IQ.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/lt.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/lt_LT.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/lu.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/luo.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/luy.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/lv.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/lv_LV.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/lzh.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/lzh_TW.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/mag.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/mag_IN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/mai.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/mai_IN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/mas.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/mas_TZ.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/mer.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/mfe.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/mfe_MU.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/mg.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/mg_MG.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/mgh.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/mgo.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/mhr.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/mhr_RU.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/mi.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/mi_NZ.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/miq.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/miq_NI.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/mjw.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/mjw_IN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/mk.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/mk_MK.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ml.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ml_IN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/mn.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/mn_MN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/mni.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/mni_IN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/mo.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/mr.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/mr_IN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ms.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ms_BN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ms_MY.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ms_SG.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/mt.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/mt_MT.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/mua.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/my.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/my_MM.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/mzn.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/nan.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/nan_TW.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/nan_TW@latin.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/naq.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/nb.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/nb_NO.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/nb_SJ.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/nd.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/nds.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/nds_DE.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/nds_NL.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ne.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ne_IN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ne_NP.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/nhn.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/nhn_MX.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/niu.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/niu_NU.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/nl.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/nl_AW.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/nl_BE.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/nl_BQ.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/nl_CW.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/nl_NL.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/nl_SR.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/nl_SX.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/nmg.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/nn.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/nn_NO.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/nnh.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/no.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/nr.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/nr_ZA.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/nso.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/nso_ZA.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/nus.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/nyn.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/oc.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/oc_FR.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/om.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/om_ET.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/om_KE.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/or.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/or_IN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/os.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/os_RU.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/pa.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/pa_Arab.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/pa_Guru.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/pa_IN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/pa_PK.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/pap.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/pap_AW.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/pap_CW.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/pl.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/pl_PL.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/prg.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ps.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ps_AF.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/pt.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/pt_AO.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/pt_BR.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/pt_CH.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/pt_CV.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/pt_GQ.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/pt_GW.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/pt_LU.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/pt_MO.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/pt_MZ.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/pt_PT.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/pt_ST.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/pt_TL.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/qu.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/qu_BO.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/qu_EC.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/quz.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/quz_PE.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/raj.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/raj_IN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/rm.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/rn.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ro.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ro_MD.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ro_RO.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/rof.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ru.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ru_BY.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ru_KG.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ru_KZ.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ru_MD.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ru_RU.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ru_UA.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/rw.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/rw_RW.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/rwk.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sa.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sa_IN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sah.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sah_RU.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/saq.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sat.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sat_IN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sbp.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sc.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sc_IT.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sd.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sd_IN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sd_IN@devanagari.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/se.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/se_FI.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/se_NO.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/se_SE.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/seh.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ses.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sg.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sgs.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sgs_LT.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sh.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/shi.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/shi_Latn.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/shi_Tfng.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/shn.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/shn_MM.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/shs.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/shs_CA.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/si.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/si_LK.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sid.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sid_ET.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sk.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sk_SK.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sl.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sl_SI.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sm.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sm_WS.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/smn.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sn.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/so.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/so_DJ.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/so_ET.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/so_KE.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/so_SO.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sq.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sq_AL.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sq_MK.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sq_XK.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sr.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sr_Cyrl.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sr_Cyrl_BA.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sr_Cyrl_ME.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sr_Cyrl_XK.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sr_Latn.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sr_Latn_BA.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sr_Latn_ME.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sr_Latn_XK.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sr_ME.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sr_RS.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sr_RS@latin.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ss.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ss_ZA.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/st.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/st_ZA.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sv.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sv_AX.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sv_FI.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sv_SE.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sw.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sw_CD.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sw_KE.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sw_TZ.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/sw_UG.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/szl.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/szl_PL.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ta.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ta_IN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ta_LK.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ta_MY.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ta_SG.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/tcy.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/tcy_IN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/te.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/te_IN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/teo.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/teo_KE.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/tet.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/tg.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/tg_TJ.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/th.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/th_TH.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/the.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/the_NP.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ti.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ti_ER.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ti_ET.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/tig.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/tig_ER.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/tk.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/tk_TM.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/tl.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/tl_PH.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/tlh.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/tn.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/tn_ZA.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/to.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/to_TO.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/tpi.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/tpi_PG.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/tr.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/tr_CY.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/tr_TR.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ts.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ts_ZA.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/tt.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/tt_RU.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/tt_RU@iqtelif.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/twq.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/tzl.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/tzm.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/tzm_Latn.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ug.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ug_CN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/uk.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/uk_UA.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/unm.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/unm_US.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ur.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ur_IN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ur_PK.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/uz.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/uz_Arab.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/uz_Cyrl.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/uz_Latn.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/uz_UZ.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/uz_UZ@cyrillic.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/vai.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/vai_Latn.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/vai_Vaii.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ve.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/ve_ZA.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/vi.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/vi_VN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/vo.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/vun.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/wa.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/wa_BE.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/wae.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/wae_CH.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/wal.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/wal_ET.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/wo.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/wo_SN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/xh.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/xh_ZA.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/xog.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/yav.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/yi.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/yi_US.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/yo.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/yo_BJ.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/yo_NG.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/yue.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/yue_HK.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/yue_Hans.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/yue_Hant.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/yuw.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/yuw_PG.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/zgh.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/zh.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/zh_CN.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/zh_HK.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/zh_Hans.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/zh_Hans_HK.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/zh_Hans_MO.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/zh_Hans_SG.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/zh_Hant.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/zh_Hant_HK.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/zh_Hant_MO.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/zh_Hant_TW.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/zh_MO.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/zh_SG.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/zh_TW.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/zh_YUE.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/zu.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Lang/zu_ZA.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Language.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Laravel/ServiceProvider.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/List/languages.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/List/regions.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/MessageFormatter/MessageFormatterMapper.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Month.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/PHPStan/MacroExtension.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/PHPStan/MacroMethodReflection.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Traits/Boundaries.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Traits/Cast.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Traits/Comparison.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Traits/Converter.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Traits/Creator.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Traits/Date.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Traits/DeprecatedPeriodProperties.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Traits/Difference.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Traits/IntervalRounding.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Traits/IntervalStep.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Traits/LocalFactory.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Traits/Localization.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Traits/Macro.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Traits/MagicParameter.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Traits/Mixin.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Traits/Modifiers.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Traits/Mutability.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Traits/ObjectInitialisation.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Traits/Options.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Traits/Rounding.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Traits/Serialization.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Traits/StaticLocalization.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Traits/StaticOptions.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Traits/Test.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Traits/Timestamp.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Traits/ToStringFormat.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Traits/Units.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Traits/Week.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Translator.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/TranslatorImmutable.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/TranslatorStrongTypeInterface.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/Unit.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/WeekDay.php delete mode 100644 vendor/nesbot/carbon/src/Carbon/WrapperClock.php delete mode 100644 vendor/psr/clock/CHANGELOG.md delete mode 100644 vendor/psr/clock/LICENSE delete mode 100644 vendor/psr/clock/README.md delete mode 100644 vendor/psr/clock/composer.json delete mode 100644 vendor/psr/clock/src/ClockInterface.php delete mode 100644 vendor/psr/http-client/CHANGELOG.md delete mode 100644 vendor/psr/http-client/LICENSE delete mode 100644 vendor/psr/http-client/README.md delete mode 100644 vendor/psr/http-client/composer.json delete mode 100644 vendor/psr/http-client/src/ClientExceptionInterface.php delete mode 100644 vendor/psr/http-client/src/ClientInterface.php delete mode 100644 vendor/psr/http-client/src/NetworkExceptionInterface.php delete mode 100644 vendor/psr/http-client/src/RequestExceptionInterface.php delete mode 100644 vendor/psr/http-factory/LICENSE delete mode 100644 vendor/psr/http-factory/README.md delete mode 100644 vendor/psr/http-factory/composer.json delete mode 100644 vendor/psr/http-factory/src/RequestFactoryInterface.php delete mode 100644 vendor/psr/http-factory/src/ResponseFactoryInterface.php delete mode 100644 vendor/psr/http-factory/src/ServerRequestFactoryInterface.php delete mode 100644 vendor/psr/http-factory/src/StreamFactoryInterface.php delete mode 100644 vendor/psr/http-factory/src/UploadedFileFactoryInterface.php delete mode 100644 vendor/psr/http-factory/src/UriFactoryInterface.php delete mode 100644 vendor/psr/http-message/CHANGELOG.md delete mode 100644 vendor/psr/http-message/LICENSE delete mode 100644 vendor/psr/http-message/README.md delete mode 100644 vendor/psr/http-message/composer.json delete mode 100644 vendor/psr/http-message/docs/PSR7-Interfaces.md delete mode 100644 vendor/psr/http-message/docs/PSR7-Usage.md delete mode 100644 vendor/psr/http-message/src/MessageInterface.php delete mode 100644 vendor/psr/http-message/src/RequestInterface.php delete mode 100644 vendor/psr/http-message/src/ResponseInterface.php delete mode 100644 vendor/psr/http-message/src/ServerRequestInterface.php delete mode 100644 vendor/psr/http-message/src/StreamInterface.php delete mode 100644 vendor/psr/http-message/src/UploadedFileInterface.php delete mode 100644 vendor/psr/http-message/src/UriInterface.php delete mode 100644 vendor/psr/log/LICENSE delete mode 100644 vendor/psr/log/README.md delete mode 100644 vendor/psr/log/composer.json delete mode 100644 vendor/psr/log/src/AbstractLogger.php delete mode 100644 vendor/psr/log/src/InvalidArgumentException.php delete mode 100644 vendor/psr/log/src/LogLevel.php delete mode 100644 vendor/psr/log/src/LoggerAwareInterface.php delete mode 100644 vendor/psr/log/src/LoggerAwareTrait.php delete mode 100644 vendor/psr/log/src/LoggerInterface.php delete mode 100644 vendor/psr/log/src/LoggerTrait.php delete mode 100644 vendor/psr/log/src/NullLogger.php delete mode 100644 vendor/psr/simple-cache/.editorconfig delete mode 100644 vendor/psr/simple-cache/LICENSE.md delete mode 100644 vendor/psr/simple-cache/README.md delete mode 100644 vendor/psr/simple-cache/composer.json delete mode 100644 vendor/psr/simple-cache/src/CacheException.php delete mode 100644 vendor/psr/simple-cache/src/CacheInterface.php delete mode 100644 vendor/psr/simple-cache/src/InvalidArgumentException.php delete mode 100644 vendor/ralouphie/getallheaders/LICENSE delete mode 100644 vendor/ralouphie/getallheaders/README.md delete mode 100644 vendor/ralouphie/getallheaders/composer.json delete mode 100644 vendor/ralouphie/getallheaders/src/getallheaders.php delete mode 100644 vendor/ratchet/pawl/.github/workflows/ci.yml delete mode 100644 vendor/ratchet/pawl/.gitignore delete mode 100644 vendor/ratchet/pawl/LICENSE delete mode 100644 vendor/ratchet/pawl/README.md delete mode 100644 vendor/ratchet/pawl/composer.json delete mode 100644 vendor/ratchet/pawl/phpunit.xml.dist delete mode 100644 vendor/ratchet/pawl/phpunit.xml.legacy delete mode 100644 vendor/ratchet/pawl/src/Connector.php delete mode 100755 vendor/ratchet/pawl/src/WebSocket.php delete mode 100644 vendor/ratchet/pawl/src/functions.php delete mode 100644 vendor/ratchet/pawl/src/functions_include.php delete mode 100644 vendor/ratchet/pawl/tests/autobahn/fuzzingserver.json delete mode 100644 vendor/ratchet/pawl/tests/autobahn/runner.php delete mode 100644 vendor/ratchet/pawl/tests/unit/ConnectorTest.php delete mode 100644 vendor/ratchet/pawl/tests/unit/RequestUriTest.php delete mode 100644 vendor/ratchet/rfc6455/.github/workflows/ci.yml delete mode 100644 vendor/ratchet/rfc6455/.gitignore delete mode 100644 vendor/ratchet/rfc6455/LICENSE delete mode 100644 vendor/ratchet/rfc6455/README.md delete mode 100644 vendor/ratchet/rfc6455/composer.json delete mode 100644 vendor/ratchet/rfc6455/phpunit.xml.dist delete mode 100644 vendor/ratchet/rfc6455/src/Handshake/ClientNegotiator.php delete mode 100644 vendor/ratchet/rfc6455/src/Handshake/InvalidPermessageDeflateOptionsException.php delete mode 100644 vendor/ratchet/rfc6455/src/Handshake/NegotiatorInterface.php delete mode 100644 vendor/ratchet/rfc6455/src/Handshake/PermessageDeflateOptions.php delete mode 100644 vendor/ratchet/rfc6455/src/Handshake/RequestVerifier.php delete mode 100644 vendor/ratchet/rfc6455/src/Handshake/ResponseVerifier.php delete mode 100644 vendor/ratchet/rfc6455/src/Handshake/ServerNegotiator.php delete mode 100644 vendor/ratchet/rfc6455/src/Messaging/CloseFrameChecker.php delete mode 100644 vendor/ratchet/rfc6455/src/Messaging/DataInterface.php delete mode 100644 vendor/ratchet/rfc6455/src/Messaging/Frame.php delete mode 100644 vendor/ratchet/rfc6455/src/Messaging/FrameInterface.php delete mode 100644 vendor/ratchet/rfc6455/src/Messaging/Message.php delete mode 100644 vendor/ratchet/rfc6455/src/Messaging/MessageBuffer.php delete mode 100644 vendor/ratchet/rfc6455/src/Messaging/MessageInterface.php delete mode 100644 vendor/ratchet/rfc6455/tests/AbResultsTest.php delete mode 100644 vendor/ratchet/rfc6455/tests/ab/clientRunner.php delete mode 100644 vendor/ratchet/rfc6455/tests/ab/docker_bootstrap.sh delete mode 100644 vendor/ratchet/rfc6455/tests/ab/fuzzingclient.json delete mode 100644 vendor/ratchet/rfc6455/tests/ab/fuzzingclient_skip_deflate.json delete mode 100644 vendor/ratchet/rfc6455/tests/ab/fuzzingserver.json delete mode 100644 vendor/ratchet/rfc6455/tests/ab/fuzzingserver_skip_deflate.json delete mode 100644 vendor/ratchet/rfc6455/tests/ab/run_ab_tests.sh delete mode 100644 vendor/ratchet/rfc6455/tests/ab/startServer.php delete mode 100644 vendor/ratchet/rfc6455/tests/bootstrap.php delete mode 100644 vendor/ratchet/rfc6455/tests/unit/Handshake/PermessageDeflateOptionsTest.php delete mode 100644 vendor/ratchet/rfc6455/tests/unit/Handshake/RequestVerifierTest.php delete mode 100644 vendor/ratchet/rfc6455/tests/unit/Handshake/ResponseVerifierTest.php delete mode 100644 vendor/ratchet/rfc6455/tests/unit/Handshake/ServerNegotiatorTest.php delete mode 100644 vendor/ratchet/rfc6455/tests/unit/Messaging/FrameTest.php delete mode 100644 vendor/ratchet/rfc6455/tests/unit/Messaging/MessageBufferTest.php delete mode 100644 vendor/ratchet/rfc6455/tests/unit/Messaging/MessageTest.php delete mode 100644 vendor/react/async/CHANGELOG.md delete mode 100644 vendor/react/async/LICENSE delete mode 100644 vendor/react/async/README.md delete mode 100644 vendor/react/async/composer.json delete mode 100644 vendor/react/async/src/FiberFactory.php delete mode 100644 vendor/react/async/src/FiberInterface.php delete mode 100644 vendor/react/async/src/FiberMap.php delete mode 100644 vendor/react/async/src/SimpleFiber.php delete mode 100644 vendor/react/async/src/functions.php delete mode 100644 vendor/react/async/src/functions_include.php delete mode 100644 vendor/react/cache/CHANGELOG.md delete mode 100644 vendor/react/cache/LICENSE delete mode 100644 vendor/react/cache/README.md delete mode 100644 vendor/react/cache/composer.json delete mode 100644 vendor/react/cache/src/ArrayCache.php delete mode 100644 vendor/react/cache/src/CacheInterface.php delete mode 100644 vendor/react/child-process/CHANGELOG.md delete mode 100644 vendor/react/child-process/LICENSE delete mode 100644 vendor/react/child-process/README.md delete mode 100644 vendor/react/child-process/composer.json delete mode 100644 vendor/react/child-process/src/Process.php delete mode 100644 vendor/react/datagram/CHANGELOG.md delete mode 100644 vendor/react/datagram/LICENSE delete mode 100644 vendor/react/datagram/README.md delete mode 100644 vendor/react/datagram/composer.json delete mode 100644 vendor/react/datagram/src/Buffer.php delete mode 100644 vendor/react/datagram/src/Factory.php delete mode 100644 vendor/react/datagram/src/Socket.php delete mode 100644 vendor/react/datagram/src/SocketInterface.php delete mode 100644 vendor/react/dns/CHANGELOG.md delete mode 100644 vendor/react/dns/LICENSE delete mode 100644 vendor/react/dns/README.md delete mode 100644 vendor/react/dns/composer.json delete mode 100644 vendor/react/dns/src/BadServerException.php delete mode 100644 vendor/react/dns/src/Config/Config.php delete mode 100644 vendor/react/dns/src/Config/HostsFile.php delete mode 100644 vendor/react/dns/src/Model/Message.php delete mode 100644 vendor/react/dns/src/Model/Record.php delete mode 100644 vendor/react/dns/src/Protocol/BinaryDumper.php delete mode 100644 vendor/react/dns/src/Protocol/Parser.php delete mode 100644 vendor/react/dns/src/Query/CachingExecutor.php delete mode 100644 vendor/react/dns/src/Query/CancellationException.php delete mode 100644 vendor/react/dns/src/Query/CoopExecutor.php delete mode 100644 vendor/react/dns/src/Query/ExecutorInterface.php delete mode 100644 vendor/react/dns/src/Query/FallbackExecutor.php delete mode 100644 vendor/react/dns/src/Query/HostsFileExecutor.php delete mode 100644 vendor/react/dns/src/Query/Query.php delete mode 100644 vendor/react/dns/src/Query/RetryExecutor.php delete mode 100644 vendor/react/dns/src/Query/SelectiveTransportExecutor.php delete mode 100644 vendor/react/dns/src/Query/TcpTransportExecutor.php delete mode 100644 vendor/react/dns/src/Query/TimeoutException.php delete mode 100644 vendor/react/dns/src/Query/TimeoutExecutor.php delete mode 100644 vendor/react/dns/src/Query/UdpTransportExecutor.php delete mode 100644 vendor/react/dns/src/RecordNotFoundException.php delete mode 100644 vendor/react/dns/src/Resolver/Factory.php delete mode 100644 vendor/react/dns/src/Resolver/Resolver.php delete mode 100644 vendor/react/dns/src/Resolver/ResolverInterface.php delete mode 100644 vendor/react/event-loop/CHANGELOG.md delete mode 100644 vendor/react/event-loop/LICENSE delete mode 100644 vendor/react/event-loop/README.md delete mode 100644 vendor/react/event-loop/composer.json delete mode 100644 vendor/react/event-loop/src/ExtEvLoop.php delete mode 100644 vendor/react/event-loop/src/ExtEventLoop.php delete mode 100644 vendor/react/event-loop/src/ExtLibevLoop.php delete mode 100644 vendor/react/event-loop/src/ExtLibeventLoop.php delete mode 100644 vendor/react/event-loop/src/ExtUvLoop.php delete mode 100644 vendor/react/event-loop/src/Factory.php delete mode 100644 vendor/react/event-loop/src/Loop.php delete mode 100644 vendor/react/event-loop/src/LoopInterface.php delete mode 100644 vendor/react/event-loop/src/SignalsHandler.php delete mode 100644 vendor/react/event-loop/src/StreamSelectLoop.php delete mode 100644 vendor/react/event-loop/src/Tick/FutureTickQueue.php delete mode 100644 vendor/react/event-loop/src/Timer/Timer.php delete mode 100644 vendor/react/event-loop/src/Timer/Timers.php delete mode 100644 vendor/react/event-loop/src/TimerInterface.php delete mode 100644 vendor/react/http/CHANGELOG.md delete mode 100644 vendor/react/http/LICENSE delete mode 100644 vendor/react/http/README.md delete mode 100644 vendor/react/http/composer.json delete mode 100644 vendor/react/http/src/Browser.php delete mode 100644 vendor/react/http/src/Client/Client.php delete mode 100644 vendor/react/http/src/HttpServer.php delete mode 100644 vendor/react/http/src/Io/AbstractMessage.php delete mode 100644 vendor/react/http/src/Io/AbstractRequest.php delete mode 100644 vendor/react/http/src/Io/BufferedBody.php delete mode 100644 vendor/react/http/src/Io/ChunkedDecoder.php delete mode 100644 vendor/react/http/src/Io/ChunkedEncoder.php delete mode 100644 vendor/react/http/src/Io/ClientConnectionManager.php delete mode 100644 vendor/react/http/src/Io/ClientRequestState.php delete mode 100644 vendor/react/http/src/Io/ClientRequestStream.php delete mode 100644 vendor/react/http/src/Io/Clock.php delete mode 100644 vendor/react/http/src/Io/CloseProtectionStream.php delete mode 100644 vendor/react/http/src/Io/EmptyBodyStream.php delete mode 100644 vendor/react/http/src/Io/HttpBodyStream.php delete mode 100644 vendor/react/http/src/Io/IniUtil.php delete mode 100644 vendor/react/http/src/Io/LengthLimitedStream.php delete mode 100644 vendor/react/http/src/Io/MiddlewareRunner.php delete mode 100644 vendor/react/http/src/Io/MultipartParser.php delete mode 100644 vendor/react/http/src/Io/PauseBufferStream.php delete mode 100644 vendor/react/http/src/Io/ReadableBodyStream.php delete mode 100644 vendor/react/http/src/Io/RequestHeaderParser.php delete mode 100644 vendor/react/http/src/Io/Sender.php delete mode 100644 vendor/react/http/src/Io/StreamingServer.php delete mode 100644 vendor/react/http/src/Io/Transaction.php delete mode 100644 vendor/react/http/src/Io/UploadedFile.php delete mode 100644 vendor/react/http/src/Message/Request.php delete mode 100644 vendor/react/http/src/Message/Response.php delete mode 100644 vendor/react/http/src/Message/ResponseException.php delete mode 100644 vendor/react/http/src/Message/ServerRequest.php delete mode 100644 vendor/react/http/src/Message/Uri.php delete mode 100644 vendor/react/http/src/Middleware/LimitConcurrentRequestsMiddleware.php delete mode 100644 vendor/react/http/src/Middleware/RequestBodyBufferMiddleware.php delete mode 100644 vendor/react/http/src/Middleware/RequestBodyParserMiddleware.php delete mode 100644 vendor/react/http/src/Middleware/StreamingRequestMiddleware.php delete mode 100644 vendor/react/http/src/Server.php delete mode 100644 vendor/react/promise/CHANGELOG.md delete mode 100644 vendor/react/promise/LICENSE delete mode 100644 vendor/react/promise/README.md delete mode 100644 vendor/react/promise/composer.json delete mode 100644 vendor/react/promise/src/Deferred.php delete mode 100644 vendor/react/promise/src/Exception/CompositeException.php delete mode 100644 vendor/react/promise/src/Exception/LengthException.php delete mode 100644 vendor/react/promise/src/Internal/CancellationQueue.php delete mode 100644 vendor/react/promise/src/Internal/FulfilledPromise.php delete mode 100644 vendor/react/promise/src/Internal/RejectedPromise.php delete mode 100644 vendor/react/promise/src/Promise.php delete mode 100644 vendor/react/promise/src/PromiseInterface.php delete mode 100644 vendor/react/promise/src/functions.php delete mode 100644 vendor/react/promise/src/functions_include.php delete mode 100644 vendor/react/socket/CHANGELOG.md delete mode 100644 vendor/react/socket/LICENSE delete mode 100644 vendor/react/socket/README.md delete mode 100644 vendor/react/socket/composer.json delete mode 100644 vendor/react/socket/src/Connection.php delete mode 100644 vendor/react/socket/src/ConnectionInterface.php delete mode 100644 vendor/react/socket/src/Connector.php delete mode 100644 vendor/react/socket/src/ConnectorInterface.php delete mode 100644 vendor/react/socket/src/DnsConnector.php delete mode 100644 vendor/react/socket/src/FdServer.php delete mode 100644 vendor/react/socket/src/FixedUriConnector.php delete mode 100644 vendor/react/socket/src/HappyEyeBallsConnectionBuilder.php delete mode 100644 vendor/react/socket/src/HappyEyeBallsConnector.php delete mode 100644 vendor/react/socket/src/LimitingServer.php delete mode 100644 vendor/react/socket/src/SecureConnector.php delete mode 100644 vendor/react/socket/src/SecureServer.php delete mode 100644 vendor/react/socket/src/Server.php delete mode 100644 vendor/react/socket/src/ServerInterface.php delete mode 100644 vendor/react/socket/src/SocketServer.php delete mode 100644 vendor/react/socket/src/StreamEncryption.php delete mode 100644 vendor/react/socket/src/TcpConnector.php delete mode 100644 vendor/react/socket/src/TcpServer.php delete mode 100644 vendor/react/socket/src/TimeoutConnector.php delete mode 100644 vendor/react/socket/src/UnixConnector.php delete mode 100644 vendor/react/socket/src/UnixServer.php delete mode 100644 vendor/react/stream/CHANGELOG.md delete mode 100644 vendor/react/stream/LICENSE delete mode 100644 vendor/react/stream/README.md delete mode 100644 vendor/react/stream/composer.json delete mode 100644 vendor/react/stream/src/CompositeStream.php delete mode 100644 vendor/react/stream/src/DuplexResourceStream.php delete mode 100644 vendor/react/stream/src/DuplexStreamInterface.php delete mode 100644 vendor/react/stream/src/ReadableResourceStream.php delete mode 100644 vendor/react/stream/src/ReadableStreamInterface.php delete mode 100644 vendor/react/stream/src/ThroughStream.php delete mode 100644 vendor/react/stream/src/Util.php delete mode 100644 vendor/react/stream/src/WritableResourceStream.php delete mode 100644 vendor/react/stream/src/WritableStreamInterface.php delete mode 100644 vendor/symfony/clock/CHANGELOG.md delete mode 100644 vendor/symfony/clock/Clock.php delete mode 100644 vendor/symfony/clock/ClockAwareTrait.php delete mode 100644 vendor/symfony/clock/ClockInterface.php delete mode 100644 vendor/symfony/clock/DatePoint.php delete mode 100644 vendor/symfony/clock/LICENSE delete mode 100644 vendor/symfony/clock/MockClock.php delete mode 100644 vendor/symfony/clock/MonotonicClock.php delete mode 100644 vendor/symfony/clock/NativeClock.php delete mode 100644 vendor/symfony/clock/README.md delete mode 100644 vendor/symfony/clock/Resources/now.php delete mode 100644 vendor/symfony/clock/Test/ClockSensitiveTrait.php delete mode 100644 vendor/symfony/clock/composer.json delete mode 100644 vendor/symfony/deprecation-contracts/CHANGELOG.md delete mode 100644 vendor/symfony/deprecation-contracts/LICENSE delete mode 100644 vendor/symfony/deprecation-contracts/README.md delete mode 100644 vendor/symfony/deprecation-contracts/composer.json delete mode 100644 vendor/symfony/deprecation-contracts/function.php delete mode 100644 vendor/symfony/options-resolver/CHANGELOG.md delete mode 100644 vendor/symfony/options-resolver/Debug/OptionsResolverIntrospector.php delete mode 100644 vendor/symfony/options-resolver/Exception/AccessException.php delete mode 100644 vendor/symfony/options-resolver/Exception/ExceptionInterface.php delete mode 100644 vendor/symfony/options-resolver/Exception/InvalidArgumentException.php delete mode 100644 vendor/symfony/options-resolver/Exception/InvalidOptionsException.php delete mode 100644 vendor/symfony/options-resolver/Exception/MissingOptionsException.php delete mode 100644 vendor/symfony/options-resolver/Exception/NoConfigurationException.php delete mode 100644 vendor/symfony/options-resolver/Exception/NoSuchOptionException.php delete mode 100644 vendor/symfony/options-resolver/Exception/OptionDefinitionException.php delete mode 100644 vendor/symfony/options-resolver/Exception/UndefinedOptionsException.php delete mode 100644 vendor/symfony/options-resolver/LICENSE delete mode 100644 vendor/symfony/options-resolver/OptionConfigurator.php delete mode 100644 vendor/symfony/options-resolver/Options.php delete mode 100644 vendor/symfony/options-resolver/OptionsResolver.php delete mode 100644 vendor/symfony/options-resolver/README.md delete mode 100644 vendor/symfony/options-resolver/composer.json delete mode 100644 vendor/symfony/polyfill-mbstring/LICENSE delete mode 100644 vendor/symfony/polyfill-mbstring/Mbstring.php delete mode 100644 vendor/symfony/polyfill-mbstring/README.md delete mode 100644 vendor/symfony/polyfill-mbstring/Resources/unidata/caseFolding.php delete mode 100644 vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php delete mode 100644 vendor/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php delete mode 100644 vendor/symfony/polyfill-mbstring/Resources/unidata/upperCase.php delete mode 100644 vendor/symfony/polyfill-mbstring/bootstrap.php delete mode 100644 vendor/symfony/polyfill-mbstring/bootstrap80.php delete mode 100644 vendor/symfony/polyfill-mbstring/composer.json delete mode 100644 vendor/symfony/polyfill-php83/LICENSE delete mode 100644 vendor/symfony/polyfill-php83/Php83.php delete mode 100644 vendor/symfony/polyfill-php83/README.md delete mode 100644 vendor/symfony/polyfill-php83/Resources/stubs/DateError.php delete mode 100644 vendor/symfony/polyfill-php83/Resources/stubs/DateException.php delete mode 100644 vendor/symfony/polyfill-php83/Resources/stubs/DateInvalidOperationException.php delete mode 100644 vendor/symfony/polyfill-php83/Resources/stubs/DateInvalidTimeZoneException.php delete mode 100644 vendor/symfony/polyfill-php83/Resources/stubs/DateMalformedIntervalStringException.php delete mode 100644 vendor/symfony/polyfill-php83/Resources/stubs/DateMalformedPeriodStringException.php delete mode 100644 vendor/symfony/polyfill-php83/Resources/stubs/DateMalformedStringException.php delete mode 100644 vendor/symfony/polyfill-php83/Resources/stubs/DateObjectError.php delete mode 100644 vendor/symfony/polyfill-php83/Resources/stubs/DateRangeError.php delete mode 100644 vendor/symfony/polyfill-php83/Resources/stubs/Override.php delete mode 100644 vendor/symfony/polyfill-php83/Resources/stubs/SQLite3Exception.php delete mode 100644 vendor/symfony/polyfill-php83/bootstrap.php delete mode 100644 vendor/symfony/polyfill-php83/bootstrap81.php delete mode 100644 vendor/symfony/polyfill-php83/composer.json delete mode 100644 vendor/symfony/translation-contracts/CHANGELOG.md delete mode 100644 vendor/symfony/translation-contracts/LICENSE delete mode 100644 vendor/symfony/translation-contracts/LocaleAwareInterface.php delete mode 100644 vendor/symfony/translation-contracts/README.md delete mode 100644 vendor/symfony/translation-contracts/Test/TranslatorTest.php delete mode 100644 vendor/symfony/translation-contracts/TranslatableInterface.php delete mode 100644 vendor/symfony/translation-contracts/TranslatorInterface.php delete mode 100644 vendor/symfony/translation-contracts/TranslatorTrait.php delete mode 100644 vendor/symfony/translation-contracts/composer.json delete mode 100644 vendor/symfony/translation/CHANGELOG.md delete mode 100644 vendor/symfony/translation/Catalogue/AbstractOperation.php delete mode 100644 vendor/symfony/translation/Catalogue/MergeOperation.php delete mode 100644 vendor/symfony/translation/Catalogue/OperationInterface.php delete mode 100644 vendor/symfony/translation/Catalogue/TargetOperation.php delete mode 100644 vendor/symfony/translation/CatalogueMetadataAwareInterface.php delete mode 100644 vendor/symfony/translation/Command/TranslationLintCommand.php delete mode 100644 vendor/symfony/translation/Command/TranslationPullCommand.php delete mode 100644 vendor/symfony/translation/Command/TranslationPushCommand.php delete mode 100644 vendor/symfony/translation/Command/TranslationTrait.php delete mode 100644 vendor/symfony/translation/Command/XliffLintCommand.php delete mode 100644 vendor/symfony/translation/DataCollector/TranslationDataCollector.php delete mode 100644 vendor/symfony/translation/DataCollectorTranslator.php delete mode 100644 vendor/symfony/translation/DependencyInjection/DataCollectorTranslatorPass.php delete mode 100644 vendor/symfony/translation/DependencyInjection/LoggingTranslatorPass.php delete mode 100644 vendor/symfony/translation/DependencyInjection/TranslationDumperPass.php delete mode 100644 vendor/symfony/translation/DependencyInjection/TranslationExtractorPass.php delete mode 100644 vendor/symfony/translation/DependencyInjection/TranslatorPass.php delete mode 100644 vendor/symfony/translation/DependencyInjection/TranslatorPathsPass.php delete mode 100644 vendor/symfony/translation/Dumper/CsvFileDumper.php delete mode 100644 vendor/symfony/translation/Dumper/DumperInterface.php delete mode 100644 vendor/symfony/translation/Dumper/FileDumper.php delete mode 100644 vendor/symfony/translation/Dumper/IcuResFileDumper.php delete mode 100644 vendor/symfony/translation/Dumper/IniFileDumper.php delete mode 100644 vendor/symfony/translation/Dumper/JsonFileDumper.php delete mode 100644 vendor/symfony/translation/Dumper/MoFileDumper.php delete mode 100644 vendor/symfony/translation/Dumper/PhpFileDumper.php delete mode 100644 vendor/symfony/translation/Dumper/PoFileDumper.php delete mode 100644 vendor/symfony/translation/Dumper/QtFileDumper.php delete mode 100644 vendor/symfony/translation/Dumper/XliffFileDumper.php delete mode 100644 vendor/symfony/translation/Dumper/YamlFileDumper.php delete mode 100644 vendor/symfony/translation/Exception/ExceptionInterface.php delete mode 100644 vendor/symfony/translation/Exception/IncompleteDsnException.php delete mode 100644 vendor/symfony/translation/Exception/InvalidArgumentException.php delete mode 100644 vendor/symfony/translation/Exception/InvalidResourceException.php delete mode 100644 vendor/symfony/translation/Exception/LogicException.php delete mode 100644 vendor/symfony/translation/Exception/MissingRequiredOptionException.php delete mode 100644 vendor/symfony/translation/Exception/NotFoundResourceException.php delete mode 100644 vendor/symfony/translation/Exception/ProviderException.php delete mode 100644 vendor/symfony/translation/Exception/ProviderExceptionInterface.php delete mode 100644 vendor/symfony/translation/Exception/RuntimeException.php delete mode 100644 vendor/symfony/translation/Exception/UnsupportedSchemeException.php delete mode 100644 vendor/symfony/translation/Extractor/AbstractFileExtractor.php delete mode 100644 vendor/symfony/translation/Extractor/ChainExtractor.php delete mode 100644 vendor/symfony/translation/Extractor/ExtractorInterface.php delete mode 100644 vendor/symfony/translation/Extractor/PhpAstExtractor.php delete mode 100644 vendor/symfony/translation/Extractor/Visitor/AbstractVisitor.php delete mode 100644 vendor/symfony/translation/Extractor/Visitor/ConstraintVisitor.php delete mode 100644 vendor/symfony/translation/Extractor/Visitor/TransMethodVisitor.php delete mode 100644 vendor/symfony/translation/Extractor/Visitor/TranslatableMessageVisitor.php delete mode 100644 vendor/symfony/translation/Formatter/IntlFormatter.php delete mode 100644 vendor/symfony/translation/Formatter/IntlFormatterInterface.php delete mode 100644 vendor/symfony/translation/Formatter/MessageFormatter.php delete mode 100644 vendor/symfony/translation/Formatter/MessageFormatterInterface.php delete mode 100644 vendor/symfony/translation/IdentityTranslator.php delete mode 100644 vendor/symfony/translation/LICENSE delete mode 100644 vendor/symfony/translation/Loader/ArrayLoader.php delete mode 100644 vendor/symfony/translation/Loader/CsvFileLoader.php delete mode 100644 vendor/symfony/translation/Loader/FileLoader.php delete mode 100644 vendor/symfony/translation/Loader/IcuDatFileLoader.php delete mode 100644 vendor/symfony/translation/Loader/IcuResFileLoader.php delete mode 100644 vendor/symfony/translation/Loader/IniFileLoader.php delete mode 100644 vendor/symfony/translation/Loader/JsonFileLoader.php delete mode 100644 vendor/symfony/translation/Loader/LoaderInterface.php delete mode 100644 vendor/symfony/translation/Loader/MoFileLoader.php delete mode 100644 vendor/symfony/translation/Loader/PhpFileLoader.php delete mode 100644 vendor/symfony/translation/Loader/PoFileLoader.php delete mode 100644 vendor/symfony/translation/Loader/QtFileLoader.php delete mode 100644 vendor/symfony/translation/Loader/XliffFileLoader.php delete mode 100644 vendor/symfony/translation/Loader/YamlFileLoader.php delete mode 100644 vendor/symfony/translation/LocaleSwitcher.php delete mode 100644 vendor/symfony/translation/LoggingTranslator.php delete mode 100644 vendor/symfony/translation/MessageCatalogue.php delete mode 100644 vendor/symfony/translation/MessageCatalogueInterface.php delete mode 100644 vendor/symfony/translation/MetadataAwareInterface.php delete mode 100644 vendor/symfony/translation/Provider/AbstractProviderFactory.php delete mode 100644 vendor/symfony/translation/Provider/Dsn.php delete mode 100644 vendor/symfony/translation/Provider/FilteringProvider.php delete mode 100644 vendor/symfony/translation/Provider/NullProvider.php delete mode 100644 vendor/symfony/translation/Provider/NullProviderFactory.php delete mode 100644 vendor/symfony/translation/Provider/ProviderFactoryInterface.php delete mode 100644 vendor/symfony/translation/Provider/ProviderInterface.php delete mode 100644 vendor/symfony/translation/Provider/TranslationProviderCollection.php delete mode 100644 vendor/symfony/translation/Provider/TranslationProviderCollectionFactory.php delete mode 100644 vendor/symfony/translation/PseudoLocalizationTranslator.php delete mode 100644 vendor/symfony/translation/README.md delete mode 100644 vendor/symfony/translation/Reader/TranslationReader.php delete mode 100644 vendor/symfony/translation/Reader/TranslationReaderInterface.php delete mode 100644 vendor/symfony/translation/Resources/bin/translation-status.php delete mode 100644 vendor/symfony/translation/Resources/data/parents.json delete mode 100644 vendor/symfony/translation/Resources/functions.php delete mode 100644 vendor/symfony/translation/Resources/schemas/xliff-core-1.2-transitional.xsd delete mode 100644 vendor/symfony/translation/Resources/schemas/xliff-core-2.0.xsd delete mode 100644 vendor/symfony/translation/Resources/schemas/xml.xsd delete mode 100644 vendor/symfony/translation/Test/AbstractProviderFactoryTestCase.php delete mode 100644 vendor/symfony/translation/Test/IncompleteDsnTestTrait.php delete mode 100644 vendor/symfony/translation/Test/ProviderFactoryTestCase.php delete mode 100644 vendor/symfony/translation/Test/ProviderTestCase.php delete mode 100644 vendor/symfony/translation/TranslatableMessage.php delete mode 100644 vendor/symfony/translation/Translator.php delete mode 100644 vendor/symfony/translation/TranslatorBag.php delete mode 100644 vendor/symfony/translation/TranslatorBagInterface.php delete mode 100644 vendor/symfony/translation/Util/ArrayConverter.php delete mode 100644 vendor/symfony/translation/Util/XliffUtils.php delete mode 100644 vendor/symfony/translation/Writer/TranslationWriter.php delete mode 100644 vendor/symfony/translation/Writer/TranslationWriterInterface.php delete mode 100644 vendor/symfony/translation/composer.json delete mode 100644 vendor/team-reflex/discord-php/.editorconfig delete mode 100644 vendor/team-reflex/discord-php/.github/FUNDING.yml delete mode 100644 vendor/team-reflex/discord-php/.github/ISSUE_TEMPLATE/bug_report.md delete mode 100644 vendor/team-reflex/discord-php/.github/ISSUE_TEMPLATE/config.yml delete mode 100644 vendor/team-reflex/discord-php/.github/ISSUE_TEMPLATE/feature_request.md delete mode 100644 vendor/team-reflex/discord-php/.github/dependabot.yml delete mode 100644 vendor/team-reflex/discord-php/.github/workflows/docs.yml delete mode 100644 vendor/team-reflex/discord-php/.github/workflows/unit.yml delete mode 100644 vendor/team-reflex/discord-php/.gitignore delete mode 100644 vendor/team-reflex/discord-php/.php-cs-fixer.dist.php delete mode 100644 vendor/team-reflex/discord-php/.phplint.yml delete mode 100644 vendor/team-reflex/discord-php/CHANGELOG.md delete mode 100644 vendor/team-reflex/discord-php/CONTRIBUTING.md delete mode 100644 vendor/team-reflex/discord-php/LICENSE.md delete mode 100644 vendor/team-reflex/discord-php/README.md delete mode 100644 vendor/team-reflex/discord-php/V6_CONVERSION.md delete mode 100644 vendor/team-reflex/discord-php/V7_CONVERSION.md delete mode 100644 vendor/team-reflex/discord-php/composer.json delete mode 100644 vendor/team-reflex/discord-php/docs/.gitignore delete mode 100644 vendor/team-reflex/discord-php/docs/README.md delete mode 100644 vendor/team-reflex/discord-php/docs/gatsby-browser.js delete mode 100644 vendor/team-reflex/discord-php/docs/gatsby-config.js delete mode 100644 vendor/team-reflex/discord-php/docs/gatsby-node.js delete mode 100644 vendor/team-reflex/discord-php/docs/package.json delete mode 100644 vendor/team-reflex/discord-php/docs/src/components/NodeList.js delete mode 100644 vendor/team-reflex/discord-php/docs/src/components/api.js delete mode 100644 vendor/team-reflex/discord-php/docs/src/components/api.module.css delete mode 100644 vendor/team-reflex/discord-php/docs/src/components/index-page.js delete mode 100644 vendor/team-reflex/discord-php/docs/src/components/layout.css delete mode 100644 vendor/team-reflex/discord-php/docs/src/components/layout.module.css delete mode 100644 vendor/team-reflex/discord-php/docs/src/components/template.js delete mode 100644 vendor/team-reflex/discord-php/docs/src/pages/api/00_intro.md delete mode 100644 vendor/team-reflex/discord-php/docs/src/pages/api/01_faq.md delete mode 100644 vendor/team-reflex/discord-php/docs/src/pages/api/02_basics.md delete mode 100644 vendor/team-reflex/discord-php/docs/src/pages/api/03_events/00_events.md delete mode 100644 vendor/team-reflex/discord-php/docs/src/pages/api/03_events/01_application_commands.md delete mode 100644 vendor/team-reflex/discord-php/docs/src/pages/api/03_events/02_auto_moderations.md delete mode 100644 vendor/team-reflex/discord-php/docs/src/pages/api/03_events/03_channels.md delete mode 100644 vendor/team-reflex/discord-php/docs/src/pages/api/03_events/04_guilds.md delete mode 100644 vendor/team-reflex/discord-php/docs/src/pages/api/03_events/05_invites.md delete mode 100644 vendor/team-reflex/discord-php/docs/src/pages/api/03_events/06_interactions.md delete mode 100644 vendor/team-reflex/discord-php/docs/src/pages/api/03_events/07_messages.md delete mode 100644 vendor/team-reflex/discord-php/docs/src/pages/api/03_events/08_presences.md delete mode 100644 vendor/team-reflex/discord-php/docs/src/pages/api/03_events/09_stage_instances.md delete mode 100644 vendor/team-reflex/discord-php/docs/src/pages/api/03_events/10_voices.md delete mode 100644 vendor/team-reflex/discord-php/docs/src/pages/api/03_events/11_webhooks.md delete mode 100644 vendor/team-reflex/discord-php/docs/src/pages/api/04_repositories.md delete mode 100644 vendor/team-reflex/discord-php/docs/src/pages/api/05_parts/00_parts.md delete mode 100644 vendor/team-reflex/discord-php/docs/src/pages/api/05_parts/01_guild.md delete mode 100644 vendor/team-reflex/discord-php/docs/src/pages/api/05_parts/02_channel.md delete mode 100644 vendor/team-reflex/discord-php/docs/src/pages/api/05_parts/03_member.md delete mode 100644 vendor/team-reflex/discord-php/docs/src/pages/api/05_parts/04_message.md delete mode 100644 vendor/team-reflex/discord-php/docs/src/pages/api/05_parts/05_user.md delete mode 100644 vendor/team-reflex/discord-php/docs/src/pages/api/06_collection.md delete mode 100644 vendor/team-reflex/discord-php/docs/src/pages/api/07_permissions.md delete mode 100644 vendor/team-reflex/discord-php/docs/src/pages/api/08_message_builder.md delete mode 100644 vendor/team-reflex/discord-php/docs/src/pages/api/09_components.md delete mode 100644 vendor/team-reflex/discord-php/docs/src/pages/api/10_interactions.md delete mode 100644 vendor/team-reflex/discord-php/docs/src/utils/index.js delete mode 100644 vendor/team-reflex/discord-php/docs/src/utils/typography.js delete mode 100644 vendor/team-reflex/discord-php/docs/static/favicon.ico delete mode 100644 vendor/team-reflex/discord-php/docs/static/reference/index.html delete mode 100644 vendor/team-reflex/discord-php/examples/browser.php delete mode 100644 vendor/team-reflex/discord-php/examples/ping.php delete mode 100644 vendor/team-reflex/discord-php/guide/basics.rst delete mode 100644 vendor/team-reflex/discord-php/guide/collection.rst delete mode 100644 vendor/team-reflex/discord-php/guide/components.rst delete mode 100644 vendor/team-reflex/discord-php/guide/events/application_commands.rst delete mode 100644 vendor/team-reflex/discord-php/guide/events/auto_moderations.rst delete mode 100644 vendor/team-reflex/discord-php/guide/events/channels.rst delete mode 100644 vendor/team-reflex/discord-php/guide/events/guilds.rst delete mode 100644 vendor/team-reflex/discord-php/guide/events/index.rst delete mode 100644 vendor/team-reflex/discord-php/guide/events/interactions.rst delete mode 100644 vendor/team-reflex/discord-php/guide/events/invites.rst delete mode 100644 vendor/team-reflex/discord-php/guide/events/messages.rst delete mode 100644 vendor/team-reflex/discord-php/guide/events/presences.rst delete mode 100644 vendor/team-reflex/discord-php/guide/events/stage_instances.rst delete mode 100644 vendor/team-reflex/discord-php/guide/events/voices.rst delete mode 100644 vendor/team-reflex/discord-php/guide/events/webhooks.rst delete mode 100644 vendor/team-reflex/discord-php/guide/faq.rst delete mode 100644 vendor/team-reflex/discord-php/guide/index.rst delete mode 100644 vendor/team-reflex/discord-php/guide/interactions.rst delete mode 100644 vendor/team-reflex/discord-php/guide/message_builder.rst delete mode 100644 vendor/team-reflex/discord-php/guide/parts/channel.rst delete mode 100644 vendor/team-reflex/discord-php/guide/parts/guild.rst delete mode 100644 vendor/team-reflex/discord-php/guide/parts/index.rst delete mode 100644 vendor/team-reflex/discord-php/guide/parts/member.rst delete mode 100644 vendor/team-reflex/discord-php/guide/parts/message.rst delete mode 100644 vendor/team-reflex/discord-php/guide/parts/user.rst delete mode 100644 vendor/team-reflex/discord-php/guide/permissions.rst delete mode 100644 vendor/team-reflex/discord-php/guide/repositories.rst delete mode 100644 vendor/team-reflex/discord-php/phpdoc.dist.xml delete mode 100644 vendor/team-reflex/discord-php/phpunit.xml delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Builders/CommandAttributes.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Builders/CommandBuilder.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Builders/Components/ActionRow.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Builders/Components/Button.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Builders/Components/ChannelSelect.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Builders/Components/Component.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Builders/Components/MentionableSelect.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Builders/Components/Option.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Builders/Components/RoleSelect.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Builders/Components/SelectMenu.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Builders/Components/StringSelect.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Builders/Components/TextInput.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Builders/Components/UserSelect.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Builders/MessageBuilder.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/CommandClient/Command.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Discord.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/DiscordCommandClient.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Exceptions/BufferTimedOutException.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Exceptions/DCANotFoundException.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Exceptions/FFmpegNotFoundException.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Exceptions/FileNotFoundException.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Exceptions/IntentException.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Exceptions/InvalidOverwriteException.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Exceptions/LibSodiumNotFoundException.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Exceptions/OpusNotFoundException.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Exceptions/OutdatedDCAException.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Exceptions/PartRequestFailedException.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Factory/Factory.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Helpers/BigInt.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Helpers/Buffer.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Helpers/CacheConfig.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Helpers/CacheWrapper.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Helpers/Collection.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Helpers/CollectionInterface.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Helpers/CollectionTrait.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Helpers/LegacyCacheWrapper.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Helpers/Multipart.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Helpers/RegisteredCommand.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Attachment.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Channel.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Forum/Reaction.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Forum/Tag.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Invite.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Message.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Overwrite.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Poll.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Poll/Poll.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Poll/PollAnswer.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Poll/PollAnswerCount.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Poll/PollMedia.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Poll/PollResults.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Reaction.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Channel/StageInstance.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Webhook.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Embed/Author.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Embed/Embed.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Embed/Field.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Embed/Footer.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Embed/Image.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Embed/Video.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Guild/AuditLog/AuditLog.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Guild/AuditLog/Entry.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Guild/AuditLog/Options.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Guild/AutoModeration/Action.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Guild/AutoModeration/ActionMetadata.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Guild/AutoModeration/Rule.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Guild/Ban.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Guild/CommandPermissions.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Guild/Emoji.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Guild/Guild.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Guild/GuildTemplate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Guild/Integration.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Guild/Role.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Guild/ScheduledEvent.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Guild/Sound.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Guild/Sticker.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Guild/WelcomeChannel.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Guild/WelcomeScreen.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Guild/Widget.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Interactions/Command/Choice.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Interactions/Command/Command.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Interactions/Command/Option.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Interactions/Command/Permission.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Interactions/Interaction.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Interactions/Request/Component.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Interactions/Request/InteractionData.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Interactions/Request/Option.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Interactions/Request/Resolved.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/OAuth/Application.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Part.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/PartInterface.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/PartTrait.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Permissions/ChannelPermission.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Permissions/Permission.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Permissions/RolePermission.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Thread/Member.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/Thread/Thread.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/User/Activity.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/User/Client.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/User/Member.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/User/User.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/WebSockets/AutoModerationActionExecution.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/WebSockets/MessageInteraction.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/WebSockets/MessageReaction.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/WebSockets/PresenceUpdate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/WebSockets/TypingStart.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/WebSockets/VoiceServerUpdate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Parts/WebSockets/VoiceStateUpdate.php delete mode 100755 vendor/team-reflex/discord-php/src/Discord/Repository/AbstractRepository.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Repository/AbstractRepositoryInterface.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Repository/AbstractRepositoryTrait.php delete mode 100755 vendor/team-reflex/discord-php/src/Discord/Repository/Channel/InviteRepository.php delete mode 100755 vendor/team-reflex/discord-php/src/Discord/Repository/Channel/MessageRepository.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Repository/Channel/OverwriteRepository.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Repository/Channel/PollAnswerRepository.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Repository/Channel/ReactionRepository.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Repository/Channel/StageInstanceRepository.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Repository/Channel/ThreadRepository.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Repository/Channel/VoiceMemberRepository.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Repository/Channel/WebhookMessageRepository.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Repository/Channel/WebhookRepository.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Repository/EmojiRepository.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Repository/Guild/AutoModerationRuleRepository.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Repository/Guild/BanRepository.php delete mode 100755 vendor/team-reflex/discord-php/src/Discord/Repository/Guild/ChannelRepository.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Repository/Guild/CommandPermissionsRepository.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Repository/Guild/EmojiRepository.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Repository/Guild/GuildCommandRepository.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Repository/Guild/GuildTemplateRepository.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Repository/Guild/IntegrationRepository.php delete mode 100755 vendor/team-reflex/discord-php/src/Discord/Repository/Guild/InviteRepository.php delete mode 100755 vendor/team-reflex/discord-php/src/Discord/Repository/Guild/MemberRepository.php delete mode 100755 vendor/team-reflex/discord-php/src/Discord/Repository/Guild/RoleRepository.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Repository/Guild/ScheduledEventRepository.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Repository/Guild/SoundRepository.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Repository/Guild/StickerRepository.php delete mode 100755 vendor/team-reflex/discord-php/src/Discord/Repository/GuildRepository.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Repository/Interaction/GlobalCommandRepository.php delete mode 100755 vendor/team-reflex/discord-php/src/Discord/Repository/PrivateChannelRepository.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Repository/SoundRepository.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Repository/Thread/MemberRepository.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Repository/UserRepository.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Voice/Buffer.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Voice/OggPage.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Voice/OggStream.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Voice/OpusHead.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Voice/OpusTags.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Voice/RecieveStream.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Voice/VoiceClient.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/Voice/VoicePacket.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Event.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ApplicationCommandPermissionsUpdate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/AutoModerationActionExecution.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/AutoModerationRuleCreate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/AutoModerationRuleDelete.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/AutoModerationRuleUpdate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ChannelCreate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ChannelDelete.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ChannelPinsUpdate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ChannelUpdate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildAuditLogEntryCreate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildBanAdd.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildBanRemove.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildCreate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildDelete.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildEmojisUpdate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildIntegrationsUpdate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildMemberAdd.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildMemberRemove.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildMemberUpdate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildRoleCreate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildRoleDelete.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildRoleUpdate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildScheduledEventCreate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildScheduledEventDelete.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildScheduledEventUpdate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildScheduledEventUserAdd.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildScheduledEventUserRemove.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildSoundboardSoundCreate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildSoundboardSoundDelete.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildSoundboardSoundUpdate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildSoundboardSoundsUpdate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildStickersUpdate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildUpdate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/IntegrationCreate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/IntegrationDelete.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/IntegrationUpdate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/InteractionCreate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/InviteCreate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/InviteDelete.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessageCreate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessageDelete.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessageDeleteBulk.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessagePollVoteAdd.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessagePollVoteRemove.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessageReactionAdd.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessageReactionRemove.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessageReactionRemoveAll.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessageReactionRemoveEmoji.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessageUpdate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/PresenceUpdate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/SoundboardSounds.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/StageInstanceCreate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/StageInstanceDelete.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/StageInstanceUpdate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ThreadCreate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ThreadDelete.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ThreadListSync.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ThreadMemberUpdate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ThreadMembersUpdate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ThreadUpdate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/TypingStart.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/UserUpdate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/VoiceServerUpdate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/VoiceStateUpdate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/WebhooksUpdate.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Handlers.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Intents.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/WebSockets/Op.php delete mode 100644 vendor/team-reflex/discord-php/src/Discord/functions.php delete mode 100644 vendor/team-reflex/discord-php/tests/CollectionsTest.php delete mode 100644 vendor/team-reflex/discord-php/tests/DiscordSingleton.php delete mode 100644 vendor/team-reflex/discord-php/tests/DiscordTest.php delete mode 100644 vendor/team-reflex/discord-php/tests/DiscordTestCase.php delete mode 100644 vendor/team-reflex/discord-php/tests/FunctionsTest.php delete mode 100644 vendor/team-reflex/discord-php/tests/Parts/Channel/ChannelTest.php delete mode 100644 vendor/team-reflex/discord-php/tests/Parts/Channel/Message/EmbedMessageTest.php delete mode 100644 vendor/team-reflex/discord-php/tests/Parts/Channel/Message/EmptyMessageTest.php delete mode 100644 vendor/team-reflex/discord-php/tests/Parts/Channel/Message/MessageTest.php delete mode 100644 vendor/team-reflex/discord-php/tests/Parts/Channel/Message/RemoveReactionTest.php delete mode 100644 vendor/team-reflex/discord-php/tests/Parts/Embed/EmbedTest.php delete mode 100644 vendor/team-reflex/discord-php/tests/bootstrap.php delete mode 100644 vendor/team-reflex/discord-php/tests/functions.php delete mode 100644 vendor/trafficcophp/bytebuffer/.gitignore delete mode 100644 vendor/trafficcophp/bytebuffer/.travis.yml delete mode 100644 vendor/trafficcophp/bytebuffer/README.md delete mode 100644 vendor/trafficcophp/bytebuffer/composer.json delete mode 100644 vendor/trafficcophp/bytebuffer/composer.lock delete mode 100644 vendor/trafficcophp/bytebuffer/phpunit.xml.dist delete mode 100644 vendor/trafficcophp/bytebuffer/src/TrafficCophp/ByteBuffer/AbstractBuffer.php delete mode 100644 vendor/trafficcophp/bytebuffer/src/TrafficCophp/ByteBuffer/Buffer.php delete mode 100644 vendor/trafficcophp/bytebuffer/src/TrafficCophp/ByteBuffer/LengthMap.php delete mode 100644 vendor/trafficcophp/bytebuffer/src/TrafficCophp/ByteBuffer/ReadableBuffer.php delete mode 100644 vendor/trafficcophp/bytebuffer/src/TrafficCophp/ByteBuffer/WriteableBuffer.php delete mode 100644 vendor/trafficcophp/bytebuffer/tests/TrafficCophp/ByteBuffer/BufferTest.php diff --git a/vendor/autoload.php b/vendor/autoload.php deleted file mode 100644 index dcc377e..0000000 --- a/vendor/autoload.php +++ /dev/null @@ -1,25 +0,0 @@ -realpath = realpath($opened_path) ?: $opened_path; - $opened_path = $this->realpath; - $this->handle = fopen($this->realpath, $mode); - $this->position = 0; - - return (bool) $this->handle; - } - - public function stream_read($count) - { - $data = fread($this->handle, $count); - - if ($this->position === 0) { - $data = preg_replace('{^#!.*\r?\n}', '', $data); - } - - $this->position += strlen($data); - - return $data; - } - - public function stream_cast($castAs) - { - return $this->handle; - } - - public function stream_close() - { - fclose($this->handle); - } - - public function stream_lock($operation) - { - return $operation ? flock($this->handle, $operation) : true; - } - - public function stream_seek($offset, $whence) - { - if (0 === fseek($this->handle, $offset, $whence)) { - $this->position = ftell($this->handle); - return true; - } - - return false; - } - - public function stream_tell() - { - return $this->position; - } - - public function stream_eof() - { - return feof($this->handle); - } - - public function stream_stat() - { - return array(); - } - - public function stream_set_option($option, $arg1, $arg2) - { - return true; - } - - public function url_stat($path, $flags) - { - $path = substr($path, 17); - if (file_exists($path)) { - return stat($path); - } - - return false; - } - } - } - - if ( - (function_exists('stream_get_wrappers') && in_array('phpvfscomposer', stream_get_wrappers(), true)) - || (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper')) - ) { - return include("phpvfscomposer://" . __DIR__ . '/..'.'/nesbot/carbon/bin/carbon'); - } -} - -return include __DIR__ . '/..'.'/nesbot/carbon/bin/carbon'; diff --git a/vendor/carbonphp/carbon-doctrine-types/LICENSE b/vendor/carbonphp/carbon-doctrine-types/LICENSE deleted file mode 100644 index 2ee1671..0000000 --- a/vendor/carbonphp/carbon-doctrine-types/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2023 Carbon - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/vendor/carbonphp/carbon-doctrine-types/README.md b/vendor/carbonphp/carbon-doctrine-types/README.md deleted file mode 100644 index 5a18121..0000000 --- a/vendor/carbonphp/carbon-doctrine-types/README.md +++ /dev/null @@ -1,14 +0,0 @@ -# carbonphp/carbon-doctrine-types - -Types to use Carbon in Doctrine - -## Documentation - -[Check how to use in the official Carbon documentation](https://carbon.nesbot.com/symfony/) - -This package is an externalization of [src/Carbon/Doctrine](https://github.com/briannesbitt/Carbon/tree/2.71.0/src/Carbon/Doctrine) -from `nestbot/carbon` package. - -Externalization allows to better deal with different versions of dbal. With -version 4.0 of dbal, it no longer sustainable to be compatible with all version -using a single code. diff --git a/vendor/carbonphp/carbon-doctrine-types/composer.json b/vendor/carbonphp/carbon-doctrine-types/composer.json deleted file mode 100644 index abf45c5..0000000 --- a/vendor/carbonphp/carbon-doctrine-types/composer.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "name": "carbonphp/carbon-doctrine-types", - "description": "Types to use Carbon in Doctrine", - "type": "library", - "keywords": [ - "date", - "time", - "DateTime", - "Carbon", - "Doctrine" - ], - "require": { - "php": "^8.1" - }, - "require-dev": { - "doctrine/dbal": "^4.0.0", - "nesbot/carbon": "^2.71.0 || ^3.0.0", - "phpunit/phpunit": "^10.3" - }, - "conflict": { - "doctrine/dbal": "<4.0.0 || >=5.0.0" - }, - "license": "MIT", - "autoload": { - "psr-4": { - "Carbon\\Doctrine\\": "src/Carbon/Doctrine/" - } - }, - "authors": [ - { - "name": "KyleKatarn", - "email": "kylekatarnls@gmail.com" - } - ], - "minimum-stability": "dev" -} diff --git a/vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/CarbonDoctrineType.php b/vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/CarbonDoctrineType.php deleted file mode 100644 index a63a9b8..0000000 --- a/vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/CarbonDoctrineType.php +++ /dev/null @@ -1,16 +0,0 @@ - - */ - protected function getCarbonClassName(): string - { - return Carbon::class; - } - - public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform): string - { - $precision = min( - $fieldDeclaration['precision'] ?? DateTimeDefaultPrecision::get(), - $this->getMaximumPrecision($platform), - ); - - $type = parent::getSQLDeclaration($fieldDeclaration, $platform); - - if (!$precision) { - return $type; - } - - if (str_contains($type, '(')) { - return preg_replace('/\(\d+\)/', "($precision)", $type); - } - - [$before, $after] = explode(' ', "$type "); - - return trim("$before($precision) $after"); - } - - /** - * @SuppressWarnings(PHPMD.UnusedFormalParameter) - */ - public function convertToDatabaseValue($value, AbstractPlatform $platform): ?string - { - if ($value === null) { - return $value; - } - - if ($value instanceof DateTimeInterface) { - return $value->format('Y-m-d H:i:s.u'); - } - - throw InvalidType::new( - $value, - static::class, - ['null', 'DateTime', 'Carbon'] - ); - } - - private function doConvertToPHPValue(mixed $value) - { - $class = $this->getCarbonClassName(); - - if ($value === null || is_a($value, $class)) { - return $value; - } - - if ($value instanceof DateTimeInterface) { - return $class::instance($value); - } - - $date = null; - $error = null; - - try { - $date = $class::parse($value); - } catch (Exception $exception) { - $error = $exception; - } - - if (!$date) { - throw ValueNotConvertible::new( - $value, - static::class, - 'Y-m-d H:i:s.u or any format supported by '.$class.'::parse()', - $error - ); - } - - return $date; - } - - private function getMaximumPrecision(AbstractPlatform $platform): int - { - if ($platform instanceof DB2Platform) { - return 12; - } - - if ($platform instanceof OraclePlatform) { - return 9; - } - - if ($platform instanceof SQLServerPlatform || $platform instanceof SQLitePlatform) { - return 3; - } - - return 6; - } -} diff --git a/vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/DateTimeDefaultPrecision.php b/vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/DateTimeDefaultPrecision.php deleted file mode 100644 index cd9896f..0000000 --- a/vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/DateTimeDefaultPrecision.php +++ /dev/null @@ -1,30 +0,0 @@ - */ - use CarbonTypeConverter; - - /** - * @SuppressWarnings(PHPMD.UnusedFormalParameter) - */ - public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?CarbonImmutable - { - return $this->doConvertToPHPValue($value); - } - - /** - * @return class-string - */ - protected function getCarbonClassName(): string - { - return CarbonImmutable::class; - } -} diff --git a/vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/DateTimeType.php b/vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/DateTimeType.php deleted file mode 100644 index 89e4b79..0000000 --- a/vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/DateTimeType.php +++ /dev/null @@ -1,24 +0,0 @@ - */ - use CarbonTypeConverter; - - /** - * @SuppressWarnings(PHPMD.UnusedFormalParameter) - */ - public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?Carbon - { - return $this->doConvertToPHPValue($value); - } -} diff --git a/vendor/composer/ClassLoader.php b/vendor/composer/ClassLoader.php deleted file mode 100644 index 7824d8f..0000000 --- a/vendor/composer/ClassLoader.php +++ /dev/null @@ -1,579 +0,0 @@ - - * Jordi Boggiano - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Composer\Autoload; - -/** - * ClassLoader implements a PSR-0, PSR-4 and classmap class loader. - * - * $loader = new \Composer\Autoload\ClassLoader(); - * - * // register classes with namespaces - * $loader->add('Symfony\Component', __DIR__.'/component'); - * $loader->add('Symfony', __DIR__.'/framework'); - * - * // activate the autoloader - * $loader->register(); - * - * // to enable searching the include path (eg. for PEAR packages) - * $loader->setUseIncludePath(true); - * - * In this example, if you try to use a class in the Symfony\Component - * namespace or one of its children (Symfony\Component\Console for instance), - * the autoloader will first look for the class under the component/ - * directory, and it will then fallback to the framework/ directory if not - * found before giving up. - * - * This class is loosely based on the Symfony UniversalClassLoader. - * - * @author Fabien Potencier - * @author Jordi Boggiano - * @see https://www.php-fig.org/psr/psr-0/ - * @see https://www.php-fig.org/psr/psr-4/ - */ -class ClassLoader -{ - /** @var \Closure(string):void */ - private static $includeFile; - - /** @var string|null */ - private $vendorDir; - - // PSR-4 - /** - * @var array> - */ - private $prefixLengthsPsr4 = array(); - /** - * @var array> - */ - private $prefixDirsPsr4 = array(); - /** - * @var list - */ - private $fallbackDirsPsr4 = array(); - - // PSR-0 - /** - * List of PSR-0 prefixes - * - * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2'))) - * - * @var array>> - */ - private $prefixesPsr0 = array(); - /** - * @var list - */ - private $fallbackDirsPsr0 = array(); - - /** @var bool */ - private $useIncludePath = false; - - /** - * @var array - */ - private $classMap = array(); - - /** @var bool */ - private $classMapAuthoritative = false; - - /** - * @var array - */ - private $missingClasses = array(); - - /** @var string|null */ - private $apcuPrefix; - - /** - * @var array - */ - private static $registeredLoaders = array(); - - /** - * @param string|null $vendorDir - */ - public function __construct($vendorDir = null) - { - $this->vendorDir = $vendorDir; - self::initializeIncludeClosure(); - } - - /** - * @return array> - */ - public function getPrefixes() - { - if (!empty($this->prefixesPsr0)) { - return call_user_func_array('array_merge', array_values($this->prefixesPsr0)); - } - - return array(); - } - - /** - * @return array> - */ - public function getPrefixesPsr4() - { - return $this->prefixDirsPsr4; - } - - /** - * @return list - */ - public function getFallbackDirs() - { - return $this->fallbackDirsPsr0; - } - - /** - * @return list - */ - public function getFallbackDirsPsr4() - { - return $this->fallbackDirsPsr4; - } - - /** - * @return array Array of classname => path - */ - public function getClassMap() - { - return $this->classMap; - } - - /** - * @param array $classMap Class to filename map - * - * @return void - */ - public function addClassMap(array $classMap) - { - if ($this->classMap) { - $this->classMap = array_merge($this->classMap, $classMap); - } else { - $this->classMap = $classMap; - } - } - - /** - * Registers a set of PSR-0 directories for a given prefix, either - * appending or prepending to the ones previously set for this prefix. - * - * @param string $prefix The prefix - * @param list|string $paths The PSR-0 root directories - * @param bool $prepend Whether to prepend the directories - * - * @return void - */ - public function add($prefix, $paths, $prepend = false) - { - $paths = (array) $paths; - if (!$prefix) { - if ($prepend) { - $this->fallbackDirsPsr0 = array_merge( - $paths, - $this->fallbackDirsPsr0 - ); - } else { - $this->fallbackDirsPsr0 = array_merge( - $this->fallbackDirsPsr0, - $paths - ); - } - - return; - } - - $first = $prefix[0]; - if (!isset($this->prefixesPsr0[$first][$prefix])) { - $this->prefixesPsr0[$first][$prefix] = $paths; - - return; - } - if ($prepend) { - $this->prefixesPsr0[$first][$prefix] = array_merge( - $paths, - $this->prefixesPsr0[$first][$prefix] - ); - } else { - $this->prefixesPsr0[$first][$prefix] = array_merge( - $this->prefixesPsr0[$first][$prefix], - $paths - ); - } - } - - /** - * Registers a set of PSR-4 directories for a given namespace, either - * appending or prepending to the ones previously set for this namespace. - * - * @param string $prefix The prefix/namespace, with trailing '\\' - * @param list|string $paths The PSR-4 base directories - * @param bool $prepend Whether to prepend the directories - * - * @throws \InvalidArgumentException - * - * @return void - */ - public function addPsr4($prefix, $paths, $prepend = false) - { - $paths = (array) $paths; - if (!$prefix) { - // Register directories for the root namespace. - if ($prepend) { - $this->fallbackDirsPsr4 = array_merge( - $paths, - $this->fallbackDirsPsr4 - ); - } else { - $this->fallbackDirsPsr4 = array_merge( - $this->fallbackDirsPsr4, - $paths - ); - } - } elseif (!isset($this->prefixDirsPsr4[$prefix])) { - // Register directories for a new namespace. - $length = strlen($prefix); - if ('\\' !== $prefix[$length - 1]) { - throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); - } - $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; - $this->prefixDirsPsr4[$prefix] = $paths; - } elseif ($prepend) { - // Prepend directories for an already registered namespace. - $this->prefixDirsPsr4[$prefix] = array_merge( - $paths, - $this->prefixDirsPsr4[$prefix] - ); - } else { - // Append directories for an already registered namespace. - $this->prefixDirsPsr4[$prefix] = array_merge( - $this->prefixDirsPsr4[$prefix], - $paths - ); - } - } - - /** - * Registers a set of PSR-0 directories for a given prefix, - * replacing any others previously set for this prefix. - * - * @param string $prefix The prefix - * @param list|string $paths The PSR-0 base directories - * - * @return void - */ - public function set($prefix, $paths) - { - if (!$prefix) { - $this->fallbackDirsPsr0 = (array) $paths; - } else { - $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths; - } - } - - /** - * Registers a set of PSR-4 directories for a given namespace, - * replacing any others previously set for this namespace. - * - * @param string $prefix The prefix/namespace, with trailing '\\' - * @param list|string $paths The PSR-4 base directories - * - * @throws \InvalidArgumentException - * - * @return void - */ - public function setPsr4($prefix, $paths) - { - if (!$prefix) { - $this->fallbackDirsPsr4 = (array) $paths; - } else { - $length = strlen($prefix); - if ('\\' !== $prefix[$length - 1]) { - throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); - } - $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; - $this->prefixDirsPsr4[$prefix] = (array) $paths; - } - } - - /** - * Turns on searching the include path for class files. - * - * @param bool $useIncludePath - * - * @return void - */ - public function setUseIncludePath($useIncludePath) - { - $this->useIncludePath = $useIncludePath; - } - - /** - * Can be used to check if the autoloader uses the include path to check - * for classes. - * - * @return bool - */ - public function getUseIncludePath() - { - return $this->useIncludePath; - } - - /** - * Turns off searching the prefix and fallback directories for classes - * that have not been registered with the class map. - * - * @param bool $classMapAuthoritative - * - * @return void - */ - public function setClassMapAuthoritative($classMapAuthoritative) - { - $this->classMapAuthoritative = $classMapAuthoritative; - } - - /** - * Should class lookup fail if not found in the current class map? - * - * @return bool - */ - public function isClassMapAuthoritative() - { - return $this->classMapAuthoritative; - } - - /** - * APCu prefix to use to cache found/not-found classes, if the extension is enabled. - * - * @param string|null $apcuPrefix - * - * @return void - */ - public function setApcuPrefix($apcuPrefix) - { - $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null; - } - - /** - * The APCu prefix in use, or null if APCu caching is not enabled. - * - * @return string|null - */ - public function getApcuPrefix() - { - return $this->apcuPrefix; - } - - /** - * Registers this instance as an autoloader. - * - * @param bool $prepend Whether to prepend the autoloader or not - * - * @return void - */ - public function register($prepend = false) - { - spl_autoload_register(array($this, 'loadClass'), true, $prepend); - - if (null === $this->vendorDir) { - return; - } - - if ($prepend) { - self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders; - } else { - unset(self::$registeredLoaders[$this->vendorDir]); - self::$registeredLoaders[$this->vendorDir] = $this; - } - } - - /** - * Unregisters this instance as an autoloader. - * - * @return void - */ - public function unregister() - { - spl_autoload_unregister(array($this, 'loadClass')); - - if (null !== $this->vendorDir) { - unset(self::$registeredLoaders[$this->vendorDir]); - } - } - - /** - * Loads the given class or interface. - * - * @param string $class The name of the class - * @return true|null True if loaded, null otherwise - */ - public function loadClass($class) - { - if ($file = $this->findFile($class)) { - $includeFile = self::$includeFile; - $includeFile($file); - - return true; - } - - return null; - } - - /** - * Finds the path to the file where the class is defined. - * - * @param string $class The name of the class - * - * @return string|false The path if found, false otherwise - */ - public function findFile($class) - { - // class map lookup - if (isset($this->classMap[$class])) { - return $this->classMap[$class]; - } - if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) { - return false; - } - if (null !== $this->apcuPrefix) { - $file = apcu_fetch($this->apcuPrefix.$class, $hit); - if ($hit) { - return $file; - } - } - - $file = $this->findFileWithExtension($class, '.php'); - - // Search for Hack files if we are running on HHVM - if (false === $file && defined('HHVM_VERSION')) { - $file = $this->findFileWithExtension($class, '.hh'); - } - - if (null !== $this->apcuPrefix) { - apcu_add($this->apcuPrefix.$class, $file); - } - - if (false === $file) { - // Remember that this class does not exist. - $this->missingClasses[$class] = true; - } - - return $file; - } - - /** - * Returns the currently registered loaders keyed by their corresponding vendor directories. - * - * @return array - */ - public static function getRegisteredLoaders() - { - return self::$registeredLoaders; - } - - /** - * @param string $class - * @param string $ext - * @return string|false - */ - private function findFileWithExtension($class, $ext) - { - // PSR-4 lookup - $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; - - $first = $class[0]; - if (isset($this->prefixLengthsPsr4[$first])) { - $subPath = $class; - while (false !== $lastPos = strrpos($subPath, '\\')) { - $subPath = substr($subPath, 0, $lastPos); - $search = $subPath . '\\'; - if (isset($this->prefixDirsPsr4[$search])) { - $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1); - foreach ($this->prefixDirsPsr4[$search] as $dir) { - if (file_exists($file = $dir . $pathEnd)) { - return $file; - } - } - } - } - } - - // PSR-4 fallback dirs - foreach ($this->fallbackDirsPsr4 as $dir) { - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { - return $file; - } - } - - // PSR-0 lookup - if (false !== $pos = strrpos($class, '\\')) { - // namespaced class name - $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1) - . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); - } else { - // PEAR-like class name - $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; - } - - if (isset($this->prefixesPsr0[$first])) { - foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { - if (0 === strpos($class, $prefix)) { - foreach ($dirs as $dir) { - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { - return $file; - } - } - } - } - } - - // PSR-0 fallback dirs - foreach ($this->fallbackDirsPsr0 as $dir) { - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { - return $file; - } - } - - // PSR-0 include paths. - if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) { - return $file; - } - - return false; - } - - /** - * @return void - */ - private static function initializeIncludeClosure() - { - if (self::$includeFile !== null) { - return; - } - - /** - * Scope isolated include. - * - * Prevents access to $this/self from included files. - * - * @param string $file - * @return void - */ - self::$includeFile = \Closure::bind(static function($file) { - include $file; - }, null, null); - } -} diff --git a/vendor/composer/InstalledVersions.php b/vendor/composer/InstalledVersions.php deleted file mode 100644 index 51e734a..0000000 --- a/vendor/composer/InstalledVersions.php +++ /dev/null @@ -1,359 +0,0 @@ - - * Jordi Boggiano - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Composer; - -use Composer\Autoload\ClassLoader; -use Composer\Semver\VersionParser; - -/** - * This class is copied in every Composer installed project and available to all - * - * See also https://getcomposer.org/doc/07-runtime.md#installed-versions - * - * To require its presence, you can require `composer-runtime-api ^2.0` - * - * @final - */ -class InstalledVersions -{ - /** - * @var mixed[]|null - * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array}|array{}|null - */ - private static $installed; - - /** - * @var bool|null - */ - private static $canGetVendors; - - /** - * @var array[] - * @psalm-var array}> - */ - private static $installedByVendor = array(); - - /** - * Returns a list of all package names which are present, either by being installed, replaced or provided - * - * @return string[] - * @psalm-return list - */ - public static function getInstalledPackages() - { - $packages = array(); - foreach (self::getInstalled() as $installed) { - $packages[] = array_keys($installed['versions']); - } - - if (1 === \count($packages)) { - return $packages[0]; - } - - return array_keys(array_flip(\call_user_func_array('array_merge', $packages))); - } - - /** - * Returns a list of all package names with a specific type e.g. 'library' - * - * @param string $type - * @return string[] - * @psalm-return list - */ - public static function getInstalledPackagesByType($type) - { - $packagesByType = array(); - - foreach (self::getInstalled() as $installed) { - foreach ($installed['versions'] as $name => $package) { - if (isset($package['type']) && $package['type'] === $type) { - $packagesByType[] = $name; - } - } - } - - return $packagesByType; - } - - /** - * Checks whether the given package is installed - * - * This also returns true if the package name is provided or replaced by another package - * - * @param string $packageName - * @param bool $includeDevRequirements - * @return bool - */ - public static function isInstalled($packageName, $includeDevRequirements = true) - { - foreach (self::getInstalled() as $installed) { - if (isset($installed['versions'][$packageName])) { - return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false; - } - } - - return false; - } - - /** - * Checks whether the given package satisfies a version constraint - * - * e.g. If you want to know whether version 2.3+ of package foo/bar is installed, you would call: - * - * Composer\InstalledVersions::satisfies(new VersionParser, 'foo/bar', '^2.3') - * - * @param VersionParser $parser Install composer/semver to have access to this class and functionality - * @param string $packageName - * @param string|null $constraint A version constraint to check for, if you pass one you have to make sure composer/semver is required by your package - * @return bool - */ - public static function satisfies(VersionParser $parser, $packageName, $constraint) - { - $constraint = $parser->parseConstraints((string) $constraint); - $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); - - return $provided->matches($constraint); - } - - /** - * Returns a version constraint representing all the range(s) which are installed for a given package - * - * It is easier to use this via isInstalled() with the $constraint argument if you need to check - * whether a given version of a package is installed, and not just whether it exists - * - * @param string $packageName - * @return string Version constraint usable with composer/semver - */ - public static function getVersionRanges($packageName) - { - foreach (self::getInstalled() as $installed) { - if (!isset($installed['versions'][$packageName])) { - continue; - } - - $ranges = array(); - if (isset($installed['versions'][$packageName]['pretty_version'])) { - $ranges[] = $installed['versions'][$packageName]['pretty_version']; - } - if (array_key_exists('aliases', $installed['versions'][$packageName])) { - $ranges = array_merge($ranges, $installed['versions'][$packageName]['aliases']); - } - if (array_key_exists('replaced', $installed['versions'][$packageName])) { - $ranges = array_merge($ranges, $installed['versions'][$packageName]['replaced']); - } - if (array_key_exists('provided', $installed['versions'][$packageName])) { - $ranges = array_merge($ranges, $installed['versions'][$packageName]['provided']); - } - - return implode(' || ', $ranges); - } - - throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); - } - - /** - * @param string $packageName - * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present - */ - public static function getVersion($packageName) - { - foreach (self::getInstalled() as $installed) { - if (!isset($installed['versions'][$packageName])) { - continue; - } - - if (!isset($installed['versions'][$packageName]['version'])) { - return null; - } - - return $installed['versions'][$packageName]['version']; - } - - throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); - } - - /** - * @param string $packageName - * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present - */ - public static function getPrettyVersion($packageName) - { - foreach (self::getInstalled() as $installed) { - if (!isset($installed['versions'][$packageName])) { - continue; - } - - if (!isset($installed['versions'][$packageName]['pretty_version'])) { - return null; - } - - return $installed['versions'][$packageName]['pretty_version']; - } - - throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); - } - - /** - * @param string $packageName - * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as reference - */ - public static function getReference($packageName) - { - foreach (self::getInstalled() as $installed) { - if (!isset($installed['versions'][$packageName])) { - continue; - } - - if (!isset($installed['versions'][$packageName]['reference'])) { - return null; - } - - return $installed['versions'][$packageName]['reference']; - } - - throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); - } - - /** - * @param string $packageName - * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as install path. Packages of type metapackages also have a null install path. - */ - public static function getInstallPath($packageName) - { - foreach (self::getInstalled() as $installed) { - if (!isset($installed['versions'][$packageName])) { - continue; - } - - return isset($installed['versions'][$packageName]['install_path']) ? $installed['versions'][$packageName]['install_path'] : null; - } - - throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); - } - - /** - * @return array - * @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool} - */ - public static function getRootPackage() - { - $installed = self::getInstalled(); - - return $installed[0]['root']; - } - - /** - * Returns the raw installed.php data for custom implementations - * - * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect. - * @return array[] - * @psalm-return array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} - */ - public static function getRawData() - { - @trigger_error('getRawData only returns the first dataset loaded, which may not be what you expect. Use getAllRawData() instead which returns all datasets for all autoloaders present in the process.', E_USER_DEPRECATED); - - if (null === self::$installed) { - // only require the installed.php file if this file is loaded from its dumped location, - // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 - if (substr(__DIR__, -8, 1) !== 'C') { - self::$installed = include __DIR__ . '/installed.php'; - } else { - self::$installed = array(); - } - } - - return self::$installed; - } - - /** - * Returns the raw data of all installed.php which are currently loaded for custom implementations - * - * @return array[] - * @psalm-return list}> - */ - public static function getAllRawData() - { - return self::getInstalled(); - } - - /** - * Lets you reload the static array from another file - * - * This is only useful for complex integrations in which a project needs to use - * this class but then also needs to execute another project's autoloader in process, - * and wants to ensure both projects have access to their version of installed.php. - * - * A typical case would be PHPUnit, where it would need to make sure it reads all - * the data it needs from this class, then call reload() with - * `require $CWD/vendor/composer/installed.php` (or similar) as input to make sure - * the project in which it runs can then also use this class safely, without - * interference between PHPUnit's dependencies and the project's dependencies. - * - * @param array[] $data A vendor/composer/installed.php data set - * @return void - * - * @psalm-param array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} $data - */ - public static function reload($data) - { - self::$installed = $data; - self::$installedByVendor = array(); - } - - /** - * @return array[] - * @psalm-return list}> - */ - private static function getInstalled() - { - if (null === self::$canGetVendors) { - self::$canGetVendors = method_exists('Composer\Autoload\ClassLoader', 'getRegisteredLoaders'); - } - - $installed = array(); - - if (self::$canGetVendors) { - foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { - if (isset(self::$installedByVendor[$vendorDir])) { - $installed[] = self::$installedByVendor[$vendorDir]; - } elseif (is_file($vendorDir.'/composer/installed.php')) { - /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} $required */ - $required = require $vendorDir.'/composer/installed.php'; - $installed[] = self::$installedByVendor[$vendorDir] = $required; - if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { - self::$installed = $installed[count($installed) - 1]; - } - } - } - } - - if (null === self::$installed) { - // only require the installed.php file if this file is loaded from its dumped location, - // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 - if (substr(__DIR__, -8, 1) !== 'C') { - /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} $required */ - $required = require __DIR__ . '/installed.php'; - self::$installed = $required; - } else { - self::$installed = array(); - } - } - - if (self::$installed !== array()) { - $installed[] = self::$installed; - } - - return $installed; - } -} diff --git a/vendor/composer/LICENSE b/vendor/composer/LICENSE deleted file mode 100644 index f27399a..0000000 --- a/vendor/composer/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ - -Copyright (c) Nils Adermann, Jordi Boggiano - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is furnished -to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - diff --git a/vendor/composer/autoload_classmap.php b/vendor/composer/autoload_classmap.php deleted file mode 100644 index fff9c4f..0000000 --- a/vendor/composer/autoload_classmap.php +++ /dev/null @@ -1,21 +0,0 @@ - $vendorDir . '/composer/InstalledVersions.php', - 'DateError' => $vendorDir . '/symfony/polyfill-php83/Resources/stubs/DateError.php', - 'DateException' => $vendorDir . '/symfony/polyfill-php83/Resources/stubs/DateException.php', - 'DateInvalidOperationException' => $vendorDir . '/symfony/polyfill-php83/Resources/stubs/DateInvalidOperationException.php', - 'DateInvalidTimeZoneException' => $vendorDir . '/symfony/polyfill-php83/Resources/stubs/DateInvalidTimeZoneException.php', - 'DateMalformedIntervalStringException' => $vendorDir . '/symfony/polyfill-php83/Resources/stubs/DateMalformedIntervalStringException.php', - 'DateMalformedPeriodStringException' => $vendorDir . '/symfony/polyfill-php83/Resources/stubs/DateMalformedPeriodStringException.php', - 'DateMalformedStringException' => $vendorDir . '/symfony/polyfill-php83/Resources/stubs/DateMalformedStringException.php', - 'DateObjectError' => $vendorDir . '/symfony/polyfill-php83/Resources/stubs/DateObjectError.php', - 'DateRangeError' => $vendorDir . '/symfony/polyfill-php83/Resources/stubs/DateRangeError.php', - 'Override' => $vendorDir . '/symfony/polyfill-php83/Resources/stubs/Override.php', - 'SQLite3Exception' => $vendorDir . '/symfony/polyfill-php83/Resources/stubs/SQLite3Exception.php', -); diff --git a/vendor/composer/autoload_files.php b/vendor/composer/autoload_files.php deleted file mode 100644 index ebded19..0000000 --- a/vendor/composer/autoload_files.php +++ /dev/null @@ -1,20 +0,0 @@ - $vendorDir . '/react/promise/src/functions_include.php', - '7b11c4dc42b3b3023073cb14e519683c' => $vendorDir . '/ralouphie/getallheaders/src/getallheaders.php', - '6e3fae29631ef280660b3cdad06f25a8' => $vendorDir . '/symfony/deprecation-contracts/function.php', - '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => $vendorDir . '/symfony/polyfill-mbstring/bootstrap.php', - '662a729f963d39afe703c9d9b7ab4a8c' => $vendorDir . '/symfony/polyfill-php83/bootstrap.php', - '2203a247e6fda86070a5e4e07aed533a' => $vendorDir . '/symfony/clock/Resources/now.php', - 'a1105708a18b76903365ca1c4aa61b02' => $vendorDir . '/symfony/translation/Resources/functions.php', - '3be16222a6efa6dd226a219eaaff823b' => $vendorDir . '/ratchet/pawl/src/functions_include.php', - 'c4e03ecd470d2a87804979c0a8152284' => $vendorDir . '/react/async/src/functions_include.php', - '37a3dc5111fe8f707ab4c132ef1dbc62' => $vendorDir . '/guzzlehttp/guzzle/src/functions_include.php', - '864b292aadc96fda0e2642b894a38d16' => $vendorDir . '/team-reflex/discord-php/src/Discord/functions.php', -); diff --git a/vendor/composer/autoload_namespaces.php b/vendor/composer/autoload_namespaces.php deleted file mode 100644 index 47622f2..0000000 --- a/vendor/composer/autoload_namespaces.php +++ /dev/null @@ -1,10 +0,0 @@ - array($vendorDir . '/trafficcophp/bytebuffer/src'), -); diff --git a/vendor/composer/autoload_psr4.php b/vendor/composer/autoload_psr4.php deleted file mode 100644 index e7505af..0000000 --- a/vendor/composer/autoload_psr4.php +++ /dev/null @@ -1,45 +0,0 @@ - array($vendorDir . '/discord-php/http/tests/Discord'), - 'Symfony\\Polyfill\\Php83\\' => array($vendorDir . '/symfony/polyfill-php83'), - 'Symfony\\Polyfill\\Mbstring\\' => array($vendorDir . '/symfony/polyfill-mbstring'), - 'Symfony\\Contracts\\Translation\\' => array($vendorDir . '/symfony/translation-contracts'), - 'Symfony\\Component\\Translation\\' => array($vendorDir . '/symfony/translation'), - 'Symfony\\Component\\OptionsResolver\\' => array($vendorDir . '/symfony/options-resolver'), - 'Symfony\\Component\\Clock\\' => array($vendorDir . '/symfony/clock'), - 'React\\Stream\\' => array($vendorDir . '/react/stream/src'), - 'React\\Socket\\' => array($vendorDir . '/react/socket/src'), - 'React\\Promise\\' => array($vendorDir . '/react/promise/src'), - 'React\\Http\\' => array($vendorDir . '/react/http/src'), - 'React\\EventLoop\\' => array($vendorDir . '/react/event-loop/src'), - 'React\\Dns\\' => array($vendorDir . '/react/dns/src'), - 'React\\Datagram\\' => array($vendorDir . '/react/datagram/src'), - 'React\\ChildProcess\\' => array($vendorDir . '/react/child-process/src'), - 'React\\Cache\\' => array($vendorDir . '/react/cache/src'), - 'React\\Async\\' => array($vendorDir . '/react/async/src'), - 'Ratchet\\RFC6455\\' => array($vendorDir . '/ratchet/rfc6455/src'), - 'Ratchet\\Client\\' => array($vendorDir . '/ratchet/pawl/src'), - 'Psr\\SimpleCache\\' => array($vendorDir . '/psr/simple-cache/src'), - 'Psr\\Log\\' => array($vendorDir . '/psr/log/src'), - 'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-message/src', $vendorDir . '/psr/http-factory/src'), - 'Psr\\Http\\Client\\' => array($vendorDir . '/psr/http-client/src'), - 'Psr\\Clock\\' => array($vendorDir . '/psr/clock/src'), - 'Monolog\\' => array($vendorDir . '/monolog/monolog/src/Monolog'), - 'GuzzleHttp\\Psr7\\' => array($vendorDir . '/guzzlehttp/psr7/src'), - 'GuzzleHttp\\Promise\\' => array($vendorDir . '/guzzlehttp/promises/src'), - 'GuzzleHttp\\' => array($vendorDir . '/guzzlehttp/guzzle/src'), - 'Fig\\Http\\Message\\' => array($vendorDir . '/fig/http-message-util/src'), - 'Evenement\\' => array($vendorDir . '/evenement/evenement/src'), - 'Discord\\Http\\' => array($vendorDir . '/discord-php/http/src/Discord'), - 'Discord\\' => array($vendorDir . '/discord/interactions/discord', $vendorDir . '/team-reflex/discord-php/src/Discord'), - 'DantSu\\PHPImageEditor\\' => array($vendorDir . '/dantsu/php-image-editor/src'), - 'DantSu\\OpenStreetMapStaticAPI\\' => array($vendorDir . '/dantsu/php-osm-static-api/src'), - 'Carbon\\Doctrine\\' => array($vendorDir . '/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine'), - 'Carbon\\' => array($vendorDir . '/nesbot/carbon/src/Carbon'), -); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php deleted file mode 100644 index 97dd0ff..0000000 --- a/vendor/composer/autoload_real.php +++ /dev/null @@ -1,50 +0,0 @@ -register(true); - - $filesToLoad = \Composer\Autoload\ComposerStaticInit39e76b5f4d8c6722589be79886dc5716::$files; - $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { - if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { - $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; - - require $file; - } - }, null, null); - foreach ($filesToLoad as $fileIdentifier => $file) { - $requireFile($fileIdentifier, $file); - } - - return $loader; - } -} diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php deleted file mode 100644 index 50b7389..0000000 --- a/vendor/composer/autoload_static.php +++ /dev/null @@ -1,276 +0,0 @@ - __DIR__ . '/..' . '/react/promise/src/functions_include.php', - '7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php', - '6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php', - '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php', - '662a729f963d39afe703c9d9b7ab4a8c' => __DIR__ . '/..' . '/symfony/polyfill-php83/bootstrap.php', - '2203a247e6fda86070a5e4e07aed533a' => __DIR__ . '/..' . '/symfony/clock/Resources/now.php', - 'a1105708a18b76903365ca1c4aa61b02' => __DIR__ . '/..' . '/symfony/translation/Resources/functions.php', - '3be16222a6efa6dd226a219eaaff823b' => __DIR__ . '/..' . '/ratchet/pawl/src/functions_include.php', - 'c4e03ecd470d2a87804979c0a8152284' => __DIR__ . '/..' . '/react/async/src/functions_include.php', - '37a3dc5111fe8f707ab4c132ef1dbc62' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/functions_include.php', - '864b292aadc96fda0e2642b894a38d16' => __DIR__ . '/..' . '/team-reflex/discord-php/src/Discord/functions.php', - ); - - public static $prefixLengthsPsr4 = array ( - 'T' => - array ( - 'Tests\\Discord\\Http\\' => 19, - ), - 'S' => - array ( - 'Symfony\\Polyfill\\Php83\\' => 23, - 'Symfony\\Polyfill\\Mbstring\\' => 26, - 'Symfony\\Contracts\\Translation\\' => 30, - 'Symfony\\Component\\Translation\\' => 30, - 'Symfony\\Component\\OptionsResolver\\' => 34, - 'Symfony\\Component\\Clock\\' => 24, - ), - 'R' => - array ( - 'React\\Stream\\' => 13, - 'React\\Socket\\' => 13, - 'React\\Promise\\' => 14, - 'React\\Http\\' => 11, - 'React\\EventLoop\\' => 16, - 'React\\Dns\\' => 10, - 'React\\Datagram\\' => 15, - 'React\\ChildProcess\\' => 19, - 'React\\Cache\\' => 12, - 'React\\Async\\' => 12, - 'Ratchet\\RFC6455\\' => 16, - 'Ratchet\\Client\\' => 15, - ), - 'P' => - array ( - 'Psr\\SimpleCache\\' => 16, - 'Psr\\Log\\' => 8, - 'Psr\\Http\\Message\\' => 17, - 'Psr\\Http\\Client\\' => 16, - 'Psr\\Clock\\' => 10, - ), - 'M' => - array ( - 'Monolog\\' => 8, - ), - 'G' => - array ( - 'GuzzleHttp\\Psr7\\' => 16, - 'GuzzleHttp\\Promise\\' => 19, - 'GuzzleHttp\\' => 11, - ), - 'F' => - array ( - 'Fig\\Http\\Message\\' => 17, - ), - 'E' => - array ( - 'Evenement\\' => 10, - ), - 'D' => - array ( - 'Discord\\Http\\' => 13, - 'Discord\\' => 8, - 'DantSu\\PHPImageEditor\\' => 22, - 'DantSu\\OpenStreetMapStaticAPI\\' => 30, - ), - 'C' => - array ( - 'Carbon\\Doctrine\\' => 16, - 'Carbon\\' => 7, - ), - ); - - public static $prefixDirsPsr4 = array ( - 'Tests\\Discord\\Http\\' => - array ( - 0 => __DIR__ . '/..' . '/discord-php/http/tests/Discord', - ), - 'Symfony\\Polyfill\\Php83\\' => - array ( - 0 => __DIR__ . '/..' . '/symfony/polyfill-php83', - ), - 'Symfony\\Polyfill\\Mbstring\\' => - array ( - 0 => __DIR__ . '/..' . '/symfony/polyfill-mbstring', - ), - 'Symfony\\Contracts\\Translation\\' => - array ( - 0 => __DIR__ . '/..' . '/symfony/translation-contracts', - ), - 'Symfony\\Component\\Translation\\' => - array ( - 0 => __DIR__ . '/..' . '/symfony/translation', - ), - 'Symfony\\Component\\OptionsResolver\\' => - array ( - 0 => __DIR__ . '/..' . '/symfony/options-resolver', - ), - 'Symfony\\Component\\Clock\\' => - array ( - 0 => __DIR__ . '/..' . '/symfony/clock', - ), - 'React\\Stream\\' => - array ( - 0 => __DIR__ . '/..' . '/react/stream/src', - ), - 'React\\Socket\\' => - array ( - 0 => __DIR__ . '/..' . '/react/socket/src', - ), - 'React\\Promise\\' => - array ( - 0 => __DIR__ . '/..' . '/react/promise/src', - ), - 'React\\Http\\' => - array ( - 0 => __DIR__ . '/..' . '/react/http/src', - ), - 'React\\EventLoop\\' => - array ( - 0 => __DIR__ . '/..' . '/react/event-loop/src', - ), - 'React\\Dns\\' => - array ( - 0 => __DIR__ . '/..' . '/react/dns/src', - ), - 'React\\Datagram\\' => - array ( - 0 => __DIR__ . '/..' . '/react/datagram/src', - ), - 'React\\ChildProcess\\' => - array ( - 0 => __DIR__ . '/..' . '/react/child-process/src', - ), - 'React\\Cache\\' => - array ( - 0 => __DIR__ . '/..' . '/react/cache/src', - ), - 'React\\Async\\' => - array ( - 0 => __DIR__ . '/..' . '/react/async/src', - ), - 'Ratchet\\RFC6455\\' => - array ( - 0 => __DIR__ . '/..' . '/ratchet/rfc6455/src', - ), - 'Ratchet\\Client\\' => - array ( - 0 => __DIR__ . '/..' . '/ratchet/pawl/src', - ), - 'Psr\\SimpleCache\\' => - array ( - 0 => __DIR__ . '/..' . '/psr/simple-cache/src', - ), - 'Psr\\Log\\' => - array ( - 0 => __DIR__ . '/..' . '/psr/log/src', - ), - 'Psr\\Http\\Message\\' => - array ( - 0 => __DIR__ . '/..' . '/psr/http-message/src', - 1 => __DIR__ . '/..' . '/psr/http-factory/src', - ), - 'Psr\\Http\\Client\\' => - array ( - 0 => __DIR__ . '/..' . '/psr/http-client/src', - ), - 'Psr\\Clock\\' => - array ( - 0 => __DIR__ . '/..' . '/psr/clock/src', - ), - 'Monolog\\' => - array ( - 0 => __DIR__ . '/..' . '/monolog/monolog/src/Monolog', - ), - 'GuzzleHttp\\Psr7\\' => - array ( - 0 => __DIR__ . '/..' . '/guzzlehttp/psr7/src', - ), - 'GuzzleHttp\\Promise\\' => - array ( - 0 => __DIR__ . '/..' . '/guzzlehttp/promises/src', - ), - 'GuzzleHttp\\' => - array ( - 0 => __DIR__ . '/..' . '/guzzlehttp/guzzle/src', - ), - 'Fig\\Http\\Message\\' => - array ( - 0 => __DIR__ . '/..' . '/fig/http-message-util/src', - ), - 'Evenement\\' => - array ( - 0 => __DIR__ . '/..' . '/evenement/evenement/src', - ), - 'Discord\\Http\\' => - array ( - 0 => __DIR__ . '/..' . '/discord-php/http/src/Discord', - ), - 'Discord\\' => - array ( - 0 => __DIR__ . '/..' . '/discord/interactions/discord', - 1 => __DIR__ . '/..' . '/team-reflex/discord-php/src/Discord', - ), - 'DantSu\\PHPImageEditor\\' => - array ( - 0 => __DIR__ . '/..' . '/dantsu/php-image-editor/src', - ), - 'DantSu\\OpenStreetMapStaticAPI\\' => - array ( - 0 => __DIR__ . '/..' . '/dantsu/php-osm-static-api/src', - ), - 'Carbon\\Doctrine\\' => - array ( - 0 => __DIR__ . '/..' . '/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine', - ), - 'Carbon\\' => - array ( - 0 => __DIR__ . '/..' . '/nesbot/carbon/src/Carbon', - ), - ); - - public static $prefixesPsr0 = array ( - 'T' => - array ( - 'TrafficCophp' => - array ( - 0 => __DIR__ . '/..' . '/trafficcophp/bytebuffer/src', - ), - ), - ); - - public static $classMap = array ( - 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', - 'DateError' => __DIR__ . '/..' . '/symfony/polyfill-php83/Resources/stubs/DateError.php', - 'DateException' => __DIR__ . '/..' . '/symfony/polyfill-php83/Resources/stubs/DateException.php', - 'DateInvalidOperationException' => __DIR__ . '/..' . '/symfony/polyfill-php83/Resources/stubs/DateInvalidOperationException.php', - 'DateInvalidTimeZoneException' => __DIR__ . '/..' . '/symfony/polyfill-php83/Resources/stubs/DateInvalidTimeZoneException.php', - 'DateMalformedIntervalStringException' => __DIR__ . '/..' . '/symfony/polyfill-php83/Resources/stubs/DateMalformedIntervalStringException.php', - 'DateMalformedPeriodStringException' => __DIR__ . '/..' . '/symfony/polyfill-php83/Resources/stubs/DateMalformedPeriodStringException.php', - 'DateMalformedStringException' => __DIR__ . '/..' . '/symfony/polyfill-php83/Resources/stubs/DateMalformedStringException.php', - 'DateObjectError' => __DIR__ . '/..' . '/symfony/polyfill-php83/Resources/stubs/DateObjectError.php', - 'DateRangeError' => __DIR__ . '/..' . '/symfony/polyfill-php83/Resources/stubs/DateRangeError.php', - 'Override' => __DIR__ . '/..' . '/symfony/polyfill-php83/Resources/stubs/Override.php', - 'SQLite3Exception' => __DIR__ . '/..' . '/symfony/polyfill-php83/Resources/stubs/SQLite3Exception.php', - ); - - public static function getInitializer(ClassLoader $loader) - { - return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInit39e76b5f4d8c6722589be79886dc5716::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInit39e76b5f4d8c6722589be79886dc5716::$prefixDirsPsr4; - $loader->prefixesPsr0 = ComposerStaticInit39e76b5f4d8c6722589be79886dc5716::$prefixesPsr0; - $loader->classMap = ComposerStaticInit39e76b5f4d8c6722589be79886dc5716::$classMap; - - }, null, ClassLoader::class); - } -} diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json deleted file mode 100644 index 55e5524..0000000 --- a/vendor/composer/installed.json +++ /dev/null @@ -1,2969 +0,0 @@ -{ - "packages": [ - { - "name": "carbonphp/carbon-doctrine-types", - "version": "3.2.0", - "version_normalized": "3.2.0.0", - "source": { - "type": "git", - "url": "https://github.com/CarbonPHP/carbon-doctrine-types.git", - "reference": "18ba5ddfec8976260ead6e866180bd5d2f71aa1d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/CarbonPHP/carbon-doctrine-types/zipball/18ba5ddfec8976260ead6e866180bd5d2f71aa1d", - "reference": "18ba5ddfec8976260ead6e866180bd5d2f71aa1d", - "shasum": "" - }, - "require": { - "php": "^8.1" - }, - "conflict": { - "doctrine/dbal": "<4.0.0 || >=5.0.0" - }, - "require-dev": { - "doctrine/dbal": "^4.0.0", - "nesbot/carbon": "^2.71.0 || ^3.0.0", - "phpunit/phpunit": "^10.3" - }, - "time": "2024-02-09T16:56:22+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-4": { - "Carbon\\Doctrine\\": "src/Carbon/Doctrine/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "KyleKatarn", - "email": "kylekatarnls@gmail.com" - } - ], - "description": "Types to use Carbon in Doctrine", - "keywords": [ - "carbon", - "date", - "datetime", - "doctrine", - "time" - ], - "support": { - "issues": "https://github.com/CarbonPHP/carbon-doctrine-types/issues", - "source": "https://github.com/CarbonPHP/carbon-doctrine-types/tree/3.2.0" - }, - "funding": [ - { - "url": "https://github.com/kylekatarnls", - "type": "github" - }, - { - "url": "https://opencollective.com/Carbon", - "type": "open_collective" - }, - { - "url": "https://tidelift.com/funding/github/packagist/nesbot/carbon", - "type": "tidelift" - } - ], - "install-path": "../carbonphp/carbon-doctrine-types" - }, - { - "name": "dantsu/php-image-editor", - "version": "1.4.5", - "version_normalized": "1.4.5.0", - "source": { - "type": "git", - "url": "https://github.com/DantSu/php-image-editor.git", - "reference": "59a3e922000767051d380a2c530c61344f1e79ec" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/DantSu/php-image-editor/zipball/59a3e922000767051d380a2c530c61344f1e79ec", - "reference": "59a3e922000767051d380a2c530c61344f1e79ec", - "shasum": "" - }, - "require": { - "ext-gd": "*", - "php": ">=7.0" - }, - "time": "2023-08-23T07:36:11+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-4": { - "DantSu\\PHPImageEditor\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Franck ALARY", - "homepage": "https://github.com/DantSu", - "role": "Developer" - } - ], - "description": "PHP library to easily edit image with GD extension.", - "homepage": "https://github.com/DantSu/php-image-editor", - "keywords": [ - "GD2", - "edit", - "edition", - "editor", - "image", - "photo", - "php", - "picture" - ], - "support": { - "issues": "https://github.com/DantSu/php-image-editor/issues", - "source": "https://github.com/DantSu/php-image-editor/tree/1.4.5" - }, - "funding": [ - { - "url": "https://github.com/DantSu", - "type": "github" - } - ], - "install-path": "../dantsu/php-image-editor" - }, - { - "name": "dantsu/php-osm-static-api", - "version": "0.6.4", - "version_normalized": "0.6.4.0", - "source": { - "type": "git", - "url": "https://github.com/DantSu/php-osm-static-api.git", - "reference": "cf89dccfa4f27f6e76de0ab065b313d2f19de728" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/DantSu/php-osm-static-api/zipball/cf89dccfa4f27f6e76de0ab065b313d2f19de728", - "reference": "cf89dccfa4f27f6e76de0ab065b313d2f19de728", - "shasum": "" - }, - "require": { - "dantsu/php-image-editor": "^1.3", - "php": ">=7.0" - }, - "time": "2023-08-06T07:17:27+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-4": { - "DantSu\\OpenStreetMapStaticAPI\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Franck ALARY", - "homepage": "https://github.com/DantSu", - "role": "Developer" - } - ], - "description": "PHP library to easily get static image from OpenStreetMap (OSM), add markers and draw lines.", - "homepage": "https://github.com/DantSu/php-osm-static-api", - "keywords": [ - "OpenStreetMap", - "api", - "image", - "map", - "maps", - "osm", - "php", - "static" - ], - "support": { - "issues": "https://github.com/DantSu/php-osm-static-api/issues", - "source": "https://github.com/DantSu/php-osm-static-api/tree/0.6.4" - }, - "funding": [ - { - "url": "https://github.com/DantSu", - "type": "github" - } - ], - "install-path": "../dantsu/php-osm-static-api" - }, - { - "name": "discord-php/http", - "version": "v10.3.8", - "version_normalized": "10.3.8.0", - "source": { - "type": "git", - "url": "https://github.com/discord-php/DiscordPHP-Http.git", - "reference": "0a9981dd5f8f96071f54d45e8d6fff2c6c295eb6" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/discord-php/DiscordPHP-Http/zipball/0a9981dd5f8f96071f54d45e8d6fff2c6c295eb6", - "reference": "0a9981dd5f8f96071f54d45e8d6fff2c6c295eb6", - "shasum": "" - }, - "require": { - "php": "^7.4|^8.0", - "psr/log": "^1.1 || ^2.0 || ^3.0", - "react/http": "^1.2", - "react/promise": "^2.2 || ^3.0.0" - }, - "require-dev": { - "friendsofphp/php-cs-fixer": "^2.17", - "guzzlehttp/guzzle": "^6.0|^7.0", - "mockery/mockery": "^1.5", - "monolog/monolog": "^2.2", - "phpunit/phpunit": "^9.5", - "psy/psysh": "^0.10.6", - "react/async": "^4 || ^3" - }, - "suggest": { - "guzzlehttp/guzzle": "For alternative to ReactPHP/Http Browser" - }, - "time": "2024-11-21T18:54:39+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-4": { - "Discord\\Http\\": "src/Discord", - "Tests\\Discord\\Http\\": "tests/Discord" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "David Cole", - "email": "david.cole1340@gmail.com" - } - ], - "description": "Handles HTTP requests to Discord servers", - "support": { - "issues": "https://github.com/discord-php/DiscordPHP-Http/issues", - "source": "https://github.com/discord-php/DiscordPHP-Http/tree/v10.3.8" - }, - "install-path": "../discord-php/http" - }, - { - "name": "discord/interactions", - "version": "2.2.0", - "version_normalized": "2.2.0.0", - "source": { - "type": "git", - "url": "https://github.com/discord/discord-interactions-php.git", - "reference": "a6fc0c877b75cf5ff5811f2ea69c5cc4ad6ac457" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/discord/discord-interactions-php/zipball/a6fc0c877b75cf5ff5811f2ea69c5cc4ad6ac457", - "reference": "a6fc0c877b75cf5ff5811f2ea69c5cc4ad6ac457", - "shasum": "" - }, - "conflict": { - "simplito/elliptic-php": "<1.0,>=1.1" - }, - "require-dev": { - "simplito/elliptic-php": "^1.0" - }, - "suggest": { - "simplito/elliptic-php": "Required to validate interaction signatures." - }, - "time": "2022-02-09T17:58:51+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-4": { - "Discord\\": "discord" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Ian Webster", - "email": "ianw_php@ianww.com" - } - ], - "description": "Utils for implementing the Discord Interactions API", - "keywords": [ - "discord" - ], - "support": { - "issues": "https://github.com/discord/discord-interactions-php/issues", - "source": "https://github.com/discord/discord-interactions-php/tree/2.2.0" - }, - "install-path": "../discord/interactions" - }, - { - "name": "evenement/evenement", - "version": "v3.0.2", - "version_normalized": "3.0.2.0", - "source": { - "type": "git", - "url": "https://github.com/igorw/evenement.git", - "reference": "0a16b0d71ab13284339abb99d9d2bd813640efbc" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/igorw/evenement/zipball/0a16b0d71ab13284339abb99d9d2bd813640efbc", - "reference": "0a16b0d71ab13284339abb99d9d2bd813640efbc", - "shasum": "" - }, - "require": { - "php": ">=7.0" - }, - "require-dev": { - "phpunit/phpunit": "^9 || ^6" - }, - "time": "2023-08-08T05:53:35+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-4": { - "Evenement\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Igor Wiedler", - "email": "igor@wiedler.ch" - } - ], - "description": "Événement is a very simple event dispatching library for PHP", - "keywords": [ - "event-dispatcher", - "event-emitter" - ], - "support": { - "issues": "https://github.com/igorw/evenement/issues", - "source": "https://github.com/igorw/evenement/tree/v3.0.2" - }, - "install-path": "../evenement/evenement" - }, - { - "name": "fig/http-message-util", - "version": "1.1.5", - "version_normalized": "1.1.5.0", - "source": { - "type": "git", - "url": "https://github.com/php-fig/http-message-util.git", - "reference": "9d94dc0154230ac39e5bf89398b324a86f63f765" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-message-util/zipball/9d94dc0154230ac39e5bf89398b324a86f63f765", - "reference": "9d94dc0154230ac39e5bf89398b324a86f63f765", - "shasum": "" - }, - "require": { - "php": "^5.3 || ^7.0 || ^8.0" - }, - "suggest": { - "psr/http-message": "The package containing the PSR-7 interfaces" - }, - "time": "2020-11-24T22:02:12+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.1.x-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "Fig\\Http\\Message\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "https://www.php-fig.org/" - } - ], - "description": "Utility classes and constants for use with PSR-7 (psr/http-message)", - "keywords": [ - "http", - "http-message", - "psr", - "psr-7", - "request", - "response" - ], - "support": { - "issues": "https://github.com/php-fig/http-message-util/issues", - "source": "https://github.com/php-fig/http-message-util/tree/1.1.5" - }, - "install-path": "../fig/http-message-util" - }, - { - "name": "guzzlehttp/guzzle", - "version": "7.9.2", - "version_normalized": "7.9.2.0", - "source": { - "type": "git", - "url": "https://github.com/guzzle/guzzle.git", - "reference": "d281ed313b989f213357e3be1a179f02196ac99b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle/zipball/d281ed313b989f213357e3be1a179f02196ac99b", - "reference": "d281ed313b989f213357e3be1a179f02196ac99b", - "shasum": "" - }, - "require": { - "ext-json": "*", - "guzzlehttp/promises": "^1.5.3 || ^2.0.3", - "guzzlehttp/psr7": "^2.7.0", - "php": "^7.2.5 || ^8.0", - "psr/http-client": "^1.0", - "symfony/deprecation-contracts": "^2.2 || ^3.0" - }, - "provide": { - "psr/http-client-implementation": "1.0" - }, - "require-dev": { - "bamarni/composer-bin-plugin": "^1.8.2", - "ext-curl": "*", - "guzzle/client-integration-tests": "3.0.2", - "php-http/message-factory": "^1.1", - "phpunit/phpunit": "^8.5.39 || ^9.6.20", - "psr/log": "^1.1 || ^2.0 || ^3.0" - }, - "suggest": { - "ext-curl": "Required for CURL handler support", - "ext-intl": "Required for Internationalized Domain Name (IDN) support", - "psr/log": "Required for using the Log middleware" - }, - "time": "2024-07-24T11:22:20+00:00", - "type": "library", - "extra": { - "bamarni-bin": { - "bin-links": true, - "forward-command": false - } - }, - "installation-source": "dist", - "autoload": { - "files": [ - "src/functions_include.php" - ], - "psr-4": { - "GuzzleHttp\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Graham Campbell", - "email": "hello@gjcampbell.co.uk", - "homepage": "https://github.com/GrahamCampbell" - }, - { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com", - "homepage": "https://github.com/mtdowling" - }, - { - "name": "Jeremy Lindblom", - "email": "jeremeamia@gmail.com", - "homepage": "https://github.com/jeremeamia" - }, - { - "name": "George Mponos", - "email": "gmponos@gmail.com", - "homepage": "https://github.com/gmponos" - }, - { - "name": "Tobias Nyholm", - "email": "tobias.nyholm@gmail.com", - "homepage": "https://github.com/Nyholm" - }, - { - "name": "Márk Sági-Kazár", - "email": "mark.sagikazar@gmail.com", - "homepage": "https://github.com/sagikazarmark" - }, - { - "name": "Tobias Schultze", - "email": "webmaster@tubo-world.de", - "homepage": "https://github.com/Tobion" - } - ], - "description": "Guzzle is a PHP HTTP client library", - "keywords": [ - "client", - "curl", - "framework", - "http", - "http client", - "psr-18", - "psr-7", - "rest", - "web service" - ], - "support": { - "issues": "https://github.com/guzzle/guzzle/issues", - "source": "https://github.com/guzzle/guzzle/tree/7.9.2" - }, - "funding": [ - { - "url": "https://github.com/GrahamCampbell", - "type": "github" - }, - { - "url": "https://github.com/Nyholm", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/guzzle", - "type": "tidelift" - } - ], - "install-path": "../guzzlehttp/guzzle" - }, - { - "name": "guzzlehttp/promises", - "version": "2.0.4", - "version_normalized": "2.0.4.0", - "source": { - "type": "git", - "url": "https://github.com/guzzle/promises.git", - "reference": "f9c436286ab2892c7db7be8c8da4ef61ccf7b455" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/guzzle/promises/zipball/f9c436286ab2892c7db7be8c8da4ef61ccf7b455", - "reference": "f9c436286ab2892c7db7be8c8da4ef61ccf7b455", - "shasum": "" - }, - "require": { - "php": "^7.2.5 || ^8.0" - }, - "require-dev": { - "bamarni/composer-bin-plugin": "^1.8.2", - "phpunit/phpunit": "^8.5.39 || ^9.6.20" - }, - "time": "2024-10-17T10:06:22+00:00", - "type": "library", - "extra": { - "bamarni-bin": { - "bin-links": true, - "forward-command": false - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "GuzzleHttp\\Promise\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Graham Campbell", - "email": "hello@gjcampbell.co.uk", - "homepage": "https://github.com/GrahamCampbell" - }, - { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com", - "homepage": "https://github.com/mtdowling" - }, - { - "name": "Tobias Nyholm", - "email": "tobias.nyholm@gmail.com", - "homepage": "https://github.com/Nyholm" - }, - { - "name": "Tobias Schultze", - "email": "webmaster@tubo-world.de", - "homepage": "https://github.com/Tobion" - } - ], - "description": "Guzzle promises library", - "keywords": [ - "promise" - ], - "support": { - "issues": "https://github.com/guzzle/promises/issues", - "source": "https://github.com/guzzle/promises/tree/2.0.4" - }, - "funding": [ - { - "url": "https://github.com/GrahamCampbell", - "type": "github" - }, - { - "url": "https://github.com/Nyholm", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/promises", - "type": "tidelift" - } - ], - "install-path": "../guzzlehttp/promises" - }, - { - "name": "guzzlehttp/psr7", - "version": "2.7.0", - "version_normalized": "2.7.0.0", - "source": { - "type": "git", - "url": "https://github.com/guzzle/psr7.git", - "reference": "a70f5c95fb43bc83f07c9c948baa0dc1829bf201" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/guzzle/psr7/zipball/a70f5c95fb43bc83f07c9c948baa0dc1829bf201", - "reference": "a70f5c95fb43bc83f07c9c948baa0dc1829bf201", - "shasum": "" - }, - "require": { - "php": "^7.2.5 || ^8.0", - "psr/http-factory": "^1.0", - "psr/http-message": "^1.1 || ^2.0", - "ralouphie/getallheaders": "^3.0" - }, - "provide": { - "psr/http-factory-implementation": "1.0", - "psr/http-message-implementation": "1.0" - }, - "require-dev": { - "bamarni/composer-bin-plugin": "^1.8.2", - "http-interop/http-factory-tests": "0.9.0", - "phpunit/phpunit": "^8.5.39 || ^9.6.20" - }, - "suggest": { - "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" - }, - "time": "2024-07-18T11:15:46+00:00", - "type": "library", - "extra": { - "bamarni-bin": { - "bin-links": true, - "forward-command": false - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "GuzzleHttp\\Psr7\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Graham Campbell", - "email": "hello@gjcampbell.co.uk", - "homepage": "https://github.com/GrahamCampbell" - }, - { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com", - "homepage": "https://github.com/mtdowling" - }, - { - "name": "George Mponos", - "email": "gmponos@gmail.com", - "homepage": "https://github.com/gmponos" - }, - { - "name": "Tobias Nyholm", - "email": "tobias.nyholm@gmail.com", - "homepage": "https://github.com/Nyholm" - }, - { - "name": "Márk Sági-Kazár", - "email": "mark.sagikazar@gmail.com", - "homepage": "https://github.com/sagikazarmark" - }, - { - "name": "Tobias Schultze", - "email": "webmaster@tubo-world.de", - "homepage": "https://github.com/Tobion" - }, - { - "name": "Márk Sági-Kazár", - "email": "mark.sagikazar@gmail.com", - "homepage": "https://sagikazarmark.hu" - } - ], - "description": "PSR-7 message implementation that also provides common utility methods", - "keywords": [ - "http", - "message", - "psr-7", - "request", - "response", - "stream", - "uri", - "url" - ], - "support": { - "issues": "https://github.com/guzzle/psr7/issues", - "source": "https://github.com/guzzle/psr7/tree/2.7.0" - }, - "funding": [ - { - "url": "https://github.com/GrahamCampbell", - "type": "github" - }, - { - "url": "https://github.com/Nyholm", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/psr7", - "type": "tidelift" - } - ], - "install-path": "../guzzlehttp/psr7" - }, - { - "name": "monolog/monolog", - "version": "3.8.1", - "version_normalized": "3.8.1.0", - "source": { - "type": "git", - "url": "https://github.com/Seldaek/monolog.git", - "reference": "aef6ee73a77a66e404dd6540934a9ef1b3c855b4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/Seldaek/monolog/zipball/aef6ee73a77a66e404dd6540934a9ef1b3c855b4", - "reference": "aef6ee73a77a66e404dd6540934a9ef1b3c855b4", - "shasum": "" - }, - "require": { - "php": ">=8.1", - "psr/log": "^2.0 || ^3.0" - }, - "provide": { - "psr/log-implementation": "3.0.0" - }, - "require-dev": { - "aws/aws-sdk-php": "^3.0", - "doctrine/couchdb": "~1.0@dev", - "elasticsearch/elasticsearch": "^7 || ^8", - "ext-json": "*", - "graylog2/gelf-php": "^1.4.2 || ^2.0", - "guzzlehttp/guzzle": "^7.4.5", - "guzzlehttp/psr7": "^2.2", - "mongodb/mongodb": "^1.8", - "php-amqplib/php-amqplib": "~2.4 || ^3", - "php-console/php-console": "^3.1.8", - "phpstan/phpstan": "^2", - "phpstan/phpstan-deprecation-rules": "^2", - "phpstan/phpstan-strict-rules": "^2", - "phpunit/phpunit": "^10.5.17 || ^11.0.7", - "predis/predis": "^1.1 || ^2", - "rollbar/rollbar": "^4.0", - "ruflin/elastica": "^7 || ^8", - "symfony/mailer": "^5.4 || ^6", - "symfony/mime": "^5.4 || ^6" - }, - "suggest": { - "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", - "doctrine/couchdb": "Allow sending log messages to a CouchDB server", - "elasticsearch/elasticsearch": "Allow sending log messages to an Elasticsearch server via official client", - "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)", - "ext-curl": "Required to send log messages using the IFTTTHandler, the LogglyHandler, the SendGridHandler, the SlackWebhookHandler or the TelegramBotHandler", - "ext-mbstring": "Allow to work properly with unicode symbols", - "ext-mongodb": "Allow sending log messages to a MongoDB server (via driver)", - "ext-openssl": "Required to send log messages using SSL", - "ext-sockets": "Allow sending log messages to a Syslog server (via UDP driver)", - "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server", - "mongodb/mongodb": "Allow sending log messages to a MongoDB server (via library)", - "php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib", - "rollbar/rollbar": "Allow sending log messages to Rollbar", - "ruflin/elastica": "Allow sending log messages to an Elastic Search server" - }, - "time": "2024-12-05T17:15:07+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "3.x-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "Monolog\\": "src/Monolog" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jordi Boggiano", - "email": "j.boggiano@seld.be", - "homepage": "https://seld.be" - } - ], - "description": "Sends your logs to files, sockets, inboxes, databases and various web services", - "homepage": "https://github.com/Seldaek/monolog", - "keywords": [ - "log", - "logging", - "psr-3" - ], - "support": { - "issues": "https://github.com/Seldaek/monolog/issues", - "source": "https://github.com/Seldaek/monolog/tree/3.8.1" - }, - "funding": [ - { - "url": "https://github.com/Seldaek", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/monolog/monolog", - "type": "tidelift" - } - ], - "install-path": "../monolog/monolog" - }, - { - "name": "nesbot/carbon", - "version": "3.8.4", - "version_normalized": "3.8.4.0", - "source": { - "type": "git", - "url": "https://github.com/CarbonPHP/carbon.git", - "reference": "129700ed449b1f02d70272d2ac802357c8c30c58" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/CarbonPHP/carbon/zipball/129700ed449b1f02d70272d2ac802357c8c30c58", - "reference": "129700ed449b1f02d70272d2ac802357c8c30c58", - "shasum": "" - }, - "require": { - "carbonphp/carbon-doctrine-types": "<100.0", - "ext-json": "*", - "php": "^8.1", - "psr/clock": "^1.0", - "symfony/clock": "^6.3 || ^7.0", - "symfony/polyfill-mbstring": "^1.0", - "symfony/translation": "^4.4.18 || ^5.2.1|| ^6.0 || ^7.0" - }, - "provide": { - "psr/clock-implementation": "1.0" - }, - "require-dev": { - "doctrine/dbal": "^3.6.3 || ^4.0", - "doctrine/orm": "^2.15.2 || ^3.0", - "friendsofphp/php-cs-fixer": "^3.57.2", - "kylekatarnls/multi-tester": "^2.5.3", - "ondrejmirtes/better-reflection": "^6.25.0.4", - "phpmd/phpmd": "^2.15.0", - "phpstan/extension-installer": "^1.3.1", - "phpstan/phpstan": "^1.11.2", - "phpunit/phpunit": "^10.5.20", - "squizlabs/php_codesniffer": "^3.9.0" - }, - "time": "2024-12-27T09:25:35+00:00", - "bin": [ - "bin/carbon" - ], - "type": "library", - "extra": { - "laravel": { - "providers": [ - "Carbon\\Laravel\\ServiceProvider" - ] - }, - "phpstan": { - "includes": [ - "extension.neon" - ] - }, - "branch-alias": { - "dev-2.x": "2.x-dev", - "dev-master": "3.x-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "Carbon\\": "src/Carbon/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Brian Nesbitt", - "email": "brian@nesbot.com", - "homepage": "https://markido.com" - }, - { - "name": "kylekatarnls", - "homepage": "https://github.com/kylekatarnls" - } - ], - "description": "An API extension for DateTime that supports 281 different languages.", - "homepage": "https://carbon.nesbot.com", - "keywords": [ - "date", - "datetime", - "time" - ], - "support": { - "docs": "https://carbon.nesbot.com/docs", - "issues": "https://github.com/briannesbitt/Carbon/issues", - "source": "https://github.com/briannesbitt/Carbon" - }, - "funding": [ - { - "url": "https://github.com/sponsors/kylekatarnls", - "type": "github" - }, - { - "url": "https://opencollective.com/Carbon#sponsor", - "type": "opencollective" - }, - { - "url": "https://tidelift.com/subscription/pkg/packagist-nesbot-carbon?utm_source=packagist-nesbot-carbon&utm_medium=referral&utm_campaign=readme", - "type": "tidelift" - } - ], - "install-path": "../nesbot/carbon" - }, - { - "name": "psr/clock", - "version": "1.0.0", - "version_normalized": "1.0.0.0", - "source": { - "type": "git", - "url": "https://github.com/php-fig/clock.git", - "reference": "e41a24703d4560fd0acb709162f73b8adfc3aa0d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/clock/zipball/e41a24703d4560fd0acb709162f73b8adfc3aa0d", - "reference": "e41a24703d4560fd0acb709162f73b8adfc3aa0d", - "shasum": "" - }, - "require": { - "php": "^7.0 || ^8.0" - }, - "time": "2022-11-25T14:36:26+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-4": { - "Psr\\Clock\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "https://www.php-fig.org/" - } - ], - "description": "Common interface for reading the clock.", - "homepage": "https://github.com/php-fig/clock", - "keywords": [ - "clock", - "now", - "psr", - "psr-20", - "time" - ], - "support": { - "issues": "https://github.com/php-fig/clock/issues", - "source": "https://github.com/php-fig/clock/tree/1.0.0" - }, - "install-path": "../psr/clock" - }, - { - "name": "psr/http-client", - "version": "1.0.3", - "version_normalized": "1.0.3.0", - "source": { - "type": "git", - "url": "https://github.com/php-fig/http-client.git", - "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90", - "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90", - "shasum": "" - }, - "require": { - "php": "^7.0 || ^8.0", - "psr/http-message": "^1.0 || ^2.0" - }, - "time": "2023-09-23T14:17:50+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "Psr\\Http\\Client\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "https://www.php-fig.org/" - } - ], - "description": "Common interface for HTTP clients", - "homepage": "https://github.com/php-fig/http-client", - "keywords": [ - "http", - "http-client", - "psr", - "psr-18" - ], - "support": { - "source": "https://github.com/php-fig/http-client" - }, - "install-path": "../psr/http-client" - }, - { - "name": "psr/http-factory", - "version": "1.1.0", - "version_normalized": "1.1.0.0", - "source": { - "type": "git", - "url": "https://github.com/php-fig/http-factory.git", - "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-factory/zipball/2b4765fddfe3b508ac62f829e852b1501d3f6e8a", - "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a", - "shasum": "" - }, - "require": { - "php": ">=7.1", - "psr/http-message": "^1.0 || ^2.0" - }, - "time": "2024-04-15T12:06:14+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "Psr\\Http\\Message\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "https://www.php-fig.org/" - } - ], - "description": "PSR-17: Common interfaces for PSR-7 HTTP message factories", - "keywords": [ - "factory", - "http", - "message", - "psr", - "psr-17", - "psr-7", - "request", - "response" - ], - "support": { - "source": "https://github.com/php-fig/http-factory" - }, - "install-path": "../psr/http-factory" - }, - { - "name": "psr/http-message", - "version": "1.1", - "version_normalized": "1.1.0.0", - "source": { - "type": "git", - "url": "https://github.com/php-fig/http-message.git", - "reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-message/zipball/cb6ce4845ce34a8ad9e68117c10ee90a29919eba", - "reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba", - "shasum": "" - }, - "require": { - "php": "^7.2 || ^8.0" - }, - "time": "2023-04-04T09:50:52+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.1.x-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "Psr\\Http\\Message\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" - } - ], - "description": "Common interface for HTTP messages", - "homepage": "https://github.com/php-fig/http-message", - "keywords": [ - "http", - "http-message", - "psr", - "psr-7", - "request", - "response" - ], - "support": { - "source": "https://github.com/php-fig/http-message/tree/1.1" - }, - "install-path": "../psr/http-message" - }, - { - "name": "psr/log", - "version": "3.0.2", - "version_normalized": "3.0.2.0", - "source": { - "type": "git", - "url": "https://github.com/php-fig/log.git", - "reference": "f16e1d5863e37f8d8c2a01719f5b34baa2b714d3" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/f16e1d5863e37f8d8c2a01719f5b34baa2b714d3", - "reference": "f16e1d5863e37f8d8c2a01719f5b34baa2b714d3", - "shasum": "" - }, - "require": { - "php": ">=8.0.0" - }, - "time": "2024-09-11T13:17:53+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.x-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "Psr\\Log\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "https://www.php-fig.org/" - } - ], - "description": "Common interface for logging libraries", - "homepage": "https://github.com/php-fig/log", - "keywords": [ - "log", - "psr", - "psr-3" - ], - "support": { - "source": "https://github.com/php-fig/log/tree/3.0.2" - }, - "install-path": "../psr/log" - }, - { - "name": "psr/simple-cache", - "version": "3.0.0", - "version_normalized": "3.0.0.0", - "source": { - "type": "git", - "url": "https://github.com/php-fig/simple-cache.git", - "reference": "764e0b3939f5ca87cb904f570ef9be2d78a07865" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/simple-cache/zipball/764e0b3939f5ca87cb904f570ef9be2d78a07865", - "reference": "764e0b3939f5ca87cb904f570ef9be2d78a07865", - "shasum": "" - }, - "require": { - "php": ">=8.0.0" - }, - "time": "2021-10-29T13:26:27+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.0.x-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "Psr\\SimpleCache\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "https://www.php-fig.org/" - } - ], - "description": "Common interfaces for simple caching", - "keywords": [ - "cache", - "caching", - "psr", - "psr-16", - "simple-cache" - ], - "support": { - "source": "https://github.com/php-fig/simple-cache/tree/3.0.0" - }, - "install-path": "../psr/simple-cache" - }, - { - "name": "ralouphie/getallheaders", - "version": "3.0.3", - "version_normalized": "3.0.3.0", - "source": { - "type": "git", - "url": "https://github.com/ralouphie/getallheaders.git", - "reference": "120b605dfeb996808c31b6477290a714d356e822" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822", - "reference": "120b605dfeb996808c31b6477290a714d356e822", - "shasum": "" - }, - "require": { - "php": ">=5.6" - }, - "require-dev": { - "php-coveralls/php-coveralls": "^2.1", - "phpunit/phpunit": "^5 || ^6.5" - }, - "time": "2019-03-08T08:55:37+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "files": [ - "src/getallheaders.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Ralph Khattar", - "email": "ralph.khattar@gmail.com" - } - ], - "description": "A polyfill for getallheaders.", - "support": { - "issues": "https://github.com/ralouphie/getallheaders/issues", - "source": "https://github.com/ralouphie/getallheaders/tree/develop" - }, - "install-path": "../ralouphie/getallheaders" - }, - { - "name": "ratchet/pawl", - "version": "v0.4.1", - "version_normalized": "0.4.1.0", - "source": { - "type": "git", - "url": "https://github.com/ratchetphp/Pawl.git", - "reference": "af70198bab77a582b31169d3cc3982bed25c161f" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/ratchetphp/Pawl/zipball/af70198bab77a582b31169d3cc3982bed25c161f", - "reference": "af70198bab77a582b31169d3cc3982bed25c161f", - "shasum": "" - }, - "require": { - "evenement/evenement": "^3.0 || ^2.0", - "guzzlehttp/psr7": "^2.0 || ^1.7", - "php": ">=5.4", - "ratchet/rfc6455": "^0.3.1", - "react/socket": "^1.9" - }, - "require-dev": { - "phpunit/phpunit": "^9.3 || ^5.7 || ^4.8" - }, - "suggest": { - "reactivex/rxphp": "~2.0" - }, - "time": "2021-12-10T14:32:34+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "files": [ - "src/functions_include.php" - ], - "psr-4": { - "Ratchet\\Client\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "Asynchronous WebSocket client", - "keywords": [ - "Ratchet", - "async", - "client", - "websocket", - "websocket client" - ], - "support": { - "issues": "https://github.com/ratchetphp/Pawl/issues", - "source": "https://github.com/ratchetphp/Pawl/tree/v0.4.1" - }, - "install-path": "../ratchet/pawl" - }, - { - "name": "ratchet/rfc6455", - "version": "v0.3.1", - "version_normalized": "0.3.1.0", - "source": { - "type": "git", - "url": "https://github.com/ratchetphp/RFC6455.git", - "reference": "7c964514e93456a52a99a20fcfa0de242a43ccdb" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/ratchetphp/RFC6455/zipball/7c964514e93456a52a99a20fcfa0de242a43ccdb", - "reference": "7c964514e93456a52a99a20fcfa0de242a43ccdb", - "shasum": "" - }, - "require": { - "guzzlehttp/psr7": "^2 || ^1.7", - "php": ">=5.4.2" - }, - "require-dev": { - "phpunit/phpunit": "^5.7", - "react/socket": "^1.3" - }, - "time": "2021-12-09T23:20:49+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-4": { - "Ratchet\\RFC6455\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Chris Boden", - "email": "cboden@gmail.com", - "role": "Developer" - }, - { - "name": "Matt Bonneau", - "role": "Developer" - } - ], - "description": "RFC6455 WebSocket protocol handler", - "homepage": "http://socketo.me", - "keywords": [ - "WebSockets", - "rfc6455", - "websocket" - ], - "support": { - "chat": "https://gitter.im/reactphp/reactphp", - "issues": "https://github.com/ratchetphp/RFC6455/issues", - "source": "https://github.com/ratchetphp/RFC6455/tree/v0.3.1" - }, - "install-path": "../ratchet/rfc6455" - }, - { - "name": "react/async", - "version": "v4.3.0", - "version_normalized": "4.3.0.0", - "source": { - "type": "git", - "url": "https://github.com/reactphp/async.git", - "reference": "635d50e30844a484495713e8cb8d9e079c0008a5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/reactphp/async/zipball/635d50e30844a484495713e8cb8d9e079c0008a5", - "reference": "635d50e30844a484495713e8cb8d9e079c0008a5", - "shasum": "" - }, - "require": { - "php": ">=8.1", - "react/event-loop": "^1.2", - "react/promise": "^3.2 || ^2.8 || ^1.2.1" - }, - "require-dev": { - "phpstan/phpstan": "1.10.39", - "phpunit/phpunit": "^9.6" - }, - "time": "2024-06-04T14:40:02+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "files": [ - "src/functions_include.php" - ], - "psr-4": { - "React\\Async\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Christian Lück", - "email": "christian@clue.engineering", - "homepage": "https://clue.engineering/" - }, - { - "name": "Cees-Jan Kiewiet", - "email": "reactphp@ceesjankiewiet.nl", - "homepage": "https://wyrihaximus.net/" - }, - { - "name": "Jan Sorgalla", - "email": "jsorgalla@gmail.com", - "homepage": "https://sorgalla.com/" - }, - { - "name": "Chris Boden", - "email": "cboden@gmail.com", - "homepage": "https://cboden.dev/" - } - ], - "description": "Async utilities and fibers for ReactPHP", - "keywords": [ - "async", - "reactphp" - ], - "support": { - "issues": "https://github.com/reactphp/async/issues", - "source": "https://github.com/reactphp/async/tree/v4.3.0" - }, - "funding": [ - { - "url": "https://opencollective.com/reactphp", - "type": "open_collective" - } - ], - "install-path": "../react/async" - }, - { - "name": "react/cache", - "version": "v1.2.0", - "version_normalized": "1.2.0.0", - "source": { - "type": "git", - "url": "https://github.com/reactphp/cache.git", - "reference": "d47c472b64aa5608225f47965a484b75c7817d5b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/reactphp/cache/zipball/d47c472b64aa5608225f47965a484b75c7817d5b", - "reference": "d47c472b64aa5608225f47965a484b75c7817d5b", - "shasum": "" - }, - "require": { - "php": ">=5.3.0", - "react/promise": "^3.0 || ^2.0 || ^1.1" - }, - "require-dev": { - "phpunit/phpunit": "^9.5 || ^5.7 || ^4.8.35" - }, - "time": "2022-11-30T15:59:55+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-4": { - "React\\Cache\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Christian Lück", - "email": "christian@clue.engineering", - "homepage": "https://clue.engineering/" - }, - { - "name": "Cees-Jan Kiewiet", - "email": "reactphp@ceesjankiewiet.nl", - "homepage": "https://wyrihaximus.net/" - }, - { - "name": "Jan Sorgalla", - "email": "jsorgalla@gmail.com", - "homepage": "https://sorgalla.com/" - }, - { - "name": "Chris Boden", - "email": "cboden@gmail.com", - "homepage": "https://cboden.dev/" - } - ], - "description": "Async, Promise-based cache interface for ReactPHP", - "keywords": [ - "cache", - "caching", - "promise", - "reactphp" - ], - "support": { - "issues": "https://github.com/reactphp/cache/issues", - "source": "https://github.com/reactphp/cache/tree/v1.2.0" - }, - "funding": [ - { - "url": "https://opencollective.com/reactphp", - "type": "open_collective" - } - ], - "install-path": "../react/cache" - }, - { - "name": "react/child-process", - "version": "v0.6.6", - "version_normalized": "0.6.6.0", - "source": { - "type": "git", - "url": "https://github.com/reactphp/child-process.git", - "reference": "1721e2b93d89b745664353b9cfc8f155ba8a6159" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/reactphp/child-process/zipball/1721e2b93d89b745664353b9cfc8f155ba8a6159", - "reference": "1721e2b93d89b745664353b9cfc8f155ba8a6159", - "shasum": "" - }, - "require": { - "evenement/evenement": "^3.0 || ^2.0 || ^1.0", - "php": ">=5.3.0", - "react/event-loop": "^1.2", - "react/stream": "^1.4" - }, - "require-dev": { - "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36", - "react/socket": "^1.16", - "sebastian/environment": "^5.0 || ^3.0 || ^2.0 || ^1.0" - }, - "time": "2025-01-01T16:37:48+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-4": { - "React\\ChildProcess\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Christian Lück", - "email": "christian@clue.engineering", - "homepage": "https://clue.engineering/" - }, - { - "name": "Cees-Jan Kiewiet", - "email": "reactphp@ceesjankiewiet.nl", - "homepage": "https://wyrihaximus.net/" - }, - { - "name": "Jan Sorgalla", - "email": "jsorgalla@gmail.com", - "homepage": "https://sorgalla.com/" - }, - { - "name": "Chris Boden", - "email": "cboden@gmail.com", - "homepage": "https://cboden.dev/" - } - ], - "description": "Event-driven library for executing child processes with ReactPHP.", - "keywords": [ - "event-driven", - "process", - "reactphp" - ], - "support": { - "issues": "https://github.com/reactphp/child-process/issues", - "source": "https://github.com/reactphp/child-process/tree/v0.6.6" - }, - "funding": [ - { - "url": "https://opencollective.com/reactphp", - "type": "open_collective" - } - ], - "install-path": "../react/child-process" - }, - { - "name": "react/datagram", - "version": "v1.10.0", - "version_normalized": "1.10.0.0", - "source": { - "type": "git", - "url": "https://github.com/reactphp/datagram.git", - "reference": "9236e1f5a67a6029be17d551e9858c487836c301" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/reactphp/datagram/zipball/9236e1f5a67a6029be17d551e9858c487836c301", - "reference": "9236e1f5a67a6029be17d551e9858c487836c301", - "shasum": "" - }, - "require": { - "evenement/evenement": "^3.0 || ^2.0 || ^1.0", - "php": ">=5.3", - "react/dns": "^1.13", - "react/event-loop": "^1.2", - "react/promise": "^3.2 || ^2.1 || ^1.2" - }, - "require-dev": { - "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36", - "react/async": "^4.3 || ^3 || ^2" - }, - "time": "2024-09-06T11:22:35+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-4": { - "React\\Datagram\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Christian Lück", - "email": "christian@clue.engineering", - "homepage": "https://clue.engineering/" - }, - { - "name": "Cees-Jan Kiewiet", - "email": "reactphp@ceesjankiewiet.nl", - "homepage": "https://wyrihaximus.net/" - }, - { - "name": "Jan Sorgalla", - "email": "jsorgalla@gmail.com", - "homepage": "https://sorgalla.com/" - }, - { - "name": "Chris Boden", - "email": "cboden@gmail.com", - "homepage": "https://cboden.dev/" - } - ], - "description": "Event-driven UDP datagram socket client and server for ReactPHP", - "homepage": "https://github.com/reactphp/datagram", - "keywords": [ - "Socket", - "async", - "client", - "datagram", - "dgram", - "reactphp", - "server", - "udp" - ], - "support": { - "issues": "https://github.com/reactphp/datagram/issues", - "source": "https://github.com/reactphp/datagram/tree/v1.10.0" - }, - "funding": [ - { - "url": "https://opencollective.com/reactphp", - "type": "open_collective" - } - ], - "install-path": "../react/datagram" - }, - { - "name": "react/dns", - "version": "v1.13.0", - "version_normalized": "1.13.0.0", - "source": { - "type": "git", - "url": "https://github.com/reactphp/dns.git", - "reference": "eb8ae001b5a455665c89c1df97f6fb682f8fb0f5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/reactphp/dns/zipball/eb8ae001b5a455665c89c1df97f6fb682f8fb0f5", - "reference": "eb8ae001b5a455665c89c1df97f6fb682f8fb0f5", - "shasum": "" - }, - "require": { - "php": ">=5.3.0", - "react/cache": "^1.0 || ^0.6 || ^0.5", - "react/event-loop": "^1.2", - "react/promise": "^3.2 || ^2.7 || ^1.2.1" - }, - "require-dev": { - "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36", - "react/async": "^4.3 || ^3 || ^2", - "react/promise-timer": "^1.11" - }, - "time": "2024-06-13T14:18:03+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-4": { - "React\\Dns\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Christian Lück", - "email": "christian@clue.engineering", - "homepage": "https://clue.engineering/" - }, - { - "name": "Cees-Jan Kiewiet", - "email": "reactphp@ceesjankiewiet.nl", - "homepage": "https://wyrihaximus.net/" - }, - { - "name": "Jan Sorgalla", - "email": "jsorgalla@gmail.com", - "homepage": "https://sorgalla.com/" - }, - { - "name": "Chris Boden", - "email": "cboden@gmail.com", - "homepage": "https://cboden.dev/" - } - ], - "description": "Async DNS resolver for ReactPHP", - "keywords": [ - "async", - "dns", - "dns-resolver", - "reactphp" - ], - "support": { - "issues": "https://github.com/reactphp/dns/issues", - "source": "https://github.com/reactphp/dns/tree/v1.13.0" - }, - "funding": [ - { - "url": "https://opencollective.com/reactphp", - "type": "open_collective" - } - ], - "install-path": "../react/dns" - }, - { - "name": "react/event-loop", - "version": "v1.5.0", - "version_normalized": "1.5.0.0", - "source": { - "type": "git", - "url": "https://github.com/reactphp/event-loop.git", - "reference": "bbe0bd8c51ffc05ee43f1729087ed3bdf7d53354" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/reactphp/event-loop/zipball/bbe0bd8c51ffc05ee43f1729087ed3bdf7d53354", - "reference": "bbe0bd8c51ffc05ee43f1729087ed3bdf7d53354", - "shasum": "" - }, - "require": { - "php": ">=5.3.0" - }, - "require-dev": { - "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36" - }, - "suggest": { - "ext-pcntl": "For signal handling support when using the StreamSelectLoop" - }, - "time": "2023-11-13T13:48:05+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-4": { - "React\\EventLoop\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Christian Lück", - "email": "christian@clue.engineering", - "homepage": "https://clue.engineering/" - }, - { - "name": "Cees-Jan Kiewiet", - "email": "reactphp@ceesjankiewiet.nl", - "homepage": "https://wyrihaximus.net/" - }, - { - "name": "Jan Sorgalla", - "email": "jsorgalla@gmail.com", - "homepage": "https://sorgalla.com/" - }, - { - "name": "Chris Boden", - "email": "cboden@gmail.com", - "homepage": "https://cboden.dev/" - } - ], - "description": "ReactPHP's core reactor event loop that libraries can use for evented I/O.", - "keywords": [ - "asynchronous", - "event-loop" - ], - "support": { - "issues": "https://github.com/reactphp/event-loop/issues", - "source": "https://github.com/reactphp/event-loop/tree/v1.5.0" - }, - "funding": [ - { - "url": "https://opencollective.com/reactphp", - "type": "open_collective" - } - ], - "install-path": "../react/event-loop" - }, - { - "name": "react/http", - "version": "v1.11.0", - "version_normalized": "1.11.0.0", - "source": { - "type": "git", - "url": "https://github.com/reactphp/http.git", - "reference": "8db02de41dcca82037367f67a2d4be365b1c4db9" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/reactphp/http/zipball/8db02de41dcca82037367f67a2d4be365b1c4db9", - "reference": "8db02de41dcca82037367f67a2d4be365b1c4db9", - "shasum": "" - }, - "require": { - "evenement/evenement": "^3.0 || ^2.0 || ^1.0", - "fig/http-message-util": "^1.1", - "php": ">=5.3.0", - "psr/http-message": "^1.0", - "react/event-loop": "^1.2", - "react/promise": "^3.2 || ^2.3 || ^1.2.1", - "react/socket": "^1.16", - "react/stream": "^1.4" - }, - "require-dev": { - "clue/http-proxy-react": "^1.8", - "clue/reactphp-ssh-proxy": "^1.4", - "clue/socks-react": "^1.4", - "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36", - "react/async": "^4.2 || ^3 || ^2", - "react/promise-stream": "^1.4", - "react/promise-timer": "^1.11" - }, - "time": "2024-11-20T15:24:08+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-4": { - "React\\Http\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Christian Lück", - "email": "christian@clue.engineering", - "homepage": "https://clue.engineering/" - }, - { - "name": "Cees-Jan Kiewiet", - "email": "reactphp@ceesjankiewiet.nl", - "homepage": "https://wyrihaximus.net/" - }, - { - "name": "Jan Sorgalla", - "email": "jsorgalla@gmail.com", - "homepage": "https://sorgalla.com/" - }, - { - "name": "Chris Boden", - "email": "cboden@gmail.com", - "homepage": "https://cboden.dev/" - } - ], - "description": "Event-driven, streaming HTTP client and server implementation for ReactPHP", - "keywords": [ - "async", - "client", - "event-driven", - "http", - "http client", - "http server", - "https", - "psr-7", - "reactphp", - "server", - "streaming" - ], - "support": { - "issues": "https://github.com/reactphp/http/issues", - "source": "https://github.com/reactphp/http/tree/v1.11.0" - }, - "funding": [ - { - "url": "https://opencollective.com/reactphp", - "type": "open_collective" - } - ], - "install-path": "../react/http" - }, - { - "name": "react/promise", - "version": "v3.2.0", - "version_normalized": "3.2.0.0", - "source": { - "type": "git", - "url": "https://github.com/reactphp/promise.git", - "reference": "8a164643313c71354582dc850b42b33fa12a4b63" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/reactphp/promise/zipball/8a164643313c71354582dc850b42b33fa12a4b63", - "reference": "8a164643313c71354582dc850b42b33fa12a4b63", - "shasum": "" - }, - "require": { - "php": ">=7.1.0" - }, - "require-dev": { - "phpstan/phpstan": "1.10.39 || 1.4.10", - "phpunit/phpunit": "^9.6 || ^7.5" - }, - "time": "2024-05-24T10:39:05+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "files": [ - "src/functions_include.php" - ], - "psr-4": { - "React\\Promise\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jan Sorgalla", - "email": "jsorgalla@gmail.com", - "homepage": "https://sorgalla.com/" - }, - { - "name": "Christian Lück", - "email": "christian@clue.engineering", - "homepage": "https://clue.engineering/" - }, - { - "name": "Cees-Jan Kiewiet", - "email": "reactphp@ceesjankiewiet.nl", - "homepage": "https://wyrihaximus.net/" - }, - { - "name": "Chris Boden", - "email": "cboden@gmail.com", - "homepage": "https://cboden.dev/" - } - ], - "description": "A lightweight implementation of CommonJS Promises/A for PHP", - "keywords": [ - "promise", - "promises" - ], - "support": { - "issues": "https://github.com/reactphp/promise/issues", - "source": "https://github.com/reactphp/promise/tree/v3.2.0" - }, - "funding": [ - { - "url": "https://opencollective.com/reactphp", - "type": "open_collective" - } - ], - "install-path": "../react/promise" - }, - { - "name": "react/socket", - "version": "v1.16.0", - "version_normalized": "1.16.0.0", - "source": { - "type": "git", - "url": "https://github.com/reactphp/socket.git", - "reference": "23e4ff33ea3e160d2d1f59a0e6050e4b0fb0eac1" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/reactphp/socket/zipball/23e4ff33ea3e160d2d1f59a0e6050e4b0fb0eac1", - "reference": "23e4ff33ea3e160d2d1f59a0e6050e4b0fb0eac1", - "shasum": "" - }, - "require": { - "evenement/evenement": "^3.0 || ^2.0 || ^1.0", - "php": ">=5.3.0", - "react/dns": "^1.13", - "react/event-loop": "^1.2", - "react/promise": "^3.2 || ^2.6 || ^1.2.1", - "react/stream": "^1.4" - }, - "require-dev": { - "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36", - "react/async": "^4.3 || ^3.3 || ^2", - "react/promise-stream": "^1.4", - "react/promise-timer": "^1.11" - }, - "time": "2024-07-26T10:38:09+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-4": { - "React\\Socket\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Christian Lück", - "email": "christian@clue.engineering", - "homepage": "https://clue.engineering/" - }, - { - "name": "Cees-Jan Kiewiet", - "email": "reactphp@ceesjankiewiet.nl", - "homepage": "https://wyrihaximus.net/" - }, - { - "name": "Jan Sorgalla", - "email": "jsorgalla@gmail.com", - "homepage": "https://sorgalla.com/" - }, - { - "name": "Chris Boden", - "email": "cboden@gmail.com", - "homepage": "https://cboden.dev/" - } - ], - "description": "Async, streaming plaintext TCP/IP and secure TLS socket server and client connections for ReactPHP", - "keywords": [ - "Connection", - "Socket", - "async", - "reactphp", - "stream" - ], - "support": { - "issues": "https://github.com/reactphp/socket/issues", - "source": "https://github.com/reactphp/socket/tree/v1.16.0" - }, - "funding": [ - { - "url": "https://opencollective.com/reactphp", - "type": "open_collective" - } - ], - "install-path": "../react/socket" - }, - { - "name": "react/stream", - "version": "v1.4.0", - "version_normalized": "1.4.0.0", - "source": { - "type": "git", - "url": "https://github.com/reactphp/stream.git", - "reference": "1e5b0acb8fe55143b5b426817155190eb6f5b18d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/reactphp/stream/zipball/1e5b0acb8fe55143b5b426817155190eb6f5b18d", - "reference": "1e5b0acb8fe55143b5b426817155190eb6f5b18d", - "shasum": "" - }, - "require": { - "evenement/evenement": "^3.0 || ^2.0 || ^1.0", - "php": ">=5.3.8", - "react/event-loop": "^1.2" - }, - "require-dev": { - "clue/stream-filter": "~1.2", - "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36" - }, - "time": "2024-06-11T12:45:25+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-4": { - "React\\Stream\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Christian Lück", - "email": "christian@clue.engineering", - "homepage": "https://clue.engineering/" - }, - { - "name": "Cees-Jan Kiewiet", - "email": "reactphp@ceesjankiewiet.nl", - "homepage": "https://wyrihaximus.net/" - }, - { - "name": "Jan Sorgalla", - "email": "jsorgalla@gmail.com", - "homepage": "https://sorgalla.com/" - }, - { - "name": "Chris Boden", - "email": "cboden@gmail.com", - "homepage": "https://cboden.dev/" - } - ], - "description": "Event-driven readable and writable streams for non-blocking I/O in ReactPHP", - "keywords": [ - "event-driven", - "io", - "non-blocking", - "pipe", - "reactphp", - "readable", - "stream", - "writable" - ], - "support": { - "issues": "https://github.com/reactphp/stream/issues", - "source": "https://github.com/reactphp/stream/tree/v1.4.0" - }, - "funding": [ - { - "url": "https://opencollective.com/reactphp", - "type": "open_collective" - } - ], - "install-path": "../react/stream" - }, - { - "name": "symfony/clock", - "version": "v7.2.0", - "version_normalized": "7.2.0.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/clock.git", - "reference": "b81435fbd6648ea425d1ee96a2d8e68f4ceacd24" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/clock/zipball/b81435fbd6648ea425d1ee96a2d8e68f4ceacd24", - "reference": "b81435fbd6648ea425d1ee96a2d8e68f4ceacd24", - "shasum": "" - }, - "require": { - "php": ">=8.2", - "psr/clock": "^1.0", - "symfony/polyfill-php83": "^1.28" - }, - "provide": { - "psr/clock-implementation": "1.0" - }, - "time": "2024-09-25T14:21:43+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "files": [ - "Resources/now.php" - ], - "psr-4": { - "Symfony\\Component\\Clock\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Decouples applications from the system clock", - "homepage": "https://symfony.com", - "keywords": [ - "clock", - "psr20", - "time" - ], - "support": { - "source": "https://github.com/symfony/clock/tree/v7.2.0" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "install-path": "../symfony/clock" - }, - { - "name": "symfony/deprecation-contracts", - "version": "v3.5.1", - "version_normalized": "3.5.1.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6", - "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6", - "shasum": "" - }, - "require": { - "php": ">=8.1" - }, - "time": "2024-09-25T14:20:29+00:00", - "type": "library", - "extra": { - "thanks": { - "url": "https://github.com/symfony/contracts", - "name": "symfony/contracts" - }, - "branch-alias": { - "dev-main": "3.5-dev" - } - }, - "installation-source": "dist", - "autoload": { - "files": [ - "function.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "A generic function and convention to trigger deprecation notices", - "homepage": "https://symfony.com", - "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.1" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "install-path": "../symfony/deprecation-contracts" - }, - { - "name": "symfony/options-resolver", - "version": "v7.2.0", - "version_normalized": "7.2.0.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/options-resolver.git", - "reference": "7da8fbac9dcfef75ffc212235d76b2754ce0cf50" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/options-resolver/zipball/7da8fbac9dcfef75ffc212235d76b2754ce0cf50", - "reference": "7da8fbac9dcfef75ffc212235d76b2754ce0cf50", - "shasum": "" - }, - "require": { - "php": ">=8.2", - "symfony/deprecation-contracts": "^2.5|^3" - }, - "time": "2024-11-20T11:17:29+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-4": { - "Symfony\\Component\\OptionsResolver\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Provides an improved replacement for the array_replace PHP function", - "homepage": "https://symfony.com", - "keywords": [ - "config", - "configuration", - "options" - ], - "support": { - "source": "https://github.com/symfony/options-resolver/tree/v7.2.0" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "install-path": "../symfony/options-resolver" - }, - { - "name": "symfony/polyfill-mbstring", - "version": "v1.31.0", - "version_normalized": "1.31.0.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/85181ba99b2345b0ef10ce42ecac37612d9fd341", - "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341", - "shasum": "" - }, - "require": { - "php": ">=7.2" - }, - "provide": { - "ext-mbstring": "*" - }, - "suggest": { - "ext-mbstring": "For best performance" - }, - "time": "2024-09-09T11:45:10+00:00", - "type": "library", - "extra": { - "thanks": { - "url": "https://github.com/symfony/polyfill", - "name": "symfony/polyfill" - } - }, - "installation-source": "dist", - "autoload": { - "files": [ - "bootstrap.php" - ], - "psr-4": { - "Symfony\\Polyfill\\Mbstring\\": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill for the Mbstring extension", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "mbstring", - "polyfill", - "portable", - "shim" - ], - "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.31.0" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "install-path": "../symfony/polyfill-mbstring" - }, - { - "name": "symfony/polyfill-php83", - "version": "v1.31.0", - "version_normalized": "1.31.0.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-php83.git", - "reference": "2fb86d65e2d424369ad2905e83b236a8805ba491" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php83/zipball/2fb86d65e2d424369ad2905e83b236a8805ba491", - "reference": "2fb86d65e2d424369ad2905e83b236a8805ba491", - "shasum": "" - }, - "require": { - "php": ">=7.2" - }, - "time": "2024-09-09T11:45:10+00:00", - "type": "library", - "extra": { - "thanks": { - "url": "https://github.com/symfony/polyfill", - "name": "symfony/polyfill" - } - }, - "installation-source": "dist", - "autoload": { - "files": [ - "bootstrap.php" - ], - "psr-4": { - "Symfony\\Polyfill\\Php83\\": "" - }, - "classmap": [ - "Resources/stubs" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill backporting some PHP 8.3+ features to lower PHP versions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" - ], - "support": { - "source": "https://github.com/symfony/polyfill-php83/tree/v1.31.0" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "install-path": "../symfony/polyfill-php83" - }, - { - "name": "symfony/translation", - "version": "v7.2.2", - "version_normalized": "7.2.2.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/translation.git", - "reference": "e2674a30132b7cc4d74540d6c2573aa363f05923" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/e2674a30132b7cc4d74540d6c2573aa363f05923", - "reference": "e2674a30132b7cc4d74540d6c2573aa363f05923", - "shasum": "" - }, - "require": { - "php": ">=8.2", - "symfony/deprecation-contracts": "^2.5|^3", - "symfony/polyfill-mbstring": "~1.0", - "symfony/translation-contracts": "^2.5|^3.0" - }, - "conflict": { - "symfony/config": "<6.4", - "symfony/console": "<6.4", - "symfony/dependency-injection": "<6.4", - "symfony/http-client-contracts": "<2.5", - "symfony/http-kernel": "<6.4", - "symfony/service-contracts": "<2.5", - "symfony/twig-bundle": "<6.4", - "symfony/yaml": "<6.4" - }, - "provide": { - "symfony/translation-implementation": "2.3|3.0" - }, - "require-dev": { - "nikic/php-parser": "^4.18|^5.0", - "psr/log": "^1|^2|^3", - "symfony/config": "^6.4|^7.0", - "symfony/console": "^6.4|^7.0", - "symfony/dependency-injection": "^6.4|^7.0", - "symfony/finder": "^6.4|^7.0", - "symfony/http-client-contracts": "^2.5|^3.0", - "symfony/http-kernel": "^6.4|^7.0", - "symfony/intl": "^6.4|^7.0", - "symfony/polyfill-intl-icu": "^1.21", - "symfony/routing": "^6.4|^7.0", - "symfony/service-contracts": "^2.5|^3", - "symfony/yaml": "^6.4|^7.0" - }, - "time": "2024-12-07T08:18:10+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "files": [ - "Resources/functions.php" - ], - "psr-4": { - "Symfony\\Component\\Translation\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Provides tools to internationalize your application", - "homepage": "https://symfony.com", - "support": { - "source": "https://github.com/symfony/translation/tree/v7.2.2" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "install-path": "../symfony/translation" - }, - { - "name": "symfony/translation-contracts", - "version": "v3.5.1", - "version_normalized": "3.5.1.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/translation-contracts.git", - "reference": "4667ff3bd513750603a09c8dedbea942487fb07c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/4667ff3bd513750603a09c8dedbea942487fb07c", - "reference": "4667ff3bd513750603a09c8dedbea942487fb07c", - "shasum": "" - }, - "require": { - "php": ">=8.1" - }, - "time": "2024-09-25T14:20:29+00:00", - "type": "library", - "extra": { - "thanks": { - "url": "https://github.com/symfony/contracts", - "name": "symfony/contracts" - }, - "branch-alias": { - "dev-main": "3.5-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "Symfony\\Contracts\\Translation\\": "" - }, - "exclude-from-classmap": [ - "/Test/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Generic abstractions related to translation", - "homepage": "https://symfony.com", - "keywords": [ - "abstractions", - "contracts", - "decoupling", - "interfaces", - "interoperability", - "standards" - ], - "support": { - "source": "https://github.com/symfony/translation-contracts/tree/v3.5.1" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "install-path": "../symfony/translation-contracts" - }, - { - "name": "team-reflex/discord-php", - "version": "v10.1.5", - "version_normalized": "10.1.5.0", - "source": { - "type": "git", - "url": "https://github.com/discord-php/DiscordPHP.git", - "reference": "23d1347025a7aa57e2a6918080bf2e1eaf1f0181" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/discord-php/DiscordPHP/zipball/23d1347025a7aa57e2a6918080bf2e1eaf1f0181", - "reference": "23d1347025a7aa57e2a6918080bf2e1eaf1f0181", - "shasum": "" - }, - "require": { - "discord-php/http": "^10.1.7", - "discord/interactions": "^2.2", - "ext-json": "*", - "ext-zlib": "*", - "monolog/monolog": "^2.1.1 || ^3.0", - "nesbot/carbon": "^2.38 || ^3.0", - "php": "^8.0", - "psr/simple-cache": "^1.0 || ^2.0 || ^3.0", - "ratchet/pawl": "^0.4.1", - "react/async": "^4.0 || ^3.0", - "react/cache": "^0.5 || ^0.6 || ^1.0", - "react/child-process": "^0.6.3", - "react/datagram": "^1.8", - "react/event-loop": "^1.2", - "react/promise": "^3.0.0", - "symfony/options-resolver": "^5.1.11 || ^6.0 || ^7.0", - "trafficcophp/bytebuffer": "^0.3" - }, - "require-dev": { - "davidcole1340/reactsh": "dev-master", - "friendsofphp/php-cs-fixer": "^3", - "phpunit/phpunit": "^9.4.4", - "symfony/cache": "^5.4", - "symfony/var-dumper": "*", - "wyrihaximus/react-cache-redis": "^4.5" - }, - "suggest": { - "ext-ev": "For a faster, and more performant loop.", - "ext-event": "For a faster, and more performant loop.", - "ext-fileinfo": "For function mime_content_type().", - "ext-gmp": "For 64 bit calculations on x86 (32 bit) PHP.", - "ext-mbstring": "For accurate calculations of string length when handling non-english characters.", - "ext-uv": "For a faster, and more performant loop. Preferred." - }, - "time": "2025-01-09T07:53:01+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "files": [ - "src/Discord/functions.php" - ], - "psr-4": { - "Discord\\": "src/Discord" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "David Cole", - "email": "david.cole1340@gmail.com" - } - ], - "description": "An unofficial API to interact with the voice and text service Discord.", - "support": { - "chat": "https://discord.gg/dphp", - "docs": "https://discord-php.github.io/DiscordPHP/", - "issues": "https://github.com/discord-php/DiscordPHP/issues", - "source": "https://github.com/discord-php/DiscordPHP/tree/v10.1.5", - "wiki": "https://github.com/discord-php/DiscordPHP/wiki" - }, - "funding": [ - { - "url": "https://github.com/Log1x", - "type": "github" - }, - { - "url": "https://github.com/valzargaming", - "type": "github" - }, - { - "url": "https://www.patreon.com/DiscordPHP", - "type": "patreon" - } - ], - "install-path": "../team-reflex/discord-php" - }, - { - "name": "trafficcophp/bytebuffer", - "version": "v0.3", - "version_normalized": "0.3.0.0", - "source": { - "type": "git", - "url": "https://github.com/nesQuick/ByteBuffer.git", - "reference": "e94e5c87c41bc79c0f738b0fa89bad11d27ae0b4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/nesQuick/ByteBuffer/zipball/e94e5c87c41bc79c0f738b0fa89bad11d27ae0b4", - "reference": "e94e5c87c41bc79c0f738b0fa89bad11d27ae0b4", - "shasum": "" - }, - "time": "2016-01-13T22:50:58+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-0": { - "TrafficCophp": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Ole 'nesQuick' Michaelis", - "email": "ole.michaelis@googlemail.com", - "homepage": "http://www.codestars.eu" - } - ], - "description": "Node.js inspired byte stream buffer for PHP.", - "keywords": [ - "Buffer", - "Bytehandling", - "Socket", - "binary data", - "library", - "pack", - "stream", - "wrapper" - ], - "support": { - "issues": "https://github.com/nesQuick/ByteBuffer/issues", - "source": "https://github.com/nesQuick/ByteBuffer/tree/master" - }, - "install-path": "../trafficcophp/bytebuffer" - } - ], - "dev": true, - "dev-package-names": [] -} diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php deleted file mode 100644 index c574630..0000000 --- a/vendor/composer/installed.php +++ /dev/null @@ -1,419 +0,0 @@ - array( - 'name' => '__root__', - 'pretty_version' => '1.0.0+no-version-set', - 'version' => '1.0.0.0', - 'reference' => null, - 'type' => 'library', - 'install_path' => __DIR__ . '/../../', - 'aliases' => array(), - 'dev' => true, - ), - 'versions' => array( - '__root__' => array( - 'pretty_version' => '1.0.0+no-version-set', - 'version' => '1.0.0.0', - 'reference' => null, - 'type' => 'library', - 'install_path' => __DIR__ . '/../../', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'carbonphp/carbon-doctrine-types' => array( - 'pretty_version' => '3.2.0', - 'version' => '3.2.0.0', - 'reference' => '18ba5ddfec8976260ead6e866180bd5d2f71aa1d', - 'type' => 'library', - 'install_path' => __DIR__ . '/../carbonphp/carbon-doctrine-types', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'dantsu/php-image-editor' => array( - 'pretty_version' => '1.4.5', - 'version' => '1.4.5.0', - 'reference' => '59a3e922000767051d380a2c530c61344f1e79ec', - 'type' => 'library', - 'install_path' => __DIR__ . '/../dantsu/php-image-editor', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'dantsu/php-osm-static-api' => array( - 'pretty_version' => '0.6.4', - 'version' => '0.6.4.0', - 'reference' => 'cf89dccfa4f27f6e76de0ab065b313d2f19de728', - 'type' => 'library', - 'install_path' => __DIR__ . '/../dantsu/php-osm-static-api', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'discord-php/http' => array( - 'pretty_version' => 'v10.3.8', - 'version' => '10.3.8.0', - 'reference' => '0a9981dd5f8f96071f54d45e8d6fff2c6c295eb6', - 'type' => 'library', - 'install_path' => __DIR__ . '/../discord-php/http', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'discord/interactions' => array( - 'pretty_version' => '2.2.0', - 'version' => '2.2.0.0', - 'reference' => 'a6fc0c877b75cf5ff5811f2ea69c5cc4ad6ac457', - 'type' => 'library', - 'install_path' => __DIR__ . '/../discord/interactions', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'evenement/evenement' => array( - 'pretty_version' => 'v3.0.2', - 'version' => '3.0.2.0', - 'reference' => '0a16b0d71ab13284339abb99d9d2bd813640efbc', - 'type' => 'library', - 'install_path' => __DIR__ . '/../evenement/evenement', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'fig/http-message-util' => array( - 'pretty_version' => '1.1.5', - 'version' => '1.1.5.0', - 'reference' => '9d94dc0154230ac39e5bf89398b324a86f63f765', - 'type' => 'library', - 'install_path' => __DIR__ . '/../fig/http-message-util', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'guzzlehttp/guzzle' => array( - 'pretty_version' => '7.9.2', - 'version' => '7.9.2.0', - 'reference' => 'd281ed313b989f213357e3be1a179f02196ac99b', - 'type' => 'library', - 'install_path' => __DIR__ . '/../guzzlehttp/guzzle', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'guzzlehttp/promises' => array( - 'pretty_version' => '2.0.4', - 'version' => '2.0.4.0', - 'reference' => 'f9c436286ab2892c7db7be8c8da4ef61ccf7b455', - 'type' => 'library', - 'install_path' => __DIR__ . '/../guzzlehttp/promises', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'guzzlehttp/psr7' => array( - 'pretty_version' => '2.7.0', - 'version' => '2.7.0.0', - 'reference' => 'a70f5c95fb43bc83f07c9c948baa0dc1829bf201', - 'type' => 'library', - 'install_path' => __DIR__ . '/../guzzlehttp/psr7', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'monolog/monolog' => array( - 'pretty_version' => '3.8.1', - 'version' => '3.8.1.0', - 'reference' => 'aef6ee73a77a66e404dd6540934a9ef1b3c855b4', - 'type' => 'library', - 'install_path' => __DIR__ . '/../monolog/monolog', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'nesbot/carbon' => array( - 'pretty_version' => '3.8.4', - 'version' => '3.8.4.0', - 'reference' => '129700ed449b1f02d70272d2ac802357c8c30c58', - 'type' => 'library', - 'install_path' => __DIR__ . '/../nesbot/carbon', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'psr/clock' => array( - 'pretty_version' => '1.0.0', - 'version' => '1.0.0.0', - 'reference' => 'e41a24703d4560fd0acb709162f73b8adfc3aa0d', - 'type' => 'library', - 'install_path' => __DIR__ . '/../psr/clock', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'psr/clock-implementation' => array( - 'dev_requirement' => false, - 'provided' => array( - 0 => '1.0', - ), - ), - 'psr/http-client' => array( - 'pretty_version' => '1.0.3', - 'version' => '1.0.3.0', - 'reference' => 'bb5906edc1c324c9a05aa0873d40117941e5fa90', - 'type' => 'library', - 'install_path' => __DIR__ . '/../psr/http-client', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'psr/http-client-implementation' => array( - 'dev_requirement' => false, - 'provided' => array( - 0 => '1.0', - ), - ), - 'psr/http-factory' => array( - 'pretty_version' => '1.1.0', - 'version' => '1.1.0.0', - 'reference' => '2b4765fddfe3b508ac62f829e852b1501d3f6e8a', - 'type' => 'library', - 'install_path' => __DIR__ . '/../psr/http-factory', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'psr/http-factory-implementation' => array( - 'dev_requirement' => false, - 'provided' => array( - 0 => '1.0', - ), - ), - 'psr/http-message' => array( - 'pretty_version' => '1.1', - 'version' => '1.1.0.0', - 'reference' => 'cb6ce4845ce34a8ad9e68117c10ee90a29919eba', - 'type' => 'library', - 'install_path' => __DIR__ . '/../psr/http-message', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'psr/http-message-implementation' => array( - 'dev_requirement' => false, - 'provided' => array( - 0 => '1.0', - ), - ), - 'psr/log' => array( - 'pretty_version' => '3.0.2', - 'version' => '3.0.2.0', - 'reference' => 'f16e1d5863e37f8d8c2a01719f5b34baa2b714d3', - 'type' => 'library', - 'install_path' => __DIR__ . '/../psr/log', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'psr/log-implementation' => array( - 'dev_requirement' => false, - 'provided' => array( - 0 => '3.0.0', - ), - ), - 'psr/simple-cache' => array( - 'pretty_version' => '3.0.0', - 'version' => '3.0.0.0', - 'reference' => '764e0b3939f5ca87cb904f570ef9be2d78a07865', - 'type' => 'library', - 'install_path' => __DIR__ . '/../psr/simple-cache', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'ralouphie/getallheaders' => array( - 'pretty_version' => '3.0.3', - 'version' => '3.0.3.0', - 'reference' => '120b605dfeb996808c31b6477290a714d356e822', - 'type' => 'library', - 'install_path' => __DIR__ . '/../ralouphie/getallheaders', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'ratchet/pawl' => array( - 'pretty_version' => 'v0.4.1', - 'version' => '0.4.1.0', - 'reference' => 'af70198bab77a582b31169d3cc3982bed25c161f', - 'type' => 'library', - 'install_path' => __DIR__ . '/../ratchet/pawl', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'ratchet/rfc6455' => array( - 'pretty_version' => 'v0.3.1', - 'version' => '0.3.1.0', - 'reference' => '7c964514e93456a52a99a20fcfa0de242a43ccdb', - 'type' => 'library', - 'install_path' => __DIR__ . '/../ratchet/rfc6455', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'react/async' => array( - 'pretty_version' => 'v4.3.0', - 'version' => '4.3.0.0', - 'reference' => '635d50e30844a484495713e8cb8d9e079c0008a5', - 'type' => 'library', - 'install_path' => __DIR__ . '/../react/async', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'react/cache' => array( - 'pretty_version' => 'v1.2.0', - 'version' => '1.2.0.0', - 'reference' => 'd47c472b64aa5608225f47965a484b75c7817d5b', - 'type' => 'library', - 'install_path' => __DIR__ . '/../react/cache', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'react/child-process' => array( - 'pretty_version' => 'v0.6.6', - 'version' => '0.6.6.0', - 'reference' => '1721e2b93d89b745664353b9cfc8f155ba8a6159', - 'type' => 'library', - 'install_path' => __DIR__ . '/../react/child-process', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'react/datagram' => array( - 'pretty_version' => 'v1.10.0', - 'version' => '1.10.0.0', - 'reference' => '9236e1f5a67a6029be17d551e9858c487836c301', - 'type' => 'library', - 'install_path' => __DIR__ . '/../react/datagram', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'react/dns' => array( - 'pretty_version' => 'v1.13.0', - 'version' => '1.13.0.0', - 'reference' => 'eb8ae001b5a455665c89c1df97f6fb682f8fb0f5', - 'type' => 'library', - 'install_path' => __DIR__ . '/../react/dns', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'react/event-loop' => array( - 'pretty_version' => 'v1.5.0', - 'version' => '1.5.0.0', - 'reference' => 'bbe0bd8c51ffc05ee43f1729087ed3bdf7d53354', - 'type' => 'library', - 'install_path' => __DIR__ . '/../react/event-loop', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'react/http' => array( - 'pretty_version' => 'v1.11.0', - 'version' => '1.11.0.0', - 'reference' => '8db02de41dcca82037367f67a2d4be365b1c4db9', - 'type' => 'library', - 'install_path' => __DIR__ . '/../react/http', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'react/promise' => array( - 'pretty_version' => 'v3.2.0', - 'version' => '3.2.0.0', - 'reference' => '8a164643313c71354582dc850b42b33fa12a4b63', - 'type' => 'library', - 'install_path' => __DIR__ . '/../react/promise', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'react/socket' => array( - 'pretty_version' => 'v1.16.0', - 'version' => '1.16.0.0', - 'reference' => '23e4ff33ea3e160d2d1f59a0e6050e4b0fb0eac1', - 'type' => 'library', - 'install_path' => __DIR__ . '/../react/socket', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'react/stream' => array( - 'pretty_version' => 'v1.4.0', - 'version' => '1.4.0.0', - 'reference' => '1e5b0acb8fe55143b5b426817155190eb6f5b18d', - 'type' => 'library', - 'install_path' => __DIR__ . '/../react/stream', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'symfony/clock' => array( - 'pretty_version' => 'v7.2.0', - 'version' => '7.2.0.0', - 'reference' => 'b81435fbd6648ea425d1ee96a2d8e68f4ceacd24', - 'type' => 'library', - 'install_path' => __DIR__ . '/../symfony/clock', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'symfony/deprecation-contracts' => array( - 'pretty_version' => 'v3.5.1', - 'version' => '3.5.1.0', - 'reference' => '74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6', - 'type' => 'library', - 'install_path' => __DIR__ . '/../symfony/deprecation-contracts', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'symfony/options-resolver' => array( - 'pretty_version' => 'v7.2.0', - 'version' => '7.2.0.0', - 'reference' => '7da8fbac9dcfef75ffc212235d76b2754ce0cf50', - 'type' => 'library', - 'install_path' => __DIR__ . '/../symfony/options-resolver', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'symfony/polyfill-mbstring' => array( - 'pretty_version' => 'v1.31.0', - 'version' => '1.31.0.0', - 'reference' => '85181ba99b2345b0ef10ce42ecac37612d9fd341', - 'type' => 'library', - 'install_path' => __DIR__ . '/../symfony/polyfill-mbstring', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'symfony/polyfill-php83' => array( - 'pretty_version' => 'v1.31.0', - 'version' => '1.31.0.0', - 'reference' => '2fb86d65e2d424369ad2905e83b236a8805ba491', - 'type' => 'library', - 'install_path' => __DIR__ . '/../symfony/polyfill-php83', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'symfony/translation' => array( - 'pretty_version' => 'v7.2.2', - 'version' => '7.2.2.0', - 'reference' => 'e2674a30132b7cc4d74540d6c2573aa363f05923', - 'type' => 'library', - 'install_path' => __DIR__ . '/../symfony/translation', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'symfony/translation-contracts' => array( - 'pretty_version' => 'v3.5.1', - 'version' => '3.5.1.0', - 'reference' => '4667ff3bd513750603a09c8dedbea942487fb07c', - 'type' => 'library', - 'install_path' => __DIR__ . '/../symfony/translation-contracts', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'symfony/translation-implementation' => array( - 'dev_requirement' => false, - 'provided' => array( - 0 => '2.3|3.0', - ), - ), - 'team-reflex/discord-php' => array( - 'pretty_version' => 'v10.1.5', - 'version' => '10.1.5.0', - 'reference' => '23d1347025a7aa57e2a6918080bf2e1eaf1f0181', - 'type' => 'library', - 'install_path' => __DIR__ . '/../team-reflex/discord-php', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'trafficcophp/bytebuffer' => array( - 'pretty_version' => 'v0.3', - 'version' => '0.3.0.0', - 'reference' => 'e94e5c87c41bc79c0f738b0fa89bad11d27ae0b4', - 'type' => 'library', - 'install_path' => __DIR__ . '/../trafficcophp/bytebuffer', - 'aliases' => array(), - 'dev_requirement' => false, - ), - ), -); diff --git a/vendor/composer/platform_check.php b/vendor/composer/platform_check.php deleted file mode 100644 index d32d90c..0000000 --- a/vendor/composer/platform_check.php +++ /dev/null @@ -1,26 +0,0 @@ -= 80200)) { - $issues[] = 'Your Composer dependencies require a PHP version ">= 8.2.0". You are running ' . PHP_VERSION . '.'; -} - -if ($issues) { - if (!headers_sent()) { - header('HTTP/1.1 500 Internal Server Error'); - } - if (!ini_get('display_errors')) { - if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { - fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL); - } elseif (!headers_sent()) { - echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL; - } - } - trigger_error( - 'Composer detected issues in your platform: ' . implode(' ', $issues), - E_USER_ERROR - ); -} diff --git a/vendor/dantsu/php-image-editor/.github/FUNDING.yml b/vendor/dantsu/php-image-editor/.github/FUNDING.yml deleted file mode 100644 index 005dee2..0000000 --- a/vendor/dantsu/php-image-editor/.github/FUNDING.yml +++ /dev/null @@ -1 +0,0 @@ -github: DantSu diff --git a/vendor/dantsu/php-image-editor/.gitignore b/vendor/dantsu/php-image-editor/.gitignore deleted file mode 100644 index b09c56d..0000000 --- a/vendor/dantsu/php-image-editor/.gitignore +++ /dev/null @@ -1,6 +0,0 @@ -/.idea -/.phpdoc -/phpdoc.xml -/phpdocumentor -/vendor -/composer.lock diff --git a/vendor/dantsu/php-image-editor/LICENSE b/vendor/dantsu/php-image-editor/LICENSE deleted file mode 100644 index 7793a49..0000000 --- a/vendor/dantsu/php-image-editor/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2021 Franck ALARY - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/vendor/dantsu/php-image-editor/README.md b/vendor/dantsu/php-image-editor/README.md deleted file mode 100644 index 6796e94..0000000 --- a/vendor/dantsu/php-image-editor/README.md +++ /dev/null @@ -1,83 +0,0 @@ -[![Packagist](https://img.shields.io/packagist/dt/DantSu/php-image-editor.svg)](https://packagist.org/packages/DantSu/php-image-editor) -[![Latest Stable Version](https://poser.pugx.org/DantSu/php-image-editor/v/stable)](https://packagist.org/packages/DantSu/php-image-editor) -[![GitHub license](https://img.shields.io/github/license/DantSu/php-image-editor.svg)](https://github.com/DantSu/php-image-editor/blob/master/LICENSE) - -# PHP Image Editor - -PHP library to easily edit image with GD extension. Resize, crop, merge, draw, and many more options ! - -## ✨ Supporting - -⭐ Star this repository to support this project. You will contribute to increase the visibility of this library 🙂 - -## Installation - -Install this library easily with composer : - -```cmd -composer require dantsu/php-image-editor -``` - -## How to use - -### Example 1 - -Create a empty image, draw on it and display it : - -```php -use \DantSu\PHPImageEditor\Image; - -\header('Content-type: image/png'); - -$image = Image::newCanvas(500, 500) - ->drawRectangle(0, 0, 500, 500, '#444') - ->drawRectangle(0, 350, 500, 500, '#FF8800') - ->writeText('I got the power !', __DIR__ . '/resources/font.ttf', 40, '#FFFFFF', Image::ALIGN_CENTER, 310) - ->drawCircle(25, 100, 100, '#FF8800') - ->drawCircle(25, 100, 95, '#000000FF') - ->drawCircle(475, 100, 100, '#FF8800') - ->drawCircle(475, 100, 95, '#000000FF'); - -for($i = 0; $i <= 360; $i+=30) { - $image - ->drawArrowWithAngle(250, 200, $i, 80, 2, '#FF8800') - ->drawArrowWithAngle(250, 200, ($i + 15), 50, 2, '#FF8800'); -} - -$image - ->crop(450, 300, Image::ALIGN_CENTER, Image::ALIGN_MIDDLE) - ->displayPNG(); -``` - -![Sample 1](./src/samples/resources/sample1.png) - - -### Example 2 - -Apply a watermark on a photo and save it : - -```php -use \DantSu\PHPImageEditor\Image; - -Image::fromPath(__DIR__ . '/resources/photo.jpg') - ->downscaleAndCrop(1920, 1080, Image::ALIGN_CENTER, Image::ALIGN_BOTTOM) - ->pasteOn( - Image::fromPath(__DIR__ . '/resources/watermark.png')->downscaleProportion(300, 300), - Image::ALIGN_RIGHT, - Image::ALIGN_TOP - ) - ->saveJPG(__DIR__ . '/my-image.jpg', 70); -``` - -![Sample 2](./src/samples/resources/sample2.jpg) - -## Documentation - -See [DantSu\PHPImageEditor\Image](./docs/classes/DantSu/PHPImageEditor/Image.md) documentation class for more details. - -## Contributing - -Please fork this repository and contribute back using pull requests. - -Any contributions, large or small, major features, bug fixes, are welcomed and appreciated but will be thoroughly reviewed. - diff --git a/vendor/dantsu/php-image-editor/composer.json b/vendor/dantsu/php-image-editor/composer.json deleted file mode 100644 index 0040a00..0000000 --- a/vendor/dantsu/php-image-editor/composer.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "name": "dantsu/php-image-editor", - "type": "library", - "description": "PHP library to easily edit image with GD extension.", - "keywords": [ - "php", - "gd2", - "edit", - "edition", - "editor", - "image", - "picture", - "photo" - ], - "homepage": "https://github.com/DantSu/php-image-editor", - "license": "MIT", - "authors": [ - { - "name": "Franck ALARY", - "homepage": "https://github.com/DantSu", - "role": "Developer" - } - ], - "require": { - "php": ">=7.0", - "ext-gd": "*" - }, - "autoload": { - "psr-4": { - "DantSu\\PHPImageEditor\\": "src/" - } - } -} diff --git a/vendor/dantsu/php-image-editor/docs/classes/DantSu/PHPImageEditor/Image.md b/vendor/dantsu/php-image-editor/docs/classes/DantSu/PHPImageEditor/Image.md deleted file mode 100644 index 123797b..0000000 --- a/vendor/dantsu/php-image-editor/docs/classes/DantSu/PHPImageEditor/Image.md +++ /dev/null @@ -1,1439 +0,0 @@ - -# Image - -DantSu\PHPImageEditor\Image is PHP library to easily edit image with GD extension. Resize, crop, merge, draw, and many more options ! - - - -* Full name: `\DantSu\PHPImageEditor\Image` - -**See Also:** - -* https://github.com/DantSu/php-image-editor - Github page of this project - - - -## Constants - -| Constant | Value | -|:--- |:--- | -|`\DantSu\PHPImageEditor\Image::ALIGN_LEFT`|'left'| -|`\DantSu\PHPImageEditor\Image::ALIGN_CENTER`|'center'| -|`\DantSu\PHPImageEditor\Image::ALIGN_RIGHT`|'right'| -|`\DantSu\PHPImageEditor\Image::ALIGN_TOP`|'top'| -|`\DantSu\PHPImageEditor\Image::ALIGN_MIDDLE`|'middle'| -|`\DantSu\PHPImageEditor\Image::ALIGN_BOTTOM`|'bottom'| - -## Methods - -- [__clone](#-__clone) -- [getWidth](#-getwidth) -- [getHeight](#-getheight) -- [getType](#-gettype) -- [getImage](#-getimage) -- *(static)* [isGdImage](#isgdimage) -- [isImageDefined](#-isimagedefined) -- *(static)* [newCanvas](#newcanvas) -- [resetCanvas](#-resetcanvas) -- *(static)* [fromPath](#frompath) -- [path](#-path) -- *(static)* [fromForm](#fromform) -- [form](#-form) -- *(static)* [fromData](#fromdata) -- [data](#-data) -- *(static)* [fromBase64](#frombase64) -- [base64](#-base64) -- *(static)* [fromCurl](#fromcurl) -- [curl](#-curl) -- [destroy](#-destroy) -- [rotate](#-rotate) -- [resizeProportion](#-resizeproportion) -- [downscaleProportion](#-downscaleproportion) -- [resize](#-resize) -- [downscaleAndCrop](#-downscaleandcrop) -- [crop](#-crop) -- [pasteOn](#-pasteon) -- [pasteGdImageOn](#-pastegdimageon) -- [alphaMask](#-alphamask) -- [setOpacity](#-setopacity) -- [grayscale](#-grayscale) -- [writeText](#-writetext) -- [writeTextAndGetBoundingBox](#-writetextandgetboundingbox) -- [drawRectangle](#-drawrectangle) -- [drawPolygon](#-drawpolygon) -- [drawLine](#-drawline) -- [drawLineWithAngle](#-drawlinewithangle) -- [drawArrowWithAngle](#-drawarrowwithangle) -- [drawArrow](#-drawarrow) -- [drawCircle](#-drawcircle) -- [savePNG](#-savepng) -- [saveJPG](#-savejpg) -- [saveGIF](#-savegif) -- [displayPNG](#-displaypng) -- [displayJPG](#-displayjpg) -- [displayGIF](#-displaygif) -- [getDataPNG](#-getdatapng) -- [getDataJPG](#-getdatajpg) -- [getDataGIF](#-getdatagif) -- [getBase64PNG](#-getbase64png) -- [getBase64JPG](#-getbase64jpg) -- [getBase64GIF](#-getbase64gif) -- [getBase64SourcePNG](#-getbase64sourcepng) -- [getBase64SourceJPG](#-getbase64sourcejpg) -- [getBase64SourceGIF](#-getbase64sourcegif) - -### ->__clone - - - - - - - - - - - -#### Return Value: - - **mixed** : - - - ---- -### ->getWidth - -Return the image width - - - - - - - - - -#### Return Value: - - **int** : Image width - - - ---- -### ->getHeight - -Return the image height - - - - - - - - - -#### Return Value: - - **int** : Image height - - - ---- -### ->getType - -Return the image type -Image type : 1 GIF; 2 JPG; 3 PNG - - - - - - - - - -#### Return Value: - - **int** : Image type - - - ---- -### ->getImage - -Return image resource - - - - - - - - - -#### Return Value: - - **resource|\GdImage** : Image resource - - - ---- -### ::isGdImage - -Return true if $image is a resource or a GDImage instance - - - -* This method is **static**. - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `image` | **mixed** | | - - -#### Return Value: - - **bool** : True if $image is a resource or a GDImage instance - - - ---- -### ->isImageDefined - -Return true if image is initialized - - - - - - - - - -#### Return Value: - - **bool** : Is image initialized - - - ---- -### ::newCanvas - -(Static method) Create a new image with transparent background - - - -* This method is **static**. - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `width` | **int** | Pixel width of the image | -| `height` | **int** | Pixel height of the image | - - -#### Return Value: - - **\DantSu\PHPImageEditor\Image** : Return Image instance - - - ---- -### ->resetCanvas - -Create a new image with transparent background - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `width` | **int** | Pixel width of the image | -| `height` | **int** | Pixel height of the image | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ::fromPath - -(Static method) Open image from local path or URL. - - - -* This method is **static**. - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `path` | **string** | Path to the image file | - - -#### Return Value: - - **\DantSu\PHPImageEditor\Image** : Return Image instance - - - ---- -### ->path - -Open image from local path or URL. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `path` | **string** | Path to the image file | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ::fromForm - -(Static method) Open an uploaded image from html form (using $file["tmp_name"]). - - - -* This method is **static**. - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `file` | **array** | File array from html form | - - -#### Return Value: - - **\DantSu\PHPImageEditor\Image** : Return Image instance - - - ---- -### ->form - -Open an uploaded image from html form (using $file["tmp_name"]). - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `file` | **array** | File array from html form | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ::fromData - -(Static method) Create an Image instance from image raw data. - - - -* This method is **static**. - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `data` | **string** | Raw data of the image | - - -#### Return Value: - - **\DantSu\PHPImageEditor\Image** : Return Image instance - - - ---- -### ->data - -Create an Image instance from image raw data. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `data` | **string** | Raw data of the image | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ::fromBase64 - -(Static method) Create an Image instance from base64 image data. - - - -* This method is **static**. - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `base64` | **string** | Base64 data of the image | - - -#### Return Value: - - **\DantSu\PHPImageEditor\Image** : Return Image instance - - - ---- -### ->base64 - -Create an Image instance from base64 image data. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `base64` | **string** | Base64 data of the image | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ::fromCurl - -(Static method) Open image from URL with cURL. - - - -* This method is **static**. - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `url` | **string** | Url of the image file | -| `curlOptions` | **array** | cURL options | -| `failOnError` | **bool** | If true, throw an exception if the url cannot be loaded | - - -#### Return Value: - - **\DantSu\PHPImageEditor\Image** : Return Image instance - - - ---- -### ->curl - -Open image from URL with cURL. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `url` | **string** | Url of the image file | -| `curlOptions` | **array** | cURL options | -| `failOnError` | **bool** | If true, throw an exception if the url cannot be loaded | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ->destroy - -Destroy image - - - - - - - - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ->rotate - -Rotate counterclockwise the image - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `angle` | **float** | Angle in degrees | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ->resizeProportion - -Resize the image keeping the proportions. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `width` | **int** | Max width | -| `height` | **int** | Max height | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ->downscaleProportion - -Downscale the image keeping the proportions. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `maxWidth` | **int** | Max width | -| `maxHeight` | **int** | Max height | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ->resize - -Resize the image. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `width` | **int** | Target width | -| `height` | **int** | Target height | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ->downscaleAndCrop - -Downscale the image keeping the proportions then crop to fit to $width and $height params. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `width` | **int** | Max width | -| `height` | **int** | Max height | -| `posX` | **int|string** | Left crop position in pixel. You can use `Image::ALIGN_LEFT`, `Image::ALIGN_CENTER`, `Image::ALIGN_RIGHT` | -| `posY` | **int|string** | Top crop position in pixel. You can use `Image::ALIGN_TOP`, `Image::ALIGN_MIDDLE`, `Image::ALIGN_BOTTOM` | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ->crop - -Crop to fit to $width and $height params. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `width` | **int** | Target width | -| `height` | **int** | Target height | -| `posX` | **int|string** | Left crop position in pixel. You can use `Image::ALIGN_LEFT`, `Image::ALIGN_CENTER`, `Image::ALIGN_RIGHT` | -| `posY` | **int|string** | Top crop position in pixel. You can use `Image::ALIGN_TOP`, `Image::ALIGN_MIDDLE`, `Image::ALIGN_BOTTOM` | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ->pasteOn - -Paste the image at $posX and $posY position (You can use `Image::ALIGN_...`). - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `image` | **\DantSu\PHPImageEditor\Image** | Image instance to be paste on | -| `posX` | **int|string** | Left position in pixel. You can use `Image::ALIGN_LEFT`, `Image::ALIGN_CENTER`, `Image::ALIGN_RIGHT` | -| `posY` | **int|string** | Top position in pixel. You can use `Image::ALIGN_TOP`, `Image::ALIGN_MIDDLE`, `Image::ALIGN_BOTTOM` | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ->pasteGdImageOn - -Paste the image at $posX and $posY position (You can use `Image::ALIGN_...`). - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `image` | **resource|\GdImage** | Image resource | -| `imageWidth` | **int** | Image width to paste | -| `imageHeight` | **int** | Image height to paste | -| `posX` | **int|string** | Left position in pixel. You can use `Image::ALIGN_LEFT`, `Image::ALIGN_CENTER`, `Image::ALIGN_RIGHT` | -| `posY` | **int|string** | Top position in pixel. You can use `Image::ALIGN_TOP`, `Image::ALIGN_MIDDLE`, `Image::ALIGN_BOTTOM` | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ->alphaMask - -Use a grayscale image (`$mask`) to apply transparency to the image. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `mask` | **\DantSu\PHPImageEditor\Image** | Image instance of the grayscale alpha mask | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ->setOpacity - -change the image opacity - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `opacity` | **float** | Opacity (0 to 1) | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ->grayscale - -Apply a grayscale filter on the image. - - - - - - - - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ->writeText - -Write text on the image. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `string` | **string** | Text to be added on the image | -| `fontPath` | **string** | Path to the TTF file | -| `fontSize` | **float** | Font size | -| `color` | **string** | Hexadecimal string color | -| `posX` | **float|string** | Left position in pixel. You can use `Image::ALIGN_LEFT`, `Image::ALIGN_CENTER`, `Image::ALIGN_RIGHT` | -| `posY` | **float|string** | Top position in pixel. You can use `Image::ALIGN_TOP`, `Image::ALIGN_MIDDLE`, `Image::ALIGN_BOTTOM` | -| `anchorX` | **float|string** | Horizontal anchor of the text. You can use `Image::ALIGN_LEFT`, `Image::ALIGN_CENTER`, `Image::ALIGN_RIGHT` | -| `anchorY` | **float|string** | Vertical anchor of the text. You can use `Image::ALIGN_TOP`, `Image::ALIGN_MIDDLE`, `Image::ALIGN_BOTTOM` | -| `rotation` | **float** | Counterclockwise text rotation in degrees | -| `letterSpacing` | **float** | add space between letters | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ->writeTextAndGetBoundingBox - -Write text on the image and get the bounding box of the text in the image. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `string` | **string** | Text to be added on the image | -| `fontPath` | **string** | Path to the TTF file | -| `fontSize` | **float** | Font size | -| `color` | **string** | Hexadecimal string color | -| `posX` | **float|string** | Left position in pixel. You can use `Image::ALIGN_LEFT`, `Image::ALIGN_CENTER`, `Image::ALIGN_RIGHT` | -| `posY` | **float|string** | Top position in pixel. You can use `Image::ALIGN_TOP`, `Image::ALIGN_MIDDLE`, `Image::ALIGN_BOTTOM` | -| `anchorX` | **float|string** | Horizontal anchor of the text. You can use `Image::ALIGN_LEFT`, `Image::ALIGN_CENTER`, `Image::ALIGN_RIGHT` | -| `anchorY` | **float|string** | Vertical anchor of the text. You can use `Image::ALIGN_TOP`, `Image::ALIGN_MIDDLE`, `Image::ALIGN_BOTTOM` | -| `rotation` | **float** | Counterclockwise text rotation in degrees | -| `letterSpacing` | **float** | add space between letters | - - -#### Return Value: - - **array** : Bounding box positions of the text - - - ---- -### ->drawRectangle - -Draw a rectangle. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `left` | **int** | Left position in pixel | -| `top` | **int** | Top position in pixel | -| `right` | **int** | Right position in pixel | -| `bottom` | **int** | Bottom position in pixel | -| `color` | **string** | Hexadecimal string color | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ->drawPolygon - -Draw a polygon. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `points` | **int[]** | Array of polygon's points [x1, y1, x2, y2, x3, y3...] | -| `color` | **string** | Hexadecimal string color | -| `antialias` | **mixed** | | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ->drawLine - -Draw a Line from `$originX, $originY` to `$dstX, $dstY`. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `originX` | **int** | Horizontal start position in pixel | -| `originY` | **int** | Vertical start position in pixel | -| `dstX` | **int** | Horizontal destination in pixel | -| `dstY` | **int** | Vertical destination in pixel | -| `weight` | **int** | Line weight in pixel | -| `color` | **string** | Hexadecimal string color | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ->drawLineWithAngle - -Draw a line using angle and length. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `originX` | **int** | Horizontal start position in pixel | -| `originY` | **int** | Vertical start position in pixel | -| `angle` | **float** | Counterclockwise angle in degrees | -| `length` | **float** | Line length in pixel | -| `weight` | **int** | Line weight in pixel | -| `color` | **string** | Hexadecimal string color | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ->drawArrowWithAngle - -Draw an arrow with angle and length. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `originX` | **int** | Horizontal start position in pixel | -| `originY` | **int** | Vertical start position in pixel | -| `angle` | **float** | Counterclockwise angle in degrees | -| `length` | **float** | Line length in pixel | -| `weight` | **int** | Line weight in pixel | -| `color` | **string** | Hexadecimal string color | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ->drawArrow - -Draw and arrow from `$originX, $originY` to `$dstX, $dstY`. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `originX` | **int** | Horizontal start position in pixel | -| `originY` | **int** | Vertical start position in pixel | -| `dstX` | **int** | Horizontal destination in pixel | -| `dstY` | **int** | Vertical destination in pixel | -| `weight` | **int** | Line weight in pixel | -| `color` | **string** | Hexadecimal string color | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ->drawCircle - -Draw a circle. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `posX` | **int** | Left position of the circle in pixel | -| `posY` | **int** | Top position of the circle in pixel | -| `diameter` | **int** | Circle diameter in pixel | -| `color` | **string** | Hexadecimal string color | -| `anchorX` | **string** | Horizontal anchor of the text. You can use `Image::ALIGN_LEFT`, `Image::ALIGN_CENTER`, `Image::ALIGN_RIGHT` | -| `anchorY` | **string** | Vertical anchor of the text. You can use `Image::ALIGN_TOP`, `Image::ALIGN_MIDDLE`, `Image::ALIGN_BOTTOM` | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ->savePNG - -Save the image to PNG file. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `path` | **string** | Path to the PNG image file | - - -#### Return Value: - - **bool** : return true if success - - - ---- -### ->saveJPG - -Save the image to JPG file. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `path` | **string** | Path to the JPG image file | -| `quality` | **int** | JPG quality : 0 to 100 | - - -#### Return Value: - - **bool** : return true if success - - - ---- -### ->saveGIF - -Save the image to GIF file. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `path` | **string** | Path to the GIF image file | - - -#### Return Value: - - **bool** : return true if success - - - ---- -### ->displayPNG - -Display in PNG format. - - - - - - - - - -#### Return Value: - - **mixed** : - - - ---- -### ->displayJPG - -Display in JPG format. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `quality` | **int** | JPG quality : 0 to 100 | - - -#### Return Value: - - **mixed** : - - - ---- -### ->displayGIF - -Display in GIF format. - - - - - - - - - -#### Return Value: - - **mixed** : - - - ---- -### ->getDataPNG - -Get image PNG raw data - - - - - - - - - -#### Return Value: - - **string** : Data - - - ---- -### ->getDataJPG - -Get image JPG raw data - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `quality` | **int** | JPG quality : 0 to 100 | - - -#### Return Value: - - **string** : Data - - - ---- -### ->getDataGIF - -Get image GIF raw data - - - - - - - - - -#### Return Value: - - **string** : Data - - - ---- -### ->getBase64PNG - -Get image PNG base64 data - - - - - - - - - -#### Return Value: - - **string** : Data - - - ---- -### ->getBase64JPG - -Get image JPG base64 data - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `quality` | **int** | JPG quality : 0 to 100 | - - -#### Return Value: - - **string** : Data - - - ---- -### ->getBase64GIF - -Get image GIF base64 data - - - - - - - - - -#### Return Value: - - **string** : Data - - - ---- -### ->getBase64SourcePNG - -Get image PNG base64 data for tag. - - - - - - - - - -#### Return Value: - - **string** : Data - - - ---- -### ->getBase64SourceJPG - -Get image JPG base64 data for tag. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `quality` | **int** | JPG quality : 0 to 100 | - - -#### Return Value: - - **string** : Data - - - ---- -### ->getBase64SourceGIF - -Get image GIF base64 data for tag. - - - - - - - - - -#### Return Value: - - **string** : Data - - - ---- - - ---- -> Automatically generated from source code comments on 2022-11-09 using [phpDocumentor](http://www.phpdoc.org/) diff --git a/vendor/dantsu/php-image-editor/docs/index.md b/vendor/dantsu/php-image-editor/docs/index.md deleted file mode 100644 index 6c67615..0000000 --- a/vendor/dantsu/php-image-editor/docs/index.md +++ /dev/null @@ -1,22 +0,0 @@ - -# PHP Image Editor - -This is an automatically generated documentation for **PHP Image Editor**. - - -## Namespaces - - -### \DantSu\PHPImageEditor - -#### Classes - -| Class | Description | -|--- |--- | -| [Image](./classes/DantSu/PHPImageEditor/Image.md) | DantSu\PHPImageEditor\Image is PHP library to easily edit image with GD extension. Resize, crop, merge, draw, and many more options !| - - - - ---- -> Automatically generated from source code comments on 2022-11-09 using [phpDocumentor](http://www.phpdoc.org/) diff --git a/vendor/dantsu/php-image-editor/src/Geometry2D.php b/vendor/dantsu/php-image-editor/src/Geometry2D.php deleted file mode 100644 index 2333233..0000000 --- a/vendor/dantsu/php-image-editor/src/Geometry2D.php +++ /dev/null @@ -1,61 +0,0 @@ -= 360) { - if ($angle < 0) $angle += 360; - elseif ($angle >= 360) $angle -= 360; - } - return $angle; - } - - public static function getDstXY(float $originX, float $originY, float $angle, float $length): array - { - $angle = 360 - $angle; - return [ - 'x' => $originX + \cos($angle * M_PI / 180) * $length, - 'y' => $originY + \sin($angle * M_PI / 180) * $length - ]; - } - - public static function getDstXYRounded(float $originX, float $originY, float $angle, float $length): array - { - $xy = Geometry2D::getDstXY($originX, $originY, $angle, $length); - return [ - 'x' => \round($xy['x']), - 'y' => \round($xy['y']) - ]; - } - - public static function getAngleAndLengthFromPoints(float $originX, float $originY, float $dstX, float $dstY): array - { - $width = $dstX - $originX; - $height = $dstY - $originY; - $diameter = \sqrt(\pow($width, 2) + \pow($height, 2)); - - if($width == 0) { - $angle = 90; - } elseif ($height == 0) { - $angle = 0; - } else { - $angle = \atan2(\abs($height), \abs($width)) * 180.0 / M_PI; - } - - if($width < 0 && $height < 0) { - $angle += 180; - } elseif ($width < 0) { - $angle = 180 - $angle; - } elseif ($height < 0) { - $angle = 360 - $angle; - } - - return [ - 'angle' => 360 - $angle, - 'length' => $diameter - ]; - } -} diff --git a/vendor/dantsu/php-image-editor/src/Image.php b/vendor/dantsu/php-image-editor/src/Image.php deleted file mode 100644 index b4a049a..0000000 --- a/vendor/dantsu/php-image-editor/src/Image.php +++ /dev/null @@ -1,1418 +0,0 @@ -image; - $this - ->resetCanvas($this->width, $this->height) - ->pasteGdImageOn($srcInstance, $this->width, $this->height, 0, 0); - } - - /** - * Return the image width - * - * @return int Image width - */ - public function getWidth(): int - { - return $this->width; - } - - /** - * Return the image height - * - * @return int Image height - */ - public function getHeight(): int - { - return $this->height; - } - - /** - * Return the image type - * Image type : 1 GIF; 2 JPG; 3 PNG - * - * @return int Image type - */ - public function getType(): int - { - return $this->type; - } - - /** - * Return image resource - * @return resource|\GdImage Image resource - */ - public function getImage() - { - return $this->image; - } - - /** - * Return true if $image is a resource or a GDImage instance - * @param resource|\GdImage A variable to be tested - * @return bool True if $image is a resource or a GDImage instance - */ - public static function isGdImage($image): bool - { - return \is_resource($image) || (\is_object($image) && $image instanceof \GdImage); - } - - /** - * Return true if image is initialized - * - * @return bool Is image initialized - */ - public function isImageDefined(): bool - { - return static::isGdImage($this->image); - } - - //=============================================================================================================================== - //============================================================CREATE/DESTROY===================================================== - //=============================================================================================================================== - - /** - * (Static method) Create a new image with transparent background - * - * @param int $width Pixel width of the image - * @param int $height Pixel height of the image - * @return Image Return Image instance - */ - public static function newCanvas(int $width, int $height): Image - { - return (new Image)->resetCanvas($width, $height); - } - - /** - * Create a new image with transparent background - * - * @param int $width Pixel width of the image - * @param int $height Pixel height of the image - * @return $this Fluent interface - */ - public function resetCanvas(int $width, int $height): Image - { - if (($this->image = \imagecreatetruecolor($width, $height)) === false) { - $this->resetFields(); - return $this; - } - - \imagealphablending($this->image, false); - \imagesavealpha($this->image, true); - \imagefill($this->image, 0, 0, \imagecolorallocatealpha($this->image, 0, 0, 0, 127)); - - $this->width = $width; - $this->height = $height; - return $this; - } - - /** - * (Static method) Open image from local path or URL. - * - * @param string $path Path to the image file - * @return Image Return Image instance - */ - public static function fromPath(string $path): Image - { - return (new Image)->path($path); - } - - /** - * Open image from local path or URL. - * - * @param string $path Path to the image file - * @return $this Fluent interface - */ - public function path(string $path): Image - { - $imageSize = \getimagesize($path); - - if ($imageSize === false) { - return $this; - } - - list($this->width, $this->height, $this->type, $attr) = $imageSize; - - switch ($this->type) { - case 1: - $this->image = \imagecreatefromgif($path); - break; - case 2: - $this->image = \imagecreatefromjpeg($path); - break; - case 3: - $this->image = \imagecreatefrompng($path); - break; - } - - if ($this->image === false) { - return $this->resetFields(); - } - - if (!\imageistruecolor($this->image)) { - \imagepalettetotruecolor($this->image); - } - - \imagealphablending($this->image, false); - \imagesavealpha($this->image, true); - - return $this; - } - - /** - * (Static method) Open an uploaded image from html form (using $file["tmp_name"]). - * - * @param array $file File array from html form - * @return Image Return Image instance - */ - public static function fromForm(array $file): Image - { - return (new Image)->form($file); - } - - /** - * Open an uploaded image from html form (using $file["tmp_name"]). - * - * @param array $file File array from html form - * @return $this Fluent interface - */ - public function form(array $file): Image - { - if (isset($file) && isset($file["name"]) && $file["name"] != "") { - $this->path($file["tmp_name"]); - } - return $this; - } - - /** - * (Static method) Create an Image instance from image raw data. - * - * @param string $data Raw data of the image - * @return Image Return Image instance - */ - public static function fromData(string $data): Image - { - return (new Image)->data($data); - } - - /** - * Create an Image instance from image raw data. - * - * @param string $data Raw data of the image - * @return $this Fluent interface - */ - public function data(string $data): Image - { - if (($this->image = \imagecreatefromstring($data)) === false) { - return $this->resetFields(); - } - - $this->width = \imagesx($this->image); - $this->height = \imagesy($this->image); - $this->type = 3; - - if (!\imageistruecolor($this->image)) { - \imagepalettetotruecolor($this->image); - } - - \imagealphablending($this->image, false); - \imagesavealpha($this->image, true); - - return $this; - } - - /** - * (Static method) Create an Image instance from base64 image data. - * - * @param string $base64 Base64 data of the image - * @return Image Return Image instance - */ - public static function fromBase64(string $base64): Image - { - return (new Image)->base64($base64); - } - - /** - * Create an Image instance from base64 image data. - * - * @param string $base64 Base64 data of the image - * @return $this Fluent interface - */ - public function base64(string $base64): Image - { - return $this->data(\base64_decode($base64)); - } - - /** - * (Static method) Open image from URL with cURL. - * - * @param string $url Url of the image file - * @param array $curlOptions cURL options - * @param bool $failOnError If true, throw an exception if the url cannot be loaded - * @return Image Return Image instance - * @throws \Exception - */ - public static function fromCurl(string $url, array $curlOptions = [], bool $failOnError = false): Image - { - return (new Image)->curl($url, $curlOptions, $failOnError); - } - - /** - * Open image from URL with cURL. - * - * @param string $url Url of the image file - * @param array $curlOptions cURL options - * @param bool $failOnError If true, throw an exception if the url cannot be loaded - * @return $this Fluent interface - * @throws \Exception - */ - public function curl(string $url, array $curlOptions = [], bool $failOnError = false): Image - { - $defaultCurlOptions = [ - CURLOPT_USERAGENT => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/116.0', - CURLOPT_REFERER => \strtolower($_SERVER["REQUEST_SCHEME"] . '://' . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]), - CURLOPT_RETURNTRANSFER => 1, - CURLOPT_TIMEOUT => 5, - ]; - - $curl = \curl_init(); - \curl_setopt($curl, CURLOPT_URL, $url); - \curl_setopt_array($curl, $defaultCurlOptions + $curlOptions); - - $image = \curl_exec($curl); - - if ($failOnError && \curl_errno($curl)) { - throw new \Exception(\curl_error($curl)); - } - - \curl_close($curl); - - if ($image === false) { - return $this->resetFields(); - } - - return $this->data($image); - } - - - /** - * Destroy image - * - * @return $this Fluent interface - */ - public function destroy(): Image - { - if ($this->isImageDefined()) { - \imagedestroy($this->image); - } - $this->resetFields(); - return $this; - } - - /** - * Reset private fields - * - * @return $this Fluent interface - */ - private function resetFields(): Image - { - $this->image = null; - $this->type = null; - $this->width = null; - $this->height = null; - return $this; - } - - - - - //=============================================================================================================================== - //============================================================UTILS============================================================== - //=============================================================================================================================== - - /** - * Convert horizontal `Image::ALIGN_...` to int position. - * - * @param int|string $posX Pixel position or `Image::ALIGN_...` constant - * @param int $width Width of the element to align - * @return int Horizontal pixel position - */ - private function convertPosX($posX, int $width = 0): int - { - switch ($posX) { - case static::ALIGN_LEFT: - return 0; - case static::ALIGN_CENTER: - return \round($this->width / 2 - $width / 2); - case static::ALIGN_RIGHT: - return $this->width - $width; - } - return \round($posX); - } - - /** - * Convert vertical `Image::ALIGN_...` to int position. - * - * @param int|string $posY Pixel position or `Image::ALIGN_...` constant - * @param int $height Height of the element to align - * @return int Vertical pixel position - */ - private function convertPosY($posY, int $height = 0): int - { - switch ($posY) { - case static::ALIGN_TOP: - return 0; - case static::ALIGN_MIDDLE: - return \round($this->height / 2 - $height / 2); - case static::ALIGN_BOTTOM: - return $this->height - $height; - } - return \round($posY); - } - - //=============================================================================================================================== - //=================================================RESIZING/ROTATE/TRUNCATE====================================================== - //=============================================================================================================================== - - - /** - * Rotate counterclockwise the image - * - * @param float $angle Angle in degrees - * @return $this Fluent interface - */ - public function rotate(float $angle): Image - { - if (!$this->isImageDefined()) { - return $this; - } - - if (($image = \imagerotate($this->image, Geometry2D::degrees0to360($angle), $this->colorAllocate('#000000FF'), 0)) !== false) { - $this->image = $image; - $this->width = \imagesx($this->image); - $this->height = \imagesy($this->image); - } - return $this; - } - - /** - * Resize the image keeping the proportions. - * - * @param int $width Max width - * @param int $height Max height - * @return $this Fluent interface - */ - public function resizeProportion(int $width, int $height): Image - { - $finalWidth = $width; - $finalHeight = \round($this->height * $width / $this->width); - - if ($finalHeight > $height) { - $finalWidth = \round($this->width * $height / $this->height); - $finalHeight = $height; - } - - return $this->resize($finalWidth, $finalHeight); - } - - /** - * Downscale the image keeping the proportions. - * - * @param int $maxWidth Max width - * @param int $maxHeight Max height - * @return $this Fluent interface - */ - public function downscaleProportion(int $maxWidth, int $maxHeight): Image - { - if ($this->width > $maxWidth || $this->height > $maxHeight) { - if ($this->width > $this->height) { - $finalHeight = \round($this->height * $maxWidth / $this->width); - $finalWidth = $maxWidth; - - if ($finalHeight > $maxHeight) { - $finalWidth = \round($this->width * $maxHeight / $this->height); - $finalHeight = $maxHeight; - } - } else { - $finalWidth = \round($this->width * $maxHeight / $this->height); - $finalHeight = $maxHeight; - } - } else { - $finalWidth = $this->width; - $finalHeight = $this->height; - } - - return $this->resize($finalWidth, $finalHeight); - } - - /** - * Resize the image. - * - * @param int $width Target width - * @param int $height Target height - * @return $this Fluent interface - */ - public function resize(int $width, int $height): Image - { - if (!$this->isImageDefined()) { - return $this; - } - - $image = Image::newCanvas($width, $height)->getImage(); - - if (\imagecopyresampled($image, $this->image, 0, 0, 0, 0, $width, $height, $this->width, $this->height) !== false) { - $this->image = $image; - $this->width = $width; - $this->height = $height; - } - return $this; - } - - /** - * Downscale the image keeping the proportions then crop to fit to $width and $height params. - * Use $posX and $posY to select the cropping zone (You can use `Image::ALIGN_...`). - * - * @param int $width Max width - * @param int $height Max height - * @param int|string $posX Left crop position in pixel. You can use `Image::ALIGN_LEFT`, `Image::ALIGN_CENTER`, `Image::ALIGN_RIGHT` - * @param int|string $posY Top crop position in pixel. You can use `Image::ALIGN_TOP`, `Image::ALIGN_MIDDLE`, `Image::ALIGN_BOTTOM` - * @return $this Fluent interface - */ - public function downscaleAndCrop(int $width, int $height, $posX = Image::ALIGN_CENTER, $posY = Image::ALIGN_MIDDLE): Image - { - if ($this->width < $width) { - $width = $this->width; - } - if ($this->height < $height) { - $height = $this->height; - } - - $finalWidth = \round($this->width * $height / $this->height); - $finalHeight = $height; - - if ($finalWidth < $width) { - $finalHeight = \round($this->height * $width / $this->width); - $finalWidth = $width; - } - - if ($this->downscaleProportion($finalWidth, $finalHeight)) { - $this->crop($width, $height, $posX, $posY); - } - - return $this; - } - - /** - * Crop to fit to $width and $height params. - * Use $posX and $posY to select the cropping zone (You can use `Image::ALIGN_...`). - * - * @param int $width Target width - * @param int $height Target height - * @param int|string $posX Left crop position in pixel. You can use `Image::ALIGN_LEFT`, `Image::ALIGN_CENTER`, `Image::ALIGN_RIGHT` - * @param int|string $posY Top crop position in pixel. You can use `Image::ALIGN_TOP`, `Image::ALIGN_MIDDLE`, `Image::ALIGN_BOTTOM` - * @return $this Fluent interface - */ - public function crop(int $width, int $height, $posX = Image::ALIGN_CENTER, $posY = Image::ALIGN_MIDDLE): Image - { - if (!$this->isImageDefined()) { - return $this; - } - - if ($this->width < $width) { - $width = $this->width; - } - if ($this->height < $height) { - $height = $this->height; - } - - //============================================== - - $posX = $this->convertPosX($posX, $width); - $posY = $this->convertPosY($posY, $height); - - //============================================== - - if ($posX < 0) { - $posX = 0; - } - - if ($posX + $width > $this->width) { - $posX = $this->width - $width; - } - - if ($posY < 0) { - $posY = 0; - } - - if ($posY + $height > $this->height) { - $posY = $this->height - $height; - } - - //============================================== - - if ( - ($image = \imagecreatetruecolor($width, $height)) !== false && - \imagealphablending($image, false) !== false && - \imagesavealpha($image, true) !== false && - ($transparent = $this->colorAllocate('#000000FF')) !== false && - \imagefill($image, 0, 0, $transparent) !== false && - \imagecopyresampled($image, $this->image, 0, 0, $posX, $posY, $width, $height, $width, $height) !== false - ) { - $this->image = $image; - $this->width = $width; - $this->height = $height; - } - - return $this; - } - - //=============================================================================================================================== - //==========================================================COLOR================================================================ - //=============================================================================================================================== - - /** - * Format the string color. - * - * @param string $stringColor Hexadecimal string color - * @return string Formatted hexadecimal string color - */ - private static function formatColor(string $stringColor): string - { - $stringColor = \trim(\str_replace('#', '', $stringColor)); - switch (\mb_strlen($stringColor)) { - case 3 : - $r = \substr($stringColor, 0, 1); - $g = \substr($stringColor, 1, 1); - $b = \substr($stringColor, 2, 1); - return $r . $r . $g . $g . $b . $b . '00'; - case 6 : - return $stringColor . '00'; - case 8 : - return $stringColor; - default: - return '00000000'; - } - } - - /** - * Allocate a new color to the image. - * - * @param string $color Hexadecimal string color - * @return int|false Color id - */ - private function colorAllocate(string $color) - { - $color = static::formatColor($color); - $red = \hexdec(\substr($color, 0, 2)); - $green = \hexdec(\substr($color, 2, 2)); - $blue = \hexdec(\substr($color, 4, 2)); - $alpha = \floor(\hexdec(\substr($color, 6, 2)) / 2); - - $colorId = \imagecolorexactalpha($this->image, $red, $green, $blue, $alpha); - if ($colorId === -1) { - $colorId = \imagecolorallocatealpha($this->image, $red, $green, $blue, $alpha); - } - - return $colorId; - } - - - //=============================================================================================================================== - //==========================================================PASTE================================================================ - //=============================================================================================================================== - - /** - * Paste the image at $posX and $posY position (You can use `Image::ALIGN_...`). - * - * @param Image $image Image instance to be paste on - * @param int|string $posX Left position in pixel. You can use `Image::ALIGN_LEFT`, `Image::ALIGN_CENTER`, `Image::ALIGN_RIGHT` - * @param int|string $posY Top position in pixel. You can use `Image::ALIGN_TOP`, `Image::ALIGN_MIDDLE`, `Image::ALIGN_BOTTOM` - * @return $this Fluent interface - */ - public function pasteOn(Image $image, $posX = Image::ALIGN_CENTER, $posY = Image::ALIGN_MIDDLE): Image - { - if (!$this->isImageDefined() || !$image->isImageDefined()) { - return $this; - } - - return $this->pasteGdImageOn($image->getImage(), $image->getWidth(), $image->getHeight(), $posX, $posY); - } - - /** - * Paste the image at $posX and $posY position (You can use `Image::ALIGN_...`). - * - * @param resource|\GdImage $image Image resource - * @param int $imageWidth Image width to paste - * @param int $imageHeight Image height to paste - * @param int|string $posX Left position in pixel. You can use `Image::ALIGN_LEFT`, `Image::ALIGN_CENTER`, `Image::ALIGN_RIGHT` - * @param int|string $posY Top position in pixel. You can use `Image::ALIGN_TOP`, `Image::ALIGN_MIDDLE`, `Image::ALIGN_BOTTOM` - * @return $this Fluent interface - */ - public function pasteGdImageOn($image, int $imageWidth, int $imageHeight, $posX = Image::ALIGN_CENTER, $posY = Image::ALIGN_MIDDLE): Image - { - if (!$this->isImageDefined() || !static::isGdImage($image)) { - return $this; - } - - $posX = $this->convertPosX($posX, $imageWidth); - $posY = $this->convertPosY($posY, $imageHeight); - - \imagesavealpha($this->image, false); - \imagealphablending($this->image, true); - \imagecopy($this->image, $image, $posX, $posY, 0, 0, $imageWidth, $imageHeight); - \imagealphablending($this->image, false); - \imagesavealpha($this->image, true); - - return $this; - } - - /** - * Use a grayscale image (`$mask`) to apply transparency to the image. - * - * @param Image $mask Image instance of the grayscale alpha mask - * @return $this Fluent interface - */ - public function alphaMask(Image $mask): Image - { - if (!$this->isImageDefined() || !$mask->isImageDefined()) { - return $this; - } - - $this->downscaleAndCrop($mask->getWidth(), $mask->getHeight(), static::ALIGN_CENTER, static::ALIGN_MIDDLE); - - if (($newImage = \imagecreatetruecolor($mask->getWidth(), $mask->getHeight())) === false) { - return $this; - } - \imagealphablending($newImage, false); - \imagesavealpha($newImage, true); - - for ($i = 0; $i < $this->height; $i++) { - for ($j = 0; $j < $this->width; $j++) { - $alpha = \floor((255 - \imagecolorat($mask->getImage(), $j, $i) & 0xFF) / 2); - $red = 0; - $green = 0; - $blue = 0; - - if ($alpha != 127) { - $rgb = \imagecolorat($this->image, $j, $i); - $alpha = 127 - \ceil((127 - (($rgb >> 24) & 0x7F)) * (127 - $alpha) / 127); - } - - if ($alpha != 127) { - $red = ($rgb >> 16) & 0xFF; - $green = ($rgb >> 8) & 0xFF; - $blue = $rgb & 0xFF; - } - - $newColor = \imagecolorexactalpha($newImage, $red, $green, $blue, $alpha); - if ($newColor === -1) { - $newColor = \imagecolorallocatealpha($newImage, $red, $green, $blue, $alpha); - } - - if (!\imagesetpixel($newImage, $j, $i, $newColor)) { - return $this; - } - } - } - - \imagedestroy($this->image); - $this->image = $newImage; - - return $this; - } - - /** - * change the image opacity - * - * @param float $opacity Opacity (0 to 1) - * @return $this Fluent interface - */ - public function setOpacity(float $opacity): Image - { - if (!$this->isImageDefined()) { - return $this; - } - - \imagealphablending($this->image, false); - \imagesavealpha($this->image, true); - \imagefilter($this->image, IMG_FILTER_COLORIZE, 0, 0, 0, \round(127 * (1 - $opacity))); - - return $this; - } - - //=============================================================================================================================== - //=========================================================POST PROD============================================================= - //=============================================================================================================================== - - /** - * Apply a grayscale filter on the image. - * - * @return $this Fluent interface - */ - public function grayscale(): Image - { - if (!$this->isImageDefined()) { - return $this; - } - - \imagefilter($this->image, IMG_FILTER_GRAYSCALE); - return $this; - } - - /** - * Write text on the image. - * - * @param string $string Text to be added on the image - * @param string $fontPath Path to the TTF file - * @param float $fontSize Font size - * @param string $color Hexadecimal string color - * @param float|string $posX Left position in pixel. You can use `Image::ALIGN_LEFT`, `Image::ALIGN_CENTER`, `Image::ALIGN_RIGHT` - * @param float|string $posY Top position in pixel. You can use `Image::ALIGN_TOP`, `Image::ALIGN_MIDDLE`, `Image::ALIGN_BOTTOM` - * @param float|string $anchorX Horizontal anchor of the text. You can use `Image::ALIGN_LEFT`, `Image::ALIGN_CENTER`, `Image::ALIGN_RIGHT` - * @param float|string $anchorY Vertical anchor of the text. You can use `Image::ALIGN_TOP`, `Image::ALIGN_MIDDLE`, `Image::ALIGN_BOTTOM` - * @param float $rotation Counterclockwise text rotation in degrees - * @param float $letterSpacing add space between letters - * @return $this Fluent interface - */ - public function writeText(string $string, string $fontPath, float $fontSize, string $color = 'ffffff', $posX = 0, $posY = 0, $anchorX = Image::ALIGN_CENTER, $anchorY = Image::ALIGN_MIDDLE, float $rotation = 0, float $letterSpacing = 0): Image - { - $this->writeTextAndGetBoundingBox($string, $fontPath, $fontSize, $color, $posX, $posY, $anchorX, $anchorY, $rotation, $letterSpacing); - return $this; - } - - /** - * Write text on the image and get the bounding box of the text in the image. - * - * @param string $string Text to be added on the image - * @param string $fontPath Path to the TTF file - * @param float $fontSize Font size - * @param string $color Hexadecimal string color - * @param float|string $posX Left position in pixel. You can use `Image::ALIGN_LEFT`, `Image::ALIGN_CENTER`, `Image::ALIGN_RIGHT` - * @param float|string $posY Top position in pixel. You can use `Image::ALIGN_TOP`, `Image::ALIGN_MIDDLE`, `Image::ALIGN_BOTTOM` - * @param float|string $anchorX Horizontal anchor of the text. You can use `Image::ALIGN_LEFT`, `Image::ALIGN_CENTER`, `Image::ALIGN_RIGHT` - * @param float|string $anchorY Vertical anchor of the text. You can use `Image::ALIGN_TOP`, `Image::ALIGN_MIDDLE`, `Image::ALIGN_BOTTOM` - * @param float $rotation Counterclockwise text rotation in degrees - * @param float $letterSpacing add space between letters - * @return array Bounding box positions of the text - */ - public function writeTextAndGetBoundingBox(string $string, string $fontPath, float $fontSize, string $color = 'ffffff', $posX = 0, $posY = 0, $anchorX = Image::ALIGN_CENTER, $anchorY = Image::ALIGN_MIDDLE, float $rotation = 0, float $letterSpacing = 0): array - { - if (!$this->isImageDefined()) { - return []; - } - - $posX = $this->convertPosX($posX); - $posY = $this->convertPosY($posY); - - \imagesavealpha($this->image, false); - \imagealphablending($this->image, true); - - $color = $this->colorAllocate($color); - - if ($color === false) { - return []; - } - - if ( - $anchorX == static::ALIGN_LEFT || - $anchorX == static::ALIGN_CENTER || - $anchorX == static::ALIGN_RIGHT || - $anchorY == static::ALIGN_TOP || - $anchorY == static::ALIGN_MIDDLE || - $anchorY == static::ALIGN_BOTTOM - ) { - if ( - ($newImg = \imagecreatetruecolor(1, 1)) === false || - ($posText = $this->imagettftextWithSpacing($newImg, $fontSize, $rotation, 0, 0, $color, $fontPath, $string, $letterSpacing)) === false - ) { - return []; - } - \imagedestroy($newImg); - - $xMin = 0; - $xMax = 0; - $yMin = 0; - $yMax = 0; - for ($i = 0; $i < 8; $i += 2) { - if ($posText[$i] < $xMin) { - $xMin = $posText[$i]; - } - if ($posText[$i] > $xMax) { - $xMax = $posText[$i]; - } - if ($posText[$i + 1] < $yMin) { - $yMin = $posText[$i + 1]; - } - if ($posText[$i + 1] > $yMax) { - $yMax = $posText[$i + 1]; - } - } - - $sizeWidth = $xMax - $xMin; - $sizeHeight = $yMax - $yMin; - - switch ($anchorX) { - case static::ALIGN_LEFT : - $posX = $posX - $xMin; - break; - case static::ALIGN_CENTER : - $posX = $posX - $sizeWidth / 2 - $xMin; - break; - case static::ALIGN_RIGHT : - $posX = $posX - $sizeWidth - $xMin; - break; - } - switch ($anchorY) { - case static::ALIGN_TOP : - $posY = $posY - $yMin; - break; - case static::ALIGN_MIDDLE : - $posY = $posY - $sizeHeight / 2 - $yMin; - break; - case static::ALIGN_BOTTOM : - $posY = $posY - $sizeHeight - $yMin; - break; - } - } - - $posText = $this->imagettftextWithSpacing($this->image, $fontSize, $rotation, $posX, $posY, $color, $fontPath, $string, $letterSpacing); - - if ($posText === false) { - return []; - } - - \imagealphablending($this->image, false); - \imagesavealpha($this->image, true); - - return [ - 'top-left' => [ - 'x' => $posText[6], - 'y' => $posText[7] - ], - 'top-right' => [ - 'x' => $posText[4], - 'y' => $posText[5] - ], - 'bottom-left' => [ - 'x' => $posText[0], - 'y' => $posText[1] - ], - 'bottom-right' => [ - 'x' => $posText[2], - 'y' => $posText[3] - ], - 'baseline' => [ - 'x' => $posX, - 'y' => $posY - ] - ]; - } - - /** - * @param $image - * @param float $size - * @param float $angle - * @param float $x - * @param float $y - * @param int $color - * @param string $font - * @param string $text - * @param float $spacing - * @return array|false - */ - private function imagettftextWithSpacing($image, float $size, float $angle, float $x, float $y, int $color, string $font, string $text, float $spacing = 0) - { - if ($spacing == 0) { - return \imagettftext($image, $size, $angle, \round($x), \round($y), $color, $font, $text); - } else { - $length = \mb_strlen($text); - - if ($length == 0) { - return false; - } - - $letterPos = ['x' => $x, 'y' => $y]; - $textWidth = $spacing * ($length - 1); - $top = 0; - $bottom = 0; - - for ($i = 0; $i < $length; ++$i) { - $char = \mb_substr($text, $i, 1); - \imagettftext($image, $size, $angle, \round($letterPos['x']), \round($letterPos['y']), $color, $font, $char); - $bbox = \imagettfbbox($size, 0, $font, $char); - $letterPos = Geometry2D::getDstXY($letterPos['x'], $letterPos['y'], $angle, $spacing + $bbox[2]); - - $textWidth += $bbox[2]; - if ($top > $bbox[5]) { - $top = $bbox[5]; - } - if ($bottom < $bbox[1]) { - $bottom = $bbox[1]; - } - } - - $bottomLeft = Geometry2D::getDstXY($x, $y, $angle - 90, $bottom); - $bottomRight = Geometry2D::getDstXY($bottomLeft['x'], $bottomLeft['y'], $angle, $textWidth); - $topLeft = Geometry2D::getDstXY($x, $y, $angle + 90, \abs($top)); - $topRight = Geometry2D::getDstXY($topLeft['x'], $topLeft['y'], $angle, $textWidth); - - return [$bottomLeft['x'], $bottomLeft['y'], $bottomRight['x'], $bottomRight['y'], $topRight['x'], $topRight['y'], $topLeft['x'], $topLeft['y']]; - } - } - - /** - * Draw a rectangle. - * - * @param int $left Left position in pixel - * @param int $top Top position in pixel - * @param int $right Right position in pixel - * @param int $bottom Bottom position in pixel - * @param string $color Hexadecimal string color - * @return $this Fluent interface - */ - public function drawRectangle(int $left, int $top, int $right, int $bottom, string $color): Image - { - if (!$this->isImageDefined()) { - return $this; - } - - $color = $this->colorAllocate($color); - - if (($bottom - $top) <= 1.5) { - \imageline($this->image, $left, $top, $right, $top, $color); - } elseif (($right - $left) <= 1.5) { - \imageline($this->image, $left, $top, $left, $bottom, $color); - } else { - \imagefilledrectangle($this->image, $left, $top, $right, $bottom, $color); - } - return $this; - } - - /** - * Draw a polygon. - * - * @param int[] $points Array of polygon's points [x1, y1, x2, y2, x3, y3...] - * @param string $color Hexadecimal string color - * @return $this Fluent interface - */ - public function drawPolygon(array $points, string $color = '000000', $antialias = false): Image - { - if (!$this->isImageDefined()) { - return $this; - } - - $color = $this->colorAllocate($color); - - if ($color === false) { - return $this; - } - - if ($antialias) { - \imageantialias($this->image, true); - if (PHP_MAJOR_VERSION >= 8) { - \imagepolygon($this->image, $points, $color); - } else { - \imagepolygon($this->image, $points, \count($points) / 2, $color); - } - } - - if (PHP_MAJOR_VERSION >= 8) { - \imagefilledpolygon($this->image, $points, $color); - } else { - \imagefilledpolygon($this->image, $points, \count($points) / 2, $color); - } - - if ($antialias) { - \imageantialias($this->image, false); - } - - return $this; - } - - /** - * Draw a Line from `$originX, $originY` to `$dstX, $dstY`. - * - * @param int $originX Horizontal start position in pixel - * @param int $originY Vertical start position in pixel - * @param int $dstX Horizontal destination in pixel - * @param int $dstY Vertical destination in pixel - * @param int $weight Line weight in pixel - * @param string $color Hexadecimal string color - * @return $this Fluent interface - */ - public function drawLine(int $originX, int $originY, int $dstX, int $dstY, int $weight, string $color = '#000000'): Image - { - if (!$this->isImageDefined()) { - return $this; - } - - $angleAndLength = Geometry2D::getAngleAndLengthFromPoints($originX, $originY, $dstX, $dstY); - return $this->drawLineWithAngle($originX, $originY, $angleAndLength['angle'], $angleAndLength['length'], $weight, $color); - } - - /** - * Draw a line using angle and length. - * - * @param int $originX Horizontal start position in pixel - * @param int $originY Vertical start position in pixel - * @param float $angle Counterclockwise angle in degrees - * @param float $length Line length in pixel - * @param int $weight Line weight in pixel - * @param string $color Hexadecimal string color - * @return $this Fluent interface - */ - public function drawLineWithAngle(int $originX, int $originY, float $angle, float $length, int $weight, string $color = '#000000'): Image - { - $angle = Geometry2D::degrees0to360($angle); - - $points1 = Geometry2D::getDstXY($originX, $originY, Geometry2D::degrees0to360($angle - 90), \floor($weight / 2)); - $points2 = Geometry2D::getDstXY($points1['x'], $points1['y'], $angle, $length); - $points4 = Geometry2D::getDstXY($originX, $originY, Geometry2D::degrees0to360($angle + 90), \floor($weight / 2)); - $points3 = Geometry2D::getDstXY($points4['x'], $points4['y'], $angle, $length); - - return $this->drawPolygon( - [ - \round($points1['x']), - \round($points1['y']), - \round($points2['x']), - \round($points2['y']), - \round($points3['x']), - \round($points3['y']), - \round($points4['x']), - \round($points4['y']) - ], - $color, - true - ); - } - - /** - * Draw an arrow with angle and length. - * - * @param int $originX Horizontal start position in pixel - * @param int $originY Vertical start position in pixel - * @param float $angle Counterclockwise angle in degrees - * @param float $length Line length in pixel - * @param int $weight Line weight in pixel - * @param string $color Hexadecimal string color - * @return $this Fluent interface - */ - public function drawArrowWithAngle(int $originX, int $originY, float $angle, float $length, int $weight, string $color = '#000000'): Image - { - if (!$this->isImageDefined()) { - return $this; - } - - $headOrigin = Geometry2D::getDstXYRounded($originX, $originY, Geometry2D::degrees0to360($angle), \round($length - $weight / 2)); - $this->drawLineWithAngle($headOrigin['x'], $headOrigin['y'], Geometry2D::degrees0to360($angle + 150), \round($length / 10), $weight, $color); - $this->drawLineWithAngle($headOrigin['x'], $headOrigin['y'], Geometry2D::degrees0to360($angle - 150), \round($length / 10), $weight, $color); - return $this->drawLineWithAngle($originX, $originY, $angle, $length, $weight, $color); - } - - - /** - * Draw and arrow from `$originX, $originY` to `$dstX, $dstY`. - * - * @param int $originX Horizontal start position in pixel - * @param int $originY Vertical start position in pixel - * @param int $dstX Horizontal destination in pixel - * @param int $dstY Vertical destination in pixel - * @param int $weight Line weight in pixel - * @param string $color Hexadecimal string color - * @return $this Fluent interface - */ - public function drawArrow(int $originX, int $originY, int $dstX, int $dstY, int $weight, string $color = '#000000'): Image - { - if (!$this->isImageDefined()) { - return $this; - } - - $angleAndLength = Geometry2D::getAngleAndLengthFromPoints($originX, $originY, $dstX, $dstY); - return $this->drawArrowWithAngle($originX, $originY, $angleAndLength['angle'], $angleAndLength['length'], $weight, $color); - } - - /** - * Draw a circle. - * - * @param int $posX Left position of the circle in pixel - * @param int $posY Top position of the circle in pixel - * @param int $diameter Circle diameter in pixel - * @param string $color Hexadecimal string color - * @param string $anchorX Horizontal anchor of the text. You can use `Image::ALIGN_LEFT`, `Image::ALIGN_CENTER`, `Image::ALIGN_RIGHT` - * @param string $anchorY Vertical anchor of the text. You can use `Image::ALIGN_TOP`, `Image::ALIGN_MIDDLE`, `Image::ALIGN_BOTTOM` - * @return $this Fluent interface - */ - public function drawCircle(int $posX, int $posY, int $diameter, string $color = '#FFFFFF', string $anchorX = Image::ALIGN_CENTER, string $anchorY = Image::ALIGN_MIDDLE): Image - { - if (!$this->isImageDefined()) { - return $this; - } - - $color = $this->colorAllocate($color); - - if ($color === false) { - return $this; - } - - switch ($anchorX) { - case static::ALIGN_LEFT : - $posX = \round($posX + $diameter / 2); - break; - case static::ALIGN_CENTER : - break; - case static::ALIGN_RIGHT : - $posX = \round($posX - $diameter / 2); - break; - } - - switch ($anchorY) { - case static::ALIGN_TOP : - $posY = \round($posY + $diameter / 2); - break; - case static::ALIGN_MIDDLE : - break; - case static::ALIGN_BOTTOM : - $posY = \round($posY - $diameter / 2); - break; - } - - \imagefilledellipse($this->image, $posX, $posY, $diameter, $diameter, $color); - return $this; - } - - //=============================================================================================================================== - //=========================================================GET PICTURE=========================================================== - //=============================================================================================================================== - - /** - * Save the image to PNG file. - * - * @param string $path Path to the PNG image file - * @return bool return true if success - */ - public function savePNG(string $path): bool - { - if (!$this->isImageDefined()) { - return false; - } - return \imagepng($this->image, $path); - } - - /** - * Save the image to JPG file. - * - * @param string $path Path to the JPG image file - * @param int $quality JPG quality : 0 to 100 - * @return bool return true if success - */ - public function saveJPG(string $path, int $quality = -1): bool - { - if (!$this->isImageDefined()) { - return false; - } - return \imagejpeg($this->image, $path, $quality); - } - - /** - * Save the image to GIF file. - * - * @param string $path Path to the GIF image file - * @return bool return true if success - */ - public function saveGIF(string $path): bool - { - if (!$this->isImageDefined()) { - return false; - } - return \imagegif($this->image, $path); - } - - /** - * Display in PNG format. - */ - public function displayPNG() - { - if ($this->isImageDefined()) { - \imagepng($this->image); - } - } - - /** - * Display in JPG format. - * - * @param int $quality JPG quality : 0 to 100 - */ - public function displayJPG(int $quality = -1) - { - if ($this->isImageDefined()) { - \imagejpeg($this->image, null, $quality); - } - } - - /** - * Display in GIF format. - */ - public function displayGIF() - { - if ($this->isImageDefined()) { - \imagegif($this->image); - } - } - - /** - * Get image raw data - * - * @param callable $imgFunction Image function to be called - * @return string Data - */ - private function getData(callable $imgFunction): string - { - if (!$this->isImageDefined()) { - return ''; - } - - \ob_start(); - $imgFunction(); - $imageData = \ob_get_contents(); - \ob_end_clean(); - - return $imageData; - } - - /** - * Get image PNG raw data - * - * @return string Data - */ - public function getDataPNG(): string - { - return $this->getData(function () { - $this->displayPNG(); - }); - } - - /** - * Get image JPG raw data - * - * @param int $quality JPG quality : 0 to 100 - * @return string Data - */ - public function getDataJPG(int $quality = -1): string - { - return $this->getData(function () use ($quality) { - $this->displayJPG($quality); - }); - } - - /** - * Get image GIF raw data - * - * @return string Data - */ - public function getDataGIF(): string - { - return $this->getData(function () { - $this->displayGIF(); - }); - } - - /** - * Get image PNG base64 data - * - * @return string Data - */ - public function getBase64PNG(): string - { - return \base64_encode($this->getDataPNG()); - } - - /** - * Get image JPG base64 data - * - * @param int $quality JPG quality : 0 to 100 - * @return string Data - */ - public function getBase64JPG(int $quality = -1): string - { - return \base64_encode($this->getDataJPG($quality)); - } - - /** - * Get image GIF base64 data - * - * @return string Data - */ - public function getBase64GIF(): string - { - return \base64_encode($this->getDataGIF()); - } - - /** - * Get image PNG base64 data for tag. - * - * @return string Data - */ - public function getBase64SourcePNG(): string - { - return 'data:image/png;base64,' . $this->getBase64PNG(); - } - - /** - * Get image JPG base64 data for tag. - * - * @param int $quality JPG quality : 0 to 100 - * @return string Data - */ - public function getBase64SourceJPG(int $quality = -1): string - { - return 'data:image/jpeg;base64,' . $this->getBase64JPG($quality); - } - - /** - * Get image GIF base64 data for tag. - * - * @return string Data - */ - public function getBase64SourceGIF(): string - { - return 'data:image/gif;base64,' . $this->getBase64GIF(); - } -} diff --git a/vendor/dantsu/php-image-editor/src/samples/resources/font.ttf b/vendor/dantsu/php-image-editor/src/samples/resources/font.ttf deleted file mode 100644 index 47ab42ecf9fed01db18230483789a789037b4e43..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 87116 zcmeEv34B~vb@#n*B#m~>X!b>;*=IDPkwzNLjCO1HBHNKS*-GNrPU6^3;^1sXNfQW# z%I4!d+xbsyNol&O!!m5*yPy6?svYp@@8rsmZae<1hW}yFbDB&M;$2 z{EA(j-KUf9USy0vh^G!-cl^+aXO8^)GmKS!nz5=kU3c;hzmlvx&sgIlxE{UX#F67w zb8pErR(~~~x&6q^cir%W?b*M>^~V|ew}qpJ4_*JNzfpc4zbEiJ zeDwGo^H07sJcQprV9fCNO^0v0rRU0gka6Wc#yWa$e!+Ez_Px2apK(U-_}Aly=1&+Z z6)GRa^Zr{79Y5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vhe@_ diff --git a/vendor/dantsu/php-osm-static-api/src/samples/resources/sample4.png b/vendor/dantsu/php-osm-static-api/src/samples/resources/sample4.png deleted file mode 100644 index a36ca19bd707f3540ce83870ffe1277ee790f522..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 134736 zcmXtg1yqz<_ctm^r<8yQI5g5NAt^20Qc?oamkwzG=@KdFZV>4bVHhbXk#3O|6_D`T z^ZwU&*Iae6fO+OT=j{Ef{X}V~KPJGX#>K$EAW%}2)55^GZh(PtEdl!$e8o+W?hX8f z2gO2iczHh%_VWp z#yKMs;|<&#OP-SoC?*IIT>n)=!4sVpo=9;sDZliH>A5z&TIR<%N6|Whd-c}H$DD?q z2*di1=fv_yM*9IHyPrq=gNP3*I&8dbywVu0rCyr5do5lo+vpw8o1~1CAY1$^>9p< zsK=bA)c*0`Jfu~~#J0|)!i#?@MOxV5GNlz2q2qQs^IT-OJ=-2%T*(L{Et=;nc&Lc+ zZ)s|4--xgv%dMF|H;da_aPl&A9~h1nUi7|kd3hNfztkDb8b!A>BK_^XuyBD*ZG=kVqw33E#%$_GW7o z#qLtqJ&f*S@tlA^hO=j`TO-*Y&iC84#h9WQuLooN@|DP@VNAs4q`*^U)?U2)>o56X z!Kr^Iiyr%x93u~PZ1k3L6}=KEe2Z2Y*{~TUVn_BV7HPqE5@TLdDA1hx%Zz+&1c}kzUCvv#ZoQk>UOw_R=b5sX27ZCrpN+aN_wJRp##=VyBmZBD8V& zGzOPl7pSgZzyJK{wG*(kw`WJWSsPNMb3F|~ZS-DUp0Avoli-F6w4J%(S6RN0)0E?( z`ZzX547U;%GW|bC1S!&YMY)zN*^iSVwBJ&*!zCd2=dz1PE$kY2v(KMD>v&Xqi^t{V zF*G(eSLB?&R=5vWb`dB=6~QK=!Lb))?|GQd8e(l|uMw4xowK$5kz0urQ(D7Xm5Xvs zG3F2LK#!wP(2Dh^eBsk|WODhp-Gw$v!bsUa=Q5u(m=3tJ)%6|CaY9~ti>sdpa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<*#EqQ|8q6u$^O0?@?d|S61m?0Z6})lcor_?D{y=NKJ=dt{&%PO zyA4rx&Zs{_@9z)(_507eLYt%9RV~yXp7|ef8`@gU1ACLDR{q-gX&3|2( zorZ@M8kqT?t&R-r|7msP3rxr-|L9i#-5P)Y-@n`RKQ8)zuK3UP{@-Ex_ep4I{{OW3 z|9y+>(4EDQyZe8Ci2v_v{`0N>d&KW6addMarkers( - (new Markers(__DIR__ . '/resources/marker.png')) - ->setAnchor(Markers::ANCHOR_CENTER, Markers::ANCHOR_BOTTOM) - ->addMarker(new LatLng(44.351933, 2.568113)) - ->addMarker(new LatLng(44.351510, 2.570020)) - ->addMarker(new LatLng(44.351873, 2.566250)) - ) - ->addDraw( - (new Polygon('FF0000', 2, 'FF0000DD')) - ->addPoint(new LatLng(44.351172, 2.571092)) - ->addPoint(new LatLng(44.352097, 2.570045)) - ->addPoint(new LatLng(44.352665, 2.568107)) - ->addPoint(new LatLng(44.352887, 2.566503)) - ->addPoint(new LatLng(44.352806, 2.565972)) - ->addPoint(new LatLng(44.351517, 2.565672)) - ) - ->getImage() - ->displayPNG(); - - diff --git a/vendor/dantsu/php-osm-static-api/src/samples/sample2.php b/vendor/dantsu/php-osm-static-api/src/samples/sample2.php deleted file mode 100644 index b5aaf57..0000000 --- a/vendor/dantsu/php-osm-static-api/src/samples/sample2.php +++ /dev/null @@ -1,90 +0,0 @@ -addMarkers( - (new Markers(__DIR__ . '/resources/marker.png')) - ->setAnchor(Markers::ANCHOR_CENTER, Markers::ANCHOR_BOTTOM) - ->addMarker(new LatLng(44.351933, 2.568113)) - ) - ->addMarkers( - (new Markers(__DIR__ . '/resources/marker2.png')) - ->setAnchor(Markers::ANCHOR_CENTER, Markers::ANCHOR_BOTTOM) - ->addMarker(new LatLng(48.858535, 2.294107)) - ->addMarker(new LatLng(52.516304, 13.378107)) - ->addMarker(new LatLng(40.415176, -3.707362)) - ->addMarker(new LatLng(51.500845, -0.124591)) - ->addMarker(new LatLng(41.890145, 12.492552)) - ->addMarker(new LatLng(36.809764, 10.134114)) - ->addMarker(new LatLng(31.621758, -7.981512)) - ->addMarker(new LatLng(47.500469, 19.054086)) - ->addMarker(new LatLng(28.119083, -15.438387)) - ->addMarker(new LatLng(57.704334, 11.963886)) - ) - ->addDraw( - (new Line('FF0000', 1)) - ->addPoint(new LatLng(44.351933, 2.568113)) - ->addPoint(new LatLng(48.858535, 2.294107)) - ) - ->addDraw( - (new Line('FF0000', 1)) - ->addPoint(new LatLng(44.351933, 2.568113)) - ->addPoint(new LatLng(52.516304, 13.378107)) - ) - ->addDraw( - (new Line('FF0000', 1)) - ->addPoint(new LatLng(44.351933, 2.568113)) - ->addPoint(new LatLng(40.415176, -3.707362)) - ) - ->addDraw( - (new Line('FF0000', 1)) - ->addPoint(new LatLng(44.351933, 2.568113)) - ->addPoint(new LatLng(51.500845, -0.124591)) - ) - ->addDraw( - (new Line('FF0000', 1)) - ->addPoint(new LatLng(44.351933, 2.568113)) - ->addPoint(new LatLng(41.890145, 12.492552)) - ) - ->addDraw( - (new Line('FF0000', 1)) - ->addPoint(new LatLng(44.351933, 2.568113)) - ->addPoint(new LatLng(36.809764, 10.134114)) - ) - ->addDraw( - (new Line('FF0000', 1)) - ->addPoint(new LatLng(44.351933, 2.568113)) - ->addPoint(new LatLng(31.621758, -7.981512)) - ) - ->addDraw( - (new Line('FF0000', 1)) - ->addPoint(new LatLng(44.351933, 2.568113)) - ->addPoint(new LatLng(47.500469, 19.054086)) - ) - ->addDraw( - (new Line('FF0000', 1)) - ->addPoint(new LatLng(44.351933, 2.568113)) - ->addPoint(new LatLng(28.119083, -15.438387)) - ) - ->addDraw( - (new Line('FF0000', 1)) - ->addPoint(new LatLng(44.351933, 2.568113)) - ->addPoint(new LatLng(57.704334, 11.963886)) - ) - ->getImage() - ->displayPNG(); - - diff --git a/vendor/dantsu/php-osm-static-api/src/samples/sample3.php b/vendor/dantsu/php-osm-static-api/src/samples/sample3.php deleted file mode 100644 index 171d2e6..0000000 --- a/vendor/dantsu/php-osm-static-api/src/samples/sample3.php +++ /dev/null @@ -1,37 +0,0 @@ -addMarkers( - (new Markers(__DIR__ . '/resources/marker.png')) - ->setAnchor(Markers::ANCHOR_CENTER, Markers::ANCHOR_BOTTOM) - ->addMarker(new LatLng(44.351933, 2.568113)) - ->addMarker(new LatLng(44.351510, 2.570020)) - ->addMarker(new LatLng(44.351073, 2.566480)) - ) - ->addDraw( - (new Circle(new LatLng(44.351933, 2.568113), 'FF0000', 5, 'FF0000CC')) - ->setEdgePoint(new LatLng(44.351510, 2.570020)) - ) - ->addDraw( - (new Circle(new LatLng(44.351933, 2.568113), 'FF0000', 5, 'FF0000CC')) - ->setRadius(40) - ) - ->fitToDraws(10) - ->getImage() - ->displayPNG(); - - diff --git a/vendor/dantsu/php-osm-static-api/src/samples/sample4.php b/vendor/dantsu/php-osm-static-api/src/samples/sample4.php deleted file mode 100644 index e73899e..0000000 --- a/vendor/dantsu/php-osm-static-api/src/samples/sample4.php +++ /dev/null @@ -1,52 +0,0 @@ -setOpacity(0.8); - -(new OpenStreetMap(new LatLng(44.351933, 2.568113), 17, 600, 400, $tileLayer1)) - ->addLayer($tileLayer2) - ->addMarkers( - (new Markers(__DIR__ . '/resources/marker.png')) - ->setAnchor(Markers::ANCHOR_CENTER, Markers::ANCHOR_BOTTOM) - ->addMarker(new LatLng(44.351933, 2.568113)) - ->addMarker(new LatLng(44.351510, 2.570020)) - ->addMarker(new LatLng(44.351873, 2.566250)) - ) - ->addDraw( - (new Polygon('FF0000', 2, 'FF0000DD')) - ->addPoint(new LatLng(44.351172, 2.571092)) - ->addPoint(new LatLng(44.352097, 2.570045)) - ->addPoint(new LatLng(44.352665, 2.568107)) - ->addPoint(new LatLng(44.352887, 2.566503)) - ->addPoint(new LatLng(44.352806, 2.565972)) - ->addPoint(new LatLng(44.351517, 2.565672)) - ) - ->getImage() - ->displayPNG(); diff --git a/vendor/discord-php/http/.gitignore b/vendor/discord-php/http/.gitignore deleted file mode 100644 index 33654ba..0000000 --- a/vendor/discord-php/http/.gitignore +++ /dev/null @@ -1,9 +0,0 @@ -/vendor/ -composer.lock -test.php -.php_cs.cache -.php_cs -.php-cs-fixer.php -.php-cs-fixer.cache -.vscode -.phpunit.cache diff --git a/vendor/discord-php/http/.php-cs-fixer.dist.php b/vendor/discord-php/http/.php-cs-fixer.dist.php deleted file mode 100644 index dc26d65..0000000 --- a/vendor/discord-php/http/.php-cs-fixer.dist.php +++ /dev/null @@ -1,102 +0,0 @@ - - -This file is subject to the MIT license that is bundled -with this source code in the LICENSE file. -EOF; - -$fixers = [ - 'blank_line_after_namespace', - 'braces', - 'class_definition', - 'elseif', - 'encoding', - 'full_opening_tag', - 'function_declaration', - 'lowercase_keywords', - 'method_argument_space', - 'no_closing_tag', - 'no_spaces_after_function_name', - 'no_spaces_inside_parenthesis', - 'no_trailing_whitespace', - 'no_trailing_whitespace_in_comment', - 'single_blank_line_at_eof', - 'single_class_element_per_statement', - 'single_import_per_statement', - 'single_line_after_imports', - 'switch_case_semicolon_to_colon', - 'switch_case_space', - 'visibility_required', - 'blank_line_after_opening_tag', - 'no_multiline_whitespace_around_double_arrow', - 'no_empty_statement', - 'include', - 'no_trailing_comma_in_list_call', - 'not_operator_with_successor_space', - 'no_leading_namespace_whitespace', - 'no_blank_lines_after_class_opening', - 'no_blank_lines_after_phpdoc', - 'object_operator_without_whitespace', - 'binary_operator_spaces', - 'phpdoc_indent', - 'general_phpdoc_tag_rename', - 'phpdoc_inline_tag_normalizer', - 'phpdoc_tag_type', - 'phpdoc_no_access', - 'phpdoc_no_package', - 'phpdoc_scalar', - 'phpdoc_summary', - 'phpdoc_to_comment', - 'phpdoc_trim', - 'phpdoc_var_without_name', - 'no_leading_import_slash', - 'no_trailing_comma_in_singleline_array', - 'single_blank_line_before_namespace', - 'single_quote', - 'no_singleline_whitespace_before_semicolons', - 'cast_spaces', - 'standardize_not_equals', - 'ternary_operator_spaces', - 'trim_array_spaces', - 'unary_operator_spaces', - 'no_unused_imports', - 'no_useless_else', - 'no_useless_return', - 'phpdoc_no_empty_return', - 'no_extra_blank_lines', - 'multiline_whitespace_before_semicolons', -]; - -$rules = [ - 'concat_space' => ['spacing' => 'none'], - 'phpdoc_no_alias_tag' => ['replacements' => ['type' => 'var']], - 'array_syntax' => ['syntax' => 'short'], - 'binary_operator_spaces' => ['align_double_arrow' => true, 'align_equals' => true], - 'header_comment' => ['header' => $header], - 'indentation_type' => true, - 'phpdoc_align' => [ - 'align' => 'vertical', - 'tags' => ['param', 'property', 'property-read', 'property-write', 'return', 'throws', 'type', 'var', 'method'], - ], - 'blank_line_before_statement' => ['statements' => ['return']], - 'constant_case' => ['case' => 'lower'], - 'echo_tag_syntax' => ['format' => 'long'], - 'trailing_comma_in_multiline' => ['elements' => ['arrays']], -]; - -foreach ($fixers as $fix) { - $rules[$fix] = true; -} - -$config = new PhpCsFixer\Config(); - -return $config - ->setRules($rules) - ->setFinder( - PhpCsFixer\Finder::create() - ->in(__DIR__) - ); diff --git a/vendor/discord-php/http/LICENSE b/vendor/discord-php/http/LICENSE deleted file mode 100644 index 1c4ec6b..0000000 --- a/vendor/discord-php/http/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2021-present David Cole and all -contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/vendor/discord-php/http/README.md b/vendor/discord-php/http/README.md deleted file mode 100644 index 966fb88..0000000 --- a/vendor/discord-php/http/README.md +++ /dev/null @@ -1,92 +0,0 @@ -# DiscordPHP-Http - -Asynchronous HTTP client used for communication with the Discord REST API. - -## Requirements - -- PHP >=7.4 - -## Installation - -```sh -$ composer require discord-php/http -``` - -A [psr/log](https://packagist.org/packages/psr/log)-compliant logging library is also required. We recommend [monolog](https://github.com/Seldaek/monolog) which will be used in examples. - -## Usage - -```php -pushHandler(new StreamHandler('php://output')); -$http = new Http( - 'Bot xxxx.yyyy.zzzz', - $loop, - $logger -); - -// set up a driver - this example uses the React driver -$driver = new React($loop); -$http->setDriver($driver); - -// must be the last line -$loop->run(); -``` - -All request methods have the same footprint: - -```php -$http->get(string $url, $content = null, array $headers = []); -$http->post(string $url, $content = null, array $headers = []); -$http->put(string $url, $content = null, array $headers = []); -$http->patch(string $url, $content = null, array $headers = []); -$http->delete(string $url, $content = null, array $headers = []); -``` - -For other methods: - -```php -$http->queueRequest(string $method, string $url, $content, array $headers = []); -``` - -All methods return the decoded JSON response in an object: - -```php -// https://discord.com/api/v8/oauth2/applications/@me -$http->get('oauth2/applications/@me')->done(function ($response) { - var_dump($response); -}, function ($e) { - echo "Error: ".$e->getMessage().PHP_EOL; -}); -``` - -Most Discord endpoints are provided in the [Endpoint.php](src/Discord/Endpoint.php) class as constants. Parameters start with a colon, -e.g. `channels/:channel_id/messages/:message_id`. You can bind parameters to then with the same class: - -```php -// channels/channel_id_here/messages/message_id_here -$endpoint = Endpoint::bind(Endpoint::CHANNEL_MESSAGE, 'channel_id_here', 'message_id_here'); - -$http->get($endpoint)->done(...); -``` - -It is recommended that if the endpoint contains parameters you use the `Endpoint::bind()` function to sort requests into their correct rate limit buckets. -For an example, see [DiscordPHP](https://github.com/discord-php/DiscordPHP). - -## License - -This software is licensed under the MIT license which can be viewed in the [LICENSE](LICENSE) file. - -## Credits - -- [David Cole](mailto:david.cole1340@gmail.com) -- All contributors diff --git a/vendor/discord-php/http/composer.json b/vendor/discord-php/http/composer.json deleted file mode 100644 index e10fe6d..0000000 --- a/vendor/discord-php/http/composer.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "name": "discord-php/http", - "description": "Handles HTTP requests to Discord servers", - "type": "library", - "license": "MIT", - "authors": [ - { - "name": "David Cole", - "email": "david.cole1340@gmail.com" - } - ], - "autoload": { - "psr-4": { - "Discord\\Http\\": "src/Discord", - "Tests\\Discord\\Http\\": "tests/Discord" - } - }, - "require": { - "php": "^7.4|^8.0", - "react/http": "^1.2", - "psr/log": "^1.1 || ^2.0 || ^3.0", - "react/promise": "^2.2 || ^3.0.0" - }, - "suggest": { - "guzzlehttp/guzzle": "For alternative to ReactPHP/Http Browser" - }, - "require-dev": { - "monolog/monolog": "^2.2", - "friendsofphp/php-cs-fixer": "^2.17", - "psy/psysh": "^0.10.6", - "guzzlehttp/guzzle": "^6.0|^7.0", - "phpunit/phpunit": "^9.5", - "mockery/mockery": "^1.5", - "react/async": "^4 || ^3" - }, - "scripts": { - "test": "php tests/Drivers/_server.php& HTTP_SERVER_PID=$!; ./vendor/bin/phpunit; kill $HTTP_SERVER_PID;", - "test-discord": "./vendor/bin/phpunit --testsuite Discord", - "test-drivers": "php tests/Drivers/_server.php& HTTP_SERVER_PID=$!; ./vendor/bin/phpunit --testsuite Drivers; kill $HTTP_SERVER_PID;", - "test-coverage": "php tests/Drivers/_server.php& HTTP_SERVER_PID=$!; php -d xdebug.mode=coverage ./vendor/bin/phpunit --coverage-text; kill $HTTP_SERVER_PID;", - "test-coverage-html": "php tests/Drivers/_server.php& HTTP_SERVER_PID=$!; php -d xdebug.mode=coverage ./vendor/bin/phpunit --coverage-html .phpunit.cache/cov-html; kill $HTTP_SERVER_PID;" - } -} diff --git a/vendor/discord-php/http/examples/file-upload.php b/vendor/discord-php/http/examples/file-upload.php deleted file mode 100644 index 0f0657b..0000000 --- a/vendor/discord-php/http/examples/file-upload.php +++ /dev/null @@ -1,57 +0,0 @@ - 'Hello!', - ]), - ['Content-Type' => 'application/json'] -); - -$imageField = new MultipartField( - 'files[0]', - file_get_contents('/path/to/image.png'), - ['Content-Type' => 'image/png'], - 'image.png' -); - -$multipart = new MultipartBody([ - $jsonPayloadField, - $imageField -]); - -$http->post( - Endpoint::bind( - Endpoint::CHANNEL_MESSAGES, - 'Channel ID' - ), - $multipart -)->then( - function ($response) { - // Do something with response.. - }, - function (Exception $e) { - echo $e->getMessage(), PHP_EOL; - } -); - -Loop::run(); diff --git a/vendor/discord-php/http/phpunit.xml b/vendor/discord-php/http/phpunit.xml deleted file mode 100644 index a7399c7..0000000 --- a/vendor/discord-php/http/phpunit.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - tests/Discord - - - - tests/Drivers - - - - - - src - - - diff --git a/vendor/discord-php/http/src/Discord/Bucket.php b/vendor/discord-php/http/src/Discord/Bucket.php deleted file mode 100644 index b88a6de..0000000 --- a/vendor/discord-php/http/src/Discord/Bucket.php +++ /dev/null @@ -1,228 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE file. - */ - -namespace Discord\Http; - -use Composer\InstalledVersions; -use Psr\Http\Message\ResponseInterface; -use Psr\Log\LoggerInterface; -use React\EventLoop\LoopInterface; -use React\EventLoop\TimerInterface; -use SplQueue; - -/** - * Represents a rate-limit bucket. - * - * @author David Cole - */ -class Bucket -{ - /** - * Request queue. - * - * @var SplQueue - */ - protected $queue; - - /** - * Bucket name. - * - * @var string - */ - protected $name; - - /** - * ReactPHP event loop. - * - * @var LoopInterface - */ - protected $loop; - - /** - * HTTP logger. - * - * @var LoggerInterface - */ - protected $logger; - - /** - * Callback for when a request is ready. - * - * @var callable - */ - protected $runRequest; - - /** - * Whether we are checking the queue. - * - * @var bool - */ - protected $checkerRunning = false; - - /** - * Number of requests allowed before reset. - * - * @var int - */ - protected $requestLimit; - - /** - * Number of remaining requests before reset. - * - * @var int - */ - protected $requestRemaining; - - /** - * Timer to reset the bucket. - * - * @var TimerInterface - */ - protected $resetTimer; - - /** - * Whether react/promise v3 is used, if false, using v2 - */ - protected $promiseV3 = true; - - /** - * Bucket constructor. - * - * @param string $name - * @param callable $runRequest - */ - public function __construct(string $name, LoopInterface $loop, LoggerInterface $logger, callable $runRequest) - { - $this->queue = new SplQueue; - $this->name = $name; - $this->loop = $loop; - $this->logger = $logger; - $this->runRequest = $runRequest; - - $this->promiseV3 = str_starts_with(InstalledVersions::getVersion('react/promise'), '3.'); - } - - /** - * Enqueue a request. - * - * @param Request $request - */ - public function enqueue(Request $request) - { - $this->queue->enqueue($request); - $this->logger->debug($this.' queued '.$request); - $this->checkQueue(); - } - - /** - * Checks for requests in the bucket. - */ - public function checkQueue() - { - // We are already checking the queue. - if ($this->checkerRunning) { - return; - } - - $checkQueue = function () use (&$checkQueue) { - // Check for rate-limits - if ($this->requestRemaining < 1 && ! is_null($this->requestRemaining)) { - $interval = 0; - if ($this->resetTimer) { - $interval = $this->resetTimer->getInterval() ?? 0; - } - $this->logger->info($this.' expecting rate limit, timer interval '.($interval * 1000).' ms'); - $this->checkerRunning = false; - $checkQueue = null; - - return; - } - - // Queue is empty, job done. - if ($this->queue->isEmpty()) { - $this->checkerRunning = false; - $checkQueue = null; - - return; - } - - /** @var Request */ - $request = $this->queue->dequeue(); - - // Promises v3 changed `->then` to behave as `->done` and removed `->then`. We still need the behaviour of `->done` in projects using v2 - ($this->runRequest)($request)->{$this->promiseV3 ? 'then' : 'done'}(function (ResponseInterface $response) use (&$checkQueue) { - $resetAfter = (float) $response->getHeaderLine('X-Ratelimit-Reset-After'); - $limit = $response->getHeaderLine('X-Ratelimit-Limit'); - $remaining = $response->getHeaderLine('X-Ratelimit-Remaining'); - - if ($resetAfter) { - $resetAfter = (float) $resetAfter; - - if ($this->resetTimer) { - $this->loop->cancelTimer($this->resetTimer); - } - - $this->resetTimer = $this->loop->addTimer($resetAfter, function () { - // Reset requests remaining and check queue - $this->requestRemaining = $this->requestLimit; - $this->resetTimer = null; - $this->checkQueue(); - }); - } - - // Check if rate-limit headers are present and store - if (is_numeric($limit)) { - $this->requestLimit = (int) $limit; - } - - if (is_numeric($remaining)) { - $this->requestRemaining = (int) $remaining; - } - - // Check for more requests - $checkQueue(); - }, function ($rateLimit) use (&$checkQueue, $request) { - if ($rateLimit instanceof RateLimit) { - $this->queue->enqueue($request); - - // Bucket-specific rate-limit - // Re-queue the request and wait the retry after time - if (! $rateLimit->isGlobal()) { - $this->loop->addTimer($rateLimit->getRetryAfter(), $checkQueue); - } - // Stop the queue checker for a global rate-limit. - // Will be restarted when global rate-limit finished. - else { - $this->checkerRunning = false; - $checkQueue = null; - - $this->logger->debug($this.' stopping queue checker'); - } - } else { - $checkQueue(); - } - }); - }; - - $this->checkerRunning = true; - $checkQueue(); - } - - /** - * Converts a bucket to a user-readable string. - * - * @return string - */ - public function __toString() - { - return 'BUCKET '.$this->name; - } -} \ No newline at end of file diff --git a/vendor/discord-php/http/src/Discord/DriverInterface.php b/vendor/discord-php/http/src/Discord/DriverInterface.php deleted file mode 100644 index 4389149..0000000 --- a/vendor/discord-php/http/src/Discord/DriverInterface.php +++ /dev/null @@ -1,34 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE file. - */ - -namespace Discord\Http; - -use Psr\Http\Message\ResponseInterface; -use React\Promise\PromiseInterface; - -/** - * Interface for an HTTP driver. - * - * @author David Cole - */ -interface DriverInterface -{ - /** - * Runs a request. - * - * Returns a promise resolved with a PSR response interface. - * - * @param Request $request - * - * @return PromiseInterface - */ - public function runRequest(Request $request): PromiseInterface; -} diff --git a/vendor/discord-php/http/src/Discord/Drivers/Guzzle.php b/vendor/discord-php/http/src/Discord/Drivers/Guzzle.php deleted file mode 100644 index 17b9bb6..0000000 --- a/vendor/discord-php/http/src/Discord/Drivers/Guzzle.php +++ /dev/null @@ -1,77 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE file. - */ - -namespace Discord\Http\Drivers; - -use Discord\Http\DriverInterface; -use Discord\Http\Request; -use GuzzleHttp\Client; -use GuzzleHttp\RequestOptions; -use React\EventLoop\LoopInterface; -use React\Promise\Deferred; -use React\Promise\PromiseInterface; - -/** - * guzzlehttp/guzzle driver for Discord HTTP client. (still with React Promise). - * - * @author SQKo - */ -class Guzzle implements DriverInterface -{ - /** - * ReactPHP event loop. - * - * @var LoopInterface|null - */ - protected $loop; - - /** - * GuzzleHTTP/Guzzle client. - * - * @var Client - */ - protected $client; - - /** - * Constructs the Guzzle driver. - * - * @param LoopInterface|null $loop - * @param array $options - */ - public function __construct(?LoopInterface $loop = null, array $options = []) - { - $this->loop = $loop; - - // Allow 400 and 500 HTTP requests to be resolved rather than rejected. - $options['http_errors'] = false; - $this->client = new Client($options); - } - - public function runRequest(Request $request): PromiseInterface - { - // Create a React promise - $deferred = new Deferred(); - $reactPromise = $deferred->promise(); - - $promise = $this->client->requestAsync($request->getMethod(), $request->getUrl(), [ - RequestOptions::HEADERS => $request->getHeaders(), - RequestOptions::BODY => $request->getContent(), - ])->then([$deferred, 'resolve'], [$deferred, 'reject']); - - if ($this->loop) { - $this->loop->futureTick([$promise, 'wait']); - } else { - $promise->wait(); - } - - return $reactPromise; - } -} diff --git a/vendor/discord-php/http/src/Discord/Drivers/React.php b/vendor/discord-php/http/src/Discord/Drivers/React.php deleted file mode 100644 index de7697a..0000000 --- a/vendor/discord-php/http/src/Discord/Drivers/React.php +++ /dev/null @@ -1,65 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE file. - */ - -namespace Discord\Http\Drivers; - -use Discord\Http\DriverInterface; -use Discord\Http\Request; -use React\EventLoop\LoopInterface; -use React\Http\Browser; -use React\Promise\PromiseInterface; -use React\Socket\Connector; - -/** - * react/http driver for Discord HTTP client. - * - * @author David Cole - */ -class React implements DriverInterface -{ - /** - * ReactPHP event loop. - * - * @var LoopInterface - */ - protected $loop; - - /** - * ReactPHP/HTTP browser. - * - * @var Browser - */ - protected $browser; - - /** - * Constructs the React driver. - * - * @param LoopInterface $loop - * @param array $options - */ - public function __construct(LoopInterface $loop, array $options = []) - { - $this->loop = $loop; - - // Allow 400 and 500 HTTP requests to be resolved rather than rejected. - $browser = new Browser($loop, new Connector($loop, $options)); - $this->browser = $browser->withRejectErrorResponse(false); - } - - public function runRequest(Request $request): PromiseInterface - { - return $this->browser->{$request->getMethod()}( - $request->getUrl(), - $request->getHeaders(), - $request->getContent() - ); - } -} diff --git a/vendor/discord-php/http/src/Discord/Endpoint.php b/vendor/discord-php/http/src/Discord/Endpoint.php deleted file mode 100644 index 610306c..0000000 --- a/vendor/discord-php/http/src/Discord/Endpoint.php +++ /dev/null @@ -1,449 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE file. - */ - -namespace Discord\Http; - -class Endpoint -{ - // GET - public const GATEWAY = 'gateway'; - // GET - public const GATEWAY_BOT = self::GATEWAY.'/bot'; - - // GET - public const APPLICATION_SKUS = 'applications/:application_id/skus'; - // GET, POST - public const APPLICATION_EMOJIS = 'applications/:application_id/emojis'; - // GET, PATCH, DELETE - public const APPLICATION_EMOJI = 'applications/:application_id/emojis/:emoji_id'; - // GET, POST - public const APPLICATION_ENTITLEMENTS = 'applications/:application_id/entitlements'; - // DELETE - public const APPLICATION_ENTITLEMENT = self::APPLICATION_ENTITLEMENTS.'/:entitlement_id'; - // POST - public const APPLICATION_ENTITLEMENT_CONSUME = self::APPLICATION_ENTITLEMENT.'/consume'; - // GET, POST, PUT - public const GLOBAL_APPLICATION_COMMANDS = 'applications/:application_id/commands'; - // GET, PATCH, DELETE - public const GLOBAL_APPLICATION_COMMAND = self::GLOBAL_APPLICATION_COMMANDS.'/:command_id'; - // GET, POST, PUT - public const GUILD_APPLICATION_COMMANDS = 'applications/:application_id/guilds/:guild_id/commands'; - // GET, PUT - public const GUILD_APPLICATION_COMMANDS_PERMISSIONS = self::GUILD_APPLICATION_COMMANDS.'/permissions'; - // GET, PATCH, DELETE - public const GUILD_APPLICATION_COMMAND = self::GUILD_APPLICATION_COMMANDS.'/:command_id'; - // GET, PUT - public const GUILD_APPLICATION_COMMAND_PERMISSIONS = self::GUILD_APPLICATION_COMMANDS.'/:command_id/permissions'; - // POST - public const INTERACTION_RESPONSE = 'interactions/:interaction_id/:interaction_token/callback'; - // POST - public const CREATE_INTERACTION_FOLLOW_UP = 'webhooks/:application_id/:interaction_token'; - // PATCH, DELETE - public const ORIGINAL_INTERACTION_RESPONSE = self::CREATE_INTERACTION_FOLLOW_UP.'/messages/@original'; - // PATCH, DELETE - public const INTERACTION_FOLLOW_UP = self::CREATE_INTERACTION_FOLLOW_UP.'/messages/:message_id'; - - // GET - public const SKU_SUBSCRIPTIONS = '/skus/:sku_id/subscriptions'; - // GET - public const SKU_SUBSCRIPTION = self::SKU_SUBSCRIPTIONS.'/:subscription_id'; - - // GET - public const AUDIT_LOG = 'guilds/:guild_id/audit-logs'; - - // GET, PATCH, DELETE - public const CHANNEL = 'channels/:channel_id'; - // GET, POST - public const CHANNEL_MESSAGES = self::CHANNEL.'/messages'; - // GET, PATCH, DELETE - public const CHANNEL_MESSAGE = self::CHANNEL.'/messages/:message_id'; - // POST - public const CHANNEL_CROSSPOST_MESSAGE = self::CHANNEL.'/messages/:message_id/crosspost'; - // POST - public const CHANNEL_MESSAGES_BULK_DELETE = self::CHANNEL.'/messages/bulk-delete'; - // PUT, DELETE - public const CHANNEL_PERMISSIONS = self::CHANNEL.'/permissions/:overwrite_id'; - // GET, POST - public const CHANNEL_INVITES = self::CHANNEL.'/invites'; - // POST - public const CHANNEL_FOLLOW = self::CHANNEL.'/followers'; - // POST - public const CHANNEL_TYPING = self::CHANNEL.'/typing'; - // GET - public const CHANNEL_PINS = self::CHANNEL.'/pins'; - // PUT, DELETE - public const CHANNEL_PIN = self::CHANNEL.'/pins/:message_id'; - // POST - public const CHANNEL_THREADS = self::CHANNEL.'/threads'; - // POST - public const CHANNEL_MESSAGE_THREADS = self::CHANNEL_MESSAGE.'/threads'; - // GET - public const CHANNEL_THREADS_ARCHIVED_PUBLIC = self::CHANNEL_THREADS.'/archived/public'; - // GET - public const CHANNEL_THREADS_ARCHIVED_PRIVATE = self::CHANNEL_THREADS.'/archived/private'; - // GET - public const CHANNEL_THREADS_ARCHIVED_PRIVATE_ME = self::CHANNEL.'/users/@me/threads/archived/private'; - // POST - public const CHANNEL_SEND_SOUNDBOARD_SOUND = self::CHANNEL . '/send-soundboard-sound'; - - // GET, PATCH, DELETE - public const THREAD = 'channels/:thread_id'; - // GET - public const THREAD_MEMBERS = self::THREAD.'/thread-members'; - // GET, PUT, DELETE - public const THREAD_MEMBER = self::THREAD_MEMBERS.'/:user_id'; - // PUT, DELETE - public const THREAD_MEMBER_ME = self::THREAD_MEMBERS.'/@me'; - - // GET, DELETE - public const MESSAGE_REACTION_ALL = self::CHANNEL.'/messages/:message_id/reactions'; - // GET, DELETE - public const MESSAGE_REACTION_EMOJI = self::CHANNEL.'/messages/:message_id/reactions/:emoji'; - // PUT, DELETE - public const OWN_MESSAGE_REACTION = self::CHANNEL.'/messages/:message_id/reactions/:emoji/@me'; - // DELETE - public const USER_MESSAGE_REACTION = self::CHANNEL.'/messages/:message_id/reactions/:emoji/:user_id'; - - // GET - protected const MESSAGE_POLL = self::CHANNEL.'/polls/:message_id'; - // GET - public const MESSAGE_POLL_ANSWER = self::MESSAGE_POLL.'/answers/:answer_id'; - // POST - public const MESSAGE_POLL_EXPIRE = self::MESSAGE_POLL.'/expire'; - - // GET, POST - public const CHANNEL_WEBHOOKS = self::CHANNEL.'/webhooks'; - - // POST - public const GUILDS = 'guilds'; - // GET, PATCH, DELETE - public const GUILD = 'guilds/:guild_id'; - // GET, POST, PATCH - public const GUILD_CHANNELS = self::GUILD.'/channels'; - // GET - public const GUILD_THREADS_ACTIVE = self::GUILD.'/threads/active'; - - // GET - public const GUILD_MEMBERS = self::GUILD.'/members'; - // GET - public const GUILD_MEMBERS_SEARCH = self::GUILD.'/members/search'; - // GET, PATCH, PUT, DELETE - public const GUILD_MEMBER = self::GUILD.'/members/:user_id'; - // PATCH - public const GUILD_MEMBER_SELF = self::GUILD.'/members/@me'; - /** @deprecated 9.0.9 Use `GUILD_MEMBER_SELF` */ - public const GUILD_MEMBER_SELF_NICK = self::GUILD.'/members/@me/nick'; - // PUT, DELETE - public const GUILD_MEMBER_ROLE = self::GUILD.'/members/:user_id/roles/:role_id'; - - // GET - public const GUILD_BANS = self::GUILD.'/bans'; - // GET, PUT, DELETE - public const GUILD_BAN = self::GUILD.'/bans/:user_id'; - - // GET, PATCH - public const GUILD_ROLES = self::GUILD.'/roles'; - // GET, POST, PATCH, DELETE - public const GUILD_ROLE = self::GUILD.'/roles/:role_id'; - - // POST - public const GUILD_MFA = self::GUILD.'/mfa'; - - // GET, POST - public const GUILD_INVITES = self::GUILD.'/invites'; - - // GET, POST - public const GUILD_INTEGRATIONS = self::GUILD.'/integrations'; - // PATCH, DELETE - public const GUILD_INTEGRATION = self::GUILD.'/integrations/:integration_id'; - // POST - public const GUILD_INTEGRATION_SYNC = self::GUILD.'/integrations/:integration_id/sync'; - - // GET, POST - public const GUILD_EMOJIS = self::GUILD.'/emojis'; - // GET, PATCH, DELETE - public const GUILD_EMOJI = self::GUILD.'/emojis/:emoji_id'; - - // GET - public const GUILD_PREVIEW = self::GUILD.'/preview'; - // GET, POST - public const GUILD_PRUNE = self::GUILD.'/prune'; - // GET - public const GUILD_REGIONS = self::GUILD.'/regions'; - // GET, PATCH - public const GUILD_WIDGET_SETTINGS = self::GUILD.'/widget'; - // GET - public const GUILD_WIDGET = self::GUILD.'/widget.json'; - // GET - public const GUILD_WIDGET_IMAGE = self::GUILD.'/widget.png'; - // GET, PATCH - public const GUILD_WELCOME_SCREEN = self::GUILD.'/welcome-screen'; - // GET - public const GUILD_ONBOARDING = self::GUILD.'/onboarding'; - // GET, PATCH - public const GUILD_USER_CURRENT_VOICE_STATE = self::GUILD.'/voice-states/@me'; - // GET, PATCH - public const GUILD_USER_VOICE_STATE = self::GUILD.'/voice-states/:user_id'; - // GET - public const GUILD_VANITY_URL = self::GUILD.'/vanity-url'; - // GET, PATCH - public const GUILD_MEMBERSHIP_SCREENING = self::GUILD.'/member-verification'; - // GET - public const GUILD_WEBHOOKS = self::GUILD.'/webhooks'; - - // GET, POST - public const GUILD_STICKERS = self::GUILD.'/stickers'; - // GET, PATCH, DELETE - public const GUILD_STICKER = self::GUILD.'/stickers/:sticker_id'; - - // GET - public const STICKER = 'stickers/:sticker_id'; - // GET - public const STICKER_PACKS = 'sticker-packs'; - - // GET, POST - public const GUILD_SCHEDULED_EVENTS = self::GUILD.'/scheduled-events'; - // GET, PATCH, DELETE - public const GUILD_SCHEDULED_EVENT = self::GUILD.'/scheduled-events/:guild_scheduled_event_id'; - // GET - public const GUILD_SCHEDULED_EVENT_USERS = self::GUILD.'/scheduled-events/:guild_scheduled_event_id/users'; - - // GET, POST - public const GUILD_SOUNDBOARD_SOUNDS = self::GUILD.'/soundboard-sounds'; - // GET, PATCH, DELETE - public const GUILD_SOUNDBOARD_SOUND = self::GUILD.'/soundboard-sounds/:sound_id'; - - // GET, DELETE - public const INVITE = 'invites/:code'; - - // POST - public const STAGE_INSTANCES = 'stage-instances'; - // GET, PATCH, DELETE - public const STAGE_INSTANCE = 'stage-instances/:channel_id'; - - // GET, POST - public const GUILDS_TEMPLATE = self::GUILDS.'/templates/:template_code'; - // GET, POST - public const GUILD_TEMPLATES = self::GUILD.'/templates'; - // PUT, PATCH, DELETE - public const GUILD_TEMPLATE = self::GUILD.'/templates/:template_code'; - - // GET, POST - public const GUILD_AUTO_MODERATION_RULES = self::GUILD.'/auto-moderation/rules'; - // GET, PATCH, DELETE - public const GUILD_AUTO_MODERATION_RULE = self::GUILD.'/auto-moderation/rules/:auto_moderation_rule_id'; - - // GET - public const SOUNDBOARD_DEFAULT_SOUNDS = 'soundboard-default-sounds'; - - // GET, PATCH - public const USER_CURRENT = 'users/@me'; - // GET - public const USER = 'users/:user_id'; - // GET - public const USER_CURRENT_GUILDS = self::USER_CURRENT.'/guilds'; - // DELETE - public const USER_CURRENT_GUILD = self::USER_CURRENT.'/guilds/:guild_id'; - // GET - public const USER_CURRENT_MEMBER = self::USER_CURRENT.'/guilds/:guild_id/member'; - // GET, POST - public const USER_CURRENT_CHANNELS = self::USER_CURRENT.'/channels'; - // GET - public const USER_CURRENT_CONNECTIONS = self::USER_CURRENT.'/connections'; - // GET, PUT - public const USER_CURRENT_APPLICATION_ROLE_CONNECTION = self::USER_CURRENT.'/applications/:application_id/role-connection'; - // GET - public const APPLICATION_CURRENT = 'applications/@me'; - - // GET, PATCH, DELETE - public const WEBHOOK = 'webhooks/:webhook_id'; - // GET, PATCH, DELETE - public const WEBHOOK_TOKEN = 'webhooks/:webhook_id/:webhook_token'; - // POST - public const WEBHOOK_EXECUTE = self::WEBHOOK_TOKEN; - // POST - public const WEBHOOK_EXECUTE_SLACK = self::WEBHOOK_EXECUTE.'/slack'; - // POST - public const WEBHOOK_EXECUTE_GITHUB = self::WEBHOOK_EXECUTE.'/github'; - // PATCH, DELETE - public const WEBHOOK_MESSAGE = self::WEBHOOK_TOKEN.'/messages/:message_id'; - - // GET, PUT - public const APPLICATION_ROLE_CONNECTION_METADATA = 'applications/:application_id/role-connections/metadata'; - - /** - * Regex to identify parameters in endpoints. - * - * @var string - */ - public const REGEX = '/:([^\/]*)/'; - - /** - * A list of parameters considered 'major' by Discord. - * - * @see https://discord.com/developers/docs/topics/rate-limits - * @var string[] - */ - public const MAJOR_PARAMETERS = ['channel_id', 'guild_id', 'webhook_id', 'thread_id']; - - /** - * The string version of the endpoint, including all parameters. - * - * @var string - */ - protected $endpoint; - - /** - * Array of placeholders to be replaced in the endpoint. - * - * @var string[] - */ - protected $vars = []; - - /** - * Array of arguments to substitute into the endpoint. - * - * @var string[] - */ - protected $args = []; - - /** - * Array of query data to be appended - * to the end of the endpoint with `http_build_query`. - * - * @var array - */ - protected $query = []; - - /** - * Creates an endpoint class. - * - * @param string $endpoint - */ - public function __construct(string $endpoint) - { - $this->endpoint = $endpoint; - - if (preg_match_all(self::REGEX, $endpoint, $vars)) { - $this->vars = $vars[1] ?? []; - } - } - - /** - * Binds a list of arguments to the endpoint. - * - * @param string[] ...$args - * @return this - */ - public function bindArgs(...$args): self - { - for ($i = 0; $i < count($this->vars) && $i < count($args); $i++) { - $this->args[$this->vars[$i]] = $args[$i]; - } - - return $this; - } - - /** - * Binds an associative array to the endpoint. - * - * @param string[] $args - * @return this - */ - public function bindAssoc(array $args): self - { - $this->args = array_merge($this->args, $args); - - return $this; - } - - /** - * Adds a key-value query pair to the endpoint. - * - * @param string $key - * @param string|bool $value - */ - public function addQuery(string $key, $value): void - { - if (! is_bool($value)) { - $value = (string) $value; - } - - $this->query[$key] = $value; - } - - /** - * Converts the endpoint into the absolute endpoint with - * placeholders replaced. - * - * Passing a true boolean in will only replace the major parameters. - * Used for rate limit buckets. - * - * @param bool $onlyMajorParameters - * @return string - */ - public function toAbsoluteEndpoint(bool $onlyMajorParameters = false): string - { - $endpoint = $this->endpoint; - - foreach ($this->vars as $var) { - if (! isset($this->args[$var]) || ($onlyMajorParameters && ! $this->isMajorParameter($var))) { - continue; - } - - $endpoint = str_replace(":{$var}", $this->args[$var], $endpoint); - } - - if (! $onlyMajorParameters && count($this->query) > 0) { - $endpoint .= '?'.http_build_query($this->query); - } - - return $endpoint; - } - - /** - * Converts the endpoint to a string. - * Alias of ->toAbsoluteEndpoint();. - * - * @return string - */ - public function __toString(): string - { - return $this->toAbsoluteEndpoint(); - } - - /** - * Creates an endpoint class and binds arguments to - * the newly created instance. - * - * @param string $endpoint - * @param string[] $args - * @return Endpoint - */ - public static function bind(string $endpoint, ...$args) - { - $endpoint = new Endpoint($endpoint); - $endpoint->bindArgs(...$args); - - return $endpoint; - } - - /** - * Checks if a parameter is a major parameter. - * - * @param string $param - * @return bool - */ - private static function isMajorParameter(string $param): bool - { - return in_array($param, self::MAJOR_PARAMETERS); - } -} diff --git a/vendor/discord-php/http/src/Discord/Exceptions/BadRequestException.php b/vendor/discord-php/http/src/Discord/Exceptions/BadRequestException.php deleted file mode 100644 index fdd2d22..0000000 --- a/vendor/discord-php/http/src/Discord/Exceptions/BadRequestException.php +++ /dev/null @@ -1,22 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE file. - */ - -namespace Discord\Http\Exceptions; - -/** - * Thrown when a request to Discord's REST API returned ClientErrorResponse. - * - * @author SQKo - */ -class BadRequestException extends RequestFailedException -{ - protected $code = 400; -} diff --git a/vendor/discord-php/http/src/Discord/Exceptions/ContentTooLongException.php b/vendor/discord-php/http/src/Discord/Exceptions/ContentTooLongException.php deleted file mode 100644 index e163293..0000000 --- a/vendor/discord-php/http/src/Discord/Exceptions/ContentTooLongException.php +++ /dev/null @@ -1,22 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE file. - */ - -namespace Discord\Http\Exceptions; - -/** - * Thrown when the Discord servers return `content longer than 2000 characters` after - * a REST request. The user must use WebSockets to obtain this data if they need it. - * - * @author David Cole - */ -class ContentTooLongException extends RequestFailedException -{ -} diff --git a/vendor/discord-php/http/src/Discord/Exceptions/InvalidTokenException.php b/vendor/discord-php/http/src/Discord/Exceptions/InvalidTokenException.php deleted file mode 100644 index 5152a24..0000000 --- a/vendor/discord-php/http/src/Discord/Exceptions/InvalidTokenException.php +++ /dev/null @@ -1,22 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE file. - */ - -namespace Discord\Http\Exceptions; - -/** - * Thrown when an invalid token is provided to a Discord endpoint. - * - * @author David Cole - */ -class InvalidTokenException extends RequestFailedException -{ - protected $code = 401; -} diff --git a/vendor/discord-php/http/src/Discord/Exceptions/MethodNotAllowedException.php b/vendor/discord-php/http/src/Discord/Exceptions/MethodNotAllowedException.php deleted file mode 100644 index 899893e..0000000 --- a/vendor/discord-php/http/src/Discord/Exceptions/MethodNotAllowedException.php +++ /dev/null @@ -1,22 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE file. - */ - -namespace Discord\Http\Exceptions; - -/** - * Thrown when a request to Discord's REST API method is invalid. - * - * @author SQKo - */ -class MethodNotAllowedException extends RequestFailedException -{ - protected $code = 405; -} diff --git a/vendor/discord-php/http/src/Discord/Exceptions/NoPermissionsException.php b/vendor/discord-php/http/src/Discord/Exceptions/NoPermissionsException.php deleted file mode 100644 index 2aa17b3..0000000 --- a/vendor/discord-php/http/src/Discord/Exceptions/NoPermissionsException.php +++ /dev/null @@ -1,22 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE file. - */ - -namespace Discord\Http\Exceptions; - -/** - * Thrown when you do not have permissions to do something. - * - * @author David Cole - */ -class NoPermissionsException extends RequestFailedException -{ - protected $code = 403; -} diff --git a/vendor/discord-php/http/src/Discord/Exceptions/NotFoundException.php b/vendor/discord-php/http/src/Discord/Exceptions/NotFoundException.php deleted file mode 100644 index dd4442e..0000000 --- a/vendor/discord-php/http/src/Discord/Exceptions/NotFoundException.php +++ /dev/null @@ -1,22 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE file. - */ - -namespace Discord\Http\Exceptions; - -/** - * Thrown when a 404 Not Found response is received. - * - * @author David Cole - */ -class NotFoundException extends RequestFailedException -{ - protected $code = 404; -} diff --git a/vendor/discord-php/http/src/Discord/Exceptions/RateLimitException.php b/vendor/discord-php/http/src/Discord/Exceptions/RateLimitException.php deleted file mode 100644 index 711b009..0000000 --- a/vendor/discord-php/http/src/Discord/Exceptions/RateLimitException.php +++ /dev/null @@ -1,23 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE file. - */ - -namespace Discord\Http\Exceptions; - -/** - * Thrown when a request to Discord's REST API got rate limited and the library - * does not know how to handle. - * - * @author SQKo - */ -class RateLimitException extends RequestFailedException -{ - protected $code = 429; -} diff --git a/vendor/discord-php/http/src/Discord/Exceptions/RequestFailedException.php b/vendor/discord-php/http/src/Discord/Exceptions/RequestFailedException.php deleted file mode 100644 index 56fb443..0000000 --- a/vendor/discord-php/http/src/Discord/Exceptions/RequestFailedException.php +++ /dev/null @@ -1,23 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE file. - */ - -namespace Discord\Http\Exceptions; - -use RuntimeException; - -/** - * Thrown when a request to Discord's REST API fails. - * - * @author David Cole - */ -class RequestFailedException extends RuntimeException -{ -} diff --git a/vendor/discord-php/http/src/Discord/Http.php b/vendor/discord-php/http/src/Discord/Http.php deleted file mode 100644 index cbec357..0000000 --- a/vendor/discord-php/http/src/Discord/Http.php +++ /dev/null @@ -1,551 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE file. - */ - -namespace Discord\Http; - -use Composer\InstalledVersions; -use Discord\Http\Exceptions\BadRequestException; -use Discord\Http\Exceptions\ContentTooLongException; -use Discord\Http\Exceptions\InvalidTokenException; -use Discord\Http\Exceptions\MethodNotAllowedException; -use Discord\Http\Exceptions\NoPermissionsException; -use Discord\Http\Exceptions\NotFoundException; -use Discord\Http\Exceptions\RateLimitException; -use Discord\Http\Exceptions\RequestFailedException; -use Discord\Http\Multipart\MultipartBody; -use Psr\Http\Message\ResponseInterface; -use Psr\Log\LoggerInterface; -use React\EventLoop\LoopInterface; -use React\Promise\Deferred; -use React\Promise\PromiseInterface; -use SplQueue; - -/** - * Discord HTTP client. - * - * @author David Cole - */ -class Http -{ - /** - * DiscordPHP-Http version. - * - * @var string - */ - public const VERSION = 'v10.3.0'; - - /** - * Current Discord HTTP API version. - * - * @var string - */ - public const HTTP_API_VERSION = 10; - - /** - * Discord API base URL. - * - * @var string - */ - public const BASE_URL = 'https://discord.com/api/v'.self::HTTP_API_VERSION; - - /** - * The number of concurrent requests which can - * be executed. - * - * @var int - */ - public const CONCURRENT_REQUESTS = 5; - - /** - * Authentication token. - * - * @var string - */ - private $token; - - /** - * Logger for HTTP requests. - * - * @var LoggerInterface - */ - protected $logger; - - /** - * HTTP driver. - * - * @var DriverInterface - */ - protected $driver; - - /** - * ReactPHP event loop. - * - * @var LoopInterface - */ - protected $loop; - - /** - * Array of request buckets. - * - * @var Bucket[] - */ - protected $buckets = []; - - /** - * The current rate-limit. - * - * @var RateLimit - */ - protected $rateLimit; - - /** - * Timer that resets the current global rate-limit. - * - * @var TimerInterface - */ - protected $rateLimitReset; - - /** - * Request queue to prevent API - * overload. - * - * @var SplQueue - */ - protected $queue; - - /** - * Number of requests that are waiting for a response. - * - * @var int - */ - protected $waiting = 0; - - - /** - * Whether react/promise v3 is used, if false, using v2 - */ - protected $promiseV3 = true; - - /** - * Http wrapper constructor. - * - * @param string $token - * @param LoopInterface $loop - * @param DriverInterface|null $driver - */ - public function __construct(string $token, LoopInterface $loop, LoggerInterface $logger, ?DriverInterface $driver = null) - { - $this->token = $token; - $this->loop = $loop; - $this->logger = $logger; - $this->driver = $driver; - $this->queue = new SplQueue; - - $this->promiseV3 = str_starts_with(InstalledVersions::getVersion('react/promise'), '3.'); - } - - /** - * Sets the driver of the HTTP client. - * - * @param DriverInterface $driver - */ - public function setDriver(DriverInterface $driver): void - { - $this->driver = $driver; - } - - /** - * Runs a GET request. - * - * @param string|Endpoint $url - * @param mixed $content - * @param array $headers - * - * @return PromiseInterface - */ - public function get($url, $content = null, array $headers = []): PromiseInterface - { - if (! ($url instanceof Endpoint)) { - $url = Endpoint::bind($url); - } - - return $this->queueRequest('get', $url, $content, $headers); - } - - /** - * Runs a POST request. - * - * @param string|Endpoint $url - * @param mixed $content - * @param array $headers - * - * @return PromiseInterface - */ - public function post($url, $content = null, array $headers = []): PromiseInterface - { - if (! ($url instanceof Endpoint)) { - $url = Endpoint::bind($url); - } - - return $this->queueRequest('post', $url, $content, $headers); - } - - /** - * Runs a PUT request. - * - * @param string|Endpoint $url - * @param mixed $content - * @param array $headers - * - * @return PromiseInterface - */ - public function put($url, $content = null, array $headers = []): PromiseInterface - { - if (! ($url instanceof Endpoint)) { - $url = Endpoint::bind($url); - } - - return $this->queueRequest('put', $url, $content, $headers); - } - - /** - * Runs a PATCH request. - * - * @param string|Endpoint $url - * @param mixed $content - * @param array $headers - * - * @return PromiseInterface - */ - public function patch($url, $content = null, array $headers = []): PromiseInterface - { - if (! ($url instanceof Endpoint)) { - $url = Endpoint::bind($url); - } - - return $this->queueRequest('patch', $url, $content, $headers); - } - - /** - * Runs a DELETE request. - * - * @param string|Endpoint $url - * @param mixed $content - * @param array $headers - * - * @return PromiseInterface - */ - public function delete($url, $content = null, array $headers = []): PromiseInterface - { - if (! ($url instanceof Endpoint)) { - $url = Endpoint::bind($url); - } - - return $this->queueRequest('delete', $url, $content, $headers); - } - - /** - * Builds and queues a request. - * - * @param string $method - * @param Endpoint $url - * @param mixed $content - * @param array $headers - * - * @return PromiseInterface - */ - public function queueRequest(string $method, Endpoint $url, $content, array $headers = []): PromiseInterface - { - $deferred = new Deferred(); - - if (is_null($this->driver)) { - $deferred->reject(new \Exception('HTTP driver is missing.')); - - return $deferred->promise(); - } - - $headers = array_merge($headers, [ - 'User-Agent' => $this->getUserAgent(), - 'Authorization' => $this->token, - 'X-Ratelimit-Precision' => 'millisecond', - ]); - - $baseHeaders = [ - 'User-Agent' => $this->getUserAgent(), - 'Authorization' => $this->token, - 'X-Ratelimit-Precision' => 'millisecond', - ]; - - if (! is_null($content) && ! isset($headers['Content-Type'])) { - $baseHeaders = array_merge( - $baseHeaders, - $this->guessContent($content) - ); - } - - $headers = array_merge($baseHeaders, $headers); - - $request = new Request($deferred, $method, $url, $content ?? '', $headers); - $this->sortIntoBucket($request); - - return $deferred->promise(); - } - - /** - * Guesses the headers and transforms the content of a request. - * - * @param mixed $content - */ - protected function guessContent(&$content) - { - if ($content instanceof MultipartBody) { - $headers = $content->getHeaders(); - $content = (string) $content; - - return $headers; - } - - $content = json_encode($content); - - return [ - 'Content-Type' => 'application/json', - 'Content-Length' => strlen($content), - ]; - } - - /** - * Executes a request. - * - * @param Request $request - * @param Deferred|null $deferred - * - * @return PromiseInterface - */ - protected function executeRequest(Request $request, ?Deferred $deferred = null): PromiseInterface - { - if ($deferred === null) { - $deferred = new Deferred(); - } - - if ($this->rateLimit) { - $deferred->reject($this->rateLimit); - - return $deferred->promise(); - } - - // Promises v3 changed `->then` to behave as `->done` and removed `->then`. We still need the behaviour of `->done` in projects using v2 - $this->driver->runRequest($request)->{$this->promiseV3 ? 'then' : 'done'}(function (ResponseInterface $response) use ($request, $deferred) { - $data = json_decode((string) $response->getBody()); - $statusCode = $response->getStatusCode(); - - // Discord Rate-limit - if ($statusCode == 429) { - if (! isset($data->global)) { - if ($response->hasHeader('X-RateLimit-Global')) { - $data->global = $response->getHeader('X-RateLimit-Global')[0] == 'true'; - } else { - // Some other 429 - $this->logger->error($request.' does not contain global rate-limit value'); - $rateLimitError = new RateLimitException('No rate limit global response', $statusCode); - $deferred->reject($rateLimitError); - $request->getDeferred()->reject($rateLimitError); - - return; - } - } - - if (! isset($data->retry_after)) { - if ($response->hasHeader('Retry-After')) { - $data->retry_after = $response->getHeader('Retry-After')[0]; - } else { - // Some other 429 - $this->logger->error($request.' does not contain retry after rate-limit value'); - $rateLimitError = new RateLimitException('No rate limit retry after response', $statusCode); - $deferred->reject($rateLimitError); - $request->getDeferred()->reject($rateLimitError); - - return; - } - } - - $rateLimit = new RateLimit($data->global, $data->retry_after); - $this->logger->warning($request.' hit rate-limit: '.$rateLimit); - - if ($rateLimit->isGlobal() && ! $this->rateLimit) { - $this->rateLimit = $rateLimit; - $this->rateLimitReset = $this->loop->addTimer($rateLimit->getRetryAfter(), function () { - $this->rateLimit = null; - $this->rateLimitReset = null; - $this->logger->info('global rate-limit reset'); - - // Loop through all buckets and check for requests - foreach ($this->buckets as $bucket) { - $bucket->checkQueue(); - } - }); - } - - $deferred->reject($rateLimit->isGlobal() ? $this->rateLimit : $rateLimit); - } - // Bad Gateway - // Cloudflare SSL Handshake error - // Push to the back of the bucket to be retried. - elseif ($statusCode == 502 || $statusCode == 525) { - $this->logger->warning($request.' 502/525 - retrying request'); - - $this->executeRequest($request, $deferred); - } - // Any other unsuccessful status codes - elseif ($statusCode < 200 || $statusCode >= 300) { - $error = $this->handleError($response); - $this->logger->warning($request.' failed: '.$error); - - $deferred->reject($error); - $request->getDeferred()->reject($error); - } - // All is well - else { - $this->logger->debug($request.' successful'); - - $deferred->resolve($response); - $request->getDeferred()->resolve($data); - } - }, function (\Exception $e) use ($request, $deferred) { - $this->logger->warning($request.' failed: '.$e->getMessage()); - - $deferred->reject($e); - $request->getDeferred()->reject($e); - }); - - return $deferred->promise(); - } - - /** - * Sorts a request into a bucket. - * - * @param Request $request - */ - protected function sortIntoBucket(Request $request): void - { - $bucket = $this->getBucket($request->getBucketID()); - $bucket->enqueue($request); - } - - /** - * Gets a bucket. - * - * @param string $key - * - * @return Bucket - */ - protected function getBucket(string $key): Bucket - { - if (! isset($this->buckets[$key])) { - $bucket = new Bucket($key, $this->loop, $this->logger, function (Request $request) { - $deferred = new Deferred(); - $this->queue->enqueue([$request, $deferred]); - $this->checkQueue(); - - return $deferred->promise(); - }); - - $this->buckets[$key] = $bucket; - } - - return $this->buckets[$key]; - } - - /** - * Checks the request queue to see if more requests can be - * sent out. - */ - protected function checkQueue(): void - { - if ($this->waiting >= static::CONCURRENT_REQUESTS || $this->queue->isEmpty()) { - $this->logger->debug('http not checking', ['waiting' => $this->waiting, 'empty' => $this->queue->isEmpty()]); - - return; - } - - /** - * @var Request $request - * @var Deferred $deferred - */ - [$request, $deferred] = $this->queue->dequeue(); - ++$this->waiting; - - $this->executeRequest($request)->then(function ($result) use ($deferred) { - --$this->waiting; - $this->checkQueue(); - $deferred->resolve($result); - }, function ($e) use ($deferred) { - --$this->waiting; - $this->checkQueue(); - $deferred->reject($e); - }); - } - - /** - * Returns an exception based on the request. - * - * @param ResponseInterface $response - * - * @return \Throwable - */ - public function handleError(ResponseInterface $response): \Throwable - { - $reason = $response->getReasonPhrase().' - '; - - $errorBody = (string) $response->getBody(); - $errorCode = $response->getStatusCode(); - - // attempt to prettyify the response content - if (($content = json_decode($errorBody)) !== null) { - if (! empty($content->code)) { - $errorCode = $content->code; - } - $reason .= json_encode($content, JSON_PRETTY_PRINT); - } else { - $reason .= $errorBody; - } - - switch ($response->getStatusCode()) { - case 400: - return new BadRequestException($reason, $errorCode); - case 401: - return new InvalidTokenException($reason, $errorCode); - case 403: - return new NoPermissionsException($reason, $errorCode); - case 404: - return new NotFoundException($reason, $errorCode); - case 405: - return new MethodNotAllowedException($reason, $errorCode); - case 500: - if (strpos(strtolower($errorBody), 'longer than 2000 characters') !== false || - strpos(strtolower($errorBody), 'string value is too long') !== false) { - // Response was longer than 2000 characters and was blocked by Discord. - return new ContentTooLongException('Response was more than 2000 characters. Use another method to get this data.', $errorCode); - } - default: - return new RequestFailedException($reason, $errorCode); - } - } - - /** - * Returns the User-Agent of the HTTP client. - * - * @return string - */ - public function getUserAgent(): string - { - return 'DiscordBot (https://github.com/discord-php/DiscordPHP-HTTP, '.self::VERSION.')'; - } -} diff --git a/vendor/discord-php/http/src/Discord/Multipart/MultipartBody.php b/vendor/discord-php/http/src/Discord/Multipart/MultipartBody.php deleted file mode 100644 index db9a2cf..0000000 --- a/vendor/discord-php/http/src/Discord/Multipart/MultipartBody.php +++ /dev/null @@ -1,58 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE file. - */ - -namespace Discord\Http\Multipart; - -class MultipartBody -{ - public const BOUNDARY = 'DISCORDPHP-HTTP-BOUNDARY'; - - private array $fields; - public string $boundary; - - /** - * @var MultipartField[] - */ - public function __construct(array $fields, ?string $boundary = null) - { - $this->fields = $fields; - $this->boundary = $boundary ?? self::BOUNDARY; - } - - public function __toString(): string - { - $prefixedBoundary = '--'.$this->boundary; - $boundaryEnd = $prefixedBoundary.'--'; - - $convertedFields = array_map( - function (MultipartField $field) { - return (string) $field; - }, - $this->fields - ); - - $fieldsString = implode(PHP_EOL.$prefixedBoundary.PHP_EOL, $convertedFields); - - return implode(PHP_EOL, [ - $prefixedBoundary, - $fieldsString, - $boundaryEnd, - ]); - } - - public function getHeaders(): array - { - return [ - 'Content-Type' => 'multipart/form-data; boundary='.$this->boundary, - 'Content-Length' => strlen((string) $this), - ]; - } -} diff --git a/vendor/discord-php/http/src/Discord/Multipart/MultipartField.php b/vendor/discord-php/http/src/Discord/Multipart/MultipartField.php deleted file mode 100644 index 2745706..0000000 --- a/vendor/discord-php/http/src/Discord/Multipart/MultipartField.php +++ /dev/null @@ -1,54 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE file. - */ - -namespace Discord\Http\Multipart; - -class MultipartField -{ - private string $name; - private string $content; - private array $headers; - private ?string $fileName; - - /** - * @var String[] - */ - public function __construct( - string $name, - string $content, - array $headers = [], - ?string $fileName = null - ) { - $this->name = $name; - $this->content = $content; - $this->headers = $headers; - $this->fileName = $fileName; - } - - public function __toString(): string - { - $out = 'Content-Disposition: form-data; name="'.$this->name.'"'; - - if (! is_null($this->fileName)) { - $out .= '; filename="'.urlencode($this->fileName).'"'; - } - - $out .= PHP_EOL; - - foreach ($this->headers as $header => $value) { - $out .= $header.': '.$value.PHP_EOL; - } - - $out .= PHP_EOL.$this->content.PHP_EOL; - - return $out; - } -} diff --git a/vendor/discord-php/http/src/Discord/RateLimit.php b/vendor/discord-php/http/src/Discord/RateLimit.php deleted file mode 100644 index 0373f3f..0000000 --- a/vendor/discord-php/http/src/Discord/RateLimit.php +++ /dev/null @@ -1,78 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE file. - */ - -namespace Discord\Http; - -use RuntimeException; - -/** - * Represents a rate-limit given by Discord. - * - * @author David Cole - */ -class RateLimit extends RuntimeException -{ - /** - * Whether the rate-limit is global. - * - * @var bool - */ - protected $global; - - /** - * Time in seconds of when to retry after. - * - * @var float - */ - protected $retry_after; - - /** - * Rate limit constructor. - * - * @param bool $global - * @param float $retry_after - */ - public function __construct(bool $global, float $retry_after) - { - $this->global = $global; - $this->retry_after = $retry_after; - } - - /** - * Gets the global parameter. - * - * @return bool - */ - public function isGlobal(): bool - { - return $this->global; - } - - /** - * Gets the retry after parameter. - * - * @return float - */ - public function getRetryAfter(): float - { - return $this->retry_after; - } - - /** - * Converts a rate-limit to a user-readable string. - * - * @return string - */ - public function __toString() - { - return 'RATELIMIT '.($this->global ? 'Global' : 'Non-global').', retry after '.$this->retry_after.' s'; - } -} diff --git a/vendor/discord-php/http/src/Discord/Request.php b/vendor/discord-php/http/src/Discord/Request.php deleted file mode 100644 index 190bad5..0000000 --- a/vendor/discord-php/http/src/Discord/Request.php +++ /dev/null @@ -1,145 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE file. - */ - -namespace Discord\Http; - -use React\Promise\Deferred; - -/** - * Represents an HTTP request. - * - * @author David Cole - */ -class Request -{ - /** - * Deferred promise. - * - * @var Deferred - */ - protected $deferred; - - /** - * Request method. - * - * @var string - */ - protected $method; - - /** - * Request URL. - * - * @var Endpoint - */ - protected $url; - - /** - * Request content. - * - * @var string - */ - protected $content; - - /** - * Request headers. - * - * @var array - */ - protected $headers; - - /** - * Request constructor. - * - * @param Deferred $deferred - * @param string $method - * @param Endpoint $url - * @param string $content - * @param array $headers - */ - public function __construct(Deferred $deferred, string $method, Endpoint $url, string $content, array $headers = []) - { - $this->deferred = $deferred; - $this->method = $method; - $this->url = $url; - $this->content = $content; - $this->headers = $headers; - } - - /** - * Gets the method. - * - * @return string - */ - public function getMethod(): string - { - return $this->method; - } - - /** - * Gets the url. - * - * @return string - */ - public function getUrl(): string - { - return Http::BASE_URL.'/'.$this->url; - } - - /** - * Gets the content. - * - * @return string - */ - public function getContent(): string - { - return $this->content; - } - - /** - * Gets the headers. - * - * @return string - */ - public function getHeaders(): array - { - return $this->headers; - } - - /** - * Returns the deferred promise. - * - * @return Deferred - */ - public function getDeferred(): Deferred - { - return $this->deferred; - } - - /** - * Returns the bucket ID for the request. - * - * @return string - */ - public function getBucketID(): string - { - return $this->method.$this->url->toAbsoluteEndpoint(true); - } - - /** - * Converts the request to a user-readable string. - * - * @return string - */ - public function __toString() - { - return 'REQ '.strtoupper($this->method).' '.$this->url; - } -} diff --git a/vendor/discord-php/http/tests/Discord/DriverInterfaceTest.php b/vendor/discord-php/http/tests/Discord/DriverInterfaceTest.php deleted file mode 100644 index 3be017e..0000000 --- a/vendor/discord-php/http/tests/Discord/DriverInterfaceTest.php +++ /dev/null @@ -1,134 +0,0 @@ -shouldReceive([ - 'getMethod' => $method, - 'getUrl' => $url, - 'getContent' => $content, - 'getHeaders' => $headers, - ]); - - return $request; - } - - /** - * @dataProvider requestProvider - */ - public function testRequest(string $method, string $url, array $content = [], array $verify = []) - { - $driver = $this->getDriver(); - $request = $this->getRequest( - $method, - $url, - $content === [] ? '' : json_encode($content), - empty($content) ? [] : ['Content-Type' => 'application/json'] - ); - - /** @var ResponseInterface */ - $response = await($driver->runRequest($request)); - - $this->assertNotEquals('', $response->getBody()); - $this->assertEquals(200, $response->getStatusCode()); - - $jsonDecodedBody = json_decode($response->getBody(), true); - - $verify['method'] = $method; - - foreach ($verify as $field => $expectedValue) { - $this->assertEquals( - $expectedValue, - $jsonDecodedBody[$field] - ); - } - } - - public function requestProvider(): array - { - $content = ['something' => 'value']; - return [ - 'Plain get' => [ - 'method' => 'GET', - 'url' => 'http://127.0.0.1:8888', - ], - 'Get with params' => [ - 'method' => 'GET', - 'url' => 'http://127.0.0.1:8888?something=value', - 'verify' => [ - 'args' => $content, - ], - ], - - 'Plain post' => [ - 'method' => 'POST', - 'url' => 'http://127.0.0.1:8888', - ], - 'Post with content' => [ - 'method' => 'POST', - 'url' => 'http://127.0.0.1:8888', - 'content' => $content, - 'verify' => [ - 'json' => $content, - ], - ], - - 'Plain put' => [ - 'method' => 'PUT', - 'url' => 'http://127.0.0.1:8888', - ], - 'Put with content' => [ - 'method' => 'PUT', - 'url' => 'http://127.0.0.1:8888', - 'content' => $content, - 'verify' => [ - 'json' => $content, - ], - ], - - 'Plain patch' => [ - 'method' => 'PATCH', - 'url' => 'http://127.0.0.1:8888', - ], - 'Patch with content' => [ - 'method' => 'PATCH', - 'url' => 'http://127.0.0.1:8888', - 'content' => $content, - 'verify' => [ - 'json' => $content, - ], - ], - - 'Plain delete' => [ - 'method' => 'DELETE', - 'url' => 'http://127.0.0.1:8888', - ], - 'Delete with content' => [ - 'method' => 'DELETE', - 'url' => 'http://127.0.0.1:8888', - 'content' => $content, - 'verify' => [ - 'json' => $content, - ], - ], - ]; - } -} diff --git a/vendor/discord-php/http/tests/Discord/EndpointTest.php b/vendor/discord-php/http/tests/Discord/EndpointTest.php deleted file mode 100644 index 673c757..0000000 --- a/vendor/discord-php/http/tests/Discord/EndpointTest.php +++ /dev/null @@ -1,165 +0,0 @@ -bindArgs(...$replacements); - - $this->assertEquals( - $endpoint->toAbsoluteEndpoint(true), - $expected - ); - } - - public function majorParamProvider(): array - { - return [ - 'Several major params' => [ - 'uri' => 'something/:guild_id/:channel_id/:webhook_id', - 'replacements' => ['::guild id::', '::channel id::', '::webhook id::'], - 'expected' => 'something/::guild id::/::channel id::/::webhook id::', - ], - 'Single major param' => [ - 'uri' => 'something/:guild_id', - 'replacements' => ['::guild id::'], - 'expected' => 'something/::guild id::', - ], - 'Single major param, some minor params' => [ - 'uri' => 'something/:guild_id/:some_param/:something_else', - 'replacements' => ['::guild id::', '::some_param::', '::something else::'], - 'expected' => 'something/::guild id::/:some_param/:something_else', - ], - 'Only minor params' => [ - 'uri' => 'something/:something/:some_param/:something_else', - 'replacements' => ['::something::', '::some_param::', '::something else::'], - 'expected' => 'something/:something/:some_param/:something_else', - ], - 'Minor and major params in weird order' => [ - 'uri' => 'something/:something/:guild_id/:something_else/:channel_id', - 'replacements' => ['::something::', '::guild id::', '::something else::', '::channel id::'], - 'expected' => 'something/:something/::guild id::/:something_else/::channel id::', - ], - ]; - } - - /** - * @dataProvider allParamProvider - */ - public function testBindAllParams(string $uri, array $replacements, string $expected) - { - $endpoint = new Endpoint($uri); - $endpoint->bindArgs(...$replacements); - - $this->assertEquals( - $expected, - $endpoint->toAbsoluteEndpoint() - ); - } - - public function allParamProvider(): array - { - return [ - 'Several major params' => [ - 'uri' => 'something/:guild_id/:channel_id/:webhook_id', - 'replacements' => ['::guild id::', '::channel id::', '::webhook id::'], - 'expected' => 'something/::guild id::/::channel id::/::webhook id::', - ], - 'Single major param' => [ - 'uri' => 'something/:guild_id', - 'replacements' => ['::guild id::'], - 'expected' => 'something/::guild id::', - ], - 'Single major param, some minor params' => [ - 'uri' => 'something/:guild_id/:some_param/:something_else', - 'replacements' => ['::guild id::', '::some param::', '::something else::'], - 'expected' => 'something/::guild id::/::some param::/::something else::', - ], - 'Only minor params' => [ - 'uri' => 'something/:something/:some_param/:other', - 'replacements' => ['::something::', '::some param::', '::something else::'], - 'expected' => 'something/::something::/::some param::/::something else::', - ], - 'Minor and major params in weird order' => [ - 'uri' => 'something/:something/:guild_id/:other/:channel_id', - 'replacements' => ['::something::', '::guild id::', '::something else::', '::channel id::'], - 'expected' => 'something/::something::/::guild id::/::something else::/::channel id::', - ], - - // @see https://github.com/discord-php/DiscordPHP-Http/issues/16 - // 'Params with same prefix, short first' => [ - // 'uri' => 'something/:thing/:thing_other', - // 'replacements' => ['::thing::', '::thing other::'], - // 'expected' => 'something/::thing::/::thing other::', - // ], - // 'Params with same prefix, short first' => [ - // 'uri' => 'something/:thing_other/:thing', - // 'replacements' => ['::thing other::', '::thing::'], - // 'expected' => 'something/::thing other::/::thing::', - // ], - ]; - } - - public function testBindAssoc() - { - $endpoint = new Endpoint('something/:first/:second'); - $endpoint->bindAssoc([ - 'second' => '::second::', - 'first' => '::first::', - ]); - - $this->assertEquals( - 'something/::first::/::second::', - $endpoint->toAbsoluteEndpoint() - ); - } - - public function testItConvertsToString() - { - $this->assertEquals( - 'something/::first::/::second::', - (string) Endpoint::bind( - 'something/:first/:second', - '::first::', - '::second::' - ) - ); - } - - public function itCanAddQueryParams() - { - $endpoint = new Endpoint('something/:param'); - $endpoint->bindArgs('param'); - - $endpoint->addQuery('something', 'value'); - $endpoint->addQuery('boolval', true); - - $this->assertEquals( - 'something/param?something=value&boolval=1', - $endpoint->toAbsoluteEndpoint() - ); - } - - public function itDoesNotAddQueryParamsForMajorParameters() - { - $endpoint = new Endpoint('something/:guild_id'); - $endpoint->bindArgs('param'); - - $endpoint->addQuery('something', 'value'); - $endpoint->addQuery('boolval', true); - - $this->assertEquals( - 'something/param', - $endpoint->toAbsoluteEndpoint(true) - ); - } -} diff --git a/vendor/discord-php/http/tests/Discord/Multipart/MultipartTest.php b/vendor/discord-php/http/tests/Discord/Multipart/MultipartTest.php deleted file mode 100644 index d867016..0000000 --- a/vendor/discord-php/http/tests/Discord/Multipart/MultipartTest.php +++ /dev/null @@ -1,126 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE file. - */ - -namespace Tests\Discord\Http\Multipart; - -use Discord\Http\Multipart\MultipartBody; -use Discord\Http\Multipart\MultipartField; -use Mockery; -use PHPUnit\Framework\TestCase; - -class MultipartTest extends TestCase -{ - /** - * @dataProvider multipartFieldStringConversionProvider - */ - public function testMultipartFieldStringConversion(array $constructorArgs, string $expected) - { - $multipartField = new MultipartField(...$constructorArgs); - - $this->assertEquals($expected, (string) $multipartField); - } - - public function multipartFieldStringConversionProvider(): array - { - return [ - 'Completely filled' => [ - 'args' => [ - '::name::', - '::content::', - [ - 'Header-Name' => 'Value', - ], - '::filename::', - ], - - 'expected' => << [ - 'args' => [ - '::name::', - '::content::', - [ - 'Header-Name' => 'Value', - ], - null, - ], - - 'expected' => << [ - 'args' => [ - '::name::', - '::content::', - [], - '::filename::', - ], - - 'expected' => <<shouldReceive('__toString')->andReturn($return); - - return $mock; - }, ['::first field::', '::second field::', '::third field::']); - - $multipartBody = new MultipartBody($fields, '::boundary::'); - - $this->assertEquals( - <<assertEquals([ - 'Content-Type' => 'multipart/form-data; boundary=::boundary::', - 'Content-Length' => strlen((string) $multipartBody), - ], $multipartBody->getHeaders()); - } - - public function testGeneratingBoundary() - { - $multipartBody = new MultipartBody([ - Mockery::mock(MultipartField::class), - ]); - - $this->assertNotNull($multipartBody->boundary); - } -} diff --git a/vendor/discord-php/http/tests/Discord/RequestTest.php b/vendor/discord-php/http/tests/Discord/RequestTest.php deleted file mode 100644 index 61b7648..0000000 --- a/vendor/discord-php/http/tests/Discord/RequestTest.php +++ /dev/null @@ -1,78 +0,0 @@ -getRequest($deferred); - - $this->assertEquals($deferred, $request->getDeferred()); - } - - public function testGetMethod() - { - $request = $this->getRequest(null, '::method::'); - - $this->assertEquals('::method::', $request->getMethod()); - } - - public function testGetUrl() - { - $request = $this->getRequest(null, '', new Endpoint('::url::')); - - $this->assertEquals(Http::BASE_URL . '/::url::', $request->getUrl()); - } - - public function testGetContent() - { - $request = $this->getRequest(null, '', null, '::content::'); - - $this->assertEquals('::content::', $request->getContent()); - } - - public function testGetHeaders() - { - $request = $this->getRequest(null, '', null, '::content::', ['something' => 'value']); - - $this->assertEquals(['something' => 'value'], $request->getHeaders()); - } - - public function testGetBucketId() - { - $endpoint = Mockery::mock(Endpoint::class); - $endpoint->shouldReceive('toAbsoluteEndpoint')->andReturn('::endpoint::'); - - $request = $this->getRequest(null, '::method::', $endpoint); - - $this->assertEquals('::method::::endpoint::', $request->getBucketID()); - } -} diff --git a/vendor/discord-php/http/tests/Drivers/GuzzleTest.php b/vendor/discord-php/http/tests/Drivers/GuzzleTest.php deleted file mode 100644 index c871048..0000000 --- a/vendor/discord-php/http/tests/Drivers/GuzzleTest.php +++ /dev/null @@ -1,16 +0,0 @@ - $request->getMethod(), - 'args' => $request->getQueryParams(), - 'json' => $request->getHeader('Content-Type') === ['application/json'] - ? json_decode($request->getBody()) - : [] - ]; - - return Response::json($response); -}); - -$socket = new SocketServer('127.0.0.1:8888'); - -$http->listen($socket); diff --git a/vendor/discord/interactions/.gitignore b/vendor/discord/interactions/.gitignore deleted file mode 100644 index 7a8a0ad..0000000 --- a/vendor/discord/interactions/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -composer.phar -composer.lock -vendor diff --git a/vendor/discord/interactions/README.md b/vendor/discord/interactions/README.md deleted file mode 100644 index 5c39e96..0000000 --- a/vendor/discord/interactions/README.md +++ /dev/null @@ -1,46 +0,0 @@ -discord-interactions-php ---- - -Types and helper functions that may come in handy when you implement a Discord Interactions webhook. - -# Installation - -Install from [packagist](https://packagist.org/packages/discord/interactions): - -``` -composer require discord/interactions -``` - -Validating request signatures requires the [`simplito/elliptic-php`](https://github.com/simplito/elliptic-php) package to be installed, which requires the `php-gmp` extension to be enabled: - -``` -composer require simplito/elliptic-php -``` - -# Usage - -Use `InteractionType` and `InteractionResponseType` to interpret and respond to webhooks. - -Use `InteractionResponseFlags` to make your response special. - -Use `verifyKey` to check a request signature. Note you must install the `simplito/elliptic-php` package first. For example: - -```php -use Discord\Interaction; -use Discord\InteractionResponseType; - -$CLIENT_PUBLIC_KEY = getenv('CLIENT_PUBLIC_KEY'); - -$signature = $_SERVER['HTTP_X_SIGNATURE_ED25519']; -$timestamp = $_SERVER['HTTP_X_SIGNATURE_TIMESTAMP']; -$postData = file_get_contents('php://input'); - -if (Interaction::verifyKey($postData, $signature, $timestamp, $CLIENT_PUBLIC_KEY)) { - echo json_encode(array( - 'type' => InteractionResponseType::PONG - )); -} else { - http_response_code(401); - echo "Not verified"; -} -``` diff --git a/vendor/discord/interactions/composer.json b/vendor/discord/interactions/composer.json deleted file mode 100644 index 903e502..0000000 --- a/vendor/discord/interactions/composer.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "name": "discord/interactions", - "description": "Utils for implementing the Discord Interactions API", - "type": "library", - "require-dev": { - "simplito/elliptic-php": "^1.0" - }, - "archive": { - "exclude": ["!README.md", "!composer.json", "examples", "vendor"] - }, - "license": "MIT", - "keywords": ["discord"], - "authors": [ - { - "name": "Ian Webster", - "email": "ianw_php@ianww.com" - } - ], - "autoload": { - "psr-4": {"Discord\\": "discord"} - }, - "suggest": { - "simplito/elliptic-php": "Required to validate interaction signatures." - }, - "conflict": { - "simplito/elliptic-php": "<1.0,>=1.1" - } -} diff --git a/vendor/discord/interactions/discord/Interaction.php b/vendor/discord/interactions/discord/Interaction.php deleted file mode 100644 index 9cfe5b4..0000000 --- a/vendor/discord/interactions/discord/Interaction.php +++ /dev/null @@ -1,19 +0,0 @@ -keyFromPublic($client_public_key, 'hex'); - - $message = array_merge(unpack('C*', $timestamp), unpack('C*', $rawBody)); - return $key->verify($message, $signature) == TRUE; - } -} diff --git a/vendor/discord/interactions/discord/InteractionResponseFlags.php b/vendor/discord/interactions/discord/InteractionResponseFlags.php deleted file mode 100644 index 5b6d681..0000000 --- a/vendor/discord/interactions/discord/InteractionResponseFlags.php +++ /dev/null @@ -1,8 +0,0 @@ - InteractionResponseType::PONG - )); -} else { - http_response_code(401); - echo "Not verified"; -} diff --git a/vendor/evenement/evenement/.gitattributes b/vendor/evenement/evenement/.gitattributes deleted file mode 100644 index 8e493b8..0000000 --- a/vendor/evenement/evenement/.gitattributes +++ /dev/null @@ -1,7 +0,0 @@ -/.github export-ignore -/doc export-ignore -/examples export-ignore -/tests export-ignore -/.gitignore export-ignore -/CHANGELOG.md export-ignore -/phpunit.xml.dist export-ignore diff --git a/vendor/evenement/evenement/LICENSE b/vendor/evenement/evenement/LICENSE deleted file mode 100644 index d9a37d0..0000000 --- a/vendor/evenement/evenement/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2011 Igor Wiedler - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is furnished -to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/vendor/evenement/evenement/README.md b/vendor/evenement/evenement/README.md deleted file mode 100644 index 455dd22..0000000 --- a/vendor/evenement/evenement/README.md +++ /dev/null @@ -1,64 +0,0 @@ -# Événement - -Événement is a very simple event dispatching library for PHP. - -It has the same design goals as [Silex](https://silex.symfony.com/) and -[Pimple](https://github.com/silexphp/Pimple), to empower the user while staying concise -and simple. - -It is very strongly inspired by the [EventEmitter](https://nodejs.org/api/events.html#events_class_eventemitter) API found in -[node.js](http://nodejs.org). - -![Continuous Integration](https://github.com/igorw/evenement/workflows/CI/badge.svg) -[![Latest Stable Version](https://poser.pugx.org/evenement/evenement/v/stable.png)](https://packagist.org/packages/evenement/evenement) -[![Total Downloads](https://poser.pugx.org/evenement/evenement/downloads.png)](https://packagist.org/packages/evenement/evenement/stats) -[![License](https://poser.pugx.org/evenement/evenement/license.png)](https://packagist.org/packages/evenement/evenement) - -## Fetch - -The recommended way to install Événement is [through composer](http://getcomposer.org). By running the following command: - - $ composer require evenement/evenement - -## Usage - -### Creating an Emitter - -```php -on('user.created', function (User $user) use ($logger) { - $logger->log(sprintf("User '%s' was created.", $user->getLogin())); -}); -``` - -### Removing Listeners - -```php -removeListener('user.created', function (User $user) use ($logger) { - $logger->log(sprintf("User '%s' was created.", $user->getLogin())); -}); -``` - -### Emitting Events - -```php -emit('user.created', [$user]); -``` - -Tests ------ - - $ ./vendor/bin/phpunit - -License -------- -MIT, see LICENSE. diff --git a/vendor/evenement/evenement/composer.json b/vendor/evenement/evenement/composer.json deleted file mode 100644 index 5444d93..0000000 --- a/vendor/evenement/evenement/composer.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "name": "evenement/evenement", - "description": "Événement is a very simple event dispatching library for PHP", - "keywords": ["event-dispatcher", "event-emitter"], - "license": "MIT", - "authors": [ - { - "name": "Igor Wiedler", - "email": "igor@wiedler.ch" - } - ], - "require": { - "php": ">=7.0" - }, - "require-dev": { - "phpunit/phpunit": "^9 || ^6" - }, - "autoload": { - "psr-4": { - "Evenement\\": "src/" - } - }, - "autoload-dev": { - "psr-4": { - "Evenement\\Tests\\": "tests/" - }, - "files": ["tests/functions.php"] - } -} diff --git a/vendor/evenement/evenement/src/EventEmitter.php b/vendor/evenement/evenement/src/EventEmitter.php deleted file mode 100644 index db189b9..0000000 --- a/vendor/evenement/evenement/src/EventEmitter.php +++ /dev/null @@ -1,17 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Evenement; - -class EventEmitter implements EventEmitterInterface -{ - use EventEmitterTrait; -} diff --git a/vendor/evenement/evenement/src/EventEmitterInterface.php b/vendor/evenement/evenement/src/EventEmitterInterface.php deleted file mode 100644 index 310631a..0000000 --- a/vendor/evenement/evenement/src/EventEmitterInterface.php +++ /dev/null @@ -1,22 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Evenement; - -interface EventEmitterInterface -{ - public function on($event, callable $listener); - public function once($event, callable $listener); - public function removeListener($event, callable $listener); - public function removeAllListeners($event = null); - public function listeners($event = null); - public function emit($event, array $arguments = []); -} diff --git a/vendor/evenement/evenement/src/EventEmitterTrait.php b/vendor/evenement/evenement/src/EventEmitterTrait.php deleted file mode 100644 index 1503429..0000000 --- a/vendor/evenement/evenement/src/EventEmitterTrait.php +++ /dev/null @@ -1,154 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Evenement; - -use InvalidArgumentException; - -use function count; -use function array_keys; -use function array_merge; -use function array_search; -use function array_unique; -use function array_values; - -trait EventEmitterTrait -{ - protected $listeners = []; - protected $onceListeners = []; - - public function on($event, callable $listener) - { - if ($event === null) { - throw new InvalidArgumentException('event name must not be null'); - } - - if (!isset($this->listeners[$event])) { - $this->listeners[$event] = []; - } - - $this->listeners[$event][] = $listener; - - return $this; - } - - public function once($event, callable $listener) - { - if ($event === null) { - throw new InvalidArgumentException('event name must not be null'); - } - - if (!isset($this->onceListeners[$event])) { - $this->onceListeners[$event] = []; - } - - $this->onceListeners[$event][] = $listener; - - return $this; - } - - public function removeListener($event, callable $listener) - { - if ($event === null) { - throw new InvalidArgumentException('event name must not be null'); - } - - if (isset($this->listeners[$event])) { - $index = array_search($listener, $this->listeners[$event], true); - if (false !== $index) { - unset($this->listeners[$event][$index]); - if (count($this->listeners[$event]) === 0) { - unset($this->listeners[$event]); - } - } - } - - if (isset($this->onceListeners[$event])) { - $index = array_search($listener, $this->onceListeners[$event], true); - if (false !== $index) { - unset($this->onceListeners[$event][$index]); - if (count($this->onceListeners[$event]) === 0) { - unset($this->onceListeners[$event]); - } - } - } - } - - public function removeAllListeners($event = null) - { - if ($event !== null) { - unset($this->listeners[$event]); - } else { - $this->listeners = []; - } - - if ($event !== null) { - unset($this->onceListeners[$event]); - } else { - $this->onceListeners = []; - } - } - - public function listeners($event = null): array - { - if ($event === null) { - $events = []; - $eventNames = array_unique( - array_merge( - array_keys($this->listeners), - array_keys($this->onceListeners) - ) - ); - foreach ($eventNames as $eventName) { - $events[$eventName] = array_merge( - isset($this->listeners[$eventName]) ? $this->listeners[$eventName] : [], - isset($this->onceListeners[$eventName]) ? $this->onceListeners[$eventName] : [] - ); - } - return $events; - } - - return array_merge( - isset($this->listeners[$event]) ? $this->listeners[$event] : [], - isset($this->onceListeners[$event]) ? $this->onceListeners[$event] : [] - ); - } - - public function emit($event, array $arguments = []) - { - if ($event === null) { - throw new InvalidArgumentException('event name must not be null'); - } - - $listeners = []; - if (isset($this->listeners[$event])) { - $listeners = array_values($this->listeners[$event]); - } - - $onceListeners = []; - if (isset($this->onceListeners[$event])) { - $onceListeners = array_values($this->onceListeners[$event]); - } - - if(empty($listeners) === false) { - foreach ($listeners as $listener) { - $listener(...$arguments); - } - } - - if(empty($onceListeners) === false) { - unset($this->onceListeners[$event]); - foreach ($onceListeners as $listener) { - $listener(...$arguments); - } - } - } -} diff --git a/vendor/fig/http-message-util/.gitignore b/vendor/fig/http-message-util/.gitignore deleted file mode 100644 index 48b8bf9..0000000 --- a/vendor/fig/http-message-util/.gitignore +++ /dev/null @@ -1 +0,0 @@ -vendor/ diff --git a/vendor/fig/http-message-util/CHANGELOG.md b/vendor/fig/http-message-util/CHANGELOG.md deleted file mode 100644 index 1a02e54..0000000 --- a/vendor/fig/http-message-util/CHANGELOG.md +++ /dev/null @@ -1,147 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file, in reverse chronological order by release. - -## 1.1.5 - 2020-11-24 - -### Added - -- [#19](https://github.com/php-fig/http-message-util/pull/19) adds support for PHP 8. - -### Changed - -- Nothing. - -### Deprecated - -- Nothing. - -### Removed - -- Nothing. - -### Fixed - -- Nothing. - -## 1.1.4 - 2020-02-05 - -### Added - -- Nothing. - -### Changed - -- Nothing. - -### Deprecated - -- Nothing. - -### Removed - -- [#15](https://github.com/php-fig/http-message-util/pull/15) removes the dependency on psr/http-message, as it is not technically necessary for usage of this package. - -### Fixed - -- Nothing. - -## 1.1.3 - 2018-11-19 - -### Added - -- [#10](https://github.com/php-fig/http-message-util/pull/10) adds the constants `StatusCodeInterface::STATUS_EARLY_HINTS` (103) and - `StatusCodeInterface::STATUS_TOO_EARLY` (425). - -### Changed - -- Nothing. - -### Deprecated - -- Nothing. - -### Removed - -- Nothing. - -### Fixed - -- Nothing. - -## 1.1.2 - 2017-02-09 - -### Added - -- [#4](https://github.com/php-fig/http-message-util/pull/4) adds the constant - `StatusCodeInterface::STATUS_MISDIRECTED_REQUEST` (421). - -### Deprecated - -- Nothing. - -### Removed - -- Nothing. - -### Fixed - -- Nothing. - -## 1.1.1 - 2017-02-06 - -### Added - -- [#3](https://github.com/php-fig/http-message-util/pull/3) adds the constant - `StatusCodeInterface::STATUS_IM_A_TEAPOT` (418). - -### Deprecated - -- Nothing. - -### Removed - -- Nothing. - -### Fixed - -- Nothing. - -## 1.1.0 - 2016-09-19 - -### Added - -- [#1](https://github.com/php-fig/http-message-util/pull/1) adds - `Fig\Http\Message\StatusCodeInterface`, with constants named after common - status reason phrases, with values indicating the status codes themselves. - -### Deprecated - -- Nothing. - -### Removed - -- Nothing. - -### Fixed - -- Nothing. - -## 1.0.0 - 2017-08-05 - -### Added - -- Adds `Fig\Http\Message\RequestMethodInterface`, with constants covering the - most common HTTP request methods as specified by the IETF. - -### Deprecated - -- Nothing. - -### Removed - -- Nothing. - -### Fixed - -- Nothing. diff --git a/vendor/fig/http-message-util/LICENSE b/vendor/fig/http-message-util/LICENSE deleted file mode 100644 index e2fa347..0000000 --- a/vendor/fig/http-message-util/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2016 PHP Framework Interoperability Group - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/vendor/fig/http-message-util/README.md b/vendor/fig/http-message-util/README.md deleted file mode 100644 index ea5b5aa..0000000 --- a/vendor/fig/http-message-util/README.md +++ /dev/null @@ -1,17 +0,0 @@ -# PSR Http Message Util - -This repository holds utility classes and constants to facilitate common -operations of [PSR-7](https://www.php-fig.org/psr/psr-7/); the primary purpose is -to provide constants for referring to request methods, response status codes and -messages, and potentially common headers. - -Implementation of PSR-7 interfaces is **not** within the scope of this package. - -## Installation - -Install by adding the package as a [Composer](https://getcomposer.org) -requirement: - -```bash -$ composer require fig/http-message-util -``` diff --git a/vendor/fig/http-message-util/composer.json b/vendor/fig/http-message-util/composer.json deleted file mode 100644 index 8645893..0000000 --- a/vendor/fig/http-message-util/composer.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "name": "fig/http-message-util", - "description": "Utility classes and constants for use with PSR-7 (psr/http-message)", - "keywords": ["psr", "psr-7", "http", "http-message", "request", "response"], - "license": "MIT", - "authors": [ - { - "name": "PHP-FIG", - "homepage": "https://www.php-fig.org/" - } - ], - "require": { - "php": "^5.3 || ^7.0 || ^8.0" - }, - "suggest": { - "psr/http-message": "The package containing the PSR-7 interfaces" - }, - "autoload": { - "psr-4": { - "Fig\\Http\\Message\\": "src/" - } - }, - "extra": { - "branch-alias": { - "dev-master": "1.1.x-dev" - } - } -} diff --git a/vendor/fig/http-message-util/src/RequestMethodInterface.php b/vendor/fig/http-message-util/src/RequestMethodInterface.php deleted file mode 100644 index 97d9a93..0000000 --- a/vendor/fig/http-message-util/src/RequestMethodInterface.php +++ /dev/null @@ -1,34 +0,0 @@ - - * class RequestFactory implements RequestMethodInterface - * { - * public static function factory( - * $uri = '/', - * $method = self::METHOD_GET, - * $data = [] - * ) { - * } - * } - * - */ -interface RequestMethodInterface -{ - const METHOD_HEAD = 'HEAD'; - const METHOD_GET = 'GET'; - const METHOD_POST = 'POST'; - const METHOD_PUT = 'PUT'; - const METHOD_PATCH = 'PATCH'; - const METHOD_DELETE = 'DELETE'; - const METHOD_PURGE = 'PURGE'; - const METHOD_OPTIONS = 'OPTIONS'; - const METHOD_TRACE = 'TRACE'; - const METHOD_CONNECT = 'CONNECT'; -} diff --git a/vendor/fig/http-message-util/src/StatusCodeInterface.php b/vendor/fig/http-message-util/src/StatusCodeInterface.php deleted file mode 100644 index 99b7e78..0000000 --- a/vendor/fig/http-message-util/src/StatusCodeInterface.php +++ /dev/null @@ -1,107 +0,0 @@ - - * class ResponseFactory implements StatusCodeInterface - * { - * public function createResponse($code = self::STATUS_OK) - * { - * } - * } - * - */ -interface StatusCodeInterface -{ - // Informational 1xx - const STATUS_CONTINUE = 100; - const STATUS_SWITCHING_PROTOCOLS = 101; - const STATUS_PROCESSING = 102; - const STATUS_EARLY_HINTS = 103; - // Successful 2xx - const STATUS_OK = 200; - const STATUS_CREATED = 201; - const STATUS_ACCEPTED = 202; - const STATUS_NON_AUTHORITATIVE_INFORMATION = 203; - const STATUS_NO_CONTENT = 204; - const STATUS_RESET_CONTENT = 205; - const STATUS_PARTIAL_CONTENT = 206; - const STATUS_MULTI_STATUS = 207; - const STATUS_ALREADY_REPORTED = 208; - const STATUS_IM_USED = 226; - // Redirection 3xx - const STATUS_MULTIPLE_CHOICES = 300; - const STATUS_MOVED_PERMANENTLY = 301; - const STATUS_FOUND = 302; - const STATUS_SEE_OTHER = 303; - const STATUS_NOT_MODIFIED = 304; - const STATUS_USE_PROXY = 305; - const STATUS_RESERVED = 306; - const STATUS_TEMPORARY_REDIRECT = 307; - const STATUS_PERMANENT_REDIRECT = 308; - // Client Errors 4xx - const STATUS_BAD_REQUEST = 400; - const STATUS_UNAUTHORIZED = 401; - const STATUS_PAYMENT_REQUIRED = 402; - const STATUS_FORBIDDEN = 403; - const STATUS_NOT_FOUND = 404; - const STATUS_METHOD_NOT_ALLOWED = 405; - const STATUS_NOT_ACCEPTABLE = 406; - const STATUS_PROXY_AUTHENTICATION_REQUIRED = 407; - const STATUS_REQUEST_TIMEOUT = 408; - const STATUS_CONFLICT = 409; - const STATUS_GONE = 410; - const STATUS_LENGTH_REQUIRED = 411; - const STATUS_PRECONDITION_FAILED = 412; - const STATUS_PAYLOAD_TOO_LARGE = 413; - const STATUS_URI_TOO_LONG = 414; - const STATUS_UNSUPPORTED_MEDIA_TYPE = 415; - const STATUS_RANGE_NOT_SATISFIABLE = 416; - const STATUS_EXPECTATION_FAILED = 417; - const STATUS_IM_A_TEAPOT = 418; - const STATUS_MISDIRECTED_REQUEST = 421; - const STATUS_UNPROCESSABLE_ENTITY = 422; - const STATUS_LOCKED = 423; - const STATUS_FAILED_DEPENDENCY = 424; - const STATUS_TOO_EARLY = 425; - const STATUS_UPGRADE_REQUIRED = 426; - const STATUS_PRECONDITION_REQUIRED = 428; - const STATUS_TOO_MANY_REQUESTS = 429; - const STATUS_REQUEST_HEADER_FIELDS_TOO_LARGE = 431; - const STATUS_UNAVAILABLE_FOR_LEGAL_REASONS = 451; - // Server Errors 5xx - const STATUS_INTERNAL_SERVER_ERROR = 500; - const STATUS_NOT_IMPLEMENTED = 501; - const STATUS_BAD_GATEWAY = 502; - const STATUS_SERVICE_UNAVAILABLE = 503; - const STATUS_GATEWAY_TIMEOUT = 504; - const STATUS_VERSION_NOT_SUPPORTED = 505; - const STATUS_VARIANT_ALSO_NEGOTIATES = 506; - const STATUS_INSUFFICIENT_STORAGE = 507; - const STATUS_LOOP_DETECTED = 508; - const STATUS_NOT_EXTENDED = 510; - const STATUS_NETWORK_AUTHENTICATION_REQUIRED = 511; -} diff --git a/vendor/guzzlehttp/guzzle/CHANGELOG.md b/vendor/guzzlehttp/guzzle/CHANGELOG.md deleted file mode 100644 index e0b6216..0000000 --- a/vendor/guzzlehttp/guzzle/CHANGELOG.md +++ /dev/null @@ -1,1664 +0,0 @@ -# Change Log - -Please refer to [UPGRADING](UPGRADING.md) guide for upgrading to a major version. - - -## 7.9.2 - 2024-07-24 - -### Fixed - -- Adjusted handler selection to use cURL if its version is 7.21.2 or higher, rather than 7.34.0 - - -## 7.9.1 - 2024-07-19 - -### Fixed - -- Fix TLS 1.3 check for HTTP/2 requests - - -## 7.9.0 - 2024-07-18 - -### Changed - -- Improve protocol version checks to provide feedback around unsupported protocols -- Only select the cURL handler by default if 7.34.0 or higher is linked -- Improved `CurlMultiHandler` to avoid busy wait if possible -- Dropped support for EOL `guzzlehttp/psr7` v1 -- Improved URI user info redaction in errors - -## 7.8.2 - 2024-07-18 - -### Added - -- Support for PHP 8.4 - - -## 7.8.1 - 2023-12-03 - -### Changed - -- Updated links in docs to their canonical versions -- Replaced `call_user_func*` with native calls - - -## 7.8.0 - 2023-08-27 - -### Added - -- Support for PHP 8.3 -- Added automatic closing of handles on `CurlFactory` object destruction - - -## 7.7.1 - 2023-08-27 - -### Changed - -- Remove the need for `AllowDynamicProperties` in `CurlMultiHandler` - - -## 7.7.0 - 2023-05-21 - -### Added - -- Support `guzzlehttp/promises` v2 - - -## 7.6.1 - 2023-05-15 - -### Fixed - -- Fix `SetCookie::fromString` MaxAge deprecation warning and skip invalid MaxAge values - - -## 7.6.0 - 2023-05-14 - -### Added - -- Support for setting the minimum TLS version in a unified way -- Apply on request the version set in options parameters - - -## 7.5.2 - 2023-05-14 - -### Fixed - -- Fixed set cookie constructor validation -- Fixed handling of files with `'0'` body - -### Changed - -- Corrected docs and default connect timeout value to 300 seconds - - -## 7.5.1 - 2023-04-17 - -### Fixed - -- Fixed `NO_PROXY` settings so that setting the `proxy` option to `no` overrides the env variable - -### Changed - -- Adjusted `guzzlehttp/psr7` version constraint to `^1.9.1 || ^2.4.5` - - -## 7.5.0 - 2022-08-28 - -### Added - -- Support PHP 8.2 -- Add request to delay closure params - - -## 7.4.5 - 2022-06-20 - -### Fixed - -* Fix change in port should be considered a change in origin -* Fix `CURLOPT_HTTPAUTH` option not cleared on change of origin - - -## 7.4.4 - 2022-06-09 - -### Fixed - -* Fix failure to strip Authorization header on HTTP downgrade -* Fix failure to strip the Cookie header on change in host or HTTP downgrade - - -## 7.4.3 - 2022-05-25 - -### Fixed - -* Fix cross-domain cookie leakage - - -## 7.4.2 - 2022-03-20 - -### Fixed - -- Remove curl auth on cross-domain redirects to align with the Authorization HTTP header -- Reject non-HTTP schemes in StreamHandler -- Set a default ssl.peer_name context in StreamHandler to allow `force_ip_resolve` - - -## 7.4.1 - 2021-12-06 - -### Changed - -- Replaced implicit URI to string coercion [#2946](https://github.com/guzzle/guzzle/pull/2946) -- Allow `symfony/deprecation-contracts` version 3 [#2961](https://github.com/guzzle/guzzle/pull/2961) - -### Fixed - -- Only close curl handle if it's done [#2950](https://github.com/guzzle/guzzle/pull/2950) - - -## 7.4.0 - 2021-10-18 - -### Added - -- Support PHP 8.1 [#2929](https://github.com/guzzle/guzzle/pull/2929), [#2939](https://github.com/guzzle/guzzle/pull/2939) -- Support `psr/log` version 2 and 3 [#2943](https://github.com/guzzle/guzzle/pull/2943) - -### Fixed - -- Make sure we always call `restore_error_handler()` [#2915](https://github.com/guzzle/guzzle/pull/2915) -- Fix progress parameter type compatibility between the cURL and stream handlers [#2936](https://github.com/guzzle/guzzle/pull/2936) -- Throw `InvalidArgumentException` when an incorrect `headers` array is provided [#2916](https://github.com/guzzle/guzzle/pull/2916), [#2942](https://github.com/guzzle/guzzle/pull/2942) - -### Changed - -- Be more strict with types [#2914](https://github.com/guzzle/guzzle/pull/2914), [#2917](https://github.com/guzzle/guzzle/pull/2917), [#2919](https://github.com/guzzle/guzzle/pull/2919), [#2945](https://github.com/guzzle/guzzle/pull/2945) - - -## 7.3.0 - 2021-03-23 - -### Added - -- Support for DER and P12 certificates [#2413](https://github.com/guzzle/guzzle/pull/2413) -- Support the cURL (http://) scheme for StreamHandler proxies [#2850](https://github.com/guzzle/guzzle/pull/2850) -- Support for `guzzlehttp/psr7:^2.0` [#2878](https://github.com/guzzle/guzzle/pull/2878) - -### Fixed - -- Handle exceptions on invalid header consistently between PHP versions and handlers [#2872](https://github.com/guzzle/guzzle/pull/2872) - - -## 7.2.0 - 2020-10-10 - -### Added - -- Support for PHP 8 [#2712](https://github.com/guzzle/guzzle/pull/2712), [#2715](https://github.com/guzzle/guzzle/pull/2715), [#2789](https://github.com/guzzle/guzzle/pull/2789) -- Support passing a body summarizer to the http errors middleware [#2795](https://github.com/guzzle/guzzle/pull/2795) - -### Fixed - -- Handle exceptions during response creation [#2591](https://github.com/guzzle/guzzle/pull/2591) -- Fix CURLOPT_ENCODING not to be overwritten [#2595](https://github.com/guzzle/guzzle/pull/2595) -- Make sure the Request always has a body object [#2804](https://github.com/guzzle/guzzle/pull/2804) - -### Changed - -- The `TooManyRedirectsException` has a response [#2660](https://github.com/guzzle/guzzle/pull/2660) -- Avoid "functions" from dependencies [#2712](https://github.com/guzzle/guzzle/pull/2712) - -### Deprecated - -- Using environment variable GUZZLE_CURL_SELECT_TIMEOUT [#2786](https://github.com/guzzle/guzzle/pull/2786) - - -## 7.1.1 - 2020-09-30 - -### Fixed - -- Incorrect EOF detection for response body streams on Windows. - -### Changed - -- We dont connect curl `sink` on HEAD requests. -- Removed some PHP 5 workarounds - - -## 7.1.0 - 2020-09-22 - -### Added - -- `GuzzleHttp\MessageFormatterInterface` - -### Fixed - -- Fixed issue that caused cookies with no value not to be stored. -- On redirects, we allow all safe methods like GET, HEAD and OPTIONS. -- Fixed logging on empty responses. -- Make sure MessageFormatter::format returns string - -### Deprecated - -- All functions in `GuzzleHttp` has been deprecated. Use static methods on `Utils` instead. -- `ClientInterface::getConfig()` -- `Client::getConfig()` -- `Client::__call()` -- `Utils::defaultCaBundle()` -- `CurlFactory::LOW_CURL_VERSION_NUMBER` - - -## 7.0.1 - 2020-06-27 - -* Fix multiply defined functions fatal error [#2699](https://github.com/guzzle/guzzle/pull/2699) - - -## 7.0.0 - 2020-06-27 - -No changes since 7.0.0-rc1. - - -## 7.0.0-rc1 - 2020-06-15 - -### Changed - -* Use error level for logging errors in Middleware [#2629](https://github.com/guzzle/guzzle/pull/2629) -* Disabled IDN support by default and require ext-intl to use it [#2675](https://github.com/guzzle/guzzle/pull/2675) - - -## 7.0.0-beta2 - 2020-05-25 - -### Added - -* Using `Utils` class instead of functions in the `GuzzleHttp` namespace. [#2546](https://github.com/guzzle/guzzle/pull/2546) -* `ClientInterface::MAJOR_VERSION` [#2583](https://github.com/guzzle/guzzle/pull/2583) - -### Changed - -* Avoid the `getenv` function when unsafe [#2531](https://github.com/guzzle/guzzle/pull/2531) -* Added real client methods [#2529](https://github.com/guzzle/guzzle/pull/2529) -* Avoid functions due to global install conflicts [#2546](https://github.com/guzzle/guzzle/pull/2546) -* Use Symfony intl-idn polyfill [#2550](https://github.com/guzzle/guzzle/pull/2550) -* Adding methods for HTTP verbs like `Client::get()`, `Client::head()`, `Client::patch()` etc [#2529](https://github.com/guzzle/guzzle/pull/2529) -* `ConnectException` extends `TransferException` [#2541](https://github.com/guzzle/guzzle/pull/2541) -* Updated the default User Agent to "GuzzleHttp/7" [#2654](https://github.com/guzzle/guzzle/pull/2654) - -### Fixed - -* Various intl icu issues [#2626](https://github.com/guzzle/guzzle/pull/2626) - -### Removed - -* Pool option `pool_size` [#2528](https://github.com/guzzle/guzzle/pull/2528) - - -## 7.0.0-beta1 - 2019-12-30 - -The diff might look very big but 95% of Guzzle users will be able to upgrade without modification. -Please see [the upgrade document](UPGRADING.md) that describes all BC breaking changes. - -### Added - -* Implement PSR-18 and dropped PHP 5 support [#2421](https://github.com/guzzle/guzzle/pull/2421) [#2474](https://github.com/guzzle/guzzle/pull/2474) -* PHP 7 types [#2442](https://github.com/guzzle/guzzle/pull/2442) [#2449](https://github.com/guzzle/guzzle/pull/2449) [#2466](https://github.com/guzzle/guzzle/pull/2466) [#2497](https://github.com/guzzle/guzzle/pull/2497) [#2499](https://github.com/guzzle/guzzle/pull/2499) -* IDN support for redirects [2424](https://github.com/guzzle/guzzle/pull/2424) - -### Changed - -* Dont allow passing null as third argument to `BadResponseException::__construct()` [#2427](https://github.com/guzzle/guzzle/pull/2427) -* Use SAPI constant instead of method call [#2450](https://github.com/guzzle/guzzle/pull/2450) -* Use native function invocation [#2444](https://github.com/guzzle/guzzle/pull/2444) -* Better defaults for PHP installations with old ICU lib [2454](https://github.com/guzzle/guzzle/pull/2454) -* Added visibility to all constants [#2462](https://github.com/guzzle/guzzle/pull/2462) -* Dont allow passing `null` as URI to `Client::request()` and `Client::requestAsync()` [#2461](https://github.com/guzzle/guzzle/pull/2461) -* Widen the exception argument to throwable [#2495](https://github.com/guzzle/guzzle/pull/2495) - -### Fixed - -* Logging when Promise rejected with a string [#2311](https://github.com/guzzle/guzzle/pull/2311) - -### Removed - -* Class `SeekException` [#2162](https://github.com/guzzle/guzzle/pull/2162) -* `RequestException::getResponseBodySummary()` [#2425](https://github.com/guzzle/guzzle/pull/2425) -* `CookieJar::getCookieValue()` [#2433](https://github.com/guzzle/guzzle/pull/2433) -* `uri_template()` and `UriTemplate` [#2440](https://github.com/guzzle/guzzle/pull/2440) -* Request options `save_to` and `exceptions` [#2464](https://github.com/guzzle/guzzle/pull/2464) - - -## 6.5.2 - 2019-12-23 - -* idn_to_ascii() fix for old PHP versions [#2489](https://github.com/guzzle/guzzle/pull/2489) - - -## 6.5.1 - 2019-12-21 - -* Better defaults for PHP installations with old ICU lib [#2454](https://github.com/guzzle/guzzle/pull/2454) -* IDN support for redirects [#2424](https://github.com/guzzle/guzzle/pull/2424) - - -## 6.5.0 - 2019-12-07 - -* Improvement: Added support for reset internal queue in MockHandler. [#2143](https://github.com/guzzle/guzzle/pull/2143) -* Improvement: Added support to pass arbitrary options to `curl_multi_init`. [#2287](https://github.com/guzzle/guzzle/pull/2287) -* Fix: Gracefully handle passing `null` to the `header` option. [#2132](https://github.com/guzzle/guzzle/pull/2132) -* Fix: `RetryMiddleware` did not do exponential delay between retires due unit mismatch. [#2132](https://github.com/guzzle/guzzle/pull/2132) -* Fix: Prevent undefined offset when using array for ssl_key options. [#2348](https://github.com/guzzle/guzzle/pull/2348) -* Deprecated `ClientInterface::VERSION` - - -## 6.4.1 - 2019-10-23 - -* No `guzzle.phar` was created in 6.4.0 due expired API token. This release will fix that -* Added `parent::__construct()` to `FileCookieJar` and `SessionCookieJar` - - -## 6.4.0 - 2019-10-23 - -* Improvement: Improved error messages when using curl < 7.21.2 [#2108](https://github.com/guzzle/guzzle/pull/2108) -* Fix: Test if response is readable before returning a summary in `RequestException::getResponseBodySummary()` [#2081](https://github.com/guzzle/guzzle/pull/2081) -* Fix: Add support for GUZZLE_CURL_SELECT_TIMEOUT environment variable [#2161](https://github.com/guzzle/guzzle/pull/2161) -* Improvement: Added `GuzzleHttp\Exception\InvalidArgumentException` [#2163](https://github.com/guzzle/guzzle/pull/2163) -* Improvement: Added `GuzzleHttp\_current_time()` to use `hrtime()` if that function exists. [#2242](https://github.com/guzzle/guzzle/pull/2242) -* Improvement: Added curl's `appconnect_time` in `TransferStats` [#2284](https://github.com/guzzle/guzzle/pull/2284) -* Improvement: Make GuzzleException extend Throwable wherever it's available [#2273](https://github.com/guzzle/guzzle/pull/2273) -* Fix: Prevent concurrent writes to file when saving `CookieJar` [#2335](https://github.com/guzzle/guzzle/pull/2335) -* Improvement: Update `MockHandler` so we can test transfer time [#2362](https://github.com/guzzle/guzzle/pull/2362) - - -## 6.3.3 - 2018-04-22 - -* Fix: Default headers when decode_content is specified - - -## 6.3.2 - 2018-03-26 - -* Fix: Release process - - -## 6.3.1 - 2018-03-26 - -* Bug fix: Parsing 0 epoch expiry times in cookies [#2014](https://github.com/guzzle/guzzle/pull/2014) -* Improvement: Better ConnectException detection [#2012](https://github.com/guzzle/guzzle/pull/2012) -* Bug fix: Malformed domain that contains a "/" [#1999](https://github.com/guzzle/guzzle/pull/1999) -* Bug fix: Undefined offset when a cookie has no first key-value pair [#1998](https://github.com/guzzle/guzzle/pull/1998) -* Improvement: Support PHPUnit 6 [#1953](https://github.com/guzzle/guzzle/pull/1953) -* Bug fix: Support empty headers [#1915](https://github.com/guzzle/guzzle/pull/1915) -* Bug fix: Ignore case during header modifications [#1916](https://github.com/guzzle/guzzle/pull/1916) - -+ Minor code cleanups, documentation fixes and clarifications. - - -## 6.3.0 - 2017-06-22 - -* Feature: force IP resolution (ipv4 or ipv6) [#1608](https://github.com/guzzle/guzzle/pull/1608), [#1659](https://github.com/guzzle/guzzle/pull/1659) -* Improvement: Don't include summary in exception message when body is empty [#1621](https://github.com/guzzle/guzzle/pull/1621) -* Improvement: Handle `on_headers` option in MockHandler [#1580](https://github.com/guzzle/guzzle/pull/1580) -* Improvement: Added SUSE Linux CA path [#1609](https://github.com/guzzle/guzzle/issues/1609) -* Improvement: Use class reference for getting the name of the class instead of using hardcoded strings [#1641](https://github.com/guzzle/guzzle/pull/1641) -* Feature: Added `read_timeout` option [#1611](https://github.com/guzzle/guzzle/pull/1611) -* Bug fix: PHP 7.x fixes [#1685](https://github.com/guzzle/guzzle/pull/1685), [#1686](https://github.com/guzzle/guzzle/pull/1686), [#1811](https://github.com/guzzle/guzzle/pull/1811) -* Deprecation: BadResponseException instantiation without a response [#1642](https://github.com/guzzle/guzzle/pull/1642) -* Feature: Added NTLM auth [#1569](https://github.com/guzzle/guzzle/pull/1569) -* Feature: Track redirect HTTP status codes [#1711](https://github.com/guzzle/guzzle/pull/1711) -* Improvement: Check handler type during construction [#1745](https://github.com/guzzle/guzzle/pull/1745) -* Improvement: Always include the Content-Length if there's a body [#1721](https://github.com/guzzle/guzzle/pull/1721) -* Feature: Added convenience method to access a cookie by name [#1318](https://github.com/guzzle/guzzle/pull/1318) -* Bug fix: Fill `CURLOPT_CAPATH` and `CURLOPT_CAINFO` properly [#1684](https://github.com/guzzle/guzzle/pull/1684) -* Improvement: Use `\GuzzleHttp\Promise\rejection_for` function instead of object init [#1827](https://github.com/guzzle/guzzle/pull/1827) - -+ Minor code cleanups, documentation fixes and clarifications. - - -## 6.2.3 - 2017-02-28 - -* Fix deprecations with guzzle/psr7 version 1.4 - - -## 6.2.2 - 2016-10-08 - -* Allow to pass nullable Response to delay callable -* Only add scheme when host is present -* Fix drain case where content-length is the literal string zero -* Obfuscate in-URL credentials in exceptions - - -## 6.2.1 - 2016-07-18 - -* Address HTTP_PROXY security vulnerability, CVE-2016-5385: - https://httpoxy.org/ -* Fixing timeout bug with StreamHandler: - https://github.com/guzzle/guzzle/pull/1488 -* Only read up to `Content-Length` in PHP StreamHandler to avoid timeouts when - a server does not honor `Connection: close`. -* Ignore URI fragment when sending requests. - - -## 6.2.0 - 2016-03-21 - -* Feature: added `GuzzleHttp\json_encode` and `GuzzleHttp\json_decode`. - https://github.com/guzzle/guzzle/pull/1389 -* Bug fix: Fix sleep calculation when waiting for delayed requests. - https://github.com/guzzle/guzzle/pull/1324 -* Feature: More flexible history containers. - https://github.com/guzzle/guzzle/pull/1373 -* Bug fix: defer sink stream opening in StreamHandler. - https://github.com/guzzle/guzzle/pull/1377 -* Bug fix: do not attempt to escape cookie values. - https://github.com/guzzle/guzzle/pull/1406 -* Feature: report original content encoding and length on decoded responses. - https://github.com/guzzle/guzzle/pull/1409 -* Bug fix: rewind seekable request bodies before dispatching to cURL. - https://github.com/guzzle/guzzle/pull/1422 -* Bug fix: provide an empty string to `http_build_query` for HHVM workaround. - https://github.com/guzzle/guzzle/pull/1367 - - -## 6.1.1 - 2015-11-22 - -* Bug fix: Proxy::wrapSync() now correctly proxies to the appropriate handler - https://github.com/guzzle/guzzle/commit/911bcbc8b434adce64e223a6d1d14e9a8f63e4e4 -* Feature: HandlerStack is now more generic. - https://github.com/guzzle/guzzle/commit/f2102941331cda544745eedd97fc8fd46e1ee33e -* Bug fix: setting verify to false in the StreamHandler now disables peer - verification. https://github.com/guzzle/guzzle/issues/1256 -* Feature: Middleware now uses an exception factory, including more error - context. https://github.com/guzzle/guzzle/pull/1282 -* Feature: better support for disabled functions. - https://github.com/guzzle/guzzle/pull/1287 -* Bug fix: fixed regression where MockHandler was not using `sink`. - https://github.com/guzzle/guzzle/pull/1292 - - -## 6.1.0 - 2015-09-08 - -* Feature: Added the `on_stats` request option to provide access to transfer - statistics for requests. https://github.com/guzzle/guzzle/pull/1202 -* Feature: Added the ability to persist session cookies in CookieJars. - https://github.com/guzzle/guzzle/pull/1195 -* Feature: Some compatibility updates for Google APP Engine - https://github.com/guzzle/guzzle/pull/1216 -* Feature: Added support for NO_PROXY to prevent the use of a proxy based on - a simple set of rules. https://github.com/guzzle/guzzle/pull/1197 -* Feature: Cookies can now contain square brackets. - https://github.com/guzzle/guzzle/pull/1237 -* Bug fix: Now correctly parsing `=` inside of quotes in Cookies. - https://github.com/guzzle/guzzle/pull/1232 -* Bug fix: Cusotm cURL options now correctly override curl options of the - same name. https://github.com/guzzle/guzzle/pull/1221 -* Bug fix: Content-Type header is now added when using an explicitly provided - multipart body. https://github.com/guzzle/guzzle/pull/1218 -* Bug fix: Now ignoring Set-Cookie headers that have no name. -* Bug fix: Reason phrase is no longer cast to an int in some cases in the - cURL handler. https://github.com/guzzle/guzzle/pull/1187 -* Bug fix: Remove the Authorization header when redirecting if the Host - header changes. https://github.com/guzzle/guzzle/pull/1207 -* Bug fix: Cookie path matching fixes - https://github.com/guzzle/guzzle/issues/1129 -* Bug fix: Fixing the cURL `body_as_string` setting - https://github.com/guzzle/guzzle/pull/1201 -* Bug fix: quotes are no longer stripped when parsing cookies. - https://github.com/guzzle/guzzle/issues/1172 -* Bug fix: `form_params` and `query` now always uses the `&` separator. - https://github.com/guzzle/guzzle/pull/1163 -* Bug fix: Adding a Content-Length to PHP stream wrapper requests if not set. - https://github.com/guzzle/guzzle/pull/1189 - - -## 6.0.2 - 2015-07-04 - -* Fixed a memory leak in the curl handlers in which references to callbacks - were not being removed by `curl_reset`. -* Cookies are now extracted properly before redirects. -* Cookies now allow more character ranges. -* Decoded Content-Encoding responses are now modified to correctly reflect - their state if the encoding was automatically removed by a handler. This - means that the `Content-Encoding` header may be removed an the - `Content-Length` modified to reflect the message size after removing the - encoding. -* Added a more explicit error message when trying to use `form_params` and - `multipart` in the same request. -* Several fixes for HHVM support. -* Functions are now conditionally required using an additional level of - indirection to help with global Composer installations. - - -## 6.0.1 - 2015-05-27 - -* Fixed a bug with serializing the `query` request option where the `&` - separator was missing. -* Added a better error message for when `body` is provided as an array. Please - use `form_params` or `multipart` instead. -* Various doc fixes. - - -## 6.0.0 - 2015-05-26 - -* See the UPGRADING.md document for more information. -* Added `multipart` and `form_params` request options. -* Added `synchronous` request option. -* Added the `on_headers` request option. -* Fixed `expect` handling. -* No longer adding default middlewares in the client ctor. These need to be - present on the provided handler in order to work. -* Requests are no longer initiated when sending async requests with the - CurlMultiHandler. This prevents unexpected recursion from requests completing - while ticking the cURL loop. -* Removed the semantics of setting `default` to `true`. This is no longer - required now that the cURL loop is not ticked for async requests. -* Added request and response logging middleware. -* No longer allowing self signed certificates when using the StreamHandler. -* Ensuring that `sink` is valid if saving to a file. -* Request exceptions now include a "handler context" which provides handler - specific contextual information. -* Added `GuzzleHttp\RequestOptions` to allow request options to be applied - using constants. -* `$maxHandles` has been removed from CurlMultiHandler. -* `MultipartPostBody` is now part of the `guzzlehttp/psr7` package. - - -## 5.3.0 - 2015-05-19 - -* Mock now supports `save_to` -* Marked `AbstractRequestEvent::getTransaction()` as public. -* Fixed a bug in which multiple headers using different casing would overwrite - previous headers in the associative array. -* Added `Utils::getDefaultHandler()` -* Marked `GuzzleHttp\Client::getDefaultUserAgent` as deprecated. -* URL scheme is now always lowercased. - - -## 6.0.0-beta.1 - -* Requires PHP >= 5.5 -* Updated to use PSR-7 - * Requires immutable messages, which basically means an event based system - owned by a request instance is no longer possible. - * Utilizing the [Guzzle PSR-7 package](https://github.com/guzzle/psr7). - * Removed the dependency on `guzzlehttp/streams`. These stream abstractions - are available in the `guzzlehttp/psr7` package under the `GuzzleHttp\Psr7` - namespace. -* Added middleware and handler system - * Replaced the Guzzle event and subscriber system with a middleware system. - * No longer depends on RingPHP, but rather places the HTTP handlers directly - in Guzzle, operating on PSR-7 messages. - * Retry logic is now encapsulated in `GuzzleHttp\Middleware::retry`, which - means the `guzzlehttp/retry-subscriber` is now obsolete. - * Mocking responses is now handled using `GuzzleHttp\Handler\MockHandler`. -* Asynchronous responses - * No longer supports the `future` request option to send an async request. - Instead, use one of the `*Async` methods of a client (e.g., `requestAsync`, - `getAsync`, etc.). - * Utilizing `GuzzleHttp\Promise` instead of React's promise library to avoid - recursion required by chaining and forwarding react promises. See - https://github.com/guzzle/promises - * Added `requestAsync` and `sendAsync` to send request asynchronously. - * Added magic methods for `getAsync()`, `postAsync()`, etc. to send requests - asynchronously. -* Request options - * POST and form updates - * Added the `form_fields` and `form_files` request options. - * Removed the `GuzzleHttp\Post` namespace. - * The `body` request option no longer accepts an array for POST requests. - * The `exceptions` request option has been deprecated in favor of the - `http_errors` request options. - * The `save_to` request option has been deprecated in favor of `sink` request - option. -* Clients no longer accept an array of URI template string and variables for - URI variables. You will need to expand URI templates before passing them - into a client constructor or request method. -* Client methods `get()`, `post()`, `put()`, `patch()`, `options()`, etc. are - now magic methods that will send synchronous requests. -* Replaced `Utils.php` with plain functions in `functions.php`. -* Removed `GuzzleHttp\Collection`. -* Removed `GuzzleHttp\BatchResults`. Batched pool results are now returned as - an array. -* Removed `GuzzleHttp\Query`. Query string handling is now handled using an - associative array passed into the `query` request option. The query string - is serialized using PHP's `http_build_query`. If you need more control, you - can pass the query string in as a string. -* `GuzzleHttp\QueryParser` has been replaced with the - `GuzzleHttp\Psr7\parse_query`. - - -## 5.2.0 - 2015-01-27 - -* Added `AppliesHeadersInterface` to make applying headers to a request based - on the body more generic and not specific to `PostBodyInterface`. -* Reduced the number of stack frames needed to send requests. -* Nested futures are now resolved in the client rather than the RequestFsm -* Finishing state transitions is now handled in the RequestFsm rather than the - RingBridge. -* Added a guard in the Pool class to not use recursion for request retries. - - -## 5.1.0 - 2014-12-19 - -* Pool class no longer uses recursion when a request is intercepted. -* The size of a Pool can now be dynamically adjusted using a callback. - See https://github.com/guzzle/guzzle/pull/943. -* Setting a request option to `null` when creating a request with a client will - ensure that the option is not set. This allows you to overwrite default - request options on a per-request basis. - See https://github.com/guzzle/guzzle/pull/937. -* Added the ability to limit which protocols are allowed for redirects by - specifying a `protocols` array in the `allow_redirects` request option. -* Nested futures due to retries are now resolved when waiting for synchronous - responses. See https://github.com/guzzle/guzzle/pull/947. -* `"0"` is now an allowed URI path. See - https://github.com/guzzle/guzzle/pull/935. -* `Query` no longer typehints on the `$query` argument in the constructor, - allowing for strings and arrays. -* Exceptions thrown in the `end` event are now correctly wrapped with Guzzle - specific exceptions if necessary. - - -## 5.0.3 - 2014-11-03 - -This change updates query strings so that they are treated as un-encoded values -by default where the value represents an un-encoded value to send over the -wire. A Query object then encodes the value before sending over the wire. This -means that even value query string values (e.g., ":") are url encoded. This -makes the Query class match PHP's http_build_query function. However, if you -want to send requests over the wire using valid query string characters that do -not need to be encoded, then you can provide a string to Url::setQuery() and -pass true as the second argument to specify that the query string is a raw -string that should not be parsed or encoded (unless a call to getQuery() is -subsequently made, forcing the query-string to be converted into a Query -object). - - -## 5.0.2 - 2014-10-30 - -* Added a trailing `\r\n` to multipart/form-data payloads. See - https://github.com/guzzle/guzzle/pull/871 -* Added a `GuzzleHttp\Pool::send()` convenience method to match the docs. -* Status codes are now returned as integers. See - https://github.com/guzzle/guzzle/issues/881 -* No longer overwriting an existing `application/x-www-form-urlencoded` header - when sending POST requests, allowing for customized headers. See - https://github.com/guzzle/guzzle/issues/877 -* Improved path URL serialization. - - * No longer double percent-encoding characters in the path or query string if - they are already encoded. - * Now properly encoding the supplied path to a URL object, instead of only - encoding ' ' and '?'. - * Note: This has been changed in 5.0.3 to now encode query string values by - default unless the `rawString` argument is provided when setting the query - string on a URL: Now allowing many more characters to be present in the - query string without being percent encoded. See - https://datatracker.ietf.org/doc/html/rfc3986#appendix-A - - -## 5.0.1 - 2014-10-16 - -Bugfix release. - -* Fixed an issue where connection errors still returned response object in - error and end events event though the response is unusable. This has been - corrected so that a response is not returned in the `getResponse` method of - these events if the response did not complete. https://github.com/guzzle/guzzle/issues/867 -* Fixed an issue where transfer statistics were not being populated in the - RingBridge. https://github.com/guzzle/guzzle/issues/866 - - -## 5.0.0 - 2014-10-12 - -Adding support for non-blocking responses and some minor API cleanup. - -### New Features - -* Added support for non-blocking responses based on `guzzlehttp/guzzle-ring`. -* Added a public API for creating a default HTTP adapter. -* Updated the redirect plugin to be non-blocking so that redirects are sent - concurrently. Other plugins like this can now be updated to be non-blocking. -* Added a "progress" event so that you can get upload and download progress - events. -* Added `GuzzleHttp\Pool` which implements FutureInterface and transfers - requests concurrently using a capped pool size as efficiently as possible. -* Added `hasListeners()` to EmitterInterface. -* Removed `GuzzleHttp\ClientInterface::sendAll` and marked - `GuzzleHttp\Client::sendAll` as deprecated (it's still there, just not the - recommended way). - -### Breaking changes - -The breaking changes in this release are relatively minor. The biggest thing to -look out for is that request and response objects no longer implement fluent -interfaces. - -* Removed the fluent interfaces (i.e., `return $this`) from requests, - responses, `GuzzleHttp\Collection`, `GuzzleHttp\Url`, - `GuzzleHttp\Query`, `GuzzleHttp\Post\PostBody`, and - `GuzzleHttp\Cookie\SetCookie`. This blog post provides a good outline of - why I did this: https://ocramius.github.io/blog/fluent-interfaces-are-evil/. - This also makes the Guzzle message interfaces compatible with the current - PSR-7 message proposal. -* Removed "functions.php", so that Guzzle is truly PSR-4 compliant. Except - for the HTTP request functions from function.php, these functions are now - implemented in `GuzzleHttp\Utils` using camelCase. `GuzzleHttp\json_decode` - moved to `GuzzleHttp\Utils::jsonDecode`. `GuzzleHttp\get_path` moved to - `GuzzleHttp\Utils::getPath`. `GuzzleHttp\set_path` moved to - `GuzzleHttp\Utils::setPath`. `GuzzleHttp\batch` should now be - `GuzzleHttp\Pool::batch`, which returns an `objectStorage`. Using functions.php - caused problems for many users: they aren't PSR-4 compliant, require an - explicit include, and needed an if-guard to ensure that the functions are not - declared multiple times. -* Rewrote adapter layer. - * Removing all classes from `GuzzleHttp\Adapter`, these are now - implemented as callables that are stored in `GuzzleHttp\Ring\Client`. - * Removed the concept of "parallel adapters". Sending requests serially or - concurrently is now handled using a single adapter. - * Moved `GuzzleHttp\Adapter\Transaction` to `GuzzleHttp\Transaction`. The - Transaction object now exposes the request, response, and client as public - properties. The getters and setters have been removed. -* Removed the "headers" event. This event was only useful for changing the - body a response once the headers of the response were known. You can implement - a similar behavior in a number of ways. One example might be to use a - FnStream that has access to the transaction being sent. For example, when the - first byte is written, you could check if the response headers match your - expectations, and if so, change the actual stream body that is being - written to. -* Removed the `asArray` parameter from - `GuzzleHttp\Message\MessageInterface::getHeader`. If you want to get a header - value as an array, then use the newly added `getHeaderAsArray()` method of - `MessageInterface`. This change makes the Guzzle interfaces compatible with - the PSR-7 interfaces. -* `GuzzleHttp\Message\MessageFactory` no longer allows subclasses to add - custom request options using double-dispatch (this was an implementation - detail). Instead, you should now provide an associative array to the - constructor which is a mapping of the request option name mapping to a - function that applies the option value to a request. -* Removed the concept of "throwImmediately" from exceptions and error events. - This control mechanism was used to stop a transfer of concurrent requests - from completing. This can now be handled by throwing the exception or by - cancelling a pool of requests or each outstanding future request individually. -* Updated to "GuzzleHttp\Streams" 3.0. - * `GuzzleHttp\Stream\StreamInterface::getContents()` no longer accepts a - `maxLen` parameter. This update makes the Guzzle streams project - compatible with the current PSR-7 proposal. - * `GuzzleHttp\Stream\Stream::__construct`, - `GuzzleHttp\Stream\Stream::factory`, and - `GuzzleHttp\Stream\Utils::create` no longer accept a size in the second - argument. They now accept an associative array of options, including the - "size" key and "metadata" key which can be used to provide custom metadata. - - -## 4.2.2 - 2014-09-08 - -* Fixed a memory leak in the CurlAdapter when reusing cURL handles. -* No longer using `request_fulluri` in stream adapter proxies. -* Relative redirects are now based on the last response, not the first response. - -## 4.2.1 - 2014-08-19 - -* Ensuring that the StreamAdapter does not always add a Content-Type header -* Adding automated github releases with a phar and zip - -## 4.2.0 - 2014-08-17 - -* Now merging in default options using a case-insensitive comparison. - Closes https://github.com/guzzle/guzzle/issues/767 -* Added the ability to automatically decode `Content-Encoding` response bodies - using the `decode_content` request option. This is set to `true` by default - to decode the response body if it comes over the wire with a - `Content-Encoding`. Set this value to `false` to disable decoding the - response content, and pass a string to provide a request `Accept-Encoding` - header and turn on automatic response decoding. This feature now allows you - to pass an `Accept-Encoding` header in the headers of a request but still - disable automatic response decoding. - Closes https://github.com/guzzle/guzzle/issues/764 -* Added the ability to throw an exception immediately when transferring - requests in parallel. Closes https://github.com/guzzle/guzzle/issues/760 -* Updating guzzlehttp/streams dependency to ~2.1 -* No longer utilizing the now deprecated namespaced methods from the stream - package. - -## 4.1.8 - 2014-08-14 - -* Fixed an issue in the CurlFactory that caused setting the `stream=false` - request option to throw an exception. - See: https://github.com/guzzle/guzzle/issues/769 -* TransactionIterator now calls rewind on the inner iterator. - See: https://github.com/guzzle/guzzle/pull/765 -* You can now set the `Content-Type` header to `multipart/form-data` - when creating POST requests to force multipart bodies. - See https://github.com/guzzle/guzzle/issues/768 - -## 4.1.7 - 2014-08-07 - -* Fixed an error in the HistoryPlugin that caused the same request and response - to be logged multiple times when an HTTP protocol error occurs. -* Ensuring that cURL does not add a default Content-Type when no Content-Type - has been supplied by the user. This prevents the adapter layer from modifying - the request that is sent over the wire after any listeners may have already - put the request in a desired state (e.g., signed the request). -* Throwing an exception when you attempt to send requests that have the - "stream" set to true in parallel using the MultiAdapter. -* Only calling curl_multi_select when there are active cURL handles. This was - previously changed and caused performance problems on some systems due to PHP - always selecting until the maximum select timeout. -* Fixed a bug where multipart/form-data POST fields were not correctly - aggregated (e.g., values with "&"). - -## 4.1.6 - 2014-08-03 - -* Added helper methods to make it easier to represent messages as strings, - including getting the start line and getting headers as a string. - -## 4.1.5 - 2014-08-02 - -* Automatically retrying cURL "Connection died, retrying a fresh connect" - errors when possible. -* cURL implementation cleanup -* Allowing multiple event subscriber listeners to be registered per event by - passing an array of arrays of listener configuration. - -## 4.1.4 - 2014-07-22 - -* Fixed a bug that caused multi-part POST requests with more than one field to - serialize incorrectly. -* Paths can now be set to "0" -* `ResponseInterface::xml` now accepts a `libxml_options` option and added a - missing default argument that was required when parsing XML response bodies. -* A `save_to` stream is now created lazily, which means that files are not - created on disk unless a request succeeds. - -## 4.1.3 - 2014-07-15 - -* Various fixes to multipart/form-data POST uploads -* Wrapping function.php in an if-statement to ensure Guzzle can be used - globally and in a Composer install -* Fixed an issue with generating and merging in events to an event array -* POST headers are only applied before sending a request to allow you to change - the query aggregator used before uploading -* Added much more robust query string parsing -* Fixed various parsing and normalization issues with URLs -* Fixing an issue where multi-valued headers were not being utilized correctly - in the StreamAdapter - -## 4.1.2 - 2014-06-18 - -* Added support for sending payloads with GET requests - -## 4.1.1 - 2014-06-08 - -* Fixed an issue related to using custom message factory options in subclasses -* Fixed an issue with nested form fields in a multi-part POST -* Fixed an issue with using the `json` request option for POST requests -* Added `ToArrayInterface` to `GuzzleHttp\Cookie\CookieJar` - -## 4.1.0 - 2014-05-27 - -* Added a `json` request option to easily serialize JSON payloads. -* Added a `GuzzleHttp\json_decode()` wrapper to safely parse JSON. -* Added `setPort()` and `getPort()` to `GuzzleHttp\Message\RequestInterface`. -* Added the ability to provide an emitter to a client in the client constructor. -* Added the ability to persist a cookie session using $_SESSION. -* Added a trait that can be used to add event listeners to an iterator. -* Removed request method constants from RequestInterface. -* Fixed warning when invalid request start-lines are received. -* Updated MessageFactory to work with custom request option methods. -* Updated cacert bundle to latest build. - -4.0.2 (2014-04-16) ------------------- - -* Proxy requests using the StreamAdapter now properly use request_fulluri (#632) -* Added the ability to set scalars as POST fields (#628) - -## 4.0.1 - 2014-04-04 - -* The HTTP status code of a response is now set as the exception code of - RequestException objects. -* 303 redirects will now correctly switch from POST to GET requests. -* The default parallel adapter of a client now correctly uses the MultiAdapter. -* HasDataTrait now initializes the internal data array as an empty array so - that the toArray() method always returns an array. - -## 4.0.0 - 2014-03-29 - -* For information on changes and upgrading, see: - https://github.com/guzzle/guzzle/blob/master/UPGRADING.md#3x-to-40 -* Added `GuzzleHttp\batch()` as a convenience function for sending requests in - parallel without needing to write asynchronous code. -* Restructured how events are added to `GuzzleHttp\ClientInterface::sendAll()`. - You can now pass a callable or an array of associative arrays where each - associative array contains the "fn", "priority", and "once" keys. - -## 4.0.0.rc-2 - 2014-03-25 - -* Removed `getConfig()` and `setConfig()` from clients to avoid confusion - around whether things like base_url, message_factory, etc. should be able to - be retrieved or modified. -* Added `getDefaultOption()` and `setDefaultOption()` to ClientInterface -* functions.php functions were renamed using snake_case to match PHP idioms -* Added support for `HTTP_PROXY`, `HTTPS_PROXY`, and - `GUZZLE_CURL_SELECT_TIMEOUT` environment variables -* Added the ability to specify custom `sendAll()` event priorities -* Added the ability to specify custom stream context options to the stream - adapter. -* Added a functions.php function for `get_path()` and `set_path()` -* CurlAdapter and MultiAdapter now use a callable to generate curl resources -* MockAdapter now properly reads a body and emits a `headers` event -* Updated Url class to check if a scheme and host are set before adding ":" - and "//". This allows empty Url (e.g., "") to be serialized as "". -* Parsing invalid XML no longer emits warnings -* Curl classes now properly throw AdapterExceptions -* Various performance optimizations -* Streams are created with the faster `Stream\create()` function -* Marked deprecation_proxy() as internal -* Test server is now a collection of static methods on a class - -## 4.0.0-rc.1 - 2014-03-15 - -* See https://github.com/guzzle/guzzle/blob/master/UPGRADING.md#3x-to-40 - -## 3.8.1 - 2014-01-28 - -* Bug: Always using GET requests when redirecting from a 303 response -* Bug: CURLOPT_SSL_VERIFYHOST is now correctly set to false when setting `$certificateAuthority` to false in - `Guzzle\Http\ClientInterface::setSslVerification()` -* Bug: RedirectPlugin now uses strict RFC 3986 compliance when combining a base URL with a relative URL -* Bug: The body of a request can now be set to `"0"` -* Sending PHP stream requests no longer forces `HTTP/1.0` -* Adding more information to ExceptionCollection exceptions so that users have more context, including a stack trace of - each sub-exception -* Updated the `$ref` attribute in service descriptions to merge over any existing parameters of a schema (rather than - clobbering everything). -* Merging URLs will now use the query string object from the relative URL (thus allowing custom query aggregators) -* Query strings are now parsed in a way that they do no convert empty keys with no value to have a dangling `=`. - For example `foo&bar=baz` is now correctly parsed and recognized as `foo&bar=baz` rather than `foo=&bar=baz`. -* Now properly escaping the regular expression delimiter when matching Cookie domains. -* Network access is now disabled when loading XML documents - -## 3.8.0 - 2013-12-05 - -* Added the ability to define a POST name for a file -* JSON response parsing now properly walks additionalProperties -* cURL error code 18 is now retried automatically in the BackoffPlugin -* Fixed a cURL error when URLs contain fragments -* Fixed an issue in the BackoffPlugin retry event where it was trying to access all exceptions as if they were - CurlExceptions -* CURLOPT_PROGRESS function fix for PHP 5.5 (69fcc1e) -* Added the ability for Guzzle to work with older versions of cURL that do not support `CURLOPT_TIMEOUT_MS` -* Fixed a bug that was encountered when parsing empty header parameters -* UriTemplate now has a `setRegex()` method to match the docs -* The `debug` request parameter now checks if it is truthy rather than if it exists -* Setting the `debug` request parameter to true shows verbose cURL output instead of using the LogPlugin -* Added the ability to combine URLs using strict RFC 3986 compliance -* Command objects can now return the validation errors encountered by the command -* Various fixes to cache revalidation (#437 and 29797e5) -* Various fixes to the AsyncPlugin -* Cleaned up build scripts - -## 3.7.4 - 2013-10-02 - -* Bug fix: 0 is now an allowed value in a description parameter that has a default value (#430) -* Bug fix: SchemaFormatter now returns an integer when formatting to a Unix timestamp - (see https://github.com/aws/aws-sdk-php/issues/147) -* Bug fix: Cleaned up and fixed URL dot segment removal to properly resolve internal dots -* Minimum PHP version is now properly specified as 5.3.3 (up from 5.3.2) (#420) -* Updated the bundled cacert.pem (#419) -* OauthPlugin now supports adding authentication to headers or query string (#425) - -## 3.7.3 - 2013-09-08 - -* Added the ability to get the exception associated with a request/command when using `MultiTransferException` and - `CommandTransferException`. -* Setting `additionalParameters` of a response to false is now honored when parsing responses with a service description -* Schemas are only injected into response models when explicitly configured. -* No longer guessing Content-Type based on the path of a request. Content-Type is now only guessed based on the path of - an EntityBody. -* Bug fix: ChunkedIterator can now properly chunk a \Traversable as well as an \Iterator. -* Bug fix: FilterIterator now relies on `\Iterator` instead of `\Traversable`. -* Bug fix: Gracefully handling malformed responses in RequestMediator::writeResponseBody() -* Bug fix: Replaced call to canCache with canCacheRequest in the CallbackCanCacheStrategy of the CachePlugin -* Bug fix: Visiting XML attributes first before visiting XML children when serializing requests -* Bug fix: Properly parsing headers that contain commas contained in quotes -* Bug fix: mimetype guessing based on a filename is now case-insensitive - -## 3.7.2 - 2013-08-02 - -* Bug fix: Properly URL encoding paths when using the PHP-only version of the UriTemplate expander - See https://github.com/guzzle/guzzle/issues/371 -* Bug fix: Cookie domains are now matched correctly according to RFC 6265 - See https://github.com/guzzle/guzzle/issues/377 -* Bug fix: GET parameters are now used when calculating an OAuth signature -* Bug fix: Fixed an issue with cache revalidation where the If-None-Match header was being double quoted -* `Guzzle\Common\AbstractHasDispatcher::dispatch()` now returns the event that was dispatched -* `Guzzle\Http\QueryString::factory()` now guesses the most appropriate query aggregator to used based on the input. - See https://github.com/guzzle/guzzle/issues/379 -* Added a way to add custom domain objects to service description parsing using the `operation.parse_class` event. See - https://github.com/guzzle/guzzle/pull/380 -* cURL multi cleanup and optimizations - -## 3.7.1 - 2013-07-05 - -* Bug fix: Setting default options on a client now works -* Bug fix: Setting options on HEAD requests now works. See #352 -* Bug fix: Moving stream factory before send event to before building the stream. See #353 -* Bug fix: Cookies no longer match on IP addresses per RFC 6265 -* Bug fix: Correctly parsing header parameters that are in `<>` and quotes -* Added `cert` and `ssl_key` as request options -* `Host` header can now diverge from the host part of a URL if the header is set manually -* `Guzzle\Service\Command\LocationVisitor\Request\XmlVisitor` was rewritten to change from using SimpleXML to XMLWriter -* OAuth parameters are only added via the plugin if they aren't already set -* Exceptions are now thrown when a URL cannot be parsed -* Returning `false` if `Guzzle\Http\EntityBody::getContentMd5()` fails -* Not setting a `Content-MD5` on a command if calculating the Content-MD5 fails via the CommandContentMd5Plugin - -## 3.7.0 - 2013-06-10 - -* See UPGRADING.md for more information on how to upgrade. -* Requests now support the ability to specify an array of $options when creating a request to more easily modify a - request. You can pass a 'request.options' configuration setting to a client to apply default request options to - every request created by a client (e.g. default query string variables, headers, curl options, etc.). -* Added a static facade class that allows you to use Guzzle with static methods and mount the class to `\Guzzle`. - See `Guzzle\Http\StaticClient::mount`. -* Added `command.request_options` to `Guzzle\Service\Command\AbstractCommand` to pass request options to requests - created by a command (e.g. custom headers, query string variables, timeout settings, etc.). -* Stream size in `Guzzle\Stream\PhpStreamRequestFactory` will now be set if Content-Length is returned in the - headers of a response -* Added `Guzzle\Common\Collection::setPath($path, $value)` to set a value into an array using a nested key - (e.g. `$collection->setPath('foo/baz/bar', 'test'); echo $collection['foo']['bar']['bar'];`) -* ServiceBuilders now support storing and retrieving arbitrary data -* CachePlugin can now purge all resources for a given URI -* CachePlugin can automatically purge matching cached items when a non-idempotent request is sent to a resource -* CachePlugin now uses the Vary header to determine if a resource is a cache hit -* `Guzzle\Http\Message\Response` now implements `\Serializable` -* Added `Guzzle\Cache\CacheAdapterFactory::fromCache()` to more easily create cache adapters -* `Guzzle\Service\ClientInterface::execute()` now accepts an array, single command, or Traversable -* Fixed a bug in `Guzzle\Http\Message\Header\Link::addLink()` -* Better handling of calculating the size of a stream in `Guzzle\Stream\Stream` using fstat() and caching the size -* `Guzzle\Common\Exception\ExceptionCollection` now creates a more readable exception message -* Fixing BC break: Added back the MonologLogAdapter implementation rather than extending from PsrLog so that older - Symfony users can still use the old version of Monolog. -* Fixing BC break: Added the implementation back in for `Guzzle\Http\Message\AbstractMessage::getTokenizedHeader()`. - Now triggering an E_USER_DEPRECATED warning when used. Use `$message->getHeader()->parseParams()`. -* Several performance improvements to `Guzzle\Common\Collection` -* Added an `$options` argument to the end of the following methods of `Guzzle\Http\ClientInterface`: - createRequest, head, delete, put, patch, post, options, prepareRequest -* Added an `$options` argument to the end of `Guzzle\Http\Message\Request\RequestFactoryInterface::createRequest()` -* Added an `applyOptions()` method to `Guzzle\Http\Message\Request\RequestFactoryInterface` -* Changed `Guzzle\Http\ClientInterface::get($uri = null, $headers = null, $body = null)` to - `Guzzle\Http\ClientInterface::get($uri = null, $headers = null, $options = array())`. You can still pass in a - resource, string, or EntityBody into the $options parameter to specify the download location of the response. -* Changed `Guzzle\Common\Collection::__construct($data)` to no longer accepts a null value for `$data` but a - default `array()` -* Added `Guzzle\Stream\StreamInterface::isRepeatable` -* Removed `Guzzle\Http\ClientInterface::setDefaultHeaders(). Use - $client->getConfig()->setPath('request.options/headers/{header_name}', 'value')`. or - $client->getConfig()->setPath('request.options/headers', array('header_name' => 'value'))`. -* Removed `Guzzle\Http\ClientInterface::getDefaultHeaders(). Use $client->getConfig()->getPath('request.options/headers')`. -* Removed `Guzzle\Http\ClientInterface::expandTemplate()` -* Removed `Guzzle\Http\ClientInterface::setRequestFactory()` -* Removed `Guzzle\Http\ClientInterface::getCurlMulti()` -* Removed `Guzzle\Http\Message\RequestInterface::canCache` -* Removed `Guzzle\Http\Message\RequestInterface::setIsRedirect` -* Removed `Guzzle\Http\Message\RequestInterface::isRedirect` -* Made `Guzzle\Http\Client::expandTemplate` and `getUriTemplate` protected methods. -* You can now enable E_USER_DEPRECATED warnings to see if you are using a deprecated method by setting - `Guzzle\Common\Version::$emitWarnings` to true. -* Marked `Guzzle\Http\Message\Request::isResponseBodyRepeatable()` as deprecated. Use - `$request->getResponseBody()->isRepeatable()` instead. -* Marked `Guzzle\Http\Message\Request::canCache()` as deprecated. Use - `Guzzle\Plugin\Cache\DefaultCanCacheStrategy->canCacheRequest()` instead. -* Marked `Guzzle\Http\Message\Request::canCache()` as deprecated. Use - `Guzzle\Plugin\Cache\DefaultCanCacheStrategy->canCacheRequest()` instead. -* Marked `Guzzle\Http\Message\Request::setIsRedirect()` as deprecated. Use the HistoryPlugin instead. -* Marked `Guzzle\Http\Message\Request::isRedirect()` as deprecated. Use the HistoryPlugin instead. -* Marked `Guzzle\Cache\CacheAdapterFactory::factory()` as deprecated -* Marked 'command.headers', 'command.response_body' and 'command.on_complete' as deprecated for AbstractCommand. - These will work through Guzzle 4.0 -* Marked 'request.params' for `Guzzle\Http\Client` as deprecated. Use [request.options][params]. -* Marked `Guzzle\Service\Client::enableMagicMethods()` as deprecated. Magic methods can no longer be disabled on a Guzzle\Service\Client. -* Marked `Guzzle\Service\Client::getDefaultHeaders()` as deprecated. Use $client->getConfig()->getPath('request.options/headers')`. -* Marked `Guzzle\Service\Client::setDefaultHeaders()` as deprecated. Use $client->getConfig()->setPath('request.options/headers/{header_name}', 'value')`. -* Marked `Guzzle\Parser\Url\UrlParser` as deprecated. Just use PHP's `parse_url()` and percent encode your UTF-8. -* Marked `Guzzle\Common\Collection::inject()` as deprecated. -* Marked `Guzzle\Plugin\CurlAuth\CurlAuthPlugin` as deprecated. Use `$client->getConfig()->setPath('request.options/auth', array('user', 'pass', 'Basic|Digest');` -* CacheKeyProviderInterface and DefaultCacheKeyProvider are no longer used. All of this logic is handled in a - CacheStorageInterface. These two objects and interface will be removed in a future version. -* Always setting X-cache headers on cached responses -* Default cache TTLs are now handled by the CacheStorageInterface of a CachePlugin -* `CacheStorageInterface::cache($key, Response $response, $ttl = null)` has changed to `cache(RequestInterface - $request, Response $response);` -* `CacheStorageInterface::fetch($key)` has changed to `fetch(RequestInterface $request);` -* `CacheStorageInterface::delete($key)` has changed to `delete(RequestInterface $request);` -* Added `CacheStorageInterface::purge($url)` -* `DefaultRevalidation::__construct(CacheKeyProviderInterface $cacheKey, CacheStorageInterface $cache, CachePlugin - $plugin)` has changed to `DefaultRevalidation::__construct(CacheStorageInterface $cache, - CanCacheStrategyInterface $canCache = null)` -* Added `RevalidationInterface::shouldRevalidate(RequestInterface $request, Response $response)` - -## 3.6.0 - 2013-05-29 - -* ServiceDescription now implements ToArrayInterface -* Added command.hidden_params to blacklist certain headers from being treated as additionalParameters -* Guzzle can now correctly parse incomplete URLs -* Mixed casing of headers are now forced to be a single consistent casing across all values for that header. -* Messages internally use a HeaderCollection object to delegate handling case-insensitive header resolution -* Removed the whole changedHeader() function system of messages because all header changes now go through addHeader(). -* Specific header implementations can be created for complex headers. When a message creates a header, it uses a - HeaderFactory which can map specific headers to specific header classes. There is now a Link header and - CacheControl header implementation. -* Removed from interface: Guzzle\Http\ClientInterface::setUriTemplate -* Removed from interface: Guzzle\Http\ClientInterface::setCurlMulti() -* Removed Guzzle\Http\Message\Request::receivedRequestHeader() and implemented this functionality in - Guzzle\Http\Curl\RequestMediator -* Removed the optional $asString parameter from MessageInterface::getHeader(). Just cast the header to a string. -* Removed the optional $tryChunkedTransfer option from Guzzle\Http\Message\EntityEnclosingRequestInterface -* Removed the $asObjects argument from Guzzle\Http\Message\MessageInterface::getHeaders() -* Removed Guzzle\Parser\ParserRegister::get(). Use getParser() -* Removed Guzzle\Parser\ParserRegister::set(). Use registerParser(). -* All response header helper functions return a string rather than mixing Header objects and strings inconsistently -* Removed cURL blacklist support. This is no longer necessary now that Expect, Accept, etc. are managed by Guzzle - directly via interfaces -* Removed the injecting of a request object onto a response object. The methods to get and set a request still exist - but are a no-op until removed. -* Most classes that used to require a `Guzzle\Service\Command\CommandInterface` typehint now request a - `Guzzle\Service\Command\ArrayCommandInterface`. -* Added `Guzzle\Http\Message\RequestInterface::startResponse()` to the RequestInterface to handle injecting a response - on a request while the request is still being transferred -* The ability to case-insensitively search for header values -* Guzzle\Http\Message\Header::hasExactHeader -* Guzzle\Http\Message\Header::raw. Use getAll() -* Deprecated cache control specific methods on Guzzle\Http\Message\AbstractMessage. Use the CacheControl header object - instead. -* `Guzzle\Service\Command\CommandInterface` now extends from ToArrayInterface and ArrayAccess -* Added the ability to cast Model objects to a string to view debug information. - -## 3.5.0 - 2013-05-13 - -* Bug: Fixed a regression so that request responses are parsed only once per oncomplete event rather than multiple times -* Bug: Better cleanup of one-time events across the board (when an event is meant to fire once, it will now remove - itself from the EventDispatcher) -* Bug: `Guzzle\Log\MessageFormatter` now properly writes "total_time" and "connect_time" values -* Bug: Cloning an EntityEnclosingRequest now clones the EntityBody too -* Bug: Fixed an undefined index error when parsing nested JSON responses with a sentAs parameter that reference a - non-existent key -* Bug: All __call() method arguments are now required (helps with mocking frameworks) -* Deprecating Response::getRequest() and now using a shallow clone of a request object to remove a circular reference - to help with refcount based garbage collection of resources created by sending a request -* Deprecating ZF1 cache and log adapters. These will be removed in the next major version. -* Deprecating `Response::getPreviousResponse()` (method signature still exists, but it's deprecated). Use the - HistoryPlugin for a history. -* Added a `responseBody` alias for the `response_body` location -* Refactored internals to no longer rely on Response::getRequest() -* HistoryPlugin can now be cast to a string -* HistoryPlugin now logs transactions rather than requests and responses to more accurately keep track of the requests - and responses that are sent over the wire -* Added `getEffectiveUrl()` and `getRedirectCount()` to Response objects - -## 3.4.3 - 2013-04-30 - -* Bug fix: Fixing bug introduced in 3.4.2 where redirect responses are duplicated on the final redirected response -* Added a check to re-extract the temp cacert bundle from the phar before sending each request - -## 3.4.2 - 2013-04-29 - -* Bug fix: Stream objects now work correctly with "a" and "a+" modes -* Bug fix: Removing `Transfer-Encoding: chunked` header when a Content-Length is present -* Bug fix: AsyncPlugin no longer forces HEAD requests -* Bug fix: DateTime timezones are now properly handled when using the service description schema formatter -* Bug fix: CachePlugin now properly handles stale-if-error directives when a request to the origin server fails -* Setting a response on a request will write to the custom request body from the response body if one is specified -* LogPlugin now writes to php://output when STDERR is undefined -* Added the ability to set multiple POST files for the same key in a single call -* application/x-www-form-urlencoded POSTs now use the utf-8 charset by default -* Added the ability to queue CurlExceptions to the MockPlugin -* Cleaned up how manual responses are queued on requests (removed "queued_response" and now using request.before_send) -* Configuration loading now allows remote files - -## 3.4.1 - 2013-04-16 - -* Large refactoring to how CurlMulti handles work. There is now a proxy that sits in front of a pool of CurlMulti - handles. This greatly simplifies the implementation, fixes a couple bugs, and provides a small performance boost. -* Exceptions are now properly grouped when sending requests in parallel -* Redirects are now properly aggregated when a multi transaction fails -* Redirects now set the response on the original object even in the event of a failure -* Bug fix: Model names are now properly set even when using $refs -* Added support for PHP 5.5's CurlFile to prevent warnings with the deprecated @ syntax -* Added support for oauth_callback in OAuth signatures -* Added support for oauth_verifier in OAuth signatures -* Added support to attempt to retrieve a command first literally, then ucfirst, the with inflection - -## 3.4.0 - 2013-04-11 - -* Bug fix: URLs are now resolved correctly based on https://datatracker.ietf.org/doc/html/rfc3986#section-5.2. #289 -* Bug fix: Absolute URLs with a path in a service description will now properly override the base URL. #289 -* Bug fix: Parsing a query string with a single PHP array value will now result in an array. #263 -* Bug fix: Better normalization of the User-Agent header to prevent duplicate headers. #264. -* Bug fix: Added `number` type to service descriptions. -* Bug fix: empty parameters are removed from an OAuth signature -* Bug fix: Revalidating a cache entry prefers the Last-Modified over the Date header -* Bug fix: Fixed "array to string" error when validating a union of types in a service description -* Bug fix: Removed code that attempted to determine the size of a stream when data is written to the stream -* Bug fix: Not including an `oauth_token` if the value is null in the OauthPlugin. -* Bug fix: Now correctly aggregating successful requests and failed requests in CurlMulti when a redirect occurs. -* The new default CURLOPT_TIMEOUT setting has been increased to 150 seconds so that Guzzle works on poor connections. -* Added a feature to EntityEnclosingRequest::setBody() that will automatically set the Content-Type of the request if - the Content-Type can be determined based on the entity body or the path of the request. -* Added the ability to overwrite configuration settings in a client when grabbing a throwaway client from a builder. -* Added support for a PSR-3 LogAdapter. -* Added a `command.after_prepare` event -* Added `oauth_callback` parameter to the OauthPlugin -* Added the ability to create a custom stream class when using a stream factory -* Added a CachingEntityBody decorator -* Added support for `additionalParameters` in service descriptions to define how custom parameters are serialized. -* The bundled SSL certificate is now provided in the phar file and extracted when running Guzzle from a phar. -* You can now send any EntityEnclosingRequest with POST fields or POST files and cURL will handle creating bodies -* POST requests using a custom entity body are now treated exactly like PUT requests but with a custom cURL method. This - means that the redirect behavior of POST requests with custom bodies will not be the same as POST requests that use - POST fields or files (the latter is only used when emulating a form POST in the browser). -* Lots of cleanup to CurlHandle::factory and RequestFactory::createRequest - -## 3.3.1 - 2013-03-10 - -* Added the ability to create PHP streaming responses from HTTP requests -* Bug fix: Running any filters when parsing response headers with service descriptions -* Bug fix: OauthPlugin fixes to allow for multi-dimensional array signing, and sorting parameters before signing -* Bug fix: Removed the adding of default empty arrays and false Booleans to responses in order to be consistent across - response location visitors. -* Bug fix: Removed the possibility of creating configuration files with circular dependencies -* RequestFactory::create() now uses the key of a POST file when setting the POST file name -* Added xmlAllowEmpty to serialize an XML body even if no XML specific parameters are set - -## 3.3.0 - 2013-03-03 - -* A large number of performance optimizations have been made -* Bug fix: Added 'wb' as a valid write mode for streams -* Bug fix: `Guzzle\Http\Message\Response::json()` now allows scalar values to be returned -* Bug fix: Fixed bug in `Guzzle\Http\Message\Response` where wrapping quotes were stripped from `getEtag()` -* BC: Removed `Guzzle\Http\Utils` class -* BC: Setting a service description on a client will no longer modify the client's command factories. -* BC: Emitting IO events from a RequestMediator is now a parameter that must be set in a request's curl options using - the 'emit_io' key. This was previously set under a request's parameters using 'curl.emit_io' -* BC: `Guzzle\Stream\Stream::getWrapper()` and `Guzzle\Stream\Stream::getSteamType()` are no longer converted to - lowercase -* Operation parameter objects are now lazy loaded internally -* Added ErrorResponsePlugin that can throw errors for responses defined in service description operations' errorResponses -* Added support for instantiating responseType=class responseClass classes. Classes must implement - `Guzzle\Service\Command\ResponseClassInterface` -* Added support for additionalProperties for top-level parameters in responseType=model responseClasses. These - additional properties also support locations and can be used to parse JSON responses where the outermost part of the - JSON is an array -* Added support for nested renaming of JSON models (rename sentAs to name) -* CachePlugin - * Added support for stale-if-error so that the CachePlugin can now serve stale content from the cache on error - * Debug headers can now added to cached response in the CachePlugin - -## 3.2.0 - 2013-02-14 - -* CurlMulti is no longer reused globally. A new multi object is created per-client. This helps to isolate clients. -* URLs with no path no longer contain a "/" by default -* Guzzle\Http\QueryString does no longer manages the leading "?". This is now handled in Guzzle\Http\Url. -* BadResponseException no longer includes the full request and response message -* Adding setData() to Guzzle\Service\Description\ServiceDescriptionInterface -* Adding getResponseBody() to Guzzle\Http\Message\RequestInterface -* Various updates to classes to use ServiceDescriptionInterface type hints rather than ServiceDescription -* Header values can now be normalized into distinct values when multiple headers are combined with a comma separated list -* xmlEncoding can now be customized for the XML declaration of a XML service description operation -* Guzzle\Http\QueryString now uses Guzzle\Http\QueryAggregator\QueryAggregatorInterface objects to add custom value - aggregation and no longer uses callbacks -* The URL encoding implementation of Guzzle\Http\QueryString can now be customized -* Bug fix: Filters were not always invoked for array service description parameters -* Bug fix: Redirects now use a target response body rather than a temporary response body -* Bug fix: The default exponential backoff BackoffPlugin was not giving when the request threshold was exceeded -* Bug fix: Guzzle now takes the first found value when grabbing Cache-Control directives - -## 3.1.2 - 2013-01-27 - -* Refactored how operation responses are parsed. Visitors now include a before() method responsible for parsing the - response body. For example, the XmlVisitor now parses the XML response into an array in the before() method. -* Fixed an issue where cURL would not automatically decompress responses when the Accept-Encoding header was sent -* CURLOPT_SSL_VERIFYHOST is never set to 1 because it is deprecated (see 5e0ff2ef20f839e19d1eeb298f90ba3598784444) -* Fixed a bug where redirect responses were not chained correctly using getPreviousResponse() -* Setting default headers on a client after setting the user-agent will not erase the user-agent setting - -## 3.1.1 - 2013-01-20 - -* Adding wildcard support to Guzzle\Common\Collection::getPath() -* Adding alias support to ServiceBuilder configs -* Adding Guzzle\Service\Resource\CompositeResourceIteratorFactory and cleaning up factory interface - -## 3.1.0 - 2013-01-12 - -* BC: CurlException now extends from RequestException rather than BadResponseException -* BC: Renamed Guzzle\Plugin\Cache\CanCacheStrategyInterface::canCache() to canCacheRequest() and added CanCacheResponse() -* Added getData to ServiceDescriptionInterface -* Added context array to RequestInterface::setState() -* Bug: Removing hard dependency on the BackoffPlugin from Guzzle\Http -* Bug: Adding required content-type when JSON request visitor adds JSON to a command -* Bug: Fixing the serialization of a service description with custom data -* Made it easier to deal with exceptions thrown when transferring commands or requests in parallel by providing - an array of successful and failed responses -* Moved getPath from Guzzle\Service\Resource\Model to Guzzle\Common\Collection -* Added Guzzle\Http\IoEmittingEntityBody -* Moved command filtration from validators to location visitors -* Added `extends` attributes to service description parameters -* Added getModels to ServiceDescriptionInterface - -## 3.0.7 - 2012-12-19 - -* Fixing phar detection when forcing a cacert to system if null or true -* Allowing filename to be passed to `Guzzle\Http\Message\Request::setResponseBody()` -* Cleaning up `Guzzle\Common\Collection::inject` method -* Adding a response_body location to service descriptions - -## 3.0.6 - 2012-12-09 - -* CurlMulti performance improvements -* Adding setErrorResponses() to Operation -* composer.json tweaks - -## 3.0.5 - 2012-11-18 - -* Bug: Fixing an infinite recursion bug caused from revalidating with the CachePlugin -* Bug: Response body can now be a string containing "0" -* Bug: Using Guzzle inside of a phar uses system by default but now allows for a custom cacert -* Bug: QueryString::fromString now properly parses query string parameters that contain equal signs -* Added support for XML attributes in service description responses -* DefaultRequestSerializer now supports array URI parameter values for URI template expansion -* Added better mimetype guessing to requests and post files - -## 3.0.4 - 2012-11-11 - -* Bug: Fixed a bug when adding multiple cookies to a request to use the correct glue value -* Bug: Cookies can now be added that have a name, domain, or value set to "0" -* Bug: Using the system cacert bundle when using the Phar -* Added json and xml methods to Response to make it easier to parse JSON and XML response data into data structures -* Enhanced cookie jar de-duplication -* Added the ability to enable strict cookie jars that throw exceptions when invalid cookies are added -* Added setStream to StreamInterface to actually make it possible to implement custom rewind behavior for entity bodies -* Added the ability to create any sort of hash for a stream rather than just an MD5 hash - -## 3.0.3 - 2012-11-04 - -* Implementing redirects in PHP rather than cURL -* Added PECL URI template extension and using as default parser if available -* Bug: Fixed Content-Length parsing of Response factory -* Adding rewind() method to entity bodies and streams. Allows for custom rewinding of non-repeatable streams. -* Adding ToArrayInterface throughout library -* Fixing OauthPlugin to create unique nonce values per request - -## 3.0.2 - 2012-10-25 - -* Magic methods are enabled by default on clients -* Magic methods return the result of a command -* Service clients no longer require a base_url option in the factory -* Bug: Fixed an issue with URI templates where null template variables were being expanded - -## 3.0.1 - 2012-10-22 - -* Models can now be used like regular collection objects by calling filter, map, etc. -* Models no longer require a Parameter structure or initial data in the constructor -* Added a custom AppendIterator to get around a PHP bug with the `\AppendIterator` - -## 3.0.0 - 2012-10-15 - -* Rewrote service description format to be based on Swagger - * Now based on JSON schema - * Added nested input structures and nested response models - * Support for JSON and XML input and output models - * Renamed `commands` to `operations` - * Removed dot class notation - * Removed custom types -* Broke the project into smaller top-level namespaces to be more component friendly -* Removed support for XML configs and descriptions. Use arrays or JSON files. -* Removed the Validation component and Inspector -* Moved all cookie code to Guzzle\Plugin\Cookie -* Magic methods on a Guzzle\Service\Client now return the command un-executed. -* Calling getResult() or getResponse() on a command will lazily execute the command if needed. -* Now shipping with cURL's CA certs and using it by default -* Added previousResponse() method to response objects -* No longer sending Accept and Accept-Encoding headers on every request -* Only sending an Expect header by default when a payload is greater than 1MB -* Added/moved client options: - * curl.blacklist to curl.option.blacklist - * Added ssl.certificate_authority -* Added a Guzzle\Iterator component -* Moved plugins from Guzzle\Http\Plugin to Guzzle\Plugin -* Added a more robust backoff retry strategy (replaced the ExponentialBackoffPlugin) -* Added a more robust caching plugin -* Added setBody to response objects -* Updating LogPlugin to use a more flexible MessageFormatter -* Added a completely revamped build process -* Cleaning up Collection class and removing default values from the get method -* Fixed ZF2 cache adapters - -## 2.8.8 - 2012-10-15 - -* Bug: Fixed a cookie issue that caused dot prefixed domains to not match where popular browsers did - -## 2.8.7 - 2012-09-30 - -* Bug: Fixed config file aliases for JSON includes -* Bug: Fixed cookie bug on a request object by using CookieParser to parse cookies on requests -* Bug: Removing the path to a file when sending a Content-Disposition header on a POST upload -* Bug: Hardening request and response parsing to account for missing parts -* Bug: Fixed PEAR packaging -* Bug: Fixed Request::getInfo -* Bug: Fixed cases where CURLM_CALL_MULTI_PERFORM return codes were causing curl transactions to fail -* Adding the ability for the namespace Iterator factory to look in multiple directories -* Added more getters/setters/removers from service descriptions -* Added the ability to remove POST fields from OAuth signatures -* OAuth plugin now supports 2-legged OAuth - -## 2.8.6 - 2012-09-05 - -* Added the ability to modify and build service descriptions -* Added the use of visitors to apply parameters to locations in service descriptions using the dynamic command -* Added a `json` parameter location -* Now allowing dot notation for classes in the CacheAdapterFactory -* Using the union of two arrays rather than an array_merge when extending service builder services and service params -* Ensuring that a service is a string before doing strpos() checks on it when substituting services for references - in service builder config files. -* Services defined in two different config files that include one another will by default replace the previously - defined service, but you can now create services that extend themselves and merge their settings over the previous -* The JsonLoader now supports aliasing filenames with different filenames. This allows you to alias something like - '_default' with a default JSON configuration file. - -## 2.8.5 - 2012-08-29 - -* Bug: Suppressed empty arrays from URI templates -* Bug: Added the missing $options argument from ServiceDescription::factory to enable caching -* Added support for HTTP responses that do not contain a reason phrase in the start-line -* AbstractCommand commands are now invokable -* Added a way to get the data used when signing an Oauth request before a request is sent - -## 2.8.4 - 2012-08-15 - -* Bug: Custom delay time calculations are no longer ignored in the ExponentialBackoffPlugin -* Added the ability to transfer entity bodies as a string rather than streamed. This gets around curl error 65. Set `body_as_string` in a request's curl options to enable. -* Added a StreamInterface, EntityBodyInterface, and added ftell() to Guzzle\Common\Stream -* Added an AbstractEntityBodyDecorator and a ReadLimitEntityBody decorator to transfer only a subset of a decorated stream -* Stream and EntityBody objects will now return the file position to the previous position after a read required operation (e.g. getContentMd5()) -* Added additional response status codes -* Removed SSL information from the default User-Agent header -* DELETE requests can now send an entity body -* Added an EventDispatcher to the ExponentialBackoffPlugin and added an ExponentialBackoffLogger to log backoff retries -* Added the ability of the MockPlugin to consume mocked request bodies -* LogPlugin now exposes request and response objects in the extras array - -## 2.8.3 - 2012-07-30 - -* Bug: Fixed a case where empty POST requests were sent as GET requests -* Bug: Fixed a bug in ExponentialBackoffPlugin that caused fatal errors when retrying an EntityEnclosingRequest that does not have a body -* Bug: Setting the response body of a request to null after completing a request, not when setting the state of a request to new -* Added multiple inheritance to service description commands -* Added an ApiCommandInterface and added `getParamNames()` and `hasParam()` -* Removed the default 2mb size cutoff from the Md5ValidatorPlugin so that it now defaults to validating everything -* Changed CurlMulti::perform to pass a smaller timeout to CurlMulti::executeHandles - -## 2.8.2 - 2012-07-24 - -* Bug: Query string values set to 0 are no longer dropped from the query string -* Bug: A Collection object is no longer created each time a call is made to `Guzzle\Service\Command\AbstractCommand::getRequestHeaders()` -* Bug: `+` is now treated as an encoded space when parsing query strings -* QueryString and Collection performance improvements -* Allowing dot notation for class paths in filters attribute of a service descriptions - -## 2.8.1 - 2012-07-16 - -* Loosening Event Dispatcher dependency -* POST redirects can now be customized using CURLOPT_POSTREDIR - -## 2.8.0 - 2012-07-15 - -* BC: Guzzle\Http\Query - * Query strings with empty variables will always show an equal sign unless the variable is set to QueryString::BLANK (e.g. ?acl= vs ?acl) - * Changed isEncodingValues() and isEncodingFields() to isUrlEncoding() - * Changed setEncodeValues(bool) and setEncodeFields(bool) to useUrlEncoding(bool) - * Changed the aggregation functions of QueryString to be static methods - * Can now use fromString() with querystrings that have a leading ? -* cURL configuration values can be specified in service descriptions using `curl.` prefixed parameters -* Content-Length is set to 0 before emitting the request.before_send event when sending an empty request body -* Cookies are no longer URL decoded by default -* Bug: URI template variables set to null are no longer expanded - -## 2.7.2 - 2012-07-02 - -* BC: Moving things to get ready for subtree splits. Moving Inflection into Common. Moving Guzzle\Http\Parser to Guzzle\Parser. -* BC: Removing Guzzle\Common\Batch\Batch::count() and replacing it with isEmpty() -* CachePlugin now allows for a custom request parameter function to check if a request can be cached -* Bug fix: CachePlugin now only caches GET and HEAD requests by default -* Bug fix: Using header glue when transferring headers over the wire -* Allowing deeply nested arrays for composite variables in URI templates -* Batch divisors can now return iterators or arrays - -## 2.7.1 - 2012-06-26 - -* Minor patch to update version number in UA string -* Updating build process - -## 2.7.0 - 2012-06-25 - -* BC: Inflection classes moved to Guzzle\Inflection. No longer static methods. Can now inject custom inflectors into classes. -* BC: Removed magic setX methods from commands -* BC: Magic methods mapped to service description commands are now inflected in the command factory rather than the client __call() method -* Verbose cURL options are no longer enabled by default. Set curl.debug to true on a client to enable. -* Bug: Now allowing colons in a response start-line (e.g. HTTP/1.1 503 Service Unavailable: Back-end server is at capacity) -* Guzzle\Service\Resource\ResourceIteratorApplyBatched now internally uses the Guzzle\Common\Batch namespace -* Added Guzzle\Service\Plugin namespace and a PluginCollectionPlugin -* Added the ability to set POST fields and files in a service description -* Guzzle\Http\EntityBody::factory() now accepts objects with a __toString() method -* Adding a command.before_prepare event to clients -* Added BatchClosureTransfer and BatchClosureDivisor -* BatchTransferException now includes references to the batch divisor and transfer strategies -* Fixed some tests so that they pass more reliably -* Added Guzzle\Common\Log\ArrayLogAdapter - -## 2.6.6 - 2012-06-10 - -* BC: Removing Guzzle\Http\Plugin\BatchQueuePlugin -* BC: Removing Guzzle\Service\Command\CommandSet -* Adding generic batching system (replaces the batch queue plugin and command set) -* Updating ZF cache and log adapters and now using ZF's composer repository -* Bug: Setting the name of each ApiParam when creating through an ApiCommand -* Adding result_type, result_doc, deprecated, and doc_url to service descriptions -* Bug: Changed the default cookie header casing back to 'Cookie' - -## 2.6.5 - 2012-06-03 - -* BC: Renaming Guzzle\Http\Message\RequestInterface::getResourceUri() to getResource() -* BC: Removing unused AUTH_BASIC and AUTH_DIGEST constants from -* BC: Guzzle\Http\Cookie is now used to manage Set-Cookie data, not Cookie data -* BC: Renaming methods in the CookieJarInterface -* Moving almost all cookie logic out of the CookiePlugin and into the Cookie or CookieJar implementations -* Making the default glue for HTTP headers ';' instead of ',' -* Adding a removeValue to Guzzle\Http\Message\Header -* Adding getCookies() to request interface. -* Making it easier to add event subscribers to HasDispatcherInterface classes. Can now directly call addSubscriber() - -## 2.6.4 - 2012-05-30 - -* BC: Cleaning up how POST files are stored in EntityEnclosingRequest objects. Adding PostFile class. -* BC: Moving ApiCommand specific functionality from the Inspector and on to the ApiCommand -* Bug: Fixing magic method command calls on clients -* Bug: Email constraint only validates strings -* Bug: Aggregate POST fields when POST files are present in curl handle -* Bug: Fixing default User-Agent header -* Bug: Only appending or prepending parameters in commands if they are specified -* Bug: Not requiring response reason phrases or status codes to match a predefined list of codes -* Allowing the use of dot notation for class namespaces when using instance_of constraint -* Added any_match validation constraint -* Added an AsyncPlugin -* Passing request object to the calculateWait method of the ExponentialBackoffPlugin -* Allowing the result of a command object to be changed -* Parsing location and type sub values when instantiating a service description rather than over and over at runtime - -## 2.6.3 - 2012-05-23 - -* [BC] Guzzle\Common\FromConfigInterface no longer requires any config options. -* [BC] Refactoring how POST files are stored on an EntityEnclosingRequest. They are now separate from POST fields. -* You can now use an array of data when creating PUT request bodies in the request factory. -* Removing the requirement that HTTPS requests needed a Cache-Control: public directive to be cacheable. -* [Http] Adding support for Content-Type in multipart POST uploads per upload -* [Http] Added support for uploading multiple files using the same name (foo[0], foo[1]) -* Adding more POST data operations for easier manipulation of POST data. -* You can now set empty POST fields. -* The body of a request is only shown on EntityEnclosingRequest objects that do not use POST files. -* Split the Guzzle\Service\Inspector::validateConfig method into two methods. One to initialize when a command is created, and one to validate. -* CS updates - -## 2.6.2 - 2012-05-19 - -* [Http] Better handling of nested scope requests in CurlMulti. Requests are now always prepares in the send() method rather than the addRequest() method. - -## 2.6.1 - 2012-05-19 - -* [BC] Removing 'path' support in service descriptions. Use 'uri'. -* [BC] Guzzle\Service\Inspector::parseDocBlock is now protected. Adding getApiParamsForClass() with cache. -* [BC] Removing Guzzle\Common\NullObject. Use https://github.com/mtdowling/NullObject if you need it. -* [BC] Removing Guzzle\Common\XmlElement. -* All commands, both dynamic and concrete, have ApiCommand objects. -* Adding a fix for CurlMulti so that if all of the connections encounter some sort of curl error, then the loop exits. -* Adding checks to EntityEnclosingRequest so that empty POST files and fields are ignored. -* Making the method signature of Guzzle\Service\Builder\ServiceBuilder::factory more flexible. - -## 2.6.0 - 2012-05-15 - -* [BC] Moving Guzzle\Service\Builder to Guzzle\Service\Builder\ServiceBuilder -* [BC] Executing a Command returns the result of the command rather than the command -* [BC] Moving all HTTP parsing logic to Guzzle\Http\Parsers. Allows for faster C implementations if needed. -* [BC] Changing the Guzzle\Http\Message\Response::setProtocol() method to accept a protocol and version in separate args. -* [BC] Moving ResourceIterator* to Guzzle\Service\Resource -* [BC] Completely refactored ResourceIterators to iterate over a cloned command object -* [BC] Moved Guzzle\Http\UriTemplate to Guzzle\Http\Parser\UriTemplate\UriTemplate -* [BC] Guzzle\Guzzle is now deprecated -* Moving Guzzle\Common\Guzzle::inject to Guzzle\Common\Collection::inject -* Adding Guzzle\Version class to give version information about Guzzle -* Adding Guzzle\Http\Utils class to provide getDefaultUserAgent() and getHttpDate() -* Adding Guzzle\Curl\CurlVersion to manage caching curl_version() data -* ServiceDescription and ServiceBuilder are now cacheable using similar configs -* Changing the format of XML and JSON service builder configs. Backwards compatible. -* Cleaned up Cookie parsing -* Trimming the default Guzzle User-Agent header -* Adding a setOnComplete() method to Commands that is called when a command completes -* Keeping track of requests that were mocked in the MockPlugin -* Fixed a caching bug in the CacheAdapterFactory -* Inspector objects can be injected into a Command object -* Refactoring a lot of code and tests to be case insensitive when dealing with headers -* Adding Guzzle\Http\Message\HeaderComparison for easy comparison of HTTP headers using a DSL -* Adding the ability to set global option overrides to service builder configs -* Adding the ability to include other service builder config files from within XML and JSON files -* Moving the parseQuery method out of Url and on to QueryString::fromString() as a static factory method. - -## 2.5.0 - 2012-05-08 - -* Major performance improvements -* [BC] Simplifying Guzzle\Common\Collection. Please check to see if you are using features that are now deprecated. -* [BC] Using a custom validation system that allows a flyweight implementation for much faster validation. No longer using Symfony2 Validation component. -* [BC] No longer supporting "{{ }}" for injecting into command or UriTemplates. Use "{}" -* Added the ability to passed parameters to all requests created by a client -* Added callback functionality to the ExponentialBackoffPlugin -* Using microtime in ExponentialBackoffPlugin to allow more granular backoff strategies. -* Rewinding request stream bodies when retrying requests -* Exception is thrown when JSON response body cannot be decoded -* Added configurable magic method calls to clients and commands. This is off by default. -* Fixed a defect that added a hash to every parsed URL part -* Fixed duplicate none generation for OauthPlugin. -* Emitting an event each time a client is generated by a ServiceBuilder -* Using an ApiParams object instead of a Collection for parameters of an ApiCommand -* cache.* request parameters should be renamed to params.cache.* -* Added the ability to set arbitrary curl options on requests (disable_wire, progress, etc.). See CurlHandle. -* Added the ability to disable type validation of service descriptions -* ServiceDescriptions and ServiceBuilders are now Serializable diff --git a/vendor/guzzlehttp/guzzle/LICENSE b/vendor/guzzlehttp/guzzle/LICENSE deleted file mode 100644 index fd2375d..0000000 --- a/vendor/guzzlehttp/guzzle/LICENSE +++ /dev/null @@ -1,27 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2011 Michael Dowling -Copyright (c) 2012 Jeremy Lindblom -Copyright (c) 2014 Graham Campbell -Copyright (c) 2015 Márk Sági-Kazár -Copyright (c) 2015 Tobias Schultze -Copyright (c) 2016 Tobias Nyholm -Copyright (c) 2016 George Mponos - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/vendor/guzzlehttp/guzzle/README.md b/vendor/guzzlehttp/guzzle/README.md deleted file mode 100644 index cdaebee..0000000 --- a/vendor/guzzlehttp/guzzle/README.md +++ /dev/null @@ -1,94 +0,0 @@ -![Guzzle](.github/logo.png?raw=true) - -# Guzzle, PHP HTTP client - -[![Latest Version](https://img.shields.io/github/release/guzzle/guzzle.svg?style=flat-square)](https://github.com/guzzle/guzzle/releases) -[![Build Status](https://img.shields.io/github/actions/workflow/status/guzzle/guzzle/ci.yml?label=ci%20build&style=flat-square)](https://github.com/guzzle/guzzle/actions?query=workflow%3ACI) -[![Total Downloads](https://img.shields.io/packagist/dt/guzzlehttp/guzzle.svg?style=flat-square)](https://packagist.org/packages/guzzlehttp/guzzle) - -Guzzle is a PHP HTTP client that makes it easy to send HTTP requests and -trivial to integrate with web services. - -- Simple interface for building query strings, POST requests, streaming large - uploads, streaming large downloads, using HTTP cookies, uploading JSON data, - etc... -- Can send both synchronous and asynchronous requests using the same interface. -- Uses PSR-7 interfaces for requests, responses, and streams. This allows you - to utilize other PSR-7 compatible libraries with Guzzle. -- Supports PSR-18 allowing interoperability between other PSR-18 HTTP Clients. -- Abstracts away the underlying HTTP transport, allowing you to write - environment and transport agnostic code; i.e., no hard dependency on cURL, - PHP streams, sockets, or non-blocking event loops. -- Middleware system allows you to augment and compose client behavior. - -```php -$client = new \GuzzleHttp\Client(); -$response = $client->request('GET', 'https://api.github.com/repos/guzzle/guzzle'); - -echo $response->getStatusCode(); // 200 -echo $response->getHeaderLine('content-type'); // 'application/json; charset=utf8' -echo $response->getBody(); // '{"id": 1420053, "name": "guzzle", ...}' - -// Send an asynchronous request. -$request = new \GuzzleHttp\Psr7\Request('GET', 'http://httpbin.org'); -$promise = $client->sendAsync($request)->then(function ($response) { - echo 'I completed! ' . $response->getBody(); -}); - -$promise->wait(); -``` - -## Help and docs - -We use GitHub issues only to discuss bugs and new features. For support please refer to: - -- [Documentation](https://docs.guzzlephp.org) -- [Stack Overflow](https://stackoverflow.com/questions/tagged/guzzle) -- [#guzzle](https://app.slack.com/client/T0D2S9JCT/CE6UAAKL4) channel on [PHP-HTTP Slack](https://slack.httplug.io/) -- [Gitter](https://gitter.im/guzzle/guzzle) - - -## Installing Guzzle - -The recommended way to install Guzzle is through -[Composer](https://getcomposer.org/). - -```bash -composer require guzzlehttp/guzzle -``` - - -## Version Guidance - -| Version | Status | Packagist | Namespace | Repo | Docs | PSR-7 | PHP Version | -|---------|---------------------|---------------------|--------------|---------------------|---------------------|-------|--------------| -| 3.x | EOL (2016-10-31) | `guzzle/guzzle` | `Guzzle` | [v3][guzzle-3-repo] | [v3][guzzle-3-docs] | No | >=5.3.3,<7.0 | -| 4.x | EOL (2016-10-31) | `guzzlehttp/guzzle` | `GuzzleHttp` | [v4][guzzle-4-repo] | N/A | No | >=5.4,<7.0 | -| 5.x | EOL (2019-10-31) | `guzzlehttp/guzzle` | `GuzzleHttp` | [v5][guzzle-5-repo] | [v5][guzzle-5-docs] | No | >=5.4,<7.4 | -| 6.x | EOL (2023-10-31) | `guzzlehttp/guzzle` | `GuzzleHttp` | [v6][guzzle-6-repo] | [v6][guzzle-6-docs] | Yes | >=5.5,<8.0 | -| 7.x | Latest | `guzzlehttp/guzzle` | `GuzzleHttp` | [v7][guzzle-7-repo] | [v7][guzzle-7-docs] | Yes | >=7.2.5,<8.5 | - -[guzzle-3-repo]: https://github.com/guzzle/guzzle3 -[guzzle-4-repo]: https://github.com/guzzle/guzzle/tree/4.x -[guzzle-5-repo]: https://github.com/guzzle/guzzle/tree/5.3 -[guzzle-6-repo]: https://github.com/guzzle/guzzle/tree/6.5 -[guzzle-7-repo]: https://github.com/guzzle/guzzle -[guzzle-3-docs]: https://guzzle3.readthedocs.io/ -[guzzle-5-docs]: https://docs.guzzlephp.org/en/5.3/ -[guzzle-6-docs]: https://docs.guzzlephp.org/en/6.5/ -[guzzle-7-docs]: https://docs.guzzlephp.org/en/latest/ - - -## Security - -If you discover a security vulnerability within this package, please send an email to security@tidelift.com. All security vulnerabilities will be promptly addressed. Please do not disclose security-related issues publicly until a fix has been announced. Please see [Security Policy](https://github.com/guzzle/guzzle/security/policy) for more information. - -## License - -Guzzle is made available under the MIT License (MIT). Please see [License File](LICENSE) for more information. - -## For Enterprise - -Available as part of the Tidelift Subscription - -The maintainers of Guzzle and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/packagist-guzzlehttp-guzzle?utm_source=packagist-guzzlehttp-guzzle&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) diff --git a/vendor/guzzlehttp/guzzle/UPGRADING.md b/vendor/guzzlehttp/guzzle/UPGRADING.md deleted file mode 100644 index 4efbb59..0000000 --- a/vendor/guzzlehttp/guzzle/UPGRADING.md +++ /dev/null @@ -1,1253 +0,0 @@ -Guzzle Upgrade Guide -==================== - -6.0 to 7.0 ----------- - -In order to take advantage of the new features of PHP, Guzzle dropped the support -of PHP 5. The minimum supported PHP version is now PHP 7.2. Type hints and return -types for functions and methods have been added wherever possible. - -Please make sure: -- You are calling a function or a method with the correct type. -- If you extend a class of Guzzle; update all signatures on methods you override. - -#### Other backwards compatibility breaking changes - -- Class `GuzzleHttp\UriTemplate` is removed. -- Class `GuzzleHttp\Exception\SeekException` is removed. -- Classes `GuzzleHttp\Exception\BadResponseException`, `GuzzleHttp\Exception\ClientException`, - `GuzzleHttp\Exception\ServerException` can no longer be initialized with an empty - Response as argument. -- Class `GuzzleHttp\Exception\ConnectException` now extends `GuzzleHttp\Exception\TransferException` - instead of `GuzzleHttp\Exception\RequestException`. -- Function `GuzzleHttp\Exception\ConnectException::getResponse()` is removed. -- Function `GuzzleHttp\Exception\ConnectException::hasResponse()` is removed. -- Constant `GuzzleHttp\ClientInterface::VERSION` is removed. Added `GuzzleHttp\ClientInterface::MAJOR_VERSION` instead. -- Function `GuzzleHttp\Exception\RequestException::getResponseBodySummary` is removed. - Use `\GuzzleHttp\Psr7\get_message_body_summary` as an alternative. -- Function `GuzzleHttp\Cookie\CookieJar::getCookieValue` is removed. -- Request option `exceptions` is removed. Please use `http_errors`. -- Request option `save_to` is removed. Please use `sink`. -- Pool option `pool_size` is removed. Please use `concurrency`. -- We now look for environment variables in the `$_SERVER` super global, due to thread safety issues with `getenv`. We continue to fallback to `getenv` in CLI environments, for maximum compatibility. -- The `get`, `head`, `put`, `post`, `patch`, `delete`, `getAsync`, `headAsync`, `putAsync`, `postAsync`, `patchAsync`, and `deleteAsync` methods are now implemented as genuine methods on `GuzzleHttp\Client`, with strong typing. The original `__call` implementation remains unchanged for now, for maximum backwards compatibility, but won't be invoked under normal operation. -- The `log` middleware will log the errors with level `error` instead of `notice` -- Support for international domain names (IDN) is now disabled by default, and enabling it requires installing ext-intl, linked against a modern version of the C library (ICU 4.6 or higher). - -#### Native functions calls - -All internal native functions calls of Guzzle are now prefixed with a slash. This -change makes it impossible for method overloading by other libraries or applications. -Example: - -```php -// Before: -curl_version(); - -// After: -\curl_version(); -``` - -For the full diff you can check [here](https://github.com/guzzle/guzzle/compare/6.5.4..master). - -5.0 to 6.0 ----------- - -Guzzle now uses [PSR-7](https://www.php-fig.org/psr/psr-7/) for HTTP messages. -Due to the fact that these messages are immutable, this prompted a refactoring -of Guzzle to use a middleware based system rather than an event system. Any -HTTP message interaction (e.g., `GuzzleHttp\Message\Request`) need to be -updated to work with the new immutable PSR-7 request and response objects. Any -event listeners or subscribers need to be updated to become middleware -functions that wrap handlers (or are injected into a -`GuzzleHttp\HandlerStack`). - -- Removed `GuzzleHttp\BatchResults` -- Removed `GuzzleHttp\Collection` -- Removed `GuzzleHttp\HasDataTrait` -- Removed `GuzzleHttp\ToArrayInterface` -- The `guzzlehttp/streams` dependency has been removed. Stream functionality - is now present in the `GuzzleHttp\Psr7` namespace provided by the - `guzzlehttp/psr7` package. -- Guzzle no longer uses ReactPHP promises and now uses the - `guzzlehttp/promises` library. We use a custom promise library for three - significant reasons: - 1. React promises (at the time of writing this) are recursive. Promise - chaining and promise resolution will eventually blow the stack. Guzzle - promises are not recursive as they use a sort of trampolining technique. - Note: there has been movement in the React project to modify promises to - no longer utilize recursion. - 2. Guzzle needs to have the ability to synchronously block on a promise to - wait for a result. Guzzle promises allows this functionality (and does - not require the use of recursion). - 3. Because we need to be able to wait on a result, doing so using React - promises requires wrapping react promises with RingPHP futures. This - overhead is no longer needed, reducing stack sizes, reducing complexity, - and improving performance. -- `GuzzleHttp\Mimetypes` has been moved to a function in - `GuzzleHttp\Psr7\mimetype_from_extension` and - `GuzzleHttp\Psr7\mimetype_from_filename`. -- `GuzzleHttp\Query` and `GuzzleHttp\QueryParser` have been removed. Query - strings must now be passed into request objects as strings, or provided to - the `query` request option when creating requests with clients. The `query` - option uses PHP's `http_build_query` to convert an array to a string. If you - need a different serialization technique, you will need to pass the query - string in as a string. There are a couple helper functions that will make - working with query strings easier: `GuzzleHttp\Psr7\parse_query` and - `GuzzleHttp\Psr7\build_query`. -- Guzzle no longer has a dependency on RingPHP. Due to the use of a middleware - system based on PSR-7, using RingPHP and it's middleware system as well adds - more complexity than the benefits it provides. All HTTP handlers that were - present in RingPHP have been modified to work directly with PSR-7 messages - and placed in the `GuzzleHttp\Handler` namespace. This significantly reduces - complexity in Guzzle, removes a dependency, and improves performance. RingPHP - will be maintained for Guzzle 5 support, but will no longer be a part of - Guzzle 6. -- As Guzzle now uses a middleware based systems the event system and RingPHP - integration has been removed. Note: while the event system has been removed, - it is possible to add your own type of event system that is powered by the - middleware system. - - Removed the `Event` namespace. - - Removed the `Subscriber` namespace. - - Removed `Transaction` class - - Removed `RequestFsm` - - Removed `RingBridge` - - `GuzzleHttp\Subscriber\Cookie` is now provided by - `GuzzleHttp\Middleware::cookies` - - `GuzzleHttp\Subscriber\HttpError` is now provided by - `GuzzleHttp\Middleware::httpError` - - `GuzzleHttp\Subscriber\History` is now provided by - `GuzzleHttp\Middleware::history` - - `GuzzleHttp\Subscriber\Mock` is now provided by - `GuzzleHttp\Handler\MockHandler` - - `GuzzleHttp\Subscriber\Prepare` is now provided by - `GuzzleHttp\PrepareBodyMiddleware` - - `GuzzleHttp\Subscriber\Redirect` is now provided by - `GuzzleHttp\RedirectMiddleware` -- Guzzle now uses `Psr\Http\Message\UriInterface` (implements in - `GuzzleHttp\Psr7\Uri`) for URI support. `GuzzleHttp\Url` is now gone. -- Static functions in `GuzzleHttp\Utils` have been moved to namespaced - functions under the `GuzzleHttp` namespace. This requires either a Composer - based autoloader or you to include functions.php. -- `GuzzleHttp\ClientInterface::getDefaultOption` has been renamed to - `GuzzleHttp\ClientInterface::getConfig`. -- `GuzzleHttp\ClientInterface::setDefaultOption` has been removed. -- The `json` and `xml` methods of response objects has been removed. With the - migration to strictly adhering to PSR-7 as the interface for Guzzle messages, - adding methods to message interfaces would actually require Guzzle messages - to extend from PSR-7 messages rather then work with them directly. - -## Migrating to middleware - -The change to PSR-7 unfortunately required significant refactoring to Guzzle -due to the fact that PSR-7 messages are immutable. Guzzle 5 relied on an event -system from plugins. The event system relied on mutability of HTTP messages and -side effects in order to work. With immutable messages, you have to change your -workflow to become more about either returning a value (e.g., functional -middlewares) or setting a value on an object. Guzzle v6 has chosen the -functional middleware approach. - -Instead of using the event system to listen for things like the `before` event, -you now create a stack based middleware function that intercepts a request on -the way in and the promise of the response on the way out. This is a much -simpler and more predictable approach than the event system and works nicely -with PSR-7 middleware. Due to the use of promises, the middleware system is -also asynchronous. - -v5: - -```php -use GuzzleHttp\Event\BeforeEvent; -$client = new GuzzleHttp\Client(); -// Get the emitter and listen to the before event. -$client->getEmitter()->on('before', function (BeforeEvent $e) { - // Guzzle v5 events relied on mutation - $e->getRequest()->setHeader('X-Foo', 'Bar'); -}); -``` - -v6: - -In v6, you can modify the request before it is sent using the `mapRequest` -middleware. The idiomatic way in v6 to modify the request/response lifecycle is -to setup a handler middleware stack up front and inject the handler into a -client. - -```php -use GuzzleHttp\Middleware; -// Create a handler stack that has all of the default middlewares attached -$handler = GuzzleHttp\HandlerStack::create(); -// Push the handler onto the handler stack -$handler->push(Middleware::mapRequest(function (RequestInterface $request) { - // Notice that we have to return a request object - return $request->withHeader('X-Foo', 'Bar'); -})); -// Inject the handler into the client -$client = new GuzzleHttp\Client(['handler' => $handler]); -``` - -## POST Requests - -This version added the [`form_params`](https://docs.guzzlephp.org/en/latest/request-options.html#form_params) -and `multipart` request options. `form_params` is an associative array of -strings or array of strings and is used to serialize an -`application/x-www-form-urlencoded` POST request. The -[`multipart`](https://docs.guzzlephp.org/en/latest/request-options.html#multipart) -option is now used to send a multipart/form-data POST request. - -`GuzzleHttp\Post\PostFile` has been removed. Use the `multipart` option to add -POST files to a multipart/form-data request. - -The `body` option no longer accepts an array to send POST requests. Please use -`multipart` or `form_params` instead. - -The `base_url` option has been renamed to `base_uri`. - -4.x to 5.0 ----------- - -## Rewritten Adapter Layer - -Guzzle now uses [RingPHP](https://ringphp.readthedocs.org/en/latest) to send -HTTP requests. The `adapter` option in a `GuzzleHttp\Client` constructor -is still supported, but it has now been renamed to `handler`. Instead of -passing a `GuzzleHttp\Adapter\AdapterInterface`, you must now pass a PHP -`callable` that follows the RingPHP specification. - -## Removed Fluent Interfaces - -[Fluent interfaces were removed](https://ocramius.github.io/blog/fluent-interfaces-are-evil/) -from the following classes: - -- `GuzzleHttp\Collection` -- `GuzzleHttp\Url` -- `GuzzleHttp\Query` -- `GuzzleHttp\Post\PostBody` -- `GuzzleHttp\Cookie\SetCookie` - -## Removed functions.php - -Removed "functions.php", so that Guzzle is truly PSR-4 compliant. The following -functions can be used as replacements. - -- `GuzzleHttp\json_decode` -> `GuzzleHttp\Utils::jsonDecode` -- `GuzzleHttp\get_path` -> `GuzzleHttp\Utils::getPath` -- `GuzzleHttp\Utils::setPath` -> `GuzzleHttp\set_path` -- `GuzzleHttp\Pool::batch` -> `GuzzleHttp\batch`. This function is, however, - deprecated in favor of using `GuzzleHttp\Pool::batch()`. - -The "procedural" global client has been removed with no replacement (e.g., -`GuzzleHttp\get()`, `GuzzleHttp\post()`, etc.). Use a `GuzzleHttp\Client` -object as a replacement. - -## `throwImmediately` has been removed - -The concept of "throwImmediately" has been removed from exceptions and error -events. This control mechanism was used to stop a transfer of concurrent -requests from completing. This can now be handled by throwing the exception or -by cancelling a pool of requests or each outstanding future request -individually. - -## headers event has been removed - -Removed the "headers" event. This event was only useful for changing the -body a response once the headers of the response were known. You can implement -a similar behavior in a number of ways. One example might be to use a -FnStream that has access to the transaction being sent. For example, when the -first byte is written, you could check if the response headers match your -expectations, and if so, change the actual stream body that is being -written to. - -## Updates to HTTP Messages - -Removed the `asArray` parameter from -`GuzzleHttp\Message\MessageInterface::getHeader`. If you want to get a header -value as an array, then use the newly added `getHeaderAsArray()` method of -`MessageInterface`. This change makes the Guzzle interfaces compatible with -the PSR-7 interfaces. - -3.x to 4.0 ----------- - -## Overarching changes: - -- Now requires PHP 5.4 or greater. -- No longer requires cURL to send requests. -- Guzzle no longer wraps every exception it throws. Only exceptions that are - recoverable are now wrapped by Guzzle. -- Various namespaces have been removed or renamed. -- No longer requiring the Symfony EventDispatcher. A custom event dispatcher - based on the Symfony EventDispatcher is - now utilized in `GuzzleHttp\Event\EmitterInterface` (resulting in significant - speed and functionality improvements). - -Changes per Guzzle 3.x namespace are described below. - -## Batch - -The `Guzzle\Batch` namespace has been removed. This is best left to -third-parties to implement on top of Guzzle's core HTTP library. - -## Cache - -The `Guzzle\Cache` namespace has been removed. (Todo: No suitable replacement -has been implemented yet, but hoping to utilize a PSR cache interface). - -## Common - -- Removed all of the wrapped exceptions. It's better to use the standard PHP - library for unrecoverable exceptions. -- `FromConfigInterface` has been removed. -- `Guzzle\Common\Version` has been removed. The VERSION constant can be found - at `GuzzleHttp\ClientInterface::VERSION`. - -### Collection - -- `getAll` has been removed. Use `toArray` to convert a collection to an array. -- `inject` has been removed. -- `keySearch` has been removed. -- `getPath` no longer supports wildcard expressions. Use something better like - JMESPath for this. -- `setPath` now supports appending to an existing array via the `[]` notation. - -### Events - -Guzzle no longer requires Symfony's EventDispatcher component. Guzzle now uses -`GuzzleHttp\Event\Emitter`. - -- `Symfony\Component\EventDispatcher\EventDispatcherInterface` is replaced by - `GuzzleHttp\Event\EmitterInterface`. -- `Symfony\Component\EventDispatcher\EventDispatcher` is replaced by - `GuzzleHttp\Event\Emitter`. -- `Symfony\Component\EventDispatcher\Event` is replaced by - `GuzzleHttp\Event\Event`, and Guzzle now has an EventInterface in - `GuzzleHttp\Event\EventInterface`. -- `AbstractHasDispatcher` has moved to a trait, `HasEmitterTrait`, and - `HasDispatcherInterface` has moved to `HasEmitterInterface`. Retrieving the - event emitter of a request, client, etc. now uses the `getEmitter` method - rather than the `getDispatcher` method. - -#### Emitter - -- Use the `once()` method to add a listener that automatically removes itself - the first time it is invoked. -- Use the `listeners()` method to retrieve a list of event listeners rather than - the `getListeners()` method. -- Use `emit()` instead of `dispatch()` to emit an event from an emitter. -- Use `attach()` instead of `addSubscriber()` and `detach()` instead of - `removeSubscriber()`. - -```php -$mock = new Mock(); -// 3.x -$request->getEventDispatcher()->addSubscriber($mock); -$request->getEventDispatcher()->removeSubscriber($mock); -// 4.x -$request->getEmitter()->attach($mock); -$request->getEmitter()->detach($mock); -``` - -Use the `on()` method to add a listener rather than the `addListener()` method. - -```php -// 3.x -$request->getEventDispatcher()->addListener('foo', function (Event $event) { /* ... */ } ); -// 4.x -$request->getEmitter()->on('foo', function (Event $event, $name) { /* ... */ } ); -``` - -## Http - -### General changes - -- The cacert.pem certificate has been moved to `src/cacert.pem`. -- Added the concept of adapters that are used to transfer requests over the - wire. -- Simplified the event system. -- Sending requests in parallel is still possible, but batching is no longer a - concept of the HTTP layer. Instead, you must use the `complete` and `error` - events to asynchronously manage parallel request transfers. -- `Guzzle\Http\Url` has moved to `GuzzleHttp\Url`. -- `Guzzle\Http\QueryString` has moved to `GuzzleHttp\Query`. -- QueryAggregators have been rewritten so that they are simply callable - functions. -- `GuzzleHttp\StaticClient` has been removed. Use the functions provided in - `functions.php` for an easy to use static client instance. -- Exceptions in `GuzzleHttp\Exception` have been updated to all extend from - `GuzzleHttp\Exception\TransferException`. - -### Client - -Calling methods like `get()`, `post()`, `head()`, etc. no longer create and -return a request, but rather creates a request, sends the request, and returns -the response. - -```php -// 3.0 -$request = $client->get('/'); -$response = $request->send(); - -// 4.0 -$response = $client->get('/'); - -// or, to mirror the previous behavior -$request = $client->createRequest('GET', '/'); -$response = $client->send($request); -``` - -`GuzzleHttp\ClientInterface` has changed. - -- The `send` method no longer accepts more than one request. Use `sendAll` to - send multiple requests in parallel. -- `setUserAgent()` has been removed. Use a default request option instead. You - could, for example, do something like: - `$client->setConfig('defaults/headers/User-Agent', 'Foo/Bar ' . $client::getDefaultUserAgent())`. -- `setSslVerification()` has been removed. Use default request options instead, - like `$client->setConfig('defaults/verify', true)`. - -`GuzzleHttp\Client` has changed. - -- The constructor now accepts only an associative array. You can include a - `base_url` string or array to use a URI template as the base URL of a client. - You can also specify a `defaults` key that is an associative array of default - request options. You can pass an `adapter` to use a custom adapter, - `batch_adapter` to use a custom adapter for sending requests in parallel, or - a `message_factory` to change the factory used to create HTTP requests and - responses. -- The client no longer emits a `client.create_request` event. -- Creating requests with a client no longer automatically utilize a URI - template. You must pass an array into a creational method (e.g., - `createRequest`, `get`, `put`, etc.) in order to expand a URI template. - -### Messages - -Messages no longer have references to their counterparts (i.e., a request no -longer has a reference to it's response, and a response no loger has a -reference to its request). This association is now managed through a -`GuzzleHttp\Adapter\TransactionInterface` object. You can get references to -these transaction objects using request events that are emitted over the -lifecycle of a request. - -#### Requests with a body - -- `GuzzleHttp\Message\EntityEnclosingRequest` and - `GuzzleHttp\Message\EntityEnclosingRequestInterface` have been removed. The - separation between requests that contain a body and requests that do not - contain a body has been removed, and now `GuzzleHttp\Message\RequestInterface` - handles both use cases. -- Any method that previously accepts a `GuzzleHttp\Response` object now accept a - `GuzzleHttp\Message\ResponseInterface`. -- `GuzzleHttp\Message\RequestFactoryInterface` has been renamed to - `GuzzleHttp\Message\MessageFactoryInterface`. This interface is used to create - both requests and responses and is implemented in - `GuzzleHttp\Message\MessageFactory`. -- POST field and file methods have been removed from the request object. You - must now use the methods made available to `GuzzleHttp\Post\PostBodyInterface` - to control the format of a POST body. Requests that are created using a - standard `GuzzleHttp\Message\MessageFactoryInterface` will automatically use - a `GuzzleHttp\Post\PostBody` body if the body was passed as an array or if - the method is POST and no body is provided. - -```php -$request = $client->createRequest('POST', '/'); -$request->getBody()->setField('foo', 'bar'); -$request->getBody()->addFile(new PostFile('file_key', fopen('/path/to/content', 'r'))); -``` - -#### Headers - -- `GuzzleHttp\Message\Header` has been removed. Header values are now simply - represented by an array of values or as a string. Header values are returned - as a string by default when retrieving a header value from a message. You can - pass an optional argument of `true` to retrieve a header value as an array - of strings instead of a single concatenated string. -- `GuzzleHttp\PostFile` and `GuzzleHttp\PostFileInterface` have been moved to - `GuzzleHttp\Post`. This interface has been simplified and now allows the - addition of arbitrary headers. -- Custom headers like `GuzzleHttp\Message\Header\Link` have been removed. Most - of the custom headers are now handled separately in specific - subscribers/plugins, and `GuzzleHttp\Message\HeaderValues::parseParams()` has - been updated to properly handle headers that contain parameters (like the - `Link` header). - -#### Responses - -- `GuzzleHttp\Message\Response::getInfo()` and - `GuzzleHttp\Message\Response::setInfo()` have been removed. Use the event - system to retrieve this type of information. -- `GuzzleHttp\Message\Response::getRawHeaders()` has been removed. -- `GuzzleHttp\Message\Response::getMessage()` has been removed. -- `GuzzleHttp\Message\Response::calculateAge()` and other cache specific - methods have moved to the CacheSubscriber. -- Header specific helper functions like `getContentMd5()` have been removed. - Just use `getHeader('Content-MD5')` instead. -- `GuzzleHttp\Message\Response::setRequest()` and - `GuzzleHttp\Message\Response::getRequest()` have been removed. Use the event - system to work with request and response objects as a transaction. -- `GuzzleHttp\Message\Response::getRedirectCount()` has been removed. Use the - Redirect subscriber instead. -- `GuzzleHttp\Message\Response::isSuccessful()` and other related methods have - been removed. Use `getStatusCode()` instead. - -#### Streaming responses - -Streaming requests can now be created by a client directly, returning a -`GuzzleHttp\Message\ResponseInterface` object that contains a body stream -referencing an open PHP HTTP stream. - -```php -// 3.0 -use Guzzle\Stream\PhpStreamRequestFactory; -$request = $client->get('/'); -$factory = new PhpStreamRequestFactory(); -$stream = $factory->fromRequest($request); -$data = $stream->read(1024); - -// 4.0 -$response = $client->get('/', ['stream' => true]); -// Read some data off of the stream in the response body -$data = $response->getBody()->read(1024); -``` - -#### Redirects - -The `configureRedirects()` method has been removed in favor of a -`allow_redirects` request option. - -```php -// Standard redirects with a default of a max of 5 redirects -$request = $client->createRequest('GET', '/', ['allow_redirects' => true]); - -// Strict redirects with a custom number of redirects -$request = $client->createRequest('GET', '/', [ - 'allow_redirects' => ['max' => 5, 'strict' => true] -]); -``` - -#### EntityBody - -EntityBody interfaces and classes have been removed or moved to -`GuzzleHttp\Stream`. All classes and interfaces that once required -`GuzzleHttp\EntityBodyInterface` now require -`GuzzleHttp\Stream\StreamInterface`. Creating a new body for a request no -longer uses `GuzzleHttp\EntityBody::factory` but now uses -`GuzzleHttp\Stream\Stream::factory` or even better: -`GuzzleHttp\Stream\create()`. - -- `Guzzle\Http\EntityBodyInterface` is now `GuzzleHttp\Stream\StreamInterface` -- `Guzzle\Http\EntityBody` is now `GuzzleHttp\Stream\Stream` -- `Guzzle\Http\CachingEntityBody` is now `GuzzleHttp\Stream\CachingStream` -- `Guzzle\Http\ReadLimitEntityBody` is now `GuzzleHttp\Stream\LimitStream` -- `Guzzle\Http\IoEmittyinEntityBody` has been removed. - -#### Request lifecycle events - -Requests previously submitted a large number of requests. The number of events -emitted over the lifecycle of a request has been significantly reduced to make -it easier to understand how to extend the behavior of a request. All events -emitted during the lifecycle of a request now emit a custom -`GuzzleHttp\Event\EventInterface` object that contains context providing -methods and a way in which to modify the transaction at that specific point in -time (e.g., intercept the request and set a response on the transaction). - -- `request.before_send` has been renamed to `before` and now emits a - `GuzzleHttp\Event\BeforeEvent` -- `request.complete` has been renamed to `complete` and now emits a - `GuzzleHttp\Event\CompleteEvent`. -- `request.sent` has been removed. Use `complete`. -- `request.success` has been removed. Use `complete`. -- `error` is now an event that emits a `GuzzleHttp\Event\ErrorEvent`. -- `request.exception` has been removed. Use `error`. -- `request.receive.status_line` has been removed. -- `curl.callback.progress` has been removed. Use a custom `StreamInterface` to - maintain a status update. -- `curl.callback.write` has been removed. Use a custom `StreamInterface` to - intercept writes. -- `curl.callback.read` has been removed. Use a custom `StreamInterface` to - intercept reads. - -`headers` is a new event that is emitted after the response headers of a -request have been received before the body of the response is downloaded. This -event emits a `GuzzleHttp\Event\HeadersEvent`. - -You can intercept a request and inject a response using the `intercept()` event -of a `GuzzleHttp\Event\BeforeEvent`, `GuzzleHttp\Event\CompleteEvent`, and -`GuzzleHttp\Event\ErrorEvent` event. - -See: https://docs.guzzlephp.org/en/latest/events.html - -## Inflection - -The `Guzzle\Inflection` namespace has been removed. This is not a core concern -of Guzzle. - -## Iterator - -The `Guzzle\Iterator` namespace has been removed. - -- `Guzzle\Iterator\AppendIterator`, `Guzzle\Iterator\ChunkedIterator`, and - `Guzzle\Iterator\MethodProxyIterator` are nice, but not a core requirement of - Guzzle itself. -- `Guzzle\Iterator\FilterIterator` is no longer needed because an equivalent - class is shipped with PHP 5.4. -- `Guzzle\Iterator\MapIterator` is not really needed when using PHP 5.5 because - it's easier to just wrap an iterator in a generator that maps values. - -For a replacement of these iterators, see https://github.com/nikic/iter - -## Log - -The LogPlugin has moved to https://github.com/guzzle/log-subscriber. The -`Guzzle\Log` namespace has been removed. Guzzle now relies on -`Psr\Log\LoggerInterface` for all logging. The MessageFormatter class has been -moved to `GuzzleHttp\Subscriber\Log\Formatter`. - -## Parser - -The `Guzzle\Parser` namespace has been removed. This was previously used to -make it possible to plug in custom parsers for cookies, messages, URI -templates, and URLs; however, this level of complexity is not needed in Guzzle -so it has been removed. - -- Cookie: Cookie parsing logic has been moved to - `GuzzleHttp\Cookie\SetCookie::fromString`. -- Message: Message parsing logic for both requests and responses has been moved - to `GuzzleHttp\Message\MessageFactory::fromMessage`. Message parsing is only - used in debugging or deserializing messages, so it doesn't make sense for - Guzzle as a library to add this level of complexity to parsing messages. -- UriTemplate: URI template parsing has been moved to - `GuzzleHttp\UriTemplate`. The Guzzle library will automatically use the PECL - URI template library if it is installed. -- Url: URL parsing is now performed in `GuzzleHttp\Url::fromString` (previously - it was `Guzzle\Http\Url::factory()`). If custom URL parsing is necessary, - then developers are free to subclass `GuzzleHttp\Url`. - -## Plugin - -The `Guzzle\Plugin` namespace has been renamed to `GuzzleHttp\Subscriber`. -Several plugins are shipping with the core Guzzle library under this namespace. - -- `GuzzleHttp\Subscriber\Cookie`: Replaces the old CookiePlugin. Cookie jar - code has moved to `GuzzleHttp\Cookie`. -- `GuzzleHttp\Subscriber\History`: Replaces the old HistoryPlugin. -- `GuzzleHttp\Subscriber\HttpError`: Throws errors when a bad HTTP response is - received. -- `GuzzleHttp\Subscriber\Mock`: Replaces the old MockPlugin. -- `GuzzleHttp\Subscriber\Prepare`: Prepares the body of a request just before - sending. This subscriber is attached to all requests by default. -- `GuzzleHttp\Subscriber\Redirect`: Replaces the RedirectPlugin. - -The following plugins have been removed (third-parties are free to re-implement -these if needed): - -- `GuzzleHttp\Plugin\Async` has been removed. -- `GuzzleHttp\Plugin\CurlAuth` has been removed. -- `GuzzleHttp\Plugin\ErrorResponse\ErrorResponsePlugin` has been removed. This - functionality should instead be implemented with event listeners that occur - after normal response parsing occurs in the guzzle/command package. - -The following plugins are not part of the core Guzzle package, but are provided -in separate repositories: - -- `Guzzle\Http\Plugin\BackoffPlugin` has been rewritten to be much simpler - to build custom retry policies using simple functions rather than various - chained classes. See: https://github.com/guzzle/retry-subscriber -- `Guzzle\Http\Plugin\Cache\CachePlugin` has moved to - https://github.com/guzzle/cache-subscriber -- `Guzzle\Http\Plugin\Log\LogPlugin` has moved to - https://github.com/guzzle/log-subscriber -- `Guzzle\Http\Plugin\Md5\Md5Plugin` has moved to - https://github.com/guzzle/message-integrity-subscriber -- `Guzzle\Http\Plugin\Mock\MockPlugin` has moved to - `GuzzleHttp\Subscriber\MockSubscriber`. -- `Guzzle\Http\Plugin\Oauth\OauthPlugin` has moved to - https://github.com/guzzle/oauth-subscriber - -## Service - -The service description layer of Guzzle has moved into two separate packages: - -- https://github.com/guzzle/command Provides a high level abstraction over web - services by representing web service operations using commands. -- https://github.com/guzzle/guzzle-services Provides an implementation of - guzzle/command that provides request serialization and response parsing using - Guzzle service descriptions. - -## Stream - -Stream have moved to a separate package available at -https://github.com/guzzle/streams. - -`Guzzle\Stream\StreamInterface` has been given a large update to cleanly take -on the responsibilities of `Guzzle\Http\EntityBody` and -`Guzzle\Http\EntityBodyInterface` now that they have been removed. The number -of methods implemented by the `StreamInterface` has been drastically reduced to -allow developers to more easily extend and decorate stream behavior. - -## Removed methods from StreamInterface - -- `getStream` and `setStream` have been removed to better encapsulate streams. -- `getMetadata` and `setMetadata` have been removed in favor of - `GuzzleHttp\Stream\MetadataStreamInterface`. -- `getWrapper`, `getWrapperData`, `getStreamType`, and `getUri` have all been - removed. This data is accessible when - using streams that implement `GuzzleHttp\Stream\MetadataStreamInterface`. -- `rewind` has been removed. Use `seek(0)` for a similar behavior. - -## Renamed methods - -- `detachStream` has been renamed to `detach`. -- `feof` has been renamed to `eof`. -- `ftell` has been renamed to `tell`. -- `readLine` has moved from an instance method to a static class method of - `GuzzleHttp\Stream\Stream`. - -## Metadata streams - -`GuzzleHttp\Stream\MetadataStreamInterface` has been added to denote streams -that contain additional metadata accessible via `getMetadata()`. -`GuzzleHttp\Stream\StreamInterface::getMetadata` and -`GuzzleHttp\Stream\StreamInterface::setMetadata` have been removed. - -## StreamRequestFactory - -The entire concept of the StreamRequestFactory has been removed. The way this -was used in Guzzle 3 broke the actual interface of sending streaming requests -(instead of getting back a Response, you got a StreamInterface). Streaming -PHP requests are now implemented through the `GuzzleHttp\Adapter\StreamAdapter`. - -3.6 to 3.7 ----------- - -### Deprecations - -- You can now enable E_USER_DEPRECATED warnings to see if you are using any deprecated methods.: - -```php -\Guzzle\Common\Version::$emitWarnings = true; -``` - -The following APIs and options have been marked as deprecated: - -- Marked `Guzzle\Http\Message\Request::isResponseBodyRepeatable()` as deprecated. Use `$request->getResponseBody()->isRepeatable()` instead. -- Marked `Guzzle\Http\Message\Request::canCache()` as deprecated. Use `Guzzle\Plugin\Cache\DefaultCanCacheStrategy->canCacheRequest()` instead. -- Marked `Guzzle\Http\Message\Request::canCache()` as deprecated. Use `Guzzle\Plugin\Cache\DefaultCanCacheStrategy->canCacheRequest()` instead. -- Marked `Guzzle\Http\Message\Request::setIsRedirect()` as deprecated. Use the HistoryPlugin instead. -- Marked `Guzzle\Http\Message\Request::isRedirect()` as deprecated. Use the HistoryPlugin instead. -- Marked `Guzzle\Cache\CacheAdapterFactory::factory()` as deprecated -- Marked `Guzzle\Service\Client::enableMagicMethods()` as deprecated. Magic methods can no longer be disabled on a Guzzle\Service\Client. -- Marked `Guzzle\Parser\Url\UrlParser` as deprecated. Just use PHP's `parse_url()` and percent encode your UTF-8. -- Marked `Guzzle\Common\Collection::inject()` as deprecated. -- Marked `Guzzle\Plugin\CurlAuth\CurlAuthPlugin` as deprecated. Use - `$client->getConfig()->setPath('request.options/auth', array('user', 'pass', 'Basic|Digest|NTLM|Any'));` or - `$client->setDefaultOption('auth', array('user', 'pass', 'Basic|Digest|NTLM|Any'));` - -3.7 introduces `request.options` as a parameter for a client configuration and as an optional argument to all creational -request methods. When paired with a client's configuration settings, these options allow you to specify default settings -for various aspects of a request. Because these options make other previous configuration options redundant, several -configuration options and methods of a client and AbstractCommand have been deprecated. - -- Marked `Guzzle\Service\Client::getDefaultHeaders()` as deprecated. Use `$client->getDefaultOption('headers')`. -- Marked `Guzzle\Service\Client::setDefaultHeaders()` as deprecated. Use `$client->setDefaultOption('headers/{header_name}', 'value')`. -- Marked 'request.params' for `Guzzle\Http\Client` as deprecated. Use `$client->setDefaultOption('params/{param_name}', 'value')` -- Marked 'command.headers', 'command.response_body' and 'command.on_complete' as deprecated for AbstractCommand. These will work through Guzzle 4.0 - - $command = $client->getCommand('foo', array( - 'command.headers' => array('Test' => '123'), - 'command.response_body' => '/path/to/file' - )); - - // Should be changed to: - - $command = $client->getCommand('foo', array( - 'command.request_options' => array( - 'headers' => array('Test' => '123'), - 'save_as' => '/path/to/file' - ) - )); - -### Interface changes - -Additions and changes (you will need to update any implementations or subclasses you may have created): - -- Added an `$options` argument to the end of the following methods of `Guzzle\Http\ClientInterface`: - createRequest, head, delete, put, patch, post, options, prepareRequest -- Added an `$options` argument to the end of `Guzzle\Http\Message\Request\RequestFactoryInterface::createRequest()` -- Added an `applyOptions()` method to `Guzzle\Http\Message\Request\RequestFactoryInterface` -- Changed `Guzzle\Http\ClientInterface::get($uri = null, $headers = null, $body = null)` to - `Guzzle\Http\ClientInterface::get($uri = null, $headers = null, $options = array())`. You can still pass in a - resource, string, or EntityBody into the $options parameter to specify the download location of the response. -- Changed `Guzzle\Common\Collection::__construct($data)` to no longer accepts a null value for `$data` but a - default `array()` -- Added `Guzzle\Stream\StreamInterface::isRepeatable` -- Made `Guzzle\Http\Client::expandTemplate` and `getUriTemplate` protected methods. - -The following methods were removed from interfaces. All of these methods are still available in the concrete classes -that implement them, but you should update your code to use alternative methods: - -- Removed `Guzzle\Http\ClientInterface::setDefaultHeaders(). Use - `$client->getConfig()->setPath('request.options/headers/{header_name}', 'value')`. or - `$client->getConfig()->setPath('request.options/headers', array('header_name' => 'value'))` or - `$client->setDefaultOption('headers/{header_name}', 'value')`. or - `$client->setDefaultOption('headers', array('header_name' => 'value'))`. -- Removed `Guzzle\Http\ClientInterface::getDefaultHeaders(). Use `$client->getConfig()->getPath('request.options/headers')`. -- Removed `Guzzle\Http\ClientInterface::expandTemplate()`. This is an implementation detail. -- Removed `Guzzle\Http\ClientInterface::setRequestFactory()`. This is an implementation detail. -- Removed `Guzzle\Http\ClientInterface::getCurlMulti()`. This is a very specific implementation detail. -- Removed `Guzzle\Http\Message\RequestInterface::canCache`. Use the CachePlugin. -- Removed `Guzzle\Http\Message\RequestInterface::setIsRedirect`. Use the HistoryPlugin. -- Removed `Guzzle\Http\Message\RequestInterface::isRedirect`. Use the HistoryPlugin. - -### Cache plugin breaking changes - -- CacheKeyProviderInterface and DefaultCacheKeyProvider are no longer used. All of this logic is handled in a - CacheStorageInterface. These two objects and interface will be removed in a future version. -- Always setting X-cache headers on cached responses -- Default cache TTLs are now handled by the CacheStorageInterface of a CachePlugin -- `CacheStorageInterface::cache($key, Response $response, $ttl = null)` has changed to `cache(RequestInterface - $request, Response $response);` -- `CacheStorageInterface::fetch($key)` has changed to `fetch(RequestInterface $request);` -- `CacheStorageInterface::delete($key)` has changed to `delete(RequestInterface $request);` -- Added `CacheStorageInterface::purge($url)` -- `DefaultRevalidation::__construct(CacheKeyProviderInterface $cacheKey, CacheStorageInterface $cache, CachePlugin - $plugin)` has changed to `DefaultRevalidation::__construct(CacheStorageInterface $cache, - CanCacheStrategyInterface $canCache = null)` -- Added `RevalidationInterface::shouldRevalidate(RequestInterface $request, Response $response)` - -3.5 to 3.6 ----------- - -* Mixed casing of headers are now forced to be a single consistent casing across all values for that header. -* Messages internally use a HeaderCollection object to delegate handling case-insensitive header resolution -* Removed the whole changedHeader() function system of messages because all header changes now go through addHeader(). - For example, setHeader() first removes the header using unset on a HeaderCollection and then calls addHeader(). - Keeping the Host header and URL host in sync is now handled by overriding the addHeader method in Request. -* Specific header implementations can be created for complex headers. When a message creates a header, it uses a - HeaderFactory which can map specific headers to specific header classes. There is now a Link header and - CacheControl header implementation. -* Moved getLinks() from Response to just be used on a Link header object. - -If you previously relied on Guzzle\Http\Message\Header::raw(), then you will need to update your code to use the -HeaderInterface (e.g. toArray(), getAll(), etc.). - -### Interface changes - -* Removed from interface: Guzzle\Http\ClientInterface::setUriTemplate -* Removed from interface: Guzzle\Http\ClientInterface::setCurlMulti() -* Removed Guzzle\Http\Message\Request::receivedRequestHeader() and implemented this functionality in - Guzzle\Http\Curl\RequestMediator -* Removed the optional $asString parameter from MessageInterface::getHeader(). Just cast the header to a string. -* Removed the optional $tryChunkedTransfer option from Guzzle\Http\Message\EntityEnclosingRequestInterface -* Removed the $asObjects argument from Guzzle\Http\Message\MessageInterface::getHeaders() - -### Removed deprecated functions - -* Removed Guzzle\Parser\ParserRegister::get(). Use getParser() -* Removed Guzzle\Parser\ParserRegister::set(). Use registerParser(). - -### Deprecations - -* The ability to case-insensitively search for header values -* Guzzle\Http\Message\Header::hasExactHeader -* Guzzle\Http\Message\Header::raw. Use getAll() -* Deprecated cache control specific methods on Guzzle\Http\Message\AbstractMessage. Use the CacheControl header object - instead. - -### Other changes - -* All response header helper functions return a string rather than mixing Header objects and strings inconsistently -* Removed cURL blacklist support. This is no longer necessary now that Expect, Accept, etc. are managed by Guzzle - directly via interfaces -* Removed the injecting of a request object onto a response object. The methods to get and set a request still exist - but are a no-op until removed. -* Most classes that used to require a `Guzzle\Service\Command\CommandInterface` typehint now request a - `Guzzle\Service\Command\ArrayCommandInterface`. -* Added `Guzzle\Http\Message\RequestInterface::startResponse()` to the RequestInterface to handle injecting a response - on a request while the request is still being transferred -* `Guzzle\Service\Command\CommandInterface` now extends from ToArrayInterface and ArrayAccess - -3.3 to 3.4 ----------- - -Base URLs of a client now follow the rules of https://datatracker.ietf.org/doc/html/rfc3986#section-5.2.2 when merging URLs. - -3.2 to 3.3 ----------- - -### Response::getEtag() quote stripping removed - -`Guzzle\Http\Message\Response::getEtag()` no longer strips quotes around the ETag response header - -### Removed `Guzzle\Http\Utils` - -The `Guzzle\Http\Utils` class was removed. This class was only used for testing. - -### Stream wrapper and type - -`Guzzle\Stream\Stream::getWrapper()` and `Guzzle\Stream\Stream::getStreamType()` are no longer converted to lowercase. - -### curl.emit_io became emit_io - -Emitting IO events from a RequestMediator is now a parameter that must be set in a request's curl options using the -'emit_io' key. This was previously set under a request's parameters using 'curl.emit_io' - -3.1 to 3.2 ----------- - -### CurlMulti is no longer reused globally - -Before 3.2, the same CurlMulti object was reused globally for each client. This can cause issue where plugins added -to a single client can pollute requests dispatched from other clients. - -If you still wish to reuse the same CurlMulti object with each client, then you can add a listener to the -ServiceBuilder's `service_builder.create_client` event to inject a custom CurlMulti object into each client as it is -created. - -```php -$multi = new Guzzle\Http\Curl\CurlMulti(); -$builder = Guzzle\Service\Builder\ServiceBuilder::factory('/path/to/config.json'); -$builder->addListener('service_builder.create_client', function ($event) use ($multi) { - $event['client']->setCurlMulti($multi); -} -}); -``` - -### No default path - -URLs no longer have a default path value of '/' if no path was specified. - -Before: - -```php -$request = $client->get('http://www.foo.com'); -echo $request->getUrl(); -// >> http://www.foo.com/ -``` - -After: - -```php -$request = $client->get('http://www.foo.com'); -echo $request->getUrl(); -// >> http://www.foo.com -``` - -### Less verbose BadResponseException - -The exception message for `Guzzle\Http\Exception\BadResponseException` no longer contains the full HTTP request and -response information. You can, however, get access to the request and response object by calling `getRequest()` or -`getResponse()` on the exception object. - -### Query parameter aggregation - -Multi-valued query parameters are no longer aggregated using a callback function. `Guzzle\Http\Query` now has a -setAggregator() method that accepts a `Guzzle\Http\QueryAggregator\QueryAggregatorInterface` object. This object is -responsible for handling the aggregation of multi-valued query string variables into a flattened hash. - -2.8 to 3.x ----------- - -### Guzzle\Service\Inspector - -Change `\Guzzle\Service\Inspector::fromConfig` to `\Guzzle\Common\Collection::fromConfig` - -**Before** - -```php -use Guzzle\Service\Inspector; - -class YourClient extends \Guzzle\Service\Client -{ - public static function factory($config = array()) - { - $default = array(); - $required = array('base_url', 'username', 'api_key'); - $config = Inspector::fromConfig($config, $default, $required); - - $client = new self( - $config->get('base_url'), - $config->get('username'), - $config->get('api_key') - ); - $client->setConfig($config); - - $client->setDescription(ServiceDescription::factory(__DIR__ . DIRECTORY_SEPARATOR . 'client.json')); - - return $client; - } -``` - -**After** - -```php -use Guzzle\Common\Collection; - -class YourClient extends \Guzzle\Service\Client -{ - public static function factory($config = array()) - { - $default = array(); - $required = array('base_url', 'username', 'api_key'); - $config = Collection::fromConfig($config, $default, $required); - - $client = new self( - $config->get('base_url'), - $config->get('username'), - $config->get('api_key') - ); - $client->setConfig($config); - - $client->setDescription(ServiceDescription::factory(__DIR__ . DIRECTORY_SEPARATOR . 'client.json')); - - return $client; - } -``` - -### Convert XML Service Descriptions to JSON - -**Before** - -```xml - - - - - - Get a list of groups - - - Uses a search query to get a list of groups - - - - Create a group - - - - - Delete a group by ID - - - - - - - Update a group - - - - - - -``` - -**After** - -```json -{ - "name": "Zendesk REST API v2", - "apiVersion": "2012-12-31", - "description":"Provides access to Zendesk views, groups, tickets, ticket fields, and users", - "operations": { - "list_groups": { - "httpMethod":"GET", - "uri": "groups.json", - "summary": "Get a list of groups" - }, - "search_groups":{ - "httpMethod":"GET", - "uri": "search.json?query=\"{query} type:group\"", - "summary": "Uses a search query to get a list of groups", - "parameters":{ - "query":{ - "location": "uri", - "description":"Zendesk Search Query", - "type": "string", - "required": true - } - } - }, - "create_group": { - "httpMethod":"POST", - "uri": "groups.json", - "summary": "Create a group", - "parameters":{ - "data": { - "type": "array", - "location": "body", - "description":"Group JSON", - "filters": "json_encode", - "required": true - }, - "Content-Type":{ - "type": "string", - "location":"header", - "static": "application/json" - } - } - }, - "delete_group": { - "httpMethod":"DELETE", - "uri": "groups/{id}.json", - "summary": "Delete a group", - "parameters":{ - "id":{ - "location": "uri", - "description":"Group to delete by ID", - "type": "integer", - "required": true - } - } - }, - "get_group": { - "httpMethod":"GET", - "uri": "groups/{id}.json", - "summary": "Get a ticket", - "parameters":{ - "id":{ - "location": "uri", - "description":"Group to get by ID", - "type": "integer", - "required": true - } - } - }, - "update_group": { - "httpMethod":"PUT", - "uri": "groups/{id}.json", - "summary": "Update a group", - "parameters":{ - "id": { - "location": "uri", - "description":"Group to update by ID", - "type": "integer", - "required": true - }, - "data": { - "type": "array", - "location": "body", - "description":"Group JSON", - "filters": "json_encode", - "required": true - }, - "Content-Type":{ - "type": "string", - "location":"header", - "static": "application/json" - } - } - } -} -``` - -### Guzzle\Service\Description\ServiceDescription - -Commands are now called Operations - -**Before** - -```php -use Guzzle\Service\Description\ServiceDescription; - -$sd = new ServiceDescription(); -$sd->getCommands(); // @returns ApiCommandInterface[] -$sd->hasCommand($name); -$sd->getCommand($name); // @returns ApiCommandInterface|null -$sd->addCommand($command); // @param ApiCommandInterface $command -``` - -**After** - -```php -use Guzzle\Service\Description\ServiceDescription; - -$sd = new ServiceDescription(); -$sd->getOperations(); // @returns OperationInterface[] -$sd->hasOperation($name); -$sd->getOperation($name); // @returns OperationInterface|null -$sd->addOperation($operation); // @param OperationInterface $operation -``` - -### Guzzle\Common\Inflection\Inflector - -Namespace is now `Guzzle\Inflection\Inflector` - -### Guzzle\Http\Plugin - -Namespace is now `Guzzle\Plugin`. Many other changes occur within this namespace and are detailed in their own sections below. - -### Guzzle\Http\Plugin\LogPlugin and Guzzle\Common\Log - -Now `Guzzle\Plugin\Log\LogPlugin` and `Guzzle\Log` respectively. - -**Before** - -```php -use Guzzle\Common\Log\ClosureLogAdapter; -use Guzzle\Http\Plugin\LogPlugin; - -/** @var \Guzzle\Http\Client */ -$client; - -// $verbosity is an integer indicating desired message verbosity level -$client->addSubscriber(new LogPlugin(new ClosureLogAdapter(function($m) { echo $m; }, $verbosity = LogPlugin::LOG_VERBOSE); -``` - -**After** - -```php -use Guzzle\Log\ClosureLogAdapter; -use Guzzle\Log\MessageFormatter; -use Guzzle\Plugin\Log\LogPlugin; - -/** @var \Guzzle\Http\Client */ -$client; - -// $format is a string indicating desired message format -- @see MessageFormatter -$client->addSubscriber(new LogPlugin(new ClosureLogAdapter(function($m) { echo $m; }, $format = MessageFormatter::DEBUG_FORMAT); -``` - -### Guzzle\Http\Plugin\CurlAuthPlugin - -Now `Guzzle\Plugin\CurlAuth\CurlAuthPlugin`. - -### Guzzle\Http\Plugin\ExponentialBackoffPlugin - -Now `Guzzle\Plugin\Backoff\BackoffPlugin`, and other changes. - -**Before** - -```php -use Guzzle\Http\Plugin\ExponentialBackoffPlugin; - -$backoffPlugin = new ExponentialBackoffPlugin($maxRetries, array_merge( - ExponentialBackoffPlugin::getDefaultFailureCodes(), array(429) - )); - -$client->addSubscriber($backoffPlugin); -``` - -**After** - -```php -use Guzzle\Plugin\Backoff\BackoffPlugin; -use Guzzle\Plugin\Backoff\HttpBackoffStrategy; - -// Use convenient factory method instead -- see implementation for ideas of what -// you can do with chaining backoff strategies -$backoffPlugin = BackoffPlugin::getExponentialBackoff($maxRetries, array_merge( - HttpBackoffStrategy::getDefaultFailureCodes(), array(429) - )); -$client->addSubscriber($backoffPlugin); -``` - -### Known Issues - -#### [BUG] Accept-Encoding header behavior changed unintentionally. - -(See #217) (Fixed in 09daeb8c666fb44499a0646d655a8ae36456575e) - -In version 2.8 setting the `Accept-Encoding` header would set the CURLOPT_ENCODING option, which permitted cURL to -properly handle gzip/deflate compressed responses from the server. In versions affected by this bug this does not happen. -See issue #217 for a workaround, or use a version containing the fix. diff --git a/vendor/guzzlehttp/guzzle/composer.json b/vendor/guzzlehttp/guzzle/composer.json deleted file mode 100644 index cbede14..0000000 --- a/vendor/guzzlehttp/guzzle/composer.json +++ /dev/null @@ -1,131 +0,0 @@ -{ - "name": "guzzlehttp/guzzle", - "description": "Guzzle is a PHP HTTP client library", - "keywords": [ - "framework", - "http", - "rest", - "web service", - "curl", - "client", - "HTTP client", - "PSR-7", - "PSR-18" - ], - "license": "MIT", - "authors": [ - { - "name": "Graham Campbell", - "email": "hello@gjcampbell.co.uk", - "homepage": "https://github.com/GrahamCampbell" - }, - { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com", - "homepage": "https://github.com/mtdowling" - }, - { - "name": "Jeremy Lindblom", - "email": "jeremeamia@gmail.com", - "homepage": "https://github.com/jeremeamia" - }, - { - "name": "George Mponos", - "email": "gmponos@gmail.com", - "homepage": "https://github.com/gmponos" - }, - { - "name": "Tobias Nyholm", - "email": "tobias.nyholm@gmail.com", - "homepage": "https://github.com/Nyholm" - }, - { - "name": "Márk Sági-Kazár", - "email": "mark.sagikazar@gmail.com", - "homepage": "https://github.com/sagikazarmark" - }, - { - "name": "Tobias Schultze", - "email": "webmaster@tubo-world.de", - "homepage": "https://github.com/Tobion" - } - ], - "repositories": [ - { - "type": "package", - "package": { - "name": "guzzle/client-integration-tests", - "version": "v3.0.2", - "dist": { - "url": "https://codeload.github.com/guzzle/client-integration-tests/zip/2c025848417c1135031fdf9c728ee53d0a7ceaee", - "type": "zip" - }, - "require": { - "php": "^7.2.5 || ^8.0", - "phpunit/phpunit": "^7.5.20 || ^8.5.8 || ^9.3.11", - "php-http/message": "^1.0 || ^2.0", - "guzzlehttp/psr7": "^1.7 || ^2.0", - "th3n3rd/cartesian-product": "^0.3" - }, - "autoload": { - "psr-4": { - "Http\\Client\\Tests\\": "src/" - } - }, - "bin": [ - "bin/http_test_server" - ] - } - } - ], - "require": { - "php": "^7.2.5 || ^8.0", - "ext-json": "*", - "guzzlehttp/promises": "^1.5.3 || ^2.0.3", - "guzzlehttp/psr7": "^2.7.0", - "psr/http-client": "^1.0", - "symfony/deprecation-contracts": "^2.2 || ^3.0" - }, - "provide": { - "psr/http-client-implementation": "1.0" - }, - "require-dev": { - "ext-curl": "*", - "bamarni/composer-bin-plugin": "^1.8.2", - "guzzle/client-integration-tests": "3.0.2", - "php-http/message-factory": "^1.1", - "phpunit/phpunit": "^8.5.39 || ^9.6.20", - "psr/log": "^1.1 || ^2.0 || ^3.0" - }, - "suggest": { - "ext-curl": "Required for CURL handler support", - "ext-intl": "Required for Internationalized Domain Name (IDN) support", - "psr/log": "Required for using the Log middleware" - }, - "config": { - "allow-plugins": { - "bamarni/composer-bin-plugin": true - }, - "preferred-install": "dist", - "sort-packages": true - }, - "extra": { - "bamarni-bin": { - "bin-links": true, - "forward-command": false - } - }, - "autoload": { - "psr-4": { - "GuzzleHttp\\": "src/" - }, - "files": [ - "src/functions_include.php" - ] - }, - "autoload-dev": { - "psr-4": { - "GuzzleHttp\\Tests\\": "tests/" - } - } -} diff --git a/vendor/guzzlehttp/guzzle/src/BodySummarizer.php b/vendor/guzzlehttp/guzzle/src/BodySummarizer.php deleted file mode 100644 index 761506d..0000000 --- a/vendor/guzzlehttp/guzzle/src/BodySummarizer.php +++ /dev/null @@ -1,28 +0,0 @@ -truncateAt = $truncateAt; - } - - /** - * Returns a summarized message body. - */ - public function summarize(MessageInterface $message): ?string - { - return $this->truncateAt === null - ? Psr7\Message::bodySummary($message) - : Psr7\Message::bodySummary($message, $this->truncateAt); - } -} diff --git a/vendor/guzzlehttp/guzzle/src/BodySummarizerInterface.php b/vendor/guzzlehttp/guzzle/src/BodySummarizerInterface.php deleted file mode 100644 index 3e02e03..0000000 --- a/vendor/guzzlehttp/guzzle/src/BodySummarizerInterface.php +++ /dev/null @@ -1,13 +0,0 @@ - 'http://www.foo.com/1.0/', - * 'timeout' => 0, - * 'allow_redirects' => false, - * 'proxy' => '192.168.16.1:10' - * ]); - * - * Client configuration settings include the following options: - * - * - handler: (callable) Function that transfers HTTP requests over the - * wire. The function is called with a Psr7\Http\Message\RequestInterface - * and array of transfer options, and must return a - * GuzzleHttp\Promise\PromiseInterface that is fulfilled with a - * Psr7\Http\Message\ResponseInterface on success. - * If no handler is provided, a default handler will be created - * that enables all of the request options below by attaching all of the - * default middleware to the handler. - * - base_uri: (string|UriInterface) Base URI of the client that is merged - * into relative URIs. Can be a string or instance of UriInterface. - * - **: any request option - * - * @param array $config Client configuration settings. - * - * @see RequestOptions for a list of available request options. - */ - public function __construct(array $config = []) - { - if (!isset($config['handler'])) { - $config['handler'] = HandlerStack::create(); - } elseif (!\is_callable($config['handler'])) { - throw new InvalidArgumentException('handler must be a callable'); - } - - // Convert the base_uri to a UriInterface - if (isset($config['base_uri'])) { - $config['base_uri'] = Psr7\Utils::uriFor($config['base_uri']); - } - - $this->configureDefaults($config); - } - - /** - * @param string $method - * @param array $args - * - * @return PromiseInterface|ResponseInterface - * - * @deprecated Client::__call will be removed in guzzlehttp/guzzle:8.0. - */ - public function __call($method, $args) - { - if (\count($args) < 1) { - throw new InvalidArgumentException('Magic request methods require a URI and optional options array'); - } - - $uri = $args[0]; - $opts = $args[1] ?? []; - - return \substr($method, -5) === 'Async' - ? $this->requestAsync(\substr($method, 0, -5), $uri, $opts) - : $this->request($method, $uri, $opts); - } - - /** - * Asynchronously send an HTTP request. - * - * @param array $options Request options to apply to the given - * request and to the transfer. See \GuzzleHttp\RequestOptions. - */ - public function sendAsync(RequestInterface $request, array $options = []): PromiseInterface - { - // Merge the base URI into the request URI if needed. - $options = $this->prepareDefaults($options); - - return $this->transfer( - $request->withUri($this->buildUri($request->getUri(), $options), $request->hasHeader('Host')), - $options - ); - } - - /** - * Send an HTTP request. - * - * @param array $options Request options to apply to the given - * request and to the transfer. See \GuzzleHttp\RequestOptions. - * - * @throws GuzzleException - */ - public function send(RequestInterface $request, array $options = []): ResponseInterface - { - $options[RequestOptions::SYNCHRONOUS] = true; - - return $this->sendAsync($request, $options)->wait(); - } - - /** - * The HttpClient PSR (PSR-18) specify this method. - * - * {@inheritDoc} - */ - public function sendRequest(RequestInterface $request): ResponseInterface - { - $options[RequestOptions::SYNCHRONOUS] = true; - $options[RequestOptions::ALLOW_REDIRECTS] = false; - $options[RequestOptions::HTTP_ERRORS] = false; - - return $this->sendAsync($request, $options)->wait(); - } - - /** - * Create and send an asynchronous HTTP request. - * - * Use an absolute path to override the base path of the client, or a - * relative path to append to the base path of the client. The URL can - * contain the query string as well. Use an array to provide a URL - * template and additional variables to use in the URL template expansion. - * - * @param string $method HTTP method - * @param string|UriInterface $uri URI object or string. - * @param array $options Request options to apply. See \GuzzleHttp\RequestOptions. - */ - public function requestAsync(string $method, $uri = '', array $options = []): PromiseInterface - { - $options = $this->prepareDefaults($options); - // Remove request modifying parameter because it can be done up-front. - $headers = $options['headers'] ?? []; - $body = $options['body'] ?? null; - $version = $options['version'] ?? '1.1'; - // Merge the URI into the base URI. - $uri = $this->buildUri(Psr7\Utils::uriFor($uri), $options); - if (\is_array($body)) { - throw $this->invalidBody(); - } - $request = new Psr7\Request($method, $uri, $headers, $body, $version); - // Remove the option so that they are not doubly-applied. - unset($options['headers'], $options['body'], $options['version']); - - return $this->transfer($request, $options); - } - - /** - * Create and send an HTTP request. - * - * Use an absolute path to override the base path of the client, or a - * relative path to append to the base path of the client. The URL can - * contain the query string as well. - * - * @param string $method HTTP method. - * @param string|UriInterface $uri URI object or string. - * @param array $options Request options to apply. See \GuzzleHttp\RequestOptions. - * - * @throws GuzzleException - */ - public function request(string $method, $uri = '', array $options = []): ResponseInterface - { - $options[RequestOptions::SYNCHRONOUS] = true; - - return $this->requestAsync($method, $uri, $options)->wait(); - } - - /** - * Get a client configuration option. - * - * These options include default request options of the client, a "handler" - * (if utilized by the concrete client), and a "base_uri" if utilized by - * the concrete client. - * - * @param string|null $option The config option to retrieve. - * - * @return mixed - * - * @deprecated Client::getConfig will be removed in guzzlehttp/guzzle:8.0. - */ - public function getConfig(?string $option = null) - { - return $option === null - ? $this->config - : ($this->config[$option] ?? null); - } - - private function buildUri(UriInterface $uri, array $config): UriInterface - { - if (isset($config['base_uri'])) { - $uri = Psr7\UriResolver::resolve(Psr7\Utils::uriFor($config['base_uri']), $uri); - } - - if (isset($config['idn_conversion']) && ($config['idn_conversion'] !== false)) { - $idnOptions = ($config['idn_conversion'] === true) ? \IDNA_DEFAULT : $config['idn_conversion']; - $uri = Utils::idnUriConvert($uri, $idnOptions); - } - - return $uri->getScheme() === '' && $uri->getHost() !== '' ? $uri->withScheme('http') : $uri; - } - - /** - * Configures the default options for a client. - */ - private function configureDefaults(array $config): void - { - $defaults = [ - 'allow_redirects' => RedirectMiddleware::$defaultSettings, - 'http_errors' => true, - 'decode_content' => true, - 'verify' => true, - 'cookies' => false, - 'idn_conversion' => false, - ]; - - // Use the standard Linux HTTP_PROXY and HTTPS_PROXY if set. - - // We can only trust the HTTP_PROXY environment variable in a CLI - // process due to the fact that PHP has no reliable mechanism to - // get environment variables that start with "HTTP_". - if (\PHP_SAPI === 'cli' && ($proxy = Utils::getenv('HTTP_PROXY'))) { - $defaults['proxy']['http'] = $proxy; - } - - if ($proxy = Utils::getenv('HTTPS_PROXY')) { - $defaults['proxy']['https'] = $proxy; - } - - if ($noProxy = Utils::getenv('NO_PROXY')) { - $cleanedNoProxy = \str_replace(' ', '', $noProxy); - $defaults['proxy']['no'] = \explode(',', $cleanedNoProxy); - } - - $this->config = $config + $defaults; - - if (!empty($config['cookies']) && $config['cookies'] === true) { - $this->config['cookies'] = new CookieJar(); - } - - // Add the default user-agent header. - if (!isset($this->config['headers'])) { - $this->config['headers'] = ['User-Agent' => Utils::defaultUserAgent()]; - } else { - // Add the User-Agent header if one was not already set. - foreach (\array_keys($this->config['headers']) as $name) { - if (\strtolower($name) === 'user-agent') { - return; - } - } - $this->config['headers']['User-Agent'] = Utils::defaultUserAgent(); - } - } - - /** - * Merges default options into the array. - * - * @param array $options Options to modify by reference - */ - private function prepareDefaults(array $options): array - { - $defaults = $this->config; - - if (!empty($defaults['headers'])) { - // Default headers are only added if they are not present. - $defaults['_conditional'] = $defaults['headers']; - unset($defaults['headers']); - } - - // Special handling for headers is required as they are added as - // conditional headers and as headers passed to a request ctor. - if (\array_key_exists('headers', $options)) { - // Allows default headers to be unset. - if ($options['headers'] === null) { - $defaults['_conditional'] = []; - unset($options['headers']); - } elseif (!\is_array($options['headers'])) { - throw new InvalidArgumentException('headers must be an array'); - } - } - - // Shallow merge defaults underneath options. - $result = $options + $defaults; - - // Remove null values. - foreach ($result as $k => $v) { - if ($v === null) { - unset($result[$k]); - } - } - - return $result; - } - - /** - * Transfers the given request and applies request options. - * - * The URI of the request is not modified and the request options are used - * as-is without merging in default options. - * - * @param array $options See \GuzzleHttp\RequestOptions. - */ - private function transfer(RequestInterface $request, array $options): PromiseInterface - { - $request = $this->applyOptions($request, $options); - /** @var HandlerStack $handler */ - $handler = $options['handler']; - - try { - return P\Create::promiseFor($handler($request, $options)); - } catch (\Exception $e) { - return P\Create::rejectionFor($e); - } - } - - /** - * Applies the array of request options to a request. - */ - private function applyOptions(RequestInterface $request, array &$options): RequestInterface - { - $modify = [ - 'set_headers' => [], - ]; - - if (isset($options['headers'])) { - if (array_keys($options['headers']) === range(0, count($options['headers']) - 1)) { - throw new InvalidArgumentException('The headers array must have header name as keys.'); - } - $modify['set_headers'] = $options['headers']; - unset($options['headers']); - } - - if (isset($options['form_params'])) { - if (isset($options['multipart'])) { - throw new InvalidArgumentException('You cannot use ' - .'form_params and multipart at the same time. Use the ' - .'form_params option if you want to send application/' - .'x-www-form-urlencoded requests, and the multipart ' - .'option to send multipart/form-data requests.'); - } - $options['body'] = \http_build_query($options['form_params'], '', '&'); - unset($options['form_params']); - // Ensure that we don't have the header in different case and set the new value. - $options['_conditional'] = Psr7\Utils::caselessRemove(['Content-Type'], $options['_conditional']); - $options['_conditional']['Content-Type'] = 'application/x-www-form-urlencoded'; - } - - if (isset($options['multipart'])) { - $options['body'] = new Psr7\MultipartStream($options['multipart']); - unset($options['multipart']); - } - - if (isset($options['json'])) { - $options['body'] = Utils::jsonEncode($options['json']); - unset($options['json']); - // Ensure that we don't have the header in different case and set the new value. - $options['_conditional'] = Psr7\Utils::caselessRemove(['Content-Type'], $options['_conditional']); - $options['_conditional']['Content-Type'] = 'application/json'; - } - - if (!empty($options['decode_content']) - && $options['decode_content'] !== true - ) { - // Ensure that we don't have the header in different case and set the new value. - $options['_conditional'] = Psr7\Utils::caselessRemove(['Accept-Encoding'], $options['_conditional']); - $modify['set_headers']['Accept-Encoding'] = $options['decode_content']; - } - - if (isset($options['body'])) { - if (\is_array($options['body'])) { - throw $this->invalidBody(); - } - $modify['body'] = Psr7\Utils::streamFor($options['body']); - unset($options['body']); - } - - if (!empty($options['auth']) && \is_array($options['auth'])) { - $value = $options['auth']; - $type = isset($value[2]) ? \strtolower($value[2]) : 'basic'; - switch ($type) { - case 'basic': - // Ensure that we don't have the header in different case and set the new value. - $modify['set_headers'] = Psr7\Utils::caselessRemove(['Authorization'], $modify['set_headers']); - $modify['set_headers']['Authorization'] = 'Basic ' - .\base64_encode("$value[0]:$value[1]"); - break; - case 'digest': - // @todo: Do not rely on curl - $options['curl'][\CURLOPT_HTTPAUTH] = \CURLAUTH_DIGEST; - $options['curl'][\CURLOPT_USERPWD] = "$value[0]:$value[1]"; - break; - case 'ntlm': - $options['curl'][\CURLOPT_HTTPAUTH] = \CURLAUTH_NTLM; - $options['curl'][\CURLOPT_USERPWD] = "$value[0]:$value[1]"; - break; - } - } - - if (isset($options['query'])) { - $value = $options['query']; - if (\is_array($value)) { - $value = \http_build_query($value, '', '&', \PHP_QUERY_RFC3986); - } - if (!\is_string($value)) { - throw new InvalidArgumentException('query must be a string or array'); - } - $modify['query'] = $value; - unset($options['query']); - } - - // Ensure that sink is not an invalid value. - if (isset($options['sink'])) { - // TODO: Add more sink validation? - if (\is_bool($options['sink'])) { - throw new InvalidArgumentException('sink must not be a boolean'); - } - } - - if (isset($options['version'])) { - $modify['version'] = $options['version']; - } - - $request = Psr7\Utils::modifyRequest($request, $modify); - if ($request->getBody() instanceof Psr7\MultipartStream) { - // Use a multipart/form-data POST if a Content-Type is not set. - // Ensure that we don't have the header in different case and set the new value. - $options['_conditional'] = Psr7\Utils::caselessRemove(['Content-Type'], $options['_conditional']); - $options['_conditional']['Content-Type'] = 'multipart/form-data; boundary=' - .$request->getBody()->getBoundary(); - } - - // Merge in conditional headers if they are not present. - if (isset($options['_conditional'])) { - // Build up the changes so it's in a single clone of the message. - $modify = []; - foreach ($options['_conditional'] as $k => $v) { - if (!$request->hasHeader($k)) { - $modify['set_headers'][$k] = $v; - } - } - $request = Psr7\Utils::modifyRequest($request, $modify); - // Don't pass this internal value along to middleware/handlers. - unset($options['_conditional']); - } - - return $request; - } - - /** - * Return an InvalidArgumentException with pre-set message. - */ - private function invalidBody(): InvalidArgumentException - { - return new InvalidArgumentException('Passing in the "body" request ' - .'option as an array to send a request is not supported. ' - .'Please use the "form_params" request option to send a ' - .'application/x-www-form-urlencoded request, or the "multipart" ' - .'request option to send a multipart/form-data request.'); - } -} diff --git a/vendor/guzzlehttp/guzzle/src/ClientInterface.php b/vendor/guzzlehttp/guzzle/src/ClientInterface.php deleted file mode 100644 index 6aaee61..0000000 --- a/vendor/guzzlehttp/guzzle/src/ClientInterface.php +++ /dev/null @@ -1,84 +0,0 @@ -request('GET', $uri, $options); - } - - /** - * Create and send an HTTP HEAD request. - * - * Use an absolute path to override the base path of the client, or a - * relative path to append to the base path of the client. The URL can - * contain the query string as well. - * - * @param string|UriInterface $uri URI object or string. - * @param array $options Request options to apply. - * - * @throws GuzzleException - */ - public function head($uri, array $options = []): ResponseInterface - { - return $this->request('HEAD', $uri, $options); - } - - /** - * Create and send an HTTP PUT request. - * - * Use an absolute path to override the base path of the client, or a - * relative path to append to the base path of the client. The URL can - * contain the query string as well. - * - * @param string|UriInterface $uri URI object or string. - * @param array $options Request options to apply. - * - * @throws GuzzleException - */ - public function put($uri, array $options = []): ResponseInterface - { - return $this->request('PUT', $uri, $options); - } - - /** - * Create and send an HTTP POST request. - * - * Use an absolute path to override the base path of the client, or a - * relative path to append to the base path of the client. The URL can - * contain the query string as well. - * - * @param string|UriInterface $uri URI object or string. - * @param array $options Request options to apply. - * - * @throws GuzzleException - */ - public function post($uri, array $options = []): ResponseInterface - { - return $this->request('POST', $uri, $options); - } - - /** - * Create and send an HTTP PATCH request. - * - * Use an absolute path to override the base path of the client, or a - * relative path to append to the base path of the client. The URL can - * contain the query string as well. - * - * @param string|UriInterface $uri URI object or string. - * @param array $options Request options to apply. - * - * @throws GuzzleException - */ - public function patch($uri, array $options = []): ResponseInterface - { - return $this->request('PATCH', $uri, $options); - } - - /** - * Create and send an HTTP DELETE request. - * - * Use an absolute path to override the base path of the client, or a - * relative path to append to the base path of the client. The URL can - * contain the query string as well. - * - * @param string|UriInterface $uri URI object or string. - * @param array $options Request options to apply. - * - * @throws GuzzleException - */ - public function delete($uri, array $options = []): ResponseInterface - { - return $this->request('DELETE', $uri, $options); - } - - /** - * Create and send an asynchronous HTTP request. - * - * Use an absolute path to override the base path of the client, or a - * relative path to append to the base path of the client. The URL can - * contain the query string as well. Use an array to provide a URL - * template and additional variables to use in the URL template expansion. - * - * @param string $method HTTP method - * @param string|UriInterface $uri URI object or string. - * @param array $options Request options to apply. - */ - abstract public function requestAsync(string $method, $uri, array $options = []): PromiseInterface; - - /** - * Create and send an asynchronous HTTP GET request. - * - * Use an absolute path to override the base path of the client, or a - * relative path to append to the base path of the client. The URL can - * contain the query string as well. Use an array to provide a URL - * template and additional variables to use in the URL template expansion. - * - * @param string|UriInterface $uri URI object or string. - * @param array $options Request options to apply. - */ - public function getAsync($uri, array $options = []): PromiseInterface - { - return $this->requestAsync('GET', $uri, $options); - } - - /** - * Create and send an asynchronous HTTP HEAD request. - * - * Use an absolute path to override the base path of the client, or a - * relative path to append to the base path of the client. The URL can - * contain the query string as well. Use an array to provide a URL - * template and additional variables to use in the URL template expansion. - * - * @param string|UriInterface $uri URI object or string. - * @param array $options Request options to apply. - */ - public function headAsync($uri, array $options = []): PromiseInterface - { - return $this->requestAsync('HEAD', $uri, $options); - } - - /** - * Create and send an asynchronous HTTP PUT request. - * - * Use an absolute path to override the base path of the client, or a - * relative path to append to the base path of the client. The URL can - * contain the query string as well. Use an array to provide a URL - * template and additional variables to use in the URL template expansion. - * - * @param string|UriInterface $uri URI object or string. - * @param array $options Request options to apply. - */ - public function putAsync($uri, array $options = []): PromiseInterface - { - return $this->requestAsync('PUT', $uri, $options); - } - - /** - * Create and send an asynchronous HTTP POST request. - * - * Use an absolute path to override the base path of the client, or a - * relative path to append to the base path of the client. The URL can - * contain the query string as well. Use an array to provide a URL - * template and additional variables to use in the URL template expansion. - * - * @param string|UriInterface $uri URI object or string. - * @param array $options Request options to apply. - */ - public function postAsync($uri, array $options = []): PromiseInterface - { - return $this->requestAsync('POST', $uri, $options); - } - - /** - * Create and send an asynchronous HTTP PATCH request. - * - * Use an absolute path to override the base path of the client, or a - * relative path to append to the base path of the client. The URL can - * contain the query string as well. Use an array to provide a URL - * template and additional variables to use in the URL template expansion. - * - * @param string|UriInterface $uri URI object or string. - * @param array $options Request options to apply. - */ - public function patchAsync($uri, array $options = []): PromiseInterface - { - return $this->requestAsync('PATCH', $uri, $options); - } - - /** - * Create and send an asynchronous HTTP DELETE request. - * - * Use an absolute path to override the base path of the client, or a - * relative path to append to the base path of the client. The URL can - * contain the query string as well. Use an array to provide a URL - * template and additional variables to use in the URL template expansion. - * - * @param string|UriInterface $uri URI object or string. - * @param array $options Request options to apply. - */ - public function deleteAsync($uri, array $options = []): PromiseInterface - { - return $this->requestAsync('DELETE', $uri, $options); - } -} diff --git a/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php b/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php deleted file mode 100644 index b616cf2..0000000 --- a/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php +++ /dev/null @@ -1,307 +0,0 @@ -strictMode = $strictMode; - - foreach ($cookieArray as $cookie) { - if (!($cookie instanceof SetCookie)) { - $cookie = new SetCookie($cookie); - } - $this->setCookie($cookie); - } - } - - /** - * Create a new Cookie jar from an associative array and domain. - * - * @param array $cookies Cookies to create the jar from - * @param string $domain Domain to set the cookies to - */ - public static function fromArray(array $cookies, string $domain): self - { - $cookieJar = new self(); - foreach ($cookies as $name => $value) { - $cookieJar->setCookie(new SetCookie([ - 'Domain' => $domain, - 'Name' => $name, - 'Value' => $value, - 'Discard' => true, - ])); - } - - return $cookieJar; - } - - /** - * Evaluate if this cookie should be persisted to storage - * that survives between requests. - * - * @param SetCookie $cookie Being evaluated. - * @param bool $allowSessionCookies If we should persist session cookies - */ - public static function shouldPersist(SetCookie $cookie, bool $allowSessionCookies = false): bool - { - if ($cookie->getExpires() || $allowSessionCookies) { - if (!$cookie->getDiscard()) { - return true; - } - } - - return false; - } - - /** - * Finds and returns the cookie based on the name - * - * @param string $name cookie name to search for - * - * @return SetCookie|null cookie that was found or null if not found - */ - public function getCookieByName(string $name): ?SetCookie - { - foreach ($this->cookies as $cookie) { - if ($cookie->getName() !== null && \strcasecmp($cookie->getName(), $name) === 0) { - return $cookie; - } - } - - return null; - } - - public function toArray(): array - { - return \array_map(static function (SetCookie $cookie): array { - return $cookie->toArray(); - }, $this->getIterator()->getArrayCopy()); - } - - public function clear(?string $domain = null, ?string $path = null, ?string $name = null): void - { - if (!$domain) { - $this->cookies = []; - - return; - } elseif (!$path) { - $this->cookies = \array_filter( - $this->cookies, - static function (SetCookie $cookie) use ($domain): bool { - return !$cookie->matchesDomain($domain); - } - ); - } elseif (!$name) { - $this->cookies = \array_filter( - $this->cookies, - static function (SetCookie $cookie) use ($path, $domain): bool { - return !($cookie->matchesPath($path) - && $cookie->matchesDomain($domain)); - } - ); - } else { - $this->cookies = \array_filter( - $this->cookies, - static function (SetCookie $cookie) use ($path, $domain, $name) { - return !($cookie->getName() == $name - && $cookie->matchesPath($path) - && $cookie->matchesDomain($domain)); - } - ); - } - } - - public function clearSessionCookies(): void - { - $this->cookies = \array_filter( - $this->cookies, - static function (SetCookie $cookie): bool { - return !$cookie->getDiscard() && $cookie->getExpires(); - } - ); - } - - public function setCookie(SetCookie $cookie): bool - { - // If the name string is empty (but not 0), ignore the set-cookie - // string entirely. - $name = $cookie->getName(); - if (!$name && $name !== '0') { - return false; - } - - // Only allow cookies with set and valid domain, name, value - $result = $cookie->validate(); - if ($result !== true) { - if ($this->strictMode) { - throw new \RuntimeException('Invalid cookie: '.$result); - } - $this->removeCookieIfEmpty($cookie); - - return false; - } - - // Resolve conflicts with previously set cookies - foreach ($this->cookies as $i => $c) { - // Two cookies are identical, when their path, and domain are - // identical. - if ($c->getPath() != $cookie->getPath() - || $c->getDomain() != $cookie->getDomain() - || $c->getName() != $cookie->getName() - ) { - continue; - } - - // The previously set cookie is a discard cookie and this one is - // not so allow the new cookie to be set - if (!$cookie->getDiscard() && $c->getDiscard()) { - unset($this->cookies[$i]); - continue; - } - - // If the new cookie's expiration is further into the future, then - // replace the old cookie - if ($cookie->getExpires() > $c->getExpires()) { - unset($this->cookies[$i]); - continue; - } - - // If the value has changed, we better change it - if ($cookie->getValue() !== $c->getValue()) { - unset($this->cookies[$i]); - continue; - } - - // The cookie exists, so no need to continue - return false; - } - - $this->cookies[] = $cookie; - - return true; - } - - public function count(): int - { - return \count($this->cookies); - } - - /** - * @return \ArrayIterator - */ - public function getIterator(): \ArrayIterator - { - return new \ArrayIterator(\array_values($this->cookies)); - } - - public function extractCookies(RequestInterface $request, ResponseInterface $response): void - { - if ($cookieHeader = $response->getHeader('Set-Cookie')) { - foreach ($cookieHeader as $cookie) { - $sc = SetCookie::fromString($cookie); - if (!$sc->getDomain()) { - $sc->setDomain($request->getUri()->getHost()); - } - if (0 !== \strpos($sc->getPath(), '/')) { - $sc->setPath($this->getCookiePathFromRequest($request)); - } - if (!$sc->matchesDomain($request->getUri()->getHost())) { - continue; - } - // Note: At this point `$sc->getDomain()` being a public suffix should - // be rejected, but we don't want to pull in the full PSL dependency. - $this->setCookie($sc); - } - } - } - - /** - * Computes cookie path following RFC 6265 section 5.1.4 - * - * @see https://datatracker.ietf.org/doc/html/rfc6265#section-5.1.4 - */ - private function getCookiePathFromRequest(RequestInterface $request): string - { - $uriPath = $request->getUri()->getPath(); - if ('' === $uriPath) { - return '/'; - } - if (0 !== \strpos($uriPath, '/')) { - return '/'; - } - if ('/' === $uriPath) { - return '/'; - } - $lastSlashPos = \strrpos($uriPath, '/'); - if (0 === $lastSlashPos || false === $lastSlashPos) { - return '/'; - } - - return \substr($uriPath, 0, $lastSlashPos); - } - - public function withCookieHeader(RequestInterface $request): RequestInterface - { - $values = []; - $uri = $request->getUri(); - $scheme = $uri->getScheme(); - $host = $uri->getHost(); - $path = $uri->getPath() ?: '/'; - - foreach ($this->cookies as $cookie) { - if ($cookie->matchesPath($path) - && $cookie->matchesDomain($host) - && !$cookie->isExpired() - && (!$cookie->getSecure() || $scheme === 'https') - ) { - $values[] = $cookie->getName().'=' - .$cookie->getValue(); - } - } - - return $values - ? $request->withHeader('Cookie', \implode('; ', $values)) - : $request; - } - - /** - * If a cookie already exists and the server asks to set it again with a - * null value, the cookie must be deleted. - */ - private function removeCookieIfEmpty(SetCookie $cookie): void - { - $cookieValue = $cookie->getValue(); - if ($cookieValue === null || $cookieValue === '') { - $this->clear( - $cookie->getDomain(), - $cookie->getPath(), - $cookie->getName() - ); - } - } -} diff --git a/vendor/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php b/vendor/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php deleted file mode 100644 index 93ada58..0000000 --- a/vendor/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php +++ /dev/null @@ -1,80 +0,0 @@ - - */ -interface CookieJarInterface extends \Countable, \IteratorAggregate -{ - /** - * Create a request with added cookie headers. - * - * If no matching cookies are found in the cookie jar, then no Cookie - * header is added to the request and the same request is returned. - * - * @param RequestInterface $request Request object to modify. - * - * @return RequestInterface returns the modified request. - */ - public function withCookieHeader(RequestInterface $request): RequestInterface; - - /** - * Extract cookies from an HTTP response and store them in the CookieJar. - * - * @param RequestInterface $request Request that was sent - * @param ResponseInterface $response Response that was received - */ - public function extractCookies(RequestInterface $request, ResponseInterface $response): void; - - /** - * Sets a cookie in the cookie jar. - * - * @param SetCookie $cookie Cookie to set. - * - * @return bool Returns true on success or false on failure - */ - public function setCookie(SetCookie $cookie): bool; - - /** - * Remove cookies currently held in the cookie jar. - * - * Invoking this method without arguments will empty the whole cookie jar. - * If given a $domain argument only cookies belonging to that domain will - * be removed. If given a $domain and $path argument, cookies belonging to - * the specified path within that domain are removed. If given all three - * arguments, then the cookie with the specified name, path and domain is - * removed. - * - * @param string|null $domain Clears cookies matching a domain - * @param string|null $path Clears cookies matching a domain and path - * @param string|null $name Clears cookies matching a domain, path, and name - */ - public function clear(?string $domain = null, ?string $path = null, ?string $name = null): void; - - /** - * Discard all sessions cookies. - * - * Removes cookies that don't have an expire field or a have a discard - * field set to true. To be called when the user agent shuts down according - * to RFC 2965. - */ - public function clearSessionCookies(): void; - - /** - * Converts the cookie jar to an array. - */ - public function toArray(): array; -} diff --git a/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php b/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php deleted file mode 100644 index 290236d..0000000 --- a/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php +++ /dev/null @@ -1,101 +0,0 @@ -filename = $cookieFile; - $this->storeSessionCookies = $storeSessionCookies; - - if (\file_exists($cookieFile)) { - $this->load($cookieFile); - } - } - - /** - * Saves the file when shutting down - */ - public function __destruct() - { - $this->save($this->filename); - } - - /** - * Saves the cookies to a file. - * - * @param string $filename File to save - * - * @throws \RuntimeException if the file cannot be found or created - */ - public function save(string $filename): void - { - $json = []; - /** @var SetCookie $cookie */ - foreach ($this as $cookie) { - if (CookieJar::shouldPersist($cookie, $this->storeSessionCookies)) { - $json[] = $cookie->toArray(); - } - } - - $jsonStr = Utils::jsonEncode($json); - if (false === \file_put_contents($filename, $jsonStr, \LOCK_EX)) { - throw new \RuntimeException("Unable to save file {$filename}"); - } - } - - /** - * Load cookies from a JSON formatted file. - * - * Old cookies are kept unless overwritten by newly loaded ones. - * - * @param string $filename Cookie file to load. - * - * @throws \RuntimeException if the file cannot be loaded. - */ - public function load(string $filename): void - { - $json = \file_get_contents($filename); - if (false === $json) { - throw new \RuntimeException("Unable to load file {$filename}"); - } - if ($json === '') { - return; - } - - $data = Utils::jsonDecode($json, true); - if (\is_array($data)) { - foreach ($data as $cookie) { - $this->setCookie(new SetCookie($cookie)); - } - } elseif (\is_scalar($data) && !empty($data)) { - throw new \RuntimeException("Invalid cookie file: {$filename}"); - } - } -} diff --git a/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php b/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php deleted file mode 100644 index cb3e67c..0000000 --- a/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php +++ /dev/null @@ -1,77 +0,0 @@ -sessionKey = $sessionKey; - $this->storeSessionCookies = $storeSessionCookies; - $this->load(); - } - - /** - * Saves cookies to session when shutting down - */ - public function __destruct() - { - $this->save(); - } - - /** - * Save cookies to the client session - */ - public function save(): void - { - $json = []; - /** @var SetCookie $cookie */ - foreach ($this as $cookie) { - if (CookieJar::shouldPersist($cookie, $this->storeSessionCookies)) { - $json[] = $cookie->toArray(); - } - } - - $_SESSION[$this->sessionKey] = \json_encode($json); - } - - /** - * Load the contents of the client session into the data array - */ - protected function load(): void - { - if (!isset($_SESSION[$this->sessionKey])) { - return; - } - $data = \json_decode($_SESSION[$this->sessionKey], true); - if (\is_array($data)) { - foreach ($data as $cookie) { - $this->setCookie(new SetCookie($cookie)); - } - } elseif (\strlen($data)) { - throw new \RuntimeException('Invalid cookie data'); - } - } -} diff --git a/vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php b/vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php deleted file mode 100644 index c9806da..0000000 --- a/vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php +++ /dev/null @@ -1,488 +0,0 @@ - null, - 'Value' => null, - 'Domain' => null, - 'Path' => '/', - 'Max-Age' => null, - 'Expires' => null, - 'Secure' => false, - 'Discard' => false, - 'HttpOnly' => false, - ]; - - /** - * @var array Cookie data - */ - private $data; - - /** - * Create a new SetCookie object from a string. - * - * @param string $cookie Set-Cookie header string - */ - public static function fromString(string $cookie): self - { - // Create the default return array - $data = self::$defaults; - // Explode the cookie string using a series of semicolons - $pieces = \array_filter(\array_map('trim', \explode(';', $cookie))); - // The name of the cookie (first kvp) must exist and include an equal sign. - if (!isset($pieces[0]) || \strpos($pieces[0], '=') === false) { - return new self($data); - } - - // Add the cookie pieces into the parsed data array - foreach ($pieces as $part) { - $cookieParts = \explode('=', $part, 2); - $key = \trim($cookieParts[0]); - $value = isset($cookieParts[1]) - ? \trim($cookieParts[1], " \n\r\t\0\x0B") - : true; - - // Only check for non-cookies when cookies have been found - if (!isset($data['Name'])) { - $data['Name'] = $key; - $data['Value'] = $value; - } else { - foreach (\array_keys(self::$defaults) as $search) { - if (!\strcasecmp($search, $key)) { - if ($search === 'Max-Age') { - if (is_numeric($value)) { - $data[$search] = (int) $value; - } - } else { - $data[$search] = $value; - } - continue 2; - } - } - $data[$key] = $value; - } - } - - return new self($data); - } - - /** - * @param array $data Array of cookie data provided by a Cookie parser - */ - public function __construct(array $data = []) - { - $this->data = self::$defaults; - - if (isset($data['Name'])) { - $this->setName($data['Name']); - } - - if (isset($data['Value'])) { - $this->setValue($data['Value']); - } - - if (isset($data['Domain'])) { - $this->setDomain($data['Domain']); - } - - if (isset($data['Path'])) { - $this->setPath($data['Path']); - } - - if (isset($data['Max-Age'])) { - $this->setMaxAge($data['Max-Age']); - } - - if (isset($data['Expires'])) { - $this->setExpires($data['Expires']); - } - - if (isset($data['Secure'])) { - $this->setSecure($data['Secure']); - } - - if (isset($data['Discard'])) { - $this->setDiscard($data['Discard']); - } - - if (isset($data['HttpOnly'])) { - $this->setHttpOnly($data['HttpOnly']); - } - - // Set the remaining values that don't have extra validation logic - foreach (array_diff(array_keys($data), array_keys(self::$defaults)) as $key) { - $this->data[$key] = $data[$key]; - } - - // Extract the Expires value and turn it into a UNIX timestamp if needed - if (!$this->getExpires() && $this->getMaxAge()) { - // Calculate the Expires date - $this->setExpires(\time() + $this->getMaxAge()); - } elseif (null !== ($expires = $this->getExpires()) && !\is_numeric($expires)) { - $this->setExpires($expires); - } - } - - public function __toString() - { - $str = $this->data['Name'].'='.($this->data['Value'] ?? '').'; '; - foreach ($this->data as $k => $v) { - if ($k !== 'Name' && $k !== 'Value' && $v !== null && $v !== false) { - if ($k === 'Expires') { - $str .= 'Expires='.\gmdate('D, d M Y H:i:s \G\M\T', $v).'; '; - } else { - $str .= ($v === true ? $k : "{$k}={$v}").'; '; - } - } - } - - return \rtrim($str, '; '); - } - - public function toArray(): array - { - return $this->data; - } - - /** - * Get the cookie name. - * - * @return string - */ - public function getName() - { - return $this->data['Name']; - } - - /** - * Set the cookie name. - * - * @param string $name Cookie name - */ - public function setName($name): void - { - if (!is_string($name)) { - trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a string to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__); - } - - $this->data['Name'] = (string) $name; - } - - /** - * Get the cookie value. - * - * @return string|null - */ - public function getValue() - { - return $this->data['Value']; - } - - /** - * Set the cookie value. - * - * @param string $value Cookie value - */ - public function setValue($value): void - { - if (!is_string($value)) { - trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a string to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__); - } - - $this->data['Value'] = (string) $value; - } - - /** - * Get the domain. - * - * @return string|null - */ - public function getDomain() - { - return $this->data['Domain']; - } - - /** - * Set the domain of the cookie. - * - * @param string|null $domain - */ - public function setDomain($domain): void - { - if (!is_string($domain) && null !== $domain) { - trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a string or null to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__); - } - - $this->data['Domain'] = null === $domain ? null : (string) $domain; - } - - /** - * Get the path. - * - * @return string - */ - public function getPath() - { - return $this->data['Path']; - } - - /** - * Set the path of the cookie. - * - * @param string $path Path of the cookie - */ - public function setPath($path): void - { - if (!is_string($path)) { - trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a string to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__); - } - - $this->data['Path'] = (string) $path; - } - - /** - * Maximum lifetime of the cookie in seconds. - * - * @return int|null - */ - public function getMaxAge() - { - return null === $this->data['Max-Age'] ? null : (int) $this->data['Max-Age']; - } - - /** - * Set the max-age of the cookie. - * - * @param int|null $maxAge Max age of the cookie in seconds - */ - public function setMaxAge($maxAge): void - { - if (!is_int($maxAge) && null !== $maxAge) { - trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing an int or null to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__); - } - - $this->data['Max-Age'] = $maxAge === null ? null : (int) $maxAge; - } - - /** - * The UNIX timestamp when the cookie Expires. - * - * @return string|int|null - */ - public function getExpires() - { - return $this->data['Expires']; - } - - /** - * Set the unix timestamp for which the cookie will expire. - * - * @param int|string|null $timestamp Unix timestamp or any English textual datetime description. - */ - public function setExpires($timestamp): void - { - if (!is_int($timestamp) && !is_string($timestamp) && null !== $timestamp) { - trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing an int, string or null to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__); - } - - $this->data['Expires'] = null === $timestamp ? null : (\is_numeric($timestamp) ? (int) $timestamp : \strtotime((string) $timestamp)); - } - - /** - * Get whether or not this is a secure cookie. - * - * @return bool - */ - public function getSecure() - { - return $this->data['Secure']; - } - - /** - * Set whether or not the cookie is secure. - * - * @param bool $secure Set to true or false if secure - */ - public function setSecure($secure): void - { - if (!is_bool($secure)) { - trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a bool to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__); - } - - $this->data['Secure'] = (bool) $secure; - } - - /** - * Get whether or not this is a session cookie. - * - * @return bool|null - */ - public function getDiscard() - { - return $this->data['Discard']; - } - - /** - * Set whether or not this is a session cookie. - * - * @param bool $discard Set to true or false if this is a session cookie - */ - public function setDiscard($discard): void - { - if (!is_bool($discard)) { - trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a bool to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__); - } - - $this->data['Discard'] = (bool) $discard; - } - - /** - * Get whether or not this is an HTTP only cookie. - * - * @return bool - */ - public function getHttpOnly() - { - return $this->data['HttpOnly']; - } - - /** - * Set whether or not this is an HTTP only cookie. - * - * @param bool $httpOnly Set to true or false if this is HTTP only - */ - public function setHttpOnly($httpOnly): void - { - if (!is_bool($httpOnly)) { - trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a bool to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__); - } - - $this->data['HttpOnly'] = (bool) $httpOnly; - } - - /** - * Check if the cookie matches a path value. - * - * A request-path path-matches a given cookie-path if at least one of - * the following conditions holds: - * - * - The cookie-path and the request-path are identical. - * - The cookie-path is a prefix of the request-path, and the last - * character of the cookie-path is %x2F ("/"). - * - The cookie-path is a prefix of the request-path, and the first - * character of the request-path that is not included in the cookie- - * path is a %x2F ("/") character. - * - * @param string $requestPath Path to check against - */ - public function matchesPath(string $requestPath): bool - { - $cookiePath = $this->getPath(); - - // Match on exact matches or when path is the default empty "/" - if ($cookiePath === '/' || $cookiePath == $requestPath) { - return true; - } - - // Ensure that the cookie-path is a prefix of the request path. - if (0 !== \strpos($requestPath, $cookiePath)) { - return false; - } - - // Match if the last character of the cookie-path is "/" - if (\substr($cookiePath, -1, 1) === '/') { - return true; - } - - // Match if the first character not included in cookie path is "/" - return \substr($requestPath, \strlen($cookiePath), 1) === '/'; - } - - /** - * Check if the cookie matches a domain value. - * - * @param string $domain Domain to check against - */ - public function matchesDomain(string $domain): bool - { - $cookieDomain = $this->getDomain(); - if (null === $cookieDomain) { - return true; - } - - // Remove the leading '.' as per spec in RFC 6265. - // https://datatracker.ietf.org/doc/html/rfc6265#section-5.2.3 - $cookieDomain = \ltrim(\strtolower($cookieDomain), '.'); - - $domain = \strtolower($domain); - - // Domain not set or exact match. - if ('' === $cookieDomain || $domain === $cookieDomain) { - return true; - } - - // Matching the subdomain according to RFC 6265. - // https://datatracker.ietf.org/doc/html/rfc6265#section-5.1.3 - if (\filter_var($domain, \FILTER_VALIDATE_IP)) { - return false; - } - - return (bool) \preg_match('/\.'.\preg_quote($cookieDomain, '/').'$/', $domain); - } - - /** - * Check if the cookie is expired. - */ - public function isExpired(): bool - { - return $this->getExpires() !== null && \time() > $this->getExpires(); - } - - /** - * Check if the cookie is valid according to RFC 6265. - * - * @return bool|string Returns true if valid or an error message if invalid - */ - public function validate() - { - $name = $this->getName(); - if ($name === '') { - return 'The cookie name must not be empty'; - } - - // Check if any of the invalid characters are present in the cookie name - if (\preg_match( - '/[\x00-\x20\x22\x28-\x29\x2c\x2f\x3a-\x40\x5c\x7b\x7d\x7f]/', - $name - )) { - return 'Cookie name must not contain invalid characters: ASCII ' - .'Control characters (0-31;127), space, tab and the ' - .'following characters: ()<>@,;:\"/?={}'; - } - - // Value must not be null. 0 and empty string are valid. Empty strings - // are technically against RFC 6265, but known to happen in the wild. - $value = $this->getValue(); - if ($value === null) { - return 'The cookie value must not be empty'; - } - - // Domains must not be empty, but can be 0. "0" is not a valid internet - // domain, but may be used as server name in a private network. - $domain = $this->getDomain(); - if ($domain === null || $domain === '') { - return 'The cookie domain must not be empty'; - } - - return true; - } -} diff --git a/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php b/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php deleted file mode 100644 index ba67ad4..0000000 --- a/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php +++ /dev/null @@ -1,39 +0,0 @@ -request = $request; - $this->handlerContext = $handlerContext; - } - - /** - * Get the request that caused the exception - */ - public function getRequest(): RequestInterface - { - return $this->request; - } - - /** - * Get contextual information about the error from the underlying handler. - * - * The contents of this array will vary depending on which handler you are - * using. It may also be just an empty array. Relying on this data will - * couple you to a specific handler, but can give more debug information - * when needed. - */ - public function getHandlerContext(): array - { - return $this->handlerContext; - } -} diff --git a/vendor/guzzlehttp/guzzle/src/Exception/GuzzleException.php b/vendor/guzzlehttp/guzzle/src/Exception/GuzzleException.php deleted file mode 100644 index fa3ed69..0000000 --- a/vendor/guzzlehttp/guzzle/src/Exception/GuzzleException.php +++ /dev/null @@ -1,9 +0,0 @@ -getStatusCode() : 0; - parent::__construct($message, $code, $previous); - $this->request = $request; - $this->response = $response; - $this->handlerContext = $handlerContext; - } - - /** - * Wrap non-RequestExceptions with a RequestException - */ - public static function wrapException(RequestInterface $request, \Throwable $e): RequestException - { - return $e instanceof RequestException ? $e : new RequestException($e->getMessage(), $request, null, $e); - } - - /** - * Factory method to create a new exception with a normalized error message - * - * @param RequestInterface $request Request sent - * @param ResponseInterface $response Response received - * @param \Throwable|null $previous Previous exception - * @param array $handlerContext Optional handler context - * @param BodySummarizerInterface|null $bodySummarizer Optional body summarizer - */ - public static function create( - RequestInterface $request, - ?ResponseInterface $response = null, - ?\Throwable $previous = null, - array $handlerContext = [], - ?BodySummarizerInterface $bodySummarizer = null - ): self { - if (!$response) { - return new self( - 'Error completing request', - $request, - null, - $previous, - $handlerContext - ); - } - - $level = (int) \floor($response->getStatusCode() / 100); - if ($level === 4) { - $label = 'Client error'; - $className = ClientException::class; - } elseif ($level === 5) { - $label = 'Server error'; - $className = ServerException::class; - } else { - $label = 'Unsuccessful request'; - $className = __CLASS__; - } - - $uri = \GuzzleHttp\Psr7\Utils::redactUserInfo($request->getUri()); - - // Client Error: `GET /` resulted in a `404 Not Found` response: - // ... (truncated) - $message = \sprintf( - '%s: `%s %s` resulted in a `%s %s` response', - $label, - $request->getMethod(), - $uri->__toString(), - $response->getStatusCode(), - $response->getReasonPhrase() - ); - - $summary = ($bodySummarizer ?? new BodySummarizer())->summarize($response); - - if ($summary !== null) { - $message .= ":\n{$summary}\n"; - } - - return new $className($message, $request, $response, $previous, $handlerContext); - } - - /** - * Get the request that caused the exception - */ - public function getRequest(): RequestInterface - { - return $this->request; - } - - /** - * Get the associated response - */ - public function getResponse(): ?ResponseInterface - { - return $this->response; - } - - /** - * Check if a response was received - */ - public function hasResponse(): bool - { - return $this->response !== null; - } - - /** - * Get contextual information about the error from the underlying handler. - * - * The contents of this array will vary depending on which handler you are - * using. It may also be just an empty array. Relying on this data will - * couple you to a specific handler, but can give more debug information - * when needed. - */ - public function getHandlerContext(): array - { - return $this->handlerContext; - } -} diff --git a/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php b/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php deleted file mode 100644 index 8055e06..0000000 --- a/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php +++ /dev/null @@ -1,10 +0,0 @@ -maxHandles = $maxHandles; - } - - public function create(RequestInterface $request, array $options): EasyHandle - { - $protocolVersion = $request->getProtocolVersion(); - - if ('2' === $protocolVersion || '2.0' === $protocolVersion) { - if (!self::supportsHttp2()) { - throw new ConnectException('HTTP/2 is supported by the cURL handler, however libcurl is built without HTTP/2 support.', $request); - } - } elseif ('1.0' !== $protocolVersion && '1.1' !== $protocolVersion) { - throw new ConnectException(sprintf('HTTP/%s is not supported by the cURL handler.', $protocolVersion), $request); - } - - if (isset($options['curl']['body_as_string'])) { - $options['_body_as_string'] = $options['curl']['body_as_string']; - unset($options['curl']['body_as_string']); - } - - $easy = new EasyHandle(); - $easy->request = $request; - $easy->options = $options; - $conf = $this->getDefaultConf($easy); - $this->applyMethod($easy, $conf); - $this->applyHandlerOptions($easy, $conf); - $this->applyHeaders($easy, $conf); - unset($conf['_headers']); - - // Add handler options from the request configuration options - if (isset($options['curl'])) { - $conf = \array_replace($conf, $options['curl']); - } - - $conf[\CURLOPT_HEADERFUNCTION] = $this->createHeaderFn($easy); - $easy->handle = $this->handles ? \array_pop($this->handles) : \curl_init(); - curl_setopt_array($easy->handle, $conf); - - return $easy; - } - - private static function supportsHttp2(): bool - { - static $supportsHttp2 = null; - - if (null === $supportsHttp2) { - $supportsHttp2 = self::supportsTls12() - && defined('CURL_VERSION_HTTP2') - && (\CURL_VERSION_HTTP2 & \curl_version()['features']); - } - - return $supportsHttp2; - } - - private static function supportsTls12(): bool - { - static $supportsTls12 = null; - - if (null === $supportsTls12) { - $supportsTls12 = \CURL_SSLVERSION_TLSv1_2 & \curl_version()['features']; - } - - return $supportsTls12; - } - - private static function supportsTls13(): bool - { - static $supportsTls13 = null; - - if (null === $supportsTls13) { - $supportsTls13 = defined('CURL_SSLVERSION_TLSv1_3') - && (\CURL_SSLVERSION_TLSv1_3 & \curl_version()['features']); - } - - return $supportsTls13; - } - - public function release(EasyHandle $easy): void - { - $resource = $easy->handle; - unset($easy->handle); - - if (\count($this->handles) >= $this->maxHandles) { - \curl_close($resource); - } else { - // Remove all callback functions as they can hold onto references - // and are not cleaned up by curl_reset. Using curl_setopt_array - // does not work for some reason, so removing each one - // individually. - \curl_setopt($resource, \CURLOPT_HEADERFUNCTION, null); - \curl_setopt($resource, \CURLOPT_READFUNCTION, null); - \curl_setopt($resource, \CURLOPT_WRITEFUNCTION, null); - \curl_setopt($resource, \CURLOPT_PROGRESSFUNCTION, null); - \curl_reset($resource); - $this->handles[] = $resource; - } - } - - /** - * Completes a cURL transaction, either returning a response promise or a - * rejected promise. - * - * @param callable(RequestInterface, array): PromiseInterface $handler - * @param CurlFactoryInterface $factory Dictates how the handle is released - */ - public static function finish(callable $handler, EasyHandle $easy, CurlFactoryInterface $factory): PromiseInterface - { - if (isset($easy->options['on_stats'])) { - self::invokeStats($easy); - } - - if (!$easy->response || $easy->errno) { - return self::finishError($handler, $easy, $factory); - } - - // Return the response if it is present and there is no error. - $factory->release($easy); - - // Rewind the body of the response if possible. - $body = $easy->response->getBody(); - if ($body->isSeekable()) { - $body->rewind(); - } - - return new FulfilledPromise($easy->response); - } - - private static function invokeStats(EasyHandle $easy): void - { - $curlStats = \curl_getinfo($easy->handle); - $curlStats['appconnect_time'] = \curl_getinfo($easy->handle, \CURLINFO_APPCONNECT_TIME); - $stats = new TransferStats( - $easy->request, - $easy->response, - $curlStats['total_time'], - $easy->errno, - $curlStats - ); - ($easy->options['on_stats'])($stats); - } - - /** - * @param callable(RequestInterface, array): PromiseInterface $handler - */ - private static function finishError(callable $handler, EasyHandle $easy, CurlFactoryInterface $factory): PromiseInterface - { - // Get error information and release the handle to the factory. - $ctx = [ - 'errno' => $easy->errno, - 'error' => \curl_error($easy->handle), - 'appconnect_time' => \curl_getinfo($easy->handle, \CURLINFO_APPCONNECT_TIME), - ] + \curl_getinfo($easy->handle); - $ctx[self::CURL_VERSION_STR] = self::getCurlVersion(); - $factory->release($easy); - - // Retry when nothing is present or when curl failed to rewind. - if (empty($easy->options['_err_message']) && (!$easy->errno || $easy->errno == 65)) { - return self::retryFailedRewind($handler, $easy, $ctx); - } - - return self::createRejection($easy, $ctx); - } - - private static function getCurlVersion(): string - { - static $curlVersion = null; - - if (null === $curlVersion) { - $curlVersion = \curl_version()['version']; - } - - return $curlVersion; - } - - private static function createRejection(EasyHandle $easy, array $ctx): PromiseInterface - { - static $connectionErrors = [ - \CURLE_OPERATION_TIMEOUTED => true, - \CURLE_COULDNT_RESOLVE_HOST => true, - \CURLE_COULDNT_CONNECT => true, - \CURLE_SSL_CONNECT_ERROR => true, - \CURLE_GOT_NOTHING => true, - ]; - - if ($easy->createResponseException) { - return P\Create::rejectionFor( - new RequestException( - 'An error was encountered while creating the response', - $easy->request, - $easy->response, - $easy->createResponseException, - $ctx - ) - ); - } - - // If an exception was encountered during the onHeaders event, then - // return a rejected promise that wraps that exception. - if ($easy->onHeadersException) { - return P\Create::rejectionFor( - new RequestException( - 'An error was encountered during the on_headers event', - $easy->request, - $easy->response, - $easy->onHeadersException, - $ctx - ) - ); - } - - $uri = $easy->request->getUri(); - - $sanitizedError = self::sanitizeCurlError($ctx['error'] ?? '', $uri); - - $message = \sprintf( - 'cURL error %s: %s (%s)', - $ctx['errno'], - $sanitizedError, - 'see https://curl.haxx.se/libcurl/c/libcurl-errors.html' - ); - - if ('' !== $sanitizedError) { - $redactedUriString = \GuzzleHttp\Psr7\Utils::redactUserInfo($uri)->__toString(); - if ($redactedUriString !== '' && false === \strpos($sanitizedError, $redactedUriString)) { - $message .= \sprintf(' for %s', $redactedUriString); - } - } - - // Create a connection exception if it was a specific error code. - $error = isset($connectionErrors[$easy->errno]) - ? new ConnectException($message, $easy->request, null, $ctx) - : new RequestException($message, $easy->request, $easy->response, null, $ctx); - - return P\Create::rejectionFor($error); - } - - private static function sanitizeCurlError(string $error, UriInterface $uri): string - { - if ('' === $error) { - return $error; - } - - $baseUri = $uri->withQuery('')->withFragment(''); - $baseUriString = $baseUri->__toString(); - - if ('' === $baseUriString) { - return $error; - } - - $redactedUriString = \GuzzleHttp\Psr7\Utils::redactUserInfo($baseUri)->__toString(); - - return str_replace($baseUriString, $redactedUriString, $error); - } - - /** - * @return array - */ - private function getDefaultConf(EasyHandle $easy): array - { - $conf = [ - '_headers' => $easy->request->getHeaders(), - \CURLOPT_CUSTOMREQUEST => $easy->request->getMethod(), - \CURLOPT_URL => (string) $easy->request->getUri()->withFragment(''), - \CURLOPT_RETURNTRANSFER => false, - \CURLOPT_HEADER => false, - \CURLOPT_CONNECTTIMEOUT => 300, - ]; - - if (\defined('CURLOPT_PROTOCOLS')) { - $conf[\CURLOPT_PROTOCOLS] = \CURLPROTO_HTTP | \CURLPROTO_HTTPS; - } - - $version = $easy->request->getProtocolVersion(); - - if ('2' === $version || '2.0' === $version) { - $conf[\CURLOPT_HTTP_VERSION] = \CURL_HTTP_VERSION_2_0; - } elseif ('1.1' === $version) { - $conf[\CURLOPT_HTTP_VERSION] = \CURL_HTTP_VERSION_1_1; - } else { - $conf[\CURLOPT_HTTP_VERSION] = \CURL_HTTP_VERSION_1_0; - } - - return $conf; - } - - private function applyMethod(EasyHandle $easy, array &$conf): void - { - $body = $easy->request->getBody(); - $size = $body->getSize(); - - if ($size === null || $size > 0) { - $this->applyBody($easy->request, $easy->options, $conf); - - return; - } - - $method = $easy->request->getMethod(); - if ($method === 'PUT' || $method === 'POST') { - // See https://datatracker.ietf.org/doc/html/rfc7230#section-3.3.2 - if (!$easy->request->hasHeader('Content-Length')) { - $conf[\CURLOPT_HTTPHEADER][] = 'Content-Length: 0'; - } - } elseif ($method === 'HEAD') { - $conf[\CURLOPT_NOBODY] = true; - unset( - $conf[\CURLOPT_WRITEFUNCTION], - $conf[\CURLOPT_READFUNCTION], - $conf[\CURLOPT_FILE], - $conf[\CURLOPT_INFILE] - ); - } - } - - private function applyBody(RequestInterface $request, array $options, array &$conf): void - { - $size = $request->hasHeader('Content-Length') - ? (int) $request->getHeaderLine('Content-Length') - : null; - - // Send the body as a string if the size is less than 1MB OR if the - // [curl][body_as_string] request value is set. - if (($size !== null && $size < 1000000) || !empty($options['_body_as_string'])) { - $conf[\CURLOPT_POSTFIELDS] = (string) $request->getBody(); - // Don't duplicate the Content-Length header - $this->removeHeader('Content-Length', $conf); - $this->removeHeader('Transfer-Encoding', $conf); - } else { - $conf[\CURLOPT_UPLOAD] = true; - if ($size !== null) { - $conf[\CURLOPT_INFILESIZE] = $size; - $this->removeHeader('Content-Length', $conf); - } - $body = $request->getBody(); - if ($body->isSeekable()) { - $body->rewind(); - } - $conf[\CURLOPT_READFUNCTION] = static function ($ch, $fd, $length) use ($body) { - return $body->read($length); - }; - } - - // If the Expect header is not present, prevent curl from adding it - if (!$request->hasHeader('Expect')) { - $conf[\CURLOPT_HTTPHEADER][] = 'Expect:'; - } - - // cURL sometimes adds a content-type by default. Prevent this. - if (!$request->hasHeader('Content-Type')) { - $conf[\CURLOPT_HTTPHEADER][] = 'Content-Type:'; - } - } - - private function applyHeaders(EasyHandle $easy, array &$conf): void - { - foreach ($conf['_headers'] as $name => $values) { - foreach ($values as $value) { - $value = (string) $value; - if ($value === '') { - // cURL requires a special format for empty headers. - // See https://github.com/guzzle/guzzle/issues/1882 for more details. - $conf[\CURLOPT_HTTPHEADER][] = "$name;"; - } else { - $conf[\CURLOPT_HTTPHEADER][] = "$name: $value"; - } - } - } - - // Remove the Accept header if one was not set - if (!$easy->request->hasHeader('Accept')) { - $conf[\CURLOPT_HTTPHEADER][] = 'Accept:'; - } - } - - /** - * Remove a header from the options array. - * - * @param string $name Case-insensitive header to remove - * @param array $options Array of options to modify - */ - private function removeHeader(string $name, array &$options): void - { - foreach (\array_keys($options['_headers']) as $key) { - if (!\strcasecmp($key, $name)) { - unset($options['_headers'][$key]); - - return; - } - } - } - - private function applyHandlerOptions(EasyHandle $easy, array &$conf): void - { - $options = $easy->options; - if (isset($options['verify'])) { - if ($options['verify'] === false) { - unset($conf[\CURLOPT_CAINFO]); - $conf[\CURLOPT_SSL_VERIFYHOST] = 0; - $conf[\CURLOPT_SSL_VERIFYPEER] = false; - } else { - $conf[\CURLOPT_SSL_VERIFYHOST] = 2; - $conf[\CURLOPT_SSL_VERIFYPEER] = true; - if (\is_string($options['verify'])) { - // Throw an error if the file/folder/link path is not valid or doesn't exist. - if (!\file_exists($options['verify'])) { - throw new \InvalidArgumentException("SSL CA bundle not found: {$options['verify']}"); - } - // If it's a directory or a link to a directory use CURLOPT_CAPATH. - // If not, it's probably a file, or a link to a file, so use CURLOPT_CAINFO. - if ( - \is_dir($options['verify']) - || ( - \is_link($options['verify']) === true - && ($verifyLink = \readlink($options['verify'])) !== false - && \is_dir($verifyLink) - ) - ) { - $conf[\CURLOPT_CAPATH] = $options['verify']; - } else { - $conf[\CURLOPT_CAINFO] = $options['verify']; - } - } - } - } - - if (!isset($options['curl'][\CURLOPT_ENCODING]) && !empty($options['decode_content'])) { - $accept = $easy->request->getHeaderLine('Accept-Encoding'); - if ($accept) { - $conf[\CURLOPT_ENCODING] = $accept; - } else { - // The empty string enables all available decoders and implicitly - // sets a matching 'Accept-Encoding' header. - $conf[\CURLOPT_ENCODING] = ''; - // But as the user did not specify any encoding preference, - // let's leave it up to server by preventing curl from sending - // the header, which will be interpreted as 'Accept-Encoding: *'. - // https://www.rfc-editor.org/rfc/rfc9110#field.accept-encoding - $conf[\CURLOPT_HTTPHEADER][] = 'Accept-Encoding:'; - } - } - - if (!isset($options['sink'])) { - // Use a default temp stream if no sink was set. - $options['sink'] = \GuzzleHttp\Psr7\Utils::tryFopen('php://temp', 'w+'); - } - $sink = $options['sink']; - if (!\is_string($sink)) { - $sink = \GuzzleHttp\Psr7\Utils::streamFor($sink); - } elseif (!\is_dir(\dirname($sink))) { - // Ensure that the directory exists before failing in curl. - throw new \RuntimeException(\sprintf('Directory %s does not exist for sink value of %s', \dirname($sink), $sink)); - } else { - $sink = new LazyOpenStream($sink, 'w+'); - } - $easy->sink = $sink; - $conf[\CURLOPT_WRITEFUNCTION] = static function ($ch, $write) use ($sink): int { - return $sink->write($write); - }; - - $timeoutRequiresNoSignal = false; - if (isset($options['timeout'])) { - $timeoutRequiresNoSignal |= $options['timeout'] < 1; - $conf[\CURLOPT_TIMEOUT_MS] = $options['timeout'] * 1000; - } - - // CURL default value is CURL_IPRESOLVE_WHATEVER - if (isset($options['force_ip_resolve'])) { - if ('v4' === $options['force_ip_resolve']) { - $conf[\CURLOPT_IPRESOLVE] = \CURL_IPRESOLVE_V4; - } elseif ('v6' === $options['force_ip_resolve']) { - $conf[\CURLOPT_IPRESOLVE] = \CURL_IPRESOLVE_V6; - } - } - - if (isset($options['connect_timeout'])) { - $timeoutRequiresNoSignal |= $options['connect_timeout'] < 1; - $conf[\CURLOPT_CONNECTTIMEOUT_MS] = $options['connect_timeout'] * 1000; - } - - if ($timeoutRequiresNoSignal && \strtoupper(\substr(\PHP_OS, 0, 3)) !== 'WIN') { - $conf[\CURLOPT_NOSIGNAL] = true; - } - - if (isset($options['proxy'])) { - if (!\is_array($options['proxy'])) { - $conf[\CURLOPT_PROXY] = $options['proxy']; - } else { - $scheme = $easy->request->getUri()->getScheme(); - if (isset($options['proxy'][$scheme])) { - $host = $easy->request->getUri()->getHost(); - if (isset($options['proxy']['no']) && Utils::isHostInNoProxy($host, $options['proxy']['no'])) { - unset($conf[\CURLOPT_PROXY]); - } else { - $conf[\CURLOPT_PROXY] = $options['proxy'][$scheme]; - } - } - } - } - - if (isset($options['crypto_method'])) { - $protocolVersion = $easy->request->getProtocolVersion(); - - // If HTTP/2, upgrade TLS 1.0 and 1.1 to 1.2 - if ('2' === $protocolVersion || '2.0' === $protocolVersion) { - if ( - \STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT === $options['crypto_method'] - || \STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT === $options['crypto_method'] - || \STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT === $options['crypto_method'] - ) { - $conf[\CURLOPT_SSLVERSION] = \CURL_SSLVERSION_TLSv1_2; - } elseif (defined('STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT') && \STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT === $options['crypto_method']) { - if (!self::supportsTls13()) { - throw new \InvalidArgumentException('Invalid crypto_method request option: TLS 1.3 not supported by your version of cURL'); - } - $conf[\CURLOPT_SSLVERSION] = \CURL_SSLVERSION_TLSv1_3; - } else { - throw new \InvalidArgumentException('Invalid crypto_method request option: unknown version provided'); - } - } elseif (\STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT === $options['crypto_method']) { - $conf[\CURLOPT_SSLVERSION] = \CURL_SSLVERSION_TLSv1_0; - } elseif (\STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT === $options['crypto_method']) { - $conf[\CURLOPT_SSLVERSION] = \CURL_SSLVERSION_TLSv1_1; - } elseif (\STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT === $options['crypto_method']) { - if (!self::supportsTls12()) { - throw new \InvalidArgumentException('Invalid crypto_method request option: TLS 1.2 not supported by your version of cURL'); - } - $conf[\CURLOPT_SSLVERSION] = \CURL_SSLVERSION_TLSv1_2; - } elseif (defined('STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT') && \STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT === $options['crypto_method']) { - if (!self::supportsTls13()) { - throw new \InvalidArgumentException('Invalid crypto_method request option: TLS 1.3 not supported by your version of cURL'); - } - $conf[\CURLOPT_SSLVERSION] = \CURL_SSLVERSION_TLSv1_3; - } else { - throw new \InvalidArgumentException('Invalid crypto_method request option: unknown version provided'); - } - } - - if (isset($options['cert'])) { - $cert = $options['cert']; - if (\is_array($cert)) { - $conf[\CURLOPT_SSLCERTPASSWD] = $cert[1]; - $cert = $cert[0]; - } - if (!\file_exists($cert)) { - throw new \InvalidArgumentException("SSL certificate not found: {$cert}"); - } - // OpenSSL (versions 0.9.3 and later) also support "P12" for PKCS#12-encoded files. - // see https://curl.se/libcurl/c/CURLOPT_SSLCERTTYPE.html - $ext = pathinfo($cert, \PATHINFO_EXTENSION); - if (preg_match('#^(der|p12)$#i', $ext)) { - $conf[\CURLOPT_SSLCERTTYPE] = strtoupper($ext); - } - $conf[\CURLOPT_SSLCERT] = $cert; - } - - if (isset($options['ssl_key'])) { - if (\is_array($options['ssl_key'])) { - if (\count($options['ssl_key']) === 2) { - [$sslKey, $conf[\CURLOPT_SSLKEYPASSWD]] = $options['ssl_key']; - } else { - [$sslKey] = $options['ssl_key']; - } - } - - $sslKey = $sslKey ?? $options['ssl_key']; - - if (!\file_exists($sslKey)) { - throw new \InvalidArgumentException("SSL private key not found: {$sslKey}"); - } - $conf[\CURLOPT_SSLKEY] = $sslKey; - } - - if (isset($options['progress'])) { - $progress = $options['progress']; - if (!\is_callable($progress)) { - throw new \InvalidArgumentException('progress client option must be callable'); - } - $conf[\CURLOPT_NOPROGRESS] = false; - $conf[\CURLOPT_PROGRESSFUNCTION] = static function ($resource, int $downloadSize, int $downloaded, int $uploadSize, int $uploaded) use ($progress) { - $progress($downloadSize, $downloaded, $uploadSize, $uploaded); - }; - } - - if (!empty($options['debug'])) { - $conf[\CURLOPT_STDERR] = Utils::debugResource($options['debug']); - $conf[\CURLOPT_VERBOSE] = true; - } - } - - /** - * This function ensures that a response was set on a transaction. If one - * was not set, then the request is retried if possible. This error - * typically means you are sending a payload, curl encountered a - * "Connection died, retrying a fresh connect" error, tried to rewind the - * stream, and then encountered a "necessary data rewind wasn't possible" - * error, causing the request to be sent through curl_multi_info_read() - * without an error status. - * - * @param callable(RequestInterface, array): PromiseInterface $handler - */ - private static function retryFailedRewind(callable $handler, EasyHandle $easy, array $ctx): PromiseInterface - { - try { - // Only rewind if the body has been read from. - $body = $easy->request->getBody(); - if ($body->tell() > 0) { - $body->rewind(); - } - } catch (\RuntimeException $e) { - $ctx['error'] = 'The connection unexpectedly failed without ' - .'providing an error. The request would have been retried, ' - .'but attempting to rewind the request body failed. ' - .'Exception: '.$e; - - return self::createRejection($easy, $ctx); - } - - // Retry no more than 3 times before giving up. - if (!isset($easy->options['_curl_retries'])) { - $easy->options['_curl_retries'] = 1; - } elseif ($easy->options['_curl_retries'] == 2) { - $ctx['error'] = 'The cURL request was retried 3 times ' - .'and did not succeed. The most likely reason for the failure ' - .'is that cURL was unable to rewind the body of the request ' - .'and subsequent retries resulted in the same error. Turn on ' - .'the debug option to see what went wrong. See ' - .'https://bugs.php.net/bug.php?id=47204 for more information.'; - - return self::createRejection($easy, $ctx); - } else { - ++$easy->options['_curl_retries']; - } - - return $handler($easy->request, $easy->options); - } - - private function createHeaderFn(EasyHandle $easy): callable - { - if (isset($easy->options['on_headers'])) { - $onHeaders = $easy->options['on_headers']; - - if (!\is_callable($onHeaders)) { - throw new \InvalidArgumentException('on_headers must be callable'); - } - } else { - $onHeaders = null; - } - - return static function ($ch, $h) use ( - $onHeaders, - $easy, - &$startingResponse - ) { - $value = \trim($h); - if ($value === '') { - $startingResponse = true; - try { - $easy->createResponse(); - } catch (\Exception $e) { - $easy->createResponseException = $e; - - return -1; - } - if ($onHeaders !== null) { - try { - $onHeaders($easy->response); - } catch (\Exception $e) { - // Associate the exception with the handle and trigger - // a curl header write error by returning 0. - $easy->onHeadersException = $e; - - return -1; - } - } - } elseif ($startingResponse) { - $startingResponse = false; - $easy->headers = [$value]; - } else { - $easy->headers[] = $value; - } - - return \strlen($h); - }; - } - - public function __destruct() - { - foreach ($this->handles as $id => $handle) { - \curl_close($handle); - unset($this->handles[$id]); - } - } -} diff --git a/vendor/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php b/vendor/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php deleted file mode 100644 index fe57ed5..0000000 --- a/vendor/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php +++ /dev/null @@ -1,25 +0,0 @@ -factory = $options['handle_factory'] - ?? new CurlFactory(3); - } - - public function __invoke(RequestInterface $request, array $options): PromiseInterface - { - if (isset($options['delay'])) { - \usleep($options['delay'] * 1000); - } - - $easy = $this->factory->create($request, $options); - \curl_exec($easy->handle); - $easy->errno = \curl_errno($easy->handle); - - return CurlFactory::finish($this, $easy, $this->factory); - } -} diff --git a/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php b/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php deleted file mode 100644 index 73a6abe..0000000 --- a/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php +++ /dev/null @@ -1,284 +0,0 @@ - An array of delay times, indexed by handle id in `addRequest`. - * - * @see CurlMultiHandler::addRequest - */ - private $delays = []; - - /** - * @var array An associative array of CURLMOPT_* options and corresponding values for curl_multi_setopt() - */ - private $options = []; - - /** @var resource|\CurlMultiHandle */ - private $_mh; - - /** - * This handler accepts the following options: - * - * - handle_factory: An optional factory used to create curl handles - * - select_timeout: Optional timeout (in seconds) to block before timing - * out while selecting curl handles. Defaults to 1 second. - * - options: An associative array of CURLMOPT_* options and - * corresponding values for curl_multi_setopt() - */ - public function __construct(array $options = []) - { - $this->factory = $options['handle_factory'] ?? new CurlFactory(50); - - if (isset($options['select_timeout'])) { - $this->selectTimeout = $options['select_timeout']; - } elseif ($selectTimeout = Utils::getenv('GUZZLE_CURL_SELECT_TIMEOUT')) { - @trigger_error('Since guzzlehttp/guzzle 7.2.0: Using environment variable GUZZLE_CURL_SELECT_TIMEOUT is deprecated. Use option "select_timeout" instead.', \E_USER_DEPRECATED); - $this->selectTimeout = (int) $selectTimeout; - } else { - $this->selectTimeout = 1; - } - - $this->options = $options['options'] ?? []; - - // unsetting the property forces the first access to go through - // __get(). - unset($this->_mh); - } - - /** - * @param string $name - * - * @return resource|\CurlMultiHandle - * - * @throws \BadMethodCallException when another field as `_mh` will be gotten - * @throws \RuntimeException when curl can not initialize a multi handle - */ - public function __get($name) - { - if ($name !== '_mh') { - throw new \BadMethodCallException("Can not get other property as '_mh'."); - } - - $multiHandle = \curl_multi_init(); - - if (false === $multiHandle) { - throw new \RuntimeException('Can not initialize curl multi handle.'); - } - - $this->_mh = $multiHandle; - - foreach ($this->options as $option => $value) { - // A warning is raised in case of a wrong option. - curl_multi_setopt($this->_mh, $option, $value); - } - - return $this->_mh; - } - - public function __destruct() - { - if (isset($this->_mh)) { - \curl_multi_close($this->_mh); - unset($this->_mh); - } - } - - public function __invoke(RequestInterface $request, array $options): PromiseInterface - { - $easy = $this->factory->create($request, $options); - $id = (int) $easy->handle; - - $promise = new Promise( - [$this, 'execute'], - function () use ($id) { - return $this->cancel($id); - } - ); - - $this->addRequest(['easy' => $easy, 'deferred' => $promise]); - - return $promise; - } - - /** - * Ticks the curl event loop. - */ - public function tick(): void - { - // Add any delayed handles if needed. - if ($this->delays) { - $currentTime = Utils::currentTime(); - foreach ($this->delays as $id => $delay) { - if ($currentTime >= $delay) { - unset($this->delays[$id]); - \curl_multi_add_handle( - $this->_mh, - $this->handles[$id]['easy']->handle - ); - } - } - } - - // Run curl_multi_exec in the queue to enable other async tasks to run - P\Utils::queue()->add(Closure::fromCallable([$this, 'tickInQueue'])); - - // Step through the task queue which may add additional requests. - P\Utils::queue()->run(); - - if ($this->active && \curl_multi_select($this->_mh, $this->selectTimeout) === -1) { - // Perform a usleep if a select returns -1. - // See: https://bugs.php.net/bug.php?id=61141 - \usleep(250); - } - - while (\curl_multi_exec($this->_mh, $this->active) === \CURLM_CALL_MULTI_PERFORM) { - // Prevent busy looping for slow HTTP requests. - \curl_multi_select($this->_mh, $this->selectTimeout); - } - - $this->processMessages(); - } - - /** - * Runs \curl_multi_exec() inside the event loop, to prevent busy looping - */ - private function tickInQueue(): void - { - if (\curl_multi_exec($this->_mh, $this->active) === \CURLM_CALL_MULTI_PERFORM) { - \curl_multi_select($this->_mh, 0); - P\Utils::queue()->add(Closure::fromCallable([$this, 'tickInQueue'])); - } - } - - /** - * Runs until all outstanding connections have completed. - */ - public function execute(): void - { - $queue = P\Utils::queue(); - - while ($this->handles || !$queue->isEmpty()) { - // If there are no transfers, then sleep for the next delay - if (!$this->active && $this->delays) { - \usleep($this->timeToNext()); - } - $this->tick(); - } - } - - private function addRequest(array $entry): void - { - $easy = $entry['easy']; - $id = (int) $easy->handle; - $this->handles[$id] = $entry; - if (empty($easy->options['delay'])) { - \curl_multi_add_handle($this->_mh, $easy->handle); - } else { - $this->delays[$id] = Utils::currentTime() + ($easy->options['delay'] / 1000); - } - } - - /** - * Cancels a handle from sending and removes references to it. - * - * @param int $id Handle ID to cancel and remove. - * - * @return bool True on success, false on failure. - */ - private function cancel($id): bool - { - if (!is_int($id)) { - trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing an integer to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__); - } - - // Cannot cancel if it has been processed. - if (!isset($this->handles[$id])) { - return false; - } - - $handle = $this->handles[$id]['easy']->handle; - unset($this->delays[$id], $this->handles[$id]); - \curl_multi_remove_handle($this->_mh, $handle); - \curl_close($handle); - - return true; - } - - private function processMessages(): void - { - while ($done = \curl_multi_info_read($this->_mh)) { - if ($done['msg'] !== \CURLMSG_DONE) { - // if it's not done, then it would be premature to remove the handle. ref https://github.com/guzzle/guzzle/pull/2892#issuecomment-945150216 - continue; - } - $id = (int) $done['handle']; - \curl_multi_remove_handle($this->_mh, $done['handle']); - - if (!isset($this->handles[$id])) { - // Probably was cancelled. - continue; - } - - $entry = $this->handles[$id]; - unset($this->handles[$id], $this->delays[$id]); - $entry['easy']->errno = $done['result']; - $entry['deferred']->resolve( - CurlFactory::finish($this, $entry['easy'], $this->factory) - ); - } - } - - private function timeToNext(): int - { - $currentTime = Utils::currentTime(); - $nextTime = \PHP_INT_MAX; - foreach ($this->delays as $time) { - if ($time < $nextTime) { - $nextTime = $time; - } - } - - return ((int) \max(0, $nextTime - $currentTime)) * 1000000; - } -} diff --git a/vendor/guzzlehttp/guzzle/src/Handler/EasyHandle.php b/vendor/guzzlehttp/guzzle/src/Handler/EasyHandle.php deleted file mode 100644 index 1bc39f4..0000000 --- a/vendor/guzzlehttp/guzzle/src/Handler/EasyHandle.php +++ /dev/null @@ -1,112 +0,0 @@ -headers); - - $normalizedKeys = Utils::normalizeHeaderKeys($headers); - - if (!empty($this->options['decode_content']) && isset($normalizedKeys['content-encoding'])) { - $headers['x-encoded-content-encoding'] = $headers[$normalizedKeys['content-encoding']]; - unset($headers[$normalizedKeys['content-encoding']]); - if (isset($normalizedKeys['content-length'])) { - $headers['x-encoded-content-length'] = $headers[$normalizedKeys['content-length']]; - - $bodyLength = (int) $this->sink->getSize(); - if ($bodyLength) { - $headers[$normalizedKeys['content-length']] = $bodyLength; - } else { - unset($headers[$normalizedKeys['content-length']]); - } - } - } - - // Attach a response to the easy handle with the parsed headers. - $this->response = new Response( - $status, - $headers, - $this->sink, - $ver, - $reason - ); - } - - /** - * @param string $name - * - * @return void - * - * @throws \BadMethodCallException - */ - public function __get($name) - { - $msg = $name === 'handle' ? 'The EasyHandle has been released' : 'Invalid property: '.$name; - throw new \BadMethodCallException($msg); - } -} diff --git a/vendor/guzzlehttp/guzzle/src/Handler/HeaderProcessor.php b/vendor/guzzlehttp/guzzle/src/Handler/HeaderProcessor.php deleted file mode 100644 index 5554b8f..0000000 --- a/vendor/guzzlehttp/guzzle/src/Handler/HeaderProcessor.php +++ /dev/null @@ -1,42 +0,0 @@ -|null $queue The parameters to be passed to the append function, as an indexed array. - * @param callable|null $onFulfilled Callback to invoke when the return value is fulfilled. - * @param callable|null $onRejected Callback to invoke when the return value is rejected. - */ - public function __construct(?array $queue = null, ?callable $onFulfilled = null, ?callable $onRejected = null) - { - $this->onFulfilled = $onFulfilled; - $this->onRejected = $onRejected; - - if ($queue) { - // array_values included for BC - $this->append(...array_values($queue)); - } - } - - public function __invoke(RequestInterface $request, array $options): PromiseInterface - { - if (!$this->queue) { - throw new \OutOfBoundsException('Mock queue is empty'); - } - - if (isset($options['delay']) && \is_numeric($options['delay'])) { - \usleep((int) $options['delay'] * 1000); - } - - $this->lastRequest = $request; - $this->lastOptions = $options; - $response = \array_shift($this->queue); - - if (isset($options['on_headers'])) { - if (!\is_callable($options['on_headers'])) { - throw new \InvalidArgumentException('on_headers must be callable'); - } - try { - $options['on_headers']($response); - } catch (\Exception $e) { - $msg = 'An error was encountered during the on_headers event'; - $response = new RequestException($msg, $request, $response, $e); - } - } - - if (\is_callable($response)) { - $response = $response($request, $options); - } - - $response = $response instanceof \Throwable - ? P\Create::rejectionFor($response) - : P\Create::promiseFor($response); - - return $response->then( - function (?ResponseInterface $value) use ($request, $options) { - $this->invokeStats($request, $options, $value); - if ($this->onFulfilled) { - ($this->onFulfilled)($value); - } - - if ($value !== null && isset($options['sink'])) { - $contents = (string) $value->getBody(); - $sink = $options['sink']; - - if (\is_resource($sink)) { - \fwrite($sink, $contents); - } elseif (\is_string($sink)) { - \file_put_contents($sink, $contents); - } elseif ($sink instanceof StreamInterface) { - $sink->write($contents); - } - } - - return $value; - }, - function ($reason) use ($request, $options) { - $this->invokeStats($request, $options, null, $reason); - if ($this->onRejected) { - ($this->onRejected)($reason); - } - - return P\Create::rejectionFor($reason); - } - ); - } - - /** - * Adds one or more variadic requests, exceptions, callables, or promises - * to the queue. - * - * @param mixed ...$values - */ - public function append(...$values): void - { - foreach ($values as $value) { - if ($value instanceof ResponseInterface - || $value instanceof \Throwable - || $value instanceof PromiseInterface - || \is_callable($value) - ) { - $this->queue[] = $value; - } else { - throw new \TypeError('Expected a Response, Promise, Throwable or callable. Found '.Utils::describeType($value)); - } - } - } - - /** - * Get the last received request. - */ - public function getLastRequest(): ?RequestInterface - { - return $this->lastRequest; - } - - /** - * Get the last received request options. - */ - public function getLastOptions(): array - { - return $this->lastOptions; - } - - /** - * Returns the number of remaining items in the queue. - */ - public function count(): int - { - return \count($this->queue); - } - - public function reset(): void - { - $this->queue = []; - } - - /** - * @param mixed $reason Promise or reason. - */ - private function invokeStats( - RequestInterface $request, - array $options, - ?ResponseInterface $response = null, - $reason = null - ): void { - if (isset($options['on_stats'])) { - $transferTime = $options['transfer_time'] ?? 0; - $stats = new TransferStats($request, $response, $transferTime, $reason); - ($options['on_stats'])($stats); - } - } -} diff --git a/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php b/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php deleted file mode 100644 index f045b52..0000000 --- a/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php +++ /dev/null @@ -1,51 +0,0 @@ -getProtocolVersion(); - - if ('1.0' !== $protocolVersion && '1.1' !== $protocolVersion) { - throw new ConnectException(sprintf('HTTP/%s is not supported by the stream handler.', $protocolVersion), $request); - } - - $startTime = isset($options['on_stats']) ? Utils::currentTime() : null; - - try { - // Does not support the expect header. - $request = $request->withoutHeader('Expect'); - - // Append a content-length header if body size is zero to match - // cURL's behavior. - if (0 === $request->getBody()->getSize()) { - $request = $request->withHeader('Content-Length', '0'); - } - - return $this->createResponse( - $request, - $options, - $this->createStream($request, $options), - $startTime - ); - } catch (\InvalidArgumentException $e) { - throw $e; - } catch (\Exception $e) { - // Determine if the error was a networking error. - $message = $e->getMessage(); - // This list can probably get more comprehensive. - if (false !== \strpos($message, 'getaddrinfo') // DNS lookup failed - || false !== \strpos($message, 'Connection refused') - || false !== \strpos($message, "couldn't connect to host") // error on HHVM - || false !== \strpos($message, 'connection attempt failed') - ) { - $e = new ConnectException($e->getMessage(), $request, $e); - } else { - $e = RequestException::wrapException($request, $e); - } - $this->invokeStats($options, $request, $startTime, null, $e); - - return P\Create::rejectionFor($e); - } - } - - private function invokeStats( - array $options, - RequestInterface $request, - ?float $startTime, - ?ResponseInterface $response = null, - ?\Throwable $error = null - ): void { - if (isset($options['on_stats'])) { - $stats = new TransferStats($request, $response, Utils::currentTime() - $startTime, $error, []); - ($options['on_stats'])($stats); - } - } - - /** - * @param resource $stream - */ - private function createResponse(RequestInterface $request, array $options, $stream, ?float $startTime): PromiseInterface - { - $hdrs = $this->lastHeaders; - $this->lastHeaders = []; - - try { - [$ver, $status, $reason, $headers] = HeaderProcessor::parseHeaders($hdrs); - } catch (\Exception $e) { - return P\Create::rejectionFor( - new RequestException('An error was encountered while creating the response', $request, null, $e) - ); - } - - [$stream, $headers] = $this->checkDecode($options, $headers, $stream); - $stream = Psr7\Utils::streamFor($stream); - $sink = $stream; - - if (\strcasecmp('HEAD', $request->getMethod())) { - $sink = $this->createSink($stream, $options); - } - - try { - $response = new Psr7\Response($status, $headers, $sink, $ver, $reason); - } catch (\Exception $e) { - return P\Create::rejectionFor( - new RequestException('An error was encountered while creating the response', $request, null, $e) - ); - } - - if (isset($options['on_headers'])) { - try { - $options['on_headers']($response); - } catch (\Exception $e) { - return P\Create::rejectionFor( - new RequestException('An error was encountered during the on_headers event', $request, $response, $e) - ); - } - } - - // Do not drain when the request is a HEAD request because they have - // no body. - if ($sink !== $stream) { - $this->drain($stream, $sink, $response->getHeaderLine('Content-Length')); - } - - $this->invokeStats($options, $request, $startTime, $response, null); - - return new FulfilledPromise($response); - } - - private function createSink(StreamInterface $stream, array $options): StreamInterface - { - if (!empty($options['stream'])) { - return $stream; - } - - $sink = $options['sink'] ?? Psr7\Utils::tryFopen('php://temp', 'r+'); - - return \is_string($sink) ? new Psr7\LazyOpenStream($sink, 'w+') : Psr7\Utils::streamFor($sink); - } - - /** - * @param resource $stream - */ - private function checkDecode(array $options, array $headers, $stream): array - { - // Automatically decode responses when instructed. - if (!empty($options['decode_content'])) { - $normalizedKeys = Utils::normalizeHeaderKeys($headers); - if (isset($normalizedKeys['content-encoding'])) { - $encoding = $headers[$normalizedKeys['content-encoding']]; - if ($encoding[0] === 'gzip' || $encoding[0] === 'deflate') { - $stream = new Psr7\InflateStream(Psr7\Utils::streamFor($stream)); - $headers['x-encoded-content-encoding'] = $headers[$normalizedKeys['content-encoding']]; - - // Remove content-encoding header - unset($headers[$normalizedKeys['content-encoding']]); - - // Fix content-length header - if (isset($normalizedKeys['content-length'])) { - $headers['x-encoded-content-length'] = $headers[$normalizedKeys['content-length']]; - $length = (int) $stream->getSize(); - if ($length === 0) { - unset($headers[$normalizedKeys['content-length']]); - } else { - $headers[$normalizedKeys['content-length']] = [$length]; - } - } - } - } - } - - return [$stream, $headers]; - } - - /** - * Drains the source stream into the "sink" client option. - * - * @param string $contentLength Header specifying the amount of - * data to read. - * - * @throws \RuntimeException when the sink option is invalid. - */ - private function drain(StreamInterface $source, StreamInterface $sink, string $contentLength): StreamInterface - { - // If a content-length header is provided, then stop reading once - // that number of bytes has been read. This can prevent infinitely - // reading from a stream when dealing with servers that do not honor - // Connection: Close headers. - Psr7\Utils::copyToStream( - $source, - $sink, - (\strlen($contentLength) > 0 && (int) $contentLength > 0) ? (int) $contentLength : -1 - ); - - $sink->seek(0); - $source->close(); - - return $sink; - } - - /** - * Create a resource and check to ensure it was created successfully - * - * @param callable $callback Callable that returns stream resource - * - * @return resource - * - * @throws \RuntimeException on error - */ - private function createResource(callable $callback) - { - $errors = []; - \set_error_handler(static function ($_, $msg, $file, $line) use (&$errors): bool { - $errors[] = [ - 'message' => $msg, - 'file' => $file, - 'line' => $line, - ]; - - return true; - }); - - try { - $resource = $callback(); - } finally { - \restore_error_handler(); - } - - if (!$resource) { - $message = 'Error creating resource: '; - foreach ($errors as $err) { - foreach ($err as $key => $value) { - $message .= "[$key] $value".\PHP_EOL; - } - } - throw new \RuntimeException(\trim($message)); - } - - return $resource; - } - - /** - * @return resource - */ - private function createStream(RequestInterface $request, array $options) - { - static $methods; - if (!$methods) { - $methods = \array_flip(\get_class_methods(__CLASS__)); - } - - if (!\in_array($request->getUri()->getScheme(), ['http', 'https'])) { - throw new RequestException(\sprintf("The scheme '%s' is not supported.", $request->getUri()->getScheme()), $request); - } - - // HTTP/1.1 streams using the PHP stream wrapper require a - // Connection: close header - if ($request->getProtocolVersion() === '1.1' - && !$request->hasHeader('Connection') - ) { - $request = $request->withHeader('Connection', 'close'); - } - - // Ensure SSL is verified by default - if (!isset($options['verify'])) { - $options['verify'] = true; - } - - $params = []; - $context = $this->getDefaultContext($request); - - if (isset($options['on_headers']) && !\is_callable($options['on_headers'])) { - throw new \InvalidArgumentException('on_headers must be callable'); - } - - if (!empty($options)) { - foreach ($options as $key => $value) { - $method = "add_{$key}"; - if (isset($methods[$method])) { - $this->{$method}($request, $context, $value, $params); - } - } - } - - if (isset($options['stream_context'])) { - if (!\is_array($options['stream_context'])) { - throw new \InvalidArgumentException('stream_context must be an array'); - } - $context = \array_replace_recursive($context, $options['stream_context']); - } - - // Microsoft NTLM authentication only supported with curl handler - if (isset($options['auth'][2]) && 'ntlm' === $options['auth'][2]) { - throw new \InvalidArgumentException('Microsoft NTLM authentication only supported with curl handler'); - } - - $uri = $this->resolveHost($request, $options); - - $contextResource = $this->createResource( - static function () use ($context, $params) { - return \stream_context_create($context, $params); - } - ); - - return $this->createResource( - function () use ($uri, &$http_response_header, $contextResource, $context, $options, $request) { - $resource = @\fopen((string) $uri, 'r', false, $contextResource); - $this->lastHeaders = $http_response_header ?? []; - - if (false === $resource) { - throw new ConnectException(sprintf('Connection refused for URI %s', $uri), $request, null, $context); - } - - if (isset($options['read_timeout'])) { - $readTimeout = $options['read_timeout']; - $sec = (int) $readTimeout; - $usec = ($readTimeout - $sec) * 100000; - \stream_set_timeout($resource, $sec, $usec); - } - - return $resource; - } - ); - } - - private function resolveHost(RequestInterface $request, array $options): UriInterface - { - $uri = $request->getUri(); - - if (isset($options['force_ip_resolve']) && !\filter_var($uri->getHost(), \FILTER_VALIDATE_IP)) { - if ('v4' === $options['force_ip_resolve']) { - $records = \dns_get_record($uri->getHost(), \DNS_A); - if (false === $records || !isset($records[0]['ip'])) { - throw new ConnectException(\sprintf("Could not resolve IPv4 address for host '%s'", $uri->getHost()), $request); - } - - return $uri->withHost($records[0]['ip']); - } - if ('v6' === $options['force_ip_resolve']) { - $records = \dns_get_record($uri->getHost(), \DNS_AAAA); - if (false === $records || !isset($records[0]['ipv6'])) { - throw new ConnectException(\sprintf("Could not resolve IPv6 address for host '%s'", $uri->getHost()), $request); - } - - return $uri->withHost('['.$records[0]['ipv6'].']'); - } - } - - return $uri; - } - - private function getDefaultContext(RequestInterface $request): array - { - $headers = ''; - foreach ($request->getHeaders() as $name => $value) { - foreach ($value as $val) { - $headers .= "$name: $val\r\n"; - } - } - - $context = [ - 'http' => [ - 'method' => $request->getMethod(), - 'header' => $headers, - 'protocol_version' => $request->getProtocolVersion(), - 'ignore_errors' => true, - 'follow_location' => 0, - ], - 'ssl' => [ - 'peer_name' => $request->getUri()->getHost(), - ], - ]; - - $body = (string) $request->getBody(); - - if ('' !== $body) { - $context['http']['content'] = $body; - // Prevent the HTTP handler from adding a Content-Type header. - if (!$request->hasHeader('Content-Type')) { - $context['http']['header'] .= "Content-Type:\r\n"; - } - } - - $context['http']['header'] = \rtrim($context['http']['header']); - - return $context; - } - - /** - * @param mixed $value as passed via Request transfer options. - */ - private function add_proxy(RequestInterface $request, array &$options, $value, array &$params): void - { - $uri = null; - - if (!\is_array($value)) { - $uri = $value; - } else { - $scheme = $request->getUri()->getScheme(); - if (isset($value[$scheme])) { - if (!isset($value['no']) || !Utils::isHostInNoProxy($request->getUri()->getHost(), $value['no'])) { - $uri = $value[$scheme]; - } - } - } - - if (!$uri) { - return; - } - - $parsed = $this->parse_proxy($uri); - $options['http']['proxy'] = $parsed['proxy']; - - if ($parsed['auth']) { - if (!isset($options['http']['header'])) { - $options['http']['header'] = []; - } - $options['http']['header'] .= "\r\nProxy-Authorization: {$parsed['auth']}"; - } - } - - /** - * Parses the given proxy URL to make it compatible with the format PHP's stream context expects. - */ - private function parse_proxy(string $url): array - { - $parsed = \parse_url($url); - - if ($parsed !== false && isset($parsed['scheme']) && $parsed['scheme'] === 'http') { - if (isset($parsed['host']) && isset($parsed['port'])) { - $auth = null; - if (isset($parsed['user']) && isset($parsed['pass'])) { - $auth = \base64_encode("{$parsed['user']}:{$parsed['pass']}"); - } - - return [ - 'proxy' => "tcp://{$parsed['host']}:{$parsed['port']}", - 'auth' => $auth ? "Basic {$auth}" : null, - ]; - } - } - - // Return proxy as-is. - return [ - 'proxy' => $url, - 'auth' => null, - ]; - } - - /** - * @param mixed $value as passed via Request transfer options. - */ - private function add_timeout(RequestInterface $request, array &$options, $value, array &$params): void - { - if ($value > 0) { - $options['http']['timeout'] = $value; - } - } - - /** - * @param mixed $value as passed via Request transfer options. - */ - private function add_crypto_method(RequestInterface $request, array &$options, $value, array &$params): void - { - if ( - $value === \STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT - || $value === \STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT - || $value === \STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT - || (defined('STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT') && $value === \STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT) - ) { - $options['http']['crypto_method'] = $value; - - return; - } - - throw new \InvalidArgumentException('Invalid crypto_method request option: unknown version provided'); - } - - /** - * @param mixed $value as passed via Request transfer options. - */ - private function add_verify(RequestInterface $request, array &$options, $value, array &$params): void - { - if ($value === false) { - $options['ssl']['verify_peer'] = false; - $options['ssl']['verify_peer_name'] = false; - - return; - } - - if (\is_string($value)) { - $options['ssl']['cafile'] = $value; - if (!\file_exists($value)) { - throw new \RuntimeException("SSL CA bundle not found: $value"); - } - } elseif ($value !== true) { - throw new \InvalidArgumentException('Invalid verify request option'); - } - - $options['ssl']['verify_peer'] = true; - $options['ssl']['verify_peer_name'] = true; - $options['ssl']['allow_self_signed'] = false; - } - - /** - * @param mixed $value as passed via Request transfer options. - */ - private function add_cert(RequestInterface $request, array &$options, $value, array &$params): void - { - if (\is_array($value)) { - $options['ssl']['passphrase'] = $value[1]; - $value = $value[0]; - } - - if (!\file_exists($value)) { - throw new \RuntimeException("SSL certificate not found: {$value}"); - } - - $options['ssl']['local_cert'] = $value; - } - - /** - * @param mixed $value as passed via Request transfer options. - */ - private function add_progress(RequestInterface $request, array &$options, $value, array &$params): void - { - self::addNotification( - $params, - static function ($code, $a, $b, $c, $transferred, $total) use ($value) { - if ($code == \STREAM_NOTIFY_PROGRESS) { - // The upload progress cannot be determined. Use 0 for cURL compatibility: - // https://curl.se/libcurl/c/CURLOPT_PROGRESSFUNCTION.html - $value($total, $transferred, 0, 0); - } - } - ); - } - - /** - * @param mixed $value as passed via Request transfer options. - */ - private function add_debug(RequestInterface $request, array &$options, $value, array &$params): void - { - if ($value === false) { - return; - } - - static $map = [ - \STREAM_NOTIFY_CONNECT => 'CONNECT', - \STREAM_NOTIFY_AUTH_REQUIRED => 'AUTH_REQUIRED', - \STREAM_NOTIFY_AUTH_RESULT => 'AUTH_RESULT', - \STREAM_NOTIFY_MIME_TYPE_IS => 'MIME_TYPE_IS', - \STREAM_NOTIFY_FILE_SIZE_IS => 'FILE_SIZE_IS', - \STREAM_NOTIFY_REDIRECTED => 'REDIRECTED', - \STREAM_NOTIFY_PROGRESS => 'PROGRESS', - \STREAM_NOTIFY_FAILURE => 'FAILURE', - \STREAM_NOTIFY_COMPLETED => 'COMPLETED', - \STREAM_NOTIFY_RESOLVE => 'RESOLVE', - ]; - static $args = ['severity', 'message', 'message_code', 'bytes_transferred', 'bytes_max']; - - $value = Utils::debugResource($value); - $ident = $request->getMethod().' '.$request->getUri()->withFragment(''); - self::addNotification( - $params, - static function (int $code, ...$passed) use ($ident, $value, $map, $args): void { - \fprintf($value, '<%s> [%s] ', $ident, $map[$code]); - foreach (\array_filter($passed) as $i => $v) { - \fwrite($value, $args[$i].': "'.$v.'" '); - } - \fwrite($value, "\n"); - } - ); - } - - private static function addNotification(array &$params, callable $notify): void - { - // Wrap the existing function if needed. - if (!isset($params['notification'])) { - $params['notification'] = $notify; - } else { - $params['notification'] = self::callArray([ - $params['notification'], - $notify, - ]); - } - } - - private static function callArray(array $functions): callable - { - return static function (...$args) use ($functions) { - foreach ($functions as $fn) { - $fn(...$args); - } - }; - } -} diff --git a/vendor/guzzlehttp/guzzle/src/HandlerStack.php b/vendor/guzzlehttp/guzzle/src/HandlerStack.php deleted file mode 100644 index 03f9a18..0000000 --- a/vendor/guzzlehttp/guzzle/src/HandlerStack.php +++ /dev/null @@ -1,275 +0,0 @@ -push(Middleware::httpErrors(), 'http_errors'); - $stack->push(Middleware::redirect(), 'allow_redirects'); - $stack->push(Middleware::cookies(), 'cookies'); - $stack->push(Middleware::prepareBody(), 'prepare_body'); - - return $stack; - } - - /** - * @param (callable(RequestInterface, array): PromiseInterface)|null $handler Underlying HTTP handler. - */ - public function __construct(?callable $handler = null) - { - $this->handler = $handler; - } - - /** - * Invokes the handler stack as a composed handler - * - * @return ResponseInterface|PromiseInterface - */ - public function __invoke(RequestInterface $request, array $options) - { - $handler = $this->resolve(); - - return $handler($request, $options); - } - - /** - * Dumps a string representation of the stack. - * - * @return string - */ - public function __toString() - { - $depth = 0; - $stack = []; - - if ($this->handler !== null) { - $stack[] = '0) Handler: '.$this->debugCallable($this->handler); - } - - $result = ''; - foreach (\array_reverse($this->stack) as $tuple) { - ++$depth; - $str = "{$depth}) Name: '{$tuple[1]}', "; - $str .= 'Function: '.$this->debugCallable($tuple[0]); - $result = "> {$str}\n{$result}"; - $stack[] = $str; - } - - foreach (\array_keys($stack) as $k) { - $result .= "< {$stack[$k]}\n"; - } - - return $result; - } - - /** - * Set the HTTP handler that actually returns a promise. - * - * @param callable(RequestInterface, array): PromiseInterface $handler Accepts a request and array of options and - * returns a Promise. - */ - public function setHandler(callable $handler): void - { - $this->handler = $handler; - $this->cached = null; - } - - /** - * Returns true if the builder has a handler. - */ - public function hasHandler(): bool - { - return $this->handler !== null; - } - - /** - * Unshift a middleware to the bottom of the stack. - * - * @param callable(callable): callable $middleware Middleware function - * @param string $name Name to register for this middleware. - */ - public function unshift(callable $middleware, ?string $name = null): void - { - \array_unshift($this->stack, [$middleware, $name]); - $this->cached = null; - } - - /** - * Push a middleware to the top of the stack. - * - * @param callable(callable): callable $middleware Middleware function - * @param string $name Name to register for this middleware. - */ - public function push(callable $middleware, string $name = ''): void - { - $this->stack[] = [$middleware, $name]; - $this->cached = null; - } - - /** - * Add a middleware before another middleware by name. - * - * @param string $findName Middleware to find - * @param callable(callable): callable $middleware Middleware function - * @param string $withName Name to register for this middleware. - */ - public function before(string $findName, callable $middleware, string $withName = ''): void - { - $this->splice($findName, $withName, $middleware, true); - } - - /** - * Add a middleware after another middleware by name. - * - * @param string $findName Middleware to find - * @param callable(callable): callable $middleware Middleware function - * @param string $withName Name to register for this middleware. - */ - public function after(string $findName, callable $middleware, string $withName = ''): void - { - $this->splice($findName, $withName, $middleware, false); - } - - /** - * Remove a middleware by instance or name from the stack. - * - * @param callable|string $remove Middleware to remove by instance or name. - */ - public function remove($remove): void - { - if (!is_string($remove) && !is_callable($remove)) { - trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a callable or string to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__); - } - - $this->cached = null; - $idx = \is_callable($remove) ? 0 : 1; - $this->stack = \array_values(\array_filter( - $this->stack, - static function ($tuple) use ($idx, $remove) { - return $tuple[$idx] !== $remove; - } - )); - } - - /** - * Compose the middleware and handler into a single callable function. - * - * @return callable(RequestInterface, array): PromiseInterface - */ - public function resolve(): callable - { - if ($this->cached === null) { - if (($prev = $this->handler) === null) { - throw new \LogicException('No handler has been specified'); - } - - foreach (\array_reverse($this->stack) as $fn) { - /** @var callable(RequestInterface, array): PromiseInterface $prev */ - $prev = $fn[0]($prev); - } - - $this->cached = $prev; - } - - return $this->cached; - } - - private function findByName(string $name): int - { - foreach ($this->stack as $k => $v) { - if ($v[1] === $name) { - return $k; - } - } - - throw new \InvalidArgumentException("Middleware not found: $name"); - } - - /** - * Splices a function into the middleware list at a specific position. - */ - private function splice(string $findName, string $withName, callable $middleware, bool $before): void - { - $this->cached = null; - $idx = $this->findByName($findName); - $tuple = [$middleware, $withName]; - - if ($before) { - if ($idx === 0) { - \array_unshift($this->stack, $tuple); - } else { - $replacement = [$tuple, $this->stack[$idx]]; - \array_splice($this->stack, $idx, 1, $replacement); - } - } elseif ($idx === \count($this->stack) - 1) { - $this->stack[] = $tuple; - } else { - $replacement = [$this->stack[$idx], $tuple]; - \array_splice($this->stack, $idx, 1, $replacement); - } - } - - /** - * Provides a debug string for a given callable. - * - * @param callable|string $fn Function to write as a string. - */ - private function debugCallable($fn): string - { - if (\is_string($fn)) { - return "callable({$fn})"; - } - - if (\is_array($fn)) { - return \is_string($fn[0]) - ? "callable({$fn[0]}::{$fn[1]})" - : "callable(['".\get_class($fn[0])."', '{$fn[1]}'])"; - } - - /** @var object $fn */ - return 'callable('.\spl_object_hash($fn).')'; - } -} diff --git a/vendor/guzzlehttp/guzzle/src/MessageFormatter.php b/vendor/guzzlehttp/guzzle/src/MessageFormatter.php deleted file mode 100644 index 9b77eee..0000000 --- a/vendor/guzzlehttp/guzzle/src/MessageFormatter.php +++ /dev/null @@ -1,199 +0,0 @@ ->>>>>>>\n{request}\n<<<<<<<<\n{response}\n--------\n{error}"; - public const SHORT = '[{ts}] "{method} {target} HTTP/{version}" {code}'; - - /** - * @var string Template used to format log messages - */ - private $template; - - /** - * @param string $template Log message template - */ - public function __construct(?string $template = self::CLF) - { - $this->template = $template ?: self::CLF; - } - - /** - * Returns a formatted message string. - * - * @param RequestInterface $request Request that was sent - * @param ResponseInterface|null $response Response that was received - * @param \Throwable|null $error Exception that was received - */ - public function format(RequestInterface $request, ?ResponseInterface $response = null, ?\Throwable $error = null): string - { - $cache = []; - - /** @var string */ - return \preg_replace_callback( - '/{\s*([A-Za-z_\-\.0-9]+)\s*}/', - function (array $matches) use ($request, $response, $error, &$cache) { - if (isset($cache[$matches[1]])) { - return $cache[$matches[1]]; - } - - $result = ''; - switch ($matches[1]) { - case 'request': - $result = Psr7\Message::toString($request); - break; - case 'response': - $result = $response ? Psr7\Message::toString($response) : ''; - break; - case 'req_headers': - $result = \trim($request->getMethod() - .' '.$request->getRequestTarget()) - .' HTTP/'.$request->getProtocolVersion()."\r\n" - .$this->headers($request); - break; - case 'res_headers': - $result = $response ? - \sprintf( - 'HTTP/%s %d %s', - $response->getProtocolVersion(), - $response->getStatusCode(), - $response->getReasonPhrase() - )."\r\n".$this->headers($response) - : 'NULL'; - break; - case 'req_body': - $result = $request->getBody()->__toString(); - break; - case 'res_body': - if (!$response instanceof ResponseInterface) { - $result = 'NULL'; - break; - } - - $body = $response->getBody(); - - if (!$body->isSeekable()) { - $result = 'RESPONSE_NOT_LOGGEABLE'; - break; - } - - $result = $response->getBody()->__toString(); - break; - case 'ts': - case 'date_iso_8601': - $result = \gmdate('c'); - break; - case 'date_common_log': - $result = \date('d/M/Y:H:i:s O'); - break; - case 'method': - $result = $request->getMethod(); - break; - case 'version': - $result = $request->getProtocolVersion(); - break; - case 'uri': - case 'url': - $result = $request->getUri()->__toString(); - break; - case 'target': - $result = $request->getRequestTarget(); - break; - case 'req_version': - $result = $request->getProtocolVersion(); - break; - case 'res_version': - $result = $response - ? $response->getProtocolVersion() - : 'NULL'; - break; - case 'host': - $result = $request->getHeaderLine('Host'); - break; - case 'hostname': - $result = \gethostname(); - break; - case 'code': - $result = $response ? $response->getStatusCode() : 'NULL'; - break; - case 'phrase': - $result = $response ? $response->getReasonPhrase() : 'NULL'; - break; - case 'error': - $result = $error ? $error->getMessage() : 'NULL'; - break; - default: - // handle prefixed dynamic headers - if (\strpos($matches[1], 'req_header_') === 0) { - $result = $request->getHeaderLine(\substr($matches[1], 11)); - } elseif (\strpos($matches[1], 'res_header_') === 0) { - $result = $response - ? $response->getHeaderLine(\substr($matches[1], 11)) - : 'NULL'; - } - } - - $cache[$matches[1]] = $result; - - return $result; - }, - $this->template - ); - } - - /** - * Get headers from message as string - */ - private function headers(MessageInterface $message): string - { - $result = ''; - foreach ($message->getHeaders() as $name => $values) { - $result .= $name.': '.\implode(', ', $values)."\r\n"; - } - - return \trim($result); - } -} diff --git a/vendor/guzzlehttp/guzzle/src/MessageFormatterInterface.php b/vendor/guzzlehttp/guzzle/src/MessageFormatterInterface.php deleted file mode 100644 index a39ac24..0000000 --- a/vendor/guzzlehttp/guzzle/src/MessageFormatterInterface.php +++ /dev/null @@ -1,18 +0,0 @@ -withCookieHeader($request); - - return $handler($request, $options) - ->then( - static function (ResponseInterface $response) use ($cookieJar, $request): ResponseInterface { - $cookieJar->extractCookies($request, $response); - - return $response; - } - ); - }; - }; - } - - /** - * Middleware that throws exceptions for 4xx or 5xx responses when the - * "http_errors" request option is set to true. - * - * @param BodySummarizerInterface|null $bodySummarizer The body summarizer to use in exception messages. - * - * @return callable(callable): callable Returns a function that accepts the next handler. - */ - public static function httpErrors(?BodySummarizerInterface $bodySummarizer = null): callable - { - return static function (callable $handler) use ($bodySummarizer): callable { - return static function ($request, array $options) use ($handler, $bodySummarizer) { - if (empty($options['http_errors'])) { - return $handler($request, $options); - } - - return $handler($request, $options)->then( - static function (ResponseInterface $response) use ($request, $bodySummarizer) { - $code = $response->getStatusCode(); - if ($code < 400) { - return $response; - } - throw RequestException::create($request, $response, null, [], $bodySummarizer); - } - ); - }; - }; - } - - /** - * Middleware that pushes history data to an ArrayAccess container. - * - * @param array|\ArrayAccess $container Container to hold the history (by reference). - * - * @return callable(callable): callable Returns a function that accepts the next handler. - * - * @throws \InvalidArgumentException if container is not an array or ArrayAccess. - */ - public static function history(&$container): callable - { - if (!\is_array($container) && !$container instanceof \ArrayAccess) { - throw new \InvalidArgumentException('history container must be an array or object implementing ArrayAccess'); - } - - return static function (callable $handler) use (&$container): callable { - return static function (RequestInterface $request, array $options) use ($handler, &$container) { - return $handler($request, $options)->then( - static function ($value) use ($request, &$container, $options) { - $container[] = [ - 'request' => $request, - 'response' => $value, - 'error' => null, - 'options' => $options, - ]; - - return $value; - }, - static function ($reason) use ($request, &$container, $options) { - $container[] = [ - 'request' => $request, - 'response' => null, - 'error' => $reason, - 'options' => $options, - ]; - - return P\Create::rejectionFor($reason); - } - ); - }; - }; - } - - /** - * Middleware that invokes a callback before and after sending a request. - * - * The provided listener cannot modify or alter the response. It simply - * "taps" into the chain to be notified before returning the promise. The - * before listener accepts a request and options array, and the after - * listener accepts a request, options array, and response promise. - * - * @param callable $before Function to invoke before forwarding the request. - * @param callable $after Function invoked after forwarding. - * - * @return callable Returns a function that accepts the next handler. - */ - public static function tap(?callable $before = null, ?callable $after = null): callable - { - return static function (callable $handler) use ($before, $after): callable { - return static function (RequestInterface $request, array $options) use ($handler, $before, $after) { - if ($before) { - $before($request, $options); - } - $response = $handler($request, $options); - if ($after) { - $after($request, $options, $response); - } - - return $response; - }; - }; - } - - /** - * Middleware that handles request redirects. - * - * @return callable Returns a function that accepts the next handler. - */ - public static function redirect(): callable - { - return static function (callable $handler): RedirectMiddleware { - return new RedirectMiddleware($handler); - }; - } - - /** - * Middleware that retries requests based on the boolean result of - * invoking the provided "decider" function. - * - * If no delay function is provided, a simple implementation of exponential - * backoff will be utilized. - * - * @param callable $decider Function that accepts the number of retries, - * a request, [response], and [exception] and - * returns true if the request is to be retried. - * @param callable $delay Function that accepts the number of retries and - * returns the number of milliseconds to delay. - * - * @return callable Returns a function that accepts the next handler. - */ - public static function retry(callable $decider, ?callable $delay = null): callable - { - return static function (callable $handler) use ($decider, $delay): RetryMiddleware { - return new RetryMiddleware($decider, $handler, $delay); - }; - } - - /** - * Middleware that logs requests, responses, and errors using a message - * formatter. - * - * @phpstan-param \Psr\Log\LogLevel::* $logLevel Level at which to log requests. - * - * @param LoggerInterface $logger Logs messages. - * @param MessageFormatterInterface|MessageFormatter $formatter Formatter used to create message strings. - * @param string $logLevel Level at which to log requests. - * - * @return callable Returns a function that accepts the next handler. - */ - public static function log(LoggerInterface $logger, $formatter, string $logLevel = 'info'): callable - { - // To be compatible with Guzzle 7.1.x we need to allow users to pass a MessageFormatter - if (!$formatter instanceof MessageFormatter && !$formatter instanceof MessageFormatterInterface) { - throw new \LogicException(sprintf('Argument 2 to %s::log() must be of type %s', self::class, MessageFormatterInterface::class)); - } - - return static function (callable $handler) use ($logger, $formatter, $logLevel): callable { - return static function (RequestInterface $request, array $options = []) use ($handler, $logger, $formatter, $logLevel) { - return $handler($request, $options)->then( - static function ($response) use ($logger, $request, $formatter, $logLevel): ResponseInterface { - $message = $formatter->format($request, $response); - $logger->log($logLevel, $message); - - return $response; - }, - static function ($reason) use ($logger, $request, $formatter): PromiseInterface { - $response = $reason instanceof RequestException ? $reason->getResponse() : null; - $message = $formatter->format($request, $response, P\Create::exceptionFor($reason)); - $logger->error($message); - - return P\Create::rejectionFor($reason); - } - ); - }; - }; - } - - /** - * This middleware adds a default content-type if possible, a default - * content-length or transfer-encoding header, and the expect header. - */ - public static function prepareBody(): callable - { - return static function (callable $handler): PrepareBodyMiddleware { - return new PrepareBodyMiddleware($handler); - }; - } - - /** - * Middleware that applies a map function to the request before passing to - * the next handler. - * - * @param callable $fn Function that accepts a RequestInterface and returns - * a RequestInterface. - */ - public static function mapRequest(callable $fn): callable - { - return static function (callable $handler) use ($fn): callable { - return static function (RequestInterface $request, array $options) use ($handler, $fn) { - return $handler($fn($request), $options); - }; - }; - } - - /** - * Middleware that applies a map function to the resolved promise's - * response. - * - * @param callable $fn Function that accepts a ResponseInterface and - * returns a ResponseInterface. - */ - public static function mapResponse(callable $fn): callable - { - return static function (callable $handler) use ($fn): callable { - return static function (RequestInterface $request, array $options) use ($handler, $fn) { - return $handler($request, $options)->then($fn); - }; - }; - } -} diff --git a/vendor/guzzlehttp/guzzle/src/Pool.php b/vendor/guzzlehttp/guzzle/src/Pool.php deleted file mode 100644 index 6277c61..0000000 --- a/vendor/guzzlehttp/guzzle/src/Pool.php +++ /dev/null @@ -1,125 +0,0 @@ - $rfn) { - if ($rfn instanceof RequestInterface) { - yield $key => $client->sendAsync($rfn, $opts); - } elseif (\is_callable($rfn)) { - yield $key => $rfn($opts); - } else { - throw new \InvalidArgumentException('Each value yielded by the iterator must be a Psr7\Http\Message\RequestInterface or a callable that returns a promise that fulfills with a Psr7\Message\Http\ResponseInterface object.'); - } - } - }; - - $this->each = new EachPromise($requests(), $config); - } - - /** - * Get promise - */ - public function promise(): PromiseInterface - { - return $this->each->promise(); - } - - /** - * Sends multiple requests concurrently and returns an array of responses - * and exceptions that uses the same ordering as the provided requests. - * - * IMPORTANT: This method keeps every request and response in memory, and - * as such, is NOT recommended when sending a large number or an - * indeterminate number of requests concurrently. - * - * @param ClientInterface $client Client used to send the requests - * @param array|\Iterator $requests Requests to send concurrently. - * @param array $options Passes through the options available in - * {@see \GuzzleHttp\Pool::__construct} - * - * @return array Returns an array containing the response or an exception - * in the same order that the requests were sent. - * - * @throws \InvalidArgumentException if the event format is incorrect. - */ - public static function batch(ClientInterface $client, $requests, array $options = []): array - { - $res = []; - self::cmpCallback($options, 'fulfilled', $res); - self::cmpCallback($options, 'rejected', $res); - $pool = new static($client, $requests, $options); - $pool->promise()->wait(); - \ksort($res); - - return $res; - } - - /** - * Execute callback(s) - */ - private static function cmpCallback(array &$options, string $name, array &$results): void - { - if (!isset($options[$name])) { - $options[$name] = static function ($v, $k) use (&$results) { - $results[$k] = $v; - }; - } else { - $currentFn = $options[$name]; - $options[$name] = static function ($v, $k) use (&$results, $currentFn) { - $currentFn($v, $k); - $results[$k] = $v; - }; - } - } -} diff --git a/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php b/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php deleted file mode 100644 index 7dde6c5..0000000 --- a/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php +++ /dev/null @@ -1,105 +0,0 @@ -nextHandler = $nextHandler; - } - - public function __invoke(RequestInterface $request, array $options): PromiseInterface - { - $fn = $this->nextHandler; - - // Don't do anything if the request has no body. - if ($request->getBody()->getSize() === 0) { - return $fn($request, $options); - } - - $modify = []; - - // Add a default content-type if possible. - if (!$request->hasHeader('Content-Type')) { - if ($uri = $request->getBody()->getMetadata('uri')) { - if (is_string($uri) && $type = Psr7\MimeType::fromFilename($uri)) { - $modify['set_headers']['Content-Type'] = $type; - } - } - } - - // Add a default content-length or transfer-encoding header. - if (!$request->hasHeader('Content-Length') - && !$request->hasHeader('Transfer-Encoding') - ) { - $size = $request->getBody()->getSize(); - if ($size !== null) { - $modify['set_headers']['Content-Length'] = $size; - } else { - $modify['set_headers']['Transfer-Encoding'] = 'chunked'; - } - } - - // Add the expect header if needed. - $this->addExpectHeader($request, $options, $modify); - - return $fn(Psr7\Utils::modifyRequest($request, $modify), $options); - } - - /** - * Add expect header - */ - private function addExpectHeader(RequestInterface $request, array $options, array &$modify): void - { - // Determine if the Expect header should be used - if ($request->hasHeader('Expect')) { - return; - } - - $expect = $options['expect'] ?? null; - - // Return if disabled or using HTTP/1.0 - if ($expect === false || $request->getProtocolVersion() === '1.0') { - return; - } - - // The expect header is unconditionally enabled - if ($expect === true) { - $modify['set_headers']['Expect'] = '100-Continue'; - - return; - } - - // By default, send the expect header when the payload is > 1mb - if ($expect === null) { - $expect = 1048576; - } - - // Always add if the body cannot be rewound, the size cannot be - // determined, or the size is greater than the cutoff threshold - $body = $request->getBody(); - $size = $body->getSize(); - - if ($size === null || $size >= (int) $expect || !$body->isSeekable()) { - $modify['set_headers']['Expect'] = '100-Continue'; - } - } -} diff --git a/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php b/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php deleted file mode 100644 index 7aa21a6..0000000 --- a/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php +++ /dev/null @@ -1,228 +0,0 @@ - 5, - 'protocols' => ['http', 'https'], - 'strict' => false, - 'referer' => false, - 'track_redirects' => false, - ]; - - /** - * @var callable(RequestInterface, array): PromiseInterface - */ - private $nextHandler; - - /** - * @param callable(RequestInterface, array): PromiseInterface $nextHandler Next handler to invoke. - */ - public function __construct(callable $nextHandler) - { - $this->nextHandler = $nextHandler; - } - - public function __invoke(RequestInterface $request, array $options): PromiseInterface - { - $fn = $this->nextHandler; - - if (empty($options['allow_redirects'])) { - return $fn($request, $options); - } - - if ($options['allow_redirects'] === true) { - $options['allow_redirects'] = self::$defaultSettings; - } elseif (!\is_array($options['allow_redirects'])) { - throw new \InvalidArgumentException('allow_redirects must be true, false, or array'); - } else { - // Merge the default settings with the provided settings - $options['allow_redirects'] += self::$defaultSettings; - } - - if (empty($options['allow_redirects']['max'])) { - return $fn($request, $options); - } - - return $fn($request, $options) - ->then(function (ResponseInterface $response) use ($request, $options) { - return $this->checkRedirect($request, $options, $response); - }); - } - - /** - * @return ResponseInterface|PromiseInterface - */ - public function checkRedirect(RequestInterface $request, array $options, ResponseInterface $response) - { - if (\strpos((string) $response->getStatusCode(), '3') !== 0 - || !$response->hasHeader('Location') - ) { - return $response; - } - - $this->guardMax($request, $response, $options); - $nextRequest = $this->modifyRequest($request, $options, $response); - - // If authorization is handled by curl, unset it if URI is cross-origin. - if (Psr7\UriComparator::isCrossOrigin($request->getUri(), $nextRequest->getUri()) && defined('\CURLOPT_HTTPAUTH')) { - unset( - $options['curl'][\CURLOPT_HTTPAUTH], - $options['curl'][\CURLOPT_USERPWD] - ); - } - - if (isset($options['allow_redirects']['on_redirect'])) { - ($options['allow_redirects']['on_redirect'])( - $request, - $response, - $nextRequest->getUri() - ); - } - - $promise = $this($nextRequest, $options); - - // Add headers to be able to track history of redirects. - if (!empty($options['allow_redirects']['track_redirects'])) { - return $this->withTracking( - $promise, - (string) $nextRequest->getUri(), - $response->getStatusCode() - ); - } - - return $promise; - } - - /** - * Enable tracking on promise. - */ - private function withTracking(PromiseInterface $promise, string $uri, int $statusCode): PromiseInterface - { - return $promise->then( - static function (ResponseInterface $response) use ($uri, $statusCode) { - // Note that we are pushing to the front of the list as this - // would be an earlier response than what is currently present - // in the history header. - $historyHeader = $response->getHeader(self::HISTORY_HEADER); - $statusHeader = $response->getHeader(self::STATUS_HISTORY_HEADER); - \array_unshift($historyHeader, $uri); - \array_unshift($statusHeader, (string) $statusCode); - - return $response->withHeader(self::HISTORY_HEADER, $historyHeader) - ->withHeader(self::STATUS_HISTORY_HEADER, $statusHeader); - } - ); - } - - /** - * Check for too many redirects. - * - * @throws TooManyRedirectsException Too many redirects. - */ - private function guardMax(RequestInterface $request, ResponseInterface $response, array &$options): void - { - $current = $options['__redirect_count'] - ?? 0; - $options['__redirect_count'] = $current + 1; - $max = $options['allow_redirects']['max']; - - if ($options['__redirect_count'] > $max) { - throw new TooManyRedirectsException("Will not follow more than {$max} redirects", $request, $response); - } - } - - public function modifyRequest(RequestInterface $request, array $options, ResponseInterface $response): RequestInterface - { - // Request modifications to apply. - $modify = []; - $protocols = $options['allow_redirects']['protocols']; - - // Use a GET request if this is an entity enclosing request and we are - // not forcing RFC compliance, but rather emulating what all browsers - // would do. - $statusCode = $response->getStatusCode(); - if ($statusCode == 303 - || ($statusCode <= 302 && !$options['allow_redirects']['strict']) - ) { - $safeMethods = ['GET', 'HEAD', 'OPTIONS']; - $requestMethod = $request->getMethod(); - - $modify['method'] = in_array($requestMethod, $safeMethods) ? $requestMethod : 'GET'; - $modify['body'] = ''; - } - - $uri = self::redirectUri($request, $response, $protocols); - if (isset($options['idn_conversion']) && ($options['idn_conversion'] !== false)) { - $idnOptions = ($options['idn_conversion'] === true) ? \IDNA_DEFAULT : $options['idn_conversion']; - $uri = Utils::idnUriConvert($uri, $idnOptions); - } - - $modify['uri'] = $uri; - Psr7\Message::rewindBody($request); - - // Add the Referer header if it is told to do so and only - // add the header if we are not redirecting from https to http. - if ($options['allow_redirects']['referer'] - && $modify['uri']->getScheme() === $request->getUri()->getScheme() - ) { - $uri = $request->getUri()->withUserInfo(''); - $modify['set_headers']['Referer'] = (string) $uri; - } else { - $modify['remove_headers'][] = 'Referer'; - } - - // Remove Authorization and Cookie headers if URI is cross-origin. - if (Psr7\UriComparator::isCrossOrigin($request->getUri(), $modify['uri'])) { - $modify['remove_headers'][] = 'Authorization'; - $modify['remove_headers'][] = 'Cookie'; - } - - return Psr7\Utils::modifyRequest($request, $modify); - } - - /** - * Set the appropriate URL on the request based on the location header. - */ - private static function redirectUri( - RequestInterface $request, - ResponseInterface $response, - array $protocols - ): UriInterface { - $location = Psr7\UriResolver::resolve( - $request->getUri(), - new Psr7\Uri($response->getHeaderLine('Location')) - ); - - // Ensure that the redirect URI is allowed based on the protocols. - if (!\in_array($location->getScheme(), $protocols)) { - throw new BadResponseException(\sprintf('Redirect URI, %s, does not use one of the allowed redirect protocols: %s', $location, \implode(', ', $protocols)), $request, $response); - } - - return $location; - } -} diff --git a/vendor/guzzlehttp/guzzle/src/RequestOptions.php b/vendor/guzzlehttp/guzzle/src/RequestOptions.php deleted file mode 100644 index 84a3500..0000000 --- a/vendor/guzzlehttp/guzzle/src/RequestOptions.php +++ /dev/null @@ -1,274 +0,0 @@ -decider = $decider; - $this->nextHandler = $nextHandler; - $this->delay = $delay ?: __CLASS__.'::exponentialDelay'; - } - - /** - * Default exponential backoff delay function. - * - * @return int milliseconds. - */ - public static function exponentialDelay(int $retries): int - { - return (int) 2 ** ($retries - 1) * 1000; - } - - public function __invoke(RequestInterface $request, array $options): PromiseInterface - { - if (!isset($options['retries'])) { - $options['retries'] = 0; - } - - $fn = $this->nextHandler; - - return $fn($request, $options) - ->then( - $this->onFulfilled($request, $options), - $this->onRejected($request, $options) - ); - } - - /** - * Execute fulfilled closure - */ - private function onFulfilled(RequestInterface $request, array $options): callable - { - return function ($value) use ($request, $options) { - if (!($this->decider)( - $options['retries'], - $request, - $value, - null - )) { - return $value; - } - - return $this->doRetry($request, $options, $value); - }; - } - - /** - * Execute rejected closure - */ - private function onRejected(RequestInterface $req, array $options): callable - { - return function ($reason) use ($req, $options) { - if (!($this->decider)( - $options['retries'], - $req, - null, - $reason - )) { - return P\Create::rejectionFor($reason); - } - - return $this->doRetry($req, $options); - }; - } - - private function doRetry(RequestInterface $request, array $options, ?ResponseInterface $response = null): PromiseInterface - { - $options['delay'] = ($this->delay)(++$options['retries'], $response, $request); - - return $this($request, $options); - } -} diff --git a/vendor/guzzlehttp/guzzle/src/TransferStats.php b/vendor/guzzlehttp/guzzle/src/TransferStats.php deleted file mode 100644 index 93fa334..0000000 --- a/vendor/guzzlehttp/guzzle/src/TransferStats.php +++ /dev/null @@ -1,133 +0,0 @@ -request = $request; - $this->response = $response; - $this->transferTime = $transferTime; - $this->handlerErrorData = $handlerErrorData; - $this->handlerStats = $handlerStats; - } - - public function getRequest(): RequestInterface - { - return $this->request; - } - - /** - * Returns the response that was received (if any). - */ - public function getResponse(): ?ResponseInterface - { - return $this->response; - } - - /** - * Returns true if a response was received. - */ - public function hasResponse(): bool - { - return $this->response !== null; - } - - /** - * Gets handler specific error data. - * - * This might be an exception, a integer representing an error code, or - * anything else. Relying on this value assumes that you know what handler - * you are using. - * - * @return mixed - */ - public function getHandlerErrorData() - { - return $this->handlerErrorData; - } - - /** - * Get the effective URI the request was sent to. - */ - public function getEffectiveUri(): UriInterface - { - return $this->request->getUri(); - } - - /** - * Get the estimated time the request was being transferred by the handler. - * - * @return float|null Time in seconds. - */ - public function getTransferTime(): ?float - { - return $this->transferTime; - } - - /** - * Gets an array of all of the handler specific transfer data. - */ - public function getHandlerStats(): array - { - return $this->handlerStats; - } - - /** - * Get a specific handler statistic from the handler by name. - * - * @param string $stat Handler specific transfer stat to retrieve. - * - * @return mixed|null - */ - public function getHandlerStat(string $stat) - { - return $this->handlerStats[$stat] ?? null; - } -} diff --git a/vendor/guzzlehttp/guzzle/src/Utils.php b/vendor/guzzlehttp/guzzle/src/Utils.php deleted file mode 100644 index df52927..0000000 --- a/vendor/guzzlehttp/guzzle/src/Utils.php +++ /dev/null @@ -1,384 +0,0 @@ -= 0) { - if (\function_exists('curl_multi_exec') && \function_exists('curl_exec')) { - $handler = Proxy::wrapSync(new CurlMultiHandler(), new CurlHandler()); - } elseif (\function_exists('curl_exec')) { - $handler = new CurlHandler(); - } elseif (\function_exists('curl_multi_exec')) { - $handler = new CurlMultiHandler(); - } - } - - if (\ini_get('allow_url_fopen')) { - $handler = $handler - ? Proxy::wrapStreaming($handler, new StreamHandler()) - : new StreamHandler(); - } elseif (!$handler) { - throw new \RuntimeException('GuzzleHttp requires cURL, the allow_url_fopen ini setting, or a custom HTTP handler.'); - } - - return $handler; - } - - /** - * Get the default User-Agent string to use with Guzzle. - */ - public static function defaultUserAgent(): string - { - return sprintf('GuzzleHttp/%d', ClientInterface::MAJOR_VERSION); - } - - /** - * Returns the default cacert bundle for the current system. - * - * First, the openssl.cafile and curl.cainfo php.ini settings are checked. - * If those settings are not configured, then the common locations for - * bundles found on Red Hat, CentOS, Fedora, Ubuntu, Debian, FreeBSD, OS X - * and Windows are checked. If any of these file locations are found on - * disk, they will be utilized. - * - * Note: the result of this function is cached for subsequent calls. - * - * @throws \RuntimeException if no bundle can be found. - * - * @deprecated Utils::defaultCaBundle will be removed in guzzlehttp/guzzle:8.0. This method is not needed in PHP 5.6+. - */ - public static function defaultCaBundle(): string - { - static $cached = null; - static $cafiles = [ - // Red Hat, CentOS, Fedora (provided by the ca-certificates package) - '/etc/pki/tls/certs/ca-bundle.crt', - // Ubuntu, Debian (provided by the ca-certificates package) - '/etc/ssl/certs/ca-certificates.crt', - // FreeBSD (provided by the ca_root_nss package) - '/usr/local/share/certs/ca-root-nss.crt', - // SLES 12 (provided by the ca-certificates package) - '/var/lib/ca-certificates/ca-bundle.pem', - // OS X provided by homebrew (using the default path) - '/usr/local/etc/openssl/cert.pem', - // Google app engine - '/etc/ca-certificates.crt', - // Windows? - 'C:\\windows\\system32\\curl-ca-bundle.crt', - 'C:\\windows\\curl-ca-bundle.crt', - ]; - - if ($cached) { - return $cached; - } - - if ($ca = \ini_get('openssl.cafile')) { - return $cached = $ca; - } - - if ($ca = \ini_get('curl.cainfo')) { - return $cached = $ca; - } - - foreach ($cafiles as $filename) { - if (\file_exists($filename)) { - return $cached = $filename; - } - } - - throw new \RuntimeException( - <<< EOT -No system CA bundle could be found in any of the the common system locations. -PHP versions earlier than 5.6 are not properly configured to use the system's -CA bundle by default. In order to verify peer certificates, you will need to -supply the path on disk to a certificate bundle to the 'verify' request -option: https://docs.guzzlephp.org/en/latest/request-options.html#verify. If -you do not need a specific certificate bundle, then Mozilla provides a commonly -used CA bundle which can be downloaded here (provided by the maintainer of -cURL): https://curl.haxx.se/ca/cacert.pem. Once you have a CA bundle available -on disk, you can set the 'openssl.cafile' PHP ini setting to point to the path -to the file, allowing you to omit the 'verify' request option. See -https://curl.haxx.se/docs/sslcerts.html for more information. -EOT - ); - } - - /** - * Creates an associative array of lowercase header names to the actual - * header casing. - */ - public static function normalizeHeaderKeys(array $headers): array - { - $result = []; - foreach (\array_keys($headers) as $key) { - $result[\strtolower($key)] = $key; - } - - return $result; - } - - /** - * Returns true if the provided host matches any of the no proxy areas. - * - * This method will strip a port from the host if it is present. Each pattern - * can be matched with an exact match (e.g., "foo.com" == "foo.com") or a - * partial match: (e.g., "foo.com" == "baz.foo.com" and ".foo.com" == - * "baz.foo.com", but ".foo.com" != "foo.com"). - * - * Areas are matched in the following cases: - * 1. "*" (without quotes) always matches any hosts. - * 2. An exact match. - * 3. The area starts with "." and the area is the last part of the host. e.g. - * '.mit.edu' will match any host that ends with '.mit.edu'. - * - * @param string $host Host to check against the patterns. - * @param string[] $noProxyArray An array of host patterns. - * - * @throws InvalidArgumentException - */ - public static function isHostInNoProxy(string $host, array $noProxyArray): bool - { - if (\strlen($host) === 0) { - throw new InvalidArgumentException('Empty host provided'); - } - - // Strip port if present. - [$host] = \explode(':', $host, 2); - - foreach ($noProxyArray as $area) { - // Always match on wildcards. - if ($area === '*') { - return true; - } - - if (empty($area)) { - // Don't match on empty values. - continue; - } - - if ($area === $host) { - // Exact matches. - return true; - } - // Special match if the area when prefixed with ".". Remove any - // existing leading "." and add a new leading ".". - $area = '.'.\ltrim($area, '.'); - if (\substr($host, -\strlen($area)) === $area) { - return true; - } - } - - return false; - } - - /** - * Wrapper for json_decode that throws when an error occurs. - * - * @param string $json JSON data to parse - * @param bool $assoc When true, returned objects will be converted - * into associative arrays. - * @param int $depth User specified recursion depth. - * @param int $options Bitmask of JSON decode options. - * - * @return object|array|string|int|float|bool|null - * - * @throws InvalidArgumentException if the JSON cannot be decoded. - * - * @see https://www.php.net/manual/en/function.json-decode.php - */ - public static function jsonDecode(string $json, bool $assoc = false, int $depth = 512, int $options = 0) - { - $data = \json_decode($json, $assoc, $depth, $options); - if (\JSON_ERROR_NONE !== \json_last_error()) { - throw new InvalidArgumentException('json_decode error: '.\json_last_error_msg()); - } - - return $data; - } - - /** - * Wrapper for JSON encoding that throws when an error occurs. - * - * @param mixed $value The value being encoded - * @param int $options JSON encode option bitmask - * @param int $depth Set the maximum depth. Must be greater than zero. - * - * @throws InvalidArgumentException if the JSON cannot be encoded. - * - * @see https://www.php.net/manual/en/function.json-encode.php - */ - public static function jsonEncode($value, int $options = 0, int $depth = 512): string - { - $json = \json_encode($value, $options, $depth); - if (\JSON_ERROR_NONE !== \json_last_error()) { - throw new InvalidArgumentException('json_encode error: '.\json_last_error_msg()); - } - - /** @var string */ - return $json; - } - - /** - * Wrapper for the hrtime() or microtime() functions - * (depending on the PHP version, one of the two is used) - * - * @return float UNIX timestamp - * - * @internal - */ - public static function currentTime(): float - { - return (float) \function_exists('hrtime') ? \hrtime(true) / 1e9 : \microtime(true); - } - - /** - * @throws InvalidArgumentException - * - * @internal - */ - public static function idnUriConvert(UriInterface $uri, int $options = 0): UriInterface - { - if ($uri->getHost()) { - $asciiHost = self::idnToAsci($uri->getHost(), $options, $info); - if ($asciiHost === false) { - $errorBitSet = $info['errors'] ?? 0; - - $errorConstants = array_filter(array_keys(get_defined_constants()), static function (string $name): bool { - return substr($name, 0, 11) === 'IDNA_ERROR_'; - }); - - $errors = []; - foreach ($errorConstants as $errorConstant) { - if ($errorBitSet & constant($errorConstant)) { - $errors[] = $errorConstant; - } - } - - $errorMessage = 'IDN conversion failed'; - if ($errors) { - $errorMessage .= ' (errors: '.implode(', ', $errors).')'; - } - - throw new InvalidArgumentException($errorMessage); - } - if ($uri->getHost() !== $asciiHost) { - // Replace URI only if the ASCII version is different - $uri = $uri->withHost($asciiHost); - } - } - - return $uri; - } - - /** - * @internal - */ - public static function getenv(string $name): ?string - { - if (isset($_SERVER[$name])) { - return (string) $_SERVER[$name]; - } - - if (\PHP_SAPI === 'cli' && ($value = \getenv($name)) !== false && $value !== null) { - return (string) $value; - } - - return null; - } - - /** - * @return string|false - */ - private static function idnToAsci(string $domain, int $options, ?array &$info = []) - { - if (\function_exists('idn_to_ascii') && \defined('INTL_IDNA_VARIANT_UTS46')) { - return \idn_to_ascii($domain, $options, \INTL_IDNA_VARIANT_UTS46, $info); - } - - throw new \Error('ext-idn or symfony/polyfill-intl-idn not loaded or too old'); - } -} diff --git a/vendor/guzzlehttp/guzzle/src/functions.php b/vendor/guzzlehttp/guzzle/src/functions.php deleted file mode 100644 index 5edc66a..0000000 --- a/vendor/guzzlehttp/guzzle/src/functions.php +++ /dev/null @@ -1,167 +0,0 @@ - -Copyright (c) 2015 Graham Campbell -Copyright (c) 2017 Tobias Schultze -Copyright (c) 2020 Tobias Nyholm - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/vendor/guzzlehttp/promises/README.md b/vendor/guzzlehttp/promises/README.md deleted file mode 100644 index d1c814f..0000000 --- a/vendor/guzzlehttp/promises/README.md +++ /dev/null @@ -1,559 +0,0 @@ -# Guzzle Promises - -[Promises/A+](https://promisesaplus.com/) implementation that handles promise -chaining and resolution iteratively, allowing for "infinite" promise chaining -while keeping the stack size constant. Read [this blog post](https://blog.domenic.me/youre-missing-the-point-of-promises/) -for a general introduction to promises. - -- [Features](#features) -- [Quick start](#quick-start) -- [Synchronous wait](#synchronous-wait) -- [Cancellation](#cancellation) -- [API](#api) - - [Promise](#promise) - - [FulfilledPromise](#fulfilledpromise) - - [RejectedPromise](#rejectedpromise) -- [Promise interop](#promise-interop) -- [Implementation notes](#implementation-notes) - - -## Features - -- [Promises/A+](https://promisesaplus.com/) implementation. -- Promise resolution and chaining is handled iteratively, allowing for - "infinite" promise chaining. -- Promises have a synchronous `wait` method. -- Promises can be cancelled. -- Works with any object that has a `then` function. -- C# style async/await coroutine promises using - `GuzzleHttp\Promise\Coroutine::of()`. - - -## Installation - -```shell -composer require guzzlehttp/promises -``` - - -## Version Guidance - -| Version | Status | PHP Version | -|---------|---------------------|--------------| -| 1.x | Security fixes only | >=5.5,<8.3 | -| 2.x | Latest | >=7.2.5,<8.5 | - - -## Quick Start - -A *promise* represents the eventual result of an asynchronous operation. The -primary way of interacting with a promise is through its `then` method, which -registers callbacks to receive either a promise's eventual value or the reason -why the promise cannot be fulfilled. - -### Callbacks - -Callbacks are registered with the `then` method by providing an optional -`$onFulfilled` followed by an optional `$onRejected` function. - - -```php -use GuzzleHttp\Promise\Promise; - -$promise = new Promise(); -$promise->then( - // $onFulfilled - function ($value) { - echo 'The promise was fulfilled.'; - }, - // $onRejected - function ($reason) { - echo 'The promise was rejected.'; - } -); -``` - -*Resolving* a promise means that you either fulfill a promise with a *value* or -reject a promise with a *reason*. Resolving a promise triggers callbacks -registered with the promise's `then` method. These callbacks are triggered -only once and in the order in which they were added. - -### Resolving a Promise - -Promises are fulfilled using the `resolve($value)` method. Resolving a promise -with any value other than a `GuzzleHttp\Promise\RejectedPromise` will trigger -all of the onFulfilled callbacks (resolving a promise with a rejected promise -will reject the promise and trigger the `$onRejected` callbacks). - -```php -use GuzzleHttp\Promise\Promise; - -$promise = new Promise(); -$promise - ->then(function ($value) { - // Return a value and don't break the chain - return "Hello, " . $value; - }) - // This then is executed after the first then and receives the value - // returned from the first then. - ->then(function ($value) { - echo $value; - }); - -// Resolving the promise triggers the $onFulfilled callbacks and outputs -// "Hello, reader." -$promise->resolve('reader.'); -``` - -### Promise Forwarding - -Promises can be chained one after the other. Each then in the chain is a new -promise. The return value of a promise is what's forwarded to the next -promise in the chain. Returning a promise in a `then` callback will cause the -subsequent promises in the chain to only be fulfilled when the returned promise -has been fulfilled. The next promise in the chain will be invoked with the -resolved value of the promise. - -```php -use GuzzleHttp\Promise\Promise; - -$promise = new Promise(); -$nextPromise = new Promise(); - -$promise - ->then(function ($value) use ($nextPromise) { - echo $value; - return $nextPromise; - }) - ->then(function ($value) { - echo $value; - }); - -// Triggers the first callback and outputs "A" -$promise->resolve('A'); -// Triggers the second callback and outputs "B" -$nextPromise->resolve('B'); -``` - -### Promise Rejection - -When a promise is rejected, the `$onRejected` callbacks are invoked with the -rejection reason. - -```php -use GuzzleHttp\Promise\Promise; - -$promise = new Promise(); -$promise->then(null, function ($reason) { - echo $reason; -}); - -$promise->reject('Error!'); -// Outputs "Error!" -``` - -### Rejection Forwarding - -If an exception is thrown in an `$onRejected` callback, subsequent -`$onRejected` callbacks are invoked with the thrown exception as the reason. - -```php -use GuzzleHttp\Promise\Promise; - -$promise = new Promise(); -$promise->then(null, function ($reason) { - throw new Exception($reason); -})->then(null, function ($reason) { - assert($reason->getMessage() === 'Error!'); -}); - -$promise->reject('Error!'); -``` - -You can also forward a rejection down the promise chain by returning a -`GuzzleHttp\Promise\RejectedPromise` in either an `$onFulfilled` or -`$onRejected` callback. - -```php -use GuzzleHttp\Promise\Promise; -use GuzzleHttp\Promise\RejectedPromise; - -$promise = new Promise(); -$promise->then(null, function ($reason) { - return new RejectedPromise($reason); -})->then(null, function ($reason) { - assert($reason === 'Error!'); -}); - -$promise->reject('Error!'); -``` - -If an exception is not thrown in a `$onRejected` callback and the callback -does not return a rejected promise, downstream `$onFulfilled` callbacks are -invoked using the value returned from the `$onRejected` callback. - -```php -use GuzzleHttp\Promise\Promise; - -$promise = new Promise(); -$promise - ->then(null, function ($reason) { - return "It's ok"; - }) - ->then(function ($value) { - assert($value === "It's ok"); - }); - -$promise->reject('Error!'); -``` - - -## Synchronous Wait - -You can synchronously force promises to complete using a promise's `wait` -method. When creating a promise, you can provide a wait function that is used -to synchronously force a promise to complete. When a wait function is invoked -it is expected to deliver a value to the promise or reject the promise. If the -wait function does not deliver a value, then an exception is thrown. The wait -function provided to a promise constructor is invoked when the `wait` function -of the promise is called. - -```php -$promise = new Promise(function () use (&$promise) { - $promise->resolve('foo'); -}); - -// Calling wait will return the value of the promise. -echo $promise->wait(); // outputs "foo" -``` - -If an exception is encountered while invoking the wait function of a promise, -the promise is rejected with the exception and the exception is thrown. - -```php -$promise = new Promise(function () use (&$promise) { - throw new Exception('foo'); -}); - -$promise->wait(); // throws the exception. -``` - -Calling `wait` on a promise that has been fulfilled will not trigger the wait -function. It will simply return the previously resolved value. - -```php -$promise = new Promise(function () { die('this is not called!'); }); -$promise->resolve('foo'); -echo $promise->wait(); // outputs "foo" -``` - -Calling `wait` on a promise that has been rejected will throw an exception. If -the rejection reason is an instance of `\Exception` the reason is thrown. -Otherwise, a `GuzzleHttp\Promise\RejectionException` is thrown and the reason -can be obtained by calling the `getReason` method of the exception. - -```php -$promise = new Promise(); -$promise->reject('foo'); -$promise->wait(); -``` - -> PHP Fatal error: Uncaught exception 'GuzzleHttp\Promise\RejectionException' with message 'The promise was rejected with value: foo' - -### Unwrapping a Promise - -When synchronously waiting on a promise, you are joining the state of the -promise into the current state of execution (i.e., return the value of the -promise if it was fulfilled or throw an exception if it was rejected). This is -called "unwrapping" the promise. Waiting on a promise will by default unwrap -the promise state. - -You can force a promise to resolve and *not* unwrap the state of the promise -by passing `false` to the first argument of the `wait` function: - -```php -$promise = new Promise(); -$promise->reject('foo'); -// This will not throw an exception. It simply ensures the promise has -// been resolved. -$promise->wait(false); -``` - -When unwrapping a promise, the resolved value of the promise will be waited -upon until the unwrapped value is not a promise. This means that if you resolve -promise A with a promise B and unwrap promise A, the value returned by the -wait function will be the value delivered to promise B. - -**Note**: when you do not unwrap the promise, no value is returned. - - -## Cancellation - -You can cancel a promise that has not yet been fulfilled using the `cancel()` -method of a promise. When creating a promise you can provide an optional -cancel function that when invoked cancels the action of computing a resolution -of the promise. - - -## API - -### Promise - -When creating a promise object, you can provide an optional `$waitFn` and -`$cancelFn`. `$waitFn` is a function that is invoked with no arguments and is -expected to resolve the promise. `$cancelFn` is a function with no arguments -that is expected to cancel the computation of a promise. It is invoked when the -`cancel()` method of a promise is called. - -```php -use GuzzleHttp\Promise\Promise; - -$promise = new Promise( - function () use (&$promise) { - $promise->resolve('waited'); - }, - function () { - // do something that will cancel the promise computation (e.g., close - // a socket, cancel a database query, etc...) - } -); - -assert('waited' === $promise->wait()); -``` - -A promise has the following methods: - -- `then(callable $onFulfilled, callable $onRejected) : PromiseInterface` - - Appends fulfillment and rejection handlers to the promise, and returns a new promise resolving to the return value of the called handler. - -- `otherwise(callable $onRejected) : PromiseInterface` - - Appends a rejection handler callback to the promise, and returns a new promise resolving to the return value of the callback if it is called, or to its original fulfillment value if the promise is instead fulfilled. - -- `wait($unwrap = true) : mixed` - - Synchronously waits on the promise to complete. - - `$unwrap` controls whether or not the value of the promise is returned for a - fulfilled promise or if an exception is thrown if the promise is rejected. - This is set to `true` by default. - -- `cancel()` - - Attempts to cancel the promise if possible. The promise being cancelled and - the parent most ancestor that has not yet been resolved will also be - cancelled. Any promises waiting on the cancelled promise to resolve will also - be cancelled. - -- `getState() : string` - - Returns the state of the promise. One of `pending`, `fulfilled`, or - `rejected`. - -- `resolve($value)` - - Fulfills the promise with the given `$value`. - -- `reject($reason)` - - Rejects the promise with the given `$reason`. - - -### FulfilledPromise - -A fulfilled promise can be created to represent a promise that has been -fulfilled. - -```php -use GuzzleHttp\Promise\FulfilledPromise; - -$promise = new FulfilledPromise('value'); - -// Fulfilled callbacks are immediately invoked. -$promise->then(function ($value) { - echo $value; -}); -``` - - -### RejectedPromise - -A rejected promise can be created to represent a promise that has been -rejected. - -```php -use GuzzleHttp\Promise\RejectedPromise; - -$promise = new RejectedPromise('Error'); - -// Rejected callbacks are immediately invoked. -$promise->then(null, function ($reason) { - echo $reason; -}); -``` - - -## Promise Interoperability - -This library works with foreign promises that have a `then` method. This means -you can use Guzzle promises with [React promises](https://github.com/reactphp/promise) -for example. When a foreign promise is returned inside of a then method -callback, promise resolution will occur recursively. - -```php -// Create a React promise -$deferred = new React\Promise\Deferred(); -$reactPromise = $deferred->promise(); - -// Create a Guzzle promise that is fulfilled with a React promise. -$guzzlePromise = new GuzzleHttp\Promise\Promise(); -$guzzlePromise->then(function ($value) use ($reactPromise) { - // Do something something with the value... - // Return the React promise - return $reactPromise; -}); -``` - -Please note that wait and cancel chaining is no longer possible when forwarding -a foreign promise. You will need to wrap a third-party promise with a Guzzle -promise in order to utilize wait and cancel functions with foreign promises. - - -### Event Loop Integration - -In order to keep the stack size constant, Guzzle promises are resolved -asynchronously using a task queue. When waiting on promises synchronously, the -task queue will be automatically run to ensure that the blocking promise and -any forwarded promises are resolved. When using promises asynchronously in an -event loop, you will need to run the task queue on each tick of the loop. If -you do not run the task queue, then promises will not be resolved. - -You can run the task queue using the `run()` method of the global task queue -instance. - -```php -// Get the global task queue -$queue = GuzzleHttp\Promise\Utils::queue(); -$queue->run(); -``` - -For example, you could use Guzzle promises with React using a periodic timer: - -```php -$loop = React\EventLoop\Factory::create(); -$loop->addPeriodicTimer(0, [$queue, 'run']); -``` - - -## Implementation Notes - -### Promise Resolution and Chaining is Handled Iteratively - -By shuffling pending handlers from one owner to another, promises are -resolved iteratively, allowing for "infinite" then chaining. - -```php -then(function ($v) { - // The stack size remains constant (a good thing) - echo xdebug_get_stack_depth() . ', '; - return $v + 1; - }); -} - -$parent->resolve(0); -var_dump($p->wait()); // int(1000) - -``` - -When a promise is fulfilled or rejected with a non-promise value, the promise -then takes ownership of the handlers of each child promise and delivers values -down the chain without using recursion. - -When a promise is resolved with another promise, the original promise transfers -all of its pending handlers to the new promise. When the new promise is -eventually resolved, all of the pending handlers are delivered the forwarded -value. - -### A Promise is the Deferred - -Some promise libraries implement promises using a deferred object to represent -a computation and a promise object to represent the delivery of the result of -the computation. This is a nice separation of computation and delivery because -consumers of the promise cannot modify the value that will be eventually -delivered. - -One side effect of being able to implement promise resolution and chaining -iteratively is that you need to be able for one promise to reach into the state -of another promise to shuffle around ownership of handlers. In order to achieve -this without making the handlers of a promise publicly mutable, a promise is -also the deferred value, allowing promises of the same parent class to reach -into and modify the private properties of promises of the same type. While this -does allow consumers of the value to modify the resolution or rejection of the -deferred, it is a small price to pay for keeping the stack size constant. - -```php -$promise = new Promise(); -$promise->then(function ($value) { echo $value; }); -// The promise is the deferred value, so you can deliver a value to it. -$promise->resolve('foo'); -// prints "foo" -``` - - -## Upgrading from Function API - -A static API was first introduced in 1.4.0, in order to mitigate problems with -functions conflicting between global and local copies of the package. The -function API was removed in 2.0.0. A migration table has been provided here for -your convenience: - -| Original Function | Replacement Method | -|----------------|----------------| -| `queue` | `Utils::queue` | -| `task` | `Utils::task` | -| `promise_for` | `Create::promiseFor` | -| `rejection_for` | `Create::rejectionFor` | -| `exception_for` | `Create::exceptionFor` | -| `iter_for` | `Create::iterFor` | -| `inspect` | `Utils::inspect` | -| `inspect_all` | `Utils::inspectAll` | -| `unwrap` | `Utils::unwrap` | -| `all` | `Utils::all` | -| `some` | `Utils::some` | -| `any` | `Utils::any` | -| `settle` | `Utils::settle` | -| `each` | `Each::of` | -| `each_limit` | `Each::ofLimit` | -| `each_limit_all` | `Each::ofLimitAll` | -| `!is_fulfilled` | `Is::pending` | -| `is_fulfilled` | `Is::fulfilled` | -| `is_rejected` | `Is::rejected` | -| `is_settled` | `Is::settled` | -| `coroutine` | `Coroutine::of` | - - -## Security - -If you discover a security vulnerability within this package, please send an email to security@tidelift.com. All security vulnerabilities will be promptly addressed. Please do not disclose security-related issues publicly until a fix has been announced. Please see [Security Policy](https://github.com/guzzle/promises/security/policy) for more information. - - -## License - -Guzzle is made available under the MIT License (MIT). Please see [License File](LICENSE) for more information. - - -## For Enterprise - -Available as part of the Tidelift Subscription - -The maintainers of Guzzle and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/packagist-guzzlehttp-promises?utm_source=packagist-guzzlehttp-promises&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) diff --git a/vendor/guzzlehttp/promises/composer.json b/vendor/guzzlehttp/promises/composer.json deleted file mode 100644 index f64ed77..0000000 --- a/vendor/guzzlehttp/promises/composer.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "name": "guzzlehttp/promises", - "description": "Guzzle promises library", - "keywords": ["promise"], - "license": "MIT", - "authors": [ - { - "name": "Graham Campbell", - "email": "hello@gjcampbell.co.uk", - "homepage": "https://github.com/GrahamCampbell" - }, - { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com", - "homepage": "https://github.com/mtdowling" - }, - { - "name": "Tobias Nyholm", - "email": "tobias.nyholm@gmail.com", - "homepage": "https://github.com/Nyholm" - }, - { - "name": "Tobias Schultze", - "email": "webmaster@tubo-world.de", - "homepage": "https://github.com/Tobion" - } - ], - "require": { - "php": "^7.2.5 || ^8.0" - }, - "require-dev": { - "bamarni/composer-bin-plugin": "^1.8.2", - "phpunit/phpunit": "^8.5.39 || ^9.6.20" - }, - "autoload": { - "psr-4": { - "GuzzleHttp\\Promise\\": "src/" - } - }, - "autoload-dev": { - "psr-4": { - "GuzzleHttp\\Promise\\Tests\\": "tests/" - } - }, - "extra": { - "bamarni-bin": { - "bin-links": true, - "forward-command": false - } - }, - "config": { - "allow-plugins": { - "bamarni/composer-bin-plugin": true - }, - "preferred-install": "dist", - "sort-packages": true - } -} diff --git a/vendor/guzzlehttp/promises/src/AggregateException.php b/vendor/guzzlehttp/promises/src/AggregateException.php deleted file mode 100644 index 40ffdbc..0000000 --- a/vendor/guzzlehttp/promises/src/AggregateException.php +++ /dev/null @@ -1,19 +0,0 @@ -then(function ($v) { echo $v; }); - * - * @param callable $generatorFn Generator function to wrap into a promise. - * - * @return Promise - * - * @see https://github.com/petkaantonov/bluebird/blob/master/API.md#generators inspiration - */ -final class Coroutine implements PromiseInterface -{ - /** - * @var PromiseInterface|null - */ - private $currentPromise; - - /** - * @var Generator - */ - private $generator; - - /** - * @var Promise - */ - private $result; - - public function __construct(callable $generatorFn) - { - $this->generator = $generatorFn(); - $this->result = new Promise(function (): void { - while (isset($this->currentPromise)) { - $this->currentPromise->wait(); - } - }); - try { - $this->nextCoroutine($this->generator->current()); - } catch (Throwable $throwable) { - $this->result->reject($throwable); - } - } - - /** - * Create a new coroutine. - */ - public static function of(callable $generatorFn): self - { - return new self($generatorFn); - } - - public function then( - ?callable $onFulfilled = null, - ?callable $onRejected = null - ): PromiseInterface { - return $this->result->then($onFulfilled, $onRejected); - } - - public function otherwise(callable $onRejected): PromiseInterface - { - return $this->result->otherwise($onRejected); - } - - public function wait(bool $unwrap = true) - { - return $this->result->wait($unwrap); - } - - public function getState(): string - { - return $this->result->getState(); - } - - public function resolve($value): void - { - $this->result->resolve($value); - } - - public function reject($reason): void - { - $this->result->reject($reason); - } - - public function cancel(): void - { - $this->currentPromise->cancel(); - $this->result->cancel(); - } - - private function nextCoroutine($yielded): void - { - $this->currentPromise = Create::promiseFor($yielded) - ->then([$this, '_handleSuccess'], [$this, '_handleFailure']); - } - - /** - * @internal - */ - public function _handleSuccess($value): void - { - unset($this->currentPromise); - try { - $next = $this->generator->send($value); - if ($this->generator->valid()) { - $this->nextCoroutine($next); - } else { - $this->result->resolve($value); - } - } catch (Throwable $throwable) { - $this->result->reject($throwable); - } - } - - /** - * @internal - */ - public function _handleFailure($reason): void - { - unset($this->currentPromise); - try { - $nextYield = $this->generator->throw(Create::exceptionFor($reason)); - // The throw was caught, so keep iterating on the coroutine - $this->nextCoroutine($nextYield); - } catch (Throwable $throwable) { - $this->result->reject($throwable); - } - } -} diff --git a/vendor/guzzlehttp/promises/src/Create.php b/vendor/guzzlehttp/promises/src/Create.php deleted file mode 100644 index 9d3fc4a..0000000 --- a/vendor/guzzlehttp/promises/src/Create.php +++ /dev/null @@ -1,79 +0,0 @@ -then([$promise, 'resolve'], [$promise, 'reject']); - - return $promise; - } - - return new FulfilledPromise($value); - } - - /** - * Creates a rejected promise for a reason if the reason is not a promise. - * If the provided reason is a promise, then it is returned as-is. - * - * @param mixed $reason Promise or reason. - */ - public static function rejectionFor($reason): PromiseInterface - { - if ($reason instanceof PromiseInterface) { - return $reason; - } - - return new RejectedPromise($reason); - } - - /** - * Create an exception for a rejected promise value. - * - * @param mixed $reason - */ - public static function exceptionFor($reason): \Throwable - { - if ($reason instanceof \Throwable) { - return $reason; - } - - return new RejectionException($reason); - } - - /** - * Returns an iterator for the given value. - * - * @param mixed $value - */ - public static function iterFor($value): \Iterator - { - if ($value instanceof \Iterator) { - return $value; - } - - if (is_array($value)) { - return new \ArrayIterator($value); - } - - return new \ArrayIterator([$value]); - } -} diff --git a/vendor/guzzlehttp/promises/src/Each.php b/vendor/guzzlehttp/promises/src/Each.php deleted file mode 100644 index dd72c83..0000000 --- a/vendor/guzzlehttp/promises/src/Each.php +++ /dev/null @@ -1,81 +0,0 @@ - $onFulfilled, - 'rejected' => $onRejected, - ]))->promise(); - } - - /** - * Like of, but only allows a certain number of outstanding promises at any - * given time. - * - * $concurrency may be an integer or a function that accepts the number of - * pending promises and returns a numeric concurrency limit value to allow - * for dynamic a concurrency size. - * - * @param mixed $iterable - * @param int|callable $concurrency - */ - public static function ofLimit( - $iterable, - $concurrency, - ?callable $onFulfilled = null, - ?callable $onRejected = null - ): PromiseInterface { - return (new EachPromise($iterable, [ - 'fulfilled' => $onFulfilled, - 'rejected' => $onRejected, - 'concurrency' => $concurrency, - ]))->promise(); - } - - /** - * Like limit, but ensures that no promise in the given $iterable argument - * is rejected. If any promise is rejected, then the aggregate promise is - * rejected with the encountered rejection. - * - * @param mixed $iterable - * @param int|callable $concurrency - */ - public static function ofLimitAll( - $iterable, - $concurrency, - ?callable $onFulfilled = null - ): PromiseInterface { - return self::ofLimit( - $iterable, - $concurrency, - $onFulfilled, - function ($reason, $idx, PromiseInterface $aggregate): void { - $aggregate->reject($reason); - } - ); - } -} diff --git a/vendor/guzzlehttp/promises/src/EachPromise.php b/vendor/guzzlehttp/promises/src/EachPromise.php deleted file mode 100644 index e123898..0000000 --- a/vendor/guzzlehttp/promises/src/EachPromise.php +++ /dev/null @@ -1,248 +0,0 @@ -iterable = Create::iterFor($iterable); - - if (isset($config['concurrency'])) { - $this->concurrency = $config['concurrency']; - } - - if (isset($config['fulfilled'])) { - $this->onFulfilled = $config['fulfilled']; - } - - if (isset($config['rejected'])) { - $this->onRejected = $config['rejected']; - } - } - - /** @psalm-suppress InvalidNullableReturnType */ - public function promise(): PromiseInterface - { - if ($this->aggregate) { - return $this->aggregate; - } - - try { - $this->createPromise(); - /** @psalm-assert Promise $this->aggregate */ - $this->iterable->rewind(); - $this->refillPending(); - } catch (\Throwable $e) { - $this->aggregate->reject($e); - } - - /** - * @psalm-suppress NullableReturnStatement - */ - return $this->aggregate; - } - - private function createPromise(): void - { - $this->mutex = false; - $this->aggregate = new Promise(function (): void { - if ($this->checkIfFinished()) { - return; - } - reset($this->pending); - // Consume a potentially fluctuating list of promises while - // ensuring that indexes are maintained (precluding array_shift). - while ($promise = current($this->pending)) { - next($this->pending); - $promise->wait(); - if (Is::settled($this->aggregate)) { - return; - } - } - }); - - // Clear the references when the promise is resolved. - $clearFn = function (): void { - $this->iterable = $this->concurrency = $this->pending = null; - $this->onFulfilled = $this->onRejected = null; - $this->nextPendingIndex = 0; - }; - - $this->aggregate->then($clearFn, $clearFn); - } - - private function refillPending(): void - { - if (!$this->concurrency) { - // Add all pending promises. - while ($this->addPending() && $this->advanceIterator()) { - } - - return; - } - - // Add only up to N pending promises. - $concurrency = is_callable($this->concurrency) - ? ($this->concurrency)(count($this->pending)) - : $this->concurrency; - $concurrency = max($concurrency - count($this->pending), 0); - // Concurrency may be set to 0 to disallow new promises. - if (!$concurrency) { - return; - } - // Add the first pending promise. - $this->addPending(); - // Note this is special handling for concurrency=1 so that we do - // not advance the iterator after adding the first promise. This - // helps work around issues with generators that might not have the - // next value to yield until promise callbacks are called. - while (--$concurrency - && $this->advanceIterator() - && $this->addPending()) { - } - } - - private function addPending(): bool - { - if (!$this->iterable || !$this->iterable->valid()) { - return false; - } - - $promise = Create::promiseFor($this->iterable->current()); - $key = $this->iterable->key(); - - // Iterable keys may not be unique, so we use a counter to - // guarantee uniqueness - $idx = $this->nextPendingIndex++; - - $this->pending[$idx] = $promise->then( - function ($value) use ($idx, $key): void { - if ($this->onFulfilled) { - ($this->onFulfilled)( - $value, - $key, - $this->aggregate - ); - } - $this->step($idx); - }, - function ($reason) use ($idx, $key): void { - if ($this->onRejected) { - ($this->onRejected)( - $reason, - $key, - $this->aggregate - ); - } - $this->step($idx); - } - ); - - return true; - } - - private function advanceIterator(): bool - { - // Place a lock on the iterator so that we ensure to not recurse, - // preventing fatal generator errors. - if ($this->mutex) { - return false; - } - - $this->mutex = true; - - try { - $this->iterable->next(); - $this->mutex = false; - - return true; - } catch (\Throwable $e) { - $this->aggregate->reject($e); - $this->mutex = false; - - return false; - } - } - - private function step(int $idx): void - { - // If the promise was already resolved, then ignore this step. - if (Is::settled($this->aggregate)) { - return; - } - - unset($this->pending[$idx]); - - // Only refill pending promises if we are not locked, preventing the - // EachPromise to recursively invoke the provided iterator, which - // cause a fatal error: "Cannot resume an already running generator" - if ($this->advanceIterator() && !$this->checkIfFinished()) { - // Add more pending promises if possible. - $this->refillPending(); - } - } - - private function checkIfFinished(): bool - { - if (!$this->pending && !$this->iterable->valid()) { - // Resolve the promise if there's nothing left to do. - $this->aggregate->resolve(null); - - return true; - } - - return false; - } -} diff --git a/vendor/guzzlehttp/promises/src/FulfilledPromise.php b/vendor/guzzlehttp/promises/src/FulfilledPromise.php deleted file mode 100644 index 727ec31..0000000 --- a/vendor/guzzlehttp/promises/src/FulfilledPromise.php +++ /dev/null @@ -1,89 +0,0 @@ -value = $value; - } - - public function then( - ?callable $onFulfilled = null, - ?callable $onRejected = null - ): PromiseInterface { - // Return itself if there is no onFulfilled function. - if (!$onFulfilled) { - return $this; - } - - $queue = Utils::queue(); - $p = new Promise([$queue, 'run']); - $value = $this->value; - $queue->add(static function () use ($p, $value, $onFulfilled): void { - if (Is::pending($p)) { - try { - $p->resolve($onFulfilled($value)); - } catch (\Throwable $e) { - $p->reject($e); - } - } - }); - - return $p; - } - - public function otherwise(callable $onRejected): PromiseInterface - { - return $this->then(null, $onRejected); - } - - public function wait(bool $unwrap = true) - { - return $unwrap ? $this->value : null; - } - - public function getState(): string - { - return self::FULFILLED; - } - - public function resolve($value): void - { - if ($value !== $this->value) { - throw new \LogicException('Cannot resolve a fulfilled promise'); - } - } - - public function reject($reason): void - { - throw new \LogicException('Cannot reject a fulfilled promise'); - } - - public function cancel(): void - { - // pass - } -} diff --git a/vendor/guzzlehttp/promises/src/Is.php b/vendor/guzzlehttp/promises/src/Is.php deleted file mode 100644 index f3f0503..0000000 --- a/vendor/guzzlehttp/promises/src/Is.php +++ /dev/null @@ -1,40 +0,0 @@ -getState() === PromiseInterface::PENDING; - } - - /** - * Returns true if a promise is fulfilled or rejected. - */ - public static function settled(PromiseInterface $promise): bool - { - return $promise->getState() !== PromiseInterface::PENDING; - } - - /** - * Returns true if a promise is fulfilled. - */ - public static function fulfilled(PromiseInterface $promise): bool - { - return $promise->getState() === PromiseInterface::FULFILLED; - } - - /** - * Returns true if a promise is rejected. - */ - public static function rejected(PromiseInterface $promise): bool - { - return $promise->getState() === PromiseInterface::REJECTED; - } -} diff --git a/vendor/guzzlehttp/promises/src/Promise.php b/vendor/guzzlehttp/promises/src/Promise.php deleted file mode 100644 index c0c5be2..0000000 --- a/vendor/guzzlehttp/promises/src/Promise.php +++ /dev/null @@ -1,281 +0,0 @@ -waitFn = $waitFn; - $this->cancelFn = $cancelFn; - } - - public function then( - ?callable $onFulfilled = null, - ?callable $onRejected = null - ): PromiseInterface { - if ($this->state === self::PENDING) { - $p = new Promise(null, [$this, 'cancel']); - $this->handlers[] = [$p, $onFulfilled, $onRejected]; - $p->waitList = $this->waitList; - $p->waitList[] = $this; - - return $p; - } - - // Return a fulfilled promise and immediately invoke any callbacks. - if ($this->state === self::FULFILLED) { - $promise = Create::promiseFor($this->result); - - return $onFulfilled ? $promise->then($onFulfilled) : $promise; - } - - // It's either cancelled or rejected, so return a rejected promise - // and immediately invoke any callbacks. - $rejection = Create::rejectionFor($this->result); - - return $onRejected ? $rejection->then(null, $onRejected) : $rejection; - } - - public function otherwise(callable $onRejected): PromiseInterface - { - return $this->then(null, $onRejected); - } - - public function wait(bool $unwrap = true) - { - $this->waitIfPending(); - - if ($this->result instanceof PromiseInterface) { - return $this->result->wait($unwrap); - } - if ($unwrap) { - if ($this->state === self::FULFILLED) { - return $this->result; - } - // It's rejected so "unwrap" and throw an exception. - throw Create::exceptionFor($this->result); - } - } - - public function getState(): string - { - return $this->state; - } - - public function cancel(): void - { - if ($this->state !== self::PENDING) { - return; - } - - $this->waitFn = $this->waitList = null; - - if ($this->cancelFn) { - $fn = $this->cancelFn; - $this->cancelFn = null; - try { - $fn(); - } catch (\Throwable $e) { - $this->reject($e); - } - } - - // Reject the promise only if it wasn't rejected in a then callback. - /** @psalm-suppress RedundantCondition */ - if ($this->state === self::PENDING) { - $this->reject(new CancellationException('Promise has been cancelled')); - } - } - - public function resolve($value): void - { - $this->settle(self::FULFILLED, $value); - } - - public function reject($reason): void - { - $this->settle(self::REJECTED, $reason); - } - - private function settle(string $state, $value): void - { - if ($this->state !== self::PENDING) { - // Ignore calls with the same resolution. - if ($state === $this->state && $value === $this->result) { - return; - } - throw $this->state === $state - ? new \LogicException("The promise is already {$state}.") - : new \LogicException("Cannot change a {$this->state} promise to {$state}"); - } - - if ($value === $this) { - throw new \LogicException('Cannot fulfill or reject a promise with itself'); - } - - // Clear out the state of the promise but stash the handlers. - $this->state = $state; - $this->result = $value; - $handlers = $this->handlers; - $this->handlers = null; - $this->waitList = $this->waitFn = null; - $this->cancelFn = null; - - if (!$handlers) { - return; - } - - // If the value was not a settled promise or a thenable, then resolve - // it in the task queue using the correct ID. - if (!is_object($value) || !method_exists($value, 'then')) { - $id = $state === self::FULFILLED ? 1 : 2; - // It's a success, so resolve the handlers in the queue. - Utils::queue()->add(static function () use ($id, $value, $handlers): void { - foreach ($handlers as $handler) { - self::callHandler($id, $value, $handler); - } - }); - } elseif ($value instanceof Promise && Is::pending($value)) { - // We can just merge our handlers onto the next promise. - $value->handlers = array_merge($value->handlers, $handlers); - } else { - // Resolve the handlers when the forwarded promise is resolved. - $value->then( - static function ($value) use ($handlers): void { - foreach ($handlers as $handler) { - self::callHandler(1, $value, $handler); - } - }, - static function ($reason) use ($handlers): void { - foreach ($handlers as $handler) { - self::callHandler(2, $reason, $handler); - } - } - ); - } - } - - /** - * Call a stack of handlers using a specific callback index and value. - * - * @param int $index 1 (resolve) or 2 (reject). - * @param mixed $value Value to pass to the callback. - * @param array $handler Array of handler data (promise and callbacks). - */ - private static function callHandler(int $index, $value, array $handler): void - { - /** @var PromiseInterface $promise */ - $promise = $handler[0]; - - // The promise may have been cancelled or resolved before placing - // this thunk in the queue. - if (Is::settled($promise)) { - return; - } - - try { - if (isset($handler[$index])) { - /* - * If $f throws an exception, then $handler will be in the exception - * stack trace. Since $handler contains a reference to the callable - * itself we get a circular reference. We clear the $handler - * here to avoid that memory leak. - */ - $f = $handler[$index]; - unset($handler); - $promise->resolve($f($value)); - } elseif ($index === 1) { - // Forward resolution values as-is. - $promise->resolve($value); - } else { - // Forward rejections down the chain. - $promise->reject($value); - } - } catch (\Throwable $reason) { - $promise->reject($reason); - } - } - - private function waitIfPending(): void - { - if ($this->state !== self::PENDING) { - return; - } elseif ($this->waitFn) { - $this->invokeWaitFn(); - } elseif ($this->waitList) { - $this->invokeWaitList(); - } else { - // If there's no wait function, then reject the promise. - $this->reject('Cannot wait on a promise that has ' - .'no internal wait function. You must provide a wait ' - .'function when constructing the promise to be able to ' - .'wait on a promise.'); - } - - Utils::queue()->run(); - - /** @psalm-suppress RedundantCondition */ - if ($this->state === self::PENDING) { - $this->reject('Invoking the wait callback did not resolve the promise'); - } - } - - private function invokeWaitFn(): void - { - try { - $wfn = $this->waitFn; - $this->waitFn = null; - $wfn(true); - } catch (\Throwable $reason) { - if ($this->state === self::PENDING) { - // The promise has not been resolved yet, so reject the promise - // with the exception. - $this->reject($reason); - } else { - // The promise was already resolved, so there's a problem in - // the application. - throw $reason; - } - } - } - - private function invokeWaitList(): void - { - $waitList = $this->waitList; - $this->waitList = null; - - foreach ($waitList as $result) { - do { - $result->waitIfPending(); - $result = $result->result; - } while ($result instanceof Promise); - - if ($result instanceof PromiseInterface) { - $result->wait(false); - } - } - } -} diff --git a/vendor/guzzlehttp/promises/src/PromiseInterface.php b/vendor/guzzlehttp/promises/src/PromiseInterface.php deleted file mode 100644 index c11721e..0000000 --- a/vendor/guzzlehttp/promises/src/PromiseInterface.php +++ /dev/null @@ -1,91 +0,0 @@ -reason = $reason; - } - - public function then( - ?callable $onFulfilled = null, - ?callable $onRejected = null - ): PromiseInterface { - // If there's no onRejected callback then just return self. - if (!$onRejected) { - return $this; - } - - $queue = Utils::queue(); - $reason = $this->reason; - $p = new Promise([$queue, 'run']); - $queue->add(static function () use ($p, $reason, $onRejected): void { - if (Is::pending($p)) { - try { - // Return a resolved promise if onRejected does not throw. - $p->resolve($onRejected($reason)); - } catch (\Throwable $e) { - // onRejected threw, so return a rejected promise. - $p->reject($e); - } - } - }); - - return $p; - } - - public function otherwise(callable $onRejected): PromiseInterface - { - return $this->then(null, $onRejected); - } - - public function wait(bool $unwrap = true) - { - if ($unwrap) { - throw Create::exceptionFor($this->reason); - } - - return null; - } - - public function getState(): string - { - return self::REJECTED; - } - - public function resolve($value): void - { - throw new \LogicException('Cannot resolve a rejected promise'); - } - - public function reject($reason): void - { - if ($reason !== $this->reason) { - throw new \LogicException('Cannot reject a rejected promise'); - } - } - - public function cancel(): void - { - // pass - } -} diff --git a/vendor/guzzlehttp/promises/src/RejectionException.php b/vendor/guzzlehttp/promises/src/RejectionException.php deleted file mode 100644 index 47dca86..0000000 --- a/vendor/guzzlehttp/promises/src/RejectionException.php +++ /dev/null @@ -1,49 +0,0 @@ -reason = $reason; - - $message = 'The promise was rejected'; - - if ($description) { - $message .= ' with reason: '.$description; - } elseif (is_string($reason) - || (is_object($reason) && method_exists($reason, '__toString')) - ) { - $message .= ' with reason: '.$this->reason; - } elseif ($reason instanceof \JsonSerializable) { - $message .= ' with reason: '.json_encode($this->reason, JSON_PRETTY_PRINT); - } - - parent::__construct($message); - } - - /** - * Returns the rejection reason. - * - * @return mixed - */ - public function getReason() - { - return $this->reason; - } -} diff --git a/vendor/guzzlehttp/promises/src/TaskQueue.php b/vendor/guzzlehttp/promises/src/TaskQueue.php deleted file mode 100644 index 503e0b2..0000000 --- a/vendor/guzzlehttp/promises/src/TaskQueue.php +++ /dev/null @@ -1,71 +0,0 @@ -run(); - * - * @final - */ -class TaskQueue implements TaskQueueInterface -{ - private $enableShutdown = true; - private $queue = []; - - public function __construct(bool $withShutdown = true) - { - if ($withShutdown) { - register_shutdown_function(function (): void { - if ($this->enableShutdown) { - // Only run the tasks if an E_ERROR didn't occur. - $err = error_get_last(); - if (!$err || ($err['type'] ^ E_ERROR)) { - $this->run(); - } - } - }); - } - } - - public function isEmpty(): bool - { - return !$this->queue; - } - - public function add(callable $task): void - { - $this->queue[] = $task; - } - - public function run(): void - { - while ($task = array_shift($this->queue)) { - /** @var callable $task */ - $task(); - } - } - - /** - * The task queue will be run and exhausted by default when the process - * exits IFF the exit is not the result of a PHP E_ERROR error. - * - * You can disable running the automatic shutdown of the queue by calling - * this function. If you disable the task queue shutdown process, then you - * MUST either run the task queue (as a result of running your event loop - * or manually using the run() method) or wait on each outstanding promise. - * - * Note: This shutdown will occur before any destructors are triggered. - */ - public function disableShutdown(): void - { - $this->enableShutdown = false; - } -} diff --git a/vendor/guzzlehttp/promises/src/TaskQueueInterface.php b/vendor/guzzlehttp/promises/src/TaskQueueInterface.php deleted file mode 100644 index 34c561a..0000000 --- a/vendor/guzzlehttp/promises/src/TaskQueueInterface.php +++ /dev/null @@ -1,24 +0,0 @@ - - * while ($eventLoop->isRunning()) { - * GuzzleHttp\Promise\Utils::queue()->run(); - * } - * - * - * @param TaskQueueInterface|null $assign Optionally specify a new queue instance. - */ - public static function queue(?TaskQueueInterface $assign = null): TaskQueueInterface - { - static $queue; - - if ($assign) { - $queue = $assign; - } elseif (!$queue) { - $queue = new TaskQueue(); - } - - return $queue; - } - - /** - * Adds a function to run in the task queue when it is next `run()` and - * returns a promise that is fulfilled or rejected with the result. - * - * @param callable $task Task function to run. - */ - public static function task(callable $task): PromiseInterface - { - $queue = self::queue(); - $promise = new Promise([$queue, 'run']); - $queue->add(function () use ($task, $promise): void { - try { - if (Is::pending($promise)) { - $promise->resolve($task()); - } - } catch (\Throwable $e) { - $promise->reject($e); - } - }); - - return $promise; - } - - /** - * Synchronously waits on a promise to resolve and returns an inspection - * state array. - * - * Returns a state associative array containing a "state" key mapping to a - * valid promise state. If the state of the promise is "fulfilled", the - * array will contain a "value" key mapping to the fulfilled value of the - * promise. If the promise is rejected, the array will contain a "reason" - * key mapping to the rejection reason of the promise. - * - * @param PromiseInterface $promise Promise or value. - */ - public static function inspect(PromiseInterface $promise): array - { - try { - return [ - 'state' => PromiseInterface::FULFILLED, - 'value' => $promise->wait(), - ]; - } catch (RejectionException $e) { - return ['state' => PromiseInterface::REJECTED, 'reason' => $e->getReason()]; - } catch (\Throwable $e) { - return ['state' => PromiseInterface::REJECTED, 'reason' => $e]; - } - } - - /** - * Waits on all of the provided promises, but does not unwrap rejected - * promises as thrown exception. - * - * Returns an array of inspection state arrays. - * - * @see inspect for the inspection state array format. - * - * @param PromiseInterface[] $promises Traversable of promises to wait upon. - */ - public static function inspectAll($promises): array - { - $results = []; - foreach ($promises as $key => $promise) { - $results[$key] = self::inspect($promise); - } - - return $results; - } - - /** - * Waits on all of the provided promises and returns the fulfilled values. - * - * Returns an array that contains the value of each promise (in the same - * order the promises were provided). An exception is thrown if any of the - * promises are rejected. - * - * @param iterable $promises Iterable of PromiseInterface objects to wait on. - * - * @throws \Throwable on error - */ - public static function unwrap($promises): array - { - $results = []; - foreach ($promises as $key => $promise) { - $results[$key] = $promise->wait(); - } - - return $results; - } - - /** - * Given an array of promises, return a promise that is fulfilled when all - * the items in the array are fulfilled. - * - * The promise's fulfillment value is an array with fulfillment values at - * respective positions to the original array. If any promise in the array - * rejects, the returned promise is rejected with the rejection reason. - * - * @param mixed $promises Promises or values. - * @param bool $recursive If true, resolves new promises that might have been added to the stack during its own resolution. - */ - public static function all($promises, bool $recursive = false): PromiseInterface - { - $results = []; - $promise = Each::of( - $promises, - function ($value, $idx) use (&$results): void { - $results[$idx] = $value; - }, - function ($reason, $idx, Promise $aggregate): void { - if (Is::pending($aggregate)) { - $aggregate->reject($reason); - } - } - )->then(function () use (&$results) { - ksort($results); - - return $results; - }); - - if (true === $recursive) { - $promise = $promise->then(function ($results) use ($recursive, &$promises) { - foreach ($promises as $promise) { - if (Is::pending($promise)) { - return self::all($promises, $recursive); - } - } - - return $results; - }); - } - - return $promise; - } - - /** - * Initiate a competitive race between multiple promises or values (values - * will become immediately fulfilled promises). - * - * When count amount of promises have been fulfilled, the returned promise - * is fulfilled with an array that contains the fulfillment values of the - * winners in order of resolution. - * - * This promise is rejected with a {@see AggregateException} if the number - * of fulfilled promises is less than the desired $count. - * - * @param int $count Total number of promises. - * @param mixed $promises Promises or values. - */ - public static function some(int $count, $promises): PromiseInterface - { - $results = []; - $rejections = []; - - return Each::of( - $promises, - function ($value, $idx, PromiseInterface $p) use (&$results, $count): void { - if (Is::settled($p)) { - return; - } - $results[$idx] = $value; - if (count($results) >= $count) { - $p->resolve(null); - } - }, - function ($reason) use (&$rejections): void { - $rejections[] = $reason; - } - )->then( - function () use (&$results, &$rejections, $count) { - if (count($results) !== $count) { - throw new AggregateException( - 'Not enough promises to fulfill count', - $rejections - ); - } - ksort($results); - - return array_values($results); - } - ); - } - - /** - * Like some(), with 1 as count. However, if the promise fulfills, the - * fulfillment value is not an array of 1 but the value directly. - * - * @param mixed $promises Promises or values. - */ - public static function any($promises): PromiseInterface - { - return self::some(1, $promises)->then(function ($values) { - return $values[0]; - }); - } - - /** - * Returns a promise that is fulfilled when all of the provided promises have - * been fulfilled or rejected. - * - * The returned promise is fulfilled with an array of inspection state arrays. - * - * @see inspect for the inspection state array format. - * - * @param mixed $promises Promises or values. - */ - public static function settle($promises): PromiseInterface - { - $results = []; - - return Each::of( - $promises, - function ($value, $idx) use (&$results): void { - $results[$idx] = ['state' => PromiseInterface::FULFILLED, 'value' => $value]; - }, - function ($reason, $idx) use (&$results): void { - $results[$idx] = ['state' => PromiseInterface::REJECTED, 'reason' => $reason]; - } - )->then(function () use (&$results) { - ksort($results); - - return $results; - }); - } -} diff --git a/vendor/guzzlehttp/psr7/CHANGELOG.md b/vendor/guzzlehttp/psr7/CHANGELOG.md deleted file mode 100644 index 75aabfb..0000000 --- a/vendor/guzzlehttp/psr7/CHANGELOG.md +++ /dev/null @@ -1,465 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - -## 2.7.0 - 2024-07-18 - -### Added - -- Add `Utils::redactUserInfo()` method -- Add ability to encode bools as ints in `Query::build` - -## 2.6.3 - 2024-07-18 - -### Fixed - -- Make `StreamWrapper::stream_stat()` return `false` if inner stream's size is `null` - -### Changed - -- PHP 8.4 support - -## 2.6.2 - 2023-12-03 - -### Fixed - -- Fixed another issue with the fact that PHP transforms numeric strings in array keys to ints - -### Changed - -- Updated links in docs to their canonical versions -- Replaced `call_user_func*` with native calls - -## 2.6.1 - 2023-08-27 - -### Fixed - -- Properly handle the fact that PHP transforms numeric strings in array keys to ints - -## 2.6.0 - 2023-08-03 - -### Changed - -- Updated the mime type map to add some new entries, fix a couple of invalid entries, and remove an invalid entry -- Fallback to `application/octet-stream` if we are unable to guess the content type for a multipart file upload - -## 2.5.1 - 2023-08-03 - -### Fixed - -- Corrected mime type for `.acc` files to `audio/aac` - -### Changed - -- PHP 8.3 support - -## 2.5.0 - 2023-04-17 - -### Changed - -- Adjusted `psr/http-message` version constraint to `^1.1 || ^2.0` - -## 2.4.5 - 2023-04-17 - -### Fixed - -- Prevent possible warnings on unset variables in `ServerRequest::normalizeNestedFileSpec` -- Fixed `Message::bodySummary` when `preg_match` fails -- Fixed header validation issue - -## 2.4.4 - 2023-03-09 - -### Changed - -- Removed the need for `AllowDynamicProperties` in `LazyOpenStream` - -## 2.4.3 - 2022-10-26 - -### Changed - -- Replaced `sha1(uniqid())` by `bin2hex(random_bytes(20))` - -## 2.4.2 - 2022-10-25 - -### Fixed - -- Fixed erroneous behaviour when combining host and relative path - -## 2.4.1 - 2022-08-28 - -### Fixed - -- Rewind body before reading in `Message::bodySummary` - -## 2.4.0 - 2022-06-20 - -### Added - -- Added provisional PHP 8.2 support -- Added `UriComparator::isCrossOrigin` method - -## 2.3.0 - 2022-06-09 - -### Fixed - -- Added `Header::splitList` method -- Added `Utils::tryGetContents` method -- Improved `Stream::getContents` method -- Updated mimetype mappings - -## 2.2.2 - 2022-06-08 - -### Fixed - -- Fix `Message::parseRequestUri` for numeric headers -- Re-wrap exceptions thrown in `fread` into runtime exceptions -- Throw an exception when multipart options is misformatted - -## 2.2.1 - 2022-03-20 - -### Fixed - -- Correct header value validation - -## 2.2.0 - 2022-03-20 - -### Added - -- A more compressive list of mime types -- Add JsonSerializable to Uri -- Missing return types - -### Fixed - -- Bug MultipartStream no `uri` metadata -- Bug MultipartStream with filename for `data://` streams -- Fixed new line handling in MultipartStream -- Reduced RAM usage when copying streams -- Updated parsing in `Header::normalize()` - -## 2.1.1 - 2022-03-20 - -### Fixed - -- Validate header values properly - -## 2.1.0 - 2021-10-06 - -### Changed - -- Attempting to create a `Uri` object from a malformed URI will no longer throw a generic - `InvalidArgumentException`, but rather a `MalformedUriException`, which inherits from the former - for backwards compatibility. Callers relying on the exception being thrown to detect invalid - URIs should catch the new exception. - -### Fixed - -- Return `null` in caching stream size if remote size is `null` - -## 2.0.0 - 2021-06-30 - -Identical to the RC release. - -## 2.0.0@RC-1 - 2021-04-29 - -### Fixed - -- Handle possibly unset `url` in `stream_get_meta_data` - -## 2.0.0@beta-1 - 2021-03-21 - -### Added - -- PSR-17 factories -- Made classes final -- PHP7 type hints - -### Changed - -- When building a query string, booleans are represented as 1 and 0. - -### Removed - -- PHP < 7.2 support -- All functions in the `GuzzleHttp\Psr7` namespace - -## 1.8.1 - 2021-03-21 - -### Fixed - -- Issue parsing IPv6 URLs -- Issue modifying ServerRequest lost all its attributes - -## 1.8.0 - 2021-03-21 - -### Added - -- Locale independent URL parsing -- Most classes got a `@final` annotation to prepare for 2.0 - -### Fixed - -- Issue when creating stream from `php://input` and curl-ext is not installed -- Broken `Utils::tryFopen()` on PHP 8 - -## 1.7.0 - 2020-09-30 - -### Added - -- Replaced functions by static methods - -### Fixed - -- Converting a non-seekable stream to a string -- Handle multiple Set-Cookie correctly -- Ignore array keys in header values when merging -- Allow multibyte characters to be parsed in `Message:bodySummary()` - -### Changed - -- Restored partial HHVM 3 support - - -## [1.6.1] - 2019-07-02 - -### Fixed - -- Accept null and bool header values again - - -## [1.6.0] - 2019-06-30 - -### Added - -- Allowed version `^3.0` of `ralouphie/getallheaders` dependency (#244) -- Added MIME type for WEBP image format (#246) -- Added more validation of values according to PSR-7 and RFC standards, e.g. status code range (#250, #272) - -### Changed - -- Tests don't pass with HHVM 4.0, so HHVM support got dropped. Other libraries like composer have done the same. (#262) -- Accept port number 0 to be valid (#270) - -### Fixed - -- Fixed subsequent reads from `php://input` in ServerRequest (#247) -- Fixed readable/writable detection for certain stream modes (#248) -- Fixed encoding of special characters in the `userInfo` component of an URI (#253) - - -## [1.5.2] - 2018-12-04 - -### Fixed - -- Check body size when getting the message summary - - -## [1.5.1] - 2018-12-04 - -### Fixed - -- Get the summary of a body only if it is readable - - -## [1.5.0] - 2018-12-03 - -### Added - -- Response first-line to response string exception (fixes #145) -- A test for #129 behavior -- `get_message_body_summary` function in order to get the message summary -- `3gp` and `mkv` mime types - -### Changed - -- Clarify exception message when stream is detached - -### Deprecated - -- Deprecated parsing folded header lines as per RFC 7230 - -### Fixed - -- Fix `AppendStream::detach` to not close streams -- `InflateStream` preserves `isSeekable` attribute of the underlying stream -- `ServerRequest::getUriFromGlobals` to support URLs in query parameters - - -Several other fixes and improvements. - - -## [1.4.2] - 2017-03-20 - -### Fixed - -- Reverted BC break to `Uri::resolve` and `Uri::removeDotSegments` by removing - calls to `trigger_error` when deprecated methods are invoked. - - -## [1.4.1] - 2017-02-27 - -### Added - -- Rriggering of silenced deprecation warnings. - -### Fixed - -- Reverted BC break by reintroducing behavior to automagically fix a URI with a - relative path and an authority by adding a leading slash to the path. It's only - deprecated now. - - -## [1.4.0] - 2017-02-21 - -### Added - -- Added common URI utility methods based on RFC 3986 (see documentation in the readme): - - `Uri::isDefaultPort` - - `Uri::isAbsolute` - - `Uri::isNetworkPathReference` - - `Uri::isAbsolutePathReference` - - `Uri::isRelativePathReference` - - `Uri::isSameDocumentReference` - - `Uri::composeComponents` - - `UriNormalizer::normalize` - - `UriNormalizer::isEquivalent` - - `UriResolver::relativize` - -### Changed - -- Ensure `ServerRequest::getUriFromGlobals` returns a URI in absolute form. -- Allow `parse_response` to parse a response without delimiting space and reason. -- Ensure each URI modification results in a valid URI according to PSR-7 discussions. - Invalid modifications will throw an exception instead of returning a wrong URI or - doing some magic. - - `(new Uri)->withPath('foo')->withHost('example.com')` will throw an exception - because the path of a URI with an authority must start with a slash "/" or be empty - - `(new Uri())->withScheme('http')` will return `'http://localhost'` - -### Deprecated - -- `Uri::resolve` in favor of `UriResolver::resolve` -- `Uri::removeDotSegments` in favor of `UriResolver::removeDotSegments` - -### Fixed - -- `Stream::read` when length parameter <= 0. -- `copy_to_stream` reads bytes in chunks instead of `maxLen` into memory. -- `ServerRequest::getUriFromGlobals` when `Host` header contains port. -- Compatibility of URIs with `file` scheme and empty host. - - -## [1.3.1] - 2016-06-25 - -### Fixed - -- `Uri::__toString` for network path references, e.g. `//example.org`. -- Missing lowercase normalization for host. -- Handling of URI components in case they are `'0'` in a lot of places, - e.g. as a user info password. -- `Uri::withAddedHeader` to correctly merge headers with different case. -- Trimming of header values in `Uri::withAddedHeader`. Header values may - be surrounded by whitespace which should be ignored according to RFC 7230 - Section 3.2.4. This does not apply to header names. -- `Uri::withAddedHeader` with an array of header values. -- `Uri::resolve` when base path has no slash and handling of fragment. -- Handling of encoding in `Uri::with(out)QueryValue` so one can pass the - key/value both in encoded as well as decoded form to those methods. This is - consistent with withPath, withQuery etc. -- `ServerRequest::withoutAttribute` when attribute value is null. - - -## [1.3.0] - 2016-04-13 - -### Added - -- Remaining interfaces needed for full PSR7 compatibility - (ServerRequestInterface, UploadedFileInterface, etc.). -- Support for stream_for from scalars. - -### Changed - -- Can now extend Uri. - -### Fixed -- A bug in validating request methods by making it more permissive. - - -## [1.2.3] - 2016-02-18 - -### Fixed - -- Support in `GuzzleHttp\Psr7\CachingStream` for seeking forward on remote - streams, which can sometimes return fewer bytes than requested with `fread`. -- Handling of gzipped responses with FNAME headers. - - -## [1.2.2] - 2016-01-22 - -### Added - -- Support for URIs without any authority. -- Support for HTTP 451 'Unavailable For Legal Reasons.' -- Support for using '0' as a filename. -- Support for including non-standard ports in Host headers. - - -## [1.2.1] - 2015-11-02 - -### Changes - -- Now supporting negative offsets when seeking to SEEK_END. - - -## [1.2.0] - 2015-08-15 - -### Changed - -- Body as `"0"` is now properly added to a response. -- Now allowing forward seeking in CachingStream. -- Now properly parsing HTTP requests that contain proxy targets in - `parse_request`. -- functions.php is now conditionally required. -- user-info is no longer dropped when resolving URIs. - - -## [1.1.0] - 2015-06-24 - -### Changed - -- URIs can now be relative. -- `multipart/form-data` headers are now overridden case-insensitively. -- URI paths no longer encode the following characters because they are allowed - in URIs: "(", ")", "*", "!", "'" -- A port is no longer added to a URI when the scheme is missing and no port is - present. - - -## 1.0.0 - 2015-05-19 - -Initial release. - -Currently unsupported: - -- `Psr\Http\Message\ServerRequestInterface` -- `Psr\Http\Message\UploadedFileInterface` - - - -[1.6.0]: https://github.com/guzzle/psr7/compare/1.5.2...1.6.0 -[1.5.2]: https://github.com/guzzle/psr7/compare/1.5.1...1.5.2 -[1.5.1]: https://github.com/guzzle/psr7/compare/1.5.0...1.5.1 -[1.5.0]: https://github.com/guzzle/psr7/compare/1.4.2...1.5.0 -[1.4.2]: https://github.com/guzzle/psr7/compare/1.4.1...1.4.2 -[1.4.1]: https://github.com/guzzle/psr7/compare/1.4.0...1.4.1 -[1.4.0]: https://github.com/guzzle/psr7/compare/1.3.1...1.4.0 -[1.3.1]: https://github.com/guzzle/psr7/compare/1.3.0...1.3.1 -[1.3.0]: https://github.com/guzzle/psr7/compare/1.2.3...1.3.0 -[1.2.3]: https://github.com/guzzle/psr7/compare/1.2.2...1.2.3 -[1.2.2]: https://github.com/guzzle/psr7/compare/1.2.1...1.2.2 -[1.2.1]: https://github.com/guzzle/psr7/compare/1.2.0...1.2.1 -[1.2.0]: https://github.com/guzzle/psr7/compare/1.1.0...1.2.0 -[1.1.0]: https://github.com/guzzle/psr7/compare/1.0.0...1.1.0 diff --git a/vendor/guzzlehttp/psr7/LICENSE b/vendor/guzzlehttp/psr7/LICENSE deleted file mode 100644 index 51c7ec8..0000000 --- a/vendor/guzzlehttp/psr7/LICENSE +++ /dev/null @@ -1,26 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2015 Michael Dowling -Copyright (c) 2015 Márk Sági-Kazár -Copyright (c) 2015 Graham Campbell -Copyright (c) 2016 Tobias Schultze -Copyright (c) 2016 George Mponos -Copyright (c) 2018 Tobias Nyholm - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/vendor/guzzlehttp/psr7/README.md b/vendor/guzzlehttp/psr7/README.md deleted file mode 100644 index 2e9bb0b..0000000 --- a/vendor/guzzlehttp/psr7/README.md +++ /dev/null @@ -1,887 +0,0 @@ -# PSR-7 Message Implementation - -This repository contains a full [PSR-7](https://www.php-fig.org/psr/psr-7/) -message implementation, several stream decorators, and some helpful -functionality like query string parsing. - -![CI](https://github.com/guzzle/psr7/workflows/CI/badge.svg) -![Static analysis](https://github.com/guzzle/psr7/workflows/Static%20analysis/badge.svg) - - -## Features - -This package comes with a number of stream implementations and stream -decorators. - - -## Installation - -```shell -composer require guzzlehttp/psr7 -``` - -## Version Guidance - -| Version | Status | PHP Version | -|---------|---------------------|--------------| -| 1.x | EOL (2024-06-30) | >=5.4,<8.2 | -| 2.x | Latest | >=7.2.5,<8.5 | - - -## AppendStream - -`GuzzleHttp\Psr7\AppendStream` - -Reads from multiple streams, one after the other. - -```php -use GuzzleHttp\Psr7; - -$a = Psr7\Utils::streamFor('abc, '); -$b = Psr7\Utils::streamFor('123.'); -$composed = new Psr7\AppendStream([$a, $b]); - -$composed->addStream(Psr7\Utils::streamFor(' Above all listen to me')); - -echo $composed; // abc, 123. Above all listen to me. -``` - - -## BufferStream - -`GuzzleHttp\Psr7\BufferStream` - -Provides a buffer stream that can be written to fill a buffer, and read -from to remove bytes from the buffer. - -This stream returns a "hwm" metadata value that tells upstream consumers -what the configured high water mark of the stream is, or the maximum -preferred size of the buffer. - -```php -use GuzzleHttp\Psr7; - -// When more than 1024 bytes are in the buffer, it will begin returning -// false to writes. This is an indication that writers should slow down. -$buffer = new Psr7\BufferStream(1024); -``` - - -## CachingStream - -The CachingStream is used to allow seeking over previously read bytes on -non-seekable streams. This can be useful when transferring a non-seekable -entity body fails due to needing to rewind the stream (for example, resulting -from a redirect). Data that is read from the remote stream will be buffered in -a PHP temp stream so that previously read bytes are cached first in memory, -then on disk. - -```php -use GuzzleHttp\Psr7; - -$original = Psr7\Utils::streamFor(fopen('http://www.google.com', 'r')); -$stream = new Psr7\CachingStream($original); - -$stream->read(1024); -echo $stream->tell(); -// 1024 - -$stream->seek(0); -echo $stream->tell(); -// 0 -``` - - -## DroppingStream - -`GuzzleHttp\Psr7\DroppingStream` - -Stream decorator that begins dropping data once the size of the underlying -stream becomes too full. - -```php -use GuzzleHttp\Psr7; - -// Create an empty stream -$stream = Psr7\Utils::streamFor(); - -// Start dropping data when the stream has more than 10 bytes -$dropping = new Psr7\DroppingStream($stream, 10); - -$dropping->write('01234567890123456789'); -echo $stream; // 0123456789 -``` - - -## FnStream - -`GuzzleHttp\Psr7\FnStream` - -Compose stream implementations based on a hash of functions. - -Allows for easy testing and extension of a provided stream without needing -to create a concrete class for a simple extension point. - -```php - -use GuzzleHttp\Psr7; - -$stream = Psr7\Utils::streamFor('hi'); -$fnStream = Psr7\FnStream::decorate($stream, [ - 'rewind' => function () use ($stream) { - echo 'About to rewind - '; - $stream->rewind(); - echo 'rewound!'; - } -]); - -$fnStream->rewind(); -// Outputs: About to rewind - rewound! -``` - - -## InflateStream - -`GuzzleHttp\Psr7\InflateStream` - -Uses PHP's zlib.inflate filter to inflate zlib (HTTP deflate, RFC1950) or gzipped (RFC1952) content. - -This stream decorator converts the provided stream to a PHP stream resource, -then appends the zlib.inflate filter. The stream is then converted back -to a Guzzle stream resource to be used as a Guzzle stream. - - -## LazyOpenStream - -`GuzzleHttp\Psr7\LazyOpenStream` - -Lazily reads or writes to a file that is opened only after an IO operation -take place on the stream. - -```php -use GuzzleHttp\Psr7; - -$stream = new Psr7\LazyOpenStream('/path/to/file', 'r'); -// The file has not yet been opened... - -echo $stream->read(10); -// The file is opened and read from only when needed. -``` - - -## LimitStream - -`GuzzleHttp\Psr7\LimitStream` - -LimitStream can be used to read a subset or slice of an existing stream object. -This can be useful for breaking a large file into smaller pieces to be sent in -chunks (e.g. Amazon S3's multipart upload API). - -```php -use GuzzleHttp\Psr7; - -$original = Psr7\Utils::streamFor(fopen('/tmp/test.txt', 'r+')); -echo $original->getSize(); -// >>> 1048576 - -// Limit the size of the body to 1024 bytes and start reading from byte 2048 -$stream = new Psr7\LimitStream($original, 1024, 2048); -echo $stream->getSize(); -// >>> 1024 -echo $stream->tell(); -// >>> 0 -``` - - -## MultipartStream - -`GuzzleHttp\Psr7\MultipartStream` - -Stream that when read returns bytes for a streaming multipart or -multipart/form-data stream. - - -## NoSeekStream - -`GuzzleHttp\Psr7\NoSeekStream` - -NoSeekStream wraps a stream and does not allow seeking. - -```php -use GuzzleHttp\Psr7; - -$original = Psr7\Utils::streamFor('foo'); -$noSeek = new Psr7\NoSeekStream($original); - -echo $noSeek->read(3); -// foo -var_export($noSeek->isSeekable()); -// false -$noSeek->seek(0); -var_export($noSeek->read(3)); -// NULL -``` - - -## PumpStream - -`GuzzleHttp\Psr7\PumpStream` - -Provides a read only stream that pumps data from a PHP callable. - -When invoking the provided callable, the PumpStream will pass the amount of -data requested to read to the callable. The callable can choose to ignore -this value and return fewer or more bytes than requested. Any extra data -returned by the provided callable is buffered internally until drained using -the read() function of the PumpStream. The provided callable MUST return -false when there is no more data to read. - - -## Implementing stream decorators - -Creating a stream decorator is very easy thanks to the -`GuzzleHttp\Psr7\StreamDecoratorTrait`. This trait provides methods that -implement `Psr\Http\Message\StreamInterface` by proxying to an underlying -stream. Just `use` the `StreamDecoratorTrait` and implement your custom -methods. - -For example, let's say we wanted to call a specific function each time the last -byte is read from a stream. This could be implemented by overriding the -`read()` method. - -```php -use Psr\Http\Message\StreamInterface; -use GuzzleHttp\Psr7\StreamDecoratorTrait; - -class EofCallbackStream implements StreamInterface -{ - use StreamDecoratorTrait; - - private $callback; - - private $stream; - - public function __construct(StreamInterface $stream, callable $cb) - { - $this->stream = $stream; - $this->callback = $cb; - } - - public function read($length) - { - $result = $this->stream->read($length); - - // Invoke the callback when EOF is hit. - if ($this->eof()) { - ($this->callback)(); - } - - return $result; - } -} -``` - -This decorator could be added to any existing stream and used like so: - -```php -use GuzzleHttp\Psr7; - -$original = Psr7\Utils::streamFor('foo'); - -$eofStream = new EofCallbackStream($original, function () { - echo 'EOF!'; -}); - -$eofStream->read(2); -$eofStream->read(1); -// echoes "EOF!" -$eofStream->seek(0); -$eofStream->read(3); -// echoes "EOF!" -``` - - -## PHP StreamWrapper - -You can use the `GuzzleHttp\Psr7\StreamWrapper` class if you need to use a -PSR-7 stream as a PHP stream resource. - -Use the `GuzzleHttp\Psr7\StreamWrapper::getResource()` method to create a PHP -stream from a PSR-7 stream. - -```php -use GuzzleHttp\Psr7\StreamWrapper; - -$stream = GuzzleHttp\Psr7\Utils::streamFor('hello!'); -$resource = StreamWrapper::getResource($stream); -echo fread($resource, 6); // outputs hello! -``` - - -# Static API - -There are various static methods available under the `GuzzleHttp\Psr7` namespace. - - -## `GuzzleHttp\Psr7\Message::toString` - -`public static function toString(MessageInterface $message): string` - -Returns the string representation of an HTTP message. - -```php -$request = new GuzzleHttp\Psr7\Request('GET', 'http://example.com'); -echo GuzzleHttp\Psr7\Message::toString($request); -``` - - -## `GuzzleHttp\Psr7\Message::bodySummary` - -`public static function bodySummary(MessageInterface $message, int $truncateAt = 120): string|null` - -Get a short summary of the message body. - -Will return `null` if the response is not printable. - - -## `GuzzleHttp\Psr7\Message::rewindBody` - -`public static function rewindBody(MessageInterface $message): void` - -Attempts to rewind a message body and throws an exception on failure. - -The body of the message will only be rewound if a call to `tell()` -returns a value other than `0`. - - -## `GuzzleHttp\Psr7\Message::parseMessage` - -`public static function parseMessage(string $message): array` - -Parses an HTTP message into an associative array. - -The array contains the "start-line" key containing the start line of -the message, "headers" key containing an associative array of header -array values, and a "body" key containing the body of the message. - - -## `GuzzleHttp\Psr7\Message::parseRequestUri` - -`public static function parseRequestUri(string $path, array $headers): string` - -Constructs a URI for an HTTP request message. - - -## `GuzzleHttp\Psr7\Message::parseRequest` - -`public static function parseRequest(string $message): Request` - -Parses a request message string into a request object. - - -## `GuzzleHttp\Psr7\Message::parseResponse` - -`public static function parseResponse(string $message): Response` - -Parses a response message string into a response object. - - -## `GuzzleHttp\Psr7\Header::parse` - -`public static function parse(string|array $header): array` - -Parse an array of header values containing ";" separated data into an -array of associative arrays representing the header key value pair data -of the header. When a parameter does not contain a value, but just -contains a key, this function will inject a key with a '' string value. - - -## `GuzzleHttp\Psr7\Header::splitList` - -`public static function splitList(string|string[] $header): string[]` - -Splits a HTTP header defined to contain a comma-separated list into -each individual value: - -``` -$knownEtags = Header::splitList($request->getHeader('if-none-match')); -``` - -Example headers include `accept`, `cache-control` and `if-none-match`. - - -## `GuzzleHttp\Psr7\Header::normalize` (deprecated) - -`public static function normalize(string|array $header): array` - -`Header::normalize()` is deprecated in favor of [`Header::splitList()`](README.md#guzzlehttppsr7headersplitlist) -which performs the same operation with a cleaned up API and improved -documentation. - -Converts an array of header values that may contain comma separated -headers into an array of headers with no comma separated values. - - -## `GuzzleHttp\Psr7\Query::parse` - -`public static function parse(string $str, int|bool $urlEncoding = true): array` - -Parse a query string into an associative array. - -If multiple values are found for the same key, the value of that key -value pair will become an array. This function does not parse nested -PHP style arrays into an associative array (e.g., `foo[a]=1&foo[b]=2` -will be parsed into `['foo[a]' => '1', 'foo[b]' => '2'])`. - - -## `GuzzleHttp\Psr7\Query::build` - -`public static function build(array $params, int|false $encoding = PHP_QUERY_RFC3986, bool $treatBoolsAsInts = true): string` - -Build a query string from an array of key value pairs. - -This function can use the return value of `parse()` to build a query -string. This function does not modify the provided keys when an array is -encountered (like `http_build_query()` would). - - -## `GuzzleHttp\Psr7\Utils::caselessRemove` - -`public static function caselessRemove(iterable $keys, $keys, array $data): array` - -Remove the items given by the keys, case insensitively from the data. - - -## `GuzzleHttp\Psr7\Utils::copyToStream` - -`public static function copyToStream(StreamInterface $source, StreamInterface $dest, int $maxLen = -1): void` - -Copy the contents of a stream into another stream until the given number -of bytes have been read. - - -## `GuzzleHttp\Psr7\Utils::copyToString` - -`public static function copyToString(StreamInterface $stream, int $maxLen = -1): string` - -Copy the contents of a stream into a string until the given number of -bytes have been read. - - -## `GuzzleHttp\Psr7\Utils::hash` - -`public static function hash(StreamInterface $stream, string $algo, bool $rawOutput = false): string` - -Calculate a hash of a stream. - -This method reads the entire stream to calculate a rolling hash, based on -PHP's `hash_init` functions. - - -## `GuzzleHttp\Psr7\Utils::modifyRequest` - -`public static function modifyRequest(RequestInterface $request, array $changes): RequestInterface` - -Clone and modify a request with the given changes. - -This method is useful for reducing the number of clones needed to mutate -a message. - -- method: (string) Changes the HTTP method. -- set_headers: (array) Sets the given headers. -- remove_headers: (array) Remove the given headers. -- body: (mixed) Sets the given body. -- uri: (UriInterface) Set the URI. -- query: (string) Set the query string value of the URI. -- version: (string) Set the protocol version. - - -## `GuzzleHttp\Psr7\Utils::readLine` - -`public static function readLine(StreamInterface $stream, ?int $maxLength = null): string` - -Read a line from the stream up to the maximum allowed buffer length. - - -## `GuzzleHttp\Psr7\Utils::redactUserInfo` - -`public static function redactUserInfo(UriInterface $uri): UriInterface` - -Redact the password in the user info part of a URI. - - -## `GuzzleHttp\Psr7\Utils::streamFor` - -`public static function streamFor(resource|string|null|int|float|bool|StreamInterface|callable|\Iterator $resource = '', array $options = []): StreamInterface` - -Create a new stream based on the input type. - -Options is an associative array that can contain the following keys: - -- metadata: Array of custom metadata. -- size: Size of the stream. - -This method accepts the following `$resource` types: - -- `Psr\Http\Message\StreamInterface`: Returns the value as-is. -- `string`: Creates a stream object that uses the given string as the contents. -- `resource`: Creates a stream object that wraps the given PHP stream resource. -- `Iterator`: If the provided value implements `Iterator`, then a read-only - stream object will be created that wraps the given iterable. Each time the - stream is read from, data from the iterator will fill a buffer and will be - continuously called until the buffer is equal to the requested read size. - Subsequent read calls will first read from the buffer and then call `next` - on the underlying iterator until it is exhausted. -- `object` with `__toString()`: If the object has the `__toString()` method, - the object will be cast to a string and then a stream will be returned that - uses the string value. -- `NULL`: When `null` is passed, an empty stream object is returned. -- `callable` When a callable is passed, a read-only stream object will be - created that invokes the given callable. The callable is invoked with the - number of suggested bytes to read. The callable can return any number of - bytes, but MUST return `false` when there is no more data to return. The - stream object that wraps the callable will invoke the callable until the - number of requested bytes are available. Any additional bytes will be - buffered and used in subsequent reads. - -```php -$stream = GuzzleHttp\Psr7\Utils::streamFor('foo'); -$stream = GuzzleHttp\Psr7\Utils::streamFor(fopen('/path/to/file', 'r')); - -$generator = function ($bytes) { - for ($i = 0; $i < $bytes; $i++) { - yield ' '; - } -} - -$stream = GuzzleHttp\Psr7\Utils::streamFor($generator(100)); -``` - - -## `GuzzleHttp\Psr7\Utils::tryFopen` - -`public static function tryFopen(string $filename, string $mode): resource` - -Safely opens a PHP stream resource using a filename. - -When fopen fails, PHP normally raises a warning. This function adds an -error handler that checks for errors and throws an exception instead. - - -## `GuzzleHttp\Psr7\Utils::tryGetContents` - -`public static function tryGetContents(resource $stream): string` - -Safely gets the contents of a given stream. - -When stream_get_contents fails, PHP normally raises a warning. This -function adds an error handler that checks for errors and throws an -exception instead. - - -## `GuzzleHttp\Psr7\Utils::uriFor` - -`public static function uriFor(string|UriInterface $uri): UriInterface` - -Returns a UriInterface for the given value. - -This function accepts a string or UriInterface and returns a -UriInterface for the given value. If the value is already a -UriInterface, it is returned as-is. - - -## `GuzzleHttp\Psr7\MimeType::fromFilename` - -`public static function fromFilename(string $filename): string|null` - -Determines the mimetype of a file by looking at its extension. - - -## `GuzzleHttp\Psr7\MimeType::fromExtension` - -`public static function fromExtension(string $extension): string|null` - -Maps a file extensions to a mimetype. - - -## Upgrading from Function API - -The static API was first introduced in 1.7.0, in order to mitigate problems with functions conflicting between global and local copies of the package. The function API was removed in 2.0.0. A migration table has been provided here for your convenience: - -| Original Function | Replacement Method | -|----------------|----------------| -| `str` | `Message::toString` | -| `uri_for` | `Utils::uriFor` | -| `stream_for` | `Utils::streamFor` | -| `parse_header` | `Header::parse` | -| `normalize_header` | `Header::normalize` | -| `modify_request` | `Utils::modifyRequest` | -| `rewind_body` | `Message::rewindBody` | -| `try_fopen` | `Utils::tryFopen` | -| `copy_to_string` | `Utils::copyToString` | -| `copy_to_stream` | `Utils::copyToStream` | -| `hash` | `Utils::hash` | -| `readline` | `Utils::readLine` | -| `parse_request` | `Message::parseRequest` | -| `parse_response` | `Message::parseResponse` | -| `parse_query` | `Query::parse` | -| `build_query` | `Query::build` | -| `mimetype_from_filename` | `MimeType::fromFilename` | -| `mimetype_from_extension` | `MimeType::fromExtension` | -| `_parse_message` | `Message::parseMessage` | -| `_parse_request_uri` | `Message::parseRequestUri` | -| `get_message_body_summary` | `Message::bodySummary` | -| `_caseless_remove` | `Utils::caselessRemove` | - - -# Additional URI Methods - -Aside from the standard `Psr\Http\Message\UriInterface` implementation in form of the `GuzzleHttp\Psr7\Uri` class, -this library also provides additional functionality when working with URIs as static methods. - -## URI Types - -An instance of `Psr\Http\Message\UriInterface` can either be an absolute URI or a relative reference. -An absolute URI has a scheme. A relative reference is used to express a URI relative to another URI, -the base URI. Relative references can be divided into several forms according to -[RFC 3986 Section 4.2](https://datatracker.ietf.org/doc/html/rfc3986#section-4.2): - -- network-path references, e.g. `//example.com/path` -- absolute-path references, e.g. `/path` -- relative-path references, e.g. `subpath` - -The following methods can be used to identify the type of the URI. - -### `GuzzleHttp\Psr7\Uri::isAbsolute` - -`public static function isAbsolute(UriInterface $uri): bool` - -Whether the URI is absolute, i.e. it has a scheme. - -### `GuzzleHttp\Psr7\Uri::isNetworkPathReference` - -`public static function isNetworkPathReference(UriInterface $uri): bool` - -Whether the URI is a network-path reference. A relative reference that begins with two slash characters is -termed an network-path reference. - -### `GuzzleHttp\Psr7\Uri::isAbsolutePathReference` - -`public static function isAbsolutePathReference(UriInterface $uri): bool` - -Whether the URI is a absolute-path reference. A relative reference that begins with a single slash character is -termed an absolute-path reference. - -### `GuzzleHttp\Psr7\Uri::isRelativePathReference` - -`public static function isRelativePathReference(UriInterface $uri): bool` - -Whether the URI is a relative-path reference. A relative reference that does not begin with a slash character is -termed a relative-path reference. - -### `GuzzleHttp\Psr7\Uri::isSameDocumentReference` - -`public static function isSameDocumentReference(UriInterface $uri, ?UriInterface $base = null): bool` - -Whether the URI is a same-document reference. A same-document reference refers to a URI that is, aside from its -fragment component, identical to the base URI. When no base URI is given, only an empty URI reference -(apart from its fragment) is considered a same-document reference. - -## URI Components - -Additional methods to work with URI components. - -### `GuzzleHttp\Psr7\Uri::isDefaultPort` - -`public static function isDefaultPort(UriInterface $uri): bool` - -Whether the URI has the default port of the current scheme. `Psr\Http\Message\UriInterface::getPort` may return null -or the standard port. This method can be used independently of the implementation. - -### `GuzzleHttp\Psr7\Uri::composeComponents` - -`public static function composeComponents($scheme, $authority, $path, $query, $fragment): string` - -Composes a URI reference string from its various components according to -[RFC 3986 Section 5.3](https://datatracker.ietf.org/doc/html/rfc3986#section-5.3). Usually this method does not need -to be called manually but instead is used indirectly via `Psr\Http\Message\UriInterface::__toString`. - -### `GuzzleHttp\Psr7\Uri::fromParts` - -`public static function fromParts(array $parts): UriInterface` - -Creates a URI from a hash of [`parse_url`](https://www.php.net/manual/en/function.parse-url.php) components. - - -### `GuzzleHttp\Psr7\Uri::withQueryValue` - -`public static function withQueryValue(UriInterface $uri, $key, $value): UriInterface` - -Creates a new URI with a specific query string value. Any existing query string values that exactly match the -provided key are removed and replaced with the given key value pair. A value of null will set the query string -key without a value, e.g. "key" instead of "key=value". - -### `GuzzleHttp\Psr7\Uri::withQueryValues` - -`public static function withQueryValues(UriInterface $uri, array $keyValueArray): UriInterface` - -Creates a new URI with multiple query string values. It has the same behavior as `withQueryValue()` but for an -associative array of key => value. - -### `GuzzleHttp\Psr7\Uri::withoutQueryValue` - -`public static function withoutQueryValue(UriInterface $uri, $key): UriInterface` - -Creates a new URI with a specific query string value removed. Any existing query string values that exactly match the -provided key are removed. - -## Cross-Origin Detection - -`GuzzleHttp\Psr7\UriComparator` provides methods to determine if a modified URL should be considered cross-origin. - -### `GuzzleHttp\Psr7\UriComparator::isCrossOrigin` - -`public static function isCrossOrigin(UriInterface $original, UriInterface $modified): bool` - -Determines if a modified URL should be considered cross-origin with respect to an original URL. - -## Reference Resolution - -`GuzzleHttp\Psr7\UriResolver` provides methods to resolve a URI reference in the context of a base URI according -to [RFC 3986 Section 5](https://datatracker.ietf.org/doc/html/rfc3986#section-5). This is for example also what web -browsers do when resolving a link in a website based on the current request URI. - -### `GuzzleHttp\Psr7\UriResolver::resolve` - -`public static function resolve(UriInterface $base, UriInterface $rel): UriInterface` - -Converts the relative URI into a new URI that is resolved against the base URI. - -### `GuzzleHttp\Psr7\UriResolver::removeDotSegments` - -`public static function removeDotSegments(string $path): string` - -Removes dot segments from a path and returns the new path according to -[RFC 3986 Section 5.2.4](https://datatracker.ietf.org/doc/html/rfc3986#section-5.2.4). - -### `GuzzleHttp\Psr7\UriResolver::relativize` - -`public static function relativize(UriInterface $base, UriInterface $target): UriInterface` - -Returns the target URI as a relative reference from the base URI. This method is the counterpart to resolve(): - -```php -(string) $target === (string) UriResolver::resolve($base, UriResolver::relativize($base, $target)) -``` - -One use-case is to use the current request URI as base URI and then generate relative links in your documents -to reduce the document size or offer self-contained downloadable document archives. - -```php -$base = new Uri('http://example.com/a/b/'); -echo UriResolver::relativize($base, new Uri('http://example.com/a/b/c')); // prints 'c'. -echo UriResolver::relativize($base, new Uri('http://example.com/a/x/y')); // prints '../x/y'. -echo UriResolver::relativize($base, new Uri('http://example.com/a/b/?q')); // prints '?q'. -echo UriResolver::relativize($base, new Uri('http://example.org/a/b/')); // prints '//example.org/a/b/'. -``` - -## Normalization and Comparison - -`GuzzleHttp\Psr7\UriNormalizer` provides methods to normalize and compare URIs according to -[RFC 3986 Section 6](https://datatracker.ietf.org/doc/html/rfc3986#section-6). - -### `GuzzleHttp\Psr7\UriNormalizer::normalize` - -`public static function normalize(UriInterface $uri, $flags = self::PRESERVING_NORMALIZATIONS): UriInterface` - -Returns a normalized URI. The scheme and host component are already normalized to lowercase per PSR-7 UriInterface. -This methods adds additional normalizations that can be configured with the `$flags` parameter which is a bitmask -of normalizations to apply. The following normalizations are available: - -- `UriNormalizer::PRESERVING_NORMALIZATIONS` - - Default normalizations which only include the ones that preserve semantics. - -- `UriNormalizer::CAPITALIZE_PERCENT_ENCODING` - - All letters within a percent-encoding triplet (e.g., "%3A") are case-insensitive, and should be capitalized. - - Example: `http://example.org/a%c2%b1b` → `http://example.org/a%C2%B1b` - -- `UriNormalizer::DECODE_UNRESERVED_CHARACTERS` - - Decodes percent-encoded octets of unreserved characters. For consistency, percent-encoded octets in the ranges of - ALPHA (%41–%5A and %61–%7A), DIGIT (%30–%39), hyphen (%2D), period (%2E), underscore (%5F), or tilde (%7E) should - not be created by URI producers and, when found in a URI, should be decoded to their corresponding unreserved - characters by URI normalizers. - - Example: `http://example.org/%7Eusern%61me/` → `http://example.org/~username/` - -- `UriNormalizer::CONVERT_EMPTY_PATH` - - Converts the empty path to "/" for http and https URIs. - - Example: `http://example.org` → `http://example.org/` - -- `UriNormalizer::REMOVE_DEFAULT_HOST` - - Removes the default host of the given URI scheme from the URI. Only the "file" scheme defines the default host - "localhost". All of `file:/myfile`, `file:///myfile`, and `file://localhost/myfile` are equivalent according to - RFC 3986. - - Example: `file://localhost/myfile` → `file:///myfile` - -- `UriNormalizer::REMOVE_DEFAULT_PORT` - - Removes the default port of the given URI scheme from the URI. - - Example: `http://example.org:80/` → `http://example.org/` - -- `UriNormalizer::REMOVE_DOT_SEGMENTS` - - Removes unnecessary dot-segments. Dot-segments in relative-path references are not removed as it would - change the semantics of the URI reference. - - Example: `http://example.org/../a/b/../c/./d.html` → `http://example.org/a/c/d.html` - -- `UriNormalizer::REMOVE_DUPLICATE_SLASHES` - - Paths which include two or more adjacent slashes are converted to one. Webservers usually ignore duplicate slashes - and treat those URIs equivalent. But in theory those URIs do not need to be equivalent. So this normalization - may change the semantics. Encoded slashes (%2F) are not removed. - - Example: `http://example.org//foo///bar.html` → `http://example.org/foo/bar.html` - -- `UriNormalizer::SORT_QUERY_PARAMETERS` - - Sort query parameters with their values in alphabetical order. However, the order of parameters in a URI may be - significant (this is not defined by the standard). So this normalization is not safe and may change the semantics - of the URI. - - Example: `?lang=en&article=fred` → `?article=fred&lang=en` - -### `GuzzleHttp\Psr7\UriNormalizer::isEquivalent` - -`public static function isEquivalent(UriInterface $uri1, UriInterface $uri2, $normalizations = self::PRESERVING_NORMALIZATIONS): bool` - -Whether two URIs can be considered equivalent. Both URIs are normalized automatically before comparison with the given -`$normalizations` bitmask. The method also accepts relative URI references and returns true when they are equivalent. -This of course assumes they will be resolved against the same base URI. If this is not the case, determination of -equivalence or difference of relative references does not mean anything. - - -## Security - -If you discover a security vulnerability within this package, please send an email to security@tidelift.com. All security vulnerabilities will be promptly addressed. Please do not disclose security-related issues publicly until a fix has been announced. Please see [Security Policy](https://github.com/guzzle/psr7/security/policy) for more information. - - -## License - -Guzzle is made available under the MIT License (MIT). Please see [License File](LICENSE) for more information. - - -## For Enterprise - -Available as part of the Tidelift Subscription - -The maintainers of Guzzle and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/packagist-guzzlehttp-psr7?utm_source=packagist-guzzlehttp-psr7&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) diff --git a/vendor/guzzlehttp/psr7/composer.json b/vendor/guzzlehttp/psr7/composer.json deleted file mode 100644 index 28d15f5..0000000 --- a/vendor/guzzlehttp/psr7/composer.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "name": "guzzlehttp/psr7", - "description": "PSR-7 message implementation that also provides common utility methods", - "keywords": [ - "request", - "response", - "message", - "stream", - "http", - "uri", - "url", - "psr-7" - ], - "license": "MIT", - "authors": [ - { - "name": "Graham Campbell", - "email": "hello@gjcampbell.co.uk", - "homepage": "https://github.com/GrahamCampbell" - }, - { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com", - "homepage": "https://github.com/mtdowling" - }, - { - "name": "George Mponos", - "email": "gmponos@gmail.com", - "homepage": "https://github.com/gmponos" - }, - { - "name": "Tobias Nyholm", - "email": "tobias.nyholm@gmail.com", - "homepage": "https://github.com/Nyholm" - }, - { - "name": "Márk Sági-Kazár", - "email": "mark.sagikazar@gmail.com", - "homepage": "https://github.com/sagikazarmark" - }, - { - "name": "Tobias Schultze", - "email": "webmaster@tubo-world.de", - "homepage": "https://github.com/Tobion" - }, - { - "name": "Márk Sági-Kazár", - "email": "mark.sagikazar@gmail.com", - "homepage": "https://sagikazarmark.hu" - } - ], - "require": { - "php": "^7.2.5 || ^8.0", - "psr/http-factory": "^1.0", - "psr/http-message": "^1.1 || ^2.0", - "ralouphie/getallheaders": "^3.0" - }, - "provide": { - "psr/http-factory-implementation": "1.0", - "psr/http-message-implementation": "1.0" - }, - "require-dev": { - "bamarni/composer-bin-plugin": "^1.8.2", - "http-interop/http-factory-tests": "0.9.0", - "phpunit/phpunit": "^8.5.39 || ^9.6.20" - }, - "suggest": { - "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" - }, - "autoload": { - "psr-4": { - "GuzzleHttp\\Psr7\\": "src/" - } - }, - "autoload-dev": { - "psr-4": { - "GuzzleHttp\\Tests\\Psr7\\": "tests/" - } - }, - "extra": { - "bamarni-bin": { - "bin-links": true, - "forward-command": false - } - }, - "config": { - "allow-plugins": { - "bamarni/composer-bin-plugin": true - }, - "preferred-install": "dist", - "sort-packages": true - } -} diff --git a/vendor/guzzlehttp/psr7/src/AppendStream.php b/vendor/guzzlehttp/psr7/src/AppendStream.php deleted file mode 100644 index ee8f378..0000000 --- a/vendor/guzzlehttp/psr7/src/AppendStream.php +++ /dev/null @@ -1,248 +0,0 @@ -addStream($stream); - } - } - - public function __toString(): string - { - try { - $this->rewind(); - - return $this->getContents(); - } catch (\Throwable $e) { - if (\PHP_VERSION_ID >= 70400) { - throw $e; - } - trigger_error(sprintf('%s::__toString exception: %s', self::class, (string) $e), E_USER_ERROR); - - return ''; - } - } - - /** - * Add a stream to the AppendStream - * - * @param StreamInterface $stream Stream to append. Must be readable. - * - * @throws \InvalidArgumentException if the stream is not readable - */ - public function addStream(StreamInterface $stream): void - { - if (!$stream->isReadable()) { - throw new \InvalidArgumentException('Each stream must be readable'); - } - - // The stream is only seekable if all streams are seekable - if (!$stream->isSeekable()) { - $this->seekable = false; - } - - $this->streams[] = $stream; - } - - public function getContents(): string - { - return Utils::copyToString($this); - } - - /** - * Closes each attached stream. - */ - public function close(): void - { - $this->pos = $this->current = 0; - $this->seekable = true; - - foreach ($this->streams as $stream) { - $stream->close(); - } - - $this->streams = []; - } - - /** - * Detaches each attached stream. - * - * Returns null as it's not clear which underlying stream resource to return. - */ - public function detach() - { - $this->pos = $this->current = 0; - $this->seekable = true; - - foreach ($this->streams as $stream) { - $stream->detach(); - } - - $this->streams = []; - - return null; - } - - public function tell(): int - { - return $this->pos; - } - - /** - * Tries to calculate the size by adding the size of each stream. - * - * If any of the streams do not return a valid number, then the size of the - * append stream cannot be determined and null is returned. - */ - public function getSize(): ?int - { - $size = 0; - - foreach ($this->streams as $stream) { - $s = $stream->getSize(); - if ($s === null) { - return null; - } - $size += $s; - } - - return $size; - } - - public function eof(): bool - { - return !$this->streams - || ($this->current >= count($this->streams) - 1 - && $this->streams[$this->current]->eof()); - } - - public function rewind(): void - { - $this->seek(0); - } - - /** - * Attempts to seek to the given position. Only supports SEEK_SET. - */ - public function seek($offset, $whence = SEEK_SET): void - { - if (!$this->seekable) { - throw new \RuntimeException('This AppendStream is not seekable'); - } elseif ($whence !== SEEK_SET) { - throw new \RuntimeException('The AppendStream can only seek with SEEK_SET'); - } - - $this->pos = $this->current = 0; - - // Rewind each stream - foreach ($this->streams as $i => $stream) { - try { - $stream->rewind(); - } catch (\Exception $e) { - throw new \RuntimeException('Unable to seek stream ' - .$i.' of the AppendStream', 0, $e); - } - } - - // Seek to the actual position by reading from each stream - while ($this->pos < $offset && !$this->eof()) { - $result = $this->read(min(8096, $offset - $this->pos)); - if ($result === '') { - break; - } - } - } - - /** - * Reads from all of the appended streams until the length is met or EOF. - */ - public function read($length): string - { - $buffer = ''; - $total = count($this->streams) - 1; - $remaining = $length; - $progressToNext = false; - - while ($remaining > 0) { - // Progress to the next stream if needed. - if ($progressToNext || $this->streams[$this->current]->eof()) { - $progressToNext = false; - if ($this->current === $total) { - break; - } - ++$this->current; - } - - $result = $this->streams[$this->current]->read($remaining); - - if ($result === '') { - $progressToNext = true; - continue; - } - - $buffer .= $result; - $remaining = $length - strlen($buffer); - } - - $this->pos += strlen($buffer); - - return $buffer; - } - - public function isReadable(): bool - { - return true; - } - - public function isWritable(): bool - { - return false; - } - - public function isSeekable(): bool - { - return $this->seekable; - } - - public function write($string): int - { - throw new \RuntimeException('Cannot write to an AppendStream'); - } - - /** - * @return mixed - */ - public function getMetadata($key = null) - { - return $key ? null : []; - } -} diff --git a/vendor/guzzlehttp/psr7/src/BufferStream.php b/vendor/guzzlehttp/psr7/src/BufferStream.php deleted file mode 100644 index 2b0eb77..0000000 --- a/vendor/guzzlehttp/psr7/src/BufferStream.php +++ /dev/null @@ -1,147 +0,0 @@ -hwm = $hwm; - } - - public function __toString(): string - { - return $this->getContents(); - } - - public function getContents(): string - { - $buffer = $this->buffer; - $this->buffer = ''; - - return $buffer; - } - - public function close(): void - { - $this->buffer = ''; - } - - public function detach() - { - $this->close(); - - return null; - } - - public function getSize(): ?int - { - return strlen($this->buffer); - } - - public function isReadable(): bool - { - return true; - } - - public function isWritable(): bool - { - return true; - } - - public function isSeekable(): bool - { - return false; - } - - public function rewind(): void - { - $this->seek(0); - } - - public function seek($offset, $whence = SEEK_SET): void - { - throw new \RuntimeException('Cannot seek a BufferStream'); - } - - public function eof(): bool - { - return strlen($this->buffer) === 0; - } - - public function tell(): int - { - throw new \RuntimeException('Cannot determine the position of a BufferStream'); - } - - /** - * Reads data from the buffer. - */ - public function read($length): string - { - $currentLength = strlen($this->buffer); - - if ($length >= $currentLength) { - // No need to slice the buffer because we don't have enough data. - $result = $this->buffer; - $this->buffer = ''; - } else { - // Slice up the result to provide a subset of the buffer. - $result = substr($this->buffer, 0, $length); - $this->buffer = substr($this->buffer, $length); - } - - return $result; - } - - /** - * Writes data to the buffer. - */ - public function write($string): int - { - $this->buffer .= $string; - - if (strlen($this->buffer) >= $this->hwm) { - return 0; - } - - return strlen($string); - } - - /** - * @return mixed - */ - public function getMetadata($key = null) - { - if ($key === 'hwm') { - return $this->hwm; - } - - return $key ? null : []; - } -} diff --git a/vendor/guzzlehttp/psr7/src/CachingStream.php b/vendor/guzzlehttp/psr7/src/CachingStream.php deleted file mode 100644 index 7e4554d..0000000 --- a/vendor/guzzlehttp/psr7/src/CachingStream.php +++ /dev/null @@ -1,153 +0,0 @@ -remoteStream = $stream; - $this->stream = $target ?: new Stream(Utils::tryFopen('php://temp', 'r+')); - } - - public function getSize(): ?int - { - $remoteSize = $this->remoteStream->getSize(); - - if (null === $remoteSize) { - return null; - } - - return max($this->stream->getSize(), $remoteSize); - } - - public function rewind(): void - { - $this->seek(0); - } - - public function seek($offset, $whence = SEEK_SET): void - { - if ($whence === SEEK_SET) { - $byte = $offset; - } elseif ($whence === SEEK_CUR) { - $byte = $offset + $this->tell(); - } elseif ($whence === SEEK_END) { - $size = $this->remoteStream->getSize(); - if ($size === null) { - $size = $this->cacheEntireStream(); - } - $byte = $size + $offset; - } else { - throw new \InvalidArgumentException('Invalid whence'); - } - - $diff = $byte - $this->stream->getSize(); - - if ($diff > 0) { - // Read the remoteStream until we have read in at least the amount - // of bytes requested, or we reach the end of the file. - while ($diff > 0 && !$this->remoteStream->eof()) { - $this->read($diff); - $diff = $byte - $this->stream->getSize(); - } - } else { - // We can just do a normal seek since we've already seen this byte. - $this->stream->seek($byte); - } - } - - public function read($length): string - { - // Perform a regular read on any previously read data from the buffer - $data = $this->stream->read($length); - $remaining = $length - strlen($data); - - // More data was requested so read from the remote stream - if ($remaining) { - // If data was written to the buffer in a position that would have - // been filled from the remote stream, then we must skip bytes on - // the remote stream to emulate overwriting bytes from that - // position. This mimics the behavior of other PHP stream wrappers. - $remoteData = $this->remoteStream->read( - $remaining + $this->skipReadBytes - ); - - if ($this->skipReadBytes) { - $len = strlen($remoteData); - $remoteData = substr($remoteData, $this->skipReadBytes); - $this->skipReadBytes = max(0, $this->skipReadBytes - $len); - } - - $data .= $remoteData; - $this->stream->write($remoteData); - } - - return $data; - } - - public function write($string): int - { - // When appending to the end of the currently read stream, you'll want - // to skip bytes from being read from the remote stream to emulate - // other stream wrappers. Basically replacing bytes of data of a fixed - // length. - $overflow = (strlen($string) + $this->tell()) - $this->remoteStream->tell(); - if ($overflow > 0) { - $this->skipReadBytes += $overflow; - } - - return $this->stream->write($string); - } - - public function eof(): bool - { - return $this->stream->eof() && $this->remoteStream->eof(); - } - - /** - * Close both the remote stream and buffer stream - */ - public function close(): void - { - $this->remoteStream->close(); - $this->stream->close(); - } - - private function cacheEntireStream(): int - { - $target = new FnStream(['write' => 'strlen']); - Utils::copyToStream($this, $target); - - return $this->tell(); - } -} diff --git a/vendor/guzzlehttp/psr7/src/DroppingStream.php b/vendor/guzzlehttp/psr7/src/DroppingStream.php deleted file mode 100644 index 6e3d209..0000000 --- a/vendor/guzzlehttp/psr7/src/DroppingStream.php +++ /dev/null @@ -1,49 +0,0 @@ -stream = $stream; - $this->maxLength = $maxLength; - } - - public function write($string): int - { - $diff = $this->maxLength - $this->stream->getSize(); - - // Begin returning 0 when the underlying stream is too large. - if ($diff <= 0) { - return 0; - } - - // Write the stream or a subset of the stream if needed. - if (strlen($string) < $diff) { - return $this->stream->write($string); - } - - return $this->stream->write(substr($string, 0, $diff)); - } -} diff --git a/vendor/guzzlehttp/psr7/src/Exception/MalformedUriException.php b/vendor/guzzlehttp/psr7/src/Exception/MalformedUriException.php deleted file mode 100644 index 3a08477..0000000 --- a/vendor/guzzlehttp/psr7/src/Exception/MalformedUriException.php +++ /dev/null @@ -1,14 +0,0 @@ - */ - private $methods; - - /** - * @param array $methods Hash of method name to a callable. - */ - public function __construct(array $methods) - { - $this->methods = $methods; - - // Create the functions on the class - foreach ($methods as $name => $fn) { - $this->{'_fn_'.$name} = $fn; - } - } - - /** - * Lazily determine which methods are not implemented. - * - * @throws \BadMethodCallException - */ - public function __get(string $name): void - { - throw new \BadMethodCallException(str_replace('_fn_', '', $name) - .'() is not implemented in the FnStream'); - } - - /** - * The close method is called on the underlying stream only if possible. - */ - public function __destruct() - { - if (isset($this->_fn_close)) { - ($this->_fn_close)(); - } - } - - /** - * An unserialize would allow the __destruct to run when the unserialized value goes out of scope. - * - * @throws \LogicException - */ - public function __wakeup(): void - { - throw new \LogicException('FnStream should never be unserialized'); - } - - /** - * Adds custom functionality to an underlying stream by intercepting - * specific method calls. - * - * @param StreamInterface $stream Stream to decorate - * @param array $methods Hash of method name to a closure - * - * @return FnStream - */ - public static function decorate(StreamInterface $stream, array $methods) - { - // If any of the required methods were not provided, then simply - // proxy to the decorated stream. - foreach (array_diff(self::SLOTS, array_keys($methods)) as $diff) { - /** @var callable $callable */ - $callable = [$stream, $diff]; - $methods[$diff] = $callable; - } - - return new self($methods); - } - - public function __toString(): string - { - try { - /** @var string */ - return ($this->_fn___toString)(); - } catch (\Throwable $e) { - if (\PHP_VERSION_ID >= 70400) { - throw $e; - } - trigger_error(sprintf('%s::__toString exception: %s', self::class, (string) $e), E_USER_ERROR); - - return ''; - } - } - - public function close(): void - { - ($this->_fn_close)(); - } - - public function detach() - { - return ($this->_fn_detach)(); - } - - public function getSize(): ?int - { - return ($this->_fn_getSize)(); - } - - public function tell(): int - { - return ($this->_fn_tell)(); - } - - public function eof(): bool - { - return ($this->_fn_eof)(); - } - - public function isSeekable(): bool - { - return ($this->_fn_isSeekable)(); - } - - public function rewind(): void - { - ($this->_fn_rewind)(); - } - - public function seek($offset, $whence = SEEK_SET): void - { - ($this->_fn_seek)($offset, $whence); - } - - public function isWritable(): bool - { - return ($this->_fn_isWritable)(); - } - - public function write($string): int - { - return ($this->_fn_write)($string); - } - - public function isReadable(): bool - { - return ($this->_fn_isReadable)(); - } - - public function read($length): string - { - return ($this->_fn_read)($length); - } - - public function getContents(): string - { - return ($this->_fn_getContents)(); - } - - /** - * @return mixed - */ - public function getMetadata($key = null) - { - return ($this->_fn_getMetadata)($key); - } -} diff --git a/vendor/guzzlehttp/psr7/src/Header.php b/vendor/guzzlehttp/psr7/src/Header.php deleted file mode 100644 index bbce8b0..0000000 --- a/vendor/guzzlehttp/psr7/src/Header.php +++ /dev/null @@ -1,134 +0,0 @@ -]+>|[^=]+/', $kvp, $matches)) { - $m = $matches[0]; - if (isset($m[1])) { - $part[trim($m[0], $trimmed)] = trim($m[1], $trimmed); - } else { - $part[] = trim($m[0], $trimmed); - } - } - } - if ($part) { - $params[] = $part; - } - } - } - - return $params; - } - - /** - * Converts an array of header values that may contain comma separated - * headers into an array of headers with no comma separated values. - * - * @param string|array $header Header to normalize. - * - * @deprecated Use self::splitList() instead. - */ - public static function normalize($header): array - { - $result = []; - foreach ((array) $header as $value) { - foreach (self::splitList($value) as $parsed) { - $result[] = $parsed; - } - } - - return $result; - } - - /** - * Splits a HTTP header defined to contain a comma-separated list into - * each individual value. Empty values will be removed. - * - * Example headers include 'accept', 'cache-control' and 'if-none-match'. - * - * This method must not be used to parse headers that are not defined as - * a list, such as 'user-agent' or 'set-cookie'. - * - * @param string|string[] $values Header value as returned by MessageInterface::getHeader() - * - * @return string[] - */ - public static function splitList($values): array - { - if (!\is_array($values)) { - $values = [$values]; - } - - $result = []; - foreach ($values as $value) { - if (!\is_string($value)) { - throw new \TypeError('$header must either be a string or an array containing strings.'); - } - - $v = ''; - $isQuoted = false; - $isEscaped = false; - for ($i = 0, $max = \strlen($value); $i < $max; ++$i) { - if ($isEscaped) { - $v .= $value[$i]; - $isEscaped = false; - - continue; - } - - if (!$isQuoted && $value[$i] === ',') { - $v = \trim($v); - if ($v !== '') { - $result[] = $v; - } - - $v = ''; - continue; - } - - if ($isQuoted && $value[$i] === '\\') { - $isEscaped = true; - $v .= $value[$i]; - - continue; - } - if ($value[$i] === '"') { - $isQuoted = !$isQuoted; - $v .= $value[$i]; - - continue; - } - - $v .= $value[$i]; - } - - $v = \trim($v); - if ($v !== '') { - $result[] = $v; - } - } - - return $result; - } -} diff --git a/vendor/guzzlehttp/psr7/src/HttpFactory.php b/vendor/guzzlehttp/psr7/src/HttpFactory.php deleted file mode 100644 index 3ef1510..0000000 --- a/vendor/guzzlehttp/psr7/src/HttpFactory.php +++ /dev/null @@ -1,94 +0,0 @@ -getSize(); - } - - return new UploadedFile($stream, $size, $error, $clientFilename, $clientMediaType); - } - - public function createStream(string $content = ''): StreamInterface - { - return Utils::streamFor($content); - } - - public function createStreamFromFile(string $file, string $mode = 'r'): StreamInterface - { - try { - $resource = Utils::tryFopen($file, $mode); - } catch (\RuntimeException $e) { - if ('' === $mode || false === \in_array($mode[0], ['r', 'w', 'a', 'x', 'c'], true)) { - throw new \InvalidArgumentException(sprintf('Invalid file opening mode "%s"', $mode), 0, $e); - } - - throw $e; - } - - return Utils::streamFor($resource); - } - - public function createStreamFromResource($resource): StreamInterface - { - return Utils::streamFor($resource); - } - - public function createServerRequest(string $method, $uri, array $serverParams = []): ServerRequestInterface - { - if (empty($method)) { - if (!empty($serverParams['REQUEST_METHOD'])) { - $method = $serverParams['REQUEST_METHOD']; - } else { - throw new \InvalidArgumentException('Cannot determine HTTP method'); - } - } - - return new ServerRequest($method, $uri, [], null, '1.1', $serverParams); - } - - public function createResponse(int $code = 200, string $reasonPhrase = ''): ResponseInterface - { - return new Response($code, [], null, '1.1', $reasonPhrase); - } - - public function createRequest(string $method, $uri): RequestInterface - { - return new Request($method, $uri); - } - - public function createUri(string $uri = ''): UriInterface - { - return new Uri($uri); - } -} diff --git a/vendor/guzzlehttp/psr7/src/InflateStream.php b/vendor/guzzlehttp/psr7/src/InflateStream.php deleted file mode 100644 index e674c9a..0000000 --- a/vendor/guzzlehttp/psr7/src/InflateStream.php +++ /dev/null @@ -1,37 +0,0 @@ - 15 + 32]); - $this->stream = $stream->isSeekable() ? new Stream($resource) : new NoSeekStream(new Stream($resource)); - } -} diff --git a/vendor/guzzlehttp/psr7/src/LazyOpenStream.php b/vendor/guzzlehttp/psr7/src/LazyOpenStream.php deleted file mode 100644 index f6c8490..0000000 --- a/vendor/guzzlehttp/psr7/src/LazyOpenStream.php +++ /dev/null @@ -1,49 +0,0 @@ -filename = $filename; - $this->mode = $mode; - - // unsetting the property forces the first access to go through - // __get(). - unset($this->stream); - } - - /** - * Creates the underlying stream lazily when required. - */ - protected function createStream(): StreamInterface - { - return Utils::streamFor(Utils::tryFopen($this->filename, $this->mode)); - } -} diff --git a/vendor/guzzlehttp/psr7/src/LimitStream.php b/vendor/guzzlehttp/psr7/src/LimitStream.php deleted file mode 100644 index fb22325..0000000 --- a/vendor/guzzlehttp/psr7/src/LimitStream.php +++ /dev/null @@ -1,157 +0,0 @@ -stream = $stream; - $this->setLimit($limit); - $this->setOffset($offset); - } - - public function eof(): bool - { - // Always return true if the underlying stream is EOF - if ($this->stream->eof()) { - return true; - } - - // No limit and the underlying stream is not at EOF - if ($this->limit === -1) { - return false; - } - - return $this->stream->tell() >= $this->offset + $this->limit; - } - - /** - * Returns the size of the limited subset of data - */ - public function getSize(): ?int - { - if (null === ($length = $this->stream->getSize())) { - return null; - } elseif ($this->limit === -1) { - return $length - $this->offset; - } else { - return min($this->limit, $length - $this->offset); - } - } - - /** - * Allow for a bounded seek on the read limited stream - */ - public function seek($offset, $whence = SEEK_SET): void - { - if ($whence !== SEEK_SET || $offset < 0) { - throw new \RuntimeException(sprintf( - 'Cannot seek to offset %s with whence %s', - $offset, - $whence - )); - } - - $offset += $this->offset; - - if ($this->limit !== -1) { - if ($offset > $this->offset + $this->limit) { - $offset = $this->offset + $this->limit; - } - } - - $this->stream->seek($offset); - } - - /** - * Give a relative tell() - */ - public function tell(): int - { - return $this->stream->tell() - $this->offset; - } - - /** - * Set the offset to start limiting from - * - * @param int $offset Offset to seek to and begin byte limiting from - * - * @throws \RuntimeException if the stream cannot be seeked. - */ - public function setOffset(int $offset): void - { - $current = $this->stream->tell(); - - if ($current !== $offset) { - // If the stream cannot seek to the offset position, then read to it - if ($this->stream->isSeekable()) { - $this->stream->seek($offset); - } elseif ($current > $offset) { - throw new \RuntimeException("Could not seek to stream offset $offset"); - } else { - $this->stream->read($offset - $current); - } - } - - $this->offset = $offset; - } - - /** - * Set the limit of bytes that the decorator allows to be read from the - * stream. - * - * @param int $limit Number of bytes to allow to be read from the stream. - * Use -1 for no limit. - */ - public function setLimit(int $limit): void - { - $this->limit = $limit; - } - - public function read($length): string - { - if ($this->limit === -1) { - return $this->stream->read($length); - } - - // Check if the current position is less than the total allowed - // bytes + original offset - $remaining = ($this->offset + $this->limit) - $this->stream->tell(); - if ($remaining > 0) { - // Only return the amount of requested data, ensuring that the byte - // limit is not exceeded - return $this->stream->read(min($remaining, $length)); - } - - return ''; - } -} diff --git a/vendor/guzzlehttp/psr7/src/Message.php b/vendor/guzzlehttp/psr7/src/Message.php deleted file mode 100644 index 5561a51..0000000 --- a/vendor/guzzlehttp/psr7/src/Message.php +++ /dev/null @@ -1,246 +0,0 @@ -getMethod().' ' - .$message->getRequestTarget()) - .' HTTP/'.$message->getProtocolVersion(); - if (!$message->hasHeader('host')) { - $msg .= "\r\nHost: ".$message->getUri()->getHost(); - } - } elseif ($message instanceof ResponseInterface) { - $msg = 'HTTP/'.$message->getProtocolVersion().' ' - .$message->getStatusCode().' ' - .$message->getReasonPhrase(); - } else { - throw new \InvalidArgumentException('Unknown message type'); - } - - foreach ($message->getHeaders() as $name => $values) { - if (is_string($name) && strtolower($name) === 'set-cookie') { - foreach ($values as $value) { - $msg .= "\r\n{$name}: ".$value; - } - } else { - $msg .= "\r\n{$name}: ".implode(', ', $values); - } - } - - return "{$msg}\r\n\r\n".$message->getBody(); - } - - /** - * Get a short summary of the message body. - * - * Will return `null` if the response is not printable. - * - * @param MessageInterface $message The message to get the body summary - * @param int $truncateAt The maximum allowed size of the summary - */ - public static function bodySummary(MessageInterface $message, int $truncateAt = 120): ?string - { - $body = $message->getBody(); - - if (!$body->isSeekable() || !$body->isReadable()) { - return null; - } - - $size = $body->getSize(); - - if ($size === 0) { - return null; - } - - $body->rewind(); - $summary = $body->read($truncateAt); - $body->rewind(); - - if ($size > $truncateAt) { - $summary .= ' (truncated...)'; - } - - // Matches any printable character, including unicode characters: - // letters, marks, numbers, punctuation, spacing, and separators. - if (preg_match('/[^\pL\pM\pN\pP\pS\pZ\n\r\t]/u', $summary) !== 0) { - return null; - } - - return $summary; - } - - /** - * Attempts to rewind a message body and throws an exception on failure. - * - * The body of the message will only be rewound if a call to `tell()` - * returns a value other than `0`. - * - * @param MessageInterface $message Message to rewind - * - * @throws \RuntimeException - */ - public static function rewindBody(MessageInterface $message): void - { - $body = $message->getBody(); - - if ($body->tell()) { - $body->rewind(); - } - } - - /** - * Parses an HTTP message into an associative array. - * - * The array contains the "start-line" key containing the start line of - * the message, "headers" key containing an associative array of header - * array values, and a "body" key containing the body of the message. - * - * @param string $message HTTP request or response to parse. - */ - public static function parseMessage(string $message): array - { - if (!$message) { - throw new \InvalidArgumentException('Invalid message'); - } - - $message = ltrim($message, "\r\n"); - - $messageParts = preg_split("/\r?\n\r?\n/", $message, 2); - - if ($messageParts === false || count($messageParts) !== 2) { - throw new \InvalidArgumentException('Invalid message: Missing header delimiter'); - } - - [$rawHeaders, $body] = $messageParts; - $rawHeaders .= "\r\n"; // Put back the delimiter we split previously - $headerParts = preg_split("/\r?\n/", $rawHeaders, 2); - - if ($headerParts === false || count($headerParts) !== 2) { - throw new \InvalidArgumentException('Invalid message: Missing status line'); - } - - [$startLine, $rawHeaders] = $headerParts; - - if (preg_match("/(?:^HTTP\/|^[A-Z]+ \S+ HTTP\/)(\d+(?:\.\d+)?)/i", $startLine, $matches) && $matches[1] === '1.0') { - // Header folding is deprecated for HTTP/1.1, but allowed in HTTP/1.0 - $rawHeaders = preg_replace(Rfc7230::HEADER_FOLD_REGEX, ' ', $rawHeaders); - } - - /** @var array[] $headerLines */ - $count = preg_match_all(Rfc7230::HEADER_REGEX, $rawHeaders, $headerLines, PREG_SET_ORDER); - - // If these aren't the same, then one line didn't match and there's an invalid header. - if ($count !== substr_count($rawHeaders, "\n")) { - // Folding is deprecated, see https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.4 - if (preg_match(Rfc7230::HEADER_FOLD_REGEX, $rawHeaders)) { - throw new \InvalidArgumentException('Invalid header syntax: Obsolete line folding'); - } - - throw new \InvalidArgumentException('Invalid header syntax'); - } - - $headers = []; - - foreach ($headerLines as $headerLine) { - $headers[$headerLine[1]][] = $headerLine[2]; - } - - return [ - 'start-line' => $startLine, - 'headers' => $headers, - 'body' => $body, - ]; - } - - /** - * Constructs a URI for an HTTP request message. - * - * @param string $path Path from the start-line - * @param array $headers Array of headers (each value an array). - */ - public static function parseRequestUri(string $path, array $headers): string - { - $hostKey = array_filter(array_keys($headers), function ($k) { - // Numeric array keys are converted to int by PHP. - $k = (string) $k; - - return strtolower($k) === 'host'; - }); - - // If no host is found, then a full URI cannot be constructed. - if (!$hostKey) { - return $path; - } - - $host = $headers[reset($hostKey)][0]; - $scheme = substr($host, -4) === ':443' ? 'https' : 'http'; - - return $scheme.'://'.$host.'/'.ltrim($path, '/'); - } - - /** - * Parses a request message string into a request object. - * - * @param string $message Request message string. - */ - public static function parseRequest(string $message): RequestInterface - { - $data = self::parseMessage($message); - $matches = []; - if (!preg_match('/^[\S]+\s+([a-zA-Z]+:\/\/|\/).*/', $data['start-line'], $matches)) { - throw new \InvalidArgumentException('Invalid request string'); - } - $parts = explode(' ', $data['start-line'], 3); - $version = isset($parts[2]) ? explode('/', $parts[2])[1] : '1.1'; - - $request = new Request( - $parts[0], - $matches[1] === '/' ? self::parseRequestUri($parts[1], $data['headers']) : $parts[1], - $data['headers'], - $data['body'], - $version - ); - - return $matches[1] === '/' ? $request : $request->withRequestTarget($parts[1]); - } - - /** - * Parses a response message string into a response object. - * - * @param string $message Response message string. - */ - public static function parseResponse(string $message): ResponseInterface - { - $data = self::parseMessage($message); - // According to https://datatracker.ietf.org/doc/html/rfc7230#section-3.1.2 - // the space between status-code and reason-phrase is required. But - // browsers accept responses without space and reason as well. - if (!preg_match('/^HTTP\/.* [0-9]{3}( .*|$)/', $data['start-line'])) { - throw new \InvalidArgumentException('Invalid response string: '.$data['start-line']); - } - $parts = explode(' ', $data['start-line'], 3); - - return new Response( - (int) $parts[1], - $data['headers'], - $data['body'], - explode('/', $parts[0])[1], - $parts[2] ?? null - ); - } -} diff --git a/vendor/guzzlehttp/psr7/src/MessageTrait.php b/vendor/guzzlehttp/psr7/src/MessageTrait.php deleted file mode 100644 index 65dbc4b..0000000 --- a/vendor/guzzlehttp/psr7/src/MessageTrait.php +++ /dev/null @@ -1,265 +0,0 @@ - array of values */ - private $headers = []; - - /** @var string[] Map of lowercase header name => original name at registration */ - private $headerNames = []; - - /** @var string */ - private $protocol = '1.1'; - - /** @var StreamInterface|null */ - private $stream; - - public function getProtocolVersion(): string - { - return $this->protocol; - } - - public function withProtocolVersion($version): MessageInterface - { - if ($this->protocol === $version) { - return $this; - } - - $new = clone $this; - $new->protocol = $version; - - return $new; - } - - public function getHeaders(): array - { - return $this->headers; - } - - public function hasHeader($header): bool - { - return isset($this->headerNames[strtolower($header)]); - } - - public function getHeader($header): array - { - $header = strtolower($header); - - if (!isset($this->headerNames[$header])) { - return []; - } - - $header = $this->headerNames[$header]; - - return $this->headers[$header]; - } - - public function getHeaderLine($header): string - { - return implode(', ', $this->getHeader($header)); - } - - public function withHeader($header, $value): MessageInterface - { - $this->assertHeader($header); - $value = $this->normalizeHeaderValue($value); - $normalized = strtolower($header); - - $new = clone $this; - if (isset($new->headerNames[$normalized])) { - unset($new->headers[$new->headerNames[$normalized]]); - } - $new->headerNames[$normalized] = $header; - $new->headers[$header] = $value; - - return $new; - } - - public function withAddedHeader($header, $value): MessageInterface - { - $this->assertHeader($header); - $value = $this->normalizeHeaderValue($value); - $normalized = strtolower($header); - - $new = clone $this; - if (isset($new->headerNames[$normalized])) { - $header = $this->headerNames[$normalized]; - $new->headers[$header] = array_merge($this->headers[$header], $value); - } else { - $new->headerNames[$normalized] = $header; - $new->headers[$header] = $value; - } - - return $new; - } - - public function withoutHeader($header): MessageInterface - { - $normalized = strtolower($header); - - if (!isset($this->headerNames[$normalized])) { - return $this; - } - - $header = $this->headerNames[$normalized]; - - $new = clone $this; - unset($new->headers[$header], $new->headerNames[$normalized]); - - return $new; - } - - public function getBody(): StreamInterface - { - if (!$this->stream) { - $this->stream = Utils::streamFor(''); - } - - return $this->stream; - } - - public function withBody(StreamInterface $body): MessageInterface - { - if ($body === $this->stream) { - return $this; - } - - $new = clone $this; - $new->stream = $body; - - return $new; - } - - /** - * @param (string|string[])[] $headers - */ - private function setHeaders(array $headers): void - { - $this->headerNames = $this->headers = []; - foreach ($headers as $header => $value) { - // Numeric array keys are converted to int by PHP. - $header = (string) $header; - - $this->assertHeader($header); - $value = $this->normalizeHeaderValue($value); - $normalized = strtolower($header); - if (isset($this->headerNames[$normalized])) { - $header = $this->headerNames[$normalized]; - $this->headers[$header] = array_merge($this->headers[$header], $value); - } else { - $this->headerNames[$normalized] = $header; - $this->headers[$header] = $value; - } - } - } - - /** - * @param mixed $value - * - * @return string[] - */ - private function normalizeHeaderValue($value): array - { - if (!is_array($value)) { - return $this->trimAndValidateHeaderValues([$value]); - } - - if (count($value) === 0) { - throw new \InvalidArgumentException('Header value can not be an empty array.'); - } - - return $this->trimAndValidateHeaderValues($value); - } - - /** - * Trims whitespace from the header values. - * - * Spaces and tabs ought to be excluded by parsers when extracting the field value from a header field. - * - * header-field = field-name ":" OWS field-value OWS - * OWS = *( SP / HTAB ) - * - * @param mixed[] $values Header values - * - * @return string[] Trimmed header values - * - * @see https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.4 - */ - private function trimAndValidateHeaderValues(array $values): array - { - return array_map(function ($value) { - if (!is_scalar($value) && null !== $value) { - throw new \InvalidArgumentException(sprintf( - 'Header value must be scalar or null but %s provided.', - is_object($value) ? get_class($value) : gettype($value) - )); - } - - $trimmed = trim((string) $value, " \t"); - $this->assertValue($trimmed); - - return $trimmed; - }, array_values($values)); - } - - /** - * @see https://datatracker.ietf.org/doc/html/rfc7230#section-3.2 - * - * @param mixed $header - */ - private function assertHeader($header): void - { - if (!is_string($header)) { - throw new \InvalidArgumentException(sprintf( - 'Header name must be a string but %s provided.', - is_object($header) ? get_class($header) : gettype($header) - )); - } - - if (!preg_match('/^[a-zA-Z0-9\'`#$%&*+.^_|~!-]+$/D', $header)) { - throw new \InvalidArgumentException( - sprintf('"%s" is not valid header name.', $header) - ); - } - } - - /** - * @see https://datatracker.ietf.org/doc/html/rfc7230#section-3.2 - * - * field-value = *( field-content / obs-fold ) - * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ] - * field-vchar = VCHAR / obs-text - * VCHAR = %x21-7E - * obs-text = %x80-FF - * obs-fold = CRLF 1*( SP / HTAB ) - */ - private function assertValue(string $value): void - { - // The regular expression intentionally does not support the obs-fold production, because as - // per RFC 7230#3.2.4: - // - // A sender MUST NOT generate a message that includes - // line folding (i.e., that has any field-value that contains a match to - // the obs-fold rule) unless the message is intended for packaging - // within the message/http media type. - // - // Clients must not send a request with line folding and a server sending folded headers is - // likely very rare. Line folding is a fairly obscure feature of HTTP/1.1 and thus not accepting - // folding is not likely to break any legitimate use case. - if (!preg_match('/^[\x20\x09\x21-\x7E\x80-\xFF]*$/D', $value)) { - throw new \InvalidArgumentException( - sprintf('"%s" is not valid header value.', $value) - ); - } - } -} diff --git a/vendor/guzzlehttp/psr7/src/MimeType.php b/vendor/guzzlehttp/psr7/src/MimeType.php deleted file mode 100644 index b131bdb..0000000 --- a/vendor/guzzlehttp/psr7/src/MimeType.php +++ /dev/null @@ -1,1259 +0,0 @@ - 'application/vnd.1000minds.decision-model+xml', - '3dml' => 'text/vnd.in3d.3dml', - '3ds' => 'image/x-3ds', - '3g2' => 'video/3gpp2', - '3gp' => 'video/3gp', - '3gpp' => 'video/3gpp', - '3mf' => 'model/3mf', - '7z' => 'application/x-7z-compressed', - '7zip' => 'application/x-7z-compressed', - '123' => 'application/vnd.lotus-1-2-3', - 'aab' => 'application/x-authorware-bin', - 'aac' => 'audio/aac', - 'aam' => 'application/x-authorware-map', - 'aas' => 'application/x-authorware-seg', - 'abw' => 'application/x-abiword', - 'ac' => 'application/vnd.nokia.n-gage.ac+xml', - 'ac3' => 'audio/ac3', - 'acc' => 'application/vnd.americandynamics.acc', - 'ace' => 'application/x-ace-compressed', - 'acu' => 'application/vnd.acucobol', - 'acutc' => 'application/vnd.acucorp', - 'adp' => 'audio/adpcm', - 'adts' => 'audio/aac', - 'aep' => 'application/vnd.audiograph', - 'afm' => 'application/x-font-type1', - 'afp' => 'application/vnd.ibm.modcap', - 'age' => 'application/vnd.age', - 'ahead' => 'application/vnd.ahead.space', - 'ai' => 'application/pdf', - 'aif' => 'audio/x-aiff', - 'aifc' => 'audio/x-aiff', - 'aiff' => 'audio/x-aiff', - 'air' => 'application/vnd.adobe.air-application-installer-package+zip', - 'ait' => 'application/vnd.dvb.ait', - 'ami' => 'application/vnd.amiga.ami', - 'aml' => 'application/automationml-aml+xml', - 'amlx' => 'application/automationml-amlx+zip', - 'amr' => 'audio/amr', - 'apk' => 'application/vnd.android.package-archive', - 'apng' => 'image/apng', - 'appcache' => 'text/cache-manifest', - 'appinstaller' => 'application/appinstaller', - 'application' => 'application/x-ms-application', - 'appx' => 'application/appx', - 'appxbundle' => 'application/appxbundle', - 'apr' => 'application/vnd.lotus-approach', - 'arc' => 'application/x-freearc', - 'arj' => 'application/x-arj', - 'asc' => 'application/pgp-signature', - 'asf' => 'video/x-ms-asf', - 'asm' => 'text/x-asm', - 'aso' => 'application/vnd.accpac.simply.aso', - 'asx' => 'video/x-ms-asf', - 'atc' => 'application/vnd.acucorp', - 'atom' => 'application/atom+xml', - 'atomcat' => 'application/atomcat+xml', - 'atomdeleted' => 'application/atomdeleted+xml', - 'atomsvc' => 'application/atomsvc+xml', - 'atx' => 'application/vnd.antix.game-component', - 'au' => 'audio/x-au', - 'avci' => 'image/avci', - 'avcs' => 'image/avcs', - 'avi' => 'video/x-msvideo', - 'avif' => 'image/avif', - 'aw' => 'application/applixware', - 'azf' => 'application/vnd.airzip.filesecure.azf', - 'azs' => 'application/vnd.airzip.filesecure.azs', - 'azv' => 'image/vnd.airzip.accelerator.azv', - 'azw' => 'application/vnd.amazon.ebook', - 'b16' => 'image/vnd.pco.b16', - 'bat' => 'application/x-msdownload', - 'bcpio' => 'application/x-bcpio', - 'bdf' => 'application/x-font-bdf', - 'bdm' => 'application/vnd.syncml.dm+wbxml', - 'bdoc' => 'application/x-bdoc', - 'bed' => 'application/vnd.realvnc.bed', - 'bh2' => 'application/vnd.fujitsu.oasysprs', - 'bin' => 'application/octet-stream', - 'blb' => 'application/x-blorb', - 'blorb' => 'application/x-blorb', - 'bmi' => 'application/vnd.bmi', - 'bmml' => 'application/vnd.balsamiq.bmml+xml', - 'bmp' => 'image/bmp', - 'book' => 'application/vnd.framemaker', - 'box' => 'application/vnd.previewsystems.box', - 'boz' => 'application/x-bzip2', - 'bpk' => 'application/octet-stream', - 'bpmn' => 'application/octet-stream', - 'bsp' => 'model/vnd.valve.source.compiled-map', - 'btf' => 'image/prs.btif', - 'btif' => 'image/prs.btif', - 'buffer' => 'application/octet-stream', - 'bz' => 'application/x-bzip', - 'bz2' => 'application/x-bzip2', - 'c' => 'text/x-c', - 'c4d' => 'application/vnd.clonk.c4group', - 'c4f' => 'application/vnd.clonk.c4group', - 'c4g' => 'application/vnd.clonk.c4group', - 'c4p' => 'application/vnd.clonk.c4group', - 'c4u' => 'application/vnd.clonk.c4group', - 'c11amc' => 'application/vnd.cluetrust.cartomobile-config', - 'c11amz' => 'application/vnd.cluetrust.cartomobile-config-pkg', - 'cab' => 'application/vnd.ms-cab-compressed', - 'caf' => 'audio/x-caf', - 'cap' => 'application/vnd.tcpdump.pcap', - 'car' => 'application/vnd.curl.car', - 'cat' => 'application/vnd.ms-pki.seccat', - 'cb7' => 'application/x-cbr', - 'cba' => 'application/x-cbr', - 'cbr' => 'application/x-cbr', - 'cbt' => 'application/x-cbr', - 'cbz' => 'application/x-cbr', - 'cc' => 'text/x-c', - 'cco' => 'application/x-cocoa', - 'cct' => 'application/x-director', - 'ccxml' => 'application/ccxml+xml', - 'cdbcmsg' => 'application/vnd.contact.cmsg', - 'cdf' => 'application/x-netcdf', - 'cdfx' => 'application/cdfx+xml', - 'cdkey' => 'application/vnd.mediastation.cdkey', - 'cdmia' => 'application/cdmi-capability', - 'cdmic' => 'application/cdmi-container', - 'cdmid' => 'application/cdmi-domain', - 'cdmio' => 'application/cdmi-object', - 'cdmiq' => 'application/cdmi-queue', - 'cdr' => 'application/cdr', - 'cdx' => 'chemical/x-cdx', - 'cdxml' => 'application/vnd.chemdraw+xml', - 'cdy' => 'application/vnd.cinderella', - 'cer' => 'application/pkix-cert', - 'cfs' => 'application/x-cfs-compressed', - 'cgm' => 'image/cgm', - 'chat' => 'application/x-chat', - 'chm' => 'application/vnd.ms-htmlhelp', - 'chrt' => 'application/vnd.kde.kchart', - 'cif' => 'chemical/x-cif', - 'cii' => 'application/vnd.anser-web-certificate-issue-initiation', - 'cil' => 'application/vnd.ms-artgalry', - 'cjs' => 'application/node', - 'cla' => 'application/vnd.claymore', - 'class' => 'application/octet-stream', - 'cld' => 'model/vnd.cld', - 'clkk' => 'application/vnd.crick.clicker.keyboard', - 'clkp' => 'application/vnd.crick.clicker.palette', - 'clkt' => 'application/vnd.crick.clicker.template', - 'clkw' => 'application/vnd.crick.clicker.wordbank', - 'clkx' => 'application/vnd.crick.clicker', - 'clp' => 'application/x-msclip', - 'cmc' => 'application/vnd.cosmocaller', - 'cmdf' => 'chemical/x-cmdf', - 'cml' => 'chemical/x-cml', - 'cmp' => 'application/vnd.yellowriver-custom-menu', - 'cmx' => 'image/x-cmx', - 'cod' => 'application/vnd.rim.cod', - 'coffee' => 'text/coffeescript', - 'com' => 'application/x-msdownload', - 'conf' => 'text/plain', - 'cpio' => 'application/x-cpio', - 'cpl' => 'application/cpl+xml', - 'cpp' => 'text/x-c', - 'cpt' => 'application/mac-compactpro', - 'crd' => 'application/x-mscardfile', - 'crl' => 'application/pkix-crl', - 'crt' => 'application/x-x509-ca-cert', - 'crx' => 'application/x-chrome-extension', - 'cryptonote' => 'application/vnd.rig.cryptonote', - 'csh' => 'application/x-csh', - 'csl' => 'application/vnd.citationstyles.style+xml', - 'csml' => 'chemical/x-csml', - 'csp' => 'application/vnd.commonspace', - 'csr' => 'application/octet-stream', - 'css' => 'text/css', - 'cst' => 'application/x-director', - 'csv' => 'text/csv', - 'cu' => 'application/cu-seeme', - 'curl' => 'text/vnd.curl', - 'cwl' => 'application/cwl', - 'cww' => 'application/prs.cww', - 'cxt' => 'application/x-director', - 'cxx' => 'text/x-c', - 'dae' => 'model/vnd.collada+xml', - 'daf' => 'application/vnd.mobius.daf', - 'dart' => 'application/vnd.dart', - 'dataless' => 'application/vnd.fdsn.seed', - 'davmount' => 'application/davmount+xml', - 'dbf' => 'application/vnd.dbf', - 'dbk' => 'application/docbook+xml', - 'dcr' => 'application/x-director', - 'dcurl' => 'text/vnd.curl.dcurl', - 'dd2' => 'application/vnd.oma.dd2+xml', - 'ddd' => 'application/vnd.fujixerox.ddd', - 'ddf' => 'application/vnd.syncml.dmddf+xml', - 'dds' => 'image/vnd.ms-dds', - 'deb' => 'application/x-debian-package', - 'def' => 'text/plain', - 'deploy' => 'application/octet-stream', - 'der' => 'application/x-x509-ca-cert', - 'dfac' => 'application/vnd.dreamfactory', - 'dgc' => 'application/x-dgc-compressed', - 'dib' => 'image/bmp', - 'dic' => 'text/x-c', - 'dir' => 'application/x-director', - 'dis' => 'application/vnd.mobius.dis', - 'disposition-notification' => 'message/disposition-notification', - 'dist' => 'application/octet-stream', - 'distz' => 'application/octet-stream', - 'djv' => 'image/vnd.djvu', - 'djvu' => 'image/vnd.djvu', - 'dll' => 'application/octet-stream', - 'dmg' => 'application/x-apple-diskimage', - 'dmn' => 'application/octet-stream', - 'dmp' => 'application/vnd.tcpdump.pcap', - 'dms' => 'application/octet-stream', - 'dna' => 'application/vnd.dna', - 'doc' => 'application/msword', - 'docm' => 'application/vnd.ms-word.template.macroEnabled.12', - 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', - 'dot' => 'application/msword', - 'dotm' => 'application/vnd.ms-word.template.macroEnabled.12', - 'dotx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.template', - 'dp' => 'application/vnd.osgi.dp', - 'dpg' => 'application/vnd.dpgraph', - 'dpx' => 'image/dpx', - 'dra' => 'audio/vnd.dra', - 'drle' => 'image/dicom-rle', - 'dsc' => 'text/prs.lines.tag', - 'dssc' => 'application/dssc+der', - 'dtb' => 'application/x-dtbook+xml', - 'dtd' => 'application/xml-dtd', - 'dts' => 'audio/vnd.dts', - 'dtshd' => 'audio/vnd.dts.hd', - 'dump' => 'application/octet-stream', - 'dvb' => 'video/vnd.dvb.file', - 'dvi' => 'application/x-dvi', - 'dwd' => 'application/atsc-dwd+xml', - 'dwf' => 'model/vnd.dwf', - 'dwg' => 'image/vnd.dwg', - 'dxf' => 'image/vnd.dxf', - 'dxp' => 'application/vnd.spotfire.dxp', - 'dxr' => 'application/x-director', - 'ear' => 'application/java-archive', - 'ecelp4800' => 'audio/vnd.nuera.ecelp4800', - 'ecelp7470' => 'audio/vnd.nuera.ecelp7470', - 'ecelp9600' => 'audio/vnd.nuera.ecelp9600', - 'ecma' => 'application/ecmascript', - 'edm' => 'application/vnd.novadigm.edm', - 'edx' => 'application/vnd.novadigm.edx', - 'efif' => 'application/vnd.picsel', - 'ei6' => 'application/vnd.pg.osasli', - 'elc' => 'application/octet-stream', - 'emf' => 'image/emf', - 'eml' => 'message/rfc822', - 'emma' => 'application/emma+xml', - 'emotionml' => 'application/emotionml+xml', - 'emz' => 'application/x-msmetafile', - 'eol' => 'audio/vnd.digital-winds', - 'eot' => 'application/vnd.ms-fontobject', - 'eps' => 'application/postscript', - 'epub' => 'application/epub+zip', - 'es3' => 'application/vnd.eszigno3+xml', - 'esa' => 'application/vnd.osgi.subsystem', - 'esf' => 'application/vnd.epson.esf', - 'et3' => 'application/vnd.eszigno3+xml', - 'etx' => 'text/x-setext', - 'eva' => 'application/x-eva', - 'evy' => 'application/x-envoy', - 'exe' => 'application/octet-stream', - 'exi' => 'application/exi', - 'exp' => 'application/express', - 'exr' => 'image/aces', - 'ext' => 'application/vnd.novadigm.ext', - 'ez' => 'application/andrew-inset', - 'ez2' => 'application/vnd.ezpix-album', - 'ez3' => 'application/vnd.ezpix-package', - 'f' => 'text/x-fortran', - 'f4v' => 'video/mp4', - 'f77' => 'text/x-fortran', - 'f90' => 'text/x-fortran', - 'fbs' => 'image/vnd.fastbidsheet', - 'fcdt' => 'application/vnd.adobe.formscentral.fcdt', - 'fcs' => 'application/vnd.isac.fcs', - 'fdf' => 'application/vnd.fdf', - 'fdt' => 'application/fdt+xml', - 'fe_launch' => 'application/vnd.denovo.fcselayout-link', - 'fg5' => 'application/vnd.fujitsu.oasysgp', - 'fgd' => 'application/x-director', - 'fh' => 'image/x-freehand', - 'fh4' => 'image/x-freehand', - 'fh5' => 'image/x-freehand', - 'fh7' => 'image/x-freehand', - 'fhc' => 'image/x-freehand', - 'fig' => 'application/x-xfig', - 'fits' => 'image/fits', - 'flac' => 'audio/x-flac', - 'fli' => 'video/x-fli', - 'flo' => 'application/vnd.micrografx.flo', - 'flv' => 'video/x-flv', - 'flw' => 'application/vnd.kde.kivio', - 'flx' => 'text/vnd.fmi.flexstor', - 'fly' => 'text/vnd.fly', - 'fm' => 'application/vnd.framemaker', - 'fnc' => 'application/vnd.frogans.fnc', - 'fo' => 'application/vnd.software602.filler.form+xml', - 'for' => 'text/x-fortran', - 'fpx' => 'image/vnd.fpx', - 'frame' => 'application/vnd.framemaker', - 'fsc' => 'application/vnd.fsc.weblaunch', - 'fst' => 'image/vnd.fst', - 'ftc' => 'application/vnd.fluxtime.clip', - 'fti' => 'application/vnd.anser-web-funds-transfer-initiation', - 'fvt' => 'video/vnd.fvt', - 'fxp' => 'application/vnd.adobe.fxp', - 'fxpl' => 'application/vnd.adobe.fxp', - 'fzs' => 'application/vnd.fuzzysheet', - 'g2w' => 'application/vnd.geoplan', - 'g3' => 'image/g3fax', - 'g3w' => 'application/vnd.geospace', - 'gac' => 'application/vnd.groove-account', - 'gam' => 'application/x-tads', - 'gbr' => 'application/rpki-ghostbusters', - 'gca' => 'application/x-gca-compressed', - 'gdl' => 'model/vnd.gdl', - 'gdoc' => 'application/vnd.google-apps.document', - 'ged' => 'text/vnd.familysearch.gedcom', - 'geo' => 'application/vnd.dynageo', - 'geojson' => 'application/geo+json', - 'gex' => 'application/vnd.geometry-explorer', - 'ggb' => 'application/vnd.geogebra.file', - 'ggt' => 'application/vnd.geogebra.tool', - 'ghf' => 'application/vnd.groove-help', - 'gif' => 'image/gif', - 'gim' => 'application/vnd.groove-identity-message', - 'glb' => 'model/gltf-binary', - 'gltf' => 'model/gltf+json', - 'gml' => 'application/gml+xml', - 'gmx' => 'application/vnd.gmx', - 'gnumeric' => 'application/x-gnumeric', - 'gpg' => 'application/gpg-keys', - 'gph' => 'application/vnd.flographit', - 'gpx' => 'application/gpx+xml', - 'gqf' => 'application/vnd.grafeq', - 'gqs' => 'application/vnd.grafeq', - 'gram' => 'application/srgs', - 'gramps' => 'application/x-gramps-xml', - 'gre' => 'application/vnd.geometry-explorer', - 'grv' => 'application/vnd.groove-injector', - 'grxml' => 'application/srgs+xml', - 'gsf' => 'application/x-font-ghostscript', - 'gsheet' => 'application/vnd.google-apps.spreadsheet', - 'gslides' => 'application/vnd.google-apps.presentation', - 'gtar' => 'application/x-gtar', - 'gtm' => 'application/vnd.groove-tool-message', - 'gtw' => 'model/vnd.gtw', - 'gv' => 'text/vnd.graphviz', - 'gxf' => 'application/gxf', - 'gxt' => 'application/vnd.geonext', - 'gz' => 'application/gzip', - 'gzip' => 'application/gzip', - 'h' => 'text/x-c', - 'h261' => 'video/h261', - 'h263' => 'video/h263', - 'h264' => 'video/h264', - 'hal' => 'application/vnd.hal+xml', - 'hbci' => 'application/vnd.hbci', - 'hbs' => 'text/x-handlebars-template', - 'hdd' => 'application/x-virtualbox-hdd', - 'hdf' => 'application/x-hdf', - 'heic' => 'image/heic', - 'heics' => 'image/heic-sequence', - 'heif' => 'image/heif', - 'heifs' => 'image/heif-sequence', - 'hej2' => 'image/hej2k', - 'held' => 'application/atsc-held+xml', - 'hh' => 'text/x-c', - 'hjson' => 'application/hjson', - 'hlp' => 'application/winhlp', - 'hpgl' => 'application/vnd.hp-hpgl', - 'hpid' => 'application/vnd.hp-hpid', - 'hps' => 'application/vnd.hp-hps', - 'hqx' => 'application/mac-binhex40', - 'hsj2' => 'image/hsj2', - 'htc' => 'text/x-component', - 'htke' => 'application/vnd.kenameaapp', - 'htm' => 'text/html', - 'html' => 'text/html', - 'hvd' => 'application/vnd.yamaha.hv-dic', - 'hvp' => 'application/vnd.yamaha.hv-voice', - 'hvs' => 'application/vnd.yamaha.hv-script', - 'i2g' => 'application/vnd.intergeo', - 'icc' => 'application/vnd.iccprofile', - 'ice' => 'x-conference/x-cooltalk', - 'icm' => 'application/vnd.iccprofile', - 'ico' => 'image/x-icon', - 'ics' => 'text/calendar', - 'ief' => 'image/ief', - 'ifb' => 'text/calendar', - 'ifm' => 'application/vnd.shana.informed.formdata', - 'iges' => 'model/iges', - 'igl' => 'application/vnd.igloader', - 'igm' => 'application/vnd.insors.igm', - 'igs' => 'model/iges', - 'igx' => 'application/vnd.micrografx.igx', - 'iif' => 'application/vnd.shana.informed.interchange', - 'img' => 'application/octet-stream', - 'imp' => 'application/vnd.accpac.simply.imp', - 'ims' => 'application/vnd.ms-ims', - 'in' => 'text/plain', - 'ini' => 'text/plain', - 'ink' => 'application/inkml+xml', - 'inkml' => 'application/inkml+xml', - 'install' => 'application/x-install-instructions', - 'iota' => 'application/vnd.astraea-software.iota', - 'ipfix' => 'application/ipfix', - 'ipk' => 'application/vnd.shana.informed.package', - 'irm' => 'application/vnd.ibm.rights-management', - 'irp' => 'application/vnd.irepository.package+xml', - 'iso' => 'application/x-iso9660-image', - 'itp' => 'application/vnd.shana.informed.formtemplate', - 'its' => 'application/its+xml', - 'ivp' => 'application/vnd.immervision-ivp', - 'ivu' => 'application/vnd.immervision-ivu', - 'jad' => 'text/vnd.sun.j2me.app-descriptor', - 'jade' => 'text/jade', - 'jam' => 'application/vnd.jam', - 'jar' => 'application/java-archive', - 'jardiff' => 'application/x-java-archive-diff', - 'java' => 'text/x-java-source', - 'jhc' => 'image/jphc', - 'jisp' => 'application/vnd.jisp', - 'jls' => 'image/jls', - 'jlt' => 'application/vnd.hp-jlyt', - 'jng' => 'image/x-jng', - 'jnlp' => 'application/x-java-jnlp-file', - 'joda' => 'application/vnd.joost.joda-archive', - 'jp2' => 'image/jp2', - 'jpe' => 'image/jpeg', - 'jpeg' => 'image/jpeg', - 'jpf' => 'image/jpx', - 'jpg' => 'image/jpeg', - 'jpg2' => 'image/jp2', - 'jpgm' => 'video/jpm', - 'jpgv' => 'video/jpeg', - 'jph' => 'image/jph', - 'jpm' => 'video/jpm', - 'jpx' => 'image/jpx', - 'js' => 'application/javascript', - 'json' => 'application/json', - 'json5' => 'application/json5', - 'jsonld' => 'application/ld+json', - 'jsonml' => 'application/jsonml+json', - 'jsx' => 'text/jsx', - 'jt' => 'model/jt', - 'jxr' => 'image/jxr', - 'jxra' => 'image/jxra', - 'jxrs' => 'image/jxrs', - 'jxs' => 'image/jxs', - 'jxsc' => 'image/jxsc', - 'jxsi' => 'image/jxsi', - 'jxss' => 'image/jxss', - 'kar' => 'audio/midi', - 'karbon' => 'application/vnd.kde.karbon', - 'kdb' => 'application/octet-stream', - 'kdbx' => 'application/x-keepass2', - 'key' => 'application/x-iwork-keynote-sffkey', - 'kfo' => 'application/vnd.kde.kformula', - 'kia' => 'application/vnd.kidspiration', - 'kml' => 'application/vnd.google-earth.kml+xml', - 'kmz' => 'application/vnd.google-earth.kmz', - 'kne' => 'application/vnd.kinar', - 'knp' => 'application/vnd.kinar', - 'kon' => 'application/vnd.kde.kontour', - 'kpr' => 'application/vnd.kde.kpresenter', - 'kpt' => 'application/vnd.kde.kpresenter', - 'kpxx' => 'application/vnd.ds-keypoint', - 'ksp' => 'application/vnd.kde.kspread', - 'ktr' => 'application/vnd.kahootz', - 'ktx' => 'image/ktx', - 'ktx2' => 'image/ktx2', - 'ktz' => 'application/vnd.kahootz', - 'kwd' => 'application/vnd.kde.kword', - 'kwt' => 'application/vnd.kde.kword', - 'lasxml' => 'application/vnd.las.las+xml', - 'latex' => 'application/x-latex', - 'lbd' => 'application/vnd.llamagraphics.life-balance.desktop', - 'lbe' => 'application/vnd.llamagraphics.life-balance.exchange+xml', - 'les' => 'application/vnd.hhe.lesson-player', - 'less' => 'text/less', - 'lgr' => 'application/lgr+xml', - 'lha' => 'application/octet-stream', - 'link66' => 'application/vnd.route66.link66+xml', - 'list' => 'text/plain', - 'list3820' => 'application/vnd.ibm.modcap', - 'listafp' => 'application/vnd.ibm.modcap', - 'litcoffee' => 'text/coffeescript', - 'lnk' => 'application/x-ms-shortcut', - 'log' => 'text/plain', - 'lostxml' => 'application/lost+xml', - 'lrf' => 'application/octet-stream', - 'lrm' => 'application/vnd.ms-lrm', - 'ltf' => 'application/vnd.frogans.ltf', - 'lua' => 'text/x-lua', - 'luac' => 'application/x-lua-bytecode', - 'lvp' => 'audio/vnd.lucent.voice', - 'lwp' => 'application/vnd.lotus-wordpro', - 'lzh' => 'application/octet-stream', - 'm1v' => 'video/mpeg', - 'm2a' => 'audio/mpeg', - 'm2v' => 'video/mpeg', - 'm3a' => 'audio/mpeg', - 'm3u' => 'text/plain', - 'm3u8' => 'application/vnd.apple.mpegurl', - 'm4a' => 'audio/x-m4a', - 'm4p' => 'application/mp4', - 'm4s' => 'video/iso.segment', - 'm4u' => 'application/vnd.mpegurl', - 'm4v' => 'video/x-m4v', - 'm13' => 'application/x-msmediaview', - 'm14' => 'application/x-msmediaview', - 'm21' => 'application/mp21', - 'ma' => 'application/mathematica', - 'mads' => 'application/mads+xml', - 'maei' => 'application/mmt-aei+xml', - 'mag' => 'application/vnd.ecowin.chart', - 'maker' => 'application/vnd.framemaker', - 'man' => 'text/troff', - 'manifest' => 'text/cache-manifest', - 'map' => 'application/json', - 'mar' => 'application/octet-stream', - 'markdown' => 'text/markdown', - 'mathml' => 'application/mathml+xml', - 'mb' => 'application/mathematica', - 'mbk' => 'application/vnd.mobius.mbk', - 'mbox' => 'application/mbox', - 'mc1' => 'application/vnd.medcalcdata', - 'mcd' => 'application/vnd.mcd', - 'mcurl' => 'text/vnd.curl.mcurl', - 'md' => 'text/markdown', - 'mdb' => 'application/x-msaccess', - 'mdi' => 'image/vnd.ms-modi', - 'mdx' => 'text/mdx', - 'me' => 'text/troff', - 'mesh' => 'model/mesh', - 'meta4' => 'application/metalink4+xml', - 'metalink' => 'application/metalink+xml', - 'mets' => 'application/mets+xml', - 'mfm' => 'application/vnd.mfmp', - 'mft' => 'application/rpki-manifest', - 'mgp' => 'application/vnd.osgeo.mapguide.package', - 'mgz' => 'application/vnd.proteus.magazine', - 'mid' => 'audio/midi', - 'midi' => 'audio/midi', - 'mie' => 'application/x-mie', - 'mif' => 'application/vnd.mif', - 'mime' => 'message/rfc822', - 'mj2' => 'video/mj2', - 'mjp2' => 'video/mj2', - 'mjs' => 'text/javascript', - 'mk3d' => 'video/x-matroska', - 'mka' => 'audio/x-matroska', - 'mkd' => 'text/x-markdown', - 'mks' => 'video/x-matroska', - 'mkv' => 'video/x-matroska', - 'mlp' => 'application/vnd.dolby.mlp', - 'mmd' => 'application/vnd.chipnuts.karaoke-mmd', - 'mmf' => 'application/vnd.smaf', - 'mml' => 'text/mathml', - 'mmr' => 'image/vnd.fujixerox.edmics-mmr', - 'mng' => 'video/x-mng', - 'mny' => 'application/x-msmoney', - 'mobi' => 'application/x-mobipocket-ebook', - 'mods' => 'application/mods+xml', - 'mov' => 'video/quicktime', - 'movie' => 'video/x-sgi-movie', - 'mp2' => 'audio/mpeg', - 'mp2a' => 'audio/mpeg', - 'mp3' => 'audio/mpeg', - 'mp4' => 'video/mp4', - 'mp4a' => 'audio/mp4', - 'mp4s' => 'application/mp4', - 'mp4v' => 'video/mp4', - 'mp21' => 'application/mp21', - 'mpc' => 'application/vnd.mophun.certificate', - 'mpd' => 'application/dash+xml', - 'mpe' => 'video/mpeg', - 'mpeg' => 'video/mpeg', - 'mpf' => 'application/media-policy-dataset+xml', - 'mpg' => 'video/mpeg', - 'mpg4' => 'video/mp4', - 'mpga' => 'audio/mpeg', - 'mpkg' => 'application/vnd.apple.installer+xml', - 'mpm' => 'application/vnd.blueice.multipass', - 'mpn' => 'application/vnd.mophun.application', - 'mpp' => 'application/vnd.ms-project', - 'mpt' => 'application/vnd.ms-project', - 'mpy' => 'application/vnd.ibm.minipay', - 'mqy' => 'application/vnd.mobius.mqy', - 'mrc' => 'application/marc', - 'mrcx' => 'application/marcxml+xml', - 'ms' => 'text/troff', - 'mscml' => 'application/mediaservercontrol+xml', - 'mseed' => 'application/vnd.fdsn.mseed', - 'mseq' => 'application/vnd.mseq', - 'msf' => 'application/vnd.epson.msf', - 'msg' => 'application/vnd.ms-outlook', - 'msh' => 'model/mesh', - 'msi' => 'application/x-msdownload', - 'msix' => 'application/msix', - 'msixbundle' => 'application/msixbundle', - 'msl' => 'application/vnd.mobius.msl', - 'msm' => 'application/octet-stream', - 'msp' => 'application/octet-stream', - 'msty' => 'application/vnd.muvee.style', - 'mtl' => 'model/mtl', - 'mts' => 'model/vnd.mts', - 'mus' => 'application/vnd.musician', - 'musd' => 'application/mmt-usd+xml', - 'musicxml' => 'application/vnd.recordare.musicxml+xml', - 'mvb' => 'application/x-msmediaview', - 'mvt' => 'application/vnd.mapbox-vector-tile', - 'mwf' => 'application/vnd.mfer', - 'mxf' => 'application/mxf', - 'mxl' => 'application/vnd.recordare.musicxml', - 'mxmf' => 'audio/mobile-xmf', - 'mxml' => 'application/xv+xml', - 'mxs' => 'application/vnd.triscape.mxs', - 'mxu' => 'video/vnd.mpegurl', - 'n-gage' => 'application/vnd.nokia.n-gage.symbian.install', - 'n3' => 'text/n3', - 'nb' => 'application/mathematica', - 'nbp' => 'application/vnd.wolfram.player', - 'nc' => 'application/x-netcdf', - 'ncx' => 'application/x-dtbncx+xml', - 'nfo' => 'text/x-nfo', - 'ngdat' => 'application/vnd.nokia.n-gage.data', - 'nitf' => 'application/vnd.nitf', - 'nlu' => 'application/vnd.neurolanguage.nlu', - 'nml' => 'application/vnd.enliven', - 'nnd' => 'application/vnd.noblenet-directory', - 'nns' => 'application/vnd.noblenet-sealer', - 'nnw' => 'application/vnd.noblenet-web', - 'npx' => 'image/vnd.net-fpx', - 'nq' => 'application/n-quads', - 'nsc' => 'application/x-conference', - 'nsf' => 'application/vnd.lotus-notes', - 'nt' => 'application/n-triples', - 'ntf' => 'application/vnd.nitf', - 'numbers' => 'application/x-iwork-numbers-sffnumbers', - 'nzb' => 'application/x-nzb', - 'oa2' => 'application/vnd.fujitsu.oasys2', - 'oa3' => 'application/vnd.fujitsu.oasys3', - 'oas' => 'application/vnd.fujitsu.oasys', - 'obd' => 'application/x-msbinder', - 'obgx' => 'application/vnd.openblox.game+xml', - 'obj' => 'model/obj', - 'oda' => 'application/oda', - 'odb' => 'application/vnd.oasis.opendocument.database', - 'odc' => 'application/vnd.oasis.opendocument.chart', - 'odf' => 'application/vnd.oasis.opendocument.formula', - 'odft' => 'application/vnd.oasis.opendocument.formula-template', - 'odg' => 'application/vnd.oasis.opendocument.graphics', - 'odi' => 'application/vnd.oasis.opendocument.image', - 'odm' => 'application/vnd.oasis.opendocument.text-master', - 'odp' => 'application/vnd.oasis.opendocument.presentation', - 'ods' => 'application/vnd.oasis.opendocument.spreadsheet', - 'odt' => 'application/vnd.oasis.opendocument.text', - 'oga' => 'audio/ogg', - 'ogex' => 'model/vnd.opengex', - 'ogg' => 'audio/ogg', - 'ogv' => 'video/ogg', - 'ogx' => 'application/ogg', - 'omdoc' => 'application/omdoc+xml', - 'onepkg' => 'application/onenote', - 'onetmp' => 'application/onenote', - 'onetoc' => 'application/onenote', - 'onetoc2' => 'application/onenote', - 'opf' => 'application/oebps-package+xml', - 'opml' => 'text/x-opml', - 'oprc' => 'application/vnd.palm', - 'opus' => 'audio/ogg', - 'org' => 'text/x-org', - 'osf' => 'application/vnd.yamaha.openscoreformat', - 'osfpvg' => 'application/vnd.yamaha.openscoreformat.osfpvg+xml', - 'osm' => 'application/vnd.openstreetmap.data+xml', - 'otc' => 'application/vnd.oasis.opendocument.chart-template', - 'otf' => 'font/otf', - 'otg' => 'application/vnd.oasis.opendocument.graphics-template', - 'oth' => 'application/vnd.oasis.opendocument.text-web', - 'oti' => 'application/vnd.oasis.opendocument.image-template', - 'otp' => 'application/vnd.oasis.opendocument.presentation-template', - 'ots' => 'application/vnd.oasis.opendocument.spreadsheet-template', - 'ott' => 'application/vnd.oasis.opendocument.text-template', - 'ova' => 'application/x-virtualbox-ova', - 'ovf' => 'application/x-virtualbox-ovf', - 'owl' => 'application/rdf+xml', - 'oxps' => 'application/oxps', - 'oxt' => 'application/vnd.openofficeorg.extension', - 'p' => 'text/x-pascal', - 'p7a' => 'application/x-pkcs7-signature', - 'p7b' => 'application/x-pkcs7-certificates', - 'p7c' => 'application/pkcs7-mime', - 'p7m' => 'application/pkcs7-mime', - 'p7r' => 'application/x-pkcs7-certreqresp', - 'p7s' => 'application/pkcs7-signature', - 'p8' => 'application/pkcs8', - 'p10' => 'application/x-pkcs10', - 'p12' => 'application/x-pkcs12', - 'pac' => 'application/x-ns-proxy-autoconfig', - 'pages' => 'application/x-iwork-pages-sffpages', - 'pas' => 'text/x-pascal', - 'paw' => 'application/vnd.pawaafile', - 'pbd' => 'application/vnd.powerbuilder6', - 'pbm' => 'image/x-portable-bitmap', - 'pcap' => 'application/vnd.tcpdump.pcap', - 'pcf' => 'application/x-font-pcf', - 'pcl' => 'application/vnd.hp-pcl', - 'pclxl' => 'application/vnd.hp-pclxl', - 'pct' => 'image/x-pict', - 'pcurl' => 'application/vnd.curl.pcurl', - 'pcx' => 'image/x-pcx', - 'pdb' => 'application/x-pilot', - 'pde' => 'text/x-processing', - 'pdf' => 'application/pdf', - 'pem' => 'application/x-x509-user-cert', - 'pfa' => 'application/x-font-type1', - 'pfb' => 'application/x-font-type1', - 'pfm' => 'application/x-font-type1', - 'pfr' => 'application/font-tdpfr', - 'pfx' => 'application/x-pkcs12', - 'pgm' => 'image/x-portable-graymap', - 'pgn' => 'application/x-chess-pgn', - 'pgp' => 'application/pgp', - 'phar' => 'application/octet-stream', - 'php' => 'application/x-httpd-php', - 'php3' => 'application/x-httpd-php', - 'php4' => 'application/x-httpd-php', - 'phps' => 'application/x-httpd-php-source', - 'phtml' => 'application/x-httpd-php', - 'pic' => 'image/x-pict', - 'pkg' => 'application/octet-stream', - 'pki' => 'application/pkixcmp', - 'pkipath' => 'application/pkix-pkipath', - 'pkpass' => 'application/vnd.apple.pkpass', - 'pl' => 'application/x-perl', - 'plb' => 'application/vnd.3gpp.pic-bw-large', - 'plc' => 'application/vnd.mobius.plc', - 'plf' => 'application/vnd.pocketlearn', - 'pls' => 'application/pls+xml', - 'pm' => 'application/x-perl', - 'pml' => 'application/vnd.ctc-posml', - 'png' => 'image/png', - 'pnm' => 'image/x-portable-anymap', - 'portpkg' => 'application/vnd.macports.portpkg', - 'pot' => 'application/vnd.ms-powerpoint', - 'potm' => 'application/vnd.ms-powerpoint.presentation.macroEnabled.12', - 'potx' => 'application/vnd.openxmlformats-officedocument.presentationml.template', - 'ppa' => 'application/vnd.ms-powerpoint', - 'ppam' => 'application/vnd.ms-powerpoint.addin.macroEnabled.12', - 'ppd' => 'application/vnd.cups-ppd', - 'ppm' => 'image/x-portable-pixmap', - 'pps' => 'application/vnd.ms-powerpoint', - 'ppsm' => 'application/vnd.ms-powerpoint.slideshow.macroEnabled.12', - 'ppsx' => 'application/vnd.openxmlformats-officedocument.presentationml.slideshow', - 'ppt' => 'application/powerpoint', - 'pptm' => 'application/vnd.ms-powerpoint.presentation.macroEnabled.12', - 'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation', - 'pqa' => 'application/vnd.palm', - 'prc' => 'model/prc', - 'pre' => 'application/vnd.lotus-freelance', - 'prf' => 'application/pics-rules', - 'provx' => 'application/provenance+xml', - 'ps' => 'application/postscript', - 'psb' => 'application/vnd.3gpp.pic-bw-small', - 'psd' => 'application/x-photoshop', - 'psf' => 'application/x-font-linux-psf', - 'pskcxml' => 'application/pskc+xml', - 'pti' => 'image/prs.pti', - 'ptid' => 'application/vnd.pvi.ptid1', - 'pub' => 'application/x-mspublisher', - 'pvb' => 'application/vnd.3gpp.pic-bw-var', - 'pwn' => 'application/vnd.3m.post-it-notes', - 'pya' => 'audio/vnd.ms-playready.media.pya', - 'pyo' => 'model/vnd.pytha.pyox', - 'pyox' => 'model/vnd.pytha.pyox', - 'pyv' => 'video/vnd.ms-playready.media.pyv', - 'qam' => 'application/vnd.epson.quickanime', - 'qbo' => 'application/vnd.intu.qbo', - 'qfx' => 'application/vnd.intu.qfx', - 'qps' => 'application/vnd.publishare-delta-tree', - 'qt' => 'video/quicktime', - 'qwd' => 'application/vnd.quark.quarkxpress', - 'qwt' => 'application/vnd.quark.quarkxpress', - 'qxb' => 'application/vnd.quark.quarkxpress', - 'qxd' => 'application/vnd.quark.quarkxpress', - 'qxl' => 'application/vnd.quark.quarkxpress', - 'qxt' => 'application/vnd.quark.quarkxpress', - 'ra' => 'audio/x-realaudio', - 'ram' => 'audio/x-pn-realaudio', - 'raml' => 'application/raml+yaml', - 'rapd' => 'application/route-apd+xml', - 'rar' => 'application/x-rar', - 'ras' => 'image/x-cmu-raster', - 'rcprofile' => 'application/vnd.ipunplugged.rcprofile', - 'rdf' => 'application/rdf+xml', - 'rdz' => 'application/vnd.data-vision.rdz', - 'relo' => 'application/p2p-overlay+xml', - 'rep' => 'application/vnd.businessobjects', - 'res' => 'application/x-dtbresource+xml', - 'rgb' => 'image/x-rgb', - 'rif' => 'application/reginfo+xml', - 'rip' => 'audio/vnd.rip', - 'ris' => 'application/x-research-info-systems', - 'rl' => 'application/resource-lists+xml', - 'rlc' => 'image/vnd.fujixerox.edmics-rlc', - 'rld' => 'application/resource-lists-diff+xml', - 'rm' => 'audio/x-pn-realaudio', - 'rmi' => 'audio/midi', - 'rmp' => 'audio/x-pn-realaudio-plugin', - 'rms' => 'application/vnd.jcp.javame.midlet-rms', - 'rmvb' => 'application/vnd.rn-realmedia-vbr', - 'rnc' => 'application/relax-ng-compact-syntax', - 'rng' => 'application/xml', - 'roa' => 'application/rpki-roa', - 'roff' => 'text/troff', - 'rp9' => 'application/vnd.cloanto.rp9', - 'rpm' => 'audio/x-pn-realaudio-plugin', - 'rpss' => 'application/vnd.nokia.radio-presets', - 'rpst' => 'application/vnd.nokia.radio-preset', - 'rq' => 'application/sparql-query', - 'rs' => 'application/rls-services+xml', - 'rsa' => 'application/x-pkcs7', - 'rsat' => 'application/atsc-rsat+xml', - 'rsd' => 'application/rsd+xml', - 'rsheet' => 'application/urc-ressheet+xml', - 'rss' => 'application/rss+xml', - 'rtf' => 'text/rtf', - 'rtx' => 'text/richtext', - 'run' => 'application/x-makeself', - 'rusd' => 'application/route-usd+xml', - 'rv' => 'video/vnd.rn-realvideo', - 's' => 'text/x-asm', - 's3m' => 'audio/s3m', - 'saf' => 'application/vnd.yamaha.smaf-audio', - 'sass' => 'text/x-sass', - 'sbml' => 'application/sbml+xml', - 'sc' => 'application/vnd.ibm.secure-container', - 'scd' => 'application/x-msschedule', - 'scm' => 'application/vnd.lotus-screencam', - 'scq' => 'application/scvp-cv-request', - 'scs' => 'application/scvp-cv-response', - 'scss' => 'text/x-scss', - 'scurl' => 'text/vnd.curl.scurl', - 'sda' => 'application/vnd.stardivision.draw', - 'sdc' => 'application/vnd.stardivision.calc', - 'sdd' => 'application/vnd.stardivision.impress', - 'sdkd' => 'application/vnd.solent.sdkm+xml', - 'sdkm' => 'application/vnd.solent.sdkm+xml', - 'sdp' => 'application/sdp', - 'sdw' => 'application/vnd.stardivision.writer', - 'sea' => 'application/octet-stream', - 'see' => 'application/vnd.seemail', - 'seed' => 'application/vnd.fdsn.seed', - 'sema' => 'application/vnd.sema', - 'semd' => 'application/vnd.semd', - 'semf' => 'application/vnd.semf', - 'senmlx' => 'application/senml+xml', - 'sensmlx' => 'application/sensml+xml', - 'ser' => 'application/java-serialized-object', - 'setpay' => 'application/set-payment-initiation', - 'setreg' => 'application/set-registration-initiation', - 'sfd-hdstx' => 'application/vnd.hydrostatix.sof-data', - 'sfs' => 'application/vnd.spotfire.sfs', - 'sfv' => 'text/x-sfv', - 'sgi' => 'image/sgi', - 'sgl' => 'application/vnd.stardivision.writer-global', - 'sgm' => 'text/sgml', - 'sgml' => 'text/sgml', - 'sh' => 'application/x-sh', - 'shar' => 'application/x-shar', - 'shex' => 'text/shex', - 'shf' => 'application/shf+xml', - 'shtml' => 'text/html', - 'sid' => 'image/x-mrsid-image', - 'sieve' => 'application/sieve', - 'sig' => 'application/pgp-signature', - 'sil' => 'audio/silk', - 'silo' => 'model/mesh', - 'sis' => 'application/vnd.symbian.install', - 'sisx' => 'application/vnd.symbian.install', - 'sit' => 'application/x-stuffit', - 'sitx' => 'application/x-stuffitx', - 'siv' => 'application/sieve', - 'skd' => 'application/vnd.koan', - 'skm' => 'application/vnd.koan', - 'skp' => 'application/vnd.koan', - 'skt' => 'application/vnd.koan', - 'sldm' => 'application/vnd.ms-powerpoint.slide.macroenabled.12', - 'sldx' => 'application/vnd.openxmlformats-officedocument.presentationml.slide', - 'slim' => 'text/slim', - 'slm' => 'text/slim', - 'sls' => 'application/route-s-tsid+xml', - 'slt' => 'application/vnd.epson.salt', - 'sm' => 'application/vnd.stepmania.stepchart', - 'smf' => 'application/vnd.stardivision.math', - 'smi' => 'application/smil', - 'smil' => 'application/smil', - 'smv' => 'video/x-smv', - 'smzip' => 'application/vnd.stepmania.package', - 'snd' => 'audio/basic', - 'snf' => 'application/x-font-snf', - 'so' => 'application/octet-stream', - 'spc' => 'application/x-pkcs7-certificates', - 'spdx' => 'text/spdx', - 'spf' => 'application/vnd.yamaha.smaf-phrase', - 'spl' => 'application/x-futuresplash', - 'spot' => 'text/vnd.in3d.spot', - 'spp' => 'application/scvp-vp-response', - 'spq' => 'application/scvp-vp-request', - 'spx' => 'audio/ogg', - 'sql' => 'application/x-sql', - 'src' => 'application/x-wais-source', - 'srt' => 'application/x-subrip', - 'sru' => 'application/sru+xml', - 'srx' => 'application/sparql-results+xml', - 'ssdl' => 'application/ssdl+xml', - 'sse' => 'application/vnd.kodak-descriptor', - 'ssf' => 'application/vnd.epson.ssf', - 'ssml' => 'application/ssml+xml', - 'sst' => 'application/octet-stream', - 'st' => 'application/vnd.sailingtracker.track', - 'stc' => 'application/vnd.sun.xml.calc.template', - 'std' => 'application/vnd.sun.xml.draw.template', - 'step' => 'application/STEP', - 'stf' => 'application/vnd.wt.stf', - 'sti' => 'application/vnd.sun.xml.impress.template', - 'stk' => 'application/hyperstudio', - 'stl' => 'model/stl', - 'stp' => 'application/STEP', - 'stpx' => 'model/step+xml', - 'stpxz' => 'model/step-xml+zip', - 'stpz' => 'model/step+zip', - 'str' => 'application/vnd.pg.format', - 'stw' => 'application/vnd.sun.xml.writer.template', - 'styl' => 'text/stylus', - 'stylus' => 'text/stylus', - 'sub' => 'text/vnd.dvb.subtitle', - 'sus' => 'application/vnd.sus-calendar', - 'susp' => 'application/vnd.sus-calendar', - 'sv4cpio' => 'application/x-sv4cpio', - 'sv4crc' => 'application/x-sv4crc', - 'svc' => 'application/vnd.dvb.service', - 'svd' => 'application/vnd.svd', - 'svg' => 'image/svg+xml', - 'svgz' => 'image/svg+xml', - 'swa' => 'application/x-director', - 'swf' => 'application/x-shockwave-flash', - 'swi' => 'application/vnd.aristanetworks.swi', - 'swidtag' => 'application/swid+xml', - 'sxc' => 'application/vnd.sun.xml.calc', - 'sxd' => 'application/vnd.sun.xml.draw', - 'sxg' => 'application/vnd.sun.xml.writer.global', - 'sxi' => 'application/vnd.sun.xml.impress', - 'sxm' => 'application/vnd.sun.xml.math', - 'sxw' => 'application/vnd.sun.xml.writer', - 't' => 'text/troff', - 't3' => 'application/x-t3vm-image', - 't38' => 'image/t38', - 'taglet' => 'application/vnd.mynfc', - 'tao' => 'application/vnd.tao.intent-module-archive', - 'tap' => 'image/vnd.tencent.tap', - 'tar' => 'application/x-tar', - 'tcap' => 'application/vnd.3gpp2.tcap', - 'tcl' => 'application/x-tcl', - 'td' => 'application/urc-targetdesc+xml', - 'teacher' => 'application/vnd.smart.teacher', - 'tei' => 'application/tei+xml', - 'teicorpus' => 'application/tei+xml', - 'tex' => 'application/x-tex', - 'texi' => 'application/x-texinfo', - 'texinfo' => 'application/x-texinfo', - 'text' => 'text/plain', - 'tfi' => 'application/thraud+xml', - 'tfm' => 'application/x-tex-tfm', - 'tfx' => 'image/tiff-fx', - 'tga' => 'image/x-tga', - 'tgz' => 'application/x-tar', - 'thmx' => 'application/vnd.ms-officetheme', - 'tif' => 'image/tiff', - 'tiff' => 'image/tiff', - 'tk' => 'application/x-tcl', - 'tmo' => 'application/vnd.tmobile-livetv', - 'toml' => 'application/toml', - 'torrent' => 'application/x-bittorrent', - 'tpl' => 'application/vnd.groove-tool-template', - 'tpt' => 'application/vnd.trid.tpt', - 'tr' => 'text/troff', - 'tra' => 'application/vnd.trueapp', - 'trig' => 'application/trig', - 'trm' => 'application/x-msterminal', - 'ts' => 'video/mp2t', - 'tsd' => 'application/timestamped-data', - 'tsv' => 'text/tab-separated-values', - 'ttc' => 'font/collection', - 'ttf' => 'font/ttf', - 'ttl' => 'text/turtle', - 'ttml' => 'application/ttml+xml', - 'twd' => 'application/vnd.simtech-mindmapper', - 'twds' => 'application/vnd.simtech-mindmapper', - 'txd' => 'application/vnd.genomatix.tuxedo', - 'txf' => 'application/vnd.mobius.txf', - 'txt' => 'text/plain', - 'u3d' => 'model/u3d', - 'u8dsn' => 'message/global-delivery-status', - 'u8hdr' => 'message/global-headers', - 'u8mdn' => 'message/global-disposition-notification', - 'u8msg' => 'message/global', - 'u32' => 'application/x-authorware-bin', - 'ubj' => 'application/ubjson', - 'udeb' => 'application/x-debian-package', - 'ufd' => 'application/vnd.ufdl', - 'ufdl' => 'application/vnd.ufdl', - 'ulx' => 'application/x-glulx', - 'umj' => 'application/vnd.umajin', - 'unityweb' => 'application/vnd.unity', - 'uo' => 'application/vnd.uoml+xml', - 'uoml' => 'application/vnd.uoml+xml', - 'uri' => 'text/uri-list', - 'uris' => 'text/uri-list', - 'urls' => 'text/uri-list', - 'usda' => 'model/vnd.usda', - 'usdz' => 'model/vnd.usdz+zip', - 'ustar' => 'application/x-ustar', - 'utz' => 'application/vnd.uiq.theme', - 'uu' => 'text/x-uuencode', - 'uva' => 'audio/vnd.dece.audio', - 'uvd' => 'application/vnd.dece.data', - 'uvf' => 'application/vnd.dece.data', - 'uvg' => 'image/vnd.dece.graphic', - 'uvh' => 'video/vnd.dece.hd', - 'uvi' => 'image/vnd.dece.graphic', - 'uvm' => 'video/vnd.dece.mobile', - 'uvp' => 'video/vnd.dece.pd', - 'uvs' => 'video/vnd.dece.sd', - 'uvt' => 'application/vnd.dece.ttml+xml', - 'uvu' => 'video/vnd.uvvu.mp4', - 'uvv' => 'video/vnd.dece.video', - 'uvva' => 'audio/vnd.dece.audio', - 'uvvd' => 'application/vnd.dece.data', - 'uvvf' => 'application/vnd.dece.data', - 'uvvg' => 'image/vnd.dece.graphic', - 'uvvh' => 'video/vnd.dece.hd', - 'uvvi' => 'image/vnd.dece.graphic', - 'uvvm' => 'video/vnd.dece.mobile', - 'uvvp' => 'video/vnd.dece.pd', - 'uvvs' => 'video/vnd.dece.sd', - 'uvvt' => 'application/vnd.dece.ttml+xml', - 'uvvu' => 'video/vnd.uvvu.mp4', - 'uvvv' => 'video/vnd.dece.video', - 'uvvx' => 'application/vnd.dece.unspecified', - 'uvvz' => 'application/vnd.dece.zip', - 'uvx' => 'application/vnd.dece.unspecified', - 'uvz' => 'application/vnd.dece.zip', - 'vbox' => 'application/x-virtualbox-vbox', - 'vbox-extpack' => 'application/x-virtualbox-vbox-extpack', - 'vcard' => 'text/vcard', - 'vcd' => 'application/x-cdlink', - 'vcf' => 'text/x-vcard', - 'vcg' => 'application/vnd.groove-vcard', - 'vcs' => 'text/x-vcalendar', - 'vcx' => 'application/vnd.vcx', - 'vdi' => 'application/x-virtualbox-vdi', - 'vds' => 'model/vnd.sap.vds', - 'vhd' => 'application/x-virtualbox-vhd', - 'vis' => 'application/vnd.visionary', - 'viv' => 'video/vnd.vivo', - 'vlc' => 'application/videolan', - 'vmdk' => 'application/x-virtualbox-vmdk', - 'vob' => 'video/x-ms-vob', - 'vor' => 'application/vnd.stardivision.writer', - 'vox' => 'application/x-authorware-bin', - 'vrml' => 'model/vrml', - 'vsd' => 'application/vnd.visio', - 'vsf' => 'application/vnd.vsf', - 'vss' => 'application/vnd.visio', - 'vst' => 'application/vnd.visio', - 'vsw' => 'application/vnd.visio', - 'vtf' => 'image/vnd.valve.source.texture', - 'vtt' => 'text/vtt', - 'vtu' => 'model/vnd.vtu', - 'vxml' => 'application/voicexml+xml', - 'w3d' => 'application/x-director', - 'wad' => 'application/x-doom', - 'wadl' => 'application/vnd.sun.wadl+xml', - 'war' => 'application/java-archive', - 'wasm' => 'application/wasm', - 'wav' => 'audio/x-wav', - 'wax' => 'audio/x-ms-wax', - 'wbmp' => 'image/vnd.wap.wbmp', - 'wbs' => 'application/vnd.criticaltools.wbs+xml', - 'wbxml' => 'application/wbxml', - 'wcm' => 'application/vnd.ms-works', - 'wdb' => 'application/vnd.ms-works', - 'wdp' => 'image/vnd.ms-photo', - 'weba' => 'audio/webm', - 'webapp' => 'application/x-web-app-manifest+json', - 'webm' => 'video/webm', - 'webmanifest' => 'application/manifest+json', - 'webp' => 'image/webp', - 'wg' => 'application/vnd.pmi.widget', - 'wgsl' => 'text/wgsl', - 'wgt' => 'application/widget', - 'wif' => 'application/watcherinfo+xml', - 'wks' => 'application/vnd.ms-works', - 'wm' => 'video/x-ms-wm', - 'wma' => 'audio/x-ms-wma', - 'wmd' => 'application/x-ms-wmd', - 'wmf' => 'image/wmf', - 'wml' => 'text/vnd.wap.wml', - 'wmlc' => 'application/wmlc', - 'wmls' => 'text/vnd.wap.wmlscript', - 'wmlsc' => 'application/vnd.wap.wmlscriptc', - 'wmv' => 'video/x-ms-wmv', - 'wmx' => 'video/x-ms-wmx', - 'wmz' => 'application/x-msmetafile', - 'woff' => 'font/woff', - 'woff2' => 'font/woff2', - 'word' => 'application/msword', - 'wpd' => 'application/vnd.wordperfect', - 'wpl' => 'application/vnd.ms-wpl', - 'wps' => 'application/vnd.ms-works', - 'wqd' => 'application/vnd.wqd', - 'wri' => 'application/x-mswrite', - 'wrl' => 'model/vrml', - 'wsc' => 'message/vnd.wfa.wsc', - 'wsdl' => 'application/wsdl+xml', - 'wspolicy' => 'application/wspolicy+xml', - 'wtb' => 'application/vnd.webturbo', - 'wvx' => 'video/x-ms-wvx', - 'x3d' => 'model/x3d+xml', - 'x3db' => 'model/x3d+fastinfoset', - 'x3dbz' => 'model/x3d+binary', - 'x3dv' => 'model/x3d-vrml', - 'x3dvz' => 'model/x3d+vrml', - 'x3dz' => 'model/x3d+xml', - 'x32' => 'application/x-authorware-bin', - 'x_b' => 'model/vnd.parasolid.transmit.binary', - 'x_t' => 'model/vnd.parasolid.transmit.text', - 'xaml' => 'application/xaml+xml', - 'xap' => 'application/x-silverlight-app', - 'xar' => 'application/vnd.xara', - 'xav' => 'application/xcap-att+xml', - 'xbap' => 'application/x-ms-xbap', - 'xbd' => 'application/vnd.fujixerox.docuworks.binder', - 'xbm' => 'image/x-xbitmap', - 'xca' => 'application/xcap-caps+xml', - 'xcs' => 'application/calendar+xml', - 'xdf' => 'application/xcap-diff+xml', - 'xdm' => 'application/vnd.syncml.dm+xml', - 'xdp' => 'application/vnd.adobe.xdp+xml', - 'xdssc' => 'application/dssc+xml', - 'xdw' => 'application/vnd.fujixerox.docuworks', - 'xel' => 'application/xcap-el+xml', - 'xenc' => 'application/xenc+xml', - 'xer' => 'application/patch-ops-error+xml', - 'xfdf' => 'application/xfdf', - 'xfdl' => 'application/vnd.xfdl', - 'xht' => 'application/xhtml+xml', - 'xhtm' => 'application/vnd.pwg-xhtml-print+xml', - 'xhtml' => 'application/xhtml+xml', - 'xhvml' => 'application/xv+xml', - 'xif' => 'image/vnd.xiff', - 'xl' => 'application/excel', - 'xla' => 'application/vnd.ms-excel', - 'xlam' => 'application/vnd.ms-excel.addin.macroEnabled.12', - 'xlc' => 'application/vnd.ms-excel', - 'xlf' => 'application/xliff+xml', - 'xlm' => 'application/vnd.ms-excel', - 'xls' => 'application/vnd.ms-excel', - 'xlsb' => 'application/vnd.ms-excel.sheet.binary.macroEnabled.12', - 'xlsm' => 'application/vnd.ms-excel.sheet.macroEnabled.12', - 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', - 'xlt' => 'application/vnd.ms-excel', - 'xltm' => 'application/vnd.ms-excel.template.macroEnabled.12', - 'xltx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.template', - 'xlw' => 'application/vnd.ms-excel', - 'xm' => 'audio/xm', - 'xml' => 'application/xml', - 'xns' => 'application/xcap-ns+xml', - 'xo' => 'application/vnd.olpc-sugar', - 'xop' => 'application/xop+xml', - 'xpi' => 'application/x-xpinstall', - 'xpl' => 'application/xproc+xml', - 'xpm' => 'image/x-xpixmap', - 'xpr' => 'application/vnd.is-xpr', - 'xps' => 'application/vnd.ms-xpsdocument', - 'xpw' => 'application/vnd.intercon.formnet', - 'xpx' => 'application/vnd.intercon.formnet', - 'xsd' => 'application/xml', - 'xsf' => 'application/prs.xsf+xml', - 'xsl' => 'application/xml', - 'xslt' => 'application/xslt+xml', - 'xsm' => 'application/vnd.syncml+xml', - 'xspf' => 'application/xspf+xml', - 'xul' => 'application/vnd.mozilla.xul+xml', - 'xvm' => 'application/xv+xml', - 'xvml' => 'application/xv+xml', - 'xwd' => 'image/x-xwindowdump', - 'xyz' => 'chemical/x-xyz', - 'xz' => 'application/x-xz', - 'yaml' => 'text/yaml', - 'yang' => 'application/yang', - 'yin' => 'application/yin+xml', - 'yml' => 'text/yaml', - 'ymp' => 'text/x-suse-ymp', - 'z' => 'application/x-compress', - 'z1' => 'application/x-zmachine', - 'z2' => 'application/x-zmachine', - 'z3' => 'application/x-zmachine', - 'z4' => 'application/x-zmachine', - 'z5' => 'application/x-zmachine', - 'z6' => 'application/x-zmachine', - 'z7' => 'application/x-zmachine', - 'z8' => 'application/x-zmachine', - 'zaz' => 'application/vnd.zzazz.deck+xml', - 'zip' => 'application/zip', - 'zir' => 'application/vnd.zul', - 'zirz' => 'application/vnd.zul', - 'zmm' => 'application/vnd.handheld-entertainment+xml', - 'zsh' => 'text/x-scriptzsh', - ]; - - /** - * Determines the mimetype of a file by looking at its extension. - * - * @see https://raw.githubusercontent.com/jshttp/mime-db/master/db.json - */ - public static function fromFilename(string $filename): ?string - { - return self::fromExtension(pathinfo($filename, PATHINFO_EXTENSION)); - } - - /** - * Maps a file extensions to a mimetype. - * - * @see https://raw.githubusercontent.com/jshttp/mime-db/master/db.json - */ - public static function fromExtension(string $extension): ?string - { - return self::MIME_TYPES[strtolower($extension)] ?? null; - } -} diff --git a/vendor/guzzlehttp/psr7/src/MultipartStream.php b/vendor/guzzlehttp/psr7/src/MultipartStream.php deleted file mode 100644 index 43d718f..0000000 --- a/vendor/guzzlehttp/psr7/src/MultipartStream.php +++ /dev/null @@ -1,165 +0,0 @@ -boundary = $boundary ?: bin2hex(random_bytes(20)); - $this->stream = $this->createStream($elements); - } - - public function getBoundary(): string - { - return $this->boundary; - } - - public function isWritable(): bool - { - return false; - } - - /** - * Get the headers needed before transferring the content of a POST file - * - * @param string[] $headers - */ - private function getHeaders(array $headers): string - { - $str = ''; - foreach ($headers as $key => $value) { - $str .= "{$key}: {$value}\r\n"; - } - - return "--{$this->boundary}\r\n".trim($str)."\r\n\r\n"; - } - - /** - * Create the aggregate stream that will be used to upload the POST data - */ - protected function createStream(array $elements = []): StreamInterface - { - $stream = new AppendStream(); - - foreach ($elements as $element) { - if (!is_array($element)) { - throw new \UnexpectedValueException('An array is expected'); - } - $this->addElement($stream, $element); - } - - // Add the trailing boundary with CRLF - $stream->addStream(Utils::streamFor("--{$this->boundary}--\r\n")); - - return $stream; - } - - private function addElement(AppendStream $stream, array $element): void - { - foreach (['contents', 'name'] as $key) { - if (!array_key_exists($key, $element)) { - throw new \InvalidArgumentException("A '{$key}' key is required"); - } - } - - $element['contents'] = Utils::streamFor($element['contents']); - - if (empty($element['filename'])) { - $uri = $element['contents']->getMetadata('uri'); - if ($uri && \is_string($uri) && \substr($uri, 0, 6) !== 'php://' && \substr($uri, 0, 7) !== 'data://') { - $element['filename'] = $uri; - } - } - - [$body, $headers] = $this->createElement( - $element['name'], - $element['contents'], - $element['filename'] ?? null, - $element['headers'] ?? [] - ); - - $stream->addStream(Utils::streamFor($this->getHeaders($headers))); - $stream->addStream($body); - $stream->addStream(Utils::streamFor("\r\n")); - } - - /** - * @param string[] $headers - * - * @return array{0: StreamInterface, 1: string[]} - */ - private function createElement(string $name, StreamInterface $stream, ?string $filename, array $headers): array - { - // Set a default content-disposition header if one was no provided - $disposition = self::getHeader($headers, 'content-disposition'); - if (!$disposition) { - $headers['Content-Disposition'] = ($filename === '0' || $filename) - ? sprintf( - 'form-data; name="%s"; filename="%s"', - $name, - basename($filename) - ) - : "form-data; name=\"{$name}\""; - } - - // Set a default content-length header if one was no provided - $length = self::getHeader($headers, 'content-length'); - if (!$length) { - if ($length = $stream->getSize()) { - $headers['Content-Length'] = (string) $length; - } - } - - // Set a default Content-Type if one was not supplied - $type = self::getHeader($headers, 'content-type'); - if (!$type && ($filename === '0' || $filename)) { - $headers['Content-Type'] = MimeType::fromFilename($filename) ?? 'application/octet-stream'; - } - - return [$stream, $headers]; - } - - /** - * @param string[] $headers - */ - private static function getHeader(array $headers, string $key): ?string - { - $lowercaseHeader = strtolower($key); - foreach ($headers as $k => $v) { - if (strtolower((string) $k) === $lowercaseHeader) { - return $v; - } - } - - return null; - } -} diff --git a/vendor/guzzlehttp/psr7/src/NoSeekStream.php b/vendor/guzzlehttp/psr7/src/NoSeekStream.php deleted file mode 100644 index 161a224..0000000 --- a/vendor/guzzlehttp/psr7/src/NoSeekStream.php +++ /dev/null @@ -1,28 +0,0 @@ -source = $source; - $this->size = $options['size'] ?? null; - $this->metadata = $options['metadata'] ?? []; - $this->buffer = new BufferStream(); - } - - public function __toString(): string - { - try { - return Utils::copyToString($this); - } catch (\Throwable $e) { - if (\PHP_VERSION_ID >= 70400) { - throw $e; - } - trigger_error(sprintf('%s::__toString exception: %s', self::class, (string) $e), E_USER_ERROR); - - return ''; - } - } - - public function close(): void - { - $this->detach(); - } - - public function detach() - { - $this->tellPos = 0; - $this->source = null; - - return null; - } - - public function getSize(): ?int - { - return $this->size; - } - - public function tell(): int - { - return $this->tellPos; - } - - public function eof(): bool - { - return $this->source === null; - } - - public function isSeekable(): bool - { - return false; - } - - public function rewind(): void - { - $this->seek(0); - } - - public function seek($offset, $whence = SEEK_SET): void - { - throw new \RuntimeException('Cannot seek a PumpStream'); - } - - public function isWritable(): bool - { - return false; - } - - public function write($string): int - { - throw new \RuntimeException('Cannot write to a PumpStream'); - } - - public function isReadable(): bool - { - return true; - } - - public function read($length): string - { - $data = $this->buffer->read($length); - $readLen = strlen($data); - $this->tellPos += $readLen; - $remaining = $length - $readLen; - - if ($remaining) { - $this->pump($remaining); - $data .= $this->buffer->read($remaining); - $this->tellPos += strlen($data) - $readLen; - } - - return $data; - } - - public function getContents(): string - { - $result = ''; - while (!$this->eof()) { - $result .= $this->read(1000000); - } - - return $result; - } - - /** - * @return mixed - */ - public function getMetadata($key = null) - { - if (!$key) { - return $this->metadata; - } - - return $this->metadata[$key] ?? null; - } - - private function pump(int $length): void - { - if ($this->source !== null) { - do { - $data = ($this->source)($length); - if ($data === false || $data === null) { - $this->source = null; - - return; - } - $this->buffer->write($data); - $length -= strlen($data); - } while ($length > 0); - } - } -} diff --git a/vendor/guzzlehttp/psr7/src/Query.php b/vendor/guzzlehttp/psr7/src/Query.php deleted file mode 100644 index ccf867a..0000000 --- a/vendor/guzzlehttp/psr7/src/Query.php +++ /dev/null @@ -1,118 +0,0 @@ - '1', 'foo[b]' => '2'])`. - * - * @param string $str Query string to parse - * @param int|bool $urlEncoding How the query string is encoded - */ - public static function parse(string $str, $urlEncoding = true): array - { - $result = []; - - if ($str === '') { - return $result; - } - - if ($urlEncoding === true) { - $decoder = function ($value) { - return rawurldecode(str_replace('+', ' ', (string) $value)); - }; - } elseif ($urlEncoding === PHP_QUERY_RFC3986) { - $decoder = 'rawurldecode'; - } elseif ($urlEncoding === PHP_QUERY_RFC1738) { - $decoder = 'urldecode'; - } else { - $decoder = function ($str) { - return $str; - }; - } - - foreach (explode('&', $str) as $kvp) { - $parts = explode('=', $kvp, 2); - $key = $decoder($parts[0]); - $value = isset($parts[1]) ? $decoder($parts[1]) : null; - if (!array_key_exists($key, $result)) { - $result[$key] = $value; - } else { - if (!is_array($result[$key])) { - $result[$key] = [$result[$key]]; - } - $result[$key][] = $value; - } - } - - return $result; - } - - /** - * Build a query string from an array of key value pairs. - * - * This function can use the return value of `parse()` to build a query - * string. This function does not modify the provided keys when an array is - * encountered (like `http_build_query()` would). - * - * @param array $params Query string parameters. - * @param int|false $encoding Set to false to not encode, - * PHP_QUERY_RFC3986 to encode using - * RFC3986, or PHP_QUERY_RFC1738 to - * encode using RFC1738. - * @param bool $treatBoolsAsInts Set to true to encode as 0/1, and - * false as false/true. - */ - public static function build(array $params, $encoding = PHP_QUERY_RFC3986, bool $treatBoolsAsInts = true): string - { - if (!$params) { - return ''; - } - - if ($encoding === false) { - $encoder = function (string $str): string { - return $str; - }; - } elseif ($encoding === PHP_QUERY_RFC3986) { - $encoder = 'rawurlencode'; - } elseif ($encoding === PHP_QUERY_RFC1738) { - $encoder = 'urlencode'; - } else { - throw new \InvalidArgumentException('Invalid type'); - } - - $castBool = $treatBoolsAsInts ? static function ($v) { return (int) $v; } : static function ($v) { return $v ? 'true' : 'false'; }; - - $qs = ''; - foreach ($params as $k => $v) { - $k = $encoder((string) $k); - if (!is_array($v)) { - $qs .= $k; - $v = is_bool($v) ? $castBool($v) : $v; - if ($v !== null) { - $qs .= '='.$encoder((string) $v); - } - $qs .= '&'; - } else { - foreach ($v as $vv) { - $qs .= $k; - $vv = is_bool($vv) ? $castBool($vv) : $vv; - if ($vv !== null) { - $qs .= '='.$encoder((string) $vv); - } - $qs .= '&'; - } - } - } - - return $qs ? (string) substr($qs, 0, -1) : ''; - } -} diff --git a/vendor/guzzlehttp/psr7/src/Request.php b/vendor/guzzlehttp/psr7/src/Request.php deleted file mode 100644 index faafe1a..0000000 --- a/vendor/guzzlehttp/psr7/src/Request.php +++ /dev/null @@ -1,159 +0,0 @@ -assertMethod($method); - if (!($uri instanceof UriInterface)) { - $uri = new Uri($uri); - } - - $this->method = strtoupper($method); - $this->uri = $uri; - $this->setHeaders($headers); - $this->protocol = $version; - - if (!isset($this->headerNames['host'])) { - $this->updateHostFromUri(); - } - - if ($body !== '' && $body !== null) { - $this->stream = Utils::streamFor($body); - } - } - - public function getRequestTarget(): string - { - if ($this->requestTarget !== null) { - return $this->requestTarget; - } - - $target = $this->uri->getPath(); - if ($target === '') { - $target = '/'; - } - if ($this->uri->getQuery() != '') { - $target .= '?'.$this->uri->getQuery(); - } - - return $target; - } - - public function withRequestTarget($requestTarget): RequestInterface - { - if (preg_match('#\s#', $requestTarget)) { - throw new InvalidArgumentException( - 'Invalid request target provided; cannot contain whitespace' - ); - } - - $new = clone $this; - $new->requestTarget = $requestTarget; - - return $new; - } - - public function getMethod(): string - { - return $this->method; - } - - public function withMethod($method): RequestInterface - { - $this->assertMethod($method); - $new = clone $this; - $new->method = strtoupper($method); - - return $new; - } - - public function getUri(): UriInterface - { - return $this->uri; - } - - public function withUri(UriInterface $uri, $preserveHost = false): RequestInterface - { - if ($uri === $this->uri) { - return $this; - } - - $new = clone $this; - $new->uri = $uri; - - if (!$preserveHost || !isset($this->headerNames['host'])) { - $new->updateHostFromUri(); - } - - return $new; - } - - private function updateHostFromUri(): void - { - $host = $this->uri->getHost(); - - if ($host == '') { - return; - } - - if (($port = $this->uri->getPort()) !== null) { - $host .= ':'.$port; - } - - if (isset($this->headerNames['host'])) { - $header = $this->headerNames['host']; - } else { - $header = 'Host'; - $this->headerNames['host'] = 'Host'; - } - // Ensure Host is the first header. - // See: https://datatracker.ietf.org/doc/html/rfc7230#section-5.4 - $this->headers = [$header => [$host]] + $this->headers; - } - - /** - * @param mixed $method - */ - private function assertMethod($method): void - { - if (!is_string($method) || $method === '') { - throw new InvalidArgumentException('Method must be a non-empty string.'); - } - } -} diff --git a/vendor/guzzlehttp/psr7/src/Response.php b/vendor/guzzlehttp/psr7/src/Response.php deleted file mode 100644 index 34e612f..0000000 --- a/vendor/guzzlehttp/psr7/src/Response.php +++ /dev/null @@ -1,161 +0,0 @@ - 'Continue', - 101 => 'Switching Protocols', - 102 => 'Processing', - 200 => 'OK', - 201 => 'Created', - 202 => 'Accepted', - 203 => 'Non-Authoritative Information', - 204 => 'No Content', - 205 => 'Reset Content', - 206 => 'Partial Content', - 207 => 'Multi-status', - 208 => 'Already Reported', - 300 => 'Multiple Choices', - 301 => 'Moved Permanently', - 302 => 'Found', - 303 => 'See Other', - 304 => 'Not Modified', - 305 => 'Use Proxy', - 306 => 'Switch Proxy', - 307 => 'Temporary Redirect', - 308 => 'Permanent Redirect', - 400 => 'Bad Request', - 401 => 'Unauthorized', - 402 => 'Payment Required', - 403 => 'Forbidden', - 404 => 'Not Found', - 405 => 'Method Not Allowed', - 406 => 'Not Acceptable', - 407 => 'Proxy Authentication Required', - 408 => 'Request Time-out', - 409 => 'Conflict', - 410 => 'Gone', - 411 => 'Length Required', - 412 => 'Precondition Failed', - 413 => 'Request Entity Too Large', - 414 => 'Request-URI Too Large', - 415 => 'Unsupported Media Type', - 416 => 'Requested range not satisfiable', - 417 => 'Expectation Failed', - 418 => 'I\'m a teapot', - 422 => 'Unprocessable Entity', - 423 => 'Locked', - 424 => 'Failed Dependency', - 425 => 'Unordered Collection', - 426 => 'Upgrade Required', - 428 => 'Precondition Required', - 429 => 'Too Many Requests', - 431 => 'Request Header Fields Too Large', - 451 => 'Unavailable For Legal Reasons', - 500 => 'Internal Server Error', - 501 => 'Not Implemented', - 502 => 'Bad Gateway', - 503 => 'Service Unavailable', - 504 => 'Gateway Time-out', - 505 => 'HTTP Version not supported', - 506 => 'Variant Also Negotiates', - 507 => 'Insufficient Storage', - 508 => 'Loop Detected', - 510 => 'Not Extended', - 511 => 'Network Authentication Required', - ]; - - /** @var string */ - private $reasonPhrase; - - /** @var int */ - private $statusCode; - - /** - * @param int $status Status code - * @param (string|string[])[] $headers Response headers - * @param string|resource|StreamInterface|null $body Response body - * @param string $version Protocol version - * @param string|null $reason Reason phrase (when empty a default will be used based on the status code) - */ - public function __construct( - int $status = 200, - array $headers = [], - $body = null, - string $version = '1.1', - ?string $reason = null - ) { - $this->assertStatusCodeRange($status); - - $this->statusCode = $status; - - if ($body !== '' && $body !== null) { - $this->stream = Utils::streamFor($body); - } - - $this->setHeaders($headers); - if ($reason == '' && isset(self::PHRASES[$this->statusCode])) { - $this->reasonPhrase = self::PHRASES[$this->statusCode]; - } else { - $this->reasonPhrase = (string) $reason; - } - - $this->protocol = $version; - } - - public function getStatusCode(): int - { - return $this->statusCode; - } - - public function getReasonPhrase(): string - { - return $this->reasonPhrase; - } - - public function withStatus($code, $reasonPhrase = ''): ResponseInterface - { - $this->assertStatusCodeIsInteger($code); - $code = (int) $code; - $this->assertStatusCodeRange($code); - - $new = clone $this; - $new->statusCode = $code; - if ($reasonPhrase == '' && isset(self::PHRASES[$new->statusCode])) { - $reasonPhrase = self::PHRASES[$new->statusCode]; - } - $new->reasonPhrase = (string) $reasonPhrase; - - return $new; - } - - /** - * @param mixed $statusCode - */ - private function assertStatusCodeIsInteger($statusCode): void - { - if (filter_var($statusCode, FILTER_VALIDATE_INT) === false) { - throw new \InvalidArgumentException('Status code must be an integer value.'); - } - } - - private function assertStatusCodeRange(int $statusCode): void - { - if ($statusCode < 100 || $statusCode >= 600) { - throw new \InvalidArgumentException('Status code must be an integer value between 1xx and 5xx.'); - } - } -} diff --git a/vendor/guzzlehttp/psr7/src/Rfc7230.php b/vendor/guzzlehttp/psr7/src/Rfc7230.php deleted file mode 100644 index 8219dba..0000000 --- a/vendor/guzzlehttp/psr7/src/Rfc7230.php +++ /dev/null @@ -1,23 +0,0 @@ -@,;:\\\"/[\]?={}\x01-\x20\x7F]++):[ \t]*+((?:[ \t]*+[\x21-\x7E\x80-\xFF]++)*+)[ \t]*+\r?\n)m"; - public const HEADER_FOLD_REGEX = "(\r?\n[ \t]++)"; -} diff --git a/vendor/guzzlehttp/psr7/src/ServerRequest.php b/vendor/guzzlehttp/psr7/src/ServerRequest.php deleted file mode 100644 index 3cc9534..0000000 --- a/vendor/guzzlehttp/psr7/src/ServerRequest.php +++ /dev/null @@ -1,340 +0,0 @@ -serverParams = $serverParams; - - parent::__construct($method, $uri, $headers, $body, $version); - } - - /** - * Return an UploadedFile instance array. - * - * @param array $files An array which respect $_FILES structure - * - * @throws InvalidArgumentException for unrecognized values - */ - public static function normalizeFiles(array $files): array - { - $normalized = []; - - foreach ($files as $key => $value) { - if ($value instanceof UploadedFileInterface) { - $normalized[$key] = $value; - } elseif (is_array($value) && isset($value['tmp_name'])) { - $normalized[$key] = self::createUploadedFileFromSpec($value); - } elseif (is_array($value)) { - $normalized[$key] = self::normalizeFiles($value); - continue; - } else { - throw new InvalidArgumentException('Invalid value in files specification'); - } - } - - return $normalized; - } - - /** - * Create and return an UploadedFile instance from a $_FILES specification. - * - * If the specification represents an array of values, this method will - * delegate to normalizeNestedFileSpec() and return that return value. - * - * @param array $value $_FILES struct - * - * @return UploadedFileInterface|UploadedFileInterface[] - */ - private static function createUploadedFileFromSpec(array $value) - { - if (is_array($value['tmp_name'])) { - return self::normalizeNestedFileSpec($value); - } - - return new UploadedFile( - $value['tmp_name'], - (int) $value['size'], - (int) $value['error'], - $value['name'], - $value['type'] - ); - } - - /** - * Normalize an array of file specifications. - * - * Loops through all nested files and returns a normalized array of - * UploadedFileInterface instances. - * - * @return UploadedFileInterface[] - */ - private static function normalizeNestedFileSpec(array $files = []): array - { - $normalizedFiles = []; - - foreach (array_keys($files['tmp_name']) as $key) { - $spec = [ - 'tmp_name' => $files['tmp_name'][$key], - 'size' => $files['size'][$key] ?? null, - 'error' => $files['error'][$key] ?? null, - 'name' => $files['name'][$key] ?? null, - 'type' => $files['type'][$key] ?? null, - ]; - $normalizedFiles[$key] = self::createUploadedFileFromSpec($spec); - } - - return $normalizedFiles; - } - - /** - * Return a ServerRequest populated with superglobals: - * $_GET - * $_POST - * $_COOKIE - * $_FILES - * $_SERVER - */ - public static function fromGlobals(): ServerRequestInterface - { - $method = $_SERVER['REQUEST_METHOD'] ?? 'GET'; - $headers = getallheaders(); - $uri = self::getUriFromGlobals(); - $body = new CachingStream(new LazyOpenStream('php://input', 'r+')); - $protocol = isset($_SERVER['SERVER_PROTOCOL']) ? str_replace('HTTP/', '', $_SERVER['SERVER_PROTOCOL']) : '1.1'; - - $serverRequest = new ServerRequest($method, $uri, $headers, $body, $protocol, $_SERVER); - - return $serverRequest - ->withCookieParams($_COOKIE) - ->withQueryParams($_GET) - ->withParsedBody($_POST) - ->withUploadedFiles(self::normalizeFiles($_FILES)); - } - - private static function extractHostAndPortFromAuthority(string $authority): array - { - $uri = 'http://'.$authority; - $parts = parse_url($uri); - if (false === $parts) { - return [null, null]; - } - - $host = $parts['host'] ?? null; - $port = $parts['port'] ?? null; - - return [$host, $port]; - } - - /** - * Get a Uri populated with values from $_SERVER. - */ - public static function getUriFromGlobals(): UriInterface - { - $uri = new Uri(''); - - $uri = $uri->withScheme(!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' ? 'https' : 'http'); - - $hasPort = false; - if (isset($_SERVER['HTTP_HOST'])) { - [$host, $port] = self::extractHostAndPortFromAuthority($_SERVER['HTTP_HOST']); - if ($host !== null) { - $uri = $uri->withHost($host); - } - - if ($port !== null) { - $hasPort = true; - $uri = $uri->withPort($port); - } - } elseif (isset($_SERVER['SERVER_NAME'])) { - $uri = $uri->withHost($_SERVER['SERVER_NAME']); - } elseif (isset($_SERVER['SERVER_ADDR'])) { - $uri = $uri->withHost($_SERVER['SERVER_ADDR']); - } - - if (!$hasPort && isset($_SERVER['SERVER_PORT'])) { - $uri = $uri->withPort($_SERVER['SERVER_PORT']); - } - - $hasQuery = false; - if (isset($_SERVER['REQUEST_URI'])) { - $requestUriParts = explode('?', $_SERVER['REQUEST_URI'], 2); - $uri = $uri->withPath($requestUriParts[0]); - if (isset($requestUriParts[1])) { - $hasQuery = true; - $uri = $uri->withQuery($requestUriParts[1]); - } - } - - if (!$hasQuery && isset($_SERVER['QUERY_STRING'])) { - $uri = $uri->withQuery($_SERVER['QUERY_STRING']); - } - - return $uri; - } - - public function getServerParams(): array - { - return $this->serverParams; - } - - public function getUploadedFiles(): array - { - return $this->uploadedFiles; - } - - public function withUploadedFiles(array $uploadedFiles): ServerRequestInterface - { - $new = clone $this; - $new->uploadedFiles = $uploadedFiles; - - return $new; - } - - public function getCookieParams(): array - { - return $this->cookieParams; - } - - public function withCookieParams(array $cookies): ServerRequestInterface - { - $new = clone $this; - $new->cookieParams = $cookies; - - return $new; - } - - public function getQueryParams(): array - { - return $this->queryParams; - } - - public function withQueryParams(array $query): ServerRequestInterface - { - $new = clone $this; - $new->queryParams = $query; - - return $new; - } - - /** - * @return array|object|null - */ - public function getParsedBody() - { - return $this->parsedBody; - } - - public function withParsedBody($data): ServerRequestInterface - { - $new = clone $this; - $new->parsedBody = $data; - - return $new; - } - - public function getAttributes(): array - { - return $this->attributes; - } - - /** - * @return mixed - */ - public function getAttribute($attribute, $default = null) - { - if (false === array_key_exists($attribute, $this->attributes)) { - return $default; - } - - return $this->attributes[$attribute]; - } - - public function withAttribute($attribute, $value): ServerRequestInterface - { - $new = clone $this; - $new->attributes[$attribute] = $value; - - return $new; - } - - public function withoutAttribute($attribute): ServerRequestInterface - { - if (false === array_key_exists($attribute, $this->attributes)) { - return $this; - } - - $new = clone $this; - unset($new->attributes[$attribute]); - - return $new; - } -} diff --git a/vendor/guzzlehttp/psr7/src/Stream.php b/vendor/guzzlehttp/psr7/src/Stream.php deleted file mode 100644 index 0aff9b2..0000000 --- a/vendor/guzzlehttp/psr7/src/Stream.php +++ /dev/null @@ -1,283 +0,0 @@ -size = $options['size']; - } - - $this->customMetadata = $options['metadata'] ?? []; - $this->stream = $stream; - $meta = stream_get_meta_data($this->stream); - $this->seekable = $meta['seekable']; - $this->readable = (bool) preg_match(self::READABLE_MODES, $meta['mode']); - $this->writable = (bool) preg_match(self::WRITABLE_MODES, $meta['mode']); - $this->uri = $this->getMetadata('uri'); - } - - /** - * Closes the stream when the destructed - */ - public function __destruct() - { - $this->close(); - } - - public function __toString(): string - { - try { - if ($this->isSeekable()) { - $this->seek(0); - } - - return $this->getContents(); - } catch (\Throwable $e) { - if (\PHP_VERSION_ID >= 70400) { - throw $e; - } - trigger_error(sprintf('%s::__toString exception: %s', self::class, (string) $e), E_USER_ERROR); - - return ''; - } - } - - public function getContents(): string - { - if (!isset($this->stream)) { - throw new \RuntimeException('Stream is detached'); - } - - if (!$this->readable) { - throw new \RuntimeException('Cannot read from non-readable stream'); - } - - return Utils::tryGetContents($this->stream); - } - - public function close(): void - { - if (isset($this->stream)) { - if (is_resource($this->stream)) { - fclose($this->stream); - } - $this->detach(); - } - } - - public function detach() - { - if (!isset($this->stream)) { - return null; - } - - $result = $this->stream; - unset($this->stream); - $this->size = $this->uri = null; - $this->readable = $this->writable = $this->seekable = false; - - return $result; - } - - public function getSize(): ?int - { - if ($this->size !== null) { - return $this->size; - } - - if (!isset($this->stream)) { - return null; - } - - // Clear the stat cache if the stream has a URI - if ($this->uri) { - clearstatcache(true, $this->uri); - } - - $stats = fstat($this->stream); - if (is_array($stats) && isset($stats['size'])) { - $this->size = $stats['size']; - - return $this->size; - } - - return null; - } - - public function isReadable(): bool - { - return $this->readable; - } - - public function isWritable(): bool - { - return $this->writable; - } - - public function isSeekable(): bool - { - return $this->seekable; - } - - public function eof(): bool - { - if (!isset($this->stream)) { - throw new \RuntimeException('Stream is detached'); - } - - return feof($this->stream); - } - - public function tell(): int - { - if (!isset($this->stream)) { - throw new \RuntimeException('Stream is detached'); - } - - $result = ftell($this->stream); - - if ($result === false) { - throw new \RuntimeException('Unable to determine stream position'); - } - - return $result; - } - - public function rewind(): void - { - $this->seek(0); - } - - public function seek($offset, $whence = SEEK_SET): void - { - $whence = (int) $whence; - - if (!isset($this->stream)) { - throw new \RuntimeException('Stream is detached'); - } - if (!$this->seekable) { - throw new \RuntimeException('Stream is not seekable'); - } - if (fseek($this->stream, $offset, $whence) === -1) { - throw new \RuntimeException('Unable to seek to stream position ' - .$offset.' with whence '.var_export($whence, true)); - } - } - - public function read($length): string - { - if (!isset($this->stream)) { - throw new \RuntimeException('Stream is detached'); - } - if (!$this->readable) { - throw new \RuntimeException('Cannot read from non-readable stream'); - } - if ($length < 0) { - throw new \RuntimeException('Length parameter cannot be negative'); - } - - if (0 === $length) { - return ''; - } - - try { - $string = fread($this->stream, $length); - } catch (\Exception $e) { - throw new \RuntimeException('Unable to read from stream', 0, $e); - } - - if (false === $string) { - throw new \RuntimeException('Unable to read from stream'); - } - - return $string; - } - - public function write($string): int - { - if (!isset($this->stream)) { - throw new \RuntimeException('Stream is detached'); - } - if (!$this->writable) { - throw new \RuntimeException('Cannot write to a non-writable stream'); - } - - // We can't know the size after writing anything - $this->size = null; - $result = fwrite($this->stream, $string); - - if ($result === false) { - throw new \RuntimeException('Unable to write to stream'); - } - - return $result; - } - - /** - * @return mixed - */ - public function getMetadata($key = null) - { - if (!isset($this->stream)) { - return $key ? null : []; - } elseif (!$key) { - return $this->customMetadata + stream_get_meta_data($this->stream); - } elseif (isset($this->customMetadata[$key])) { - return $this->customMetadata[$key]; - } - - $meta = stream_get_meta_data($this->stream); - - return $meta[$key] ?? null; - } -} diff --git a/vendor/guzzlehttp/psr7/src/StreamDecoratorTrait.php b/vendor/guzzlehttp/psr7/src/StreamDecoratorTrait.php deleted file mode 100644 index 601c13a..0000000 --- a/vendor/guzzlehttp/psr7/src/StreamDecoratorTrait.php +++ /dev/null @@ -1,156 +0,0 @@ -stream = $stream; - } - - /** - * Magic method used to create a new stream if streams are not added in - * the constructor of a decorator (e.g., LazyOpenStream). - * - * @return StreamInterface - */ - public function __get(string $name) - { - if ($name === 'stream') { - $this->stream = $this->createStream(); - - return $this->stream; - } - - throw new \UnexpectedValueException("$name not found on class"); - } - - public function __toString(): string - { - try { - if ($this->isSeekable()) { - $this->seek(0); - } - - return $this->getContents(); - } catch (\Throwable $e) { - if (\PHP_VERSION_ID >= 70400) { - throw $e; - } - trigger_error(sprintf('%s::__toString exception: %s', self::class, (string) $e), E_USER_ERROR); - - return ''; - } - } - - public function getContents(): string - { - return Utils::copyToString($this); - } - - /** - * Allow decorators to implement custom methods - * - * @return mixed - */ - public function __call(string $method, array $args) - { - /** @var callable $callable */ - $callable = [$this->stream, $method]; - $result = ($callable)(...$args); - - // Always return the wrapped object if the result is a return $this - return $result === $this->stream ? $this : $result; - } - - public function close(): void - { - $this->stream->close(); - } - - /** - * @return mixed - */ - public function getMetadata($key = null) - { - return $this->stream->getMetadata($key); - } - - public function detach() - { - return $this->stream->detach(); - } - - public function getSize(): ?int - { - return $this->stream->getSize(); - } - - public function eof(): bool - { - return $this->stream->eof(); - } - - public function tell(): int - { - return $this->stream->tell(); - } - - public function isReadable(): bool - { - return $this->stream->isReadable(); - } - - public function isWritable(): bool - { - return $this->stream->isWritable(); - } - - public function isSeekable(): bool - { - return $this->stream->isSeekable(); - } - - public function rewind(): void - { - $this->seek(0); - } - - public function seek($offset, $whence = SEEK_SET): void - { - $this->stream->seek($offset, $whence); - } - - public function read($length): string - { - return $this->stream->read($length); - } - - public function write($string): int - { - return $this->stream->write($string); - } - - /** - * Implement in subclasses to dynamically create streams when requested. - * - * @throws \BadMethodCallException - */ - protected function createStream(): StreamInterface - { - throw new \BadMethodCallException('Not implemented'); - } -} diff --git a/vendor/guzzlehttp/psr7/src/StreamWrapper.php b/vendor/guzzlehttp/psr7/src/StreamWrapper.php deleted file mode 100644 index 77b04d7..0000000 --- a/vendor/guzzlehttp/psr7/src/StreamWrapper.php +++ /dev/null @@ -1,207 +0,0 @@ -isReadable()) { - $mode = $stream->isWritable() ? 'r+' : 'r'; - } elseif ($stream->isWritable()) { - $mode = 'w'; - } else { - throw new \InvalidArgumentException('The stream must be readable, ' - .'writable, or both.'); - } - - return fopen('guzzle://stream', $mode, false, self::createStreamContext($stream)); - } - - /** - * Creates a stream context that can be used to open a stream as a php stream resource. - * - * @return resource - */ - public static function createStreamContext(StreamInterface $stream) - { - return stream_context_create([ - 'guzzle' => ['stream' => $stream], - ]); - } - - /** - * Registers the stream wrapper if needed - */ - public static function register(): void - { - if (!in_array('guzzle', stream_get_wrappers())) { - stream_wrapper_register('guzzle', __CLASS__); - } - } - - public function stream_open(string $path, string $mode, int $options, ?string &$opened_path = null): bool - { - $options = stream_context_get_options($this->context); - - if (!isset($options['guzzle']['stream'])) { - return false; - } - - $this->mode = $mode; - $this->stream = $options['guzzle']['stream']; - - return true; - } - - public function stream_read(int $count): string - { - return $this->stream->read($count); - } - - public function stream_write(string $data): int - { - return $this->stream->write($data); - } - - public function stream_tell(): int - { - return $this->stream->tell(); - } - - public function stream_eof(): bool - { - return $this->stream->eof(); - } - - public function stream_seek(int $offset, int $whence): bool - { - $this->stream->seek($offset, $whence); - - return true; - } - - /** - * @return resource|false - */ - public function stream_cast(int $cast_as) - { - $stream = clone $this->stream; - $resource = $stream->detach(); - - return $resource ?? false; - } - - /** - * @return array{ - * dev: int, - * ino: int, - * mode: int, - * nlink: int, - * uid: int, - * gid: int, - * rdev: int, - * size: int, - * atime: int, - * mtime: int, - * ctime: int, - * blksize: int, - * blocks: int - * }|false - */ - public function stream_stat() - { - if ($this->stream->getSize() === null) { - return false; - } - - static $modeMap = [ - 'r' => 33060, - 'rb' => 33060, - 'r+' => 33206, - 'w' => 33188, - 'wb' => 33188, - ]; - - return [ - 'dev' => 0, - 'ino' => 0, - 'mode' => $modeMap[$this->mode], - 'nlink' => 0, - 'uid' => 0, - 'gid' => 0, - 'rdev' => 0, - 'size' => $this->stream->getSize() ?: 0, - 'atime' => 0, - 'mtime' => 0, - 'ctime' => 0, - 'blksize' => 0, - 'blocks' => 0, - ]; - } - - /** - * @return array{ - * dev: int, - * ino: int, - * mode: int, - * nlink: int, - * uid: int, - * gid: int, - * rdev: int, - * size: int, - * atime: int, - * mtime: int, - * ctime: int, - * blksize: int, - * blocks: int - * } - */ - public function url_stat(string $path, int $flags): array - { - return [ - 'dev' => 0, - 'ino' => 0, - 'mode' => 0, - 'nlink' => 0, - 'uid' => 0, - 'gid' => 0, - 'rdev' => 0, - 'size' => 0, - 'atime' => 0, - 'mtime' => 0, - 'ctime' => 0, - 'blksize' => 0, - 'blocks' => 0, - ]; - } -} diff --git a/vendor/guzzlehttp/psr7/src/UploadedFile.php b/vendor/guzzlehttp/psr7/src/UploadedFile.php deleted file mode 100644 index 9c9ea49..0000000 --- a/vendor/guzzlehttp/psr7/src/UploadedFile.php +++ /dev/null @@ -1,211 +0,0 @@ -setError($errorStatus); - $this->size = $size; - $this->clientFilename = $clientFilename; - $this->clientMediaType = $clientMediaType; - - if ($this->isOk()) { - $this->setStreamOrFile($streamOrFile); - } - } - - /** - * Depending on the value set file or stream variable - * - * @param StreamInterface|string|resource $streamOrFile - * - * @throws InvalidArgumentException - */ - private function setStreamOrFile($streamOrFile): void - { - if (is_string($streamOrFile)) { - $this->file = $streamOrFile; - } elseif (is_resource($streamOrFile)) { - $this->stream = new Stream($streamOrFile); - } elseif ($streamOrFile instanceof StreamInterface) { - $this->stream = $streamOrFile; - } else { - throw new InvalidArgumentException( - 'Invalid stream or file provided for UploadedFile' - ); - } - } - - /** - * @throws InvalidArgumentException - */ - private function setError(int $error): void - { - if (false === in_array($error, UploadedFile::ERRORS, true)) { - throw new InvalidArgumentException( - 'Invalid error status for UploadedFile' - ); - } - - $this->error = $error; - } - - private static function isStringNotEmpty($param): bool - { - return is_string($param) && false === empty($param); - } - - /** - * Return true if there is no upload error - */ - private function isOk(): bool - { - return $this->error === UPLOAD_ERR_OK; - } - - public function isMoved(): bool - { - return $this->moved; - } - - /** - * @throws RuntimeException if is moved or not ok - */ - private function validateActive(): void - { - if (false === $this->isOk()) { - throw new RuntimeException('Cannot retrieve stream due to upload error'); - } - - if ($this->isMoved()) { - throw new RuntimeException('Cannot retrieve stream after it has already been moved'); - } - } - - public function getStream(): StreamInterface - { - $this->validateActive(); - - if ($this->stream instanceof StreamInterface) { - return $this->stream; - } - - /** @var string $file */ - $file = $this->file; - - return new LazyOpenStream($file, 'r+'); - } - - public function moveTo($targetPath): void - { - $this->validateActive(); - - if (false === self::isStringNotEmpty($targetPath)) { - throw new InvalidArgumentException( - 'Invalid path provided for move operation; must be a non-empty string' - ); - } - - if ($this->file) { - $this->moved = PHP_SAPI === 'cli' - ? rename($this->file, $targetPath) - : move_uploaded_file($this->file, $targetPath); - } else { - Utils::copyToStream( - $this->getStream(), - new LazyOpenStream($targetPath, 'w') - ); - - $this->moved = true; - } - - if (false === $this->moved) { - throw new RuntimeException( - sprintf('Uploaded file could not be moved to %s', $targetPath) - ); - } - } - - public function getSize(): ?int - { - return $this->size; - } - - public function getError(): int - { - return $this->error; - } - - public function getClientFilename(): ?string - { - return $this->clientFilename; - } - - public function getClientMediaType(): ?string - { - return $this->clientMediaType; - } -} diff --git a/vendor/guzzlehttp/psr7/src/Uri.php b/vendor/guzzlehttp/psr7/src/Uri.php deleted file mode 100644 index 481dfca..0000000 --- a/vendor/guzzlehttp/psr7/src/Uri.php +++ /dev/null @@ -1,743 +0,0 @@ - 80, - 'https' => 443, - 'ftp' => 21, - 'gopher' => 70, - 'nntp' => 119, - 'news' => 119, - 'telnet' => 23, - 'tn3270' => 23, - 'imap' => 143, - 'pop' => 110, - 'ldap' => 389, - ]; - - /** - * Unreserved characters for use in a regex. - * - * @see https://datatracker.ietf.org/doc/html/rfc3986#section-2.3 - */ - private const CHAR_UNRESERVED = 'a-zA-Z0-9_\-\.~'; - - /** - * Sub-delims for use in a regex. - * - * @see https://datatracker.ietf.org/doc/html/rfc3986#section-2.2 - */ - private const CHAR_SUB_DELIMS = '!\$&\'\(\)\*\+,;='; - private const QUERY_SEPARATORS_REPLACEMENT = ['=' => '%3D', '&' => '%26']; - - /** @var string Uri scheme. */ - private $scheme = ''; - - /** @var string Uri user info. */ - private $userInfo = ''; - - /** @var string Uri host. */ - private $host = ''; - - /** @var int|null Uri port. */ - private $port; - - /** @var string Uri path. */ - private $path = ''; - - /** @var string Uri query string. */ - private $query = ''; - - /** @var string Uri fragment. */ - private $fragment = ''; - - /** @var string|null String representation */ - private $composedComponents; - - public function __construct(string $uri = '') - { - if ($uri !== '') { - $parts = self::parse($uri); - if ($parts === false) { - throw new MalformedUriException("Unable to parse URI: $uri"); - } - $this->applyParts($parts); - } - } - - /** - * UTF-8 aware \parse_url() replacement. - * - * The internal function produces broken output for non ASCII domain names - * (IDN) when used with locales other than "C". - * - * On the other hand, cURL understands IDN correctly only when UTF-8 locale - * is configured ("C.UTF-8", "en_US.UTF-8", etc.). - * - * @see https://bugs.php.net/bug.php?id=52923 - * @see https://www.php.net/manual/en/function.parse-url.php#114817 - * @see https://curl.haxx.se/libcurl/c/CURLOPT_URL.html#ENCODING - * - * @return array|false - */ - private static function parse(string $url) - { - // If IPv6 - $prefix = ''; - if (preg_match('%^(.*://\[[0-9:a-f]+\])(.*?)$%', $url, $matches)) { - /** @var array{0:string, 1:string, 2:string} $matches */ - $prefix = $matches[1]; - $url = $matches[2]; - } - - /** @var string */ - $encodedUrl = preg_replace_callback( - '%[^:/@?&=#]+%usD', - static function ($matches) { - return urlencode($matches[0]); - }, - $url - ); - - $result = parse_url($prefix.$encodedUrl); - - if ($result === false) { - return false; - } - - return array_map('urldecode', $result); - } - - public function __toString(): string - { - if ($this->composedComponents === null) { - $this->composedComponents = self::composeComponents( - $this->scheme, - $this->getAuthority(), - $this->path, - $this->query, - $this->fragment - ); - } - - return $this->composedComponents; - } - - /** - * Composes a URI reference string from its various components. - * - * Usually this method does not need to be called manually but instead is used indirectly via - * `Psr\Http\Message\UriInterface::__toString`. - * - * PSR-7 UriInterface treats an empty component the same as a missing component as - * getQuery(), getFragment() etc. always return a string. This explains the slight - * difference to RFC 3986 Section 5.3. - * - * Another adjustment is that the authority separator is added even when the authority is missing/empty - * for the "file" scheme. This is because PHP stream functions like `file_get_contents` only work with - * `file:///myfile` but not with `file:/myfile` although they are equivalent according to RFC 3986. But - * `file:///` is the more common syntax for the file scheme anyway (Chrome for example redirects to - * that format). - * - * @see https://datatracker.ietf.org/doc/html/rfc3986#section-5.3 - */ - public static function composeComponents(?string $scheme, ?string $authority, string $path, ?string $query, ?string $fragment): string - { - $uri = ''; - - // weak type checks to also accept null until we can add scalar type hints - if ($scheme != '') { - $uri .= $scheme.':'; - } - - if ($authority != '' || $scheme === 'file') { - $uri .= '//'.$authority; - } - - if ($authority != '' && $path != '' && $path[0] != '/') { - $path = '/'.$path; - } - - $uri .= $path; - - if ($query != '') { - $uri .= '?'.$query; - } - - if ($fragment != '') { - $uri .= '#'.$fragment; - } - - return $uri; - } - - /** - * Whether the URI has the default port of the current scheme. - * - * `Psr\Http\Message\UriInterface::getPort` may return null or the standard port. This method can be used - * independently of the implementation. - */ - public static function isDefaultPort(UriInterface $uri): bool - { - return $uri->getPort() === null - || (isset(self::DEFAULT_PORTS[$uri->getScheme()]) && $uri->getPort() === self::DEFAULT_PORTS[$uri->getScheme()]); - } - - /** - * Whether the URI is absolute, i.e. it has a scheme. - * - * An instance of UriInterface can either be an absolute URI or a relative reference. This method returns true - * if it is the former. An absolute URI has a scheme. A relative reference is used to express a URI relative - * to another URI, the base URI. Relative references can be divided into several forms: - * - network-path references, e.g. '//example.com/path' - * - absolute-path references, e.g. '/path' - * - relative-path references, e.g. 'subpath' - * - * @see Uri::isNetworkPathReference - * @see Uri::isAbsolutePathReference - * @see Uri::isRelativePathReference - * @see https://datatracker.ietf.org/doc/html/rfc3986#section-4 - */ - public static function isAbsolute(UriInterface $uri): bool - { - return $uri->getScheme() !== ''; - } - - /** - * Whether the URI is a network-path reference. - * - * A relative reference that begins with two slash characters is termed an network-path reference. - * - * @see https://datatracker.ietf.org/doc/html/rfc3986#section-4.2 - */ - public static function isNetworkPathReference(UriInterface $uri): bool - { - return $uri->getScheme() === '' && $uri->getAuthority() !== ''; - } - - /** - * Whether the URI is a absolute-path reference. - * - * A relative reference that begins with a single slash character is termed an absolute-path reference. - * - * @see https://datatracker.ietf.org/doc/html/rfc3986#section-4.2 - */ - public static function isAbsolutePathReference(UriInterface $uri): bool - { - return $uri->getScheme() === '' - && $uri->getAuthority() === '' - && isset($uri->getPath()[0]) - && $uri->getPath()[0] === '/'; - } - - /** - * Whether the URI is a relative-path reference. - * - * A relative reference that does not begin with a slash character is termed a relative-path reference. - * - * @see https://datatracker.ietf.org/doc/html/rfc3986#section-4.2 - */ - public static function isRelativePathReference(UriInterface $uri): bool - { - return $uri->getScheme() === '' - && $uri->getAuthority() === '' - && (!isset($uri->getPath()[0]) || $uri->getPath()[0] !== '/'); - } - - /** - * Whether the URI is a same-document reference. - * - * A same-document reference refers to a URI that is, aside from its fragment - * component, identical to the base URI. When no base URI is given, only an empty - * URI reference (apart from its fragment) is considered a same-document reference. - * - * @param UriInterface $uri The URI to check - * @param UriInterface|null $base An optional base URI to compare against - * - * @see https://datatracker.ietf.org/doc/html/rfc3986#section-4.4 - */ - public static function isSameDocumentReference(UriInterface $uri, ?UriInterface $base = null): bool - { - if ($base !== null) { - $uri = UriResolver::resolve($base, $uri); - - return ($uri->getScheme() === $base->getScheme()) - && ($uri->getAuthority() === $base->getAuthority()) - && ($uri->getPath() === $base->getPath()) - && ($uri->getQuery() === $base->getQuery()); - } - - return $uri->getScheme() === '' && $uri->getAuthority() === '' && $uri->getPath() === '' && $uri->getQuery() === ''; - } - - /** - * Creates a new URI with a specific query string value removed. - * - * Any existing query string values that exactly match the provided key are - * removed. - * - * @param UriInterface $uri URI to use as a base. - * @param string $key Query string key to remove. - */ - public static function withoutQueryValue(UriInterface $uri, string $key): UriInterface - { - $result = self::getFilteredQueryString($uri, [$key]); - - return $uri->withQuery(implode('&', $result)); - } - - /** - * Creates a new URI with a specific query string value. - * - * Any existing query string values that exactly match the provided key are - * removed and replaced with the given key value pair. - * - * A value of null will set the query string key without a value, e.g. "key" - * instead of "key=value". - * - * @param UriInterface $uri URI to use as a base. - * @param string $key Key to set. - * @param string|null $value Value to set - */ - public static function withQueryValue(UriInterface $uri, string $key, ?string $value): UriInterface - { - $result = self::getFilteredQueryString($uri, [$key]); - - $result[] = self::generateQueryString($key, $value); - - return $uri->withQuery(implode('&', $result)); - } - - /** - * Creates a new URI with multiple specific query string values. - * - * It has the same behavior as withQueryValue() but for an associative array of key => value. - * - * @param UriInterface $uri URI to use as a base. - * @param (string|null)[] $keyValueArray Associative array of key and values - */ - public static function withQueryValues(UriInterface $uri, array $keyValueArray): UriInterface - { - $result = self::getFilteredQueryString($uri, array_keys($keyValueArray)); - - foreach ($keyValueArray as $key => $value) { - $result[] = self::generateQueryString((string) $key, $value !== null ? (string) $value : null); - } - - return $uri->withQuery(implode('&', $result)); - } - - /** - * Creates a URI from a hash of `parse_url` components. - * - * @see https://www.php.net/manual/en/function.parse-url.php - * - * @throws MalformedUriException If the components do not form a valid URI. - */ - public static function fromParts(array $parts): UriInterface - { - $uri = new self(); - $uri->applyParts($parts); - $uri->validateState(); - - return $uri; - } - - public function getScheme(): string - { - return $this->scheme; - } - - public function getAuthority(): string - { - $authority = $this->host; - if ($this->userInfo !== '') { - $authority = $this->userInfo.'@'.$authority; - } - - if ($this->port !== null) { - $authority .= ':'.$this->port; - } - - return $authority; - } - - public function getUserInfo(): string - { - return $this->userInfo; - } - - public function getHost(): string - { - return $this->host; - } - - public function getPort(): ?int - { - return $this->port; - } - - public function getPath(): string - { - return $this->path; - } - - public function getQuery(): string - { - return $this->query; - } - - public function getFragment(): string - { - return $this->fragment; - } - - public function withScheme($scheme): UriInterface - { - $scheme = $this->filterScheme($scheme); - - if ($this->scheme === $scheme) { - return $this; - } - - $new = clone $this; - $new->scheme = $scheme; - $new->composedComponents = null; - $new->removeDefaultPort(); - $new->validateState(); - - return $new; - } - - public function withUserInfo($user, $password = null): UriInterface - { - $info = $this->filterUserInfoComponent($user); - if ($password !== null) { - $info .= ':'.$this->filterUserInfoComponent($password); - } - - if ($this->userInfo === $info) { - return $this; - } - - $new = clone $this; - $new->userInfo = $info; - $new->composedComponents = null; - $new->validateState(); - - return $new; - } - - public function withHost($host): UriInterface - { - $host = $this->filterHost($host); - - if ($this->host === $host) { - return $this; - } - - $new = clone $this; - $new->host = $host; - $new->composedComponents = null; - $new->validateState(); - - return $new; - } - - public function withPort($port): UriInterface - { - $port = $this->filterPort($port); - - if ($this->port === $port) { - return $this; - } - - $new = clone $this; - $new->port = $port; - $new->composedComponents = null; - $new->removeDefaultPort(); - $new->validateState(); - - return $new; - } - - public function withPath($path): UriInterface - { - $path = $this->filterPath($path); - - if ($this->path === $path) { - return $this; - } - - $new = clone $this; - $new->path = $path; - $new->composedComponents = null; - $new->validateState(); - - return $new; - } - - public function withQuery($query): UriInterface - { - $query = $this->filterQueryAndFragment($query); - - if ($this->query === $query) { - return $this; - } - - $new = clone $this; - $new->query = $query; - $new->composedComponents = null; - - return $new; - } - - public function withFragment($fragment): UriInterface - { - $fragment = $this->filterQueryAndFragment($fragment); - - if ($this->fragment === $fragment) { - return $this; - } - - $new = clone $this; - $new->fragment = $fragment; - $new->composedComponents = null; - - return $new; - } - - public function jsonSerialize(): string - { - return $this->__toString(); - } - - /** - * Apply parse_url parts to a URI. - * - * @param array $parts Array of parse_url parts to apply. - */ - private function applyParts(array $parts): void - { - $this->scheme = isset($parts['scheme']) - ? $this->filterScheme($parts['scheme']) - : ''; - $this->userInfo = isset($parts['user']) - ? $this->filterUserInfoComponent($parts['user']) - : ''; - $this->host = isset($parts['host']) - ? $this->filterHost($parts['host']) - : ''; - $this->port = isset($parts['port']) - ? $this->filterPort($parts['port']) - : null; - $this->path = isset($parts['path']) - ? $this->filterPath($parts['path']) - : ''; - $this->query = isset($parts['query']) - ? $this->filterQueryAndFragment($parts['query']) - : ''; - $this->fragment = isset($parts['fragment']) - ? $this->filterQueryAndFragment($parts['fragment']) - : ''; - if (isset($parts['pass'])) { - $this->userInfo .= ':'.$this->filterUserInfoComponent($parts['pass']); - } - - $this->removeDefaultPort(); - } - - /** - * @param mixed $scheme - * - * @throws \InvalidArgumentException If the scheme is invalid. - */ - private function filterScheme($scheme): string - { - if (!is_string($scheme)) { - throw new \InvalidArgumentException('Scheme must be a string'); - } - - return \strtr($scheme, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'); - } - - /** - * @param mixed $component - * - * @throws \InvalidArgumentException If the user info is invalid. - */ - private function filterUserInfoComponent($component): string - { - if (!is_string($component)) { - throw new \InvalidArgumentException('User info must be a string'); - } - - return preg_replace_callback( - '/(?:[^%'.self::CHAR_UNRESERVED.self::CHAR_SUB_DELIMS.']+|%(?![A-Fa-f0-9]{2}))/', - [$this, 'rawurlencodeMatchZero'], - $component - ); - } - - /** - * @param mixed $host - * - * @throws \InvalidArgumentException If the host is invalid. - */ - private function filterHost($host): string - { - if (!is_string($host)) { - throw new \InvalidArgumentException('Host must be a string'); - } - - return \strtr($host, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'); - } - - /** - * @param mixed $port - * - * @throws \InvalidArgumentException If the port is invalid. - */ - private function filterPort($port): ?int - { - if ($port === null) { - return null; - } - - $port = (int) $port; - if (0 > $port || 0xFFFF < $port) { - throw new \InvalidArgumentException( - sprintf('Invalid port: %d. Must be between 0 and 65535', $port) - ); - } - - return $port; - } - - /** - * @param (string|int)[] $keys - * - * @return string[] - */ - private static function getFilteredQueryString(UriInterface $uri, array $keys): array - { - $current = $uri->getQuery(); - - if ($current === '') { - return []; - } - - $decodedKeys = array_map(function ($k): string { - return rawurldecode((string) $k); - }, $keys); - - return array_filter(explode('&', $current), function ($part) use ($decodedKeys) { - return !in_array(rawurldecode(explode('=', $part)[0]), $decodedKeys, true); - }); - } - - private static function generateQueryString(string $key, ?string $value): string - { - // Query string separators ("=", "&") within the key or value need to be encoded - // (while preventing double-encoding) before setting the query string. All other - // chars that need percent-encoding will be encoded by withQuery(). - $queryString = strtr($key, self::QUERY_SEPARATORS_REPLACEMENT); - - if ($value !== null) { - $queryString .= '='.strtr($value, self::QUERY_SEPARATORS_REPLACEMENT); - } - - return $queryString; - } - - private function removeDefaultPort(): void - { - if ($this->port !== null && self::isDefaultPort($this)) { - $this->port = null; - } - } - - /** - * Filters the path of a URI - * - * @param mixed $path - * - * @throws \InvalidArgumentException If the path is invalid. - */ - private function filterPath($path): string - { - if (!is_string($path)) { - throw new \InvalidArgumentException('Path must be a string'); - } - - return preg_replace_callback( - '/(?:[^'.self::CHAR_UNRESERVED.self::CHAR_SUB_DELIMS.'%:@\/]++|%(?![A-Fa-f0-9]{2}))/', - [$this, 'rawurlencodeMatchZero'], - $path - ); - } - - /** - * Filters the query string or fragment of a URI. - * - * @param mixed $str - * - * @throws \InvalidArgumentException If the query or fragment is invalid. - */ - private function filterQueryAndFragment($str): string - { - if (!is_string($str)) { - throw new \InvalidArgumentException('Query and fragment must be a string'); - } - - return preg_replace_callback( - '/(?:[^'.self::CHAR_UNRESERVED.self::CHAR_SUB_DELIMS.'%:@\/\?]++|%(?![A-Fa-f0-9]{2}))/', - [$this, 'rawurlencodeMatchZero'], - $str - ); - } - - private function rawurlencodeMatchZero(array $match): string - { - return rawurlencode($match[0]); - } - - private function validateState(): void - { - if ($this->host === '' && ($this->scheme === 'http' || $this->scheme === 'https')) { - $this->host = self::HTTP_DEFAULT_HOST; - } - - if ($this->getAuthority() === '') { - if (0 === strpos($this->path, '//')) { - throw new MalformedUriException('The path of a URI without an authority must not start with two slashes "//"'); - } - if ($this->scheme === '' && false !== strpos(explode('/', $this->path, 2)[0], ':')) { - throw new MalformedUriException('A relative URI must not have a path beginning with a segment containing a colon'); - } - } - } -} diff --git a/vendor/guzzlehttp/psr7/src/UriComparator.php b/vendor/guzzlehttp/psr7/src/UriComparator.php deleted file mode 100644 index 70c582a..0000000 --- a/vendor/guzzlehttp/psr7/src/UriComparator.php +++ /dev/null @@ -1,52 +0,0 @@ -getHost(), $modified->getHost()) !== 0) { - return true; - } - - if ($original->getScheme() !== $modified->getScheme()) { - return true; - } - - if (self::computePort($original) !== self::computePort($modified)) { - return true; - } - - return false; - } - - private static function computePort(UriInterface $uri): int - { - $port = $uri->getPort(); - - if (null !== $port) { - return $port; - } - - return 'https' === $uri->getScheme() ? 443 : 80; - } - - private function __construct() - { - // cannot be instantiated - } -} diff --git a/vendor/guzzlehttp/psr7/src/UriNormalizer.php b/vendor/guzzlehttp/psr7/src/UriNormalizer.php deleted file mode 100644 index e174557..0000000 --- a/vendor/guzzlehttp/psr7/src/UriNormalizer.php +++ /dev/null @@ -1,220 +0,0 @@ -getPath() === '' - && ($uri->getScheme() === 'http' || $uri->getScheme() === 'https') - ) { - $uri = $uri->withPath('/'); - } - - if ($flags & self::REMOVE_DEFAULT_HOST && $uri->getScheme() === 'file' && $uri->getHost() === 'localhost') { - $uri = $uri->withHost(''); - } - - if ($flags & self::REMOVE_DEFAULT_PORT && $uri->getPort() !== null && Uri::isDefaultPort($uri)) { - $uri = $uri->withPort(null); - } - - if ($flags & self::REMOVE_DOT_SEGMENTS && !Uri::isRelativePathReference($uri)) { - $uri = $uri->withPath(UriResolver::removeDotSegments($uri->getPath())); - } - - if ($flags & self::REMOVE_DUPLICATE_SLASHES) { - $uri = $uri->withPath(preg_replace('#//++#', '/', $uri->getPath())); - } - - if ($flags & self::SORT_QUERY_PARAMETERS && $uri->getQuery() !== '') { - $queryKeyValues = explode('&', $uri->getQuery()); - sort($queryKeyValues); - $uri = $uri->withQuery(implode('&', $queryKeyValues)); - } - - return $uri; - } - - /** - * Whether two URIs can be considered equivalent. - * - * Both URIs are normalized automatically before comparison with the given $normalizations bitmask. The method also - * accepts relative URI references and returns true when they are equivalent. This of course assumes they will be - * resolved against the same base URI. If this is not the case, determination of equivalence or difference of - * relative references does not mean anything. - * - * @param UriInterface $uri1 An URI to compare - * @param UriInterface $uri2 An URI to compare - * @param int $normalizations A bitmask of normalizations to apply, see constants - * - * @see https://datatracker.ietf.org/doc/html/rfc3986#section-6.1 - */ - public static function isEquivalent(UriInterface $uri1, UriInterface $uri2, int $normalizations = self::PRESERVING_NORMALIZATIONS): bool - { - return (string) self::normalize($uri1, $normalizations) === (string) self::normalize($uri2, $normalizations); - } - - private static function capitalizePercentEncoding(UriInterface $uri): UriInterface - { - $regex = '/(?:%[A-Fa-f0-9]{2})++/'; - - $callback = function (array $match): string { - return strtoupper($match[0]); - }; - - return - $uri->withPath( - preg_replace_callback($regex, $callback, $uri->getPath()) - )->withQuery( - preg_replace_callback($regex, $callback, $uri->getQuery()) - ); - } - - private static function decodeUnreservedCharacters(UriInterface $uri): UriInterface - { - $regex = '/%(?:2D|2E|5F|7E|3[0-9]|[46][1-9A-F]|[57][0-9A])/i'; - - $callback = function (array $match): string { - return rawurldecode($match[0]); - }; - - return - $uri->withPath( - preg_replace_callback($regex, $callback, $uri->getPath()) - )->withQuery( - preg_replace_callback($regex, $callback, $uri->getQuery()) - ); - } - - private function __construct() - { - // cannot be instantiated - } -} diff --git a/vendor/guzzlehttp/psr7/src/UriResolver.php b/vendor/guzzlehttp/psr7/src/UriResolver.php deleted file mode 100644 index 3737be1..0000000 --- a/vendor/guzzlehttp/psr7/src/UriResolver.php +++ /dev/null @@ -1,211 +0,0 @@ -getScheme() != '') { - return $rel->withPath(self::removeDotSegments($rel->getPath())); - } - - if ($rel->getAuthority() != '') { - $targetAuthority = $rel->getAuthority(); - $targetPath = self::removeDotSegments($rel->getPath()); - $targetQuery = $rel->getQuery(); - } else { - $targetAuthority = $base->getAuthority(); - if ($rel->getPath() === '') { - $targetPath = $base->getPath(); - $targetQuery = $rel->getQuery() != '' ? $rel->getQuery() : $base->getQuery(); - } else { - if ($rel->getPath()[0] === '/') { - $targetPath = $rel->getPath(); - } else { - if ($targetAuthority != '' && $base->getPath() === '') { - $targetPath = '/'.$rel->getPath(); - } else { - $lastSlashPos = strrpos($base->getPath(), '/'); - if ($lastSlashPos === false) { - $targetPath = $rel->getPath(); - } else { - $targetPath = substr($base->getPath(), 0, $lastSlashPos + 1).$rel->getPath(); - } - } - } - $targetPath = self::removeDotSegments($targetPath); - $targetQuery = $rel->getQuery(); - } - } - - return new Uri(Uri::composeComponents( - $base->getScheme(), - $targetAuthority, - $targetPath, - $targetQuery, - $rel->getFragment() - )); - } - - /** - * Returns the target URI as a relative reference from the base URI. - * - * This method is the counterpart to resolve(): - * - * (string) $target === (string) UriResolver::resolve($base, UriResolver::relativize($base, $target)) - * - * One use-case is to use the current request URI as base URI and then generate relative links in your documents - * to reduce the document size or offer self-contained downloadable document archives. - * - * $base = new Uri('http://example.com/a/b/'); - * echo UriResolver::relativize($base, new Uri('http://example.com/a/b/c')); // prints 'c'. - * echo UriResolver::relativize($base, new Uri('http://example.com/a/x/y')); // prints '../x/y'. - * echo UriResolver::relativize($base, new Uri('http://example.com/a/b/?q')); // prints '?q'. - * echo UriResolver::relativize($base, new Uri('http://example.org/a/b/')); // prints '//example.org/a/b/'. - * - * This method also accepts a target that is already relative and will try to relativize it further. Only a - * relative-path reference will be returned as-is. - * - * echo UriResolver::relativize($base, new Uri('/a/b/c')); // prints 'c' as well - */ - public static function relativize(UriInterface $base, UriInterface $target): UriInterface - { - if ($target->getScheme() !== '' - && ($base->getScheme() !== $target->getScheme() || $target->getAuthority() === '' && $base->getAuthority() !== '') - ) { - return $target; - } - - if (Uri::isRelativePathReference($target)) { - // As the target is already highly relative we return it as-is. It would be possible to resolve - // the target with `$target = self::resolve($base, $target);` and then try make it more relative - // by removing a duplicate query. But let's not do that automatically. - return $target; - } - - if ($target->getAuthority() !== '' && $base->getAuthority() !== $target->getAuthority()) { - return $target->withScheme(''); - } - - // We must remove the path before removing the authority because if the path starts with two slashes, the URI - // would turn invalid. And we also cannot set a relative path before removing the authority, as that is also - // invalid. - $emptyPathUri = $target->withScheme('')->withPath('')->withUserInfo('')->withPort(null)->withHost(''); - - if ($base->getPath() !== $target->getPath()) { - return $emptyPathUri->withPath(self::getRelativePath($base, $target)); - } - - if ($base->getQuery() === $target->getQuery()) { - // Only the target fragment is left. And it must be returned even if base and target fragment are the same. - return $emptyPathUri->withQuery(''); - } - - // If the base URI has a query but the target has none, we cannot return an empty path reference as it would - // inherit the base query component when resolving. - if ($target->getQuery() === '') { - $segments = explode('/', $target->getPath()); - /** @var string $lastSegment */ - $lastSegment = end($segments); - - return $emptyPathUri->withPath($lastSegment === '' ? './' : $lastSegment); - } - - return $emptyPathUri; - } - - private static function getRelativePath(UriInterface $base, UriInterface $target): string - { - $sourceSegments = explode('/', $base->getPath()); - $targetSegments = explode('/', $target->getPath()); - array_pop($sourceSegments); - $targetLastSegment = array_pop($targetSegments); - foreach ($sourceSegments as $i => $segment) { - if (isset($targetSegments[$i]) && $segment === $targetSegments[$i]) { - unset($sourceSegments[$i], $targetSegments[$i]); - } else { - break; - } - } - $targetSegments[] = $targetLastSegment; - $relativePath = str_repeat('../', count($sourceSegments)).implode('/', $targetSegments); - - // A reference to am empty last segment or an empty first sub-segment must be prefixed with "./". - // This also applies to a segment with a colon character (e.g., "file:colon") that cannot be used - // as the first segment of a relative-path reference, as it would be mistaken for a scheme name. - if ('' === $relativePath || false !== strpos(explode('/', $relativePath, 2)[0], ':')) { - $relativePath = "./$relativePath"; - } elseif ('/' === $relativePath[0]) { - if ($base->getAuthority() != '' && $base->getPath() === '') { - // In this case an extra slash is added by resolve() automatically. So we must not add one here. - $relativePath = ".$relativePath"; - } else { - $relativePath = "./$relativePath"; - } - } - - return $relativePath; - } - - private function __construct() - { - // cannot be instantiated - } -} diff --git a/vendor/guzzlehttp/psr7/src/Utils.php b/vendor/guzzlehttp/psr7/src/Utils.php deleted file mode 100644 index 7682d2c..0000000 --- a/vendor/guzzlehttp/psr7/src/Utils.php +++ /dev/null @@ -1,477 +0,0 @@ - $v) { - if (!in_array(strtolower((string) $k), $keys)) { - $result[$k] = $v; - } - } - - return $result; - } - - /** - * Copy the contents of a stream into another stream until the given number - * of bytes have been read. - * - * @param StreamInterface $source Stream to read from - * @param StreamInterface $dest Stream to write to - * @param int $maxLen Maximum number of bytes to read. Pass -1 - * to read the entire stream. - * - * @throws \RuntimeException on error. - */ - public static function copyToStream(StreamInterface $source, StreamInterface $dest, int $maxLen = -1): void - { - $bufferSize = 8192; - - if ($maxLen === -1) { - while (!$source->eof()) { - if (!$dest->write($source->read($bufferSize))) { - break; - } - } - } else { - $remaining = $maxLen; - while ($remaining > 0 && !$source->eof()) { - $buf = $source->read(min($bufferSize, $remaining)); - $len = strlen($buf); - if (!$len) { - break; - } - $remaining -= $len; - $dest->write($buf); - } - } - } - - /** - * Copy the contents of a stream into a string until the given number of - * bytes have been read. - * - * @param StreamInterface $stream Stream to read - * @param int $maxLen Maximum number of bytes to read. Pass -1 - * to read the entire stream. - * - * @throws \RuntimeException on error. - */ - public static function copyToString(StreamInterface $stream, int $maxLen = -1): string - { - $buffer = ''; - - if ($maxLen === -1) { - while (!$stream->eof()) { - $buf = $stream->read(1048576); - if ($buf === '') { - break; - } - $buffer .= $buf; - } - - return $buffer; - } - - $len = 0; - while (!$stream->eof() && $len < $maxLen) { - $buf = $stream->read($maxLen - $len); - if ($buf === '') { - break; - } - $buffer .= $buf; - $len = strlen($buffer); - } - - return $buffer; - } - - /** - * Calculate a hash of a stream. - * - * This method reads the entire stream to calculate a rolling hash, based - * on PHP's `hash_init` functions. - * - * @param StreamInterface $stream Stream to calculate the hash for - * @param string $algo Hash algorithm (e.g. md5, crc32, etc) - * @param bool $rawOutput Whether or not to use raw output - * - * @throws \RuntimeException on error. - */ - public static function hash(StreamInterface $stream, string $algo, bool $rawOutput = false): string - { - $pos = $stream->tell(); - - if ($pos > 0) { - $stream->rewind(); - } - - $ctx = hash_init($algo); - while (!$stream->eof()) { - hash_update($ctx, $stream->read(1048576)); - } - - $out = hash_final($ctx, $rawOutput); - $stream->seek($pos); - - return $out; - } - - /** - * Clone and modify a request with the given changes. - * - * This method is useful for reducing the number of clones needed to mutate - * a message. - * - * The changes can be one of: - * - method: (string) Changes the HTTP method. - * - set_headers: (array) Sets the given headers. - * - remove_headers: (array) Remove the given headers. - * - body: (mixed) Sets the given body. - * - uri: (UriInterface) Set the URI. - * - query: (string) Set the query string value of the URI. - * - version: (string) Set the protocol version. - * - * @param RequestInterface $request Request to clone and modify. - * @param array $changes Changes to apply. - */ - public static function modifyRequest(RequestInterface $request, array $changes): RequestInterface - { - if (!$changes) { - return $request; - } - - $headers = $request->getHeaders(); - - if (!isset($changes['uri'])) { - $uri = $request->getUri(); - } else { - // Remove the host header if one is on the URI - if ($host = $changes['uri']->getHost()) { - $changes['set_headers']['Host'] = $host; - - if ($port = $changes['uri']->getPort()) { - $standardPorts = ['http' => 80, 'https' => 443]; - $scheme = $changes['uri']->getScheme(); - if (isset($standardPorts[$scheme]) && $port != $standardPorts[$scheme]) { - $changes['set_headers']['Host'] .= ':'.$port; - } - } - } - $uri = $changes['uri']; - } - - if (!empty($changes['remove_headers'])) { - $headers = self::caselessRemove($changes['remove_headers'], $headers); - } - - if (!empty($changes['set_headers'])) { - $headers = self::caselessRemove(array_keys($changes['set_headers']), $headers); - $headers = $changes['set_headers'] + $headers; - } - - if (isset($changes['query'])) { - $uri = $uri->withQuery($changes['query']); - } - - if ($request instanceof ServerRequestInterface) { - $new = (new ServerRequest( - $changes['method'] ?? $request->getMethod(), - $uri, - $headers, - $changes['body'] ?? $request->getBody(), - $changes['version'] ?? $request->getProtocolVersion(), - $request->getServerParams() - )) - ->withParsedBody($request->getParsedBody()) - ->withQueryParams($request->getQueryParams()) - ->withCookieParams($request->getCookieParams()) - ->withUploadedFiles($request->getUploadedFiles()); - - foreach ($request->getAttributes() as $key => $value) { - $new = $new->withAttribute($key, $value); - } - - return $new; - } - - return new Request( - $changes['method'] ?? $request->getMethod(), - $uri, - $headers, - $changes['body'] ?? $request->getBody(), - $changes['version'] ?? $request->getProtocolVersion() - ); - } - - /** - * Read a line from the stream up to the maximum allowed buffer length. - * - * @param StreamInterface $stream Stream to read from - * @param int|null $maxLength Maximum buffer length - */ - public static function readLine(StreamInterface $stream, ?int $maxLength = null): string - { - $buffer = ''; - $size = 0; - - while (!$stream->eof()) { - if ('' === ($byte = $stream->read(1))) { - return $buffer; - } - $buffer .= $byte; - // Break when a new line is found or the max length - 1 is reached - if ($byte === "\n" || ++$size === $maxLength - 1) { - break; - } - } - - return $buffer; - } - - /** - * Redact the password in the user info part of a URI. - */ - public static function redactUserInfo(UriInterface $uri): UriInterface - { - $userInfo = $uri->getUserInfo(); - - if (false !== ($pos = \strpos($userInfo, ':'))) { - return $uri->withUserInfo(\substr($userInfo, 0, $pos), '***'); - } - - return $uri; - } - - /** - * Create a new stream based on the input type. - * - * Options is an associative array that can contain the following keys: - * - metadata: Array of custom metadata. - * - size: Size of the stream. - * - * This method accepts the following `$resource` types: - * - `Psr\Http\Message\StreamInterface`: Returns the value as-is. - * - `string`: Creates a stream object that uses the given string as the contents. - * - `resource`: Creates a stream object that wraps the given PHP stream resource. - * - `Iterator`: If the provided value implements `Iterator`, then a read-only - * stream object will be created that wraps the given iterable. Each time the - * stream is read from, data from the iterator will fill a buffer and will be - * continuously called until the buffer is equal to the requested read size. - * Subsequent read calls will first read from the buffer and then call `next` - * on the underlying iterator until it is exhausted. - * - `object` with `__toString()`: If the object has the `__toString()` method, - * the object will be cast to a string and then a stream will be returned that - * uses the string value. - * - `NULL`: When `null` is passed, an empty stream object is returned. - * - `callable` When a callable is passed, a read-only stream object will be - * created that invokes the given callable. The callable is invoked with the - * number of suggested bytes to read. The callable can return any number of - * bytes, but MUST return `false` when there is no more data to return. The - * stream object that wraps the callable will invoke the callable until the - * number of requested bytes are available. Any additional bytes will be - * buffered and used in subsequent reads. - * - * @param resource|string|int|float|bool|StreamInterface|callable|\Iterator|null $resource Entity body data - * @param array{size?: int, metadata?: array} $options Additional options - * - * @throws \InvalidArgumentException if the $resource arg is not valid. - */ - public static function streamFor($resource = '', array $options = []): StreamInterface - { - if (is_scalar($resource)) { - $stream = self::tryFopen('php://temp', 'r+'); - if ($resource !== '') { - fwrite($stream, (string) $resource); - fseek($stream, 0); - } - - return new Stream($stream, $options); - } - - switch (gettype($resource)) { - case 'resource': - /* - * The 'php://input' is a special stream with quirks and inconsistencies. - * We avoid using that stream by reading it into php://temp - */ - - /** @var resource $resource */ - if ((\stream_get_meta_data($resource)['uri'] ?? '') === 'php://input') { - $stream = self::tryFopen('php://temp', 'w+'); - stream_copy_to_stream($resource, $stream); - fseek($stream, 0); - $resource = $stream; - } - - return new Stream($resource, $options); - case 'object': - /** @var object $resource */ - if ($resource instanceof StreamInterface) { - return $resource; - } elseif ($resource instanceof \Iterator) { - return new PumpStream(function () use ($resource) { - if (!$resource->valid()) { - return false; - } - $result = $resource->current(); - $resource->next(); - - return $result; - }, $options); - } elseif (method_exists($resource, '__toString')) { - return self::streamFor((string) $resource, $options); - } - break; - case 'NULL': - return new Stream(self::tryFopen('php://temp', 'r+'), $options); - } - - if (is_callable($resource)) { - return new PumpStream($resource, $options); - } - - throw new \InvalidArgumentException('Invalid resource type: '.gettype($resource)); - } - - /** - * Safely opens a PHP stream resource using a filename. - * - * When fopen fails, PHP normally raises a warning. This function adds an - * error handler that checks for errors and throws an exception instead. - * - * @param string $filename File to open - * @param string $mode Mode used to open the file - * - * @return resource - * - * @throws \RuntimeException if the file cannot be opened - */ - public static function tryFopen(string $filename, string $mode) - { - $ex = null; - set_error_handler(static function (int $errno, string $errstr) use ($filename, $mode, &$ex): bool { - $ex = new \RuntimeException(sprintf( - 'Unable to open "%s" using mode "%s": %s', - $filename, - $mode, - $errstr - )); - - return true; - }); - - try { - /** @var resource $handle */ - $handle = fopen($filename, $mode); - } catch (\Throwable $e) { - $ex = new \RuntimeException(sprintf( - 'Unable to open "%s" using mode "%s": %s', - $filename, - $mode, - $e->getMessage() - ), 0, $e); - } - - restore_error_handler(); - - if ($ex) { - /** @var $ex \RuntimeException */ - throw $ex; - } - - return $handle; - } - - /** - * Safely gets the contents of a given stream. - * - * When stream_get_contents fails, PHP normally raises a warning. This - * function adds an error handler that checks for errors and throws an - * exception instead. - * - * @param resource $stream - * - * @throws \RuntimeException if the stream cannot be read - */ - public static function tryGetContents($stream): string - { - $ex = null; - set_error_handler(static function (int $errno, string $errstr) use (&$ex): bool { - $ex = new \RuntimeException(sprintf( - 'Unable to read stream contents: %s', - $errstr - )); - - return true; - }); - - try { - /** @var string|false $contents */ - $contents = stream_get_contents($stream); - - if ($contents === false) { - $ex = new \RuntimeException('Unable to read stream contents'); - } - } catch (\Throwable $e) { - $ex = new \RuntimeException(sprintf( - 'Unable to read stream contents: %s', - $e->getMessage() - ), 0, $e); - } - - restore_error_handler(); - - if ($ex) { - /** @var $ex \RuntimeException */ - throw $ex; - } - - return $contents; - } - - /** - * Returns a UriInterface for the given value. - * - * This function accepts a string or UriInterface and returns a - * UriInterface for the given value. If the value is already a - * UriInterface, it is returned as-is. - * - * @param string|UriInterface $uri - * - * @throws \InvalidArgumentException - */ - public static function uriFor($uri): UriInterface - { - if ($uri instanceof UriInterface) { - return $uri; - } - - if (is_string($uri)) { - return new Uri($uri); - } - - throw new \InvalidArgumentException('URI must be a string or UriInterface'); - } -} diff --git a/vendor/monolog/monolog/CHANGELOG.md b/vendor/monolog/monolog/CHANGELOG.md deleted file mode 100644 index ddaea41..0000000 --- a/vendor/monolog/monolog/CHANGELOG.md +++ /dev/null @@ -1,785 +0,0 @@ -### 3.8.1 (2024-12-05) - - * Deprecated Monolog\DateTimeImmutable in favor of Monolog\JsonSerializableDateTimeImmutable (#1928) - * Fixed gelf keys not being valid when context/extra data keys have spaces in them (#1927) - * Fixed empty lines appearing in the stack traces when a custom formatter returned null (#1925) - -### 3.8.0 (2024-11-12) - - * Added `$fileOpenMode` param to `StreamHandler` to define a custom fopen mode to open the log file (#1913) - * Fixed PHP 8.4 deprecation notices (#1903) - * Added ability to extend/override `IntrospectionProcessor` (#1899) - * Added `$timeout` param to `ProcessHandler` to configure the stream_select() timeout to avoid blocking too long (default is 1.0 sec) (#1916) - * Fixed JsonFormatter batch handling to normalize records individually to make sure they look the same as if they were handled one by one (#1906) - * Fixed `StreamHandler` handling of write failures so that it now closes/reopens the stream and retries the write once before failing (#1882) - * Fixed `StreamHandler` error handler causing issues if a stream handler triggers an error (#1866) - * Fixed `StreamHandler::reset` not closing the stream, so that it would fail to write in some cases with long running processes (#1862) - * Fixed `RotatingFileHandler` issue where rotation does not happen in some long running processes (#1905) - * Fixed `JsonFormatter` handling of incomplete classes (#1834) - * Fixed `RotatingFileHandler` bug where rotation could sometimes not happen correctly (#1905) - -### 3.7.0 (2024-06-28) - - * Added `NormalizerFormatter->setBasePath(...)` (and `JsonFormatter` by extension) that allows removing the project's path from the stack trace output (47e301d3e) - * Fixed JsonFormatter handling of incomplete classes (#1834) - * Fixed private error handlers causing problems with custom StreamHandler implementations (#1866) - -### 3.6.0 (2024-04-12) - - * Added `LineFormatter->setBasePath(...)` that allows removing the project's path from the stack trace output (#1873) - * Added `$includeExtra` option in `PsrHandler` to also use extra data to replace placeholder values in the message (#1852) - * Added ability to customize what is a duplicated message by extending the `DeduplicationHandler` (#1879) - * Added handling for using `GelfMessageFormatter` together with the `AmqpHandler` (#1869) - * Added ability to extend `GoogleCloudLoggingFormatter` (#1859) - * Fixed `__toString` failures in context data crashing the normalization process (#1868) - * Fixed PHP 8.4 deprecation warnings (#1874) - -### 3.5.0 (2023-10-27) - - * Added ability to indent stack traces in LineFormatter via e.g. `indentStacktraces(' ')` (#1835) - * Added ability to configure a max level name length in LineFormatter via e.g. `setMaxLevelNameLength(3)` (#1850) - * Added support for indexed arrays (i.e. `[]` and not `{}` arrays once json serialized) containing inline linebreaks in LineFormatter (#1818) - * Added `WithMonologChannel` attribute for integrators to use to configure autowiring (#1847) - * Fixed log record `extra` data leaking between handlers that have handler-specific processors set (#1819) - * Fixed LogglyHandler issue with record level filtering (#1841) - * Fixed display_errors parsing in ErrorHandler which did not support string values (#1804) - * Fixed bug where the previous error handler would not be restored in some cases where StreamHandler fails (#1815) - * Fixed normalization error when normalizing incomplete classes (#1833) - -### 3.4.0 (2023-06-21) - - * Added `LoadAverageProcessor` to track one of the 1, 5 or 15min load averages (#1803) - * Added support for priority to the `AsMonologProcessor` attribute (#1797) - * Added `TelegramBotHandler` `topic`/`message_thread_id` support (#1802) - * Fixed `FingersCrossedHandler` passthruLevel checking (#1801) - * Fixed support of yearly and monthly rotation log file to rotate only once a month/year (#1805) - * Fixed `TestHandler` method docs (#1794) - * Fixed handling of falsey `display_errors` string values (#1804) - -### 3.3.1 (2023-02-06) - - * Fixed Logger not being serializable anymore (#1792) - -### 3.3.0 (2023-02-06) - - * Deprecated FlowdockHandler & Formatter as the flowdock service was shutdown (#1748) - * Added `ClosureContextProcessor` to allow delaying the creation of context data by setting a Closure in context which is called when the log record is used (#1745) - * Added an ElasticsearchHandler option to set the `op_type` to `create` instead of the default `index` (#1766) - * Added support for enum context values in PsrLogMessageProcessor (#1773) - * Added graylog2/gelf-php 2.x support (#1747) - * Improved `BrowserConsoleHandler` logging to use more appropriate methods than just console.log in the browser (#1739) - * Fixed GitProcessor not filtering correctly based on Level (#1749) - * Fixed `WhatFailureGroupHandler` not catching errors happening inside `close()` (#1791) - * Fixed datetime field in `GoogleCloudLoggingFormatter` (#1758) - * Fixed infinite loop detection within Fibers (#1753) - * Fixed `AmqpHandler->setExtraAttributes` not working with buffering handler wrappers (#1781) - -### 3.2.0 (2022-07-24) - - * Deprecated `CubeHandler` and `PHPConsoleHandler` as both projects are abandoned and those should not be used anymore (#1734) - * Marked `Logger` `@final` as it should not be extended, prefer composition or talk to us if you are missing something - * Added RFC 5424 level (`7` to `0`) support to `Logger::log` and `Logger::addRecord` to increase interoperability (#1723) - * Added `SyslogFormatter` to output syslog-like files which can be consumed by tools like [lnav](https://lnav.org/) (#1689) - * Added support for `__toString` for objects which are not json serializable in `JsonFormatter` (#1733) - * Added `GoogleCloudLoggingFormatter` (#1719) - * Added support for Predis 2.x (#1732) - * Added `AmqpHandler->setExtraAttributes` to allow configuring attributes when using an AMQPExchange (#1724) - * Fixed serialization/unserialization of handlers to make sure private properties are included (#1727) - * Fixed allowInlineLineBreaks in LineFormatter causing issues with windows paths containing `\n` or `\r` sequences (#1720) - * Fixed max normalization depth not being taken into account when formatting exceptions with a deep chain of previous exceptions (#1726) - * Fixed PHP 8.2 deprecation warnings (#1722) - * Fixed rare race condition or filesystem issue where StreamHandler is unable to create the directory the log should go into yet it exists already (#1678) - -### 3.1.0 (2022-06-09) - - * Added `$datetime` parameter to `Logger::addRecord` as low level API to allow logging into the past or future (#1682) - * Added `Logger::useLoggingLoopDetection` to allow disabling cyclic logging detection in concurrent frameworks (#1681) - * Fixed handling of fatal errors if callPrevious is disabled in ErrorHandler (#1670) - * Fixed interop issue by removing the need for a return type in ProcessorInterface (#1680) - * Marked the reusable `Monolog\Test\TestCase` class as `@internal` to make sure PHPStorm does not show it above PHPUnit, you may still use it to test your own handlers/etc though (#1677) - * Fixed RotatingFileHandler issue when the date format contained slashes (#1671) - -### 3.0.0 (2022-05-10) - -Changes from RC1 - -- The `Monolog\LevelName` enum does not exist anymore, use `Monolog\Level->getName()` instead. - -### 3.0.0-RC1 (2022-05-08) - -This is mostly a cleanup release offering stronger type guarantees for integrators with the -array->object/enum changes, but there is no big new feature for end users. - -See [UPGRADE notes](UPGRADE.md#300) for details on all breaking changes especially if you are extending/implementing Monolog classes/interfaces. - -Noteworthy BC Breaks: - -- The minimum supported PHP version is now `8.1.0`. -- Log records have been converted from an array to a [`Monolog\LogRecord` object](src/Monolog/LogRecord.php) - with public (and mostly readonly) properties. e.g. instead of doing - `$record['context']` use `$record->context`. - In formatters or handlers if you rather need an array to work with you can use `$record->toArray()` - to get back a Monolog 1/2 style record array. This will contain the enum values instead of enum cases - in the `level` and `level_name` keys to be more backwards compatible and use simpler data types. -- `FormatterInterface`, `HandlerInterface`, `ProcessorInterface`, etc. changed to contain `LogRecord $record` - instead of `array $record` parameter types. If you want to support multiple Monolog versions this should - be possible by type-hinting nothing, or `array|LogRecord` if you support PHP 8.0+. You can then code - against the $record using Monolog 2 style as LogRecord implements ArrayAccess for BC. - The interfaces do not require a `LogRecord` return type even where it would be applicable, but if you only - support Monolog 3 in integration code I would recommend you use `LogRecord` return types wherever fitting - to ensure forward compatibility as it may be added in Monolog 4. -- Log levels are now enums [`Monolog\Level`](src/Monolog/Level.php) and [`Monolog\LevelName`](src/Monolog/LevelName.php) -- Removed deprecated SwiftMailerHandler, migrate to SymfonyMailerHandler instead. -- `ResettableInterface::reset()` now requires a void return type. -- All properties have had types added, which may require you to do so as well if you extended - a Monolog class and declared the same property. - -New deprecations: - -- `Logger::DEBUG`, `Logger::ERROR`, etc. are now deprecated in favor of the `Monolog\Level` enum. - e.g. instead of `Logger::WARNING` use `Level::Warning` if you need to pass the enum case - to Monolog or one of its handlers, or `Level::Warning->value` if you need the integer - value equal to what `Logger::WARNING` was giving you. -- `Logger::getLevelName()` is now deprecated. - -### 2.10.0 (2024-11-12) - - * Added `$fileOpenMode` to `StreamHandler` to define a custom fopen mode to open the log file (#1913) - * Fixed `StreamHandler` handling of write failures so that it now closes/reopens the stream and retries the write once before failing (#1882) - * Fixed `StreamHandler` error handler causing issues if a stream handler triggers an error (#1866) - * Fixed `JsonFormatter` handling of incomplete classes (#1834) - * Fixed `RotatingFileHandler` bug where rotation could sometimes not happen correctly (#1905) - -### 2.9.3 (2024-04-12) - - * Fixed PHP 8.4 deprecation warnings (#1874) - -### 2.9.2 (2023-10-27) - - * Fixed display_errors parsing in ErrorHandler which did not support string values (#1804) - * Fixed bug where the previous error handler would not be restored in some cases where StreamHandler fails (#1815) - * Fixed normalization error when normalizing incomplete classes (#1833) - -### 2.9.1 (2023-02-06) - - * Fixed Logger not being serializable anymore (#1792) - -### 2.9.0 (2023-02-05) - - * Deprecated FlowdockHandler & Formatter as the flowdock service was shutdown (#1748) - * Added support for enum context values in PsrLogMessageProcessor (#1773) - * Added graylog2/gelf-php 2.x support (#1747) - * Improved `BrowserConsoleHandler` logging to use more appropriate methods than just console.log in the browser (#1739) - * Fixed `WhatFailureGroupHandler` not catching errors happening inside `close()` (#1791) - * Fixed datetime field in `GoogleCloudLoggingFormatter` (#1758) - * Fixed infinite loop detection within Fibers (#1753) - * Fixed `AmqpHandler->setExtraAttributes` not working with buffering handler wrappers (#1781) - -### 2.8.0 (2022-07-24) - - * Deprecated `CubeHandler` and `PHPConsoleHandler` as both projects are abandoned and those should not be used anymore (#1734) - * Added RFC 5424 level (`7` to `0`) support to `Logger::log` and `Logger::addRecord` to increase interoperability (#1723) - * Added support for `__toString` for objects which are not json serializable in `JsonFormatter` (#1733) - * Added `GoogleCloudLoggingFormatter` (#1719) - * Added support for Predis 2.x (#1732) - * Added `AmqpHandler->setExtraAttributes` to allow configuring attributes when using an AMQPExchange (#1724) - * Fixed serialization/unserialization of handlers to make sure private properties are included (#1727) - * Fixed allowInlineLineBreaks in LineFormatter causing issues with windows paths containing `\n` or `\r` sequences (#1720) - * Fixed max normalization depth not being taken into account when formatting exceptions with a deep chain of previous exceptions (#1726) - * Fixed PHP 8.2 deprecation warnings (#1722) - * Fixed rare race condition or filesystem issue where StreamHandler is unable to create the directory the log should go into yet it exists already (#1678) - -### 2.7.0 (2022-06-09) - - * Added `$datetime` parameter to `Logger::addRecord` as low level API to allow logging into the past or future (#1682) - * Added `Logger::useLoggingLoopDetection` to allow disabling cyclic logging detection in concurrent frameworks (#1681) - * Fixed handling of fatal errors if callPrevious is disabled in ErrorHandler (#1670) - * Marked the reusable `Monolog\Test\TestCase` class as `@internal` to make sure PHPStorm does not show it above PHPUnit, you may still use it to test your own handlers/etc though (#1677) - * Fixed RotatingFileHandler issue when the date format contained slashes (#1671) - -### 2.6.0 (2022-05-10) - - * Deprecated `SwiftMailerHandler`, use `SymfonyMailerHandler` instead - * Added `SymfonyMailerHandler` (#1663) - * Added ElasticSearch 8.x support to the ElasticsearchHandler (#1662) - * Added a way to filter/modify stack traces in LineFormatter (#1665) - * Fixed UdpSocket not being able to reopen/reconnect after close() - * Fixed infinite loops if a Handler is triggering logging while handling log records - -### 2.5.0 (2022-04-08) - - * Added `callType` to IntrospectionProcessor (#1612) - * Fixed AsMonologProcessor syntax to be compatible with PHP 7.2 (#1651) - -### 2.4.0 (2022-03-14) - - * Added [`Monolog\LogRecord`](src/Monolog/LogRecord.php) interface that can be used to type-hint records like `array|\Monolog\LogRecord $record` to be forward compatible with the upcoming Monolog 3 changes - * Added `includeStacktraces` constructor params to LineFormatter & JsonFormatter (#1603) - * Added `persistent`, `timeout`, `writingTimeout`, `connectionTimeout`, `chunkSize` constructor params to SocketHandler and derivatives (#1600) - * Added `AsMonologProcessor` PHP attribute which can help autowiring / autoconfiguration of processors if frameworks / integrations decide to make use of it. This is useless when used purely with Monolog (#1637) - * Added support for keeping native BSON types as is in MongoDBFormatter (#1620) - * Added support for a `user_agent` key in WebProcessor, disabled by default but you can use it by configuring the $extraFields you want (#1613) - * Added support for username/userIcon in SlackWebhookHandler (#1617) - * Added extension points to BrowserConsoleHandler (#1593) - * Added record message/context/extra info to exceptions thrown when a StreamHandler cannot open its stream to avoid completely losing the data logged (#1630) - * Fixed error handler signature to accept a null $context which happens with internal PHP errors (#1614) - * Fixed a few setter methods not returning `self` (#1609) - * Fixed handling of records going over the max Telegram message length (#1616) - -### 2.3.5 (2021-10-01) - - * Fixed regression in StreamHandler since 2.3.3 on systems with the memory_limit set to >=20GB (#1592) - -### 2.3.4 (2021-09-15) - - * Fixed support for psr/log 3.x (#1589) - -### 2.3.3 (2021-09-14) - - * Fixed memory usage when using StreamHandler and calling stream_get_contents on the resource you passed to it (#1578, #1577) - * Fixed support for psr/log 2.x (#1587) - * Fixed some type annotations - -### 2.3.2 (2021-07-23) - - * Fixed compatibility with PHP 7.2 - 7.4 when experiencing PCRE errors (#1568) - -### 2.3.1 (2021-07-14) - - * Fixed Utils::getClass handling of anonymous classes not being fully compatible with PHP 8 (#1563) - * Fixed some `@inheritDoc` annotations having the wrong case - -### 2.3.0 (2021-07-05) - - * Added a ton of PHPStan type annotations as well as type aliases on Monolog\Logger for Record, Level and LevelName that you can import (#1557) - * Added ability to customize date format when using JsonFormatter (#1561) - * Fixed FilterHandler not calling reset on its internal handler when reset() is called on it (#1531) - * Fixed SyslogUdpHandler not setting the timezone correctly on DateTimeImmutable instances (#1540) - * Fixed StreamHandler thread safety - chunk size set to 2GB now to avoid interlacing when doing concurrent writes (#1553) - -### 2.2.0 (2020-12-14) - - * Added JSON_PARTIAL_OUTPUT_ON_ERROR to default json encoding flags, to avoid dropping entire context data or even records due to an invalid subset of it somewhere - * Added setDateFormat to NormalizerFormatter (and Line/Json formatters by extension) to allow changing this after object creation - * Added RedisPubSubHandler to log records to a Redis channel using PUBLISH - * Added support for Elastica 7, and deprecated the $type argument of ElasticaFormatter which is not in use anymore as of Elastica 7 - * Added support for millisecond write timeouts in SocketHandler, you can now pass floats to setWritingTimeout, e.g. 0.2 is 200ms - * Added support for unix sockets in SyslogUdpHandler (set $port to 0 to make the $host a unix socket) - * Added handleBatch support for TelegramBotHandler - * Added RFC5424e extended date format including milliseconds to SyslogUdpHandler - * Added support for configuring handlers with numeric level values in strings (coming from e.g. env vars) - * Fixed Wildfire/FirePHP/ChromePHP handling of unicode characters - * Fixed PHP 8 issues in SyslogUdpHandler - * Fixed internal type error when mbstring is missing - -### 2.1.1 (2020-07-23) - - * Fixed removing of json encoding options - * Fixed type hint of $level not accepting strings in SendGridHandler and OverflowHandler - * Fixed SwiftMailerHandler not accepting email templates with an empty subject - * Fixed array access on null in RavenHandler - * Fixed unique_id in WebProcessor not being disableable - -### 2.1.0 (2020-05-22) - - * Added `JSON_INVALID_UTF8_SUBSTITUTE` to default json flags, so that invalid UTF8 characters now get converted to [�](https://en.wikipedia.org/wiki/Specials_(Unicode_block)#Replacement_character) instead of being converted from ISO-8859-15 to UTF8 as it was before, which was hardly a comprehensive solution - * Added `$ignoreEmptyContextAndExtra` option to JsonFormatter to skip empty context/extra entirely from the output - * Added `$parseMode`, `$disableWebPagePreview` and `$disableNotification` options to TelegramBotHandler - * Added tentative support for PHP 8 - * NormalizerFormatter::addJsonEncodeOption and removeJsonEncodeOption are now public to allow modifying default json flags - * Fixed GitProcessor type error when there is no git repo present - * Fixed normalization of SoapFault objects containing deeply nested objects as "detail" - * Fixed support for relative paths in RotatingFileHandler - -### 2.0.2 (2019-12-20) - - * Fixed ElasticsearchHandler swallowing exceptions details when failing to index log records - * Fixed normalization of SoapFault objects containing non-strings as "detail" in LineFormatter - * Fixed formatting of resources in JsonFormatter - * Fixed RedisHandler failing to use MULTI properly when passed a proxied Redis instance (e.g. in Symfony with lazy services) - * Fixed FilterHandler triggering a notice when handleBatch was filtering all records passed to it - * Fixed Turkish locale messing up the conversion of level names to their constant values - -### 2.0.1 (2019-11-13) - - * Fixed normalization of Traversables to avoid traversing them as not all of them are rewindable - * Fixed setFormatter/getFormatter to forward to the nested handler in FilterHandler, FingersCrossedHandler, BufferHandler, OverflowHandler and SamplingHandler - * Fixed BrowserConsoleHandler formatting when using multiple styles - * Fixed normalization of exception codes to be always integers even for PDOException which have them as numeric strings - * Fixed normalization of SoapFault objects containing non-strings as "detail" - * Fixed json encoding across all handlers to always attempt recovery of non-UTF-8 strings instead of failing the whole encoding - * Fixed ChromePHPHandler to avoid sending more data than latest Chrome versions allow in headers (4KB down from 256KB). - * Fixed type error in BrowserConsoleHandler when the context array of log records was not associative. - -### 2.0.0 (2019-08-30) - - * BC Break: This is a major release, see [UPGRADE.md](UPGRADE.md) for details if you are coming from a 1.x release - * BC Break: Logger methods log/debug/info/notice/warning/error/critical/alert/emergency now have explicit void return types - * Added FallbackGroupHandler which works like the WhatFailureGroupHandler but stops dispatching log records as soon as one handler accepted it - * Fixed support for UTF-8 when cutting strings to avoid cutting a multibyte-character in half - * Fixed normalizers handling of exception backtraces to avoid serializing arguments in some cases - * Fixed date timezone handling in SyslogUdpHandler - -### 2.0.0-beta2 (2019-07-06) - - * BC Break: This is a major release, see [UPGRADE.md](UPGRADE.md) for details if you are coming from a 1.x release - * BC Break: PHP 7.2 is now the minimum required PHP version. - * BC Break: Removed SlackbotHandler, RavenHandler and HipChatHandler, see [UPGRADE.md](UPGRADE.md) for details - * Added OverflowHandler which will only flush log records to its nested handler when reaching a certain amount of logs (i.e. only pass through when things go really bad) - * Added TelegramBotHandler to log records to a [Telegram](https://core.telegram.org/bots/api) bot account - * Added support for JsonSerializable when normalizing exceptions - * Added support for RFC3164 (outdated BSD syslog protocol) to SyslogUdpHandler - * Added SoapFault details to formatted exceptions - * Fixed DeduplicationHandler silently failing to start when file could not be opened - * Fixed issue in GroupHandler and WhatFailureGroupHandler where setting multiple processors would duplicate records - * Fixed GelfFormatter losing some data when one attachment was too long - * Fixed issue in SignalHandler restarting syscalls functionality - * Improved performance of LogglyHandler when sending multiple logs in a single request - -### 2.0.0-beta1 (2018-12-08) - - * BC Break: This is a major release, see [UPGRADE.md](UPGRADE.md) for details if you are coming from a 1.x release - * BC Break: PHP 7.1 is now the minimum required PHP version. - * BC Break: Quite a few interface changes, only relevant if you implemented your own handlers/processors/formatters - * BC Break: Removed non-PSR-3 methods to add records, all the `add*` (e.g. `addWarning`) methods as well as `emerg`, `crit`, `err` and `warn` - * BC Break: The record timezone is now set per Logger instance and not statically anymore - * BC Break: There is no more default handler configured on empty Logger instances - * BC Break: ElasticSearchHandler renamed to ElasticaHandler - * BC Break: Various handler-specific breaks, see [UPGRADE.md](UPGRADE.md) for details - * Added scalar type hints and return hints in all the places it was possible. Switched strict_types on for more reliability. - * Added DateTimeImmutable support, all record datetime are now immutable, and will toString/json serialize with the correct date format, including microseconds (unless disabled) - * Added timezone and microseconds to the default date format - * Added SendGridHandler to use the SendGrid API to send emails - * Added LogmaticHandler to use the Logmatic.io API to store log records - * Added SqsHandler to send log records to an AWS SQS queue - * Added ElasticsearchHandler to send records via the official ES library. Elastica users should now use ElasticaHandler instead of ElasticSearchHandler - * Added NoopHandler which is similar to the NullHandle but does not prevent the bubbling of log records to handlers further down the configuration, useful for temporarily disabling a handler in configuration files - * Added ProcessHandler to write log output to the STDIN of a given process - * Added HostnameProcessor that adds the machine's hostname to log records - * Added a `$dateFormat` option to the PsrLogMessageProcessor which lets you format DateTime instances nicely - * Added support for the PHP 7.x `mongodb` extension in the MongoDBHandler - * Fixed many minor issues in various handlers, and probably added a few regressions too - -### 1.26.1 (2021-05-28) - - * Fixed PHP 8.1 deprecation warning - -### 1.26.0 (2020-12-14) - - * Added $dateFormat and $removeUsedContextFields arguments to PsrLogMessageProcessor (backport from 2.x) - -### 1.25.5 (2020-07-23) - - * Fixed array access on null in RavenHandler - * Fixed unique_id in WebProcessor not being disableable - -### 1.25.4 (2020-05-22) - - * Fixed GitProcessor type error when there is no git repo present - * Fixed normalization of SoapFault objects containing deeply nested objects as "detail" - * Fixed support for relative paths in RotatingFileHandler - -### 1.25.3 (2019-12-20) - - * Fixed formatting of resources in JsonFormatter - * Fixed RedisHandler failing to use MULTI properly when passed a proxied Redis instance (e.g. in Symfony with lazy services) - * Fixed FilterHandler triggering a notice when handleBatch was filtering all records passed to it - * Fixed Turkish locale messing up the conversion of level names to their constant values - -### 1.25.2 (2019-11-13) - - * Fixed normalization of Traversables to avoid traversing them as not all of them are rewindable - * Fixed setFormatter/getFormatter to forward to the nested handler in FilterHandler, FingersCrossedHandler, BufferHandler and SamplingHandler - * Fixed BrowserConsoleHandler formatting when using multiple styles - * Fixed normalization of exception codes to be always integers even for PDOException which have them as numeric strings - * Fixed normalization of SoapFault objects containing non-strings as "detail" - * Fixed json encoding across all handlers to always attempt recovery of non-UTF-8 strings instead of failing the whole encoding - -### 1.25.1 (2019-09-06) - - * Fixed forward-compatible interfaces to be compatible with Monolog 1.x too. - -### 1.25.0 (2019-09-06) - - * Deprecated SlackbotHandler, use SlackWebhookHandler or SlackHandler instead - * Deprecated RavenHandler, use sentry/sentry 2.x and their Sentry\Monolog\Handler instead - * Deprecated HipChatHandler, migrate to Slack and use SlackWebhookHandler or SlackHandler instead - * Added forward-compatible interfaces and traits FormattableHandlerInterface, FormattableHandlerTrait, ProcessableHandlerInterface, ProcessableHandlerTrait. If you use modern PHP and want to make code compatible with Monolog 1 and 2 this can help. You will have to require at least Monolog 1.25 though. - * Added support for RFC3164 (outdated BSD syslog protocol) to SyslogUdpHandler - * Fixed issue in GroupHandler and WhatFailureGroupHandler where setting multiple processors would duplicate records - * Fixed issue in SignalHandler restarting syscalls functionality - * Fixed normalizers handling of exception backtraces to avoid serializing arguments in some cases - * Fixed ZendMonitorHandler to work with the latest Zend Server versions - * Fixed ChromePHPHandler to avoid sending more data than latest Chrome versions allow in headers (4KB down from 256KB). - -### 1.24.0 (2018-11-05) - - * BC Notice: If you are extending any of the Monolog's Formatters' `normalize` method, make sure you add the new `$depth = 0` argument to your function signature to avoid strict PHP warnings. - * Added a `ResettableInterface` in order to reset/reset/clear/flush handlers and processors - * Added a `ProcessorInterface` as an optional way to label a class as being a processor (mostly useful for autowiring dependency containers) - * Added a way to log signals being received using Monolog\SignalHandler - * Added ability to customize error handling at the Logger level using Logger::setExceptionHandler - * Added InsightOpsHandler to migrate users of the LogEntriesHandler - * Added protection to NormalizerFormatter against circular and very deep structures, it now stops normalizing at a depth of 9 - * Added capture of stack traces to ErrorHandler when logging PHP errors - * Added RavenHandler support for a `contexts` context or extra key to forward that to Sentry's contexts - * Added forwarding of context info to FluentdFormatter - * Added SocketHandler::setChunkSize to override the default chunk size in case you must send large log lines to rsyslog for example - * Added ability to extend/override BrowserConsoleHandler - * Added SlackWebhookHandler::getWebhookUrl and SlackHandler::getToken to enable class extensibility - * Added SwiftMailerHandler::getSubjectFormatter to enable class extensibility - * Dropped official support for HHVM in test builds - * Fixed normalization of exception traces when call_user_func is used to avoid serializing objects and the data they contain - * Fixed naming of fields in Slack handler, all field names are now capitalized in all cases - * Fixed HipChatHandler bug where slack dropped messages randomly - * Fixed normalization of objects in Slack handlers - * Fixed support for PHP7's Throwable in NewRelicHandler - * Fixed race bug when StreamHandler sometimes incorrectly reported it failed to create a directory - * Fixed table row styling issues in HtmlFormatter - * Fixed RavenHandler dropping the message when logging exception - * Fixed WhatFailureGroupHandler skipping processors when using handleBatch - and implement it where possible - * Fixed display of anonymous class names - -### 1.23.0 (2017-06-19) - - * Improved SyslogUdpHandler's support for RFC5424 and added optional `$ident` argument - * Fixed GelfHandler truncation to be per field and not per message - * Fixed compatibility issue with PHP <5.3.6 - * Fixed support for headless Chrome in ChromePHPHandler - * Fixed support for latest Aws SDK in DynamoDbHandler - * Fixed support for SwiftMailer 6.0+ in SwiftMailerHandler - -### 1.22.1 (2017-03-13) - - * Fixed lots of minor issues in the new Slack integrations - * Fixed support for allowInlineLineBreaks in LineFormatter when formatting exception backtraces - -### 1.22.0 (2016-11-26) - - * Added SlackbotHandler and SlackWebhookHandler to set up Slack integration more easily - * Added MercurialProcessor to add mercurial revision and branch names to log records - * Added support for AWS SDK v3 in DynamoDbHandler - * Fixed fatal errors occurring when normalizing generators that have been fully consumed - * Fixed RollbarHandler to include a level (rollbar level), monolog_level (original name), channel and datetime (unix) - * Fixed RollbarHandler not flushing records automatically, calling close() explicitly is not necessary anymore - * Fixed SyslogUdpHandler to avoid sending empty frames - * Fixed a few PHP 7.0 and 7.1 compatibility issues - -### 1.21.0 (2016-07-29) - - * Break: Reverted the addition of $context when the ErrorHandler handles regular php errors from 1.20.0 as it was causing issues - * Added support for more formats in RotatingFileHandler::setFilenameFormat as long as they have Y, m and d in order - * Added ability to format the main line of text the SlackHandler sends by explicitly setting a formatter on the handler - * Added information about SoapFault instances in NormalizerFormatter - * Added $handleOnlyReportedErrors option on ErrorHandler::registerErrorHandler (default true) to allow logging of all errors no matter the error_reporting level - -### 1.20.0 (2016-07-02) - - * Added FingersCrossedHandler::activate() to manually trigger the handler regardless of the activation policy - * Added StreamHandler::getUrl to retrieve the stream's URL - * Added ability to override addRow/addTitle in HtmlFormatter - * Added the $context to context information when the ErrorHandler handles a regular php error - * Deprecated RotatingFileHandler::setFilenameFormat to only support 3 formats: Y, Y-m and Y-m-d - * Fixed WhatFailureGroupHandler to work with PHP7 throwables - * Fixed a few minor bugs - -### 1.19.0 (2016-04-12) - - * Break: StreamHandler will not close streams automatically that it does not own. If you pass in a stream (not a path/url), then it will not close it for you. You can retrieve those using getStream() if needed - * Added DeduplicationHandler to remove duplicate records from notifications across multiple requests, useful for email or other notifications on errors - * Added ability to use `%message%` and other LineFormatter replacements in the subject line of emails sent with NativeMailHandler and SwiftMailerHandler - * Fixed HipChatHandler handling of long messages - -### 1.18.2 (2016-04-02) - - * Fixed ElasticaFormatter to use more precise dates - * Fixed GelfMessageFormatter sending too long messages - -### 1.18.1 (2016-03-13) - - * Fixed SlackHandler bug where slack dropped messages randomly - * Fixed RedisHandler issue when using with the PHPRedis extension - * Fixed AmqpHandler content-type being incorrectly set when using with the AMQP extension - * Fixed BrowserConsoleHandler regression - -### 1.18.0 (2016-03-01) - - * Added optional reduction of timestamp precision via `Logger->useMicrosecondTimestamps(false)`, disabling it gets you a bit of performance boost but reduces the precision to the second instead of microsecond - * Added possibility to skip some extra stack frames in IntrospectionProcessor if you have some library wrapping Monolog that is always adding frames - * Added `Logger->withName` to clone a logger (keeping all handlers) with a new name - * Added FluentdFormatter for the Fluentd unix socket protocol - * Added HandlerWrapper base class to ease the creation of handler wrappers, just extend it and override as needed - * Added support for replacing context sub-keys using `%context.*%` in LineFormatter - * Added support for `payload` context value in RollbarHandler - * Added setRelease to RavenHandler to describe the application version, sent with every log - * Added support for `fingerprint` context value in RavenHandler - * Fixed JSON encoding errors that would gobble up the whole log record, we now handle those more gracefully by dropping chars as needed - * Fixed write timeouts in SocketHandler and derivatives, set to 10sec by default, lower it with `setWritingTimeout()` - * Fixed PHP7 compatibility with regard to Exception/Throwable handling in a few places - -### 1.17.2 (2015-10-14) - - * Fixed ErrorHandler compatibility with non-Monolog PSR-3 loggers - * Fixed SlackHandler handling to use slack functionalities better - * Fixed SwiftMailerHandler bug when sending multiple emails they all had the same id - * Fixed 5.3 compatibility regression - -### 1.17.1 (2015-08-31) - - * Fixed RollbarHandler triggering PHP notices - -### 1.17.0 (2015-08-30) - - * Added support for `checksum` and `release` context/extra values in RavenHandler - * Added better support for exceptions in RollbarHandler - * Added UidProcessor::getUid - * Added support for showing the resource type in NormalizedFormatter - * Fixed IntrospectionProcessor triggering PHP notices - -### 1.16.0 (2015-08-09) - - * Added IFTTTHandler to notify ifttt.com triggers - * Added Logger::setHandlers() to allow setting/replacing all handlers - * Added $capSize in RedisHandler to cap the log size - * Fixed StreamHandler creation of directory to only trigger when the first log write happens - * Fixed bug in the handling of curl failures - * Fixed duplicate logging of fatal errors when both error and fatal error handlers are registered in monolog's ErrorHandler - * Fixed missing fatal errors records with handlers that need to be closed to flush log records - * Fixed TagProcessor::addTags support for associative arrays - -### 1.15.0 (2015-07-12) - - * Added addTags and setTags methods to change a TagProcessor - * Added automatic creation of directories if they are missing for a StreamHandler to open a log file - * Added retry functionality to Loggly, Cube and Mandrill handlers so they retry up to 5 times in case of network failure - * Fixed process exit code being incorrectly reset to 0 if ErrorHandler::registerExceptionHandler was used - * Fixed HTML/JS escaping in BrowserConsoleHandler - * Fixed JSON encoding errors being silently suppressed (PHP 5.5+ only) - -### 1.14.0 (2015-06-19) - - * Added PHPConsoleHandler to send record to Chrome's PHP Console extension and library - * Added support for objects implementing __toString in the NormalizerFormatter - * Added support for HipChat's v2 API in HipChatHandler - * Added Logger::setTimezone() to initialize the timezone monolog should use in case date.timezone isn't correct for your app - * Added an option to send formatted message instead of the raw record on PushoverHandler via ->useFormattedMessage(true) - * Fixed curl errors being silently suppressed - -### 1.13.1 (2015-03-09) - - * Fixed regression in HipChat requiring a new token to be created - -### 1.13.0 (2015-03-05) - - * Added Registry::hasLogger to check for the presence of a logger instance - * Added context.user support to RavenHandler - * Added HipChat API v2 support in the HipChatHandler - * Added NativeMailerHandler::addParameter to pass params to the mail() process - * Added context data to SlackHandler when $includeContextAndExtra is true - * Added ability to customize the Swift_Message per-email in SwiftMailerHandler - * Fixed SwiftMailerHandler to lazily create message instances if a callback is provided - * Fixed serialization of INF and NaN values in Normalizer and LineFormatter - -### 1.12.0 (2014-12-29) - - * Break: HandlerInterface::isHandling now receives a partial record containing only a level key. This was always the intent and does not break any Monolog handler but is strictly speaking a BC break and you should check if you relied on any other field in your own handlers. - * Added PsrHandler to forward records to another PSR-3 logger - * Added SamplingHandler to wrap around a handler and include only every Nth record - * Added MongoDBFormatter to support better storage with MongoDBHandler (it must be enabled manually for now) - * Added exception codes in the output of most formatters - * Added LineFormatter::includeStacktraces to enable exception stack traces in logs (uses more than one line) - * Added $useShortAttachment to SlackHandler to minify attachment size and $includeExtra to append extra data - * Added $host to HipChatHandler for users of private instances - * Added $transactionName to NewRelicHandler and support for a transaction_name context value - * Fixed MandrillHandler to avoid outputting API call responses - * Fixed some non-standard behaviors in SyslogUdpHandler - -### 1.11.0 (2014-09-30) - - * Break: The NewRelicHandler extra and context data are now prefixed with extra_ and context_ to avoid clashes. Watch out if you have scripts reading those from the API and rely on names - * Added WhatFailureGroupHandler to suppress any exception coming from the wrapped handlers and avoid chain failures if a logging service fails - * Added MandrillHandler to send emails via the Mandrillapp.com API - * Added SlackHandler to log records to a Slack.com account - * Added FleepHookHandler to log records to a Fleep.io account - * Added LogglyHandler::addTag to allow adding tags to an existing handler - * Added $ignoreEmptyContextAndExtra to LineFormatter to avoid empty [] at the end - * Added $useLocking to StreamHandler and RotatingFileHandler to enable flock() while writing - * Added support for PhpAmqpLib in the AmqpHandler - * Added FingersCrossedHandler::clear and BufferHandler::clear to reset them between batches in long running jobs - * Added support for adding extra fields from $_SERVER in the WebProcessor - * Fixed support for non-string values in PrsLogMessageProcessor - * Fixed SwiftMailer messages being sent with the wrong date in long running scripts - * Fixed minor PHP 5.6 compatibility issues - * Fixed BufferHandler::close being called twice - -### 1.10.0 (2014-06-04) - - * Added Logger::getHandlers() and Logger::getProcessors() methods - * Added $passthruLevel argument to FingersCrossedHandler to let it always pass some records through even if the trigger level is not reached - * Added support for extra data in NewRelicHandler - * Added $expandNewlines flag to the ErrorLogHandler to create multiple log entries when a message has multiple lines - -### 1.9.1 (2014-04-24) - - * Fixed regression in RotatingFileHandler file permissions - * Fixed initialization of the BufferHandler to make sure it gets flushed after receiving records - * Fixed ChromePHPHandler and FirePHPHandler's activation strategies to be more conservative - -### 1.9.0 (2014-04-20) - - * Added LogEntriesHandler to send logs to a LogEntries account - * Added $filePermissions to tweak file mode on StreamHandler and RotatingFileHandler - * Added $useFormatting flag to MemoryProcessor to make it send raw data in bytes - * Added support for table formatting in FirePHPHandler via the table context key - * Added a TagProcessor to add tags to records, and support for tags in RavenHandler - * Added $appendNewline flag to the JsonFormatter to enable using it when logging to files - * Added sound support to the PushoverHandler - * Fixed multi-threading support in StreamHandler - * Fixed empty headers issue when ChromePHPHandler received no records - * Fixed default format of the ErrorLogHandler - -### 1.8.0 (2014-03-23) - - * Break: the LineFormatter now strips newlines by default because this was a bug, set $allowInlineLineBreaks to true if you need them - * Added BrowserConsoleHandler to send logs to any browser's console via console.log() injection in the output - * Added FilterHandler to filter records and only allow those of a given list of levels through to the wrapped handler - * Added FlowdockHandler to send logs to a Flowdock account - * Added RollbarHandler to send logs to a Rollbar account - * Added HtmlFormatter to send prettier log emails with colors for each log level - * Added GitProcessor to add the current branch/commit to extra record data - * Added a Monolog\Registry class to allow easier global access to pre-configured loggers - * Added support for the new official graylog2/gelf-php lib for GelfHandler, upgrade if you can by replacing the mlehner/gelf-php requirement - * Added support for HHVM - * Added support for Loggly batch uploads - * Added support for tweaking the content type and encoding in NativeMailerHandler - * Added $skipClassesPartials to tweak the ignored classes in the IntrospectionProcessor - * Fixed batch request support in GelfHandler - -### 1.7.0 (2013-11-14) - - * Added ElasticSearchHandler to send logs to an Elastic Search server - * Added DynamoDbHandler and ScalarFormatter to send logs to Amazon's Dynamo DB - * Added SyslogUdpHandler to send logs to a remote syslogd server - * Added LogglyHandler to send logs to a Loggly account - * Added $level to IntrospectionProcessor so it only adds backtraces when needed - * Added $version to LogstashFormatter to allow using the new v1 Logstash format - * Added $appName to NewRelicHandler - * Added configuration of Pushover notification retries/expiry - * Added $maxColumnWidth to NativeMailerHandler to change the 70 chars default - * Added chainability to most setters for all handlers - * Fixed RavenHandler batch processing so it takes the message from the record with highest priority - * Fixed HipChatHandler batch processing so it sends all messages at once - * Fixed issues with eAccelerator - * Fixed and improved many small things - -### 1.6.0 (2013-07-29) - - * Added HipChatHandler to send logs to a HipChat chat room - * Added ErrorLogHandler to send logs to PHP's error_log function - * Added NewRelicHandler to send logs to NewRelic's service - * Added Monolog\ErrorHandler helper class to register a Logger as exception/error/fatal handler - * Added ChannelLevelActivationStrategy for the FingersCrossedHandler to customize levels by channel - * Added stack traces output when normalizing exceptions (json output & co) - * Added Monolog\Logger::API constant (currently 1) - * Added support for ChromePHP's v4.0 extension - * Added support for message priorities in PushoverHandler, see $highPriorityLevel and $emergencyLevel - * Added support for sending messages to multiple users at once with the PushoverHandler - * Fixed RavenHandler's support for batch sending of messages (when behind a Buffer or FingersCrossedHandler) - * Fixed normalization of Traversables with very large data sets, only the first 1000 items are shown now - * Fixed issue in RotatingFileHandler when an open_basedir restriction is active - * Fixed minor issues in RavenHandler and bumped the API to Raven 0.5.0 - * Fixed SyslogHandler issue when many were used concurrently with different facilities - -### 1.5.0 (2013-04-23) - - * Added ProcessIdProcessor to inject the PID in log records - * Added UidProcessor to inject a unique identifier to all log records of one request/run - * Added support for previous exceptions in the LineFormatter exception serialization - * Added Monolog\Logger::getLevels() to get all available levels - * Fixed ChromePHPHandler so it avoids sending headers larger than Chrome can handle - -### 1.4.1 (2013-04-01) - - * Fixed exception formatting in the LineFormatter to be more minimalistic - * Fixed RavenHandler's handling of context/extra data, requires Raven client >0.1.0 - * Fixed log rotation in RotatingFileHandler to work with long running scripts spanning multiple days - * Fixed WebProcessor array access so it checks for data presence - * Fixed Buffer, Group and FingersCrossed handlers to make use of their processors - -### 1.4.0 (2013-02-13) - - * Added RedisHandler to log to Redis via the Predis library or the phpredis extension - * Added ZendMonitorHandler to log to the Zend Server monitor - * Added the possibility to pass arrays of handlers and processors directly in the Logger constructor - * Added `$useSSL` option to the PushoverHandler which is enabled by default - * Fixed ChromePHPHandler and FirePHPHandler issue when multiple instances are used simultaneously - * Fixed header injection capability in the NativeMailHandler - -### 1.3.1 (2013-01-11) - - * Fixed LogstashFormatter to be usable with stream handlers - * Fixed GelfMessageFormatter levels on Windows - -### 1.3.0 (2013-01-08) - - * Added PSR-3 compliance, the `Monolog\Logger` class is now an instance of `Psr\Log\LoggerInterface` - * Added PsrLogMessageProcessor that you can selectively enable for full PSR-3 compliance - * Added LogstashFormatter (combine with SocketHandler or StreamHandler to send logs to Logstash) - * Added PushoverHandler to send mobile notifications - * Added CouchDBHandler and DoctrineCouchDBHandler - * Added RavenHandler to send data to Sentry servers - * Added support for the new MongoClient class in MongoDBHandler - * Added microsecond precision to log records' timestamps - * Added `$flushOnOverflow` param to BufferHandler to flush by batches instead of losing - the oldest entries - * Fixed normalization of objects with cyclic references - -### 1.2.1 (2012-08-29) - - * Added new $logopts arg to SyslogHandler to provide custom openlog options - * Fixed fatal error in SyslogHandler - -### 1.2.0 (2012-08-18) - - * Added AmqpHandler (for use with AMQP servers) - * Added CubeHandler - * Added NativeMailerHandler::addHeader() to send custom headers in mails - * Added the possibility to specify more than one recipient in NativeMailerHandler - * Added the possibility to specify float timeouts in SocketHandler - * Added NOTICE and EMERGENCY levels to conform with RFC 5424 - * Fixed the log records to use the php default timezone instead of UTC - * Fixed BufferHandler not being flushed properly on PHP fatal errors - * Fixed normalization of exotic resource types - * Fixed the default format of the SyslogHandler to avoid duplicating datetimes in syslog - -### 1.1.0 (2012-04-23) - - * Added Monolog\Logger::isHandling() to check if a handler will - handle the given log level - * Added ChromePHPHandler - * Added MongoDBHandler - * Added GelfHandler (for use with Graylog2 servers) - * Added SocketHandler (for use with syslog-ng for example) - * Added NormalizerFormatter - * Added the possibility to change the activation strategy of the FingersCrossedHandler - * Added possibility to show microseconds in logs - * Added `server` and `referer` to WebProcessor output - -### 1.0.2 (2011-10-24) - - * Fixed bug in IE with large response headers and FirePHPHandler - -### 1.0.1 (2011-08-25) - - * Added MemoryPeakUsageProcessor and MemoryUsageProcessor - * Added Monolog\Logger::getName() to get a logger's channel name - -### 1.0.0 (2011-07-06) - - * Added IntrospectionProcessor to get info from where the logger was called - * Fixed WebProcessor in CLI - -### 1.0.0-RC1 (2011-07-01) - - * Initial release diff --git a/vendor/monolog/monolog/LICENSE b/vendor/monolog/monolog/LICENSE deleted file mode 100644 index aa2a042..0000000 --- a/vendor/monolog/monolog/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2011-2020 Jordi Boggiano - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is furnished -to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/vendor/monolog/monolog/README.md b/vendor/monolog/monolog/README.md deleted file mode 100644 index da44eb1..0000000 --- a/vendor/monolog/monolog/README.md +++ /dev/null @@ -1,135 +0,0 @@ -![Monolog](logo.jpg) - -# Monolog - Logging for PHP [![Continuous Integration](https://github.com/Seldaek/monolog/workflows/Continuous%20Integration/badge.svg?branch=main)](https://github.com/Seldaek/monolog/actions) - -[![Total Downloads](https://img.shields.io/packagist/dt/monolog/monolog.svg)](https://packagist.org/packages/monolog/monolog) -[![Latest Stable Version](https://img.shields.io/packagist/v/monolog/monolog.svg)](https://packagist.org/packages/monolog/monolog) - ->**Note** This is the **documentation for Monolog 3.x**, if you are using older releases ->see the documentation for [Monolog 2.x](https://github.com/Seldaek/monolog/blob/2.x/README.md) or [Monolog 1.x](https://github.com/Seldaek/monolog/blob/1.x/README.md) - -Monolog sends your logs to files, sockets, inboxes, databases and various -web services. See the complete list of handlers below. Special handlers -allow you to build advanced logging strategies. - -This library implements the [PSR-3](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md) -interface that you can type-hint against in your own libraries to keep -a maximum of interoperability. You can also use it in your applications to -make sure you can always use another compatible logger at a later time. -As of 1.11.0 Monolog public APIs will also accept PSR-3 log levels. -Internally Monolog still uses its own level scheme since it predates PSR-3. - -

- -## Installation - -Install the latest version with - -```bash -composer require monolog/monolog -``` - -## Basic Usage - -```php -pushHandler(new StreamHandler('path/to/your.log', Level::Warning)); - -// add records to the log -$log->warning('Foo'); -$log->error('Bar'); -``` - -## Documentation - -- [Usage Instructions](doc/01-usage.md) -- [Handlers, Formatters and Processors](doc/02-handlers-formatters-processors.md) -- [Utility Classes](doc/03-utilities.md) -- [Extending Monolog](doc/04-extending.md) -- [Log Record Structure](doc/message-structure.md) - -## Support Monolog Financially - -Get supported Monolog and help fund the project with the [Tidelift Subscription](https://tidelift.com/subscription/pkg/packagist-monolog-monolog?utm_source=packagist-monolog-monolog&utm_medium=referral&utm_campaign=enterprise) or via [GitHub sponsorship](https://github.com/sponsors/Seldaek). - -Tidelift delivers commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. - -## Third Party Packages - -Third party handlers, formatters and processors are -[listed in the wiki](https://github.com/Seldaek/monolog/wiki/Third-Party-Packages). You -can also add your own there if you publish one. - -## About - -### Requirements - -- Monolog `^3.0` works with PHP 8.1 or above. -- Monolog `^2.5` works with PHP 7.2 or above. -- Monolog `^1.25` works with PHP 5.3 up to 8.1, but is not very maintained anymore and will not receive PHP support fixes anymore. - -### Support - -Monolog 1.x support is somewhat limited at this point and only important fixes will be done. You should migrate to Monolog 2 or 3 where possible to benefit from all the latest features and fixes. - -### Submitting bugs and feature requests - -Bugs and feature request are tracked on [GitHub](https://github.com/Seldaek/monolog/issues) - -### Framework Integrations - -- Frameworks and libraries using [PSR-3](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md) - can be used very easily with Monolog since it implements the interface. -- [Symfony](http://symfony.com) comes out of the box with Monolog. -- [Laravel](http://laravel.com/) comes out of the box with Monolog. -- [Lumen](http://lumen.laravel.com/) comes out of the box with Monolog. -- [PPI](https://github.com/ppi/framework) comes out of the box with Monolog. -- [CakePHP](http://cakephp.org/) is usable with Monolog via the [cakephp-monolog](https://github.com/jadb/cakephp-monolog) plugin. -- [XOOPS 2.6](http://xoops.org/) comes out of the box with Monolog. -- [Aura.Web_Project](https://github.com/auraphp/Aura.Web_Project) comes out of the box with Monolog. -- [Nette Framework](http://nette.org/en/) is usable with Monolog via the [contributte/monolog](https://github.com/contributte/monolog) or [orisai/nette-monolog](https://github.com/orisai/nette-monolog) extensions. -- [Proton Micro Framework](https://github.com/alexbilbie/Proton) comes out of the box with Monolog. -- [FuelPHP](http://fuelphp.com/) comes out of the box with Monolog. -- [Equip Framework](https://github.com/equip/framework) comes out of the box with Monolog. -- [Yii 2](http://www.yiiframework.com/) is usable with Monolog via the [yii2-monolog](https://github.com/merorafael/yii2-monolog) or [yii2-psr-log-target](https://github.com/samdark/yii2-psr-log-target) plugins. -- [Hawkbit Micro Framework](https://github.com/HawkBitPhp/hawkbit) comes out of the box with Monolog. -- [SilverStripe 4](https://www.silverstripe.org/) comes out of the box with Monolog. -- [Drupal](https://www.drupal.org/) is usable with Monolog via the [monolog](https://www.drupal.org/project/monolog) module. -- [Aimeos ecommerce framework](https://aimeos.org/) is usable with Monolog via the [ai-monolog](https://github.com/aimeos/ai-monolog) extension. -- [Magento](https://magento.com/) comes out of the box with Monolog. -- [Spiral Framework](https://spiral.dev) comes out of the box with Monolog bridge. - -### Author - -Jordi Boggiano - -
-See also the list of [contributors](https://github.com/Seldaek/monolog/contributors) who participated in this project. - -### License - -Monolog is licensed under the MIT License - see the [LICENSE](LICENSE) file for details - -### Acknowledgements - -This library is heavily inspired by Python's [Logbook](https://logbook.readthedocs.io/en/stable/) -library, although most concepts have been adjusted to fit to the PHP world. diff --git a/vendor/monolog/monolog/composer.json b/vendor/monolog/monolog/composer.json deleted file mode 100644 index 9574a1b..0000000 --- a/vendor/monolog/monolog/composer.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "name": "monolog/monolog", - "description": "Sends your logs to files, sockets, inboxes, databases and various web services", - "keywords": ["log", "logging", "psr-3"], - "homepage": "https://github.com/Seldaek/monolog", - "type": "library", - "license": "MIT", - "authors": [ - { - "name": "Jordi Boggiano", - "email": "j.boggiano@seld.be", - "homepage": "https://seld.be" - } - ], - "require": { - "php": ">=8.1", - "psr/log": "^2.0 || ^3.0" - }, - "require-dev": { - "ext-json": "*", - "aws/aws-sdk-php": "^3.0", - "doctrine/couchdb": "~1.0@dev", - "elasticsearch/elasticsearch": "^7 || ^8", - "graylog2/gelf-php": "^1.4.2 || ^2.0", - "guzzlehttp/guzzle": "^7.4.5", - "guzzlehttp/psr7": "^2.2", - "mongodb/mongodb": "^1.8", - "php-amqplib/php-amqplib": "~2.4 || ^3", - "php-console/php-console": "^3.1.8", - "phpstan/phpstan": "^2", - "phpstan/phpstan-deprecation-rules": "^2", - "phpstan/phpstan-strict-rules": "^2", - "phpunit/phpunit": "^10.5.17 || ^11.0.7", - "predis/predis": "^1.1 || ^2", - "rollbar/rollbar": "^4.0", - "ruflin/elastica": "^7 || ^8", - "symfony/mailer": "^5.4 || ^6", - "symfony/mime": "^5.4 || ^6" - }, - "suggest": { - "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server", - "doctrine/couchdb": "Allow sending log messages to a CouchDB server", - "ruflin/elastica": "Allow sending log messages to an Elastic Search server", - "elasticsearch/elasticsearch": "Allow sending log messages to an Elasticsearch server via official client", - "php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib", - "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)", - "ext-mongodb": "Allow sending log messages to a MongoDB server (via driver)", - "mongodb/mongodb": "Allow sending log messages to a MongoDB server (via library)", - "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", - "rollbar/rollbar": "Allow sending log messages to Rollbar", - "ext-mbstring": "Allow to work properly with unicode symbols", - "ext-sockets": "Allow sending log messages to a Syslog server (via UDP driver)", - "ext-curl": "Required to send log messages using the IFTTTHandler, the LogglyHandler, the SendGridHandler, the SlackWebhookHandler or the TelegramBotHandler", - "ext-openssl": "Required to send log messages using SSL" - }, - "autoload": { - "psr-4": {"Monolog\\": "src/Monolog"} - }, - "autoload-dev": { - "psr-4": {"Monolog\\": "tests/Monolog"} - }, - "provide": { - "psr/log-implementation": "3.0.0" - }, - "extra": { - "branch-alias": { - "dev-main": "3.x-dev" - } - }, - "scripts": { - "test": "@php vendor/bin/phpunit", - "phpstan": "@php vendor/bin/phpstan analyse" - }, - "config": { - "lock": false, - "sort-packages": true, - "platform-check": false, - "allow-plugins": { - "php-http/discovery": false - } - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Attribute/AsMonologProcessor.php b/vendor/monolog/monolog/src/Monolog/Attribute/AsMonologProcessor.php deleted file mode 100644 index c519e05..0000000 --- a/vendor/monolog/monolog/src/Monolog/Attribute/AsMonologProcessor.php +++ /dev/null @@ -1,38 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Attribute; - -/** - * A reusable attribute to help configure a class or a method as a processor. - * - * Using it offers no guarantee: it needs to be leveraged by a Monolog third-party consumer. - * - * Using it with the Monolog library only has no effect at all: processors should still be turned into a callable if - * needed and manually pushed to the loggers and to the processable handlers. - */ -#[\Attribute(\Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)] -class AsMonologProcessor -{ - /** - * @param string|null $channel The logging channel the processor should be pushed to. - * @param string|null $handler The handler the processor should be pushed to. - * @param string|null $method The method that processes the records (if the attribute is used at the class level). - * @param int|null $priority The priority of the processor so the order can be determined. - */ - public function __construct( - public readonly ?string $channel = null, - public readonly ?string $handler = null, - public readonly ?string $method = null, - public readonly ?int $priority = null - ) { - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Attribute/WithMonologChannel.php b/vendor/monolog/monolog/src/Monolog/Attribute/WithMonologChannel.php deleted file mode 100644 index 862e05b..0000000 --- a/vendor/monolog/monolog/src/Monolog/Attribute/WithMonologChannel.php +++ /dev/null @@ -1,29 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Attribute; - -/** - * A reusable attribute to help configure a class as expecting a given logger channel. - * - * Using it offers no guarantee: it needs to be leveraged by a Monolog third-party consumer. - * - * Using it with the Monolog library only has no effect at all: wiring the logger instance into - * other classes is not managed by Monolog. - */ -#[\Attribute(\Attribute::TARGET_CLASS)] -final class WithMonologChannel -{ - public function __construct( - public readonly string $channel - ) { - } -} diff --git a/vendor/monolog/monolog/src/Monolog/DateTimeImmutable.php b/vendor/monolog/monolog/src/Monolog/DateTimeImmutable.php deleted file mode 100644 index 3cb7086..0000000 --- a/vendor/monolog/monolog/src/Monolog/DateTimeImmutable.php +++ /dev/null @@ -1,24 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog; - -class_alias(JsonSerializableDateTimeImmutable::class, 'Monolog\DateTimeImmutable'); - -// @phpstan-ignore-next-line -if (false) { - /** - * @deprecated Use \Monolog\JsonSerializableDateTimeImmutable instead. - */ - class DateTimeImmutable extends JsonSerializableDateTimeImmutable - { - } -} diff --git a/vendor/monolog/monolog/src/Monolog/ErrorHandler.php b/vendor/monolog/monolog/src/Monolog/ErrorHandler.php deleted file mode 100644 index 805f2df..0000000 --- a/vendor/monolog/monolog/src/Monolog/ErrorHandler.php +++ /dev/null @@ -1,279 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog; - -use Closure; -use Psr\Log\LoggerInterface; -use Psr\Log\LogLevel; - -/** - * Monolog error handler - * - * A facility to enable logging of runtime errors, exceptions and fatal errors. - * - * Quick setup: ErrorHandler::register($logger); - * - * @author Jordi Boggiano - */ -class ErrorHandler -{ - private Closure|null $previousExceptionHandler = null; - - /** @var array an array of class name to LogLevel::* constant mapping */ - private array $uncaughtExceptionLevelMap = []; - - /** @var Closure|true|null */ - private Closure|bool|null $previousErrorHandler = null; - - /** @var array an array of E_* constant to LogLevel::* constant mapping */ - private array $errorLevelMap = []; - - private bool $handleOnlyReportedErrors = true; - - private bool $hasFatalErrorHandler = false; - - private string $fatalLevel = LogLevel::ALERT; - - private string|null $reservedMemory = null; - - /** @var ?array{type: int, message: string, file: string, line: int, trace: mixed} */ - private array|null $lastFatalData = null; - - private const FATAL_ERRORS = [E_ERROR, E_PARSE, E_CORE_ERROR, E_COMPILE_ERROR, E_USER_ERROR]; - - public function __construct( - private LoggerInterface $logger - ) { - } - - /** - * Registers a new ErrorHandler for a given Logger - * - * By default it will handle errors, exceptions and fatal errors - * - * @param array|false $errorLevelMap an array of E_* constant to LogLevel::* constant mapping, or false to disable error handling - * @param array|false $exceptionLevelMap an array of class name to LogLevel::* constant mapping, or false to disable exception handling - * @param LogLevel::*|null|false $fatalLevel a LogLevel::* constant, null to use the default LogLevel::ALERT or false to disable fatal error handling - * @return static - */ - public static function register(LoggerInterface $logger, $errorLevelMap = [], $exceptionLevelMap = [], $fatalLevel = null): self - { - /** @phpstan-ignore-next-line */ - $handler = new static($logger); - if ($errorLevelMap !== false) { - $handler->registerErrorHandler($errorLevelMap); - } - if ($exceptionLevelMap !== false) { - $handler->registerExceptionHandler($exceptionLevelMap); - } - if ($fatalLevel !== false) { - $handler->registerFatalHandler($fatalLevel); - } - - return $handler; - } - - /** - * @param array $levelMap an array of class name to LogLevel::* constant mapping - * @return $this - */ - public function registerExceptionHandler(array $levelMap = [], bool $callPrevious = true): self - { - $prev = set_exception_handler(function (\Throwable $e): void { - $this->handleException($e); - }); - $this->uncaughtExceptionLevelMap = $levelMap; - foreach ($this->defaultExceptionLevelMap() as $class => $level) { - if (!isset($this->uncaughtExceptionLevelMap[$class])) { - $this->uncaughtExceptionLevelMap[$class] = $level; - } - } - if ($callPrevious && null !== $prev) { - $this->previousExceptionHandler = $prev(...); - } - - return $this; - } - - /** - * @param array $levelMap an array of E_* constant to LogLevel::* constant mapping - * @return $this - */ - public function registerErrorHandler(array $levelMap = [], bool $callPrevious = true, int $errorTypes = -1, bool $handleOnlyReportedErrors = true): self - { - $prev = set_error_handler($this->handleError(...), $errorTypes); - $this->errorLevelMap = array_replace($this->defaultErrorLevelMap(), $levelMap); - if ($callPrevious) { - $this->previousErrorHandler = $prev !== null ? $prev(...) : true; - } else { - $this->previousErrorHandler = null; - } - - $this->handleOnlyReportedErrors = $handleOnlyReportedErrors; - - return $this; - } - - /** - * @param LogLevel::*|null $level a LogLevel::* constant, null to use the default LogLevel::ALERT - * @param int $reservedMemorySize Amount of KBs to reserve in memory so that it can be freed when handling fatal errors giving Monolog some room in memory to get its job done - * @return $this - */ - public function registerFatalHandler($level = null, int $reservedMemorySize = 20): self - { - register_shutdown_function($this->handleFatalError(...)); - - $this->reservedMemory = str_repeat(' ', 1024 * $reservedMemorySize); - $this->fatalLevel = null === $level ? LogLevel::ALERT : $level; - $this->hasFatalErrorHandler = true; - - return $this; - } - - /** - * @return array - */ - protected function defaultExceptionLevelMap(): array - { - return [ - 'ParseError' => LogLevel::CRITICAL, - 'Throwable' => LogLevel::ERROR, - ]; - } - - /** - * @return array - */ - protected function defaultErrorLevelMap(): array - { - return [ - E_ERROR => LogLevel::CRITICAL, - E_WARNING => LogLevel::WARNING, - E_PARSE => LogLevel::ALERT, - E_NOTICE => LogLevel::NOTICE, - E_CORE_ERROR => LogLevel::CRITICAL, - E_CORE_WARNING => LogLevel::WARNING, - E_COMPILE_ERROR => LogLevel::ALERT, - E_COMPILE_WARNING => LogLevel::WARNING, - E_USER_ERROR => LogLevel::ERROR, - E_USER_WARNING => LogLevel::WARNING, - E_USER_NOTICE => LogLevel::NOTICE, - 2048 => LogLevel::NOTICE, // E_STRICT - E_RECOVERABLE_ERROR => LogLevel::ERROR, - E_DEPRECATED => LogLevel::NOTICE, - E_USER_DEPRECATED => LogLevel::NOTICE, - ]; - } - - private function handleException(\Throwable $e): never - { - $level = LogLevel::ERROR; - foreach ($this->uncaughtExceptionLevelMap as $class => $candidate) { - if ($e instanceof $class) { - $level = $candidate; - break; - } - } - - $this->logger->log( - $level, - sprintf('Uncaught Exception %s: "%s" at %s line %s', Utils::getClass($e), $e->getMessage(), $e->getFile(), $e->getLine()), - ['exception' => $e] - ); - - if (null !== $this->previousExceptionHandler) { - ($this->previousExceptionHandler)($e); - } - - if (!headers_sent() && \in_array(strtolower((string) \ini_get('display_errors')), ['0', '', 'false', 'off', 'none', 'no'], true)) { - http_response_code(500); - } - - exit(255); - } - - private function handleError(int $code, string $message, string $file = '', int $line = 0): bool - { - if ($this->handleOnlyReportedErrors && 0 === (error_reporting() & $code)) { - return false; - } - - // fatal error codes are ignored if a fatal error handler is present as well to avoid duplicate log entries - if (!$this->hasFatalErrorHandler || !\in_array($code, self::FATAL_ERRORS, true)) { - $level = $this->errorLevelMap[$code] ?? LogLevel::CRITICAL; - $this->logger->log($level, self::codeToString($code).': '.$message, ['code' => $code, 'message' => $message, 'file' => $file, 'line' => $line]); - } else { - $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS); - array_shift($trace); // Exclude handleError from trace - $this->lastFatalData = ['type' => $code, 'message' => $message, 'file' => $file, 'line' => $line, 'trace' => $trace]; - } - - if ($this->previousErrorHandler === true) { - return false; - } - if ($this->previousErrorHandler instanceof Closure) { - return (bool) ($this->previousErrorHandler)($code, $message, $file, $line); - } - - return true; - } - - /** - * @private - */ - public function handleFatalError(): void - { - $this->reservedMemory = ''; - - if (\is_array($this->lastFatalData)) { - $lastError = $this->lastFatalData; - } else { - $lastError = error_get_last(); - } - if (\is_array($lastError) && \in_array($lastError['type'], self::FATAL_ERRORS, true)) { - $trace = $lastError['trace'] ?? null; - $this->logger->log( - $this->fatalLevel, - 'Fatal Error ('.self::codeToString($lastError['type']).'): '.$lastError['message'], - ['code' => $lastError['type'], 'message' => $lastError['message'], 'file' => $lastError['file'], 'line' => $lastError['line'], 'trace' => $trace] - ); - - if ($this->logger instanceof Logger) { - foreach ($this->logger->getHandlers() as $handler) { - $handler->close(); - } - } - } - } - - private static function codeToString(int $code): string - { - return match ($code) { - E_ERROR => 'E_ERROR', - E_WARNING => 'E_WARNING', - E_PARSE => 'E_PARSE', - E_NOTICE => 'E_NOTICE', - E_CORE_ERROR => 'E_CORE_ERROR', - E_CORE_WARNING => 'E_CORE_WARNING', - E_COMPILE_ERROR => 'E_COMPILE_ERROR', - E_COMPILE_WARNING => 'E_COMPILE_WARNING', - E_USER_ERROR => 'E_USER_ERROR', - E_USER_WARNING => 'E_USER_WARNING', - E_USER_NOTICE => 'E_USER_NOTICE', - 2048 => 'E_STRICT', - E_RECOVERABLE_ERROR => 'E_RECOVERABLE_ERROR', - E_DEPRECATED => 'E_DEPRECATED', - E_USER_DEPRECATED => 'E_USER_DEPRECATED', - default => 'Unknown PHP error', - }; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Formatter/ChromePHPFormatter.php b/vendor/monolog/monolog/src/Monolog/Formatter/ChromePHPFormatter.php deleted file mode 100644 index beb5106..0000000 --- a/vendor/monolog/monolog/src/Monolog/Formatter/ChromePHPFormatter.php +++ /dev/null @@ -1,87 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Formatter; - -use Monolog\Level; -use Monolog\LogRecord; - -/** - * Formats a log message according to the ChromePHP array format - * - * @author Christophe Coevoet - */ -class ChromePHPFormatter implements FormatterInterface -{ - /** - * Translates Monolog log levels to Wildfire levels. - * - * @return 'log'|'info'|'warn'|'error' - */ - private function toWildfireLevel(Level $level): string - { - return match ($level) { - Level::Debug => 'log', - Level::Info => 'info', - Level::Notice => 'info', - Level::Warning => 'warn', - Level::Error => 'error', - Level::Critical => 'error', - Level::Alert => 'error', - Level::Emergency => 'error', - }; - } - - /** - * @inheritDoc - */ - public function format(LogRecord $record) - { - // Retrieve the line and file if set and remove them from the formatted extra - $backtrace = 'unknown'; - if (isset($record->extra['file'], $record->extra['line'])) { - $backtrace = $record->extra['file'].' : '.$record->extra['line']; - unset($record->extra['file'], $record->extra['line']); - } - - $message = ['message' => $record->message]; - if (\count($record->context) > 0) { - $message['context'] = $record->context; - } - if (\count($record->extra) > 0) { - $message['extra'] = $record->extra; - } - if (\count($message) === 1) { - $message = reset($message); - } - - return [ - $record->channel, - $message, - $backtrace, - $this->toWildfireLevel($record->level), - ]; - } - - /** - * @inheritDoc - */ - public function formatBatch(array $records) - { - $formatted = []; - - foreach ($records as $record) { - $formatted[] = $this->format($record); - } - - return $formatted; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Formatter/ElasticaFormatter.php b/vendor/monolog/monolog/src/Monolog/Formatter/ElasticaFormatter.php deleted file mode 100644 index 160510a..0000000 --- a/vendor/monolog/monolog/src/Monolog/Formatter/ElasticaFormatter.php +++ /dev/null @@ -1,87 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Formatter; - -use Elastica\Document; -use Monolog\LogRecord; - -/** - * Format a log message into an Elastica Document - * - * @author Jelle Vink - */ -class ElasticaFormatter extends NormalizerFormatter -{ - /** - * @var string Elastic search index name - */ - protected string $index; - - /** - * @var string|null Elastic search document type - */ - protected string|null $type; - - /** - * @param string $index Elastic Search index name - * @param ?string $type Elastic Search document type, deprecated as of Elastica 7 - */ - public function __construct(string $index, ?string $type) - { - // elasticsearch requires a ISO 8601 format date with optional millisecond precision. - parent::__construct('Y-m-d\TH:i:s.uP'); - - $this->index = $index; - $this->type = $type; - } - - /** - * @inheritDoc - */ - public function format(LogRecord $record) - { - $record = parent::format($record); - - return $this->getDocument($record); - } - - public function getIndex(): string - { - return $this->index; - } - - /** - * @deprecated since Elastica 7 type has no effect - */ - public function getType(): string - { - /** @phpstan-ignore-next-line */ - return $this->type; - } - - /** - * Convert a log message into an Elastica Document - * - * @param mixed[] $record - */ - protected function getDocument(array $record): Document - { - $document = new Document(); - $document->setData($record); - if (method_exists($document, 'setType')) { - $document->setType($this->type); - } - $document->setIndex($this->index); - - return $document; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Formatter/ElasticsearchFormatter.php b/vendor/monolog/monolog/src/Monolog/Formatter/ElasticsearchFormatter.php deleted file mode 100644 index 6c3eb9b..0000000 --- a/vendor/monolog/monolog/src/Monolog/Formatter/ElasticsearchFormatter.php +++ /dev/null @@ -1,86 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Formatter; - -use DateTimeInterface; -use Monolog\LogRecord; - -/** - * Format a log message into an Elasticsearch record - * - * @author Avtandil Kikabidze - */ -class ElasticsearchFormatter extends NormalizerFormatter -{ - /** - * @var string Elasticsearch index name - */ - protected string $index; - - /** - * @var string Elasticsearch record type - */ - protected string $type; - - /** - * @param string $index Elasticsearch index name - * @param string $type Elasticsearch record type - */ - public function __construct(string $index, string $type) - { - // Elasticsearch requires an ISO 8601 format date with optional millisecond precision. - parent::__construct(DateTimeInterface::ISO8601); - - $this->index = $index; - $this->type = $type; - } - - /** - * @inheritDoc - */ - public function format(LogRecord $record) - { - $record = parent::format($record); - - return $this->getDocument($record); - } - - /** - * Getter index - */ - public function getIndex(): string - { - return $this->index; - } - - /** - * Getter type - */ - public function getType(): string - { - return $this->type; - } - - /** - * Convert a log message into an Elasticsearch record - * - * @param mixed[] $record Log message - * @return mixed[] - */ - protected function getDocument(array $record): array - { - $record['_index'] = $this->index; - $record['_type'] = $this->type; - - return $record; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php b/vendor/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php deleted file mode 100644 index cc805c8..0000000 --- a/vendor/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php +++ /dev/null @@ -1,106 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Formatter; - -use Monolog\LogRecord; - -/** - * formats the record to be used in the FlowdockHandler - * - * @author Dominik Liebler - * @deprecated Since 2.9.0 and 3.3.0, Flowdock was shutdown we will thus drop this handler in Monolog 4 - */ -class FlowdockFormatter implements FormatterInterface -{ - private string $source; - - private string $sourceEmail; - - public function __construct(string $source, string $sourceEmail) - { - $this->source = $source; - $this->sourceEmail = $sourceEmail; - } - - /** - * @inheritDoc - * - * @return mixed[] - */ - public function format(LogRecord $record): array - { - $tags = [ - '#logs', - '#' . $record->level->toPsrLogLevel(), - '#' . $record->channel, - ]; - - foreach ($record->extra as $value) { - $tags[] = '#' . $value; - } - - $subject = sprintf( - 'in %s: %s - %s', - $this->source, - $record->level->getName(), - $this->getShortMessage($record->message) - ); - - return [ - 'source' => $this->source, - 'from_address' => $this->sourceEmail, - 'subject' => $subject, - 'content' => $record->message, - 'tags' => $tags, - 'project' => $this->source, - ]; - } - - /** - * @inheritDoc - * - * @return mixed[][] - */ - public function formatBatch(array $records): array - { - $formatted = []; - - foreach ($records as $record) { - $formatted[] = $this->format($record); - } - - return $formatted; - } - - public function getShortMessage(string $message): string - { - static $hasMbString; - - if (null === $hasMbString) { - $hasMbString = \function_exists('mb_strlen'); - } - - $maxLength = 45; - - if ($hasMbString) { - if (mb_strlen($message, 'UTF-8') > $maxLength) { - $message = mb_substr($message, 0, $maxLength - 4, 'UTF-8') . ' ...'; - } - } else { - if (\strlen($message) > $maxLength) { - $message = substr($message, 0, $maxLength - 4) . ' ...'; - } - } - - return $message; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php b/vendor/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php deleted file mode 100644 index 5f78117..0000000 --- a/vendor/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php +++ /dev/null @@ -1,85 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Formatter; - -use Monolog\Utils; -use Monolog\LogRecord; - -/** - * Class FluentdFormatter - * - * Serializes a log message to Fluentd unix socket protocol - * - * Fluentd config: - * - * - * type unix - * path /var/run/td-agent/td-agent.sock - * - * - * Monolog setup: - * - * $logger = new Monolog\Logger('fluent.tag'); - * $fluentHandler = new Monolog\Handler\SocketHandler('unix:///var/run/td-agent/td-agent.sock'); - * $fluentHandler->setFormatter(new Monolog\Formatter\FluentdFormatter()); - * $logger->pushHandler($fluentHandler); - * - * @author Andrius Putna - */ -class FluentdFormatter implements FormatterInterface -{ - /** - * @var bool $levelTag should message level be a part of the fluentd tag - */ - protected bool $levelTag = false; - - public function __construct(bool $levelTag = false) - { - $this->levelTag = $levelTag; - } - - public function isUsingLevelsInTag(): bool - { - return $this->levelTag; - } - - public function format(LogRecord $record): string - { - $tag = $record->channel; - if ($this->levelTag) { - $tag .= '.' . $record->level->toPsrLogLevel(); - } - - $message = [ - 'message' => $record->message, - 'context' => $record->context, - 'extra' => $record->extra, - ]; - - if (!$this->levelTag) { - $message['level'] = $record->level->value; - $message['level_name'] = $record->level->getName(); - } - - return Utils::jsonEncode([$tag, $record->datetime->getTimestamp(), $message]); - } - - public function formatBatch(array $records): string - { - $message = ''; - foreach ($records as $record) { - $message .= $this->format($record); - } - - return $message; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Formatter/FormatterInterface.php b/vendor/monolog/monolog/src/Monolog/Formatter/FormatterInterface.php deleted file mode 100644 index 3413a4b..0000000 --- a/vendor/monolog/monolog/src/Monolog/Formatter/FormatterInterface.php +++ /dev/null @@ -1,38 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Formatter; - -use Monolog\LogRecord; - -/** - * Interface for formatters - * - * @author Jordi Boggiano - */ -interface FormatterInterface -{ - /** - * Formats a log record. - * - * @param LogRecord $record A record to format - * @return mixed The formatted record - */ - public function format(LogRecord $record); - - /** - * Formats a set of log records. - * - * @param array $records A set of records to format - * @return mixed The formatted set of records - */ - public function formatBatch(array $records); -} diff --git a/vendor/monolog/monolog/src/Monolog/Formatter/GelfMessageFormatter.php b/vendor/monolog/monolog/src/Monolog/Formatter/GelfMessageFormatter.php deleted file mode 100644 index d169e1b..0000000 --- a/vendor/monolog/monolog/src/Monolog/Formatter/GelfMessageFormatter.php +++ /dev/null @@ -1,150 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Formatter; - -use Monolog\Level; -use Gelf\Message; -use Monolog\Utils; -use Monolog\LogRecord; - -/** - * Serializes a log message to GELF - * @see http://docs.graylog.org/en/latest/pages/gelf.html - * - * @author Matt Lehner - */ -class GelfMessageFormatter extends NormalizerFormatter -{ - protected const DEFAULT_MAX_LENGTH = 32766; - - /** - * @var string the name of the system for the Gelf log message - */ - protected string $systemName; - - /** - * @var string a prefix for 'extra' fields from the Monolog record (optional) - */ - protected string $extraPrefix; - - /** - * @var string a prefix for 'context' fields from the Monolog record (optional) - */ - protected string $contextPrefix; - - /** - * @var int max length per field - */ - protected int $maxLength; - - /** - * Translates Monolog log levels to Graylog2 log priorities. - */ - private function getGraylog2Priority(Level $level): int - { - return match ($level) { - Level::Debug => 7, - Level::Info => 6, - Level::Notice => 5, - Level::Warning => 4, - Level::Error => 3, - Level::Critical => 2, - Level::Alert => 1, - Level::Emergency => 0, - }; - } - - /** - * @throws \RuntimeException - */ - public function __construct(?string $systemName = null, ?string $extraPrefix = null, string $contextPrefix = 'ctxt_', ?int $maxLength = null) - { - if (!class_exists(Message::class)) { - throw new \RuntimeException('Composer package graylog2/gelf-php is required to use Monolog\'s GelfMessageFormatter'); - } - - parent::__construct('U.u'); - - $this->systemName = (null === $systemName || $systemName === '') ? (string) gethostname() : $systemName; - - $this->extraPrefix = null === $extraPrefix ? '' : $extraPrefix; - $this->contextPrefix = $contextPrefix; - $this->maxLength = null === $maxLength ? self::DEFAULT_MAX_LENGTH : $maxLength; - } - - /** - * @inheritDoc - */ - public function format(LogRecord $record): Message - { - $context = $extra = []; - if (isset($record->context)) { - /** @var array|bool|float|int|string|null> $context */ - $context = parent::normalize($record->context); - } - if (isset($record->extra)) { - /** @var array|bool|float|int|string|null> $extra */ - $extra = parent::normalize($record->extra); - } - - $message = new Message(); - $message - ->setTimestamp($record->datetime) - ->setShortMessage($record->message) - ->setHost($this->systemName) - ->setLevel($this->getGraylog2Priority($record->level)); - - // message length + system name length + 200 for padding / metadata - $len = 200 + \strlen($record->message) + \strlen($this->systemName); - - if ($len > $this->maxLength) { - $message->setShortMessage(Utils::substr($record->message, 0, $this->maxLength)); - } - - if (isset($record->channel)) { - $message->setAdditional('facility', $record->channel); - } - - foreach ($extra as $key => $val) { - $key = (string) preg_replace('#[^\w\.\-]#', '-', $key); - $val = \is_scalar($val) || null === $val ? $val : $this->toJson($val); - $len = \strlen($this->extraPrefix . $key . $val); - if ($len > $this->maxLength) { - $message->setAdditional($this->extraPrefix . $key, Utils::substr((string) $val, 0, $this->maxLength)); - - continue; - } - $message->setAdditional($this->extraPrefix . $key, $val); - } - - foreach ($context as $key => $val) { - $key = (string) preg_replace('#[^\w\.\-]#', '-', $key); - $val = \is_scalar($val) || null === $val ? $val : $this->toJson($val); - $len = \strlen($this->contextPrefix . $key . $val); - if ($len > $this->maxLength) { - $message->setAdditional($this->contextPrefix . $key, Utils::substr((string) $val, 0, $this->maxLength)); - - continue; - } - $message->setAdditional($this->contextPrefix . $key, $val); - } - - if (!$message->hasAdditional('file') && isset($context['exception']['file'])) { - if (1 === preg_match("/^(.+):([0-9]+)$/", $context['exception']['file'], $matches)) { - $message->setAdditional('file', $matches[1]); - $message->setAdditional('line', $matches[2]); - } - } - - return $message; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Formatter/GoogleCloudLoggingFormatter.php b/vendor/monolog/monolog/src/Monolog/Formatter/GoogleCloudLoggingFormatter.php deleted file mode 100644 index c97b912..0000000 --- a/vendor/monolog/monolog/src/Monolog/Formatter/GoogleCloudLoggingFormatter.php +++ /dev/null @@ -1,40 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Formatter; - -use DateTimeInterface; -use Monolog\LogRecord; - -/** - * Encodes message information into JSON in a format compatible with Cloud logging. - * - * @see https://cloud.google.com/logging/docs/structured-logging - * @see https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry - * - * @author Luís Cobucci - */ -class GoogleCloudLoggingFormatter extends JsonFormatter -{ - protected function normalizeRecord(LogRecord $record): array - { - $normalized = parent::normalizeRecord($record); - - // Re-key level for GCP logging - $normalized['severity'] = $normalized['level_name']; - $normalized['time'] = $record->datetime->format(DateTimeInterface::RFC3339_EXTENDED); - - // Remove keys that are not used by GCP - unset($normalized['level'], $normalized['level_name'], $normalized['datetime']); - - return $normalized; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php b/vendor/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php deleted file mode 100644 index 09cbea9..0000000 --- a/vendor/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php +++ /dev/null @@ -1,142 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Formatter; - -use Monolog\Level; -use Monolog\Utils; -use Monolog\LogRecord; - -/** - * Formats incoming records into an HTML table - * - * This is especially useful for html email logging - * - * @author Tiago Brito - */ -class HtmlFormatter extends NormalizerFormatter -{ - /** - * Translates Monolog log levels to html color priorities. - */ - protected function getLevelColor(Level $level): string - { - return match ($level) { - Level::Debug => '#CCCCCC', - Level::Info => '#28A745', - Level::Notice => '#17A2B8', - Level::Warning => '#FFC107', - Level::Error => '#FD7E14', - Level::Critical => '#DC3545', - Level::Alert => '#821722', - Level::Emergency => '#000000', - }; - } - - /** - * @param string|null $dateFormat The format of the timestamp: one supported by DateTime::format - */ - public function __construct(?string $dateFormat = null) - { - parent::__construct($dateFormat); - } - - /** - * Creates an HTML table row - * - * @param string $th Row header content - * @param string $td Row standard cell content - * @param bool $escapeTd false if td content must not be html escaped - */ - protected function addRow(string $th, string $td = ' ', bool $escapeTd = true): string - { - $th = htmlspecialchars($th, ENT_NOQUOTES, 'UTF-8'); - if ($escapeTd) { - $td = '
'.htmlspecialchars($td, ENT_NOQUOTES, 'UTF-8').'
'; - } - - return "\n$th:\n".$td."\n"; - } - - /** - * Create a HTML h1 tag - * - * @param string $title Text to be in the h1 - */ - protected function addTitle(string $title, Level $level): string - { - $title = htmlspecialchars($title, ENT_NOQUOTES, 'UTF-8'); - - return '

'.$title.'

'; - } - - /** - * Formats a log record. - * - * @return string The formatted record - */ - public function format(LogRecord $record): string - { - $output = $this->addTitle($record->level->getName(), $record->level); - $output .= ''; - - $output .= $this->addRow('Message', $record->message); - $output .= $this->addRow('Time', $this->formatDate($record->datetime)); - $output .= $this->addRow('Channel', $record->channel); - if (\count($record->context) > 0) { - $embeddedTable = '
'; - foreach ($record->context as $key => $value) { - $embeddedTable .= $this->addRow((string) $key, $this->convertToString($value)); - } - $embeddedTable .= '
'; - $output .= $this->addRow('Context', $embeddedTable, false); - } - if (\count($record->extra) > 0) { - $embeddedTable = ''; - foreach ($record->extra as $key => $value) { - $embeddedTable .= $this->addRow((string) $key, $this->convertToString($value)); - } - $embeddedTable .= '
'; - $output .= $this->addRow('Extra', $embeddedTable, false); - } - - return $output.''; - } - - /** - * Formats a set of log records. - * - * @return string The formatted set of records - */ - public function formatBatch(array $records): string - { - $message = ''; - foreach ($records as $record) { - $message .= $this->format($record); - } - - return $message; - } - - /** - * @param mixed $data - */ - protected function convertToString($data): string - { - if (null === $data || \is_scalar($data)) { - return (string) $data; - } - - $data = $this->normalize($data); - - return Utils::jsonEncode($data, JSON_PRETTY_PRINT | Utils::DEFAULT_JSON_FLAGS, true); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php b/vendor/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php deleted file mode 100644 index b59639e..0000000 --- a/vendor/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php +++ /dev/null @@ -1,230 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Formatter; - -use Stringable; -use Throwable; -use Monolog\LogRecord; - -/** - * Encodes whatever record data is passed to it as json - * - * This can be useful to log to databases or remote APIs - * - * @author Jordi Boggiano - */ -class JsonFormatter extends NormalizerFormatter -{ - public const BATCH_MODE_JSON = 1; - public const BATCH_MODE_NEWLINES = 2; - - /** @var self::BATCH_MODE_* */ - protected int $batchMode; - - protected bool $appendNewline; - - protected bool $ignoreEmptyContextAndExtra; - - protected bool $includeStacktraces = false; - - /** - * @param self::BATCH_MODE_* $batchMode - */ - public function __construct(int $batchMode = self::BATCH_MODE_JSON, bool $appendNewline = true, bool $ignoreEmptyContextAndExtra = false, bool $includeStacktraces = false) - { - $this->batchMode = $batchMode; - $this->appendNewline = $appendNewline; - $this->ignoreEmptyContextAndExtra = $ignoreEmptyContextAndExtra; - $this->includeStacktraces = $includeStacktraces; - - parent::__construct(); - } - - /** - * The batch mode option configures the formatting style for - * multiple records. By default, multiple records will be - * formatted as a JSON-encoded array. However, for - * compatibility with some API endpoints, alternative styles - * are available. - */ - public function getBatchMode(): int - { - return $this->batchMode; - } - - /** - * True if newlines are appended to every formatted record - */ - public function isAppendingNewlines(): bool - { - return $this->appendNewline; - } - - /** - * @inheritDoc - */ - public function format(LogRecord $record): string - { - $normalized = $this->normalizeRecord($record); - - return $this->toJson($normalized, true) . ($this->appendNewline ? "\n" : ''); - } - - /** - * @inheritDoc - */ - public function formatBatch(array $records): string - { - return match ($this->batchMode) { - static::BATCH_MODE_NEWLINES => $this->formatBatchNewlines($records), - default => $this->formatBatchJson($records), - }; - } - - /** - * @return $this - */ - public function includeStacktraces(bool $include = true): self - { - $this->includeStacktraces = $include; - - return $this; - } - - /** - * @return array|bool|float|int|\stdClass|string|null> - */ - protected function normalizeRecord(LogRecord $record): array - { - $normalized = parent::normalizeRecord($record); - - if (isset($normalized['context']) && $normalized['context'] === []) { - if ($this->ignoreEmptyContextAndExtra) { - unset($normalized['context']); - } else { - $normalized['context'] = new \stdClass; - } - } - if (isset($normalized['extra']) && $normalized['extra'] === []) { - if ($this->ignoreEmptyContextAndExtra) { - unset($normalized['extra']); - } else { - $normalized['extra'] = new \stdClass; - } - } - - return $normalized; - } - - /** - * Return a JSON-encoded array of records. - * - * @phpstan-param LogRecord[] $records - */ - protected function formatBatchJson(array $records): string - { - $formatted = array_map(fn (LogRecord $record) => $this->normalizeRecord($record), $records); - - return $this->toJson($formatted, true); - } - - /** - * Use new lines to separate records instead of a - * JSON-encoded array. - * - * @phpstan-param LogRecord[] $records - */ - protected function formatBatchNewlines(array $records): string - { - $oldNewline = $this->appendNewline; - $this->appendNewline = false; - $formatted = array_map(fn (LogRecord $record) => $this->format($record), $records); - $this->appendNewline = $oldNewline; - - return implode("\n", $formatted); - } - - /** - * Normalizes given $data. - * - * @return null|scalar|array|object - */ - protected function normalize(mixed $data, int $depth = 0): mixed - { - if ($depth > $this->maxNormalizeDepth) { - return 'Over '.$this->maxNormalizeDepth.' levels deep, aborting normalization'; - } - - if (\is_array($data)) { - $normalized = []; - - $count = 1; - foreach ($data as $key => $value) { - if ($count++ > $this->maxNormalizeItemCount) { - $normalized['...'] = 'Over '.$this->maxNormalizeItemCount.' items ('.\count($data).' total), aborting normalization'; - break; - } - - $normalized[$key] = $this->normalize($value, $depth + 1); - } - - return $normalized; - } - - if (\is_object($data)) { - if ($data instanceof \DateTimeInterface) { - return $this->formatDate($data); - } - - if ($data instanceof Throwable) { - return $this->normalizeException($data, $depth); - } - - // if the object has specific json serializability we want to make sure we skip the __toString treatment below - if ($data instanceof \JsonSerializable) { - return $data; - } - - if ($data instanceof Stringable) { - return $data->__toString(); - } - - if (\get_class($data) === '__PHP_Incomplete_Class') { - return new \ArrayObject($data); - } - - return $data; - } - - if (\is_resource($data)) { - return parent::normalize($data); - } - - return $data; - } - - /** - * Normalizes given exception with or without its own stack trace based on - * `includeStacktraces` property. - * - * @return array>> - */ - protected function normalizeException(Throwable $e, int $depth = 0): array - { - $data = parent::normalizeException($e, $depth); - if (!$this->includeStacktraces) { - unset($data['trace']); - } - - return $data; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php b/vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php deleted file mode 100644 index 8c671aa..0000000 --- a/vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php +++ /dev/null @@ -1,314 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Formatter; - -use Closure; -use Monolog\Utils; -use Monolog\LogRecord; - -/** - * Formats incoming records into a one-line string - * - * This is especially useful for logging to files - * - * @author Jordi Boggiano - * @author Christophe Coevoet - */ -class LineFormatter extends NormalizerFormatter -{ - public const SIMPLE_FORMAT = "[%datetime%] %channel%.%level_name%: %message% %context% %extra%\n"; - - protected string $format; - protected bool $allowInlineLineBreaks; - protected bool $ignoreEmptyContextAndExtra; - protected bool $includeStacktraces; - protected ?int $maxLevelNameLength = null; - protected string $indentStacktraces = ''; - protected Closure|null $stacktracesParser = null; - protected string $basePath = ''; - - /** - * @param string|null $format The format of the message - * @param string|null $dateFormat The format of the timestamp: one supported by DateTime::format - * @param bool $allowInlineLineBreaks Whether to allow inline line breaks in log entries - */ - public function __construct(?string $format = null, ?string $dateFormat = null, bool $allowInlineLineBreaks = false, bool $ignoreEmptyContextAndExtra = false, bool $includeStacktraces = false) - { - $this->format = $format === null ? static::SIMPLE_FORMAT : $format; - $this->allowInlineLineBreaks = $allowInlineLineBreaks; - $this->ignoreEmptyContextAndExtra = $ignoreEmptyContextAndExtra; - $this->includeStacktraces($includeStacktraces); - parent::__construct($dateFormat); - } - - /** - * Setting a base path will hide the base path from exception and stack trace file names to shorten them - * @return $this - */ - public function setBasePath(string $path = ''): self - { - if ($path !== '') { - $path = rtrim($path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR; - } - - $this->basePath = $path; - - return $this; - } - - /** - * @return $this - */ - public function includeStacktraces(bool $include = true, ?Closure $parser = null): self - { - $this->includeStacktraces = $include; - if ($this->includeStacktraces) { - $this->allowInlineLineBreaks = true; - $this->stacktracesParser = $parser; - } - - return $this; - } - - /** - * Indent stack traces to separate them a bit from the main log record messages - * - * @param string $indent The string used to indent, for example " " - * @return $this - */ - public function indentStacktraces(string $indent): self - { - $this->indentStacktraces = $indent; - - return $this; - } - - /** - * @return $this - */ - public function allowInlineLineBreaks(bool $allow = true): self - { - $this->allowInlineLineBreaks = $allow; - - return $this; - } - - /** - * @return $this - */ - public function ignoreEmptyContextAndExtra(bool $ignore = true): self - { - $this->ignoreEmptyContextAndExtra = $ignore; - - return $this; - } - - /** - * Allows cutting the level name to get fixed-length levels like INF for INFO, ERR for ERROR if you set this to 3 for example - * - * @param int|null $maxLevelNameLength Maximum characters for the level name. Set null for infinite length (default) - * @return $this - */ - public function setMaxLevelNameLength(?int $maxLevelNameLength = null): self - { - $this->maxLevelNameLength = $maxLevelNameLength; - - return $this; - } - - /** - * @inheritDoc - */ - public function format(LogRecord $record): string - { - $vars = parent::format($record); - - if ($this->maxLevelNameLength !== null) { - $vars['level_name'] = substr($vars['level_name'], 0, $this->maxLevelNameLength); - } - - $output = $this->format; - foreach ($vars['extra'] as $var => $val) { - if (false !== strpos($output, '%extra.'.$var.'%')) { - $output = str_replace('%extra.'.$var.'%', $this->stringify($val), $output); - unset($vars['extra'][$var]); - } - } - - foreach ($vars['context'] as $var => $val) { - if (false !== strpos($output, '%context.'.$var.'%')) { - $output = str_replace('%context.'.$var.'%', $this->stringify($val), $output); - unset($vars['context'][$var]); - } - } - - if ($this->ignoreEmptyContextAndExtra) { - if (\count($vars['context']) === 0) { - unset($vars['context']); - $output = str_replace('%context%', '', $output); - } - - if (\count($vars['extra']) === 0) { - unset($vars['extra']); - $output = str_replace('%extra%', '', $output); - } - } - - foreach ($vars as $var => $val) { - if (false !== strpos($output, '%'.$var.'%')) { - $output = str_replace('%'.$var.'%', $this->stringify($val), $output); - } - } - - // remove leftover %extra.xxx% and %context.xxx% if any - if (false !== strpos($output, '%')) { - $output = preg_replace('/%(?:extra|context)\..+?%/', '', $output); - if (null === $output) { - $pcreErrorCode = preg_last_error(); - - throw new \RuntimeException('Failed to run preg_replace: ' . $pcreErrorCode . ' / ' . preg_last_error_msg()); - } - } - - return $output; - } - - public function formatBatch(array $records): string - { - $message = ''; - foreach ($records as $record) { - $message .= $this->format($record); - } - - return $message; - } - - /** - * @param mixed $value - */ - public function stringify($value): string - { - return $this->replaceNewlines($this->convertToString($value)); - } - - protected function normalizeException(\Throwable $e, int $depth = 0): string - { - $str = $this->formatException($e); - - if (($previous = $e->getPrevious()) instanceof \Throwable) { - do { - $depth++; - if ($depth > $this->maxNormalizeDepth) { - $str .= "\n[previous exception] Over " . $this->maxNormalizeDepth . ' levels deep, aborting normalization'; - break; - } - - $str .= "\n[previous exception] " . $this->formatException($previous); - } while ($previous = $previous->getPrevious()); - } - - return $str; - } - - /** - * @param mixed $data - */ - protected function convertToString($data): string - { - if (null === $data || \is_bool($data)) { - return var_export($data, true); - } - - if (\is_scalar($data)) { - return (string) $data; - } - - return $this->toJson($data, true); - } - - protected function replaceNewlines(string $str): string - { - if ($this->allowInlineLineBreaks) { - if (0 === strpos($str, '{') || 0 === strpos($str, '[')) { - $str = preg_replace('/(?getCode(); - if ($e instanceof \SoapFault) { - if (isset($e->faultcode)) { - $str .= ' faultcode: ' . $e->faultcode; - } - - if (isset($e->faultactor)) { - $str .= ' faultactor: ' . $e->faultactor; - } - - if (isset($e->detail)) { - if (\is_string($e->detail)) { - $str .= ' detail: ' . $e->detail; - } elseif (\is_object($e->detail) || \is_array($e->detail)) { - $str .= ' detail: ' . $this->toJson($e->detail, true); - } - } - } - - $file = $e->getFile(); - if ($this->basePath !== '') { - $file = preg_replace('{^'.preg_quote($this->basePath).'}', '', $file); - } - - $str .= '): ' . $e->getMessage() . ' at ' . $file . ':' . $e->getLine() . ')'; - - if ($this->includeStacktraces) { - $str .= $this->stacktracesParser($e); - } - - return $str; - } - - private function stacktracesParser(\Throwable $e): string - { - $trace = $e->getTraceAsString(); - - if ($this->basePath !== '') { - $trace = preg_replace('{^(#\d+ )' . preg_quote($this->basePath) . '}m', '$1', $trace) ?? $trace; - } - - if ($this->stacktracesParser !== null) { - $trace = $this->stacktracesParserCustom($trace); - } - - if ($this->indentStacktraces !== '') { - $trace = str_replace("\n", "\n{$this->indentStacktraces}", $trace); - } - - return "\n{$this->indentStacktraces}[stacktrace]\n{$this->indentStacktraces}" . $trace . "\n"; - } - - private function stacktracesParserCustom(string $trace): string - { - return implode("\n", array_filter(array_map($this->stacktracesParser, explode("\n", $trace)), fn ($line) => is_string($line) && trim($line) !== '')); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php b/vendor/monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php deleted file mode 100644 index 5f0b6a4..0000000 --- a/vendor/monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php +++ /dev/null @@ -1,47 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Formatter; - -use Monolog\LogRecord; - -/** - * Encodes message information into JSON in a format compatible with Loggly. - * - * @author Adam Pancutt - */ -class LogglyFormatter extends JsonFormatter -{ - /** - * Overrides the default batch mode to new lines for compatibility with the - * Loggly bulk API. - */ - public function __construct(int $batchMode = self::BATCH_MODE_NEWLINES, bool $appendNewline = false) - { - parent::__construct($batchMode, $appendNewline); - } - - /** - * Appends the 'timestamp' parameter for indexing by Loggly. - * - * @see https://www.loggly.com/docs/automated-parsing/#json - * @see \Monolog\Formatter\JsonFormatter::format() - */ - protected function normalizeRecord(LogRecord $record): array - { - $recordData = parent::normalizeRecord($record); - - $recordData["timestamp"] = $record->datetime->format("Y-m-d\TH:i:s.uO"); - unset($recordData["datetime"]); - - return $recordData; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Formatter/LogmaticFormatter.php b/vendor/monolog/monolog/src/Monolog/Formatter/LogmaticFormatter.php deleted file mode 100644 index 9e44c19..0000000 --- a/vendor/monolog/monolog/src/Monolog/Formatter/LogmaticFormatter.php +++ /dev/null @@ -1,70 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Formatter; - -use Monolog\LogRecord; - -/** - * Encodes message information into JSON in a format compatible with Logmatic. - * - * @author Julien Breux - */ -class LogmaticFormatter extends JsonFormatter -{ - protected const MARKERS = ["sourcecode", "php"]; - - protected string $hostname = ''; - - protected string $appName = ''; - - /** - * @return $this - */ - public function setHostname(string $hostname): self - { - $this->hostname = $hostname; - - return $this; - } - - /** - * @return $this - */ - public function setAppName(string $appName): self - { - $this->appName = $appName; - - return $this; - } - - /** - * Appends the 'hostname' and 'appname' parameter for indexing by Logmatic. - * - * @see http://doc.logmatic.io/docs/basics-to-send-data - * @see \Monolog\Formatter\JsonFormatter::format() - */ - public function normalizeRecord(LogRecord $record): array - { - $record = parent::normalizeRecord($record); - - if ($this->hostname !== '') { - $record["hostname"] = $this->hostname; - } - if ($this->appName !== '') { - $record["appname"] = $this->appName; - } - - $record["@marker"] = static::MARKERS; - - return $record; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Formatter/LogstashFormatter.php b/vendor/monolog/monolog/src/Monolog/Formatter/LogstashFormatter.php deleted file mode 100644 index d0e8749..0000000 --- a/vendor/monolog/monolog/src/Monolog/Formatter/LogstashFormatter.php +++ /dev/null @@ -1,100 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Formatter; - -use Monolog\LogRecord; - -/** - * Serializes a log message to Logstash Event Format - * - * @see https://www.elastic.co/products/logstash - * @see https://github.com/elastic/logstash/blob/master/logstash-core/src/main/java/org/logstash/Event.java - * - * @author Tim Mower - */ -class LogstashFormatter extends NormalizerFormatter -{ - /** - * @var string the name of the system for the Logstash log message, used to fill the @source field - */ - protected string $systemName; - - /** - * @var string an application name for the Logstash log message, used to fill the @type field - */ - protected string $applicationName; - - /** - * @var string the key for 'extra' fields from the Monolog record - */ - protected string $extraKey; - - /** - * @var string the key for 'context' fields from the Monolog record - */ - protected string $contextKey; - - /** - * @param string $applicationName The application that sends the data, used as the "type" field of logstash - * @param string|null $systemName The system/machine name, used as the "source" field of logstash, defaults to the hostname of the machine - * @param string $extraKey The key for extra keys inside logstash "fields", defaults to extra - * @param string $contextKey The key for context keys inside logstash "fields", defaults to context - */ - public function __construct(string $applicationName, ?string $systemName = null, string $extraKey = 'extra', string $contextKey = 'context') - { - // logstash requires a ISO 8601 format date with optional millisecond precision. - parent::__construct('Y-m-d\TH:i:s.uP'); - - $this->systemName = $systemName === null ? (string) gethostname() : $systemName; - $this->applicationName = $applicationName; - $this->extraKey = $extraKey; - $this->contextKey = $contextKey; - } - - /** - * @inheritDoc - */ - public function format(LogRecord $record): string - { - $recordData = parent::format($record); - - $message = [ - '@timestamp' => $recordData['datetime'], - '@version' => 1, - 'host' => $this->systemName, - ]; - if (isset($recordData['message'])) { - $message['message'] = $recordData['message']; - } - if (isset($recordData['channel'])) { - $message['type'] = $recordData['channel']; - $message['channel'] = $recordData['channel']; - } - if (isset($recordData['level_name'])) { - $message['level'] = $recordData['level_name']; - } - if (isset($recordData['level'])) { - $message['monolog_level'] = $recordData['level']; - } - if ('' !== $this->applicationName) { - $message['type'] = $this->applicationName; - } - if (\count($recordData['extra']) > 0) { - $message[$this->extraKey] = $recordData['extra']; - } - if (\count($recordData['context']) > 0) { - $message[$this->contextKey] = $recordData['context']; - } - - return $this->toJson($message) . "\n"; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php b/vendor/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php deleted file mode 100644 index 129f048..0000000 --- a/vendor/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php +++ /dev/null @@ -1,159 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Formatter; - -use MongoDB\BSON\Type; -use MongoDB\BSON\UTCDateTime; -use Monolog\Utils; -use Monolog\LogRecord; - -/** - * Formats a record for use with the MongoDBHandler. - * - * @author Florian Plattner - */ -class MongoDBFormatter implements FormatterInterface -{ - private bool $exceptionTraceAsString; - private int $maxNestingLevel; - private bool $isLegacyMongoExt; - - /** - * @param int $maxNestingLevel 0 means infinite nesting, the $record itself is level 1, $record->context is 2 - * @param bool $exceptionTraceAsString set to false to log exception traces as a sub documents instead of strings - */ - public function __construct(int $maxNestingLevel = 3, bool $exceptionTraceAsString = true) - { - $this->maxNestingLevel = max($maxNestingLevel, 0); - $this->exceptionTraceAsString = $exceptionTraceAsString; - - $this->isLegacyMongoExt = \extension_loaded('mongodb') && version_compare((string) phpversion('mongodb'), '1.1.9', '<='); - } - - /** - * @inheritDoc - * - * @return mixed[] - */ - public function format(LogRecord $record): array - { - /** @var mixed[] $res */ - $res = $this->formatArray($record->toArray()); - - return $res; - } - - /** - * @inheritDoc - * - * @return array - */ - public function formatBatch(array $records): array - { - $formatted = []; - foreach ($records as $key => $record) { - $formatted[$key] = $this->format($record); - } - - return $formatted; - } - - /** - * @param mixed[] $array - * @return mixed[]|string Array except when max nesting level is reached then a string "[...]" - */ - protected function formatArray(array $array, int $nestingLevel = 0) - { - if ($this->maxNestingLevel > 0 && $nestingLevel > $this->maxNestingLevel) { - return '[...]'; - } - - foreach ($array as $name => $value) { - if ($value instanceof \DateTimeInterface) { - $array[$name] = $this->formatDate($value, $nestingLevel + 1); - } elseif ($value instanceof \Throwable) { - $array[$name] = $this->formatException($value, $nestingLevel + 1); - } elseif (\is_array($value)) { - $array[$name] = $this->formatArray($value, $nestingLevel + 1); - } elseif (\is_object($value) && !$value instanceof Type) { - $array[$name] = $this->formatObject($value, $nestingLevel + 1); - } - } - - return $array; - } - - /** - * @param mixed $value - * @return mixed[]|string - */ - protected function formatObject($value, int $nestingLevel) - { - $objectVars = get_object_vars($value); - $objectVars['class'] = Utils::getClass($value); - - return $this->formatArray($objectVars, $nestingLevel); - } - - /** - * @return mixed[]|string - */ - protected function formatException(\Throwable $exception, int $nestingLevel) - { - $formattedException = [ - 'class' => Utils::getClass($exception), - 'message' => $exception->getMessage(), - 'code' => (int) $exception->getCode(), - 'file' => $exception->getFile() . ':' . $exception->getLine(), - ]; - - if ($this->exceptionTraceAsString === true) { - $formattedException['trace'] = $exception->getTraceAsString(); - } else { - $formattedException['trace'] = $exception->getTrace(); - } - - return $this->formatArray($formattedException, $nestingLevel); - } - - protected function formatDate(\DateTimeInterface $value, int $nestingLevel): UTCDateTime - { - if ($this->isLegacyMongoExt) { - return $this->legacyGetMongoDbDateTime($value); - } - - return $this->getMongoDbDateTime($value); - } - - private function getMongoDbDateTime(\DateTimeInterface $value): UTCDateTime - { - return new UTCDateTime((int) floor(((float) $value->format('U.u')) * 1000)); - } - - /** - * This is needed to support MongoDB Driver v1.19 and below - * - * See https://github.com/mongodb/mongo-php-driver/issues/426 - * - * It can probably be removed in 2.1 or later once MongoDB's 1.2 is released and widely adopted - */ - private function legacyGetMongoDbDateTime(\DateTimeInterface $value): UTCDateTime - { - $milliseconds = floor(((float) $value->format('U.u')) * 1000); - - $milliseconds = (PHP_INT_SIZE === 8) //64-bit OS? - ? (int) $milliseconds - : (string) $milliseconds; - - return new UTCDateTime($milliseconds); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php b/vendor/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php deleted file mode 100644 index 60da29c..0000000 --- a/vendor/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php +++ /dev/null @@ -1,353 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Formatter; - -use Monolog\JsonSerializableDateTimeImmutable; -use Monolog\Utils; -use Throwable; -use Monolog\LogRecord; - -/** - * Normalizes incoming records to remove objects/resources so it's easier to dump to various targets - * - * @author Jordi Boggiano - */ -class NormalizerFormatter implements FormatterInterface -{ - public const SIMPLE_DATE = "Y-m-d\TH:i:sP"; - - protected string $dateFormat; - protected int $maxNormalizeDepth = 9; - protected int $maxNormalizeItemCount = 1000; - - private int $jsonEncodeOptions = Utils::DEFAULT_JSON_FLAGS; - - protected string $basePath = ''; - - /** - * @param string|null $dateFormat The format of the timestamp: one supported by DateTime::format - */ - public function __construct(?string $dateFormat = null) - { - $this->dateFormat = null === $dateFormat ? static::SIMPLE_DATE : $dateFormat; - } - - /** - * @inheritDoc - */ - public function format(LogRecord $record) - { - return $this->normalizeRecord($record); - } - - /** - * Normalize an arbitrary value to a scalar|array|null - * - * @return null|scalar|array - */ - public function normalizeValue(mixed $data): mixed - { - return $this->normalize($data); - } - - /** - * @inheritDoc - */ - public function formatBatch(array $records) - { - foreach ($records as $key => $record) { - $records[$key] = $this->format($record); - } - - return $records; - } - - public function getDateFormat(): string - { - return $this->dateFormat; - } - - /** - * @return $this - */ - public function setDateFormat(string $dateFormat): self - { - $this->dateFormat = $dateFormat; - - return $this; - } - - /** - * The maximum number of normalization levels to go through - */ - public function getMaxNormalizeDepth(): int - { - return $this->maxNormalizeDepth; - } - - /** - * @return $this - */ - public function setMaxNormalizeDepth(int $maxNormalizeDepth): self - { - $this->maxNormalizeDepth = $maxNormalizeDepth; - - return $this; - } - - /** - * The maximum number of items to normalize per level - */ - public function getMaxNormalizeItemCount(): int - { - return $this->maxNormalizeItemCount; - } - - /** - * @return $this - */ - public function setMaxNormalizeItemCount(int $maxNormalizeItemCount): self - { - $this->maxNormalizeItemCount = $maxNormalizeItemCount; - - return $this; - } - - /** - * Enables `json_encode` pretty print. - * - * @return $this - */ - public function setJsonPrettyPrint(bool $enable): self - { - if ($enable) { - $this->jsonEncodeOptions |= JSON_PRETTY_PRINT; - } else { - $this->jsonEncodeOptions &= ~JSON_PRETTY_PRINT; - } - - return $this; - } - - /** - * Setting a base path will hide the base path from exception and stack trace file names to shorten them - * @return $this - */ - public function setBasePath(string $path = ''): self - { - if ($path !== '') { - $path = rtrim($path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR; - } - - $this->basePath = $path; - - return $this; - } - - /** - * Provided as extension point - * - * Because normalize is called with sub-values of context data etc, normalizeRecord can be - * extended when data needs to be appended on the record array but not to other normalized data. - * - * @return array - */ - protected function normalizeRecord(LogRecord $record): array - { - /** @var array $normalized */ - $normalized = $this->normalize($record->toArray()); - - return $normalized; - } - - /** - * @return null|scalar|array - */ - protected function normalize(mixed $data, int $depth = 0): mixed - { - if ($depth > $this->maxNormalizeDepth) { - return 'Over ' . $this->maxNormalizeDepth . ' levels deep, aborting normalization'; - } - - if (null === $data || \is_scalar($data)) { - if (\is_float($data)) { - if (is_infinite($data)) { - return ($data > 0 ? '' : '-') . 'INF'; - } - if (is_nan($data)) { - return 'NaN'; - } - } - - return $data; - } - - if (\is_array($data)) { - $normalized = []; - - $count = 1; - foreach ($data as $key => $value) { - if ($count++ > $this->maxNormalizeItemCount) { - $normalized['...'] = 'Over ' . $this->maxNormalizeItemCount . ' items ('.\count($data).' total), aborting normalization'; - break; - } - - $normalized[$key] = $this->normalize($value, $depth + 1); - } - - return $normalized; - } - - if ($data instanceof \DateTimeInterface) { - return $this->formatDate($data); - } - - if (\is_object($data)) { - if ($data instanceof Throwable) { - return $this->normalizeException($data, $depth); - } - - if ($data instanceof \JsonSerializable) { - /** @var null|scalar|array $value */ - $value = $data->jsonSerialize(); - } elseif (\get_class($data) === '__PHP_Incomplete_Class') { - $accessor = new \ArrayObject($data); - $value = (string) $accessor['__PHP_Incomplete_Class_Name']; - } elseif (method_exists($data, '__toString')) { - try { - /** @var string $value */ - $value = $data->__toString(); - } catch (\Throwable) { - // if the toString method is failing, use the default behavior - /** @var null|scalar|array $value */ - $value = json_decode($this->toJson($data, true), true); - } - } else { - // the rest is normalized by json encoding and decoding it - /** @var null|scalar|array $value */ - $value = json_decode($this->toJson($data, true), true); - } - - return [Utils::getClass($data) => $value]; - } - - if (\is_resource($data)) { - return sprintf('[resource(%s)]', get_resource_type($data)); - } - - return '[unknown('.\gettype($data).')]'; - } - - /** - * @return array>> - */ - protected function normalizeException(Throwable $e, int $depth = 0) - { - if ($depth > $this->maxNormalizeDepth) { - return ['Over ' . $this->maxNormalizeDepth . ' levels deep, aborting normalization']; - } - - if ($e instanceof \JsonSerializable) { - return (array) $e->jsonSerialize(); - } - - $file = $e->getFile(); - if ($this->basePath !== '') { - $file = preg_replace('{^'.preg_quote($this->basePath).'}', '', $file); - } - - $data = [ - 'class' => Utils::getClass($e), - 'message' => $e->getMessage(), - 'code' => (int) $e->getCode(), - 'file' => $file.':'.$e->getLine(), - ]; - - if ($e instanceof \SoapFault) { - if (isset($e->faultcode)) { - $data['faultcode'] = $e->faultcode; - } - - if (isset($e->faultactor)) { - $data['faultactor'] = $e->faultactor; - } - - if (isset($e->detail)) { - if (\is_string($e->detail)) { - $data['detail'] = $e->detail; - } elseif (\is_object($e->detail) || \is_array($e->detail)) { - $data['detail'] = $this->toJson($e->detail, true); - } - } - } - - $trace = $e->getTrace(); - foreach ($trace as $frame) { - if (isset($frame['file'], $frame['line'])) { - $file = $frame['file']; - if ($this->basePath !== '') { - $file = preg_replace('{^'.preg_quote($this->basePath).'}', '', $file); - } - $data['trace'][] = $file.':'.$frame['line']; - } - } - - if (($previous = $e->getPrevious()) instanceof \Throwable) { - $data['previous'] = $this->normalizeException($previous, $depth + 1); - } - - return $data; - } - - /** - * Return the JSON representation of a value - * - * @param mixed $data - * @throws \RuntimeException if encoding fails and errors are not ignored - * @return string if encoding fails and ignoreErrors is true 'null' is returned - */ - protected function toJson($data, bool $ignoreErrors = false): string - { - return Utils::jsonEncode($data, $this->jsonEncodeOptions, $ignoreErrors); - } - - protected function formatDate(\DateTimeInterface $date): string - { - // in case the date format isn't custom then we defer to the custom JsonSerializableDateTimeImmutable - // formatting logic, which will pick the right format based on whether useMicroseconds is on - if ($this->dateFormat === self::SIMPLE_DATE && $date instanceof JsonSerializableDateTimeImmutable) { - return (string) $date; - } - - return $date->format($this->dateFormat); - } - - /** - * @return $this - */ - public function addJsonEncodeOption(int $option): self - { - $this->jsonEncodeOptions |= $option; - - return $this; - } - - /** - * @return $this - */ - public function removeJsonEncodeOption(int $option): self - { - $this->jsonEncodeOptions &= ~$option; - - return $this; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php b/vendor/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php deleted file mode 100644 index ec73a0e..0000000 --- a/vendor/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php +++ /dev/null @@ -1,49 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Formatter; - -use Monolog\LogRecord; - -/** - * Formats data into an associative array of scalar (+ null) values. - * Objects and arrays will be JSON encoded. - * - * @author Andrew Lawson - */ -class ScalarFormatter extends NormalizerFormatter -{ - /** - * @inheritDoc - * - * @phpstan-return array $record - */ - public function format(LogRecord $record): array - { - $result = []; - foreach ($record->toArray() as $key => $value) { - $result[$key] = $this->toScalar($value); - } - - return $result; - } - - protected function toScalar(mixed $value): string|int|float|bool|null - { - $normalized = $this->normalize($value); - - if (\is_array($normalized)) { - return $this->toJson($normalized, true); - } - - return $normalized; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Formatter/SyslogFormatter.php b/vendor/monolog/monolog/src/Monolog/Formatter/SyslogFormatter.php deleted file mode 100644 index ccaddf7..0000000 --- a/vendor/monolog/monolog/src/Monolog/Formatter/SyslogFormatter.php +++ /dev/null @@ -1,65 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Formatter; - -use Monolog\Level; -use Monolog\LogRecord; - -/** - * Serializes a log message according to RFC 5424 - * - * @author Dalibor Karlović - * @author Renat Gabdullin - */ -class SyslogFormatter extends LineFormatter -{ - private const SYSLOG_FACILITY_USER = 1; - private const FORMAT = "<%extra.priority%>1 %datetime% %extra.hostname% %extra.app-name% %extra.procid% %channel% %extra.structured-data% %level_name%: %message% %context% %extra%\n"; - private const NILVALUE = '-'; - - private string $hostname; - private int $procid; - - public function __construct(private string $applicationName = self::NILVALUE) - { - parent::__construct(self::FORMAT, 'Y-m-d\TH:i:s.uP', true, true); - $this->hostname = (string) gethostname(); - $this->procid = (int) getmypid(); - } - - public function format(LogRecord $record): string - { - $record->extra = $this->formatExtra($record); - - return parent::format($record); - } - - /** - * @return array - */ - private function formatExtra(LogRecord $record): array - { - $extra = $record->extra; - $extra['app-name'] = $this->applicationName; - $extra['hostname'] = $this->hostname; - $extra['procid'] = $this->procid; - $extra['priority'] = self::calculatePriority($record->level); - $extra['structured-data'] = self::NILVALUE; - - return $extra; - } - - private static function calculatePriority(Level $level): int - { - return (self::SYSLOG_FACILITY_USER * 8) + $level->toRFC5424Level(); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php b/vendor/monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php deleted file mode 100644 index 5e93e01..0000000 --- a/vendor/monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php +++ /dev/null @@ -1,137 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Formatter; - -use Monolog\Level; -use Monolog\LogRecord; - -/** - * Serializes a log message according to Wildfire's header requirements - * - * @author Eric Clemmons (@ericclemmons) - * @author Christophe Coevoet - * @author Kirill chEbba Chebunin - */ -class WildfireFormatter extends NormalizerFormatter -{ - /** - * @param string|null $dateFormat The format of the timestamp: one supported by DateTime::format - */ - public function __construct(?string $dateFormat = null) - { - parent::__construct($dateFormat); - - // http headers do not like non-ISO-8559-1 characters - $this->removeJsonEncodeOption(JSON_UNESCAPED_UNICODE); - } - - /** - * Translates Monolog log levels to Wildfire levels. - * - * @return 'LOG'|'INFO'|'WARN'|'ERROR' - */ - private function toWildfireLevel(Level $level): string - { - return match ($level) { - Level::Debug => 'LOG', - Level::Info => 'INFO', - Level::Notice => 'INFO', - Level::Warning => 'WARN', - Level::Error => 'ERROR', - Level::Critical => 'ERROR', - Level::Alert => 'ERROR', - Level::Emergency => 'ERROR', - }; - } - - /** - * @inheritDoc - */ - public function format(LogRecord $record): string - { - // Retrieve the line and file if set and remove them from the formatted extra - $file = $line = ''; - if (isset($record->extra['file'])) { - $file = $record->extra['file']; - unset($record->extra['file']); - } - if (isset($record->extra['line'])) { - $line = $record->extra['line']; - unset($record->extra['line']); - } - - $message = ['message' => $record->message]; - $handleError = false; - if (\count($record->context) > 0) { - $message['context'] = $this->normalize($record->context); - $handleError = true; - } - if (\count($record->extra) > 0) { - $message['extra'] = $this->normalize($record->extra); - $handleError = true; - } - if (\count($message) === 1) { - $message = reset($message); - } - - if (\is_array($message) && isset($message['context']['table'])) { - $type = 'TABLE'; - $label = $record->channel .': '. $record->message; - $message = $message['context']['table']; - } else { - $type = $this->toWildfireLevel($record->level); - $label = $record->channel; - } - - // Create JSON object describing the appearance of the message in the console - $json = $this->toJson([ - [ - 'Type' => $type, - 'File' => $file, - 'Line' => $line, - 'Label' => $label, - ], - $message, - ], $handleError); - - // The message itself is a serialization of the above JSON object + it's length - return sprintf( - '%d|%s|', - \strlen($json), - $json - ); - } - - /** - * @inheritDoc - * - * @phpstan-return never - */ - public function formatBatch(array $records) - { - throw new \BadMethodCallException('Batch formatting does not make sense for the WildfireFormatter'); - } - - /** - * @inheritDoc - * - * @return null|scalar|array|object - */ - protected function normalize(mixed $data, int $depth = 0): mixed - { - if (\is_object($data) && !$data instanceof \DateTimeInterface) { - return $data; - } - - return parent::normalize($data, $depth); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/AbstractHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/AbstractHandler.php deleted file mode 100644 index 61d45d5..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/AbstractHandler.php +++ /dev/null @@ -1,104 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Level; -use Monolog\Logger; -use Monolog\ResettableInterface; -use Psr\Log\LogLevel; -use Monolog\LogRecord; - -/** - * Base Handler class providing basic level/bubble support - * - * @author Jordi Boggiano - */ -abstract class AbstractHandler extends Handler implements ResettableInterface -{ - protected Level $level = Level::Debug; - protected bool $bubble = true; - - /** - * @param int|string|Level|LogLevel::* $level The minimum logging level at which this handler will be triggered - * @param bool $bubble Whether the messages that are handled can bubble up the stack or not - * - * @phpstan-param value-of|value-of|Level|LogLevel::* $level - */ - public function __construct(int|string|Level $level = Level::Debug, bool $bubble = true) - { - $this->setLevel($level); - $this->bubble = $bubble; - } - - /** - * @inheritDoc - */ - public function isHandling(LogRecord $record): bool - { - return $record->level->value >= $this->level->value; - } - - /** - * Sets minimum logging level at which this handler will be triggered. - * - * @param Level|LogLevel::* $level Level or level name - * @return $this - * - * @phpstan-param value-of|value-of|Level|LogLevel::* $level - */ - public function setLevel(int|string|Level $level): self - { - $this->level = Logger::toMonologLevel($level); - - return $this; - } - - /** - * Gets minimum logging level at which this handler will be triggered. - */ - public function getLevel(): Level - { - return $this->level; - } - - /** - * Sets the bubbling behavior. - * - * @param bool $bubble true means that this handler allows bubbling. - * false means that bubbling is not permitted. - * @return $this - */ - public function setBubble(bool $bubble): self - { - $this->bubble = $bubble; - - return $this; - } - - /** - * Gets the bubbling behavior. - * - * @return bool true means that this handler allows bubbling. - * false means that bubbling is not permitted. - */ - public function getBubble(): bool - { - return $this->bubble; - } - - /** - * @inheritDoc - */ - public function reset(): void - { - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php deleted file mode 100644 index de13a76..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php +++ /dev/null @@ -1,60 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\LogRecord; - -/** - * Base Handler class providing the Handler structure, including processors and formatters - * - * Classes extending it should (in most cases) only implement write($record) - * - * @author Jordi Boggiano - * @author Christophe Coevoet - */ -abstract class AbstractProcessingHandler extends AbstractHandler implements ProcessableHandlerInterface, FormattableHandlerInterface -{ - use ProcessableHandlerTrait; - use FormattableHandlerTrait; - - /** - * @inheritDoc - */ - public function handle(LogRecord $record): bool - { - if (!$this->isHandling($record)) { - return false; - } - - if (\count($this->processors) > 0) { - $record = $this->processRecord($record); - } - - $record->formatted = $this->getFormatter()->format($record); - - $this->write($record); - - return false === $this->bubble; - } - - /** - * Writes the (already formatted) record down to the log of the implementing handler - */ - abstract protected function write(LogRecord $record): void; - - public function reset(): void - { - parent::reset(); - - $this->resetProcessors(); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/AbstractSyslogHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/AbstractSyslogHandler.php deleted file mode 100644 index 4a70317..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/AbstractSyslogHandler.php +++ /dev/null @@ -1,95 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Level; -use Monolog\Formatter\FormatterInterface; -use Monolog\Formatter\LineFormatter; - -/** - * Common syslog functionality - */ -abstract class AbstractSyslogHandler extends AbstractProcessingHandler -{ - protected int $facility; - - /** - * List of valid log facility names. - * @var array - */ - protected array $facilities = [ - 'auth' => \LOG_AUTH, - 'authpriv' => \LOG_AUTHPRIV, - 'cron' => \LOG_CRON, - 'daemon' => \LOG_DAEMON, - 'kern' => \LOG_KERN, - 'lpr' => \LOG_LPR, - 'mail' => \LOG_MAIL, - 'news' => \LOG_NEWS, - 'syslog' => \LOG_SYSLOG, - 'user' => \LOG_USER, - 'uucp' => \LOG_UUCP, - ]; - - /** - * Translates Monolog log levels to syslog log priorities. - */ - protected function toSyslogPriority(Level $level): int - { - return $level->toRFC5424Level(); - } - - /** - * @param string|int $facility Either one of the names of the keys in $this->facilities, or a LOG_* facility constant - */ - public function __construct(string|int $facility = \LOG_USER, int|string|Level $level = Level::Debug, bool $bubble = true) - { - parent::__construct($level, $bubble); - - if (!\defined('PHP_WINDOWS_VERSION_BUILD')) { - $this->facilities['local0'] = \LOG_LOCAL0; - $this->facilities['local1'] = \LOG_LOCAL1; - $this->facilities['local2'] = \LOG_LOCAL2; - $this->facilities['local3'] = \LOG_LOCAL3; - $this->facilities['local4'] = \LOG_LOCAL4; - $this->facilities['local5'] = \LOG_LOCAL5; - $this->facilities['local6'] = \LOG_LOCAL6; - $this->facilities['local7'] = \LOG_LOCAL7; - } else { - $this->facilities['local0'] = 128; // LOG_LOCAL0 - $this->facilities['local1'] = 136; // LOG_LOCAL1 - $this->facilities['local2'] = 144; // LOG_LOCAL2 - $this->facilities['local3'] = 152; // LOG_LOCAL3 - $this->facilities['local4'] = 160; // LOG_LOCAL4 - $this->facilities['local5'] = 168; // LOG_LOCAL5 - $this->facilities['local6'] = 176; // LOG_LOCAL6 - $this->facilities['local7'] = 184; // LOG_LOCAL7 - } - - // convert textual description of facility to syslog constant - if (\is_string($facility) && \array_key_exists(strtolower($facility), $this->facilities)) { - $facility = $this->facilities[strtolower($facility)]; - } elseif (!\in_array($facility, array_values($this->facilities), true)) { - throw new \UnexpectedValueException('Unknown facility value "'.$facility.'" given'); - } - - $this->facility = $facility; - } - - /** - * @inheritDoc - */ - protected function getDefaultFormatter(): FormatterInterface - { - return new LineFormatter('%channel%.%level_name%: %message% %context% %extra%'); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/AmqpHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/AmqpHandler.php deleted file mode 100644 index 119f339..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/AmqpHandler.php +++ /dev/null @@ -1,170 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Gelf\Message as GelfMessage; -use Monolog\Level; -use Monolog\Formatter\FormatterInterface; -use Monolog\Formatter\JsonFormatter; -use PhpAmqpLib\Message\AMQPMessage; -use PhpAmqpLib\Channel\AMQPChannel; -use AMQPExchange; -use Monolog\LogRecord; - -class AmqpHandler extends AbstractProcessingHandler -{ - protected AMQPExchange|AMQPChannel $exchange; - - /** @var array */ - private array $extraAttributes = []; - - protected string $exchangeName; - - /** - * @param AMQPExchange|AMQPChannel $exchange AMQPExchange (php AMQP ext) or PHP AMQP lib channel, ready for use - * @param string|null $exchangeName Optional exchange name, for AMQPChannel (PhpAmqpLib) only - */ - public function __construct(AMQPExchange|AMQPChannel $exchange, ?string $exchangeName = null, int|string|Level $level = Level::Debug, bool $bubble = true) - { - if ($exchange instanceof AMQPChannel) { - $this->exchangeName = (string) $exchangeName; - } elseif ($exchangeName !== null) { - @trigger_error('The $exchangeName parameter can only be passed when using PhpAmqpLib, if using an AMQPExchange instance configure it beforehand', E_USER_DEPRECATED); - } - $this->exchange = $exchange; - - parent::__construct($level, $bubble); - } - - /** - * @return array - */ - public function getExtraAttributes(): array - { - return $this->extraAttributes; - } - - /** - * Configure extra attributes to pass to the AMQPExchange (if you are using the amqp extension) - * - * @param array $extraAttributes One of content_type, content_encoding, - * message_id, user_id, app_id, delivery_mode, - * priority, timestamp, expiration, type - * or reply_to, headers. - * @return $this - */ - public function setExtraAttributes(array $extraAttributes): self - { - $this->extraAttributes = $extraAttributes; - - return $this; - } - - /** - * @inheritDoc - */ - protected function write(LogRecord $record): void - { - $data = $record->formatted; - $routingKey = $this->getRoutingKey($record); - - if($data instanceof GelfMessage) { - $data = json_encode($data->toArray()); - } - - if ($this->exchange instanceof AMQPExchange) { - $attributes = [ - 'delivery_mode' => 2, - 'content_type' => 'application/json', - ]; - if (\count($this->extraAttributes) > 0) { - $attributes = array_merge($attributes, $this->extraAttributes); - } - $this->exchange->publish( - $data, - $routingKey, - 0, - $attributes - ); - } else { - $this->exchange->basic_publish( - $this->createAmqpMessage($data), - $this->exchangeName, - $routingKey - ); - } - } - - /** - * @inheritDoc - */ - public function handleBatch(array $records): void - { - if ($this->exchange instanceof AMQPExchange) { - parent::handleBatch($records); - - return; - } - - foreach ($records as $record) { - if (!$this->isHandling($record)) { - continue; - } - - $record = $this->processRecord($record); - $data = $this->getFormatter()->format($record); - - if($data instanceof GelfMessage) { - $data = json_encode($data->toArray()); - } - - $this->exchange->batch_basic_publish( - $this->createAmqpMessage($data), - $this->exchangeName, - $this->getRoutingKey($record) - ); - } - - $this->exchange->publish_batch(); - } - - /** - * Gets the routing key for the AMQP exchange - */ - protected function getRoutingKey(LogRecord $record): string - { - $routingKey = sprintf('%s.%s', $record->level->name, $record->channel); - - return strtolower($routingKey); - } - - private function createAmqpMessage(string $data): AMQPMessage - { - $attributes = [ - 'delivery_mode' => 2, - 'content_type' => 'application/json', - ]; - if (\count($this->extraAttributes) > 0) { - $attributes = array_merge($attributes, $this->extraAttributes); - } - - return new AMQPMessage($data, $attributes); - } - - /** - * @inheritDoc - */ - protected function getDefaultFormatter(): FormatterInterface - { - return new JsonFormatter(JsonFormatter::BATCH_MODE_JSON, false); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php deleted file mode 100644 index 788d7d0..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php +++ /dev/null @@ -1,300 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Formatter\FormatterInterface; -use Monolog\Formatter\LineFormatter; -use Monolog\Utils; -use Monolog\LogRecord; -use Monolog\Level; - -use function headers_list; -use function stripos; - -/** - * Handler sending logs to browser's javascript console with no browser extension required - * - * @author Olivier Poitrey - */ -class BrowserConsoleHandler extends AbstractProcessingHandler -{ - protected static bool $initialized = false; - - /** @var LogRecord[] */ - protected static array $records = []; - - protected const FORMAT_HTML = 'html'; - protected const FORMAT_JS = 'js'; - protected const FORMAT_UNKNOWN = 'unknown'; - - /** - * @inheritDoc - * - * Formatted output may contain some formatting markers to be transferred to `console.log` using the %c format. - * - * Example of formatted string: - * - * You can do [[blue text]]{color: blue} or [[green background]]{background-color: green; color: white} - */ - protected function getDefaultFormatter(): FormatterInterface - { - return new LineFormatter('[[%channel%]]{macro: autolabel} [[%level_name%]]{font-weight: bold} %message%'); - } - - /** - * @inheritDoc - */ - protected function write(LogRecord $record): void - { - // Accumulate records - static::$records[] = $record; - - // Register shutdown handler if not already done - if (!static::$initialized) { - static::$initialized = true; - $this->registerShutdownFunction(); - } - } - - /** - * Convert records to javascript console commands and send it to the browser. - * This method is automatically called on PHP shutdown if output is HTML or Javascript. - */ - public static function send(): void - { - $format = static::getResponseFormat(); - if ($format === self::FORMAT_UNKNOWN) { - return; - } - - if (\count(static::$records) > 0) { - if ($format === self::FORMAT_HTML) { - static::writeOutput(''); - } else { // js format - static::writeOutput(self::generateScript()); - } - static::resetStatic(); - } - } - - public function close(): void - { - self::resetStatic(); - } - - public function reset(): void - { - parent::reset(); - - self::resetStatic(); - } - - /** - * Forget all logged records - */ - public static function resetStatic(): void - { - static::$records = []; - } - - /** - * Wrapper for register_shutdown_function to allow overriding - */ - protected function registerShutdownFunction(): void - { - if (PHP_SAPI !== 'cli') { - register_shutdown_function(['Monolog\Handler\BrowserConsoleHandler', 'send']); - } - } - - /** - * Wrapper for echo to allow overriding - */ - protected static function writeOutput(string $str): void - { - echo $str; - } - - /** - * Checks the format of the response - * - * If Content-Type is set to application/javascript or text/javascript -> js - * If Content-Type is set to text/html, or is unset -> html - * If Content-Type is anything else -> unknown - * - * @return string One of 'js', 'html' or 'unknown' - * @phpstan-return self::FORMAT_* - */ - protected static function getResponseFormat(): string - { - // Check content type - foreach (headers_list() as $header) { - if (stripos($header, 'content-type:') === 0) { - return static::getResponseFormatFromContentType($header); - } - } - - return self::FORMAT_HTML; - } - - /** - * @return string One of 'js', 'html' or 'unknown' - * @phpstan-return self::FORMAT_* - */ - protected static function getResponseFormatFromContentType(string $contentType): string - { - // This handler only works with HTML and javascript outputs - // text/javascript is obsolete in favour of application/javascript, but still used - if (stripos($contentType, 'application/javascript') !== false || stripos($contentType, 'text/javascript') !== false) { - return self::FORMAT_JS; - } - - if (stripos($contentType, 'text/html') !== false) { - return self::FORMAT_HTML; - } - - return self::FORMAT_UNKNOWN; - } - - private static function generateScript(): string - { - $script = []; - foreach (static::$records as $record) { - $context = self::dump('Context', $record->context); - $extra = self::dump('Extra', $record->extra); - - if (\count($context) === 0 && \count($extra) === 0) { - $script[] = self::call_array(self::getConsoleMethodForLevel($record->level), self::handleStyles($record->formatted)); - } else { - $script = array_merge( - $script, - [self::call_array('groupCollapsed', self::handleStyles($record->formatted))], - $context, - $extra, - [self::call('groupEnd')] - ); - } - } - - return "(function (c) {if (c && c.groupCollapsed) {\n" . implode("\n", $script) . "\n}})(console);"; - } - - private static function getConsoleMethodForLevel(Level $level): string - { - return match ($level) { - Level::Debug => 'debug', - Level::Info, Level::Notice => 'info', - Level::Warning => 'warn', - Level::Error, Level::Critical, Level::Alert, Level::Emergency => 'error', - }; - } - - /** - * @return string[] - */ - private static function handleStyles(string $formatted): array - { - $args = []; - $format = '%c' . $formatted; - preg_match_all('/\[\[(.*?)\]\]\{([^}]*)\}/s', $format, $matches, PREG_OFFSET_CAPTURE | PREG_SET_ORDER); - - foreach (array_reverse($matches) as $match) { - $args[] = '"font-weight: normal"'; - $args[] = self::quote(self::handleCustomStyles($match[2][0], $match[1][0])); - - $pos = $match[0][1]; - $format = Utils::substr($format, 0, $pos) . '%c' . $match[1][0] . '%c' . Utils::substr($format, $pos + \strlen($match[0][0])); - } - - $args[] = self::quote('font-weight: normal'); - $args[] = self::quote($format); - - return array_reverse($args); - } - - private static function handleCustomStyles(string $style, string $string): string - { - static $colors = ['blue', 'green', 'red', 'magenta', 'orange', 'black', 'grey']; - static $labels = []; - - $style = preg_replace_callback('/macro\s*:(.*?)(?:;|$)/', function (array $m) use ($string, &$colors, &$labels) { - if (trim($m[1]) === 'autolabel') { - // Format the string as a label with consistent auto assigned background color - if (!isset($labels[$string])) { - $labels[$string] = $colors[\count($labels) % \count($colors)]; - } - $color = $labels[$string]; - - return "background-color: $color; color: white; border-radius: 3px; padding: 0 2px 0 2px"; - } - - return $m[1]; - }, $style); - - if (null === $style) { - $pcreErrorCode = preg_last_error(); - - throw new \RuntimeException('Failed to run preg_replace_callback: ' . $pcreErrorCode . ' / ' . preg_last_error_msg()); - } - - return $style; - } - - /** - * @param mixed[] $dict - * @return mixed[] - */ - private static function dump(string $title, array $dict): array - { - $script = []; - $dict = array_filter($dict, fn ($value) => $value !== null); - if (\count($dict) === 0) { - return $script; - } - $script[] = self::call('log', self::quote('%c%s'), self::quote('font-weight: bold'), self::quote($title)); - foreach ($dict as $key => $value) { - $value = json_encode($value); - if (false === $value) { - $value = self::quote(''); - } - $script[] = self::call('log', self::quote('%s: %o'), self::quote((string) $key), $value); - } - - return $script; - } - - private static function quote(string $arg): string - { - return '"' . addcslashes($arg, "\"\n\\") . '"'; - } - - /** - * @param mixed $args - */ - private static function call(...$args): string - { - $method = array_shift($args); - if (!\is_string($method)) { - throw new \UnexpectedValueException('Expected the first arg to be a string, got: '.var_export($method, true)); - } - - return self::call_array($method, $args); - } - - /** - * @param mixed[] $args - */ - private static function call_array(string $method, array $args): string - { - return 'c.' . $method . '(' . implode(', ', $args) . ');'; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/BufferHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/BufferHandler.php deleted file mode 100644 index c241c32..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/BufferHandler.php +++ /dev/null @@ -1,165 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Level; -use Monolog\ResettableInterface; -use Monolog\Formatter\FormatterInterface; -use Monolog\LogRecord; - -/** - * Buffers all records until closing the handler and then pass them as batch. - * - * This is useful for a MailHandler to send only one mail per request instead of - * sending one per log message. - * - * @author Christophe Coevoet - */ -class BufferHandler extends AbstractHandler implements ProcessableHandlerInterface, FormattableHandlerInterface -{ - use ProcessableHandlerTrait; - - protected HandlerInterface $handler; - - protected int $bufferSize = 0; - - protected int $bufferLimit; - - protected bool $flushOnOverflow; - - /** @var LogRecord[] */ - protected array $buffer = []; - - protected bool $initialized = false; - - /** - * @param HandlerInterface $handler Handler. - * @param int $bufferLimit How many entries should be buffered at most, beyond that the oldest items are removed from the buffer. - * @param bool $flushOnOverflow If true, the buffer is flushed when the max size has been reached, by default oldest entries are discarded - */ - public function __construct(HandlerInterface $handler, int $bufferLimit = 0, int|string|Level $level = Level::Debug, bool $bubble = true, bool $flushOnOverflow = false) - { - parent::__construct($level, $bubble); - $this->handler = $handler; - $this->bufferLimit = $bufferLimit; - $this->flushOnOverflow = $flushOnOverflow; - } - - /** - * @inheritDoc - */ - public function handle(LogRecord $record): bool - { - if ($record->level->isLowerThan($this->level)) { - return false; - } - - if (!$this->initialized) { - // __destructor() doesn't get called on Fatal errors - register_shutdown_function([$this, 'close']); - $this->initialized = true; - } - - if ($this->bufferLimit > 0 && $this->bufferSize === $this->bufferLimit) { - if ($this->flushOnOverflow) { - $this->flush(); - } else { - array_shift($this->buffer); - $this->bufferSize--; - } - } - - if (\count($this->processors) > 0) { - $record = $this->processRecord($record); - } - - $this->buffer[] = $record; - $this->bufferSize++; - - return false === $this->bubble; - } - - public function flush(): void - { - if ($this->bufferSize === 0) { - return; - } - - $this->handler->handleBatch($this->buffer); - $this->clear(); - } - - public function __destruct() - { - // suppress the parent behavior since we already have register_shutdown_function() - // to call close(), and the reference contained there will prevent this from being - // GC'd until the end of the request - } - - /** - * @inheritDoc - */ - public function close(): void - { - $this->flush(); - - $this->handler->close(); - } - - /** - * Clears the buffer without flushing any messages down to the wrapped handler. - */ - public function clear(): void - { - $this->bufferSize = 0; - $this->buffer = []; - } - - public function reset(): void - { - $this->flush(); - - parent::reset(); - - $this->resetProcessors(); - - if ($this->handler instanceof ResettableInterface) { - $this->handler->reset(); - } - } - - /** - * @inheritDoc - */ - public function setFormatter(FormatterInterface $formatter): HandlerInterface - { - if ($this->handler instanceof FormattableHandlerInterface) { - $this->handler->setFormatter($formatter); - - return $this; - } - - throw new \UnexpectedValueException('The nested handler of type '.\get_class($this->handler).' does not support formatters.'); - } - - /** - * @inheritDoc - */ - public function getFormatter(): FormatterInterface - { - if ($this->handler instanceof FormattableHandlerInterface) { - return $this->handler->getFormatter(); - } - - throw new \UnexpectedValueException('The nested handler of type '.\get_class($this->handler).' does not support formatters.'); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php deleted file mode 100644 index 6598e82..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php +++ /dev/null @@ -1,186 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Formatter\ChromePHPFormatter; -use Monolog\Formatter\FormatterInterface; -use Monolog\Level; -use Monolog\Utils; -use Monolog\LogRecord; -use Monolog\JsonSerializableDateTimeImmutable; - -/** - * Handler sending logs to the ChromePHP extension (http://www.chromephp.com/) - * - * This also works out of the box with Firefox 43+ - * - * @author Christophe Coevoet - */ -class ChromePHPHandler extends AbstractProcessingHandler -{ - use WebRequestRecognizerTrait; - - /** - * Version of the extension - */ - protected const VERSION = '4.0'; - - /** - * Header name - */ - protected const HEADER_NAME = 'X-ChromeLogger-Data'; - - /** - * Regular expression to detect supported browsers (matches any Chrome, or Firefox 43+) - */ - protected const USER_AGENT_REGEX = '{\b(?:Chrome/\d+(?:\.\d+)*|HeadlessChrome|Firefox/(?:4[3-9]|[5-9]\d|\d{3,})(?:\.\d)*)\b}'; - - protected static bool $initialized = false; - - /** - * Tracks whether we sent too much data - * - * Chrome limits the headers to 4KB, so when we sent 3KB we stop sending - */ - protected static bool $overflowed = false; - - /** @var mixed[] */ - protected static array $json = [ - 'version' => self::VERSION, - 'columns' => ['label', 'log', 'backtrace', 'type'], - 'rows' => [], - ]; - - protected static bool $sendHeaders = true; - - public function __construct(int|string|Level $level = Level::Debug, bool $bubble = true) - { - parent::__construct($level, $bubble); - } - - /** - * @inheritDoc - */ - public function handleBatch(array $records): void - { - if (!$this->isWebRequest()) { - return; - } - - $messages = []; - - foreach ($records as $record) { - if ($record->level < $this->level) { - continue; - } - - $message = $this->processRecord($record); - $messages[] = $message; - } - - if (\count($messages) > 0) { - $messages = $this->getFormatter()->formatBatch($messages); - self::$json['rows'] = array_merge(self::$json['rows'], $messages); - $this->send(); - } - } - - /** - * @inheritDoc - */ - protected function getDefaultFormatter(): FormatterInterface - { - return new ChromePHPFormatter(); - } - - /** - * Creates & sends header for a record - * - * @see sendHeader() - * @see send() - */ - protected function write(LogRecord $record): void - { - if (!$this->isWebRequest()) { - return; - } - - self::$json['rows'][] = $record->formatted; - - $this->send(); - } - - /** - * Sends the log header - * - * @see sendHeader() - */ - protected function send(): void - { - if (self::$overflowed || !self::$sendHeaders) { - return; - } - - if (!self::$initialized) { - self::$initialized = true; - - self::$sendHeaders = $this->headersAccepted(); - if (!self::$sendHeaders) { - return; - } - - self::$json['request_uri'] = $_SERVER['REQUEST_URI'] ?? ''; - } - - $json = Utils::jsonEncode(self::$json, Utils::DEFAULT_JSON_FLAGS & ~JSON_UNESCAPED_UNICODE, true); - $data = base64_encode($json); - if (\strlen($data) > 3 * 1024) { - self::$overflowed = true; - - $record = new LogRecord( - message: 'Incomplete logs, chrome header size limit reached', - level: Level::Warning, - channel: 'monolog', - datetime: new JsonSerializableDateTimeImmutable(true), - ); - self::$json['rows'][\count(self::$json['rows']) - 1] = $this->getFormatter()->format($record); - $json = Utils::jsonEncode(self::$json, Utils::DEFAULT_JSON_FLAGS & ~JSON_UNESCAPED_UNICODE, true); - $data = base64_encode($json); - } - - if (trim($data) !== '') { - $this->sendHeader(static::HEADER_NAME, $data); - } - } - - /** - * Send header string to the client - */ - protected function sendHeader(string $header, string $content): void - { - if (!headers_sent() && self::$sendHeaders) { - header(sprintf('%s: %s', $header, $content)); - } - } - - /** - * Verifies if the headers are accepted by the current user agent - */ - protected function headersAccepted(): bool - { - if (!isset($_SERVER['HTTP_USER_AGENT'])) { - return false; - } - - return preg_match(static::USER_AGENT_REGEX, $_SERVER['HTTP_USER_AGENT']) === 1; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php deleted file mode 100644 index 8d9c10e..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php +++ /dev/null @@ -1,97 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Formatter\FormatterInterface; -use Monolog\Formatter\JsonFormatter; -use Monolog\Level; -use Monolog\LogRecord; - -/** - * CouchDB handler - * - * @author Markus Bachmann - * @phpstan-type Options array{ - * host: string, - * port: int, - * dbname: string, - * username: string|null, - * password: string|null - * } - * @phpstan-type InputOptions array{ - * host?: string, - * port?: int, - * dbname?: string, - * username?: string|null, - * password?: string|null - * } - */ -class CouchDBHandler extends AbstractProcessingHandler -{ - /** - * @var mixed[] - * @phpstan-var Options - */ - private array $options; - - /** - * @param mixed[] $options - * - * @phpstan-param InputOptions $options - */ - public function __construct(array $options = [], int|string|Level $level = Level::Debug, bool $bubble = true) - { - $this->options = array_merge([ - 'host' => 'localhost', - 'port' => 5984, - 'dbname' => 'logger', - 'username' => null, - 'password' => null, - ], $options); - - parent::__construct($level, $bubble); - } - - /** - * @inheritDoc - */ - protected function write(LogRecord $record): void - { - $basicAuth = null; - if (null !== $this->options['username'] && null !== $this->options['password']) { - $basicAuth = sprintf('%s:%s@', $this->options['username'], $this->options['password']); - } - - $url = 'http://'.$basicAuth.$this->options['host'].':'.$this->options['port'].'/'.$this->options['dbname']; - $context = stream_context_create([ - 'http' => [ - 'method' => 'POST', - 'content' => $record->formatted, - 'ignore_errors' => true, - 'max_redirects' => 0, - 'header' => 'Content-type: application/json', - ], - ]); - - if (false === @file_get_contents($url, false, $context)) { - throw new \RuntimeException(sprintf('Could not connect to %s', $url)); - } - } - - /** - * @inheritDoc - */ - protected function getDefaultFormatter(): FormatterInterface - { - return new JsonFormatter(JsonFormatter::BATCH_MODE_JSON, false); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/CubeHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/CubeHandler.php deleted file mode 100644 index a76bf40..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/CubeHandler.php +++ /dev/null @@ -1,167 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Level; -use Monolog\Utils; -use Monolog\LogRecord; - -/** - * Logs to Cube. - * - * @link https://github.com/square/cube/wiki - * @author Wan Chen - * @deprecated Since 2.8.0 and 3.2.0, Cube appears abandoned and thus we will drop this handler in Monolog 4 - */ -class CubeHandler extends AbstractProcessingHandler -{ - private ?\Socket $udpConnection = null; - private ?\CurlHandle $httpConnection = null; - private string $scheme; - private string $host; - private int $port; - /** @var string[] */ - private array $acceptedSchemes = ['http', 'udp']; - - /** - * Create a Cube handler - * - * @throws \UnexpectedValueException when given url is not a valid url. - * A valid url must consist of three parts : protocol://host:port - * Only valid protocols used by Cube are http and udp - */ - public function __construct(string $url, int|string|Level $level = Level::Debug, bool $bubble = true) - { - $urlInfo = parse_url($url); - - if ($urlInfo === false || !isset($urlInfo['scheme'], $urlInfo['host'], $urlInfo['port'])) { - throw new \UnexpectedValueException('URL "'.$url.'" is not valid'); - } - - if (!\in_array($urlInfo['scheme'], $this->acceptedSchemes, true)) { - throw new \UnexpectedValueException( - 'Invalid protocol (' . $urlInfo['scheme'] . ').' - . ' Valid options are ' . implode(', ', $this->acceptedSchemes) - ); - } - - $this->scheme = $urlInfo['scheme']; - $this->host = $urlInfo['host']; - $this->port = $urlInfo['port']; - - parent::__construct($level, $bubble); - } - - /** - * Establish a connection to an UDP socket - * - * @throws \LogicException when unable to connect to the socket - * @throws MissingExtensionException when there is no socket extension - */ - protected function connectUdp(): void - { - if (!\extension_loaded('sockets')) { - throw new MissingExtensionException('The sockets extension is required to use udp URLs with the CubeHandler'); - } - - $udpConnection = socket_create(AF_INET, SOCK_DGRAM, 0); - if (false === $udpConnection) { - throw new \LogicException('Unable to create a socket'); - } - - $this->udpConnection = $udpConnection; - if (!socket_connect($this->udpConnection, $this->host, $this->port)) { - throw new \LogicException('Unable to connect to the socket at ' . $this->host . ':' . $this->port); - } - } - - /** - * Establish a connection to an http server - * - * @throws \LogicException when unable to connect to the socket - * @throws MissingExtensionException when no curl extension - */ - protected function connectHttp(): void - { - if (!\extension_loaded('curl')) { - throw new MissingExtensionException('The curl extension is required to use http URLs with the CubeHandler'); - } - - $httpConnection = curl_init('http://'.$this->host.':'.$this->port.'/1.0/event/put'); - if (false === $httpConnection) { - throw new \LogicException('Unable to connect to ' . $this->host . ':' . $this->port); - } - - $this->httpConnection = $httpConnection; - curl_setopt($this->httpConnection, CURLOPT_CUSTOMREQUEST, "POST"); - curl_setopt($this->httpConnection, CURLOPT_RETURNTRANSFER, true); - } - - /** - * @inheritDoc - */ - protected function write(LogRecord $record): void - { - $date = $record->datetime; - - $data = ['time' => $date->format('Y-m-d\TH:i:s.uO')]; - $context = $record->context; - - if (isset($context['type'])) { - $data['type'] = $context['type']; - unset($context['type']); - } else { - $data['type'] = $record->channel; - } - - $data['data'] = $context; - $data['data']['level'] = $record->level; - - if ($this->scheme === 'http') { - $this->writeHttp(Utils::jsonEncode($data)); - } else { - $this->writeUdp(Utils::jsonEncode($data)); - } - } - - private function writeUdp(string $data): void - { - if (null === $this->udpConnection) { - $this->connectUdp(); - } - - if (null === $this->udpConnection) { - throw new \LogicException('No UDP socket could be opened'); - } - - socket_send($this->udpConnection, $data, \strlen($data), 0); - } - - private function writeHttp(string $data): void - { - if (null === $this->httpConnection) { - $this->connectHttp(); - } - - if (null === $this->httpConnection) { - throw new \LogicException('No connection could be established'); - } - - curl_setopt($this->httpConnection, CURLOPT_POSTFIELDS, '['.$data.']'); - curl_setopt($this->httpConnection, CURLOPT_HTTPHEADER, [ - 'Content-Type: application/json', - 'Content-Length: ' . \strlen('['.$data.']'), - ]); - - Curl\Util::execute($this->httpConnection, 5, false); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/Curl/Util.php b/vendor/monolog/monolog/src/Monolog/Handler/Curl/Util.php deleted file mode 100644 index f102811..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/Curl/Util.php +++ /dev/null @@ -1,69 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler\Curl; - -use CurlHandle; - -/** - * This class is marked as internal and it is not under the BC promise of the package. - * - * @internal - */ -final class Util -{ - /** @var array */ - private static array $retriableErrorCodes = [ - CURLE_COULDNT_RESOLVE_HOST, - CURLE_COULDNT_CONNECT, - CURLE_HTTP_NOT_FOUND, - CURLE_READ_ERROR, - CURLE_OPERATION_TIMEOUTED, - CURLE_HTTP_POST_ERROR, - CURLE_SSL_CONNECT_ERROR, - ]; - - /** - * Executes a CURL request with optional retries and exception on failure - * - * @param CurlHandle $ch curl handler - * @return bool|string @see curl_exec - */ - public static function execute(CurlHandle $ch, int $retries = 5, bool $closeAfterDone = true) - { - while ($retries--) { - $curlResponse = curl_exec($ch); - if ($curlResponse === false) { - $curlErrno = curl_errno($ch); - - if (false === \in_array($curlErrno, self::$retriableErrorCodes, true) || $retries === 0) { - $curlError = curl_error($ch); - - if ($closeAfterDone) { - curl_close($ch); - } - - throw new \RuntimeException(sprintf('Curl error (code %d): %s', $curlErrno, $curlError)); - } - - continue; - } - - if ($closeAfterDone) { - curl_close($ch); - } - - return $curlResponse; - } - - return false; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php deleted file mode 100644 index 873a4b8..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php +++ /dev/null @@ -1,174 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Level; -use Monolog\Logger; -use Psr\Log\LogLevel; -use Monolog\LogRecord; - -/** - * Simple handler wrapper that deduplicates log records across multiple requests - * - * It also includes the BufferHandler functionality and will buffer - * all messages until the end of the request or flush() is called. - * - * This works by storing all log records' messages above $deduplicationLevel - * to the file specified by $deduplicationStore. When further logs come in at the end of the - * request (or when flush() is called), all those above $deduplicationLevel are checked - * against the existing stored logs. If they match and the timestamps in the stored log is - * not older than $time seconds, the new log record is discarded. If no log record is new, the - * whole data set is discarded. - * - * This is mainly useful in combination with Mail handlers or things like Slack or HipChat handlers - * that send messages to people, to avoid spamming with the same message over and over in case of - * a major component failure like a database server being down which makes all requests fail in the - * same way. - * - * @author Jordi Boggiano - */ -class DeduplicationHandler extends BufferHandler -{ - protected string $deduplicationStore; - - protected Level $deduplicationLevel; - - protected int $time; - protected bool $gc = false; - - /** - * @param HandlerInterface $handler Handler. - * @param string|null $deduplicationStore The file/path where the deduplication log should be kept - * @param int|string|Level|LogLevel::* $deduplicationLevel The minimum logging level for log records to be looked at for deduplication purposes - * @param int $time The period (in seconds) during which duplicate entries should be suppressed after a given log is sent through - * @param bool $bubble Whether the messages that are handled can bubble up the stack or not - * - * @phpstan-param value-of|value-of|Level|LogLevel::* $deduplicationLevel - */ - public function __construct(HandlerInterface $handler, ?string $deduplicationStore = null, int|string|Level $deduplicationLevel = Level::Error, int $time = 60, bool $bubble = true) - { - parent::__construct($handler, 0, Level::Debug, $bubble, false); - - $this->deduplicationStore = $deduplicationStore === null ? sys_get_temp_dir() . '/monolog-dedup-' . substr(md5(__FILE__), 0, 20) .'.log' : $deduplicationStore; - $this->deduplicationLevel = Logger::toMonologLevel($deduplicationLevel); - $this->time = $time; - } - - public function flush(): void - { - if ($this->bufferSize === 0) { - return; - } - - $store = null; - - if (file_exists($this->deduplicationStore)) { - $store = file($this->deduplicationStore, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); - } - - $passthru = null; - - foreach ($this->buffer as $record) { - if ($record->level->value >= $this->deduplicationLevel->value) { - $passthru = $passthru === true || !\is_array($store) || !$this->isDuplicate($store, $record); - if ($passthru) { - $line = $this->buildDeduplicationStoreEntry($record); - file_put_contents($this->deduplicationStore, $line . "\n", FILE_APPEND); - if (!\is_array($store)) { - $store = []; - } - $store[] = $line; - } - } - } - - // default of null is valid as well as if no record matches duplicationLevel we just pass through - if ($passthru === true || $passthru === null) { - $this->handler->handleBatch($this->buffer); - } - - $this->clear(); - - if ($this->gc) { - $this->collectLogs(); - } - } - - /** - * If there is a store entry older than e.g. a day, this method should set `$this->gc` to `true` to trigger garbage collection. - * @param string[] $store The deduplication store - */ - protected function isDuplicate(array $store, LogRecord $record): bool - { - $timestampValidity = $record->datetime->getTimestamp() - $this->time; - $expectedMessage = preg_replace('{[\r\n].*}', '', $record->message); - $yesterday = time() - 86400; - - for ($i = \count($store) - 1; $i >= 0; $i--) { - list($timestamp, $level, $message) = explode(':', $store[$i], 3); - - if ($level === $record->level->getName() && $message === $expectedMessage && $timestamp > $timestampValidity) { - return true; - } - - if ($timestamp < $yesterday) { - $this->gc = true; - } - } - - return false; - } - - /** - * @return string The given record serialized as a single line of text - */ - protected function buildDeduplicationStoreEntry(LogRecord $record): string - { - return $record->datetime->getTimestamp() . ':' . $record->level->getName() . ':' . preg_replace('{[\r\n].*}', '', $record->message); - } - - private function collectLogs(): void - { - if (!file_exists($this->deduplicationStore)) { - return; - } - - $handle = fopen($this->deduplicationStore, 'rw+'); - - if (false === $handle) { - throw new \RuntimeException('Failed to open file for reading and writing: ' . $this->deduplicationStore); - } - - flock($handle, LOCK_EX); - $validLogs = []; - - $timestampValidity = time() - $this->time; - - while (!feof($handle)) { - $log = fgets($handle); - if (\is_string($log) && '' !== $log && substr($log, 0, 10) >= $timestampValidity) { - $validLogs[] = $log; - } - } - - ftruncate($handle, 0); - rewind($handle); - foreach ($validLogs as $log) { - fwrite($handle, $log); - } - - flock($handle, LOCK_UN); - fclose($handle); - - $this->gc = false; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php deleted file mode 100644 index eab9f10..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php +++ /dev/null @@ -1,47 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Level; -use Monolog\Formatter\NormalizerFormatter; -use Monolog\Formatter\FormatterInterface; -use Doctrine\CouchDB\CouchDBClient; -use Monolog\LogRecord; - -/** - * CouchDB handler for Doctrine CouchDB ODM - * - * @author Markus Bachmann - */ -class DoctrineCouchDBHandler extends AbstractProcessingHandler -{ - private CouchDBClient $client; - - public function __construct(CouchDBClient $client, int|string|Level $level = Level::Debug, bool $bubble = true) - { - $this->client = $client; - parent::__construct($level, $bubble); - } - - /** - * @inheritDoc - */ - protected function write(LogRecord $record): void - { - $this->client->postDocument($record->formatted); - } - - protected function getDefaultFormatter(): FormatterInterface - { - return new NormalizerFormatter; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/DynamoDbHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/DynamoDbHandler.php deleted file mode 100644 index f1c5a95..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/DynamoDbHandler.php +++ /dev/null @@ -1,80 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Aws\Sdk; -use Aws\DynamoDb\DynamoDbClient; -use Monolog\Formatter\FormatterInterface; -use Aws\DynamoDb\Marshaler; -use Monolog\Formatter\ScalarFormatter; -use Monolog\Level; -use Monolog\LogRecord; - -/** - * Amazon DynamoDB handler (http://aws.amazon.com/dynamodb/) - * - * @link https://github.com/aws/aws-sdk-php/ - * @author Andrew Lawson - */ -class DynamoDbHandler extends AbstractProcessingHandler -{ - public const DATE_FORMAT = 'Y-m-d\TH:i:s.uO'; - - protected DynamoDbClient $client; - - protected string $table; - - protected Marshaler $marshaler; - - public function __construct(DynamoDbClient $client, string $table, int|string|Level $level = Level::Debug, bool $bubble = true) - { - $this->marshaler = new Marshaler; - - $this->client = $client; - $this->table = $table; - - parent::__construct($level, $bubble); - } - - /** - * @inheritDoc - */ - protected function write(LogRecord $record): void - { - $filtered = $this->filterEmptyFields($record->formatted); - $formatted = $this->marshaler->marshalItem($filtered); - - $this->client->putItem([ - 'TableName' => $this->table, - 'Item' => $formatted, - ]); - } - - /** - * @param mixed[] $record - * @return mixed[] - */ - protected function filterEmptyFields(array $record): array - { - return array_filter($record, function ($value) { - return [] !== $value; - }); - } - - /** - * @inheritDoc - */ - protected function getDefaultFormatter(): FormatterInterface - { - return new ScalarFormatter(self::DATE_FORMAT); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/ElasticaHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/ElasticaHandler.php deleted file mode 100644 index 4a184b3..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/ElasticaHandler.php +++ /dev/null @@ -1,143 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Elastic\Transport\Exception\TransportException; -use Elastica\Document; -use Monolog\Formatter\FormatterInterface; -use Monolog\Formatter\ElasticaFormatter; -use Monolog\Level; -use Elastica\Client; -use Elastica\Exception\ExceptionInterface; -use Monolog\LogRecord; - -/** - * Elastic Search handler - * - * Usage example: - * - * $client = new \Elastica\Client(); - * $options = array( - * 'index' => 'elastic_index_name', - * 'type' => 'elastic_doc_type', Types have been removed in Elastica 7 - * ); - * $handler = new ElasticaHandler($client, $options); - * $log = new Logger('application'); - * $log->pushHandler($handler); - * - * @author Jelle Vink - * @phpstan-type Options array{ - * index: string, - * type: string, - * ignore_error: bool - * } - * @phpstan-type InputOptions array{ - * index?: string, - * type?: string, - * ignore_error?: bool - * } - */ -class ElasticaHandler extends AbstractProcessingHandler -{ - protected Client $client; - - /** - * @var mixed[] Handler config options - * @phpstan-var Options - */ - protected array $options; - - /** - * @param Client $client Elastica Client object - * @param mixed[] $options Handler configuration - * - * @phpstan-param InputOptions $options - */ - public function __construct(Client $client, array $options = [], int|string|Level $level = Level::Debug, bool $bubble = true) - { - parent::__construct($level, $bubble); - $this->client = $client; - $this->options = array_merge( - [ - 'index' => 'monolog', // Elastic index name - 'type' => 'record', // Elastic document type - 'ignore_error' => false, // Suppress Elastica exceptions - ], - $options - ); - } - - /** - * @inheritDoc - */ - protected function write(LogRecord $record): void - { - $this->bulkSend([$record->formatted]); - } - - /** - * @inheritDoc - */ - public function setFormatter(FormatterInterface $formatter): HandlerInterface - { - if ($formatter instanceof ElasticaFormatter) { - return parent::setFormatter($formatter); - } - - throw new \InvalidArgumentException('ElasticaHandler is only compatible with ElasticaFormatter'); - } - - /** - * @return mixed[] - * - * @phpstan-return Options - */ - public function getOptions(): array - { - return $this->options; - } - - /** - * @inheritDoc - */ - protected function getDefaultFormatter(): FormatterInterface - { - return new ElasticaFormatter($this->options['index'], $this->options['type']); - } - - /** - * @inheritDoc - */ - public function handleBatch(array $records): void - { - $documents = $this->getFormatter()->formatBatch($records); - $this->bulkSend($documents); - } - - /** - * Use Elasticsearch bulk API to send list of documents - * - * @param Document[] $documents - * - * @throws \RuntimeException - */ - protected function bulkSend(array $documents): void - { - try { - $this->client->addDocuments($documents); - } catch (ExceptionInterface | TransportException $e) { - if (!$this->options['ignore_error']) { - throw new \RuntimeException("Error sending messages to Elasticsearch", 0, $e); - } - } - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/ElasticsearchHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/ElasticsearchHandler.php deleted file mode 100644 index 6fd705d..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/ElasticsearchHandler.php +++ /dev/null @@ -1,238 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Elastic\Elasticsearch\Response\Elasticsearch; -use Throwable; -use RuntimeException; -use Monolog\Level; -use Monolog\Formatter\FormatterInterface; -use Monolog\Formatter\ElasticsearchFormatter; -use InvalidArgumentException; -use Elasticsearch\Common\Exceptions\RuntimeException as ElasticsearchRuntimeException; -use Elasticsearch\Client; -use Monolog\LogRecord; -use Elastic\Elasticsearch\Exception\InvalidArgumentException as ElasticInvalidArgumentException; -use Elastic\Elasticsearch\Client as Client8; - -/** - * Elasticsearch handler - * - * @link https://www.elastic.co/guide/en/elasticsearch/client/php-api/current/index.html - * - * Simple usage example: - * - * $client = \Elasticsearch\ClientBuilder::create() - * ->setHosts($hosts) - * ->build(); - * - * $options = array( - * 'index' => 'elastic_index_name', - * 'type' => 'elastic_doc_type', - * ); - * $handler = new ElasticsearchHandler($client, $options); - * $log = new Logger('application'); - * $log->pushHandler($handler); - * - * @author Avtandil Kikabidze - * @phpstan-type Options array{ - * index: string, - * type: string, - * ignore_error: bool, - * op_type: 'index'|'create' - * } - * @phpstan-type InputOptions array{ - * index?: string, - * type?: string, - * ignore_error?: bool, - * op_type?: 'index'|'create' - * } - */ -class ElasticsearchHandler extends AbstractProcessingHandler -{ - protected Client|Client8 $client; - - /** - * @var mixed[] Handler config options - * @phpstan-var Options - */ - protected array $options; - - /** - * @var bool - */ - private $needsType; - - /** - * @param Client|Client8 $client Elasticsearch Client object - * @param mixed[] $options Handler configuration - * - * @phpstan-param InputOptions $options - */ - public function __construct(Client|Client8 $client, array $options = [], int|string|Level $level = Level::Debug, bool $bubble = true) - { - parent::__construct($level, $bubble); - $this->client = $client; - $this->options = array_merge( - [ - 'index' => 'monolog', // Elastic index name - 'type' => '_doc', // Elastic document type - 'ignore_error' => false, // Suppress Elasticsearch exceptions - 'op_type' => 'index', // Elastic op_type (index or create) (https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index_.html#docs-index-api-op_type) - ], - $options - ); - - if ($client instanceof Client8 || $client::VERSION[0] === '7') { - $this->needsType = false; - // force the type to _doc for ES8/ES7 - $this->options['type'] = '_doc'; - } else { - $this->needsType = true; - } - } - - /** - * @inheritDoc - */ - protected function write(LogRecord $record): void - { - $this->bulkSend([$record->formatted]); - } - - /** - * @inheritDoc - */ - public function setFormatter(FormatterInterface $formatter): HandlerInterface - { - if ($formatter instanceof ElasticsearchFormatter) { - return parent::setFormatter($formatter); - } - - throw new InvalidArgumentException('ElasticsearchHandler is only compatible with ElasticsearchFormatter'); - } - - /** - * Getter options - * - * @return mixed[] - * - * @phpstan-return Options - */ - public function getOptions(): array - { - return $this->options; - } - - /** - * @inheritDoc - */ - protected function getDefaultFormatter(): FormatterInterface - { - return new ElasticsearchFormatter($this->options['index'], $this->options['type']); - } - - /** - * @inheritDoc - */ - public function handleBatch(array $records): void - { - $documents = $this->getFormatter()->formatBatch($records); - $this->bulkSend($documents); - } - - /** - * Use Elasticsearch bulk API to send list of documents - * - * @param array> $records Records + _index/_type keys - * @throws \RuntimeException - */ - protected function bulkSend(array $records): void - { - try { - $params = [ - 'body' => [], - ]; - - foreach ($records as $record) { - $params['body'][] = [ - $this->options['op_type'] => $this->needsType ? [ - '_index' => $record['_index'], - '_type' => $record['_type'], - ] : [ - '_index' => $record['_index'], - ], - ]; - unset($record['_index'], $record['_type']); - - $params['body'][] = $record; - } - - /** @var Elasticsearch */ - $responses = $this->client->bulk($params); - - if ($responses['errors'] === true) { - throw $this->createExceptionFromResponses($responses); - } - } catch (Throwable $e) { - if (! $this->options['ignore_error']) { - throw new RuntimeException('Error sending messages to Elasticsearch', 0, $e); - } - } - } - - /** - * Creates elasticsearch exception from responses array - * - * Only the first error is converted into an exception. - * - * @param mixed[]|Elasticsearch $responses returned by $this->client->bulk() - */ - protected function createExceptionFromResponses($responses): Throwable - { - foreach ($responses['items'] ?? [] as $item) { - if (isset($item['index']['error'])) { - return $this->createExceptionFromError($item['index']['error']); - } - } - - if (class_exists(ElasticInvalidArgumentException::class)) { - return new ElasticInvalidArgumentException('Elasticsearch failed to index one or more records.'); - } - - if (class_exists(ElasticsearchRuntimeException::class)) { - return new ElasticsearchRuntimeException('Elasticsearch failed to index one or more records.'); - } - - throw new \LogicException('Unsupported elastic search client version'); - } - - /** - * Creates elasticsearch exception from error array - * - * @param mixed[] $error - */ - protected function createExceptionFromError(array $error): Throwable - { - $previous = isset($error['caused_by']) ? $this->createExceptionFromError($error['caused_by']) : null; - - if (class_exists(ElasticInvalidArgumentException::class)) { - return new ElasticInvalidArgumentException($error['type'] . ': ' . $error['reason'], 0, $previous); - } - - if (class_exists(ElasticsearchRuntimeException::class)) { - return new ElasticsearchRuntimeException($error['type'].': '.$error['reason'], 0, $previous); - } - - throw new \LogicException('Unsupported elastic search client version'); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/ErrorLogHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/ErrorLogHandler.php deleted file mode 100644 index a38c3f5..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/ErrorLogHandler.php +++ /dev/null @@ -1,94 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Formatter\LineFormatter; -use Monolog\Formatter\FormatterInterface; -use Monolog\Level; -use Monolog\Utils; -use Monolog\LogRecord; - -/** - * Stores to PHP error_log() handler. - * - * @author Elan Ruusamäe - */ -class ErrorLogHandler extends AbstractProcessingHandler -{ - public const OPERATING_SYSTEM = 0; - public const SAPI = 4; - - /** @var 0|1|3|4 */ - protected int $messageType; - protected bool $expandNewlines; - - /** - * @param 0|1|3|4 $messageType Says where the error should go. - * @param bool $expandNewlines If set to true, newlines in the message will be expanded to be take multiple log entries - * - * @throws \InvalidArgumentException If an unsupported message type is set - */ - public function __construct(int $messageType = self::OPERATING_SYSTEM, int|string|Level $level = Level::Debug, bool $bubble = true, bool $expandNewlines = false) - { - parent::__construct($level, $bubble); - - if (false === \in_array($messageType, self::getAvailableTypes(), true)) { - $message = sprintf('The given message type "%s" is not supported', print_r($messageType, true)); - - throw new \InvalidArgumentException($message); - } - - $this->messageType = $messageType; - $this->expandNewlines = $expandNewlines; - } - - /** - * @return int[] With all available types - */ - public static function getAvailableTypes(): array - { - return [ - self::OPERATING_SYSTEM, - self::SAPI, - ]; - } - - /** - * @inheritDoc - */ - protected function getDefaultFormatter(): FormatterInterface - { - return new LineFormatter('[%datetime%] %channel%.%level_name%: %message% %context% %extra%'); - } - - /** - * @inheritDoc - */ - protected function write(LogRecord $record): void - { - if (!$this->expandNewlines) { - error_log((string) $record->formatted, $this->messageType); - - return; - } - - $lines = preg_split('{[\r\n]+}', (string) $record->formatted); - if ($lines === false) { - $pcreErrorCode = preg_last_error(); - - throw new \RuntimeException('Failed to preg_split formatted string: ' . $pcreErrorCode . ' / '. preg_last_error_msg()); - } - foreach ($lines as $line) { - error_log($line, $this->messageType); - } - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/FallbackGroupHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/FallbackGroupHandler.php deleted file mode 100644 index 58318be..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/FallbackGroupHandler.php +++ /dev/null @@ -1,68 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Throwable; -use Monolog\LogRecord; - -/** - * Forwards records to at most one handler - * - * If a handler fails, the exception is suppressed and the record is forwarded to the next handler. - * - * As soon as one handler handles a record successfully, the handling stops there. - */ -class FallbackGroupHandler extends GroupHandler -{ - /** - * @inheritDoc - */ - public function handle(LogRecord $record): bool - { - if (\count($this->processors) > 0) { - $record = $this->processRecord($record); - } - foreach ($this->handlers as $handler) { - try { - $handler->handle(clone $record); - break; - } catch (Throwable $e) { - // What throwable? - } - } - - return false === $this->bubble; - } - - /** - * @inheritDoc - */ - public function handleBatch(array $records): void - { - if (\count($this->processors) > 0) { - $processed = []; - foreach ($records as $record) { - $processed[] = $this->processRecord($record); - } - $records = $processed; - } - - foreach ($this->handlers as $handler) { - try { - $handler->handleBatch(array_map(fn ($record) => clone $record, $records)); - break; - } catch (Throwable $e) { - // What throwable? - } - } - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/FilterHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/FilterHandler.php deleted file mode 100644 index 6653fa1..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/FilterHandler.php +++ /dev/null @@ -1,202 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Closure; -use Monolog\Level; -use Monolog\Logger; -use Monolog\ResettableInterface; -use Monolog\Formatter\FormatterInterface; -use Psr\Log\LogLevel; -use Monolog\LogRecord; - -/** - * Simple handler wrapper that filters records based on a list of levels - * - * It can be configured with an exact list of levels to allow, or a min/max level. - * - * @author Hennadiy Verkh - * @author Jordi Boggiano - */ -class FilterHandler extends Handler implements ProcessableHandlerInterface, ResettableInterface, FormattableHandlerInterface -{ - use ProcessableHandlerTrait; - - /** - * Handler or factory Closure($record, $this) - * - * @phpstan-var (Closure(LogRecord|null, HandlerInterface): HandlerInterface)|HandlerInterface - */ - protected Closure|HandlerInterface $handler; - - /** - * Minimum level for logs that are passed to handler - * - * @var bool[] Map of Level value => true - * @phpstan-var array, true> - */ - protected array $acceptedLevels; - - /** - * Whether the messages that are handled can bubble up the stack or not - */ - protected bool $bubble; - - /** - * @phpstan-param (Closure(LogRecord|null, HandlerInterface): HandlerInterface)|HandlerInterface $handler - * - * @param Closure|HandlerInterface $handler Handler or factory Closure($record|null, $filterHandler). - * @param int|string|Level|array $minLevelOrList A list of levels to accept or a minimum level if maxLevel is provided - * @param int|string|Level|LogLevel::* $maxLevel Maximum level to accept, only used if $minLevelOrList is not an array - * @param bool $bubble Whether the messages that are handled can bubble up the stack or not - * - * @phpstan-param value-of|value-of|Level|LogLevel::*|array|value-of|Level|LogLevel::*> $minLevelOrList - * @phpstan-param value-of|value-of|Level|LogLevel::* $maxLevel - */ - public function __construct(Closure|HandlerInterface $handler, int|string|Level|array $minLevelOrList = Level::Debug, int|string|Level $maxLevel = Level::Emergency, bool $bubble = true) - { - $this->handler = $handler; - $this->bubble = $bubble; - $this->setAcceptedLevels($minLevelOrList, $maxLevel); - } - - /** - * @phpstan-return list List of levels - */ - public function getAcceptedLevels(): array - { - return array_map(fn (int $level) => Level::from($level), array_keys($this->acceptedLevels)); - } - - /** - * @param int|string|Level|LogLevel::*|array $minLevelOrList A list of levels to accept or a minimum level or level name if maxLevel is provided - * @param int|string|Level|LogLevel::* $maxLevel Maximum level or level name to accept, only used if $minLevelOrList is not an array - * @return $this - * - * @phpstan-param value-of|value-of|Level|LogLevel::*|array|value-of|Level|LogLevel::*> $minLevelOrList - * @phpstan-param value-of|value-of|Level|LogLevel::* $maxLevel - */ - public function setAcceptedLevels(int|string|Level|array $minLevelOrList = Level::Debug, int|string|Level $maxLevel = Level::Emergency): self - { - if (\is_array($minLevelOrList)) { - $acceptedLevels = array_map(Logger::toMonologLevel(...), $minLevelOrList); - } else { - $minLevelOrList = Logger::toMonologLevel($minLevelOrList); - $maxLevel = Logger::toMonologLevel($maxLevel); - $acceptedLevels = array_values(array_filter(Level::cases(), fn (Level $level) => $level->value >= $minLevelOrList->value && $level->value <= $maxLevel->value)); - } - $this->acceptedLevels = []; - foreach ($acceptedLevels as $level) { - $this->acceptedLevels[$level->value] = true; - } - - return $this; - } - - /** - * @inheritDoc - */ - public function isHandling(LogRecord $record): bool - { - return isset($this->acceptedLevels[$record->level->value]); - } - - /** - * @inheritDoc - */ - public function handle(LogRecord $record): bool - { - if (!$this->isHandling($record)) { - return false; - } - - if (\count($this->processors) > 0) { - $record = $this->processRecord($record); - } - - $this->getHandler($record)->handle($record); - - return false === $this->bubble; - } - - /** - * @inheritDoc - */ - public function handleBatch(array $records): void - { - $filtered = []; - foreach ($records as $record) { - if ($this->isHandling($record)) { - $filtered[] = $record; - } - } - - if (\count($filtered) > 0) { - $this->getHandler($filtered[\count($filtered) - 1])->handleBatch($filtered); - } - } - - /** - * Return the nested handler - * - * If the handler was provided as a factory, this will trigger the handler's instantiation. - */ - public function getHandler(LogRecord|null $record = null): HandlerInterface - { - if (!$this->handler instanceof HandlerInterface) { - $handler = ($this->handler)($record, $this); - if (!$handler instanceof HandlerInterface) { - throw new \RuntimeException("The factory Closure should return a HandlerInterface"); - } - $this->handler = $handler; - } - - return $this->handler; - } - - /** - * @inheritDoc - */ - public function setFormatter(FormatterInterface $formatter): HandlerInterface - { - $handler = $this->getHandler(); - if ($handler instanceof FormattableHandlerInterface) { - $handler->setFormatter($formatter); - - return $this; - } - - throw new \UnexpectedValueException('The nested handler of type '.\get_class($handler).' does not support formatters.'); - } - - /** - * @inheritDoc - */ - public function getFormatter(): FormatterInterface - { - $handler = $this->getHandler(); - if ($handler instanceof FormattableHandlerInterface) { - return $handler->getFormatter(); - } - - throw new \UnexpectedValueException('The nested handler of type '.\get_class($handler).' does not support formatters.'); - } - - public function reset(): void - { - $this->resetProcessors(); - - if ($this->getHandler() instanceof ResettableInterface) { - $this->getHandler()->reset(); - } - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ActivationStrategyInterface.php b/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ActivationStrategyInterface.php deleted file mode 100644 index e8a1b0b..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ActivationStrategyInterface.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler\FingersCrossed; - -use Monolog\LogRecord; - -/** - * Interface for activation strategies for the FingersCrossedHandler. - * - * @author Johannes M. Schmitt - */ -interface ActivationStrategyInterface -{ - /** - * Returns whether the given record activates the handler. - */ - public function isHandlerActivated(LogRecord $record): bool; -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php b/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php deleted file mode 100644 index 383e19a..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php +++ /dev/null @@ -1,69 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler\FingersCrossed; - -use Monolog\Level; -use Monolog\Logger; -use Psr\Log\LogLevel; -use Monolog\LogRecord; - -/** - * Channel and Error level based monolog activation strategy. Allows to trigger activation - * based on level per channel. e.g. trigger activation on level 'ERROR' by default, except - * for records of the 'sql' channel; those should trigger activation on level 'WARN'. - * - * Example: - * - * - * $activationStrategy = new ChannelLevelActivationStrategy( - * Level::Critical, - * array( - * 'request' => Level::Alert, - * 'sensitive' => Level::Error, - * ) - * ); - * $handler = new FingersCrossedHandler(new StreamHandler('php://stderr'), $activationStrategy); - * - * - * @author Mike Meessen - */ -class ChannelLevelActivationStrategy implements ActivationStrategyInterface -{ - private Level $defaultActionLevel; - - /** - * @var array - */ - private array $channelToActionLevel; - - /** - * @param int|string|Level|LogLevel::* $defaultActionLevel The default action level to be used if the record's category doesn't match any - * @param array $channelToActionLevel An array that maps channel names to action levels. - * - * @phpstan-param value-of|value-of|Level|LogLevel::* $defaultActionLevel - * @phpstan-param array|value-of|Level|LogLevel::*> $channelToActionLevel - */ - public function __construct(int|string|Level $defaultActionLevel, array $channelToActionLevel = []) - { - $this->defaultActionLevel = Logger::toMonologLevel($defaultActionLevel); - $this->channelToActionLevel = array_map(Logger::toMonologLevel(...), $channelToActionLevel); - } - - public function isHandlerActivated(LogRecord $record): bool - { - if (isset($this->channelToActionLevel[$record->channel])) { - return $record->level->value >= $this->channelToActionLevel[$record->channel]->value; - } - - return $record->level->value >= $this->defaultActionLevel->value; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php b/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php deleted file mode 100644 index c3ca296..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php +++ /dev/null @@ -1,42 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler\FingersCrossed; - -use Monolog\Level; -use Monolog\LogRecord; -use Monolog\Logger; -use Psr\Log\LogLevel; - -/** - * Error level based activation strategy. - * - * @author Johannes M. Schmitt - */ -class ErrorLevelActivationStrategy implements ActivationStrategyInterface -{ - private Level $actionLevel; - - /** - * @param int|string|Level $actionLevel Level or name or value - * - * @phpstan-param value-of|value-of|Level|LogLevel::* $actionLevel - */ - public function __construct(int|string|Level $actionLevel) - { - $this->actionLevel = Logger::toMonologLevel($actionLevel); - } - - public function isHandlerActivated(LogRecord $record): bool - { - return $record->level->value >= $this->actionLevel->value; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php deleted file mode 100644 index 1ce64e8..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php +++ /dev/null @@ -1,242 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Closure; -use Monolog\Handler\FingersCrossed\ErrorLevelActivationStrategy; -use Monolog\Handler\FingersCrossed\ActivationStrategyInterface; -use Monolog\Level; -use Monolog\Logger; -use Monolog\ResettableInterface; -use Monolog\Formatter\FormatterInterface; -use Psr\Log\LogLevel; -use Monolog\LogRecord; - -/** - * Buffers all records until a certain level is reached - * - * The advantage of this approach is that you don't get any clutter in your log files. - * Only requests which actually trigger an error (or whatever your actionLevel is) will be - * in the logs, but they will contain all records, not only those above the level threshold. - * - * You can then have a passthruLevel as well which means that at the end of the request, - * even if it did not get activated, it will still send through log records of e.g. at least a - * warning level. - * - * You can find the various activation strategies in the - * Monolog\Handler\FingersCrossed\ namespace. - * - * @author Jordi Boggiano - */ -class FingersCrossedHandler extends Handler implements ProcessableHandlerInterface, ResettableInterface, FormattableHandlerInterface -{ - use ProcessableHandlerTrait; - - /** - * Handler or factory Closure($record, $this) - * - * @phpstan-var (Closure(LogRecord|null, HandlerInterface): HandlerInterface)|HandlerInterface - */ - protected Closure|HandlerInterface $handler; - - protected ActivationStrategyInterface $activationStrategy; - - protected bool $buffering = true; - - protected int $bufferSize; - - /** @var LogRecord[] */ - protected array $buffer = []; - - protected bool $stopBuffering; - - protected Level|null $passthruLevel = null; - - protected bool $bubble; - - /** - * @phpstan-param (Closure(LogRecord|null, HandlerInterface): HandlerInterface)|HandlerInterface $handler - * - * @param Closure|HandlerInterface $handler Handler or factory Closure($record|null, $fingersCrossedHandler). - * @param int|string|Level|LogLevel::*|null $activationStrategy Strategy which determines when this handler takes action, or a level name/value at which the handler is activated - * @param int $bufferSize How many entries should be buffered at most, beyond that the oldest items are removed from the buffer. - * @param bool $bubble Whether the messages that are handled can bubble up the stack or not - * @param bool $stopBuffering Whether the handler should stop buffering after being triggered (default true) - * @param int|string|Level|LogLevel::*|null $passthruLevel Minimum level to always flush to handler on close, even if strategy not triggered - * - * @phpstan-param value-of|value-of|Level|LogLevel::*|ActivationStrategyInterface|null $activationStrategy - * @phpstan-param value-of|value-of|Level|LogLevel::*|null $passthruLevel - */ - public function __construct(Closure|HandlerInterface $handler, int|string|Level|ActivationStrategyInterface|null $activationStrategy = null, int $bufferSize = 0, bool $bubble = true, bool $stopBuffering = true, int|string|Level|null $passthruLevel = null) - { - if (null === $activationStrategy) { - $activationStrategy = new ErrorLevelActivationStrategy(Level::Warning); - } - - // convert simple int activationStrategy to an object - if (!$activationStrategy instanceof ActivationStrategyInterface) { - $activationStrategy = new ErrorLevelActivationStrategy($activationStrategy); - } - - $this->handler = $handler; - $this->activationStrategy = $activationStrategy; - $this->bufferSize = $bufferSize; - $this->bubble = $bubble; - $this->stopBuffering = $stopBuffering; - - if ($passthruLevel !== null) { - $this->passthruLevel = Logger::toMonologLevel($passthruLevel); - } - } - - /** - * @inheritDoc - */ - public function isHandling(LogRecord $record): bool - { - return true; - } - - /** - * Manually activate this logger regardless of the activation strategy - */ - public function activate(): void - { - if ($this->stopBuffering) { - $this->buffering = false; - } - - $this->getHandler(end($this->buffer) ?: null)->handleBatch($this->buffer); - $this->buffer = []; - } - - /** - * @inheritDoc - */ - public function handle(LogRecord $record): bool - { - if (\count($this->processors) > 0) { - $record = $this->processRecord($record); - } - - if ($this->buffering) { - $this->buffer[] = $record; - if ($this->bufferSize > 0 && \count($this->buffer) > $this->bufferSize) { - array_shift($this->buffer); - } - if ($this->activationStrategy->isHandlerActivated($record)) { - $this->activate(); - } - } else { - $this->getHandler($record)->handle($record); - } - - return false === $this->bubble; - } - - /** - * @inheritDoc - */ - public function close(): void - { - $this->flushBuffer(); - - $this->getHandler()->close(); - } - - public function reset(): void - { - $this->flushBuffer(); - - $this->resetProcessors(); - - if ($this->getHandler() instanceof ResettableInterface) { - $this->getHandler()->reset(); - } - } - - /** - * Clears the buffer without flushing any messages down to the wrapped handler. - * - * It also resets the handler to its initial buffering state. - */ - public function clear(): void - { - $this->buffer = []; - $this->reset(); - } - - /** - * Resets the state of the handler. Stops forwarding records to the wrapped handler. - */ - private function flushBuffer(): void - { - if (null !== $this->passthruLevel) { - $passthruLevel = $this->passthruLevel; - $this->buffer = array_filter($this->buffer, static function ($record) use ($passthruLevel) { - return $passthruLevel->includes($record->level); - }); - if (\count($this->buffer) > 0) { - $this->getHandler(end($this->buffer))->handleBatch($this->buffer); - } - } - - $this->buffer = []; - $this->buffering = true; - } - - /** - * Return the nested handler - * - * If the handler was provided as a factory, this will trigger the handler's instantiation. - */ - public function getHandler(LogRecord|null $record = null): HandlerInterface - { - if (!$this->handler instanceof HandlerInterface) { - $handler = ($this->handler)($record, $this); - if (!$handler instanceof HandlerInterface) { - throw new \RuntimeException("The factory Closure should return a HandlerInterface"); - } - $this->handler = $handler; - } - - return $this->handler; - } - - /** - * @inheritDoc - */ - public function setFormatter(FormatterInterface $formatter): HandlerInterface - { - $handler = $this->getHandler(); - if ($handler instanceof FormattableHandlerInterface) { - $handler->setFormatter($formatter); - - return $this; - } - - throw new \UnexpectedValueException('The nested handler of type '.\get_class($handler).' does not support formatters.'); - } - - /** - * @inheritDoc - */ - public function getFormatter(): FormatterInterface - { - $handler = $this->getHandler(); - if ($handler instanceof FormattableHandlerInterface) { - return $handler->getFormatter(); - } - - throw new \UnexpectedValueException('The nested handler of type '.\get_class($handler).' does not support formatters.'); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/FirePHPHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/FirePHPHandler.php deleted file mode 100644 index 6b9e510..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/FirePHPHandler.php +++ /dev/null @@ -1,174 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Formatter\WildfireFormatter; -use Monolog\Formatter\FormatterInterface; -use Monolog\LogRecord; - -/** - * Simple FirePHP Handler (http://www.firephp.org/), which uses the Wildfire protocol. - * - * @author Eric Clemmons (@ericclemmons) - */ -class FirePHPHandler extends AbstractProcessingHandler -{ - use WebRequestRecognizerTrait; - - /** - * WildFire JSON header message format - */ - protected const PROTOCOL_URI = 'http://meta.wildfirehq.org/Protocol/JsonStream/0.2'; - - /** - * FirePHP structure for parsing messages & their presentation - */ - protected const STRUCTURE_URI = 'http://meta.firephp.org/Wildfire/Structure/FirePHP/FirebugConsole/0.1'; - - /** - * Must reference a "known" plugin, otherwise headers won't display in FirePHP - */ - protected const PLUGIN_URI = 'http://meta.firephp.org/Wildfire/Plugin/FirePHP/Library-FirePHPCore/0.3'; - - /** - * Header prefix for Wildfire to recognize & parse headers - */ - protected const HEADER_PREFIX = 'X-Wf'; - - /** - * Whether or not Wildfire vendor-specific headers have been generated & sent yet - */ - protected static bool $initialized = false; - - /** - * Shared static message index between potentially multiple handlers - */ - protected static int $messageIndex = 1; - - protected static bool $sendHeaders = true; - - /** - * Base header creation function used by init headers & record headers - * - * @param array $meta Wildfire Plugin, Protocol & Structure Indexes - * @param string $message Log message - * - * @return array Complete header string ready for the client as key and message as value - * - * @phpstan-return non-empty-array - */ - protected function createHeader(array $meta, string $message): array - { - $header = sprintf('%s-%s', static::HEADER_PREFIX, join('-', $meta)); - - return [$header => $message]; - } - - /** - * Creates message header from record - * - * @return array - * - * @phpstan-return non-empty-array - * - * @see createHeader() - */ - protected function createRecordHeader(LogRecord $record): array - { - // Wildfire is extensible to support multiple protocols & plugins in a single request, - // but we're not taking advantage of that (yet), so we're using "1" for simplicity's sake. - return $this->createHeader( - [1, 1, 1, self::$messageIndex++], - $record->formatted - ); - } - - /** - * @inheritDoc - */ - protected function getDefaultFormatter(): FormatterInterface - { - return new WildfireFormatter(); - } - - /** - * Wildfire initialization headers to enable message parsing - * - * @see createHeader() - * @see sendHeader() - * - * @return array - */ - protected function getInitHeaders(): array - { - // Initial payload consists of required headers for Wildfire - return array_merge( - $this->createHeader(['Protocol', 1], static::PROTOCOL_URI), - $this->createHeader([1, 'Structure', 1], static::STRUCTURE_URI), - $this->createHeader([1, 'Plugin', 1], static::PLUGIN_URI) - ); - } - - /** - * Send header string to the client - */ - protected function sendHeader(string $header, string $content): void - { - if (!headers_sent() && self::$sendHeaders) { - header(sprintf('%s: %s', $header, $content)); - } - } - - /** - * Creates & sends header for a record, ensuring init headers have been sent prior - * - * @see sendHeader() - * @see sendInitHeaders() - */ - protected function write(LogRecord $record): void - { - if (!self::$sendHeaders || !$this->isWebRequest()) { - return; - } - - // WildFire-specific headers must be sent prior to any messages - if (!self::$initialized) { - self::$initialized = true; - - self::$sendHeaders = $this->headersAccepted(); - if (!self::$sendHeaders) { - return; - } - - foreach ($this->getInitHeaders() as $header => $content) { - $this->sendHeader($header, $content); - } - } - - $header = $this->createRecordHeader($record); - if (trim(current($header)) !== '') { - $this->sendHeader(key($header), current($header)); - } - } - - /** - * Verifies if the headers are accepted by the current user agent - */ - protected function headersAccepted(): bool - { - if (isset($_SERVER['HTTP_USER_AGENT']) && 1 === preg_match('{\bFirePHP/\d+\.\d+\b}', $_SERVER['HTTP_USER_AGENT'])) { - return true; - } - - return isset($_SERVER['HTTP_X_FIREPHP_VERSION']); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/FleepHookHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/FleepHookHandler.php deleted file mode 100644 index 46ebfc0..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/FleepHookHandler.php +++ /dev/null @@ -1,132 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Formatter\FormatterInterface; -use Monolog\Formatter\LineFormatter; -use Monolog\Level; -use Monolog\LogRecord; - -/** - * Sends logs to Fleep.io using Webhook integrations - * - * You'll need a Fleep.io account to use this handler. - * - * @see https://fleep.io/integrations/webhooks/ Fleep Webhooks Documentation - * @author Ando Roots - */ -class FleepHookHandler extends SocketHandler -{ - protected const FLEEP_HOST = 'fleep.io'; - - protected const FLEEP_HOOK_URI = '/hook/'; - - /** - * @var string Webhook token (specifies the conversation where logs are sent) - */ - protected string $token; - - /** - * Construct a new Fleep.io Handler. - * - * For instructions on how to create a new web hook in your conversations - * see https://fleep.io/integrations/webhooks/ - * - * @param string $token Webhook token - * @throws MissingExtensionException if OpenSSL is missing - */ - public function __construct( - string $token, - $level = Level::Debug, - bool $bubble = true, - bool $persistent = false, - float $timeout = 0.0, - float $writingTimeout = 10.0, - ?float $connectionTimeout = null, - ?int $chunkSize = null - ) { - if (!\extension_loaded('openssl')) { - throw new MissingExtensionException('The OpenSSL PHP extension is required to use the FleepHookHandler'); - } - - $this->token = $token; - - $connectionString = 'ssl://' . static::FLEEP_HOST . ':443'; - parent::__construct( - $connectionString, - $level, - $bubble, - $persistent, - $timeout, - $writingTimeout, - $connectionTimeout, - $chunkSize - ); - } - - /** - * Returns the default formatter to use with this handler - * - * Overloaded to remove empty context and extra arrays from the end of the log message. - * - * @return LineFormatter - */ - protected function getDefaultFormatter(): FormatterInterface - { - return new LineFormatter(null, null, true, true); - } - - /** - * Handles a log record - */ - public function write(LogRecord $record): void - { - parent::write($record); - $this->closeSocket(); - } - - /** - * @inheritDoc - */ - protected function generateDataStream(LogRecord $record): string - { - $content = $this->buildContent($record); - - return $this->buildHeader($content) . $content; - } - - /** - * Builds the header of the API Call - */ - private function buildHeader(string $content): string - { - $header = "POST " . static::FLEEP_HOOK_URI . $this->token . " HTTP/1.1\r\n"; - $header .= "Host: " . static::FLEEP_HOST . "\r\n"; - $header .= "Content-Type: application/x-www-form-urlencoded\r\n"; - $header .= "Content-Length: " . \strlen($content) . "\r\n"; - $header .= "\r\n"; - - return $header; - } - - /** - * Builds the body of API call - */ - private function buildContent(LogRecord $record): string - { - $dataArray = [ - 'message' => $record->formatted, - ]; - - return http_build_query($dataArray); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php deleted file mode 100644 index 27c6c15..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php +++ /dev/null @@ -1,127 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Level; -use Monolog\Utils; -use Monolog\Formatter\FlowdockFormatter; -use Monolog\Formatter\FormatterInterface; -use Monolog\LogRecord; - -/** - * Sends notifications through the Flowdock push API - * - * This must be configured with a FlowdockFormatter instance via setFormatter() - * - * Notes: - * API token - Flowdock API token - * - * @author Dominik Liebler - * @see https://www.flowdock.com/api/push - * @deprecated Since 2.9.0 and 3.3.0, Flowdock was shutdown we will thus drop this handler in Monolog 4 - */ -class FlowdockHandler extends SocketHandler -{ - protected string $apiToken; - - /** - * @throws MissingExtensionException if OpenSSL is missing - */ - public function __construct( - string $apiToken, - $level = Level::Debug, - bool $bubble = true, - bool $persistent = false, - float $timeout = 0.0, - float $writingTimeout = 10.0, - ?float $connectionTimeout = null, - ?int $chunkSize = null - ) { - if (!\extension_loaded('openssl')) { - throw new MissingExtensionException('The OpenSSL PHP extension is required to use the FlowdockHandler'); - } - - parent::__construct( - 'ssl://api.flowdock.com:443', - $level, - $bubble, - $persistent, - $timeout, - $writingTimeout, - $connectionTimeout, - $chunkSize - ); - $this->apiToken = $apiToken; - } - - /** - * @inheritDoc - */ - public function setFormatter(FormatterInterface $formatter): HandlerInterface - { - if (!$formatter instanceof FlowdockFormatter) { - throw new \InvalidArgumentException('The FlowdockHandler requires an instance of Monolog\Formatter\FlowdockFormatter to function correctly'); - } - - return parent::setFormatter($formatter); - } - - /** - * Gets the default formatter. - */ - protected function getDefaultFormatter(): FormatterInterface - { - throw new \InvalidArgumentException('The FlowdockHandler must be configured (via setFormatter) with an instance of Monolog\Formatter\FlowdockFormatter to function correctly'); - } - - /** - * @inheritDoc - */ - protected function write(LogRecord $record): void - { - parent::write($record); - - $this->closeSocket(); - } - - /** - * @inheritDoc - */ - protected function generateDataStream(LogRecord $record): string - { - $content = $this->buildContent($record); - - return $this->buildHeader($content) . $content; - } - - /** - * Builds the body of API call - */ - private function buildContent(LogRecord $record): string - { - return Utils::jsonEncode($record->formatted); - } - - /** - * Builds the header of the API Call - */ - private function buildHeader(string $content): string - { - $header = "POST /v1/messages/team_inbox/" . $this->apiToken . " HTTP/1.1\r\n"; - $header .= "Host: api.flowdock.com\r\n"; - $header .= "Content-Type: application/json\r\n"; - $header .= "Content-Length: " . \strlen($content) . "\r\n"; - $header .= "\r\n"; - - return $header; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/FormattableHandlerInterface.php b/vendor/monolog/monolog/src/Monolog/Handler/FormattableHandlerInterface.php deleted file mode 100644 index 72da59e..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/FormattableHandlerInterface.php +++ /dev/null @@ -1,34 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Formatter\FormatterInterface; - -/** - * Interface to describe loggers that have a formatter - * - * @author Jordi Boggiano - */ -interface FormattableHandlerInterface -{ - /** - * Sets the formatter. - * - * @return HandlerInterface self - */ - public function setFormatter(FormatterInterface $formatter): HandlerInterface; - - /** - * Gets the formatter. - */ - public function getFormatter(): FormatterInterface; -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/FormattableHandlerTrait.php b/vendor/monolog/monolog/src/Monolog/Handler/FormattableHandlerTrait.php deleted file mode 100644 index c044e07..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/FormattableHandlerTrait.php +++ /dev/null @@ -1,57 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Formatter\FormatterInterface; -use Monolog\Formatter\LineFormatter; - -/** - * Helper trait for implementing FormattableInterface - * - * @author Jordi Boggiano - */ -trait FormattableHandlerTrait -{ - protected FormatterInterface|null $formatter = null; - - /** - * @inheritDoc - */ - public function setFormatter(FormatterInterface $formatter): HandlerInterface - { - $this->formatter = $formatter; - - return $this; - } - - /** - * @inheritDoc - */ - public function getFormatter(): FormatterInterface - { - if (null === $this->formatter) { - $this->formatter = $this->getDefaultFormatter(); - } - - return $this->formatter; - } - - /** - * Gets the default formatter. - * - * Overwrite this if the LineFormatter is not a good default for your handler. - */ - protected function getDefaultFormatter(): FormatterInterface - { - return new LineFormatter(); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/GelfHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/GelfHandler.php deleted file mode 100644 index ba5bb97..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/GelfHandler.php +++ /dev/null @@ -1,58 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Gelf\PublisherInterface; -use Monolog\Level; -use Monolog\Formatter\GelfMessageFormatter; -use Monolog\Formatter\FormatterInterface; -use Monolog\LogRecord; - -/** - * Handler to send messages to a Graylog2 (http://www.graylog2.org) server - * - * @author Matt Lehner - * @author Benjamin Zikarsky - */ -class GelfHandler extends AbstractProcessingHandler -{ - /** - * @var PublisherInterface the publisher object that sends the message to the server - */ - protected PublisherInterface $publisher; - - /** - * @param PublisherInterface $publisher a gelf publisher object - */ - public function __construct(PublisherInterface $publisher, int|string|Level $level = Level::Debug, bool $bubble = true) - { - parent::__construct($level, $bubble); - - $this->publisher = $publisher; - } - - /** - * @inheritDoc - */ - protected function write(LogRecord $record): void - { - $this->publisher->publish($record->formatted); - } - - /** - * @inheritDoc - */ - protected function getDefaultFormatter(): FormatterInterface - { - return new GelfMessageFormatter(); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/GroupHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/GroupHandler.php deleted file mode 100644 index 0423dc3..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/GroupHandler.php +++ /dev/null @@ -1,130 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Formatter\FormatterInterface; -use Monolog\ResettableInterface; -use Monolog\LogRecord; - -/** - * Forwards records to multiple handlers - * - * @author Lenar Lõhmus - */ -class GroupHandler extends Handler implements ProcessableHandlerInterface, ResettableInterface -{ - use ProcessableHandlerTrait; - - /** @var HandlerInterface[] */ - protected array $handlers; - protected bool $bubble; - - /** - * @param HandlerInterface[] $handlers Array of Handlers. - * @param bool $bubble Whether the messages that are handled can bubble up the stack or not - * - * @throws \InvalidArgumentException if an unsupported handler is set - */ - public function __construct(array $handlers, bool $bubble = true) - { - foreach ($handlers as $handler) { - if (!$handler instanceof HandlerInterface) { - throw new \InvalidArgumentException('The first argument of the GroupHandler must be an array of HandlerInterface instances.'); - } - } - - $this->handlers = $handlers; - $this->bubble = $bubble; - } - - /** - * @inheritDoc - */ - public function isHandling(LogRecord $record): bool - { - foreach ($this->handlers as $handler) { - if ($handler->isHandling($record)) { - return true; - } - } - - return false; - } - - /** - * @inheritDoc - */ - public function handle(LogRecord $record): bool - { - if (\count($this->processors) > 0) { - $record = $this->processRecord($record); - } - - foreach ($this->handlers as $handler) { - $handler->handle(clone $record); - } - - return false === $this->bubble; - } - - /** - * @inheritDoc - */ - public function handleBatch(array $records): void - { - if (\count($this->processors) > 0) { - $processed = []; - foreach ($records as $record) { - $processed[] = $this->processRecord($record); - } - $records = $processed; - } - - foreach ($this->handlers as $handler) { - $handler->handleBatch(array_map(fn ($record) => clone $record, $records)); - } - } - - public function reset(): void - { - $this->resetProcessors(); - - foreach ($this->handlers as $handler) { - if ($handler instanceof ResettableInterface) { - $handler->reset(); - } - } - } - - public function close(): void - { - parent::close(); - - foreach ($this->handlers as $handler) { - $handler->close(); - } - } - - /** - * @inheritDoc - */ - public function setFormatter(FormatterInterface $formatter): HandlerInterface - { - foreach ($this->handlers as $handler) { - if ($handler instanceof FormattableHandlerInterface) { - $handler->setFormatter($formatter); - } - } - - return $this; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/Handler.php b/vendor/monolog/monolog/src/Monolog/Handler/Handler.php deleted file mode 100644 index e89f969..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/Handler.php +++ /dev/null @@ -1,62 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -/** - * Base Handler class providing basic close() support as well as handleBatch - * - * @author Jordi Boggiano - */ -abstract class Handler implements HandlerInterface -{ - /** - * @inheritDoc - */ - public function handleBatch(array $records): void - { - foreach ($records as $record) { - $this->handle($record); - } - } - - /** - * @inheritDoc - */ - public function close(): void - { - } - - public function __destruct() - { - try { - $this->close(); - } catch (\Throwable $e) { - // do nothing - } - } - - public function __sleep() - { - $this->close(); - - $reflClass = new \ReflectionClass($this); - - $keys = []; - foreach ($reflClass->getProperties() as $reflProp) { - if (!$reflProp->isStatic()) { - $keys[] = $reflProp->getName(); - } - } - - return $keys; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/HandlerInterface.php b/vendor/monolog/monolog/src/Monolog/Handler/HandlerInterface.php deleted file mode 100644 index 93306d9..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/HandlerInterface.php +++ /dev/null @@ -1,76 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\LogRecord; - -/** - * Interface that all Monolog Handlers must implement - * - * @author Jordi Boggiano - */ -interface HandlerInterface -{ - /** - * Checks whether the given record will be handled by this handler. - * - * This is mostly done for performance reasons, to avoid calling processors for nothing. - * - * Handlers should still check the record levels within handle(), returning false in isHandling() - * is no guarantee that handle() will not be called, and isHandling() might not be called - * for a given record. - * - * @param LogRecord $record Partial log record having only a level initialized - */ - public function isHandling(LogRecord $record): bool; - - /** - * Handles a record. - * - * All records may be passed to this method, and the handler should discard - * those that it does not want to handle. - * - * The return value of this function controls the bubbling process of the handler stack. - * Unless the bubbling is interrupted (by returning true), the Logger class will keep on - * calling further handlers in the stack with a given log record. - * - * @param LogRecord $record The record to handle - * @return bool true means that this handler handled the record, and that bubbling is not permitted. - * false means the record was either not processed or that this handler allows bubbling. - */ - public function handle(LogRecord $record): bool; - - /** - * Handles a set of records at once. - * - * @param array $records The records to handle - */ - public function handleBatch(array $records): void; - - /** - * Closes the handler. - * - * Ends a log cycle and frees all resources used by the handler. - * - * Closing a Handler means flushing all buffers and freeing any open resources/handles. - * - * Implementations have to be idempotent (i.e. it should be possible to call close several times without breakage) - * and ideally handlers should be able to reopen themselves on handle() after they have been closed. - * - * This is useful at the end of a request and will be called automatically when the object - * is destroyed if you extend Monolog\Handler\Handler. - * - * If you are thinking of calling this method yourself, most likely you should be - * calling ResettableInterface::reset instead. Have a look. - */ - public function close(): void; -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/HandlerWrapper.php b/vendor/monolog/monolog/src/Monolog/Handler/HandlerWrapper.php deleted file mode 100644 index 541ec25..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/HandlerWrapper.php +++ /dev/null @@ -1,134 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\ResettableInterface; -use Monolog\Formatter\FormatterInterface; -use Monolog\LogRecord; - -/** - * This simple wrapper class can be used to extend handlers functionality. - * - * Example: A custom filtering that can be applied to any handler. - * - * Inherit from this class and override handle() like this: - * - * public function handle(LogRecord $record) - * { - * if ($record meets certain conditions) { - * return false; - * } - * return $this->handler->handle($record); - * } - * - * @author Alexey Karapetov - */ -class HandlerWrapper implements HandlerInterface, ProcessableHandlerInterface, FormattableHandlerInterface, ResettableInterface -{ - protected HandlerInterface $handler; - - public function __construct(HandlerInterface $handler) - { - $this->handler = $handler; - } - - /** - * @inheritDoc - */ - public function isHandling(LogRecord $record): bool - { - return $this->handler->isHandling($record); - } - - /** - * @inheritDoc - */ - public function handle(LogRecord $record): bool - { - return $this->handler->handle($record); - } - - /** - * @inheritDoc - */ - public function handleBatch(array $records): void - { - $this->handler->handleBatch($records); - } - - /** - * @inheritDoc - */ - public function close(): void - { - $this->handler->close(); - } - - /** - * @inheritDoc - */ - public function pushProcessor(callable $callback): HandlerInterface - { - if ($this->handler instanceof ProcessableHandlerInterface) { - $this->handler->pushProcessor($callback); - - return $this; - } - - throw new \LogicException('The wrapped handler does not implement ' . ProcessableHandlerInterface::class); - } - - /** - * @inheritDoc - */ - public function popProcessor(): callable - { - if ($this->handler instanceof ProcessableHandlerInterface) { - return $this->handler->popProcessor(); - } - - throw new \LogicException('The wrapped handler does not implement ' . ProcessableHandlerInterface::class); - } - - /** - * @inheritDoc - */ - public function setFormatter(FormatterInterface $formatter): HandlerInterface - { - if ($this->handler instanceof FormattableHandlerInterface) { - $this->handler->setFormatter($formatter); - - return $this; - } - - throw new \LogicException('The wrapped handler does not implement ' . FormattableHandlerInterface::class); - } - - /** - * @inheritDoc - */ - public function getFormatter(): FormatterInterface - { - if ($this->handler instanceof FormattableHandlerInterface) { - return $this->handler->getFormatter(); - } - - throw new \LogicException('The wrapped handler does not implement ' . FormattableHandlerInterface::class); - } - - public function reset(): void - { - if ($this->handler instanceof ResettableInterface) { - $this->handler->reset(); - } - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php deleted file mode 100644 index b9c7ba8..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php +++ /dev/null @@ -1,75 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Level; -use Monolog\Utils; -use Monolog\LogRecord; - -/** - * IFTTTHandler uses cURL to trigger IFTTT Maker actions - * - * Register a secret key and trigger/event name at https://ifttt.com/maker - * - * value1 will be the channel from monolog's Logger constructor, - * value2 will be the level name (ERROR, WARNING, ..) - * value3 will be the log record's message - * - * @author Nehal Patel - */ -class IFTTTHandler extends AbstractProcessingHandler -{ - private string $eventName; - private string $secretKey; - - /** - * @param string $eventName The name of the IFTTT Maker event that should be triggered - * @param string $secretKey A valid IFTTT secret key - * - * @throws MissingExtensionException If the curl extension is missing - */ - public function __construct(string $eventName, string $secretKey, int|string|Level $level = Level::Error, bool $bubble = true) - { - if (!\extension_loaded('curl')) { - throw new MissingExtensionException('The curl extension is needed to use the IFTTTHandler'); - } - - $this->eventName = $eventName; - $this->secretKey = $secretKey; - - parent::__construct($level, $bubble); - } - - /** - * @inheritDoc - */ - public function write(LogRecord $record): void - { - $postData = [ - "value1" => $record->channel, - "value2" => $record["level_name"], - "value3" => $record->message, - ]; - $postString = Utils::jsonEncode($postData); - - $ch = curl_init(); - curl_setopt($ch, CURLOPT_URL, "https://maker.ifttt.com/trigger/" . $this->eventName . "/with/key/" . $this->secretKey); - curl_setopt($ch, CURLOPT_POST, true); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); - curl_setopt($ch, CURLOPT_POSTFIELDS, $postString); - curl_setopt($ch, CURLOPT_HTTPHEADER, [ - "Content-Type: application/json", - ]); - - Curl\Util::execute($ch); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/InsightOpsHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/InsightOpsHandler.php deleted file mode 100644 index 4b558bd..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/InsightOpsHandler.php +++ /dev/null @@ -1,74 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Level; -use Monolog\LogRecord; - -/** - * Inspired on LogEntriesHandler. - * - * @author Robert Kaufmann III - * @author Gabriel Machado - */ -class InsightOpsHandler extends SocketHandler -{ - protected string $logToken; - - /** - * @param string $token Log token supplied by InsightOps - * @param string $region Region where InsightOps account is hosted. Could be 'us' or 'eu'. - * @param bool $useSSL Whether or not SSL encryption should be used - * - * @throws MissingExtensionException If SSL encryption is set to true and OpenSSL is missing - */ - public function __construct( - string $token, - string $region = 'us', - bool $useSSL = true, - $level = Level::Debug, - bool $bubble = true, - bool $persistent = false, - float $timeout = 0.0, - float $writingTimeout = 10.0, - ?float $connectionTimeout = null, - ?int $chunkSize = null - ) { - if ($useSSL && !\extension_loaded('openssl')) { - throw new MissingExtensionException('The OpenSSL PHP plugin is required to use SSL encrypted connection for InsightOpsHandler'); - } - - $endpoint = $useSSL - ? 'ssl://' . $region . '.data.logs.insight.rapid7.com:443' - : $region . '.data.logs.insight.rapid7.com:80'; - - parent::__construct( - $endpoint, - $level, - $bubble, - $persistent, - $timeout, - $writingTimeout, - $connectionTimeout, - $chunkSize - ); - $this->logToken = $token; - } - - /** - * @inheritDoc - */ - protected function generateDataStream(LogRecord $record): string - { - return $this->logToken . ' ' . $record->formatted; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/LogEntriesHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/LogEntriesHandler.php deleted file mode 100644 index 8c12898..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/LogEntriesHandler.php +++ /dev/null @@ -1,68 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Level; -use Monolog\LogRecord; - -/** - * @author Robert Kaufmann III - */ -class LogEntriesHandler extends SocketHandler -{ - protected string $logToken; - - /** - * @param string $token Log token supplied by LogEntries - * @param bool $useSSL Whether or not SSL encryption should be used. - * @param string $host Custom hostname to send the data to if needed - * - * @throws MissingExtensionException If SSL encryption is set to true and OpenSSL is missing - */ - public function __construct( - string $token, - bool $useSSL = true, - $level = Level::Debug, - bool $bubble = true, - string $host = 'data.logentries.com', - bool $persistent = false, - float $timeout = 0.0, - float $writingTimeout = 10.0, - ?float $connectionTimeout = null, - ?int $chunkSize = null - ) { - if ($useSSL && !\extension_loaded('openssl')) { - throw new MissingExtensionException('The OpenSSL PHP plugin is required to use SSL encrypted connection for LogEntriesHandler'); - } - - $endpoint = $useSSL ? 'ssl://' . $host . ':443' : $host . ':80'; - parent::__construct( - $endpoint, - $level, - $bubble, - $persistent, - $timeout, - $writingTimeout, - $connectionTimeout, - $chunkSize - ); - $this->logToken = $token; - } - - /** - * @inheritDoc - */ - protected function generateDataStream(LogRecord $record): string - { - return $this->logToken . ' ' . $record->formatted; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/LogglyHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/LogglyHandler.php deleted file mode 100644 index ff298c6..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/LogglyHandler.php +++ /dev/null @@ -1,156 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Level; -use Monolog\Formatter\FormatterInterface; -use Monolog\Formatter\LogglyFormatter; -use CurlHandle; -use Monolog\LogRecord; - -/** - * Sends errors to Loggly. - * - * @author Przemek Sobstel - * @author Adam Pancutt - * @author Gregory Barchard - */ -class LogglyHandler extends AbstractProcessingHandler -{ - protected const HOST = 'logs-01.loggly.com'; - protected const ENDPOINT_SINGLE = 'inputs'; - protected const ENDPOINT_BATCH = 'bulk'; - - /** - * Caches the curl handlers for every given endpoint. - * - * @var CurlHandle[] - */ - protected array $curlHandlers = []; - - protected string $token; - - /** @var string[] */ - protected array $tag = []; - - /** - * @param string $token API token supplied by Loggly - * - * @throws MissingExtensionException If the curl extension is missing - */ - public function __construct(string $token, int|string|Level $level = Level::Debug, bool $bubble = true) - { - if (!\extension_loaded('curl')) { - throw new MissingExtensionException('The curl extension is needed to use the LogglyHandler'); - } - - $this->token = $token; - - parent::__construct($level, $bubble); - } - - /** - * Loads and returns the shared curl handler for the given endpoint. - */ - protected function getCurlHandler(string $endpoint): CurlHandle - { - if (!\array_key_exists($endpoint, $this->curlHandlers)) { - $this->curlHandlers[$endpoint] = $this->loadCurlHandle($endpoint); - } - - return $this->curlHandlers[$endpoint]; - } - - /** - * Starts a fresh curl session for the given endpoint and returns its handler. - */ - private function loadCurlHandle(string $endpoint): CurlHandle - { - $url = sprintf("https://%s/%s/%s/", static::HOST, $endpoint, $this->token); - - $ch = curl_init(); - - curl_setopt($ch, CURLOPT_URL, $url); - curl_setopt($ch, CURLOPT_POST, true); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); - - return $ch; - } - - /** - * @param string[]|string $tag - * @return $this - */ - public function setTag(string|array $tag): self - { - if ('' === $tag || [] === $tag) { - $this->tag = []; - } else { - $this->tag = \is_array($tag) ? $tag : [$tag]; - } - - return $this; - } - - /** - * @param string[]|string $tag - * @return $this - */ - public function addTag(string|array $tag): self - { - if ('' !== $tag) { - $tag = \is_array($tag) ? $tag : [$tag]; - $this->tag = array_unique(array_merge($this->tag, $tag)); - } - - return $this; - } - - protected function write(LogRecord $record): void - { - $this->send($record->formatted, static::ENDPOINT_SINGLE); - } - - public function handleBatch(array $records): void - { - $level = $this->level; - - $records = array_filter($records, function ($record) use ($level) { - return ($record->level->value >= $level->value); - }); - - if (\count($records) > 0) { - $this->send($this->getFormatter()->formatBatch($records), static::ENDPOINT_BATCH); - } - } - - protected function send(string $data, string $endpoint): void - { - $ch = $this->getCurlHandler($endpoint); - - $headers = ['Content-Type: application/json']; - - if (\count($this->tag) > 0) { - $headers[] = 'X-LOGGLY-TAG: '.implode(',', $this->tag); - } - - curl_setopt($ch, CURLOPT_POSTFIELDS, $data); - curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); - - Curl\Util::execute($ch, 5, false); - } - - protected function getDefaultFormatter(): FormatterInterface - { - return new LogglyFormatter(); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/LogmaticHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/LogmaticHandler.php deleted file mode 100644 index 6aa1b31..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/LogmaticHandler.php +++ /dev/null @@ -1,98 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Level; -use Monolog\Formatter\FormatterInterface; -use Monolog\Formatter\LogmaticFormatter; -use Monolog\LogRecord; - -/** - * @author Julien Breux - */ -class LogmaticHandler extends SocketHandler -{ - private string $logToken; - - private string $hostname; - - private string $appName; - - /** - * @param string $token Log token supplied by Logmatic. - * @param string $hostname Host name supplied by Logmatic. - * @param string $appName Application name supplied by Logmatic. - * @param bool $useSSL Whether or not SSL encryption should be used. - * - * @throws MissingExtensionException If SSL encryption is set to true and OpenSSL is missing - */ - public function __construct( - string $token, - string $hostname = '', - string $appName = '', - bool $useSSL = true, - $level = Level::Debug, - bool $bubble = true, - bool $persistent = false, - float $timeout = 0.0, - float $writingTimeout = 10.0, - ?float $connectionTimeout = null, - ?int $chunkSize = null - ) { - if ($useSSL && !\extension_loaded('openssl')) { - throw new MissingExtensionException('The OpenSSL PHP extension is required to use SSL encrypted connection for LogmaticHandler'); - } - - $endpoint = $useSSL ? 'ssl://api.logmatic.io:10515' : 'api.logmatic.io:10514'; - $endpoint .= '/v1/'; - - parent::__construct( - $endpoint, - $level, - $bubble, - $persistent, - $timeout, - $writingTimeout, - $connectionTimeout, - $chunkSize - ); - - $this->logToken = $token; - $this->hostname = $hostname; - $this->appName = $appName; - } - - /** - * @inheritDoc - */ - protected function generateDataStream(LogRecord $record): string - { - return $this->logToken . ' ' . $record->formatted; - } - - /** - * @inheritDoc - */ - protected function getDefaultFormatter(): FormatterInterface - { - $formatter = new LogmaticFormatter(); - - if ($this->hostname !== '') { - $formatter->setHostname($this->hostname); - } - if ($this->appName !== '') { - $formatter->setAppName($this->appName); - } - - return $formatter; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/MailHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/MailHandler.php deleted file mode 100644 index b6c8227..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/MailHandler.php +++ /dev/null @@ -1,91 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Formatter\FormatterInterface; -use Monolog\Formatter\HtmlFormatter; -use Monolog\LogRecord; - -/** - * Base class for all mail handlers - * - * @author Gyula Sallai - */ -abstract class MailHandler extends AbstractProcessingHandler -{ - /** - * @inheritDoc - */ - public function handleBatch(array $records): void - { - $messages = []; - - foreach ($records as $record) { - if ($record->level->isLowerThan($this->level)) { - continue; - } - - $message = $this->processRecord($record); - $messages[] = $message; - } - - if (\count($messages) > 0) { - $this->send((string) $this->getFormatter()->formatBatch($messages), $messages); - } - } - - /** - * Send a mail with the given content - * - * @param string $content formatted email body to be sent - * @param array $records the array of log records that formed this content - * - * @phpstan-param non-empty-array $records - */ - abstract protected function send(string $content, array $records): void; - - /** - * @inheritDoc - */ - protected function write(LogRecord $record): void - { - $this->send((string) $record->formatted, [$record]); - } - - /** - * @phpstan-param non-empty-array $records - */ - protected function getHighestRecord(array $records): LogRecord - { - $highestRecord = null; - foreach ($records as $record) { - if ($highestRecord === null || $record->level->isHigherThan($highestRecord->level)) { - $highestRecord = $record; - } - } - - return $highestRecord; - } - - protected function isHtmlBody(string $body): bool - { - return ($body[0] ?? null) === '<'; - } - - /** - * Gets the default formatter. - */ - protected function getDefaultFormatter(): FormatterInterface - { - return new HtmlFormatter(); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/MandrillHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/MandrillHandler.php deleted file mode 100644 index 477ac34..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/MandrillHandler.php +++ /dev/null @@ -1,83 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Level; -use Swift; -use Swift_Message; - -/** - * MandrillHandler uses cURL to send the emails to the Mandrill API - * - * @author Adam Nicholson - */ -class MandrillHandler extends MailHandler -{ - protected Swift_Message $message; - protected string $apiKey; - - /** - * @phpstan-param (Swift_Message|callable(): Swift_Message) $message - * - * @param string $apiKey A valid Mandrill API key - * @param callable|Swift_Message $message An example message for real messages, only the body will be replaced - * - * @throws \InvalidArgumentException if not a Swift Message is set - */ - public function __construct(string $apiKey, callable|Swift_Message $message, int|string|Level $level = Level::Error, bool $bubble = true) - { - parent::__construct($level, $bubble); - - if (!$message instanceof Swift_Message) { - $message = $message(); - } - if (!$message instanceof Swift_Message) { - throw new \InvalidArgumentException('You must provide either a Swift_Message instance or a callable returning it'); - } - $this->message = $message; - $this->apiKey = $apiKey; - } - - /** - * @inheritDoc - */ - protected function send(string $content, array $records): void - { - $mime = 'text/plain'; - if ($this->isHtmlBody($content)) { - $mime = 'text/html'; - } - - $message = clone $this->message; - $message->setBody($content, $mime); - /** @phpstan-ignore-next-line */ - if (version_compare(Swift::VERSION, '6.0.0', '>=')) { - $message->setDate(new \DateTimeImmutable()); - } else { - /** @phpstan-ignore-next-line */ - $message->setDate(time()); - } - - $ch = curl_init(); - - curl_setopt($ch, CURLOPT_URL, 'https://mandrillapp.com/api/1.0/messages/send-raw.json'); - curl_setopt($ch, CURLOPT_POST, true); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); - curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([ - 'key' => $this->apiKey, - 'raw_message' => (string) $message, - 'async' => false, - ])); - - Curl\Util::execute($ch); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/MissingExtensionException.php b/vendor/monolog/monolog/src/Monolog/Handler/MissingExtensionException.php deleted file mode 100644 index 3965aee..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/MissingExtensionException.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -/** - * Exception can be thrown if an extension for a handler is missing - * - * @author Christian Bergau - */ -class MissingExtensionException extends \Exception -{ -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php deleted file mode 100644 index 33ab68c..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php +++ /dev/null @@ -1,82 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use MongoDB\Driver\BulkWrite; -use MongoDB\Driver\Manager; -use MongoDB\Client; -use Monolog\Level; -use Monolog\Formatter\FormatterInterface; -use Monolog\Formatter\MongoDBFormatter; -use Monolog\LogRecord; - -/** - * Logs to a MongoDB database. - * - * Usage example: - * - * $log = new \Monolog\Logger('application'); - * $client = new \MongoDB\Client('mongodb://localhost:27017'); - * $mongodb = new \Monolog\Handler\MongoDBHandler($client, 'logs', 'prod'); - * $log->pushHandler($mongodb); - * - * The above examples uses the MongoDB PHP library's client class; however, the - * MongoDB\Driver\Manager class from ext-mongodb is also supported. - */ -class MongoDBHandler extends AbstractProcessingHandler -{ - private \MongoDB\Collection $collection; - - private Client|Manager $manager; - - private string|null $namespace = null; - - /** - * Constructor. - * - * @param Client|Manager $mongodb MongoDB library or driver client - * @param string $database Database name - * @param string $collection Collection name - */ - public function __construct(Client|Manager $mongodb, string $database, string $collection, int|string|Level $level = Level::Debug, bool $bubble = true) - { - if ($mongodb instanceof Client) { - $this->collection = $mongodb->selectCollection($database, $collection); - } else { - $this->manager = $mongodb; - $this->namespace = $database . '.' . $collection; - } - - parent::__construct($level, $bubble); - } - - protected function write(LogRecord $record): void - { - if (isset($this->collection)) { - $this->collection->insertOne($record->formatted); - } - - if (isset($this->manager, $this->namespace)) { - $bulk = new BulkWrite; - $bulk->insert($record->formatted); - $this->manager->executeBulkWrite($this->namespace, $bulk); - } - } - - /** - * @inheritDoc - */ - protected function getDefaultFormatter(): FormatterInterface - { - return new MongoDBFormatter; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php deleted file mode 100644 index c68b1dd..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php +++ /dev/null @@ -1,173 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Level; -use Monolog\Formatter\LineFormatter; - -/** - * NativeMailerHandler uses the mail() function to send the emails - * - * @author Christophe Coevoet - * @author Mark Garrett - */ -class NativeMailerHandler extends MailHandler -{ - /** - * The email addresses to which the message will be sent - * @var string[] - */ - protected array $to; - - /** - * The subject of the email - */ - protected string $subject; - - /** - * Optional headers for the message - * @var string[] - */ - protected array $headers = []; - - /** - * Optional parameters for the message - * @var string[] - */ - protected array $parameters = []; - - /** - * The wordwrap length for the message - */ - protected int $maxColumnWidth; - - /** - * The Content-type for the message - */ - protected string|null $contentType = null; - - /** - * The encoding for the message - */ - protected string $encoding = 'utf-8'; - - /** - * @param string|string[] $to The receiver of the mail - * @param string $subject The subject of the mail - * @param string $from The sender of the mail - * @param int $maxColumnWidth The maximum column width that the message lines will have - */ - public function __construct(string|array $to, string $subject, string $from, int|string|Level $level = Level::Error, bool $bubble = true, int $maxColumnWidth = 70) - { - parent::__construct($level, $bubble); - $this->to = (array) $to; - $this->subject = $subject; - $this->addHeader(sprintf('From: %s', $from)); - $this->maxColumnWidth = $maxColumnWidth; - } - - /** - * Add headers to the message - * - * @param string|string[] $headers Custom added headers - * @return $this - */ - public function addHeader($headers): self - { - foreach ((array) $headers as $header) { - if (strpos($header, "\n") !== false || strpos($header, "\r") !== false) { - throw new \InvalidArgumentException('Headers can not contain newline characters for security reasons'); - } - $this->headers[] = $header; - } - - return $this; - } - - /** - * Add parameters to the message - * - * @param string|string[] $parameters Custom added parameters - * @return $this - */ - public function addParameter($parameters): self - { - $this->parameters = array_merge($this->parameters, (array) $parameters); - - return $this; - } - - /** - * @inheritDoc - */ - protected function send(string $content, array $records): void - { - $contentType = $this->getContentType() ?? ($this->isHtmlBody($content) ? 'text/html' : 'text/plain'); - - if ($contentType !== 'text/html') { - $content = wordwrap($content, $this->maxColumnWidth); - } - - $headers = ltrim(implode("\r\n", $this->headers) . "\r\n", "\r\n"); - $headers .= 'Content-type: ' . $contentType . '; charset=' . $this->getEncoding() . "\r\n"; - if ($contentType === 'text/html' && false === strpos($headers, 'MIME-Version:')) { - $headers .= 'MIME-Version: 1.0' . "\r\n"; - } - - $subjectFormatter = new LineFormatter($this->subject); - $subject = $subjectFormatter->format($this->getHighestRecord($records)); - - $parameters = implode(' ', $this->parameters); - foreach ($this->to as $to) { - mail($to, $subject, $content, $headers, $parameters); - } - } - - public function getContentType(): ?string - { - return $this->contentType; - } - - public function getEncoding(): string - { - return $this->encoding; - } - - /** - * @param string $contentType The content type of the email - Defaults to text/plain. Use text/html for HTML messages. - * @return $this - */ - public function setContentType(string $contentType): self - { - if (strpos($contentType, "\n") !== false || strpos($contentType, "\r") !== false) { - throw new \InvalidArgumentException('The content type can not contain newline characters to prevent email header injection'); - } - - $this->contentType = $contentType; - - return $this; - } - - /** - * @return $this - */ - public function setEncoding(string $encoding): self - { - if (strpos($encoding, "\n") !== false || strpos($encoding, "\r") !== false) { - throw new \InvalidArgumentException('The encoding can not contain newline characters to prevent email header injection'); - } - - $this->encoding = $encoding; - - return $this; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php deleted file mode 100644 index 4f28dd4..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php +++ /dev/null @@ -1,180 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Level; -use Monolog\Utils; -use Monolog\Formatter\NormalizerFormatter; -use Monolog\Formatter\FormatterInterface; -use Monolog\LogRecord; - -/** - * Class to record a log on a NewRelic application. - * Enabling New Relic High Security mode may prevent capture of useful information. - * - * This handler requires a NormalizerFormatter to function and expects an array in $record->formatted - * - * @see https://docs.newrelic.com/docs/agents/php-agent - * @see https://docs.newrelic.com/docs/accounts-partnerships/accounts/security/high-security - */ -class NewRelicHandler extends AbstractProcessingHandler -{ - /** - * @inheritDoc - */ - public function __construct( - int|string|Level $level = Level::Error, - bool $bubble = true, - - /** - * Name of the New Relic application that will receive logs from this handler. - */ - protected string|null $appName = null, - - /** - * Some context and extra data is passed into the handler as arrays of values. Do we send them as is - * (useful if we are using the API), or explode them for display on the NewRelic RPM website? - */ - protected bool $explodeArrays = false, - - /** - * Name of the current transaction - */ - protected string|null $transactionName = null - ) { - parent::__construct($level, $bubble); - } - - /** - * @inheritDoc - */ - protected function write(LogRecord $record): void - { - if (!$this->isNewRelicEnabled()) { - throw new MissingExtensionException('The newrelic PHP extension is required to use the NewRelicHandler'); - } - - if (null !== ($appName = $this->getAppName($record->context))) { - $this->setNewRelicAppName($appName); - } - - if (null !== ($transactionName = $this->getTransactionName($record->context))) { - $this->setNewRelicTransactionName($transactionName); - unset($record->formatted['context']['transaction_name']); - } - - if (isset($record->context['exception']) && $record->context['exception'] instanceof \Throwable) { - newrelic_notice_error($record->message, $record->context['exception']); - unset($record->formatted['context']['exception']); - } else { - newrelic_notice_error($record->message); - } - - if (isset($record->formatted['context']) && \is_array($record->formatted['context'])) { - foreach ($record->formatted['context'] as $key => $parameter) { - if (\is_array($parameter) && $this->explodeArrays) { - foreach ($parameter as $paramKey => $paramValue) { - $this->setNewRelicParameter('context_' . $key . '_' . $paramKey, $paramValue); - } - } else { - $this->setNewRelicParameter('context_' . $key, $parameter); - } - } - } - - if (isset($record->formatted['extra']) && \is_array($record->formatted['extra'])) { - foreach ($record->formatted['extra'] as $key => $parameter) { - if (\is_array($parameter) && $this->explodeArrays) { - foreach ($parameter as $paramKey => $paramValue) { - $this->setNewRelicParameter('extra_' . $key . '_' . $paramKey, $paramValue); - } - } else { - $this->setNewRelicParameter('extra_' . $key, $parameter); - } - } - } - } - - /** - * Checks whether the NewRelic extension is enabled in the system. - */ - protected function isNewRelicEnabled(): bool - { - return \extension_loaded('newrelic'); - } - - /** - * Returns the appname where this log should be sent. Each log can override the default appname, set in this - * handler's constructor, by providing the appname in it's context. - * - * @param mixed[] $context - */ - protected function getAppName(array $context): ?string - { - if (isset($context['appname'])) { - return $context['appname']; - } - - return $this->appName; - } - - /** - * Returns the name of the current transaction. Each log can override the default transaction name, set in this - * handler's constructor, by providing the transaction_name in it's context - * - * @param mixed[] $context - */ - protected function getTransactionName(array $context): ?string - { - if (isset($context['transaction_name'])) { - return $context['transaction_name']; - } - - return $this->transactionName; - } - - /** - * Sets the NewRelic application that should receive this log. - */ - protected function setNewRelicAppName(string $appName): void - { - newrelic_set_appname($appName); - } - - /** - * Overwrites the name of the current transaction - */ - protected function setNewRelicTransactionName(string $transactionName): void - { - newrelic_name_transaction($transactionName); - } - - /** - * @param mixed $value - */ - protected function setNewRelicParameter(string $key, $value): void - { - if (null === $value || \is_scalar($value)) { - newrelic_add_custom_parameter($key, $value); - } else { - newrelic_add_custom_parameter($key, Utils::jsonEncode($value, null, true)); - } - } - - /** - * @inheritDoc - */ - protected function getDefaultFormatter(): FormatterInterface - { - return new NormalizerFormatter(); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/NoopHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/NoopHandler.php deleted file mode 100644 index d9fea18..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/NoopHandler.php +++ /dev/null @@ -1,42 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\LogRecord; - -/** - * No-op - * - * This handler handles anything, but does nothing, and does not stop bubbling to the rest of the stack. - * This can be used for testing, or to disable a handler when overriding a configuration without - * influencing the rest of the stack. - * - * @author Roel Harbers - */ -class NoopHandler extends Handler -{ - /** - * @inheritDoc - */ - public function isHandling(LogRecord $record): bool - { - return true; - } - - /** - * @inheritDoc - */ - public function handle(LogRecord $record): bool - { - return false; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/NullHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/NullHandler.php deleted file mode 100644 index 1aa84e4..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/NullHandler.php +++ /dev/null @@ -1,56 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Level; -use Psr\Log\LogLevel; -use Monolog\Logger; -use Monolog\LogRecord; - -/** - * Blackhole - * - * Any record it can handle will be thrown away. This can be used - * to put on top of an existing stack to override it temporarily. - * - * @author Jordi Boggiano - */ -class NullHandler extends Handler -{ - private Level $level; - - /** - * @param string|int|Level $level The minimum logging level at which this handler will be triggered - * - * @phpstan-param value-of|value-of|Level|LogLevel::* $level - */ - public function __construct(string|int|Level $level = Level::Debug) - { - $this->level = Logger::toMonologLevel($level); - } - - /** - * @inheritDoc - */ - public function isHandling(LogRecord $record): bool - { - return $record->level->value >= $this->level->value; - } - - /** - * @inheritDoc - */ - public function handle(LogRecord $record): bool - { - return $record->level->value >= $this->level->value; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/OverflowHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/OverflowHandler.php deleted file mode 100644 index adc0eb1..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/OverflowHandler.php +++ /dev/null @@ -1,139 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Level; -use Monolog\Formatter\FormatterInterface; -use Monolog\LogRecord; - -/** - * Handler to only pass log messages when a certain threshold of number of messages is reached. - * - * This can be useful in cases of processing a batch of data, but you're for example only interested - * in case it fails catastrophically instead of a warning for 1 or 2 events. Worse things can happen, right? - * - * Usage example: - * - * ``` - * $log = new Logger('application'); - * $handler = new SomeHandler(...) - * - * // Pass all warnings to the handler when more than 10 & all error messages when more then 5 - * $overflow = new OverflowHandler($handler, [Level::Warning->value => 10, Level::Error->value => 5]); - * - * $log->pushHandler($overflow); - *``` - * - * @author Kris Buist - */ -class OverflowHandler extends AbstractHandler implements FormattableHandlerInterface -{ - private HandlerInterface $handler; - - /** @var array */ - private array $thresholdMap = []; - - /** - * Buffer of all messages passed to the handler before the threshold was reached - * - * @var mixed[][] - */ - private array $buffer = []; - - /** - * @param array $thresholdMap Dictionary of log level value => threshold - */ - public function __construct( - HandlerInterface $handler, - array $thresholdMap = [], - $level = Level::Debug, - bool $bubble = true - ) { - $this->handler = $handler; - foreach ($thresholdMap as $thresholdLevel => $threshold) { - $this->thresholdMap[$thresholdLevel] = $threshold; - } - parent::__construct($level, $bubble); - } - - /** - * Handles a record. - * - * All records may be passed to this method, and the handler should discard - * those that it does not want to handle. - * - * The return value of this function controls the bubbling process of the handler stack. - * Unless the bubbling is interrupted (by returning true), the Logger class will keep on - * calling further handlers in the stack with a given log record. - * - * @inheritDoc - */ - public function handle(LogRecord $record): bool - { - if ($record->level->isLowerThan($this->level)) { - return false; - } - - $level = $record->level->value; - - if (!isset($this->thresholdMap[$level])) { - $this->thresholdMap[$level] = 0; - } - - if ($this->thresholdMap[$level] > 0) { - // The overflow threshold is not yet reached, so we're buffering the record and lowering the threshold by 1 - $this->thresholdMap[$level]--; - $this->buffer[$level][] = $record; - - return false === $this->bubble; - } - - if ($this->thresholdMap[$level] === 0) { - // This current message is breaking the threshold. Flush the buffer and continue handling the current record - foreach ($this->buffer[$level] ?? [] as $buffered) { - $this->handler->handle($buffered); - } - $this->thresholdMap[$level]--; - unset($this->buffer[$level]); - } - - $this->handler->handle($record); - - return false === $this->bubble; - } - - /** - * @inheritDoc - */ - public function setFormatter(FormatterInterface $formatter): HandlerInterface - { - if ($this->handler instanceof FormattableHandlerInterface) { - $this->handler->setFormatter($formatter); - - return $this; - } - - throw new \UnexpectedValueException('The nested handler of type '.\get_class($this->handler).' does not support formatters.'); - } - - /** - * @inheritDoc - */ - public function getFormatter(): FormatterInterface - { - if ($this->handler instanceof FormattableHandlerInterface) { - return $this->handler->getFormatter(); - } - - throw new \UnexpectedValueException('The nested handler of type '.\get_class($this->handler).' does not support formatters.'); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php deleted file mode 100644 index b37266d..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php +++ /dev/null @@ -1,303 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Formatter\LineFormatter; -use Monolog\Formatter\FormatterInterface; -use Monolog\Level; -use Monolog\Utils; -use PhpConsole\Connector; -use PhpConsole\Handler as VendorPhpConsoleHandler; -use PhpConsole\Helper; -use Monolog\LogRecord; -use PhpConsole\Storage; - -/** - * Monolog handler for Google Chrome extension "PHP Console" - * - * Display PHP error/debug log messages in Google Chrome console and notification popups, executes PHP code remotely - * - * Usage: - * 1. Install Google Chrome extension [now dead and removed from the chrome store] - * 2. See overview https://github.com/barbushin/php-console#overview - * 3. Install PHP Console library https://github.com/barbushin/php-console#installation - * 4. Example (result will looks like http://i.hizliresim.com/vg3Pz4.png) - * - * $logger = new \Monolog\Logger('all', array(new \Monolog\Handler\PHPConsoleHandler())); - * \Monolog\ErrorHandler::register($logger); - * echo $undefinedVar; - * $logger->debug('SELECT * FROM users', array('db', 'time' => 0.012)); - * PC::debug($_SERVER); // PHP Console debugger for any type of vars - * - * @author Sergey Barbushin https://www.linkedin.com/in/barbushin - * @phpstan-type Options array{ - * enabled: bool, - * classesPartialsTraceIgnore: string[], - * debugTagsKeysInContext: array, - * useOwnErrorsHandler: bool, - * useOwnExceptionsHandler: bool, - * sourcesBasePath: string|null, - * registerHelper: bool, - * serverEncoding: string|null, - * headersLimit: int|null, - * password: string|null, - * enableSslOnlyMode: bool, - * ipMasks: string[], - * enableEvalListener: bool, - * dumperDetectCallbacks: bool, - * dumperLevelLimit: int, - * dumperItemsCountLimit: int, - * dumperItemSizeLimit: int, - * dumperDumpSizeLimit: int, - * detectDumpTraceAndSource: bool, - * dataStorage: Storage|null - * } - * @phpstan-type InputOptions array{ - * enabled?: bool, - * classesPartialsTraceIgnore?: string[], - * debugTagsKeysInContext?: array, - * useOwnErrorsHandler?: bool, - * useOwnExceptionsHandler?: bool, - * sourcesBasePath?: string|null, - * registerHelper?: bool, - * serverEncoding?: string|null, - * headersLimit?: int|null, - * password?: string|null, - * enableSslOnlyMode?: bool, - * ipMasks?: string[], - * enableEvalListener?: bool, - * dumperDetectCallbacks?: bool, - * dumperLevelLimit?: int, - * dumperItemsCountLimit?: int, - * dumperItemSizeLimit?: int, - * dumperDumpSizeLimit?: int, - * detectDumpTraceAndSource?: bool, - * dataStorage?: Storage|null - * } - * - * @deprecated Since 2.8.0 and 3.2.0, PHPConsole is abandoned and thus we will drop this handler in Monolog 4 - */ -class PHPConsoleHandler extends AbstractProcessingHandler -{ - /** - * @phpstan-var Options - */ - private array $options = [ - 'enabled' => true, // bool Is PHP Console server enabled - 'classesPartialsTraceIgnore' => ['Monolog\\'], // array Hide calls of classes started with... - 'debugTagsKeysInContext' => [0, 'tag'], // bool Is PHP Console server enabled - 'useOwnErrorsHandler' => false, // bool Enable errors handling - 'useOwnExceptionsHandler' => false, // bool Enable exceptions handling - 'sourcesBasePath' => null, // string Base path of all project sources to strip in errors source paths - 'registerHelper' => true, // bool Register PhpConsole\Helper that allows short debug calls like PC::debug($var, 'ta.g.s') - 'serverEncoding' => null, // string|null Server internal encoding - 'headersLimit' => null, // int|null Set headers size limit for your web-server - 'password' => null, // string|null Protect PHP Console connection by password - 'enableSslOnlyMode' => false, // bool Force connection by SSL for clients with PHP Console installed - 'ipMasks' => [], // array Set IP masks of clients that will be allowed to connect to PHP Console: array('192.168.*.*', '127.0.0.1') - 'enableEvalListener' => false, // bool Enable eval request to be handled by eval dispatcher(if enabled, 'password' option is also required) - 'dumperDetectCallbacks' => false, // bool Convert callback items in dumper vars to (callback SomeClass::someMethod) strings - 'dumperLevelLimit' => 5, // int Maximum dumped vars array or object nested dump level - 'dumperItemsCountLimit' => 100, // int Maximum dumped var same level array items or object properties number - 'dumperItemSizeLimit' => 5000, // int Maximum length of any string or dumped array item - 'dumperDumpSizeLimit' => 500000, // int Maximum approximate size of dumped vars result formatted in JSON - 'detectDumpTraceAndSource' => false, // bool Autodetect and append trace data to debug - 'dataStorage' => null, // \PhpConsole\Storage|null Fixes problem with custom $_SESSION handler (see https://github.com/barbushin/php-console#troubleshooting-with-_session-handler-overridden-in-some-frameworks) - ]; - - private Connector $connector; - - /** - * @param array $options See \Monolog\Handler\PHPConsoleHandler::$options for more details - * @param Connector|null $connector Instance of \PhpConsole\Connector class (optional) - * @throws \RuntimeException - * @phpstan-param InputOptions $options - */ - public function __construct(array $options = [], ?Connector $connector = null, int|string|Level $level = Level::Debug, bool $bubble = true) - { - if (!class_exists('PhpConsole\Connector')) { - throw new \RuntimeException('PHP Console library not found. See https://github.com/barbushin/php-console#installation'); - } - parent::__construct($level, $bubble); - $this->options = $this->initOptions($options); - $this->connector = $this->initConnector($connector); - } - - /** - * @param array $options - * @return array - * - * @phpstan-param InputOptions $options - * @phpstan-return Options - */ - private function initOptions(array $options): array - { - $wrongOptions = array_diff(array_keys($options), array_keys($this->options)); - if (\count($wrongOptions) > 0) { - throw new \RuntimeException('Unknown options: ' . implode(', ', $wrongOptions)); - } - - return array_replace($this->options, $options); - } - - private function initConnector(?Connector $connector = null): Connector - { - if (null === $connector) { - if ($this->options['dataStorage'] instanceof Storage) { - Connector::setPostponeStorage($this->options['dataStorage']); - } - $connector = Connector::getInstance(); - } - - if ($this->options['registerHelper'] && !Helper::isRegistered()) { - Helper::register(); - } - - if ($this->options['enabled'] && $connector->isActiveClient()) { - if ($this->options['useOwnErrorsHandler'] || $this->options['useOwnExceptionsHandler']) { - $handler = VendorPhpConsoleHandler::getInstance(); - $handler->setHandleErrors($this->options['useOwnErrorsHandler']); - $handler->setHandleExceptions($this->options['useOwnExceptionsHandler']); - $handler->start(); - } - if (null !== $this->options['sourcesBasePath']) { - $connector->setSourcesBasePath($this->options['sourcesBasePath']); - } - if (null !== $this->options['serverEncoding']) { - $connector->setServerEncoding($this->options['serverEncoding']); - } - if (null !== $this->options['password']) { - $connector->setPassword($this->options['password']); - } - if ($this->options['enableSslOnlyMode']) { - $connector->enableSslOnlyMode(); - } - if (\count($this->options['ipMasks']) > 0) { - $connector->setAllowedIpMasks($this->options['ipMasks']); - } - if (null !== $this->options['headersLimit'] && $this->options['headersLimit'] > 0) { - $connector->setHeadersLimit($this->options['headersLimit']); - } - if ($this->options['detectDumpTraceAndSource']) { - $connector->getDebugDispatcher()->detectTraceAndSource = true; - } - $dumper = $connector->getDumper(); - $dumper->levelLimit = $this->options['dumperLevelLimit']; - $dumper->itemsCountLimit = $this->options['dumperItemsCountLimit']; - $dumper->itemSizeLimit = $this->options['dumperItemSizeLimit']; - $dumper->dumpSizeLimit = $this->options['dumperDumpSizeLimit']; - $dumper->detectCallbacks = $this->options['dumperDetectCallbacks']; - if ($this->options['enableEvalListener']) { - $connector->startEvalRequestsListener(); - } - } - - return $connector; - } - - public function getConnector(): Connector - { - return $this->connector; - } - - /** - * @return array - */ - public function getOptions(): array - { - return $this->options; - } - - public function handle(LogRecord $record): bool - { - if ($this->options['enabled'] && $this->connector->isActiveClient()) { - return parent::handle($record); - } - - return !$this->bubble; - } - - /** - * Writes the record down to the log of the implementing handler - */ - protected function write(LogRecord $record): void - { - if ($record->level->isLowerThan(Level::Notice)) { - $this->handleDebugRecord($record); - } elseif (isset($record->context['exception']) && $record->context['exception'] instanceof \Throwable) { - $this->handleExceptionRecord($record); - } else { - $this->handleErrorRecord($record); - } - } - - private function handleDebugRecord(LogRecord $record): void - { - [$tags, $filteredContext] = $this->getRecordTags($record); - $message = $record->message; - if (\count($filteredContext) > 0) { - $message .= ' ' . Utils::jsonEncode($this->connector->getDumper()->dump(array_filter($filteredContext)), null, true); - } - $this->connector->getDebugDispatcher()->dispatchDebug($message, $tags, $this->options['classesPartialsTraceIgnore']); - } - - private function handleExceptionRecord(LogRecord $record): void - { - $this->connector->getErrorsDispatcher()->dispatchException($record->context['exception']); - } - - private function handleErrorRecord(LogRecord $record): void - { - $context = $record->context; - - $this->connector->getErrorsDispatcher()->dispatchError( - $context['code'] ?? null, - $context['message'] ?? $record->message, - $context['file'] ?? null, - $context['line'] ?? null, - $this->options['classesPartialsTraceIgnore'] - ); - } - - /** - * @return array{string, mixed[]} - */ - private function getRecordTags(LogRecord $record): array - { - $tags = null; - $filteredContext = []; - if ($record->context !== []) { - $filteredContext = $record->context; - foreach ($this->options['debugTagsKeysInContext'] as $key) { - if (isset($filteredContext[$key])) { - $tags = $filteredContext[$key]; - if ($key === 0) { - array_shift($filteredContext); - } else { - unset($filteredContext[$key]); - } - break; - } - } - } - - return [$tags ?? $record->level->toPsrLogLevel(), $filteredContext]; - } - - /** - * @inheritDoc - */ - protected function getDefaultFormatter(): FormatterInterface - { - return new LineFormatter('%message%'); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/ProcessHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/ProcessHandler.php deleted file mode 100644 index 96649aa..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/ProcessHandler.php +++ /dev/null @@ -1,191 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Level; -use Monolog\LogRecord; - -/** - * Stores to STDIN of any process, specified by a command. - * - * Usage example: - *
- * $log = new Logger('myLogger');
- * $log->pushHandler(new ProcessHandler('/usr/bin/php /var/www/monolog/someScript.php'));
- * 
- * - * @author Kolja Zuelsdorf - */ -class ProcessHandler extends AbstractProcessingHandler -{ - /** - * Holds the process to receive data on its STDIN. - * - * @var resource|bool|null - */ - private $process; - - private string $command; - - private ?string $cwd; - - /** - * @var resource[] - */ - private array $pipes = []; - - private float $timeout; - - /** - * @var array - */ - protected const DESCRIPTOR_SPEC = [ - 0 => ['pipe', 'r'], // STDIN is a pipe that the child will read from - 1 => ['pipe', 'w'], // STDOUT is a pipe that the child will write to - 2 => ['pipe', 'w'], // STDERR is a pipe to catch the any errors - ]; - - /** - * @param string $command Command for the process to start. Absolute paths are recommended, - * especially if you do not use the $cwd parameter. - * @param string|null $cwd "Current working directory" (CWD) for the process to be executed in. - * @param float $timeout The maximum timeout (in seconds) for the stream_select() function. - * @throws \InvalidArgumentException - */ - public function __construct(string $command, int|string|Level $level = Level::Debug, bool $bubble = true, ?string $cwd = null, float $timeout = 1.0) - { - if ($command === '') { - throw new \InvalidArgumentException('The command argument must be a non-empty string.'); - } - if ($cwd === '') { - throw new \InvalidArgumentException('The optional CWD argument must be a non-empty string or null.'); - } - - parent::__construct($level, $bubble); - - $this->command = $command; - $this->cwd = $cwd; - $this->timeout = $timeout; - } - - /** - * Writes the record down to the log of the implementing handler - * - * @throws \UnexpectedValueException - */ - protected function write(LogRecord $record): void - { - $this->ensureProcessIsStarted(); - - $this->writeProcessInput($record->formatted); - - $errors = $this->readProcessErrors(); - if ($errors !== '') { - throw new \UnexpectedValueException(sprintf('Errors while writing to process: %s', $errors)); - } - } - - /** - * Makes sure that the process is actually started, and if not, starts it, - * assigns the stream pipes, and handles startup errors, if any. - */ - private function ensureProcessIsStarted(): void - { - if (\is_resource($this->process) === false) { - $this->startProcess(); - - $this->handleStartupErrors(); - } - } - - /** - * Starts the actual process and sets all streams to non-blocking. - */ - private function startProcess(): void - { - $this->process = proc_open($this->command, static::DESCRIPTOR_SPEC, $this->pipes, $this->cwd); - - foreach ($this->pipes as $pipe) { - stream_set_blocking($pipe, false); - } - } - - /** - * Selects the STDERR stream, handles upcoming startup errors, and throws an exception, if any. - * - * @throws \UnexpectedValueException - */ - private function handleStartupErrors(): void - { - $selected = $this->selectErrorStream(); - if (false === $selected) { - throw new \UnexpectedValueException('Something went wrong while selecting a stream.'); - } - - $errors = $this->readProcessErrors(); - - if (\is_resource($this->process) === false || $errors !== '') { - throw new \UnexpectedValueException( - sprintf('The process "%s" could not be opened: ' . $errors, $this->command) - ); - } - } - - /** - * Selects the STDERR stream. - * - * @return int|bool - */ - protected function selectErrorStream() - { - $empty = []; - $errorPipes = [$this->pipes[2]]; - - $seconds = (int) $this->timeout; - return stream_select($errorPipes, $empty, $empty, $seconds, (int) (($this->timeout - $seconds) * 1000000)); - } - - /** - * Reads the errors of the process, if there are any. - * - * @codeCoverageIgnore - * @return string Empty string if there are no errors. - */ - protected function readProcessErrors(): string - { - return (string) stream_get_contents($this->pipes[2]); - } - - /** - * Writes to the input stream of the opened process. - * - * @codeCoverageIgnore - */ - protected function writeProcessInput(string $string): void - { - fwrite($this->pipes[0], $string); - } - - /** - * @inheritDoc - */ - public function close(): void - { - if (\is_resource($this->process)) { - foreach ($this->pipes as $pipe) { - fclose($pipe); - } - proc_close($this->process); - $this->process = null; - } - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/ProcessableHandlerInterface.php b/vendor/monolog/monolog/src/Monolog/Handler/ProcessableHandlerInterface.php deleted file mode 100644 index 9fb290f..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/ProcessableHandlerInterface.php +++ /dev/null @@ -1,43 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Processor\ProcessorInterface; -use Monolog\LogRecord; - -/** - * Interface to describe loggers that have processors - * - * @author Jordi Boggiano - */ -interface ProcessableHandlerInterface -{ - /** - * Adds a processor in the stack. - * - * @phpstan-param ProcessorInterface|(callable(LogRecord): LogRecord) $callback - * - * @param ProcessorInterface|callable $callback - * @return HandlerInterface self - */ - public function pushProcessor(callable $callback): HandlerInterface; - - /** - * Removes the processor on top of the stack and returns it. - * - * @phpstan-return ProcessorInterface|(callable(LogRecord): LogRecord) $callback - * - * @throws \LogicException In case the processor stack is empty - * @return callable|ProcessorInterface - */ - public function popProcessor(): callable; -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/ProcessableHandlerTrait.php b/vendor/monolog/monolog/src/Monolog/Handler/ProcessableHandlerTrait.php deleted file mode 100644 index 74eeddd..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/ProcessableHandlerTrait.php +++ /dev/null @@ -1,70 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\ResettableInterface; -use Monolog\Processor\ProcessorInterface; -use Monolog\LogRecord; - -/** - * Helper trait for implementing ProcessableInterface - * - * @author Jordi Boggiano - */ -trait ProcessableHandlerTrait -{ - /** - * @var callable[] - * @phpstan-var array<(callable(LogRecord): LogRecord)|ProcessorInterface> - */ - protected array $processors = []; - - /** - * @inheritDoc - */ - public function pushProcessor(callable $callback): HandlerInterface - { - array_unshift($this->processors, $callback); - - return $this; - } - - /** - * @inheritDoc - */ - public function popProcessor(): callable - { - if (\count($this->processors) === 0) { - throw new \LogicException('You tried to pop from an empty processor stack.'); - } - - return array_shift($this->processors); - } - - protected function processRecord(LogRecord $record): LogRecord - { - foreach ($this->processors as $processor) { - $record = $processor($record); - } - - return $record; - } - - protected function resetProcessors(): void - { - foreach ($this->processors as $processor) { - if ($processor instanceof ResettableInterface) { - $processor->reset(); - } - } - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/PsrHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/PsrHandler.php deleted file mode 100644 index 100e8e4..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/PsrHandler.php +++ /dev/null @@ -1,92 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Level; -use Psr\Log\LoggerInterface; -use Monolog\Formatter\FormatterInterface; -use Monolog\LogRecord; - -/** - * Proxies log messages to an existing PSR-3 compliant logger. - * - * If a formatter is configured, the formatter's output MUST be a string and the - * formatted message will be fed to the wrapped PSR logger instead of the original - * log record's message. - * - * @author Michael Moussa - */ -class PsrHandler extends AbstractHandler implements FormattableHandlerInterface -{ - /** - * PSR-3 compliant logger - */ - protected LoggerInterface $logger; - - protected FormatterInterface|null $formatter = null; - private bool $includeExtra; - - /** - * @param LoggerInterface $logger The underlying PSR-3 compliant logger to which messages will be proxied - */ - public function __construct(LoggerInterface $logger, int|string|Level $level = Level::Debug, bool $bubble = true, bool $includeExtra = false) - { - parent::__construct($level, $bubble); - - $this->logger = $logger; - $this->includeExtra = $includeExtra; - } - - /** - * @inheritDoc - */ - public function handle(LogRecord $record): bool - { - if (!$this->isHandling($record)) { - return false; - } - - $message = $this->formatter !== null - ? (string) $this->formatter->format($record) - : $record->message; - - $context = $this->includeExtra - ? [...$record->extra, ...$record->context] - : $record->context; - - $this->logger->log($record->level->toPsrLogLevel(), $message, $context); - - return false === $this->bubble; - } - - /** - * Sets the formatter. - */ - public function setFormatter(FormatterInterface $formatter): HandlerInterface - { - $this->formatter = $formatter; - - return $this; - } - - /** - * Gets the formatter. - */ - public function getFormatter(): FormatterInterface - { - if ($this->formatter === null) { - throw new \LogicException('No formatter has been set and this handler does not have a default formatter'); - } - - return $this->formatter; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/PushoverHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/PushoverHandler.php deleted file mode 100644 index b2a7895..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/PushoverHandler.php +++ /dev/null @@ -1,246 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Level; -use Monolog\Logger; -use Monolog\Utils; -use Psr\Log\LogLevel; -use Monolog\LogRecord; - -/** - * Sends notifications through the pushover api to mobile phones - * - * @author Sebastian Göttschkes - * @see https://www.pushover.net/api - */ -class PushoverHandler extends SocketHandler -{ - private string $token; - - /** @var array */ - private array $users; - - private string $title; - - private string|int|null $user = null; - - private int $retry; - - private int $expire; - - private Level $highPriorityLevel; - - private Level $emergencyLevel; - - private bool $useFormattedMessage = false; - - /** - * All parameters that can be sent to Pushover - * @see https://pushover.net/api - * @var array - */ - private array $parameterNames = [ - 'token' => true, - 'user' => true, - 'message' => true, - 'device' => true, - 'title' => true, - 'url' => true, - 'url_title' => true, - 'priority' => true, - 'timestamp' => true, - 'sound' => true, - 'retry' => true, - 'expire' => true, - 'callback' => true, - ]; - - /** - * Sounds the api supports by default - * @see https://pushover.net/api#sounds - * @var string[] - */ - private array $sounds = [ - 'pushover', 'bike', 'bugle', 'cashregister', 'classical', 'cosmic', 'falling', 'gamelan', 'incoming', - 'intermission', 'magic', 'mechanical', 'pianobar', 'siren', 'spacealarm', 'tugboat', 'alien', 'climb', - 'persistent', 'echo', 'updown', 'none', - ]; - - /** - * @param string $token Pushover api token - * @param string|array $users Pushover user id or array of ids the message will be sent to - * @param string|null $title Title sent to the Pushover API - * @param bool $useSSL Whether to connect via SSL. Required when pushing messages to users that are not - * the pushover.net app owner. OpenSSL is required for this option. - * @param int $retry The retry parameter specifies how often (in seconds) the Pushover servers will - * send the same notification to the user. - * @param int $expire The expire parameter specifies how many seconds your notification will continue - * to be retried for (every retry seconds). - * - * @param int|string|Level|LogLevel::* $highPriorityLevel The minimum logging level at which this handler will start - * sending "high priority" requests to the Pushover API - * @param int|string|Level|LogLevel::* $emergencyLevel The minimum logging level at which this handler will start - * sending "emergency" requests to the Pushover API - * - * - * @phpstan-param string|array $users - * @phpstan-param value-of|value-of|Level|LogLevel::* $highPriorityLevel - * @phpstan-param value-of|value-of|Level|LogLevel::* $emergencyLevel - */ - public function __construct( - string $token, - $users, - ?string $title = null, - int|string|Level $level = Level::Critical, - bool $bubble = true, - bool $useSSL = true, - int|string|Level $highPriorityLevel = Level::Critical, - int|string|Level $emergencyLevel = Level::Emergency, - int $retry = 30, - int $expire = 25200, - bool $persistent = false, - float $timeout = 0.0, - float $writingTimeout = 10.0, - ?float $connectionTimeout = null, - ?int $chunkSize = null - ) { - $connectionString = $useSSL ? 'ssl://api.pushover.net:443' : 'api.pushover.net:80'; - parent::__construct( - $connectionString, - $level, - $bubble, - $persistent, - $timeout, - $writingTimeout, - $connectionTimeout, - $chunkSize - ); - - $this->token = $token; - $this->users = (array) $users; - $this->title = $title ?? (string) gethostname(); - $this->highPriorityLevel = Logger::toMonologLevel($highPriorityLevel); - $this->emergencyLevel = Logger::toMonologLevel($emergencyLevel); - $this->retry = $retry; - $this->expire = $expire; - } - - protected function generateDataStream(LogRecord $record): string - { - $content = $this->buildContent($record); - - return $this->buildHeader($content) . $content; - } - - private function buildContent(LogRecord $record): string - { - // Pushover has a limit of 512 characters on title and message combined. - $maxMessageLength = 512 - \strlen($this->title); - - $message = ($this->useFormattedMessage) ? $record->formatted : $record->message; - $message = Utils::substr($message, 0, $maxMessageLength); - - $timestamp = $record->datetime->getTimestamp(); - - $dataArray = [ - 'token' => $this->token, - 'user' => $this->user, - 'message' => $message, - 'title' => $this->title, - 'timestamp' => $timestamp, - ]; - - if ($record->level->value >= $this->emergencyLevel->value) { - $dataArray['priority'] = 2; - $dataArray['retry'] = $this->retry; - $dataArray['expire'] = $this->expire; - } elseif ($record->level->value >= $this->highPriorityLevel->value) { - $dataArray['priority'] = 1; - } - - // First determine the available parameters - $context = array_intersect_key($record->context, $this->parameterNames); - $extra = array_intersect_key($record->extra, $this->parameterNames); - - // Least important info should be merged with subsequent info - $dataArray = array_merge($extra, $context, $dataArray); - - // Only pass sounds that are supported by the API - if (isset($dataArray['sound']) && !\in_array($dataArray['sound'], $this->sounds, true)) { - unset($dataArray['sound']); - } - - return http_build_query($dataArray); - } - - private function buildHeader(string $content): string - { - $header = "POST /1/messages.json HTTP/1.1\r\n"; - $header .= "Host: api.pushover.net\r\n"; - $header .= "Content-Type: application/x-www-form-urlencoded\r\n"; - $header .= "Content-Length: " . \strlen($content) . "\r\n"; - $header .= "\r\n"; - - return $header; - } - - protected function write(LogRecord $record): void - { - foreach ($this->users as $user) { - $this->user = $user; - - parent::write($record); - $this->closeSocket(); - } - - $this->user = null; - } - - /** - * @param int|string|Level|LogLevel::* $level - * @return $this - * - * @phpstan-param value-of|value-of|Level|LogLevel::* $level - */ - public function setHighPriorityLevel(int|string|Level $level): self - { - $this->highPriorityLevel = Logger::toMonologLevel($level); - - return $this; - } - - /** - * @param int|string|Level|LogLevel::* $level - * @return $this - * - * @phpstan-param value-of|value-of|Level|LogLevel::* $level - */ - public function setEmergencyLevel(int|string|Level $level): self - { - $this->emergencyLevel = Logger::toMonologLevel($level); - - return $this; - } - - /** - * Use the formatted message? - * - * @return $this - */ - public function useFormattedMessage(bool $useFormattedMessage): self - { - $this->useFormattedMessage = $useFormattedMessage; - - return $this; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/RedisHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/RedisHandler.php deleted file mode 100644 index c40d97c..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/RedisHandler.php +++ /dev/null @@ -1,94 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Formatter\LineFormatter; -use Monolog\Formatter\FormatterInterface; -use Monolog\Level; -use Monolog\LogRecord; -use Predis\Client as Predis; -use Redis; - -/** - * Logs to a Redis key using rpush - * - * usage example: - * - * $log = new Logger('application'); - * $redis = new RedisHandler(new Predis\Client("tcp://localhost:6379"), "logs"); - * $log->pushHandler($redis); - * - * @author Thomas Tourlourat - */ -class RedisHandler extends AbstractProcessingHandler -{ - /** @var Predis|Redis */ - private Predis|Redis $redisClient; - private string $redisKey; - protected int $capSize; - - /** - * @param Predis|Redis $redis The redis instance - * @param string $key The key name to push records to - * @param int $capSize Number of entries to limit list size to, 0 = unlimited - */ - public function __construct(Predis|Redis $redis, string $key, int|string|Level $level = Level::Debug, bool $bubble = true, int $capSize = 0) - { - $this->redisClient = $redis; - $this->redisKey = $key; - $this->capSize = $capSize; - - parent::__construct($level, $bubble); - } - - /** - * @inheritDoc - */ - protected function write(LogRecord $record): void - { - if ($this->capSize > 0) { - $this->writeCapped($record); - } else { - $this->redisClient->rpush($this->redisKey, $record->formatted); - } - } - - /** - * Write and cap the collection - * Writes the record to the redis list and caps its - */ - protected function writeCapped(LogRecord $record): void - { - if ($this->redisClient instanceof Redis) { - $mode = \defined('Redis::MULTI') ? Redis::MULTI : 1; - $this->redisClient->multi($mode) - ->rPush($this->redisKey, $record->formatted) - ->ltrim($this->redisKey, -$this->capSize, -1) - ->exec(); - } else { - $redisKey = $this->redisKey; - $capSize = $this->capSize; - $this->redisClient->transaction(function ($tx) use ($record, $redisKey, $capSize) { - $tx->rpush($redisKey, $record->formatted); - $tx->ltrim($redisKey, -$capSize, -1); - }); - } - } - - /** - * @inheritDoc - */ - protected function getDefaultFormatter(): FormatterInterface - { - return new LineFormatter(); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/RedisPubSubHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/RedisPubSubHandler.php deleted file mode 100644 index fa8e9e9..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/RedisPubSubHandler.php +++ /dev/null @@ -1,65 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Formatter\LineFormatter; -use Monolog\Formatter\FormatterInterface; -use Monolog\Level; -use Monolog\LogRecord; -use Predis\Client as Predis; -use Redis; - -/** - * Sends the message to a Redis Pub/Sub channel using PUBLISH - * - * usage example: - * - * $log = new Logger('application'); - * $redis = new RedisPubSubHandler(new Predis\Client("tcp://localhost:6379"), "logs", Level::Warning); - * $log->pushHandler($redis); - * - * @author Gaëtan Faugère - */ -class RedisPubSubHandler extends AbstractProcessingHandler -{ - /** @var Predis|Redis */ - private Predis|Redis $redisClient; - private string $channelKey; - - /** - * @param Predis|Redis $redis The redis instance - * @param string $key The channel key to publish records to - */ - public function __construct(Predis|Redis $redis, string $key, int|string|Level $level = Level::Debug, bool $bubble = true) - { - $this->redisClient = $redis; - $this->channelKey = $key; - - parent::__construct($level, $bubble); - } - - /** - * @inheritDoc - */ - protected function write(LogRecord $record): void - { - $this->redisClient->publish($this->channelKey, $record->formatted); - } - - /** - * @inheritDoc - */ - protected function getDefaultFormatter(): FormatterInterface - { - return new LineFormatter(); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/RollbarHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/RollbarHandler.php deleted file mode 100644 index 6b99432..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/RollbarHandler.php +++ /dev/null @@ -1,132 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Level; -use Rollbar\RollbarLogger; -use Throwable; -use Monolog\LogRecord; - -/** - * Sends errors to Rollbar - * - * If the context data contains a `payload` key, that is used as an array - * of payload options to RollbarLogger's log method. - * - * Rollbar's context info will contain the context + extra keys from the log record - * merged, and then on top of that a few keys: - * - * - level (rollbar level name) - * - monolog_level (monolog level name, raw level, as rollbar only has 5 but monolog 8) - * - channel - * - datetime (unix timestamp) - * - * @author Paul Statezny - */ -class RollbarHandler extends AbstractProcessingHandler -{ - protected RollbarLogger $rollbarLogger; - - /** - * Records whether any log records have been added since the last flush of the rollbar notifier - */ - private bool $hasRecords = false; - - protected bool $initialized = false; - - /** - * @param RollbarLogger $rollbarLogger RollbarLogger object constructed with valid token - */ - public function __construct(RollbarLogger $rollbarLogger, int|string|Level $level = Level::Error, bool $bubble = true) - { - $this->rollbarLogger = $rollbarLogger; - - parent::__construct($level, $bubble); - } - - /** - * Translates Monolog log levels to Rollbar levels. - * - * @return 'debug'|'info'|'warning'|'error'|'critical' - */ - protected function toRollbarLevel(Level $level): string - { - return match ($level) { - Level::Debug => 'debug', - Level::Info => 'info', - Level::Notice => 'info', - Level::Warning => 'warning', - Level::Error => 'error', - Level::Critical => 'critical', - Level::Alert => 'critical', - Level::Emergency => 'critical', - }; - } - - /** - * @inheritDoc - */ - protected function write(LogRecord $record): void - { - if (!$this->initialized) { - // __destructor() doesn't get called on Fatal errors - register_shutdown_function([$this, 'close']); - $this->initialized = true; - } - - $context = $record->context; - $context = array_merge($context, $record->extra, [ - 'level' => $this->toRollbarLevel($record->level), - 'monolog_level' => $record->level->getName(), - 'channel' => $record->channel, - 'datetime' => $record->datetime->format('U'), - ]); - - if (isset($context['exception']) && $context['exception'] instanceof Throwable) { - $exception = $context['exception']; - unset($context['exception']); - $toLog = $exception; - } else { - $toLog = $record->message; - } - - $this->rollbarLogger->log($context['level'], $toLog, $context); - - $this->hasRecords = true; - } - - public function flush(): void - { - if ($this->hasRecords) { - $this->rollbarLogger->flush(); - $this->hasRecords = false; - } - } - - /** - * @inheritDoc - */ - public function close(): void - { - $this->flush(); - } - - /** - * @inheritDoc - */ - public function reset(): void - { - $this->flush(); - - parent::reset(); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php deleted file mode 100644 index f3e0455..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php +++ /dev/null @@ -1,218 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use InvalidArgumentException; -use Monolog\Level; -use Monolog\Utils; -use Monolog\LogRecord; - -/** - * Stores logs to files that are rotated every day and a limited number of files are kept. - * - * This rotation is only intended to be used as a workaround. Using logrotate to - * handle the rotation is strongly encouraged when you can use it. - * - * @author Christophe Coevoet - * @author Jordi Boggiano - */ -class RotatingFileHandler extends StreamHandler -{ - public const FILE_PER_DAY = 'Y-m-d'; - public const FILE_PER_MONTH = 'Y-m'; - public const FILE_PER_YEAR = 'Y'; - - protected string $filename; - protected int $maxFiles; - protected bool|null $mustRotate = null; - protected \DateTimeImmutable $nextRotation; - protected string $filenameFormat; - protected string $dateFormat; - - /** - * @param int $maxFiles The maximal amount of files to keep (0 means unlimited) - * @param int|null $filePermission Optional file permissions (default (0644) are only for owner read/write) - * @param bool $useLocking Try to lock log file before doing any writes - */ - public function __construct(string $filename, int $maxFiles = 0, int|string|Level $level = Level::Debug, bool $bubble = true, ?int $filePermission = null, bool $useLocking = false, string $dateFormat = self::FILE_PER_DAY, string $filenameFormat = '{filename}-{date}') - { - $this->filename = Utils::canonicalizePath($filename); - $this->maxFiles = $maxFiles; - $this->setFilenameFormat($filenameFormat, $dateFormat); - $this->nextRotation = $this->getNextRotation(); - - parent::__construct($this->getTimedFilename(), $level, $bubble, $filePermission, $useLocking); - } - - /** - * @inheritDoc - */ - public function close(): void - { - parent::close(); - - if (true === $this->mustRotate) { - $this->rotate(); - } - } - - /** - * @inheritDoc - */ - public function reset(): void - { - parent::reset(); - } - - /** - * @return $this - */ - public function setFilenameFormat(string $filenameFormat, string $dateFormat): self - { - $this->setDateFormat($dateFormat); - if (substr_count($filenameFormat, '{date}') === 0) { - throw new InvalidArgumentException( - 'Invalid filename format - format must contain at least `{date}`, because otherwise rotating is impossible.' - ); - } - $this->filenameFormat = $filenameFormat; - $this->url = $this->getTimedFilename(); - $this->close(); - - return $this; - } - - /** - * @inheritDoc - */ - protected function write(LogRecord $record): void - { - // on the first record written, if the log is new, we rotate (once per day) after the log has been written so that the new file exists - if (null === $this->mustRotate) { - $this->mustRotate = null === $this->url || !file_exists($this->url); - } - - // if the next rotation is expired, then we rotate immediately - if ($this->nextRotation <= $record->datetime) { - $this->mustRotate = true; - $this->close(); // triggers rotation - } - - parent::write($record); - - if (true === $this->mustRotate) { - $this->close(); // triggers rotation - } - } - - /** - * Rotates the files. - */ - protected function rotate(): void - { - // update filename - $this->url = $this->getTimedFilename(); - $this->nextRotation = $this->getNextRotation(); - - $this->mustRotate = false; - - // skip GC of old logs if files are unlimited - if (0 === $this->maxFiles) { - return; - } - - $logFiles = glob($this->getGlobPattern()); - if (false === $logFiles) { - // failed to glob - return; - } - - if ($this->maxFiles >= \count($logFiles)) { - // no files to remove - return; - } - - // Sorting the files by name to remove the older ones - usort($logFiles, function ($a, $b) { - return strcmp($b, $a); - }); - - foreach (\array_slice($logFiles, $this->maxFiles) as $file) { - if (is_writable($file)) { - // suppress errors here as unlink() might fail if two processes - // are cleaning up/rotating at the same time - set_error_handler(function (int $errno, string $errstr, string $errfile, int $errline): bool { - return false; - }); - unlink($file); - restore_error_handler(); - } - } - } - - protected function getTimedFilename(): string - { - $fileInfo = pathinfo($this->filename); - $timedFilename = str_replace( - ['{filename}', '{date}'], - [$fileInfo['filename'], date($this->dateFormat)], - ($fileInfo['dirname'] ?? '') . '/' . $this->filenameFormat - ); - - if (isset($fileInfo['extension'])) { - $timedFilename .= '.'.$fileInfo['extension']; - } - - return $timedFilename; - } - - protected function getGlobPattern(): string - { - $fileInfo = pathinfo($this->filename); - $glob = str_replace( - ['{filename}', '{date}'], - [$fileInfo['filename'], str_replace( - ['Y', 'y', 'm', 'd'], - ['[0-9][0-9][0-9][0-9]', '[0-9][0-9]', '[0-9][0-9]', '[0-9][0-9]'], - $this->dateFormat - )], - ($fileInfo['dirname'] ?? '') . '/' . $this->filenameFormat - ); - if (isset($fileInfo['extension'])) { - $glob .= '.'.$fileInfo['extension']; - } - - return $glob; - } - - protected function setDateFormat(string $dateFormat): void - { - if (0 === preg_match('{^[Yy](([/_.-]?m)([/_.-]?d)?)?$}', $dateFormat)) { - throw new InvalidArgumentException( - 'Invalid date format - format must be one of '. - 'RotatingFileHandler::FILE_PER_DAY ("Y-m-d"), RotatingFileHandler::FILE_PER_MONTH ("Y-m") '. - 'or RotatingFileHandler::FILE_PER_YEAR ("Y"), or you can set one of the '. - 'date formats using slashes, underscores and/or dots instead of dashes.' - ); - } - $this->dateFormat = $dateFormat; - } - - protected function getNextRotation(): \DateTimeImmutable - { - return match (str_replace(['/','_','.'], '-', $this->dateFormat)) { - self::FILE_PER_MONTH => (new \DateTimeImmutable('first day of next month'))->setTime(0, 0, 0), - self::FILE_PER_YEAR => (new \DateTimeImmutable('first day of January next year'))->setTime(0, 0, 0), - default => (new \DateTimeImmutable('tomorrow'))->setTime(0, 0, 0), - }; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/SamplingHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/SamplingHandler.php deleted file mode 100644 index 1b10580..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/SamplingHandler.php +++ /dev/null @@ -1,121 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Closure; -use Monolog\Formatter\FormatterInterface; -use Monolog\LogRecord; - -/** - * Sampling handler - * - * A sampled event stream can be useful for logging high frequency events in - * a production environment where you only need an idea of what is happening - * and are not concerned with capturing every occurrence. Since the decision to - * handle or not handle a particular event is determined randomly, the - * resulting sampled log is not guaranteed to contain 1/N of the events that - * occurred in the application, but based on the Law of large numbers, it will - * tend to be close to this ratio with a large number of attempts. - * - * @author Bryan Davis - * @author Kunal Mehta - */ -class SamplingHandler extends AbstractHandler implements ProcessableHandlerInterface, FormattableHandlerInterface -{ - use ProcessableHandlerTrait; - - /** - * Handler or factory Closure($record, $this) - * - * @phpstan-var (Closure(LogRecord|null, HandlerInterface): HandlerInterface)|HandlerInterface - */ - protected Closure|HandlerInterface $handler; - - protected int $factor; - - /** - * @phpstan-param (Closure(LogRecord|null, HandlerInterface): HandlerInterface)|HandlerInterface $handler - * - * @param Closure|HandlerInterface $handler Handler or factory Closure($record|null, $samplingHandler). - * @param int $factor Sample factor (e.g. 10 means every ~10th record is sampled) - */ - public function __construct(Closure|HandlerInterface $handler, int $factor) - { - parent::__construct(); - $this->handler = $handler; - $this->factor = $factor; - } - - public function isHandling(LogRecord $record): bool - { - return $this->getHandler($record)->isHandling($record); - } - - public function handle(LogRecord $record): bool - { - if ($this->isHandling($record) && mt_rand(1, $this->factor) === 1) { - if (\count($this->processors) > 0) { - $record = $this->processRecord($record); - } - - $this->getHandler($record)->handle($record); - } - - return false === $this->bubble; - } - - /** - * Return the nested handler - * - * If the handler was provided as a factory, this will trigger the handler's instantiation. - */ - public function getHandler(LogRecord|null $record = null): HandlerInterface - { - if (!$this->handler instanceof HandlerInterface) { - $handler = ($this->handler)($record, $this); - if (!$handler instanceof HandlerInterface) { - throw new \RuntimeException("The factory Closure should return a HandlerInterface"); - } - $this->handler = $handler; - } - - return $this->handler; - } - - /** - * @inheritDoc - */ - public function setFormatter(FormatterInterface $formatter): HandlerInterface - { - $handler = $this->getHandler(); - if ($handler instanceof FormattableHandlerInterface) { - $handler->setFormatter($formatter); - - return $this; - } - - throw new \UnexpectedValueException('The nested handler of type '.\get_class($handler).' does not support formatters.'); - } - - /** - * @inheritDoc - */ - public function getFormatter(): FormatterInterface - { - $handler = $this->getHandler(); - if ($handler instanceof FormattableHandlerInterface) { - return $handler->getFormatter(); - } - - throw new \UnexpectedValueException('The nested handler of type '.\get_class($handler).' does not support formatters.'); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/SendGridHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/SendGridHandler.php deleted file mode 100644 index 9c3b8e6..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/SendGridHandler.php +++ /dev/null @@ -1,100 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Level; - -/** - * SendGridrHandler uses the SendGrid API v2 function to send Log emails, more information in https://sendgrid.com/docs/API_Reference/Web_API/mail.html - * - * @author Ricardo Fontanelli - */ -class SendGridHandler extends MailHandler -{ - /** - * The SendGrid API User - */ - protected string $apiUser; - - /** - * The SendGrid API Key - */ - protected string $apiKey; - - /** - * The email addresses to which the message will be sent - */ - protected string $from; - - /** - * The email addresses to which the message will be sent - * @var string[] - */ - protected array $to; - - /** - * The subject of the email - */ - protected string $subject; - - /** - * @param string $apiUser The SendGrid API User - * @param string $apiKey The SendGrid API Key - * @param string $from The sender of the email - * @param string|string[] $to The recipients of the email - * @param string $subject The subject of the mail - * - * @throws MissingExtensionException If the curl extension is missing - */ - public function __construct(string $apiUser, string $apiKey, string $from, string|array $to, string $subject, int|string|Level $level = Level::Error, bool $bubble = true) - { - if (!\extension_loaded('curl')) { - throw new MissingExtensionException('The curl extension is needed to use the SendGridHandler'); - } - - parent::__construct($level, $bubble); - $this->apiUser = $apiUser; - $this->apiKey = $apiKey; - $this->from = $from; - $this->to = (array) $to; - $this->subject = $subject; - } - - /** - * @inheritDoc - */ - protected function send(string $content, array $records): void - { - $message = []; - $message['api_user'] = $this->apiUser; - $message['api_key'] = $this->apiKey; - $message['from'] = $this->from; - foreach ($this->to as $recipient) { - $message['to[]'] = $recipient; - } - $message['subject'] = $this->subject; - $message['date'] = date('r'); - - if ($this->isHtmlBody($content)) { - $message['html'] = $content; - } else { - $message['text'] = $content; - } - - $ch = curl_init(); - curl_setopt($ch, CURLOPT_URL, 'https://api.sendgrid.com/api/mail.send.json'); - curl_setopt($ch, CURLOPT_POST, true); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); - curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($message)); - Curl\Util::execute($ch, 2); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php b/vendor/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php deleted file mode 100644 index 0e46c2d..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php +++ /dev/null @@ -1,381 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler\Slack; - -use Monolog\Level; -use Monolog\Utils; -use Monolog\Formatter\NormalizerFormatter; -use Monolog\Formatter\FormatterInterface; -use Monolog\LogRecord; - -/** - * Slack record utility helping to log to Slack webhooks or API. - * - * @author Greg Kedzierski - * @author Haralan Dobrev - * @see https://api.slack.com/incoming-webhooks - * @see https://api.slack.com/docs/message-attachments - */ -class SlackRecord -{ - public const COLOR_DANGER = 'danger'; - - public const COLOR_WARNING = 'warning'; - - public const COLOR_GOOD = 'good'; - - public const COLOR_DEFAULT = '#e3e4e6'; - - /** - * Slack channel (encoded ID or name) - */ - private string|null $channel; - - /** - * Name of a bot - */ - private string|null $username; - - /** - * User icon e.g. 'ghost', 'http://example.com/user.png' - */ - private string|null $userIcon; - - /** - * Whether the message should be added to Slack as attachment (plain text otherwise) - */ - private bool $useAttachment; - - /** - * Whether the the context/extra messages added to Slack as attachments are in a short style - */ - private bool $useShortAttachment; - - /** - * Whether the attachment should include context and extra data - */ - private bool $includeContextAndExtra; - - /** - * Dot separated list of fields to exclude from slack message. E.g. ['context.field1', 'extra.field2'] - * @var string[] - */ - private array $excludeFields; - - private FormatterInterface|null $formatter; - - private NormalizerFormatter $normalizerFormatter; - - /** - * @param string[] $excludeFields - */ - public function __construct( - ?string $channel = null, - ?string $username = null, - bool $useAttachment = true, - ?string $userIcon = null, - bool $useShortAttachment = false, - bool $includeContextAndExtra = false, - array $excludeFields = [], - FormatterInterface|null $formatter = null - ) { - $this - ->setChannel($channel) - ->setUsername($username) - ->useAttachment($useAttachment) - ->setUserIcon($userIcon) - ->useShortAttachment($useShortAttachment) - ->includeContextAndExtra($includeContextAndExtra) - ->excludeFields($excludeFields) - ->setFormatter($formatter); - - if ($this->includeContextAndExtra) { - $this->normalizerFormatter = new NormalizerFormatter(); - } - } - - /** - * Returns required data in format that Slack - * is expecting. - * - * @phpstan-return mixed[] - */ - public function getSlackData(LogRecord $record): array - { - $dataArray = []; - - if ($this->username !== null) { - $dataArray['username'] = $this->username; - } - - if ($this->channel !== null) { - $dataArray['channel'] = $this->channel; - } - - if ($this->formatter !== null && !$this->useAttachment) { - $message = $this->formatter->format($record); - } else { - $message = $record->message; - } - - $recordData = $this->removeExcludedFields($record); - - if ($this->useAttachment) { - $attachment = [ - 'fallback' => $message, - 'text' => $message, - 'color' => $this->getAttachmentColor($record->level), - 'fields' => [], - 'mrkdwn_in' => ['fields'], - 'ts' => $recordData['datetime']->getTimestamp(), - 'footer' => $this->username, - 'footer_icon' => $this->userIcon, - ]; - - if ($this->useShortAttachment) { - $attachment['title'] = $recordData['level_name']; - } else { - $attachment['title'] = 'Message'; - $attachment['fields'][] = $this->generateAttachmentField('Level', $recordData['level_name']); - } - - if ($this->includeContextAndExtra) { - foreach (['extra', 'context'] as $key) { - if (!isset($recordData[$key]) || \count($recordData[$key]) === 0) { - continue; - } - - if ($this->useShortAttachment) { - $attachment['fields'][] = $this->generateAttachmentField( - $key, - $recordData[$key] - ); - } else { - // Add all extra fields as individual fields in attachment - $attachment['fields'] = array_merge( - $attachment['fields'], - $this->generateAttachmentFields($recordData[$key]) - ); - } - } - } - - $dataArray['attachments'] = [$attachment]; - } else { - $dataArray['text'] = $message; - } - - if ($this->userIcon !== null) { - if (false !== ($iconUrl = filter_var($this->userIcon, FILTER_VALIDATE_URL))) { - $dataArray['icon_url'] = $iconUrl; - } else { - $dataArray['icon_emoji'] = ":{$this->userIcon}:"; - } - } - - return $dataArray; - } - - /** - * Returns a Slack message attachment color associated with - * provided level. - */ - public function getAttachmentColor(Level $level): string - { - return match ($level) { - Level::Error, Level::Critical, Level::Alert, Level::Emergency => static::COLOR_DANGER, - Level::Warning => static::COLOR_WARNING, - Level::Info, Level::Notice => static::COLOR_GOOD, - Level::Debug => static::COLOR_DEFAULT - }; - } - - /** - * Stringifies an array of key/value pairs to be used in attachment fields - * - * @param mixed[] $fields - */ - public function stringify(array $fields): string - { - /** @var array|bool|float|int|string|null> $normalized */ - $normalized = $this->normalizerFormatter->normalizeValue($fields); - - $hasSecondDimension = \count(array_filter($normalized, 'is_array')) > 0; - $hasOnlyNonNumericKeys = \count(array_filter(array_keys($normalized), 'is_numeric')) === 0; - - return $hasSecondDimension || $hasOnlyNonNumericKeys - ? Utils::jsonEncode($normalized, JSON_PRETTY_PRINT|Utils::DEFAULT_JSON_FLAGS) - : Utils::jsonEncode($normalized, Utils::DEFAULT_JSON_FLAGS); - } - - /** - * Channel used by the bot when posting - * - * @param ?string $channel - * @return $this - */ - public function setChannel(?string $channel = null): self - { - $this->channel = $channel; - - return $this; - } - - /** - * Username used by the bot when posting - * - * @param ?string $username - * @return $this - */ - public function setUsername(?string $username = null): self - { - $this->username = $username; - - return $this; - } - - /** - * @return $this - */ - public function useAttachment(bool $useAttachment = true): self - { - $this->useAttachment = $useAttachment; - - return $this; - } - - /** - * @return $this - */ - public function setUserIcon(?string $userIcon = null): self - { - $this->userIcon = $userIcon; - - if (\is_string($userIcon)) { - $this->userIcon = trim($userIcon, ':'); - } - - return $this; - } - - /** - * @return $this - */ - public function useShortAttachment(bool $useShortAttachment = false): self - { - $this->useShortAttachment = $useShortAttachment; - - return $this; - } - - /** - * @return $this - */ - public function includeContextAndExtra(bool $includeContextAndExtra = false): self - { - $this->includeContextAndExtra = $includeContextAndExtra; - - if ($this->includeContextAndExtra) { - $this->normalizerFormatter = new NormalizerFormatter(); - } - - return $this; - } - - /** - * @param string[] $excludeFields - * @return $this - */ - public function excludeFields(array $excludeFields = []): self - { - $this->excludeFields = $excludeFields; - - return $this; - } - - /** - * @return $this - */ - public function setFormatter(?FormatterInterface $formatter = null): self - { - $this->formatter = $formatter; - - return $this; - } - - /** - * Generates attachment field - * - * @param string|mixed[] $value - * - * @return array{title: string, value: string, short: false} - */ - private function generateAttachmentField(string $title, $value): array - { - $value = \is_array($value) - ? sprintf('```%s```', substr($this->stringify($value), 0, 1990)) - : $value; - - return [ - 'title' => ucfirst($title), - 'value' => $value, - 'short' => false, - ]; - } - - /** - * Generates a collection of attachment fields from array - * - * @param mixed[] $data - * - * @return array - */ - private function generateAttachmentFields(array $data): array - { - /** @var array|string> $normalized */ - $normalized = $this->normalizerFormatter->normalizeValue($data); - - $fields = []; - foreach ($normalized as $key => $value) { - $fields[] = $this->generateAttachmentField((string) $key, $value); - } - - return $fields; - } - - /** - * Get a copy of record with fields excluded according to $this->excludeFields - * - * @return mixed[] - */ - private function removeExcludedFields(LogRecord $record): array - { - $recordData = $record->toArray(); - foreach ($this->excludeFields as $field) { - $keys = explode('.', $field); - $node = &$recordData; - $lastKey = end($keys); - foreach ($keys as $key) { - if (!isset($node[$key])) { - break; - } - if ($lastKey === $key) { - unset($node[$key]); - break; - } - $node = &$node[$key]; - } - } - - return $recordData; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/SlackHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/SlackHandler.php deleted file mode 100644 index 2a34dda..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/SlackHandler.php +++ /dev/null @@ -1,267 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Formatter\FormatterInterface; -use Monolog\Level; -use Monolog\Utils; -use Monolog\Handler\Slack\SlackRecord; -use Monolog\LogRecord; - -/** - * Sends notifications through Slack API - * - * @author Greg Kedzierski - * @see https://api.slack.com/ - */ -class SlackHandler extends SocketHandler -{ - /** - * Slack API token - */ - private string $token; - - /** - * Instance of the SlackRecord util class preparing data for Slack API. - */ - private SlackRecord $slackRecord; - - /** - * @param string $token Slack API token - * @param string $channel Slack channel (encoded ID or name) - * @param string|null $username Name of a bot - * @param bool $useAttachment Whether the message should be added to Slack as attachment (plain text otherwise) - * @param string|null $iconEmoji The emoji name to use (or null) - * @param bool $useShortAttachment Whether the context/extra messages added to Slack as attachments are in a short style - * @param bool $includeContextAndExtra Whether the attachment should include context and extra data - * @param string[] $excludeFields Dot separated list of fields to exclude from slack message. E.g. ['context.field1', 'extra.field2'] - * @throws MissingExtensionException If no OpenSSL PHP extension configured - */ - public function __construct( - string $token, - string $channel, - ?string $username = null, - bool $useAttachment = true, - ?string $iconEmoji = null, - $level = Level::Critical, - bool $bubble = true, - bool $useShortAttachment = false, - bool $includeContextAndExtra = false, - array $excludeFields = [], - bool $persistent = false, - float $timeout = 0.0, - float $writingTimeout = 10.0, - ?float $connectionTimeout = null, - ?int $chunkSize = null - ) { - if (!\extension_loaded('openssl')) { - throw new MissingExtensionException('The OpenSSL PHP extension is required to use the SlackHandler'); - } - - parent::__construct( - 'ssl://slack.com:443', - $level, - $bubble, - $persistent, - $timeout, - $writingTimeout, - $connectionTimeout, - $chunkSize - ); - - $this->slackRecord = new SlackRecord( - $channel, - $username, - $useAttachment, - $iconEmoji, - $useShortAttachment, - $includeContextAndExtra, - $excludeFields - ); - - $this->token = $token; - } - - public function getSlackRecord(): SlackRecord - { - return $this->slackRecord; - } - - public function getToken(): string - { - return $this->token; - } - - /** - * @inheritDoc - */ - protected function generateDataStream(LogRecord $record): string - { - $content = $this->buildContent($record); - - return $this->buildHeader($content) . $content; - } - - /** - * Builds the body of API call - */ - private function buildContent(LogRecord $record): string - { - $dataArray = $this->prepareContentData($record); - - return http_build_query($dataArray); - } - - /** - * @return string[] - */ - protected function prepareContentData(LogRecord $record): array - { - $dataArray = $this->slackRecord->getSlackData($record); - $dataArray['token'] = $this->token; - - if (isset($dataArray['attachments']) && \is_array($dataArray['attachments']) && \count($dataArray['attachments']) > 0) { - $dataArray['attachments'] = Utils::jsonEncode($dataArray['attachments']); - } - - return $dataArray; - } - - /** - * Builds the header of the API Call - */ - private function buildHeader(string $content): string - { - $header = "POST /api/chat.postMessage HTTP/1.1\r\n"; - $header .= "Host: slack.com\r\n"; - $header .= "Content-Type: application/x-www-form-urlencoded\r\n"; - $header .= "Content-Length: " . \strlen($content) . "\r\n"; - $header .= "\r\n"; - - return $header; - } - - /** - * @inheritDoc - */ - protected function write(LogRecord $record): void - { - parent::write($record); - $this->finalizeWrite(); - } - - /** - * Finalizes the request by reading some bytes and then closing the socket - * - * If we do not read some but close the socket too early, slack sometimes - * drops the request entirely. - */ - protected function finalizeWrite(): void - { - $res = $this->getResource(); - if (\is_resource($res)) { - @fread($res, 2048); - } - $this->closeSocket(); - } - - public function setFormatter(FormatterInterface $formatter): HandlerInterface - { - parent::setFormatter($formatter); - $this->slackRecord->setFormatter($formatter); - - return $this; - } - - public function getFormatter(): FormatterInterface - { - $formatter = parent::getFormatter(); - $this->slackRecord->setFormatter($formatter); - - return $formatter; - } - - /** - * Channel used by the bot when posting - * - * @return $this - */ - public function setChannel(string $channel): self - { - $this->slackRecord->setChannel($channel); - - return $this; - } - - /** - * Username used by the bot when posting - * - * @return $this - */ - public function setUsername(string $username): self - { - $this->slackRecord->setUsername($username); - - return $this; - } - - /** - * @return $this - */ - public function useAttachment(bool $useAttachment): self - { - $this->slackRecord->useAttachment($useAttachment); - - return $this; - } - - /** - * @return $this - */ - public function setIconEmoji(string $iconEmoji): self - { - $this->slackRecord->setUserIcon($iconEmoji); - - return $this; - } - - /** - * @return $this - */ - public function useShortAttachment(bool $useShortAttachment): self - { - $this->slackRecord->useShortAttachment($useShortAttachment); - - return $this; - } - - /** - * @return $this - */ - public function includeContextAndExtra(bool $includeContextAndExtra): self - { - $this->slackRecord->includeContextAndExtra($includeContextAndExtra); - - return $this; - } - - /** - * @param string[] $excludeFields - * @return $this - */ - public function excludeFields(array $excludeFields): self - { - $this->slackRecord->excludeFields($excludeFields); - - return $this; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php deleted file mode 100644 index eac51cc..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php +++ /dev/null @@ -1,128 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Formatter\FormatterInterface; -use Monolog\Level; -use Monolog\Utils; -use Monolog\Handler\Slack\SlackRecord; -use Monolog\LogRecord; - -/** - * Sends notifications through Slack Webhooks - * - * @author Haralan Dobrev - * @see https://api.slack.com/incoming-webhooks - */ -class SlackWebhookHandler extends AbstractProcessingHandler -{ - /** - * Slack Webhook token - */ - private string $webhookUrl; - - /** - * Instance of the SlackRecord util class preparing data for Slack API. - */ - private SlackRecord $slackRecord; - - /** - * @param string $webhookUrl Slack Webhook URL - * @param string|null $channel Slack channel (encoded ID or name) - * @param string|null $username Name of a bot - * @param bool $useAttachment Whether the message should be added to Slack as attachment (plain text otherwise) - * @param string|null $iconEmoji The emoji name to use (or null) - * @param bool $useShortAttachment Whether the the context/extra messages added to Slack as attachments are in a short style - * @param bool $includeContextAndExtra Whether the attachment should include context and extra data - * @param string[] $excludeFields Dot separated list of fields to exclude from slack message. E.g. ['context.field1', 'extra.field2'] - * - * @throws MissingExtensionException If the curl extension is missing - */ - public function __construct( - string $webhookUrl, - ?string $channel = null, - ?string $username = null, - bool $useAttachment = true, - ?string $iconEmoji = null, - bool $useShortAttachment = false, - bool $includeContextAndExtra = false, - $level = Level::Critical, - bool $bubble = true, - array $excludeFields = [] - ) { - if (!\extension_loaded('curl')) { - throw new MissingExtensionException('The curl extension is needed to use the SlackWebhookHandler'); - } - - parent::__construct($level, $bubble); - - $this->webhookUrl = $webhookUrl; - - $this->slackRecord = new SlackRecord( - $channel, - $username, - $useAttachment, - $iconEmoji, - $useShortAttachment, - $includeContextAndExtra, - $excludeFields - ); - } - - public function getSlackRecord(): SlackRecord - { - return $this->slackRecord; - } - - public function getWebhookUrl(): string - { - return $this->webhookUrl; - } - - /** - * @inheritDoc - */ - protected function write(LogRecord $record): void - { - $postData = $this->slackRecord->getSlackData($record); - $postString = Utils::jsonEncode($postData); - - $ch = curl_init(); - $options = [ - CURLOPT_URL => $this->webhookUrl, - CURLOPT_POST => true, - CURLOPT_RETURNTRANSFER => true, - CURLOPT_HTTPHEADER => ['Content-type: application/json'], - CURLOPT_POSTFIELDS => $postString, - ]; - - curl_setopt_array($ch, $options); - - Curl\Util::execute($ch); - } - - public function setFormatter(FormatterInterface $formatter): HandlerInterface - { - parent::setFormatter($formatter); - $this->slackRecord->setFormatter($formatter); - - return $this; - } - - public function getFormatter(): FormatterInterface - { - $formatter = parent::getFormatter(); - $this->slackRecord->setFormatter($formatter); - - return $formatter; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/SocketHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/SocketHandler.php deleted file mode 100644 index 36d46bf..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/SocketHandler.php +++ /dev/null @@ -1,436 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Level; -use Monolog\LogRecord; - -/** - * Stores to any socket - uses fsockopen() or pfsockopen(). - * - * @author Pablo de Leon Belloc - * @see http://php.net/manual/en/function.fsockopen.php - */ -class SocketHandler extends AbstractProcessingHandler -{ - private string $connectionString; - private float $connectionTimeout; - /** @var resource|null */ - private $resource; - private float $timeout; - private float $writingTimeout; - private int|null $lastSentBytes = null; - private int|null $chunkSize; - private bool $persistent; - private int|null $errno = null; - private string|null $errstr = null; - private float|null $lastWritingAt = null; - - /** - * @param string $connectionString Socket connection string - * @param bool $persistent Flag to enable/disable persistent connections - * @param float $timeout Socket timeout to wait until the request is being aborted - * @param float $writingTimeout Socket timeout to wait until the request should've been sent/written - * @param float|null $connectionTimeout Socket connect timeout to wait until the connection should've been - * established - * @param int|null $chunkSize Sets the chunk size. Only has effect during connection in the writing cycle - * - * @throws \InvalidArgumentException If an invalid timeout value (less than 0) is passed. - */ - public function __construct( - string $connectionString, - $level = Level::Debug, - bool $bubble = true, - bool $persistent = false, - float $timeout = 0.0, - float $writingTimeout = 10.0, - ?float $connectionTimeout = null, - ?int $chunkSize = null - ) { - parent::__construct($level, $bubble); - $this->connectionString = $connectionString; - - if ($connectionTimeout !== null) { - $this->validateTimeout($connectionTimeout); - } - - $this->connectionTimeout = $connectionTimeout ?? (float) \ini_get('default_socket_timeout'); - $this->persistent = $persistent; - $this->validateTimeout($timeout); - $this->timeout = $timeout; - $this->validateTimeout($writingTimeout); - $this->writingTimeout = $writingTimeout; - $this->chunkSize = $chunkSize; - } - - /** - * Connect (if necessary) and write to the socket - * - * @inheritDoc - * - * @throws \UnexpectedValueException - * @throws \RuntimeException - */ - protected function write(LogRecord $record): void - { - $this->connectIfNotConnected(); - $data = $this->generateDataStream($record); - $this->writeToSocket($data); - } - - /** - * We will not close a PersistentSocket instance so it can be reused in other requests. - */ - public function close(): void - { - if (!$this->isPersistent()) { - $this->closeSocket(); - } - } - - /** - * Close socket, if open - */ - public function closeSocket(): void - { - if (\is_resource($this->resource)) { - fclose($this->resource); - $this->resource = null; - } - } - - /** - * Set socket connection to be persistent. It only has effect before the connection is initiated. - * - * @return $this - */ - public function setPersistent(bool $persistent): self - { - $this->persistent = $persistent; - - return $this; - } - - /** - * Set connection timeout. Only has effect before we connect. - * - * @see http://php.net/manual/en/function.fsockopen.php - * @return $this - */ - public function setConnectionTimeout(float $seconds): self - { - $this->validateTimeout($seconds); - $this->connectionTimeout = $seconds; - - return $this; - } - - /** - * Set write timeout. Only has effect before we connect. - * - * @see http://php.net/manual/en/function.stream-set-timeout.php - * @return $this - */ - public function setTimeout(float $seconds): self - { - $this->validateTimeout($seconds); - $this->timeout = $seconds; - - return $this; - } - - /** - * Set writing timeout. Only has effect during connection in the writing cycle. - * - * @param float $seconds 0 for no timeout - * @return $this - */ - public function setWritingTimeout(float $seconds): self - { - $this->validateTimeout($seconds); - $this->writingTimeout = $seconds; - - return $this; - } - - /** - * Set chunk size. Only has effect during connection in the writing cycle. - * - * @return $this - */ - public function setChunkSize(int $bytes): self - { - $this->chunkSize = $bytes; - - return $this; - } - - /** - * Get current connection string - */ - public function getConnectionString(): string - { - return $this->connectionString; - } - - /** - * Get persistent setting - */ - public function isPersistent(): bool - { - return $this->persistent; - } - - /** - * Get current connection timeout setting - */ - public function getConnectionTimeout(): float - { - return $this->connectionTimeout; - } - - /** - * Get current in-transfer timeout - */ - public function getTimeout(): float - { - return $this->timeout; - } - - /** - * Get current local writing timeout - */ - public function getWritingTimeout(): float - { - return $this->writingTimeout; - } - - /** - * Get current chunk size - */ - public function getChunkSize(): ?int - { - return $this->chunkSize; - } - - /** - * Check to see if the socket is currently available. - * - * UDP might appear to be connected but might fail when writing. See http://php.net/fsockopen for details. - */ - public function isConnected(): bool - { - return \is_resource($this->resource) - && !feof($this->resource); // on TCP - other party can close connection. - } - - /** - * Wrapper to allow mocking - * - * @return resource|false - */ - protected function pfsockopen() - { - return @pfsockopen($this->connectionString, -1, $this->errno, $this->errstr, $this->connectionTimeout); - } - - /** - * Wrapper to allow mocking - * - * @return resource|false - */ - protected function fsockopen() - { - return @fsockopen($this->connectionString, -1, $this->errno, $this->errstr, $this->connectionTimeout); - } - - /** - * Wrapper to allow mocking - * - * @see http://php.net/manual/en/function.stream-set-timeout.php - */ - protected function streamSetTimeout(): bool - { - $seconds = floor($this->timeout); - $microseconds = round(($this->timeout - $seconds) * 1e6); - - if (!\is_resource($this->resource)) { - throw new \LogicException('streamSetTimeout called but $this->resource is not a resource'); - } - - return stream_set_timeout($this->resource, (int) $seconds, (int) $microseconds); - } - - /** - * Wrapper to allow mocking - * - * @see http://php.net/manual/en/function.stream-set-chunk-size.php - * - * @return int|false - */ - protected function streamSetChunkSize(): int|bool - { - if (!\is_resource($this->resource)) { - throw new \LogicException('streamSetChunkSize called but $this->resource is not a resource'); - } - - if (null === $this->chunkSize) { - throw new \LogicException('streamSetChunkSize called but $this->chunkSize is not set'); - } - - return stream_set_chunk_size($this->resource, $this->chunkSize); - } - - /** - * Wrapper to allow mocking - * - * @return int|false - */ - protected function fwrite(string $data): int|bool - { - if (!\is_resource($this->resource)) { - throw new \LogicException('fwrite called but $this->resource is not a resource'); - } - - return @fwrite($this->resource, $data); - } - - /** - * Wrapper to allow mocking - * - * @return mixed[]|bool - */ - protected function streamGetMetadata(): array|bool - { - if (!\is_resource($this->resource)) { - throw new \LogicException('streamGetMetadata called but $this->resource is not a resource'); - } - - return stream_get_meta_data($this->resource); - } - - private function validateTimeout(float $value): void - { - if ($value < 0) { - throw new \InvalidArgumentException("Timeout must be 0 or a positive float (got $value)"); - } - } - - private function connectIfNotConnected(): void - { - if ($this->isConnected()) { - return; - } - $this->connect(); - } - - protected function generateDataStream(LogRecord $record): string - { - return (string) $record->formatted; - } - - /** - * @return resource|null - */ - protected function getResource() - { - return $this->resource; - } - - private function connect(): void - { - $this->createSocketResource(); - $this->setSocketTimeout(); - $this->setStreamChunkSize(); - } - - private function createSocketResource(): void - { - if ($this->isPersistent()) { - $resource = $this->pfsockopen(); - } else { - $resource = $this->fsockopen(); - } - if (\is_bool($resource)) { - throw new \UnexpectedValueException("Failed connecting to $this->connectionString ($this->errno: $this->errstr)"); - } - $this->resource = $resource; - } - - private function setSocketTimeout(): void - { - if (!$this->streamSetTimeout()) { - throw new \UnexpectedValueException("Failed setting timeout with stream_set_timeout()"); - } - } - - private function setStreamChunkSize(): void - { - if (null !== $this->chunkSize && false === $this->streamSetChunkSize()) { - throw new \UnexpectedValueException("Failed setting chunk size with stream_set_chunk_size()"); - } - } - - private function writeToSocket(string $data): void - { - $length = \strlen($data); - $sent = 0; - $this->lastSentBytes = $sent; - while ($this->isConnected() && $sent < $length) { - if (0 === $sent) { - $chunk = $this->fwrite($data); - } else { - $chunk = $this->fwrite(substr($data, $sent)); - } - if ($chunk === false) { - throw new \RuntimeException("Could not write to socket"); - } - $sent += $chunk; - $socketInfo = $this->streamGetMetadata(); - if (\is_array($socketInfo) && (bool) $socketInfo['timed_out']) { - throw new \RuntimeException("Write timed-out"); - } - - if ($this->writingIsTimedOut($sent)) { - throw new \RuntimeException("Write timed-out, no data sent for `{$this->writingTimeout}` seconds, probably we got disconnected (sent $sent of $length)"); - } - } - if (!$this->isConnected() && $sent < $length) { - throw new \RuntimeException("End-of-file reached, probably we got disconnected (sent $sent of $length)"); - } - } - - private function writingIsTimedOut(int $sent): bool - { - // convert to ms - if (0.0 === $this->writingTimeout) { - return false; - } - - if ($sent !== $this->lastSentBytes) { - $this->lastWritingAt = microtime(true); - $this->lastSentBytes = $sent; - - return false; - } else { - usleep(100); - } - - if ((microtime(true) - (float) $this->lastWritingAt) >= $this->writingTimeout) { - $this->closeSocket(); - - return true; - } - - return false; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/SqsHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/SqsHandler.php deleted file mode 100644 index 1d28b65..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/SqsHandler.php +++ /dev/null @@ -1,61 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Aws\Sqs\SqsClient; -use Monolog\Level; -use Monolog\Utils; -use Monolog\LogRecord; - -/** - * Writes to any sqs queue. - * - * @author Martijn van Calker - */ -class SqsHandler extends AbstractProcessingHandler -{ - /** 256 KB in bytes - maximum message size in SQS */ - protected const MAX_MESSAGE_SIZE = 262144; - /** 100 KB in bytes - head message size for new error log */ - protected const HEAD_MESSAGE_SIZE = 102400; - - private SqsClient $client; - private string $queueUrl; - - public function __construct(SqsClient $sqsClient, string $queueUrl, int|string|Level $level = Level::Debug, bool $bubble = true) - { - parent::__construct($level, $bubble); - - $this->client = $sqsClient; - $this->queueUrl = $queueUrl; - } - - /** - * @inheritDoc - */ - protected function write(LogRecord $record): void - { - if (!isset($record->formatted) || 'string' !== \gettype($record->formatted)) { - throw new \InvalidArgumentException('SqsHandler accepts only formatted records as a string' . Utils::getRecordMessageForException($record)); - } - - $messageBody = $record->formatted; - if (\strlen($messageBody) >= static::MAX_MESSAGE_SIZE) { - $messageBody = Utils::substr($messageBody, 0, static::HEAD_MESSAGE_SIZE); - } - - $this->client->sendMessage([ - 'QueueUrl' => $this->queueUrl, - 'MessageBody' => $messageBody, - ]); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php deleted file mode 100644 index 6153cc2..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php +++ /dev/null @@ -1,246 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Level; -use Monolog\Utils; -use Monolog\LogRecord; - -/** - * Stores to any stream resource - * - * Can be used to store into php://stderr, remote and local files, etc. - * - * @author Jordi Boggiano - */ -class StreamHandler extends AbstractProcessingHandler -{ - protected const MAX_CHUNK_SIZE = 2147483647; - /** 10MB */ - protected const DEFAULT_CHUNK_SIZE = 10 * 1024 * 1024; - protected int $streamChunkSize; - /** @var resource|null */ - protected $stream; - protected string|null $url = null; - private string|null $errorMessage = null; - protected int|null $filePermission; - protected bool $useLocking; - protected string $fileOpenMode; - /** @var true|null */ - private bool|null $dirCreated = null; - private bool $retrying = false; - - /** - * @param resource|string $stream If a missing path can't be created, an UnexpectedValueException will be thrown on first write - * @param int|null $filePermission Optional file permissions (default (0644) are only for owner read/write) - * @param bool $useLocking Try to lock log file before doing any writes - * @param string $fileOpenMode The fopen() mode used when opening a file, if $stream is a file path - * - * @throws \InvalidArgumentException If stream is not a resource or string - */ - public function __construct($stream, int|string|Level $level = Level::Debug, bool $bubble = true, ?int $filePermission = null, bool $useLocking = false, string $fileOpenMode = 'a') - { - parent::__construct($level, $bubble); - - if (($phpMemoryLimit = Utils::expandIniShorthandBytes(\ini_get('memory_limit'))) !== false) { - if ($phpMemoryLimit > 0) { - // use max 10% of allowed memory for the chunk size, and at least 100KB - $this->streamChunkSize = min(static::MAX_CHUNK_SIZE, max((int) ($phpMemoryLimit / 10), 100 * 1024)); - } else { - // memory is unlimited, set to the default 10MB - $this->streamChunkSize = static::DEFAULT_CHUNK_SIZE; - } - } else { - // no memory limit information, set to the default 10MB - $this->streamChunkSize = static::DEFAULT_CHUNK_SIZE; - } - - if (\is_resource($stream)) { - $this->stream = $stream; - - stream_set_chunk_size($this->stream, $this->streamChunkSize); - } elseif (\is_string($stream)) { - $this->url = Utils::canonicalizePath($stream); - } else { - throw new \InvalidArgumentException('A stream must either be a resource or a string.'); - } - - $this->fileOpenMode = $fileOpenMode; - $this->filePermission = $filePermission; - $this->useLocking = $useLocking; - } - - /** - * @inheritDoc - */ - public function reset(): void - { - parent::reset(); - - // auto-close on reset to make sure we periodically close the file in long running processes - // as long as they correctly call reset() between jobs - if ($this->url !== null && $this->url !== 'php://memory') { - $this->close(); - } - } - - /** - * @inheritDoc - */ - public function close(): void - { - if (null !== $this->url && \is_resource($this->stream)) { - fclose($this->stream); - } - $this->stream = null; - $this->dirCreated = null; - } - - /** - * Return the currently active stream if it is open - * - * @return resource|null - */ - public function getStream() - { - return $this->stream; - } - - /** - * Return the stream URL if it was configured with a URL and not an active resource - */ - public function getUrl(): ?string - { - return $this->url; - } - - public function getStreamChunkSize(): int - { - return $this->streamChunkSize; - } - - /** - * @inheritDoc - */ - protected function write(LogRecord $record): void - { - if (!\is_resource($this->stream)) { - $url = $this->url; - if (null === $url || '' === $url) { - throw new \LogicException('Missing stream url, the stream can not be opened. This may be caused by a premature call to close().' . Utils::getRecordMessageForException($record)); - } - $this->createDir($url); - $this->errorMessage = null; - set_error_handler($this->customErrorHandler(...)); - - try { - $stream = fopen($url, $this->fileOpenMode); - if ($this->filePermission !== null) { - @chmod($url, $this->filePermission); - } - } finally { - restore_error_handler(); - } - if (!\is_resource($stream)) { - $this->stream = null; - - throw new \UnexpectedValueException(sprintf('The stream or file "%s" could not be opened in append mode: '.$this->errorMessage, $url) . Utils::getRecordMessageForException($record)); - } - stream_set_chunk_size($stream, $this->streamChunkSize); - $this->stream = $stream; - } - - $stream = $this->stream; - if ($this->useLocking) { - // ignoring errors here, there's not much we can do about them - flock($stream, LOCK_EX); - } - - $this->errorMessage = null; - set_error_handler($this->customErrorHandler(...)); - try { - $this->streamWrite($stream, $record); - } finally { - restore_error_handler(); - } - if ($this->errorMessage !== null) { - $error = $this->errorMessage; - // close the resource if possible to reopen it, and retry the failed write - if (!$this->retrying && $this->url !== null && $this->url !== 'php://memory') { - $this->retrying = true; - $this->close(); - $this->write($record); - - return; - } - - throw new \UnexpectedValueException('Writing to the log file failed: '.$error . Utils::getRecordMessageForException($record)); - } - - $this->retrying = false; - if ($this->useLocking) { - flock($stream, LOCK_UN); - } - } - - /** - * Write to stream - * @param resource $stream - */ - protected function streamWrite($stream, LogRecord $record): void - { - fwrite($stream, (string) $record->formatted); - } - - private function customErrorHandler(int $code, string $msg): bool - { - $this->errorMessage = preg_replace('{^(fopen|mkdir|fwrite)\(.*?\): }', '', $msg); - - return true; - } - - private function getDirFromStream(string $stream): ?string - { - $pos = strpos($stream, '://'); - if ($pos === false) { - return \dirname($stream); - } - - if ('file://' === substr($stream, 0, 7)) { - return \dirname(substr($stream, 7)); - } - - return null; - } - - private function createDir(string $url): void - { - // Do not try to create dir if it has already been tried. - if (true === $this->dirCreated) { - return; - } - - $dir = $this->getDirFromStream($url); - if (null !== $dir && !is_dir($dir)) { - $this->errorMessage = null; - set_error_handler(function (...$args) { - return $this->customErrorHandler(...$args); - }); - $status = mkdir($dir, 0777, true); - restore_error_handler(); - if (false === $status && !is_dir($dir) && strpos((string) $this->errorMessage, 'File exists') === false) { - throw new \UnexpectedValueException(sprintf('There is no existing directory at "%s" and it could not be created: '.$this->errorMessage, $dir)); - } - } - $this->dirCreated = true; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/SymfonyMailerHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/SymfonyMailerHandler.php deleted file mode 100644 index 33aa4fd..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/SymfonyMailerHandler.php +++ /dev/null @@ -1,109 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Closure; -use Monolog\Level; -use Monolog\LogRecord; -use Monolog\Utils; -use Monolog\Formatter\FormatterInterface; -use Monolog\Formatter\LineFormatter; -use Symfony\Component\Mailer\MailerInterface; -use Symfony\Component\Mailer\Transport\TransportInterface; -use Symfony\Component\Mime\Email; - -/** - * SymfonyMailerHandler uses Symfony's Mailer component to send the emails - * - * @author Jordi Boggiano - */ -class SymfonyMailerHandler extends MailHandler -{ - protected MailerInterface|TransportInterface $mailer; - /** @var Email|Closure(string, LogRecord[]): Email */ - private Email|Closure $emailTemplate; - - /** - * @phpstan-param Email|Closure(string, LogRecord[]): Email $email - * - * @param MailerInterface|TransportInterface $mailer The mailer to use - * @param Closure|Email $email An email template, the subject/body will be replaced - */ - public function __construct($mailer, Email|Closure $email, int|string|Level $level = Level::Error, bool $bubble = true) - { - parent::__construct($level, $bubble); - - $this->mailer = $mailer; - $this->emailTemplate = $email; - } - - /** - * {@inheritDoc} - */ - protected function send(string $content, array $records): void - { - $this->mailer->send($this->buildMessage($content, $records)); - } - - /** - * Gets the formatter for the Swift_Message subject. - * - * @param string|null $format The format of the subject - */ - protected function getSubjectFormatter(?string $format): FormatterInterface - { - return new LineFormatter($format); - } - - /** - * Creates instance of Email to be sent - * - * @param string $content formatted email body to be sent - * @param LogRecord[] $records Log records that formed the content - */ - protected function buildMessage(string $content, array $records): Email - { - $message = null; - if ($this->emailTemplate instanceof Email) { - $message = clone $this->emailTemplate; - } elseif (\is_callable($this->emailTemplate)) { - $message = ($this->emailTemplate)($content, $records); - } - - if (!$message instanceof Email) { - $record = reset($records); - - throw new \InvalidArgumentException('Could not resolve message as instance of Email or a callable returning it' . ($record instanceof LogRecord ? Utils::getRecordMessageForException($record) : '')); - } - - if (\count($records) > 0) { - $subjectFormatter = $this->getSubjectFormatter($message->getSubject()); - $message->subject($subjectFormatter->format($this->getHighestRecord($records))); - } - - if ($this->isHtmlBody($content)) { - if (null !== ($charset = $message->getHtmlCharset())) { - $message->html($content, $charset); - } else { - $message->html($content); - } - } else { - if (null !== ($charset = $message->getTextCharset())) { - $message->text($content, $charset); - } else { - $message->text($content); - } - } - - return $message->date(new \DateTimeImmutable()); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/SyslogHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/SyslogHandler.php deleted file mode 100644 index f3d7674..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/SyslogHandler.php +++ /dev/null @@ -1,63 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Level; -use Monolog\LogRecord; - -/** - * Logs to syslog service. - * - * usage example: - * - * $log = new Logger('application'); - * $syslog = new SyslogHandler('myfacility', 'local6'); - * $formatter = new LineFormatter("%channel%.%level_name%: %message% %extra%"); - * $syslog->setFormatter($formatter); - * $log->pushHandler($syslog); - * - * @author Sven Paulus - */ -class SyslogHandler extends AbstractSyslogHandler -{ - protected string $ident; - protected int $logopts; - - /** - * @param string|int $facility Either one of the names of the keys in $this->facilities, or a LOG_* facility constant - * @param int $logopts Option flags for the openlog() call, defaults to LOG_PID - */ - public function __construct(string $ident, string|int $facility = LOG_USER, int|string|Level $level = Level::Debug, bool $bubble = true, int $logopts = LOG_PID) - { - parent::__construct($facility, $level, $bubble); - - $this->ident = $ident; - $this->logopts = $logopts; - } - - /** - * @inheritDoc - */ - public function close(): void - { - closelog(); - } - - /** - * @inheritDoc - */ - protected function write(LogRecord $record): void - { - openlog($this->ident, $this->logopts, $this->facility); - syslog($this->toSyslogPriority($record->level), (string) $record->formatted); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/SyslogUdp/UdpSocket.php b/vendor/monolog/monolog/src/Monolog/Handler/SyslogUdp/UdpSocket.php deleted file mode 100644 index 3ff0bce..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/SyslogUdp/UdpSocket.php +++ /dev/null @@ -1,77 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler\SyslogUdp; - -use Monolog\Utils; -use Socket; - -class UdpSocket -{ - protected const DATAGRAM_MAX_LENGTH = 65023; - - protected string $ip; - protected int $port; - protected ?Socket $socket = null; - - public function __construct(string $ip, int $port = 514) - { - $this->ip = $ip; - $this->port = $port; - } - - public function write(string $line, string $header = ""): void - { - $this->send($this->assembleMessage($line, $header)); - } - - public function close(): void - { - if ($this->socket instanceof Socket) { - socket_close($this->socket); - $this->socket = null; - } - } - - protected function getSocket(): Socket - { - if (null !== $this->socket) { - return $this->socket; - } - - $domain = AF_INET; - $protocol = SOL_UDP; - // Check if we are using unix sockets. - if ($this->port === 0) { - $domain = AF_UNIX; - $protocol = IPPROTO_IP; - } - - $socket = socket_create($domain, SOCK_DGRAM, $protocol); - if ($socket instanceof Socket) { - return $this->socket = $socket; - } - - throw new \RuntimeException('The UdpSocket to '.$this->ip.':'.$this->port.' could not be opened via socket_create'); - } - - protected function send(string $chunk): void - { - socket_sendto($this->getSocket(), $chunk, \strlen($chunk), $flags = 0, $this->ip, $this->port); - } - - protected function assembleMessage(string $line, string $header): string - { - $chunkSize = static::DATAGRAM_MAX_LENGTH - \strlen($header); - - return $header . Utils::substr($line, 0, $chunkSize); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/SyslogUdpHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/SyslogUdpHandler.php deleted file mode 100644 index b5e4674..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/SyslogUdpHandler.php +++ /dev/null @@ -1,154 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use DateTimeInterface; -use Monolog\Handler\SyslogUdp\UdpSocket; -use Monolog\Level; -use Monolog\LogRecord; -use Monolog\Utils; - -/** - * A Handler for logging to a remote syslogd server. - * - * @author Jesper Skovgaard Nielsen - * @author Dominik Kukacka - */ -class SyslogUdpHandler extends AbstractSyslogHandler -{ - const RFC3164 = 0; - const RFC5424 = 1; - const RFC5424e = 2; - - /** @var array */ - private array $dateFormats = [ - self::RFC3164 => 'M d H:i:s', - self::RFC5424 => \DateTime::RFC3339, - self::RFC5424e => \DateTime::RFC3339_EXTENDED, - ]; - - protected UdpSocket $socket; - protected string $ident; - /** @var self::RFC* */ - protected int $rfc; - - /** - * @param string $host Either IP/hostname or a path to a unix socket (port must be 0 then) - * @param int $port Port number, or 0 if $host is a unix socket - * @param string|int $facility Either one of the names of the keys in $this->facilities, or a LOG_* facility constant - * @param bool $bubble Whether the messages that are handled can bubble up the stack or not - * @param string $ident Program name or tag for each log message. - * @param int $rfc RFC to format the message for. - * @throws MissingExtensionException when there is no socket extension - * - * @phpstan-param self::RFC* $rfc - */ - public function __construct(string $host, int $port = 514, string|int $facility = LOG_USER, int|string|Level $level = Level::Debug, bool $bubble = true, string $ident = 'php', int $rfc = self::RFC5424) - { - if (!\extension_loaded('sockets')) { - throw new MissingExtensionException('The sockets extension is required to use the SyslogUdpHandler'); - } - - parent::__construct($facility, $level, $bubble); - - $this->ident = $ident; - $this->rfc = $rfc; - - $this->socket = new UdpSocket($host, $port); - } - - protected function write(LogRecord $record): void - { - $lines = $this->splitMessageIntoLines($record->formatted); - - $header = $this->makeCommonSyslogHeader($this->toSyslogPriority($record->level), $record->datetime); - - foreach ($lines as $line) { - $this->socket->write($line, $header); - } - } - - public function close(): void - { - $this->socket->close(); - } - - /** - * @param string|string[] $message - * @return string[] - */ - private function splitMessageIntoLines($message): array - { - if (\is_array($message)) { - $message = implode("\n", $message); - } - - $lines = preg_split('/$\R?^/m', (string) $message, -1, PREG_SPLIT_NO_EMPTY); - if (false === $lines) { - $pcreErrorCode = preg_last_error(); - - throw new \RuntimeException('Could not preg_split: ' . $pcreErrorCode . ' / ' . preg_last_error_msg()); - } - - return $lines; - } - - /** - * Make common syslog header (see rfc5424 or rfc3164) - */ - protected function makeCommonSyslogHeader(int $severity, DateTimeInterface $datetime): string - { - $priority = $severity + $this->facility; - - $pid = getmypid(); - if (false === $pid) { - $pid = '-'; - } - - $hostname = gethostname(); - if (false === $hostname) { - $hostname = '-'; - } - - if ($this->rfc === self::RFC3164) { - // see https://github.com/phpstan/phpstan/issues/5348 - // @phpstan-ignore-next-line - $dateNew = $datetime->setTimezone(new \DateTimeZone('UTC')); - $date = $dateNew->format($this->dateFormats[$this->rfc]); - - return "<$priority>" . - $date . " " . - $hostname . " " . - $this->ident . "[" . $pid . "]: "; - } - - $date = $datetime->format($this->dateFormats[$this->rfc]); - - return "<$priority>1 " . - $date . " " . - $hostname . " " . - $this->ident . " " . - $pid . " - - "; - } - - /** - * Inject your own socket, mainly used for testing - * - * @return $this - */ - public function setSocket(UdpSocket $socket): self - { - $this->socket = $socket; - - return $this; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/TelegramBotHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/TelegramBotHandler.php deleted file mode 100644 index dcca5d6..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/TelegramBotHandler.php +++ /dev/null @@ -1,297 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use RuntimeException; -use Monolog\Level; -use Monolog\Utils; -use Monolog\LogRecord; - -/** - * Handler sends logs to Telegram using Telegram Bot API. - * - * How to use: - * 1) Create a Telegram bot with https://telegram.me/BotFather; - * 2) Create a Telegram channel or a group where logs will be recorded; - * 3) Add the created bot from step 1 to the created channel/group from step 2. - * - * In order to create an instance of TelegramBotHandler use - * 1. The Telegram bot API key from step 1 - * 2. The channel name with the `@` prefix if you created a public channel (e.g. `@my_public_channel`), - * or the channel ID with the `-100` prefix if you created a private channel (e.g. `-1001234567890`), - * or the group ID from step 2 (e.g. `-1234567890`). - * - * @link https://core.telegram.org/bots/api - * - * @author Mazur Alexandr - */ -class TelegramBotHandler extends AbstractProcessingHandler -{ - private const BOT_API = 'https://api.telegram.org/bot'; - - /** - * The available values of parseMode according to the Telegram api documentation - */ - private const AVAILABLE_PARSE_MODES = [ - 'HTML', - 'MarkdownV2', - 'Markdown', // legacy mode without underline and strikethrough, use MarkdownV2 instead - ]; - - /** - * The maximum number of characters allowed in a message according to the Telegram api documentation - */ - private const MAX_MESSAGE_LENGTH = 4096; - - /** - * Telegram bot access token provided by BotFather. - * Create telegram bot with https://telegram.me/BotFather and use access token from it. - */ - private string $apiKey; - - /** - * Telegram channel name. - * Since to start with '@' symbol as prefix. - */ - private string $channel; - - /** - * The kind of formatting that is used for the message. - * See available options at https://core.telegram.org/bots/api#formatting-options - * or in AVAILABLE_PARSE_MODES - */ - private string|null $parseMode; - - /** - * Disables link previews for links in the message. - */ - private bool|null $disableWebPagePreview; - - /** - * Sends the message silently. Users will receive a notification with no sound. - */ - private bool|null $disableNotification; - - /** - * True - split a message longer than MAX_MESSAGE_LENGTH into parts and send in multiple messages. - * False - truncates a message that is too long. - */ - private bool $splitLongMessages; - - /** - * Adds 1-second delay between sending a split message (according to Telegram API to avoid 429 Too Many Requests). - */ - private bool $delayBetweenMessages; - - /** - * Telegram message thread id, unique identifier for the target message thread (topic) of the forum; for forum supergroups only - * See how to get the `message_thread_id` https://stackoverflow.com/a/75178418 - */ - private int|null $topic; - - /** - * @param string $apiKey Telegram bot access token provided by BotFather - * @param string $channel Telegram channel name - * @param bool $splitLongMessages Split a message longer than MAX_MESSAGE_LENGTH into parts and send in multiple messages - * @param bool $delayBetweenMessages Adds delay between sending a split message according to Telegram API - * @param int $topic Telegram message thread id, unique identifier for the target message thread (topic) of the forum - * @throws MissingExtensionException If the curl extension is missing - */ - public function __construct( - string $apiKey, - string $channel, - $level = Level::Debug, - bool $bubble = true, - ?string $parseMode = null, - ?bool $disableWebPagePreview = null, - ?bool $disableNotification = null, - bool $splitLongMessages = false, - bool $delayBetweenMessages = false, - ?int $topic = null - ) { - if (!\extension_loaded('curl')) { - throw new MissingExtensionException('The curl extension is needed to use the TelegramBotHandler'); - } - - parent::__construct($level, $bubble); - - $this->apiKey = $apiKey; - $this->channel = $channel; - $this->setParseMode($parseMode); - $this->disableWebPagePreview($disableWebPagePreview); - $this->disableNotification($disableNotification); - $this->splitLongMessages($splitLongMessages); - $this->delayBetweenMessages($delayBetweenMessages); - $this->setTopic($topic); - } - - /** - * @return $this - */ - public function setParseMode(string|null $parseMode = null): self - { - if ($parseMode !== null && !\in_array($parseMode, self::AVAILABLE_PARSE_MODES, true)) { - throw new \InvalidArgumentException('Unknown parseMode, use one of these: ' . implode(', ', self::AVAILABLE_PARSE_MODES) . '.'); - } - - $this->parseMode = $parseMode; - - return $this; - } - - /** - * @return $this - */ - public function disableWebPagePreview(bool|null $disableWebPagePreview = null): self - { - $this->disableWebPagePreview = $disableWebPagePreview; - - return $this; - } - - /** - * @return $this - */ - public function disableNotification(bool|null $disableNotification = null): self - { - $this->disableNotification = $disableNotification; - - return $this; - } - - /** - * True - split a message longer than MAX_MESSAGE_LENGTH into parts and send in multiple messages. - * False - truncates a message that is too long. - * - * @return $this - */ - public function splitLongMessages(bool $splitLongMessages = false): self - { - $this->splitLongMessages = $splitLongMessages; - - return $this; - } - - /** - * Adds 1-second delay between sending a split message (according to Telegram API to avoid 429 Too Many Requests). - * - * @return $this - */ - public function delayBetweenMessages(bool $delayBetweenMessages = false): self - { - $this->delayBetweenMessages = $delayBetweenMessages; - - return $this; - } - - /** - * @return $this - */ - public function setTopic(?int $topic = null): self - { - $this->topic = $topic; - - return $this; - } - - /** - * @inheritDoc - */ - public function handleBatch(array $records): void - { - $messages = []; - - foreach ($records as $record) { - if (!$this->isHandling($record)) { - continue; - } - - if (\count($this->processors) > 0) { - $record = $this->processRecord($record); - } - - $messages[] = $record; - } - - if (\count($messages) > 0) { - $this->send((string) $this->getFormatter()->formatBatch($messages)); - } - } - - /** - * @inheritDoc - */ - protected function write(LogRecord $record): void - { - $this->send($record->formatted); - } - - /** - * Send request to @link https://api.telegram.org/bot on SendMessage action. - */ - protected function send(string $message): void - { - $messages = $this->handleMessageLength($message); - - foreach ($messages as $key => $msg) { - if ($this->delayBetweenMessages && $key > 0) { - sleep(1); - } - - $this->sendCurl($msg); - } - } - - protected function sendCurl(string $message): void - { - $ch = curl_init(); - $url = self::BOT_API . $this->apiKey . '/SendMessage'; - curl_setopt($ch, CURLOPT_URL, $url); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); - curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true); - $params = [ - 'text' => $message, - 'chat_id' => $this->channel, - 'parse_mode' => $this->parseMode, - 'disable_web_page_preview' => $this->disableWebPagePreview, - 'disable_notification' => $this->disableNotification, - ]; - if ($this->topic !== null) { - $params['message_thread_id'] = $this->topic; - } - curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($params)); - - $result = Curl\Util::execute($ch); - if (!\is_string($result)) { - throw new RuntimeException('Telegram API error. Description: No response'); - } - $result = json_decode($result, true); - - if ($result['ok'] === false) { - throw new RuntimeException('Telegram API error. Description: ' . $result['description']); - } - } - - /** - * Handle a message that is too long: truncates or splits into several - * @return string[] - */ - private function handleMessageLength(string $message): array - { - $truncatedMarker = ' (...truncated)'; - if (!$this->splitLongMessages && \strlen($message) > self::MAX_MESSAGE_LENGTH) { - return [Utils::substr($message, 0, self::MAX_MESSAGE_LENGTH - \strlen($truncatedMarker)) . $truncatedMarker]; - } - - return str_split($message, self::MAX_MESSAGE_LENGTH); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/TestHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/TestHandler.php deleted file mode 100644 index eb5fb44..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/TestHandler.php +++ /dev/null @@ -1,195 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Level; -use Monolog\Logger; -use Psr\Log\LogLevel; -use Monolog\LogRecord; - -/** - * Used for testing purposes. - * - * It records all records and gives you access to them for verification. - * - * @author Jordi Boggiano - * - * @method bool hasEmergency(array{message: string, context?: mixed[]}|string $recordAssertions) - * @method bool hasAlert(array{message: string, context?: mixed[]}|string $recordAssertions) - * @method bool hasCritical(array{message: string, context?: mixed[]}|string $recordAssertions) - * @method bool hasError(array{message: string, context?: mixed[]}|string $recordAssertions) - * @method bool hasWarning(array{message: string, context?: mixed[]}|string $recordAssertions) - * @method bool hasNotice(array{message: string, context?: mixed[]}|string $recordAssertions) - * @method bool hasInfo(array{message: string, context?: mixed[]}|string $recordAssertions) - * @method bool hasDebug(array{message: string, context?: mixed[]}|string $recordAssertions) - * - * @method bool hasEmergencyRecords() - * @method bool hasAlertRecords() - * @method bool hasCriticalRecords() - * @method bool hasErrorRecords() - * @method bool hasWarningRecords() - * @method bool hasNoticeRecords() - * @method bool hasInfoRecords() - * @method bool hasDebugRecords() - * - * @method bool hasEmergencyThatContains(string $message) - * @method bool hasAlertThatContains(string $message) - * @method bool hasCriticalThatContains(string $message) - * @method bool hasErrorThatContains(string $message) - * @method bool hasWarningThatContains(string $message) - * @method bool hasNoticeThatContains(string $message) - * @method bool hasInfoThatContains(string $message) - * @method bool hasDebugThatContains(string $message) - * - * @method bool hasEmergencyThatMatches(string $regex) - * @method bool hasAlertThatMatches(string $regex) - * @method bool hasCriticalThatMatches(string $regex) - * @method bool hasErrorThatMatches(string $regex) - * @method bool hasWarningThatMatches(string $regex) - * @method bool hasNoticeThatMatches(string $regex) - * @method bool hasInfoThatMatches(string $regex) - * @method bool hasDebugThatMatches(string $regex) - * - * @method bool hasEmergencyThatPasses(callable $predicate) - * @method bool hasAlertThatPasses(callable $predicate) - * @method bool hasCriticalThatPasses(callable $predicate) - * @method bool hasErrorThatPasses(callable $predicate) - * @method bool hasWarningThatPasses(callable $predicate) - * @method bool hasNoticeThatPasses(callable $predicate) - * @method bool hasInfoThatPasses(callable $predicate) - * @method bool hasDebugThatPasses(callable $predicate) - */ -class TestHandler extends AbstractProcessingHandler -{ - /** @var LogRecord[] */ - protected array $records = []; - /** @phpstan-var array, LogRecord[]> */ - protected array $recordsByLevel = []; - private bool $skipReset = false; - - /** - * @return array - */ - public function getRecords(): array - { - return $this->records; - } - - public function clear(): void - { - $this->records = []; - $this->recordsByLevel = []; - } - - public function reset(): void - { - if (!$this->skipReset) { - $this->clear(); - } - } - - public function setSkipReset(bool $skipReset): void - { - $this->skipReset = $skipReset; - } - - /** - * @param int|string|Level|LogLevel::* $level Logging level value or name - * - * @phpstan-param value-of|value-of|Level|LogLevel::* $level - */ - public function hasRecords(int|string|Level $level): bool - { - return isset($this->recordsByLevel[Logger::toMonologLevel($level)->value]); - } - - /** - * @param string|array $recordAssertions Either a message string or an array containing message and optionally context keys that will be checked against all records - * - * @phpstan-param array{message: string, context?: mixed[]}|string $recordAssertions - */ - public function hasRecord(string|array $recordAssertions, Level $level): bool - { - if (\is_string($recordAssertions)) { - $recordAssertions = ['message' => $recordAssertions]; - } - - return $this->hasRecordThatPasses(function (LogRecord $rec) use ($recordAssertions) { - if ($rec->message !== $recordAssertions['message']) { - return false; - } - if (isset($recordAssertions['context']) && $rec->context !== $recordAssertions['context']) { - return false; - } - - return true; - }, $level); - } - - public function hasRecordThatContains(string $message, Level $level): bool - { - return $this->hasRecordThatPasses(fn (LogRecord $rec) => str_contains($rec->message, $message), $level); - } - - public function hasRecordThatMatches(string $regex, Level $level): bool - { - return $this->hasRecordThatPasses(fn (LogRecord $rec) => preg_match($regex, $rec->message) > 0, $level); - } - - /** - * @phpstan-param callable(LogRecord, int): mixed $predicate - */ - public function hasRecordThatPasses(callable $predicate, Level $level): bool - { - $level = Logger::toMonologLevel($level); - - if (!isset($this->recordsByLevel[$level->value])) { - return false; - } - - foreach ($this->recordsByLevel[$level->value] as $i => $rec) { - if ((bool) $predicate($rec, $i)) { - return true; - } - } - - return false; - } - - /** - * @inheritDoc - */ - protected function write(LogRecord $record): void - { - $this->recordsByLevel[$record->level->value][] = $record; - $this->records[] = $record; - } - - /** - * @param mixed[] $args - */ - public function __call(string $method, array $args): bool - { - if ((bool) preg_match('/(.*)(Debug|Info|Notice|Warning|Error|Critical|Alert|Emergency)(.*)/', $method, $matches)) { - $genericMethod = $matches[1] . ('Records' !== $matches[3] ? 'Record' : '') . $matches[3]; - $level = \constant(Level::class.'::' . $matches[2]); - $callback = [$this, $genericMethod]; - if (\is_callable($callback)) { - $args[] = $level; - - return \call_user_func_array($callback, $args); - } - } - - throw new \BadMethodCallException('Call to undefined method ' . \get_class($this) . '::' . $method . '()'); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/WebRequestRecognizerTrait.php b/vendor/monolog/monolog/src/Monolog/Handler/WebRequestRecognizerTrait.php deleted file mode 100644 index 9c12c3d..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/WebRequestRecognizerTrait.php +++ /dev/null @@ -1,23 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -trait WebRequestRecognizerTrait -{ - /** - * Checks if PHP's serving a web request - */ - protected function isWebRequest(): bool - { - return 'cli' !== \PHP_SAPI && 'phpdbg' !== \PHP_SAPI; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php deleted file mode 100644 index 932fa70..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php +++ /dev/null @@ -1,80 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\LogRecord; -use Throwable; - -/** - * Forwards records to multiple handlers suppressing failures of each handler - * and continuing through to give every handler a chance to succeed. - * - * @author Craig D'Amelio - */ -class WhatFailureGroupHandler extends GroupHandler -{ - /** - * @inheritDoc - */ - public function handle(LogRecord $record): bool - { - if (\count($this->processors) > 0) { - $record = $this->processRecord($record); - } - - foreach ($this->handlers as $handler) { - try { - $handler->handle(clone $record); - } catch (Throwable) { - // What failure? - } - } - - return false === $this->bubble; - } - - /** - * @inheritDoc - */ - public function handleBatch(array $records): void - { - if (\count($this->processors) > 0) { - $processed = []; - foreach ($records as $record) { - $processed[] = $this->processRecord($record); - } - $records = $processed; - } - - foreach ($this->handlers as $handler) { - try { - $handler->handleBatch(array_map(fn ($record) => clone $record, $records)); - } catch (Throwable) { - // What failure? - } - } - } - - /** - * {@inheritDoc} - */ - public function close(): void - { - foreach ($this->handlers as $handler) { - try { - $handler->close(); - } catch (\Throwable $e) { - // What failure? - } - } - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php deleted file mode 100644 index 8841f2f..0000000 --- a/vendor/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php +++ /dev/null @@ -1,90 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Formatter\FormatterInterface; -use Monolog\Formatter\NormalizerFormatter; -use Monolog\Level; -use Monolog\LogRecord; - -/** - * Handler sending logs to Zend Monitor - * - * @author Christian Bergau - * @author Jason Davis - */ -class ZendMonitorHandler extends AbstractProcessingHandler -{ - /** - * @throws MissingExtensionException - */ - public function __construct(int|string|Level $level = Level::Debug, bool $bubble = true) - { - if (!\function_exists('zend_monitor_custom_event')) { - throw new MissingExtensionException( - 'You must have Zend Server installed with Zend Monitor enabled in order to use this handler' - ); - } - - parent::__construct($level, $bubble); - } - - /** - * Translates Monolog log levels to ZendMonitor levels. - */ - protected function toZendMonitorLevel(Level $level): int - { - return match ($level) { - Level::Debug => \ZEND_MONITOR_EVENT_SEVERITY_INFO, - Level::Info => \ZEND_MONITOR_EVENT_SEVERITY_INFO, - Level::Notice => \ZEND_MONITOR_EVENT_SEVERITY_INFO, - Level::Warning => \ZEND_MONITOR_EVENT_SEVERITY_WARNING, - Level::Error => \ZEND_MONITOR_EVENT_SEVERITY_ERROR, - Level::Critical => \ZEND_MONITOR_EVENT_SEVERITY_ERROR, - Level::Alert => \ZEND_MONITOR_EVENT_SEVERITY_ERROR, - Level::Emergency => \ZEND_MONITOR_EVENT_SEVERITY_ERROR, - }; - } - - /** - * @inheritDoc - */ - protected function write(LogRecord $record): void - { - $this->writeZendMonitorCustomEvent( - $record->level->getName(), - $record->message, - $record->formatted, - $this->toZendMonitorLevel($record->level) - ); - } - - /** - * Write to Zend Monitor Events - * @param string $type Text displayed in "Class Name (custom)" field - * @param string $message Text displayed in "Error String" - * @param array $formatted Displayed in Custom Variables tab - * @param int $severity Set the event severity level (-1,0,1) - */ - protected function writeZendMonitorCustomEvent(string $type, string $message, array $formatted, int $severity): void - { - zend_monitor_custom_event($type, $message, $formatted, $severity); - } - - /** - * @inheritDoc - */ - public function getDefaultFormatter(): FormatterInterface - { - return new NormalizerFormatter(); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/JsonSerializableDateTimeImmutable.php b/vendor/monolog/monolog/src/Monolog/JsonSerializableDateTimeImmutable.php deleted file mode 100644 index de2cc5e..0000000 --- a/vendor/monolog/monolog/src/Monolog/JsonSerializableDateTimeImmutable.php +++ /dev/null @@ -1,48 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog; - -use DateTimeZone; - -/** - * Overrides default json encoding of date time objects - * - * @author Menno Holtkamp - * @author Jordi Boggiano - */ -class JsonSerializableDateTimeImmutable extends \DateTimeImmutable implements \JsonSerializable -{ - private bool $useMicroseconds; - - public function __construct(bool $useMicroseconds, ?DateTimeZone $timezone = null) - { - $this->useMicroseconds = $useMicroseconds; - - // if you like to use a custom time to pass to Logger::addRecord directly, - // call modify() or setTimestamp() on this instance to change the date after creating it - parent::__construct('now', $timezone); - } - - public function jsonSerialize(): string - { - if ($this->useMicroseconds) { - return $this->format('Y-m-d\TH:i:s.uP'); - } - - return $this->format('Y-m-d\TH:i:sP'); - } - - public function __toString(): string - { - return $this->jsonSerialize(); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Level.php b/vendor/monolog/monolog/src/Monolog/Level.php deleted file mode 100644 index 5620bc4..0000000 --- a/vendor/monolog/monolog/src/Monolog/Level.php +++ /dev/null @@ -1,209 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog; - -use Psr\Log\LogLevel; - -/** - * Represents the log levels - * - * Monolog supports the logging levels described by RFC 5424 {@see https://datatracker.ietf.org/doc/html/rfc5424} - * but due to BC the severity values used internally are not 0-7. - * - * To get the level name/value out of a Level there are several options: - * - * - Use ->getName() to get the standard Monolog name which is full uppercased (e.g. "DEBUG") - * - Use ->toPsrLogLevel() to get the standard PSR-3 name which is full lowercased (e.g. "debug") - * - Use ->toRFC5424Level() to get the standard RFC 5424 value (e.g. 7 for debug, 0 for emergency) - * - Use ->name to get the enum case's name which is capitalized (e.g. "Debug") - * - * To get the internal value for filtering, if the includes/isLowerThan/isHigherThan methods are - * not enough, you can use ->value to get the enum case's integer value. - */ -enum Level: int -{ - /** - * Detailed debug information - */ - case Debug = 100; - - /** - * Interesting events - * - * Examples: User logs in, SQL logs. - */ - case Info = 200; - - /** - * Uncommon events - */ - case Notice = 250; - - /** - * Exceptional occurrences that are not errors - * - * Examples: Use of deprecated APIs, poor use of an API, - * undesirable things that are not necessarily wrong. - */ - case Warning = 300; - - /** - * Runtime errors - */ - case Error = 400; - - /** - * Critical conditions - * - * Example: Application component unavailable, unexpected exception. - */ - case Critical = 500; - - /** - * Action must be taken immediately - * - * Example: Entire website down, database unavailable, etc. - * This should trigger the SMS alerts and wake you up. - */ - case Alert = 550; - - /** - * Urgent alert. - */ - case Emergency = 600; - - /** - * @param value-of|LogLevel::*|'Debug'|'Info'|'Notice'|'Warning'|'Error'|'Critical'|'Alert'|'Emergency' $name - * @return static - */ - public static function fromName(string $name): self - { - return match ($name) { - 'debug', 'Debug', 'DEBUG' => self::Debug, - 'info', 'Info', 'INFO' => self::Info, - 'notice', 'Notice', 'NOTICE' => self::Notice, - 'warning', 'Warning', 'WARNING' => self::Warning, - 'error', 'Error', 'ERROR' => self::Error, - 'critical', 'Critical', 'CRITICAL' => self::Critical, - 'alert', 'Alert', 'ALERT' => self::Alert, - 'emergency', 'Emergency', 'EMERGENCY' => self::Emergency, - }; - } - - /** - * @param value-of $value - * @return static - */ - public static function fromValue(int $value): self - { - return self::from($value); - } - - /** - * Returns true if the passed $level is higher or equal to $this - */ - public function includes(Level $level): bool - { - return $this->value <= $level->value; - } - - public function isHigherThan(Level $level): bool - { - return $this->value > $level->value; - } - - public function isLowerThan(Level $level): bool - { - return $this->value < $level->value; - } - - /** - * Returns the monolog standardized all-capitals name of the level - * - * Use this instead of $level->name which returns the enum case name (e.g. Debug vs DEBUG if you use getName()) - * - * @return value-of - */ - public function getName(): string - { - return match ($this) { - self::Debug => 'DEBUG', - self::Info => 'INFO', - self::Notice => 'NOTICE', - self::Warning => 'WARNING', - self::Error => 'ERROR', - self::Critical => 'CRITICAL', - self::Alert => 'ALERT', - self::Emergency => 'EMERGENCY', - }; - } - - /** - * Returns the PSR-3 level matching this instance - * - * @phpstan-return \Psr\Log\LogLevel::* - */ - public function toPsrLogLevel(): string - { - return match ($this) { - self::Debug => LogLevel::DEBUG, - self::Info => LogLevel::INFO, - self::Notice => LogLevel::NOTICE, - self::Warning => LogLevel::WARNING, - self::Error => LogLevel::ERROR, - self::Critical => LogLevel::CRITICAL, - self::Alert => LogLevel::ALERT, - self::Emergency => LogLevel::EMERGENCY, - }; - } - - /** - * Returns the RFC 5424 level matching this instance - * - * @phpstan-return int<0, 7> - */ - public function toRFC5424Level(): int - { - return match ($this) { - self::Debug => 7, - self::Info => 6, - self::Notice => 5, - self::Warning => 4, - self::Error => 3, - self::Critical => 2, - self::Alert => 1, - self::Emergency => 0, - }; - } - - public const VALUES = [ - 100, - 200, - 250, - 300, - 400, - 500, - 550, - 600, - ]; - - public const NAMES = [ - 'DEBUG', - 'INFO', - 'NOTICE', - 'WARNING', - 'ERROR', - 'CRITICAL', - 'ALERT', - 'EMERGENCY', - ]; -} diff --git a/vendor/monolog/monolog/src/Monolog/LogRecord.php b/vendor/monolog/monolog/src/Monolog/LogRecord.php deleted file mode 100644 index 14c82f3..0000000 --- a/vendor/monolog/monolog/src/Monolog/LogRecord.php +++ /dev/null @@ -1,127 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog; - -use ArrayAccess; - -/** - * Monolog log record - * - * @author Jordi Boggiano - * @template-implements ArrayAccess<'message'|'level'|'context'|'level_name'|'channel'|'datetime'|'extra'|'formatted', int|string|\DateTimeImmutable|array> - */ -class LogRecord implements ArrayAccess -{ - private const MODIFIABLE_FIELDS = [ - 'extra' => true, - 'formatted' => true, - ]; - - public function __construct( - public readonly \DateTimeImmutable $datetime, - public readonly string $channel, - public readonly Level $level, - public readonly string $message, - /** @var array */ - public readonly array $context = [], - /** @var array */ - public array $extra = [], - public mixed $formatted = null, - ) { - } - - public function offsetSet(mixed $offset, mixed $value): void - { - if ($offset === 'extra') { - if (!\is_array($value)) { - throw new \InvalidArgumentException('extra must be an array'); - } - - $this->extra = $value; - - return; - } - - if ($offset === 'formatted') { - $this->formatted = $value; - - return; - } - - throw new \LogicException('Unsupported operation: setting '.$offset); - } - - public function offsetExists(mixed $offset): bool - { - if ($offset === 'level_name') { - return true; - } - - return isset($this->{$offset}); - } - - public function offsetUnset(mixed $offset): void - { - throw new \LogicException('Unsupported operation'); - } - - public function &offsetGet(mixed $offset): mixed - { - // handle special cases for the level enum - if ($offset === 'level_name') { - // avoid returning readonly props by ref as this is illegal - $copy = $this->level->getName(); - - return $copy; - } - if ($offset === 'level') { - // avoid returning readonly props by ref as this is illegal - $copy = $this->level->value; - - return $copy; - } - - if (isset(self::MODIFIABLE_FIELDS[$offset])) { - return $this->{$offset}; - } - - // avoid returning readonly props by ref as this is illegal - $copy = $this->{$offset}; - - return $copy; - } - - /** - * @phpstan-return array{message: string, context: mixed[], level: value-of, level_name: value-of, channel: string, datetime: \DateTimeImmutable, extra: mixed[]} - */ - public function toArray(): array - { - return [ - 'message' => $this->message, - 'context' => $this->context, - 'level' => $this->level->value, - 'level_name' => $this->level->getName(), - 'channel' => $this->channel, - 'datetime' => $this->datetime, - 'extra' => $this->extra, - ]; - } - - public function with(mixed ...$args): self - { - foreach (['message', 'context', 'level', 'channel', 'datetime', 'extra'] as $prop) { - $args[$prop] ??= $this->{$prop}; - } - - return new self(...$args); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Logger.php b/vendor/monolog/monolog/src/Monolog/Logger.php deleted file mode 100644 index e545c44..0000000 --- a/vendor/monolog/monolog/src/Monolog/Logger.php +++ /dev/null @@ -1,751 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog; - -use Closure; -use DateTimeZone; -use Fiber; -use Monolog\Handler\HandlerInterface; -use Monolog\Processor\ProcessorInterface; -use Psr\Log\LoggerInterface; -use Psr\Log\InvalidArgumentException; -use Psr\Log\LogLevel; -use Throwable; -use Stringable; -use WeakMap; - -/** - * Monolog log channel - * - * It contains a stack of Handlers and a stack of Processors, - * and uses them to store records that are added to it. - * - * @author Jordi Boggiano - * @final - */ -class Logger implements LoggerInterface, ResettableInterface -{ - /** - * Detailed debug information - * - * @deprecated Use \Monolog\Level::Debug - */ - public const DEBUG = 100; - - /** - * Interesting events - * - * Examples: User logs in, SQL logs. - * - * @deprecated Use \Monolog\Level::Info - */ - public const INFO = 200; - - /** - * Uncommon events - * - * @deprecated Use \Monolog\Level::Notice - */ - public const NOTICE = 250; - - /** - * Exceptional occurrences that are not errors - * - * Examples: Use of deprecated APIs, poor use of an API, - * undesirable things that are not necessarily wrong. - * - * @deprecated Use \Monolog\Level::Warning - */ - public const WARNING = 300; - - /** - * Runtime errors - * - * @deprecated Use \Monolog\Level::Error - */ - public const ERROR = 400; - - /** - * Critical conditions - * - * Example: Application component unavailable, unexpected exception. - * - * @deprecated Use \Monolog\Level::Critical - */ - public const CRITICAL = 500; - - /** - * Action must be taken immediately - * - * Example: Entire website down, database unavailable, etc. - * This should trigger the SMS alerts and wake you up. - * - * @deprecated Use \Monolog\Level::Alert - */ - public const ALERT = 550; - - /** - * Urgent alert. - * - * @deprecated Use \Monolog\Level::Emergency - */ - public const EMERGENCY = 600; - - /** - * Monolog API version - * - * This is only bumped when API breaks are done and should - * follow the major version of the library - */ - public const API = 3; - - /** - * Mapping between levels numbers defined in RFC 5424 and Monolog ones - * - * @phpstan-var array $rfc_5424_levels - */ - private const RFC_5424_LEVELS = [ - 7 => Level::Debug, - 6 => Level::Info, - 5 => Level::Notice, - 4 => Level::Warning, - 3 => Level::Error, - 2 => Level::Critical, - 1 => Level::Alert, - 0 => Level::Emergency, - ]; - - protected string $name; - - /** - * The handler stack - * - * @var list - */ - protected array $handlers; - - /** - * Processors that will process all log records - * - * To process records of a single handler instead, add the processor on that specific handler - * - * @var array<(callable(LogRecord): LogRecord)|ProcessorInterface> - */ - protected array $processors; - - protected bool $microsecondTimestamps = true; - - protected DateTimeZone $timezone; - - protected Closure|null $exceptionHandler = null; - - /** - * Keeps track of depth to prevent infinite logging loops - */ - private int $logDepth = 0; - - /** - * @var WeakMap, int> Keeps track of depth inside fibers to prevent infinite logging loops - */ - private WeakMap $fiberLogDepth; - - /** - * Whether to detect infinite logging loops - * This can be disabled via {@see useLoggingLoopDetection} if you have async handlers that do not play well with this - */ - private bool $detectCycles = true; - - /** - * @param string $name The logging channel, a simple descriptive name that is attached to all log records - * @param list $handlers Optional stack of handlers, the first one in the array is called first, etc. - * @param callable[] $processors Optional array of processors - * @param DateTimeZone|null $timezone Optional timezone, if not provided date_default_timezone_get() will be used - * - * @phpstan-param array<(callable(LogRecord): LogRecord)|ProcessorInterface> $processors - */ - public function __construct(string $name, array $handlers = [], array $processors = [], DateTimeZone|null $timezone = null) - { - $this->name = $name; - $this->setHandlers($handlers); - $this->processors = $processors; - $this->timezone = $timezone ?? new DateTimeZone(date_default_timezone_get()); - $this->fiberLogDepth = new \WeakMap(); - } - - public function getName(): string - { - return $this->name; - } - - /** - * Return a new cloned instance with the name changed - * - * @return static - */ - public function withName(string $name): self - { - $new = clone $this; - $new->name = $name; - - return $new; - } - - /** - * Pushes a handler on to the stack. - * - * @return $this - */ - public function pushHandler(HandlerInterface $handler): self - { - array_unshift($this->handlers, $handler); - - return $this; - } - - /** - * Pops a handler from the stack - * - * @throws \LogicException If empty handler stack - */ - public function popHandler(): HandlerInterface - { - if (0 === \count($this->handlers)) { - throw new \LogicException('You tried to pop from an empty handler stack.'); - } - - return array_shift($this->handlers); - } - - /** - * Set handlers, replacing all existing ones. - * - * If a map is passed, keys will be ignored. - * - * @param list $handlers - * @return $this - */ - public function setHandlers(array $handlers): self - { - $this->handlers = []; - foreach (array_reverse($handlers) as $handler) { - $this->pushHandler($handler); - } - - return $this; - } - - /** - * @return list - */ - public function getHandlers(): array - { - return $this->handlers; - } - - /** - * Adds a processor on to the stack. - * - * @phpstan-param ProcessorInterface|(callable(LogRecord): LogRecord) $callback - * @return $this - */ - public function pushProcessor(ProcessorInterface|callable $callback): self - { - array_unshift($this->processors, $callback); - - return $this; - } - - /** - * Removes the processor on top of the stack and returns it. - * - * @phpstan-return ProcessorInterface|(callable(LogRecord): LogRecord) - * @throws \LogicException If empty processor stack - */ - public function popProcessor(): callable - { - if (0 === \count($this->processors)) { - throw new \LogicException('You tried to pop from an empty processor stack.'); - } - - return array_shift($this->processors); - } - - /** - * @return callable[] - * @phpstan-return array - */ - public function getProcessors(): array - { - return $this->processors; - } - - /** - * Control the use of microsecond resolution timestamps in the 'datetime' - * member of new records. - * - * As of PHP7.1 microseconds are always included by the engine, so - * there is no performance penalty and Monolog 2 enabled microseconds - * by default. This function lets you disable them though in case you want - * to suppress microseconds from the output. - * - * @param bool $micro True to use microtime() to create timestamps - * @return $this - */ - public function useMicrosecondTimestamps(bool $micro): self - { - $this->microsecondTimestamps = $micro; - - return $this; - } - - /** - * @return $this - */ - public function useLoggingLoopDetection(bool $detectCycles): self - { - $this->detectCycles = $detectCycles; - - return $this; - } - - /** - * Adds a log record. - * - * @param int $level The logging level (a Monolog or RFC 5424 level) - * @param string $message The log message - * @param mixed[] $context The log context - * @param JsonSerializableDateTimeImmutable|null $datetime Optional log date to log into the past or future - * - * @return bool Whether the record has been processed - * - * @phpstan-param value-of|Level $level - */ - public function addRecord(int|Level $level, string $message, array $context = [], JsonSerializableDateTimeImmutable|null $datetime = null): bool - { - if (\is_int($level) && isset(self::RFC_5424_LEVELS[$level])) { - $level = self::RFC_5424_LEVELS[$level]; - } - - if ($this->detectCycles) { - if (null !== ($fiber = Fiber::getCurrent())) { - $logDepth = $this->fiberLogDepth[$fiber] = ($this->fiberLogDepth[$fiber] ?? 0) + 1; - } else { - $logDepth = ++$this->logDepth; - } - } else { - $logDepth = 0; - } - - if ($logDepth === 3) { - $this->warning('A possible infinite logging loop was detected and aborted. It appears some of your handler code is triggering logging, see the previous log record for a hint as to what may be the cause.'); - - return false; - } elseif ($logDepth >= 5) { // log depth 4 is let through, so we can log the warning above - return false; - } - - try { - $recordInitialized = \count($this->processors) === 0; - - $record = new LogRecord( - datetime: $datetime ?? new JsonSerializableDateTimeImmutable($this->microsecondTimestamps, $this->timezone), - channel: $this->name, - level: self::toMonologLevel($level), - message: $message, - context: $context, - extra: [], - ); - $handled = false; - - foreach ($this->handlers as $handler) { - if (false === $recordInitialized) { - // skip initializing the record as long as no handler is going to handle it - if (!$handler->isHandling($record)) { - continue; - } - - try { - foreach ($this->processors as $processor) { - $record = $processor($record); - } - $recordInitialized = true; - } catch (Throwable $e) { - $this->handleException($e, $record); - - return true; - } - } - - // once the record is initialized, send it to all handlers as long as the bubbling chain is not interrupted - try { - $handled = true; - if (true === $handler->handle(clone $record)) { - break; - } - } catch (Throwable $e) { - $this->handleException($e, $record); - - return true; - } - } - - return $handled; - } finally { - if ($this->detectCycles) { - if (isset($fiber)) { - $this->fiberLogDepth[$fiber]--; - } else { - $this->logDepth--; - } - } - } - } - - /** - * Ends a log cycle and frees all resources used by handlers. - * - * Closing a Handler means flushing all buffers and freeing any open resources/handles. - * Handlers that have been closed should be able to accept log records again and re-open - * themselves on demand, but this may not always be possible depending on implementation. - * - * This is useful at the end of a request and will be called automatically on every handler - * when they get destructed. - */ - public function close(): void - { - foreach ($this->handlers as $handler) { - $handler->close(); - } - } - - /** - * Ends a log cycle and resets all handlers and processors to their initial state. - * - * Resetting a Handler or a Processor means flushing/cleaning all buffers, resetting internal - * state, and getting it back to a state in which it can receive log records again. - * - * This is useful in case you want to avoid logs leaking between two requests or jobs when you - * have a long running process like a worker or an application server serving multiple requests - * in one process. - */ - public function reset(): void - { - foreach ($this->handlers as $handler) { - if ($handler instanceof ResettableInterface) { - $handler->reset(); - } - } - - foreach ($this->processors as $processor) { - if ($processor instanceof ResettableInterface) { - $processor->reset(); - } - } - } - - /** - * Gets the name of the logging level as a string. - * - * This still returns a string instead of a Level for BC, but new code should not rely on this method. - * - * @throws \Psr\Log\InvalidArgumentException If level is not defined - * - * @phpstan-param value-of|Level $level - * @phpstan-return value-of - * - * @deprecated Since 3.0, use {@see toMonologLevel} or {@see \Monolog\Level->getName()} instead - */ - public static function getLevelName(int|Level $level): string - { - return self::toMonologLevel($level)->getName(); - } - - /** - * Converts PSR-3 levels to Monolog ones if necessary - * - * @param int|string|Level|LogLevel::* $level Level number (monolog) or name (PSR-3) - * @throws \Psr\Log\InvalidArgumentException If level is not defined - * - * @phpstan-param value-of|value-of|Level|LogLevel::* $level - */ - public static function toMonologLevel(string|int|Level $level): Level - { - if ($level instanceof Level) { - return $level; - } - - if (\is_string($level)) { - if (is_numeric($level)) { - $levelEnum = Level::tryFrom((int) $level); - if ($levelEnum === null) { - throw new InvalidArgumentException('Level "'.$level.'" is not defined, use one of: '.implode(', ', Level::NAMES + Level::VALUES)); - } - - return $levelEnum; - } - - // Contains first char of all log levels and avoids using strtoupper() which may have - // strange results depending on locale (for example, "i" will become "İ" in Turkish locale) - $upper = strtr(substr($level, 0, 1), 'dinweca', 'DINWECA') . strtolower(substr($level, 1)); - if (\defined(Level::class.'::'.$upper)) { - return \constant(Level::class . '::' . $upper); - } - - throw new InvalidArgumentException('Level "'.$level.'" is not defined, use one of: '.implode(', ', Level::NAMES + Level::VALUES)); - } - - $levelEnum = Level::tryFrom($level); - if ($levelEnum === null) { - throw new InvalidArgumentException('Level "'.var_export($level, true).'" is not defined, use one of: '.implode(', ', Level::NAMES + Level::VALUES)); - } - - return $levelEnum; - } - - /** - * Checks whether the Logger has a handler that listens on the given level - * - * @phpstan-param value-of|value-of|Level|LogLevel::* $level - */ - public function isHandling(int|string|Level $level): bool - { - $record = new LogRecord( - datetime: new JsonSerializableDateTimeImmutable($this->microsecondTimestamps, $this->timezone), - channel: $this->name, - message: '', - level: self::toMonologLevel($level), - ); - - foreach ($this->handlers as $handler) { - if ($handler->isHandling($record)) { - return true; - } - } - - return false; - } - - /** - * Set a custom exception handler that will be called if adding a new record fails - * - * The Closure will receive an exception object and the record that failed to be logged - * - * @return $this - */ - public function setExceptionHandler(Closure|null $callback): self - { - $this->exceptionHandler = $callback; - - return $this; - } - - public function getExceptionHandler(): Closure|null - { - return $this->exceptionHandler; - } - - /** - * Adds a log record at an arbitrary level. - * - * This method allows for compatibility with common interfaces. - * - * @param mixed $level The log level (a Monolog, PSR-3 or RFC 5424 level) - * @param string|Stringable $message The log message - * @param mixed[] $context The log context - * - * @phpstan-param Level|LogLevel::* $level - */ - public function log($level, string|\Stringable $message, array $context = []): void - { - if (!$level instanceof Level) { - if (!\is_string($level) && !\is_int($level)) { - throw new \InvalidArgumentException('$level is expected to be a string, int or '.Level::class.' instance'); - } - - if (isset(self::RFC_5424_LEVELS[$level])) { - $level = self::RFC_5424_LEVELS[$level]; - } - - $level = static::toMonologLevel($level); - } - - $this->addRecord($level, (string) $message, $context); - } - - /** - * Adds a log record at the DEBUG level. - * - * This method allows for compatibility with common interfaces. - * - * @param string|Stringable $message The log message - * @param mixed[] $context The log context - */ - public function debug(string|\Stringable $message, array $context = []): void - { - $this->addRecord(Level::Debug, (string) $message, $context); - } - - /** - * Adds a log record at the INFO level. - * - * This method allows for compatibility with common interfaces. - * - * @param string|Stringable $message The log message - * @param mixed[] $context The log context - */ - public function info(string|\Stringable $message, array $context = []): void - { - $this->addRecord(Level::Info, (string) $message, $context); - } - - /** - * Adds a log record at the NOTICE level. - * - * This method allows for compatibility with common interfaces. - * - * @param string|Stringable $message The log message - * @param mixed[] $context The log context - */ - public function notice(string|\Stringable $message, array $context = []): void - { - $this->addRecord(Level::Notice, (string) $message, $context); - } - - /** - * Adds a log record at the WARNING level. - * - * This method allows for compatibility with common interfaces. - * - * @param string|Stringable $message The log message - * @param mixed[] $context The log context - */ - public function warning(string|\Stringable $message, array $context = []): void - { - $this->addRecord(Level::Warning, (string) $message, $context); - } - - /** - * Adds a log record at the ERROR level. - * - * This method allows for compatibility with common interfaces. - * - * @param string|Stringable $message The log message - * @param mixed[] $context The log context - */ - public function error(string|\Stringable $message, array $context = []): void - { - $this->addRecord(Level::Error, (string) $message, $context); - } - - /** - * Adds a log record at the CRITICAL level. - * - * This method allows for compatibility with common interfaces. - * - * @param string|Stringable $message The log message - * @param mixed[] $context The log context - */ - public function critical(string|\Stringable $message, array $context = []): void - { - $this->addRecord(Level::Critical, (string) $message, $context); - } - - /** - * Adds a log record at the ALERT level. - * - * This method allows for compatibility with common interfaces. - * - * @param string|Stringable $message The log message - * @param mixed[] $context The log context - */ - public function alert(string|\Stringable $message, array $context = []): void - { - $this->addRecord(Level::Alert, (string) $message, $context); - } - - /** - * Adds a log record at the EMERGENCY level. - * - * This method allows for compatibility with common interfaces. - * - * @param string|Stringable $message The log message - * @param mixed[] $context The log context - */ - public function emergency(string|\Stringable $message, array $context = []): void - { - $this->addRecord(Level::Emergency, (string) $message, $context); - } - - /** - * Sets the timezone to be used for the timestamp of log records. - * - * @return $this - */ - public function setTimezone(DateTimeZone $tz): self - { - $this->timezone = $tz; - - return $this; - } - - /** - * Returns the timezone to be used for the timestamp of log records. - */ - public function getTimezone(): DateTimeZone - { - return $this->timezone; - } - - /** - * Delegates exception management to the custom exception handler, - * or throws the exception if no custom handler is set. - */ - protected function handleException(Throwable $e, LogRecord $record): void - { - if (null === $this->exceptionHandler) { - throw $e; - } - - ($this->exceptionHandler)($e, $record); - } - - /** - * @return array - */ - public function __serialize(): array - { - return [ - 'name' => $this->name, - 'handlers' => $this->handlers, - 'processors' => $this->processors, - 'microsecondTimestamps' => $this->microsecondTimestamps, - 'timezone' => $this->timezone, - 'exceptionHandler' => $this->exceptionHandler, - 'logDepth' => $this->logDepth, - 'detectCycles' => $this->detectCycles, - ]; - } - - /** - * @param array $data - */ - public function __unserialize(array $data): void - { - foreach (['name', 'handlers', 'processors', 'microsecondTimestamps', 'timezone', 'exceptionHandler', 'logDepth', 'detectCycles'] as $property) { - if (isset($data[$property])) { - $this->$property = $data[$property]; - } - } - - $this->fiberLogDepth = new \WeakMap(); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Processor/ClosureContextProcessor.php b/vendor/monolog/monolog/src/Monolog/Processor/ClosureContextProcessor.php deleted file mode 100644 index 514b354..0000000 --- a/vendor/monolog/monolog/src/Monolog/Processor/ClosureContextProcessor.php +++ /dev/null @@ -1,51 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Processor; - -use Monolog\LogRecord; - -/** - * Generates a context from a Closure if the Closure is the only value - * in the context - * - * It helps reduce the performance impact of debug logs if they do - * need to create lots of context information. If this processor is added - * on the correct handler the context data will only be generated - * when the logs are actually logged to that handler, which is useful when - * using FingersCrossedHandler or other filtering handlers to conditionally - * log records. - */ -class ClosureContextProcessor implements ProcessorInterface -{ - public function __invoke(LogRecord $record): LogRecord - { - $context = $record->context; - if (isset($context[0]) && 1 === \count($context) && $context[0] instanceof \Closure) { - try { - $context = $context[0](); - } catch (\Throwable $e) { - $context = [ - 'error_on_context_generation' => $e->getMessage(), - 'exception' => $e, - ]; - } - - if (!\is_array($context)) { - $context = [$context]; - } - - $record = $record->with(context: $context); - } - - return $record; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Processor/GitProcessor.php b/vendor/monolog/monolog/src/Monolog/Processor/GitProcessor.php deleted file mode 100644 index 6b25505..0000000 --- a/vendor/monolog/monolog/src/Monolog/Processor/GitProcessor.php +++ /dev/null @@ -1,75 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Processor; - -use Monolog\Level; -use Monolog\Logger; -use Psr\Log\LogLevel; -use Monolog\LogRecord; - -/** - * Injects Git branch and Git commit SHA in all records - * - * @author Nick Otter - * @author Jordi Boggiano - */ -class GitProcessor implements ProcessorInterface -{ - private Level $level; - /** @var array{branch: string, commit: string}|array|null */ - private static $cache = null; - - /** - * @param int|string|Level|LogLevel::* $level The minimum logging level at which this Processor will be triggered - * - * @phpstan-param value-of|value-of|Level|LogLevel::* $level - */ - public function __construct(int|string|Level $level = Level::Debug) - { - $this->level = Logger::toMonologLevel($level); - } - - /** - * @inheritDoc - */ - public function __invoke(LogRecord $record): LogRecord - { - // return if the level is not high enough - if ($record->level->isLowerThan($this->level)) { - return $record; - } - - $record->extra['git'] = self::getGitInfo(); - - return $record; - } - - /** - * @return array{branch: string, commit: string}|array - */ - private static function getGitInfo(): array - { - if (self::$cache !== null) { - return self::$cache; - } - - $branches = shell_exec('git branch -v --no-abbrev'); - if (\is_string($branches) && 1 === preg_match('{^\* (.+?)\s+([a-f0-9]{40})(?:\s|$)}m', $branches, $matches)) { - return self::$cache = [ - 'branch' => $matches[1], - 'commit' => $matches[2], - ]; - } - - return self::$cache = []; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Processor/HostnameProcessor.php b/vendor/monolog/monolog/src/Monolog/Processor/HostnameProcessor.php deleted file mode 100644 index cba6e09..0000000 --- a/vendor/monolog/monolog/src/Monolog/Processor/HostnameProcessor.php +++ /dev/null @@ -1,37 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Processor; - -use Monolog\LogRecord; - -/** - * Injects value of gethostname in all records - */ -class HostnameProcessor implements ProcessorInterface -{ - private static string $host; - - public function __construct() - { - self::$host = (string) gethostname(); - } - - /** - * @inheritDoc - */ - public function __invoke(LogRecord $record): LogRecord - { - $record->extra['hostname'] = self::$host; - - return $record; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php b/vendor/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php deleted file mode 100644 index b942dc0..0000000 --- a/vendor/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php +++ /dev/null @@ -1,126 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Processor; - -use Monolog\Level; -use Monolog\Logger; -use Psr\Log\LogLevel; -use Monolog\LogRecord; - -/** - * Injects line/file:class/function where the log message came from - * - * Warning: This only works if the handler processes the logs directly. - * If you put the processor on a handler that is behind a FingersCrossedHandler - * for example, the processor will only be called once the trigger level is reached, - * and all the log records will have the same file/line/.. data from the call that - * triggered the FingersCrossedHandler. - * - * @author Jordi Boggiano - */ -class IntrospectionProcessor implements ProcessorInterface -{ - protected Level $level; - - /** @var string[] */ - protected array $skipClassesPartials; - - protected int $skipStackFramesCount; - - protected const SKIP_FUNCTIONS = [ - 'call_user_func', - 'call_user_func_array', - ]; - - protected const SKIP_CLASSES = [ - 'Monolog\\', - ]; - - /** - * @param string|int|Level $level The minimum logging level at which this Processor will be triggered - * @param string[] $skipClassesPartials - * - * @phpstan-param value-of|value-of|Level|LogLevel::* $level - */ - public function __construct(int|string|Level $level = Level::Debug, array $skipClassesPartials = [], int $skipStackFramesCount = 0) - { - $this->level = Logger::toMonologLevel($level); - $this->skipClassesPartials = array_merge(static::SKIP_CLASSES, $skipClassesPartials); - $this->skipStackFramesCount = $skipStackFramesCount; - } - - /** - * @inheritDoc - */ - public function __invoke(LogRecord $record): LogRecord - { - // return if the level is not high enough - if ($record->level->isLowerThan($this->level)) { - return $record; - } - - $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS); - - // skip first since it's always the current method - array_shift($trace); - // the call_user_func call is also skipped - array_shift($trace); - - $i = 0; - - while ($this->isTraceClassOrSkippedFunction($trace, $i)) { - if (isset($trace[$i]['class'])) { - foreach ($this->skipClassesPartials as $part) { - if (strpos($trace[$i]['class'], $part) !== false) { - $i++; - - continue 2; - } - } - } elseif (\in_array($trace[$i]['function'], self::SKIP_FUNCTIONS, true)) { - $i++; - - continue; - } - - break; - } - - $i += $this->skipStackFramesCount; - - // we should have the call source now - $record->extra = array_merge( - $record->extra, - [ - 'file' => $trace[$i - 1]['file'] ?? null, - 'line' => $trace[$i - 1]['line'] ?? null, - 'class' => $trace[$i]['class'] ?? null, - 'callType' => $trace[$i]['type'] ?? null, - 'function' => $trace[$i]['function'] ?? null, - ] - ); - - return $record; - } - - /** - * @param array $trace - */ - private function isTraceClassOrSkippedFunction(array $trace, int $index): bool - { - if (!isset($trace[$index])) { - return false; - } - - return isset($trace[$index]['class']) || \in_array($trace[$index]['function'], self::SKIP_FUNCTIONS, true); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Processor/LoadAverageProcessor.php b/vendor/monolog/monolog/src/Monolog/Processor/LoadAverageProcessor.php deleted file mode 100644 index 762ed91..0000000 --- a/vendor/monolog/monolog/src/Monolog/Processor/LoadAverageProcessor.php +++ /dev/null @@ -1,66 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Processor; - -use Monolog\LogRecord; - -/** - * Injects sys_getloadavg in all records @see https://www.php.net/manual/en/function.sys-getloadavg.php - * - * @author Johan Vlaar - */ -class LoadAverageProcessor implements ProcessorInterface -{ - public const LOAD_1_MINUTE = 0; - public const LOAD_5_MINUTE = 1; - public const LOAD_15_MINUTE = 2; - - private const AVAILABLE_LOAD = [ - self::LOAD_1_MINUTE, - self::LOAD_5_MINUTE, - self::LOAD_15_MINUTE, - ]; - - /** - * @var int - */ - protected $avgSystemLoad; - - /** - * @param self::LOAD_* $avgSystemLoad - */ - public function __construct(int $avgSystemLoad = self::LOAD_1_MINUTE) - { - if (!\in_array($avgSystemLoad, self::AVAILABLE_LOAD, true)) { - throw new \InvalidArgumentException(sprintf('Invalid average system load: `%s`', $avgSystemLoad)); - } - $this->avgSystemLoad = $avgSystemLoad; - } - - /** - * {@inheritDoc} - */ - public function __invoke(LogRecord $record): LogRecord - { - if (!\function_exists('sys_getloadavg')) { - return $record; - } - $usage = sys_getloadavg(); - if (false === $usage) { - return $record; - } - - $record->extra['load_average'] = $usage[$this->avgSystemLoad]; - - return $record; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php b/vendor/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php deleted file mode 100644 index adc32c6..0000000 --- a/vendor/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php +++ /dev/null @@ -1,39 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Processor; - -use Monolog\LogRecord; - -/** - * Injects memory_get_peak_usage in all records - * - * @see Monolog\Processor\MemoryProcessor::__construct() for options - * @author Rob Jensen - */ -class MemoryPeakUsageProcessor extends MemoryProcessor -{ - /** - * @inheritDoc - */ - public function __invoke(LogRecord $record): LogRecord - { - $usage = memory_get_peak_usage($this->realUsage); - - if ($this->useFormatting) { - $usage = $this->formatBytes($usage); - } - - $record->extra['memory_peak_usage'] = $usage; - - return $record; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php b/vendor/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php deleted file mode 100644 index f808e51..0000000 --- a/vendor/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php +++ /dev/null @@ -1,60 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Processor; - -/** - * Some methods that are common for all memory processors - * - * @author Rob Jensen - */ -abstract class MemoryProcessor implements ProcessorInterface -{ - /** - * @var bool If true, get the real size of memory allocated from system. Else, only the memory used by emalloc() is reported. - */ - protected bool $realUsage; - - /** - * @var bool If true, then format memory size to human readable string (MB, KB, B depending on size) - */ - protected bool $useFormatting; - - /** - * @param bool $realUsage Set this to true to get the real size of memory allocated from system. - * @param bool $useFormatting If true, then format memory size to human readable string (MB, KB, B depending on size) - */ - public function __construct(bool $realUsage = true, bool $useFormatting = true) - { - $this->realUsage = $realUsage; - $this->useFormatting = $useFormatting; - } - - /** - * Formats bytes into a human readable string if $this->useFormatting is true, otherwise return $bytes as is - * - * @return string|int Formatted string if $this->useFormatting is true, otherwise return $bytes as int - */ - protected function formatBytes(int $bytes) - { - if (!$this->useFormatting) { - return $bytes; - } - - if ($bytes > 1024 * 1024) { - return round($bytes / 1024 / 1024, 2).' MB'; - } elseif ($bytes > 1024) { - return round($bytes / 1024, 2).' KB'; - } - - return $bytes . ' B'; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Processor/MemoryUsageProcessor.php b/vendor/monolog/monolog/src/Monolog/Processor/MemoryUsageProcessor.php deleted file mode 100644 index a814b1d..0000000 --- a/vendor/monolog/monolog/src/Monolog/Processor/MemoryUsageProcessor.php +++ /dev/null @@ -1,39 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Processor; - -use Monolog\LogRecord; - -/** - * Injects memory_get_usage in all records - * - * @see Monolog\Processor\MemoryProcessor::__construct() for options - * @author Rob Jensen - */ -class MemoryUsageProcessor extends MemoryProcessor -{ - /** - * @inheritDoc - */ - public function __invoke(LogRecord $record): LogRecord - { - $usage = memory_get_usage($this->realUsage); - - if ($this->useFormatting) { - $usage = $this->formatBytes($usage); - } - - $record->extra['memory_usage'] = $usage; - - return $record; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php b/vendor/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php deleted file mode 100644 index 3076a3d..0000000 --- a/vendor/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php +++ /dev/null @@ -1,80 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Processor; - -use Monolog\Level; -use Monolog\Logger; -use Psr\Log\LogLevel; -use Monolog\LogRecord; - -/** - * Injects Hg branch and Hg revision number in all records - * - * @author Jonathan A. Schweder - */ -class MercurialProcessor implements ProcessorInterface -{ - private Level $level; - /** @var array{branch: string, revision: string}|array|null */ - private static $cache = null; - - /** - * @param int|string|Level $level The minimum logging level at which this Processor will be triggered - * - * @phpstan-param value-of|value-of|Level|LogLevel::* $level - */ - public function __construct(int|string|Level $level = Level::Debug) - { - $this->level = Logger::toMonologLevel($level); - } - - /** - * @inheritDoc - */ - public function __invoke(LogRecord $record): LogRecord - { - // return if the level is not high enough - if ($record->level->isLowerThan($this->level)) { - return $record; - } - - $record->extra['hg'] = self::getMercurialInfo(); - - return $record; - } - - /** - * @return array{branch: string, revision: string}|array - */ - private static function getMercurialInfo(): array - { - if (self::$cache !== null) { - return self::$cache; - } - - $result = explode(' ', trim((string) shell_exec('hg id -nb'))); - if (\count($result) >= 3) { - return self::$cache = [ - 'branch' => $result[1], - 'revision' => $result[2], - ]; - } - if (\count($result) === 2) { - return self::$cache = [ - 'branch' => $result[1], - 'revision' => $result[0], - ]; - } - - return self::$cache = []; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.php b/vendor/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.php deleted file mode 100644 index bb9a522..0000000 --- a/vendor/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.php +++ /dev/null @@ -1,32 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Processor; - -use Monolog\LogRecord; - -/** - * Adds value of getmypid into records - * - * @author Andreas Hörnicke - */ -class ProcessIdProcessor implements ProcessorInterface -{ - /** - * @inheritDoc - */ - public function __invoke(LogRecord $record): LogRecord - { - $record->extra['process_id'] = getmypid(); - - return $record; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Processor/ProcessorInterface.php b/vendor/monolog/monolog/src/Monolog/Processor/ProcessorInterface.php deleted file mode 100644 index ebe41fc..0000000 --- a/vendor/monolog/monolog/src/Monolog/Processor/ProcessorInterface.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Processor; - -use Monolog\LogRecord; - -/** - * An optional interface to allow labelling Monolog processors. - * - * @author Nicolas Grekas - */ -interface ProcessorInterface -{ - /** - * @return LogRecord The processed record - */ - public function __invoke(LogRecord $record); -} diff --git a/vendor/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php b/vendor/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php deleted file mode 100644 index 291361d..0000000 --- a/vendor/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php +++ /dev/null @@ -1,87 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Processor; - -use Monolog\Utils; -use Monolog\LogRecord; - -/** - * Processes a record's message according to PSR-3 rules - * - * It replaces {foo} with the value from $context['foo'] - * - * @author Jordi Boggiano - */ -class PsrLogMessageProcessor implements ProcessorInterface -{ - public const SIMPLE_DATE = "Y-m-d\TH:i:s.uP"; - - private ?string $dateFormat; - - private bool $removeUsedContextFields; - - /** - * @param string|null $dateFormat The format of the timestamp: one supported by DateTime::format - * @param bool $removeUsedContextFields If set to true the fields interpolated into message gets unset - */ - public function __construct(?string $dateFormat = null, bool $removeUsedContextFields = false) - { - $this->dateFormat = $dateFormat; - $this->removeUsedContextFields = $removeUsedContextFields; - } - - /** - * @inheritDoc - */ - public function __invoke(LogRecord $record): LogRecord - { - if (false === strpos($record->message, '{')) { - return $record; - } - - $replacements = []; - $context = $record->context; - - foreach ($context as $key => $val) { - $placeholder = '{' . $key . '}'; - if (strpos($record->message, $placeholder) === false) { - continue; - } - - if (null === $val || \is_scalar($val) || (\is_object($val) && method_exists($val, "__toString"))) { - $replacements[$placeholder] = $val; - } elseif ($val instanceof \DateTimeInterface) { - if (null === $this->dateFormat && $val instanceof \Monolog\JsonSerializableDateTimeImmutable) { - // handle monolog dates using __toString if no specific dateFormat was asked for - // so that it follows the useMicroseconds flag - $replacements[$placeholder] = (string) $val; - } else { - $replacements[$placeholder] = $val->format($this->dateFormat ?? static::SIMPLE_DATE); - } - } elseif ($val instanceof \UnitEnum) { - $replacements[$placeholder] = $val instanceof \BackedEnum ? $val->value : $val->name; - } elseif (\is_object($val)) { - $replacements[$placeholder] = '[object '.Utils::getClass($val).']'; - } elseif (\is_array($val)) { - $replacements[$placeholder] = 'array'.Utils::jsonEncode($val, null, true); - } else { - $replacements[$placeholder] = '['.\gettype($val).']'; - } - - if ($this->removeUsedContextFields) { - unset($context[$key]); - } - } - - return $record->with(message: strtr($record->message, $replacements), context: $context); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Processor/TagProcessor.php b/vendor/monolog/monolog/src/Monolog/Processor/TagProcessor.php deleted file mode 100644 index f4e41ce..0000000 --- a/vendor/monolog/monolog/src/Monolog/Processor/TagProcessor.php +++ /dev/null @@ -1,65 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Processor; - -use Monolog\LogRecord; - -/** - * Adds a tags array into record - * - * @author Martijn Riemers - */ -class TagProcessor implements ProcessorInterface -{ - /** @var string[] */ - private array $tags; - - /** - * @param string[] $tags - */ - public function __construct(array $tags = []) - { - $this->setTags($tags); - } - - /** - * @param string[] $tags - * @return $this - */ - public function addTags(array $tags = []): self - { - $this->tags = array_merge($this->tags, $tags); - - return $this; - } - - /** - * @param string[] $tags - * @return $this - */ - public function setTags(array $tags = []): self - { - $this->tags = $tags; - - return $this; - } - - /** - * @inheritDoc - */ - public function __invoke(LogRecord $record): LogRecord - { - $record->extra['tags'] = $this->tags; - - return $record; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Processor/UidProcessor.php b/vendor/monolog/monolog/src/Monolog/Processor/UidProcessor.php deleted file mode 100644 index 261e653..0000000 --- a/vendor/monolog/monolog/src/Monolog/Processor/UidProcessor.php +++ /dev/null @@ -1,67 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Processor; - -use Monolog\ResettableInterface; -use Monolog\LogRecord; - -/** - * Adds a unique identifier into records - * - * @author Simon Mönch - */ -class UidProcessor implements ProcessorInterface, ResettableInterface -{ - /** @var non-empty-string */ - private string $uid; - - /** - * @param int<1, 32> $length - */ - public function __construct(int $length = 7) - { - if ($length > 32 || $length < 1) { - throw new \InvalidArgumentException('The uid length must be an integer between 1 and 32'); - } - - $this->uid = $this->generateUid($length); - } - - /** - * @inheritDoc - */ - public function __invoke(LogRecord $record): LogRecord - { - $record->extra['uid'] = $this->uid; - - return $record; - } - - public function getUid(): string - { - return $this->uid; - } - - public function reset(): void - { - $this->uid = $this->generateUid(\strlen($this->uid)); - } - - /** - * @param positive-int $length - * @return non-empty-string - */ - private function generateUid(int $length): string - { - return substr(bin2hex(random_bytes((int) ceil($length / 2))), 0, $length); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Processor/WebProcessor.php b/vendor/monolog/monolog/src/Monolog/Processor/WebProcessor.php deleted file mode 100644 index b78385e..0000000 --- a/vendor/monolog/monolog/src/Monolog/Processor/WebProcessor.php +++ /dev/null @@ -1,115 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Processor; - -use ArrayAccess; -use Monolog\LogRecord; - -/** - * Injects url/method and remote IP of the current web request in all records - * - * @author Jordi Boggiano - */ -class WebProcessor implements ProcessorInterface -{ - /** - * @var array|ArrayAccess - */ - protected array|ArrayAccess $serverData; - - /** - * Default fields - * - * Array is structured as [key in record.extra => key in $serverData] - * - * @var array - */ - protected array $extraFields = [ - 'url' => 'REQUEST_URI', - 'ip' => 'REMOTE_ADDR', - 'http_method' => 'REQUEST_METHOD', - 'server' => 'SERVER_NAME', - 'referrer' => 'HTTP_REFERER', - 'user_agent' => 'HTTP_USER_AGENT', - ]; - - /** - * @param array|ArrayAccess|null $serverData Array or object w/ ArrayAccess that provides access to the $_SERVER data - * @param array|array|null $extraFields Field names and the related key inside $serverData to be added (or just a list of field names to use the default configured $serverData mapping). If not provided it defaults to: [url, ip, http_method, server, referrer] + unique_id if present in server data - */ - public function __construct(array|ArrayAccess|null $serverData = null, array|null $extraFields = null) - { - if (null === $serverData) { - $this->serverData = &$_SERVER; - } else { - $this->serverData = $serverData; - } - - $defaultEnabled = ['url', 'ip', 'http_method', 'server', 'referrer']; - if (isset($this->serverData['UNIQUE_ID'])) { - $this->extraFields['unique_id'] = 'UNIQUE_ID'; - $defaultEnabled[] = 'unique_id'; - } - - if (null === $extraFields) { - $extraFields = $defaultEnabled; - } - if (isset($extraFields[0])) { - foreach (array_keys($this->extraFields) as $fieldName) { - if (!\in_array($fieldName, $extraFields, true)) { - unset($this->extraFields[$fieldName]); - } - } - } else { - $this->extraFields = $extraFields; - } - } - - /** - * @inheritDoc - */ - public function __invoke(LogRecord $record): LogRecord - { - // skip processing if for some reason request data - // is not present (CLI or wonky SAPIs) - if (!isset($this->serverData['REQUEST_URI'])) { - return $record; - } - - $record->extra = $this->appendExtraFields($record->extra); - - return $record; - } - - /** - * @return $this - */ - public function addExtraField(string $extraName, string $serverName): self - { - $this->extraFields[$extraName] = $serverName; - - return $this; - } - - /** - * @param mixed[] $extra - * @return mixed[] - */ - private function appendExtraFields(array $extra): array - { - foreach ($this->extraFields as $extraName => $serverName) { - $extra[$extraName] = $this->serverData[$serverName] ?? null; - } - - return $extra; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Registry.php b/vendor/monolog/monolog/src/Monolog/Registry.php deleted file mode 100644 index 2ef2edc..0000000 --- a/vendor/monolog/monolog/src/Monolog/Registry.php +++ /dev/null @@ -1,133 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog; - -use InvalidArgumentException; - -/** - * Monolog log registry - * - * Allows to get `Logger` instances in the global scope - * via static method calls on this class. - * - * - * $application = new Monolog\Logger('application'); - * $api = new Monolog\Logger('api'); - * - * Monolog\Registry::addLogger($application); - * Monolog\Registry::addLogger($api); - * - * function testLogger() - * { - * Monolog\Registry::api()->error('Sent to $api Logger instance'); - * Monolog\Registry::application()->error('Sent to $application Logger instance'); - * } - * - * - * @author Tomas Tatarko - */ -class Registry -{ - /** - * List of all loggers in the registry (by named indexes) - * - * @var Logger[] - */ - private static array $loggers = []; - - /** - * Adds new logging channel to the registry - * - * @param Logger $logger Instance of the logging channel - * @param string|null $name Name of the logging channel ($logger->getName() by default) - * @param bool $overwrite Overwrite instance in the registry if the given name already exists? - * @throws \InvalidArgumentException If $overwrite set to false and named Logger instance already exists - */ - public static function addLogger(Logger $logger, ?string $name = null, bool $overwrite = false): void - { - $name = $name ?? $logger->getName(); - - if (isset(self::$loggers[$name]) && !$overwrite) { - throw new InvalidArgumentException('Logger with the given name already exists'); - } - - self::$loggers[$name] = $logger; - } - - /** - * Checks if such logging channel exists by name or instance - * - * @param string|Logger $logger Name or logger instance - */ - public static function hasLogger($logger): bool - { - if ($logger instanceof Logger) { - $index = array_search($logger, self::$loggers, true); - - return false !== $index; - } - - return isset(self::$loggers[$logger]); - } - - /** - * Removes instance from registry by name or instance - * - * @param string|Logger $logger Name or logger instance - */ - public static function removeLogger($logger): void - { - if ($logger instanceof Logger) { - if (false !== ($idx = array_search($logger, self::$loggers, true))) { - unset(self::$loggers[$idx]); - } - } else { - unset(self::$loggers[$logger]); - } - } - - /** - * Clears the registry - */ - public static function clear(): void - { - self::$loggers = []; - } - - /** - * Gets Logger instance from the registry - * - * @param string $name Name of the requested Logger instance - * @throws \InvalidArgumentException If named Logger instance is not in the registry - */ - public static function getInstance(string $name): Logger - { - if (!isset(self::$loggers[$name])) { - throw new InvalidArgumentException(sprintf('Requested "%s" logger instance is not in the registry', $name)); - } - - return self::$loggers[$name]; - } - - /** - * Gets Logger instance from the registry via static method call - * - * @param string $name Name of the requested Logger instance - * @param mixed[] $arguments Arguments passed to static method call - * @throws \InvalidArgumentException If named Logger instance is not in the registry - * @return Logger Requested instance of Logger - */ - public static function __callStatic(string $name, array $arguments): Logger - { - return self::getInstance($name); - } -} diff --git a/vendor/monolog/monolog/src/Monolog/ResettableInterface.php b/vendor/monolog/monolog/src/Monolog/ResettableInterface.php deleted file mode 100644 index 4983a6b..0000000 --- a/vendor/monolog/monolog/src/Monolog/ResettableInterface.php +++ /dev/null @@ -1,31 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog; - -/** - * Handler or Processor implementing this interface will be reset when Logger::reset() is called. - * - * Resetting ends a log cycle gets them back to their initial state. - * - * Resetting a Handler or a Processor means flushing/cleaning all buffers, resetting internal - * state, and getting it back to a state in which it can receive log records again. - * - * This is useful in case you want to avoid logs leaking between two requests or jobs when you - * have a long running process like a worker or an application server serving multiple requests - * in one process. - * - * @author Grégoire Pineau - */ -interface ResettableInterface -{ - public function reset(): void; -} diff --git a/vendor/monolog/monolog/src/Monolog/SignalHandler.php b/vendor/monolog/monolog/src/Monolog/SignalHandler.php deleted file mode 100644 index b6a69fc..0000000 --- a/vendor/monolog/monolog/src/Monolog/SignalHandler.php +++ /dev/null @@ -1,113 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog; - -use Psr\Log\LoggerInterface; -use Psr\Log\LogLevel; -use ReflectionExtension; - -/** - * Monolog POSIX signal handler - * - * @author Robert Gust-Bardon - */ -class SignalHandler -{ - private LoggerInterface $logger; - - /** @var array SIG_DFL, SIG_IGN or previous callable */ - private array $previousSignalHandler = []; - /** @var array */ - private array $signalLevelMap = []; - /** @var array */ - private array $signalRestartSyscalls = []; - - public function __construct(LoggerInterface $logger) - { - $this->logger = $logger; - } - - /** - * @param int|string|Level $level Level or level name - * @return $this - * - * @phpstan-param value-of|value-of|Level|LogLevel::* $level - */ - public function registerSignalHandler(int $signo, int|string|Level $level = LogLevel::CRITICAL, bool $callPrevious = true, bool $restartSyscalls = true, ?bool $async = true): self - { - if (!\extension_loaded('pcntl') || !\function_exists('pcntl_signal')) { - return $this; - } - - $level = Logger::toMonologLevel($level)->toPsrLogLevel(); - - if ($callPrevious) { - $handler = pcntl_signal_get_handler($signo); - $this->previousSignalHandler[$signo] = $handler; - } else { - unset($this->previousSignalHandler[$signo]); - } - $this->signalLevelMap[$signo] = $level; - $this->signalRestartSyscalls[$signo] = $restartSyscalls; - - if ($async !== null) { - pcntl_async_signals($async); - } - - pcntl_signal($signo, [$this, 'handleSignal'], $restartSyscalls); - - return $this; - } - - /** - * @param mixed $siginfo - */ - public function handleSignal(int $signo, $siginfo = null): void - { - /** @var array $signals */ - static $signals = []; - - if (\count($signals) === 0 && \extension_loaded('pcntl')) { - $pcntl = new ReflectionExtension('pcntl'); - foreach ($pcntl->getConstants() as $name => $value) { - if (substr($name, 0, 3) === 'SIG' && $name[3] !== '_' && \is_int($value)) { - $signals[$value] = $name; - } - } - } - - $level = $this->signalLevelMap[$signo] ?? LogLevel::CRITICAL; - $signal = $signals[$signo] ?? $signo; - $context = $siginfo ?? []; - $this->logger->log($level, sprintf('Program received signal %s', $signal), $context); - - if (!isset($this->previousSignalHandler[$signo])) { - return; - } - - if ($this->previousSignalHandler[$signo] === SIG_DFL) { - if (\extension_loaded('pcntl') && \function_exists('pcntl_signal') && \function_exists('pcntl_sigprocmask') && \function_exists('pcntl_signal_dispatch') - && \extension_loaded('posix') && \function_exists('posix_getpid') && \function_exists('posix_kill') - ) { - $restartSyscalls = $this->signalRestartSyscalls[$signo] ?? true; - pcntl_signal($signo, SIG_DFL, $restartSyscalls); - pcntl_sigprocmask(SIG_UNBLOCK, [$signo], $oldset); - posix_kill(posix_getpid(), $signo); - pcntl_signal_dispatch(); - pcntl_sigprocmask(SIG_SETMASK, $oldset); - pcntl_signal($signo, [$this, 'handleSignal'], $restartSyscalls); - } - } elseif (\is_callable($this->previousSignalHandler[$signo])) { - $this->previousSignalHandler[$signo]($signo, $siginfo); - } - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Test/TestCase.php b/vendor/monolog/monolog/src/Monolog/Test/TestCase.php deleted file mode 100644 index ec5751b..0000000 --- a/vendor/monolog/monolog/src/Monolog/Test/TestCase.php +++ /dev/null @@ -1,74 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Test; - -use Monolog\Level; -use Monolog\Logger; -use Monolog\LogRecord; -use Monolog\JsonSerializableDateTimeImmutable; -use Monolog\Formatter\FormatterInterface; -use Psr\Log\LogLevel; -use ReflectionProperty; - -/** - * Lets you easily generate log records and a dummy formatter for testing purposes - * - * @author Jordi Boggiano - * - * @internal feel free to reuse this to test your own handlers, this is marked internal to avoid issues with PHPStorm https://github.com/Seldaek/monolog/issues/1677 - */ -class TestCase extends \PHPUnit\Framework\TestCase -{ - /** - * @param array $context - * @param array $extra - * - * @phpstan-param value-of|value-of|Level|LogLevel::* $level - */ - protected function getRecord(int|string|Level $level = Level::Warning, string|\Stringable $message = 'test', array $context = [], string $channel = 'test', \DateTimeImmutable $datetime = new JsonSerializableDateTimeImmutable(true), array $extra = []): LogRecord - { - return new LogRecord( - message: (string) $message, - context: $context, - level: Logger::toMonologLevel($level), - channel: $channel, - datetime: $datetime, - extra: $extra, - ); - } - - /** - * @phpstan-return list - */ - protected function getMultipleRecords(): array - { - return [ - $this->getRecord(Level::Debug, 'debug message 1'), - $this->getRecord(Level::Debug, 'debug message 2'), - $this->getRecord(Level::Info, 'information'), - $this->getRecord(Level::Warning, 'warning'), - $this->getRecord(Level::Error, 'error'), - ]; - } - - protected function getIdentityFormatter(): FormatterInterface - { - $formatter = $this->createMock(FormatterInterface::class); - $formatter->expects(self::any()) - ->method('format') - ->willReturnCallback(function ($record) { - return $record->message; - }); - - return $formatter; - } -} diff --git a/vendor/monolog/monolog/src/Monolog/Utils.php b/vendor/monolog/monolog/src/Monolog/Utils.php deleted file mode 100644 index 1538015..0000000 --- a/vendor/monolog/monolog/src/Monolog/Utils.php +++ /dev/null @@ -1,257 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog; - -final class Utils -{ - const DEFAULT_JSON_FLAGS = JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_PRESERVE_ZERO_FRACTION | JSON_INVALID_UTF8_SUBSTITUTE | JSON_PARTIAL_OUTPUT_ON_ERROR; - - public static function getClass(object $object): string - { - $class = \get_class($object); - - if (false === ($pos = strpos($class, "@anonymous\0"))) { - return $class; - } - - if (false === ($parent = get_parent_class($class))) { - return substr($class, 0, $pos + 10); - } - - return $parent . '@anonymous'; - } - - public static function substr(string $string, int $start, ?int $length = null): string - { - if (\extension_loaded('mbstring')) { - return mb_strcut($string, $start, $length); - } - - return substr($string, $start, (null === $length) ? \strlen($string) : $length); - } - - /** - * Makes sure if a relative path is passed in it is turned into an absolute path - * - * @param string $streamUrl stream URL or path without protocol - */ - public static function canonicalizePath(string $streamUrl): string - { - $prefix = ''; - if ('file://' === substr($streamUrl, 0, 7)) { - $streamUrl = substr($streamUrl, 7); - $prefix = 'file://'; - } - - // other type of stream, not supported - if (false !== strpos($streamUrl, '://')) { - return $streamUrl; - } - - // already absolute - if (substr($streamUrl, 0, 1) === '/' || substr($streamUrl, 1, 1) === ':' || substr($streamUrl, 0, 2) === '\\\\') { - return $prefix.$streamUrl; - } - - $streamUrl = getcwd() . '/' . $streamUrl; - - return $prefix.$streamUrl; - } - - /** - * Return the JSON representation of a value - * - * @param mixed $data - * @param int $encodeFlags flags to pass to json encode, defaults to DEFAULT_JSON_FLAGS - * @param bool $ignoreErrors whether to ignore encoding errors or to throw on error, when ignored and the encoding fails, "null" is returned which is valid json for null - * @throws \RuntimeException if encoding fails and errors are not ignored - * @return string when errors are ignored and the encoding fails, "null" is returned which is valid json for null - */ - public static function jsonEncode($data, ?int $encodeFlags = null, bool $ignoreErrors = false): string - { - if (null === $encodeFlags) { - $encodeFlags = self::DEFAULT_JSON_FLAGS; - } - - if ($ignoreErrors) { - $json = @json_encode($data, $encodeFlags); - if (false === $json) { - return 'null'; - } - - return $json; - } - - $json = json_encode($data, $encodeFlags); - if (false === $json) { - $json = self::handleJsonError(json_last_error(), $data); - } - - return $json; - } - - /** - * Handle a json_encode failure. - * - * If the failure is due to invalid string encoding, try to clean the - * input and encode again. If the second encoding attempt fails, the - * initial error is not encoding related or the input can't be cleaned then - * raise a descriptive exception. - * - * @param int $code return code of json_last_error function - * @param mixed $data data that was meant to be encoded - * @param int $encodeFlags flags to pass to json encode, defaults to JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_PRESERVE_ZERO_FRACTION - * @throws \RuntimeException if failure can't be corrected - * @return string JSON encoded data after error correction - */ - public static function handleJsonError(int $code, $data, ?int $encodeFlags = null): string - { - if ($code !== JSON_ERROR_UTF8) { - self::throwEncodeError($code, $data); - } - - if (\is_string($data)) { - self::detectAndCleanUtf8($data); - } elseif (\is_array($data)) { - array_walk_recursive($data, ['Monolog\Utils', 'detectAndCleanUtf8']); - } else { - self::throwEncodeError($code, $data); - } - - if (null === $encodeFlags) { - $encodeFlags = self::DEFAULT_JSON_FLAGS; - } - - $json = json_encode($data, $encodeFlags); - - if ($json === false) { - self::throwEncodeError(json_last_error(), $data); - } - - return $json; - } - - /** - * Throws an exception according to a given code with a customized message - * - * @param int $code return code of json_last_error function - * @param mixed $data data that was meant to be encoded - * @throws \RuntimeException - */ - private static function throwEncodeError(int $code, $data): never - { - $msg = match ($code) { - JSON_ERROR_DEPTH => 'Maximum stack depth exceeded', - JSON_ERROR_STATE_MISMATCH => 'Underflow or the modes mismatch', - JSON_ERROR_CTRL_CHAR => 'Unexpected control character found', - JSON_ERROR_UTF8 => 'Malformed UTF-8 characters, possibly incorrectly encoded', - default => 'Unknown error', - }; - - throw new \RuntimeException('JSON encoding failed: '.$msg.'. Encoding: '.var_export($data, true)); - } - - /** - * Detect invalid UTF-8 string characters and convert to valid UTF-8. - * - * Valid UTF-8 input will be left unmodified, but strings containing - * invalid UTF-8 codepoints will be reencoded as UTF-8 with an assumed - * original encoding of ISO-8859-15. This conversion may result in - * incorrect output if the actual encoding was not ISO-8859-15, but it - * will be clean UTF-8 output and will not rely on expensive and fragile - * detection algorithms. - * - * Function converts the input in place in the passed variable so that it - * can be used as a callback for array_walk_recursive. - * - * @param mixed $data Input to check and convert if needed, passed by ref - */ - private static function detectAndCleanUtf8(&$data): void - { - if (\is_string($data) && preg_match('//u', $data) !== 1) { - $data = preg_replace_callback( - '/[\x80-\xFF]+/', - function (array $m): string { - return \function_exists('mb_convert_encoding') - ? mb_convert_encoding($m[0], 'UTF-8', 'ISO-8859-1') - : (\function_exists('utf8_encode') ? utf8_encode($m[0]) : ''); - }, - $data - ); - if (!\is_string($data)) { - $pcreErrorCode = preg_last_error(); - - throw new \RuntimeException('Failed to preg_replace_callback: ' . $pcreErrorCode . ' / ' . preg_last_error_msg()); - } - $data = str_replace( - ['¤', '¦', '¨', '´', '¸', '¼', '½', '¾'], - ['€', 'Š', 'š', 'Ž', 'ž', 'Œ', 'œ', 'Ÿ'], - $data - ); - } - } - - /** - * Converts a string with a valid 'memory_limit' format, to bytes. - * - * @param string|false $val - * @return int|false Returns an integer representing bytes. Returns FALSE in case of error. - */ - public static function expandIniShorthandBytes($val) - { - if (!\is_string($val)) { - return false; - } - - // support -1 - if ((int) $val < 0) { - return (int) $val; - } - - if (!(bool) preg_match('/^\s*(?\d+)(?:\.\d+)?\s*(?[gmk]?)\s*$/i', $val, $match)) { - return false; - } - - $val = (int) $match['val']; - switch (strtolower($match['unit'])) { - case 'g': - $val *= 1024; - // no break - case 'm': - $val *= 1024; - // no break - case 'k': - $val *= 1024; - } - - return $val; - } - - public static function getRecordMessageForException(LogRecord $record): string - { - $context = ''; - $extra = ''; - - try { - if (\count($record->context) > 0) { - $context = "\nContext: " . json_encode($record->context, JSON_THROW_ON_ERROR); - } - if (\count($record->extra) > 0) { - $extra = "\nExtra: " . json_encode($record->extra, JSON_THROW_ON_ERROR); - } - } catch (\Throwable $e) { - // noop - } - - return "\nThe exception occurred while attempting to log: " . $record->message . $context . $extra; - } -} diff --git a/vendor/nesbot/carbon/.phpstorm.meta.php b/vendor/nesbot/carbon/.phpstorm.meta.php deleted file mode 100644 index bd7c7e0..0000000 --- a/vendor/nesbot/carbon/.phpstorm.meta.php +++ /dev/null @@ -1,10 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\MessageFormatter; - -use Symfony\Component\Translation\Formatter\MessageFormatterInterface; - -if (!class_exists(LazyMessageFormatter::class, false)) { - abstract class LazyMessageFormatter implements MessageFormatterInterface - { - public function format(string $message, string $locale, array $parameters = []): string - { - return $this->formatter->format( - $message, - $this->transformLocale($locale), - $parameters - ); - } - } -} diff --git a/vendor/nesbot/carbon/lazy/Carbon/MessageFormatter/MessageFormatterMapperWeakType.php b/vendor/nesbot/carbon/lazy/Carbon/MessageFormatter/MessageFormatterMapperWeakType.php deleted file mode 100644 index cbd890d..0000000 --- a/vendor/nesbot/carbon/lazy/Carbon/MessageFormatter/MessageFormatterMapperWeakType.php +++ /dev/null @@ -1,36 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\MessageFormatter; - -use Symfony\Component\Translation\Formatter\ChoiceMessageFormatterInterface; -use Symfony\Component\Translation\Formatter\MessageFormatterInterface; - -if (!class_exists(LazyMessageFormatter::class, false)) { - abstract class LazyMessageFormatter implements MessageFormatterInterface, ChoiceMessageFormatterInterface - { - abstract protected function transformLocale(?string $locale): ?string; - - public function format($message, $locale, array $parameters = []) - { - return $this->formatter->format( - $message, - $this->transformLocale($locale), - $parameters - ); - } - - public function choiceFormat($message, $number, $locale, array $parameters = []) - { - return $this->formatter->choiceFormat($message, $number, $locale, $parameters); - } - } -} diff --git a/vendor/nesbot/carbon/lazy/Carbon/ProtectedDatePeriod.php b/vendor/nesbot/carbon/lazy/Carbon/ProtectedDatePeriod.php deleted file mode 100644 index 927e48d..0000000 --- a/vendor/nesbot/carbon/lazy/Carbon/ProtectedDatePeriod.php +++ /dev/null @@ -1,73 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon; - -use DatePeriod; - -if (!class_exists(DatePeriodBase::class, false)) { - class DatePeriodBase extends DatePeriod - { - /** - * Period start in PHP < 8.2. - * - * @var CarbonInterface - * - * @deprecated PHP 8.2 this property is no longer in sync with the actual period start. - */ - protected $start; - - /** - * Period end in PHP < 8.2. - * - * @var CarbonInterface|null - * - * @deprecated PHP 8.2 this property is no longer in sync with the actual period end. - */ - protected $end; - - /** - * Period current iterated date in PHP < 8.2. - * - * @var CarbonInterface|null - * - * @deprecated PHP 8.2 this property is no longer in sync with the actual period current iterated date. - */ - protected $current; - - /** - * Period interval in PHP < 8.2. - * - * @var CarbonInterval|null - * - * @deprecated PHP 8.2 this property is no longer in sync with the actual period interval. - */ - protected $interval; - - /** - * Period recurrences in PHP < 8.2. - * - * @var int|float|null - * - * @deprecated PHP 8.2 this property is no longer in sync with the actual period recurrences. - */ - protected $recurrences; - - /** - * Period start included option in PHP < 8.2. - * - * @var bool - * - * @deprecated PHP 8.2 this property is no longer in sync with the actual period start included option. - */ - protected $include_start_date; - } -} diff --git a/vendor/nesbot/carbon/lazy/Carbon/TranslatorStrongType.php b/vendor/nesbot/carbon/lazy/Carbon/TranslatorStrongType.php deleted file mode 100644 index d35308a..0000000 --- a/vendor/nesbot/carbon/lazy/Carbon/TranslatorStrongType.php +++ /dev/null @@ -1,52 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon; - -use Symfony\Component\Translation\MessageCatalogueInterface; - -if (!class_exists(LazyTranslator::class, false)) { - class LazyTranslator extends AbstractTranslator implements TranslatorStrongTypeInterface - { - public function trans(?string $id, array $parameters = [], ?string $domain = null, ?string $locale = null): string - { - return $this->translate($id, $parameters, $domain, $locale); - } - - public function getFromCatalogue(MessageCatalogueInterface $catalogue, string $id, string $domain = 'messages') - { - $messages = $this->getPrivateProperty($catalogue, 'messages'); - - if (isset($messages[$domain.MessageCatalogueInterface::INTL_DOMAIN_SUFFIX][$id])) { - return $messages[$domain.MessageCatalogueInterface::INTL_DOMAIN_SUFFIX][$id]; - } - - if (isset($messages[$domain][$id])) { - return $messages[$domain][$id]; - } - - $fallbackCatalogue = $this->getPrivateProperty($catalogue, 'fallbackCatalogue'); - - if ($fallbackCatalogue !== null) { - return $this->getFromCatalogue($fallbackCatalogue, $id, $domain); - } - - return $id; - } - - private function getPrivateProperty($instance, string $field) - { - return (function (string $field) { - return $this->$field; - })->call($instance, $field); - } - } -} diff --git a/vendor/nesbot/carbon/lazy/Carbon/TranslatorWeakType.php b/vendor/nesbot/carbon/lazy/Carbon/TranslatorWeakType.php deleted file mode 100644 index 94dbdc3..0000000 --- a/vendor/nesbot/carbon/lazy/Carbon/TranslatorWeakType.php +++ /dev/null @@ -1,32 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon; - -if (!class_exists(LazyTranslator::class, false)) { - class LazyTranslator extends AbstractTranslator - { - /** - * Returns the translation. - * - * @param string|null $id - * @param array $parameters - * @param string|null $domain - * @param string|null $locale - * - * @return string - */ - public function trans($id, array $parameters = [], $domain = null, $locale = null) - { - return $this->translate($id, $parameters, $domain, $locale); - } - } -} diff --git a/vendor/nesbot/carbon/lazy/Carbon/UnprotectedDatePeriod.php b/vendor/nesbot/carbon/lazy/Carbon/UnprotectedDatePeriod.php deleted file mode 100644 index 2341be7..0000000 --- a/vendor/nesbot/carbon/lazy/Carbon/UnprotectedDatePeriod.php +++ /dev/null @@ -1,20 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon; - -use DatePeriod; - -if (!class_exists(DatePeriodBase::class, false)) { - class DatePeriodBase extends DatePeriod - { - } -} diff --git a/vendor/nesbot/carbon/readme.md b/vendor/nesbot/carbon/readme.md deleted file mode 100644 index 14c6329..0000000 --- a/vendor/nesbot/carbon/readme.md +++ /dev/null @@ -1,180 +0,0 @@ -# Carbon - -[![Latest Stable Version](https://img.shields.io/packagist/v/nesbot/carbon.svg?style=flat-square)](https://packagist.org/packages/nesbot/carbon) -[![Total Downloads](https://img.shields.io/packagist/dt/nesbot/carbon.svg?style=flat-square)](https://packagist.org/packages/nesbot/carbon) -[![GitHub Actions](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fbriannesbitt%2FCarbon%2Fbadge&style=flat-square&label=Build&logo=none)](https://github.com/briannesbitt/Carbon/actions) -[![codecov.io](https://img.shields.io/codecov/c/github/briannesbitt/Carbon.svg?style=flat-square)](https://codecov.io/github/briannesbitt/Carbon?branch=master) - -An international PHP extension for DateTime. [https://carbon.nesbot.com](https://carbon.nesbot.com) - -```php -toDateTimeString()); -printf("Right now in Vancouver is %s", Carbon::now('America/Vancouver')); //implicit __toString() -$tomorrow = Carbon::now()->addDay(); -$lastWeek = Carbon::now()->subWeek(); - -$officialDate = Carbon::now()->toRfc2822String(); - -$howOldAmI = Carbon::createFromDate(1975, 5, 21)->age; - -$noonTodayLondonTime = Carbon::createFromTime(12, 0, 0, 'Europe/London'); - -$internetWillBlowUpOn = Carbon::create(2038, 01, 19, 3, 14, 7, 'GMT'); - -// Don't really want this to happen so mock now -Carbon::setTestNow(Carbon::createFromDate(2000, 1, 1)); - -// comparisons are always done in UTC -if (Carbon::now()->gte($internetWillBlowUpOn)) { - die(); -} - -// Phew! Return to normal behaviour -Carbon::setTestNow(); - -if (Carbon::now()->isWeekend()) { - echo 'Party!'; -} -// Over 200 languages (and over 500 regional variants) supported: -echo Carbon::now()->subMinutes(2)->diffForHumans(); // '2 minutes ago' -echo Carbon::now()->subMinutes(2)->locale('zh_CN')->diffForHumans(); // '2分钟前' -echo Carbon::parse('2019-07-23 14:51')->isoFormat('LLLL'); // 'Tuesday, July 23, 2019 2:51 PM' -echo Carbon::parse('2019-07-23 14:51')->locale('fr_FR')->isoFormat('LLLL'); // 'mardi 23 juillet 2019 14:51' - -// ... but also does 'from now', 'after' and 'before' -// rolling up to seconds, minutes, hours, days, months, years - -$daysSinceEpoch = Carbon::createFromTimestamp(0)->diffInDays(); // something such as: - // 19817.6771 -$daysUntilInternetBlowUp = $internetWillBlowUpOn->diffInDays(); // Negative value since it's in the future: - // -5037.4560 - -// Without parameter, difference is calculated from now, but doing $a->diff($b) -// it will count time from $a to $b. -Carbon::createFromTimestamp(0)->diffInDays($internetWillBlowUpOn); // 24855.1348 -``` - -## Installation - -### With Composer - -``` -$ composer require nesbot/carbon -``` - -```json -{ - "require": { - "nesbot/carbon": "^3" - } -} -``` - -```php - - -### Translators - -[Thanks to people helping us to translate Carbon in so many languages](https://carbon.nesbot.com/contribute/translators/) - -### Sponsors - -Support this project by becoming a sponsor. Your logo will show up here with a link to your website. - - -Онлайн казино 777 -Best non Gamstop sites in the UK -Real Money Pokies -Non GamStop Bookies UK -CasinoHex Canada -Route4Me Route Planner -Betking -Букмекер -Probukmacher -inkedin -OnlineCasinosSpelen -Guidebook.BetWinner -casino.ua -Onlinecasinosgr.com -PayIDGambler -Vegas -WildWinz -Онлайн казино України -Онлайн Казино Украины -Casino-portugal.pt -Non-GamStop Bets UK -Pin-Up -Tidelift -casinorevisor.com -Slots City -Ігрові автомати -Online Kasyno Polis -Onlayn Kazino -Slotozilla -Fortune Tiger -casino non aams -Credit Zaim -R&D Tax Credits UK -1Kompozisyon - -[[See all](https://carbon.nesbot.com/#sponsors)] -[[Become a sponsor via OpenCollective](https://opencollective.com/Carbon#sponsor)] - - - -[[Become a sponsor via GitHub](https://github.com/sponsors/kylekatarnls)] - -### Backers - -Thank you to all our backers! 🙏 - - - -[[Become a backer](https://opencollective.com/Carbon#backer)] - -## Carbon for enterprise - -Available as part of the Tidelift Subscription. - -The maintainers of ``Carbon`` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/packagist-nesbot-carbon?utm_source=packagist-nesbot-carbon&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) diff --git a/vendor/nesbot/carbon/sponsors.php b/vendor/nesbot/carbon/sponsors.php deleted file mode 100644 index cc97786..0000000 --- a/vendor/nesbot/carbon/sponsors.php +++ /dev/null @@ -1,216 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -use Carbon\CarbonImmutable; - -require_once __DIR__.'/vendor/autoload.php'; - -function getMaxHistoryMonthsByAmount($amount): int -{ - if ($amount >= 50) { - return 6; - } - - if ($amount >= 20) { - return 4; - } - - return 2; -} - -function getHtmlAttribute($rawValue): string -{ - return str_replace( - ['​', "\r"], - '', - trim(htmlspecialchars((string) $rawValue), "  \n\r\t\v\0"), - ); -} - -function getOpenCollectiveSponsors(): string -{ - $customSponsorImages = [ - // For consistency and equity among sponsors, as of now, we kindly ask our sponsors - // to provide an image having a width/height ratio between 1/1 and 2/1. - // By default, we'll show the member picture from OpenCollective, and will resize it if bigger - // int(OpenCollective.MemberId) => ImageURL - ]; - - $members = json_decode(file_get_contents('https://opencollective.com/carbon/members/all.json'), true); - // Adding sponsors paying via other payment methods - $members[] = [ - 'MemberId' => 1, - 'createdAt' => '2019-01-01 02:00', - 'type' => 'ORGANIZATION', - 'role' => 'BACKER', - 'tier' => 'backer+', - 'isActive' => true, - 'totalAmountDonated' => 1000, - 'currency' => 'USD', - 'lastTransactionAt' => CarbonImmutable::now()->format('Y-m-d').' 02:00', - 'lastTransactionAmount' => 25, - 'profile' => 'https://tidelift.com/', - 'name' => 'Tidelift', - 'description' => 'Get professional support for Carbon', - 'image' => 'https://carbon.nesbot.com/docs/sponsors/tidelift-brand.png', - 'website' => 'https://tidelift.com/subscription/pkg/packagist-nesbot-carbon?utm_source=packagist-nesbot-carbon&utm_medium=referral&utm_campaign=docs', - ]; - $members[] = [ - 'MemberId' => 2, - 'createdAt' => '2024-11-14 02:00', - 'type' => 'ORGANIZATION', - 'role' => 'BACKER', - 'tier' => 'backer+ yearly', - 'isActive' => true, - 'totalAmountDonated' => 170, - 'currency' => 'USD', - 'lastTransactionAt' => '2024-11-14 02:00', - 'lastTransactionAmount' => 170, - 'profile' => 'https://www.slotozilla.com/nz/free-spins', - 'name' => 'Slotozilla', - 'description' => 'Slotozilla website', - 'image' => 'https://carbon.nesbot.com/docs/sponsors/slotozilla.png', - 'website' => 'https://www.slotozilla.com/nz/free-spins', - ]; - - $list = array_filter($members, static fn (array $member): bool => $member['totalAmountDonated'] > 3 && $member['role'] !== 'HOST' && ( - $member['totalAmountDonated'] > 100 || - $member['lastTransactionAt'] > CarbonImmutable::now() - ->subMonthsNoOverflow(getMaxHistoryMonthsByAmount($member['lastTransactionAmount'])) - ->format('Y-m-d h:i') || - $member['isActive'] && $member['lastTransactionAmount'] >= 30 - )); - - $list = array_map(static function (array $member): array { - $createdAt = CarbonImmutable::parse($member['createdAt']); - $lastTransactionAt = CarbonImmutable::parse($member['lastTransactionAt']); - - if ($createdAt->format('d H:i:s.u') > $lastTransactionAt->format('d H:i:s.u')) { - $createdAt = $createdAt - ->setDay($lastTransactionAt->day) - ->modify($lastTransactionAt->format('H:i:s.u')); - } - - $isYearly = str_contains(strtolower($member['tier'] ?? ''), 'yearly'); - $monthlyContribution = (float) ( - ($isYearly && $lastTransactionAt > CarbonImmutable::parse('-1 year')) - ? ($member['lastTransactionAmount'] / 11.2) // 11.2 instead of 12 to include the discount for yearly subscription - : ($member['totalAmountDonated'] / ceil($createdAt->floatDiffInMonths())) - ); - - if (!$isYearly) { - if ( - $lastTransactionAt->isAfter('last month') && - $member['lastTransactionAmount'] > $monthlyContribution - ) { - $monthlyContribution = (float) $member['lastTransactionAmount']; - } - - if ($lastTransactionAt->isBefore('-75 days')) { - $days = min(120, $lastTransactionAt->diffInDays('now') - 70); - $monthlyContribution *= 1 - $days / 240; - } - } - - $yearlyContribution = (float) ( - $isYearly - ? (12 * $monthlyContribution) - : ($member['totalAmountDonated'] / max(1, $createdAt->floatDiffInYears())) - ); - $status = null; - $rank = 0; - - if ($monthlyContribution > 29 || $yearlyContribution > 700) { - $status = 'sponsor'; - $rank = 4; - } elseif ($monthlyContribution > 14.5 || $yearlyContribution > 500) { - $status = 'backerPlus'; - $rank = 3; - } elseif ($monthlyContribution > 4.5 || $yearlyContribution > 80) { - $status = 'backer'; - $rank = 2; - } elseif ($member['totalAmountDonated'] > 0) { - $status = 'helper'; - $rank = 1; - } - - return array_merge($member, [ - 'star' => ($monthlyContribution > 98 || $yearlyContribution > 800), - 'status' => $status, - 'rank' => $rank, - 'monthlyContribution' => $monthlyContribution, - 'yearlyContribution' => $yearlyContribution, - ]); - }, $list); - - usort($list, static function (array $a, array $b): int { - return ($b['star'] <=> $a['star']) - ?: ($b['rank'] <=> $a['rank']) - ?: ($b['monthlyContribution'] <=> $a['monthlyContribution']) - ?: ($b['totalAmountDonated'] <=> $a['totalAmountDonated']); - }); - - $membersByUrl = []; - $output = ''; - - foreach ($list as $member) { - $url = $member['website'] ?? $member['profile']; - - if (isset($membersByUrl[$url]) || !\in_array($member['status'], ['sponsor', 'backerPlus'], true)) { - continue; - } - - $membersByUrl[$url] = $member; - $href = htmlspecialchars($url); - $src = $customSponsorImages[$member['MemberId'] ?? ''] ?? $member['image'] ?? (strtr($member['profile'], ['https://opencollective.com/' => 'https://images.opencollective.com/']).'/avatar/256.png'); - [$x, $y] = @getimagesize($src) ?: [0, 0]; - $validImage = ($x && $y); - $src = $validImage ? htmlspecialchars($src) : 'https://opencollective.com/static/images/default-guest-logo.svg'; - $height = match ($member['status']) { - 'sponsor' => 64, - 'backerPlus' => 42, - 'backer' => 32, - default => 24, - }; - $rel = match ($member['status']) { - 'sponsor', 'backerPlus' => '', - default => ' rel="sponsored"', - }; - - $width = min($height * 2, $validImage ? round($x * $height / $y) : $height); - - if (!str_contains($href, 'utm_source') && !preg_match('/^https?:\/\/(?:www\.)?(?:onlinekasyno-polis\.pl|zonaminecraft\.net|slotozilla\.com)(\/.*)?/', $href)) { - $href .= (!str_contains($href, '?') ? '?' : '&').'utm_source=opencollective&utm_medium=github&utm_campaign=Carbon'; - } - - $title = getHtmlAttribute(($member['description'] ?? null) ?: $member['name']); - $alt = getHtmlAttribute($member['name']); - - if ($member['star']) { - $width *= 1.5; - $height *= 1.5; - } - - $output .= "\n".''. - ''.$alt.''. - ''; - } - - return $output; -} - -file_put_contents('readme.md', preg_replace_callback( - '/()[\s\S]+()/', - static function (array $match): string { - return $match[1].getOpenCollectiveSponsors().$match[2]; - }, - file_get_contents('readme.md'), -)); diff --git a/vendor/nesbot/carbon/src/Carbon/AbstractTranslator.php b/vendor/nesbot/carbon/src/Carbon/AbstractTranslator.php deleted file mode 100644 index 8dd47ae..0000000 --- a/vendor/nesbot/carbon/src/Carbon/AbstractTranslator.php +++ /dev/null @@ -1,411 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon; - -use Carbon\MessageFormatter\MessageFormatterMapper; -use Closure; -use ReflectionException; -use ReflectionFunction; -use Symfony\Component\Translation; -use Symfony\Component\Translation\Formatter\MessageFormatterInterface; -use Symfony\Component\Translation\Loader\ArrayLoader; - -abstract class AbstractTranslator extends Translation\Translator -{ - public const REGION_CODE_LENGTH = 2; - - /** - * Translator singletons for each language. - * - * @var array - */ - protected static array $singletons = []; - - /** - * List of custom localized messages. - * - * @var array - */ - protected array $messages = []; - - /** - * List of custom directories that contain translation files. - * - * @var string[] - */ - protected array $directories = []; - - /** - * Set to true while constructing. - */ - protected bool $initializing = false; - - /** - * List of locales aliases. - * - * @var array - */ - protected array $aliases = [ - 'me' => 'sr_Latn_ME', - 'scr' => 'sh', - ]; - - /** - * Return a singleton instance of Translator. - * - * @param string|null $locale optional initial locale ("en" - english by default) - * - * @return static - */ - public static function get(?string $locale = null): static - { - $locale = $locale ?: 'en'; - $key = static::class === Translator::class ? $locale : static::class.'|'.$locale; - $count = \count(static::$singletons); - - // Remember only the last 10 translators created - if ($count > 10) { - foreach (\array_slice(array_keys(static::$singletons), 0, $count - 10) as $index) { - unset(static::$singletons[$index]); - } - } - - static::$singletons[$key] ??= new static($locale); - - return static::$singletons[$key]; - } - - public function __construct($locale, ?MessageFormatterInterface $formatter = null, $cacheDir = null, $debug = false) - { - $this->initialize($locale, $formatter, $cacheDir, $debug); - } - - /** - * Returns the list of directories translation files are searched in. - */ - public function getDirectories(): array - { - return $this->directories; - } - - /** - * Set list of directories translation files are searched in. - * - * @param array $directories new directories list - * - * @return $this - */ - public function setDirectories(array $directories): static - { - $this->directories = $directories; - - return $this; - } - - /** - * Add a directory to the list translation files are searched in. - * - * @param string $directory new directory - * - * @return $this - */ - public function addDirectory(string $directory): static - { - $this->directories[] = $directory; - - return $this; - } - - /** - * Remove a directory from the list translation files are searched in. - * - * @param string $directory directory path - * - * @return $this - */ - public function removeDirectory(string $directory): static - { - $search = rtrim(strtr($directory, '\\', '/'), '/'); - - return $this->setDirectories(array_filter( - $this->getDirectories(), - static fn ($item) => rtrim(strtr($item, '\\', '/'), '/') !== $search, - )); - } - - /** - * Reset messages of a locale (all locale if no locale passed). - * Remove custom messages and reload initial messages from matching - * file in Lang directory. - */ - public function resetMessages(?string $locale = null): bool - { - if ($locale === null) { - $this->messages = []; - - return true; - } - - $this->assertValidLocale($locale); - - foreach ($this->getDirectories() as $directory) { - $data = @include \sprintf('%s/%s.php', rtrim($directory, '\\/'), $locale); - - if ($data !== false) { - $this->messages[$locale] = $data; - $this->addResource('array', $this->messages[$locale], $locale); - - return true; - } - } - - return false; - } - - /** - * Returns the list of files matching a given locale prefix (or all if empty). - * - * @param string $prefix prefix required to filter result - * - * @return array - */ - public function getLocalesFiles(string $prefix = ''): array - { - $files = []; - - foreach ($this->getDirectories() as $directory) { - $directory = rtrim($directory, '\\/'); - - foreach (glob("$directory/$prefix*.php") as $file) { - $files[] = $file; - } - } - - return array_unique($files); - } - - /** - * Returns the list of internally available locales and already loaded custom locales. - * (It will ignore custom translator dynamic loading.) - * - * @param string $prefix prefix required to filter result - * - * @return array - */ - public function getAvailableLocales(string $prefix = ''): array - { - $locales = []; - foreach ($this->getLocalesFiles($prefix) as $file) { - $locales[] = substr($file, strrpos($file, '/') + 1, -4); - } - - return array_unique(array_merge($locales, array_keys($this->messages))); - } - - protected function translate(?string $id, array $parameters = [], ?string $domain = null, ?string $locale = null): string - { - if ($domain === null) { - $domain = 'messages'; - } - - $catalogue = $this->getCatalogue($locale); - $format = $this instanceof TranslatorStrongTypeInterface - ? $this->getFromCatalogue($catalogue, (string) $id, $domain) - : $this->getCatalogue($locale)->get((string) $id, $domain); // @codeCoverageIgnore - - if ($format instanceof Closure) { - // @codeCoverageIgnoreStart - try { - $count = (new ReflectionFunction($format))->getNumberOfRequiredParameters(); - } catch (ReflectionException) { - $count = 0; - } - // @codeCoverageIgnoreEnd - - return $format( - ...array_values($parameters), - ...array_fill(0, max(0, $count - \count($parameters)), null) - ); - } - - return parent::trans($id, $parameters, $domain, $locale); - } - - /** - * Init messages language from matching file in Lang directory. - * - * @param string $locale - * - * @return bool - */ - protected function loadMessagesFromFile(string $locale): bool - { - return isset($this->messages[$locale]) || $this->resetMessages($locale); - } - - /** - * Set messages of a locale and take file first if present. - * - * @param string $locale - * @param array $messages - * - * @return $this - */ - public function setMessages(string $locale, array $messages): static - { - $this->loadMessagesFromFile($locale); - $this->addResource('array', $messages, $locale); - $this->messages[$locale] = array_merge( - $this->messages[$locale] ?? [], - $messages - ); - - return $this; - } - - /** - * Set messages of the current locale and take file first if present. - * - * @param array $messages - * - * @return $this - */ - public function setTranslations(array $messages): static - { - return $this->setMessages($this->getLocale(), $messages); - } - - /** - * Get messages of a locale, if none given, return all the - * languages. - */ - public function getMessages(?string $locale = null): array - { - return $locale === null ? $this->messages : $this->messages[$locale]; - } - - /** - * Set the current translator locale and indicate if the source locale file exists - * - * @param string $locale locale ex. en - */ - public function setLocale($locale): void - { - $locale = preg_replace_callback('/[-_]([a-z]{2,}|\d{2,})/', function ($matches) { - // _2-letters or YUE is a region, _3+-letters is a variant - $upper = strtoupper($matches[1]); - - if ($upper === 'YUE' || $upper === 'ISO' || \strlen($upper) <= static::REGION_CODE_LENGTH) { - return "_$upper"; - } - - return '_'.ucfirst($matches[1]); - }, strtolower($locale)); - - $previousLocale = $this->getLocale(); - - if ($previousLocale === $locale && isset($this->messages[$locale])) { - return; - } - - unset(static::$singletons[$previousLocale]); - - if ($locale === 'auto') { - $completeLocale = setlocale(LC_TIME, '0'); - $locale = preg_replace('/^([^_.-]+).*$/', '$1', $completeLocale); - $locales = $this->getAvailableLocales($locale); - - $completeLocaleChunks = preg_split('/[_.-]+/', $completeLocale); - - $getScore = static fn ($language) => self::compareChunkLists( - $completeLocaleChunks, - preg_split('/[_.-]+/', $language), - ); - - usort($locales, static fn ($first, $second) => $getScore($second) <=> $getScore($first)); - - $locale = $locales[0]; - } - - if (isset($this->aliases[$locale])) { - $locale = $this->aliases[$locale]; - } - - // If subtag (ex: en_CA) first load the macro (ex: en) to have a fallback - if (str_contains($locale, '_') && - $this->loadMessagesFromFile($macroLocale = preg_replace('/^([^_]+).*$/', '$1', $locale)) - ) { - parent::setLocale($macroLocale); - } - - if (!$this->loadMessagesFromFile($locale) && !$this->initializing) { - return; - } - - parent::setLocale($locale); - } - - /** - * Show locale on var_dump(). - * - * @return array - */ - public function __debugInfo() - { - return [ - 'locale' => $this->getLocale(), - ]; - } - - public function __serialize(): array - { - return [ - 'locale' => $this->getLocale(), - ]; - } - - public function __unserialize(array $data): void - { - $this->initialize($data['locale'] ?? 'en'); - } - - private function initialize($locale, ?MessageFormatterInterface $formatter = null, $cacheDir = null, $debug = false): void - { - parent::setLocale($locale); - $this->initializing = true; - $this->directories = [__DIR__.'/Lang']; - $this->addLoader('array', new ArrayLoader()); - parent::__construct($locale, new MessageFormatterMapper($formatter), $cacheDir, $debug); - $this->initializing = false; - } - - private static function compareChunkLists($referenceChunks, $chunks) - { - $score = 0; - - foreach ($referenceChunks as $index => $chunk) { - if (!isset($chunks[$index])) { - $score++; - - continue; - } - - if (strtolower($chunks[$index]) === strtolower($chunk)) { - $score += 10; - } - } - - return $score; - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Callback.php b/vendor/nesbot/carbon/src/Carbon/Callback.php deleted file mode 100644 index c7456f1..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Callback.php +++ /dev/null @@ -1,129 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon; - -use Closure; -use DateInterval; -use DatePeriod; -use DateTime; -use DateTimeInterface; -use DateTimeZone; -use ReflectionFunction; -use ReflectionNamedType; -use ReflectionType; - -final class Callback -{ - private ?ReflectionFunction $function; - - private function __construct(private readonly Closure $closure) - { - } - - public static function fromClosure(Closure $closure): self - { - return new self($closure); - } - - public static function parameter(mixed $closure, mixed $value, string|int $index = 0): mixed - { - if ($closure instanceof Closure) { - return self::fromClosure($closure)->prepareParameter($value, $index); - } - - return $value; - } - - public function getReflectionFunction(): ReflectionFunction - { - return $this->function ??= new ReflectionFunction($this->closure); - } - - public function prepareParameter(mixed $value, string|int $index = 0): mixed - { - $type = $this->getParameterType($index); - - if (!($type instanceof ReflectionNamedType)) { - return $value; - } - - $name = $type->getName(); - - if ($name === CarbonInterface::class) { - $name = $value instanceof DateTime ? Carbon::class : CarbonImmutable::class; - } - - if (!class_exists($name) || is_a($value, $name)) { - return $value; - } - - $class = $this->getPromotedClass($value); - - if ($class && is_a($name, $class, true)) { - return $name::instance($value); - } - - return $value; - } - - public function call(mixed ...$arguments): mixed - { - foreach ($arguments as $index => &$value) { - if ($this->getPromotedClass($value)) { - $value = $this->prepareParameter($value, $index); - } - } - - return ($this->closure)(...$arguments); - } - - private function getParameterType(string|int $index): ?ReflectionType - { - $parameters = $this->getReflectionFunction()->getParameters(); - - if (\is_int($index)) { - return ($parameters[$index] ?? null)?->getType(); - } - - foreach ($parameters as $parameter) { - if ($parameter->getName() === $index) { - return $parameter->getType(); - } - } - - return null; - } - - /** @return class-string|null */ - private function getPromotedClass(mixed $value): ?string - { - if ($value instanceof DateTimeInterface) { - return CarbonInterface::class; - } - - if ($value instanceof DateInterval) { - return CarbonInterval::class; - } - - if ($value instanceof DatePeriod) { - return CarbonPeriod::class; - } - - if ($value instanceof DateTimeZone) { - return CarbonTimeZone::class; - } - - return null; - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Carbon.php b/vendor/nesbot/carbon/src/Carbon/Carbon.php deleted file mode 100644 index 8364e84..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Carbon.php +++ /dev/null @@ -1,847 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon; - -use Carbon\Traits\Date; -use DateTime; -use DateTimeInterface; - -/** - * A simple API extension for DateTime. - * - * - * - * @property string $localeDayOfWeek the day of week in current locale - * @property string $shortLocaleDayOfWeek the abbreviated day of week in current locale - * @property string $localeMonth the month in current locale - * @property string $shortLocaleMonth the abbreviated month in current locale - * @property int $year - * @property int $yearIso - * @property int $month - * @property int $day - * @property int $hour - * @property int $minute - * @property int $second - * @property int $micro - * @property int $microsecond - * @property int $dayOfWeekIso 1 (for Monday) through 7 (for Sunday) - * @property int|float|string $timestamp seconds since the Unix Epoch - * @property string $englishDayOfWeek the day of week in English - * @property string $shortEnglishDayOfWeek the abbreviated day of week in English - * @property string $englishMonth the month in English - * @property string $shortEnglishMonth the abbreviated month in English - * @property int $milliseconds - * @property int $millisecond - * @property int $milli - * @property int $week 1 through 53 - * @property int $isoWeek 1 through 53 - * @property int $weekYear year according to week format - * @property int $isoWeekYear year according to ISO week format - * @property int $age does a diffInYears() with default parameters - * @property int $offset the timezone offset in seconds from UTC - * @property int $offsetMinutes the timezone offset in minutes from UTC - * @property int $offsetHours the timezone offset in hours from UTC - * @property CarbonTimeZone $timezone the current timezone - * @property CarbonTimeZone $tz alias of $timezone - * @property int $centuryOfMillennium The value of the century starting from the beginning of the current millennium - * @property int $dayOfCentury The value of the day starting from the beginning of the current century - * @property int $dayOfDecade The value of the day starting from the beginning of the current decade - * @property int $dayOfMillennium The value of the day starting from the beginning of the current millennium - * @property int $dayOfMonth The value of the day starting from the beginning of the current month - * @property int $dayOfQuarter The value of the day starting from the beginning of the current quarter - * @property int $dayOfWeek 0 (for Sunday) through 6 (for Saturday) - * @property int $dayOfYear 1 through 366 - * @property int $decadeOfCentury The value of the decade starting from the beginning of the current century - * @property int $decadeOfMillennium The value of the decade starting from the beginning of the current millennium - * @property int $hourOfCentury The value of the hour starting from the beginning of the current century - * @property int $hourOfDay The value of the hour starting from the beginning of the current day - * @property int $hourOfDecade The value of the hour starting from the beginning of the current decade - * @property int $hourOfMillennium The value of the hour starting from the beginning of the current millennium - * @property int $hourOfMonth The value of the hour starting from the beginning of the current month - * @property int $hourOfQuarter The value of the hour starting from the beginning of the current quarter - * @property int $hourOfWeek The value of the hour starting from the beginning of the current week - * @property int $hourOfYear The value of the hour starting from the beginning of the current year - * @property int $microsecondOfCentury The value of the microsecond starting from the beginning of the current century - * @property int $microsecondOfDay The value of the microsecond starting from the beginning of the current day - * @property int $microsecondOfDecade The value of the microsecond starting from the beginning of the current decade - * @property int $microsecondOfHour The value of the microsecond starting from the beginning of the current hour - * @property int $microsecondOfMillennium The value of the microsecond starting from the beginning of the current millennium - * @property int $microsecondOfMillisecond The value of the microsecond starting from the beginning of the current millisecond - * @property int $microsecondOfMinute The value of the microsecond starting from the beginning of the current minute - * @property int $microsecondOfMonth The value of the microsecond starting from the beginning of the current month - * @property int $microsecondOfQuarter The value of the microsecond starting from the beginning of the current quarter - * @property int $microsecondOfSecond The value of the microsecond starting from the beginning of the current second - * @property int $microsecondOfWeek The value of the microsecond starting from the beginning of the current week - * @property int $microsecondOfYear The value of the microsecond starting from the beginning of the current year - * @property int $millisecondOfCentury The value of the millisecond starting from the beginning of the current century - * @property int $millisecondOfDay The value of the millisecond starting from the beginning of the current day - * @property int $millisecondOfDecade The value of the millisecond starting from the beginning of the current decade - * @property int $millisecondOfHour The value of the millisecond starting from the beginning of the current hour - * @property int $millisecondOfMillennium The value of the millisecond starting from the beginning of the current millennium - * @property int $millisecondOfMinute The value of the millisecond starting from the beginning of the current minute - * @property int $millisecondOfMonth The value of the millisecond starting from the beginning of the current month - * @property int $millisecondOfQuarter The value of the millisecond starting from the beginning of the current quarter - * @property int $millisecondOfSecond The value of the millisecond starting from the beginning of the current second - * @property int $millisecondOfWeek The value of the millisecond starting from the beginning of the current week - * @property int $millisecondOfYear The value of the millisecond starting from the beginning of the current year - * @property int $minuteOfCentury The value of the minute starting from the beginning of the current century - * @property int $minuteOfDay The value of the minute starting from the beginning of the current day - * @property int $minuteOfDecade The value of the minute starting from the beginning of the current decade - * @property int $minuteOfHour The value of the minute starting from the beginning of the current hour - * @property int $minuteOfMillennium The value of the minute starting from the beginning of the current millennium - * @property int $minuteOfMonth The value of the minute starting from the beginning of the current month - * @property int $minuteOfQuarter The value of the minute starting from the beginning of the current quarter - * @property int $minuteOfWeek The value of the minute starting from the beginning of the current week - * @property int $minuteOfYear The value of the minute starting from the beginning of the current year - * @property int $monthOfCentury The value of the month starting from the beginning of the current century - * @property int $monthOfDecade The value of the month starting from the beginning of the current decade - * @property int $monthOfMillennium The value of the month starting from the beginning of the current millennium - * @property int $monthOfQuarter The value of the month starting from the beginning of the current quarter - * @property int $monthOfYear The value of the month starting from the beginning of the current year - * @property int $quarterOfCentury The value of the quarter starting from the beginning of the current century - * @property int $quarterOfDecade The value of the quarter starting from the beginning of the current decade - * @property int $quarterOfMillennium The value of the quarter starting from the beginning of the current millennium - * @property int $quarterOfYear The value of the quarter starting from the beginning of the current year - * @property int $secondOfCentury The value of the second starting from the beginning of the current century - * @property int $secondOfDay The value of the second starting from the beginning of the current day - * @property int $secondOfDecade The value of the second starting from the beginning of the current decade - * @property int $secondOfHour The value of the second starting from the beginning of the current hour - * @property int $secondOfMillennium The value of the second starting from the beginning of the current millennium - * @property int $secondOfMinute The value of the second starting from the beginning of the current minute - * @property int $secondOfMonth The value of the second starting from the beginning of the current month - * @property int $secondOfQuarter The value of the second starting from the beginning of the current quarter - * @property int $secondOfWeek The value of the second starting from the beginning of the current week - * @property int $secondOfYear The value of the second starting from the beginning of the current year - * @property int $weekOfCentury The value of the week starting from the beginning of the current century - * @property int $weekOfDecade The value of the week starting from the beginning of the current decade - * @property int $weekOfMillennium The value of the week starting from the beginning of the current millennium - * @property int $weekOfMonth 1 through 5 - * @property int $weekOfQuarter The value of the week starting from the beginning of the current quarter - * @property int $weekOfYear ISO-8601 week number of year, weeks starting on Monday - * @property int $yearOfCentury The value of the year starting from the beginning of the current century - * @property int $yearOfDecade The value of the year starting from the beginning of the current decade - * @property int $yearOfMillennium The value of the year starting from the beginning of the current millennium - * @property-read string $latinMeridiem "am"/"pm" (Ante meridiem or Post meridiem latin lowercase mark) - * @property-read string $latinUpperMeridiem "AM"/"PM" (Ante meridiem or Post meridiem latin uppercase mark) - * @property-read string $timezoneAbbreviatedName the current timezone abbreviated name - * @property-read string $tzAbbrName alias of $timezoneAbbreviatedName - * @property-read string $dayName long name of weekday translated according to Carbon locale, in english if no translation available for current language - * @property-read string $shortDayName short name of weekday translated according to Carbon locale, in english if no translation available for current language - * @property-read string $minDayName very short name of weekday translated according to Carbon locale, in english if no translation available for current language - * @property-read string $monthName long name of month translated according to Carbon locale, in english if no translation available for current language - * @property-read string $shortMonthName short name of month translated according to Carbon locale, in english if no translation available for current language - * @property-read string $meridiem lowercase meridiem mark translated according to Carbon locale, in latin if no translation available for current language - * @property-read string $upperMeridiem uppercase meridiem mark translated according to Carbon locale, in latin if no translation available for current language - * @property-read int $noZeroHour current hour from 1 to 24 - * @property-read int $isoWeeksInYear 51 through 53 - * @property-read int $weekNumberInMonth 1 through 5 - * @property-read int $firstWeekDay 0 through 6 - * @property-read int $lastWeekDay 0 through 6 - * @property-read int $quarter the quarter of this instance, 1 - 4 - * @property-read int $decade the decade of this instance - * @property-read int $century the century of this instance - * @property-read int $millennium the millennium of this instance - * @property-read bool $dst daylight savings time indicator, true if DST, false otherwise - * @property-read bool $local checks if the timezone is local, true if local, false otherwise - * @property-read bool $utc checks if the timezone is UTC, true if UTC, false otherwise - * @property-read string $timezoneName the current timezone name - * @property-read string $tzName alias of $timezoneName - * @property-read string $locale locale of the current instance - * @property-read int $centuriesInMillennium The number of centuries contained in the current millennium - * @property-read int $daysInCentury The number of days contained in the current century - * @property-read int $daysInDecade The number of days contained in the current decade - * @property-read int $daysInMillennium The number of days contained in the current millennium - * @property-read int $daysInMonth number of days in the given month - * @property-read int $daysInQuarter The number of days contained in the current quarter - * @property-read int $daysInWeek The number of days contained in the current week - * @property-read int $daysInYear 365 or 366 - * @property-read int $decadesInCentury The number of decades contained in the current century - * @property-read int $decadesInMillennium The number of decades contained in the current millennium - * @property-read int $hoursInCentury The number of hours contained in the current century - * @property-read int $hoursInDay The number of hours contained in the current day - * @property-read int $hoursInDecade The number of hours contained in the current decade - * @property-read int $hoursInMillennium The number of hours contained in the current millennium - * @property-read int $hoursInMonth The number of hours contained in the current month - * @property-read int $hoursInQuarter The number of hours contained in the current quarter - * @property-read int $hoursInWeek The number of hours contained in the current week - * @property-read int $hoursInYear The number of hours contained in the current year - * @property-read int $microsecondsInCentury The number of microseconds contained in the current century - * @property-read int $microsecondsInDay The number of microseconds contained in the current day - * @property-read int $microsecondsInDecade The number of microseconds contained in the current decade - * @property-read int $microsecondsInHour The number of microseconds contained in the current hour - * @property-read int $microsecondsInMillennium The number of microseconds contained in the current millennium - * @property-read int $microsecondsInMillisecond The number of microseconds contained in the current millisecond - * @property-read int $microsecondsInMinute The number of microseconds contained in the current minute - * @property-read int $microsecondsInMonth The number of microseconds contained in the current month - * @property-read int $microsecondsInQuarter The number of microseconds contained in the current quarter - * @property-read int $microsecondsInSecond The number of microseconds contained in the current second - * @property-read int $microsecondsInWeek The number of microseconds contained in the current week - * @property-read int $microsecondsInYear The number of microseconds contained in the current year - * @property-read int $millisecondsInCentury The number of milliseconds contained in the current century - * @property-read int $millisecondsInDay The number of milliseconds contained in the current day - * @property-read int $millisecondsInDecade The number of milliseconds contained in the current decade - * @property-read int $millisecondsInHour The number of milliseconds contained in the current hour - * @property-read int $millisecondsInMillennium The number of milliseconds contained in the current millennium - * @property-read int $millisecondsInMinute The number of milliseconds contained in the current minute - * @property-read int $millisecondsInMonth The number of milliseconds contained in the current month - * @property-read int $millisecondsInQuarter The number of milliseconds contained in the current quarter - * @property-read int $millisecondsInSecond The number of milliseconds contained in the current second - * @property-read int $millisecondsInWeek The number of milliseconds contained in the current week - * @property-read int $millisecondsInYear The number of milliseconds contained in the current year - * @property-read int $minutesInCentury The number of minutes contained in the current century - * @property-read int $minutesInDay The number of minutes contained in the current day - * @property-read int $minutesInDecade The number of minutes contained in the current decade - * @property-read int $minutesInHour The number of minutes contained in the current hour - * @property-read int $minutesInMillennium The number of minutes contained in the current millennium - * @property-read int $minutesInMonth The number of minutes contained in the current month - * @property-read int $minutesInQuarter The number of minutes contained in the current quarter - * @property-read int $minutesInWeek The number of minutes contained in the current week - * @property-read int $minutesInYear The number of minutes contained in the current year - * @property-read int $monthsInCentury The number of months contained in the current century - * @property-read int $monthsInDecade The number of months contained in the current decade - * @property-read int $monthsInMillennium The number of months contained in the current millennium - * @property-read int $monthsInQuarter The number of months contained in the current quarter - * @property-read int $monthsInYear The number of months contained in the current year - * @property-read int $quartersInCentury The number of quarters contained in the current century - * @property-read int $quartersInDecade The number of quarters contained in the current decade - * @property-read int $quartersInMillennium The number of quarters contained in the current millennium - * @property-read int $quartersInYear The number of quarters contained in the current year - * @property-read int $secondsInCentury The number of seconds contained in the current century - * @property-read int $secondsInDay The number of seconds contained in the current day - * @property-read int $secondsInDecade The number of seconds contained in the current decade - * @property-read int $secondsInHour The number of seconds contained in the current hour - * @property-read int $secondsInMillennium The number of seconds contained in the current millennium - * @property-read int $secondsInMinute The number of seconds contained in the current minute - * @property-read int $secondsInMonth The number of seconds contained in the current month - * @property-read int $secondsInQuarter The number of seconds contained in the current quarter - * @property-read int $secondsInWeek The number of seconds contained in the current week - * @property-read int $secondsInYear The number of seconds contained in the current year - * @property-read int $weeksInCentury The number of weeks contained in the current century - * @property-read int $weeksInDecade The number of weeks contained in the current decade - * @property-read int $weeksInMillennium The number of weeks contained in the current millennium - * @property-read int $weeksInMonth The number of weeks contained in the current month - * @property-read int $weeksInQuarter The number of weeks contained in the current quarter - * @property-read int $weeksInYear 51 through 53 - * @property-read int $yearsInCentury The number of years contained in the current century - * @property-read int $yearsInDecade The number of years contained in the current decade - * @property-read int $yearsInMillennium The number of years contained in the current millennium - * - * @method bool isUtc() Check if the current instance has UTC timezone. (Both isUtc and isUTC cases are valid.) - * @method bool isLocal() Check if the current instance has non-UTC timezone. - * @method bool isValid() Check if the current instance is a valid date. - * @method bool isDST() Check if the current instance is in a daylight saving time. - * @method bool isSunday() Checks if the instance day is sunday. - * @method bool isMonday() Checks if the instance day is monday. - * @method bool isTuesday() Checks if the instance day is tuesday. - * @method bool isWednesday() Checks if the instance day is wednesday. - * @method bool isThursday() Checks if the instance day is thursday. - * @method bool isFriday() Checks if the instance day is friday. - * @method bool isSaturday() Checks if the instance day is saturday. - * @method bool isSameYear(DateTimeInterface|string $date) Checks if the given date is in the same year as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentYear() Checks if the instance is in the same year as the current moment. - * @method bool isNextYear() Checks if the instance is in the same year as the current moment next year. - * @method bool isLastYear() Checks if the instance is in the same year as the current moment last year. - * @method bool isCurrentMonth() Checks if the instance is in the same month as the current moment. - * @method bool isNextMonth() Checks if the instance is in the same month as the current moment next month. - * @method bool isLastMonth() Checks if the instance is in the same month as the current moment last month. - * @method bool isSameWeek(DateTimeInterface|string $date) Checks if the given date is in the same week as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentWeek() Checks if the instance is in the same week as the current moment. - * @method bool isNextWeek() Checks if the instance is in the same week as the current moment next week. - * @method bool isLastWeek() Checks if the instance is in the same week as the current moment last week. - * @method bool isSameDay(DateTimeInterface|string $date) Checks if the given date is in the same day as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentDay() Checks if the instance is in the same day as the current moment. - * @method bool isNextDay() Checks if the instance is in the same day as the current moment next day. - * @method bool isLastDay() Checks if the instance is in the same day as the current moment last day. - * @method bool isSameHour(DateTimeInterface|string $date) Checks if the given date is in the same hour as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentHour() Checks if the instance is in the same hour as the current moment. - * @method bool isNextHour() Checks if the instance is in the same hour as the current moment next hour. - * @method bool isLastHour() Checks if the instance is in the same hour as the current moment last hour. - * @method bool isSameMinute(DateTimeInterface|string $date) Checks if the given date is in the same minute as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentMinute() Checks if the instance is in the same minute as the current moment. - * @method bool isNextMinute() Checks if the instance is in the same minute as the current moment next minute. - * @method bool isLastMinute() Checks if the instance is in the same minute as the current moment last minute. - * @method bool isSameSecond(DateTimeInterface|string $date) Checks if the given date is in the same second as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentSecond() Checks if the instance is in the same second as the current moment. - * @method bool isNextSecond() Checks if the instance is in the same second as the current moment next second. - * @method bool isLastSecond() Checks if the instance is in the same second as the current moment last second. - * @method bool isSameMilli(DateTimeInterface|string $date) Checks if the given date is in the same millisecond as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentMilli() Checks if the instance is in the same millisecond as the current moment. - * @method bool isNextMilli() Checks if the instance is in the same millisecond as the current moment next millisecond. - * @method bool isLastMilli() Checks if the instance is in the same millisecond as the current moment last millisecond. - * @method bool isSameMillisecond(DateTimeInterface|string $date) Checks if the given date is in the same millisecond as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentMillisecond() Checks if the instance is in the same millisecond as the current moment. - * @method bool isNextMillisecond() Checks if the instance is in the same millisecond as the current moment next millisecond. - * @method bool isLastMillisecond() Checks if the instance is in the same millisecond as the current moment last millisecond. - * @method bool isSameMicro(DateTimeInterface|string $date) Checks if the given date is in the same microsecond as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentMicro() Checks if the instance is in the same microsecond as the current moment. - * @method bool isNextMicro() Checks if the instance is in the same microsecond as the current moment next microsecond. - * @method bool isLastMicro() Checks if the instance is in the same microsecond as the current moment last microsecond. - * @method bool isSameMicrosecond(DateTimeInterface|string $date) Checks if the given date is in the same microsecond as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentMicrosecond() Checks if the instance is in the same microsecond as the current moment. - * @method bool isNextMicrosecond() Checks if the instance is in the same microsecond as the current moment next microsecond. - * @method bool isLastMicrosecond() Checks if the instance is in the same microsecond as the current moment last microsecond. - * @method bool isSameDecade(DateTimeInterface|string $date) Checks if the given date is in the same decade as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentDecade() Checks if the instance is in the same decade as the current moment. - * @method bool isNextDecade() Checks if the instance is in the same decade as the current moment next decade. - * @method bool isLastDecade() Checks if the instance is in the same decade as the current moment last decade. - * @method bool isSameCentury(DateTimeInterface|string $date) Checks if the given date is in the same century as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentCentury() Checks if the instance is in the same century as the current moment. - * @method bool isNextCentury() Checks if the instance is in the same century as the current moment next century. - * @method bool isLastCentury() Checks if the instance is in the same century as the current moment last century. - * @method bool isSameMillennium(DateTimeInterface|string $date) Checks if the given date is in the same millennium as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentMillennium() Checks if the instance is in the same millennium as the current moment. - * @method bool isNextMillennium() Checks if the instance is in the same millennium as the current moment next millennium. - * @method bool isLastMillennium() Checks if the instance is in the same millennium as the current moment last millennium. - * @method bool isCurrentQuarter() Checks if the instance is in the same quarter as the current moment. - * @method bool isNextQuarter() Checks if the instance is in the same quarter as the current moment next quarter. - * @method bool isLastQuarter() Checks if the instance is in the same quarter as the current moment last quarter. - * @method $this years(int $value) Set current instance year to the given value. - * @method $this year(int $value) Set current instance year to the given value. - * @method $this setYears(int $value) Set current instance year to the given value. - * @method $this setYear(int $value) Set current instance year to the given value. - * @method $this months(Month|int $value) Set current instance month to the given value. - * @method $this month(Month|int $value) Set current instance month to the given value. - * @method $this setMonths(Month|int $value) Set current instance month to the given value. - * @method $this setMonth(Month|int $value) Set current instance month to the given value. - * @method $this days(int $value) Set current instance day to the given value. - * @method $this day(int $value) Set current instance day to the given value. - * @method $this setDays(int $value) Set current instance day to the given value. - * @method $this setDay(int $value) Set current instance day to the given value. - * @method $this hours(int $value) Set current instance hour to the given value. - * @method $this hour(int $value) Set current instance hour to the given value. - * @method $this setHours(int $value) Set current instance hour to the given value. - * @method $this setHour(int $value) Set current instance hour to the given value. - * @method $this minutes(int $value) Set current instance minute to the given value. - * @method $this minute(int $value) Set current instance minute to the given value. - * @method $this setMinutes(int $value) Set current instance minute to the given value. - * @method $this setMinute(int $value) Set current instance minute to the given value. - * @method $this seconds(int $value) Set current instance second to the given value. - * @method $this second(int $value) Set current instance second to the given value. - * @method $this setSeconds(int $value) Set current instance second to the given value. - * @method $this setSecond(int $value) Set current instance second to the given value. - * @method $this millis(int $value) Set current instance millisecond to the given value. - * @method $this milli(int $value) Set current instance millisecond to the given value. - * @method $this setMillis(int $value) Set current instance millisecond to the given value. - * @method $this setMilli(int $value) Set current instance millisecond to the given value. - * @method $this milliseconds(int $value) Set current instance millisecond to the given value. - * @method $this millisecond(int $value) Set current instance millisecond to the given value. - * @method $this setMilliseconds(int $value) Set current instance millisecond to the given value. - * @method $this setMillisecond(int $value) Set current instance millisecond to the given value. - * @method $this micros(int $value) Set current instance microsecond to the given value. - * @method $this micro(int $value) Set current instance microsecond to the given value. - * @method $this setMicros(int $value) Set current instance microsecond to the given value. - * @method $this setMicro(int $value) Set current instance microsecond to the given value. - * @method $this microseconds(int $value) Set current instance microsecond to the given value. - * @method $this microsecond(int $value) Set current instance microsecond to the given value. - * @method $this setMicroseconds(int $value) Set current instance microsecond to the given value. - * @method $this setMicrosecond(int $value) Set current instance microsecond to the given value. - * @method $this addYears(int|float $value = 1) Add years (the $value count passed in) to the instance (using date interval). - * @method $this addYear() Add one year to the instance (using date interval). - * @method $this subYears(int|float $value = 1) Sub years (the $value count passed in) to the instance (using date interval). - * @method $this subYear() Sub one year to the instance (using date interval). - * @method $this addYearsWithOverflow(int|float $value = 1) Add years (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method $this addYearWithOverflow() Add one year to the instance (using date interval) with overflow explicitly allowed. - * @method $this subYearsWithOverflow(int|float $value = 1) Sub years (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method $this subYearWithOverflow() Sub one year to the instance (using date interval) with overflow explicitly allowed. - * @method $this addYearsWithoutOverflow(int|float $value = 1) Add years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method $this addYearWithoutOverflow() Add one year to the instance (using date interval) with overflow explicitly forbidden. - * @method $this subYearsWithoutOverflow(int|float $value = 1) Sub years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method $this subYearWithoutOverflow() Sub one year to the instance (using date interval) with overflow explicitly forbidden. - * @method $this addYearsWithNoOverflow(int|float $value = 1) Add years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method $this addYearWithNoOverflow() Add one year to the instance (using date interval) with overflow explicitly forbidden. - * @method $this subYearsWithNoOverflow(int|float $value = 1) Sub years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method $this subYearWithNoOverflow() Sub one year to the instance (using date interval) with overflow explicitly forbidden. - * @method $this addYearsNoOverflow(int|float $value = 1) Add years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method $this addYearNoOverflow() Add one year to the instance (using date interval) with overflow explicitly forbidden. - * @method $this subYearsNoOverflow(int|float $value = 1) Sub years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method $this subYearNoOverflow() Sub one year to the instance (using date interval) with overflow explicitly forbidden. - * @method $this addMonths(int|float $value = 1) Add months (the $value count passed in) to the instance (using date interval). - * @method $this addMonth() Add one month to the instance (using date interval). - * @method $this subMonths(int|float $value = 1) Sub months (the $value count passed in) to the instance (using date interval). - * @method $this subMonth() Sub one month to the instance (using date interval). - * @method $this addMonthsWithOverflow(int|float $value = 1) Add months (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method $this addMonthWithOverflow() Add one month to the instance (using date interval) with overflow explicitly allowed. - * @method $this subMonthsWithOverflow(int|float $value = 1) Sub months (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method $this subMonthWithOverflow() Sub one month to the instance (using date interval) with overflow explicitly allowed. - * @method $this addMonthsWithoutOverflow(int|float $value = 1) Add months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method $this addMonthWithoutOverflow() Add one month to the instance (using date interval) with overflow explicitly forbidden. - * @method $this subMonthsWithoutOverflow(int|float $value = 1) Sub months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method $this subMonthWithoutOverflow() Sub one month to the instance (using date interval) with overflow explicitly forbidden. - * @method $this addMonthsWithNoOverflow(int|float $value = 1) Add months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method $this addMonthWithNoOverflow() Add one month to the instance (using date interval) with overflow explicitly forbidden. - * @method $this subMonthsWithNoOverflow(int|float $value = 1) Sub months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method $this subMonthWithNoOverflow() Sub one month to the instance (using date interval) with overflow explicitly forbidden. - * @method $this addMonthsNoOverflow(int|float $value = 1) Add months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method $this addMonthNoOverflow() Add one month to the instance (using date interval) with overflow explicitly forbidden. - * @method $this subMonthsNoOverflow(int|float $value = 1) Sub months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method $this subMonthNoOverflow() Sub one month to the instance (using date interval) with overflow explicitly forbidden. - * @method $this addDays(int|float $value = 1) Add days (the $value count passed in) to the instance (using date interval). - * @method $this addDay() Add one day to the instance (using date interval). - * @method $this subDays(int|float $value = 1) Sub days (the $value count passed in) to the instance (using date interval). - * @method $this subDay() Sub one day to the instance (using date interval). - * @method $this addHours(int|float $value = 1) Add hours (the $value count passed in) to the instance (using date interval). - * @method $this addHour() Add one hour to the instance (using date interval). - * @method $this subHours(int|float $value = 1) Sub hours (the $value count passed in) to the instance (using date interval). - * @method $this subHour() Sub one hour to the instance (using date interval). - * @method $this addMinutes(int|float $value = 1) Add minutes (the $value count passed in) to the instance (using date interval). - * @method $this addMinute() Add one minute to the instance (using date interval). - * @method $this subMinutes(int|float $value = 1) Sub minutes (the $value count passed in) to the instance (using date interval). - * @method $this subMinute() Sub one minute to the instance (using date interval). - * @method $this addSeconds(int|float $value = 1) Add seconds (the $value count passed in) to the instance (using date interval). - * @method $this addSecond() Add one second to the instance (using date interval). - * @method $this subSeconds(int|float $value = 1) Sub seconds (the $value count passed in) to the instance (using date interval). - * @method $this subSecond() Sub one second to the instance (using date interval). - * @method $this addMillis(int|float $value = 1) Add milliseconds (the $value count passed in) to the instance (using date interval). - * @method $this addMilli() Add one millisecond to the instance (using date interval). - * @method $this subMillis(int|float $value = 1) Sub milliseconds (the $value count passed in) to the instance (using date interval). - * @method $this subMilli() Sub one millisecond to the instance (using date interval). - * @method $this addMilliseconds(int|float $value = 1) Add milliseconds (the $value count passed in) to the instance (using date interval). - * @method $this addMillisecond() Add one millisecond to the instance (using date interval). - * @method $this subMilliseconds(int|float $value = 1) Sub milliseconds (the $value count passed in) to the instance (using date interval). - * @method $this subMillisecond() Sub one millisecond to the instance (using date interval). - * @method $this addMicros(int|float $value = 1) Add microseconds (the $value count passed in) to the instance (using date interval). - * @method $this addMicro() Add one microsecond to the instance (using date interval). - * @method $this subMicros(int|float $value = 1) Sub microseconds (the $value count passed in) to the instance (using date interval). - * @method $this subMicro() Sub one microsecond to the instance (using date interval). - * @method $this addMicroseconds(int|float $value = 1) Add microseconds (the $value count passed in) to the instance (using date interval). - * @method $this addMicrosecond() Add one microsecond to the instance (using date interval). - * @method $this subMicroseconds(int|float $value = 1) Sub microseconds (the $value count passed in) to the instance (using date interval). - * @method $this subMicrosecond() Sub one microsecond to the instance (using date interval). - * @method $this addMillennia(int|float $value = 1) Add millennia (the $value count passed in) to the instance (using date interval). - * @method $this addMillennium() Add one millennium to the instance (using date interval). - * @method $this subMillennia(int|float $value = 1) Sub millennia (the $value count passed in) to the instance (using date interval). - * @method $this subMillennium() Sub one millennium to the instance (using date interval). - * @method $this addMillenniaWithOverflow(int|float $value = 1) Add millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method $this addMillenniumWithOverflow() Add one millennium to the instance (using date interval) with overflow explicitly allowed. - * @method $this subMillenniaWithOverflow(int|float $value = 1) Sub millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method $this subMillenniumWithOverflow() Sub one millennium to the instance (using date interval) with overflow explicitly allowed. - * @method $this addMillenniaWithoutOverflow(int|float $value = 1) Add millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method $this addMillenniumWithoutOverflow() Add one millennium to the instance (using date interval) with overflow explicitly forbidden. - * @method $this subMillenniaWithoutOverflow(int|float $value = 1) Sub millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method $this subMillenniumWithoutOverflow() Sub one millennium to the instance (using date interval) with overflow explicitly forbidden. - * @method $this addMillenniaWithNoOverflow(int|float $value = 1) Add millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method $this addMillenniumWithNoOverflow() Add one millennium to the instance (using date interval) with overflow explicitly forbidden. - * @method $this subMillenniaWithNoOverflow(int|float $value = 1) Sub millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method $this subMillenniumWithNoOverflow() Sub one millennium to the instance (using date interval) with overflow explicitly forbidden. - * @method $this addMillenniaNoOverflow(int|float $value = 1) Add millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method $this addMillenniumNoOverflow() Add one millennium to the instance (using date interval) with overflow explicitly forbidden. - * @method $this subMillenniaNoOverflow(int|float $value = 1) Sub millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method $this subMillenniumNoOverflow() Sub one millennium to the instance (using date interval) with overflow explicitly forbidden. - * @method $this addCenturies(int|float $value = 1) Add centuries (the $value count passed in) to the instance (using date interval). - * @method $this addCentury() Add one century to the instance (using date interval). - * @method $this subCenturies(int|float $value = 1) Sub centuries (the $value count passed in) to the instance (using date interval). - * @method $this subCentury() Sub one century to the instance (using date interval). - * @method $this addCenturiesWithOverflow(int|float $value = 1) Add centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method $this addCenturyWithOverflow() Add one century to the instance (using date interval) with overflow explicitly allowed. - * @method $this subCenturiesWithOverflow(int|float $value = 1) Sub centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method $this subCenturyWithOverflow() Sub one century to the instance (using date interval) with overflow explicitly allowed. - * @method $this addCenturiesWithoutOverflow(int|float $value = 1) Add centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method $this addCenturyWithoutOverflow() Add one century to the instance (using date interval) with overflow explicitly forbidden. - * @method $this subCenturiesWithoutOverflow(int|float $value = 1) Sub centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method $this subCenturyWithoutOverflow() Sub one century to the instance (using date interval) with overflow explicitly forbidden. - * @method $this addCenturiesWithNoOverflow(int|float $value = 1) Add centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method $this addCenturyWithNoOverflow() Add one century to the instance (using date interval) with overflow explicitly forbidden. - * @method $this subCenturiesWithNoOverflow(int|float $value = 1) Sub centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method $this subCenturyWithNoOverflow() Sub one century to the instance (using date interval) with overflow explicitly forbidden. - * @method $this addCenturiesNoOverflow(int|float $value = 1) Add centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method $this addCenturyNoOverflow() Add one century to the instance (using date interval) with overflow explicitly forbidden. - * @method $this subCenturiesNoOverflow(int|float $value = 1) Sub centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method $this subCenturyNoOverflow() Sub one century to the instance (using date interval) with overflow explicitly forbidden. - * @method $this addDecades(int|float $value = 1) Add decades (the $value count passed in) to the instance (using date interval). - * @method $this addDecade() Add one decade to the instance (using date interval). - * @method $this subDecades(int|float $value = 1) Sub decades (the $value count passed in) to the instance (using date interval). - * @method $this subDecade() Sub one decade to the instance (using date interval). - * @method $this addDecadesWithOverflow(int|float $value = 1) Add decades (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method $this addDecadeWithOverflow() Add one decade to the instance (using date interval) with overflow explicitly allowed. - * @method $this subDecadesWithOverflow(int|float $value = 1) Sub decades (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method $this subDecadeWithOverflow() Sub one decade to the instance (using date interval) with overflow explicitly allowed. - * @method $this addDecadesWithoutOverflow(int|float $value = 1) Add decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method $this addDecadeWithoutOverflow() Add one decade to the instance (using date interval) with overflow explicitly forbidden. - * @method $this subDecadesWithoutOverflow(int|float $value = 1) Sub decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method $this subDecadeWithoutOverflow() Sub one decade to the instance (using date interval) with overflow explicitly forbidden. - * @method $this addDecadesWithNoOverflow(int|float $value = 1) Add decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method $this addDecadeWithNoOverflow() Add one decade to the instance (using date interval) with overflow explicitly forbidden. - * @method $this subDecadesWithNoOverflow(int|float $value = 1) Sub decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method $this subDecadeWithNoOverflow() Sub one decade to the instance (using date interval) with overflow explicitly forbidden. - * @method $this addDecadesNoOverflow(int|float $value = 1) Add decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method $this addDecadeNoOverflow() Add one decade to the instance (using date interval) with overflow explicitly forbidden. - * @method $this subDecadesNoOverflow(int|float $value = 1) Sub decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method $this subDecadeNoOverflow() Sub one decade to the instance (using date interval) with overflow explicitly forbidden. - * @method $this addQuarters(int|float $value = 1) Add quarters (the $value count passed in) to the instance (using date interval). - * @method $this addQuarter() Add one quarter to the instance (using date interval). - * @method $this subQuarters(int|float $value = 1) Sub quarters (the $value count passed in) to the instance (using date interval). - * @method $this subQuarter() Sub one quarter to the instance (using date interval). - * @method $this addQuartersWithOverflow(int|float $value = 1) Add quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method $this addQuarterWithOverflow() Add one quarter to the instance (using date interval) with overflow explicitly allowed. - * @method $this subQuartersWithOverflow(int|float $value = 1) Sub quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method $this subQuarterWithOverflow() Sub one quarter to the instance (using date interval) with overflow explicitly allowed. - * @method $this addQuartersWithoutOverflow(int|float $value = 1) Add quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method $this addQuarterWithoutOverflow() Add one quarter to the instance (using date interval) with overflow explicitly forbidden. - * @method $this subQuartersWithoutOverflow(int|float $value = 1) Sub quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method $this subQuarterWithoutOverflow() Sub one quarter to the instance (using date interval) with overflow explicitly forbidden. - * @method $this addQuartersWithNoOverflow(int|float $value = 1) Add quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method $this addQuarterWithNoOverflow() Add one quarter to the instance (using date interval) with overflow explicitly forbidden. - * @method $this subQuartersWithNoOverflow(int|float $value = 1) Sub quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method $this subQuarterWithNoOverflow() Sub one quarter to the instance (using date interval) with overflow explicitly forbidden. - * @method $this addQuartersNoOverflow(int|float $value = 1) Add quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method $this addQuarterNoOverflow() Add one quarter to the instance (using date interval) with overflow explicitly forbidden. - * @method $this subQuartersNoOverflow(int|float $value = 1) Sub quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method $this subQuarterNoOverflow() Sub one quarter to the instance (using date interval) with overflow explicitly forbidden. - * @method $this addWeeks(int|float $value = 1) Add weeks (the $value count passed in) to the instance (using date interval). - * @method $this addWeek() Add one week to the instance (using date interval). - * @method $this subWeeks(int|float $value = 1) Sub weeks (the $value count passed in) to the instance (using date interval). - * @method $this subWeek() Sub one week to the instance (using date interval). - * @method $this addWeekdays(int|float $value = 1) Add weekdays (the $value count passed in) to the instance (using date interval). - * @method $this addWeekday() Add one weekday to the instance (using date interval). - * @method $this subWeekdays(int|float $value = 1) Sub weekdays (the $value count passed in) to the instance (using date interval). - * @method $this subWeekday() Sub one weekday to the instance (using date interval). - * @method $this addUTCMicros(int|float $value = 1) Add microseconds (the $value count passed in) to the instance (using timestamp). - * @method $this addUTCMicro() Add one microsecond to the instance (using timestamp). - * @method $this subUTCMicros(int|float $value = 1) Sub microseconds (the $value count passed in) to the instance (using timestamp). - * @method $this subUTCMicro() Sub one microsecond to the instance (using timestamp). - * @method CarbonPeriod microsUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each microsecond or every X microseconds if a factor is given. - * @method float diffInUTCMicros(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of microseconds. - * @method $this addUTCMicroseconds(int|float $value = 1) Add microseconds (the $value count passed in) to the instance (using timestamp). - * @method $this addUTCMicrosecond() Add one microsecond to the instance (using timestamp). - * @method $this subUTCMicroseconds(int|float $value = 1) Sub microseconds (the $value count passed in) to the instance (using timestamp). - * @method $this subUTCMicrosecond() Sub one microsecond to the instance (using timestamp). - * @method CarbonPeriod microsecondsUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each microsecond or every X microseconds if a factor is given. - * @method float diffInUTCMicroseconds(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of microseconds. - * @method $this addUTCMillis(int|float $value = 1) Add milliseconds (the $value count passed in) to the instance (using timestamp). - * @method $this addUTCMilli() Add one millisecond to the instance (using timestamp). - * @method $this subUTCMillis(int|float $value = 1) Sub milliseconds (the $value count passed in) to the instance (using timestamp). - * @method $this subUTCMilli() Sub one millisecond to the instance (using timestamp). - * @method CarbonPeriod millisUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each millisecond or every X milliseconds if a factor is given. - * @method float diffInUTCMillis(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of milliseconds. - * @method $this addUTCMilliseconds(int|float $value = 1) Add milliseconds (the $value count passed in) to the instance (using timestamp). - * @method $this addUTCMillisecond() Add one millisecond to the instance (using timestamp). - * @method $this subUTCMilliseconds(int|float $value = 1) Sub milliseconds (the $value count passed in) to the instance (using timestamp). - * @method $this subUTCMillisecond() Sub one millisecond to the instance (using timestamp). - * @method CarbonPeriod millisecondsUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each millisecond or every X milliseconds if a factor is given. - * @method float diffInUTCMilliseconds(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of milliseconds. - * @method $this addUTCSeconds(int|float $value = 1) Add seconds (the $value count passed in) to the instance (using timestamp). - * @method $this addUTCSecond() Add one second to the instance (using timestamp). - * @method $this subUTCSeconds(int|float $value = 1) Sub seconds (the $value count passed in) to the instance (using timestamp). - * @method $this subUTCSecond() Sub one second to the instance (using timestamp). - * @method CarbonPeriod secondsUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each second or every X seconds if a factor is given. - * @method float diffInUTCSeconds(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of seconds. - * @method $this addUTCMinutes(int|float $value = 1) Add minutes (the $value count passed in) to the instance (using timestamp). - * @method $this addUTCMinute() Add one minute to the instance (using timestamp). - * @method $this subUTCMinutes(int|float $value = 1) Sub minutes (the $value count passed in) to the instance (using timestamp). - * @method $this subUTCMinute() Sub one minute to the instance (using timestamp). - * @method CarbonPeriod minutesUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each minute or every X minutes if a factor is given. - * @method float diffInUTCMinutes(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of minutes. - * @method $this addUTCHours(int|float $value = 1) Add hours (the $value count passed in) to the instance (using timestamp). - * @method $this addUTCHour() Add one hour to the instance (using timestamp). - * @method $this subUTCHours(int|float $value = 1) Sub hours (the $value count passed in) to the instance (using timestamp). - * @method $this subUTCHour() Sub one hour to the instance (using timestamp). - * @method CarbonPeriod hoursUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each hour or every X hours if a factor is given. - * @method float diffInUTCHours(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of hours. - * @method $this addUTCDays(int|float $value = 1) Add days (the $value count passed in) to the instance (using timestamp). - * @method $this addUTCDay() Add one day to the instance (using timestamp). - * @method $this subUTCDays(int|float $value = 1) Sub days (the $value count passed in) to the instance (using timestamp). - * @method $this subUTCDay() Sub one day to the instance (using timestamp). - * @method CarbonPeriod daysUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each day or every X days if a factor is given. - * @method float diffInUTCDays(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of days. - * @method $this addUTCWeeks(int|float $value = 1) Add weeks (the $value count passed in) to the instance (using timestamp). - * @method $this addUTCWeek() Add one week to the instance (using timestamp). - * @method $this subUTCWeeks(int|float $value = 1) Sub weeks (the $value count passed in) to the instance (using timestamp). - * @method $this subUTCWeek() Sub one week to the instance (using timestamp). - * @method CarbonPeriod weeksUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each week or every X weeks if a factor is given. - * @method float diffInUTCWeeks(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of weeks. - * @method $this addUTCMonths(int|float $value = 1) Add months (the $value count passed in) to the instance (using timestamp). - * @method $this addUTCMonth() Add one month to the instance (using timestamp). - * @method $this subUTCMonths(int|float $value = 1) Sub months (the $value count passed in) to the instance (using timestamp). - * @method $this subUTCMonth() Sub one month to the instance (using timestamp). - * @method CarbonPeriod monthsUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each month or every X months if a factor is given. - * @method float diffInUTCMonths(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of months. - * @method $this addUTCQuarters(int|float $value = 1) Add quarters (the $value count passed in) to the instance (using timestamp). - * @method $this addUTCQuarter() Add one quarter to the instance (using timestamp). - * @method $this subUTCQuarters(int|float $value = 1) Sub quarters (the $value count passed in) to the instance (using timestamp). - * @method $this subUTCQuarter() Sub one quarter to the instance (using timestamp). - * @method CarbonPeriod quartersUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each quarter or every X quarters if a factor is given. - * @method float diffInUTCQuarters(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of quarters. - * @method $this addUTCYears(int|float $value = 1) Add years (the $value count passed in) to the instance (using timestamp). - * @method $this addUTCYear() Add one year to the instance (using timestamp). - * @method $this subUTCYears(int|float $value = 1) Sub years (the $value count passed in) to the instance (using timestamp). - * @method $this subUTCYear() Sub one year to the instance (using timestamp). - * @method CarbonPeriod yearsUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each year or every X years if a factor is given. - * @method float diffInUTCYears(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of years. - * @method $this addUTCDecades(int|float $value = 1) Add decades (the $value count passed in) to the instance (using timestamp). - * @method $this addUTCDecade() Add one decade to the instance (using timestamp). - * @method $this subUTCDecades(int|float $value = 1) Sub decades (the $value count passed in) to the instance (using timestamp). - * @method $this subUTCDecade() Sub one decade to the instance (using timestamp). - * @method CarbonPeriod decadesUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each decade or every X decades if a factor is given. - * @method float diffInUTCDecades(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of decades. - * @method $this addUTCCenturies(int|float $value = 1) Add centuries (the $value count passed in) to the instance (using timestamp). - * @method $this addUTCCentury() Add one century to the instance (using timestamp). - * @method $this subUTCCenturies(int|float $value = 1) Sub centuries (the $value count passed in) to the instance (using timestamp). - * @method $this subUTCCentury() Sub one century to the instance (using timestamp). - * @method CarbonPeriod centuriesUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each century or every X centuries if a factor is given. - * @method float diffInUTCCenturies(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of centuries. - * @method $this addUTCMillennia(int|float $value = 1) Add millennia (the $value count passed in) to the instance (using timestamp). - * @method $this addUTCMillennium() Add one millennium to the instance (using timestamp). - * @method $this subUTCMillennia(int|float $value = 1) Sub millennia (the $value count passed in) to the instance (using timestamp). - * @method $this subUTCMillennium() Sub one millennium to the instance (using timestamp). - * @method CarbonPeriod millenniaUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each millennium or every X millennia if a factor is given. - * @method float diffInUTCMillennia(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of millennia. - * @method $this roundYear(float $precision = 1, string $function = "round") Round the current instance year with given precision using the given function. - * @method $this roundYears(float $precision = 1, string $function = "round") Round the current instance year with given precision using the given function. - * @method $this floorYear(float $precision = 1) Truncate the current instance year with given precision. - * @method $this floorYears(float $precision = 1) Truncate the current instance year with given precision. - * @method $this ceilYear(float $precision = 1) Ceil the current instance year with given precision. - * @method $this ceilYears(float $precision = 1) Ceil the current instance year with given precision. - * @method $this roundMonth(float $precision = 1, string $function = "round") Round the current instance month with given precision using the given function. - * @method $this roundMonths(float $precision = 1, string $function = "round") Round the current instance month with given precision using the given function. - * @method $this floorMonth(float $precision = 1) Truncate the current instance month with given precision. - * @method $this floorMonths(float $precision = 1) Truncate the current instance month with given precision. - * @method $this ceilMonth(float $precision = 1) Ceil the current instance month with given precision. - * @method $this ceilMonths(float $precision = 1) Ceil the current instance month with given precision. - * @method $this roundDay(float $precision = 1, string $function = "round") Round the current instance day with given precision using the given function. - * @method $this roundDays(float $precision = 1, string $function = "round") Round the current instance day with given precision using the given function. - * @method $this floorDay(float $precision = 1) Truncate the current instance day with given precision. - * @method $this floorDays(float $precision = 1) Truncate the current instance day with given precision. - * @method $this ceilDay(float $precision = 1) Ceil the current instance day with given precision. - * @method $this ceilDays(float $precision = 1) Ceil the current instance day with given precision. - * @method $this roundHour(float $precision = 1, string $function = "round") Round the current instance hour with given precision using the given function. - * @method $this roundHours(float $precision = 1, string $function = "round") Round the current instance hour with given precision using the given function. - * @method $this floorHour(float $precision = 1) Truncate the current instance hour with given precision. - * @method $this floorHours(float $precision = 1) Truncate the current instance hour with given precision. - * @method $this ceilHour(float $precision = 1) Ceil the current instance hour with given precision. - * @method $this ceilHours(float $precision = 1) Ceil the current instance hour with given precision. - * @method $this roundMinute(float $precision = 1, string $function = "round") Round the current instance minute with given precision using the given function. - * @method $this roundMinutes(float $precision = 1, string $function = "round") Round the current instance minute with given precision using the given function. - * @method $this floorMinute(float $precision = 1) Truncate the current instance minute with given precision. - * @method $this floorMinutes(float $precision = 1) Truncate the current instance minute with given precision. - * @method $this ceilMinute(float $precision = 1) Ceil the current instance minute with given precision. - * @method $this ceilMinutes(float $precision = 1) Ceil the current instance minute with given precision. - * @method $this roundSecond(float $precision = 1, string $function = "round") Round the current instance second with given precision using the given function. - * @method $this roundSeconds(float $precision = 1, string $function = "round") Round the current instance second with given precision using the given function. - * @method $this floorSecond(float $precision = 1) Truncate the current instance second with given precision. - * @method $this floorSeconds(float $precision = 1) Truncate the current instance second with given precision. - * @method $this ceilSecond(float $precision = 1) Ceil the current instance second with given precision. - * @method $this ceilSeconds(float $precision = 1) Ceil the current instance second with given precision. - * @method $this roundMillennium(float $precision = 1, string $function = "round") Round the current instance millennium with given precision using the given function. - * @method $this roundMillennia(float $precision = 1, string $function = "round") Round the current instance millennium with given precision using the given function. - * @method $this floorMillennium(float $precision = 1) Truncate the current instance millennium with given precision. - * @method $this floorMillennia(float $precision = 1) Truncate the current instance millennium with given precision. - * @method $this ceilMillennium(float $precision = 1) Ceil the current instance millennium with given precision. - * @method $this ceilMillennia(float $precision = 1) Ceil the current instance millennium with given precision. - * @method $this roundCentury(float $precision = 1, string $function = "round") Round the current instance century with given precision using the given function. - * @method $this roundCenturies(float $precision = 1, string $function = "round") Round the current instance century with given precision using the given function. - * @method $this floorCentury(float $precision = 1) Truncate the current instance century with given precision. - * @method $this floorCenturies(float $precision = 1) Truncate the current instance century with given precision. - * @method $this ceilCentury(float $precision = 1) Ceil the current instance century with given precision. - * @method $this ceilCenturies(float $precision = 1) Ceil the current instance century with given precision. - * @method $this roundDecade(float $precision = 1, string $function = "round") Round the current instance decade with given precision using the given function. - * @method $this roundDecades(float $precision = 1, string $function = "round") Round the current instance decade with given precision using the given function. - * @method $this floorDecade(float $precision = 1) Truncate the current instance decade with given precision. - * @method $this floorDecades(float $precision = 1) Truncate the current instance decade with given precision. - * @method $this ceilDecade(float $precision = 1) Ceil the current instance decade with given precision. - * @method $this ceilDecades(float $precision = 1) Ceil the current instance decade with given precision. - * @method $this roundQuarter(float $precision = 1, string $function = "round") Round the current instance quarter with given precision using the given function. - * @method $this roundQuarters(float $precision = 1, string $function = "round") Round the current instance quarter with given precision using the given function. - * @method $this floorQuarter(float $precision = 1) Truncate the current instance quarter with given precision. - * @method $this floorQuarters(float $precision = 1) Truncate the current instance quarter with given precision. - * @method $this ceilQuarter(float $precision = 1) Ceil the current instance quarter with given precision. - * @method $this ceilQuarters(float $precision = 1) Ceil the current instance quarter with given precision. - * @method $this roundMillisecond(float $precision = 1, string $function = "round") Round the current instance millisecond with given precision using the given function. - * @method $this roundMilliseconds(float $precision = 1, string $function = "round") Round the current instance millisecond with given precision using the given function. - * @method $this floorMillisecond(float $precision = 1) Truncate the current instance millisecond with given precision. - * @method $this floorMilliseconds(float $precision = 1) Truncate the current instance millisecond with given precision. - * @method $this ceilMillisecond(float $precision = 1) Ceil the current instance millisecond with given precision. - * @method $this ceilMilliseconds(float $precision = 1) Ceil the current instance millisecond with given precision. - * @method $this roundMicrosecond(float $precision = 1, string $function = "round") Round the current instance microsecond with given precision using the given function. - * @method $this roundMicroseconds(float $precision = 1, string $function = "round") Round the current instance microsecond with given precision using the given function. - * @method $this floorMicrosecond(float $precision = 1) Truncate the current instance microsecond with given precision. - * @method $this floorMicroseconds(float $precision = 1) Truncate the current instance microsecond with given precision. - * @method $this ceilMicrosecond(float $precision = 1) Ceil the current instance microsecond with given precision. - * @method $this ceilMicroseconds(float $precision = 1) Ceil the current instance microsecond with given precision. - * @method string shortAbsoluteDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (short format, 'Absolute' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) - * @method string longAbsoluteDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (long format, 'Absolute' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) - * @method string shortRelativeDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (short format, 'Relative' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) - * @method string longRelativeDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (long format, 'Relative' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) - * @method string shortRelativeToNowDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (short format, 'RelativeToNow' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) - * @method string longRelativeToNowDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (long format, 'RelativeToNow' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) - * @method string shortRelativeToOtherDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (short format, 'RelativeToOther' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) - * @method string longRelativeToOtherDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (long format, 'RelativeToOther' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) - * @method int centuriesInMillennium() Return the number of centuries contained in the current millennium - * @method int|static centuryOfMillennium(?int $century = null) Return the value of the century starting from the beginning of the current millennium when called with no parameters, change the current century when called with an integer value - * @method int|static dayOfCentury(?int $day = null) Return the value of the day starting from the beginning of the current century when called with no parameters, change the current day when called with an integer value - * @method int|static dayOfDecade(?int $day = null) Return the value of the day starting from the beginning of the current decade when called with no parameters, change the current day when called with an integer value - * @method int|static dayOfMillennium(?int $day = null) Return the value of the day starting from the beginning of the current millennium when called with no parameters, change the current day when called with an integer value - * @method int|static dayOfMonth(?int $day = null) Return the value of the day starting from the beginning of the current month when called with no parameters, change the current day when called with an integer value - * @method int|static dayOfQuarter(?int $day = null) Return the value of the day starting from the beginning of the current quarter when called with no parameters, change the current day when called with an integer value - * @method int|static dayOfWeek(?int $day = null) Return the value of the day starting from the beginning of the current week when called with no parameters, change the current day when called with an integer value - * @method int daysInCentury() Return the number of days contained in the current century - * @method int daysInDecade() Return the number of days contained in the current decade - * @method int daysInMillennium() Return the number of days contained in the current millennium - * @method int daysInMonth() Return the number of days contained in the current month - * @method int daysInQuarter() Return the number of days contained in the current quarter - * @method int daysInWeek() Return the number of days contained in the current week - * @method int daysInYear() Return the number of days contained in the current year - * @method int|static decadeOfCentury(?int $decade = null) Return the value of the decade starting from the beginning of the current century when called with no parameters, change the current decade when called with an integer value - * @method int|static decadeOfMillennium(?int $decade = null) Return the value of the decade starting from the beginning of the current millennium when called with no parameters, change the current decade when called with an integer value - * @method int decadesInCentury() Return the number of decades contained in the current century - * @method int decadesInMillennium() Return the number of decades contained in the current millennium - * @method int|static hourOfCentury(?int $hour = null) Return the value of the hour starting from the beginning of the current century when called with no parameters, change the current hour when called with an integer value - * @method int|static hourOfDay(?int $hour = null) Return the value of the hour starting from the beginning of the current day when called with no parameters, change the current hour when called with an integer value - * @method int|static hourOfDecade(?int $hour = null) Return the value of the hour starting from the beginning of the current decade when called with no parameters, change the current hour when called with an integer value - * @method int|static hourOfMillennium(?int $hour = null) Return the value of the hour starting from the beginning of the current millennium when called with no parameters, change the current hour when called with an integer value - * @method int|static hourOfMonth(?int $hour = null) Return the value of the hour starting from the beginning of the current month when called with no parameters, change the current hour when called with an integer value - * @method int|static hourOfQuarter(?int $hour = null) Return the value of the hour starting from the beginning of the current quarter when called with no parameters, change the current hour when called with an integer value - * @method int|static hourOfWeek(?int $hour = null) Return the value of the hour starting from the beginning of the current week when called with no parameters, change the current hour when called with an integer value - * @method int|static hourOfYear(?int $hour = null) Return the value of the hour starting from the beginning of the current year when called with no parameters, change the current hour when called with an integer value - * @method int hoursInCentury() Return the number of hours contained in the current century - * @method int hoursInDay() Return the number of hours contained in the current day - * @method int hoursInDecade() Return the number of hours contained in the current decade - * @method int hoursInMillennium() Return the number of hours contained in the current millennium - * @method int hoursInMonth() Return the number of hours contained in the current month - * @method int hoursInQuarter() Return the number of hours contained in the current quarter - * @method int hoursInWeek() Return the number of hours contained in the current week - * @method int hoursInYear() Return the number of hours contained in the current year - * @method int|static microsecondOfCentury(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current century when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfDay(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current day when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfDecade(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current decade when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfHour(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current hour when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfMillennium(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current millennium when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfMillisecond(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current millisecond when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfMinute(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current minute when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfMonth(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current month when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfQuarter(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current quarter when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfSecond(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current second when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfWeek(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current week when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfYear(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current year when called with no parameters, change the current microsecond when called with an integer value - * @method int microsecondsInCentury() Return the number of microseconds contained in the current century - * @method int microsecondsInDay() Return the number of microseconds contained in the current day - * @method int microsecondsInDecade() Return the number of microseconds contained in the current decade - * @method int microsecondsInHour() Return the number of microseconds contained in the current hour - * @method int microsecondsInMillennium() Return the number of microseconds contained in the current millennium - * @method int microsecondsInMillisecond() Return the number of microseconds contained in the current millisecond - * @method int microsecondsInMinute() Return the number of microseconds contained in the current minute - * @method int microsecondsInMonth() Return the number of microseconds contained in the current month - * @method int microsecondsInQuarter() Return the number of microseconds contained in the current quarter - * @method int microsecondsInSecond() Return the number of microseconds contained in the current second - * @method int microsecondsInWeek() Return the number of microseconds contained in the current week - * @method int microsecondsInYear() Return the number of microseconds contained in the current year - * @method int|static millisecondOfCentury(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current century when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfDay(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current day when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfDecade(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current decade when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfHour(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current hour when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfMillennium(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current millennium when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfMinute(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current minute when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfMonth(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current month when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfQuarter(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current quarter when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfSecond(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current second when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfWeek(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current week when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfYear(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current year when called with no parameters, change the current millisecond when called with an integer value - * @method int millisecondsInCentury() Return the number of milliseconds contained in the current century - * @method int millisecondsInDay() Return the number of milliseconds contained in the current day - * @method int millisecondsInDecade() Return the number of milliseconds contained in the current decade - * @method int millisecondsInHour() Return the number of milliseconds contained in the current hour - * @method int millisecondsInMillennium() Return the number of milliseconds contained in the current millennium - * @method int millisecondsInMinute() Return the number of milliseconds contained in the current minute - * @method int millisecondsInMonth() Return the number of milliseconds contained in the current month - * @method int millisecondsInQuarter() Return the number of milliseconds contained in the current quarter - * @method int millisecondsInSecond() Return the number of milliseconds contained in the current second - * @method int millisecondsInWeek() Return the number of milliseconds contained in the current week - * @method int millisecondsInYear() Return the number of milliseconds contained in the current year - * @method int|static minuteOfCentury(?int $minute = null) Return the value of the minute starting from the beginning of the current century when called with no parameters, change the current minute when called with an integer value - * @method int|static minuteOfDay(?int $minute = null) Return the value of the minute starting from the beginning of the current day when called with no parameters, change the current minute when called with an integer value - * @method int|static minuteOfDecade(?int $minute = null) Return the value of the minute starting from the beginning of the current decade when called with no parameters, change the current minute when called with an integer value - * @method int|static minuteOfHour(?int $minute = null) Return the value of the minute starting from the beginning of the current hour when called with no parameters, change the current minute when called with an integer value - * @method int|static minuteOfMillennium(?int $minute = null) Return the value of the minute starting from the beginning of the current millennium when called with no parameters, change the current minute when called with an integer value - * @method int|static minuteOfMonth(?int $minute = null) Return the value of the minute starting from the beginning of the current month when called with no parameters, change the current minute when called with an integer value - * @method int|static minuteOfQuarter(?int $minute = null) Return the value of the minute starting from the beginning of the current quarter when called with no parameters, change the current minute when called with an integer value - * @method int|static minuteOfWeek(?int $minute = null) Return the value of the minute starting from the beginning of the current week when called with no parameters, change the current minute when called with an integer value - * @method int|static minuteOfYear(?int $minute = null) Return the value of the minute starting from the beginning of the current year when called with no parameters, change the current minute when called with an integer value - * @method int minutesInCentury() Return the number of minutes contained in the current century - * @method int minutesInDay() Return the number of minutes contained in the current day - * @method int minutesInDecade() Return the number of minutes contained in the current decade - * @method int minutesInHour() Return the number of minutes contained in the current hour - * @method int minutesInMillennium() Return the number of minutes contained in the current millennium - * @method int minutesInMonth() Return the number of minutes contained in the current month - * @method int minutesInQuarter() Return the number of minutes contained in the current quarter - * @method int minutesInWeek() Return the number of minutes contained in the current week - * @method int minutesInYear() Return the number of minutes contained in the current year - * @method int|static monthOfCentury(?int $month = null) Return the value of the month starting from the beginning of the current century when called with no parameters, change the current month when called with an integer value - * @method int|static monthOfDecade(?int $month = null) Return the value of the month starting from the beginning of the current decade when called with no parameters, change the current month when called with an integer value - * @method int|static monthOfMillennium(?int $month = null) Return the value of the month starting from the beginning of the current millennium when called with no parameters, change the current month when called with an integer value - * @method int|static monthOfQuarter(?int $month = null) Return the value of the month starting from the beginning of the current quarter when called with no parameters, change the current month when called with an integer value - * @method int|static monthOfYear(?int $month = null) Return the value of the month starting from the beginning of the current year when called with no parameters, change the current month when called with an integer value - * @method int monthsInCentury() Return the number of months contained in the current century - * @method int monthsInDecade() Return the number of months contained in the current decade - * @method int monthsInMillennium() Return the number of months contained in the current millennium - * @method int monthsInQuarter() Return the number of months contained in the current quarter - * @method int monthsInYear() Return the number of months contained in the current year - * @method int|static quarterOfCentury(?int $quarter = null) Return the value of the quarter starting from the beginning of the current century when called with no parameters, change the current quarter when called with an integer value - * @method int|static quarterOfDecade(?int $quarter = null) Return the value of the quarter starting from the beginning of the current decade when called with no parameters, change the current quarter when called with an integer value - * @method int|static quarterOfMillennium(?int $quarter = null) Return the value of the quarter starting from the beginning of the current millennium when called with no parameters, change the current quarter when called with an integer value - * @method int|static quarterOfYear(?int $quarter = null) Return the value of the quarter starting from the beginning of the current year when called with no parameters, change the current quarter when called with an integer value - * @method int quartersInCentury() Return the number of quarters contained in the current century - * @method int quartersInDecade() Return the number of quarters contained in the current decade - * @method int quartersInMillennium() Return the number of quarters contained in the current millennium - * @method int quartersInYear() Return the number of quarters contained in the current year - * @method int|static secondOfCentury(?int $second = null) Return the value of the second starting from the beginning of the current century when called with no parameters, change the current second when called with an integer value - * @method int|static secondOfDay(?int $second = null) Return the value of the second starting from the beginning of the current day when called with no parameters, change the current second when called with an integer value - * @method int|static secondOfDecade(?int $second = null) Return the value of the second starting from the beginning of the current decade when called with no parameters, change the current second when called with an integer value - * @method int|static secondOfHour(?int $second = null) Return the value of the second starting from the beginning of the current hour when called with no parameters, change the current second when called with an integer value - * @method int|static secondOfMillennium(?int $second = null) Return the value of the second starting from the beginning of the current millennium when called with no parameters, change the current second when called with an integer value - * @method int|static secondOfMinute(?int $second = null) Return the value of the second starting from the beginning of the current minute when called with no parameters, change the current second when called with an integer value - * @method int|static secondOfMonth(?int $second = null) Return the value of the second starting from the beginning of the current month when called with no parameters, change the current second when called with an integer value - * @method int|static secondOfQuarter(?int $second = null) Return the value of the second starting from the beginning of the current quarter when called with no parameters, change the current second when called with an integer value - * @method int|static secondOfWeek(?int $second = null) Return the value of the second starting from the beginning of the current week when called with no parameters, change the current second when called with an integer value - * @method int|static secondOfYear(?int $second = null) Return the value of the second starting from the beginning of the current year when called with no parameters, change the current second when called with an integer value - * @method int secondsInCentury() Return the number of seconds contained in the current century - * @method int secondsInDay() Return the number of seconds contained in the current day - * @method int secondsInDecade() Return the number of seconds contained in the current decade - * @method int secondsInHour() Return the number of seconds contained in the current hour - * @method int secondsInMillennium() Return the number of seconds contained in the current millennium - * @method int secondsInMinute() Return the number of seconds contained in the current minute - * @method int secondsInMonth() Return the number of seconds contained in the current month - * @method int secondsInQuarter() Return the number of seconds contained in the current quarter - * @method int secondsInWeek() Return the number of seconds contained in the current week - * @method int secondsInYear() Return the number of seconds contained in the current year - * @method int|static weekOfCentury(?int $week = null) Return the value of the week starting from the beginning of the current century when called with no parameters, change the current week when called with an integer value - * @method int|static weekOfDecade(?int $week = null) Return the value of the week starting from the beginning of the current decade when called with no parameters, change the current week when called with an integer value - * @method int|static weekOfMillennium(?int $week = null) Return the value of the week starting from the beginning of the current millennium when called with no parameters, change the current week when called with an integer value - * @method int|static weekOfMonth(?int $week = null) Return the value of the week starting from the beginning of the current month when called with no parameters, change the current week when called with an integer value - * @method int|static weekOfQuarter(?int $week = null) Return the value of the week starting from the beginning of the current quarter when called with no parameters, change the current week when called with an integer value - * @method int|static weekOfYear(?int $week = null) Return the value of the week starting from the beginning of the current year when called with no parameters, change the current week when called with an integer value - * @method int weeksInCentury() Return the number of weeks contained in the current century - * @method int weeksInDecade() Return the number of weeks contained in the current decade - * @method int weeksInMillennium() Return the number of weeks contained in the current millennium - * @method int weeksInMonth() Return the number of weeks contained in the current month - * @method int weeksInQuarter() Return the number of weeks contained in the current quarter - * @method int|static yearOfCentury(?int $year = null) Return the value of the year starting from the beginning of the current century when called with no parameters, change the current year when called with an integer value - * @method int|static yearOfDecade(?int $year = null) Return the value of the year starting from the beginning of the current decade when called with no parameters, change the current year when called with an integer value - * @method int|static yearOfMillennium(?int $year = null) Return the value of the year starting from the beginning of the current millennium when called with no parameters, change the current year when called with an integer value - * @method int yearsInCentury() Return the number of years contained in the current century - * @method int yearsInDecade() Return the number of years contained in the current decade - * @method int yearsInMillennium() Return the number of years contained in the current millennium - * - * - */ -class Carbon extends DateTime implements CarbonInterface -{ - use Date; - - /** - * Returns true if the current class/instance is mutable. - */ - public static function isMutable(): bool - { - return true; - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/CarbonConverterInterface.php b/vendor/nesbot/carbon/src/Carbon/CarbonConverterInterface.php deleted file mode 100644 index fd89bd7..0000000 --- a/vendor/nesbot/carbon/src/Carbon/CarbonConverterInterface.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon; - -use DateTimeInterface; - -interface CarbonConverterInterface -{ - public function convertDate(DateTimeInterface $dateTime, bool $negated = false): CarbonInterface; -} diff --git a/vendor/nesbot/carbon/src/Carbon/CarbonImmutable.php b/vendor/nesbot/carbon/src/Carbon/CarbonImmutable.php deleted file mode 100644 index ee8cb15..0000000 --- a/vendor/nesbot/carbon/src/Carbon/CarbonImmutable.php +++ /dev/null @@ -1,890 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon; - -use Carbon\Traits\Date; -use DateTimeImmutable; -use DateTimeInterface; - -/** - * A simple API extension for DateTimeImmutable. - * - * - * - * @property string $localeDayOfWeek the day of week in current locale - * @property string $shortLocaleDayOfWeek the abbreviated day of week in current locale - * @property string $localeMonth the month in current locale - * @property string $shortLocaleMonth the abbreviated month in current locale - * @property int $year - * @property int $yearIso - * @property int $month - * @property int $day - * @property int $hour - * @property int $minute - * @property int $second - * @property int $micro - * @property int $microsecond - * @property int $dayOfWeekIso 1 (for Monday) through 7 (for Sunday) - * @property int|float|string $timestamp seconds since the Unix Epoch - * @property string $englishDayOfWeek the day of week in English - * @property string $shortEnglishDayOfWeek the abbreviated day of week in English - * @property string $englishMonth the month in English - * @property string $shortEnglishMonth the abbreviated month in English - * @property int $milliseconds - * @property int $millisecond - * @property int $milli - * @property int $week 1 through 53 - * @property int $isoWeek 1 through 53 - * @property int $weekYear year according to week format - * @property int $isoWeekYear year according to ISO week format - * @property int $age does a diffInYears() with default parameters - * @property int $offset the timezone offset in seconds from UTC - * @property int $offsetMinutes the timezone offset in minutes from UTC - * @property int $offsetHours the timezone offset in hours from UTC - * @property CarbonTimeZone $timezone the current timezone - * @property CarbonTimeZone $tz alias of $timezone - * @property int $centuryOfMillennium The value of the century starting from the beginning of the current millennium - * @property int $dayOfCentury The value of the day starting from the beginning of the current century - * @property int $dayOfDecade The value of the day starting from the beginning of the current decade - * @property int $dayOfMillennium The value of the day starting from the beginning of the current millennium - * @property int $dayOfMonth The value of the day starting from the beginning of the current month - * @property int $dayOfQuarter The value of the day starting from the beginning of the current quarter - * @property int $dayOfWeek 0 (for Sunday) through 6 (for Saturday) - * @property int $dayOfYear 1 through 366 - * @property int $decadeOfCentury The value of the decade starting from the beginning of the current century - * @property int $decadeOfMillennium The value of the decade starting from the beginning of the current millennium - * @property int $hourOfCentury The value of the hour starting from the beginning of the current century - * @property int $hourOfDay The value of the hour starting from the beginning of the current day - * @property int $hourOfDecade The value of the hour starting from the beginning of the current decade - * @property int $hourOfMillennium The value of the hour starting from the beginning of the current millennium - * @property int $hourOfMonth The value of the hour starting from the beginning of the current month - * @property int $hourOfQuarter The value of the hour starting from the beginning of the current quarter - * @property int $hourOfWeek The value of the hour starting from the beginning of the current week - * @property int $hourOfYear The value of the hour starting from the beginning of the current year - * @property int $microsecondOfCentury The value of the microsecond starting from the beginning of the current century - * @property int $microsecondOfDay The value of the microsecond starting from the beginning of the current day - * @property int $microsecondOfDecade The value of the microsecond starting from the beginning of the current decade - * @property int $microsecondOfHour The value of the microsecond starting from the beginning of the current hour - * @property int $microsecondOfMillennium The value of the microsecond starting from the beginning of the current millennium - * @property int $microsecondOfMillisecond The value of the microsecond starting from the beginning of the current millisecond - * @property int $microsecondOfMinute The value of the microsecond starting from the beginning of the current minute - * @property int $microsecondOfMonth The value of the microsecond starting from the beginning of the current month - * @property int $microsecondOfQuarter The value of the microsecond starting from the beginning of the current quarter - * @property int $microsecondOfSecond The value of the microsecond starting from the beginning of the current second - * @property int $microsecondOfWeek The value of the microsecond starting from the beginning of the current week - * @property int $microsecondOfYear The value of the microsecond starting from the beginning of the current year - * @property int $millisecondOfCentury The value of the millisecond starting from the beginning of the current century - * @property int $millisecondOfDay The value of the millisecond starting from the beginning of the current day - * @property int $millisecondOfDecade The value of the millisecond starting from the beginning of the current decade - * @property int $millisecondOfHour The value of the millisecond starting from the beginning of the current hour - * @property int $millisecondOfMillennium The value of the millisecond starting from the beginning of the current millennium - * @property int $millisecondOfMinute The value of the millisecond starting from the beginning of the current minute - * @property int $millisecondOfMonth The value of the millisecond starting from the beginning of the current month - * @property int $millisecondOfQuarter The value of the millisecond starting from the beginning of the current quarter - * @property int $millisecondOfSecond The value of the millisecond starting from the beginning of the current second - * @property int $millisecondOfWeek The value of the millisecond starting from the beginning of the current week - * @property int $millisecondOfYear The value of the millisecond starting from the beginning of the current year - * @property int $minuteOfCentury The value of the minute starting from the beginning of the current century - * @property int $minuteOfDay The value of the minute starting from the beginning of the current day - * @property int $minuteOfDecade The value of the minute starting from the beginning of the current decade - * @property int $minuteOfHour The value of the minute starting from the beginning of the current hour - * @property int $minuteOfMillennium The value of the minute starting from the beginning of the current millennium - * @property int $minuteOfMonth The value of the minute starting from the beginning of the current month - * @property int $minuteOfQuarter The value of the minute starting from the beginning of the current quarter - * @property int $minuteOfWeek The value of the minute starting from the beginning of the current week - * @property int $minuteOfYear The value of the minute starting from the beginning of the current year - * @property int $monthOfCentury The value of the month starting from the beginning of the current century - * @property int $monthOfDecade The value of the month starting from the beginning of the current decade - * @property int $monthOfMillennium The value of the month starting from the beginning of the current millennium - * @property int $monthOfQuarter The value of the month starting from the beginning of the current quarter - * @property int $monthOfYear The value of the month starting from the beginning of the current year - * @property int $quarterOfCentury The value of the quarter starting from the beginning of the current century - * @property int $quarterOfDecade The value of the quarter starting from the beginning of the current decade - * @property int $quarterOfMillennium The value of the quarter starting from the beginning of the current millennium - * @property int $quarterOfYear The value of the quarter starting from the beginning of the current year - * @property int $secondOfCentury The value of the second starting from the beginning of the current century - * @property int $secondOfDay The value of the second starting from the beginning of the current day - * @property int $secondOfDecade The value of the second starting from the beginning of the current decade - * @property int $secondOfHour The value of the second starting from the beginning of the current hour - * @property int $secondOfMillennium The value of the second starting from the beginning of the current millennium - * @property int $secondOfMinute The value of the second starting from the beginning of the current minute - * @property int $secondOfMonth The value of the second starting from the beginning of the current month - * @property int $secondOfQuarter The value of the second starting from the beginning of the current quarter - * @property int $secondOfWeek The value of the second starting from the beginning of the current week - * @property int $secondOfYear The value of the second starting from the beginning of the current year - * @property int $weekOfCentury The value of the week starting from the beginning of the current century - * @property int $weekOfDecade The value of the week starting from the beginning of the current decade - * @property int $weekOfMillennium The value of the week starting from the beginning of the current millennium - * @property int $weekOfMonth 1 through 5 - * @property int $weekOfQuarter The value of the week starting from the beginning of the current quarter - * @property int $weekOfYear ISO-8601 week number of year, weeks starting on Monday - * @property int $yearOfCentury The value of the year starting from the beginning of the current century - * @property int $yearOfDecade The value of the year starting from the beginning of the current decade - * @property int $yearOfMillennium The value of the year starting from the beginning of the current millennium - * @property-read string $latinMeridiem "am"/"pm" (Ante meridiem or Post meridiem latin lowercase mark) - * @property-read string $latinUpperMeridiem "AM"/"PM" (Ante meridiem or Post meridiem latin uppercase mark) - * @property-read string $timezoneAbbreviatedName the current timezone abbreviated name - * @property-read string $tzAbbrName alias of $timezoneAbbreviatedName - * @property-read string $dayName long name of weekday translated according to Carbon locale, in english if no translation available for current language - * @property-read string $shortDayName short name of weekday translated according to Carbon locale, in english if no translation available for current language - * @property-read string $minDayName very short name of weekday translated according to Carbon locale, in english if no translation available for current language - * @property-read string $monthName long name of month translated according to Carbon locale, in english if no translation available for current language - * @property-read string $shortMonthName short name of month translated according to Carbon locale, in english if no translation available for current language - * @property-read string $meridiem lowercase meridiem mark translated according to Carbon locale, in latin if no translation available for current language - * @property-read string $upperMeridiem uppercase meridiem mark translated according to Carbon locale, in latin if no translation available for current language - * @property-read int $noZeroHour current hour from 1 to 24 - * @property-read int $isoWeeksInYear 51 through 53 - * @property-read int $weekNumberInMonth 1 through 5 - * @property-read int $firstWeekDay 0 through 6 - * @property-read int $lastWeekDay 0 through 6 - * @property-read int $quarter the quarter of this instance, 1 - 4 - * @property-read int $decade the decade of this instance - * @property-read int $century the century of this instance - * @property-read int $millennium the millennium of this instance - * @property-read bool $dst daylight savings time indicator, true if DST, false otherwise - * @property-read bool $local checks if the timezone is local, true if local, false otherwise - * @property-read bool $utc checks if the timezone is UTC, true if UTC, false otherwise - * @property-read string $timezoneName the current timezone name - * @property-read string $tzName alias of $timezoneName - * @property-read string $locale locale of the current instance - * @property-read int $centuriesInMillennium The number of centuries contained in the current millennium - * @property-read int $daysInCentury The number of days contained in the current century - * @property-read int $daysInDecade The number of days contained in the current decade - * @property-read int $daysInMillennium The number of days contained in the current millennium - * @property-read int $daysInMonth number of days in the given month - * @property-read int $daysInQuarter The number of days contained in the current quarter - * @property-read int $daysInWeek The number of days contained in the current week - * @property-read int $daysInYear 365 or 366 - * @property-read int $decadesInCentury The number of decades contained in the current century - * @property-read int $decadesInMillennium The number of decades contained in the current millennium - * @property-read int $hoursInCentury The number of hours contained in the current century - * @property-read int $hoursInDay The number of hours contained in the current day - * @property-read int $hoursInDecade The number of hours contained in the current decade - * @property-read int $hoursInMillennium The number of hours contained in the current millennium - * @property-read int $hoursInMonth The number of hours contained in the current month - * @property-read int $hoursInQuarter The number of hours contained in the current quarter - * @property-read int $hoursInWeek The number of hours contained in the current week - * @property-read int $hoursInYear The number of hours contained in the current year - * @property-read int $microsecondsInCentury The number of microseconds contained in the current century - * @property-read int $microsecondsInDay The number of microseconds contained in the current day - * @property-read int $microsecondsInDecade The number of microseconds contained in the current decade - * @property-read int $microsecondsInHour The number of microseconds contained in the current hour - * @property-read int $microsecondsInMillennium The number of microseconds contained in the current millennium - * @property-read int $microsecondsInMillisecond The number of microseconds contained in the current millisecond - * @property-read int $microsecondsInMinute The number of microseconds contained in the current minute - * @property-read int $microsecondsInMonth The number of microseconds contained in the current month - * @property-read int $microsecondsInQuarter The number of microseconds contained in the current quarter - * @property-read int $microsecondsInSecond The number of microseconds contained in the current second - * @property-read int $microsecondsInWeek The number of microseconds contained in the current week - * @property-read int $microsecondsInYear The number of microseconds contained in the current year - * @property-read int $millisecondsInCentury The number of milliseconds contained in the current century - * @property-read int $millisecondsInDay The number of milliseconds contained in the current day - * @property-read int $millisecondsInDecade The number of milliseconds contained in the current decade - * @property-read int $millisecondsInHour The number of milliseconds contained in the current hour - * @property-read int $millisecondsInMillennium The number of milliseconds contained in the current millennium - * @property-read int $millisecondsInMinute The number of milliseconds contained in the current minute - * @property-read int $millisecondsInMonth The number of milliseconds contained in the current month - * @property-read int $millisecondsInQuarter The number of milliseconds contained in the current quarter - * @property-read int $millisecondsInSecond The number of milliseconds contained in the current second - * @property-read int $millisecondsInWeek The number of milliseconds contained in the current week - * @property-read int $millisecondsInYear The number of milliseconds contained in the current year - * @property-read int $minutesInCentury The number of minutes contained in the current century - * @property-read int $minutesInDay The number of minutes contained in the current day - * @property-read int $minutesInDecade The number of minutes contained in the current decade - * @property-read int $minutesInHour The number of minutes contained in the current hour - * @property-read int $minutesInMillennium The number of minutes contained in the current millennium - * @property-read int $minutesInMonth The number of minutes contained in the current month - * @property-read int $minutesInQuarter The number of minutes contained in the current quarter - * @property-read int $minutesInWeek The number of minutes contained in the current week - * @property-read int $minutesInYear The number of minutes contained in the current year - * @property-read int $monthsInCentury The number of months contained in the current century - * @property-read int $monthsInDecade The number of months contained in the current decade - * @property-read int $monthsInMillennium The number of months contained in the current millennium - * @property-read int $monthsInQuarter The number of months contained in the current quarter - * @property-read int $monthsInYear The number of months contained in the current year - * @property-read int $quartersInCentury The number of quarters contained in the current century - * @property-read int $quartersInDecade The number of quarters contained in the current decade - * @property-read int $quartersInMillennium The number of quarters contained in the current millennium - * @property-read int $quartersInYear The number of quarters contained in the current year - * @property-read int $secondsInCentury The number of seconds contained in the current century - * @property-read int $secondsInDay The number of seconds contained in the current day - * @property-read int $secondsInDecade The number of seconds contained in the current decade - * @property-read int $secondsInHour The number of seconds contained in the current hour - * @property-read int $secondsInMillennium The number of seconds contained in the current millennium - * @property-read int $secondsInMinute The number of seconds contained in the current minute - * @property-read int $secondsInMonth The number of seconds contained in the current month - * @property-read int $secondsInQuarter The number of seconds contained in the current quarter - * @property-read int $secondsInWeek The number of seconds contained in the current week - * @property-read int $secondsInYear The number of seconds contained in the current year - * @property-read int $weeksInCentury The number of weeks contained in the current century - * @property-read int $weeksInDecade The number of weeks contained in the current decade - * @property-read int $weeksInMillennium The number of weeks contained in the current millennium - * @property-read int $weeksInMonth The number of weeks contained in the current month - * @property-read int $weeksInQuarter The number of weeks contained in the current quarter - * @property-read int $weeksInYear 51 through 53 - * @property-read int $yearsInCentury The number of years contained in the current century - * @property-read int $yearsInDecade The number of years contained in the current decade - * @property-read int $yearsInMillennium The number of years contained in the current millennium - * - * @method bool isUtc() Check if the current instance has UTC timezone. (Both isUtc and isUTC cases are valid.) - * @method bool isLocal() Check if the current instance has non-UTC timezone. - * @method bool isValid() Check if the current instance is a valid date. - * @method bool isDST() Check if the current instance is in a daylight saving time. - * @method bool isSunday() Checks if the instance day is sunday. - * @method bool isMonday() Checks if the instance day is monday. - * @method bool isTuesday() Checks if the instance day is tuesday. - * @method bool isWednesday() Checks if the instance day is wednesday. - * @method bool isThursday() Checks if the instance day is thursday. - * @method bool isFriday() Checks if the instance day is friday. - * @method bool isSaturday() Checks if the instance day is saturday. - * @method bool isSameYear(DateTimeInterface|string $date) Checks if the given date is in the same year as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentYear() Checks if the instance is in the same year as the current moment. - * @method bool isNextYear() Checks if the instance is in the same year as the current moment next year. - * @method bool isLastYear() Checks if the instance is in the same year as the current moment last year. - * @method bool isCurrentMonth() Checks if the instance is in the same month as the current moment. - * @method bool isNextMonth() Checks if the instance is in the same month as the current moment next month. - * @method bool isLastMonth() Checks if the instance is in the same month as the current moment last month. - * @method bool isSameWeek(DateTimeInterface|string $date) Checks if the given date is in the same week as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentWeek() Checks if the instance is in the same week as the current moment. - * @method bool isNextWeek() Checks if the instance is in the same week as the current moment next week. - * @method bool isLastWeek() Checks if the instance is in the same week as the current moment last week. - * @method bool isSameDay(DateTimeInterface|string $date) Checks if the given date is in the same day as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentDay() Checks if the instance is in the same day as the current moment. - * @method bool isNextDay() Checks if the instance is in the same day as the current moment next day. - * @method bool isLastDay() Checks if the instance is in the same day as the current moment last day. - * @method bool isSameHour(DateTimeInterface|string $date) Checks if the given date is in the same hour as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentHour() Checks if the instance is in the same hour as the current moment. - * @method bool isNextHour() Checks if the instance is in the same hour as the current moment next hour. - * @method bool isLastHour() Checks if the instance is in the same hour as the current moment last hour. - * @method bool isSameMinute(DateTimeInterface|string $date) Checks if the given date is in the same minute as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentMinute() Checks if the instance is in the same minute as the current moment. - * @method bool isNextMinute() Checks if the instance is in the same minute as the current moment next minute. - * @method bool isLastMinute() Checks if the instance is in the same minute as the current moment last minute. - * @method bool isSameSecond(DateTimeInterface|string $date) Checks if the given date is in the same second as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentSecond() Checks if the instance is in the same second as the current moment. - * @method bool isNextSecond() Checks if the instance is in the same second as the current moment next second. - * @method bool isLastSecond() Checks if the instance is in the same second as the current moment last second. - * @method bool isSameMilli(DateTimeInterface|string $date) Checks if the given date is in the same millisecond as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentMilli() Checks if the instance is in the same millisecond as the current moment. - * @method bool isNextMilli() Checks if the instance is in the same millisecond as the current moment next millisecond. - * @method bool isLastMilli() Checks if the instance is in the same millisecond as the current moment last millisecond. - * @method bool isSameMillisecond(DateTimeInterface|string $date) Checks if the given date is in the same millisecond as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentMillisecond() Checks if the instance is in the same millisecond as the current moment. - * @method bool isNextMillisecond() Checks if the instance is in the same millisecond as the current moment next millisecond. - * @method bool isLastMillisecond() Checks if the instance is in the same millisecond as the current moment last millisecond. - * @method bool isSameMicro(DateTimeInterface|string $date) Checks if the given date is in the same microsecond as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentMicro() Checks if the instance is in the same microsecond as the current moment. - * @method bool isNextMicro() Checks if the instance is in the same microsecond as the current moment next microsecond. - * @method bool isLastMicro() Checks if the instance is in the same microsecond as the current moment last microsecond. - * @method bool isSameMicrosecond(DateTimeInterface|string $date) Checks if the given date is in the same microsecond as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentMicrosecond() Checks if the instance is in the same microsecond as the current moment. - * @method bool isNextMicrosecond() Checks if the instance is in the same microsecond as the current moment next microsecond. - * @method bool isLastMicrosecond() Checks if the instance is in the same microsecond as the current moment last microsecond. - * @method bool isSameDecade(DateTimeInterface|string $date) Checks if the given date is in the same decade as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentDecade() Checks if the instance is in the same decade as the current moment. - * @method bool isNextDecade() Checks if the instance is in the same decade as the current moment next decade. - * @method bool isLastDecade() Checks if the instance is in the same decade as the current moment last decade. - * @method bool isSameCentury(DateTimeInterface|string $date) Checks if the given date is in the same century as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentCentury() Checks if the instance is in the same century as the current moment. - * @method bool isNextCentury() Checks if the instance is in the same century as the current moment next century. - * @method bool isLastCentury() Checks if the instance is in the same century as the current moment last century. - * @method bool isSameMillennium(DateTimeInterface|string $date) Checks if the given date is in the same millennium as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentMillennium() Checks if the instance is in the same millennium as the current moment. - * @method bool isNextMillennium() Checks if the instance is in the same millennium as the current moment next millennium. - * @method bool isLastMillennium() Checks if the instance is in the same millennium as the current moment last millennium. - * @method bool isCurrentQuarter() Checks if the instance is in the same quarter as the current moment. - * @method bool isNextQuarter() Checks if the instance is in the same quarter as the current moment next quarter. - * @method bool isLastQuarter() Checks if the instance is in the same quarter as the current moment last quarter. - * @method CarbonImmutable years(int $value) Set current instance year to the given value. - * @method CarbonImmutable year(int $value) Set current instance year to the given value. - * @method CarbonImmutable setYears(int $value) Set current instance year to the given value. - * @method CarbonImmutable setYear(int $value) Set current instance year to the given value. - * @method CarbonImmutable months(Month|int $value) Set current instance month to the given value. - * @method CarbonImmutable month(Month|int $value) Set current instance month to the given value. - * @method CarbonImmutable setMonths(Month|int $value) Set current instance month to the given value. - * @method CarbonImmutable setMonth(Month|int $value) Set current instance month to the given value. - * @method CarbonImmutable days(int $value) Set current instance day to the given value. - * @method CarbonImmutable day(int $value) Set current instance day to the given value. - * @method CarbonImmutable setDays(int $value) Set current instance day to the given value. - * @method CarbonImmutable setDay(int $value) Set current instance day to the given value. - * @method CarbonImmutable hours(int $value) Set current instance hour to the given value. - * @method CarbonImmutable hour(int $value) Set current instance hour to the given value. - * @method CarbonImmutable setHours(int $value) Set current instance hour to the given value. - * @method CarbonImmutable setHour(int $value) Set current instance hour to the given value. - * @method CarbonImmutable minutes(int $value) Set current instance minute to the given value. - * @method CarbonImmutable minute(int $value) Set current instance minute to the given value. - * @method CarbonImmutable setMinutes(int $value) Set current instance minute to the given value. - * @method CarbonImmutable setMinute(int $value) Set current instance minute to the given value. - * @method CarbonImmutable seconds(int $value) Set current instance second to the given value. - * @method CarbonImmutable second(int $value) Set current instance second to the given value. - * @method CarbonImmutable setSeconds(int $value) Set current instance second to the given value. - * @method CarbonImmutable setSecond(int $value) Set current instance second to the given value. - * @method CarbonImmutable millis(int $value) Set current instance millisecond to the given value. - * @method CarbonImmutable milli(int $value) Set current instance millisecond to the given value. - * @method CarbonImmutable setMillis(int $value) Set current instance millisecond to the given value. - * @method CarbonImmutable setMilli(int $value) Set current instance millisecond to the given value. - * @method CarbonImmutable milliseconds(int $value) Set current instance millisecond to the given value. - * @method CarbonImmutable millisecond(int $value) Set current instance millisecond to the given value. - * @method CarbonImmutable setMilliseconds(int $value) Set current instance millisecond to the given value. - * @method CarbonImmutable setMillisecond(int $value) Set current instance millisecond to the given value. - * @method CarbonImmutable micros(int $value) Set current instance microsecond to the given value. - * @method CarbonImmutable micro(int $value) Set current instance microsecond to the given value. - * @method CarbonImmutable setMicros(int $value) Set current instance microsecond to the given value. - * @method CarbonImmutable setMicro(int $value) Set current instance microsecond to the given value. - * @method CarbonImmutable microseconds(int $value) Set current instance microsecond to the given value. - * @method CarbonImmutable microsecond(int $value) Set current instance microsecond to the given value. - * @method CarbonImmutable setMicroseconds(int $value) Set current instance microsecond to the given value. - * @method CarbonImmutable setMicrosecond(int $value) Set current instance microsecond to the given value. - * @method CarbonImmutable addYears(int|float $value = 1) Add years (the $value count passed in) to the instance (using date interval). - * @method CarbonImmutable addYear() Add one year to the instance (using date interval). - * @method CarbonImmutable subYears(int|float $value = 1) Sub years (the $value count passed in) to the instance (using date interval). - * @method CarbonImmutable subYear() Sub one year to the instance (using date interval). - * @method CarbonImmutable addYearsWithOverflow(int|float $value = 1) Add years (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonImmutable addYearWithOverflow() Add one year to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonImmutable subYearsWithOverflow(int|float $value = 1) Sub years (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonImmutable subYearWithOverflow() Sub one year to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonImmutable addYearsWithoutOverflow(int|float $value = 1) Add years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable addYearWithoutOverflow() Add one year to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable subYearsWithoutOverflow(int|float $value = 1) Sub years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable subYearWithoutOverflow() Sub one year to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable addYearsWithNoOverflow(int|float $value = 1) Add years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable addYearWithNoOverflow() Add one year to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable subYearsWithNoOverflow(int|float $value = 1) Sub years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable subYearWithNoOverflow() Sub one year to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable addYearsNoOverflow(int|float $value = 1) Add years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable addYearNoOverflow() Add one year to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable subYearsNoOverflow(int|float $value = 1) Sub years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable subYearNoOverflow() Sub one year to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable addMonths(int|float $value = 1) Add months (the $value count passed in) to the instance (using date interval). - * @method CarbonImmutable addMonth() Add one month to the instance (using date interval). - * @method CarbonImmutable subMonths(int|float $value = 1) Sub months (the $value count passed in) to the instance (using date interval). - * @method CarbonImmutable subMonth() Sub one month to the instance (using date interval). - * @method CarbonImmutable addMonthsWithOverflow(int|float $value = 1) Add months (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonImmutable addMonthWithOverflow() Add one month to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonImmutable subMonthsWithOverflow(int|float $value = 1) Sub months (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonImmutable subMonthWithOverflow() Sub one month to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonImmutable addMonthsWithoutOverflow(int|float $value = 1) Add months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable addMonthWithoutOverflow() Add one month to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable subMonthsWithoutOverflow(int|float $value = 1) Sub months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable subMonthWithoutOverflow() Sub one month to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable addMonthsWithNoOverflow(int|float $value = 1) Add months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable addMonthWithNoOverflow() Add one month to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable subMonthsWithNoOverflow(int|float $value = 1) Sub months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable subMonthWithNoOverflow() Sub one month to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable addMonthsNoOverflow(int|float $value = 1) Add months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable addMonthNoOverflow() Add one month to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable subMonthsNoOverflow(int|float $value = 1) Sub months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable subMonthNoOverflow() Sub one month to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable addDays(int|float $value = 1) Add days (the $value count passed in) to the instance (using date interval). - * @method CarbonImmutable addDay() Add one day to the instance (using date interval). - * @method CarbonImmutable subDays(int|float $value = 1) Sub days (the $value count passed in) to the instance (using date interval). - * @method CarbonImmutable subDay() Sub one day to the instance (using date interval). - * @method CarbonImmutable addHours(int|float $value = 1) Add hours (the $value count passed in) to the instance (using date interval). - * @method CarbonImmutable addHour() Add one hour to the instance (using date interval). - * @method CarbonImmutable subHours(int|float $value = 1) Sub hours (the $value count passed in) to the instance (using date interval). - * @method CarbonImmutable subHour() Sub one hour to the instance (using date interval). - * @method CarbonImmutable addMinutes(int|float $value = 1) Add minutes (the $value count passed in) to the instance (using date interval). - * @method CarbonImmutable addMinute() Add one minute to the instance (using date interval). - * @method CarbonImmutable subMinutes(int|float $value = 1) Sub minutes (the $value count passed in) to the instance (using date interval). - * @method CarbonImmutable subMinute() Sub one minute to the instance (using date interval). - * @method CarbonImmutable addSeconds(int|float $value = 1) Add seconds (the $value count passed in) to the instance (using date interval). - * @method CarbonImmutable addSecond() Add one second to the instance (using date interval). - * @method CarbonImmutable subSeconds(int|float $value = 1) Sub seconds (the $value count passed in) to the instance (using date interval). - * @method CarbonImmutable subSecond() Sub one second to the instance (using date interval). - * @method CarbonImmutable addMillis(int|float $value = 1) Add milliseconds (the $value count passed in) to the instance (using date interval). - * @method CarbonImmutable addMilli() Add one millisecond to the instance (using date interval). - * @method CarbonImmutable subMillis(int|float $value = 1) Sub milliseconds (the $value count passed in) to the instance (using date interval). - * @method CarbonImmutable subMilli() Sub one millisecond to the instance (using date interval). - * @method CarbonImmutable addMilliseconds(int|float $value = 1) Add milliseconds (the $value count passed in) to the instance (using date interval). - * @method CarbonImmutable addMillisecond() Add one millisecond to the instance (using date interval). - * @method CarbonImmutable subMilliseconds(int|float $value = 1) Sub milliseconds (the $value count passed in) to the instance (using date interval). - * @method CarbonImmutable subMillisecond() Sub one millisecond to the instance (using date interval). - * @method CarbonImmutable addMicros(int|float $value = 1) Add microseconds (the $value count passed in) to the instance (using date interval). - * @method CarbonImmutable addMicro() Add one microsecond to the instance (using date interval). - * @method CarbonImmutable subMicros(int|float $value = 1) Sub microseconds (the $value count passed in) to the instance (using date interval). - * @method CarbonImmutable subMicro() Sub one microsecond to the instance (using date interval). - * @method CarbonImmutable addMicroseconds(int|float $value = 1) Add microseconds (the $value count passed in) to the instance (using date interval). - * @method CarbonImmutable addMicrosecond() Add one microsecond to the instance (using date interval). - * @method CarbonImmutable subMicroseconds(int|float $value = 1) Sub microseconds (the $value count passed in) to the instance (using date interval). - * @method CarbonImmutable subMicrosecond() Sub one microsecond to the instance (using date interval). - * @method CarbonImmutable addMillennia(int|float $value = 1) Add millennia (the $value count passed in) to the instance (using date interval). - * @method CarbonImmutable addMillennium() Add one millennium to the instance (using date interval). - * @method CarbonImmutable subMillennia(int|float $value = 1) Sub millennia (the $value count passed in) to the instance (using date interval). - * @method CarbonImmutable subMillennium() Sub one millennium to the instance (using date interval). - * @method CarbonImmutable addMillenniaWithOverflow(int|float $value = 1) Add millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonImmutable addMillenniumWithOverflow() Add one millennium to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonImmutable subMillenniaWithOverflow(int|float $value = 1) Sub millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonImmutable subMillenniumWithOverflow() Sub one millennium to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonImmutable addMillenniaWithoutOverflow(int|float $value = 1) Add millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable addMillenniumWithoutOverflow() Add one millennium to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable subMillenniaWithoutOverflow(int|float $value = 1) Sub millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable subMillenniumWithoutOverflow() Sub one millennium to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable addMillenniaWithNoOverflow(int|float $value = 1) Add millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable addMillenniumWithNoOverflow() Add one millennium to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable subMillenniaWithNoOverflow(int|float $value = 1) Sub millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable subMillenniumWithNoOverflow() Sub one millennium to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable addMillenniaNoOverflow(int|float $value = 1) Add millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable addMillenniumNoOverflow() Add one millennium to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable subMillenniaNoOverflow(int|float $value = 1) Sub millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable subMillenniumNoOverflow() Sub one millennium to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable addCenturies(int|float $value = 1) Add centuries (the $value count passed in) to the instance (using date interval). - * @method CarbonImmutable addCentury() Add one century to the instance (using date interval). - * @method CarbonImmutable subCenturies(int|float $value = 1) Sub centuries (the $value count passed in) to the instance (using date interval). - * @method CarbonImmutable subCentury() Sub one century to the instance (using date interval). - * @method CarbonImmutable addCenturiesWithOverflow(int|float $value = 1) Add centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonImmutable addCenturyWithOverflow() Add one century to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonImmutable subCenturiesWithOverflow(int|float $value = 1) Sub centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonImmutable subCenturyWithOverflow() Sub one century to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonImmutable addCenturiesWithoutOverflow(int|float $value = 1) Add centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable addCenturyWithoutOverflow() Add one century to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable subCenturiesWithoutOverflow(int|float $value = 1) Sub centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable subCenturyWithoutOverflow() Sub one century to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable addCenturiesWithNoOverflow(int|float $value = 1) Add centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable addCenturyWithNoOverflow() Add one century to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable subCenturiesWithNoOverflow(int|float $value = 1) Sub centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable subCenturyWithNoOverflow() Sub one century to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable addCenturiesNoOverflow(int|float $value = 1) Add centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable addCenturyNoOverflow() Add one century to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable subCenturiesNoOverflow(int|float $value = 1) Sub centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable subCenturyNoOverflow() Sub one century to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable addDecades(int|float $value = 1) Add decades (the $value count passed in) to the instance (using date interval). - * @method CarbonImmutable addDecade() Add one decade to the instance (using date interval). - * @method CarbonImmutable subDecades(int|float $value = 1) Sub decades (the $value count passed in) to the instance (using date interval). - * @method CarbonImmutable subDecade() Sub one decade to the instance (using date interval). - * @method CarbonImmutable addDecadesWithOverflow(int|float $value = 1) Add decades (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonImmutable addDecadeWithOverflow() Add one decade to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonImmutable subDecadesWithOverflow(int|float $value = 1) Sub decades (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonImmutable subDecadeWithOverflow() Sub one decade to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonImmutable addDecadesWithoutOverflow(int|float $value = 1) Add decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable addDecadeWithoutOverflow() Add one decade to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable subDecadesWithoutOverflow(int|float $value = 1) Sub decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable subDecadeWithoutOverflow() Sub one decade to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable addDecadesWithNoOverflow(int|float $value = 1) Add decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable addDecadeWithNoOverflow() Add one decade to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable subDecadesWithNoOverflow(int|float $value = 1) Sub decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable subDecadeWithNoOverflow() Sub one decade to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable addDecadesNoOverflow(int|float $value = 1) Add decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable addDecadeNoOverflow() Add one decade to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable subDecadesNoOverflow(int|float $value = 1) Sub decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable subDecadeNoOverflow() Sub one decade to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable addQuarters(int|float $value = 1) Add quarters (the $value count passed in) to the instance (using date interval). - * @method CarbonImmutable addQuarter() Add one quarter to the instance (using date interval). - * @method CarbonImmutable subQuarters(int|float $value = 1) Sub quarters (the $value count passed in) to the instance (using date interval). - * @method CarbonImmutable subQuarter() Sub one quarter to the instance (using date interval). - * @method CarbonImmutable addQuartersWithOverflow(int|float $value = 1) Add quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonImmutable addQuarterWithOverflow() Add one quarter to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonImmutable subQuartersWithOverflow(int|float $value = 1) Sub quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonImmutable subQuarterWithOverflow() Sub one quarter to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonImmutable addQuartersWithoutOverflow(int|float $value = 1) Add quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable addQuarterWithoutOverflow() Add one quarter to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable subQuartersWithoutOverflow(int|float $value = 1) Sub quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable subQuarterWithoutOverflow() Sub one quarter to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable addQuartersWithNoOverflow(int|float $value = 1) Add quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable addQuarterWithNoOverflow() Add one quarter to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable subQuartersWithNoOverflow(int|float $value = 1) Sub quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable subQuarterWithNoOverflow() Sub one quarter to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable addQuartersNoOverflow(int|float $value = 1) Add quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable addQuarterNoOverflow() Add one quarter to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable subQuartersNoOverflow(int|float $value = 1) Sub quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable subQuarterNoOverflow() Sub one quarter to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonImmutable addWeeks(int|float $value = 1) Add weeks (the $value count passed in) to the instance (using date interval). - * @method CarbonImmutable addWeek() Add one week to the instance (using date interval). - * @method CarbonImmutable subWeeks(int|float $value = 1) Sub weeks (the $value count passed in) to the instance (using date interval). - * @method CarbonImmutable subWeek() Sub one week to the instance (using date interval). - * @method CarbonImmutable addWeekdays(int|float $value = 1) Add weekdays (the $value count passed in) to the instance (using date interval). - * @method CarbonImmutable addWeekday() Add one weekday to the instance (using date interval). - * @method CarbonImmutable subWeekdays(int|float $value = 1) Sub weekdays (the $value count passed in) to the instance (using date interval). - * @method CarbonImmutable subWeekday() Sub one weekday to the instance (using date interval). - * @method CarbonImmutable addUTCMicros(int|float $value = 1) Add microseconds (the $value count passed in) to the instance (using timestamp). - * @method CarbonImmutable addUTCMicro() Add one microsecond to the instance (using timestamp). - * @method CarbonImmutable subUTCMicros(int|float $value = 1) Sub microseconds (the $value count passed in) to the instance (using timestamp). - * @method CarbonImmutable subUTCMicro() Sub one microsecond to the instance (using timestamp). - * @method CarbonPeriod microsUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each microsecond or every X microseconds if a factor is given. - * @method float diffInUTCMicros(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of microseconds. - * @method CarbonImmutable addUTCMicroseconds(int|float $value = 1) Add microseconds (the $value count passed in) to the instance (using timestamp). - * @method CarbonImmutable addUTCMicrosecond() Add one microsecond to the instance (using timestamp). - * @method CarbonImmutable subUTCMicroseconds(int|float $value = 1) Sub microseconds (the $value count passed in) to the instance (using timestamp). - * @method CarbonImmutable subUTCMicrosecond() Sub one microsecond to the instance (using timestamp). - * @method CarbonPeriod microsecondsUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each microsecond or every X microseconds if a factor is given. - * @method float diffInUTCMicroseconds(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of microseconds. - * @method CarbonImmutable addUTCMillis(int|float $value = 1) Add milliseconds (the $value count passed in) to the instance (using timestamp). - * @method CarbonImmutable addUTCMilli() Add one millisecond to the instance (using timestamp). - * @method CarbonImmutable subUTCMillis(int|float $value = 1) Sub milliseconds (the $value count passed in) to the instance (using timestamp). - * @method CarbonImmutable subUTCMilli() Sub one millisecond to the instance (using timestamp). - * @method CarbonPeriod millisUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each millisecond or every X milliseconds if a factor is given. - * @method float diffInUTCMillis(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of milliseconds. - * @method CarbonImmutable addUTCMilliseconds(int|float $value = 1) Add milliseconds (the $value count passed in) to the instance (using timestamp). - * @method CarbonImmutable addUTCMillisecond() Add one millisecond to the instance (using timestamp). - * @method CarbonImmutable subUTCMilliseconds(int|float $value = 1) Sub milliseconds (the $value count passed in) to the instance (using timestamp). - * @method CarbonImmutable subUTCMillisecond() Sub one millisecond to the instance (using timestamp). - * @method CarbonPeriod millisecondsUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each millisecond or every X milliseconds if a factor is given. - * @method float diffInUTCMilliseconds(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of milliseconds. - * @method CarbonImmutable addUTCSeconds(int|float $value = 1) Add seconds (the $value count passed in) to the instance (using timestamp). - * @method CarbonImmutable addUTCSecond() Add one second to the instance (using timestamp). - * @method CarbonImmutable subUTCSeconds(int|float $value = 1) Sub seconds (the $value count passed in) to the instance (using timestamp). - * @method CarbonImmutable subUTCSecond() Sub one second to the instance (using timestamp). - * @method CarbonPeriod secondsUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each second or every X seconds if a factor is given. - * @method float diffInUTCSeconds(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of seconds. - * @method CarbonImmutable addUTCMinutes(int|float $value = 1) Add minutes (the $value count passed in) to the instance (using timestamp). - * @method CarbonImmutable addUTCMinute() Add one minute to the instance (using timestamp). - * @method CarbonImmutable subUTCMinutes(int|float $value = 1) Sub minutes (the $value count passed in) to the instance (using timestamp). - * @method CarbonImmutable subUTCMinute() Sub one minute to the instance (using timestamp). - * @method CarbonPeriod minutesUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each minute or every X minutes if a factor is given. - * @method float diffInUTCMinutes(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of minutes. - * @method CarbonImmutable addUTCHours(int|float $value = 1) Add hours (the $value count passed in) to the instance (using timestamp). - * @method CarbonImmutable addUTCHour() Add one hour to the instance (using timestamp). - * @method CarbonImmutable subUTCHours(int|float $value = 1) Sub hours (the $value count passed in) to the instance (using timestamp). - * @method CarbonImmutable subUTCHour() Sub one hour to the instance (using timestamp). - * @method CarbonPeriod hoursUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each hour or every X hours if a factor is given. - * @method float diffInUTCHours(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of hours. - * @method CarbonImmutable addUTCDays(int|float $value = 1) Add days (the $value count passed in) to the instance (using timestamp). - * @method CarbonImmutable addUTCDay() Add one day to the instance (using timestamp). - * @method CarbonImmutable subUTCDays(int|float $value = 1) Sub days (the $value count passed in) to the instance (using timestamp). - * @method CarbonImmutable subUTCDay() Sub one day to the instance (using timestamp). - * @method CarbonPeriod daysUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each day or every X days if a factor is given. - * @method float diffInUTCDays(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of days. - * @method CarbonImmutable addUTCWeeks(int|float $value = 1) Add weeks (the $value count passed in) to the instance (using timestamp). - * @method CarbonImmutable addUTCWeek() Add one week to the instance (using timestamp). - * @method CarbonImmutable subUTCWeeks(int|float $value = 1) Sub weeks (the $value count passed in) to the instance (using timestamp). - * @method CarbonImmutable subUTCWeek() Sub one week to the instance (using timestamp). - * @method CarbonPeriod weeksUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each week or every X weeks if a factor is given. - * @method float diffInUTCWeeks(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of weeks. - * @method CarbonImmutable addUTCMonths(int|float $value = 1) Add months (the $value count passed in) to the instance (using timestamp). - * @method CarbonImmutable addUTCMonth() Add one month to the instance (using timestamp). - * @method CarbonImmutable subUTCMonths(int|float $value = 1) Sub months (the $value count passed in) to the instance (using timestamp). - * @method CarbonImmutable subUTCMonth() Sub one month to the instance (using timestamp). - * @method CarbonPeriod monthsUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each month or every X months if a factor is given. - * @method float diffInUTCMonths(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of months. - * @method CarbonImmutable addUTCQuarters(int|float $value = 1) Add quarters (the $value count passed in) to the instance (using timestamp). - * @method CarbonImmutable addUTCQuarter() Add one quarter to the instance (using timestamp). - * @method CarbonImmutable subUTCQuarters(int|float $value = 1) Sub quarters (the $value count passed in) to the instance (using timestamp). - * @method CarbonImmutable subUTCQuarter() Sub one quarter to the instance (using timestamp). - * @method CarbonPeriod quartersUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each quarter or every X quarters if a factor is given. - * @method float diffInUTCQuarters(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of quarters. - * @method CarbonImmutable addUTCYears(int|float $value = 1) Add years (the $value count passed in) to the instance (using timestamp). - * @method CarbonImmutable addUTCYear() Add one year to the instance (using timestamp). - * @method CarbonImmutable subUTCYears(int|float $value = 1) Sub years (the $value count passed in) to the instance (using timestamp). - * @method CarbonImmutable subUTCYear() Sub one year to the instance (using timestamp). - * @method CarbonPeriod yearsUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each year or every X years if a factor is given. - * @method float diffInUTCYears(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of years. - * @method CarbonImmutable addUTCDecades(int|float $value = 1) Add decades (the $value count passed in) to the instance (using timestamp). - * @method CarbonImmutable addUTCDecade() Add one decade to the instance (using timestamp). - * @method CarbonImmutable subUTCDecades(int|float $value = 1) Sub decades (the $value count passed in) to the instance (using timestamp). - * @method CarbonImmutable subUTCDecade() Sub one decade to the instance (using timestamp). - * @method CarbonPeriod decadesUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each decade or every X decades if a factor is given. - * @method float diffInUTCDecades(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of decades. - * @method CarbonImmutable addUTCCenturies(int|float $value = 1) Add centuries (the $value count passed in) to the instance (using timestamp). - * @method CarbonImmutable addUTCCentury() Add one century to the instance (using timestamp). - * @method CarbonImmutable subUTCCenturies(int|float $value = 1) Sub centuries (the $value count passed in) to the instance (using timestamp). - * @method CarbonImmutable subUTCCentury() Sub one century to the instance (using timestamp). - * @method CarbonPeriod centuriesUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each century or every X centuries if a factor is given. - * @method float diffInUTCCenturies(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of centuries. - * @method CarbonImmutable addUTCMillennia(int|float $value = 1) Add millennia (the $value count passed in) to the instance (using timestamp). - * @method CarbonImmutable addUTCMillennium() Add one millennium to the instance (using timestamp). - * @method CarbonImmutable subUTCMillennia(int|float $value = 1) Sub millennia (the $value count passed in) to the instance (using timestamp). - * @method CarbonImmutable subUTCMillennium() Sub one millennium to the instance (using timestamp). - * @method CarbonPeriod millenniaUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each millennium or every X millennia if a factor is given. - * @method float diffInUTCMillennia(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of millennia. - * @method CarbonImmutable roundYear(float $precision = 1, string $function = "round") Round the current instance year with given precision using the given function. - * @method CarbonImmutable roundYears(float $precision = 1, string $function = "round") Round the current instance year with given precision using the given function. - * @method CarbonImmutable floorYear(float $precision = 1) Truncate the current instance year with given precision. - * @method CarbonImmutable floorYears(float $precision = 1) Truncate the current instance year with given precision. - * @method CarbonImmutable ceilYear(float $precision = 1) Ceil the current instance year with given precision. - * @method CarbonImmutable ceilYears(float $precision = 1) Ceil the current instance year with given precision. - * @method CarbonImmutable roundMonth(float $precision = 1, string $function = "round") Round the current instance month with given precision using the given function. - * @method CarbonImmutable roundMonths(float $precision = 1, string $function = "round") Round the current instance month with given precision using the given function. - * @method CarbonImmutable floorMonth(float $precision = 1) Truncate the current instance month with given precision. - * @method CarbonImmutable floorMonths(float $precision = 1) Truncate the current instance month with given precision. - * @method CarbonImmutable ceilMonth(float $precision = 1) Ceil the current instance month with given precision. - * @method CarbonImmutable ceilMonths(float $precision = 1) Ceil the current instance month with given precision. - * @method CarbonImmutable roundDay(float $precision = 1, string $function = "round") Round the current instance day with given precision using the given function. - * @method CarbonImmutable roundDays(float $precision = 1, string $function = "round") Round the current instance day with given precision using the given function. - * @method CarbonImmutable floorDay(float $precision = 1) Truncate the current instance day with given precision. - * @method CarbonImmutable floorDays(float $precision = 1) Truncate the current instance day with given precision. - * @method CarbonImmutable ceilDay(float $precision = 1) Ceil the current instance day with given precision. - * @method CarbonImmutable ceilDays(float $precision = 1) Ceil the current instance day with given precision. - * @method CarbonImmutable roundHour(float $precision = 1, string $function = "round") Round the current instance hour with given precision using the given function. - * @method CarbonImmutable roundHours(float $precision = 1, string $function = "round") Round the current instance hour with given precision using the given function. - * @method CarbonImmutable floorHour(float $precision = 1) Truncate the current instance hour with given precision. - * @method CarbonImmutable floorHours(float $precision = 1) Truncate the current instance hour with given precision. - * @method CarbonImmutable ceilHour(float $precision = 1) Ceil the current instance hour with given precision. - * @method CarbonImmutable ceilHours(float $precision = 1) Ceil the current instance hour with given precision. - * @method CarbonImmutable roundMinute(float $precision = 1, string $function = "round") Round the current instance minute with given precision using the given function. - * @method CarbonImmutable roundMinutes(float $precision = 1, string $function = "round") Round the current instance minute with given precision using the given function. - * @method CarbonImmutable floorMinute(float $precision = 1) Truncate the current instance minute with given precision. - * @method CarbonImmutable floorMinutes(float $precision = 1) Truncate the current instance minute with given precision. - * @method CarbonImmutable ceilMinute(float $precision = 1) Ceil the current instance minute with given precision. - * @method CarbonImmutable ceilMinutes(float $precision = 1) Ceil the current instance minute with given precision. - * @method CarbonImmutable roundSecond(float $precision = 1, string $function = "round") Round the current instance second with given precision using the given function. - * @method CarbonImmutable roundSeconds(float $precision = 1, string $function = "round") Round the current instance second with given precision using the given function. - * @method CarbonImmutable floorSecond(float $precision = 1) Truncate the current instance second with given precision. - * @method CarbonImmutable floorSeconds(float $precision = 1) Truncate the current instance second with given precision. - * @method CarbonImmutable ceilSecond(float $precision = 1) Ceil the current instance second with given precision. - * @method CarbonImmutable ceilSeconds(float $precision = 1) Ceil the current instance second with given precision. - * @method CarbonImmutable roundMillennium(float $precision = 1, string $function = "round") Round the current instance millennium with given precision using the given function. - * @method CarbonImmutable roundMillennia(float $precision = 1, string $function = "round") Round the current instance millennium with given precision using the given function. - * @method CarbonImmutable floorMillennium(float $precision = 1) Truncate the current instance millennium with given precision. - * @method CarbonImmutable floorMillennia(float $precision = 1) Truncate the current instance millennium with given precision. - * @method CarbonImmutable ceilMillennium(float $precision = 1) Ceil the current instance millennium with given precision. - * @method CarbonImmutable ceilMillennia(float $precision = 1) Ceil the current instance millennium with given precision. - * @method CarbonImmutable roundCentury(float $precision = 1, string $function = "round") Round the current instance century with given precision using the given function. - * @method CarbonImmutable roundCenturies(float $precision = 1, string $function = "round") Round the current instance century with given precision using the given function. - * @method CarbonImmutable floorCentury(float $precision = 1) Truncate the current instance century with given precision. - * @method CarbonImmutable floorCenturies(float $precision = 1) Truncate the current instance century with given precision. - * @method CarbonImmutable ceilCentury(float $precision = 1) Ceil the current instance century with given precision. - * @method CarbonImmutable ceilCenturies(float $precision = 1) Ceil the current instance century with given precision. - * @method CarbonImmutable roundDecade(float $precision = 1, string $function = "round") Round the current instance decade with given precision using the given function. - * @method CarbonImmutable roundDecades(float $precision = 1, string $function = "round") Round the current instance decade with given precision using the given function. - * @method CarbonImmutable floorDecade(float $precision = 1) Truncate the current instance decade with given precision. - * @method CarbonImmutable floorDecades(float $precision = 1) Truncate the current instance decade with given precision. - * @method CarbonImmutable ceilDecade(float $precision = 1) Ceil the current instance decade with given precision. - * @method CarbonImmutable ceilDecades(float $precision = 1) Ceil the current instance decade with given precision. - * @method CarbonImmutable roundQuarter(float $precision = 1, string $function = "round") Round the current instance quarter with given precision using the given function. - * @method CarbonImmutable roundQuarters(float $precision = 1, string $function = "round") Round the current instance quarter with given precision using the given function. - * @method CarbonImmutable floorQuarter(float $precision = 1) Truncate the current instance quarter with given precision. - * @method CarbonImmutable floorQuarters(float $precision = 1) Truncate the current instance quarter with given precision. - * @method CarbonImmutable ceilQuarter(float $precision = 1) Ceil the current instance quarter with given precision. - * @method CarbonImmutable ceilQuarters(float $precision = 1) Ceil the current instance quarter with given precision. - * @method CarbonImmutable roundMillisecond(float $precision = 1, string $function = "round") Round the current instance millisecond with given precision using the given function. - * @method CarbonImmutable roundMilliseconds(float $precision = 1, string $function = "round") Round the current instance millisecond with given precision using the given function. - * @method CarbonImmutable floorMillisecond(float $precision = 1) Truncate the current instance millisecond with given precision. - * @method CarbonImmutable floorMilliseconds(float $precision = 1) Truncate the current instance millisecond with given precision. - * @method CarbonImmutable ceilMillisecond(float $precision = 1) Ceil the current instance millisecond with given precision. - * @method CarbonImmutable ceilMilliseconds(float $precision = 1) Ceil the current instance millisecond with given precision. - * @method CarbonImmutable roundMicrosecond(float $precision = 1, string $function = "round") Round the current instance microsecond with given precision using the given function. - * @method CarbonImmutable roundMicroseconds(float $precision = 1, string $function = "round") Round the current instance microsecond with given precision using the given function. - * @method CarbonImmutable floorMicrosecond(float $precision = 1) Truncate the current instance microsecond with given precision. - * @method CarbonImmutable floorMicroseconds(float $precision = 1) Truncate the current instance microsecond with given precision. - * @method CarbonImmutable ceilMicrosecond(float $precision = 1) Ceil the current instance microsecond with given precision. - * @method CarbonImmutable ceilMicroseconds(float $precision = 1) Ceil the current instance microsecond with given precision. - * @method string shortAbsoluteDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (short format, 'Absolute' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) - * @method string longAbsoluteDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (long format, 'Absolute' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) - * @method string shortRelativeDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (short format, 'Relative' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) - * @method string longRelativeDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (long format, 'Relative' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) - * @method string shortRelativeToNowDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (short format, 'RelativeToNow' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) - * @method string longRelativeToNowDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (long format, 'RelativeToNow' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) - * @method string shortRelativeToOtherDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (short format, 'RelativeToOther' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) - * @method string longRelativeToOtherDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (long format, 'RelativeToOther' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) - * @method int centuriesInMillennium() Return the number of centuries contained in the current millennium - * @method int|static centuryOfMillennium(?int $century = null) Return the value of the century starting from the beginning of the current millennium when called with no parameters, change the current century when called with an integer value - * @method int|static dayOfCentury(?int $day = null) Return the value of the day starting from the beginning of the current century when called with no parameters, change the current day when called with an integer value - * @method int|static dayOfDecade(?int $day = null) Return the value of the day starting from the beginning of the current decade when called with no parameters, change the current day when called with an integer value - * @method int|static dayOfMillennium(?int $day = null) Return the value of the day starting from the beginning of the current millennium when called with no parameters, change the current day when called with an integer value - * @method int|static dayOfMonth(?int $day = null) Return the value of the day starting from the beginning of the current month when called with no parameters, change the current day when called with an integer value - * @method int|static dayOfQuarter(?int $day = null) Return the value of the day starting from the beginning of the current quarter when called with no parameters, change the current day when called with an integer value - * @method int|static dayOfWeek(?int $day = null) Return the value of the day starting from the beginning of the current week when called with no parameters, change the current day when called with an integer value - * @method int daysInCentury() Return the number of days contained in the current century - * @method int daysInDecade() Return the number of days contained in the current decade - * @method int daysInMillennium() Return the number of days contained in the current millennium - * @method int daysInMonth() Return the number of days contained in the current month - * @method int daysInQuarter() Return the number of days contained in the current quarter - * @method int daysInWeek() Return the number of days contained in the current week - * @method int daysInYear() Return the number of days contained in the current year - * @method int|static decadeOfCentury(?int $decade = null) Return the value of the decade starting from the beginning of the current century when called with no parameters, change the current decade when called with an integer value - * @method int|static decadeOfMillennium(?int $decade = null) Return the value of the decade starting from the beginning of the current millennium when called with no parameters, change the current decade when called with an integer value - * @method int decadesInCentury() Return the number of decades contained in the current century - * @method int decadesInMillennium() Return the number of decades contained in the current millennium - * @method int|static hourOfCentury(?int $hour = null) Return the value of the hour starting from the beginning of the current century when called with no parameters, change the current hour when called with an integer value - * @method int|static hourOfDay(?int $hour = null) Return the value of the hour starting from the beginning of the current day when called with no parameters, change the current hour when called with an integer value - * @method int|static hourOfDecade(?int $hour = null) Return the value of the hour starting from the beginning of the current decade when called with no parameters, change the current hour when called with an integer value - * @method int|static hourOfMillennium(?int $hour = null) Return the value of the hour starting from the beginning of the current millennium when called with no parameters, change the current hour when called with an integer value - * @method int|static hourOfMonth(?int $hour = null) Return the value of the hour starting from the beginning of the current month when called with no parameters, change the current hour when called with an integer value - * @method int|static hourOfQuarter(?int $hour = null) Return the value of the hour starting from the beginning of the current quarter when called with no parameters, change the current hour when called with an integer value - * @method int|static hourOfWeek(?int $hour = null) Return the value of the hour starting from the beginning of the current week when called with no parameters, change the current hour when called with an integer value - * @method int|static hourOfYear(?int $hour = null) Return the value of the hour starting from the beginning of the current year when called with no parameters, change the current hour when called with an integer value - * @method int hoursInCentury() Return the number of hours contained in the current century - * @method int hoursInDay() Return the number of hours contained in the current day - * @method int hoursInDecade() Return the number of hours contained in the current decade - * @method int hoursInMillennium() Return the number of hours contained in the current millennium - * @method int hoursInMonth() Return the number of hours contained in the current month - * @method int hoursInQuarter() Return the number of hours contained in the current quarter - * @method int hoursInWeek() Return the number of hours contained in the current week - * @method int hoursInYear() Return the number of hours contained in the current year - * @method int|static microsecondOfCentury(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current century when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfDay(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current day when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfDecade(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current decade when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfHour(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current hour when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfMillennium(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current millennium when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfMillisecond(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current millisecond when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfMinute(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current minute when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfMonth(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current month when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfQuarter(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current quarter when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfSecond(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current second when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfWeek(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current week when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfYear(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current year when called with no parameters, change the current microsecond when called with an integer value - * @method int microsecondsInCentury() Return the number of microseconds contained in the current century - * @method int microsecondsInDay() Return the number of microseconds contained in the current day - * @method int microsecondsInDecade() Return the number of microseconds contained in the current decade - * @method int microsecondsInHour() Return the number of microseconds contained in the current hour - * @method int microsecondsInMillennium() Return the number of microseconds contained in the current millennium - * @method int microsecondsInMillisecond() Return the number of microseconds contained in the current millisecond - * @method int microsecondsInMinute() Return the number of microseconds contained in the current minute - * @method int microsecondsInMonth() Return the number of microseconds contained in the current month - * @method int microsecondsInQuarter() Return the number of microseconds contained in the current quarter - * @method int microsecondsInSecond() Return the number of microseconds contained in the current second - * @method int microsecondsInWeek() Return the number of microseconds contained in the current week - * @method int microsecondsInYear() Return the number of microseconds contained in the current year - * @method int|static millisecondOfCentury(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current century when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfDay(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current day when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfDecade(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current decade when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfHour(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current hour when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfMillennium(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current millennium when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfMinute(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current minute when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfMonth(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current month when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfQuarter(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current quarter when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfSecond(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current second when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfWeek(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current week when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfYear(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current year when called with no parameters, change the current millisecond when called with an integer value - * @method int millisecondsInCentury() Return the number of milliseconds contained in the current century - * @method int millisecondsInDay() Return the number of milliseconds contained in the current day - * @method int millisecondsInDecade() Return the number of milliseconds contained in the current decade - * @method int millisecondsInHour() Return the number of milliseconds contained in the current hour - * @method int millisecondsInMillennium() Return the number of milliseconds contained in the current millennium - * @method int millisecondsInMinute() Return the number of milliseconds contained in the current minute - * @method int millisecondsInMonth() Return the number of milliseconds contained in the current month - * @method int millisecondsInQuarter() Return the number of milliseconds contained in the current quarter - * @method int millisecondsInSecond() Return the number of milliseconds contained in the current second - * @method int millisecondsInWeek() Return the number of milliseconds contained in the current week - * @method int millisecondsInYear() Return the number of milliseconds contained in the current year - * @method int|static minuteOfCentury(?int $minute = null) Return the value of the minute starting from the beginning of the current century when called with no parameters, change the current minute when called with an integer value - * @method int|static minuteOfDay(?int $minute = null) Return the value of the minute starting from the beginning of the current day when called with no parameters, change the current minute when called with an integer value - * @method int|static minuteOfDecade(?int $minute = null) Return the value of the minute starting from the beginning of the current decade when called with no parameters, change the current minute when called with an integer value - * @method int|static minuteOfHour(?int $minute = null) Return the value of the minute starting from the beginning of the current hour when called with no parameters, change the current minute when called with an integer value - * @method int|static minuteOfMillennium(?int $minute = null) Return the value of the minute starting from the beginning of the current millennium when called with no parameters, change the current minute when called with an integer value - * @method int|static minuteOfMonth(?int $minute = null) Return the value of the minute starting from the beginning of the current month when called with no parameters, change the current minute when called with an integer value - * @method int|static minuteOfQuarter(?int $minute = null) Return the value of the minute starting from the beginning of the current quarter when called with no parameters, change the current minute when called with an integer value - * @method int|static minuteOfWeek(?int $minute = null) Return the value of the minute starting from the beginning of the current week when called with no parameters, change the current minute when called with an integer value - * @method int|static minuteOfYear(?int $minute = null) Return the value of the minute starting from the beginning of the current year when called with no parameters, change the current minute when called with an integer value - * @method int minutesInCentury() Return the number of minutes contained in the current century - * @method int minutesInDay() Return the number of minutes contained in the current day - * @method int minutesInDecade() Return the number of minutes contained in the current decade - * @method int minutesInHour() Return the number of minutes contained in the current hour - * @method int minutesInMillennium() Return the number of minutes contained in the current millennium - * @method int minutesInMonth() Return the number of minutes contained in the current month - * @method int minutesInQuarter() Return the number of minutes contained in the current quarter - * @method int minutesInWeek() Return the number of minutes contained in the current week - * @method int minutesInYear() Return the number of minutes contained in the current year - * @method int|static monthOfCentury(?int $month = null) Return the value of the month starting from the beginning of the current century when called with no parameters, change the current month when called with an integer value - * @method int|static monthOfDecade(?int $month = null) Return the value of the month starting from the beginning of the current decade when called with no parameters, change the current month when called with an integer value - * @method int|static monthOfMillennium(?int $month = null) Return the value of the month starting from the beginning of the current millennium when called with no parameters, change the current month when called with an integer value - * @method int|static monthOfQuarter(?int $month = null) Return the value of the month starting from the beginning of the current quarter when called with no parameters, change the current month when called with an integer value - * @method int|static monthOfYear(?int $month = null) Return the value of the month starting from the beginning of the current year when called with no parameters, change the current month when called with an integer value - * @method int monthsInCentury() Return the number of months contained in the current century - * @method int monthsInDecade() Return the number of months contained in the current decade - * @method int monthsInMillennium() Return the number of months contained in the current millennium - * @method int monthsInQuarter() Return the number of months contained in the current quarter - * @method int monthsInYear() Return the number of months contained in the current year - * @method int|static quarterOfCentury(?int $quarter = null) Return the value of the quarter starting from the beginning of the current century when called with no parameters, change the current quarter when called with an integer value - * @method int|static quarterOfDecade(?int $quarter = null) Return the value of the quarter starting from the beginning of the current decade when called with no parameters, change the current quarter when called with an integer value - * @method int|static quarterOfMillennium(?int $quarter = null) Return the value of the quarter starting from the beginning of the current millennium when called with no parameters, change the current quarter when called with an integer value - * @method int|static quarterOfYear(?int $quarter = null) Return the value of the quarter starting from the beginning of the current year when called with no parameters, change the current quarter when called with an integer value - * @method int quartersInCentury() Return the number of quarters contained in the current century - * @method int quartersInDecade() Return the number of quarters contained in the current decade - * @method int quartersInMillennium() Return the number of quarters contained in the current millennium - * @method int quartersInYear() Return the number of quarters contained in the current year - * @method int|static secondOfCentury(?int $second = null) Return the value of the second starting from the beginning of the current century when called with no parameters, change the current second when called with an integer value - * @method int|static secondOfDay(?int $second = null) Return the value of the second starting from the beginning of the current day when called with no parameters, change the current second when called with an integer value - * @method int|static secondOfDecade(?int $second = null) Return the value of the second starting from the beginning of the current decade when called with no parameters, change the current second when called with an integer value - * @method int|static secondOfHour(?int $second = null) Return the value of the second starting from the beginning of the current hour when called with no parameters, change the current second when called with an integer value - * @method int|static secondOfMillennium(?int $second = null) Return the value of the second starting from the beginning of the current millennium when called with no parameters, change the current second when called with an integer value - * @method int|static secondOfMinute(?int $second = null) Return the value of the second starting from the beginning of the current minute when called with no parameters, change the current second when called with an integer value - * @method int|static secondOfMonth(?int $second = null) Return the value of the second starting from the beginning of the current month when called with no parameters, change the current second when called with an integer value - * @method int|static secondOfQuarter(?int $second = null) Return the value of the second starting from the beginning of the current quarter when called with no parameters, change the current second when called with an integer value - * @method int|static secondOfWeek(?int $second = null) Return the value of the second starting from the beginning of the current week when called with no parameters, change the current second when called with an integer value - * @method int|static secondOfYear(?int $second = null) Return the value of the second starting from the beginning of the current year when called with no parameters, change the current second when called with an integer value - * @method int secondsInCentury() Return the number of seconds contained in the current century - * @method int secondsInDay() Return the number of seconds contained in the current day - * @method int secondsInDecade() Return the number of seconds contained in the current decade - * @method int secondsInHour() Return the number of seconds contained in the current hour - * @method int secondsInMillennium() Return the number of seconds contained in the current millennium - * @method int secondsInMinute() Return the number of seconds contained in the current minute - * @method int secondsInMonth() Return the number of seconds contained in the current month - * @method int secondsInQuarter() Return the number of seconds contained in the current quarter - * @method int secondsInWeek() Return the number of seconds contained in the current week - * @method int secondsInYear() Return the number of seconds contained in the current year - * @method int|static weekOfCentury(?int $week = null) Return the value of the week starting from the beginning of the current century when called with no parameters, change the current week when called with an integer value - * @method int|static weekOfDecade(?int $week = null) Return the value of the week starting from the beginning of the current decade when called with no parameters, change the current week when called with an integer value - * @method int|static weekOfMillennium(?int $week = null) Return the value of the week starting from the beginning of the current millennium when called with no parameters, change the current week when called with an integer value - * @method int|static weekOfMonth(?int $week = null) Return the value of the week starting from the beginning of the current month when called with no parameters, change the current week when called with an integer value - * @method int|static weekOfQuarter(?int $week = null) Return the value of the week starting from the beginning of the current quarter when called with no parameters, change the current week when called with an integer value - * @method int|static weekOfYear(?int $week = null) Return the value of the week starting from the beginning of the current year when called with no parameters, change the current week when called with an integer value - * @method int weeksInCentury() Return the number of weeks contained in the current century - * @method int weeksInDecade() Return the number of weeks contained in the current decade - * @method int weeksInMillennium() Return the number of weeks contained in the current millennium - * @method int weeksInMonth() Return the number of weeks contained in the current month - * @method int weeksInQuarter() Return the number of weeks contained in the current quarter - * @method int|static yearOfCentury(?int $year = null) Return the value of the year starting from the beginning of the current century when called with no parameters, change the current year when called with an integer value - * @method int|static yearOfDecade(?int $year = null) Return the value of the year starting from the beginning of the current decade when called with no parameters, change the current year when called with an integer value - * @method int|static yearOfMillennium(?int $year = null) Return the value of the year starting from the beginning of the current millennium when called with no parameters, change the current year when called with an integer value - * @method int yearsInCentury() Return the number of years contained in the current century - * @method int yearsInDecade() Return the number of years contained in the current decade - * @method int yearsInMillennium() Return the number of years contained in the current millennium - * - * - */ -class CarbonImmutable extends DateTimeImmutable implements CarbonInterface -{ - use Date { - __clone as dateTraitClone; - } - - public function __clone(): void - { - $this->dateTraitClone(); - $this->endOfTime = false; - $this->startOfTime = false; - } - - /** - * Create a very old date representing start of time. - * - * @return static - */ - public static function startOfTime(): static - { - $date = static::parse('0001-01-01')->years(self::getStartOfTimeYear()); - $date->startOfTime = true; - - return $date; - } - - /** - * Create a very far date representing end of time. - * - * @return static - */ - public static function endOfTime(): static - { - $date = static::parse('9999-12-31 23:59:59.999999')->years(self::getEndOfTimeYear()); - $date->endOfTime = true; - - return $date; - } - - /** - * @codeCoverageIgnore - */ - private static function getEndOfTimeYear(): int - { - return 1118290769066902787; // PHP_INT_MAX no longer work since PHP 8.1 - } - - /** - * @codeCoverageIgnore - */ - private static function getStartOfTimeYear(): int - { - return -1118290769066898816; // PHP_INT_MIN no longer work since PHP 8.1 - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/CarbonInterface.php b/vendor/nesbot/carbon/src/Carbon/CarbonInterface.php deleted file mode 100644 index 2d77269..0000000 --- a/vendor/nesbot/carbon/src/Carbon/CarbonInterface.php +++ /dev/null @@ -1,4934 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon; - -use BadMethodCallException; -use Carbon\Exceptions\BadComparisonUnitException; -use Carbon\Exceptions\ImmutableException; -use Carbon\Exceptions\InvalidDateException; -use Carbon\Exceptions\InvalidFormatException; -use Carbon\Exceptions\UnknownGetterException; -use Carbon\Exceptions\UnknownMethodException; -use Carbon\Exceptions\UnknownSetterException; -use Closure; -use DateInterval; -use DateTime; -use DateTimeImmutable; -use DateTimeInterface; -use DateTimeZone; -use JsonSerializable; -use ReflectionException; -use ReturnTypeWillChange; -use Symfony\Contracts\Translation\TranslatorInterface; -use Throwable; - -/** - * Common interface for Carbon and CarbonImmutable. - * - * - * - * @property string $localeDayOfWeek the day of week in current locale - * @property string $shortLocaleDayOfWeek the abbreviated day of week in current locale - * @property string $localeMonth the month in current locale - * @property string $shortLocaleMonth the abbreviated month in current locale - * @property int $year - * @property int $yearIso - * @property int $month - * @property int $day - * @property int $hour - * @property int $minute - * @property int $second - * @property int $micro - * @property int $microsecond - * @property int $dayOfWeekIso 1 (for Monday) through 7 (for Sunday) - * @property int|float|string $timestamp seconds since the Unix Epoch - * @property string $englishDayOfWeek the day of week in English - * @property string $shortEnglishDayOfWeek the abbreviated day of week in English - * @property string $englishMonth the month in English - * @property string $shortEnglishMonth the abbreviated month in English - * @property int $milliseconds - * @property int $millisecond - * @property int $milli - * @property int $week 1 through 53 - * @property int $isoWeek 1 through 53 - * @property int $weekYear year according to week format - * @property int $isoWeekYear year according to ISO week format - * @property int $age does a diffInYears() with default parameters - * @property int $offset the timezone offset in seconds from UTC - * @property int $offsetMinutes the timezone offset in minutes from UTC - * @property int $offsetHours the timezone offset in hours from UTC - * @property CarbonTimeZone $timezone the current timezone - * @property CarbonTimeZone $tz alias of $timezone - * @property int $centuryOfMillennium The value of the century starting from the beginning of the current millennium - * @property int $dayOfCentury The value of the day starting from the beginning of the current century - * @property int $dayOfDecade The value of the day starting from the beginning of the current decade - * @property int $dayOfMillennium The value of the day starting from the beginning of the current millennium - * @property int $dayOfMonth The value of the day starting from the beginning of the current month - * @property int $dayOfQuarter The value of the day starting from the beginning of the current quarter - * @property int $dayOfWeek 0 (for Sunday) through 6 (for Saturday) - * @property int $dayOfYear 1 through 366 - * @property int $decadeOfCentury The value of the decade starting from the beginning of the current century - * @property int $decadeOfMillennium The value of the decade starting from the beginning of the current millennium - * @property int $hourOfCentury The value of the hour starting from the beginning of the current century - * @property int $hourOfDay The value of the hour starting from the beginning of the current day - * @property int $hourOfDecade The value of the hour starting from the beginning of the current decade - * @property int $hourOfMillennium The value of the hour starting from the beginning of the current millennium - * @property int $hourOfMonth The value of the hour starting from the beginning of the current month - * @property int $hourOfQuarter The value of the hour starting from the beginning of the current quarter - * @property int $hourOfWeek The value of the hour starting from the beginning of the current week - * @property int $hourOfYear The value of the hour starting from the beginning of the current year - * @property int $microsecondOfCentury The value of the microsecond starting from the beginning of the current century - * @property int $microsecondOfDay The value of the microsecond starting from the beginning of the current day - * @property int $microsecondOfDecade The value of the microsecond starting from the beginning of the current decade - * @property int $microsecondOfHour The value of the microsecond starting from the beginning of the current hour - * @property int $microsecondOfMillennium The value of the microsecond starting from the beginning of the current millennium - * @property int $microsecondOfMillisecond The value of the microsecond starting from the beginning of the current millisecond - * @property int $microsecondOfMinute The value of the microsecond starting from the beginning of the current minute - * @property int $microsecondOfMonth The value of the microsecond starting from the beginning of the current month - * @property int $microsecondOfQuarter The value of the microsecond starting from the beginning of the current quarter - * @property int $microsecondOfSecond The value of the microsecond starting from the beginning of the current second - * @property int $microsecondOfWeek The value of the microsecond starting from the beginning of the current week - * @property int $microsecondOfYear The value of the microsecond starting from the beginning of the current year - * @property int $millisecondOfCentury The value of the millisecond starting from the beginning of the current century - * @property int $millisecondOfDay The value of the millisecond starting from the beginning of the current day - * @property int $millisecondOfDecade The value of the millisecond starting from the beginning of the current decade - * @property int $millisecondOfHour The value of the millisecond starting from the beginning of the current hour - * @property int $millisecondOfMillennium The value of the millisecond starting from the beginning of the current millennium - * @property int $millisecondOfMinute The value of the millisecond starting from the beginning of the current minute - * @property int $millisecondOfMonth The value of the millisecond starting from the beginning of the current month - * @property int $millisecondOfQuarter The value of the millisecond starting from the beginning of the current quarter - * @property int $millisecondOfSecond The value of the millisecond starting from the beginning of the current second - * @property int $millisecondOfWeek The value of the millisecond starting from the beginning of the current week - * @property int $millisecondOfYear The value of the millisecond starting from the beginning of the current year - * @property int $minuteOfCentury The value of the minute starting from the beginning of the current century - * @property int $minuteOfDay The value of the minute starting from the beginning of the current day - * @property int $minuteOfDecade The value of the minute starting from the beginning of the current decade - * @property int $minuteOfHour The value of the minute starting from the beginning of the current hour - * @property int $minuteOfMillennium The value of the minute starting from the beginning of the current millennium - * @property int $minuteOfMonth The value of the minute starting from the beginning of the current month - * @property int $minuteOfQuarter The value of the minute starting from the beginning of the current quarter - * @property int $minuteOfWeek The value of the minute starting from the beginning of the current week - * @property int $minuteOfYear The value of the minute starting from the beginning of the current year - * @property int $monthOfCentury The value of the month starting from the beginning of the current century - * @property int $monthOfDecade The value of the month starting from the beginning of the current decade - * @property int $monthOfMillennium The value of the month starting from the beginning of the current millennium - * @property int $monthOfQuarter The value of the month starting from the beginning of the current quarter - * @property int $monthOfYear The value of the month starting from the beginning of the current year - * @property int $quarterOfCentury The value of the quarter starting from the beginning of the current century - * @property int $quarterOfDecade The value of the quarter starting from the beginning of the current decade - * @property int $quarterOfMillennium The value of the quarter starting from the beginning of the current millennium - * @property int $quarterOfYear The value of the quarter starting from the beginning of the current year - * @property int $secondOfCentury The value of the second starting from the beginning of the current century - * @property int $secondOfDay The value of the second starting from the beginning of the current day - * @property int $secondOfDecade The value of the second starting from the beginning of the current decade - * @property int $secondOfHour The value of the second starting from the beginning of the current hour - * @property int $secondOfMillennium The value of the second starting from the beginning of the current millennium - * @property int $secondOfMinute The value of the second starting from the beginning of the current minute - * @property int $secondOfMonth The value of the second starting from the beginning of the current month - * @property int $secondOfQuarter The value of the second starting from the beginning of the current quarter - * @property int $secondOfWeek The value of the second starting from the beginning of the current week - * @property int $secondOfYear The value of the second starting from the beginning of the current year - * @property int $weekOfCentury The value of the week starting from the beginning of the current century - * @property int $weekOfDecade The value of the week starting from the beginning of the current decade - * @property int $weekOfMillennium The value of the week starting from the beginning of the current millennium - * @property int $weekOfMonth 1 through 5 - * @property int $weekOfQuarter The value of the week starting from the beginning of the current quarter - * @property int $weekOfYear ISO-8601 week number of year, weeks starting on Monday - * @property int $yearOfCentury The value of the year starting from the beginning of the current century - * @property int $yearOfDecade The value of the year starting from the beginning of the current decade - * @property int $yearOfMillennium The value of the year starting from the beginning of the current millennium - * @property-read string $latinMeridiem "am"/"pm" (Ante meridiem or Post meridiem latin lowercase mark) - * @property-read string $latinUpperMeridiem "AM"/"PM" (Ante meridiem or Post meridiem latin uppercase mark) - * @property-read string $timezoneAbbreviatedName the current timezone abbreviated name - * @property-read string $tzAbbrName alias of $timezoneAbbreviatedName - * @property-read string $dayName long name of weekday translated according to Carbon locale, in english if no translation available for current language - * @property-read string $shortDayName short name of weekday translated according to Carbon locale, in english if no translation available for current language - * @property-read string $minDayName very short name of weekday translated according to Carbon locale, in english if no translation available for current language - * @property-read string $monthName long name of month translated according to Carbon locale, in english if no translation available for current language - * @property-read string $shortMonthName short name of month translated according to Carbon locale, in english if no translation available for current language - * @property-read string $meridiem lowercase meridiem mark translated according to Carbon locale, in latin if no translation available for current language - * @property-read string $upperMeridiem uppercase meridiem mark translated according to Carbon locale, in latin if no translation available for current language - * @property-read int $noZeroHour current hour from 1 to 24 - * @property-read int $isoWeeksInYear 51 through 53 - * @property-read int $weekNumberInMonth 1 through 5 - * @property-read int $firstWeekDay 0 through 6 - * @property-read int $lastWeekDay 0 through 6 - * @property-read int $quarter the quarter of this instance, 1 - 4 - * @property-read int $decade the decade of this instance - * @property-read int $century the century of this instance - * @property-read int $millennium the millennium of this instance - * @property-read bool $dst daylight savings time indicator, true if DST, false otherwise - * @property-read bool $local checks if the timezone is local, true if local, false otherwise - * @property-read bool $utc checks if the timezone is UTC, true if UTC, false otherwise - * @property-read string $timezoneName the current timezone name - * @property-read string $tzName alias of $timezoneName - * @property-read string $locale locale of the current instance - * @property-read int $centuriesInMillennium The number of centuries contained in the current millennium - * @property-read int $daysInCentury The number of days contained in the current century - * @property-read int $daysInDecade The number of days contained in the current decade - * @property-read int $daysInMillennium The number of days contained in the current millennium - * @property-read int $daysInMonth number of days in the given month - * @property-read int $daysInQuarter The number of days contained in the current quarter - * @property-read int $daysInWeek The number of days contained in the current week - * @property-read int $daysInYear 365 or 366 - * @property-read int $decadesInCentury The number of decades contained in the current century - * @property-read int $decadesInMillennium The number of decades contained in the current millennium - * @property-read int $hoursInCentury The number of hours contained in the current century - * @property-read int $hoursInDay The number of hours contained in the current day - * @property-read int $hoursInDecade The number of hours contained in the current decade - * @property-read int $hoursInMillennium The number of hours contained in the current millennium - * @property-read int $hoursInMonth The number of hours contained in the current month - * @property-read int $hoursInQuarter The number of hours contained in the current quarter - * @property-read int $hoursInWeek The number of hours contained in the current week - * @property-read int $hoursInYear The number of hours contained in the current year - * @property-read int $microsecondsInCentury The number of microseconds contained in the current century - * @property-read int $microsecondsInDay The number of microseconds contained in the current day - * @property-read int $microsecondsInDecade The number of microseconds contained in the current decade - * @property-read int $microsecondsInHour The number of microseconds contained in the current hour - * @property-read int $microsecondsInMillennium The number of microseconds contained in the current millennium - * @property-read int $microsecondsInMillisecond The number of microseconds contained in the current millisecond - * @property-read int $microsecondsInMinute The number of microseconds contained in the current minute - * @property-read int $microsecondsInMonth The number of microseconds contained in the current month - * @property-read int $microsecondsInQuarter The number of microseconds contained in the current quarter - * @property-read int $microsecondsInSecond The number of microseconds contained in the current second - * @property-read int $microsecondsInWeek The number of microseconds contained in the current week - * @property-read int $microsecondsInYear The number of microseconds contained in the current year - * @property-read int $millisecondsInCentury The number of milliseconds contained in the current century - * @property-read int $millisecondsInDay The number of milliseconds contained in the current day - * @property-read int $millisecondsInDecade The number of milliseconds contained in the current decade - * @property-read int $millisecondsInHour The number of milliseconds contained in the current hour - * @property-read int $millisecondsInMillennium The number of milliseconds contained in the current millennium - * @property-read int $millisecondsInMinute The number of milliseconds contained in the current minute - * @property-read int $millisecondsInMonth The number of milliseconds contained in the current month - * @property-read int $millisecondsInQuarter The number of milliseconds contained in the current quarter - * @property-read int $millisecondsInSecond The number of milliseconds contained in the current second - * @property-read int $millisecondsInWeek The number of milliseconds contained in the current week - * @property-read int $millisecondsInYear The number of milliseconds contained in the current year - * @property-read int $minutesInCentury The number of minutes contained in the current century - * @property-read int $minutesInDay The number of minutes contained in the current day - * @property-read int $minutesInDecade The number of minutes contained in the current decade - * @property-read int $minutesInHour The number of minutes contained in the current hour - * @property-read int $minutesInMillennium The number of minutes contained in the current millennium - * @property-read int $minutesInMonth The number of minutes contained in the current month - * @property-read int $minutesInQuarter The number of minutes contained in the current quarter - * @property-read int $minutesInWeek The number of minutes contained in the current week - * @property-read int $minutesInYear The number of minutes contained in the current year - * @property-read int $monthsInCentury The number of months contained in the current century - * @property-read int $monthsInDecade The number of months contained in the current decade - * @property-read int $monthsInMillennium The number of months contained in the current millennium - * @property-read int $monthsInQuarter The number of months contained in the current quarter - * @property-read int $monthsInYear The number of months contained in the current year - * @property-read int $quartersInCentury The number of quarters contained in the current century - * @property-read int $quartersInDecade The number of quarters contained in the current decade - * @property-read int $quartersInMillennium The number of quarters contained in the current millennium - * @property-read int $quartersInYear The number of quarters contained in the current year - * @property-read int $secondsInCentury The number of seconds contained in the current century - * @property-read int $secondsInDay The number of seconds contained in the current day - * @property-read int $secondsInDecade The number of seconds contained in the current decade - * @property-read int $secondsInHour The number of seconds contained in the current hour - * @property-read int $secondsInMillennium The number of seconds contained in the current millennium - * @property-read int $secondsInMinute The number of seconds contained in the current minute - * @property-read int $secondsInMonth The number of seconds contained in the current month - * @property-read int $secondsInQuarter The number of seconds contained in the current quarter - * @property-read int $secondsInWeek The number of seconds contained in the current week - * @property-read int $secondsInYear The number of seconds contained in the current year - * @property-read int $weeksInCentury The number of weeks contained in the current century - * @property-read int $weeksInDecade The number of weeks contained in the current decade - * @property-read int $weeksInMillennium The number of weeks contained in the current millennium - * @property-read int $weeksInMonth The number of weeks contained in the current month - * @property-read int $weeksInQuarter The number of weeks contained in the current quarter - * @property-read int $weeksInYear 51 through 53 - * @property-read int $yearsInCentury The number of years contained in the current century - * @property-read int $yearsInDecade The number of years contained in the current decade - * @property-read int $yearsInMillennium The number of years contained in the current millennium - * - * @method bool isUtc() Check if the current instance has UTC timezone. (Both isUtc and isUTC cases are valid.) - * @method bool isLocal() Check if the current instance has non-UTC timezone. - * @method bool isValid() Check if the current instance is a valid date. - * @method bool isDST() Check if the current instance is in a daylight saving time. - * @method bool isSunday() Checks if the instance day is sunday. - * @method bool isMonday() Checks if the instance day is monday. - * @method bool isTuesday() Checks if the instance day is tuesday. - * @method bool isWednesday() Checks if the instance day is wednesday. - * @method bool isThursday() Checks if the instance day is thursday. - * @method bool isFriday() Checks if the instance day is friday. - * @method bool isSaturday() Checks if the instance day is saturday. - * @method bool isSameYear(DateTimeInterface|string $date) Checks if the given date is in the same year as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentYear() Checks if the instance is in the same year as the current moment. - * @method bool isNextYear() Checks if the instance is in the same year as the current moment next year. - * @method bool isLastYear() Checks if the instance is in the same year as the current moment last year. - * @method bool isCurrentMonth() Checks if the instance is in the same month as the current moment. - * @method bool isNextMonth() Checks if the instance is in the same month as the current moment next month. - * @method bool isLastMonth() Checks if the instance is in the same month as the current moment last month. - * @method bool isSameWeek(DateTimeInterface|string $date) Checks if the given date is in the same week as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentWeek() Checks if the instance is in the same week as the current moment. - * @method bool isNextWeek() Checks if the instance is in the same week as the current moment next week. - * @method bool isLastWeek() Checks if the instance is in the same week as the current moment last week. - * @method bool isSameDay(DateTimeInterface|string $date) Checks if the given date is in the same day as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentDay() Checks if the instance is in the same day as the current moment. - * @method bool isNextDay() Checks if the instance is in the same day as the current moment next day. - * @method bool isLastDay() Checks if the instance is in the same day as the current moment last day. - * @method bool isSameHour(DateTimeInterface|string $date) Checks if the given date is in the same hour as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentHour() Checks if the instance is in the same hour as the current moment. - * @method bool isNextHour() Checks if the instance is in the same hour as the current moment next hour. - * @method bool isLastHour() Checks if the instance is in the same hour as the current moment last hour. - * @method bool isSameMinute(DateTimeInterface|string $date) Checks if the given date is in the same minute as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentMinute() Checks if the instance is in the same minute as the current moment. - * @method bool isNextMinute() Checks if the instance is in the same minute as the current moment next minute. - * @method bool isLastMinute() Checks if the instance is in the same minute as the current moment last minute. - * @method bool isSameSecond(DateTimeInterface|string $date) Checks if the given date is in the same second as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentSecond() Checks if the instance is in the same second as the current moment. - * @method bool isNextSecond() Checks if the instance is in the same second as the current moment next second. - * @method bool isLastSecond() Checks if the instance is in the same second as the current moment last second. - * @method bool isSameMilli(DateTimeInterface|string $date) Checks if the given date is in the same millisecond as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentMilli() Checks if the instance is in the same millisecond as the current moment. - * @method bool isNextMilli() Checks if the instance is in the same millisecond as the current moment next millisecond. - * @method bool isLastMilli() Checks if the instance is in the same millisecond as the current moment last millisecond. - * @method bool isSameMillisecond(DateTimeInterface|string $date) Checks if the given date is in the same millisecond as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentMillisecond() Checks if the instance is in the same millisecond as the current moment. - * @method bool isNextMillisecond() Checks if the instance is in the same millisecond as the current moment next millisecond. - * @method bool isLastMillisecond() Checks if the instance is in the same millisecond as the current moment last millisecond. - * @method bool isSameMicro(DateTimeInterface|string $date) Checks if the given date is in the same microsecond as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentMicro() Checks if the instance is in the same microsecond as the current moment. - * @method bool isNextMicro() Checks if the instance is in the same microsecond as the current moment next microsecond. - * @method bool isLastMicro() Checks if the instance is in the same microsecond as the current moment last microsecond. - * @method bool isSameMicrosecond(DateTimeInterface|string $date) Checks if the given date is in the same microsecond as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentMicrosecond() Checks if the instance is in the same microsecond as the current moment. - * @method bool isNextMicrosecond() Checks if the instance is in the same microsecond as the current moment next microsecond. - * @method bool isLastMicrosecond() Checks if the instance is in the same microsecond as the current moment last microsecond. - * @method bool isSameDecade(DateTimeInterface|string $date) Checks if the given date is in the same decade as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentDecade() Checks if the instance is in the same decade as the current moment. - * @method bool isNextDecade() Checks if the instance is in the same decade as the current moment next decade. - * @method bool isLastDecade() Checks if the instance is in the same decade as the current moment last decade. - * @method bool isSameCentury(DateTimeInterface|string $date) Checks if the given date is in the same century as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentCentury() Checks if the instance is in the same century as the current moment. - * @method bool isNextCentury() Checks if the instance is in the same century as the current moment next century. - * @method bool isLastCentury() Checks if the instance is in the same century as the current moment last century. - * @method bool isSameMillennium(DateTimeInterface|string $date) Checks if the given date is in the same millennium as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentMillennium() Checks if the instance is in the same millennium as the current moment. - * @method bool isNextMillennium() Checks if the instance is in the same millennium as the current moment next millennium. - * @method bool isLastMillennium() Checks if the instance is in the same millennium as the current moment last millennium. - * @method bool isCurrentQuarter() Checks if the instance is in the same quarter as the current moment. - * @method bool isNextQuarter() Checks if the instance is in the same quarter as the current moment next quarter. - * @method bool isLastQuarter() Checks if the instance is in the same quarter as the current moment last quarter. - * @method CarbonInterface years(int $value) Set current instance year to the given value. - * @method CarbonInterface year(int $value) Set current instance year to the given value. - * @method CarbonInterface setYears(int $value) Set current instance year to the given value. - * @method CarbonInterface setYear(int $value) Set current instance year to the given value. - * @method CarbonInterface months(Month|int $value) Set current instance month to the given value. - * @method CarbonInterface month(Month|int $value) Set current instance month to the given value. - * @method CarbonInterface setMonths(Month|int $value) Set current instance month to the given value. - * @method CarbonInterface setMonth(Month|int $value) Set current instance month to the given value. - * @method CarbonInterface days(int $value) Set current instance day to the given value. - * @method CarbonInterface day(int $value) Set current instance day to the given value. - * @method CarbonInterface setDays(int $value) Set current instance day to the given value. - * @method CarbonInterface setDay(int $value) Set current instance day to the given value. - * @method CarbonInterface hours(int $value) Set current instance hour to the given value. - * @method CarbonInterface hour(int $value) Set current instance hour to the given value. - * @method CarbonInterface setHours(int $value) Set current instance hour to the given value. - * @method CarbonInterface setHour(int $value) Set current instance hour to the given value. - * @method CarbonInterface minutes(int $value) Set current instance minute to the given value. - * @method CarbonInterface minute(int $value) Set current instance minute to the given value. - * @method CarbonInterface setMinutes(int $value) Set current instance minute to the given value. - * @method CarbonInterface setMinute(int $value) Set current instance minute to the given value. - * @method CarbonInterface seconds(int $value) Set current instance second to the given value. - * @method CarbonInterface second(int $value) Set current instance second to the given value. - * @method CarbonInterface setSeconds(int $value) Set current instance second to the given value. - * @method CarbonInterface setSecond(int $value) Set current instance second to the given value. - * @method CarbonInterface millis(int $value) Set current instance millisecond to the given value. - * @method CarbonInterface milli(int $value) Set current instance millisecond to the given value. - * @method CarbonInterface setMillis(int $value) Set current instance millisecond to the given value. - * @method CarbonInterface setMilli(int $value) Set current instance millisecond to the given value. - * @method CarbonInterface milliseconds(int $value) Set current instance millisecond to the given value. - * @method CarbonInterface millisecond(int $value) Set current instance millisecond to the given value. - * @method CarbonInterface setMilliseconds(int $value) Set current instance millisecond to the given value. - * @method CarbonInterface setMillisecond(int $value) Set current instance millisecond to the given value. - * @method CarbonInterface micros(int $value) Set current instance microsecond to the given value. - * @method CarbonInterface micro(int $value) Set current instance microsecond to the given value. - * @method CarbonInterface setMicros(int $value) Set current instance microsecond to the given value. - * @method CarbonInterface setMicro(int $value) Set current instance microsecond to the given value. - * @method CarbonInterface microseconds(int $value) Set current instance microsecond to the given value. - * @method CarbonInterface microsecond(int $value) Set current instance microsecond to the given value. - * @method CarbonInterface setMicroseconds(int $value) Set current instance microsecond to the given value. - * @method CarbonInterface setMicrosecond(int $value) Set current instance microsecond to the given value. - * @method CarbonInterface addYears(int|float $value = 1) Add years (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface addYear() Add one year to the instance (using date interval). - * @method CarbonInterface subYears(int|float $value = 1) Sub years (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface subYear() Sub one year to the instance (using date interval). - * @method CarbonInterface addYearsWithOverflow(int|float $value = 1) Add years (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface addYearWithOverflow() Add one year to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface subYearsWithOverflow(int|float $value = 1) Sub years (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface subYearWithOverflow() Sub one year to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface addYearsWithoutOverflow(int|float $value = 1) Add years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addYearWithoutOverflow() Add one year to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subYearsWithoutOverflow(int|float $value = 1) Sub years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subYearWithoutOverflow() Sub one year to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addYearsWithNoOverflow(int|float $value = 1) Add years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addYearWithNoOverflow() Add one year to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subYearsWithNoOverflow(int|float $value = 1) Sub years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subYearWithNoOverflow() Sub one year to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addYearsNoOverflow(int|float $value = 1) Add years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addYearNoOverflow() Add one year to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subYearsNoOverflow(int|float $value = 1) Sub years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subYearNoOverflow() Sub one year to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addMonths(int|float $value = 1) Add months (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface addMonth() Add one month to the instance (using date interval). - * @method CarbonInterface subMonths(int|float $value = 1) Sub months (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface subMonth() Sub one month to the instance (using date interval). - * @method CarbonInterface addMonthsWithOverflow(int|float $value = 1) Add months (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface addMonthWithOverflow() Add one month to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface subMonthsWithOverflow(int|float $value = 1) Sub months (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface subMonthWithOverflow() Sub one month to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface addMonthsWithoutOverflow(int|float $value = 1) Add months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addMonthWithoutOverflow() Add one month to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subMonthsWithoutOverflow(int|float $value = 1) Sub months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subMonthWithoutOverflow() Sub one month to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addMonthsWithNoOverflow(int|float $value = 1) Add months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addMonthWithNoOverflow() Add one month to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subMonthsWithNoOverflow(int|float $value = 1) Sub months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subMonthWithNoOverflow() Sub one month to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addMonthsNoOverflow(int|float $value = 1) Add months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addMonthNoOverflow() Add one month to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subMonthsNoOverflow(int|float $value = 1) Sub months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subMonthNoOverflow() Sub one month to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addDays(int|float $value = 1) Add days (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface addDay() Add one day to the instance (using date interval). - * @method CarbonInterface subDays(int|float $value = 1) Sub days (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface subDay() Sub one day to the instance (using date interval). - * @method CarbonInterface addHours(int|float $value = 1) Add hours (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface addHour() Add one hour to the instance (using date interval). - * @method CarbonInterface subHours(int|float $value = 1) Sub hours (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface subHour() Sub one hour to the instance (using date interval). - * @method CarbonInterface addMinutes(int|float $value = 1) Add minutes (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface addMinute() Add one minute to the instance (using date interval). - * @method CarbonInterface subMinutes(int|float $value = 1) Sub minutes (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface subMinute() Sub one minute to the instance (using date interval). - * @method CarbonInterface addSeconds(int|float $value = 1) Add seconds (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface addSecond() Add one second to the instance (using date interval). - * @method CarbonInterface subSeconds(int|float $value = 1) Sub seconds (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface subSecond() Sub one second to the instance (using date interval). - * @method CarbonInterface addMillis(int|float $value = 1) Add milliseconds (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface addMilli() Add one millisecond to the instance (using date interval). - * @method CarbonInterface subMillis(int|float $value = 1) Sub milliseconds (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface subMilli() Sub one millisecond to the instance (using date interval). - * @method CarbonInterface addMilliseconds(int|float $value = 1) Add milliseconds (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface addMillisecond() Add one millisecond to the instance (using date interval). - * @method CarbonInterface subMilliseconds(int|float $value = 1) Sub milliseconds (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface subMillisecond() Sub one millisecond to the instance (using date interval). - * @method CarbonInterface addMicros(int|float $value = 1) Add microseconds (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface addMicro() Add one microsecond to the instance (using date interval). - * @method CarbonInterface subMicros(int|float $value = 1) Sub microseconds (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface subMicro() Sub one microsecond to the instance (using date interval). - * @method CarbonInterface addMicroseconds(int|float $value = 1) Add microseconds (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface addMicrosecond() Add one microsecond to the instance (using date interval). - * @method CarbonInterface subMicroseconds(int|float $value = 1) Sub microseconds (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface subMicrosecond() Sub one microsecond to the instance (using date interval). - * @method CarbonInterface addMillennia(int|float $value = 1) Add millennia (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface addMillennium() Add one millennium to the instance (using date interval). - * @method CarbonInterface subMillennia(int|float $value = 1) Sub millennia (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface subMillennium() Sub one millennium to the instance (using date interval). - * @method CarbonInterface addMillenniaWithOverflow(int|float $value = 1) Add millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface addMillenniumWithOverflow() Add one millennium to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface subMillenniaWithOverflow(int|float $value = 1) Sub millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface subMillenniumWithOverflow() Sub one millennium to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface addMillenniaWithoutOverflow(int|float $value = 1) Add millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addMillenniumWithoutOverflow() Add one millennium to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subMillenniaWithoutOverflow(int|float $value = 1) Sub millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subMillenniumWithoutOverflow() Sub one millennium to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addMillenniaWithNoOverflow(int|float $value = 1) Add millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addMillenniumWithNoOverflow() Add one millennium to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subMillenniaWithNoOverflow(int|float $value = 1) Sub millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subMillenniumWithNoOverflow() Sub one millennium to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addMillenniaNoOverflow(int|float $value = 1) Add millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addMillenniumNoOverflow() Add one millennium to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subMillenniaNoOverflow(int|float $value = 1) Sub millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subMillenniumNoOverflow() Sub one millennium to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addCenturies(int|float $value = 1) Add centuries (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface addCentury() Add one century to the instance (using date interval). - * @method CarbonInterface subCenturies(int|float $value = 1) Sub centuries (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface subCentury() Sub one century to the instance (using date interval). - * @method CarbonInterface addCenturiesWithOverflow(int|float $value = 1) Add centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface addCenturyWithOverflow() Add one century to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface subCenturiesWithOverflow(int|float $value = 1) Sub centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface subCenturyWithOverflow() Sub one century to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface addCenturiesWithoutOverflow(int|float $value = 1) Add centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addCenturyWithoutOverflow() Add one century to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subCenturiesWithoutOverflow(int|float $value = 1) Sub centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subCenturyWithoutOverflow() Sub one century to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addCenturiesWithNoOverflow(int|float $value = 1) Add centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addCenturyWithNoOverflow() Add one century to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subCenturiesWithNoOverflow(int|float $value = 1) Sub centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subCenturyWithNoOverflow() Sub one century to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addCenturiesNoOverflow(int|float $value = 1) Add centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addCenturyNoOverflow() Add one century to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subCenturiesNoOverflow(int|float $value = 1) Sub centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subCenturyNoOverflow() Sub one century to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addDecades(int|float $value = 1) Add decades (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface addDecade() Add one decade to the instance (using date interval). - * @method CarbonInterface subDecades(int|float $value = 1) Sub decades (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface subDecade() Sub one decade to the instance (using date interval). - * @method CarbonInterface addDecadesWithOverflow(int|float $value = 1) Add decades (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface addDecadeWithOverflow() Add one decade to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface subDecadesWithOverflow(int|float $value = 1) Sub decades (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface subDecadeWithOverflow() Sub one decade to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface addDecadesWithoutOverflow(int|float $value = 1) Add decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addDecadeWithoutOverflow() Add one decade to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subDecadesWithoutOverflow(int|float $value = 1) Sub decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subDecadeWithoutOverflow() Sub one decade to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addDecadesWithNoOverflow(int|float $value = 1) Add decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addDecadeWithNoOverflow() Add one decade to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subDecadesWithNoOverflow(int|float $value = 1) Sub decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subDecadeWithNoOverflow() Sub one decade to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addDecadesNoOverflow(int|float $value = 1) Add decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addDecadeNoOverflow() Add one decade to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subDecadesNoOverflow(int|float $value = 1) Sub decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subDecadeNoOverflow() Sub one decade to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addQuarters(int|float $value = 1) Add quarters (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface addQuarter() Add one quarter to the instance (using date interval). - * @method CarbonInterface subQuarters(int|float $value = 1) Sub quarters (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface subQuarter() Sub one quarter to the instance (using date interval). - * @method CarbonInterface addQuartersWithOverflow(int|float $value = 1) Add quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface addQuarterWithOverflow() Add one quarter to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface subQuartersWithOverflow(int|float $value = 1) Sub quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface subQuarterWithOverflow() Sub one quarter to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface addQuartersWithoutOverflow(int|float $value = 1) Add quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addQuarterWithoutOverflow() Add one quarter to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subQuartersWithoutOverflow(int|float $value = 1) Sub quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subQuarterWithoutOverflow() Sub one quarter to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addQuartersWithNoOverflow(int|float $value = 1) Add quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addQuarterWithNoOverflow() Add one quarter to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subQuartersWithNoOverflow(int|float $value = 1) Sub quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subQuarterWithNoOverflow() Sub one quarter to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addQuartersNoOverflow(int|float $value = 1) Add quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addQuarterNoOverflow() Add one quarter to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subQuartersNoOverflow(int|float $value = 1) Sub quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subQuarterNoOverflow() Sub one quarter to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addWeeks(int|float $value = 1) Add weeks (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface addWeek() Add one week to the instance (using date interval). - * @method CarbonInterface subWeeks(int|float $value = 1) Sub weeks (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface subWeek() Sub one week to the instance (using date interval). - * @method CarbonInterface addWeekdays(int|float $value = 1) Add weekdays (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface addWeekday() Add one weekday to the instance (using date interval). - * @method CarbonInterface subWeekdays(int|float $value = 1) Sub weekdays (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface subWeekday() Sub one weekday to the instance (using date interval). - * @method CarbonInterface addUTCMicros(int|float $value = 1) Add microseconds (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface addUTCMicro() Add one microsecond to the instance (using timestamp). - * @method CarbonInterface subUTCMicros(int|float $value = 1) Sub microseconds (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface subUTCMicro() Sub one microsecond to the instance (using timestamp). - * @method CarbonPeriod microsUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each microsecond or every X microseconds if a factor is given. - * @method float diffInUTCMicros(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of microseconds. - * @method CarbonInterface addUTCMicroseconds(int|float $value = 1) Add microseconds (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface addUTCMicrosecond() Add one microsecond to the instance (using timestamp). - * @method CarbonInterface subUTCMicroseconds(int|float $value = 1) Sub microseconds (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface subUTCMicrosecond() Sub one microsecond to the instance (using timestamp). - * @method CarbonPeriod microsecondsUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each microsecond or every X microseconds if a factor is given. - * @method float diffInUTCMicroseconds(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of microseconds. - * @method CarbonInterface addUTCMillis(int|float $value = 1) Add milliseconds (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface addUTCMilli() Add one millisecond to the instance (using timestamp). - * @method CarbonInterface subUTCMillis(int|float $value = 1) Sub milliseconds (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface subUTCMilli() Sub one millisecond to the instance (using timestamp). - * @method CarbonPeriod millisUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each millisecond or every X milliseconds if a factor is given. - * @method float diffInUTCMillis(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of milliseconds. - * @method CarbonInterface addUTCMilliseconds(int|float $value = 1) Add milliseconds (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface addUTCMillisecond() Add one millisecond to the instance (using timestamp). - * @method CarbonInterface subUTCMilliseconds(int|float $value = 1) Sub milliseconds (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface subUTCMillisecond() Sub one millisecond to the instance (using timestamp). - * @method CarbonPeriod millisecondsUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each millisecond or every X milliseconds if a factor is given. - * @method float diffInUTCMilliseconds(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of milliseconds. - * @method CarbonInterface addUTCSeconds(int|float $value = 1) Add seconds (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface addUTCSecond() Add one second to the instance (using timestamp). - * @method CarbonInterface subUTCSeconds(int|float $value = 1) Sub seconds (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface subUTCSecond() Sub one second to the instance (using timestamp). - * @method CarbonPeriod secondsUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each second or every X seconds if a factor is given. - * @method float diffInUTCSeconds(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of seconds. - * @method CarbonInterface addUTCMinutes(int|float $value = 1) Add minutes (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface addUTCMinute() Add one minute to the instance (using timestamp). - * @method CarbonInterface subUTCMinutes(int|float $value = 1) Sub minutes (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface subUTCMinute() Sub one minute to the instance (using timestamp). - * @method CarbonPeriod minutesUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each minute or every X minutes if a factor is given. - * @method float diffInUTCMinutes(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of minutes. - * @method CarbonInterface addUTCHours(int|float $value = 1) Add hours (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface addUTCHour() Add one hour to the instance (using timestamp). - * @method CarbonInterface subUTCHours(int|float $value = 1) Sub hours (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface subUTCHour() Sub one hour to the instance (using timestamp). - * @method CarbonPeriod hoursUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each hour or every X hours if a factor is given. - * @method float diffInUTCHours(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of hours. - * @method CarbonInterface addUTCDays(int|float $value = 1) Add days (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface addUTCDay() Add one day to the instance (using timestamp). - * @method CarbonInterface subUTCDays(int|float $value = 1) Sub days (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface subUTCDay() Sub one day to the instance (using timestamp). - * @method CarbonPeriod daysUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each day or every X days if a factor is given. - * @method float diffInUTCDays(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of days. - * @method CarbonInterface addUTCWeeks(int|float $value = 1) Add weeks (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface addUTCWeek() Add one week to the instance (using timestamp). - * @method CarbonInterface subUTCWeeks(int|float $value = 1) Sub weeks (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface subUTCWeek() Sub one week to the instance (using timestamp). - * @method CarbonPeriod weeksUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each week or every X weeks if a factor is given. - * @method float diffInUTCWeeks(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of weeks. - * @method CarbonInterface addUTCMonths(int|float $value = 1) Add months (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface addUTCMonth() Add one month to the instance (using timestamp). - * @method CarbonInterface subUTCMonths(int|float $value = 1) Sub months (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface subUTCMonth() Sub one month to the instance (using timestamp). - * @method CarbonPeriod monthsUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each month or every X months if a factor is given. - * @method float diffInUTCMonths(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of months. - * @method CarbonInterface addUTCQuarters(int|float $value = 1) Add quarters (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface addUTCQuarter() Add one quarter to the instance (using timestamp). - * @method CarbonInterface subUTCQuarters(int|float $value = 1) Sub quarters (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface subUTCQuarter() Sub one quarter to the instance (using timestamp). - * @method CarbonPeriod quartersUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each quarter or every X quarters if a factor is given. - * @method float diffInUTCQuarters(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of quarters. - * @method CarbonInterface addUTCYears(int|float $value = 1) Add years (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface addUTCYear() Add one year to the instance (using timestamp). - * @method CarbonInterface subUTCYears(int|float $value = 1) Sub years (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface subUTCYear() Sub one year to the instance (using timestamp). - * @method CarbonPeriod yearsUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each year or every X years if a factor is given. - * @method float diffInUTCYears(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of years. - * @method CarbonInterface addUTCDecades(int|float $value = 1) Add decades (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface addUTCDecade() Add one decade to the instance (using timestamp). - * @method CarbonInterface subUTCDecades(int|float $value = 1) Sub decades (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface subUTCDecade() Sub one decade to the instance (using timestamp). - * @method CarbonPeriod decadesUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each decade or every X decades if a factor is given. - * @method float diffInUTCDecades(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of decades. - * @method CarbonInterface addUTCCenturies(int|float $value = 1) Add centuries (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface addUTCCentury() Add one century to the instance (using timestamp). - * @method CarbonInterface subUTCCenturies(int|float $value = 1) Sub centuries (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface subUTCCentury() Sub one century to the instance (using timestamp). - * @method CarbonPeriod centuriesUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each century or every X centuries if a factor is given. - * @method float diffInUTCCenturies(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of centuries. - * @method CarbonInterface addUTCMillennia(int|float $value = 1) Add millennia (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface addUTCMillennium() Add one millennium to the instance (using timestamp). - * @method CarbonInterface subUTCMillennia(int|float $value = 1) Sub millennia (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface subUTCMillennium() Sub one millennium to the instance (using timestamp). - * @method CarbonPeriod millenniaUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each millennium or every X millennia if a factor is given. - * @method float diffInUTCMillennia(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of millennia. - * @method CarbonInterface roundYear(float $precision = 1, string $function = "round") Round the current instance year with given precision using the given function. - * @method CarbonInterface roundYears(float $precision = 1, string $function = "round") Round the current instance year with given precision using the given function. - * @method CarbonInterface floorYear(float $precision = 1) Truncate the current instance year with given precision. - * @method CarbonInterface floorYears(float $precision = 1) Truncate the current instance year with given precision. - * @method CarbonInterface ceilYear(float $precision = 1) Ceil the current instance year with given precision. - * @method CarbonInterface ceilYears(float $precision = 1) Ceil the current instance year with given precision. - * @method CarbonInterface roundMonth(float $precision = 1, string $function = "round") Round the current instance month with given precision using the given function. - * @method CarbonInterface roundMonths(float $precision = 1, string $function = "round") Round the current instance month with given precision using the given function. - * @method CarbonInterface floorMonth(float $precision = 1) Truncate the current instance month with given precision. - * @method CarbonInterface floorMonths(float $precision = 1) Truncate the current instance month with given precision. - * @method CarbonInterface ceilMonth(float $precision = 1) Ceil the current instance month with given precision. - * @method CarbonInterface ceilMonths(float $precision = 1) Ceil the current instance month with given precision. - * @method CarbonInterface roundDay(float $precision = 1, string $function = "round") Round the current instance day with given precision using the given function. - * @method CarbonInterface roundDays(float $precision = 1, string $function = "round") Round the current instance day with given precision using the given function. - * @method CarbonInterface floorDay(float $precision = 1) Truncate the current instance day with given precision. - * @method CarbonInterface floorDays(float $precision = 1) Truncate the current instance day with given precision. - * @method CarbonInterface ceilDay(float $precision = 1) Ceil the current instance day with given precision. - * @method CarbonInterface ceilDays(float $precision = 1) Ceil the current instance day with given precision. - * @method CarbonInterface roundHour(float $precision = 1, string $function = "round") Round the current instance hour with given precision using the given function. - * @method CarbonInterface roundHours(float $precision = 1, string $function = "round") Round the current instance hour with given precision using the given function. - * @method CarbonInterface floorHour(float $precision = 1) Truncate the current instance hour with given precision. - * @method CarbonInterface floorHours(float $precision = 1) Truncate the current instance hour with given precision. - * @method CarbonInterface ceilHour(float $precision = 1) Ceil the current instance hour with given precision. - * @method CarbonInterface ceilHours(float $precision = 1) Ceil the current instance hour with given precision. - * @method CarbonInterface roundMinute(float $precision = 1, string $function = "round") Round the current instance minute with given precision using the given function. - * @method CarbonInterface roundMinutes(float $precision = 1, string $function = "round") Round the current instance minute with given precision using the given function. - * @method CarbonInterface floorMinute(float $precision = 1) Truncate the current instance minute with given precision. - * @method CarbonInterface floorMinutes(float $precision = 1) Truncate the current instance minute with given precision. - * @method CarbonInterface ceilMinute(float $precision = 1) Ceil the current instance minute with given precision. - * @method CarbonInterface ceilMinutes(float $precision = 1) Ceil the current instance minute with given precision. - * @method CarbonInterface roundSecond(float $precision = 1, string $function = "round") Round the current instance second with given precision using the given function. - * @method CarbonInterface roundSeconds(float $precision = 1, string $function = "round") Round the current instance second with given precision using the given function. - * @method CarbonInterface floorSecond(float $precision = 1) Truncate the current instance second with given precision. - * @method CarbonInterface floorSeconds(float $precision = 1) Truncate the current instance second with given precision. - * @method CarbonInterface ceilSecond(float $precision = 1) Ceil the current instance second with given precision. - * @method CarbonInterface ceilSeconds(float $precision = 1) Ceil the current instance second with given precision. - * @method CarbonInterface roundMillennium(float $precision = 1, string $function = "round") Round the current instance millennium with given precision using the given function. - * @method CarbonInterface roundMillennia(float $precision = 1, string $function = "round") Round the current instance millennium with given precision using the given function. - * @method CarbonInterface floorMillennium(float $precision = 1) Truncate the current instance millennium with given precision. - * @method CarbonInterface floorMillennia(float $precision = 1) Truncate the current instance millennium with given precision. - * @method CarbonInterface ceilMillennium(float $precision = 1) Ceil the current instance millennium with given precision. - * @method CarbonInterface ceilMillennia(float $precision = 1) Ceil the current instance millennium with given precision. - * @method CarbonInterface roundCentury(float $precision = 1, string $function = "round") Round the current instance century with given precision using the given function. - * @method CarbonInterface roundCenturies(float $precision = 1, string $function = "round") Round the current instance century with given precision using the given function. - * @method CarbonInterface floorCentury(float $precision = 1) Truncate the current instance century with given precision. - * @method CarbonInterface floorCenturies(float $precision = 1) Truncate the current instance century with given precision. - * @method CarbonInterface ceilCentury(float $precision = 1) Ceil the current instance century with given precision. - * @method CarbonInterface ceilCenturies(float $precision = 1) Ceil the current instance century with given precision. - * @method CarbonInterface roundDecade(float $precision = 1, string $function = "round") Round the current instance decade with given precision using the given function. - * @method CarbonInterface roundDecades(float $precision = 1, string $function = "round") Round the current instance decade with given precision using the given function. - * @method CarbonInterface floorDecade(float $precision = 1) Truncate the current instance decade with given precision. - * @method CarbonInterface floorDecades(float $precision = 1) Truncate the current instance decade with given precision. - * @method CarbonInterface ceilDecade(float $precision = 1) Ceil the current instance decade with given precision. - * @method CarbonInterface ceilDecades(float $precision = 1) Ceil the current instance decade with given precision. - * @method CarbonInterface roundQuarter(float $precision = 1, string $function = "round") Round the current instance quarter with given precision using the given function. - * @method CarbonInterface roundQuarters(float $precision = 1, string $function = "round") Round the current instance quarter with given precision using the given function. - * @method CarbonInterface floorQuarter(float $precision = 1) Truncate the current instance quarter with given precision. - * @method CarbonInterface floorQuarters(float $precision = 1) Truncate the current instance quarter with given precision. - * @method CarbonInterface ceilQuarter(float $precision = 1) Ceil the current instance quarter with given precision. - * @method CarbonInterface ceilQuarters(float $precision = 1) Ceil the current instance quarter with given precision. - * @method CarbonInterface roundMillisecond(float $precision = 1, string $function = "round") Round the current instance millisecond with given precision using the given function. - * @method CarbonInterface roundMilliseconds(float $precision = 1, string $function = "round") Round the current instance millisecond with given precision using the given function. - * @method CarbonInterface floorMillisecond(float $precision = 1) Truncate the current instance millisecond with given precision. - * @method CarbonInterface floorMilliseconds(float $precision = 1) Truncate the current instance millisecond with given precision. - * @method CarbonInterface ceilMillisecond(float $precision = 1) Ceil the current instance millisecond with given precision. - * @method CarbonInterface ceilMilliseconds(float $precision = 1) Ceil the current instance millisecond with given precision. - * @method CarbonInterface roundMicrosecond(float $precision = 1, string $function = "round") Round the current instance microsecond with given precision using the given function. - * @method CarbonInterface roundMicroseconds(float $precision = 1, string $function = "round") Round the current instance microsecond with given precision using the given function. - * @method CarbonInterface floorMicrosecond(float $precision = 1) Truncate the current instance microsecond with given precision. - * @method CarbonInterface floorMicroseconds(float $precision = 1) Truncate the current instance microsecond with given precision. - * @method CarbonInterface ceilMicrosecond(float $precision = 1) Ceil the current instance microsecond with given precision. - * @method CarbonInterface ceilMicroseconds(float $precision = 1) Ceil the current instance microsecond with given precision. - * @method string shortAbsoluteDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (short format, 'Absolute' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) - * @method string longAbsoluteDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (long format, 'Absolute' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) - * @method string shortRelativeDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (short format, 'Relative' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) - * @method string longRelativeDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (long format, 'Relative' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) - * @method string shortRelativeToNowDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (short format, 'RelativeToNow' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) - * @method string longRelativeToNowDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (long format, 'RelativeToNow' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) - * @method string shortRelativeToOtherDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (short format, 'RelativeToOther' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) - * @method string longRelativeToOtherDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (long format, 'RelativeToOther' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) - * @method int centuriesInMillennium() Return the number of centuries contained in the current millennium - * @method int|static centuryOfMillennium(?int $century = null) Return the value of the century starting from the beginning of the current millennium when called with no parameters, change the current century when called with an integer value - * @method int|static dayOfCentury(?int $day = null) Return the value of the day starting from the beginning of the current century when called with no parameters, change the current day when called with an integer value - * @method int|static dayOfDecade(?int $day = null) Return the value of the day starting from the beginning of the current decade when called with no parameters, change the current day when called with an integer value - * @method int|static dayOfMillennium(?int $day = null) Return the value of the day starting from the beginning of the current millennium when called with no parameters, change the current day when called with an integer value - * @method int|static dayOfMonth(?int $day = null) Return the value of the day starting from the beginning of the current month when called with no parameters, change the current day when called with an integer value - * @method int|static dayOfQuarter(?int $day = null) Return the value of the day starting from the beginning of the current quarter when called with no parameters, change the current day when called with an integer value - * @method int|static dayOfWeek(?int $day = null) Return the value of the day starting from the beginning of the current week when called with no parameters, change the current day when called with an integer value - * @method int daysInCentury() Return the number of days contained in the current century - * @method int daysInDecade() Return the number of days contained in the current decade - * @method int daysInMillennium() Return the number of days contained in the current millennium - * @method int daysInMonth() Return the number of days contained in the current month - * @method int daysInQuarter() Return the number of days contained in the current quarter - * @method int daysInWeek() Return the number of days contained in the current week - * @method int daysInYear() Return the number of days contained in the current year - * @method int|static decadeOfCentury(?int $decade = null) Return the value of the decade starting from the beginning of the current century when called with no parameters, change the current decade when called with an integer value - * @method int|static decadeOfMillennium(?int $decade = null) Return the value of the decade starting from the beginning of the current millennium when called with no parameters, change the current decade when called with an integer value - * @method int decadesInCentury() Return the number of decades contained in the current century - * @method int decadesInMillennium() Return the number of decades contained in the current millennium - * @method int|static hourOfCentury(?int $hour = null) Return the value of the hour starting from the beginning of the current century when called with no parameters, change the current hour when called with an integer value - * @method int|static hourOfDay(?int $hour = null) Return the value of the hour starting from the beginning of the current day when called with no parameters, change the current hour when called with an integer value - * @method int|static hourOfDecade(?int $hour = null) Return the value of the hour starting from the beginning of the current decade when called with no parameters, change the current hour when called with an integer value - * @method int|static hourOfMillennium(?int $hour = null) Return the value of the hour starting from the beginning of the current millennium when called with no parameters, change the current hour when called with an integer value - * @method int|static hourOfMonth(?int $hour = null) Return the value of the hour starting from the beginning of the current month when called with no parameters, change the current hour when called with an integer value - * @method int|static hourOfQuarter(?int $hour = null) Return the value of the hour starting from the beginning of the current quarter when called with no parameters, change the current hour when called with an integer value - * @method int|static hourOfWeek(?int $hour = null) Return the value of the hour starting from the beginning of the current week when called with no parameters, change the current hour when called with an integer value - * @method int|static hourOfYear(?int $hour = null) Return the value of the hour starting from the beginning of the current year when called with no parameters, change the current hour when called with an integer value - * @method int hoursInCentury() Return the number of hours contained in the current century - * @method int hoursInDay() Return the number of hours contained in the current day - * @method int hoursInDecade() Return the number of hours contained in the current decade - * @method int hoursInMillennium() Return the number of hours contained in the current millennium - * @method int hoursInMonth() Return the number of hours contained in the current month - * @method int hoursInQuarter() Return the number of hours contained in the current quarter - * @method int hoursInWeek() Return the number of hours contained in the current week - * @method int hoursInYear() Return the number of hours contained in the current year - * @method int|static microsecondOfCentury(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current century when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfDay(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current day when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfDecade(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current decade when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfHour(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current hour when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfMillennium(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current millennium when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfMillisecond(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current millisecond when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfMinute(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current minute when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfMonth(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current month when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfQuarter(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current quarter when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfSecond(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current second when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfWeek(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current week when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfYear(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current year when called with no parameters, change the current microsecond when called with an integer value - * @method int microsecondsInCentury() Return the number of microseconds contained in the current century - * @method int microsecondsInDay() Return the number of microseconds contained in the current day - * @method int microsecondsInDecade() Return the number of microseconds contained in the current decade - * @method int microsecondsInHour() Return the number of microseconds contained in the current hour - * @method int microsecondsInMillennium() Return the number of microseconds contained in the current millennium - * @method int microsecondsInMillisecond() Return the number of microseconds contained in the current millisecond - * @method int microsecondsInMinute() Return the number of microseconds contained in the current minute - * @method int microsecondsInMonth() Return the number of microseconds contained in the current month - * @method int microsecondsInQuarter() Return the number of microseconds contained in the current quarter - * @method int microsecondsInSecond() Return the number of microseconds contained in the current second - * @method int microsecondsInWeek() Return the number of microseconds contained in the current week - * @method int microsecondsInYear() Return the number of microseconds contained in the current year - * @method int|static millisecondOfCentury(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current century when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfDay(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current day when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfDecade(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current decade when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfHour(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current hour when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfMillennium(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current millennium when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfMinute(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current minute when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfMonth(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current month when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfQuarter(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current quarter when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfSecond(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current second when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfWeek(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current week when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfYear(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current year when called with no parameters, change the current millisecond when called with an integer value - * @method int millisecondsInCentury() Return the number of milliseconds contained in the current century - * @method int millisecondsInDay() Return the number of milliseconds contained in the current day - * @method int millisecondsInDecade() Return the number of milliseconds contained in the current decade - * @method int millisecondsInHour() Return the number of milliseconds contained in the current hour - * @method int millisecondsInMillennium() Return the number of milliseconds contained in the current millennium - * @method int millisecondsInMinute() Return the number of milliseconds contained in the current minute - * @method int millisecondsInMonth() Return the number of milliseconds contained in the current month - * @method int millisecondsInQuarter() Return the number of milliseconds contained in the current quarter - * @method int millisecondsInSecond() Return the number of milliseconds contained in the current second - * @method int millisecondsInWeek() Return the number of milliseconds contained in the current week - * @method int millisecondsInYear() Return the number of milliseconds contained in the current year - * @method int|static minuteOfCentury(?int $minute = null) Return the value of the minute starting from the beginning of the current century when called with no parameters, change the current minute when called with an integer value - * @method int|static minuteOfDay(?int $minute = null) Return the value of the minute starting from the beginning of the current day when called with no parameters, change the current minute when called with an integer value - * @method int|static minuteOfDecade(?int $minute = null) Return the value of the minute starting from the beginning of the current decade when called with no parameters, change the current minute when called with an integer value - * @method int|static minuteOfHour(?int $minute = null) Return the value of the minute starting from the beginning of the current hour when called with no parameters, change the current minute when called with an integer value - * @method int|static minuteOfMillennium(?int $minute = null) Return the value of the minute starting from the beginning of the current millennium when called with no parameters, change the current minute when called with an integer value - * @method int|static minuteOfMonth(?int $minute = null) Return the value of the minute starting from the beginning of the current month when called with no parameters, change the current minute when called with an integer value - * @method int|static minuteOfQuarter(?int $minute = null) Return the value of the minute starting from the beginning of the current quarter when called with no parameters, change the current minute when called with an integer value - * @method int|static minuteOfWeek(?int $minute = null) Return the value of the minute starting from the beginning of the current week when called with no parameters, change the current minute when called with an integer value - * @method int|static minuteOfYear(?int $minute = null) Return the value of the minute starting from the beginning of the current year when called with no parameters, change the current minute when called with an integer value - * @method int minutesInCentury() Return the number of minutes contained in the current century - * @method int minutesInDay() Return the number of minutes contained in the current day - * @method int minutesInDecade() Return the number of minutes contained in the current decade - * @method int minutesInHour() Return the number of minutes contained in the current hour - * @method int minutesInMillennium() Return the number of minutes contained in the current millennium - * @method int minutesInMonth() Return the number of minutes contained in the current month - * @method int minutesInQuarter() Return the number of minutes contained in the current quarter - * @method int minutesInWeek() Return the number of minutes contained in the current week - * @method int minutesInYear() Return the number of minutes contained in the current year - * @method int|static monthOfCentury(?int $month = null) Return the value of the month starting from the beginning of the current century when called with no parameters, change the current month when called with an integer value - * @method int|static monthOfDecade(?int $month = null) Return the value of the month starting from the beginning of the current decade when called with no parameters, change the current month when called with an integer value - * @method int|static monthOfMillennium(?int $month = null) Return the value of the month starting from the beginning of the current millennium when called with no parameters, change the current month when called with an integer value - * @method int|static monthOfQuarter(?int $month = null) Return the value of the month starting from the beginning of the current quarter when called with no parameters, change the current month when called with an integer value - * @method int|static monthOfYear(?int $month = null) Return the value of the month starting from the beginning of the current year when called with no parameters, change the current month when called with an integer value - * @method int monthsInCentury() Return the number of months contained in the current century - * @method int monthsInDecade() Return the number of months contained in the current decade - * @method int monthsInMillennium() Return the number of months contained in the current millennium - * @method int monthsInQuarter() Return the number of months contained in the current quarter - * @method int monthsInYear() Return the number of months contained in the current year - * @method int|static quarterOfCentury(?int $quarter = null) Return the value of the quarter starting from the beginning of the current century when called with no parameters, change the current quarter when called with an integer value - * @method int|static quarterOfDecade(?int $quarter = null) Return the value of the quarter starting from the beginning of the current decade when called with no parameters, change the current quarter when called with an integer value - * @method int|static quarterOfMillennium(?int $quarter = null) Return the value of the quarter starting from the beginning of the current millennium when called with no parameters, change the current quarter when called with an integer value - * @method int|static quarterOfYear(?int $quarter = null) Return the value of the quarter starting from the beginning of the current year when called with no parameters, change the current quarter when called with an integer value - * @method int quartersInCentury() Return the number of quarters contained in the current century - * @method int quartersInDecade() Return the number of quarters contained in the current decade - * @method int quartersInMillennium() Return the number of quarters contained in the current millennium - * @method int quartersInYear() Return the number of quarters contained in the current year - * @method int|static secondOfCentury(?int $second = null) Return the value of the second starting from the beginning of the current century when called with no parameters, change the current second when called with an integer value - * @method int|static secondOfDay(?int $second = null) Return the value of the second starting from the beginning of the current day when called with no parameters, change the current second when called with an integer value - * @method int|static secondOfDecade(?int $second = null) Return the value of the second starting from the beginning of the current decade when called with no parameters, change the current second when called with an integer value - * @method int|static secondOfHour(?int $second = null) Return the value of the second starting from the beginning of the current hour when called with no parameters, change the current second when called with an integer value - * @method int|static secondOfMillennium(?int $second = null) Return the value of the second starting from the beginning of the current millennium when called with no parameters, change the current second when called with an integer value - * @method int|static secondOfMinute(?int $second = null) Return the value of the second starting from the beginning of the current minute when called with no parameters, change the current second when called with an integer value - * @method int|static secondOfMonth(?int $second = null) Return the value of the second starting from the beginning of the current month when called with no parameters, change the current second when called with an integer value - * @method int|static secondOfQuarter(?int $second = null) Return the value of the second starting from the beginning of the current quarter when called with no parameters, change the current second when called with an integer value - * @method int|static secondOfWeek(?int $second = null) Return the value of the second starting from the beginning of the current week when called with no parameters, change the current second when called with an integer value - * @method int|static secondOfYear(?int $second = null) Return the value of the second starting from the beginning of the current year when called with no parameters, change the current second when called with an integer value - * @method int secondsInCentury() Return the number of seconds contained in the current century - * @method int secondsInDay() Return the number of seconds contained in the current day - * @method int secondsInDecade() Return the number of seconds contained in the current decade - * @method int secondsInHour() Return the number of seconds contained in the current hour - * @method int secondsInMillennium() Return the number of seconds contained in the current millennium - * @method int secondsInMinute() Return the number of seconds contained in the current minute - * @method int secondsInMonth() Return the number of seconds contained in the current month - * @method int secondsInQuarter() Return the number of seconds contained in the current quarter - * @method int secondsInWeek() Return the number of seconds contained in the current week - * @method int secondsInYear() Return the number of seconds contained in the current year - * @method int|static weekOfCentury(?int $week = null) Return the value of the week starting from the beginning of the current century when called with no parameters, change the current week when called with an integer value - * @method int|static weekOfDecade(?int $week = null) Return the value of the week starting from the beginning of the current decade when called with no parameters, change the current week when called with an integer value - * @method int|static weekOfMillennium(?int $week = null) Return the value of the week starting from the beginning of the current millennium when called with no parameters, change the current week when called with an integer value - * @method int|static weekOfMonth(?int $week = null) Return the value of the week starting from the beginning of the current month when called with no parameters, change the current week when called with an integer value - * @method int|static weekOfQuarter(?int $week = null) Return the value of the week starting from the beginning of the current quarter when called with no parameters, change the current week when called with an integer value - * @method int|static weekOfYear(?int $week = null) Return the value of the week starting from the beginning of the current year when called with no parameters, change the current week when called with an integer value - * @method int weeksInCentury() Return the number of weeks contained in the current century - * @method int weeksInDecade() Return the number of weeks contained in the current decade - * @method int weeksInMillennium() Return the number of weeks contained in the current millennium - * @method int weeksInMonth() Return the number of weeks contained in the current month - * @method int weeksInQuarter() Return the number of weeks contained in the current quarter - * @method int|static yearOfCentury(?int $year = null) Return the value of the year starting from the beginning of the current century when called with no parameters, change the current year when called with an integer value - * @method int|static yearOfDecade(?int $year = null) Return the value of the year starting from the beginning of the current decade when called with no parameters, change the current year when called with an integer value - * @method int|static yearOfMillennium(?int $year = null) Return the value of the year starting from the beginning of the current millennium when called with no parameters, change the current year when called with an integer value - * @method int yearsInCentury() Return the number of years contained in the current century - * @method int yearsInDecade() Return the number of years contained in the current decade - * @method int yearsInMillennium() Return the number of years contained in the current millennium - * - * - * - * @codeCoverageIgnore - */ -interface CarbonInterface extends DateTimeInterface, JsonSerializable -{ - /** - * Diff wording options(expressed in octal). - */ - public const NO_ZERO_DIFF = 01; - public const JUST_NOW = 02; - public const ONE_DAY_WORDS = 04; - public const TWO_DAY_WORDS = 010; - public const SEQUENTIAL_PARTS_ONLY = 020; - public const ROUND = 040; - public const FLOOR = 0100; - public const CEIL = 0200; - - /** - * Diff syntax options. - */ - public const DIFF_ABSOLUTE = 1; // backward compatibility with true - public const DIFF_RELATIVE_AUTO = 0; // backward compatibility with false - public const DIFF_RELATIVE_TO_NOW = 2; - public const DIFF_RELATIVE_TO_OTHER = 3; - - /** - * Translate string options. - */ - public const TRANSLATE_MONTHS = 1; - public const TRANSLATE_DAYS = 2; - public const TRANSLATE_UNITS = 4; - public const TRANSLATE_MERIDIEM = 8; - public const TRANSLATE_DIFF = 0x10; - public const TRANSLATE_ALL = self::TRANSLATE_MONTHS | self::TRANSLATE_DAYS | self::TRANSLATE_UNITS | self::TRANSLATE_MERIDIEM | self::TRANSLATE_DIFF; - - /** - * The day constants. - */ - public const SUNDAY = 0; - public const MONDAY = 1; - public const TUESDAY = 2; - public const WEDNESDAY = 3; - public const THURSDAY = 4; - public const FRIDAY = 5; - public const SATURDAY = 6; - - /** - * The month constants. - * These aren't used by Carbon itself but exist for - * convenience sake alone. - */ - public const JANUARY = 1; - public const FEBRUARY = 2; - public const MARCH = 3; - public const APRIL = 4; - public const MAY = 5; - public const JUNE = 6; - public const JULY = 7; - public const AUGUST = 8; - public const SEPTEMBER = 9; - public const OCTOBER = 10; - public const NOVEMBER = 11; - public const DECEMBER = 12; - - /** - * Number of X in Y. - */ - public const YEARS_PER_MILLENNIUM = 1_000; - public const YEARS_PER_CENTURY = 100; - public const YEARS_PER_DECADE = 10; - public const MONTHS_PER_YEAR = 12; - public const MONTHS_PER_QUARTER = 3; - public const QUARTERS_PER_YEAR = 4; - public const WEEKS_PER_YEAR = 52; - public const WEEKS_PER_MONTH = 4; - public const DAYS_PER_YEAR = 365; - public const DAYS_PER_WEEK = 7; - public const HOURS_PER_DAY = 24; - public const MINUTES_PER_HOUR = 60; - public const SECONDS_PER_MINUTE = 60; - public const MILLISECONDS_PER_SECOND = 1_000; - public const MICROSECONDS_PER_MILLISECOND = 1_000; - public const MICROSECONDS_PER_SECOND = 1_000_000; - - /** - * Special settings to get the start of week from current locale culture. - */ - public const WEEK_DAY_AUTO = 'auto'; - - /** - * RFC7231 DateTime format. - * - * @var string - */ - public const RFC7231_FORMAT = 'D, d M Y H:i:s \G\M\T'; - - /** - * Default format to use for __toString method when type juggling occurs. - * - * @var string - */ - public const DEFAULT_TO_STRING_FORMAT = 'Y-m-d H:i:s'; - - /** - * Format for converting mocked time, includes microseconds. - * - * @var string - */ - public const MOCK_DATETIME_FORMAT = 'Y-m-d H:i:s.u'; - - /** - * Pattern detection for ->isoFormat and ::createFromIsoFormat. - * - * @var string - */ - public const ISO_FORMAT_REGEXP = '(O[YMDHhms]|[Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY?|g{1,5}|G{1,5}|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?)'; - - /** - * Default locale (language and region). - * - * @var string - */ - public const DEFAULT_LOCALE = 'en'; - - // - - /** - * Dynamically handle calls to the class. - * - * @param string $method magic method name called - * @param array $parameters parameters list - * - * @throws UnknownMethodException|BadMethodCallException|ReflectionException|Throwable - */ - public function __call(string $method, array $parameters): mixed; - - /** - * Dynamically handle calls to the class. - * - * @param string $method magic method name called - * @param array $parameters parameters list - * - * @throws BadMethodCallException - */ - public static function __callStatic(string $method, array $parameters): mixed; - - /** - * Update constructedObjectId on cloned. - */ - public function __clone(): void; - - /** - * Create a new Carbon instance. - * - * Please see the testing aids section (specifically static::setTestNow()) - * for more on the possibility of this constructor returning a test instance. - * - * @throws InvalidFormatException - */ - public function __construct(DateTimeInterface|WeekDay|Month|string|int|float|null $time = null, DateTimeZone|string|int|null $timezone = null); - - /** - * Show truthy properties on var_dump(). - */ - public function __debugInfo(): array; - - /** - * Get a part of the Carbon object. - * - * @throws UnknownGetterException - * - * @return string|int|bool|DateTimeZone|null - */ - public function __get(string $name): mixed; - - /** - * Check if an attribute exists on the object - * - * @param string $name - * - * @return bool - */ - public function __isset($name); - - /** - * Set a part of the Carbon object - * - * @param string $name - * @param string|int|DateTimeZone $value - * - * @throws UnknownSetterException|ReflectionException - * - * @return void - */ - public function __set($name, $value); - - /** - * The __set_state handler. - * - * @param string|array $dump - * - * @return static - */ - #[ReturnTypeWillChange] - public static function __set_state($dump): static; - - /** - * Returns the list of properties to dump on serialize() called on. - * - * Only used by PHP < 7.4. - * - * @return array - */ - public function __sleep(); - - /** - * Format the instance as a string using the set format - * - * @example - * ``` - * echo Carbon::now(); // Carbon instances can be cast to string - * ``` - */ - public function __toString(); - - /** - * Add given units or interval to the current instance. - * - * @example $date->add('hour', 3) - * @example $date->add(15, 'days') - * @example $date->add(CarbonInterval::days(4)) - * - * @param Unit|string|DateInterval|Closure|CarbonConverterInterface $unit - * @param int|float $value - * @param bool|null $overflow - * - * @return static - */ - #[ReturnTypeWillChange] - public function add($unit, $value = 1, ?bool $overflow = null): static; - - /** - * @deprecated Prefer to use add addUTCUnit() which more accurately defines what it's doing. - * - * Add seconds to the instance using timestamp. Positive $value travels - * forward while negative $value travels into the past. - * - * @param string $unit - * @param int|float|null $value - * - * @return static - */ - public function addRealUnit(string $unit, $value = 1): static; - - /** - * Add seconds to the instance using timestamp. Positive $value travels - * forward while negative $value travels into the past. - * - * @param string $unit - * @param int|float|null $value - * - * @return static - */ - public function addUTCUnit(string $unit, $value = 1): static; - - /** - * Add given units to the current instance. - */ - public function addUnit(Unit|string $unit, $value = 1, ?bool $overflow = null): static; - - /** - * Add any unit to a new value without overflowing current other unit given. - * - * @param string $valueUnit unit name to modify - * @param int $value amount to add to the input unit - * @param string $overflowUnit unit name to not overflow - */ - public function addUnitNoOverflow(string $valueUnit, int $value, string $overflowUnit): static; - - /** - * Get the difference in a human readable format in the current locale from an other - * instance given to now - * - * @param int|array $syntax if array passed, parameters will be extracted from it, the array may contains: - * - 'syntax' entry (see below) - * - 'short' entry (see below) - * - 'parts' entry (see below) - * - 'options' entry (see below) - * - 'join' entry determines how to join multiple parts of the string - * ` - if $join is a string, it's used as a joiner glue - * ` - if $join is a callable/closure, it get the list of string and should return a string - * ` - if $join is an array, the first item will be the default glue, and the second item - * ` will be used instead of the glue for the last item - * ` - if $join is true, it will be guessed from the locale ('list' translation file entry) - * ` - if $join is missing, a space will be used as glue - * if int passed, it add modifiers: - * Possible values: - * - CarbonInterface::DIFF_ABSOLUTE no modifiers - * - CarbonInterface::DIFF_RELATIVE_TO_NOW add ago/from now modifier - * - CarbonInterface::DIFF_RELATIVE_TO_OTHER add before/after modifier - * Default value: CarbonInterface::DIFF_ABSOLUTE - * @param bool $short displays short format of time units - * @param int $parts maximum number of parts to display (default value: 1: single part) - * @param int $options human diff options - * - * @return string - */ - public function ago($syntax = null, $short = false, $parts = 1, $options = null); - - /** - * Modify the current instance to the average of a given instance (default now) and the current instance - * (second-precision). - * - * @param \Carbon\Carbon|\DateTimeInterface|null $date - * - * @return static - */ - public function average($date = null); - - /** - * Clone the current instance if it's mutable. - * - * This method is convenient to ensure you don't mutate the initial object - * but avoid to make a useless copy of it if it's already immutable. - * - * @return static - */ - public function avoidMutation(): static; - - /** - * Determines if the instance is between two others. - * - * The third argument allow you to specify if bounds are included or not (true by default) - * but for when you including/excluding bounds may produce different results in your application, - * we recommend to use the explicit methods ->betweenIncluded() or ->betweenExcluded() instead. - * - * @example - * ``` - * Carbon::parse('2018-07-25')->between('2018-07-14', '2018-08-01'); // true - * Carbon::parse('2018-07-25')->between('2018-08-01', '2018-08-20'); // false - * Carbon::parse('2018-07-25')->between('2018-07-25', '2018-08-01'); // true - * Carbon::parse('2018-07-25')->between('2018-07-25', '2018-08-01', false); // false - * ``` - * - * @param bool $equal Indicates if an equal to comparison should be done - */ - public function between(DateTimeInterface|string $date1, DateTimeInterface|string $date2, bool $equal = true): bool; - - /** - * Determines if the instance is between two others, bounds excluded. - * - * @example - * ``` - * Carbon::parse('2018-07-25')->betweenExcluded('2018-07-14', '2018-08-01'); // true - * Carbon::parse('2018-07-25')->betweenExcluded('2018-08-01', '2018-08-20'); // false - * Carbon::parse('2018-07-25')->betweenExcluded('2018-07-25', '2018-08-01'); // false - * ``` - */ - public function betweenExcluded(DateTimeInterface|string $date1, DateTimeInterface|string $date2): bool; - - /** - * Determines if the instance is between two others, bounds included. - * - * @example - * ``` - * Carbon::parse('2018-07-25')->betweenIncluded('2018-07-14', '2018-08-01'); // true - * Carbon::parse('2018-07-25')->betweenIncluded('2018-08-01', '2018-08-20'); // false - * Carbon::parse('2018-07-25')->betweenIncluded('2018-07-25', '2018-08-01'); // true - * ``` - */ - public function betweenIncluded(DateTimeInterface|string $date1, DateTimeInterface|string $date2): bool; - - /** - * Returns either day of week + time (e.g. "Last Friday at 3:30 PM") if reference time is within 7 days, - * or a calendar date (e.g. "10/29/2017") otherwise. - * - * Language, date and time formats will change according to the current locale. - * - * @param Carbon|\DateTimeInterface|string|null $referenceTime - * @param array $formats - * - * @return string - */ - public function calendar($referenceTime = null, array $formats = []); - - /** - * Checks if the (date)time string is in a given format and valid to create a - * new instance. - * - * @example - * ``` - * Carbon::canBeCreatedFromFormat('11:12:45', 'h:i:s'); // true - * Carbon::canBeCreatedFromFormat('13:12:45', 'h:i:s'); // false - * ``` - */ - public static function canBeCreatedFromFormat(?string $date, string $format): bool; - - /** - * Return the Carbon instance passed through, a now instance in the same timezone - * if null given or parse the input if string given. - * - * @param Carbon|\Carbon\CarbonPeriod|\Carbon\CarbonInterval|\DateInterval|\DatePeriod|DateTimeInterface|string|null $date - * - * @return static - */ - public function carbonize($date = null); - - /** - * Cast the current instance into the given class. - * - * @template T - * - * @param class-string $className The $className::instance() method will be called to cast the current object. - * - * @return T - */ - public function cast(string $className): mixed; - - /** - * Ceil the current instance second with given precision if specified. - */ - public function ceil(DateInterval|string|int|float $precision = 1): static; - - /** - * Ceil the current instance at the given unit with given precision if specified. - */ - public function ceilUnit(string $unit, DateInterval|string|int|float $precision = 1): static; - - /** - * Ceil the current instance week. - * - * @param WeekDay|int|null $weekStartsAt optional start allow you to specify the day of week to use to start the week - */ - public function ceilWeek(WeekDay|int|null $weekStartsAt = null): static; - - /** - * Similar to native modify() method of DateTime but can handle more grammars. - * - * @example - * ``` - * echo Carbon::now()->change('next 2pm'); - * ``` - * - * @link https://php.net/manual/en/datetime.modify.php - * - * @param string $modifier - * - * @return static - */ - public function change($modifier); - - /** - * Cleanup properties attached to the public scope of DateTime when a dump of the date is requested. - * foreach ($date as $_) {} - * serializer($date) - * var_export($date) - * get_object_vars($date) - */ - public function cleanupDumpProperties(); - - /** - * @alias copy - * - * Get a copy of the instance. - * - * @return static - */ - public function clone(); - - /** - * Get the closest date from the instance (second-precision). - * - * @param \Carbon\Carbon|\DateTimeInterface|mixed $date1 - * @param \Carbon\Carbon|\DateTimeInterface|mixed $date2 - * - * @return static - */ - public function closest($date1, $date2); - - /** - * Get a copy of the instance. - * - * @return static - */ - public function copy(); - - /** - * Create a new Carbon instance from a specific date and time. - * - * If any of $year, $month or $day are set to null their now() values will - * be used. - * - * If $hour is null it will be set to its now() value and the default - * values for $minute and $second will be their now() values. - * - * If $hour is not null then the default values for $minute and $second - * will be 0. - * - * @param DateTimeInterface|string|int|null $year - * @param int|null $month - * @param int|null $day - * @param int|null $hour - * @param int|null $minute - * @param int|null $second - * @param DateTimeZone|string|int|null $timezone - * - * @throws InvalidFormatException - * - * @return static|null - */ - public static function create($year = 0, $month = 1, $day = 1, $hour = 0, $minute = 0, $second = 0, $timezone = null); - - /** - * Create a Carbon instance from just a date. The time portion is set to now. - * - * @param int|null $year - * @param int|null $month - * @param int|null $day - * @param DateTimeZone|string|int|null $timezone - * - * @throws InvalidFormatException - * - * @return static - */ - public static function createFromDate($year = null, $month = null, $day = null, $timezone = null); - - /** - * Create a Carbon instance from a specific format. - * - * @param string $format Datetime format - * @param string $time - * @param DateTimeZone|string|int|null $timezone - * - * @throws InvalidFormatException - * - * @return static|null - */ - #[ReturnTypeWillChange] - public static function createFromFormat($format, $time, $timezone = null); - - /** - * Create a Carbon instance from a specific ISO format (same replacements as ->isoFormat()). - * - * @param string $format Datetime format - * @param string $time - * @param DateTimeZone|string|int|null $timezone optional timezone - * @param string|null $locale locale to be used for LTS, LT, LL, LLL, etc. macro-formats (en by fault, unneeded if no such macro-format in use) - * @param TranslatorInterface|null $translator optional custom translator to use for macro-formats - * - * @throws InvalidFormatException - * - * @return static|null - */ - public static function createFromIsoFormat(string $format, string $time, $timezone = null, ?string $locale = 'en', ?TranslatorInterface $translator = null); - - /** - * Create a Carbon instance from a specific format and a string in a given language. - * - * @param string $format Datetime format - * @param string $locale - * @param string $time - * @param DateTimeZone|string|int|null $timezone - * - * @throws InvalidFormatException - * - * @return static|null - */ - public static function createFromLocaleFormat(string $format, string $locale, string $time, $timezone = null); - - /** - * Create a Carbon instance from a specific ISO format and a string in a given language. - * - * @param string $format Datetime ISO format - * @param string $locale - * @param string $time - * @param DateTimeZone|string|int|null $timezone - * - * @throws InvalidFormatException - * - * @return static|null - */ - public static function createFromLocaleIsoFormat(string $format, string $locale, string $time, $timezone = null); - - /** - * Create a Carbon instance from just a time. The date portion is set to today. - * - * @param int|null $hour - * @param int|null $minute - * @param int|null $second - * @param DateTimeZone|string|int|null $timezone - * - * @throws InvalidFormatException - * - * @return static - */ - public static function createFromTime($hour = 0, $minute = 0, $second = 0, $timezone = null): static; - - /** - * Create a Carbon instance from a time string. The date portion is set to today. - * - * @throws InvalidFormatException - */ - public static function createFromTimeString(string $time, DateTimeZone|string|int|null $timezone = null): static; - - /** - * Create a Carbon instance from a timestamp and set the timezone (UTC by default). - * - * Timestamp input can be given as int, float or a string containing one or more numbers. - */ - public static function createFromTimestamp(string|int|float $timestamp, DateTimeZone|string|int|null $timezone = null): static; - - /** - * Create a Carbon instance from a timestamp in milliseconds. - * - * Timestamp input can be given as int, float or a string containing one or more numbers. - */ - public static function createFromTimestampMs(string|int|float $timestamp, DateTimeZone|string|int|null $timezone = null): static; - - /** - * Create a Carbon instance from a timestamp in milliseconds. - * - * Timestamp input can be given as int, float or a string containing one or more numbers. - * - * @param float|int|string $timestamp - * - * @return static - */ - public static function createFromTimestampMsUTC($timestamp): static; - - /** - * Create a Carbon instance from a timestamp keeping the timezone to UTC. - * - * Timestamp input can be given as int, float or a string containing one or more numbers. - */ - public static function createFromTimestampUTC(string|int|float $timestamp): static; - - /** - * Create a Carbon instance from just a date. The time portion is set to midnight. - * - * @param int|null $year - * @param int|null $month - * @param int|null $day - * @param DateTimeZone|string|int|null $timezone - * - * @throws InvalidFormatException - * - * @return static - */ - public static function createMidnightDate($year = null, $month = null, $day = null, $timezone = null); - - /** - * Create a new safe Carbon instance from a specific date and time. - * - * If any of $year, $month or $day are set to null their now() values will - * be used. - * - * If $hour is null it will be set to its now() value and the default - * values for $minute and $second will be their now() values. - * - * If $hour is not null then the default values for $minute and $second - * will be 0. - * - * If one of the set values is not valid, an InvalidDateException - * will be thrown. - * - * @param int|null $year - * @param int|null $month - * @param int|null $day - * @param int|null $hour - * @param int|null $minute - * @param int|null $second - * @param DateTimeZone|string|int|null $timezone - * - * @throws InvalidDateException - * - * @return static|null - */ - public static function createSafe($year = null, $month = null, $day = null, $hour = null, $minute = null, $second = null, $timezone = null); - - /** - * Create a new Carbon instance from a specific date and time using strict validation. - * - * @see create() - * - * @param int|null $year - * @param int|null $month - * @param int|null $day - * @param int|null $hour - * @param int|null $minute - * @param int|null $second - * @param DateTimeZone|string|int|null $timezone - * - * @throws InvalidFormatException - * - * @return static - */ - public static function createStrict(?int $year = 0, ?int $month = 1, ?int $day = 1, ?int $hour = 0, ?int $minute = 0, ?int $second = 0, $timezone = null): static; - - /** - * Get/set the day of year. - * - * @template T of int|null - * - * @param int|null $value new value for day of year if using as setter. - * - * @psalm-param T $value - * - * @return static|int - * - * @psalm-return (T is int ? static : int) - */ - public function dayOfYear(?int $value = null): static|int; - - /** - * Get the difference as a CarbonInterval instance. - * Return relative interval (negative if $absolute flag is not set to true and the given date is before - * current one). - * - * @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date - * @param bool $absolute Get the absolute of the difference - * - * @return CarbonInterval - */ - public function diffAsCarbonInterval($date = null, bool $absolute = false, array $skip = []): CarbonInterval; - - /** - * Get the difference as a DateInterval instance. - * Return relative interval (negative if $absolute flag is not set to true and the given date is before - * current one). - * - * @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date - * @param bool $absolute Get the absolute of the difference - * - * @return DateInterval - */ - public function diffAsDateInterval($date = null, bool $absolute = false): DateInterval; - - /** - * Get the difference by the given interval using a filter closure. - * - * @param CarbonInterval $ci An interval to traverse by - * @param Closure $callback - * @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date - * @param bool $absolute Get the absolute of the difference - * - * @return int - */ - public function diffFiltered(CarbonInterval $ci, Closure $callback, $date = null, bool $absolute = false): int; - - /** - * Get the difference in a human readable format in the current locale from current instance to an other - * instance given (or now if null given). - * - * @example - * ``` - * echo Carbon::tomorrow()->diffForHumans() . "\n"; - * echo Carbon::tomorrow()->diffForHumans(['parts' => 2]) . "\n"; - * echo Carbon::tomorrow()->diffForHumans(['parts' => 3, 'join' => true]) . "\n"; - * echo Carbon::tomorrow()->diffForHumans(Carbon::yesterday()) . "\n"; - * echo Carbon::tomorrow()->diffForHumans(Carbon::yesterday(), ['short' => true]) . "\n"; - * ``` - * - * @param Carbon|DateTimeInterface|string|array|null $other if array passed, will be used as parameters array, see $syntax below; - * if null passed, now will be used as comparison reference; - * if any other type, it will be converted to date and used as reference. - * @param int|array $syntax if array passed, parameters will be extracted from it, the array may contains: - * ⦿ 'syntax' entry (see below) - * ⦿ 'short' entry (see below) - * ⦿ 'parts' entry (see below) - * ⦿ 'options' entry (see below) - * ⦿ 'skip' entry, list of units to skip (array of strings or a single string, - * ` it can be the unit name (singular or plural) or its shortcut - * ` (y, m, w, d, h, min, s, ms, µs). - * ⦿ 'aUnit' entry, prefer "an hour" over "1 hour" if true - * ⦿ 'altNumbers' entry, use alternative numbers if available - * ` (from the current language if true is passed, from the given language(s) - * ` if array or string is passed) - * ⦿ 'join' entry determines how to join multiple parts of the string - * ` - if $join is a string, it's used as a joiner glue - * ` - if $join is a callable/closure, it get the list of string and should return a string - * ` - if $join is an array, the first item will be the default glue, and the second item - * ` will be used instead of the glue for the last item - * ` - if $join is true, it will be guessed from the locale ('list' translation file entry) - * ` - if $join is missing, a space will be used as glue - * ⦿ 'other' entry (see above) - * ⦿ 'minimumUnit' entry determines the smallest unit of time to display can be long or - * ` short form of the units, e.g. 'hour' or 'h' (default value: s) - * ⦿ 'locale' language in which the diff should be output (has no effect if 'translator' key is set) - * ⦿ 'translator' a custom translator to use to translator the output. - * if int passed, it adds modifiers: - * Possible values: - * - CarbonInterface::DIFF_ABSOLUTE no modifiers - * - CarbonInterface::DIFF_RELATIVE_TO_NOW add ago/from now modifier - * - CarbonInterface::DIFF_RELATIVE_TO_OTHER add before/after modifier - * Default value: CarbonInterface::DIFF_ABSOLUTE - * @param bool $short displays short format of time units - * @param int $parts maximum number of parts to display (default value: 1: single unit) - * @param int $options human diff options - */ - public function diffForHumans($other = null, $syntax = null, $short = false, $parts = 1, $options = null): string; - - /** - * Get the difference in days. - * - * @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date - * @param bool $absolute Get the absolute of the difference - * @param bool $utc Always convert dates to UTC before comparing (if not set, it will do it only if timezones are different) - * - * @return float - */ - public function diffInDays($date = null, bool $absolute = false, bool $utc = false): float; - - /** - * Get the difference in days using a filter closure. - * - * @param Closure $callback - * @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date - * @param bool $absolute Get the absolute of the difference - * - * @return int - */ - public function diffInDaysFiltered(Closure $callback, $date = null, bool $absolute = false): int; - - /** - * Get the difference in hours. - * - * @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date - * @param bool $absolute Get the absolute of the difference - * - * @return float - */ - public function diffInHours($date = null, bool $absolute = false): float; - - /** - * Get the difference in hours using a filter closure. - * - * @param Closure $callback - * @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date - * @param bool $absolute Get the absolute of the difference - * - * @return int - */ - public function diffInHoursFiltered(Closure $callback, $date = null, bool $absolute = false): int; - - /** - * Get the difference in microseconds. - * - * @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date - * @param bool $absolute Get the absolute of the difference - * - * @return float - */ - public function diffInMicroseconds($date = null, bool $absolute = false): float; - - /** - * Get the difference in milliseconds. - * - * @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date - * @param bool $absolute Get the absolute of the difference - * - * @return float - */ - public function diffInMilliseconds($date = null, bool $absolute = false): float; - - /** - * Get the difference in minutes. - * - * @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date - * @param bool $absolute Get the absolute of the difference - * - * @return float - */ - public function diffInMinutes($date = null, bool $absolute = false): float; - - /** - * Get the difference in months. - * - * @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date - * @param bool $absolute Get the absolute of the difference - * @param bool $utc Always convert dates to UTC before comparing (if not set, it will do it only if timezones are different) - * - * @return float - */ - public function diffInMonths($date = null, bool $absolute = false, bool $utc = false): float; - - /** - * Get the difference in quarters. - * - * @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date - * @param bool $absolute Get the absolute of the difference - * @param bool $utc Always convert dates to UTC before comparing (if not set, it will do it only if timezones are different) - * - * @return float - */ - public function diffInQuarters($date = null, bool $absolute = false, bool $utc = false): float; - - /** - * Get the difference in seconds. - * - * @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date - * @param bool $absolute Get the absolute of the difference - * - * @return float - */ - public function diffInSeconds($date = null, bool $absolute = false): float; - - /** - * @param Unit|string $unit microsecond, millisecond, second, minute, - * hour, day, week, month, quarter, year, - * century, millennium - * @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date - * @param bool $absolute Get the absolute of the difference - * @param bool $utc Always convert dates to UTC before comparing (if not set, it will do it only if timezones are different) - * - * @return float - */ - public function diffInUnit(Unit|string $unit, $date = null, bool $absolute = false, bool $utc = false): float; - - /** - * Get the difference in weekdays. - * - * @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date - * @param bool $absolute Get the absolute of the difference - * - * @return int - */ - public function diffInWeekdays($date = null, bool $absolute = false): int; - - /** - * Get the difference in weekend days using a filter. - * - * @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date - * @param bool $absolute Get the absolute of the difference - * - * @return int - */ - public function diffInWeekendDays($date = null, bool $absolute = false): int; - - /** - * Get the difference in weeks. - * - * @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date - * @param bool $absolute Get the absolute of the difference - * @param bool $utc Always convert dates to UTC before comparing (if not set, it will do it only if timezones are different) - * - * @return float - */ - public function diffInWeeks($date = null, bool $absolute = false, bool $utc = false): float; - - /** - * Get the difference in years - * - * @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date - * @param bool $absolute Get the absolute of the difference - * @param bool $utc Always convert dates to UTC before comparing (if not set, it will do it only if timezones are different) - * - * @return float - */ - public function diffInYears($date = null, bool $absolute = false, bool $utc = false): float; - - /** - * @deprecated To avoid conflict between different third-party libraries, static setters should not be used. - * You should rather use the ->settings() method. - * @see settings - */ - public static function disableHumanDiffOption(int $humanDiffOption): void; - - /** - * @deprecated To avoid conflict between different third-party libraries, static setters should not be used. - * You should rather use the ->settings() method. - * @see settings - */ - public static function enableHumanDiffOption(int $humanDiffOption): void; - - /** - * Modify to end of current given unit. - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16.334455') - * ->startOf(Unit::Month) - * ->endOf(Unit::Week, Carbon::FRIDAY); - * ``` - */ - public function endOf(Unit|string $unit, mixed ...$params): static; - - /** - * Resets the date to end of the century and time to 23:59:59.999999 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->endOfCentury(); - * ``` - * - * @return static - */ - public function endOfCentury(); - - /** - * Resets the time to 23:59:59.999999 end of day - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->endOfDay(); - * ``` - * - * @return static - */ - public function endOfDay(); - - /** - * Resets the date to end of the decade and time to 23:59:59.999999 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->endOfDecade(); - * ``` - * - * @return static - */ - public function endOfDecade(); - - /** - * Modify to end of current hour, minutes and seconds become 59 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->endOfHour(); - * ``` - */ - public function endOfHour(): static; - - /** - * Resets the date to end of the millennium and time to 23:59:59.999999 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->endOfMillennium(); - * ``` - * - * @return static - */ - public function endOfMillennium(); - - /** - * Modify to end of current millisecond, microseconds such as 12345 become 123999 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16.334455') - * ->endOfSecond() - * ->format('H:i:s.u'); - * ``` - */ - public function endOfMillisecond(): static; - - /** - * Modify to end of current minute, seconds become 59 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->endOfMinute(); - * ``` - */ - public function endOfMinute(): static; - - /** - * Resets the date to end of the month and time to 23:59:59.999999 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->endOfMonth(); - * ``` - * - * @return static - */ - public function endOfMonth(); - - /** - * Resets the date to end of the quarter and time to 23:59:59.999999 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->endOfQuarter(); - * ``` - * - * @return static - */ - public function endOfQuarter(); - - /** - * Modify to end of current second, microseconds become 999999 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16.334455') - * ->endOfSecond() - * ->format('H:i:s.u'); - * ``` - */ - public function endOfSecond(): static; - - /** - * Resets the date to end of week (defined in $weekEndsAt) and time to 23:59:59.999999 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->endOfWeek() . "\n"; - * echo Carbon::parse('2018-07-25 12:45:16')->locale('ar')->endOfWeek() . "\n"; - * echo Carbon::parse('2018-07-25 12:45:16')->endOfWeek(Carbon::SATURDAY) . "\n"; - * ``` - * - * @param WeekDay|int|null $weekEndsAt optional end allow you to specify the day of week to use to end the week - * - * @return static - */ - public function endOfWeek(WeekDay|int|null $weekEndsAt = null): static; - - /** - * Resets the date to end of the year and time to 23:59:59.999999 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->endOfYear(); - * ``` - * - * @return static - */ - public function endOfYear(); - - /** - * Determines if the instance is equal to another - * - * @example - * ``` - * Carbon::parse('2018-07-25 12:45:16')->eq('2018-07-25 12:45:16'); // true - * Carbon::parse('2018-07-25 12:45:16')->eq(Carbon::parse('2018-07-25 12:45:16')); // true - * Carbon::parse('2018-07-25 12:45:16')->eq('2018-07-25 12:45:17'); // false - * ``` - * - * @see equalTo() - */ - public function eq(DateTimeInterface|string $date): bool; - - /** - * Determines if the instance is equal to another - * - * @example - * ``` - * Carbon::parse('2018-07-25 12:45:16')->equalTo('2018-07-25 12:45:16'); // true - * Carbon::parse('2018-07-25 12:45:16')->equalTo(Carbon::parse('2018-07-25 12:45:16')); // true - * Carbon::parse('2018-07-25 12:45:16')->equalTo('2018-07-25 12:45:17'); // false - * ``` - */ - public function equalTo(DateTimeInterface|string $date): bool; - - /** - * Set the current locale to the given, execute the passed function, reset the locale to previous one, - * then return the result of the closure (or null if the closure was void). - * - * @param string $locale locale ex. en - * @param callable $func - * - * @return mixed - */ - public static function executeWithLocale(string $locale, callable $func): mixed; - - /** - * Get the farthest date from the instance (second-precision). - * - * @param \Carbon\Carbon|\DateTimeInterface|mixed $date1 - * @param \Carbon\Carbon|\DateTimeInterface|mixed $date2 - * - * @return static - */ - public function farthest($date1, $date2); - - /** - * Modify to the first occurrence of a given day of the week - * in the current month. If no dayOfWeek is provided, modify to the - * first day of the current month. Use the supplied constants - * to indicate the desired dayOfWeek, ex. static::MONDAY. - * - * @param int|null $dayOfWeek - * - * @return static - */ - public function firstOfMonth($dayOfWeek = null); - - /** - * Modify to the first occurrence of a given day of the week - * in the current quarter. If no dayOfWeek is provided, modify to the - * first day of the current quarter. Use the supplied constants - * to indicate the desired dayOfWeek, ex. static::MONDAY. - * - * @param int|null $dayOfWeek day of the week default null - * - * @return static - */ - public function firstOfQuarter($dayOfWeek = null); - - /** - * Modify to the first occurrence of a given day of the week - * in the current year. If no dayOfWeek is provided, modify to the - * first day of the current year. Use the supplied constants - * to indicate the desired dayOfWeek, ex. static::MONDAY. - * - * @param int|null $dayOfWeek day of the week default null - * - * @return static - */ - public function firstOfYear($dayOfWeek = null); - - /** - * Round the current instance second with given precision if specified. - */ - public function floor(DateInterval|string|int|float $precision = 1): static; - - /** - * Truncate the current instance at the given unit with given precision if specified. - */ - public function floorUnit(string $unit, DateInterval|string|int|float $precision = 1): static; - - /** - * Truncate the current instance week. - * - * @param WeekDay|int|null $weekStartsAt optional start allow you to specify the day of week to use to start the week - */ - public function floorWeek(WeekDay|int|null $weekStartsAt = null): static; - - /** - * @alias diffForHumans - * - * Get the difference in a human readable format in the current locale from current instance to an other - * instance given (or now if null given). - * - * @param Carbon|\DateTimeInterface|string|array|null $other if array passed, will be used as parameters array, see $syntax below; - * if null passed, now will be used as comparison reference; - * if any other type, it will be converted to date and used as reference. - * @param int|array $syntax if array passed, parameters will be extracted from it, the array may contains: - * - 'syntax' entry (see below) - * - 'short' entry (see below) - * - 'parts' entry (see below) - * - 'options' entry (see below) - * - 'join' entry determines how to join multiple parts of the string - * ` - if $join is a string, it's used as a joiner glue - * ` - if $join is a callable/closure, it get the list of string and should return a string - * ` - if $join is an array, the first item will be the default glue, and the second item - * ` will be used instead of the glue for the last item - * ` - if $join is true, it will be guessed from the locale ('list' translation file entry) - * ` - if $join is missing, a space will be used as glue - * - 'other' entry (see above) - * if int passed, it add modifiers: - * Possible values: - * - CarbonInterface::DIFF_ABSOLUTE no modifiers - * - CarbonInterface::DIFF_RELATIVE_TO_NOW add ago/from now modifier - * - CarbonInterface::DIFF_RELATIVE_TO_OTHER add before/after modifier - * Default value: CarbonInterface::DIFF_ABSOLUTE - * @param bool $short displays short format of time units - * @param int $parts maximum number of parts to display (default value: 1: single unit) - * @param int $options human diff options - * - * @return string - */ - public function from($other = null, $syntax = null, $short = false, $parts = 1, $options = null); - - /** - * Get the difference in a human readable format in the current locale from current - * instance to now. - * - * @param int|array $syntax if array passed, parameters will be extracted from it, the array may contains: - * - 'syntax' entry (see below) - * - 'short' entry (see below) - * - 'parts' entry (see below) - * - 'options' entry (see below) - * - 'join' entry determines how to join multiple parts of the string - * ` - if $join is a string, it's used as a joiner glue - * ` - if $join is a callable/closure, it get the list of string and should return a string - * ` - if $join is an array, the first item will be the default glue, and the second item - * ` will be used instead of the glue for the last item - * ` - if $join is true, it will be guessed from the locale ('list' translation file entry) - * ` - if $join is missing, a space will be used as glue - * if int passed, it add modifiers: - * Possible values: - * - CarbonInterface::DIFF_ABSOLUTE no modifiers - * - CarbonInterface::DIFF_RELATIVE_TO_NOW add ago/from now modifier - * - CarbonInterface::DIFF_RELATIVE_TO_OTHER add before/after modifier - * Default value: CarbonInterface::DIFF_ABSOLUTE - * @param bool $short displays short format of time units - * @param int $parts maximum number of parts to display (default value: 1: single unit) - * @param int $options human diff options - * - * @return string - */ - public function fromNow($syntax = null, $short = false, $parts = 1, $options = null); - - /** - * Create an instance from a serialized string. - * - * @param string $value - * - * @throws InvalidFormatException - * - * @return static - */ - public static function fromSerialized($value): static; - - /** - * Register a custom macro. - * - * @param callable $macro - * @param int $priority marco with higher priority is tried first - * - * @return void - */ - public static function genericMacro(callable $macro, int $priority = 0): void; - - /** - * Get a part of the Carbon object. - * - * @throws UnknownGetterException - * - * @return string|int|bool|DateTimeZone - */ - public function get(Unit|string $name): mixed; - - /** - * Returns the alternative number for a given date property if available in the current locale. - * - * @param string $key date property - */ - public function getAltNumber(string $key): string; - - /** - * Returns the list of internally available locales and already loaded custom locales. - * (It will ignore custom translator dynamic loading.) - * - * @return array - */ - public static function getAvailableLocales(); - - /** - * Returns list of Language object for each available locale. This object allow you to get the ISO name, native - * name, region and variant of the locale. - * - * @return Language[] - */ - public static function getAvailableLocalesInfo(); - - /** - * Returns list of calendar formats for ISO formatting. - * - * @param string|null $locale current locale used if null - */ - public function getCalendarFormats(?string $locale = null): array; - - public function getClock(): ?WrapperClock; - - /** - * Get the days of the week. - */ - public static function getDays(): array; - - /** - * Return the number of days since the start of the week (using the current locale or the first parameter - * if explicitly given). - * - * @param WeekDay|int|null $weekStartsAt optional start allow you to specify the day of week to use to start the week, - * if not provided, start of week is inferred from the locale - * (Sunday for en_US, Monday for de_DE, etc.) - */ - public function getDaysFromStartOfWeek(WeekDay|int|null $weekStartsAt = null): int; - - /** - * Get the fallback locale. - * - * @see https://symfony.com/doc/current/components/translation.html#fallback-locales - */ - public static function getFallbackLocale(): ?string; - - /** - * List of replacements from date() format to isoFormat(). - */ - public static function getFormatsToIsoReplacements(): array; - - /** - * Return default humanDiff() options (merged flags as integer). - */ - public static function getHumanDiffOptions(): int; - - /** - * Returns list of locale formats for ISO formatting. - * - * @param string|null $locale current locale used if null - */ - public function getIsoFormats(?string $locale = null): array; - - /** - * Returns list of locale units for ISO formatting. - */ - public static function getIsoUnits(): array; - - /** - * {@inheritdoc} - */ - public static function getLastErrors(): array|false; - - /** - * Get the raw callable macro registered globally or locally for a given name. - */ - public function getLocalMacro(string $name): ?callable; - - /** - * Get the translator of the current instance or the default if none set. - */ - public function getLocalTranslator(): TranslatorInterface; - - /** - * Get the current translator locale. - * - * @return string - */ - public static function getLocale(): string; - - /** - * Get the raw callable macro registered globally for a given name. - */ - public static function getMacro(string $name): ?callable; - - /** - * get midday/noon hour - * - * @return int - */ - public static function getMidDayAt(); - - /** - * Returns the offset hour and minute formatted with +/- and a given separator (":" by default). - * For example, if the time zone is 9 hours 30 minutes, you'll get "+09:30", with "@@" as first - * argument, "+09@@30", with "" as first argument, "+0930". Negative offset will return something - * like "-12:00". - * - * @param string $separator string to place between hours and minutes (":" by default) - */ - public function getOffsetString(string $separator = ':'): string; - - /** - * Returns a unit of the instance padded with 0 by default or any other string if specified. - * - * @param string $unit Carbon unit name - * @param int $length Length of the output (2 by default) - * @param string $padString String to use for padding ("0" by default) - * @param int $padType Side(s) to pad (STR_PAD_LEFT by default) - */ - public function getPaddedUnit($unit, $length = 2, $padString = '0', $padType = 0): string; - - /** - * Returns a timestamp rounded with the given precision (6 by default). - * - * @example getPreciseTimestamp() 1532087464437474 (microsecond maximum precision) - * @example getPreciseTimestamp(6) 1532087464437474 - * @example getPreciseTimestamp(5) 153208746443747 (1/100000 second precision) - * @example getPreciseTimestamp(4) 15320874644375 (1/10000 second precision) - * @example getPreciseTimestamp(3) 1532087464437 (millisecond precision) - * @example getPreciseTimestamp(2) 153208746444 (1/100 second precision) - * @example getPreciseTimestamp(1) 15320874644 (1/10 second precision) - * @example getPreciseTimestamp(0) 1532087464 (second precision) - * @example getPreciseTimestamp(-1) 153208746 (10 second precision) - * @example getPreciseTimestamp(-2) 15320875 (100 second precision) - * - * @param int $precision - * - * @return float - */ - public function getPreciseTimestamp($precision = 6): float; - - /** - * Returns current local settings. - */ - public function getSettings(): array; - - /** - * Get the Carbon instance (real or mock) to be returned when a "now" - * instance is created. - * - * @return Closure|self|null the current instance used for testing - */ - public static function getTestNow(): Closure|self|null; - - /** - * Return a format from H:i to H:i:s.u according to given unit precision. - * - * @param string $unitPrecision "minute", "second", "millisecond" or "microsecond" - */ - public static function getTimeFormatByPrecision(string $unitPrecision): string; - - /** - * Returns the timestamp with millisecond precision. - * - * @return int - */ - public function getTimestampMs(): int; - - /** - * Get the translation of the current week day name (with context for languages with multiple forms). - * - * @param string|null $context whole format string - * @param string $keySuffix "", "_short" or "_min" - * @param string|null $defaultValue default value if translation missing - */ - public function getTranslatedDayName(?string $context = null, string $keySuffix = '', ?string $defaultValue = null): string; - - /** - * Get the translation of the current abbreviated week day name (with context for languages with multiple forms). - * - * @param string|null $context whole format string - */ - public function getTranslatedMinDayName(?string $context = null): string; - - /** - * Get the translation of the current month day name (with context for languages with multiple forms). - * - * @param string|null $context whole format string - * @param string $keySuffix "" or "_short" - * @param string|null $defaultValue default value if translation missing - */ - public function getTranslatedMonthName(?string $context = null, string $keySuffix = '', ?string $defaultValue = null): string; - - /** - * Get the translation of the current short week day name (with context for languages with multiple forms). - * - * @param string|null $context whole format string - */ - public function getTranslatedShortDayName(?string $context = null): string; - - /** - * Get the translation of the current short month day name (with context for languages with multiple forms). - * - * @param string|null $context whole format string - */ - public function getTranslatedShortMonthName(?string $context = null): string; - - /** - * Returns raw translation message for a given key. - * - * @param string $key key to find - * @param string|null $locale current locale used if null - * @param string|null $default default value if translation returns the key - * @param TranslatorInterface $translator an optional translator to use - * - * @return string - */ - public function getTranslationMessage(string $key, ?string $locale = null, ?string $default = null, $translator = null); - - /** - * Returns raw translation message for a given key. - * - * @param TranslatorInterface|null $translator the translator to use - * @param string $key key to find - * @param string|null $locale current locale used if null - * @param string|null $default default value if translation returns the key - * - * @return string|Closure|null - */ - public static function getTranslationMessageWith($translator, string $key, ?string $locale = null, ?string $default = null); - - /** - * Initialize the default translator instance if necessary. - */ - public static function getTranslator(): TranslatorInterface; - - /** - * Get the last day of week. - * - * @param string $locale local to consider the last day of week. - * - * @return int - */ - public static function getWeekEndsAt(?string $locale = null): int; - - /** - * Get the first day of week. - * - * @return int - */ - public static function getWeekStartsAt(?string $locale = null): int; - - /** - * Get weekend days - */ - public static function getWeekendDays(): array; - - /** - * Determines if the instance is greater (after) than another - * - * @example - * ``` - * Carbon::parse('2018-07-25 12:45:16')->greaterThan('2018-07-25 12:45:15'); // true - * Carbon::parse('2018-07-25 12:45:16')->greaterThan('2018-07-25 12:45:16'); // false - * Carbon::parse('2018-07-25 12:45:16')->greaterThan('2018-07-25 12:45:17'); // false - * ``` - */ - public function greaterThan(DateTimeInterface|string $date): bool; - - /** - * Determines if the instance is greater (after) than or equal to another - * - * @example - * ``` - * Carbon::parse('2018-07-25 12:45:16')->greaterThanOrEqualTo('2018-07-25 12:45:15'); // true - * Carbon::parse('2018-07-25 12:45:16')->greaterThanOrEqualTo('2018-07-25 12:45:16'); // true - * Carbon::parse('2018-07-25 12:45:16')->greaterThanOrEqualTo('2018-07-25 12:45:17'); // false - * ``` - */ - public function greaterThanOrEqualTo(DateTimeInterface|string $date): bool; - - /** - * Determines if the instance is greater (after) than another - * - * @example - * ``` - * Carbon::parse('2018-07-25 12:45:16')->gt('2018-07-25 12:45:15'); // true - * Carbon::parse('2018-07-25 12:45:16')->gt('2018-07-25 12:45:16'); // false - * Carbon::parse('2018-07-25 12:45:16')->gt('2018-07-25 12:45:17'); // false - * ``` - * - * @see greaterThan() - */ - public function gt(DateTimeInterface|string $date): bool; - - /** - * Determines if the instance is greater (after) than or equal to another - * - * @example - * ``` - * Carbon::parse('2018-07-25 12:45:16')->gte('2018-07-25 12:45:15'); // true - * Carbon::parse('2018-07-25 12:45:16')->gte('2018-07-25 12:45:16'); // true - * Carbon::parse('2018-07-25 12:45:16')->gte('2018-07-25 12:45:17'); // false - * ``` - * - * @see greaterThanOrEqualTo() - */ - public function gte(DateTimeInterface|string $date): bool; - - /** - * Checks if the (date)time string is in a given format. - * - * @example - * ``` - * Carbon::hasFormat('11:12:45', 'h:i:s'); // true - * Carbon::hasFormat('13:12:45', 'h:i:s'); // false - * ``` - */ - public static function hasFormat(string $date, string $format): bool; - - /** - * Checks if the (date)time string is in a given format. - * - * @example - * ``` - * Carbon::hasFormatWithModifiers('31/08/2015', 'd#m#Y'); // true - * Carbon::hasFormatWithModifiers('31/08/2015', 'm#d#Y'); // false - * ``` - * - * @param string $date - * @param string $format - * - * @return bool - */ - public static function hasFormatWithModifiers(?string $date, string $format): bool; - - /** - * Checks if macro is registered globally or locally. - */ - public function hasLocalMacro(string $name): bool; - - /** - * Return true if the current instance has its own translator. - */ - public function hasLocalTranslator(): bool; - - /** - * Checks if macro is registered globally. - * - * @param string $name - * - * @return bool - */ - public static function hasMacro(string $name): bool; - - /** - * Determine if a time string will produce a relative date. - * - * @return bool true if time match a relative date, false if absolute or invalid time string - */ - public static function hasRelativeKeywords(?string $time): bool; - - /** - * Determine if there is a valid test instance set. A valid test instance - * is anything that is not null. - * - * @return bool true if there is a test instance, otherwise false - */ - public static function hasTestNow(): bool; - - /** - * Create a Carbon instance from a DateTime one. - */ - public static function instance(DateTimeInterface $date): static; - - /** - * Returns true if the current date matches the given string. - * - * @example - * ``` - * var_dump(Carbon::parse('2019-06-02 12:23:45')->is('2019')); // true - * var_dump(Carbon::parse('2019-06-02 12:23:45')->is('2018')); // false - * var_dump(Carbon::parse('2019-06-02 12:23:45')->is('2019-06')); // true - * var_dump(Carbon::parse('2019-06-02 12:23:45')->is('06-02')); // true - * var_dump(Carbon::parse('2019-06-02 12:23:45')->is('2019-06-02')); // true - * var_dump(Carbon::parse('2019-06-02 12:23:45')->is('Sunday')); // true - * var_dump(Carbon::parse('2019-06-02 12:23:45')->is('June')); // true - * var_dump(Carbon::parse('2019-06-02 12:23:45')->is('12:23')); // true - * var_dump(Carbon::parse('2019-06-02 12:23:45')->is('12:23:45')); // true - * var_dump(Carbon::parse('2019-06-02 12:23:45')->is('12:23:00')); // false - * var_dump(Carbon::parse('2019-06-02 12:23:45')->is('12h')); // true - * var_dump(Carbon::parse('2019-06-02 15:23:45')->is('3pm')); // true - * var_dump(Carbon::parse('2019-06-02 15:23:45')->is('3am')); // false - * ``` - * - * @param string $tester day name, month name, hour, date, etc. as string - */ - public function is(WeekDay|Month|string $tester): bool; - - /** - * Determines if the instance is greater (after) than another - * - * @example - * ``` - * Carbon::parse('2018-07-25 12:45:16')->isAfter('2018-07-25 12:45:15'); // true - * Carbon::parse('2018-07-25 12:45:16')->isAfter('2018-07-25 12:45:16'); // false - * Carbon::parse('2018-07-25 12:45:16')->isAfter('2018-07-25 12:45:17'); // false - * ``` - * - * @see greaterThan() - */ - public function isAfter(DateTimeInterface|string $date): bool; - - /** - * Determines if the instance is less (before) than another - * - * @example - * ``` - * Carbon::parse('2018-07-25 12:45:16')->isBefore('2018-07-25 12:45:15'); // false - * Carbon::parse('2018-07-25 12:45:16')->isBefore('2018-07-25 12:45:16'); // false - * Carbon::parse('2018-07-25 12:45:16')->isBefore('2018-07-25 12:45:17'); // true - * ``` - * - * @see lessThan() - */ - public function isBefore(DateTimeInterface|string $date): bool; - - /** - * Determines if the instance is between two others - * - * @example - * ``` - * Carbon::parse('2018-07-25')->isBetween('2018-07-14', '2018-08-01'); // true - * Carbon::parse('2018-07-25')->isBetween('2018-08-01', '2018-08-20'); // false - * Carbon::parse('2018-07-25')->isBetween('2018-07-25', '2018-08-01'); // true - * Carbon::parse('2018-07-25')->isBetween('2018-07-25', '2018-08-01', false); // false - * ``` - * - * @param bool $equal Indicates if an equal to comparison should be done - */ - public function isBetween(DateTimeInterface|string $date1, DateTimeInterface|string $date2, bool $equal = true): bool; - - /** - * Check if its the birthday. Compares the date/month values of the two dates. - * - * @example - * ``` - * Carbon::now()->subYears(5)->isBirthday(); // true - * Carbon::now()->subYears(5)->subDay()->isBirthday(); // false - * Carbon::parse('2019-06-05')->isBirthday(Carbon::parse('2001-06-05')); // true - * Carbon::parse('2019-06-05')->isBirthday(Carbon::parse('2001-06-06')); // false - * ``` - * - * @param DateTimeInterface|string|null $date The instance to compare with or null to use current day. - * - * @return bool - */ - public function isBirthday(DateTimeInterface|string|null $date = null): bool; - - /** - * Determines if the instance is in the current unit given. - * - * @example - * ``` - * Carbon::now()->isCurrentUnit('hour'); // true - * Carbon::now()->subHours(2)->isCurrentUnit('hour'); // false - * ``` - * - * @param string $unit The unit to test. - * - * @throws BadMethodCallException - */ - public function isCurrentUnit(string $unit): bool; - - /** - * Checks if this day is a specific day of the week. - * - * @example - * ``` - * Carbon::parse('2019-07-17')->isDayOfWeek(Carbon::WEDNESDAY); // true - * Carbon::parse('2019-07-17')->isDayOfWeek(Carbon::FRIDAY); // false - * Carbon::parse('2019-07-17')->isDayOfWeek('Wednesday'); // true - * Carbon::parse('2019-07-17')->isDayOfWeek('Friday'); // false - * ``` - * - * @param int|string $dayOfWeek - * - * @return bool - */ - public function isDayOfWeek($dayOfWeek): bool; - - /** - * Determines if the instance is end of century (last day by default but interval can be customized). - */ - public function isEndOfCentury(Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null): bool; - - /** - * Check if the instance is end of day. - * - * @example - * ``` - * Carbon::parse('2019-02-28 23:59:59.999999')->isEndOfDay(); // true - * Carbon::parse('2019-02-28 23:59:59.123456')->isEndOfDay(); // true - * Carbon::parse('2019-02-28 23:59:59')->isEndOfDay(); // true - * Carbon::parse('2019-02-28 23:59:58.999999')->isEndOfDay(); // false - * Carbon::parse('2019-02-28 23:59:59.999999')->isEndOfDay(true); // true - * Carbon::parse('2019-02-28 23:59:59.123456')->isEndOfDay(true); // false - * Carbon::parse('2019-02-28 23:59:59')->isEndOfDay(true); // false - * ``` - * - * @param bool $checkMicroseconds check time at microseconds precision - * @param Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval if an interval is specified it will be used as precision - * for instance with "15 minutes", it checks if current date-time - * is in the last 15 minutes of the day, with Unit::Hour, it - * checks if it's in the last hour of the day. - */ - public function isEndOfDay(Unit|DateInterval|Closure|CarbonConverterInterface|string|bool $checkMicroseconds = false, Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null): bool; - - /** - * Determines if the instance is end of decade (last day by default but interval can be customized). - */ - public function isEndOfDecade(Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null): bool; - - /** - * Determines if the instance is end of hour (last microsecond by default but interval can be customized). - */ - public function isEndOfHour(Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null): bool; - - /** - * Determines if the instance is end of millennium (last day by default but interval can be customized). - */ - public function isEndOfMillennium(Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null): bool; - - /** - * Determines if the instance is end of millisecond (last microsecond by default but interval can be customized). - */ - public function isEndOfMillisecond(Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null): bool; - - /** - * Determines if the instance is end of minute (last microsecond by default but interval can be customized). - */ - public function isEndOfMinute(Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null): bool; - - /** - * Determines if the instance is end of month (last day by default but interval can be customized). - */ - public function isEndOfMonth(Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null): bool; - - /** - * Determines if the instance is end of quarter (last day by default but interval can be customized). - */ - public function isEndOfQuarter(Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null): bool; - - /** - * Determines if the instance is end of second (last microsecond by default but interval can be customized). - */ - public function isEndOfSecond(Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null): bool; - - /** - * Returns true if the date was created using CarbonImmutable::endOfTime() - * - * @return bool - */ - public function isEndOfTime(): bool; - - /** - * Check if the instance is end of a given unit (tolerating a given interval). - * - * @example - * ``` - * // Check if a date-time is the last 15 minutes of the hour it's in - * Carbon::parse('2019-02-28 20:13:00')->isEndOfUnit(Unit::Hour, '15 minutes'); // false - * ``` - */ - public function isEndOfUnit(Unit $unit, Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null, mixed ...$params): bool; - - /** - * Determines if the instance is end of week (last day by default but interval can be customized). - * - * @example - * ``` - * Carbon::parse('2024-08-31')->endOfWeek()->isEndOfWeek(); // true - * Carbon::parse('2024-08-31')->isEndOfWeek(); // false - * ``` - */ - public function isEndOfWeek(Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null, WeekDay|int|null $weekEndsAt = null): bool; - - /** - * Determines if the instance is end of year (last day by default but interval can be customized). - */ - public function isEndOfYear(Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null): bool; - - /** - * Determines if the instance is in the future, ie. greater (after) than now. - * - * @example - * ``` - * Carbon::now()->addHours(5)->isFuture(); // true - * Carbon::now()->subHours(5)->isFuture(); // false - * ``` - */ - public function isFuture(): bool; - - /** - * Returns true if the current class/instance is immutable. - */ - public static function isImmutable(): bool; - - /** - * Check if today is the last day of the Month - * - * @example - * ``` - * Carbon::parse('2019-02-28')->isLastOfMonth(); // true - * Carbon::parse('2019-03-28')->isLastOfMonth(); // false - * Carbon::parse('2019-03-30')->isLastOfMonth(); // false - * Carbon::parse('2019-03-31')->isLastOfMonth(); // true - * Carbon::parse('2019-04-30')->isLastOfMonth(); // true - * ``` - */ - public function isLastOfMonth(): bool; - - /** - * Determines if the instance is a leap year. - * - * @example - * ``` - * Carbon::parse('2020-01-01')->isLeapYear(); // true - * Carbon::parse('2019-01-01')->isLeapYear(); // false - * ``` - */ - public function isLeapYear(): bool; - - /** - * Determines if the instance is a long year (using ISO 8601 year). - * - * @example - * ``` - * Carbon::parse('2015-01-01')->isLongIsoYear(); // true - * Carbon::parse('2016-01-01')->isLongIsoYear(); // true - * Carbon::parse('2016-01-03')->isLongIsoYear(); // false - * Carbon::parse('2019-12-29')->isLongIsoYear(); // false - * Carbon::parse('2019-12-30')->isLongIsoYear(); // true - * ``` - * - * @see https://en.wikipedia.org/wiki/ISO_8601#Week_dates - */ - public function isLongIsoYear(): bool; - - /** - * Determines if the instance is a long year (using calendar year). - * - * ⚠️ This method completely ignores month and day to use the numeric year number, - * it's not correct if the exact date matters. For instance as `2019-12-30` is already - * in the first week of the 2020 year, if you want to know from this date if ISO week - * year 2020 is a long year, use `isLongIsoYear` instead. - * - * @example - * ``` - * Carbon::create(2015)->isLongYear(); // true - * Carbon::create(2016)->isLongYear(); // false - * ``` - * - * @see https://en.wikipedia.org/wiki/ISO_8601#Week_dates - */ - public function isLongYear(): bool; - - /** - * Check if the instance is midday. - * - * @example - * ``` - * Carbon::parse('2019-02-28 11:59:59.999999')->isMidday(); // false - * Carbon::parse('2019-02-28 12:00:00')->isMidday(); // true - * Carbon::parse('2019-02-28 12:00:00.999999')->isMidday(); // true - * Carbon::parse('2019-02-28 12:00:01')->isMidday(); // false - * ``` - */ - public function isMidday(): bool; - - /** - * Check if the instance is start of day / midnight. - * - * @example - * ``` - * Carbon::parse('2019-02-28 00:00:00')->isMidnight(); // true - * Carbon::parse('2019-02-28 00:00:00.999999')->isMidnight(); // true - * Carbon::parse('2019-02-28 00:00:01')->isMidnight(); // false - * ``` - */ - public function isMidnight(): bool; - - /** - * Returns true if a property can be changed via setter. - * - * @param string $unit - * - * @return bool - */ - public static function isModifiableUnit($unit): bool; - - /** - * Returns true if the current class/instance is mutable. - */ - public static function isMutable(): bool; - - /** - * Determines if the instance is in the past, ie. less (before) than now. - * - * @example - * ``` - * Carbon::now()->subHours(5)->isPast(); // true - * Carbon::now()->addHours(5)->isPast(); // false - * ``` - */ - public function isPast(): bool; - - /** - * Compares the formatted values of the two dates. - * - * @example - * ``` - * Carbon::parse('2019-06-13')->isSameAs('Y-d', Carbon::parse('2019-12-13')); // true - * Carbon::parse('2019-06-13')->isSameAs('Y-d', Carbon::parse('2019-06-14')); // false - * ``` - * - * @param string $format date formats to compare. - * @param DateTimeInterface|string $date instance to compare with or null to use current day. - */ - public function isSameAs(string $format, DateTimeInterface|string $date): bool; - - /** - * Checks if the passed in date is in the same month as the instance´s month. - * - * @example - * ``` - * Carbon::parse('2019-01-12')->isSameMonth(Carbon::parse('2019-01-01')); // true - * Carbon::parse('2019-01-12')->isSameMonth(Carbon::parse('2019-02-01')); // false - * Carbon::parse('2019-01-12')->isSameMonth(Carbon::parse('2018-01-01')); // false - * Carbon::parse('2019-01-12')->isSameMonth(Carbon::parse('2018-01-01'), false); // true - * ``` - * - * @param DateTimeInterface|string $date The instance to compare with or null to use the current date. - * @param bool $ofSameYear Check if it is the same month in the same year. - * - * @return bool - */ - public function isSameMonth(DateTimeInterface|string $date, bool $ofSameYear = true): bool; - - /** - * Checks if the passed in date is in the same quarter as the instance quarter (and year if needed). - * - * @example - * ``` - * Carbon::parse('2019-01-12')->isSameQuarter(Carbon::parse('2019-03-01')); // true - * Carbon::parse('2019-01-12')->isSameQuarter(Carbon::parse('2019-04-01')); // false - * Carbon::parse('2019-01-12')->isSameQuarter(Carbon::parse('2018-03-01')); // false - * Carbon::parse('2019-01-12')->isSameQuarter(Carbon::parse('2018-03-01'), false); // true - * ``` - * - * @param DateTimeInterface|string $date The instance to compare with or null to use current day. - * @param bool $ofSameYear Check if it is the same month in the same year. - * - * @return bool - */ - public function isSameQuarter(DateTimeInterface|string $date, bool $ofSameYear = true): bool; - - /** - * Determines if the instance is in the current unit given. - * - * @example - * ``` - * Carbon::parse('2019-01-13')->isSameUnit('year', Carbon::parse('2019-12-25')); // true - * Carbon::parse('2018-12-13')->isSameUnit('year', Carbon::parse('2019-12-25')); // false - * ``` - * - * @param string $unit singular unit string - * @param DateTimeInterface|string $date instance to compare with or null to use current day. - * - * @throws BadComparisonUnitException - * - * @return bool - */ - public function isSameUnit(string $unit, DateTimeInterface|string $date): bool; - - /** - * Determines if the instance is start of century (first day by default but interval can be customized). - */ - public function isStartOfCentury(Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null): bool; - - /** - * Check if the instance is start of day / midnight. - * - * @example - * ``` - * Carbon::parse('2019-02-28 00:00:00')->isStartOfDay(); // true - * Carbon::parse('2019-02-28 00:00:00.999999')->isStartOfDay(); // true - * Carbon::parse('2019-02-28 00:00:01')->isStartOfDay(); // false - * Carbon::parse('2019-02-28 00:00:00.000000')->isStartOfDay(true); // true - * Carbon::parse('2019-02-28 00:00:00.000012')->isStartOfDay(true); // false - * ``` - * - * @param bool $checkMicroseconds check time at microseconds precision - * @param Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval if an interval is specified it will be used as precision - * for instance with "15 minutes", it checks if current date-time - * is in the last 15 minutes of the day, with Unit::Hour, it - * checks if it's in the last hour of the day. - */ - public function isStartOfDay(Unit|DateInterval|Closure|CarbonConverterInterface|string|bool $checkMicroseconds = false, Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null): bool; - - /** - * Determines if the instance is start of decade (first day by default but interval can be customized). - */ - public function isStartOfDecade(Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null): bool; - - /** - * Determines if the instance is start of hour (first microsecond by default but interval can be customized). - */ - public function isStartOfHour(Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null): bool; - - /** - * Determines if the instance is start of millennium (first day by default but interval can be customized). - */ - public function isStartOfMillennium(Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null): bool; - - /** - * Determines if the instance is start of millisecond (first microsecond by default but interval can be customized). - */ - public function isStartOfMillisecond(Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null): bool; - - /** - * Determines if the instance is start of minute (first microsecond by default but interval can be customized). - */ - public function isStartOfMinute(Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null): bool; - - /** - * Determines if the instance is start of month (first day by default but interval can be customized). - */ - public function isStartOfMonth(Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null): bool; - - /** - * Determines if the instance is start of quarter (first day by default but interval can be customized). - */ - public function isStartOfQuarter(Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null): bool; - - /** - * Determines if the instance is start of second (first microsecond by default but interval can be customized). - */ - public function isStartOfSecond(Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null): bool; - - /** - * Returns true if the date was created using CarbonImmutable::startOfTime() - * - * @return bool - */ - public function isStartOfTime(): bool; - - /** - * Check if the instance is start of a given unit (tolerating a given interval). - * - * @example - * ``` - * // Check if a date-time is the first 15 minutes of the hour it's in - * Carbon::parse('2019-02-28 20:13:00')->isStartOfUnit(Unit::Hour, '15 minutes'); // true - * ``` - */ - public function isStartOfUnit(Unit $unit, Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null, mixed ...$params): bool; - - /** - * Determines if the instance is start of week (first day by default but interval can be customized). - * - * @example - * ``` - * Carbon::parse('2024-08-31')->startOfWeek()->isStartOfWeek(); // true - * Carbon::parse('2024-08-31')->isStartOfWeek(); // false - * ``` - */ - public function isStartOfWeek(Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null, WeekDay|int|null $weekStartsAt = null): bool; - - /** - * Determines if the instance is start of year (first day by default but interval can be customized). - */ - public function isStartOfYear(Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null): bool; - - /** - * Returns true if the strict mode is globally in use, false else. - * (It can be overridden in specific instances.) - * - * @return bool - */ - public static function isStrictModeEnabled(): bool; - - /** - * Determines if the instance is today. - * - * @example - * ``` - * Carbon::today()->isToday(); // true - * Carbon::tomorrow()->isToday(); // false - * ``` - */ - public function isToday(): bool; - - /** - * Determines if the instance is tomorrow. - * - * @example - * ``` - * Carbon::tomorrow()->isTomorrow(); // true - * Carbon::yesterday()->isTomorrow(); // false - * ``` - */ - public function isTomorrow(): bool; - - /** - * Determines if the instance is a weekday. - * - * @example - * ``` - * Carbon::parse('2019-07-14')->isWeekday(); // false - * Carbon::parse('2019-07-15')->isWeekday(); // true - * ``` - */ - public function isWeekday(): bool; - - /** - * Determines if the instance is a weekend day. - * - * @example - * ``` - * Carbon::parse('2019-07-14')->isWeekend(); // true - * Carbon::parse('2019-07-15')->isWeekend(); // false - * ``` - */ - public function isWeekend(): bool; - - /** - * Determines if the instance is yesterday. - * - * @example - * ``` - * Carbon::yesterday()->isYesterday(); // true - * Carbon::tomorrow()->isYesterday(); // false - * ``` - */ - public function isYesterday(): bool; - - /** - * Format in the current language using ISO replacement patterns. - * - * @param string|null $originalFormat provide context if a chunk has been passed alone - */ - public function isoFormat(string $format, ?string $originalFormat = null): string; - - /** - * Get/set the week number using given first day of week and first - * day of year included in the first week. Or use ISO format if no settings - * given. - * - * @param int|null $week - * @param int|null $dayOfWeek - * @param int|null $dayOfYear - * - * @return int|static - */ - public function isoWeek($week = null, $dayOfWeek = null, $dayOfYear = null); - - /** - * Set/get the week number of year using given first day of week and first - * day of year included in the first week. Or use ISO format if no settings - * given. - * - * @param int|null $year if null, act as a getter, if not null, set the year and return current instance. - * @param int|null $dayOfWeek first date of week from 0 (Sunday) to 6 (Saturday) - * @param int|null $dayOfYear first day of year included in the week #1 - * - * @return int|static - */ - public function isoWeekYear($year = null, $dayOfWeek = null, $dayOfYear = null); - - /** - * Get/set the ISO weekday from 1 (Monday) to 7 (Sunday). - * - * @param WeekDay|int|null $value new value for weekday if using as setter. - */ - public function isoWeekday(WeekDay|int|null $value = null): static|int; - - /** - * Get the number of weeks of the current week-year using given first day of week and first - * day of year included in the first week. Or use ISO format if no settings - * given. - * - * @param int|null $dayOfWeek first date of week from 0 (Sunday) to 6 (Saturday) - * @param int|null $dayOfYear first day of year included in the week #1 - * - * @return int - */ - public function isoWeeksInYear($dayOfWeek = null, $dayOfYear = null); - - /** - * Prepare the object for JSON serialization. - */ - public function jsonSerialize(): mixed; - - /** - * Modify to the last occurrence of a given day of the week - * in the current month. If no dayOfWeek is provided, modify to the - * last day of the current month. Use the supplied constants - * to indicate the desired dayOfWeek, ex. static::MONDAY. - * - * @param int|null $dayOfWeek - * - * @return static - */ - public function lastOfMonth($dayOfWeek = null); - - /** - * Modify to the last occurrence of a given day of the week - * in the current quarter. If no dayOfWeek is provided, modify to the - * last day of the current quarter. Use the supplied constants - * to indicate the desired dayOfWeek, ex. static::MONDAY. - * - * @param int|null $dayOfWeek day of the week default null - * - * @return static - */ - public function lastOfQuarter($dayOfWeek = null); - - /** - * Modify to the last occurrence of a given day of the week - * in the current year. If no dayOfWeek is provided, modify to the - * last day of the current year. Use the supplied constants - * to indicate the desired dayOfWeek, ex. static::MONDAY. - * - * @param int|null $dayOfWeek day of the week default null - * - * @return static - */ - public function lastOfYear($dayOfWeek = null); - - /** - * Determines if the instance is less (before) than another - * - * @example - * ``` - * Carbon::parse('2018-07-25 12:45:16')->lessThan('2018-07-25 12:45:15'); // false - * Carbon::parse('2018-07-25 12:45:16')->lessThan('2018-07-25 12:45:16'); // false - * Carbon::parse('2018-07-25 12:45:16')->lessThan('2018-07-25 12:45:17'); // true - * ``` - */ - public function lessThan(DateTimeInterface|string $date): bool; - - /** - * Determines if the instance is less (before) or equal to another - * - * @example - * ``` - * Carbon::parse('2018-07-25 12:45:16')->lessThanOrEqualTo('2018-07-25 12:45:15'); // false - * Carbon::parse('2018-07-25 12:45:16')->lessThanOrEqualTo('2018-07-25 12:45:16'); // true - * Carbon::parse('2018-07-25 12:45:16')->lessThanOrEqualTo('2018-07-25 12:45:17'); // true - * ``` - */ - public function lessThanOrEqualTo(DateTimeInterface|string $date): bool; - - /** - * Get/set the locale for the current instance. - * - * @param string|null $locale - * @param string ...$fallbackLocales - * - * @return $this|string - */ - public function locale(?string $locale = null, string ...$fallbackLocales): static|string; - - /** - * Returns true if the given locale is internally supported and has words for 1-day diff (just now, yesterday, tomorrow). - * Support is considered enabled if the 3 words are translated in the given locale. - * - * @param string $locale locale ex. en - * - * @return bool - */ - public static function localeHasDiffOneDayWords(string $locale): bool; - - /** - * Returns true if the given locale is internally supported and has diff syntax support (ago, from now, before, after). - * Support is considered enabled if the 4 sentences are translated in the given locale. - * - * @param string $locale locale ex. en - * - * @return bool - */ - public static function localeHasDiffSyntax(string $locale): bool; - - /** - * Returns true if the given locale is internally supported and has words for 2-days diff (before yesterday, after tomorrow). - * Support is considered enabled if the 2 words are translated in the given locale. - * - * @param string $locale locale ex. en - * - * @return bool - */ - public static function localeHasDiffTwoDayWords(string $locale): bool; - - /** - * Returns true if the given locale is internally supported and has period syntax support (X times, every X, from X, to X). - * Support is considered enabled if the 4 sentences are translated in the given locale. - * - * @param string $locale locale ex. en - * - * @return bool - */ - public static function localeHasPeriodSyntax($locale); - - /** - * Returns true if the given locale is internally supported and has short-units support. - * Support is considered enabled if either year, day or hour has a short variant translated. - * - * @param string $locale locale ex. en - * - * @return bool - */ - public static function localeHasShortUnits(string $locale): bool; - - /** - * Determines if the instance is less (before) than another - * - * @example - * ``` - * Carbon::parse('2018-07-25 12:45:16')->lt('2018-07-25 12:45:15'); // false - * Carbon::parse('2018-07-25 12:45:16')->lt('2018-07-25 12:45:16'); // false - * Carbon::parse('2018-07-25 12:45:16')->lt('2018-07-25 12:45:17'); // true - * ``` - * - * @see lessThan() - */ - public function lt(DateTimeInterface|string $date): bool; - - /** - * Determines if the instance is less (before) or equal to another - * - * @example - * ``` - * Carbon::parse('2018-07-25 12:45:16')->lte('2018-07-25 12:45:15'); // false - * Carbon::parse('2018-07-25 12:45:16')->lte('2018-07-25 12:45:16'); // true - * Carbon::parse('2018-07-25 12:45:16')->lte('2018-07-25 12:45:17'); // true - * ``` - * - * @see lessThanOrEqualTo() - */ - public function lte(DateTimeInterface|string $date): bool; - - /** - * Register a custom macro. - * - * Pass null macro to remove it. - * - * @example - * ``` - * $userSettings = [ - * 'locale' => 'pt', - * 'timezone' => 'America/Sao_Paulo', - * ]; - * Carbon::macro('userFormat', function () use ($userSettings) { - * return $this->copy()->locale($userSettings['locale'])->tz($userSettings['timezone'])->calendar(); - * }); - * echo Carbon::yesterday()->hours(11)->userFormat(); - * ``` - */ - public static function macro(string $name, ?callable $macro): void; - - /** - * Make a Carbon instance from given variable if possible. - * - * Always return a new instance. Parse only strings and only these likely to be dates (skip intervals - * and recurrences). Throw an exception for invalid format, but otherwise return null. - * - * @param mixed $var - * - * @throws InvalidFormatException - * - * @return static|null - */ - public static function make($var, DateTimeZone|string|null $timezone = null); - - /** - * Get the maximum instance between a given instance (default now) and the current instance. - * - * @param \Carbon\Carbon|\DateTimeInterface|mixed $date - * - * @return static - */ - public function max($date = null); - - /** - * Get the maximum instance between a given instance (default now) and the current instance. - * - * @param \Carbon\Carbon|\DateTimeInterface|mixed $date - * - * @see max() - * - * @return static - */ - public function maximum($date = null); - - /** - * Return the meridiem of the current time in the current locale. - * - * @param bool $isLower if true, returns lowercase variant if available in the current locale. - */ - public function meridiem(bool $isLower = false): string; - - /** - * Modify to midday, default to self::$midDayAt - * - * @return static - */ - public function midDay(); - - /** - * Get the minimum instance between a given instance (default now) and the current instance. - * - * @param \Carbon\Carbon|\DateTimeInterface|mixed $date - * - * @return static - */ - public function min($date = null); - - /** - * Get the minimum instance between a given instance (default now) and the current instance. - * - * @param \Carbon\Carbon|\DateTimeInterface|mixed $date - * - * @see min() - * - * @return static - */ - public function minimum($date = null); - - /** - * Mix another object into the class. - * - * @example - * ``` - * Carbon::mixin(new class { - * public function addMoon() { - * return function () { - * return $this->addDays(30); - * }; - * } - * public function subMoon() { - * return function () { - * return $this->subDays(30); - * }; - * } - * }); - * $fullMoon = Carbon::create('2018-12-22'); - * $nextFullMoon = $fullMoon->addMoon(); - * $blackMoon = Carbon::create('2019-01-06'); - * $previousBlackMoon = $blackMoon->subMoon(); - * echo "$nextFullMoon\n"; - * echo "$previousBlackMoon\n"; - * ``` - * - * @throws ReflectionException - */ - public static function mixin(object|string $mixin): void; - - /** - * Calls \DateTime::modify if mutable or \DateTimeImmutable::modify else. - * - * @see https://php.net/manual/en/datetime.modify.php - * - * @return static - */ - #[ReturnTypeWillChange] - public function modify($modify); - - /** - * Determines if the instance is not equal to another - * - * @example - * ``` - * Carbon::parse('2018-07-25 12:45:16')->ne('2018-07-25 12:45:16'); // false - * Carbon::parse('2018-07-25 12:45:16')->ne(Carbon::parse('2018-07-25 12:45:16')); // false - * Carbon::parse('2018-07-25 12:45:16')->ne('2018-07-25 12:45:17'); // true - * ``` - * - * @see notEqualTo() - */ - public function ne(DateTimeInterface|string $date): bool; - - /** - * Modify to the next occurrence of a given modifier such as a day of - * the week. If no modifier is provided, modify to the next occurrence - * of the current day of the week. Use the supplied constants - * to indicate the desired dayOfWeek, ex. static::MONDAY. - * - * @param string|int|null $modifier - * - * @return static - */ - public function next($modifier = null); - - /** - * Go forward to the next weekday. - * - * @return static - */ - public function nextWeekday(); - - /** - * Go forward to the next weekend day. - * - * @return static - */ - public function nextWeekendDay(); - - /** - * Determines if the instance is not equal to another - * - * @example - * ``` - * Carbon::parse('2018-07-25 12:45:16')->notEqualTo('2018-07-25 12:45:16'); // false - * Carbon::parse('2018-07-25 12:45:16')->notEqualTo(Carbon::parse('2018-07-25 12:45:16')); // false - * Carbon::parse('2018-07-25 12:45:16')->notEqualTo('2018-07-25 12:45:17'); // true - * ``` - */ - public function notEqualTo(DateTimeInterface|string $date): bool; - - /** - * Get a Carbon instance for the current date and time. - */ - public static function now(DateTimeZone|string|int|null $timezone = null): static; - - /** - * Returns a present instance in the same timezone. - * - * @return static - */ - public function nowWithSameTz(): static; - - /** - * Modify to the given occurrence of a given day of the week - * in the current month. If the calculated occurrence is outside the scope - * of the current month, then return false and no modifications are made. - * Use the supplied constants to indicate the desired dayOfWeek, ex. static::MONDAY. - * - * @param int $nth - * @param int $dayOfWeek - * - * @return mixed - */ - public function nthOfMonth($nth, $dayOfWeek); - - /** - * Modify to the given occurrence of a given day of the week - * in the current quarter. If the calculated occurrence is outside the scope - * of the current quarter, then return false and no modifications are made. - * Use the supplied constants to indicate the desired dayOfWeek, ex. static::MONDAY. - * - * @param int $nth - * @param int $dayOfWeek - * - * @return mixed - */ - public function nthOfQuarter($nth, $dayOfWeek); - - /** - * Modify to the given occurrence of a given day of the week - * in the current year. If the calculated occurrence is outside the scope - * of the current year, then return false and no modifications are made. - * Use the supplied constants to indicate the desired dayOfWeek, ex. static::MONDAY. - * - * @param int $nth - * @param int $dayOfWeek - * - * @return mixed - */ - public function nthOfYear($nth, $dayOfWeek); - - /** - * Return a property with its ordinal. - */ - public function ordinal(string $key, ?string $period = null): string; - - /** - * Create a carbon instance from a string. - * - * This is an alias for the constructor that allows better fluent syntax - * as it allows you to do Carbon::parse('Monday next week')->fn() rather - * than (new Carbon('Monday next week'))->fn(). - * - * @throws InvalidFormatException - */ - public static function parse(DateTimeInterface|WeekDay|Month|string|int|float|null $time, DateTimeZone|string|int|null $timezone = null): static; - - /** - * Create a carbon instance from a localized string (in French, Japanese, Arabic, etc.). - * - * @param string $time date/time string in the given language (may also contain English). - * @param string|null $locale if locale is null or not specified, current global locale will be - * used instead. - * @param DateTimeZone|string|int|null $timezone optional timezone for the new instance. - * - * @throws InvalidFormatException - */ - public static function parseFromLocale(string $time, ?string $locale = null, DateTimeZone|string|int|null $timezone = null): static; - - /** - * Returns standardized plural of a given singular/plural unit name (in English). - */ - public static function pluralUnit(string $unit): string; - - /** - * Modify to the previous occurrence of a given modifier such as a day of - * the week. If no dayOfWeek is provided, modify to the previous occurrence - * of the current day of the week. Use the supplied constants - * to indicate the desired dayOfWeek, ex. static::MONDAY. - * - * @param string|int|null $modifier - * - * @return static - */ - public function previous($modifier = null); - - /** - * Go backward to the previous weekday. - * - * @return static - */ - public function previousWeekday(); - - /** - * Go backward to the previous weekend day. - * - * @return static - */ - public function previousWeekendDay(); - - /** - * Create a iterable CarbonPeriod object from current date to a given end date (and optional interval). - * - * @param \DateTimeInterface|Carbon|CarbonImmutable|null $end period end date - * @param int|\DateInterval|string|null $interval period default interval or number of the given $unit - * @param string|null $unit if specified, $interval must be an integer - */ - public function range($end = null, $interval = null, $unit = null): CarbonPeriod; - - /** - * Call native PHP DateTime/DateTimeImmutable add() method. - * - * @param DateInterval $interval - * - * @return static - */ - public function rawAdd(DateInterval $interval): static; - - /** - * Create a Carbon instance from a specific format. - * - * @param string $format Datetime format - * @param string $time - * @param DateTimeZone|string|int|null $timezone - * - * @throws InvalidFormatException - * - * @return static|null - */ - public static function rawCreateFromFormat(string $format, string $time, $timezone = null); - - /** - * @see https://php.net/manual/en/datetime.format.php - */ - public function rawFormat(string $format): string; - - /** - * Create a carbon instance from a string. - * - * This is an alias for the constructor that allows better fluent syntax - * as it allows you to do Carbon::parse('Monday next week')->fn() rather - * than (new Carbon('Monday next week'))->fn(). - * - * @throws InvalidFormatException - */ - public static function rawParse(DateTimeInterface|WeekDay|Month|string|int|float|null $time, DateTimeZone|string|int|null $timezone = null): static; - - /** - * Call native PHP DateTime/DateTimeImmutable sub() method. - */ - public function rawSub(DateInterval $interval): static; - - /** - * Remove all macros and generic macros. - */ - public static function resetMacros(): void; - - /** - * @deprecated To avoid conflict between different third-party libraries, static setters should not be used. - * You should rather use the ->settings() method. - * Or you can use method variants: addMonthsWithOverflow/addMonthsNoOverflow, same variants - * are available for quarters, years, decade, centuries, millennia (singular and plural forms). - * @see settings - * - * Reset the month overflow behavior. - * - * @return void - */ - public static function resetMonthsOverflow(): void; - - /** - * Reset the format used to the default when type juggling a Carbon instance to a string - * - * @return void - */ - public static function resetToStringFormat(): void; - - /** - * @deprecated To avoid conflict between different third-party libraries, static setters should not be used. - * You should rather use the ->settings() method. - * Or you can use method variants: addYearsWithOverflow/addYearsNoOverflow, same variants - * are available for quarters, years, decade, centuries, millennia (singular and plural forms). - * @see settings - * - * Reset the month overflow behavior. - * - * @return void - */ - public static function resetYearsOverflow(): void; - - /** - * Round the current instance second with given precision if specified. - */ - public function round(DateInterval|string|int|float $precision = 1, callable|string $function = 'round'): static; - - /** - * Round the current instance at the given unit with given precision if specified and the given function. - */ - public function roundUnit(string $unit, DateInterval|string|int|float $precision = 1, callable|string $function = 'round'): static; - - /** - * Round the current instance week. - * - * @param WeekDay|int|null $weekStartsAt optional start allow you to specify the day of week to use to start the week - */ - public function roundWeek(WeekDay|int|null $weekStartsAt = null): static; - - /** - * The number of seconds since midnight. - * - * @return float - */ - public function secondsSinceMidnight(): float; - - /** - * The number of seconds until 23:59:59. - * - * @return float - */ - public function secondsUntilEndOfDay(): float; - - /** - * Return a serialized string of the instance. - */ - public function serialize(): string; - - /** - * @deprecated To avoid conflict between different third-party libraries, static setters should not be used. - * You should rather transform Carbon object before the serialization. - * - * JSON serialize all Carbon instances using the given callback. - */ - public static function serializeUsing(callable|string|null $format): void; - - /** - * Set a part of the Carbon object. - * - * @throws ImmutableException|UnknownSetterException - * - * @return $this - */ - public function set(Unit|array|string $name, DateTimeZone|Month|string|int|float|null $value = null): static; - - /** - * Set the date with gregorian year, month and day numbers. - * - * @see https://php.net/manual/en/datetime.setdate.php - */ - public function setDate(int $year, int $month, int $day): static; - - /** - * Set the year, month, and date for this instance to that of the passed instance. - */ - public function setDateFrom(DateTimeInterface|string $date): static; - - /** - * Set the date and time all together. - */ - public function setDateTime(int $year, int $month, int $day, int $hour, int $minute, int $second = 0, int $microseconds = 0): static; - - /** - * Set the date and time for this instance to that of the passed instance. - */ - public function setDateTimeFrom(DateTimeInterface|string $date): static; - - /** - * Set the day (keeping the current time) to the start of the week + the number of days passed as the first - * parameter. First day of week is driven by the locale unless explicitly set with the second parameter. - * - * @param int $numberOfDays number of days to add after the start of the current week - * @param WeekDay|int|null $weekStartsAt optional start allow you to specify the day of week to use to start the week, - * if not provided, start of week is inferred from the locale - * (Sunday for en_US, Monday for de_DE, etc.) - */ - public function setDaysFromStartOfWeek(int $numberOfDays, WeekDay|int|null $weekStartsAt = null): static; - - /** - * Set the fallback locale. - * - * @see https://symfony.com/doc/current/components/translation.html#fallback-locales - * - * @param string $locale - */ - public static function setFallbackLocale(string $locale): void; - - /** - * @deprecated To avoid conflict between different third-party libraries, static setters should not be used. - * You should rather use the ->settings() method. - * @see settings - */ - public static function setHumanDiffOptions(int $humanDiffOptions): void; - - /** - * Set a date according to the ISO 8601 standard - using weeks and day offsets rather than specific dates. - * - * @see https://php.net/manual/en/datetime.setisodate.php - */ - public function setISODate(int $year, int $week, int $day = 1): static; - - /** - * Set the translator for the current instance. - */ - public function setLocalTranslator(TranslatorInterface $translator); - - /** - * Set the current translator locale and indicate if the source locale file exists. - * Pass 'auto' as locale to use the closest language to the current LC_TIME locale. - * - * @param string $locale locale ex. en - */ - public static function setLocale(string $locale): void; - - /** - * @deprecated To avoid conflict between different third-party libraries, static setters should not be used. - * You should rather consider mid-day is always 12pm, then if you need to test if it's an other - * hour, test it explicitly: - * $date->format('G') == 13 - * or to set explicitly to a given hour: - * $date->setTime(13, 0, 0, 0) - * - * Set midday/noon hour - * - * @param int $hour midday hour - * - * @return void - */ - public static function setMidDayAt($hour); - - /** - * Set a Carbon instance (real or mock) to be returned when a "now" - * instance is created. The provided instance will be returned - * specifically under the following conditions: - * - A call to the static now() method, ex. Carbon::now() - * - When a null (or blank string) is passed to the constructor or parse(), ex. new Carbon(null) - * - When the string "now" is passed to the constructor or parse(), ex. new Carbon('now') - * - When a string containing the desired time is passed to Carbon::parse(). - * - * Note the timezone parameter was left out of the examples above and - * has no affect as the mock value will be returned regardless of its value. - * - * Only the moment is mocked with setTestNow(), the timezone will still be the one passed - * as parameter of date_default_timezone_get() as a fallback (see setTestNowAndTimezone()). - * - * To clear the test instance call this method using the default - * parameter of null. - * - * /!\ Use this method for unit tests only. - * - * @param DateTimeInterface|Closure|static|string|false|null $testNow real or mock Carbon instance - */ - public static function setTestNow(mixed $testNow = null): void; - - /** - * Set a Carbon instance (real or mock) to be returned when a "now" - * instance is created. The provided instance will be returned - * specifically under the following conditions: - * - A call to the static now() method, ex. Carbon::now() - * - When a null (or blank string) is passed to the constructor or parse(), ex. new Carbon(null) - * - When the string "now" is passed to the constructor or parse(), ex. new Carbon('now') - * - When a string containing the desired time is passed to Carbon::parse(). - * - * It will also align default timezone (e.g. call date_default_timezone_set()) with - * the second argument or if null, with the timezone of the given date object. - * - * To clear the test instance call this method using the default - * parameter of null. - * - * /!\ Use this method for unit tests only. - * - * @param DateTimeInterface|Closure|static|string|false|null $testNow real or mock Carbon instance - */ - public static function setTestNowAndTimezone($testNow = null, $timezone = null): void; - - /** - * Resets the current time of the DateTime object to a different time. - * - * @see https://php.net/manual/en/datetime.settime.php - */ - public function setTime(int $hour, int $minute, int $second = 0, int $microseconds = 0): static; - - /** - * Set the hour, minute, second and microseconds for this instance to that of the passed instance. - */ - public function setTimeFrom(DateTimeInterface|string $date): static; - - /** - * Set the time by time string. - */ - public function setTimeFromTimeString(string $time): static; - - /** - * Set the instance's timestamp. - * - * Timestamp input can be given as int, float or a string containing one or more numbers. - */ - public function setTimestamp(string|int|float $timestamp): static; - - /** - * Set the instance's timezone from a string or object. - */ - public function setTimezone(DateTimeZone|string|int $timeZone): static; - - /** - * @deprecated To avoid conflict between different third-party libraries, static setters should not be used. - * You should rather let Carbon object being cast to string with DEFAULT_TO_STRING_FORMAT, and - * use other method or custom format passed to format() method if you need to dump another string - * format. - * - * Set the default format used when type juggling a Carbon instance to a string. - * - * @param string|Closure|null $format - * - * @return void - */ - public static function setToStringFormat(Closure|string|null $format): void; - - /** - * Set the default translator instance to use. - * - * @param TranslatorInterface $translator - * - * @return void - */ - public static function setTranslator(TranslatorInterface $translator): void; - - /** - * Set specified unit to new given value. - * - * @param string $unit year, month, day, hour, minute, second or microsecond - * @param Month|int $value new value for given unit - */ - public function setUnit(string $unit, Month|int|float|null $value = null): static; - - /** - * Set any unit to a new value without overflowing current other unit given. - * - * @param string $valueUnit unit name to modify - * @param int $value new value for the input unit - * @param string $overflowUnit unit name to not overflow - */ - public function setUnitNoOverflow(string $valueUnit, int $value, string $overflowUnit): static; - - /** - * @deprecated To avoid conflict between different third-party libraries, static setters should not be used. - * You should rather consider week-end is always saturday and sunday, and if you have some custom - * week-end days to handle, give to those days an other name and create a macro for them: - * - * ``` - * Carbon::macro('isDayOff', function ($date) { - * return $date->isSunday() || $date->isMonday(); - * }); - * Carbon::macro('isNotDayOff', function ($date) { - * return !$date->isDayOff(); - * }); - * if ($someDate->isDayOff()) ... - * if ($someDate->isNotDayOff()) ... - * // Add 5 not-off days - * $count = 5; - * while ($someDate->isDayOff() || ($count-- > 0)) { - * $someDate->addDay(); - * } - * ``` - * - * Set weekend days - */ - public static function setWeekendDays(array $days): void; - - /** - * Set specific options. - * - strictMode: true|false|null - * - monthOverflow: true|false|null - * - yearOverflow: true|false|null - * - humanDiffOptions: int|null - * - toStringFormat: string|Closure|null - * - toJsonFormat: string|Closure|null - * - locale: string|null - * - timezone: \DateTimeZone|string|int|null - * - macros: array|null - * - genericMacros: array|null - * - * @param array $settings - * - * @return $this|static - */ - public function settings(array $settings): static; - - /** - * Set the instance's timezone from a string or object and add/subtract the offset difference. - */ - public function shiftTimezone(DateTimeZone|string $value): static; - - /** - * Get the month overflow global behavior (can be overridden in specific instances). - * - * @return bool - */ - public static function shouldOverflowMonths(): bool; - - /** - * Get the month overflow global behavior (can be overridden in specific instances). - * - * @return bool - */ - public static function shouldOverflowYears(): bool; - - /** - * @alias diffForHumans - * - * Get the difference in a human readable format in the current locale from current instance to an other - * instance given (or now if null given). - */ - public function since($other = null, $syntax = null, $short = false, $parts = 1, $options = null); - - /** - * Returns standardized singular of a given singular/plural unit name (in English). - */ - public static function singularUnit(string $unit): string; - - public static function sleep(int|float $seconds): void; - - /** - * Modify to start of current given unit. - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16.334455') - * ->startOf(Unit::Month) - * ->endOf(Unit::Week, Carbon::FRIDAY); - * ``` - */ - public function startOf(Unit|string $unit, mixed ...$params): static; - - /** - * Resets the date to the first day of the century and the time to 00:00:00 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->startOfCentury(); - * ``` - * - * @return static - */ - public function startOfCentury(); - - /** - * Resets the time to 00:00:00 start of day - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->startOfDay(); - * ``` - * - * @return static - */ - public function startOfDay(); - - /** - * Resets the date to the first day of the decade and the time to 00:00:00 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->startOfDecade(); - * ``` - * - * @return static - */ - public function startOfDecade(); - - /** - * Modify to start of current hour, minutes and seconds become 0 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->startOfHour(); - * ``` - */ - public function startOfHour(): static; - - /** - * Resets the date to the first day of the millennium and the time to 00:00:00 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->startOfMillennium(); - * ``` - * - * @return static - */ - public function startOfMillennium(); - - /** - * Modify to start of current millisecond, microseconds such as 12345 become 123000 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16.334455') - * ->startOfSecond() - * ->format('H:i:s.u'); - * ``` - */ - public function startOfMillisecond(): static; - - /** - * Modify to start of current minute, seconds become 0 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->startOfMinute(); - * ``` - */ - public function startOfMinute(): static; - - /** - * Resets the date to the first day of the month and the time to 00:00:00 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->startOfMonth(); - * ``` - * - * @return static - */ - public function startOfMonth(); - - /** - * Resets the date to the first day of the quarter and the time to 00:00:00 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->startOfQuarter(); - * ``` - * - * @return static - */ - public function startOfQuarter(); - - /** - * Modify to start of current second, microseconds become 0 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16.334455') - * ->startOfSecond() - * ->format('H:i:s.u'); - * ``` - */ - public function startOfSecond(): static; - - /** - * Resets the date to the first day of week (defined in $weekStartsAt) and the time to 00:00:00 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->startOfWeek() . "\n"; - * echo Carbon::parse('2018-07-25 12:45:16')->locale('ar')->startOfWeek() . "\n"; - * echo Carbon::parse('2018-07-25 12:45:16')->startOfWeek(Carbon::SUNDAY) . "\n"; - * ``` - * - * @param WeekDay|int|null $weekStartsAt optional start allow you to specify the day of week to use to start the week - * - * @return static - */ - public function startOfWeek(WeekDay|int|null $weekStartsAt = null): static; - - /** - * Resets the date to the first day of the year and the time to 00:00:00 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->startOfYear(); - * ``` - * - * @return static - */ - public function startOfYear(); - - /** - * Subtract given units or interval to the current instance. - * - * @example $date->sub('hour', 3) - * @example $date->sub(15, 'days') - * @example $date->sub(CarbonInterval::days(4)) - * - * @param Unit|string|DateInterval|Closure|CarbonConverterInterface $unit - * @param int|float $value - * @param bool|null $overflow - * - * @return static - */ - #[ReturnTypeWillChange] - public function sub($unit, $value = 1, ?bool $overflow = null): static; - - /** - * @deprecated Prefer to use add subUTCUnit() which more accurately defines what it's doing. - * - * Subtract seconds to the instance using timestamp. Positive $value travels - * into the past while negative $value travels forward. - * - * @param string $unit - * @param int $value - * - * @return static - */ - public function subRealUnit($unit, $value = 1): static; - - /** - * Subtract seconds to the instance using timestamp. Positive $value travels - * into the past while negative $value travels forward. - * - * @param string $unit - * @param int $value - * - * @return static - */ - public function subUTCUnit($unit, $value = 1): static; - - /** - * Subtract given units to the current instance. - */ - public function subUnit(Unit|string $unit, $value = 1, ?bool $overflow = null): static; - - /** - * Subtract any unit to a new value without overflowing current other unit given. - * - * @param string $valueUnit unit name to modify - * @param int $value amount to subtract to the input unit - * @param string $overflowUnit unit name to not overflow - */ - public function subUnitNoOverflow(string $valueUnit, int $value, string $overflowUnit): static; - - /** - * Subtract given units or interval to the current instance. - * - * @see sub() - * - * @param string|DateInterval $unit - * @param int|float $value - * @param bool|null $overflow - * - * @return static - */ - public function subtract($unit, $value = 1, ?bool $overflow = null): static; - - /** - * Get the difference in a human-readable format in the current locale from current instance to another - * instance given (or now if null given). - * - * @return string - */ - public function timespan($other = null, $timezone = null): string; - - /** - * Set the instance's timestamp. - * - * Timestamp input can be given as int, float or a string containing one or more numbers. - */ - public function timestamp(string|int|float $timestamp): static; - - /** - * @alias setTimezone - */ - public function timezone(DateTimeZone|string|int $value): static; - - /** - * Get the difference in a human readable format in the current locale from an other - * instance given (or now if null given) to current instance. - * - * When comparing a value in the past to default now: - * 1 hour from now - * 5 months from now - * - * When comparing a value in the future to default now: - * 1 hour ago - * 5 months ago - * - * When comparing a value in the past to another value: - * 1 hour after - * 5 months after - * - * When comparing a value in the future to another value: - * 1 hour before - * 5 months before - * - * @param Carbon|\DateTimeInterface|string|array|null $other if array passed, will be used as parameters array, see $syntax below; - * if null passed, now will be used as comparison reference; - * if any other type, it will be converted to date and used as reference. - * @param int|array $syntax if array passed, parameters will be extracted from it, the array may contains: - * - 'syntax' entry (see below) - * - 'short' entry (see below) - * - 'parts' entry (see below) - * - 'options' entry (see below) - * - 'join' entry determines how to join multiple parts of the string - * ` - if $join is a string, it's used as a joiner glue - * ` - if $join is a callable/closure, it get the list of string and should return a string - * ` - if $join is an array, the first item will be the default glue, and the second item - * ` will be used instead of the glue for the last item - * ` - if $join is true, it will be guessed from the locale ('list' translation file entry) - * ` - if $join is missing, a space will be used as glue - * - 'other' entry (see above) - * if int passed, it add modifiers: - * Possible values: - * - CarbonInterface::DIFF_ABSOLUTE no modifiers - * - CarbonInterface::DIFF_RELATIVE_TO_NOW add ago/from now modifier - * - CarbonInterface::DIFF_RELATIVE_TO_OTHER add before/after modifier - * Default value: CarbonInterface::DIFF_ABSOLUTE - * @param bool $short displays short format of time units - * @param int $parts maximum number of parts to display (default value: 1: single unit) - * @param int $options human diff options - * - * @return string - */ - public function to($other = null, $syntax = null, $short = false, $parts = 1, $options = null); - - /** - * Get default array representation. - * - * @example - * ``` - * var_dump(Carbon::now()->toArray()); - * ``` - */ - public function toArray(): array; - - /** - * Format the instance as ATOM - * - * @example - * ``` - * echo Carbon::now()->toAtomString(); - * ``` - */ - public function toAtomString(): string; - - /** - * Format the instance as COOKIE - * - * @example - * ``` - * echo Carbon::now()->toCookieString(); - * ``` - */ - public function toCookieString(): string; - - /** - * @alias toDateTime - * - * Return native DateTime PHP object matching the current instance. - * - * @example - * ``` - * var_dump(Carbon::now()->toDate()); - * ``` - */ - public function toDate(): DateTime; - - /** - * Format the instance as date - * - * @example - * ``` - * echo Carbon::now()->toDateString(); - * ``` - */ - public function toDateString(): string; - - /** - * Return native DateTime PHP object matching the current instance. - * - * @example - * ``` - * var_dump(Carbon::now()->toDateTime()); - * ``` - */ - public function toDateTime(): DateTime; - - /** - * Return native toDateTimeImmutable PHP object matching the current instance. - * - * @example - * ``` - * var_dump(Carbon::now()->toDateTimeImmutable()); - * ``` - */ - public function toDateTimeImmutable(): DateTimeImmutable; - - /** - * Format the instance as date and time T-separated with no timezone - * - * @example - * ``` - * echo Carbon::now()->toDateTimeLocalString(); - * echo "\n"; - * echo Carbon::now()->toDateTimeLocalString('minute'); // You can specify precision among: minute, second, millisecond and microsecond - * ``` - */ - public function toDateTimeLocalString(string $unitPrecision = 'second'): string; - - /** - * Format the instance as date and time - * - * @example - * ``` - * echo Carbon::now()->toDateTimeString(); - * ``` - */ - public function toDateTimeString(string $unitPrecision = 'second'): string; - - /** - * Format the instance with day, date and time - * - * @example - * ``` - * echo Carbon::now()->toDayDateTimeString(); - * ``` - */ - public function toDayDateTimeString(): string; - - /** - * Format the instance as a readable date - * - * @example - * ``` - * echo Carbon::now()->toFormattedDateString(); - * ``` - */ - public function toFormattedDateString(): string; - - /** - * Format the instance with the day, and a readable date - * - * @example - * ``` - * echo Carbon::now()->toFormattedDayDateString(); - * ``` - */ - public function toFormattedDayDateString(): string; - - /** - * Return the ISO-8601 string (ex: 1977-04-22T06:00:00Z, if $keepOffset truthy, offset will be kept: - * 1977-04-22T01:00:00-05:00). - * - * @example - * ``` - * echo Carbon::now('America/Toronto')->toISOString() . "\n"; - * echo Carbon::now('America/Toronto')->toISOString(true) . "\n"; - * ``` - * - * @param bool $keepOffset Pass true to keep the date offset. Else forced to UTC. - */ - public function toISOString(bool $keepOffset = false): ?string; - - /** - * Return a immutable copy of the instance. - * - * @return CarbonImmutable - */ - public function toImmutable(); - - /** - * Format the instance as ISO8601 - * - * @example - * ``` - * echo Carbon::now()->toIso8601String(); - * ``` - */ - public function toIso8601String(): string; - - /** - * Convert the instance to UTC and return as Zulu ISO8601 - * - * @example - * ``` - * echo Carbon::now()->toIso8601ZuluString(); - * ``` - */ - public function toIso8601ZuluString(string $unitPrecision = 'second'): string; - - /** - * Return the ISO-8601 string (ex: 1977-04-22T06:00:00Z) with UTC timezone. - * - * @example - * ``` - * echo Carbon::now('America/Toronto')->toJSON(); - * ``` - */ - public function toJSON(): ?string; - - /** - * Return a mutable copy of the instance. - * - * @return Carbon - */ - public function toMutable(); - - /** - * Get the difference in a human readable format in the current locale from an other - * instance given to now - * - * @param int|array $syntax if array passed, parameters will be extracted from it, the array may contains: - * - 'syntax' entry (see below) - * - 'short' entry (see below) - * - 'parts' entry (see below) - * - 'options' entry (see below) - * - 'join' entry determines how to join multiple parts of the string - * ` - if $join is a string, it's used as a joiner glue - * ` - if $join is a callable/closure, it get the list of string and should return a string - * ` - if $join is an array, the first item will be the default glue, and the second item - * ` will be used instead of the glue for the last item - * ` - if $join is true, it will be guessed from the locale ('list' translation file entry) - * ` - if $join is missing, a space will be used as glue - * if int passed, it add modifiers: - * Possible values: - * - CarbonInterface::DIFF_ABSOLUTE no modifiers - * - CarbonInterface::DIFF_RELATIVE_TO_NOW add ago/from now modifier - * - CarbonInterface::DIFF_RELATIVE_TO_OTHER add before/after modifier - * Default value: CarbonInterface::DIFF_ABSOLUTE - * @param bool $short displays short format of time units - * @param int $parts maximum number of parts to display (default value: 1: single part) - * @param int $options human diff options - * - * @return string - */ - public function toNow($syntax = null, $short = false, $parts = 1, $options = null); - - /** - * Get default object representation. - * - * @example - * ``` - * var_dump(Carbon::now()->toObject()); - * ``` - */ - public function toObject(): object; - - /** - * Create a iterable CarbonPeriod object from current date to a given end date (and optional interval). - * - * @param \DateTimeInterface|Carbon|CarbonImmutable|int|null $end period end date or recurrences count if int - * @param int|\DateInterval|string|null $interval period default interval or number of the given $unit - * @param string|null $unit if specified, $interval must be an integer - */ - public function toPeriod($end = null, $interval = null, $unit = null): CarbonPeriod; - - /** - * Format the instance as RFC1036 - * - * @example - * ``` - * echo Carbon::now()->toRfc1036String(); - * ``` - */ - public function toRfc1036String(): string; - - /** - * Format the instance as RFC1123 - * - * @example - * ``` - * echo Carbon::now()->toRfc1123String(); - * ``` - */ - public function toRfc1123String(): string; - - /** - * Format the instance as RFC2822 - * - * @example - * ``` - * echo Carbon::now()->toRfc2822String(); - * ``` - */ - public function toRfc2822String(): string; - - /** - * Format the instance as RFC3339. - * - * @example - * ``` - * echo Carbon::now()->toRfc3339String() . "\n"; - * echo Carbon::now()->toRfc3339String(true) . "\n"; - * ``` - */ - public function toRfc3339String(bool $extended = false): string; - - /** - * Format the instance as RFC7231 - * - * @example - * ``` - * echo Carbon::now()->toRfc7231String(); - * ``` - */ - public function toRfc7231String(): string; - - /** - * Format the instance as RFC822 - * - * @example - * ``` - * echo Carbon::now()->toRfc822String(); - * ``` - */ - public function toRfc822String(): string; - - /** - * Format the instance as RFC850 - * - * @example - * ``` - * echo Carbon::now()->toRfc850String(); - * ``` - */ - public function toRfc850String(): string; - - /** - * Format the instance as RSS - * - * @example - * ``` - * echo Carbon::now()->toRssString(); - * ``` - */ - public function toRssString(): string; - - /** - * Returns english human-readable complete date string. - * - * @example - * ``` - * echo Carbon::now()->toString(); - * ``` - */ - public function toString(): string; - - /** - * Format the instance as time - * - * @example - * ``` - * echo Carbon::now()->toTimeString(); - * ``` - */ - public function toTimeString(string $unitPrecision = 'second'): string; - - /** - * Format the instance as W3C - * - * @example - * ``` - * echo Carbon::now()->toW3cString(); - * ``` - */ - public function toW3cString(): string; - - /** - * Create a Carbon instance for today. - */ - public static function today(DateTimeZone|string|int|null $timezone = null): static; - - /** - * Create a Carbon instance for tomorrow. - */ - public static function tomorrow(DateTimeZone|string|int|null $timezone = null): static; - - /** - * Translate using translation string or callback available. - * - * @param string $key key to find - * @param array $parameters replacement parameters - * @param string|int|float|null $number number if plural - * @param TranslatorInterface|null $translator an optional translator to use - * @param bool $altNumbers pass true to use alternative numbers - * - * @return string - */ - public function translate(string $key, array $parameters = [], string|int|float|null $number = null, ?TranslatorInterface $translator = null, bool $altNumbers = false): string; - - /** - * Returns the alternative number for a given integer if available in the current locale. - * - * @param int $number - * - * @return string - */ - public function translateNumber(int $number): string; - - /** - * Translate a time string from a locale to an other. - * - * @param string $timeString date/time/duration string to translate (may also contain English) - * @param string|null $from input locale of the $timeString parameter (`Carbon::getLocale()` by default) - * @param string|null $to output locale of the result returned (`"en"` by default) - * @param int $mode specify what to translate with options: - * - self::TRANSLATE_ALL (default) - * - CarbonInterface::TRANSLATE_MONTHS - * - CarbonInterface::TRANSLATE_DAYS - * - CarbonInterface::TRANSLATE_UNITS - * - CarbonInterface::TRANSLATE_MERIDIEM - * You can use pipe to group: CarbonInterface::TRANSLATE_MONTHS | CarbonInterface::TRANSLATE_DAYS - * - * @return string - */ - public static function translateTimeString(string $timeString, ?string $from = null, ?string $to = null, int $mode = self::TRANSLATE_ALL): string; - - /** - * Translate a time string from the current locale (`$date->locale()`) to an other. - * - * @param string $timeString time string to translate - * @param string|null $to output locale of the result returned ("en" by default) - * - * @return string - */ - public function translateTimeStringTo(string $timeString, ?string $to = null): string; - - /** - * Translate using translation string or callback available. - * - * @param TranslatorInterface $translator an optional translator to use - * @param string $key key to find - * @param array $parameters replacement parameters - * @param int|float|null $number number if plural - * - * @return string - */ - public static function translateWith(TranslatorInterface $translator, string $key, array $parameters = [], $number = null): string; - - /** - * Format as ->format() do (using date replacements patterns from https://php.net/manual/en/function.date.php) - * but translate words whenever possible (months, day names, etc.) using the current locale. - */ - public function translatedFormat(string $format): string; - - /** - * Set the timezone or returns the timezone name if no arguments passed. - */ - public function tz(DateTimeZone|string|int|null $value = null): static|string; - - /** - * @alias getTimestamp - * - * Returns the UNIX timestamp for the current date. - * - * @return int - */ - public function unix(): int; - - /** - * @alias to - * - * Get the difference in a human readable format in the current locale from an other - * instance given (or now if null given) to current instance. - * - * @param Carbon|\DateTimeInterface|string|array|null $other if array passed, will be used as parameters array, see $syntax below; - * if null passed, now will be used as comparison reference; - * if any other type, it will be converted to date and used as reference. - * @param int|array $syntax if array passed, parameters will be extracted from it, the array may contains: - * - 'syntax' entry (see below) - * - 'short' entry (see below) - * - 'parts' entry (see below) - * - 'options' entry (see below) - * - 'join' entry determines how to join multiple parts of the string - * ` - if $join is a string, it's used as a joiner glue - * ` - if $join is a callable/closure, it get the list of string and should return a string - * ` - if $join is an array, the first item will be the default glue, and the second item - * ` will be used instead of the glue for the last item - * ` - if $join is true, it will be guessed from the locale ('list' translation file entry) - * ` - if $join is missing, a space will be used as glue - * - 'other' entry (see above) - * if int passed, it add modifiers: - * Possible values: - * - CarbonInterface::DIFF_ABSOLUTE no modifiers - * - CarbonInterface::DIFF_RELATIVE_TO_NOW add ago/from now modifier - * - CarbonInterface::DIFF_RELATIVE_TO_OTHER add before/after modifier - * Default value: CarbonInterface::DIFF_ABSOLUTE - * @param bool $short displays short format of time units - * @param int $parts maximum number of parts to display (default value: 1: single unit) - * @param int $options human diff options - * - * @return string - */ - public function until($other = null, $syntax = null, $short = false, $parts = 1, $options = null); - - /** - * @deprecated To avoid conflict between different third-party libraries, static setters should not be used. - * You should rather use the ->settings() method. - * Or you can use method variants: addMonthsWithOverflow/addMonthsNoOverflow, same variants - * are available for quarters, years, decade, centuries, millennia (singular and plural forms). - * @see settings - * - * Indicates if months should be calculated with overflow. - * - * @param bool $monthsOverflow - * - * @return void - */ - public static function useMonthsOverflow(bool $monthsOverflow = true): void; - - /** - * @deprecated To avoid conflict between different third-party libraries, static setters should not be used. - * You should rather use the ->settings() method. - * @see settings - * - * Enable the strict mode (or disable with passing false). - * - * @param bool $strictModeEnabled - */ - public static function useStrictMode(bool $strictModeEnabled = true): void; - - /** - * @deprecated To avoid conflict between different third-party libraries, static setters should not be used. - * You should rather use the ->settings() method. - * Or you can use method variants: addYearsWithOverflow/addYearsNoOverflow, same variants - * are available for quarters, years, decade, centuries, millennia (singular and plural forms). - * @see settings - * - * Indicates if years should be calculated with overflow. - * - * @param bool $yearsOverflow - * - * @return void - */ - public static function useYearsOverflow(bool $yearsOverflow = true): void; - - /** - * Set the instance's timezone to UTC. - */ - public function utc(): static; - - /** - * Returns the minutes offset to UTC if no arguments passed, else set the timezone with given minutes shift passed. - */ - public function utcOffset(?int $minuteOffset = null): static|int; - - /** - * Returns the milliseconds timestamps used amongst other by Date javascript objects. - * - * @return float - */ - public function valueOf(): float; - - /** - * Get/set the week number using given first day of week and first - * day of year included in the first week. Or use US format if no settings - * given (Sunday / Jan 6). - * - * @param int|null $week - * @param int|null $dayOfWeek - * @param int|null $dayOfYear - * - * @return int|static - */ - public function week($week = null, $dayOfWeek = null, $dayOfYear = null); - - /** - * Set/get the week number of year using given first day of week and first - * day of year included in the first week. Or use US format if no settings - * given (Sunday / Jan 6). - * - * @param int|null $year if null, act as a getter, if not null, set the year and return current instance. - * @param int|null $dayOfWeek first date of week from 0 (Sunday) to 6 (Saturday) - * @param int|null $dayOfYear first day of year included in the week #1 - * - * @return int|static - */ - public function weekYear($year = null, $dayOfWeek = null, $dayOfYear = null); - - /** - * Get/set the weekday from 0 (Sunday) to 6 (Saturday). - * - * @param WeekDay|int|null $value new value for weekday if using as setter. - */ - public function weekday(WeekDay|int|null $value = null): static|int; - - /** - * Get the number of weeks of the current week-year using given first day of week and first - * day of year included in the first week. Or use US format if no settings - * given (Sunday / Jan 6). - * - * @param int|null $dayOfWeek first date of week from 0 (Sunday) to 6 (Saturday) - * @param int|null $dayOfYear first day of year included in the week #1 - * - * @return int - */ - public function weeksInYear($dayOfWeek = null, $dayOfYear = null); - - /** - * Temporarily sets a static date to be used within the callback. - * Using setTestNow to set the date, executing the callback, then - * clearing the test instance. - * - * /!\ Use this method for unit tests only. - * - * @template T - * - * @param DateTimeInterface|Closure|static|string|false|null $testNow real or mock Carbon instance - * @param Closure(): T $callback - * - * @return T - */ - public static function withTestNow(mixed $testNow, callable $callback): mixed; - - /** - * Create a Carbon instance for yesterday. - */ - public static function yesterday(DateTimeZone|string|int|null $timezone = null): static; - - // -} diff --git a/vendor/nesbot/carbon/src/Carbon/CarbonInterval.php b/vendor/nesbot/carbon/src/Carbon/CarbonInterval.php deleted file mode 100644 index 28569bc..0000000 --- a/vendor/nesbot/carbon/src/Carbon/CarbonInterval.php +++ /dev/null @@ -1,3402 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon; - -use Carbon\Exceptions\BadFluentConstructorException; -use Carbon\Exceptions\BadFluentSetterException; -use Carbon\Exceptions\InvalidCastException; -use Carbon\Exceptions\InvalidFormatException; -use Carbon\Exceptions\InvalidIntervalException; -use Carbon\Exceptions\OutOfRangeException; -use Carbon\Exceptions\ParseErrorException; -use Carbon\Exceptions\UnitNotConfiguredException; -use Carbon\Exceptions\UnknownGetterException; -use Carbon\Exceptions\UnknownSetterException; -use Carbon\Exceptions\UnknownUnitException; -use Carbon\Traits\IntervalRounding; -use Carbon\Traits\IntervalStep; -use Carbon\Traits\LocalFactory; -use Carbon\Traits\MagicParameter; -use Carbon\Traits\Mixin; -use Carbon\Traits\Options; -use Carbon\Traits\ToStringFormat; -use Closure; -use DateInterval; -use DateTime; -use DateTimeInterface; -use DateTimeZone; -use Exception; -use InvalidArgumentException; -use ReflectionException; -use ReturnTypeWillChange; -use RuntimeException; -use Symfony\Contracts\Translation\TranslatorInterface; -use Throwable; - -/** - * A simple API extension for DateInterval. - * The implementation provides helpers to handle weeks but only days are saved. - * Weeks are calculated based on the total days of the current instance. - * - * @property int $years Total years of the current interval. - * @property int $months Total months of the current interval. - * @property int $weeks Total weeks of the current interval calculated from the days. - * @property int $dayz Total days of the current interval (weeks * 7 + days). - * @property int $hours Total hours of the current interval. - * @property int $minutes Total minutes of the current interval. - * @property int $seconds Total seconds of the current interval. - * @property int $microseconds Total microseconds of the current interval. - * @property int $milliseconds Total milliseconds of the current interval. - * @property int $microExcludeMilli Remaining microseconds without the milliseconds. - * @property int $dayzExcludeWeeks Total days remaining in the final week of the current instance (days % 7). - * @property int $daysExcludeWeeks alias of dayzExcludeWeeks - * @property-read float $totalYears Number of years equivalent to the interval. - * @property-read float $totalMonths Number of months equivalent to the interval. - * @property-read float $totalWeeks Number of weeks equivalent to the interval. - * @property-read float $totalDays Number of days equivalent to the interval. - * @property-read float $totalDayz Alias for totalDays. - * @property-read float $totalHours Number of hours equivalent to the interval. - * @property-read float $totalMinutes Number of minutes equivalent to the interval. - * @property-read float $totalSeconds Number of seconds equivalent to the interval. - * @property-read float $totalMilliseconds Number of milliseconds equivalent to the interval. - * @property-read float $totalMicroseconds Number of microseconds equivalent to the interval. - * @property-read string $locale locale of the current instance - * - * @method static CarbonInterval years($years = 1) Create instance specifying a number of years or modify the number of years if called on an instance. - * @method static CarbonInterval year($years = 1) Alias for years() - * @method static CarbonInterval months($months = 1) Create instance specifying a number of months or modify the number of months if called on an instance. - * @method static CarbonInterval month($months = 1) Alias for months() - * @method static CarbonInterval weeks($weeks = 1) Create instance specifying a number of weeks or modify the number of weeks if called on an instance. - * @method static CarbonInterval week($weeks = 1) Alias for weeks() - * @method static CarbonInterval days($days = 1) Create instance specifying a number of days or modify the number of days if called on an instance. - * @method static CarbonInterval dayz($days = 1) Alias for days() - * @method static CarbonInterval daysExcludeWeeks($days = 1) Create instance specifying a number of days or modify the number of days (keeping the current number of weeks) if called on an instance. - * @method static CarbonInterval dayzExcludeWeeks($days = 1) Alias for daysExcludeWeeks() - * @method static CarbonInterval day($days = 1) Alias for days() - * @method static CarbonInterval hours($hours = 1) Create instance specifying a number of hours or modify the number of hours if called on an instance. - * @method static CarbonInterval hour($hours = 1) Alias for hours() - * @method static CarbonInterval minutes($minutes = 1) Create instance specifying a number of minutes or modify the number of minutes if called on an instance. - * @method static CarbonInterval minute($minutes = 1) Alias for minutes() - * @method static CarbonInterval seconds($seconds = 1) Create instance specifying a number of seconds or modify the number of seconds if called on an instance. - * @method static CarbonInterval second($seconds = 1) Alias for seconds() - * @method static CarbonInterval milliseconds($milliseconds = 1) Create instance specifying a number of milliseconds or modify the number of milliseconds if called on an instance. - * @method static CarbonInterval millisecond($milliseconds = 1) Alias for milliseconds() - * @method static CarbonInterval microseconds($microseconds = 1) Create instance specifying a number of microseconds or modify the number of microseconds if called on an instance. - * @method static CarbonInterval microsecond($microseconds = 1) Alias for microseconds() - * @method $this addYears(int $years) Add given number of years to the current interval - * @method $this subYears(int $years) Subtract given number of years to the current interval - * @method $this addMonths(int $months) Add given number of months to the current interval - * @method $this subMonths(int $months) Subtract given number of months to the current interval - * @method $this addWeeks(int|float $weeks) Add given number of weeks to the current interval - * @method $this subWeeks(int|float $weeks) Subtract given number of weeks to the current interval - * @method $this addDays(int|float $days) Add given number of days to the current interval - * @method $this subDays(int|float $days) Subtract given number of days to the current interval - * @method $this addHours(int|float $hours) Add given number of hours to the current interval - * @method $this subHours(int|float $hours) Subtract given number of hours to the current interval - * @method $this addMinutes(int|float $minutes) Add given number of minutes to the current interval - * @method $this subMinutes(int|float $minutes) Subtract given number of minutes to the current interval - * @method $this addSeconds(int|float $seconds) Add given number of seconds to the current interval - * @method $this subSeconds(int|float $seconds) Subtract given number of seconds to the current interval - * @method $this addMilliseconds(int|float $milliseconds) Add given number of milliseconds to the current interval - * @method $this subMilliseconds(int|float $milliseconds) Subtract given number of milliseconds to the current interval - * @method $this addMicroseconds(int|float $microseconds) Add given number of microseconds to the current interval - * @method $this subMicroseconds(int|float $microseconds) Subtract given number of microseconds to the current interval - * @method $this roundYear(int|float $precision = 1, string $function = "round") Round the current instance year with given precision using the given function. - * @method $this roundYears(int|float $precision = 1, string $function = "round") Round the current instance year with given precision using the given function. - * @method $this floorYear(int|float $precision = 1) Truncate the current instance year with given precision. - * @method $this floorYears(int|float $precision = 1) Truncate the current instance year with given precision. - * @method $this ceilYear(int|float $precision = 1) Ceil the current instance year with given precision. - * @method $this ceilYears(int|float $precision = 1) Ceil the current instance year with given precision. - * @method $this roundMonth(int|float $precision = 1, string $function = "round") Round the current instance month with given precision using the given function. - * @method $this roundMonths(int|float $precision = 1, string $function = "round") Round the current instance month with given precision using the given function. - * @method $this floorMonth(int|float $precision = 1) Truncate the current instance month with given precision. - * @method $this floorMonths(int|float $precision = 1) Truncate the current instance month with given precision. - * @method $this ceilMonth(int|float $precision = 1) Ceil the current instance month with given precision. - * @method $this ceilMonths(int|float $precision = 1) Ceil the current instance month with given precision. - * @method $this roundWeek(int|float $precision = 1, string $function = "round") Round the current instance day with given precision using the given function. - * @method $this roundWeeks(int|float $precision = 1, string $function = "round") Round the current instance day with given precision using the given function. - * @method $this floorWeek(int|float $precision = 1) Truncate the current instance day with given precision. - * @method $this floorWeeks(int|float $precision = 1) Truncate the current instance day with given precision. - * @method $this ceilWeek(int|float $precision = 1) Ceil the current instance day with given precision. - * @method $this ceilWeeks(int|float $precision = 1) Ceil the current instance day with given precision. - * @method $this roundDay(int|float $precision = 1, string $function = "round") Round the current instance day with given precision using the given function. - * @method $this roundDays(int|float $precision = 1, string $function = "round") Round the current instance day with given precision using the given function. - * @method $this floorDay(int|float $precision = 1) Truncate the current instance day with given precision. - * @method $this floorDays(int|float $precision = 1) Truncate the current instance day with given precision. - * @method $this ceilDay(int|float $precision = 1) Ceil the current instance day with given precision. - * @method $this ceilDays(int|float $precision = 1) Ceil the current instance day with given precision. - * @method $this roundHour(int|float $precision = 1, string $function = "round") Round the current instance hour with given precision using the given function. - * @method $this roundHours(int|float $precision = 1, string $function = "round") Round the current instance hour with given precision using the given function. - * @method $this floorHour(int|float $precision = 1) Truncate the current instance hour with given precision. - * @method $this floorHours(int|float $precision = 1) Truncate the current instance hour with given precision. - * @method $this ceilHour(int|float $precision = 1) Ceil the current instance hour with given precision. - * @method $this ceilHours(int|float $precision = 1) Ceil the current instance hour with given precision. - * @method $this roundMinute(int|float $precision = 1, string $function = "round") Round the current instance minute with given precision using the given function. - * @method $this roundMinutes(int|float $precision = 1, string $function = "round") Round the current instance minute with given precision using the given function. - * @method $this floorMinute(int|float $precision = 1) Truncate the current instance minute with given precision. - * @method $this floorMinutes(int|float $precision = 1) Truncate the current instance minute with given precision. - * @method $this ceilMinute(int|float $precision = 1) Ceil the current instance minute with given precision. - * @method $this ceilMinutes(int|float $precision = 1) Ceil the current instance minute with given precision. - * @method $this roundSecond(int|float $precision = 1, string $function = "round") Round the current instance second with given precision using the given function. - * @method $this roundSeconds(int|float $precision = 1, string $function = "round") Round the current instance second with given precision using the given function. - * @method $this floorSecond(int|float $precision = 1) Truncate the current instance second with given precision. - * @method $this floorSeconds(int|float $precision = 1) Truncate the current instance second with given precision. - * @method $this ceilSecond(int|float $precision = 1) Ceil the current instance second with given precision. - * @method $this ceilSeconds(int|float $precision = 1) Ceil the current instance second with given precision. - * @method $this roundMillennium(int|float $precision = 1, string $function = "round") Round the current instance millennium with given precision using the given function. - * @method $this roundMillennia(int|float $precision = 1, string $function = "round") Round the current instance millennium with given precision using the given function. - * @method $this floorMillennium(int|float $precision = 1) Truncate the current instance millennium with given precision. - * @method $this floorMillennia(int|float $precision = 1) Truncate the current instance millennium with given precision. - * @method $this ceilMillennium(int|float $precision = 1) Ceil the current instance millennium with given precision. - * @method $this ceilMillennia(int|float $precision = 1) Ceil the current instance millennium with given precision. - * @method $this roundCentury(int|float $precision = 1, string $function = "round") Round the current instance century with given precision using the given function. - * @method $this roundCenturies(int|float $precision = 1, string $function = "round") Round the current instance century with given precision using the given function. - * @method $this floorCentury(int|float $precision = 1) Truncate the current instance century with given precision. - * @method $this floorCenturies(int|float $precision = 1) Truncate the current instance century with given precision. - * @method $this ceilCentury(int|float $precision = 1) Ceil the current instance century with given precision. - * @method $this ceilCenturies(int|float $precision = 1) Ceil the current instance century with given precision. - * @method $this roundDecade(int|float $precision = 1, string $function = "round") Round the current instance decade with given precision using the given function. - * @method $this roundDecades(int|float $precision = 1, string $function = "round") Round the current instance decade with given precision using the given function. - * @method $this floorDecade(int|float $precision = 1) Truncate the current instance decade with given precision. - * @method $this floorDecades(int|float $precision = 1) Truncate the current instance decade with given precision. - * @method $this ceilDecade(int|float $precision = 1) Ceil the current instance decade with given precision. - * @method $this ceilDecades(int|float $precision = 1) Ceil the current instance decade with given precision. - * @method $this roundQuarter(int|float $precision = 1, string $function = "round") Round the current instance quarter with given precision using the given function. - * @method $this roundQuarters(int|float $precision = 1, string $function = "round") Round the current instance quarter with given precision using the given function. - * @method $this floorQuarter(int|float $precision = 1) Truncate the current instance quarter with given precision. - * @method $this floorQuarters(int|float $precision = 1) Truncate the current instance quarter with given precision. - * @method $this ceilQuarter(int|float $precision = 1) Ceil the current instance quarter with given precision. - * @method $this ceilQuarters(int|float $precision = 1) Ceil the current instance quarter with given precision. - * @method $this roundMillisecond(int|float $precision = 1, string $function = "round") Round the current instance millisecond with given precision using the given function. - * @method $this roundMilliseconds(int|float $precision = 1, string $function = "round") Round the current instance millisecond with given precision using the given function. - * @method $this floorMillisecond(int|float $precision = 1) Truncate the current instance millisecond with given precision. - * @method $this floorMilliseconds(int|float $precision = 1) Truncate the current instance millisecond with given precision. - * @method $this ceilMillisecond(int|float $precision = 1) Ceil the current instance millisecond with given precision. - * @method $this ceilMilliseconds(int|float $precision = 1) Ceil the current instance millisecond with given precision. - * @method $this roundMicrosecond(int|float $precision = 1, string $function = "round") Round the current instance microsecond with given precision using the given function. - * @method $this roundMicroseconds(int|float $precision = 1, string $function = "round") Round the current instance microsecond with given precision using the given function. - * @method $this floorMicrosecond(int|float $precision = 1) Truncate the current instance microsecond with given precision. - * @method $this floorMicroseconds(int|float $precision = 1) Truncate the current instance microsecond with given precision. - * @method $this ceilMicrosecond(int|float $precision = 1) Ceil the current instance microsecond with given precision. - * @method $this ceilMicroseconds(int|float $precision = 1) Ceil the current instance microsecond with given precision. - */ -class CarbonInterval extends DateInterval implements CarbonConverterInterface -{ - use LocalFactory; - use IntervalRounding; - use IntervalStep; - use MagicParameter; - use Mixin { - Mixin::mixin as baseMixin; - } - use Options; - use ToStringFormat; - - /** - * Unlimited parts for forHumans() method. - * - * INF constant can be used instead. - */ - public const NO_LIMIT = -1; - - public const POSITIVE = 1; - public const NEGATIVE = -1; - - /** - * Interval spec period designators - */ - public const PERIOD_PREFIX = 'P'; - public const PERIOD_YEARS = 'Y'; - public const PERIOD_MONTHS = 'M'; - public const PERIOD_DAYS = 'D'; - public const PERIOD_TIME_PREFIX = 'T'; - public const PERIOD_HOURS = 'H'; - public const PERIOD_MINUTES = 'M'; - public const PERIOD_SECONDS = 'S'; - - public const SPECIAL_TRANSLATIONS = [ - 1 => [ - 'option' => CarbonInterface::ONE_DAY_WORDS, - 'future' => 'diff_tomorrow', - 'past' => 'diff_yesterday', - ], - 2 => [ - 'option' => CarbonInterface::TWO_DAY_WORDS, - 'future' => 'diff_after_tomorrow', - 'past' => 'diff_before_yesterday', - ], - ]; - - protected static ?array $cascadeFactors = null; - - protected static array $formats = [ - 'y' => 'y', - 'Y' => 'y', - 'o' => 'y', - 'm' => 'm', - 'n' => 'm', - 'W' => 'weeks', - 'd' => 'd', - 'j' => 'd', - 'z' => 'd', - 'h' => 'h', - 'g' => 'h', - 'H' => 'h', - 'G' => 'h', - 'i' => 'i', - 's' => 's', - 'u' => 'micro', - 'v' => 'milli', - ]; - - private static ?array $flipCascadeFactors = null; - - private static bool $floatSettersEnabled = false; - - /** - * The registered macros. - */ - protected static array $macros = []; - - /** - * Timezone handler for settings() method. - */ - protected DateTimeZone|string|int|null $timezoneSetting = null; - - /** - * The input used to create the interval. - */ - protected mixed $originalInput = null; - - /** - * Start date if interval was created from a difference between 2 dates. - */ - protected ?CarbonInterface $startDate = null; - - /** - * End date if interval was created from a difference between 2 dates. - */ - protected ?CarbonInterface $endDate = null; - - /** - * End date if interval was created from a difference between 2 dates. - */ - protected ?DateInterval $rawInterval = null; - - /** - * Flag if the interval was made from a diff with absolute flag on. - */ - protected bool $absolute = false; - - protected ?array $initialValues = null; - - /** - * Set the instance's timezone from a string or object. - */ - public function setTimezone(DateTimeZone|string|int $timezone): static - { - $this->timezoneSetting = $timezone; - $this->checkStartAndEnd(); - - if ($this->startDate) { - $this->startDate = $this->startDate - ->avoidMutation() - ->setTimezone($timezone); - $this->rawInterval = null; - } - - if ($this->endDate) { - $this->endDate = $this->endDate - ->avoidMutation() - ->setTimezone($timezone); - $this->rawInterval = null; - } - - return $this; - } - - /** - * Set the instance's timezone from a string or object and add/subtract the offset difference. - */ - public function shiftTimezone(DateTimeZone|string|int $timezone): static - { - $this->timezoneSetting = $timezone; - $this->checkStartAndEnd(); - - if ($this->startDate) { - $this->startDate = $this->startDate - ->avoidMutation() - ->shiftTimezone($timezone); - $this->rawInterval = null; - } - - if ($this->endDate) { - $this->endDate = $this->endDate - ->avoidMutation() - ->shiftTimezone($timezone); - $this->rawInterval = null; - } - - return $this; - } - - /** - * Mapping of units and factors for cascading. - * - * Should only be modified by changing the factors or referenced constants. - */ - public static function getCascadeFactors(): array - { - return static::$cascadeFactors ?: static::getDefaultCascadeFactors(); - } - - protected static function getDefaultCascadeFactors(): array - { - return [ - 'milliseconds' => [CarbonInterface::MICROSECONDS_PER_MILLISECOND, 'microseconds'], - 'seconds' => [CarbonInterface::MILLISECONDS_PER_SECOND, 'milliseconds'], - 'minutes' => [CarbonInterface::SECONDS_PER_MINUTE, 'seconds'], - 'hours' => [CarbonInterface::MINUTES_PER_HOUR, 'minutes'], - 'dayz' => [CarbonInterface::HOURS_PER_DAY, 'hours'], - 'weeks' => [CarbonInterface::DAYS_PER_WEEK, 'dayz'], - 'months' => [CarbonInterface::WEEKS_PER_MONTH, 'weeks'], - 'years' => [CarbonInterface::MONTHS_PER_YEAR, 'months'], - ]; - } - - /** - * Set default cascading factors for ->cascade() method. - * - * @param array $cascadeFactors - */ - public static function setCascadeFactors(array $cascadeFactors) - { - self::$flipCascadeFactors = null; - static::$cascadeFactors = $cascadeFactors; - } - - /** - * This option allow you to opt-in for the Carbon 3 behavior where float - * values will no longer be cast to integer (so truncated). - * - * ⚠️ This settings will be applied globally, which mean your whole application - * code including the third-party dependencies that also may use Carbon will - * adopt the new behavior. - */ - public static function enableFloatSetters(bool $floatSettersEnabled = true): void - { - self::$floatSettersEnabled = $floatSettersEnabled; - } - - /////////////////////////////////////////////////////////////////// - //////////////////////////// CONSTRUCTORS ///////////////////////// - /////////////////////////////////////////////////////////////////// - - /** - * Create a new CarbonInterval instance. - * - * @param Closure|DateInterval|string|int|null $years - * @param int|float|null $months - * @param int|float|null $weeks - * @param int|float|null $days - * @param int|float|null $hours - * @param int|float|null $minutes - * @param int|float|null $seconds - * @param int|float|null $microseconds - * - * @throws Exception when the interval_spec (passed as $years) cannot be parsed as an interval. - */ - public function __construct($years = null, $months = null, $weeks = null, $days = null, $hours = null, $minutes = null, $seconds = null, $microseconds = null) - { - $this->originalInput = \func_num_args() === 1 ? $years : \func_get_args(); - - if ($years instanceof Closure) { - $this->step = $years; - $years = null; - } - - if ($years instanceof DateInterval) { - parent::__construct(static::getDateIntervalSpec($years)); - $this->f = $years->f; - self::copyNegativeUnits($years, $this); - - return; - } - - $spec = $years; - $isStringSpec = (\is_string($spec) && !preg_match('/^[\d.]/', $spec)); - - if (!$isStringSpec || (float) $years) { - $spec = static::PERIOD_PREFIX; - - $spec .= $years > 0 ? $years.static::PERIOD_YEARS : ''; - $spec .= $months > 0 ? $months.static::PERIOD_MONTHS : ''; - - $specDays = 0; - $specDays += $weeks > 0 ? $weeks * static::getDaysPerWeek() : 0; - $specDays += $days > 0 ? $days : 0; - - $spec .= $specDays > 0 ? $specDays.static::PERIOD_DAYS : ''; - - if ($hours > 0 || $minutes > 0 || $seconds > 0) { - $spec .= static::PERIOD_TIME_PREFIX; - $spec .= $hours > 0 ? $hours.static::PERIOD_HOURS : ''; - $spec .= $minutes > 0 ? $minutes.static::PERIOD_MINUTES : ''; - $spec .= $seconds > 0 ? $seconds.static::PERIOD_SECONDS : ''; - } - - if ($spec === static::PERIOD_PREFIX) { - // Allow the zero interval. - $spec .= '0'.static::PERIOD_YEARS; - } - } - - try { - parent::__construct($spec); - } catch (Throwable $exception) { - try { - parent::__construct('PT0S'); - - if ($isStringSpec) { - if (!preg_match('/^P - (?:(?[+-]?\d*(?:\.\d+)?)Y)? - (?:(?[+-]?\d*(?:\.\d+)?)M)? - (?:(?[+-]?\d*(?:\.\d+)?)W)? - (?:(?[+-]?\d*(?:\.\d+)?)D)? - (?:T - (?:(?[+-]?\d*(?:\.\d+)?)H)? - (?:(?[+-]?\d*(?:\.\d+)?)M)? - (?:(?[+-]?\d*(?:\.\d+)?)S)? - )? - $/x', $spec, $match)) { - throw new InvalidArgumentException("Invalid duration: $spec"); - } - - $years = (float) ($match['year'] ?? 0); - $this->assertSafeForInteger('year', $years); - $months = (float) ($match['month'] ?? 0); - $this->assertSafeForInteger('month', $months); - $weeks = (float) ($match['week'] ?? 0); - $this->assertSafeForInteger('week', $weeks); - $days = (float) ($match['day'] ?? 0); - $this->assertSafeForInteger('day', $days); - $hours = (float) ($match['hour'] ?? 0); - $this->assertSafeForInteger('hour', $hours); - $minutes = (float) ($match['minute'] ?? 0); - $this->assertSafeForInteger('minute', $minutes); - $seconds = (float) ($match['second'] ?? 0); - $this->assertSafeForInteger('second', $seconds); - $microseconds = (int) str_pad( - substr(explode('.', $match['second'] ?? '0.0')[1] ?? '0', 0, 6), - 6, - '0', - ); - } - - $totalDays = (($weeks * static::getDaysPerWeek()) + $days); - $this->assertSafeForInteger('days total (including weeks)', $totalDays); - - $this->y = (int) $years; - $this->m = (int) $months; - $this->d = (int) $totalDays; - $this->h = (int) $hours; - $this->i = (int) $minutes; - $this->s = (int) $seconds; - $secondFloatPart = (float) ($microseconds / CarbonInterface::MICROSECONDS_PER_SECOND); - $this->f = $secondFloatPart; - $intervalMicroseconds = (int) ($this->f * CarbonInterface::MICROSECONDS_PER_SECOND); - $intervalSeconds = $seconds - $secondFloatPart; - - if ( - ((float) $this->y) !== $years || - ((float) $this->m) !== $months || - ((float) $this->d) !== $totalDays || - ((float) $this->h) !== $hours || - ((float) $this->i) !== $minutes || - ((float) $this->s) !== $intervalSeconds || - $intervalMicroseconds !== ((int) $microseconds) - ) { - $this->add(static::fromString( - ($years - $this->y).' years '. - ($months - $this->m).' months '. - ($totalDays - $this->d).' days '. - ($hours - $this->h).' hours '. - ($minutes - $this->i).' minutes '. - ($intervalSeconds - $this->s).' seconds '. - ($microseconds - $intervalMicroseconds).' microseconds ', - )); - } - } catch (Throwable $secondException) { - throw $secondException instanceof OutOfRangeException ? $secondException : $exception; - } - } - - if ($microseconds !== null) { - $this->f = $microseconds / CarbonInterface::MICROSECONDS_PER_SECOND; - } - - foreach (['years', 'months', 'weeks', 'days', 'hours', 'minutes', 'seconds'] as $unit) { - if ($$unit < 0) { - $this->set($unit, $$unit); - } - } - } - - /** - * Returns the factor for a given source-to-target couple. - * - * @param string $source - * @param string $target - * - * @return int|float|null - */ - public static function getFactor($source, $target) - { - $source = self::standardizeUnit($source); - $target = self::standardizeUnit($target); - $factors = self::getFlipCascadeFactors(); - - if (isset($factors[$source])) { - [$to, $factor] = $factors[$source]; - - if ($to === $target) { - return $factor; - } - - return $factor * static::getFactor($to, $target); - } - - return null; - } - - /** - * Returns the factor for a given source-to-target couple if set, - * else try to find the appropriate constant as the factor, such as Carbon::DAYS_PER_WEEK. - * - * @param string $source - * @param string $target - * - * @return int|float|null - */ - public static function getFactorWithDefault($source, $target) - { - $factor = self::getFactor($source, $target); - - if ($factor) { - return $factor; - } - - static $defaults = [ - 'month' => ['year' => Carbon::MONTHS_PER_YEAR], - 'week' => ['month' => Carbon::WEEKS_PER_MONTH], - 'day' => ['week' => Carbon::DAYS_PER_WEEK], - 'hour' => ['day' => Carbon::HOURS_PER_DAY], - 'minute' => ['hour' => Carbon::MINUTES_PER_HOUR], - 'second' => ['minute' => Carbon::SECONDS_PER_MINUTE], - 'millisecond' => ['second' => Carbon::MILLISECONDS_PER_SECOND], - 'microsecond' => ['millisecond' => Carbon::MICROSECONDS_PER_MILLISECOND], - ]; - - return $defaults[$source][$target] ?? null; - } - - /** - * Returns current config for days per week. - * - * @return int|float - */ - public static function getDaysPerWeek() - { - return static::getFactor('dayz', 'weeks') ?: Carbon::DAYS_PER_WEEK; - } - - /** - * Returns current config for hours per day. - * - * @return int|float - */ - public static function getHoursPerDay() - { - return static::getFactor('hours', 'dayz') ?: Carbon::HOURS_PER_DAY; - } - - /** - * Returns current config for minutes per hour. - * - * @return int|float - */ - public static function getMinutesPerHour() - { - return static::getFactor('minutes', 'hours') ?: Carbon::MINUTES_PER_HOUR; - } - - /** - * Returns current config for seconds per minute. - * - * @return int|float - */ - public static function getSecondsPerMinute() - { - return static::getFactor('seconds', 'minutes') ?: Carbon::SECONDS_PER_MINUTE; - } - - /** - * Returns current config for microseconds per second. - * - * @return int|float - */ - public static function getMillisecondsPerSecond() - { - return static::getFactor('milliseconds', 'seconds') ?: Carbon::MILLISECONDS_PER_SECOND; - } - - /** - * Returns current config for microseconds per second. - * - * @return int|float - */ - public static function getMicrosecondsPerMillisecond() - { - return static::getFactor('microseconds', 'milliseconds') ?: Carbon::MICROSECONDS_PER_MILLISECOND; - } - - /** - * Create a new CarbonInterval instance from specific values. - * This is an alias for the constructor that allows better fluent - * syntax as it allows you to do CarbonInterval::create(1)->fn() rather than - * (new CarbonInterval(1))->fn(). - * - * @param int $years - * @param int $months - * @param int $weeks - * @param int $days - * @param int $hours - * @param int $minutes - * @param int $seconds - * @param int $microseconds - * - * @throws Exception when the interval_spec (passed as $years) cannot be parsed as an interval. - * - * @return static - */ - public static function create($years = null, $months = null, $weeks = null, $days = null, $hours = null, $minutes = null, $seconds = null, $microseconds = null) - { - return new static($years, $months, $weeks, $days, $hours, $minutes, $seconds, $microseconds); - } - - /** - * Parse a string into a new CarbonInterval object according to the specified format. - * - * @example - * ``` - * echo Carboninterval::createFromFormat('H:i', '1:30'); - * ``` - * - * @param string $format Format of the $interval input string - * @param string|null $interval Input string to convert into an interval - * - * @throws \Carbon\Exceptions\ParseErrorException when the $interval cannot be parsed as an interval. - * - * @return static - */ - public static function createFromFormat(string $format, ?string $interval): static - { - $instance = new static(0); - $length = mb_strlen($format); - - if (preg_match('/s([,.])([uv])$/', $format, $match)) { - $interval = explode($match[1], $interval); - $index = \count($interval) - 1; - $interval[$index] = str_pad($interval[$index], $match[2] === 'v' ? 3 : 6, '0'); - $interval = implode($match[1], $interval); - } - - $interval ??= ''; - - for ($index = 0; $index < $length; $index++) { - $expected = mb_substr($format, $index, 1); - $nextCharacter = mb_substr($interval, 0, 1); - $unit = static::$formats[$expected] ?? null; - - if ($unit) { - if (!preg_match('/^-?\d+/', $interval, $match)) { - throw new ParseErrorException('number', $nextCharacter); - } - - $interval = mb_substr($interval, mb_strlen($match[0])); - $instance->$unit += (int) ($match[0]); - - continue; - } - - if ($nextCharacter !== $expected) { - throw new ParseErrorException( - "'$expected'", - $nextCharacter, - 'Allowed substitutes for interval formats are '.implode(', ', array_keys(static::$formats))."\n". - 'See https://php.net/manual/en/function.date.php for their meaning', - ); - } - - $interval = mb_substr($interval, 1); - } - - if ($interval !== '') { - throw new ParseErrorException( - 'end of string', - $interval, - ); - } - - return $instance; - } - - /** - * Return the original source used to create the current interval. - * - * @return array|int|string|DateInterval|mixed|null - */ - public function original() - { - return $this->originalInput; - } - - /** - * Return the start date if interval was created from a difference between 2 dates. - * - * @return CarbonInterface|null - */ - public function start(): ?CarbonInterface - { - $this->checkStartAndEnd(); - - return $this->startDate; - } - - /** - * Return the end date if interval was created from a difference between 2 dates. - * - * @return CarbonInterface|null - */ - public function end(): ?CarbonInterface - { - $this->checkStartAndEnd(); - - return $this->endDate; - } - - /** - * Get rid of the original input, start date and end date that may be kept in memory. - * - * @return $this - */ - public function optimize(): static - { - $this->originalInput = null; - $this->startDate = null; - $this->endDate = null; - $this->rawInterval = null; - $this->absolute = false; - - return $this; - } - - /** - * Get a copy of the instance. - * - * @return static - */ - public function copy(): static - { - $date = new static(0); - $date->copyProperties($this); - $date->step = $this->step; - - return $date; - } - - /** - * Get a copy of the instance. - * - * @return static - */ - public function clone(): static - { - return $this->copy(); - } - - /** - * Provide static helpers to create instances. Allows CarbonInterval::years(3). - * - * Note: This is done using the magic method to allow static and instance methods to - * have the same names. - * - * @param string $method magic method name called - * @param array $parameters parameters list - * - * @return static|mixed|null - */ - public static function __callStatic(string $method, array $parameters) - { - try { - $interval = new static(0); - $localStrictModeEnabled = $interval->localStrictModeEnabled; - $interval->localStrictModeEnabled = true; - - $result = static::hasMacro($method) - ? static::bindMacroContext(null, function () use (&$method, &$parameters, &$interval) { - return $interval->callMacro($method, $parameters); - }) - : $interval->$method(...$parameters); - - $interval->localStrictModeEnabled = $localStrictModeEnabled; - - return $result; - } catch (BadFluentSetterException $exception) { - if (Carbon::isStrictModeEnabled()) { - throw new BadFluentConstructorException($method, 0, $exception); - } - - return null; - } - } - - /** - * Evaluate the PHP generated by var_export() and recreate the exported CarbonInterval instance. - * - * @param array $dump data as exported by var_export() - * - * @return static - */ - #[ReturnTypeWillChange] - public static function __set_state($dump) - { - /** @noinspection PhpVoidFunctionResultUsedInspection */ - /** @var DateInterval $dateInterval */ - $dateInterval = parent::__set_state($dump); - - return static::instance($dateInterval); - } - - /** - * Return the current context from inside a macro callee or a new one if static. - * - * @return static - */ - protected static function this(): static - { - return end(static::$macroContextStack) ?: new static(0); - } - - /** - * Creates a CarbonInterval from string. - * - * Format: - * - * Suffix | Unit | Example | DateInterval expression - * -------|---------|---------|------------------------ - * y | years | 1y | P1Y - * mo | months | 3mo | P3M - * w | weeks | 2w | P2W - * d | days | 28d | P28D - * h | hours | 4h | PT4H - * m | minutes | 12m | PT12M - * s | seconds | 59s | PT59S - * - * e. g. `1w 3d 4h 32m 23s` is converted to 10 days 4 hours 32 minutes and 23 seconds. - * - * Special cases: - * - An empty string will return a zero interval - * - Fractions are allowed for weeks, days, hours and minutes and will be converted - * and rounded to the next smaller value (caution: 0.5w = 4d) - * - * @param string $intervalDefinition - * - * @throws InvalidIntervalException - * - * @return static - */ - public static function fromString(string $intervalDefinition): static - { - if (empty($intervalDefinition)) { - return self::withOriginal(new static(0), $intervalDefinition); - } - - $years = 0; - $months = 0; - $weeks = 0; - $days = 0; - $hours = 0; - $minutes = 0; - $seconds = 0; - $milliseconds = 0; - $microseconds = 0; - - $pattern = '/(-?\d+(?:\.\d+)?)\h*([^\d\h]*)/i'; - preg_match_all($pattern, $intervalDefinition, $parts, PREG_SET_ORDER); - - while ([$part, $value, $unit] = array_shift($parts)) { - $intValue = (int) $value; - $fraction = (float) $value - $intValue; - - // Fix calculation precision - switch (round($fraction, 6)) { - case 1: - $fraction = 0; - $intValue++; - - break; - case 0: - $fraction = 0; - - break; - } - - switch ($unit === 'µs' ? 'µs' : strtolower($unit)) { - case 'millennia': - case 'millennium': - $years += $intValue * CarbonInterface::YEARS_PER_MILLENNIUM; - - break; - - case 'century': - case 'centuries': - $years += $intValue * CarbonInterface::YEARS_PER_CENTURY; - - break; - - case 'decade': - case 'decades': - $years += $intValue * CarbonInterface::YEARS_PER_DECADE; - - break; - - case 'year': - case 'years': - case 'y': - case 'yr': - case 'yrs': - $years += $intValue; - - break; - - case 'quarter': - case 'quarters': - $months += $intValue * CarbonInterface::MONTHS_PER_QUARTER; - - break; - - case 'month': - case 'months': - case 'mo': - case 'mos': - $months += $intValue; - - break; - - case 'week': - case 'weeks': - case 'w': - $weeks += $intValue; - - if ($fraction) { - $parts[] = [null, $fraction * static::getDaysPerWeek(), 'd']; - } - - break; - - case 'day': - case 'days': - case 'd': - $days += $intValue; - - if ($fraction) { - $parts[] = [null, $fraction * static::getHoursPerDay(), 'h']; - } - - break; - - case 'hour': - case 'hours': - case 'h': - $hours += $intValue; - - if ($fraction) { - $parts[] = [null, $fraction * static::getMinutesPerHour(), 'm']; - } - - break; - - case 'minute': - case 'minutes': - case 'm': - $minutes += $intValue; - - if ($fraction) { - $parts[] = [null, $fraction * static::getSecondsPerMinute(), 's']; - } - - break; - - case 'second': - case 'seconds': - case 's': - $seconds += $intValue; - - if ($fraction) { - $parts[] = [null, $fraction * static::getMillisecondsPerSecond(), 'ms']; - } - - break; - - case 'millisecond': - case 'milliseconds': - case 'milli': - case 'ms': - $milliseconds += $intValue; - - if ($fraction) { - $microseconds += round($fraction * static::getMicrosecondsPerMillisecond()); - } - - break; - - case 'microsecond': - case 'microseconds': - case 'micro': - case 'µs': - $microseconds += $intValue; - - break; - - default: - throw new InvalidIntervalException( - \sprintf('Invalid part %s in definition %s', $part, $intervalDefinition), - ); - } - } - - return self::withOriginal( - new static($years, $months, $weeks, $days, $hours, $minutes, $seconds, $milliseconds * Carbon::MICROSECONDS_PER_MILLISECOND + $microseconds), - $intervalDefinition, - ); - } - - /** - * Creates a CarbonInterval from string using a different locale. - * - * @param string $interval interval string in the given language (may also contain English). - * @param string|null $locale if locale is null or not specified, current global locale will be used instead. - * - * @return static - */ - public static function parseFromLocale(string $interval, ?string $locale = null): static - { - return static::fromString(Carbon::translateTimeString($interval, $locale ?: static::getLocale(), CarbonInterface::DEFAULT_LOCALE)); - } - - /** - * Create an interval from the difference between 2 dates. - * - * @param \Carbon\Carbon|\DateTimeInterface|mixed $start - * @param \Carbon\Carbon|\DateTimeInterface|mixed $end - * - * @return static - */ - public static function diff($start, $end = null, bool $absolute = false, array $skip = []): static - { - $start = $start instanceof CarbonInterface ? $start : Carbon::make($start); - $end = $end instanceof CarbonInterface ? $end : Carbon::make($end); - $rawInterval = $start->diffAsDateInterval($end, $absolute); - $interval = static::instance($rawInterval, $skip); - - $interval->absolute = $absolute; - $interval->rawInterval = $rawInterval; - $interval->startDate = $start; - $interval->endDate = $end; - $interval->initialValues = $interval->getInnerValues(); - - return $interval; - } - - /** - * Invert the interval if it's inverted. - * - * @param bool $absolute do nothing if set to false - * - * @return $this - */ - public function abs(bool $absolute = false): static - { - if ($absolute && $this->invert) { - $this->invert(); - } - - return $this; - } - - /** - * @alias abs - * - * Invert the interval if it's inverted. - * - * @param bool $absolute do nothing if set to false - * - * @return $this - */ - public function absolute(bool $absolute = true): static - { - return $this->abs($absolute); - } - - /** - * Cast the current instance into the given class. - * - * @template T of DateInterval - * - * @psalm-param class-string $className The $className::instance() method will be called to cast the current object. - * - * @return T - */ - public function cast(string $className): mixed - { - return self::castIntervalToClass($this, $className); - } - - /** - * Create a CarbonInterval instance from a DateInterval one. Can not instance - * DateInterval objects created from DateTime::diff() as you can't externally - * set the $days field. - * - * @param DateInterval $interval - * @param bool $skipCopy set to true to return the passed object - * (without copying it) if it's already of the - * current class - * - * @return static - */ - public static function instance(DateInterval $interval, array $skip = [], bool $skipCopy = false): static - { - if ($skipCopy && $interval instanceof static) { - return $interval; - } - - return self::castIntervalToClass($interval, static::class, $skip); - } - - /** - * Make a CarbonInterval instance from given variable if possible. - * - * Always return a new instance. Parse only strings and only these likely to be intervals (skip dates - * and recurrences). Throw an exception for invalid format, but otherwise return null. - * - * @param mixed|int|DateInterval|string|Closure|Unit|null $interval interval or number of the given $unit - * @param Unit|string|null $unit if specified, $interval must be an integer - * @param bool $skipCopy set to true to return the passed object - * (without copying it) if it's already of the - * current class - * - * @return static|null - */ - public static function make($interval, $unit = null, bool $skipCopy = false): ?self - { - if ($interval instanceof Unit) { - $interval = $interval->interval(); - } - - if ($unit instanceof Unit) { - $unit = $unit->value; - } - - if ($unit) { - $interval = "$interval $unit"; - } - - if ($interval instanceof DateInterval) { - return static::instance($interval, [], $skipCopy); - } - - if ($interval instanceof Closure) { - return self::withOriginal(new static($interval), $interval); - } - - if (!\is_string($interval)) { - return null; - } - - return static::makeFromString($interval); - } - - protected static function makeFromString(string $interval): ?self - { - $interval = preg_replace('/\s+/', ' ', trim($interval)); - - if (preg_match('/^P[T\d]/', $interval)) { - return new static($interval); - } - - if (preg_match('/^(?:\h*-?\d+(?:\.\d+)?\h*[a-z]+)+$/i', $interval)) { - return static::fromString($interval); - } - - $intervalInstance = static::createFromDateString($interval); - - return $intervalInstance->isEmpty() ? null : $intervalInstance; - } - - protected function resolveInterval($interval): ?self - { - if (!($interval instanceof self)) { - return self::make($interval); - } - - return $interval; - } - - /** - * Sets up a DateInterval from the relative parts of the string. - * - * @param string $datetime - * - * @return static - * - * @link https://php.net/manual/en/dateinterval.createfromdatestring.php - */ - public static function createFromDateString(string $datetime): static - { - $string = strtr($datetime, [ - ',' => ' ', - ' and ' => ' ', - ]); - $previousException = null; - - try { - $interval = parent::createFromDateString($string); - } catch (Throwable $exception) { - $interval = null; - $previousException = $exception; - } - - $interval ?: throw new InvalidFormatException( - 'Could not create interval from: '.var_export($datetime, true), - previous: $previousException, - ); - - if (!($interval instanceof static)) { - $interval = static::instance($interval); - } - - return self::withOriginal($interval, $datetime); - } - - /////////////////////////////////////////////////////////////////// - ///////////////////////// GETTERS AND SETTERS ///////////////////// - /////////////////////////////////////////////////////////////////// - - /** - * Get a part of the CarbonInterval object. - */ - public function get(Unit|string $name): int|float|string|null - { - $name = Unit::toName($name); - - if (str_starts_with($name, 'total')) { - return $this->total(substr($name, 5)); - } - - $resolvedUnit = Carbon::singularUnit(rtrim($name, 'z')); - - return match ($resolvedUnit) { - 'tzname', 'tz_name' => match (true) { - ($this->timezoneSetting === null) => null, - \is_string($this->timezoneSetting) => $this->timezoneSetting, - ($this->timezoneSetting instanceof DateTimeZone) => $this->timezoneSetting->getName(), - default => CarbonTimeZone::instance($this->timezoneSetting)->getName(), - }, - 'year' => $this->y, - 'month' => $this->m, - 'day' => $this->d, - 'hour' => $this->h, - 'minute' => $this->i, - 'second' => $this->s, - 'milli', 'millisecond' => (int) (round($this->f * Carbon::MICROSECONDS_PER_SECOND) / - Carbon::MICROSECONDS_PER_MILLISECOND), - 'micro', 'microsecond' => (int) round($this->f * Carbon::MICROSECONDS_PER_SECOND), - 'microexcludemilli' => (int) round($this->f * Carbon::MICROSECONDS_PER_SECOND) % - Carbon::MICROSECONDS_PER_MILLISECOND, - 'week' => (int) ($this->d / (int) static::getDaysPerWeek()), - 'daysexcludeweek', 'dayzexcludeweek' => $this->d % (int) static::getDaysPerWeek(), - 'locale' => $this->getTranslatorLocale(), - default => throw new UnknownGetterException($name, previous: new UnknownGetterException($resolvedUnit)), - }; - } - - /** - * Get a part of the CarbonInterval object. - */ - public function __get(string $name): int|float|string|null - { - return $this->get($name); - } - - /** - * Set a part of the CarbonInterval object. - * - * @param Unit|string|array $name - * @param int $value - * - * @throws UnknownSetterException - * - * @return $this - */ - public function set($name, $value = null): static - { - $properties = \is_array($name) ? $name : [$name => $value]; - - foreach ($properties as $key => $value) { - switch (Carbon::singularUnit($key instanceof Unit ? $key->value : rtrim((string) $key, 'z'))) { - case 'year': - $this->checkIntegerValue($key, $value); - $this->y = $value; - $this->handleDecimalPart('year', $value, $this->y); - - break; - - case 'month': - $this->checkIntegerValue($key, $value); - $this->m = $value; - $this->handleDecimalPart('month', $value, $this->m); - - break; - - case 'week': - $this->checkIntegerValue($key, $value); - $days = $value * (int) static::getDaysPerWeek(); - $this->assertSafeForInteger('days total (including weeks)', $days); - $this->d = $days; - $this->handleDecimalPart('day', $days, $this->d); - - break; - - case 'day': - if ($value === false) { - break; - } - - $this->checkIntegerValue($key, $value); - $this->d = $value; - $this->handleDecimalPart('day', $value, $this->d); - - break; - - case 'daysexcludeweek': - case 'dayzexcludeweek': - $this->checkIntegerValue($key, $value); - $days = $this->weeks * (int) static::getDaysPerWeek() + $value; - $this->assertSafeForInteger('days total (including weeks)', $days); - $this->d = $days; - $this->handleDecimalPart('day', $days, $this->d); - - break; - - case 'hour': - $this->checkIntegerValue($key, $value); - $this->h = $value; - $this->handleDecimalPart('hour', $value, $this->h); - - break; - - case 'minute': - $this->checkIntegerValue($key, $value); - $this->i = $value; - $this->handleDecimalPart('minute', $value, $this->i); - - break; - - case 'second': - $this->checkIntegerValue($key, $value); - $this->s = $value; - $this->handleDecimalPart('second', $value, $this->s); - - break; - - case 'milli': - case 'millisecond': - $this->microseconds = $value * Carbon::MICROSECONDS_PER_MILLISECOND + $this->microseconds % Carbon::MICROSECONDS_PER_MILLISECOND; - - break; - - case 'micro': - case 'microsecond': - $this->f = $value / Carbon::MICROSECONDS_PER_SECOND; - - break; - - default: - if (str_starts_with($key, ' * ')) { - return $this->setSetting(substr($key, 3), $value); - } - - if ($this->localStrictModeEnabled ?? Carbon::isStrictModeEnabled()) { - throw new UnknownSetterException($key); - } - - $this->$key = $value; - } - } - - return $this; - } - - /** - * Set a part of the CarbonInterval object. - * - * @param string $name - * @param int $value - * - * @throws UnknownSetterException - */ - public function __set(string $name, $value) - { - $this->set($name, $value); - } - - /** - * Allow setting of weeks and days to be cumulative. - * - * @param int $weeks Number of weeks to set - * @param int $days Number of days to set - * - * @return static - */ - public function weeksAndDays(int $weeks, int $days): static - { - $this->dayz = ($weeks * static::getDaysPerWeek()) + $days; - - return $this; - } - - /** - * Returns true if the interval is empty for each unit. - * - * @return bool - */ - public function isEmpty(): bool - { - return $this->years === 0 && - $this->months === 0 && - $this->dayz === 0 && - !$this->days && - $this->hours === 0 && - $this->minutes === 0 && - $this->seconds === 0 && - $this->microseconds === 0; - } - - /** - * Register a custom macro. - * - * Pass null macro to remove it. - * - * @example - * ``` - * CarbonInterval::macro('twice', function () { - * return $this->times(2); - * }); - * echo CarbonInterval::hours(2)->twice(); - * ``` - */ - public static function macro(string $name, ?callable $macro): void - { - static::$macros[$name] = $macro; - } - - /** - * Register macros from a mixin object. - * - * @example - * ``` - * CarbonInterval::mixin(new class { - * public function daysToHours() { - * return function () { - * $this->hours += $this->days; - * $this->days = 0; - * - * return $this; - * }; - * } - * public function hoursToDays() { - * return function () { - * $this->days += $this->hours; - * $this->hours = 0; - * - * return $this; - * }; - * } - * }); - * echo CarbonInterval::hours(5)->hoursToDays() . "\n"; - * echo CarbonInterval::days(5)->daysToHours() . "\n"; - * ``` - * - * @param object|string $mixin - * - * @throws ReflectionException - * - * @return void - */ - public static function mixin($mixin): void - { - static::baseMixin($mixin); - } - - /** - * Check if macro is registered. - * - * @param string $name - * - * @return bool - */ - public static function hasMacro(string $name): bool - { - return isset(static::$macros[$name]); - } - - /** - * Call given macro. - * - * @param string $name - * @param array $parameters - * - * @return mixed - */ - protected function callMacro(string $name, array $parameters) - { - $macro = static::$macros[$name]; - - if ($macro instanceof Closure) { - $boundMacro = @$macro->bindTo($this, static::class) ?: @$macro->bindTo(null, static::class); - - return ($boundMacro ?: $macro)(...$parameters); - } - - return $macro(...$parameters); - } - - /** - * Allow fluent calls on the setters... CarbonInterval::years(3)->months(5)->day(). - * - * Note: This is done using the magic method to allow static and instance methods to - * have the same names. - * - * @param string $method magic method name called - * @param array $parameters parameters list - * - * @throws BadFluentSetterException|Throwable - * - * @return static|int|float|string - */ - public function __call(string $method, array $parameters) - { - if (static::hasMacro($method)) { - return static::bindMacroContext($this, function () use (&$method, &$parameters) { - return $this->callMacro($method, $parameters); - }); - } - - $roundedValue = $this->callRoundMethod($method, $parameters); - - if ($roundedValue !== null) { - return $roundedValue; - } - - if (preg_match('/^(?add|sub)(?[A-Z].*)$/', $method, $match)) { - $value = $this->getMagicParameter($parameters, 0, Carbon::pluralUnit($match['unit']), 0); - - return $this->{$match['method']}($value, $match['unit']); - } - - $value = $this->getMagicParameter($parameters, 0, Carbon::pluralUnit($method), 1); - - try { - $this->set($method, $value); - } catch (UnknownSetterException $exception) { - if ($this->localStrictModeEnabled ?? Carbon::isStrictModeEnabled()) { - throw new BadFluentSetterException($method, 0, $exception); - } - } - - return $this; - } - - protected function getForHumansInitialVariables($syntax, $short): array - { - if (\is_array($syntax)) { - return $syntax; - } - - if (\is_int($short)) { - return [ - 'parts' => $short, - 'short' => false, - ]; - } - - if (\is_bool($syntax)) { - return [ - 'short' => $syntax, - 'syntax' => CarbonInterface::DIFF_ABSOLUTE, - ]; - } - - return []; - } - - /** - * @param mixed $syntax - * @param mixed $short - * @param mixed $parts - * @param mixed $options - * - * @return array - */ - protected function getForHumansParameters($syntax = null, $short = false, $parts = self::NO_LIMIT, $options = null): array - { - $optionalSpace = ' '; - $default = $this->getTranslationMessage('list.0') ?? $this->getTranslationMessage('list') ?? ' '; - /** @var bool|string $join */ - $join = $default === '' ? '' : ' '; - /** @var bool|array|string $altNumbers */ - $altNumbers = false; - $aUnit = false; - $minimumUnit = 's'; - $skip = []; - extract($this->getForHumansInitialVariables($syntax, $short)); - $skip = array_map( - static fn ($unit) => $unit instanceof Unit ? $unit->value : $unit, - (array) $skip, - ); - $skip = array_map( - 'strtolower', - array_filter($skip, static fn ($unit) => \is_string($unit) && $unit !== ''), - ); - - $syntax ??= CarbonInterface::DIFF_ABSOLUTE; - - if ($parts === self::NO_LIMIT) { - $parts = INF; - } - - $options ??= static::getHumanDiffOptions(); - - if ($join === false) { - $join = ' '; - } elseif ($join === true) { - $join = [ - $default, - $this->getTranslationMessage('list.1') ?? $default, - ]; - } - - if ($altNumbers && $altNumbers !== true) { - $language = new Language($this->locale); - $altNumbers = \in_array($language->getCode(), (array) $altNumbers, true); - } - - if (\is_array($join)) { - [$default, $last] = $join; - - if ($default !== ' ') { - $optionalSpace = ''; - } - - $join = function ($list) use ($default, $last) { - if (\count($list) < 2) { - return implode('', $list); - } - - $end = array_pop($list); - - return implode($default, $list).$last.$end; - }; - } - - if (\is_string($join)) { - if ($join !== ' ') { - $optionalSpace = ''; - } - - $glue = $join; - $join = static fn ($list) => implode($glue, $list); - } - - $interpolations = [ - ':optional-space' => $optionalSpace, - ]; - - $translator ??= isset($locale) ? Translator::get($locale) : null; - - return [$syntax, $short, $parts, $options, $join, $aUnit, $altNumbers, $interpolations, $minimumUnit, $skip, $translator]; - } - - protected static function getRoundingMethodFromOptions(int $options): ?string - { - if ($options & CarbonInterface::ROUND) { - return 'round'; - } - - if ($options & CarbonInterface::CEIL) { - return 'ceil'; - } - - if ($options & CarbonInterface::FLOOR) { - return 'floor'; - } - - return null; - } - - /** - * Returns interval values as an array where key are the unit names and values the counts. - * - * @return int[] - */ - public function toArray(): array - { - return [ - 'years' => $this->years, - 'months' => $this->months, - 'weeks' => $this->weeks, - 'days' => $this->daysExcludeWeeks, - 'hours' => $this->hours, - 'minutes' => $this->minutes, - 'seconds' => $this->seconds, - 'microseconds' => $this->microseconds, - ]; - } - - /** - * Returns interval non-zero values as an array where key are the unit names and values the counts. - * - * @return int[] - */ - public function getNonZeroValues(): array - { - return array_filter($this->toArray(), 'intval'); - } - - /** - * Returns interval values as an array where key are the unit names and values the counts - * from the biggest non-zero one the the smallest non-zero one. - * - * @return int[] - */ - public function getValuesSequence(): array - { - $nonZeroValues = $this->getNonZeroValues(); - - if ($nonZeroValues === []) { - return []; - } - - $keys = array_keys($nonZeroValues); - $firstKey = $keys[0]; - $lastKey = $keys[\count($keys) - 1]; - $values = []; - $record = false; - - foreach ($this->toArray() as $unit => $count) { - if ($unit === $firstKey) { - $record = true; - } - - if ($record) { - $values[$unit] = $count; - } - - if ($unit === $lastKey) { - $record = false; - } - } - - return $values; - } - - /** - * Get the current interval in a human readable format in the current locale. - * - * @example - * ``` - * echo CarbonInterval::fromString('4d 3h 40m')->forHumans() . "\n"; - * echo CarbonInterval::fromString('4d 3h 40m')->forHumans(['parts' => 2]) . "\n"; - * echo CarbonInterval::fromString('4d 3h 40m')->forHumans(['parts' => 3, 'join' => true]) . "\n"; - * echo CarbonInterval::fromString('4d 3h 40m')->forHumans(['short' => true]) . "\n"; - * echo CarbonInterval::fromString('1d 24h')->forHumans(['join' => ' or ']) . "\n"; - * echo CarbonInterval::fromString('1d 24h')->forHumans(['minimumUnit' => 'hour']) . "\n"; - * ``` - * - * @param int|array $syntax if array passed, parameters will be extracted from it, the array may contain: - * ⦿ 'syntax' entry (see below) - * ⦿ 'short' entry (see below) - * ⦿ 'parts' entry (see below) - * ⦿ 'options' entry (see below) - * ⦿ 'skip' entry, list of units to skip (array of strings or a single string, - * ` it can be the unit name (singular or plural) or its shortcut - * ` (y, m, w, d, h, min, s, ms, µs). - * ⦿ 'aUnit' entry, prefer "an hour" over "1 hour" if true - * ⦿ 'altNumbers' entry, use alternative numbers if available - * ` (from the current language if true is passed, from the given language(s) - * ` if array or string is passed) - * ⦿ 'join' entry determines how to join multiple parts of the string - * ` - if $join is a string, it's used as a joiner glue - * ` - if $join is a callable/closure, it get the list of string and should return a string - * ` - if $join is an array, the first item will be the default glue, and the second item - * ` will be used instead of the glue for the last item - * ` - if $join is true, it will be guessed from the locale ('list' translation file entry) - * ` - if $join is missing, a space will be used as glue - * ⦿ 'minimumUnit' entry determines the smallest unit of time to display can be long or - * ` short form of the units, e.g. 'hour' or 'h' (default value: s) - * ⦿ 'locale' language in which the diff should be output (has no effect if 'translator' key is set) - * ⦿ 'translator' a custom translator to use to translator the output. - * if int passed, it adds modifiers: - * Possible values: - * - CarbonInterface::DIFF_ABSOLUTE no modifiers - * - CarbonInterface::DIFF_RELATIVE_TO_NOW add ago/from now modifier - * - CarbonInterface::DIFF_RELATIVE_TO_OTHER add before/after modifier - * Default value: CarbonInterface::DIFF_ABSOLUTE - * @param bool $short displays short format of time units - * @param int $parts maximum number of parts to display (default value: -1: no limits) - * @param int $options human diff options - * - * @throws Exception - * - * @return string - */ - public function forHumans($syntax = null, $short = false, $parts = self::NO_LIMIT, $options = null): string - { - /* @var TranslatorInterface|null $translator */ - [$syntax, $short, $parts, $options, $join, $aUnit, $altNumbers, $interpolations, $minimumUnit, $skip, $translator] = $this - ->getForHumansParameters($syntax, $short, $parts, $options); - - $interval = []; - - $syntax = (int) ($syntax ?? CarbonInterface::DIFF_ABSOLUTE); - $absolute = $syntax === CarbonInterface::DIFF_ABSOLUTE; - $relativeToNow = $syntax === CarbonInterface::DIFF_RELATIVE_TO_NOW; - $count = 1; - $unit = $short ? 's' : 'second'; - $isFuture = $this->invert === 1; - $transId = $relativeToNow ? ($isFuture ? 'from_now' : 'ago') : ($isFuture ? 'after' : 'before'); - $declensionMode = null; - - $translator ??= $this->getLocalTranslator(); - - $handleDeclensions = function ($unit, $count, $index = 0, $parts = 1) use ($interpolations, $transId, $translator, $altNumbers, $absolute, &$declensionMode) { - if (!$absolute) { - $declensionMode = $declensionMode ?? $this->translate($transId.'_mode'); - - if ($this->needsDeclension($declensionMode, $index, $parts)) { - // Some languages have special pluralization for past and future tense. - $key = $unit.'_'.$transId; - $result = $this->translate($key, $interpolations, $count, $translator, $altNumbers); - - if ($result !== $key) { - return $result; - } - } - } - - $result = $this->translate($unit, $interpolations, $count, $translator, $altNumbers); - - if ($result !== $unit) { - return $result; - } - - return null; - }; - - $intervalValues = $this; - $method = static::getRoundingMethodFromOptions($options); - - if ($method) { - $previousCount = INF; - - while ( - \count($intervalValues->getNonZeroValues()) > $parts && - ($count = \count($keys = array_keys($intervalValues->getValuesSequence()))) > 1 - ) { - $index = min($count, $previousCount - 1) - 2; - - if ($index < 0) { - break; - } - - $intervalValues = $this->copy()->roundUnit( - $keys[$index], - 1, - $method, - ); - $previousCount = $count; - } - } - - $diffIntervalArray = [ - ['value' => $intervalValues->years, 'unit' => 'year', 'unitShort' => 'y'], - ['value' => $intervalValues->months, 'unit' => 'month', 'unitShort' => 'm'], - ['value' => $intervalValues->weeks, 'unit' => 'week', 'unitShort' => 'w'], - ['value' => $intervalValues->daysExcludeWeeks, 'unit' => 'day', 'unitShort' => 'd'], - ['value' => $intervalValues->hours, 'unit' => 'hour', 'unitShort' => 'h'], - ['value' => $intervalValues->minutes, 'unit' => 'minute', 'unitShort' => 'min'], - ['value' => $intervalValues->seconds, 'unit' => 'second', 'unitShort' => 's'], - ['value' => $intervalValues->milliseconds, 'unit' => 'millisecond', 'unitShort' => 'ms'], - ['value' => $intervalValues->microExcludeMilli, 'unit' => 'microsecond', 'unitShort' => 'µs'], - ]; - - if (!empty($skip)) { - foreach ($diffIntervalArray as $index => &$unitData) { - $nextIndex = $index + 1; - - if ($unitData['value'] && - isset($diffIntervalArray[$nextIndex]) && - \count(array_intersect([$unitData['unit'], $unitData['unit'].'s', $unitData['unitShort']], $skip)) - ) { - $diffIntervalArray[$nextIndex]['value'] += $unitData['value'] * - self::getFactorWithDefault($diffIntervalArray[$nextIndex]['unit'], $unitData['unit']); - $unitData['value'] = 0; - } - } - } - - $transChoice = function ($short, $unitData, $index, $parts) use ($absolute, $handleDeclensions, $translator, $aUnit, $altNumbers, $interpolations) { - $count = $unitData['value']; - - if ($short) { - $result = $handleDeclensions($unitData['unitShort'], $count, $index, $parts); - - if ($result !== null) { - return $result; - } - } elseif ($aUnit) { - $result = $handleDeclensions('a_'.$unitData['unit'], $count, $index, $parts); - - if ($result !== null) { - return $result; - } - } - - if (!$absolute) { - return $handleDeclensions($unitData['unit'], $count, $index, $parts); - } - - return $this->translate($unitData['unit'], $interpolations, $count, $translator, $altNumbers); - }; - - $fallbackUnit = ['second', 's']; - - foreach ($diffIntervalArray as $diffIntervalData) { - if ($diffIntervalData['value'] > 0) { - $unit = $short ? $diffIntervalData['unitShort'] : $diffIntervalData['unit']; - $count = $diffIntervalData['value']; - $interval[] = [$short, $diffIntervalData]; - } elseif ($options & CarbonInterface::SEQUENTIAL_PARTS_ONLY && \count($interval) > 0) { - break; - } - - // break the loop after we get the required number of parts in array - if (\count($interval) >= $parts) { - break; - } - - // break the loop after we have reached the minimum unit - if (\in_array($minimumUnit, [$diffIntervalData['unit'], $diffIntervalData['unitShort']], true)) { - $fallbackUnit = [$diffIntervalData['unit'], $diffIntervalData['unitShort']]; - - break; - } - } - - $actualParts = \count($interval); - - foreach ($interval as $index => &$item) { - $item = $transChoice($item[0], $item[1], $index, $actualParts); - } - - if (\count($interval) === 0) { - if ($relativeToNow && $options & CarbonInterface::JUST_NOW) { - $key = 'diff_now'; - $translation = $this->translate($key, $interpolations, null, $translator); - - if ($translation !== $key) { - return $translation; - } - } - - $count = $options & CarbonInterface::NO_ZERO_DIFF ? 1 : 0; - $unit = $fallbackUnit[$short ? 1 : 0]; - $interval[] = $this->translate($unit, $interpolations, $count, $translator, $altNumbers); - } - - // join the interval parts by a space - $time = $join($interval); - - unset($diffIntervalArray, $interval); - - if ($absolute) { - return $time; - } - - $isFuture = $this->invert === 1; - - $transId = $relativeToNow ? ($isFuture ? 'from_now' : 'ago') : ($isFuture ? 'after' : 'before'); - - if ($parts === 1) { - if ($relativeToNow && $unit === 'day') { - $specialTranslations = static::SPECIAL_TRANSLATIONS[$count] ?? null; - - if ($specialTranslations && $options & $specialTranslations['option']) { - $key = $specialTranslations[$isFuture ? 'future' : 'past']; - $translation = $this->translate($key, $interpolations, null, $translator); - - if ($translation !== $key) { - return $translation; - } - } - } - - $aTime = $aUnit ? $handleDeclensions('a_'.$unit, $count) : null; - - $time = $aTime ?: $handleDeclensions($unit, $count) ?: $time; - } - - $time = [':time' => $time]; - - return $this->translate($transId, array_merge($time, $interpolations, $time), null, $translator); - } - - public function format(string $format): string - { - $output = parent::format($format); - - if (!str_contains($format, '%a') || !isset($this->startDate, $this->endDate)) { - return $output; - } - - $this->rawInterval ??= $this->startDate->diffAsDateInterval($this->endDate); - - return str_replace('(unknown)', $this->rawInterval->format('%a'), $output); - } - - /** - * Format the instance as a string using the forHumans() function. - * - * @throws Exception - * - * @return string - */ - public function __toString(): string - { - $format = $this->localToStringFormat - ?? $this->getFactory()->getSettings()['toStringFormat'] - ?? null; - - if (!$format) { - return $this->forHumans(); - } - - if ($format instanceof Closure) { - return $format($this); - } - - return $this->format($format); - } - - /** - * Return native DateInterval PHP object matching the current instance. - * - * @example - * ``` - * var_dump(CarbonInterval::hours(2)->toDateInterval()); - * ``` - * - * @return DateInterval - */ - public function toDateInterval(): DateInterval - { - return self::castIntervalToClass($this, DateInterval::class); - } - - /** - * Convert the interval to a CarbonPeriod. - * - * @param DateTimeInterface|string|int ...$params Start date, [end date or recurrences] and optional settings. - * - * @return CarbonPeriod - */ - public function toPeriod(...$params): CarbonPeriod - { - if ($this->timezoneSetting) { - $timeZone = \is_string($this->timezoneSetting) - ? new DateTimeZone($this->timezoneSetting) - : $this->timezoneSetting; - - if ($timeZone instanceof DateTimeZone) { - array_unshift($params, $timeZone); - } - } - - $class = ($params[0] ?? null) instanceof DateTime ? CarbonPeriod::class : CarbonPeriodImmutable::class; - - return $class::create($this, ...$params); - } - - /** - * Decompose the current interval into - * - * @param mixed|int|DateInterval|string|Closure|Unit|null $interval interval or number of the given $unit - * @param Unit|string|null $unit if specified, $interval must be an integer - * - * @return CarbonPeriod - */ - public function stepBy($interval, Unit|string|null $unit = null): CarbonPeriod - { - $this->checkStartAndEnd(); - $start = $this->startDate ?? CarbonImmutable::make('now'); - $end = $this->endDate ?? $start->copy()->add($this); - - try { - $step = static::make($interval, $unit); - } catch (InvalidFormatException $exception) { - if ($unit || (\is_string($interval) ? preg_match('/(\s|\d)/', $interval) : !($interval instanceof Unit))) { - throw $exception; - } - - $step = static::make(1, $interval); - } - - $class = $start instanceof DateTime ? CarbonPeriod::class : CarbonPeriodImmutable::class; - - return $class::create($step, $start, $end); - } - - /** - * Invert the interval. - * - * @param bool|int $inverted if a parameter is passed, the passed value cast as 1 or 0 is used - * as the new value of the ->invert property. - * - * @return $this - */ - public function invert($inverted = null): static - { - $this->invert = (\func_num_args() === 0 ? !$this->invert : $inverted) ? 1 : 0; - - return $this; - } - - protected function solveNegativeInterval(): static - { - if (!$this->isEmpty() && $this->years <= 0 && $this->months <= 0 && $this->dayz <= 0 && $this->hours <= 0 && $this->minutes <= 0 && $this->seconds <= 0 && $this->microseconds <= 0) { - $this->years *= self::NEGATIVE; - $this->months *= self::NEGATIVE; - $this->dayz *= self::NEGATIVE; - $this->hours *= self::NEGATIVE; - $this->minutes *= self::NEGATIVE; - $this->seconds *= self::NEGATIVE; - $this->microseconds *= self::NEGATIVE; - $this->invert(); - } - - return $this; - } - - /** - * Add the passed interval to the current instance. - * - * @param string|DateInterval $unit - * @param int|float $value - * - * @return $this - */ - public function add($unit, $value = 1): static - { - if (is_numeric($unit)) { - [$value, $unit] = [$unit, $value]; - } - - if (\is_string($unit) && !preg_match('/^\s*-?\d/', $unit)) { - $unit = "$value $unit"; - $value = 1; - } - - $interval = static::make($unit); - - if (!$interval) { - throw new InvalidIntervalException('This type of data cannot be added/subtracted.'); - } - - if ($value !== 1) { - $interval->times($value); - } - - $sign = ($this->invert === 1) !== ($interval->invert === 1) ? self::NEGATIVE : self::POSITIVE; - $this->years += $interval->y * $sign; - $this->months += $interval->m * $sign; - $this->dayz += ($interval->days === false ? $interval->d : $interval->days) * $sign; - $this->hours += $interval->h * $sign; - $this->minutes += $interval->i * $sign; - $this->seconds += $interval->s * $sign; - $this->microseconds += $interval->microseconds * $sign; - - $this->solveNegativeInterval(); - - return $this; - } - - /** - * Subtract the passed interval to the current instance. - * - * @param string|DateInterval $unit - * @param int|float $value - * - * @return $this - */ - public function sub($unit, $value = 1): static - { - if (is_numeric($unit)) { - [$value, $unit] = [$unit, $value]; - } - - return $this->add($unit, -(float) $value); - } - - /** - * Subtract the passed interval to the current instance. - * - * @param string|DateInterval $unit - * @param int|float $value - * - * @return $this - */ - public function subtract($unit, $value = 1): static - { - return $this->sub($unit, $value); - } - - /** - * Add given parameters to the current interval. - * - * @param int $years - * @param int $months - * @param int|float $weeks - * @param int|float $days - * @param int|float $hours - * @param int|float $minutes - * @param int|float $seconds - * @param int|float $microseconds - * - * @return $this - */ - public function plus( - $years = 0, - $months = 0, - $weeks = 0, - $days = 0, - $hours = 0, - $minutes = 0, - $seconds = 0, - $microseconds = 0 - ): static { - return $this->add(" - $years years $months months $weeks weeks $days days - $hours hours $minutes minutes $seconds seconds $microseconds microseconds - "); - } - - /** - * Add given parameters to the current interval. - * - * @param int $years - * @param int $months - * @param int|float $weeks - * @param int|float $days - * @param int|float $hours - * @param int|float $minutes - * @param int|float $seconds - * @param int|float $microseconds - * - * @return $this - */ - public function minus( - $years = 0, - $months = 0, - $weeks = 0, - $days = 0, - $hours = 0, - $minutes = 0, - $seconds = 0, - $microseconds = 0 - ): static { - return $this->sub(" - $years years $months months $weeks weeks $days days - $hours hours $minutes minutes $seconds seconds $microseconds microseconds - "); - } - - /** - * Multiply current instance given number of times. times() is naive, it multiplies each unit - * (so day can be greater than 31, hour can be greater than 23, etc.) and the result is rounded - * separately for each unit. - * - * Use times() when you want a fast and approximated calculation that does not cascade units. - * - * For a precise and cascaded calculation, - * - * @see multiply() - * - * @param float|int $factor - * - * @return $this - */ - public function times($factor): static - { - if ($factor < 0) { - $this->invert = $this->invert ? 0 : 1; - $factor = -$factor; - } - - $this->years = (int) round($this->years * $factor); - $this->months = (int) round($this->months * $factor); - $this->dayz = (int) round($this->dayz * $factor); - $this->hours = (int) round($this->hours * $factor); - $this->minutes = (int) round($this->minutes * $factor); - $this->seconds = (int) round($this->seconds * $factor); - $this->microseconds = (int) round($this->microseconds * $factor); - - return $this; - } - - /** - * Divide current instance by a given divider. shares() is naive, it divides each unit separately - * and the result is rounded for each unit. So 5 hours and 20 minutes shared by 3 becomes 2 hours - * and 7 minutes. - * - * Use shares() when you want a fast and approximated calculation that does not cascade units. - * - * For a precise and cascaded calculation, - * - * @see divide() - * - * @param float|int $divider - * - * @return $this - */ - public function shares($divider): static - { - return $this->times(1 / $divider); - } - - protected function copyProperties(self $interval, $ignoreSign = false): static - { - $this->years = $interval->years; - $this->months = $interval->months; - $this->dayz = $interval->dayz; - $this->hours = $interval->hours; - $this->minutes = $interval->minutes; - $this->seconds = $interval->seconds; - $this->microseconds = $interval->microseconds; - - if (!$ignoreSign) { - $this->invert = $interval->invert; - } - - return $this; - } - - /** - * Multiply and cascade current instance by a given factor. - * - * @param float|int $factor - * - * @return $this - */ - public function multiply($factor): static - { - if ($factor < 0) { - $this->invert = $this->invert ? 0 : 1; - $factor = -$factor; - } - - $yearPart = (int) floor($this->years * $factor); // Split calculation to prevent imprecision - - if ($yearPart) { - $this->years -= $yearPart / $factor; - } - - return $this->copyProperties( - static::create($yearPart) - ->microseconds(abs($this->totalMicroseconds) * $factor) - ->cascade(), - true, - ); - } - - /** - * Divide and cascade current instance by a given divider. - * - * @param float|int $divider - * - * @return $this - */ - public function divide($divider): static - { - return $this->multiply(1 / $divider); - } - - /** - * Get the interval_spec string of a date interval. - * - * @param DateInterval $interval - * - * @return string - */ - public static function getDateIntervalSpec(DateInterval $interval, bool $microseconds = false, array $skip = []): string - { - $date = array_filter([ - static::PERIOD_YEARS => abs($interval->y), - static::PERIOD_MONTHS => abs($interval->m), - static::PERIOD_DAYS => abs($interval->d), - ]); - - $skip = array_map([Unit::class, 'toNameIfUnit'], $skip); - - if ( - $interval->days >= CarbonInterface::DAYS_PER_WEEK * CarbonInterface::WEEKS_PER_MONTH && - (!isset($date[static::PERIOD_YEARS]) || \count(array_intersect(['y', 'year', 'years'], $skip))) && - (!isset($date[static::PERIOD_MONTHS]) || \count(array_intersect(['m', 'month', 'months'], $skip))) - ) { - $date = [ - static::PERIOD_DAYS => abs($interval->days), - ]; - } - - $seconds = abs($interval->s); - if ($microseconds && $interval->f > 0) { - $seconds = \sprintf('%d.%06d', $seconds, abs($interval->f) * 1000000); - } - - $time = array_filter([ - static::PERIOD_HOURS => abs($interval->h), - static::PERIOD_MINUTES => abs($interval->i), - static::PERIOD_SECONDS => $seconds, - ]); - - $specString = static::PERIOD_PREFIX; - - foreach ($date as $key => $value) { - $specString .= $value.$key; - } - - if (\count($time) > 0) { - $specString .= static::PERIOD_TIME_PREFIX; - foreach ($time as $key => $value) { - $specString .= $value.$key; - } - } - - return $specString === static::PERIOD_PREFIX ? 'PT0S' : $specString; - } - - /** - * Get the interval_spec string. - * - * @return string - */ - public function spec(bool $microseconds = false): string - { - return static::getDateIntervalSpec($this, $microseconds); - } - - /** - * Comparing 2 date intervals. - * - * @param DateInterval $first - * @param DateInterval $second - * - * @return int 0, 1 or -1 - */ - public static function compareDateIntervals(DateInterval $first, DateInterval $second): int - { - $current = Carbon::now(); - $passed = $current->avoidMutation()->add($second); - $current->add($first); - - return $current <=> $passed; - } - - /** - * Comparing with passed interval. - * - * @param DateInterval $interval - * - * @return int 0, 1 or -1 - */ - public function compare(DateInterval $interval): int - { - return static::compareDateIntervals($this, $interval); - } - - /** - * Convert overflowed values into bigger units. - * - * @return $this - */ - public function cascade(): static - { - return $this->doCascade(false); - } - - public function hasNegativeValues(): bool - { - foreach ($this->toArray() as $value) { - if ($value < 0) { - return true; - } - } - - return false; - } - - public function hasPositiveValues(): bool - { - foreach ($this->toArray() as $value) { - if ($value > 0) { - return true; - } - } - - return false; - } - - /** - * Get amount of given unit equivalent to the interval. - * - * @param string $unit - * - * @throws UnknownUnitException|UnitNotConfiguredException - * - * @return float - */ - public function total(string $unit): float - { - $realUnit = $unit = strtolower($unit); - - if (\in_array($unit, ['days', 'weeks'])) { - $realUnit = 'dayz'; - } elseif (!\in_array($unit, ['microseconds', 'milliseconds', 'seconds', 'minutes', 'hours', 'dayz', 'months', 'years'])) { - throw new UnknownUnitException($unit); - } - - $this->checkStartAndEnd(); - - if ($this->startDate && $this->endDate) { - $diff = $this->startDate->diffInUnit($unit, $this->endDate); - - return $this->absolute ? abs($diff) : $diff; - } - - $result = 0; - $cumulativeFactor = 0; - $unitFound = false; - $factors = self::getFlipCascadeFactors(); - $daysPerWeek = (int) static::getDaysPerWeek(); - - $values = [ - 'years' => $this->years, - 'months' => $this->months, - 'weeks' => (int) ($this->d / $daysPerWeek), - 'dayz' => fmod($this->d, $daysPerWeek), - 'hours' => $this->hours, - 'minutes' => $this->minutes, - 'seconds' => $this->seconds, - 'milliseconds' => (int) ($this->microseconds / Carbon::MICROSECONDS_PER_MILLISECOND), - 'microseconds' => $this->microseconds % Carbon::MICROSECONDS_PER_MILLISECOND, - ]; - - if (isset($factors['dayz']) && $factors['dayz'][0] !== 'weeks') { - $values['dayz'] += $values['weeks'] * $daysPerWeek; - $values['weeks'] = 0; - } - - foreach ($factors as $source => [$target, $factor]) { - if ($source === $realUnit) { - $unitFound = true; - $value = $values[$source]; - $result += $value; - $cumulativeFactor = 1; - } - - if ($factor === false) { - if ($unitFound) { - break; - } - - $result = 0; - $cumulativeFactor = 0; - - continue; - } - - if ($target === $realUnit) { - $unitFound = true; - } - - if ($cumulativeFactor) { - $cumulativeFactor *= $factor; - $result += $values[$target] * $cumulativeFactor; - - continue; - } - - $value = $values[$source]; - - $result = ($result + $value) / $factor; - } - - if (isset($target) && !$cumulativeFactor) { - $result += $values[$target]; - } - - if (!$unitFound) { - throw new UnitNotConfiguredException($unit); - } - - if ($this->invert) { - $result *= self::NEGATIVE; - } - - if ($unit === 'weeks') { - $result /= $daysPerWeek; - } - - // Cast as int numbers with no decimal part - return fmod($result, 1) === 0.0 ? (int) $result : $result; - } - - /** - * Determines if the instance is equal to another - * - * @param CarbonInterval|DateInterval|mixed $interval - * - * @see equalTo() - * - * @return bool - */ - public function eq($interval): bool - { - return $this->equalTo($interval); - } - - /** - * Determines if the instance is equal to another - * - * @param CarbonInterval|DateInterval|mixed $interval - * - * @return bool - */ - public function equalTo($interval): bool - { - $interval = $this->resolveInterval($interval); - - if ($interval === null) { - return false; - } - - $step = $this->getStep(); - - if ($step) { - return $step === $interval->getStep(); - } - - if ($this->isEmpty()) { - return $interval->isEmpty(); - } - - $cascadedInterval = $this->copy()->cascade(); - $comparedInterval = $interval->copy()->cascade(); - - return $cascadedInterval->invert === $comparedInterval->invert && - $cascadedInterval->getNonZeroValues() === $comparedInterval->getNonZeroValues(); - } - - /** - * Determines if the instance is not equal to another - * - * @param CarbonInterval|DateInterval|mixed $interval - * - * @see notEqualTo() - * - * @return bool - */ - public function ne($interval): bool - { - return $this->notEqualTo($interval); - } - - /** - * Determines if the instance is not equal to another - * - * @param CarbonInterval|DateInterval|mixed $interval - * - * @return bool - */ - public function notEqualTo($interval): bool - { - return !$this->eq($interval); - } - - /** - * Determines if the instance is greater (longer) than another - * - * @param CarbonInterval|DateInterval|mixed $interval - * - * @see greaterThan() - * - * @return bool - */ - public function gt($interval): bool - { - return $this->greaterThan($interval); - } - - /** - * Determines if the instance is greater (longer) than another - * - * @param CarbonInterval|DateInterval|mixed $interval - * - * @return bool - */ - public function greaterThan($interval): bool - { - $interval = $this->resolveInterval($interval); - - return $interval === null || $this->totalMicroseconds > $interval->totalMicroseconds; - } - - /** - * Determines if the instance is greater (longer) than or equal to another - * - * @param CarbonInterval|DateInterval|mixed $interval - * - * @see greaterThanOrEqualTo() - * - * @return bool - */ - public function gte($interval): bool - { - return $this->greaterThanOrEqualTo($interval); - } - - /** - * Determines if the instance is greater (longer) than or equal to another - * - * @param CarbonInterval|DateInterval|mixed $interval - * - * @return bool - */ - public function greaterThanOrEqualTo($interval): bool - { - return $this->greaterThan($interval) || $this->equalTo($interval); - } - - /** - * Determines if the instance is less (shorter) than another - * - * @param CarbonInterval|DateInterval|mixed $interval - * - * @see lessThan() - * - * @return bool - */ - public function lt($interval): bool - { - return $this->lessThan($interval); - } - - /** - * Determines if the instance is less (shorter) than another - * - * @param CarbonInterval|DateInterval|mixed $interval - * - * @return bool - */ - public function lessThan($interval): bool - { - $interval = $this->resolveInterval($interval); - - return $interval !== null && $this->totalMicroseconds < $interval->totalMicroseconds; - } - - /** - * Determines if the instance is less (shorter) than or equal to another - * - * @param CarbonInterval|DateInterval|mixed $interval - * - * @see lessThanOrEqualTo() - * - * @return bool - */ - public function lte($interval): bool - { - return $this->lessThanOrEqualTo($interval); - } - - /** - * Determines if the instance is less (shorter) than or equal to another - * - * @param CarbonInterval|DateInterval|mixed $interval - * - * @return bool - */ - public function lessThanOrEqualTo($interval): bool - { - return $this->lessThan($interval) || $this->equalTo($interval); - } - - /** - * Determines if the instance is between two others. - * - * The third argument allow you to specify if bounds are included or not (true by default) - * but for when you including/excluding bounds may produce different results in your application, - * we recommend to use the explicit methods ->betweenIncluded() or ->betweenExcluded() instead. - * - * @example - * ``` - * CarbonInterval::hours(48)->between(CarbonInterval::day(), CarbonInterval::days(3)); // true - * CarbonInterval::hours(48)->between(CarbonInterval::day(), CarbonInterval::hours(36)); // false - * CarbonInterval::hours(48)->between(CarbonInterval::day(), CarbonInterval::days(2)); // true - * CarbonInterval::hours(48)->between(CarbonInterval::day(), CarbonInterval::days(2), false); // false - * ``` - * - * @param CarbonInterval|DateInterval|mixed $interval1 - * @param CarbonInterval|DateInterval|mixed $interval2 - * @param bool $equal Indicates if an equal to comparison should be done - * - * @return bool - */ - public function between($interval1, $interval2, bool $equal = true): bool - { - return $equal - ? $this->greaterThanOrEqualTo($interval1) && $this->lessThanOrEqualTo($interval2) - : $this->greaterThan($interval1) && $this->lessThan($interval2); - } - - /** - * Determines if the instance is between two others, bounds excluded. - * - * @example - * ``` - * CarbonInterval::hours(48)->betweenExcluded(CarbonInterval::day(), CarbonInterval::days(3)); // true - * CarbonInterval::hours(48)->betweenExcluded(CarbonInterval::day(), CarbonInterval::hours(36)); // false - * CarbonInterval::hours(48)->betweenExcluded(CarbonInterval::day(), CarbonInterval::days(2)); // true - * ``` - * - * @param CarbonInterval|DateInterval|mixed $interval1 - * @param CarbonInterval|DateInterval|mixed $interval2 - * - * @return bool - */ - public function betweenIncluded($interval1, $interval2): bool - { - return $this->between($interval1, $interval2, true); - } - - /** - * Determines if the instance is between two others, bounds excluded. - * - * @example - * ``` - * CarbonInterval::hours(48)->betweenExcluded(CarbonInterval::day(), CarbonInterval::days(3)); // true - * CarbonInterval::hours(48)->betweenExcluded(CarbonInterval::day(), CarbonInterval::hours(36)); // false - * CarbonInterval::hours(48)->betweenExcluded(CarbonInterval::day(), CarbonInterval::days(2)); // false - * ``` - * - * @param CarbonInterval|DateInterval|mixed $interval1 - * @param CarbonInterval|DateInterval|mixed $interval2 - * - * @return bool - */ - public function betweenExcluded($interval1, $interval2): bool - { - return $this->between($interval1, $interval2, false); - } - - /** - * Determines if the instance is between two others - * - * @example - * ``` - * CarbonInterval::hours(48)->isBetween(CarbonInterval::day(), CarbonInterval::days(3)); // true - * CarbonInterval::hours(48)->isBetween(CarbonInterval::day(), CarbonInterval::hours(36)); // false - * CarbonInterval::hours(48)->isBetween(CarbonInterval::day(), CarbonInterval::days(2)); // true - * CarbonInterval::hours(48)->isBetween(CarbonInterval::day(), CarbonInterval::days(2), false); // false - * ``` - * - * @param CarbonInterval|DateInterval|mixed $interval1 - * @param CarbonInterval|DateInterval|mixed $interval2 - * @param bool $equal Indicates if an equal to comparison should be done - * - * @return bool - */ - public function isBetween($interval1, $interval2, bool $equal = true): bool - { - return $this->between($interval1, $interval2, $equal); - } - - /** - * Round the current instance at the given unit with given precision if specified and the given function. - * - * @throws Exception - */ - public function roundUnit(string $unit, DateInterval|string|int|float $precision = 1, string $function = 'round'): static - { - if (static::getCascadeFactors() !== static::getDefaultCascadeFactors()) { - $value = $function($this->total($unit) / $precision) * $precision; - $inverted = $value < 0; - - return $this->copyProperties(self::fromString( - number_format(abs($value), 12, '.', '').' '.$unit - )->invert($inverted)->cascade()); - } - - $base = CarbonImmutable::parse('2000-01-01 00:00:00', 'UTC') - ->roundUnit($unit, $precision, $function); - $next = $base->add($this); - $inverted = $next < $base; - - if ($inverted) { - $next = $base->sub($this); - } - - $this->copyProperties( - $next - ->roundUnit($unit, $precision, $function) - ->diff($base), - ); - - return $this->invert($inverted); - } - - /** - * Truncate the current instance at the given unit with given precision if specified. - * - * @param string $unit - * @param float|int|string|DateInterval|null $precision - * - * @throws Exception - * - * @return $this - */ - public function floorUnit(string $unit, $precision = 1): static - { - return $this->roundUnit($unit, $precision, 'floor'); - } - - /** - * Ceil the current instance at the given unit with given precision if specified. - * - * @param string $unit - * @param float|int|string|DateInterval|null $precision - * - * @throws Exception - * - * @return $this - */ - public function ceilUnit(string $unit, $precision = 1): static - { - return $this->roundUnit($unit, $precision, 'ceil'); - } - - /** - * Round the current instance second with given precision if specified. - * - * @param float|int|string|DateInterval|null $precision - * @param string $function - * - * @throws Exception - * - * @return $this - */ - public function round($precision = 1, string $function = 'round'): static - { - return $this->roundWith($precision, $function); - } - - /** - * Round the current instance second with given precision if specified. - * - * @throws Exception - * - * @return $this - */ - public function floor(DateInterval|string|float|int $precision = 1): static - { - return $this->round($precision, 'floor'); - } - - /** - * Ceil the current instance second with given precision if specified. - * - * @throws Exception - * - * @return $this - */ - public function ceil(DateInterval|string|float|int $precision = 1): static - { - return $this->round($precision, 'ceil'); - } - - public function __unserialize(array $data): void - { - $properties = array_combine( - array_map( - static fn (mixed $key) => \is_string($key) - ? str_replace('tzName', 'timezoneSetting', $key) - : $key, - array_keys($data), - ), - $data, - ); - - if (method_exists(parent::class, '__unserialize')) { - // PHP >= 8.2 - parent::__unserialize($properties); - - return; - } - - // PHP <= 8.1 - // @codeCoverageIgnoreStart - foreach ($properties as $property => $value) { - $name = preg_replace('/^\0.+\0/', '', $property); - $localStrictMode = $this->localStrictModeEnabled; - $this->localStrictModeEnabled = false; - $this->$name = $value; - - if ($name !== 'localStrictModeEnabled') { - $this->localStrictModeEnabled = $localStrictMode; - } - } - // @codeCoverageIgnoreEnd - } - - /** - * @template T - * - * @param T $interval - * @param mixed $original - * - * @return T - */ - private static function withOriginal(mixed $interval, mixed $original): mixed - { - if ($interval instanceof self) { - $interval->originalInput = $original; - } - - return $interval; - } - - private static function standardizeUnit(string $unit): string - { - $unit = rtrim($unit, 'sz').'s'; - - return $unit === 'days' ? 'dayz' : $unit; - } - - private static function getFlipCascadeFactors(): array - { - if (!self::$flipCascadeFactors) { - self::$flipCascadeFactors = []; - - foreach (self::getCascadeFactors() as $to => [$factor, $from]) { - self::$flipCascadeFactors[self::standardizeUnit($from)] = [self::standardizeUnit($to), $factor]; - } - } - - return self::$flipCascadeFactors; - } - - /** - * @template T of DateInterval - * - * @param DateInterval $interval - * - * @psalm-param class-string $className - * - * @return T - */ - private static function castIntervalToClass(DateInterval $interval, string $className, array $skip = []): object - { - $mainClass = DateInterval::class; - - if (!is_a($className, $mainClass, true)) { - throw new InvalidCastException("$className is not a sub-class of $mainClass."); - } - - $microseconds = $interval->f; - $instance = new $className(static::getDateIntervalSpec($interval, false, $skip)); - - if ($instance instanceof self) { - $instance->originalInput = $interval; - } - - if ($microseconds) { - $instance->f = $microseconds; - } - - if ($interval instanceof self && is_a($className, self::class, true)) { - self::copyStep($interval, $instance); - } - - self::copyNegativeUnits($interval, $instance); - - return self::withOriginal($instance, $interval); - } - - private static function copyStep(self $from, self $to): void - { - $to->setStep($from->getStep()); - } - - private static function copyNegativeUnits(DateInterval $from, DateInterval $to): void - { - $to->invert = $from->invert; - - foreach (['y', 'm', 'd', 'h', 'i', 's'] as $unit) { - if ($from->$unit < 0) { - $to->$unit *= self::NEGATIVE; - } - } - } - - private function invertCascade(array $values): static - { - return $this->set(array_map(function ($value) { - return -$value; - }, $values))->doCascade(true)->invert(); - } - - private function doCascade(bool $deep): static - { - $originalData = $this->toArray(); - $originalData['milliseconds'] = (int) ($originalData['microseconds'] / static::getMicrosecondsPerMillisecond()); - $originalData['microseconds'] = $originalData['microseconds'] % static::getMicrosecondsPerMillisecond(); - $originalData['weeks'] = (int) ($this->d / static::getDaysPerWeek()); - $originalData['daysExcludeWeeks'] = fmod($this->d, static::getDaysPerWeek()); - unset($originalData['days']); - $newData = $originalData; - $previous = []; - - foreach (self::getFlipCascadeFactors() as $source => [$target, $factor]) { - foreach (['source', 'target'] as $key) { - if ($$key === 'dayz') { - $$key = 'daysExcludeWeeks'; - } - } - - $value = $newData[$source]; - $modulo = fmod($factor + fmod($value, $factor), $factor); - $newData[$source] = $modulo; - $newData[$target] += ($value - $modulo) / $factor; - - $decimalPart = fmod($newData[$source], 1); - - if ($decimalPart !== 0.0) { - $unit = $source; - - foreach ($previous as [$subUnit, $subFactor]) { - $newData[$unit] -= $decimalPart; - $newData[$subUnit] += $decimalPart * $subFactor; - $decimalPart = fmod($newData[$subUnit], 1); - - if ($decimalPart === 0.0) { - break; - } - - $unit = $subUnit; - } - } - - array_unshift($previous, [$source, $factor]); - } - - $positive = null; - - if (!$deep) { - foreach ($newData as $value) { - if ($value) { - if ($positive === null) { - $positive = ($value > 0); - - continue; - } - - if (($value > 0) !== $positive) { - return $this->invertCascade($originalData) - ->solveNegativeInterval(); - } - } - } - } - - return $this->set($newData) - ->solveNegativeInterval(); - } - - private function needsDeclension(string $mode, int $index, int $parts): bool - { - return match ($mode) { - 'last' => $index === $parts - 1, - default => true, - }; - } - - private function checkIntegerValue(string $name, mixed $value): void - { - if (\is_int($value)) { - return; - } - - $this->assertSafeForInteger($name, $value); - - if (\is_float($value) && (((float) (int) $value) === $value)) { - return; - } - - if (!self::$floatSettersEnabled) { - $type = \gettype($value); - @trigger_error( - "Since 2.70.0, it's deprecated to pass $type value for $name.\n". - "It's truncated when stored as an integer interval unit.\n". - "From 3.0.0, decimal part will no longer be truncated and will be cascaded to smaller units.\n". - "- To maintain the current behavior, use explicit cast: $name((int) \$value)\n". - "- To adopt the new behavior globally, call CarbonInterval::enableFloatSetters()\n", - \E_USER_DEPRECATED, - ); - } - } - - /** - * Throw an exception if precision loss when storing the given value as an integer would be >= 1.0. - */ - private function assertSafeForInteger(string $name, mixed $value): void - { - if ($value && !\is_int($value) && ($value >= 0x7fffffffffffffff || $value <= -0x7fffffffffffffff)) { - throw new OutOfRangeException($name, -0x7fffffffffffffff, 0x7fffffffffffffff, $value); - } - } - - private function handleDecimalPart(string $unit, mixed $value, mixed $integerValue): void - { - if (self::$floatSettersEnabled) { - $floatValue = (float) $value; - $base = (float) $integerValue; - - if ($floatValue === $base) { - return; - } - - $units = [ - 'y' => 'year', - 'm' => 'month', - 'd' => 'day', - 'h' => 'hour', - 'i' => 'minute', - 's' => 'second', - ]; - $upper = true; - - foreach ($units as $property => $name) { - if ($name === $unit) { - $upper = false; - - continue; - } - - if (!$upper && $this->$property !== 0) { - throw new RuntimeException( - "You cannot set $unit to a float value as $name would be overridden, ". - 'set it first to 0 explicitly if you really want to erase its value' - ); - } - } - - $this->add($unit, $floatValue - $base); - } - } - - private function getInnerValues(): array - { - return [$this->y, $this->m, $this->d, $this->h, $this->i, $this->s, $this->f, $this->invert, $this->days]; - } - - private function checkStartAndEnd(): void - { - if ( - $this->initialValues !== null - && ($this->startDate !== null || $this->endDate !== null) - && $this->initialValues !== $this->getInnerValues() - ) { - $this->absolute = false; - $this->startDate = null; - $this->endDate = null; - $this->rawInterval = null; - } - } - - /** @return $this */ - private function setSetting(string $setting, mixed $value): self - { - switch ($setting) { - case 'timezoneSetting': - return $value === null ? $this : $this->setTimezone($value); - - case 'step': - $this->setStep($value); - - return $this; - - case 'localMonthsOverflow': - return $value === null ? $this : $this->settings(['monthOverflow' => $value]); - - case 'localYearsOverflow': - return $value === null ? $this : $this->settings(['yearOverflow' => $value]); - - case 'localStrictModeEnabled': - case 'localHumanDiffOptions': - case 'localToStringFormat': - case 'localSerializer': - case 'localMacros': - case 'localGenericMacros': - case 'localFormatFunction': - case 'localTranslator': - $this->$setting = $value; - - return $this; - - default: - // Drop unknown settings - return $this; - } - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/CarbonPeriod.php b/vendor/nesbot/carbon/src/Carbon/CarbonPeriod.php deleted file mode 100644 index fb8dab6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/CarbonPeriod.php +++ /dev/null @@ -1,2579 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon; - -use Carbon\Exceptions\EndLessPeriodException; -use Carbon\Exceptions\InvalidCastException; -use Carbon\Exceptions\InvalidIntervalException; -use Carbon\Exceptions\InvalidPeriodDateException; -use Carbon\Exceptions\InvalidPeriodParameterException; -use Carbon\Exceptions\NotACarbonClassException; -use Carbon\Exceptions\NotAPeriodException; -use Carbon\Exceptions\UnknownGetterException; -use Carbon\Exceptions\UnknownMethodException; -use Carbon\Exceptions\UnreachableException; -use Carbon\Traits\DeprecatedPeriodProperties; -use Carbon\Traits\IntervalRounding; -use Carbon\Traits\LocalFactory; -use Carbon\Traits\Mixin; -use Carbon\Traits\Options; -use Carbon\Traits\ToStringFormat; -use Closure; -use Countable; -use DateInterval; -use DatePeriod; -use DateTime; -use DateTimeImmutable; -use DateTimeInterface; -use DateTimeZone; -use Generator; -use InvalidArgumentException; -use JsonSerializable; -use ReflectionException; -use ReturnTypeWillChange; -use RuntimeException; -use Throwable; - -// @codeCoverageIgnoreStart -require PHP_VERSION < 8.2 - ? __DIR__.'/../../lazy/Carbon/ProtectedDatePeriod.php' - : __DIR__.'/../../lazy/Carbon/UnprotectedDatePeriod.php'; -// @codeCoverageIgnoreEnd - -/** - * Substitution of DatePeriod with some modifications and many more features. - * - * @method static static|CarbonInterface start($date = null, $inclusive = null) Create instance specifying start date or modify the start date if called on an instance. - * @method static static since($date = null, $inclusive = null) Alias for start(). - * @method static static sinceNow($inclusive = null) Create instance with start date set to now or set the start date to now if called on an instance. - * @method static static|CarbonInterface end($date = null, $inclusive = null) Create instance specifying end date or modify the end date if called on an instance. - * @method static static until($date = null, $inclusive = null) Alias for end(). - * @method static static untilNow($inclusive = null) Create instance with end date set to now or set the end date to now if called on an instance. - * @method static static dates($start, $end = null) Create instance with start and end dates or modify the start and end dates if called on an instance. - * @method static static between($start, $end = null) Create instance with start and end dates or modify the start and end dates if called on an instance. - * @method static static recurrences($recurrences = null) Create instance with maximum number of recurrences or modify the number of recurrences if called on an instance. - * @method static static times($recurrences = null) Alias for recurrences(). - * @method static static|int|null options($options = null) Create instance with options or modify the options if called on an instance. - * @method static static toggle($options, $state = null) Create instance with options toggled on or off, or toggle options if called on an instance. - * @method static static filter($callback, $name = null) Create instance with filter added to the stack or append a filter if called on an instance. - * @method static static push($callback, $name = null) Alias for filter(). - * @method static static prepend($callback, $name = null) Create instance with filter prepended to the stack or prepend a filter if called on an instance. - * @method static static|array filters(array $filters = []) Create instance with filters stack or replace the whole filters stack if called on an instance. - * @method static static|CarbonInterval interval($interval = null) Create instance with given date interval or modify the interval if called on an instance. - * @method static static each($interval) Create instance with given date interval or modify the interval if called on an instance. - * @method static static every($interval) Create instance with given date interval or modify the interval if called on an instance. - * @method static static step($interval) Create instance with given date interval or modify the interval if called on an instance. - * @method static static stepBy($interval) Create instance with given date interval or modify the interval if called on an instance. - * @method static static invert() Create instance with inverted date interval or invert the interval if called on an instance. - * @method static static years($years = 1) Create instance specifying a number of years for date interval or replace the interval by the given a number of years if called on an instance. - * @method static static year($years = 1) Alias for years(). - * @method static static months($months = 1) Create instance specifying a number of months for date interval or replace the interval by the given a number of months if called on an instance. - * @method static static month($months = 1) Alias for months(). - * @method static static weeks($weeks = 1) Create instance specifying a number of weeks for date interval or replace the interval by the given a number of weeks if called on an instance. - * @method static static week($weeks = 1) Alias for weeks(). - * @method static static days($days = 1) Create instance specifying a number of days for date interval or replace the interval by the given a number of days if called on an instance. - * @method static static dayz($days = 1) Alias for days(). - * @method static static day($days = 1) Alias for days(). - * @method static static hours($hours = 1) Create instance specifying a number of hours for date interval or replace the interval by the given a number of hours if called on an instance. - * @method static static hour($hours = 1) Alias for hours(). - * @method static static minutes($minutes = 1) Create instance specifying a number of minutes for date interval or replace the interval by the given a number of minutes if called on an instance. - * @method static static minute($minutes = 1) Alias for minutes(). - * @method static static seconds($seconds = 1) Create instance specifying a number of seconds for date interval or replace the interval by the given a number of seconds if called on an instance. - * @method static static second($seconds = 1) Alias for seconds(). - * @method static static milliseconds($milliseconds = 1) Create instance specifying a number of milliseconds for date interval or replace the interval by the given a number of milliseconds if called on an instance. - * @method static static millisecond($milliseconds = 1) Alias for milliseconds(). - * @method static static microseconds($microseconds = 1) Create instance specifying a number of microseconds for date interval or replace the interval by the given a number of microseconds if called on an instance. - * @method static static microsecond($microseconds = 1) Alias for microseconds(). - * @method $this roundYear(float $precision = 1, string $function = "round") Round the current instance year with given precision using the given function. - * @method $this roundYears(float $precision = 1, string $function = "round") Round the current instance year with given precision using the given function. - * @method $this floorYear(float $precision = 1) Truncate the current instance year with given precision. - * @method $this floorYears(float $precision = 1) Truncate the current instance year with given precision. - * @method $this ceilYear(float $precision = 1) Ceil the current instance year with given precision. - * @method $this ceilYears(float $precision = 1) Ceil the current instance year with given precision. - * @method $this roundMonth(float $precision = 1, string $function = "round") Round the current instance month with given precision using the given function. - * @method $this roundMonths(float $precision = 1, string $function = "round") Round the current instance month with given precision using the given function. - * @method $this floorMonth(float $precision = 1) Truncate the current instance month with given precision. - * @method $this floorMonths(float $precision = 1) Truncate the current instance month with given precision. - * @method $this ceilMonth(float $precision = 1) Ceil the current instance month with given precision. - * @method $this ceilMonths(float $precision = 1) Ceil the current instance month with given precision. - * @method $this roundWeek(float $precision = 1, string $function = "round") Round the current instance day with given precision using the given function. - * @method $this roundWeeks(float $precision = 1, string $function = "round") Round the current instance day with given precision using the given function. - * @method $this floorWeek(float $precision = 1) Truncate the current instance day with given precision. - * @method $this floorWeeks(float $precision = 1) Truncate the current instance day with given precision. - * @method $this ceilWeek(float $precision = 1) Ceil the current instance day with given precision. - * @method $this ceilWeeks(float $precision = 1) Ceil the current instance day with given precision. - * @method $this roundDay(float $precision = 1, string $function = "round") Round the current instance day with given precision using the given function. - * @method $this roundDays(float $precision = 1, string $function = "round") Round the current instance day with given precision using the given function. - * @method $this floorDay(float $precision = 1) Truncate the current instance day with given precision. - * @method $this floorDays(float $precision = 1) Truncate the current instance day with given precision. - * @method $this ceilDay(float $precision = 1) Ceil the current instance day with given precision. - * @method $this ceilDays(float $precision = 1) Ceil the current instance day with given precision. - * @method $this roundHour(float $precision = 1, string $function = "round") Round the current instance hour with given precision using the given function. - * @method $this roundHours(float $precision = 1, string $function = "round") Round the current instance hour with given precision using the given function. - * @method $this floorHour(float $precision = 1) Truncate the current instance hour with given precision. - * @method $this floorHours(float $precision = 1) Truncate the current instance hour with given precision. - * @method $this ceilHour(float $precision = 1) Ceil the current instance hour with given precision. - * @method $this ceilHours(float $precision = 1) Ceil the current instance hour with given precision. - * @method $this roundMinute(float $precision = 1, string $function = "round") Round the current instance minute with given precision using the given function. - * @method $this roundMinutes(float $precision = 1, string $function = "round") Round the current instance minute with given precision using the given function. - * @method $this floorMinute(float $precision = 1) Truncate the current instance minute with given precision. - * @method $this floorMinutes(float $precision = 1) Truncate the current instance minute with given precision. - * @method $this ceilMinute(float $precision = 1) Ceil the current instance minute with given precision. - * @method $this ceilMinutes(float $precision = 1) Ceil the current instance minute with given precision. - * @method $this roundSecond(float $precision = 1, string $function = "round") Round the current instance second with given precision using the given function. - * @method $this roundSeconds(float $precision = 1, string $function = "round") Round the current instance second with given precision using the given function. - * @method $this floorSecond(float $precision = 1) Truncate the current instance second with given precision. - * @method $this floorSeconds(float $precision = 1) Truncate the current instance second with given precision. - * @method $this ceilSecond(float $precision = 1) Ceil the current instance second with given precision. - * @method $this ceilSeconds(float $precision = 1) Ceil the current instance second with given precision. - * @method $this roundMillennium(float $precision = 1, string $function = "round") Round the current instance millennium with given precision using the given function. - * @method $this roundMillennia(float $precision = 1, string $function = "round") Round the current instance millennium with given precision using the given function. - * @method $this floorMillennium(float $precision = 1) Truncate the current instance millennium with given precision. - * @method $this floorMillennia(float $precision = 1) Truncate the current instance millennium with given precision. - * @method $this ceilMillennium(float $precision = 1) Ceil the current instance millennium with given precision. - * @method $this ceilMillennia(float $precision = 1) Ceil the current instance millennium with given precision. - * @method $this roundCentury(float $precision = 1, string $function = "round") Round the current instance century with given precision using the given function. - * @method $this roundCenturies(float $precision = 1, string $function = "round") Round the current instance century with given precision using the given function. - * @method $this floorCentury(float $precision = 1) Truncate the current instance century with given precision. - * @method $this floorCenturies(float $precision = 1) Truncate the current instance century with given precision. - * @method $this ceilCentury(float $precision = 1) Ceil the current instance century with given precision. - * @method $this ceilCenturies(float $precision = 1) Ceil the current instance century with given precision. - * @method $this roundDecade(float $precision = 1, string $function = "round") Round the current instance decade with given precision using the given function. - * @method $this roundDecades(float $precision = 1, string $function = "round") Round the current instance decade with given precision using the given function. - * @method $this floorDecade(float $precision = 1) Truncate the current instance decade with given precision. - * @method $this floorDecades(float $precision = 1) Truncate the current instance decade with given precision. - * @method $this ceilDecade(float $precision = 1) Ceil the current instance decade with given precision. - * @method $this ceilDecades(float $precision = 1) Ceil the current instance decade with given precision. - * @method $this roundQuarter(float $precision = 1, string $function = "round") Round the current instance quarter with given precision using the given function. - * @method $this roundQuarters(float $precision = 1, string $function = "round") Round the current instance quarter with given precision using the given function. - * @method $this floorQuarter(float $precision = 1) Truncate the current instance quarter with given precision. - * @method $this floorQuarters(float $precision = 1) Truncate the current instance quarter with given precision. - * @method $this ceilQuarter(float $precision = 1) Ceil the current instance quarter with given precision. - * @method $this ceilQuarters(float $precision = 1) Ceil the current instance quarter with given precision. - * @method $this roundMillisecond(float $precision = 1, string $function = "round") Round the current instance millisecond with given precision using the given function. - * @method $this roundMilliseconds(float $precision = 1, string $function = "round") Round the current instance millisecond with given precision using the given function. - * @method $this floorMillisecond(float $precision = 1) Truncate the current instance millisecond with given precision. - * @method $this floorMilliseconds(float $precision = 1) Truncate the current instance millisecond with given precision. - * @method $this ceilMillisecond(float $precision = 1) Ceil the current instance millisecond with given precision. - * @method $this ceilMilliseconds(float $precision = 1) Ceil the current instance millisecond with given precision. - * @method $this roundMicrosecond(float $precision = 1, string $function = "round") Round the current instance microsecond with given precision using the given function. - * @method $this roundMicroseconds(float $precision = 1, string $function = "round") Round the current instance microsecond with given precision using the given function. - * @method $this floorMicrosecond(float $precision = 1) Truncate the current instance microsecond with given precision. - * @method $this floorMicroseconds(float $precision = 1) Truncate the current instance microsecond with given precision. - * @method $this ceilMicrosecond(float $precision = 1) Ceil the current instance microsecond with given precision. - * @method $this ceilMicroseconds(float $precision = 1) Ceil the current instance microsecond with given precision. - * - * @mixin DeprecatedPeriodProperties - * - * @SuppressWarnings(PHPMD.TooManyFields) - * @SuppressWarnings(PHPMD.CamelCasePropertyName) - * @SuppressWarnings(PHPMD.CouplingBetweenObjects) - */ -class CarbonPeriod extends DatePeriodBase implements Countable, JsonSerializable -{ - use LocalFactory; - use IntervalRounding; - use Mixin { - Mixin::mixin as baseMixin; - } - use Options { - Options::__debugInfo as baseDebugInfo; - } - use ToStringFormat; - - /** - * Built-in filter for limit by recurrences. - * - * @var callable - */ - public const RECURRENCES_FILTER = [self::class, 'filterRecurrences']; - - /** - * Built-in filter for limit to an end. - * - * @var callable - */ - public const END_DATE_FILTER = [self::class, 'filterEndDate']; - - /** - * Special value which can be returned by filters to end iteration. Also a filter. - * - * @var callable - */ - public const END_ITERATION = [self::class, 'endIteration']; - - /** - * Exclude end date from iteration. - * - * @var int - */ - public const EXCLUDE_END_DATE = 8; - - /** - * Yield CarbonImmutable instances. - * - * @var int - */ - public const IMMUTABLE = 4; - - /** - * Number of maximum attempts before giving up on finding next valid date. - * - * @var int - */ - public const NEXT_MAX_ATTEMPTS = 1000; - - /** - * Number of maximum attempts before giving up on finding end date. - * - * @var int - */ - public const END_MAX_ATTEMPTS = 10000; - - /** - * Default date class of iteration items. - * - * @var string - */ - protected const DEFAULT_DATE_CLASS = Carbon::class; - - /** - * The registered macros. - */ - protected static array $macros = []; - - /** - * Date class of iteration items. - */ - protected string $dateClass = Carbon::class; - - /** - * Underlying date interval instance. Always present, one day by default. - */ - protected ?CarbonInterval $dateInterval = null; - - /** - * True once __construct is finished. - */ - protected bool $constructed = false; - - /** - * Whether current date interval was set by default. - */ - protected bool $isDefaultInterval = false; - - /** - * The filters stack. - */ - protected array $filters = []; - - /** - * Period start date. Applied on rewind. Always present, now by default. - */ - protected ?CarbonInterface $startDate = null; - - /** - * Period end date. For inverted interval should be before the start date. Applied via a filter. - */ - protected ?CarbonInterface $endDate = null; - - /** - * Limit for number of recurrences. Applied via a filter. - */ - protected int|float|null $carbonRecurrences = null; - - /** - * Iteration options. - */ - protected ?int $options = null; - - /** - * Index of current date. Always sequential, even if some dates are skipped by filters. - * Equal to null only before the first iteration. - */ - protected int $key = 0; - - /** - * Current date. May temporarily hold unaccepted value when looking for a next valid date. - * Equal to null only before the first iteration. - */ - protected ?CarbonInterface $carbonCurrent = null; - - /** - * Timezone of current date. Taken from the start date. - */ - protected ?DateTimeZone $timezone = null; - - /** - * The cached validation result for current date. - */ - protected array|string|bool|null $validationResult = null; - - /** - * Timezone handler for settings() method. - */ - protected DateTimeZone|string|int|null $timezoneSetting = null; - - public function getIterator(): Generator - { - $this->rewind(); - - while ($this->valid()) { - $key = $this->key(); - $value = $this->current(); - - yield $key => $value; - - $this->next(); - } - } - - /** - * Make a CarbonPeriod instance from given variable if possible. - */ - public static function make(mixed $var): ?static - { - try { - return static::instance($var); - } catch (NotAPeriodException) { - return static::create($var); - } - } - - /** - * Create a new instance from a DatePeriod or CarbonPeriod object. - */ - public static function instance(mixed $period): static - { - if ($period instanceof static) { - return $period->copy(); - } - - if ($period instanceof self) { - return new static( - $period->getStartDate(), - $period->getEndDate() ?? $period->getRecurrences(), - $period->getDateInterval(), - $period->getOptions(), - ); - } - - if ($period instanceof DatePeriod) { - return new static( - $period->start, - $period->end ?: ($period->recurrences - 1), - $period->interval, - $period->include_start_date ? 0 : static::EXCLUDE_START_DATE, - ); - } - - $class = static::class; - $type = \gettype($period); - $chunks = explode('::', __METHOD__); - - throw new NotAPeriodException( - 'Argument 1 passed to '.$class.'::'.end($chunks).'() '. - 'must be an instance of DatePeriod or '.$class.', '. - ($type === 'object' ? 'instance of '.\get_class($period) : $type).' given.', - ); - } - - /** - * Create a new instance. - */ - public static function create(...$params): static - { - return static::createFromArray($params); - } - - /** - * Create a new instance from an array of parameters. - */ - public static function createFromArray(array $params): static - { - return new static(...$params); - } - - /** - * Create CarbonPeriod from ISO 8601 string. - */ - public static function createFromIso(string $iso, ?int $options = null): static - { - $params = static::parseIso8601($iso); - - $instance = static::createFromArray($params); - - if ($options !== null) { - $instance->options = $options; - $instance->handleChangedParameters(); - } - - return $instance; - } - - /** - * Return whether given interval contains non zero value of any time unit. - */ - protected static function intervalHasTime(DateInterval $interval): bool - { - return $interval->h || $interval->i || $interval->s || $interval->f; - } - - /** - * Return whether given variable is an ISO 8601 specification. - * - * Note: Check is very basic, as actual validation will be done later when parsing. - * We just want to ensure that variable is not any other type of valid parameter. - */ - protected static function isIso8601(mixed $var): bool - { - if (!\is_string($var)) { - return false; - } - - // Match slash but not within a timezone name. - $part = '[a-z]+(?:[_-][a-z]+)*'; - - preg_match("#\b$part/$part\b|(/)#i", $var, $match); - - return isset($match[1]); - } - - /** - * Parse given ISO 8601 string into an array of arguments. - * - * @SuppressWarnings(PHPMD.ElseExpression) - */ - protected static function parseIso8601(string $iso): array - { - $result = []; - - $interval = null; - $start = null; - $end = null; - $dateClass = static::DEFAULT_DATE_CLASS; - - foreach (explode('/', $iso) as $key => $part) { - if ($key === 0 && preg_match('/^R(\d*|INF)$/', $part, $match)) { - $parsed = \strlen($match[1]) ? (($match[1] !== 'INF') ? (int) $match[1] : INF) : null; - } elseif ($interval === null && $parsed = self::makeInterval($part)) { - $interval = $part; - } elseif ($start === null && $parsed = $dateClass::make($part)) { - $start = $part; - } elseif ($end === null && $parsed = $dateClass::make(static::addMissingParts($start ?? '', $part))) { - $end = $part; - } else { - throw new InvalidPeriodParameterException("Invalid ISO 8601 specification: $iso."); - } - - $result[] = $parsed; - } - - return $result; - } - - /** - * Add missing parts of the target date from the source date. - */ - protected static function addMissingParts(string $source, string $target): string - { - $pattern = '/'.preg_replace('/\d+/', '[0-9]+', preg_quote($target, '/')).'$/'; - - $result = preg_replace($pattern, $target, $source, 1, $count); - - return $count ? $result : $target; - } - - private static function makeInterval(mixed $input): ?CarbonInterval - { - try { - return CarbonInterval::make($input); - } catch (Throwable) { - return null; - } - } - - private static function makeTimezone(mixed $input): ?CarbonTimeZone - { - if (!\is_string($input)) { - return null; - } - - try { - return CarbonTimeZone::create($input); - } catch (Throwable) { - return null; - } - } - - /** - * Register a custom macro. - * - * Pass null macro to remove it. - * - * @example - * ``` - * CarbonPeriod::macro('middle', function () { - * return $this->getStartDate()->average($this->getEndDate()); - * }); - * echo CarbonPeriod::since('2011-05-12')->until('2011-06-03')->middle(); - * ``` - */ - public static function macro(string $name, ?callable $macro): void - { - static::$macros[$name] = $macro; - } - - /** - * Register macros from a mixin object. - * - * @example - * ``` - * CarbonPeriod::mixin(new class { - * public function addDays() { - * return function ($count = 1) { - * return $this->setStartDate( - * $this->getStartDate()->addDays($count) - * )->setEndDate( - * $this->getEndDate()->addDays($count) - * ); - * }; - * } - * public function subDays() { - * return function ($count = 1) { - * return $this->setStartDate( - * $this->getStartDate()->subDays($count) - * )->setEndDate( - * $this->getEndDate()->subDays($count) - * ); - * }; - * } - * }); - * echo CarbonPeriod::create('2000-01-01', '2000-02-01')->addDays(5)->subDays(3); - * ``` - * - * @throws ReflectionException - */ - public static function mixin(object|string $mixin): void - { - static::baseMixin($mixin); - } - - /** - * Check if macro is registered. - */ - public static function hasMacro(string $name): bool - { - return isset(static::$macros[$name]); - } - - /** - * Provide static proxy for instance aliases. - */ - public static function __callStatic(string $method, array $parameters): mixed - { - $date = new static(); - - if (static::hasMacro($method)) { - return static::bindMacroContext(null, static fn () => $date->callMacro($method, $parameters)); - } - - return $date->$method(...$parameters); - } - - /** - * CarbonPeriod constructor. - * - * @SuppressWarnings(PHPMD.ElseExpression) - * - * @throws InvalidArgumentException - */ - public function __construct(...$arguments) - { - $raw = null; - - if (isset($arguments['raw'])) { - $raw = $arguments['raw']; - $this->isDefaultInterval = $arguments['isDefaultInterval'] ?? false; - - if (isset($arguments['dateClass'])) { - $this->dateClass = $arguments['dateClass']; - } - - $arguments = $raw; - } - - // Parse and assign arguments one by one. First argument may be an ISO 8601 spec, - // which will be first parsed into parts and then processed the same way. - - $argumentsCount = \count($arguments); - - if ($argumentsCount && static::isIso8601($iso = $arguments[0])) { - array_splice($arguments, 0, 1, static::parseIso8601($iso)); - } - - if ($argumentsCount === 1) { - if ($arguments[0] instanceof self) { - $arguments = [ - $arguments[0]->getStartDate(), - $arguments[0]->getEndDate() ?? $arguments[0]->getRecurrences(), - $arguments[0]->getDateInterval(), - $arguments[0]->getOptions(), - ]; - } elseif ($arguments[0] instanceof DatePeriod) { - $arguments = [ - $arguments[0]->start, - $arguments[0]->end ?: ($arguments[0]->recurrences - 1), - $arguments[0]->interval, - $arguments[0]->include_start_date ? 0 : static::EXCLUDE_START_DATE, - ]; - } - } - - if (is_a($this->dateClass, DateTimeImmutable::class, true)) { - $this->options = static::IMMUTABLE; - } - - $optionsSet = false; - $originalArguments = []; - $sortedArguments = []; - - foreach ($arguments as $argument) { - $parsedDate = null; - - if ($argument instanceof DateTimeZone) { - $sortedArguments = $this->configureTimezone($argument, $sortedArguments, $originalArguments); - } elseif (!isset($sortedArguments['interval']) && - ( - (\is_string($argument) && preg_match( - '/^(-?\d(\d(?![\/-])|[^\d\/-]([\/-])?)*|P[T\d].*|(?:\h*\d+(?:\.\d+)?\h*[a-z]+)+)$/i', - $argument, - )) || - $argument instanceof DateInterval || - $argument instanceof Closure || - $argument instanceof Unit - ) && - $parsedInterval = self::makeInterval($argument) - ) { - $sortedArguments['interval'] = $parsedInterval; - } elseif (!isset($sortedArguments['start']) && $parsedDate = $this->makeDateTime($argument)) { - $sortedArguments['start'] = $parsedDate; - $originalArguments['start'] = $argument; - } elseif (!isset($sortedArguments['end']) && ($parsedDate = $parsedDate ?? $this->makeDateTime($argument))) { - $sortedArguments['end'] = $parsedDate; - $originalArguments['end'] = $argument; - } elseif (!isset($sortedArguments['recurrences']) && - !isset($sortedArguments['end']) && - (\is_int($argument) || \is_float($argument)) - && $argument >= 0 - ) { - $sortedArguments['recurrences'] = $argument; - } elseif (!$optionsSet && (\is_int($argument) || $argument === null)) { - $optionsSet = true; - $sortedArguments['options'] = (((int) $this->options) | ((int) $argument)); - } elseif ($parsedTimezone = self::makeTimezone($argument)) { - $sortedArguments = $this->configureTimezone($parsedTimezone, $sortedArguments, $originalArguments); - } else { - throw new InvalidPeriodParameterException('Invalid constructor parameters.'); - } - } - - if ($raw === null && isset($sortedArguments['start'])) { - $end = $sortedArguments['end'] ?? max(1, $sortedArguments['recurrences'] ?? 1); - - if (\is_float($end)) { - $end = $end === INF ? PHP_INT_MAX : (int) round($end); - } - - $raw = [ - $sortedArguments['start'], - $sortedArguments['interval'] ?? CarbonInterval::day(), - $end, - ]; - } - - $this->setFromAssociativeArray($sortedArguments); - - if ($this->startDate === null) { - $dateClass = $this->dateClass; - $this->setStartDate($dateClass::now()); - } - - if ($this->dateInterval === null) { - $this->setDateInterval(CarbonInterval::day()); - - $this->isDefaultInterval = true; - } - - if ($this->options === null) { - $this->setOptions(0); - } - - parent::__construct( - $this->startDate, - $this->dateInterval, - $this->endDate ?? $this->recurrences ?? 1, - $this->options, - ); - $this->constructed = true; - } - - /** - * Get a copy of the instance. - */ - public function copy(): static - { - return clone $this; - } - - /** - * Prepare the instance to be set (self if mutable to be mutated, - * copy if immutable to generate a new instance). - */ - protected function copyIfImmutable(): static - { - return $this; - } - - /** - * Get the getter for a property allowing both `DatePeriod` snakeCase and camelCase names. - */ - protected function getGetter(string $name): ?callable - { - return match (strtolower(preg_replace('/[A-Z]/', '_$0', $name))) { - 'start', 'start_date' => [$this, 'getStartDate'], - 'end', 'end_date' => [$this, 'getEndDate'], - 'interval', 'date_interval' => [$this, 'getDateInterval'], - 'recurrences' => [$this, 'getRecurrences'], - 'include_start_date' => [$this, 'isStartIncluded'], - 'include_end_date' => [$this, 'isEndIncluded'], - 'current' => [$this, 'current'], - 'locale' => [$this, 'locale'], - 'tzname', 'tz_name' => fn () => match (true) { - $this->timezoneSetting === null => null, - \is_string($this->timezoneSetting) => $this->timezoneSetting, - $this->timezoneSetting instanceof DateTimeZone => $this->timezoneSetting->getName(), - default => CarbonTimeZone::instance($this->timezoneSetting)->getName(), - }, - default => null, - }; - } - - /** - * Get a property allowing both `DatePeriod` snakeCase and camelCase names. - * - * @param string $name - * - * @return bool|CarbonInterface|CarbonInterval|int|null - */ - public function get(string $name) - { - $getter = $this->getGetter($name); - - if ($getter) { - return $getter(); - } - - throw new UnknownGetterException($name); - } - - /** - * Get a property allowing both `DatePeriod` snakeCase and camelCase names. - * - * @param string $name - * - * @return bool|CarbonInterface|CarbonInterval|int|null - */ - public function __get(string $name) - { - return $this->get($name); - } - - /** - * Check if an attribute exists on the object - * - * @param string $name - * - * @return bool - */ - public function __isset(string $name): bool - { - return $this->getGetter($name) !== null; - } - - /** - * @alias copy - * - * Get a copy of the instance. - * - * @return static - */ - public function clone() - { - return clone $this; - } - - /** - * Set the iteration item class. - * - * @param string $dateClass - * - * @return static - */ - public function setDateClass(string $dateClass) - { - if (!is_a($dateClass, CarbonInterface::class, true)) { - throw new NotACarbonClassException($dateClass); - } - - $self = $this->copyIfImmutable(); - $self->dateClass = $dateClass; - - if (is_a($dateClass, Carbon::class, true)) { - $self->options = $self->options & ~static::IMMUTABLE; - } elseif (is_a($dateClass, CarbonImmutable::class, true)) { - $self->options = $self->options | static::IMMUTABLE; - } - - return $self; - } - - /** - * Returns iteration item date class. - * - * @return string - */ - public function getDateClass(): string - { - return $this->dateClass; - } - - /** - * Change the period date interval. - * - * @param DateInterval|string|int $interval - * @param Unit|string $unit the unit of $interval if it's a number - * - * @throws InvalidIntervalException - * - * @return static - */ - public function setDateInterval(mixed $interval, Unit|string|null $unit = null): static - { - if ($interval instanceof Unit) { - $interval = $interval->interval(); - } - - if ($unit instanceof Unit) { - $unit = $unit->name; - } - - if (!$interval = CarbonInterval::make($interval, $unit)) { - throw new InvalidIntervalException('Invalid interval.'); - } - - if ($interval->spec() === 'PT0S' && !$interval->f && !$interval->getStep()) { - throw new InvalidIntervalException('Empty interval is not accepted.'); - } - - $self = $this->copyIfImmutable(); - $self->dateInterval = $interval; - - $self->isDefaultInterval = false; - - $self->handleChangedParameters(); - - return $self; - } - - /** - * Reset the date interval to the default value. - * - * Difference with simply setting interval to 1-day is that P1D will not appear when calling toIso8601String() - * and also next adding to the interval won't include the default 1-day. - */ - public function resetDateInterval(): static - { - $self = $this->copyIfImmutable(); - $self->setDateInterval(CarbonInterval::day()); - - $self->isDefaultInterval = true; - - return $self; - } - - /** - * Invert the period date interval. - */ - public function invertDateInterval(): static - { - return $this->setDateInterval($this->dateInterval->invert()); - } - - /** - * Set start and end date. - * - * @param DateTime|DateTimeInterface|string $start - * @param DateTime|DateTimeInterface|string|null $end - * - * @return static - */ - public function setDates(mixed $start, mixed $end): static - { - return $this->setStartDate($start)->setEndDate($end); - } - - /** - * Change the period options. - * - * @param int|null $options - * - * @return static - */ - public function setOptions(?int $options): static - { - $self = $this->copyIfImmutable(); - $self->options = $options ?? 0; - - $self->handleChangedParameters(); - - return $self; - } - - /** - * Get the period options. - */ - public function getOptions(): int - { - return $this->options ?? 0; - } - - /** - * Toggle given options on or off. - * - * @param int $options - * @param bool|null $state - * - * @throws InvalidArgumentException - * - * @return static - */ - public function toggleOptions(int $options, ?bool $state = null): static - { - $self = $this->copyIfImmutable(); - - if ($state === null) { - $state = ($this->options & $options) !== $options; - } - - return $self->setOptions( - $state ? - $this->options | $options : - $this->options & ~$options, - ); - } - - /** - * Toggle EXCLUDE_START_DATE option. - */ - public function excludeStartDate(bool $state = true): static - { - return $this->toggleOptions(static::EXCLUDE_START_DATE, $state); - } - - /** - * Toggle EXCLUDE_END_DATE option. - */ - public function excludeEndDate(bool $state = true): static - { - return $this->toggleOptions(static::EXCLUDE_END_DATE, $state); - } - - /** - * Get the underlying date interval. - */ - public function getDateInterval(): CarbonInterval - { - return $this->dateInterval->copy(); - } - - /** - * Get start date of the period. - * - * @param string|null $rounding Optional rounding 'floor', 'ceil', 'round' using the period interval. - */ - public function getStartDate(?string $rounding = null): CarbonInterface - { - $date = $this->startDate->avoidMutation(); - - return $rounding ? $date->round($this->getDateInterval(), $rounding) : $date; - } - - /** - * Get end date of the period. - * - * @param string|null $rounding Optional rounding 'floor', 'ceil', 'round' using the period interval. - */ - public function getEndDate(?string $rounding = null): ?CarbonInterface - { - if (!$this->endDate) { - return null; - } - - $date = $this->endDate->avoidMutation(); - - return $rounding ? $date->round($this->getDateInterval(), $rounding) : $date; - } - - /** - * Get number of recurrences. - */ - #[ReturnTypeWillChange] - public function getRecurrences(): int|float|null - { - return $this->carbonRecurrences; - } - - /** - * Returns true if the start date should be excluded. - */ - public function isStartExcluded(): bool - { - return ($this->options & static::EXCLUDE_START_DATE) !== 0; - } - - /** - * Returns true if the end date should be excluded. - */ - public function isEndExcluded(): bool - { - return ($this->options & static::EXCLUDE_END_DATE) !== 0; - } - - /** - * Returns true if the start date should be included. - */ - public function isStartIncluded(): bool - { - return !$this->isStartExcluded(); - } - - /** - * Returns true if the end date should be included. - */ - public function isEndIncluded(): bool - { - return !$this->isEndExcluded(); - } - - /** - * Return the start if it's included by option, else return the start + 1 period interval. - */ - public function getIncludedStartDate(): CarbonInterface - { - $start = $this->getStartDate(); - - if ($this->isStartExcluded()) { - return $start->add($this->getDateInterval()); - } - - return $start; - } - - /** - * Return the end if it's included by option, else return the end - 1 period interval. - * Warning: if the period has no fixed end, this method will iterate the period to calculate it. - */ - public function getIncludedEndDate(): CarbonInterface - { - $end = $this->getEndDate(); - - if (!$end) { - return $this->calculateEnd(); - } - - if ($this->isEndExcluded()) { - return $end->sub($this->getDateInterval()); - } - - return $end; - } - - /** - * Add a filter to the stack. - * - * @SuppressWarnings(PHPMD.UnusedFormalParameter) - */ - public function addFilter(callable|string $callback, ?string $name = null): static - { - $self = $this->copyIfImmutable(); - $tuple = $self->createFilterTuple(\func_get_args()); - - $self->filters[] = $tuple; - - $self->handleChangedParameters(); - - return $self; - } - - /** - * Prepend a filter to the stack. - * - * @SuppressWarnings(PHPMD.UnusedFormalParameter) - */ - public function prependFilter(callable|string $callback, ?string $name = null): static - { - $self = $this->copyIfImmutable(); - $tuple = $self->createFilterTuple(\func_get_args()); - - array_unshift($self->filters, $tuple); - - $self->handleChangedParameters(); - - return $self; - } - - /** - * Remove a filter by instance or name. - */ - public function removeFilter(callable|string $filter): static - { - $self = $this->copyIfImmutable(); - $key = \is_callable($filter) ? 0 : 1; - - $self->filters = array_values(array_filter( - $this->filters, - static fn ($tuple) => $tuple[$key] !== $filter, - )); - - $self->updateInternalState(); - - $self->handleChangedParameters(); - - return $self; - } - - /** - * Return whether given instance or name is in the filter stack. - */ - public function hasFilter(callable|string $filter): bool - { - $key = \is_callable($filter) ? 0 : 1; - - foreach ($this->filters as $tuple) { - if ($tuple[$key] === $filter) { - return true; - } - } - - return false; - } - - /** - * Get filters stack. - */ - public function getFilters(): array - { - return $this->filters; - } - - /** - * Set filters stack. - */ - public function setFilters(array $filters): static - { - $self = $this->copyIfImmutable(); - $self->filters = $filters; - - $self->updateInternalState(); - - $self->handleChangedParameters(); - - return $self; - } - - /** - * Reset filters stack. - */ - public function resetFilters(): static - { - $self = $this->copyIfImmutable(); - $self->filters = []; - - if ($self->endDate !== null) { - $self->filters[] = [static::END_DATE_FILTER, null]; - } - - if ($self->carbonRecurrences !== null) { - $self->filters[] = [static::RECURRENCES_FILTER, null]; - } - - $self->handleChangedParameters(); - - return $self; - } - - /** - * Add a recurrences filter (set maximum number of recurrences). - * - * @throws InvalidArgumentException - */ - public function setRecurrences(int|float|null $recurrences): static - { - if ($recurrences === null) { - return $this->removeFilter(static::RECURRENCES_FILTER); - } - - if ($recurrences < 0) { - throw new InvalidPeriodParameterException('Invalid number of recurrences.'); - } - - /** @var self $self */ - $self = $this->copyIfImmutable(); - $self->carbonRecurrences = $recurrences === INF ? INF : (int) $recurrences; - - if (!$self->hasFilter(static::RECURRENCES_FILTER)) { - return $self->addFilter(static::RECURRENCES_FILTER); - } - - $self->handleChangedParameters(); - - return $self; - } - - /** - * Change the period start date. - * - * @param DateTime|DateTimeInterface|string $date - * @param bool|null $inclusive - * - * @throws InvalidPeriodDateException - * - * @return static - */ - public function setStartDate(mixed $date, ?bool $inclusive = null): static - { - if (!$this->isInfiniteDate($date) && !($date = ([$this->dateClass, 'make'])($date, $this->timezone))) { - throw new InvalidPeriodDateException('Invalid start date.'); - } - - $self = $this->copyIfImmutable(); - $self->startDate = $date; - - if ($inclusive !== null) { - $self = $self->toggleOptions(static::EXCLUDE_START_DATE, !$inclusive); - } - - return $self; - } - - /** - * Change the period end date. - * - * @param DateTime|DateTimeInterface|string|null $date - * @param bool|null $inclusive - * - * @throws \InvalidArgumentException - * - * @return static - */ - public function setEndDate(mixed $date, ?bool $inclusive = null): static - { - if ($date !== null && !$this->isInfiniteDate($date) && !$date = ([$this->dateClass, 'make'])($date, $this->timezone)) { - throw new InvalidPeriodDateException('Invalid end date.'); - } - - if (!$date) { - return $this->removeFilter(static::END_DATE_FILTER); - } - - $self = $this->copyIfImmutable(); - $self->endDate = $date; - - if ($inclusive !== null) { - $self = $self->toggleOptions(static::EXCLUDE_END_DATE, !$inclusive); - } - - if (!$self->hasFilter(static::END_DATE_FILTER)) { - return $self->addFilter(static::END_DATE_FILTER); - } - - $self->handleChangedParameters(); - - return $self; - } - - /** - * Check if the current position is valid. - */ - public function valid(): bool - { - return $this->validateCurrentDate() === true; - } - - /** - * Return the current key. - */ - public function key(): ?int - { - return $this->valid() - ? $this->key - : null; - } - - /** - * Return the current date. - */ - public function current(): ?CarbonInterface - { - return $this->valid() - ? $this->prepareForReturn($this->carbonCurrent) - : null; - } - - /** - * Move forward to the next date. - * - * @throws RuntimeException - */ - public function next(): void - { - if ($this->carbonCurrent === null) { - $this->rewind(); - } - - if ($this->validationResult !== static::END_ITERATION) { - $this->key++; - - $this->incrementCurrentDateUntilValid(); - } - } - - /** - * Rewind to the start date. - * - * Iterating over a date in the UTC timezone avoids bug during backward DST change. - * - * @see https://bugs.php.net/bug.php?id=72255 - * @see https://bugs.php.net/bug.php?id=74274 - * @see https://wiki.php.net/rfc/datetime_and_daylight_saving_time - * - * @throws RuntimeException - */ - public function rewind(): void - { - $this->key = 0; - $this->carbonCurrent = ([$this->dateClass, 'make'])($this->startDate); - $settings = $this->getSettings(); - - if ($this->hasLocalTranslator()) { - $settings['locale'] = $this->getTranslatorLocale(); - } - - $this->carbonCurrent->settings($settings); - $this->timezone = static::intervalHasTime($this->dateInterval) ? $this->carbonCurrent->getTimezone() : null; - - if ($this->timezone) { - $this->carbonCurrent = $this->carbonCurrent->utc(); - } - - $this->validationResult = null; - - if ($this->isStartExcluded() || $this->validateCurrentDate() === false) { - $this->incrementCurrentDateUntilValid(); - } - } - - /** - * Skip iterations and returns iteration state (false if ended, true if still valid). - * - * @param int $count steps number to skip (1 by default) - * - * @return bool - */ - public function skip(int $count = 1): bool - { - for ($i = $count; $this->valid() && $i > 0; $i--) { - $this->next(); - } - - return $this->valid(); - } - - /** - * Format the date period as ISO 8601. - */ - public function toIso8601String(): string - { - $parts = []; - - if ($this->carbonRecurrences !== null) { - $parts[] = 'R'.$this->carbonRecurrences; - } - - $parts[] = $this->startDate->toIso8601String(); - - if (!$this->isDefaultInterval) { - $parts[] = $this->dateInterval->spec(); - } - - if ($this->endDate !== null) { - $parts[] = $this->endDate->toIso8601String(); - } - - return implode('/', $parts); - } - - /** - * Convert the date period into a string. - */ - public function toString(): string - { - $format = $this->localToStringFormat - ?? $this->getFactory()->getSettings()['toStringFormat'] - ?? null; - - if ($format instanceof Closure) { - return $format($this); - } - - $translator = ([$this->dateClass, 'getTranslator'])(); - - $parts = []; - - $format = $format ?? ( - !$this->startDate->isStartOfDay() || ($this->endDate && !$this->endDate->isStartOfDay()) - ? 'Y-m-d H:i:s' - : 'Y-m-d' - ); - - if ($this->carbonRecurrences !== null) { - $parts[] = $this->translate('period_recurrences', [], $this->carbonRecurrences, $translator); - } - - $parts[] = $this->translate('period_interval', [':interval' => $this->dateInterval->forHumans([ - 'join' => true, - ])], null, $translator); - - $parts[] = $this->translate('period_start_date', [':date' => $this->startDate->rawFormat($format)], null, $translator); - - if ($this->endDate !== null) { - $parts[] = $this->translate('period_end_date', [':date' => $this->endDate->rawFormat($format)], null, $translator); - } - - $result = implode(' ', $parts); - - return mb_strtoupper(mb_substr($result, 0, 1)).mb_substr($result, 1); - } - - /** - * Format the date period as ISO 8601. - */ - public function spec(): string - { - return $this->toIso8601String(); - } - - /** - * Cast the current instance into the given class. - * - * @param string $className The $className::instance() method will be called to cast the current object. - * - * @return DatePeriod|object - */ - public function cast(string $className): object - { - if (!method_exists($className, 'instance')) { - if (is_a($className, DatePeriod::class, true)) { - return new $className( - $this->rawDate($this->getStartDate()), - $this->getDateInterval(), - $this->getEndDate() ? $this->rawDate($this->getIncludedEndDate()) : $this->getRecurrences(), - $this->isStartExcluded() ? DatePeriod::EXCLUDE_START_DATE : 0, - ); - } - - throw new InvalidCastException("$className has not the instance() method needed to cast the date."); - } - - return $className::instance($this); - } - - /** - * Return native DatePeriod PHP object matching the current instance. - * - * @example - * ``` - * var_dump(CarbonPeriod::create('2021-01-05', '2021-02-15')->toDatePeriod()); - * ``` - */ - public function toDatePeriod(): DatePeriod - { - return $this->cast(DatePeriod::class); - } - - /** - * Return `true` if the period has no custom filter and is guaranteed to be endless. - * - * Note that we can't check if a period is endless as soon as it has custom filters - * because filters can emit `CarbonPeriod::END_ITERATION` to stop the iteration in - * a way we can't predict without actually iterating the period. - */ - public function isUnfilteredAndEndLess(): bool - { - foreach ($this->filters as $filter) { - switch ($filter) { - case [static::RECURRENCES_FILTER, null]: - if ($this->carbonRecurrences !== null && is_finite($this->carbonRecurrences)) { - return false; - } - - break; - - case [static::END_DATE_FILTER, null]: - if ($this->endDate !== null && !$this->endDate->isEndOfTime()) { - return false; - } - - break; - - default: - return false; - } - } - - return true; - } - - /** - * Convert the date period into an array without changing current iteration state. - * - * @return CarbonInterface[] - */ - public function toArray(): array - { - if ($this->isUnfilteredAndEndLess()) { - throw new EndLessPeriodException("Endless period can't be converted to array nor counted."); - } - - $state = [ - $this->key, - $this->carbonCurrent ? $this->carbonCurrent->avoidMutation() : null, - $this->validationResult, - ]; - - $result = iterator_to_array($this); - - [$this->key, $this->carbonCurrent, $this->validationResult] = $state; - - return $result; - } - - /** - * Count dates in the date period. - */ - public function count(): int - { - return \count($this->toArray()); - } - - /** - * Return the first date in the date period. - */ - public function first(): ?CarbonInterface - { - if ($this->isUnfilteredAndEndLess()) { - foreach ($this as $date) { - $this->rewind(); - - return $date; - } - - return null; - } - - return ($this->toArray() ?: [])[0] ?? null; - } - - /** - * Return the last date in the date period. - */ - public function last(): ?CarbonInterface - { - $array = $this->toArray(); - - return $array ? $array[\count($array) - 1] : null; - } - - /** - * Convert the date period into a string. - */ - public function __toString(): string - { - return $this->toString(); - } - - /** - * Add aliases for setters. - * - * CarbonPeriod::days(3)->hours(5)->invert() - * ->sinceNow()->until('2010-01-10') - * ->filter(...) - * ->count() - * - * Note: We use magic method to let static and instance aliases with the same names. - */ - public function __call(string $method, array $parameters): mixed - { - if (static::hasMacro($method)) { - return static::bindMacroContext($this, fn () => $this->callMacro($method, $parameters)); - } - - $roundedValue = $this->callRoundMethod($method, $parameters); - - if ($roundedValue !== null) { - return $roundedValue; - } - - $count = \count($parameters); - - switch ($method) { - case 'start': - case 'since': - if ($count === 0) { - return $this->getStartDate(); - } - - self::setDefaultParameters($parameters, [ - [0, 'date', null], - ]); - - return $this->setStartDate(...$parameters); - - case 'sinceNow': - return $this->setStartDate(new Carbon(), ...$parameters); - - case 'end': - case 'until': - if ($count === 0) { - return $this->getEndDate(); - } - - self::setDefaultParameters($parameters, [ - [0, 'date', null], - ]); - - return $this->setEndDate(...$parameters); - - case 'untilNow': - return $this->setEndDate(new Carbon(), ...$parameters); - - case 'dates': - case 'between': - self::setDefaultParameters($parameters, [ - [0, 'start', null], - [1, 'end', null], - ]); - - return $this->setDates(...$parameters); - - case 'recurrences': - case 'times': - if ($count === 0) { - return $this->getRecurrences(); - } - - self::setDefaultParameters($parameters, [ - [0, 'recurrences', null], - ]); - - return $this->setRecurrences(...$parameters); - - case 'options': - if ($count === 0) { - return $this->getOptions(); - } - - self::setDefaultParameters($parameters, [ - [0, 'options', null], - ]); - - return $this->setOptions(...$parameters); - - case 'toggle': - self::setDefaultParameters($parameters, [ - [0, 'options', null], - ]); - - return $this->toggleOptions(...$parameters); - - case 'filter': - case 'push': - return $this->addFilter(...$parameters); - - case 'prepend': - return $this->prependFilter(...$parameters); - - case 'filters': - if ($count === 0) { - return $this->getFilters(); - } - - self::setDefaultParameters($parameters, [ - [0, 'filters', []], - ]); - - return $this->setFilters(...$parameters); - - case 'interval': - case 'each': - case 'every': - case 'step': - case 'stepBy': - if ($count === 0) { - return $this->getDateInterval(); - } - - return $this->setDateInterval(...$parameters); - - case 'invert': - return $this->invertDateInterval(); - - case 'years': - case 'year': - case 'months': - case 'month': - case 'weeks': - case 'week': - case 'days': - case 'dayz': - case 'day': - case 'hours': - case 'hour': - case 'minutes': - case 'minute': - case 'seconds': - case 'second': - case 'milliseconds': - case 'millisecond': - case 'microseconds': - case 'microsecond': - return $this->setDateInterval(( - // Override default P1D when instantiating via fluent setters. - [$this->isDefaultInterval ? new CarbonInterval('PT0S') : $this->dateInterval, $method] - )(...$parameters)); - } - - $dateClass = $this->dateClass; - - if ($this->localStrictModeEnabled ?? $dateClass::isStrictModeEnabled()) { - throw new UnknownMethodException($method); - } - - return $this; - } - - /** - * Set the instance's timezone from a string or object and apply it to start/end. - */ - public function setTimezone(DateTimeZone|string|int $timezone): static - { - $self = $this->copyIfImmutable(); - $self->timezoneSetting = $timezone; - $self->timezone = CarbonTimeZone::instance($timezone); - - if ($self->startDate) { - $self = $self->setStartDate($self->startDate->setTimezone($timezone)); - } - - if ($self->endDate) { - $self = $self->setEndDate($self->endDate->setTimezone($timezone)); - } - - return $self; - } - - /** - * Set the instance's timezone from a string or object and add/subtract the offset difference to start/end. - */ - public function shiftTimezone(DateTimeZone|string|int $timezone): static - { - $self = $this->copyIfImmutable(); - $self->timezoneSetting = $timezone; - $self->timezone = CarbonTimeZone::instance($timezone); - - if ($self->startDate) { - $self = $self->setStartDate($self->startDate->shiftTimezone($timezone)); - } - - if ($self->endDate) { - $self = $self->setEndDate($self->endDate->shiftTimezone($timezone)); - } - - return $self; - } - - /** - * Returns the end is set, else calculated from start and recurrences. - * - * @param string|null $rounding Optional rounding 'floor', 'ceil', 'round' using the period interval. - * - * @return CarbonInterface - */ - public function calculateEnd(?string $rounding = null): CarbonInterface - { - if ($end = $this->getEndDate($rounding)) { - return $end; - } - - if ($this->dateInterval->isEmpty()) { - return $this->getStartDate($rounding); - } - - $date = $this->getEndFromRecurrences() ?? $this->iterateUntilEnd(); - - if ($date && $rounding) { - $date = $date->avoidMutation()->round($this->getDateInterval(), $rounding); - } - - return $date; - } - - private function getEndFromRecurrences(): ?CarbonInterface - { - if ($this->carbonRecurrences === null) { - throw new UnreachableException( - "Could not calculate period end without either explicit end or recurrences.\n". - "If you're looking for a forever-period, use ->setRecurrences(INF).", - ); - } - - if ($this->carbonRecurrences === INF) { - $start = $this->getStartDate(); - - return $start < $start->avoidMutation()->add($this->getDateInterval()) - ? CarbonImmutable::endOfTime() - : CarbonImmutable::startOfTime(); - } - - if ($this->filters === [[static::RECURRENCES_FILTER, null]]) { - return $this->getStartDate()->avoidMutation()->add( - $this->getDateInterval()->times( - $this->carbonRecurrences - ($this->isStartExcluded() ? 0 : 1), - ), - ); - } - - return null; - } - - private function iterateUntilEnd(): ?CarbonInterface - { - $attempts = 0; - $date = null; - - foreach ($this as $date) { - if (++$attempts > static::END_MAX_ATTEMPTS) { - throw new UnreachableException( - 'Could not calculate period end after iterating '.static::END_MAX_ATTEMPTS.' times.', - ); - } - } - - return $date; - } - - /** - * Returns true if the current period overlaps the given one (if 1 parameter passed) - * or the period between 2 dates (if 2 parameters passed). - * - * @param CarbonPeriod|\DateTimeInterface|Carbon|CarbonImmutable|string $rangeOrRangeStart - * @param \DateTimeInterface|Carbon|CarbonImmutable|string|null $rangeEnd - * - * @return bool - */ - public function overlaps(mixed $rangeOrRangeStart, mixed $rangeEnd = null): bool - { - $range = $rangeEnd ? static::create($rangeOrRangeStart, $rangeEnd) : $rangeOrRangeStart; - - if (!($range instanceof self)) { - $range = static::create($range); - } - - [$start, $end] = $this->orderCouple($this->getStartDate(), $this->calculateEnd()); - [$rangeStart, $rangeEnd] = $this->orderCouple($range->getStartDate(), $range->calculateEnd()); - - return $end > $rangeStart && $rangeEnd > $start; - } - - /** - * Execute a given function on each date of the period. - * - * @example - * ``` - * Carbon::create('2020-11-29')->daysUntil('2020-12-24')->forEach(function (Carbon $date) { - * echo $date->diffInDays('2020-12-25')." days before Christmas!\n"; - * }); - * ``` - */ - public function forEach(callable $callback): void - { - foreach ($this as $date) { - $callback($date); - } - } - - /** - * Execute a given function on each date of the period and yield the result of this function. - * - * @example - * ``` - * $period = Carbon::create('2020-11-29')->daysUntil('2020-12-24'); - * echo implode("\n", iterator_to_array($period->map(function (Carbon $date) { - * return $date->diffInDays('2020-12-25').' days before Christmas!'; - * }))); - * ``` - */ - public function map(callable $callback): Generator - { - foreach ($this as $date) { - yield $callback($date); - } - } - - /** - * Determines if the instance is equal to another. - * Warning: if options differ, instances will never be equal. - * - * @see equalTo() - */ - public function eq(mixed $period): bool - { - return $this->equalTo($period); - } - - /** - * Determines if the instance is equal to another. - * Warning: if options differ, instances will never be equal. - */ - public function equalTo(mixed $period): bool - { - if (!($period instanceof self)) { - $period = self::make($period); - } - - $end = $this->getEndDate(); - - return $period !== null - && $this->getDateInterval()->eq($period->getDateInterval()) - && $this->getStartDate()->eq($period->getStartDate()) - && ($end ? $end->eq($period->getEndDate()) : $this->getRecurrences() === $period->getRecurrences()) - && ($this->getOptions() & (~static::IMMUTABLE)) === ($period->getOptions() & (~static::IMMUTABLE)); - } - - /** - * Determines if the instance is not equal to another. - * Warning: if options differ, instances will never be equal. - * - * @see notEqualTo() - */ - public function ne(mixed $period): bool - { - return $this->notEqualTo($period); - } - - /** - * Determines if the instance is not equal to another. - * Warning: if options differ, instances will never be equal. - */ - public function notEqualTo(mixed $period): bool - { - return !$this->eq($period); - } - - /** - * Determines if the start date is before another given date. - * (Rather start/end are included by options is ignored.) - */ - public function startsBefore(mixed $date = null): bool - { - return $this->getStartDate()->lessThan($this->resolveCarbon($date)); - } - - /** - * Determines if the start date is before or the same as a given date. - * (Rather start/end are included by options is ignored.) - */ - public function startsBeforeOrAt(mixed $date = null): bool - { - return $this->getStartDate()->lessThanOrEqualTo($this->resolveCarbon($date)); - } - - /** - * Determines if the start date is after another given date. - * (Rather start/end are included by options is ignored.) - */ - public function startsAfter(mixed $date = null): bool - { - return $this->getStartDate()->greaterThan($this->resolveCarbon($date)); - } - - /** - * Determines if the start date is after or the same as a given date. - * (Rather start/end are included by options is ignored.) - */ - public function startsAfterOrAt(mixed $date = null): bool - { - return $this->getStartDate()->greaterThanOrEqualTo($this->resolveCarbon($date)); - } - - /** - * Determines if the start date is the same as a given date. - * (Rather start/end are included by options is ignored.) - */ - public function startsAt(mixed $date = null): bool - { - return $this->getStartDate()->equalTo($this->resolveCarbon($date)); - } - - /** - * Determines if the end date is before another given date. - * (Rather start/end are included by options is ignored.) - */ - public function endsBefore(mixed $date = null): bool - { - return $this->calculateEnd()->lessThan($this->resolveCarbon($date)); - } - - /** - * Determines if the end date is before or the same as a given date. - * (Rather start/end are included by options is ignored.) - */ - public function endsBeforeOrAt(mixed $date = null): bool - { - return $this->calculateEnd()->lessThanOrEqualTo($this->resolveCarbon($date)); - } - - /** - * Determines if the end date is after another given date. - * (Rather start/end are included by options is ignored.) - */ - public function endsAfter(mixed $date = null): bool - { - return $this->calculateEnd()->greaterThan($this->resolveCarbon($date)); - } - - /** - * Determines if the end date is after or the same as a given date. - * (Rather start/end are included by options is ignored.) - */ - public function endsAfterOrAt(mixed $date = null): bool - { - return $this->calculateEnd()->greaterThanOrEqualTo($this->resolveCarbon($date)); - } - - /** - * Determines if the end date is the same as a given date. - * (Rather start/end are included by options is ignored.) - */ - public function endsAt(mixed $date = null): bool - { - return $this->calculateEnd()->equalTo($this->resolveCarbon($date)); - } - - /** - * Return true if start date is now or later. - * (Rather start/end are included by options is ignored.) - */ - public function isStarted(): bool - { - return $this->startsBeforeOrAt(); - } - - /** - * Return true if end date is now or later. - * (Rather start/end are included by options is ignored.) - */ - public function isEnded(): bool - { - return $this->endsBeforeOrAt(); - } - - /** - * Return true if now is between start date (included) and end date (excluded). - * (Rather start/end are included by options is ignored.) - */ - public function isInProgress(): bool - { - return $this->isStarted() && !$this->isEnded(); - } - - /** - * Round the current instance at the given unit with given precision if specified and the given function. - */ - public function roundUnit( - string $unit, - DateInterval|float|int|string|null $precision = 1, - callable|string $function = 'round', - ): static { - $self = $this->copyIfImmutable(); - $self = $self->setStartDate($self->getStartDate()->roundUnit($unit, $precision, $function)); - - if ($self->endDate) { - $self = $self->setEndDate($self->getEndDate()->roundUnit($unit, $precision, $function)); - } - - return $self->setDateInterval($self->getDateInterval()->roundUnit($unit, $precision, $function)); - } - - /** - * Truncate the current instance at the given unit with given precision if specified. - */ - public function floorUnit(string $unit, DateInterval|float|int|string|null $precision = 1): static - { - return $this->roundUnit($unit, $precision, 'floor'); - } - - /** - * Ceil the current instance at the given unit with given precision if specified. - */ - public function ceilUnit(string $unit, DateInterval|float|int|string|null $precision = 1): static - { - return $this->roundUnit($unit, $precision, 'ceil'); - } - - /** - * Round the current instance second with given precision if specified (else period interval is used). - */ - public function round( - DateInterval|float|int|string|null $precision = null, - callable|string $function = 'round', - ): static { - return $this->roundWith( - $precision ?? $this->getDateInterval()->setLocalTranslator(TranslatorImmutable::get('en'))->forHumans(), - $function - ); - } - - /** - * Round the current instance second with given precision if specified (else period interval is used). - */ - public function floor(DateInterval|float|int|string|null $precision = null): static - { - return $this->round($precision, 'floor'); - } - - /** - * Ceil the current instance second with given precision if specified (else period interval is used). - */ - public function ceil(DateInterval|float|int|string|null $precision = null): static - { - return $this->round($precision, 'ceil'); - } - - /** - * Specify data which should be serialized to JSON. - * - * @link https://php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return CarbonInterface[] - */ - public function jsonSerialize(): array - { - return $this->toArray(); - } - - /** - * Return true if the given date is between start and end. - */ - public function contains(mixed $date = null): bool - { - $startMethod = 'startsBefore'.($this->isStartIncluded() ? 'OrAt' : ''); - $endMethod = 'endsAfter'.($this->isEndIncluded() ? 'OrAt' : ''); - - return $this->$startMethod($date) && $this->$endMethod($date); - } - - /** - * Return true if the current period follows a given other period (with no overlap). - * For instance, [2019-08-01 -> 2019-08-12] follows [2019-07-29 -> 2019-07-31] - * Note than in this example, follows() would be false if 2019-08-01 or 2019-07-31 was excluded by options. - */ - public function follows(mixed $period, mixed ...$arguments): bool - { - $period = $this->resolveCarbonPeriod($period, ...$arguments); - - return $this->getIncludedStartDate()->equalTo($period->getIncludedEndDate()->add($period->getDateInterval())); - } - - /** - * Return true if the given other period follows the current one (with no overlap). - * For instance, [2019-07-29 -> 2019-07-31] is followed by [2019-08-01 -> 2019-08-12] - * Note than in this example, isFollowedBy() would be false if 2019-08-01 or 2019-07-31 was excluded by options. - */ - public function isFollowedBy(mixed $period, mixed ...$arguments): bool - { - $period = $this->resolveCarbonPeriod($period, ...$arguments); - - return $period->follows($this); - } - - /** - * Return true if the given period either follows or is followed by the current one. - * - * @see follows() - * @see isFollowedBy() - */ - public function isConsecutiveWith(mixed $period, mixed ...$arguments): bool - { - return $this->follows($period, ...$arguments) || $this->isFollowedBy($period, ...$arguments); - } - - public function __debugInfo(): array - { - $info = $this->baseDebugInfo(); - unset($info['start'], $info['end'], $info['interval'], $info['include_start_date'], $info['include_end_date']); - - return $info; - } - - /** - * Update properties after removing built-in filters. - */ - protected function updateInternalState(): void - { - if (!$this->hasFilter(static::END_DATE_FILTER)) { - $this->endDate = null; - } - - if (!$this->hasFilter(static::RECURRENCES_FILTER)) { - $this->carbonRecurrences = null; - } - } - - /** - * Create a filter tuple from raw parameters. - * - * Will create an automatic filter callback for one of Carbon's is* methods. - */ - protected function createFilterTuple(array $parameters): array - { - $method = array_shift($parameters); - - if (!$this->isCarbonPredicateMethod($method)) { - return [$method, array_shift($parameters)]; - } - - return [static fn ($date) => ([$date, $method])(...$parameters), $method]; - } - - /** - * Return whether given callable is a string pointing to one of Carbon's is* methods - * and should be automatically converted to a filter callback. - */ - protected function isCarbonPredicateMethod(callable|string $callable): bool - { - return \is_string($callable) && str_starts_with($callable, 'is') && - (method_exists($this->dateClass, $callable) || ([$this->dateClass, 'hasMacro'])($callable)); - } - - /** - * Recurrences filter callback (limits number of recurrences). - * - * @SuppressWarnings(PHPMD.UnusedFormalParameter) - */ - protected function filterRecurrences(CarbonInterface $current, int $key): bool|callable - { - if ($key < $this->carbonRecurrences) { - return true; - } - - return static::END_ITERATION; - } - - /** - * End date filter callback. - * - * @return bool|static::END_ITERATION - */ - protected function filterEndDate(CarbonInterface $current): bool|callable - { - if (!$this->isEndExcluded() && $current == $this->endDate) { - return true; - } - - if ($this->dateInterval->invert ? $current > $this->endDate : $current < $this->endDate) { - return true; - } - - return static::END_ITERATION; - } - - /** - * End iteration filter callback. - * - * @return static::END_ITERATION - */ - protected function endIteration(): callable - { - return static::END_ITERATION; - } - - /** - * Handle change of the parameters. - */ - protected function handleChangedParameters(): void - { - if (($this->getOptions() & static::IMMUTABLE) && $this->dateClass === Carbon::class) { - $this->dateClass = CarbonImmutable::class; - } elseif (!($this->getOptions() & static::IMMUTABLE) && $this->dateClass === CarbonImmutable::class) { - $this->dateClass = Carbon::class; - } - - $this->validationResult = null; - } - - /** - * Validate current date and stop iteration when necessary. - * - * Returns true when current date is valid, false if it is not, or static::END_ITERATION - * when iteration should be stopped. - * - * @return bool|static::END_ITERATION - */ - protected function validateCurrentDate(): bool|callable - { - if ($this->carbonCurrent === null) { - $this->rewind(); - } - - // Check after the first rewind to avoid repeating the initial validation. - return $this->validationResult ?? ($this->validationResult = $this->checkFilters()); - } - - /** - * Check whether current value and key pass all the filters. - * - * @return bool|static::END_ITERATION - */ - protected function checkFilters(): bool|callable - { - $current = $this->prepareForReturn($this->carbonCurrent); - - foreach ($this->filters as $tuple) { - $result = \call_user_func($tuple[0], $current->avoidMutation(), $this->key, $this); - - if ($result === static::END_ITERATION) { - return static::END_ITERATION; - } - - if (!$result) { - return false; - } - } - - return true; - } - - /** - * Prepare given date to be returned to the external logic. - * - * @param CarbonInterface $date - * - * @return CarbonInterface - */ - protected function prepareForReturn(CarbonInterface $date) - { - $date = ([$this->dateClass, 'make'])($date); - - if ($this->timezone) { - return $date->setTimezone($this->timezone); - } - - return $date; - } - - /** - * Keep incrementing the current date until a valid date is found or the iteration is ended. - * - * @throws RuntimeException - */ - protected function incrementCurrentDateUntilValid(): void - { - $attempts = 0; - - do { - $this->carbonCurrent = $this->carbonCurrent->add($this->dateInterval); - - $this->validationResult = null; - - if (++$attempts > static::NEXT_MAX_ATTEMPTS) { - throw new UnreachableException('Could not find next valid date.'); - } - } while ($this->validateCurrentDate() === false); - } - - /** - * Call given macro. - */ - protected function callMacro(string $name, array $parameters): mixed - { - $macro = static::$macros[$name]; - - if ($macro instanceof Closure) { - $boundMacro = @$macro->bindTo($this, static::class) ?: @$macro->bindTo(null, static::class); - - return ($boundMacro ?: $macro)(...$parameters); - } - - return $macro(...$parameters); - } - - /** - * Return the Carbon instance passed through, a now instance in the same timezone - * if null given or parse the input if string given. - * - * @param \Carbon\Carbon|\Carbon\CarbonPeriod|\Carbon\CarbonInterval|\DateInterval|\DatePeriod|\DateTimeInterface|string|null $date - * - * @return \Carbon\CarbonInterface - */ - protected function resolveCarbon($date = null) - { - return $this->getStartDate()->nowWithSameTz()->carbonize($date); - } - - /** - * Resolve passed arguments or DatePeriod to a CarbonPeriod object. - */ - protected function resolveCarbonPeriod(mixed $period, mixed ...$arguments): self - { - if ($period instanceof self) { - return $period; - } - - return $period instanceof DatePeriod - ? static::instance($period) - : static::create($period, ...$arguments); - } - - private function orderCouple($first, $second): array - { - return $first > $second ? [$second, $first] : [$first, $second]; - } - - private function makeDateTime($value): ?DateTimeInterface - { - if ($value instanceof DateTimeInterface) { - return $value; - } - - if ($value instanceof WeekDay || $value instanceof Month) { - $dateClass = $this->dateClass; - - return new $dateClass($value, $this->timezoneSetting); - } - - if (\is_string($value)) { - $value = trim($value); - - if (!preg_match('/^P[\dT]/', $value) && - !preg_match('/^R\d/', $value) && - preg_match('/[a-z\d]/i', $value) - ) { - $dateClass = $this->dateClass; - - return $dateClass::parse($value, $this->timezoneSetting); - } - } - - return null; - } - - private function isInfiniteDate($date): bool - { - return $date instanceof CarbonInterface && ($date->isEndOfTime() || $date->isStartOfTime()); - } - - private function rawDate($date): ?DateTimeInterface - { - if ($date === false || $date === null) { - return null; - } - - if ($date instanceof CarbonInterface) { - return $date->isMutable() - ? $date->toDateTime() - : $date->toDateTimeImmutable(); - } - - if (\in_array(\get_class($date), [DateTime::class, DateTimeImmutable::class], true)) { - return $date; - } - - $class = $date instanceof DateTime ? DateTime::class : DateTimeImmutable::class; - - return new $class($date->format('Y-m-d H:i:s.u'), $date->getTimezone()); - } - - private static function setDefaultParameters(array &$parameters, array $defaults): void - { - foreach ($defaults as [$index, $name, $value]) { - if (!\array_key_exists($index, $parameters) && !\array_key_exists($name, $parameters)) { - $parameters[$index] = $value; - } - } - } - - private function setFromAssociativeArray(array $parameters): void - { - if (isset($parameters['start'])) { - $this->setStartDate($parameters['start']); - } - - if (isset($parameters['start'])) { - $this->setStartDate($parameters['start']); - } - - if (isset($parameters['end'])) { - $this->setEndDate($parameters['end']); - } - - if (isset($parameters['recurrences'])) { - $this->setRecurrences($parameters['recurrences']); - } - - if (isset($parameters['interval'])) { - $this->setDateInterval($parameters['interval']); - } - - if (isset($parameters['options'])) { - $this->setOptions($parameters['options']); - } - } - - private function configureTimezone(DateTimeZone $timezone, array $sortedArguments, array $originalArguments): array - { - $this->setTimezone($timezone); - - if (\is_string($originalArguments['start'] ?? null)) { - $sortedArguments['start'] = $this->makeDateTime($originalArguments['start']); - } - - if (\is_string($originalArguments['end'] ?? null)) { - $sortedArguments['end'] = $this->makeDateTime($originalArguments['end']); - } - - return $sortedArguments; - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/CarbonPeriodImmutable.php b/vendor/nesbot/carbon/src/Carbon/CarbonPeriodImmutable.php deleted file mode 100644 index 0e8ff28..0000000 --- a/vendor/nesbot/carbon/src/Carbon/CarbonPeriodImmutable.php +++ /dev/null @@ -1,38 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon; - -class CarbonPeriodImmutable extends CarbonPeriod -{ - /** - * Default date class of iteration items. - * - * @var string - */ - protected const DEFAULT_DATE_CLASS = CarbonImmutable::class; - - /** - * Date class of iteration items. - */ - protected string $dateClass = CarbonImmutable::class; - - /** - * Prepare the instance to be set (self if mutable to be mutated, - * copy if immutable to generate a new instance). - */ - protected function copyIfImmutable(): static - { - return $this->constructed ? clone $this : $this; - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/CarbonTimeZone.php b/vendor/nesbot/carbon/src/Carbon/CarbonTimeZone.php deleted file mode 100644 index 974efcb..0000000 --- a/vendor/nesbot/carbon/src/Carbon/CarbonTimeZone.php +++ /dev/null @@ -1,322 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon; - -use Carbon\Exceptions\InvalidCastException; -use Carbon\Exceptions\InvalidTimeZoneException; -use Carbon\Traits\LocalFactory; -use DateTimeInterface; -use DateTimeZone; -use Exception; -use Throwable; - -class CarbonTimeZone extends DateTimeZone -{ - use LocalFactory; - - public const MAXIMUM_TIMEZONE_OFFSET = 99; - - public function __construct(string|int|float $timezone) - { - $this->initLocalFactory(); - - parent::__construct(static::getDateTimeZoneNameFromMixed($timezone)); - } - - protected static function parseNumericTimezone(string|int|float $timezone): string - { - if (abs((float) $timezone) > static::MAXIMUM_TIMEZONE_OFFSET) { - throw new InvalidTimeZoneException( - 'Absolute timezone offset cannot be greater than '. - static::MAXIMUM_TIMEZONE_OFFSET.'.', - ); - } - - return ($timezone >= 0 ? '+' : '').ltrim((string) $timezone, '+').':00'; - } - - protected static function getDateTimeZoneNameFromMixed(string|int|float $timezone): string - { - if (\is_string($timezone)) { - $timezone = preg_replace('/^\s*([+-]\d+)(\d{2})\s*$/', '$1:$2', $timezone); - } - - if (is_numeric($timezone)) { - return static::parseNumericTimezone($timezone); - } - - return $timezone; - } - - /** - * Cast the current instance into the given class. - * - * @param class-string $className The $className::instance() method will be called to cast the current object. - * - * @return DateTimeZone|mixed - */ - public function cast(string $className): mixed - { - if (!method_exists($className, 'instance')) { - if (is_a($className, DateTimeZone::class, true)) { - return new $className($this->getName()); - } - - throw new InvalidCastException("$className has not the instance() method needed to cast the date."); - } - - return $className::instance($this); - } - - /** - * Create a CarbonTimeZone from mixed input. - * - * @param DateTimeZone|string|int|false|null $object original value to get CarbonTimeZone from it. - * @param DateTimeZone|string|int|false|null $objectDump dump of the object for error messages. - * - * @throws InvalidTimeZoneException - * - * @return static|null - */ - public static function instance( - DateTimeZone|string|int|false|null $object, - DateTimeZone|string|int|false|null $objectDump = null, - ): ?self { - $timezone = $object; - - if ($timezone instanceof static) { - return $timezone; - } - - if ($timezone === null || $timezone === false) { - return null; - } - - try { - if (!($timezone instanceof DateTimeZone)) { - $name = static::getDateTimeZoneNameFromMixed($object); - $timezone = new static($name); - } - - return $timezone instanceof static ? $timezone : new static($timezone->getName()); - } catch (Exception $exception) { - throw new InvalidTimeZoneException( - 'Unknown or bad timezone ('.($objectDump ?: $object).')', - previous: $exception, - ); - } - } - - /** - * Returns abbreviated name of the current timezone according to DST setting. - * - * @param bool $dst - * - * @return string - */ - public function getAbbreviatedName(bool $dst = false): string - { - $name = $this->getName(); - - foreach ($this->listAbbreviations() as $abbreviation => $zones) { - foreach ($zones as $zone) { - if ($zone['timezone_id'] === $name && $zone['dst'] == $dst) { - return $abbreviation; - } - } - } - - return 'unknown'; - } - - /** - * @alias getAbbreviatedName - * - * Returns abbreviated name of the current timezone according to DST setting. - * - * @param bool $dst - * - * @return string - */ - public function getAbbr(bool $dst = false): string - { - return $this->getAbbreviatedName($dst); - } - - /** - * Get the offset as string "sHH:MM" (such as "+00:00" or "-12:30"). - */ - public function toOffsetName(?DateTimeInterface $date = null): string - { - return static::getOffsetNameFromMinuteOffset( - $this->getOffset($this->resolveCarbon($date)) / 60, - ); - } - - /** - * Returns a new CarbonTimeZone object using the offset string instead of region string. - */ - public function toOffsetTimeZone(?DateTimeInterface $date = null): static - { - return new static($this->toOffsetName($date)); - } - - /** - * Returns the first region string (such as "America/Toronto") that matches the current timezone or - * false if no match is found. - * - * @see timezone_name_from_abbr native PHP function. - */ - public function toRegionName(?DateTimeInterface $date = null, int $isDST = 1): ?string - { - $name = $this->getName(); - $firstChar = substr($name, 0, 1); - - if ($firstChar !== '+' && $firstChar !== '-') { - return $name; - } - - $date = $this->resolveCarbon($date); - - // Integer construction no longer supported since PHP 8 - // @codeCoverageIgnoreStart - try { - $offset = @$this->getOffset($date) ?: 0; - } catch (Throwable) { - $offset = 0; - } - // @codeCoverageIgnoreEnd - - $name = @timezone_name_from_abbr('', $offset, $isDST); - - if ($name) { - return $name; - } - - foreach (timezone_identifiers_list() as $timezone) { - if (Carbon::instance($date)->setTimezone($timezone)->getOffset() === $offset) { - return $timezone; - } - } - - return null; - } - - /** - * Returns a new CarbonTimeZone object using the region string instead of offset string. - */ - public function toRegionTimeZone(?DateTimeInterface $date = null): ?self - { - $timezone = $this->toRegionName($date); - - if ($timezone !== null) { - return new static($timezone); - } - - if (Carbon::isStrictModeEnabled()) { - throw new InvalidTimeZoneException('Unknown timezone for offset '.$this->getOffset($this->resolveCarbon($date)).' seconds.'); - } - - return null; - } - - /** - * Cast to string (get timezone name). - * - * @return string - */ - public function __toString() - { - return $this->getName(); - } - - /** - * Return the type number: - * - * Type 1; A UTC offset, such as -0300 - * Type 2; A timezone abbreviation, such as GMT - * Type 3: A timezone identifier, such as Europe/London - */ - public function getType(): int - { - return preg_match('/"timezone_type";i:(\d)/', serialize($this), $match) ? (int) $match[1] : 3; - } - - /** - * Create a CarbonTimeZone from mixed input. - * - * @param DateTimeZone|string|int|null $object - * - * @return false|static - */ - public static function create($object = null) - { - return static::instance($object); - } - - /** - * Create a CarbonTimeZone from int/float hour offset. - * - * @param float $hourOffset number of hour of the timezone shift (can be decimal). - * - * @return false|static - */ - public static function createFromHourOffset(float $hourOffset) - { - return static::createFromMinuteOffset($hourOffset * Carbon::MINUTES_PER_HOUR); - } - - /** - * Create a CarbonTimeZone from int/float minute offset. - * - * @param float $minuteOffset number of total minutes of the timezone shift. - * - * @return false|static - */ - public static function createFromMinuteOffset(float $minuteOffset) - { - return static::instance(static::getOffsetNameFromMinuteOffset($minuteOffset)); - } - - /** - * Convert a total minutes offset into a standardized timezone offset string. - * - * @param float $minutes number of total minutes of the timezone shift. - * - * @return string - */ - public static function getOffsetNameFromMinuteOffset(float $minutes): string - { - $minutes = round($minutes); - $unsignedMinutes = abs($minutes); - - return ($minutes < 0 ? '-' : '+'). - str_pad((string) floor($unsignedMinutes / 60), 2, '0', STR_PAD_LEFT). - ':'. - str_pad((string) ($unsignedMinutes % 60), 2, '0', STR_PAD_LEFT); - } - - private function resolveCarbon(?DateTimeInterface $date): DateTimeInterface - { - if ($date) { - return $date; - } - - if (isset($this->clock)) { - return $this->clock->now()->setTimezone($this); - } - - return Carbon::now($this); - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Cli/Invoker.php b/vendor/nesbot/carbon/src/Carbon/Cli/Invoker.php deleted file mode 100644 index 3aabe3f..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Cli/Invoker.php +++ /dev/null @@ -1,40 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Cli; - -class Invoker -{ - public const CLI_CLASS_NAME = 'Carbon\\Cli'; - - protected function runWithCli(string $className, array $parameters): bool - { - $cli = new $className(); - - return $cli(...$parameters); - } - - public function __invoke(...$parameters): bool - { - if (class_exists(self::CLI_CLASS_NAME)) { - return $this->runWithCli(self::CLI_CLASS_NAME, $parameters); - } - - $function = (($parameters[1] ?? '') === 'install' ? ($parameters[2] ?? null) : null) ?: 'shell_exec'; - $function('composer require carbon-cli/carbon-cli --no-interaction'); - - echo 'Installation succeeded.'; - - return true; - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Exceptions/BadComparisonUnitException.php b/vendor/nesbot/carbon/src/Carbon/Exceptions/BadComparisonUnitException.php deleted file mode 100644 index db1ea8e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Exceptions/BadComparisonUnitException.php +++ /dev/null @@ -1,50 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Exceptions; - -use Throwable; - -class BadComparisonUnitException extends UnitException -{ - /** - * The unit. - * - * @var string - */ - protected $unit; - - /** - * Constructor. - * - * @param string $unit - * @param int $code - * @param Throwable|null $previous - */ - public function __construct($unit, $code = 0, ?Throwable $previous = null) - { - $this->unit = $unit; - - parent::__construct("Bad comparison unit: '$unit'", $code, $previous); - } - - /** - * Get the unit. - * - * @return string - */ - public function getUnit(): string - { - return $this->unit; - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Exceptions/BadFluentConstructorException.php b/vendor/nesbot/carbon/src/Carbon/Exceptions/BadFluentConstructorException.php deleted file mode 100644 index e8cded0..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Exceptions/BadFluentConstructorException.php +++ /dev/null @@ -1,51 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Exceptions; - -use BadMethodCallException as BaseBadMethodCallException; -use Throwable; - -class BadFluentConstructorException extends BaseBadMethodCallException implements BadMethodCallException -{ - /** - * The method. - * - * @var string - */ - protected $method; - - /** - * Constructor. - * - * @param string $method - * @param int $code - * @param Throwable|null $previous - */ - public function __construct($method, $code = 0, ?Throwable $previous = null) - { - $this->method = $method; - - parent::__construct(\sprintf("Unknown fluent constructor '%s'.", $method), $code, $previous); - } - - /** - * Get the method. - * - * @return string - */ - public function getMethod(): string - { - return $this->method; - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Exceptions/BadFluentSetterException.php b/vendor/nesbot/carbon/src/Carbon/Exceptions/BadFluentSetterException.php deleted file mode 100644 index b3111bf..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Exceptions/BadFluentSetterException.php +++ /dev/null @@ -1,51 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Exceptions; - -use BadMethodCallException as BaseBadMethodCallException; -use Throwable; - -class BadFluentSetterException extends BaseBadMethodCallException implements BadMethodCallException -{ - /** - * The setter. - * - * @var string - */ - protected $setter; - - /** - * Constructor. - * - * @param string $setter - * @param int $code - * @param Throwable|null $previous - */ - public function __construct($setter, $code = 0, ?Throwable $previous = null) - { - $this->setter = $setter; - - parent::__construct(\sprintf("Unknown fluent setter '%s'", $setter), $code, $previous); - } - - /** - * Get the setter. - * - * @return string - */ - public function getSetter(): string - { - return $this->setter; - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Exceptions/BadMethodCallException.php b/vendor/nesbot/carbon/src/Carbon/Exceptions/BadMethodCallException.php deleted file mode 100644 index 3f10af9..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Exceptions/BadMethodCallException.php +++ /dev/null @@ -1,19 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Exceptions; - -interface BadMethodCallException extends Exception -{ - // -} diff --git a/vendor/nesbot/carbon/src/Carbon/Exceptions/EndLessPeriodException.php b/vendor/nesbot/carbon/src/Carbon/Exceptions/EndLessPeriodException.php deleted file mode 100644 index a3d764e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Exceptions/EndLessPeriodException.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Exceptions; - -use RuntimeException as BaseRuntimeException; - -final class EndLessPeriodException extends BaseRuntimeException implements RuntimeException -{ - // -} diff --git a/vendor/nesbot/carbon/src/Carbon/Exceptions/Exception.php b/vendor/nesbot/carbon/src/Carbon/Exceptions/Exception.php deleted file mode 100644 index ee42fd6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Exceptions/Exception.php +++ /dev/null @@ -1,19 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Exceptions; - -interface Exception -{ - // -} diff --git a/vendor/nesbot/carbon/src/Carbon/Exceptions/ImmutableException.php b/vendor/nesbot/carbon/src/Carbon/Exceptions/ImmutableException.php deleted file mode 100644 index e8550a5..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Exceptions/ImmutableException.php +++ /dev/null @@ -1,50 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Exceptions; - -use RuntimeException as BaseRuntimeException; -use Throwable; - -class ImmutableException extends BaseRuntimeException implements RuntimeException -{ - /** - * The value. - * - * @var string - */ - protected $value; - - /** - * Constructor. - * - * @param string $value the immutable type/value - * @param int $code - * @param Throwable|null $previous - */ - public function __construct($value, $code = 0, ?Throwable $previous = null) - { - $this->value = $value; - parent::__construct("$value is immutable.", $code, $previous); - } - - /** - * Get the value. - * - * @return string - */ - public function getValue(): string - { - return $this->value; - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidArgumentException.php b/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidArgumentException.php deleted file mode 100644 index 7fb5a99..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidArgumentException.php +++ /dev/null @@ -1,19 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Exceptions; - -interface InvalidArgumentException extends Exception -{ - // -} diff --git a/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidCastException.php b/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidCastException.php deleted file mode 100644 index c0ebe49..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidCastException.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Exceptions; - -use InvalidArgumentException as BaseInvalidArgumentException; - -class InvalidCastException extends BaseInvalidArgumentException implements InvalidArgumentException -{ - // -} diff --git a/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidDateException.php b/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidDateException.php deleted file mode 100644 index 8396fdc..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidDateException.php +++ /dev/null @@ -1,69 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Exceptions; - -use InvalidArgumentException as BaseInvalidArgumentException; -use Throwable; - -class InvalidDateException extends BaseInvalidArgumentException implements InvalidArgumentException -{ - /** - * The invalid field. - * - * @var string - */ - private $field; - - /** - * The invalid value. - * - * @var mixed - */ - private $value; - - /** - * Constructor. - * - * @param string $field - * @param mixed $value - * @param int $code - * @param Throwable|null $previous - */ - public function __construct($field, $value, $code = 0, ?Throwable $previous = null) - { - $this->field = $field; - $this->value = $value; - parent::__construct($field.' : '.$value.' is not a valid value.', $code, $previous); - } - - /** - * Get the invalid field. - * - * @return string - */ - public function getField() - { - return $this->field; - } - - /** - * Get the invalid value. - * - * @return mixed - */ - public function getValue() - { - return $this->value; - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidFormatException.php b/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidFormatException.php deleted file mode 100644 index ffc5f21..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidFormatException.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Exceptions; - -use InvalidArgumentException as BaseInvalidArgumentException; - -class InvalidFormatException extends BaseInvalidArgumentException implements InvalidArgumentException -{ - // -} diff --git a/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidIntervalException.php b/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidIntervalException.php deleted file mode 100644 index 7390f41..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidIntervalException.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Exceptions; - -use InvalidArgumentException as BaseInvalidArgumentException; - -class InvalidIntervalException extends BaseInvalidArgumentException implements InvalidArgumentException -{ - // -} diff --git a/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidPeriodDateException.php b/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidPeriodDateException.php deleted file mode 100644 index dc2f8ad..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidPeriodDateException.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Exceptions; - -use InvalidArgumentException as BaseInvalidArgumentException; - -class InvalidPeriodDateException extends BaseInvalidArgumentException implements InvalidArgumentException -{ - // -} diff --git a/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidPeriodParameterException.php b/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidPeriodParameterException.php deleted file mode 100644 index f6c33fd..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidPeriodParameterException.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Exceptions; - -use InvalidArgumentException as BaseInvalidArgumentException; - -class InvalidPeriodParameterException extends BaseInvalidArgumentException implements InvalidArgumentException -{ - // -} diff --git a/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidTimeZoneException.php b/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidTimeZoneException.php deleted file mode 100644 index 33052e2..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidTimeZoneException.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Exceptions; - -use InvalidArgumentException as BaseInvalidArgumentException; - -class InvalidTimeZoneException extends BaseInvalidArgumentException implements InvalidArgumentException -{ - // -} diff --git a/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidTypeException.php b/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidTypeException.php deleted file mode 100644 index 1cd485f..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidTypeException.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Exceptions; - -use InvalidArgumentException as BaseInvalidArgumentException; - -class InvalidTypeException extends BaseInvalidArgumentException implements InvalidArgumentException -{ - // -} diff --git a/vendor/nesbot/carbon/src/Carbon/Exceptions/NotACarbonClassException.php b/vendor/nesbot/carbon/src/Carbon/Exceptions/NotACarbonClassException.php deleted file mode 100644 index fcc0c2c..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Exceptions/NotACarbonClassException.php +++ /dev/null @@ -1,56 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Exceptions; - -use Carbon\CarbonInterface; -use InvalidArgumentException as BaseInvalidArgumentException; -use Throwable; - -class NotACarbonClassException extends BaseInvalidArgumentException implements InvalidArgumentException -{ - /** - * The className. - * - * @var string - */ - protected $className; - - /** - * Constructor. - * - * @param string $className - * @param int $code - * @param Throwable|null $previous - */ - public function __construct($className, $code = 0, ?Throwable $previous = null) - { - $this->className = $className; - - parent::__construct(\sprintf( - 'Given class does not implement %s: %s', - CarbonInterface::class, - $className, - ), $code, $previous); - } - - /** - * Get the className. - * - * @return string - */ - public function getClassName(): string - { - return $this->className; - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Exceptions/NotAPeriodException.php b/vendor/nesbot/carbon/src/Carbon/Exceptions/NotAPeriodException.php deleted file mode 100644 index 23e09a2..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Exceptions/NotAPeriodException.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Exceptions; - -use InvalidArgumentException as BaseInvalidArgumentException; - -class NotAPeriodException extends BaseInvalidArgumentException implements InvalidArgumentException -{ - // -} diff --git a/vendor/nesbot/carbon/src/Carbon/Exceptions/NotLocaleAwareException.php b/vendor/nesbot/carbon/src/Carbon/Exceptions/NotLocaleAwareException.php deleted file mode 100644 index 76158eb..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Exceptions/NotLocaleAwareException.php +++ /dev/null @@ -1,34 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Exceptions; - -use InvalidArgumentException as BaseInvalidArgumentException; -use Throwable; - -class NotLocaleAwareException extends BaseInvalidArgumentException implements InvalidArgumentException -{ - /** - * Constructor. - * - * @param mixed $object - * @param int $code - * @param Throwable|null $previous - */ - public function __construct($object, $code = 0, ?Throwable $previous = null) - { - $dump = \is_object($object) ? \get_class($object) : \gettype($object); - - parent::__construct("$dump does neither implements Symfony\Contracts\Translation\LocaleAwareInterface nor getLocale() method.", $code, $previous); - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Exceptions/OutOfRangeException.php b/vendor/nesbot/carbon/src/Carbon/Exceptions/OutOfRangeException.php deleted file mode 100644 index 8fd44fd..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Exceptions/OutOfRangeException.php +++ /dev/null @@ -1,103 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Exceptions; - -use InvalidArgumentException as BaseInvalidArgumentException; -use Throwable; - -// This will extends OutOfRangeException instead of InvalidArgumentException since 3.0.0 -// use OutOfRangeException as BaseOutOfRangeException; - -class OutOfRangeException extends BaseInvalidArgumentException implements InvalidArgumentException -{ - /** - * The unit or name of the value. - * - * @var string - */ - private $unit; - - /** - * The range minimum. - * - * @var mixed - */ - private $min; - - /** - * The range maximum. - * - * @var mixed - */ - private $max; - - /** - * The invalid value. - * - * @var mixed - */ - private $value; - - /** - * Constructor. - * - * @param string $unit - * @param mixed $min - * @param mixed $max - * @param mixed $value - * @param int $code - * @param Throwable|null $previous - */ - public function __construct($unit, $min, $max, $value, $code = 0, ?Throwable $previous = null) - { - $this->unit = $unit; - $this->min = $min; - $this->max = $max; - $this->value = $value; - - parent::__construct("$unit must be between $min and $max, $value given", $code, $previous); - } - - /** - * @return mixed - */ - public function getMax() - { - return $this->max; - } - - /** - * @return mixed - */ - public function getMin() - { - return $this->min; - } - - /** - * @return mixed - */ - public function getUnit() - { - return $this->unit; - } - - /** - * @return mixed - */ - public function getValue() - { - return $this->value; - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Exceptions/ParseErrorException.php b/vendor/nesbot/carbon/src/Carbon/Exceptions/ParseErrorException.php deleted file mode 100644 index 556bfed..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Exceptions/ParseErrorException.php +++ /dev/null @@ -1,90 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Exceptions; - -use InvalidArgumentException as BaseInvalidArgumentException; -use Throwable; - -class ParseErrorException extends BaseInvalidArgumentException implements InvalidArgumentException -{ - /** - * The expected. - * - * @var string - */ - protected $expected; - - /** - * The actual. - * - * @var string - */ - protected $actual; - - /** - * The help message. - * - * @var string - */ - protected $help; - - /** - * Constructor. - * - * @param string $expected - * @param string $actual - * @param int $code - * @param Throwable|null $previous - */ - public function __construct($expected, $actual, $help = '', $code = 0, ?Throwable $previous = null) - { - $this->expected = $expected; - $this->actual = $actual; - $this->help = $help; - - $actual = $actual === '' ? 'data is missing' : "get '$actual'"; - - parent::__construct(trim("Format expected $expected but $actual\n$help"), $code, $previous); - } - - /** - * Get the expected. - * - * @return string - */ - public function getExpected(): string - { - return $this->expected; - } - - /** - * Get the actual. - * - * @return string - */ - public function getActual(): string - { - return $this->actual; - } - - /** - * Get the help message. - * - * @return string - */ - public function getHelp(): string - { - return $this->help; - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Exceptions/RuntimeException.php b/vendor/nesbot/carbon/src/Carbon/Exceptions/RuntimeException.php deleted file mode 100644 index 85bfb14..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Exceptions/RuntimeException.php +++ /dev/null @@ -1,19 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Exceptions; - -interface RuntimeException extends Exception -{ - // -} diff --git a/vendor/nesbot/carbon/src/Carbon/Exceptions/UnitException.php b/vendor/nesbot/carbon/src/Carbon/Exceptions/UnitException.php deleted file mode 100644 index 4f410c1..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Exceptions/UnitException.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Exceptions; - -use InvalidArgumentException as BaseInvalidArgumentException; - -class UnitException extends BaseInvalidArgumentException implements InvalidArgumentException -{ - // -} diff --git a/vendor/nesbot/carbon/src/Carbon/Exceptions/UnitNotConfiguredException.php b/vendor/nesbot/carbon/src/Carbon/Exceptions/UnitNotConfiguredException.php deleted file mode 100644 index b95784d..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Exceptions/UnitNotConfiguredException.php +++ /dev/null @@ -1,50 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Exceptions; - -use Throwable; - -class UnitNotConfiguredException extends UnitException -{ - /** - * The unit. - * - * @var string - */ - protected $unit; - - /** - * Constructor. - * - * @param string $unit - * @param int $code - * @param Throwable|null $previous - */ - public function __construct($unit, $code = 0, ?Throwable $previous = null) - { - $this->unit = $unit; - - parent::__construct("Unit $unit have no configuration to get total from other units.", $code, $previous); - } - - /** - * Get the unit. - * - * @return string - */ - public function getUnit(): string - { - return $this->unit; - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Exceptions/UnknownGetterException.php b/vendor/nesbot/carbon/src/Carbon/Exceptions/UnknownGetterException.php deleted file mode 100644 index 982a308..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Exceptions/UnknownGetterException.php +++ /dev/null @@ -1,51 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Exceptions; - -use InvalidArgumentException as BaseInvalidArgumentException; -use Throwable; - -class UnknownGetterException extends BaseInvalidArgumentException implements InvalidArgumentException -{ - /** - * The getter. - * - * @var string - */ - protected $getter; - - /** - * Constructor. - * - * @param string $getter getter name - * @param int $code - * @param Throwable|null $previous - */ - public function __construct($getter, $code = 0, ?Throwable $previous = null) - { - $this->getter = $getter; - - parent::__construct("Unknown getter '$getter'", $code, $previous); - } - - /** - * Get the getter. - * - * @return string - */ - public function getGetter(): string - { - return $this->getter; - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Exceptions/UnknownMethodException.php b/vendor/nesbot/carbon/src/Carbon/Exceptions/UnknownMethodException.php deleted file mode 100644 index c72c368..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Exceptions/UnknownMethodException.php +++ /dev/null @@ -1,51 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Exceptions; - -use BadMethodCallException as BaseBadMethodCallException; -use Throwable; - -class UnknownMethodException extends BaseBadMethodCallException implements BadMethodCallException -{ - /** - * The method. - * - * @var string - */ - protected $method; - - /** - * Constructor. - * - * @param string $method - * @param int $code - * @param Throwable|null $previous - */ - public function __construct($method, $code = 0, ?Throwable $previous = null) - { - $this->method = $method; - - parent::__construct("Method $method does not exist.", $code, $previous); - } - - /** - * Get the method. - * - * @return string - */ - public function getMethod(): string - { - return $this->method; - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Exceptions/UnknownSetterException.php b/vendor/nesbot/carbon/src/Carbon/Exceptions/UnknownSetterException.php deleted file mode 100644 index e97db4b..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Exceptions/UnknownSetterException.php +++ /dev/null @@ -1,51 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Exceptions; - -use InvalidArgumentException as BaseInvalidArgumentException; -use Throwable; - -class UnknownSetterException extends BaseInvalidArgumentException implements BadMethodCallException -{ - /** - * The setter. - * - * @var string - */ - protected $setter; - - /** - * Constructor. - * - * @param string $setter setter name - * @param int $code - * @param Throwable|null $previous - */ - public function __construct($setter, $code = 0, ?Throwable $previous = null) - { - $this->setter = $setter; - - parent::__construct("Unknown setter '$setter'", $code, $previous); - } - - /** - * Get the setter. - * - * @return string - */ - public function getSetter(): string - { - return $this->setter; - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Exceptions/UnknownUnitException.php b/vendor/nesbot/carbon/src/Carbon/Exceptions/UnknownUnitException.php deleted file mode 100644 index 833c4d7..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Exceptions/UnknownUnitException.php +++ /dev/null @@ -1,50 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Exceptions; - -use Throwable; - -class UnknownUnitException extends UnitException -{ - /** - * The unit. - * - * @var string - */ - protected $unit; - - /** - * Constructor. - * - * @param string $unit - * @param int $code - * @param Throwable|null $previous - */ - public function __construct($unit, $code = 0, ?Throwable $previous = null) - { - $this->unit = $unit; - - parent::__construct("Unknown unit '$unit'.", $code, $previous); - } - - /** - * Get the unit. - * - * @return string - */ - public function getUnit(): string - { - return $this->unit; - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Exceptions/UnreachableException.php b/vendor/nesbot/carbon/src/Carbon/Exceptions/UnreachableException.php deleted file mode 100644 index c637d3b..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Exceptions/UnreachableException.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Exceptions; - -use RuntimeException as BaseRuntimeException; - -class UnreachableException extends BaseRuntimeException implements RuntimeException -{ - // -} diff --git a/vendor/nesbot/carbon/src/Carbon/Exceptions/UnsupportedUnitException.php b/vendor/nesbot/carbon/src/Carbon/Exceptions/UnsupportedUnitException.php deleted file mode 100644 index 52a546c..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Exceptions/UnsupportedUnitException.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Exceptions; - -use Exception; - -/** - * @codeCoverageIgnore - */ -class UnsupportedUnitException extends UnitException -{ - public function __construct(string $unit, int $code = 0, ?Exception $previous = null) - { - parent::__construct("Unsupported unit '$unit'", $code, $previous); - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Factory.php b/vendor/nesbot/carbon/src/Carbon/Factory.php deleted file mode 100644 index 31273ba..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Factory.php +++ /dev/null @@ -1,846 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon; - -use Closure; -use DateTimeImmutable; -use DateTimeInterface; -use DateTimeZone; -use InvalidArgumentException; -use ReflectionMethod; -use RuntimeException; -use Symfony\Contracts\Translation\TranslatorInterface; -use Throwable; - -/** - * A factory to generate Carbon instances with common settings. - * - * - * - * @method bool canBeCreatedFromFormat(?string $date, string $format) Checks if the (date)time string is in a given format and valid to create a - * new instance. - * @method ?Carbon create($year = 0, $month = 1, $day = 1, $hour = 0, $minute = 0, $second = 0, $timezone = null) Create a new Carbon instance from a specific date and time. - * If any of $year, $month or $day are set to null their now() values will - * be used. - * If $hour is null it will be set to its now() value and the default - * values for $minute and $second will be their now() values. - * If $hour is not null then the default values for $minute and $second - * will be 0. - * @method Carbon createFromDate($year = null, $month = null, $day = null, $timezone = null) Create a Carbon instance from just a date. The time portion is set to now. - * @method ?Carbon createFromFormat($format, $time, $timezone = null) Create a Carbon instance from a specific format. - * @method ?Carbon createFromIsoFormat(string $format, string $time, $timezone = null, ?string $locale = 'en', ?TranslatorInterface $translator = null) Create a Carbon instance from a specific ISO format (same replacements as ->isoFormat()). - * @method ?Carbon createFromLocaleFormat(string $format, string $locale, string $time, $timezone = null) Create a Carbon instance from a specific format and a string in a given language. - * @method ?Carbon createFromLocaleIsoFormat(string $format, string $locale, string $time, $timezone = null) Create a Carbon instance from a specific ISO format and a string in a given language. - * @method Carbon createFromTime($hour = 0, $minute = 0, $second = 0, $timezone = null) Create a Carbon instance from just a time. The date portion is set to today. - * @method Carbon createFromTimeString(string $time, DateTimeZone|string|int|null $timezone = null) Create a Carbon instance from a time string. The date portion is set to today. - * @method Carbon createFromTimestamp(string|int|float $timestamp, DateTimeZone|string|int|null $timezone = null) Create a Carbon instance from a timestamp and set the timezone (UTC by default). - * Timestamp input can be given as int, float or a string containing one or more numbers. - * @method Carbon createFromTimestampMs(string|int|float $timestamp, DateTimeZone|string|int|null $timezone = null) Create a Carbon instance from a timestamp in milliseconds. - * Timestamp input can be given as int, float or a string containing one or more numbers. - * @method Carbon createFromTimestampMsUTC($timestamp) Create a Carbon instance from a timestamp in milliseconds. - * Timestamp input can be given as int, float or a string containing one or more numbers. - * @method Carbon createFromTimestampUTC(string|int|float $timestamp) Create a Carbon instance from a timestamp keeping the timezone to UTC. - * Timestamp input can be given as int, float or a string containing one or more numbers. - * @method Carbon createMidnightDate($year = null, $month = null, $day = null, $timezone = null) Create a Carbon instance from just a date. The time portion is set to midnight. - * @method ?Carbon createSafe($year = null, $month = null, $day = null, $hour = null, $minute = null, $second = null, $timezone = null) Create a new safe Carbon instance from a specific date and time. - * If any of $year, $month or $day are set to null their now() values will - * be used. - * If $hour is null it will be set to its now() value and the default - * values for $minute and $second will be their now() values. - * If $hour is not null then the default values for $minute and $second - * will be 0. - * If one of the set values is not valid, an InvalidDateException - * will be thrown. - * @method Carbon createStrict(?int $year = 0, ?int $month = 1, ?int $day = 1, ?int $hour = 0, ?int $minute = 0, ?int $second = 0, $timezone = null) Create a new Carbon instance from a specific date and time using strict validation. - * @method mixed executeWithLocale(string $locale, callable $func) Set the current locale to the given, execute the passed function, reset the locale to previous one, - * then return the result of the closure (or null if the closure was void). - * @method Carbon fromSerialized($value) Create an instance from a serialized string. - * @method array getAvailableLocales() Returns the list of internally available locales and already loaded custom locales. - * (It will ignore custom translator dynamic loading.) - * @method Language[] getAvailableLocalesInfo() Returns list of Language object for each available locale. This object allow you to get the ISO name, native - * name, region and variant of the locale. - * @method array getDays() Get the days of the week. - * @method ?string getFallbackLocale() Get the fallback locale. - * @method array getFormatsToIsoReplacements() List of replacements from date() format to isoFormat(). - * @method array getIsoUnits() Returns list of locale units for ISO formatting. - * @method array|false getLastErrors() {@inheritdoc} - * @method string getLocale() Get the current translator locale. - * @method int getMidDayAt() get midday/noon hour - * @method string getTimeFormatByPrecision(string $unitPrecision) Return a format from H:i to H:i:s.u according to given unit precision. - * @method string|Closure|null getTranslationMessageWith($translator, string $key, ?string $locale = null, ?string $default = null) Returns raw translation message for a given key. - * @method int getWeekEndsAt(?string $locale = null) Get the last day of week. - * @method int getWeekStartsAt(?string $locale = null) Get the first day of week. - * @method bool hasRelativeKeywords(?string $time) Determine if a time string will produce a relative date. - * @method Carbon instance(DateTimeInterface $date) Create a Carbon instance from a DateTime one. - * @method bool isImmutable() Returns true if the current class/instance is immutable. - * @method bool isModifiableUnit($unit) Returns true if a property can be changed via setter. - * @method bool isMutable() Returns true if the current class/instance is mutable. - * @method bool localeHasDiffOneDayWords(string $locale) Returns true if the given locale is internally supported and has words for 1-day diff (just now, yesterday, tomorrow). - * Support is considered enabled if the 3 words are translated in the given locale. - * @method bool localeHasDiffSyntax(string $locale) Returns true if the given locale is internally supported and has diff syntax support (ago, from now, before, after). - * Support is considered enabled if the 4 sentences are translated in the given locale. - * @method bool localeHasDiffTwoDayWords(string $locale) Returns true if the given locale is internally supported and has words for 2-days diff (before yesterday, after tomorrow). - * Support is considered enabled if the 2 words are translated in the given locale. - * @method bool localeHasPeriodSyntax($locale) Returns true if the given locale is internally supported and has period syntax support (X times, every X, from X, to X). - * Support is considered enabled if the 4 sentences are translated in the given locale. - * @method bool localeHasShortUnits(string $locale) Returns true if the given locale is internally supported and has short-units support. - * Support is considered enabled if either year, day or hour has a short variant translated. - * @method ?Carbon make($var, DateTimeZone|string|null $timezone = null) Make a Carbon instance from given variable if possible. - * Always return a new instance. Parse only strings and only these likely to be dates (skip intervals - * and recurrences). Throw an exception for invalid format, but otherwise return null. - * @method void mixin(object|string $mixin) Mix another object into the class. - * @method Carbon now(DateTimeZone|string|int|null $timezone = null) Get a Carbon instance for the current date and time. - * @method Carbon parse(DateTimeInterface|WeekDay|Month|string|int|float|null $time, DateTimeZone|string|int|null $timezone = null) Create a carbon instance from a string. - * This is an alias for the constructor that allows better fluent syntax - * as it allows you to do Carbon::parse('Monday next week')->fn() rather - * than (new Carbon('Monday next week'))->fn(). - * @method Carbon parseFromLocale(string $time, ?string $locale = null, DateTimeZone|string|int|null $timezone = null) Create a carbon instance from a localized string (in French, Japanese, Arabic, etc.). - * @method string pluralUnit(string $unit) Returns standardized plural of a given singular/plural unit name (in English). - * @method ?Carbon rawCreateFromFormat(string $format, string $time, $timezone = null) Create a Carbon instance from a specific format. - * @method Carbon rawParse(DateTimeInterface|WeekDay|Month|string|int|float|null $time, DateTimeZone|string|int|null $timezone = null) Create a carbon instance from a string. - * This is an alias for the constructor that allows better fluent syntax - * as it allows you to do Carbon::parse('Monday next week')->fn() rather - * than (new Carbon('Monday next week'))->fn(). - * @method void setFallbackLocale(string $locale) Set the fallback locale. - * @method void setLocale(string $locale) Set the current translator locale and indicate if the source locale file exists. - * Pass 'auto' as locale to use the closest language to the current LC_TIME locale. - * @method void setMidDayAt($hour) @deprecated To avoid conflict between different third-party libraries, static setters should not be used. - * You should rather consider mid-day is always 12pm, then if you need to test if it's an other - * hour, test it explicitly: - * $date->format('G') == 13 - * or to set explicitly to a given hour: - * $date->setTime(13, 0, 0, 0) - * Set midday/noon hour - * @method string singularUnit(string $unit) Returns standardized singular of a given singular/plural unit name (in English). - * @method void sleep(int|float $seconds) - * @method Carbon today(DateTimeZone|string|int|null $timezone = null) Create a Carbon instance for today. - * @method Carbon tomorrow(DateTimeZone|string|int|null $timezone = null) Create a Carbon instance for tomorrow. - * @method string translateTimeString(string $timeString, ?string $from = null, ?string $to = null, int $mode = CarbonInterface::TRANSLATE_ALL) Translate a time string from a locale to an other. - * @method string translateWith(TranslatorInterface $translator, string $key, array $parameters = [], $number = null) Translate using translation string or callback available. - * @method Carbon yesterday(DateTimeZone|string|int|null $timezone = null) Create a Carbon instance for yesterday. - * - * - */ -class Factory -{ - protected string $className = Carbon::class; - - protected array $settings = []; - - /** - * A test Carbon instance to be returned when now instances are created. - */ - protected Closure|CarbonInterface|null $testNow = null; - - /** - * The timezone to restore to when clearing the time mock. - */ - protected ?string $testDefaultTimezone = null; - - /** - * Is true when test-now is generated by a closure and timezone should be taken on the fly from it. - */ - protected bool $useTimezoneFromTestNow = false; - - /** - * Default translator. - */ - protected TranslatorInterface $translator; - - /** - * Days of weekend. - */ - protected array $weekendDays = [ - CarbonInterface::SATURDAY, - CarbonInterface::SUNDAY, - ]; - - /** - * Format regex patterns. - * - * @var array - */ - protected array $regexFormats = [ - 'd' => '(3[01]|[12][0-9]|0[1-9])', - 'D' => '(Sun|Mon|Tue|Wed|Thu|Fri|Sat)', - 'j' => '([123][0-9]|[1-9])', - 'l' => '([a-zA-Z]{2,})', - 'N' => '([1-7])', - 'S' => '(st|nd|rd|th)', - 'w' => '([0-6])', - 'z' => '(36[0-5]|3[0-5][0-9]|[12][0-9]{2}|[1-9]?[0-9])', - 'W' => '(5[012]|[1-4][0-9]|0?[1-9])', - 'F' => '([a-zA-Z]{2,})', - 'm' => '(1[012]|0[1-9])', - 'M' => '([a-zA-Z]{3})', - 'n' => '(1[012]|[1-9])', - 't' => '(2[89]|3[01])', - 'L' => '(0|1)', - 'o' => '([1-9][0-9]{0,4})', - 'Y' => '([1-9]?[0-9]{4})', - 'y' => '([0-9]{2})', - 'a' => '(am|pm)', - 'A' => '(AM|PM)', - 'B' => '([0-9]{3})', - 'g' => '(1[012]|[1-9])', - 'G' => '(2[0-3]|1?[0-9])', - 'h' => '(1[012]|0[1-9])', - 'H' => '(2[0-3]|[01][0-9])', - 'i' => '([0-5][0-9])', - 's' => '([0-5][0-9])', - 'u' => '([0-9]{1,6})', - 'v' => '([0-9]{1,3})', - 'e' => '([a-zA-Z]{1,5})|([a-zA-Z]*\\/[a-zA-Z]*)', - 'I' => '(0|1)', - 'O' => '([+-](1[0123]|0[0-9])[0134][05])', - 'P' => '([+-](1[0123]|0[0-9]):[0134][05])', - 'p' => '(Z|[+-](1[0123]|0[0-9]):[0134][05])', - 'T' => '([a-zA-Z]{1,5})', - 'Z' => '(-?[1-5]?[0-9]{1,4})', - 'U' => '([0-9]*)', - - // The formats below are combinations of the above formats. - 'c' => '(([1-9]?[0-9]{4})-(1[012]|0[1-9])-(3[01]|[12][0-9]|0[1-9])T(2[0-3]|[01][0-9]):([0-5][0-9]):([0-5][0-9])[+-](1[012]|0[0-9]):([0134][05]))', // Y-m-dTH:i:sP - 'r' => '(([a-zA-Z]{3}), ([123][0-9]|0[1-9]) ([a-zA-Z]{3}) ([1-9]?[0-9]{4}) (2[0-3]|[01][0-9]):([0-5][0-9]):([0-5][0-9]) [+-](1[012]|0[0-9])([0134][05]))', // D, d M Y H:i:s O - ]; - - /** - * Format modifiers (such as available in createFromFormat) regex patterns. - * - * @var array - */ - protected array $regexFormatModifiers = [ - '*' => '.+', - ' ' => '[ ]', - '#' => '[;:\\/.,()-]', - '?' => '([^a]|[a])', - '!' => '', - '|' => '', - '+' => '', - ]; - - public function __construct(array $settings = [], ?string $className = null) - { - if ($className) { - $this->className = $className; - } - - $this->settings = $settings; - } - - public function getClassName(): string - { - return $this->className; - } - - public function setClassName(string $className): self - { - $this->className = $className; - - return $this; - } - - public function className(?string $className = null): self|string - { - return $className === null ? $this->getClassName() : $this->setClassName($className); - } - - public function getSettings(): array - { - return $this->settings; - } - - public function setSettings(array $settings): self - { - $this->settings = $settings; - - return $this; - } - - public function settings(?array $settings = null): self|array - { - return $settings === null ? $this->getSettings() : $this->setSettings($settings); - } - - public function mergeSettings(array $settings): self - { - $this->settings = array_merge($this->settings, $settings); - - return $this; - } - - public function setHumanDiffOptions(int $humanDiffOptions): void - { - $this->mergeSettings([ - 'humanDiffOptions' => $humanDiffOptions, - ]); - } - - public function enableHumanDiffOption($humanDiffOption): void - { - $this->setHumanDiffOptions($this->getHumanDiffOptions() | $humanDiffOption); - } - - public function disableHumanDiffOption(int $humanDiffOption): void - { - $this->setHumanDiffOptions($this->getHumanDiffOptions() & ~$humanDiffOption); - } - - public function getHumanDiffOptions(): int - { - return (int) ($this->getSettings()['humanDiffOptions'] ?? 0); - } - - /** - * Register a custom macro. - * - * Pass null macro to remove it. - * - * @example - * ``` - * $userSettings = [ - * 'locale' => 'pt', - * 'timezone' => 'America/Sao_Paulo', - * ]; - * $factory->macro('userFormat', function () use ($userSettings) { - * return $this->copy()->locale($userSettings['locale'])->tz($userSettings['timezone'])->calendar(); - * }); - * echo $factory->yesterday()->hours(11)->userFormat(); - * ``` - */ - public function macro(string $name, ?callable $macro): void - { - $macros = $this->getSettings()['macros'] ?? []; - $macros[$name] = $macro; - - $this->mergeSettings([ - 'macros' => $macros, - ]); - } - - /** - * Remove all macros and generic macros. - */ - public function resetMacros(): void - { - $this->mergeSettings([ - 'macros' => null, - 'genericMacros' => null, - ]); - } - - /** - * Register a custom macro. - * - * @param callable $macro - * @param int $priority marco with higher priority is tried first - * - * @return void - */ - public function genericMacro(callable $macro, int $priority = 0): void - { - $genericMacros = $this->getSettings()['genericMacros'] ?? []; - - if (!isset($genericMacros[$priority])) { - $genericMacros[$priority] = []; - krsort($genericMacros, SORT_NUMERIC); - } - - $genericMacros[$priority][] = $macro; - - $this->mergeSettings([ - 'genericMacros' => $genericMacros, - ]); - } - - /** - * Checks if macro is registered globally. - */ - public function hasMacro(string $name): bool - { - return isset($this->getSettings()['macros'][$name]); - } - - /** - * Get the raw callable macro registered globally for a given name. - */ - public function getMacro(string $name): ?callable - { - return $this->getSettings()['macros'][$name] ?? null; - } - - /** - * Set the default translator instance to use. - */ - public function setTranslator(TranslatorInterface $translator): void - { - $this->translator = $translator; - } - - /** - * Initialize the default translator instance if necessary. - */ - public function getTranslator(): TranslatorInterface - { - return $this->translator ??= Translator::get(); - } - - /** - * Reset the format used to the default when type juggling a Carbon instance to a string - * - * @return void - */ - public function resetToStringFormat(): void - { - $this->setToStringFormat(null); - } - - /** - * Set the default format used when type juggling a Carbon instance to a string. - */ - public function setToStringFormat(string|Closure|null $format): void - { - $this->mergeSettings([ - 'toStringFormat' => $format, - ]); - } - - /** - * JSON serialize all Carbon instances using the given callback. - */ - public function serializeUsing(string|callable|null $format): void - { - $this->mergeSettings([ - 'toJsonFormat' => $format, - ]); - } - - /** - * Enable the strict mode (or disable with passing false). - */ - public function useStrictMode(bool $strictModeEnabled = true): void - { - $this->mergeSettings([ - 'strictMode' => $strictModeEnabled, - ]); - } - - /** - * Returns true if the strict mode is globally in use, false else. - * (It can be overridden in specific instances.) - */ - public function isStrictModeEnabled(): bool - { - return $this->getSettings()['strictMode'] ?? true; - } - - /** - * Indicates if months should be calculated with overflow. - */ - public function useMonthsOverflow(bool $monthsOverflow = true): void - { - $this->mergeSettings([ - 'monthOverflow' => $monthsOverflow, - ]); - } - - /** - * Reset the month overflow behavior. - */ - public function resetMonthsOverflow(): void - { - $this->useMonthsOverflow(); - } - - /** - * Get the month overflow global behavior (can be overridden in specific instances). - */ - public function shouldOverflowMonths(): bool - { - return $this->getSettings()['monthOverflow'] ?? true; - } - - /** - * Indicates if years should be calculated with overflow. - */ - public function useYearsOverflow(bool $yearsOverflow = true): void - { - $this->mergeSettings([ - 'yearOverflow' => $yearsOverflow, - ]); - } - - /** - * Reset the month overflow behavior. - */ - public function resetYearsOverflow(): void - { - $this->useYearsOverflow(); - } - - /** - * Get the month overflow global behavior (can be overridden in specific instances). - */ - public function shouldOverflowYears(): bool - { - return $this->getSettings()['yearOverflow'] ?? true; - } - - /** - * Get weekend days - * - * @return array - */ - public function getWeekendDays(): array - { - return $this->weekendDays; - } - - /** - * Set weekend days - */ - public function setWeekendDays(array $days): void - { - $this->weekendDays = $days; - } - - /** - * Checks if the (date)time string is in a given format. - * - * @example - * ``` - * Carbon::hasFormat('11:12:45', 'h:i:s'); // true - * Carbon::hasFormat('13:12:45', 'h:i:s'); // false - * ``` - */ - public function hasFormat(string $date, string $format): bool - { - // createFromFormat() is known to handle edge cases silently. - // E.g. "1975-5-1" (Y-n-j) will still be parsed correctly when "Y-m-d" is supplied as the format. - // To ensure we're really testing against our desired format, perform an additional regex validation. - - return $this->matchFormatPattern($date, preg_quote($format, '/'), $this->regexFormats); - } - - /** - * Checks if the (date)time string is in a given format. - * - * @example - * ``` - * Carbon::hasFormatWithModifiers('31/08/2015', 'd#m#Y'); // true - * Carbon::hasFormatWithModifiers('31/08/2015', 'm#d#Y'); // false - * ``` - */ - public function hasFormatWithModifiers(string $date, string $format): bool - { - return $this->matchFormatPattern($date, $format, array_merge($this->regexFormats, $this->regexFormatModifiers)); - } - - /** - * Set a Carbon instance (real or mock) to be returned when a "now" - * instance is created. The provided instance will be returned - * specifically under the following conditions: - * - A call to the static now() method, ex. Carbon::now() - * - When a null (or blank string) is passed to the constructor or parse(), ex. new Carbon(null) - * - When the string "now" is passed to the constructor or parse(), ex. new Carbon('now') - * - When a string containing the desired time is passed to Carbon::parse(). - * - * Note the timezone parameter was left out of the examples above and - * has no affect as the mock value will be returned regardless of its value. - * - * Only the moment is mocked with setTestNow(), the timezone will still be the one passed - * as parameter of date_default_timezone_get() as a fallback (see setTestNowAndTimezone()). - * - * To clear the test instance call this method using the default - * parameter of null. - * - * /!\ Use this method for unit tests only. - * - * @param DateTimeInterface|Closure|static|string|false|null $testNow real or mock Carbon instance - */ - public function setTestNow(mixed $testNow = null): void - { - $this->useTimezoneFromTestNow = false; - $this->testNow = $testNow instanceof self || $testNow instanceof Closure - ? $testNow - : $this->make($testNow); - } - - /** - * Set a Carbon instance (real or mock) to be returned when a "now" - * instance is created. The provided instance will be returned - * specifically under the following conditions: - * - A call to the static now() method, ex. Carbon::now() - * - When a null (or blank string) is passed to the constructor or parse(), ex. new Carbon(null) - * - When the string "now" is passed to the constructor or parse(), ex. new Carbon('now') - * - When a string containing the desired time is passed to Carbon::parse(). - * - * It will also align default timezone (e.g. call date_default_timezone_set()) with - * the second argument or if null, with the timezone of the given date object. - * - * To clear the test instance call this method using the default - * parameter of null. - * - * /!\ Use this method for unit tests only. - * - * @param DateTimeInterface|Closure|static|string|false|null $testNow real or mock Carbon instance - */ - public function setTestNowAndTimezone(mixed $testNow = null, $timezone = null): void - { - if ($testNow) { - $this->testDefaultTimezone ??= date_default_timezone_get(); - } - - $useDateInstanceTimezone = $testNow instanceof DateTimeInterface; - - if ($useDateInstanceTimezone) { - $this->setDefaultTimezone($testNow->getTimezone()->getName(), $testNow); - } - - $this->setTestNow($testNow); - $this->useTimezoneFromTestNow = ($timezone === null && $testNow instanceof Closure); - - if (!$useDateInstanceTimezone) { - $now = $this->getMockedTestNow(\func_num_args() === 1 ? null : $timezone); - $this->setDefaultTimezone($now?->tzName ?? $this->testDefaultTimezone ?? 'UTC', $now); - } - - if (!$testNow) { - $this->testDefaultTimezone = null; - } - } - - /** - * Temporarily sets a static date to be used within the callback. - * Using setTestNow to set the date, executing the callback, then - * clearing the test instance. - * - * /!\ Use this method for unit tests only. - * - * @template T - * - * @param DateTimeInterface|Closure|static|string|false|null $testNow real or mock Carbon instance - * @param Closure(): T $callback - * - * @return T - */ - public function withTestNow(mixed $testNow, callable $callback): mixed - { - $this->setTestNow($testNow); - - try { - $result = $callback(); - } finally { - $this->setTestNow(); - } - - return $result; - } - - /** - * Get the Carbon instance (real or mock) to be returned when a "now" - * instance is created. - * - * @return Closure|CarbonInterface|null the current instance used for testing - */ - public function getTestNow(): Closure|CarbonInterface|null - { - if ($this->testNow === null) { - $factory = FactoryImmutable::getDefaultInstance(); - - if ($factory !== $this) { - return $factory->getTestNow(); - } - } - - return $this->testNow; - } - - public function handleTestNowClosure( - Closure|CarbonInterface|null $testNow, - DateTimeZone|string|int|null $timezone = null, - ): ?CarbonInterface { - if ($testNow instanceof Closure) { - $callback = Callback::fromClosure($testNow); - $realNow = new DateTimeImmutable('now'); - $testNow = $testNow($callback->prepareParameter($this->parse( - $realNow->format('Y-m-d H:i:s.u'), - $timezone ?? $realNow->getTimezone(), - ))); - - if ($testNow !== null && !($testNow instanceof DateTimeInterface)) { - $function = $callback->getReflectionFunction(); - $type = \is_object($testNow) ? $testNow::class : \gettype($testNow); - - throw new RuntimeException( - 'The test closure defined in '.$function->getFileName(). - ' at line '.$function->getStartLine().' returned '.$type. - '; expected '.CarbonInterface::class.'|null', - ); - } - - if (!($testNow instanceof CarbonInterface)) { - $timezone ??= $this->useTimezoneFromTestNow ? $testNow->getTimezone() : null; - $testNow = $this->__call('instance', [$testNow, $timezone]); - } - } - - return $testNow; - } - - /** - * Determine if there is a valid test instance set. A valid test instance - * is anything that is not null. - * - * @return bool true if there is a test instance, otherwise false - */ - public function hasTestNow(): bool - { - return $this->getTestNow() !== null; - } - - public function withTimeZone(DateTimeZone|string|int|null $timezone): static - { - $factory = clone $this; - $factory->settings['timezone'] = $timezone; - - return $factory; - } - - public function __call(string $name, array $arguments): mixed - { - $method = new ReflectionMethod($this->className, $name); - $settings = $this->settings; - - if ($settings && isset($settings['timezone'])) { - $timezoneParameters = array_filter($method->getParameters(), function ($parameter) { - return \in_array($parameter->getName(), ['tz', 'timezone'], true); - }); - $timezoneSetting = $settings['timezone']; - - if (isset($arguments[0]) && \in_array($name, ['instance', 'make', 'create', 'parse'], true)) { - if ($arguments[0] instanceof DateTimeInterface) { - $settings['innerTimezone'] = $settings['timezone']; - } elseif (\is_string($arguments[0]) && date_parse($arguments[0])['is_localtime']) { - unset($settings['timezone'], $settings['innerTimezone']); - } - } - - if (\count($timezoneParameters)) { - $index = key($timezoneParameters); - - if (!isset($arguments[$index])) { - array_splice($arguments, key($timezoneParameters), 0, [$timezoneSetting]); - } - - unset($settings['timezone']); - } - } - - $clock = FactoryImmutable::getCurrentClock(); - FactoryImmutable::setCurrentClock($this); - - try { - $result = $this->className::$name(...$arguments); - } finally { - FactoryImmutable::setCurrentClock($clock); - } - - if (isset($this->translator)) { - $settings['translator'] = $this->translator; - } - - return $result instanceof CarbonInterface && !empty($settings) - ? $result->settings($settings) - : $result; - } - - /** - * Get the mocked date passed in setTestNow() and if it's a Closure, execute it. - */ - protected function getMockedTestNow(DateTimeZone|string|int|null $timezone): ?CarbonInterface - { - $testNow = $this->handleTestNowClosure($this->getTestNow()); - - if ($testNow instanceof CarbonInterface) { - $testNow = $testNow->avoidMutation(); - - if ($timezone !== null) { - return $testNow->setTimezone($timezone); - } - } - - return $testNow; - } - - /** - * Checks if the (date)time string is in a given format with - * given list of pattern replacements. - * - * @example - * ``` - * Carbon::hasFormat('11:12:45', 'h:i:s'); // true - * Carbon::hasFormat('13:12:45', 'h:i:s'); // false - * ``` - * - * @param string $date - * @param string $format - * @param array $replacements - * - * @return bool - */ - private function matchFormatPattern(string $date, string $format, array $replacements): bool - { - // Preg quote, but remove escaped backslashes since we'll deal with escaped characters in the format string. - $regex = str_replace('\\\\', '\\', $format); - // Replace not-escaped letters - $regex = preg_replace_callback( - '/(? $match[1].strtr($match[2], $replacements), - $regex, - ); - // Replace escaped letters by the letter itself - $regex = preg_replace('/(?toRegionName($date); - - throw new InvalidArgumentException( - "Timezone ID '$timezone' is invalid". - ($suggestion && $suggestion !== $timezone ? ", did you mean '$suggestion'?" : '.')."\n". - "It must be one of the IDs from DateTimeZone::listIdentifiers(),\n". - 'For the record, hours/minutes offset are relevant only for a particular moment, '. - 'but not as a default timezone.', - 0, - $previous - ); - } - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/FactoryImmutable.php b/vendor/nesbot/carbon/src/Carbon/FactoryImmutable.php deleted file mode 100644 index e1d6f03..0000000 --- a/vendor/nesbot/carbon/src/Carbon/FactoryImmutable.php +++ /dev/null @@ -1,192 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon; - -use Closure; -use DateTimeInterface; -use DateTimeZone; -use Symfony\Component\Clock\ClockInterface; -use Symfony\Component\Clock\NativeClock; -use Symfony\Contracts\Translation\TranslatorInterface; - -/** - * A factory to generate CarbonImmutable instances with common settings. - * - * - * - * @method bool canBeCreatedFromFormat(?string $date, string $format) Checks if the (date)time string is in a given format and valid to create a - * new instance. - * @method ?CarbonImmutable create($year = 0, $month = 1, $day = 1, $hour = 0, $minute = 0, $second = 0, $timezone = null) Create a new Carbon instance from a specific date and time. - * If any of $year, $month or $day are set to null their now() values will - * be used. - * If $hour is null it will be set to its now() value and the default - * values for $minute and $second will be their now() values. - * If $hour is not null then the default values for $minute and $second - * will be 0. - * @method CarbonImmutable createFromDate($year = null, $month = null, $day = null, $timezone = null) Create a Carbon instance from just a date. The time portion is set to now. - * @method ?CarbonImmutable createFromFormat($format, $time, $timezone = null) Create a Carbon instance from a specific format. - * @method ?CarbonImmutable createFromIsoFormat(string $format, string $time, $timezone = null, ?string $locale = 'en', ?TranslatorInterface $translator = null) Create a Carbon instance from a specific ISO format (same replacements as ->isoFormat()). - * @method ?CarbonImmutable createFromLocaleFormat(string $format, string $locale, string $time, $timezone = null) Create a Carbon instance from a specific format and a string in a given language. - * @method ?CarbonImmutable createFromLocaleIsoFormat(string $format, string $locale, string $time, $timezone = null) Create a Carbon instance from a specific ISO format and a string in a given language. - * @method CarbonImmutable createFromTime($hour = 0, $minute = 0, $second = 0, $timezone = null) Create a Carbon instance from just a time. The date portion is set to today. - * @method CarbonImmutable createFromTimeString(string $time, DateTimeZone|string|int|null $timezone = null) Create a Carbon instance from a time string. The date portion is set to today. - * @method CarbonImmutable createFromTimestamp(string|int|float $timestamp, DateTimeZone|string|int|null $timezone = null) Create a Carbon instance from a timestamp and set the timezone (UTC by default). - * Timestamp input can be given as int, float or a string containing one or more numbers. - * @method CarbonImmutable createFromTimestampMs(string|int|float $timestamp, DateTimeZone|string|int|null $timezone = null) Create a Carbon instance from a timestamp in milliseconds. - * Timestamp input can be given as int, float or a string containing one or more numbers. - * @method CarbonImmutable createFromTimestampMsUTC($timestamp) Create a Carbon instance from a timestamp in milliseconds. - * Timestamp input can be given as int, float or a string containing one or more numbers. - * @method CarbonImmutable createFromTimestampUTC(string|int|float $timestamp) Create a Carbon instance from a timestamp keeping the timezone to UTC. - * Timestamp input can be given as int, float or a string containing one or more numbers. - * @method CarbonImmutable createMidnightDate($year = null, $month = null, $day = null, $timezone = null) Create a Carbon instance from just a date. The time portion is set to midnight. - * @method ?CarbonImmutable createSafe($year = null, $month = null, $day = null, $hour = null, $minute = null, $second = null, $timezone = null) Create a new safe Carbon instance from a specific date and time. - * If any of $year, $month or $day are set to null their now() values will - * be used. - * If $hour is null it will be set to its now() value and the default - * values for $minute and $second will be their now() values. - * If $hour is not null then the default values for $minute and $second - * will be 0. - * If one of the set values is not valid, an InvalidDateException - * will be thrown. - * @method CarbonImmutable createStrict(?int $year = 0, ?int $month = 1, ?int $day = 1, ?int $hour = 0, ?int $minute = 0, ?int $second = 0, $timezone = null) Create a new Carbon instance from a specific date and time using strict validation. - * @method mixed executeWithLocale(string $locale, callable $func) Set the current locale to the given, execute the passed function, reset the locale to previous one, - * then return the result of the closure (or null if the closure was void). - * @method CarbonImmutable fromSerialized($value) Create an instance from a serialized string. - * @method array getAvailableLocales() Returns the list of internally available locales and already loaded custom locales. - * (It will ignore custom translator dynamic loading.) - * @method Language[] getAvailableLocalesInfo() Returns list of Language object for each available locale. This object allow you to get the ISO name, native - * name, region and variant of the locale. - * @method array getDays() Get the days of the week. - * @method ?string getFallbackLocale() Get the fallback locale. - * @method array getFormatsToIsoReplacements() List of replacements from date() format to isoFormat(). - * @method array getIsoUnits() Returns list of locale units for ISO formatting. - * @method array|false getLastErrors() {@inheritdoc} - * @method string getLocale() Get the current translator locale. - * @method int getMidDayAt() get midday/noon hour - * @method string getTimeFormatByPrecision(string $unitPrecision) Return a format from H:i to H:i:s.u according to given unit precision. - * @method string|Closure|null getTranslationMessageWith($translator, string $key, ?string $locale = null, ?string $default = null) Returns raw translation message for a given key. - * @method int getWeekEndsAt(?string $locale = null) Get the last day of week. - * @method int getWeekStartsAt(?string $locale = null) Get the first day of week. - * @method bool hasRelativeKeywords(?string $time) Determine if a time string will produce a relative date. - * @method CarbonImmutable instance(DateTimeInterface $date) Create a Carbon instance from a DateTime one. - * @method bool isImmutable() Returns true if the current class/instance is immutable. - * @method bool isModifiableUnit($unit) Returns true if a property can be changed via setter. - * @method bool isMutable() Returns true if the current class/instance is mutable. - * @method bool localeHasDiffOneDayWords(string $locale) Returns true if the given locale is internally supported and has words for 1-day diff (just now, yesterday, tomorrow). - * Support is considered enabled if the 3 words are translated in the given locale. - * @method bool localeHasDiffSyntax(string $locale) Returns true if the given locale is internally supported and has diff syntax support (ago, from now, before, after). - * Support is considered enabled if the 4 sentences are translated in the given locale. - * @method bool localeHasDiffTwoDayWords(string $locale) Returns true if the given locale is internally supported and has words for 2-days diff (before yesterday, after tomorrow). - * Support is considered enabled if the 2 words are translated in the given locale. - * @method bool localeHasPeriodSyntax($locale) Returns true if the given locale is internally supported and has period syntax support (X times, every X, from X, to X). - * Support is considered enabled if the 4 sentences are translated in the given locale. - * @method bool localeHasShortUnits(string $locale) Returns true if the given locale is internally supported and has short-units support. - * Support is considered enabled if either year, day or hour has a short variant translated. - * @method ?CarbonImmutable make($var, DateTimeZone|string|null $timezone = null) Make a Carbon instance from given variable if possible. - * Always return a new instance. Parse only strings and only these likely to be dates (skip intervals - * and recurrences). Throw an exception for invalid format, but otherwise return null. - * @method void mixin(object|string $mixin) Mix another object into the class. - * @method CarbonImmutable parse(DateTimeInterface|WeekDay|Month|string|int|float|null $time, DateTimeZone|string|int|null $timezone = null) Create a carbon instance from a string. - * This is an alias for the constructor that allows better fluent syntax - * as it allows you to do Carbon::parse('Monday next week')->fn() rather - * than (new Carbon('Monday next week'))->fn(). - * @method CarbonImmutable parseFromLocale(string $time, ?string $locale = null, DateTimeZone|string|int|null $timezone = null) Create a carbon instance from a localized string (in French, Japanese, Arabic, etc.). - * @method string pluralUnit(string $unit) Returns standardized plural of a given singular/plural unit name (in English). - * @method ?CarbonImmutable rawCreateFromFormat(string $format, string $time, $timezone = null) Create a Carbon instance from a specific format. - * @method CarbonImmutable rawParse(DateTimeInterface|WeekDay|Month|string|int|float|null $time, DateTimeZone|string|int|null $timezone = null) Create a carbon instance from a string. - * This is an alias for the constructor that allows better fluent syntax - * as it allows you to do Carbon::parse('Monday next week')->fn() rather - * than (new Carbon('Monday next week'))->fn(). - * @method void setFallbackLocale(string $locale) Set the fallback locale. - * @method void setLocale(string $locale) Set the current translator locale and indicate if the source locale file exists. - * Pass 'auto' as locale to use the closest language to the current LC_TIME locale. - * @method void setMidDayAt($hour) @deprecated To avoid conflict between different third-party libraries, static setters should not be used. - * You should rather consider mid-day is always 12pm, then if you need to test if it's an other - * hour, test it explicitly: - * $date->format('G') == 13 - * or to set explicitly to a given hour: - * $date->setTime(13, 0, 0, 0) - * Set midday/noon hour - * @method string singularUnit(string $unit) Returns standardized singular of a given singular/plural unit name (in English). - * @method CarbonImmutable today(DateTimeZone|string|int|null $timezone = null) Create a Carbon instance for today. - * @method CarbonImmutable tomorrow(DateTimeZone|string|int|null $timezone = null) Create a Carbon instance for tomorrow. - * @method string translateTimeString(string $timeString, ?string $from = null, ?string $to = null, int $mode = CarbonInterface::TRANSLATE_ALL) Translate a time string from a locale to an other. - * @method string translateWith(TranslatorInterface $translator, string $key, array $parameters = [], $number = null) Translate using translation string or callback available. - * @method CarbonImmutable yesterday(DateTimeZone|string|int|null $timezone = null) Create a Carbon instance for yesterday. - * - * - */ -class FactoryImmutable extends Factory implements ClockInterface -{ - protected string $className = CarbonImmutable::class; - - private static ?self $defaultInstance = null; - - private static ?WrapperClock $currentClock = null; - - /** - * @internal Instance used for static calls, such as Carbon::getTranslator(), CarbonImmutable::setTestNow(), etc. - */ - public static function getDefaultInstance(): self - { - return self::$defaultInstance ??= new self(); - } - - /** - * @internal Instance used for static calls possibly called by non-static methods. - */ - public static function getInstance(): Factory - { - return self::$currentClock?->getFactory() ?? self::getDefaultInstance(); - } - - /** - * @internal Set instance before creating new dates. - */ - public static function setCurrentClock(ClockInterface|Factory|DateTimeInterface|null $currentClock): void - { - if ($currentClock && !($currentClock instanceof WrapperClock)) { - $currentClock = new WrapperClock($currentClock); - } - - self::$currentClock = $currentClock; - } - - /** - * @internal Instance used to link new object to their factory creator. - */ - public static function getCurrentClock(): ?WrapperClock - { - return self::$currentClock; - } - - /** - * Get a Carbon instance for the current date and time. - */ - public function now(DateTimeZone|string|int|null $timezone = null): CarbonImmutable - { - return $this->__call('now', [$timezone]); - } - - public function sleep(int|float $seconds): void - { - if ($this->hasTestNow()) { - $this->setTestNow($this->getTestNow()->avoidMutation()->addSeconds($seconds)); - - return; - } - - (new NativeClock('UTC'))->sleep($seconds); - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/aa.php b/vendor/nesbot/carbon/src/Carbon/Lang/aa.php deleted file mode 100644 index f3431e4..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/aa.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/aa_DJ.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/aa_DJ.php b/vendor/nesbot/carbon/src/Carbon/Lang/aa_DJ.php deleted file mode 100644 index c6e23c0..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/aa_DJ.php +++ /dev/null @@ -1,44 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Ge'ez Frontier Foundation locales@geez.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD.MM.YYYY', - ], - 'months' => ['Qunxa Garablu', 'Kudo', 'Ciggilta Kudo', 'Agda Baxisso', 'Caxah Alsa', 'Qasa Dirri', 'Qado Dirri', 'Liiqen', 'Waysu', 'Diteli', 'Ximoli', 'Kaxxa Garablu'], - 'months_short' => ['qun', 'nah', 'cig', 'agd', 'cax', 'qas', 'qad', 'leq', 'way', 'dit', 'xim', 'kax'], - 'weekdays' => ['Acaada', 'Etleeni', 'Talaata', 'Arbaqa', 'Kamiisi', 'Gumqata', 'Sabti'], - 'weekdays_short' => ['aca', 'etl', 'tal', 'arb', 'kam', 'gum', 'sab'], - 'weekdays_min' => ['aca', 'etl', 'tal', 'arb', 'kam', 'gum', 'sab'], - 'first_day_of_week' => 6, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['saaku', 'carra'], - - 'year' => ':count gaqambo', // less reliable - 'y' => ':count gaqambo', // less reliable - 'a_year' => ':count gaqambo', // less reliable - - 'month' => ':count àlsa', - 'm' => ':count àlsa', - 'a_month' => ':count àlsa', - - 'day' => ':count saaku', // less reliable - 'd' => ':count saaku', // less reliable - 'a_day' => ':count saaku', // less reliable - - 'hour' => ':count ayti', // less reliable - 'h' => ':count ayti', // less reliable - 'a_hour' => ':count ayti', // less reliable -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/aa_ER.php b/vendor/nesbot/carbon/src/Carbon/Lang/aa_ER.php deleted file mode 100644 index f8f395b..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/aa_ER.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Ge'ez Frontier Foundation locales@geez.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YYYY', - ], - 'months' => ['Qunxa Garablu', 'Naharsi Kudo', 'Ciggilta Kudo', 'Agda Baxisso', 'Caxah Alsa', 'Qasa Dirri', 'Qado Dirri', 'Leqeeni', 'Waysu', 'Diteli', 'Ximoli', 'Kaxxa Garablu'], - 'months_short' => ['Qun', 'Nah', 'Cig', 'Agd', 'Cax', 'Qas', 'Qad', 'Leq', 'Way', 'Dit', 'Xim', 'Kax'], - 'weekdays' => ['Acaada', 'Etleeni', 'Talaata', 'Arbaqa', 'Kamiisi', 'Gumqata', 'Sabti'], - 'weekdays_short' => ['Aca', 'Etl', 'Tal', 'Arb', 'Kam', 'Gum', 'Sab'], - 'weekdays_min' => ['Aca', 'Etl', 'Tal', 'Arb', 'Kam', 'Gum', 'Sab'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['saaku', 'carra'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/aa_ER@saaho.php b/vendor/nesbot/carbon/src/Carbon/Lang/aa_ER@saaho.php deleted file mode 100644 index 6461225..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/aa_ER@saaho.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Ge'ez Frontier Foundation locales@geez.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YYYY', - ], - 'months' => ['Qunxa Garablu', 'Naharsi Kudo', 'Ciggilta Kudo', 'Agda Baxisso', 'Caxah Alsa', 'Qasa Dirri', 'Qado Dirri', 'Leqeeni', 'Waysu', 'Diteli', 'Ximoli', 'Kaxxa Garablu'], - 'months_short' => ['Qun', 'Nah', 'Cig', 'Agd', 'Cax', 'Qas', 'Qad', 'Leq', 'Way', 'Dit', 'Xim', 'Kax'], - 'weekdays' => ['Naba Sambat', 'Sani', 'Salus', 'Rabuq', 'Camus', 'Jumqata', 'Qunxa Sambat'], - 'weekdays_short' => ['Nab', 'San', 'Sal', 'Rab', 'Cam', 'Jum', 'Qun'], - 'weekdays_min' => ['Nab', 'San', 'Sal', 'Rab', 'Cam', 'Jum', 'Qun'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['saaku', 'carra'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/aa_ET.php b/vendor/nesbot/carbon/src/Carbon/Lang/aa_ET.php deleted file mode 100644 index b6f7d0b..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/aa_ET.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Ge'ez Frontier Foundation locales@geez.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YYYY', - ], - 'months' => ['Qunxa Garablu', 'Kudo', 'Ciggilta Kudo', 'Agda Baxisso', 'Caxah Alsa', 'Qasa Dirri', 'Qado Dirri', 'Liiqen', 'Waysu', 'Diteli', 'Ximoli', 'Kaxxa Garablu'], - 'months_short' => ['Qun', 'Kud', 'Cig', 'Agd', 'Cax', 'Qas', 'Qad', 'Leq', 'Way', 'Dit', 'Xim', 'Kax'], - 'weekdays' => ['Acaada', 'Etleeni', 'Talaata', 'Arbaqa', 'Kamiisi', 'Gumqata', 'Sabti'], - 'weekdays_short' => ['Aca', 'Etl', 'Tal', 'Arb', 'Kam', 'Gum', 'Sab'], - 'weekdays_min' => ['Aca', 'Etl', 'Tal', 'Arb', 'Kam', 'Gum', 'Sab'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['saaku', 'carra'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/af.php b/vendor/nesbot/carbon/src/Carbon/Lang/af.php deleted file mode 100644 index 87592fe..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/af.php +++ /dev/null @@ -1,77 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - François B - * - JD Isaacks - * - Pierre du Plessis - */ -return [ - 'year' => ':count jaar', - 'a_year' => '\'n jaar|:count jaar', - 'y' => ':count j.', - 'month' => ':count maand|:count maande', - 'a_month' => '\'n maand|:count maande', - 'm' => ':count maa.', - 'week' => ':count week|:count weke', - 'a_week' => '\'n week|:count weke', - 'w' => ':count w.', - 'day' => ':count dag|:count dae', - 'a_day' => '\'n dag|:count dae', - 'd' => ':count d.', - 'hour' => ':count uur', - 'a_hour' => '\'n uur|:count uur', - 'h' => ':count u.', - 'minute' => ':count minuut|:count minute', - 'a_minute' => '\'n minuut|:count minute', - 'min' => ':count min.', - 'second' => ':count sekond|:count sekondes', - 'a_second' => '\'n paar sekondes|:count sekondes', - 's' => ':count s.', - 'ago' => ':time gelede', - 'from_now' => 'oor :time', - 'after' => ':time na', - 'before' => ':time voor', - 'diff_now' => 'Nou', - 'diff_today' => 'Vandag', - 'diff_today_regexp' => 'Vandag(?:\\s+om)?', - 'diff_yesterday' => 'Gister', - 'diff_yesterday_regexp' => 'Gister(?:\\s+om)?', - 'diff_tomorrow' => 'Môre', - 'diff_tomorrow_regexp' => 'Môre(?:\\s+om)?', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[Vandag om] LT', - 'nextDay' => '[Môre om] LT', - 'nextWeek' => 'dddd [om] LT', - 'lastDay' => '[Gister om] LT', - 'lastWeek' => '[Laas] dddd [om] LT', - 'sameElse' => 'L', - ], - 'ordinal' => static fn ($number) => $number.(($number === 1 || $number === 8 || $number >= 20) ? 'ste' : 'de'), - 'meridiem' => ['VM', 'NM'], - 'months' => ['Januarie', 'Februarie', 'Maart', 'April', 'Mei', 'Junie', 'Julie', 'Augustus', 'September', 'Oktober', 'November', 'Desember'], - 'months_short' => ['Jan', 'Feb', 'Mrt', 'Apr', 'Mei', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Des'], - 'weekdays' => ['Sondag', 'Maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrydag', 'Saterdag'], - 'weekdays_short' => ['Son', 'Maa', 'Din', 'Woe', 'Don', 'Vry', 'Sat'], - 'weekdays_min' => ['So', 'Ma', 'Di', 'Wo', 'Do', 'Vr', 'Sa'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => [', ', ' en '], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/af_NA.php b/vendor/nesbot/carbon/src/Carbon/Lang/af_NA.php deleted file mode 100644 index f2fcf05..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/af_NA.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/af.php', [ - 'meridiem' => ['v', 'n'], - 'weekdays' => ['Sondag', 'Maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrydag', 'Saterdag'], - 'weekdays_short' => ['So.', 'Ma.', 'Di.', 'Wo.', 'Do.', 'Vr.', 'Sa.'], - 'weekdays_min' => ['So.', 'Ma.', 'Di.', 'Wo.', 'Do.', 'Vr.', 'Sa.'], - 'months' => ['Januarie', 'Februarie', 'Maart', 'April', 'Mei', 'Junie', 'Julie', 'Augustus', 'September', 'Oktober', 'November', 'Desember'], - 'months_short' => ['Jan.', 'Feb.', 'Mrt.', 'Apr.', 'Mei', 'Jun.', 'Jul.', 'Aug.', 'Sep.', 'Okt.', 'Nov.', 'Des.'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'YYYY-MM-DD', - 'LL' => 'DD MMM YYYY', - 'LLL' => 'DD MMMM YYYY HH:mm', - 'LLLL' => 'dddd, DD MMMM YYYY HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/af_ZA.php b/vendor/nesbot/carbon/src/Carbon/Lang/af_ZA.php deleted file mode 100644 index 27896bd..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/af_ZA.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/af.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/agq.php b/vendor/nesbot/carbon/src/Carbon/Lang/agq.php deleted file mode 100644 index 7011464..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/agq.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'meridiem' => ['a.g', 'a.k'], - 'weekdays' => ['tsuʔntsɨ', 'tsuʔukpà', 'tsuʔughɔe', 'tsuʔutɔ̀mlò', 'tsuʔumè', 'tsuʔughɨ̂m', 'tsuʔndzɨkɔʔɔ'], - 'weekdays_short' => ['nts', 'kpa', 'ghɔ', 'tɔm', 'ume', 'ghɨ', 'dzk'], - 'weekdays_min' => ['nts', 'kpa', 'ghɔ', 'tɔm', 'ume', 'ghɨ', 'dzk'], - 'months' => ['ndzɔ̀ŋɔ̀nùm', 'ndzɔ̀ŋɔ̀kƗ̀zùʔ', 'ndzɔ̀ŋɔ̀tƗ̀dʉ̀ghà', 'ndzɔ̀ŋɔ̀tǎafʉ̄ghā', 'ndzɔ̀ŋèsèe', 'ndzɔ̀ŋɔ̀nzùghò', 'ndzɔ̀ŋɔ̀dùmlo', 'ndzɔ̀ŋɔ̀kwîfɔ̀e', 'ndzɔ̀ŋɔ̀tƗ̀fʉ̀ghàdzughù', 'ndzɔ̀ŋɔ̀ghǔuwelɔ̀m', 'ndzɔ̀ŋɔ̀chwaʔàkaa wo', 'ndzɔ̀ŋèfwòo'], - 'months_short' => ['nùm', 'kɨz', 'tɨd', 'taa', 'see', 'nzu', 'dum', 'fɔe', 'dzu', 'lɔm', 'kaa', 'fwo'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'D/M/YYYY', - 'LL' => 'D MMM, YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/agr.php b/vendor/nesbot/carbon/src/Carbon/Lang/agr.php deleted file mode 100644 index 8f036ae..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/agr.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/agr_PE.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/agr_PE.php b/vendor/nesbot/carbon/src/Carbon/Lang/agr_PE.php deleted file mode 100644 index 54a326a..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/agr_PE.php +++ /dev/null @@ -1,44 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - somosazucar.org libc-alpha@sourceware.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YY', - ], - 'months' => ['Petsatin', 'Kupitin', 'Uyaitin', 'Tayutin', 'Kegketin', 'Tegmatin', 'Kuntutin', 'Yagkujutin', 'Daiktatin', 'Ipamtatin', 'Shinutin', 'Sakamtin'], - 'months_short' => ['Pet', 'Kup', 'Uya', 'Tay', 'Keg', 'Teg', 'Kun', 'Yag', 'Dait', 'Ipam', 'Shin', 'Sak'], - 'weekdays' => ['Tuntuamtin', 'Achutin', 'Kugkuktin', 'Saketin', 'Shimpitin', 'Imaptin', 'Bataetin'], - 'weekdays_short' => ['Tun', 'Ach', 'Kug', 'Sak', 'Shim', 'Im', 'Bat'], - 'weekdays_min' => ['Tun', 'Ach', 'Kug', 'Sak', 'Shim', 'Im', 'Bat'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 7, - 'meridiem' => ['VM', 'NM'], - - 'year' => ':count yaya', // less reliable - 'y' => ':count yaya', // less reliable - 'a_year' => ':count yaya', // less reliable - - 'month' => ':count nantu', // less reliable - 'm' => ':count nantu', // less reliable - 'a_month' => ':count nantu', // less reliable - - 'day' => ':count nayaim', // less reliable - 'd' => ':count nayaim', // less reliable - 'a_day' => ':count nayaim', // less reliable - - 'hour' => ':count kuwiš', // less reliable - 'h' => ':count kuwiš', // less reliable - 'a_hour' => ':count kuwiš', // less reliable -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ak.php b/vendor/nesbot/carbon/src/Carbon/Lang/ak.php deleted file mode 100644 index 5a64be3..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ak.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/ak_GH.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ak_GH.php b/vendor/nesbot/carbon/src/Carbon/Lang/ak_GH.php deleted file mode 100644 index 1381946..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ak_GH.php +++ /dev/null @@ -1,40 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Sugar Labs // OLPC sugarlabs.org libc-alpha@sourceware.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'YYYY/MM/DD', - ], - 'months' => ['Sanda-Ɔpɛpɔn', 'Kwakwar-Ɔgyefuo', 'Ebɔw-Ɔbenem', 'Ebɔbira-Oforisuo', 'Esusow Aketseaba-Kɔtɔnimba', 'Obirade-Ayɛwohomumu', 'Ayɛwoho-Kitawonsa', 'Difuu-Ɔsandaa', 'Fankwa-Ɛbɔ', 'Ɔbɛsɛ-Ahinime', 'Ɔberɛfɛw-Obubuo', 'Mumu-Ɔpɛnimba'], - 'months_short' => ['S-Ɔ', 'K-Ɔ', 'E-Ɔ', 'E-O', 'E-K', 'O-A', 'A-K', 'D-Ɔ', 'F-Ɛ', 'Ɔ-A', 'Ɔ-O', 'M-Ɔ'], - 'weekdays' => ['Kwesida', 'Dwowda', 'Benada', 'Wukuda', 'Yawda', 'Fida', 'Memeneda'], - 'weekdays_short' => ['Kwe', 'Dwo', 'Ben', 'Wuk', 'Yaw', 'Fia', 'Mem'], - 'weekdays_min' => ['Kwe', 'Dwo', 'Ben', 'Wuk', 'Yaw', 'Fia', 'Mem'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['AN', 'EW'], - - 'year' => ':count afe', - 'y' => ':count afe', - 'a_year' => ':count afe', - - 'month' => ':count bosume', - 'm' => ':count bosume', - 'a_month' => ':count bosume', - - 'day' => ':count ɛda', - 'd' => ':count ɛda', - 'a_day' => ':count ɛda', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/am.php b/vendor/nesbot/carbon/src/Carbon/Lang/am.php deleted file mode 100644 index 63bf72d..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/am.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/am_ET.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/am_ET.php b/vendor/nesbot/carbon/src/Carbon/Lang/am_ET.php deleted file mode 100644 index 7cc676b..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/am_ET.php +++ /dev/null @@ -1,59 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Ge'ez Frontier Foundation locales@geez.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YYYY', - ], - 'months' => ['ጃንዩወሪ', 'ፌብሩወሪ', 'ማርች', 'ኤፕሪል', 'ሜይ', 'ጁን', 'ጁላይ', 'ኦገስት', 'ሴፕቴምበር', 'ኦክቶበር', 'ኖቬምበር', 'ዲሴምበር'], - 'months_short' => ['ጃንዩ', 'ፌብሩ', 'ማርች', 'ኤፕረ', 'ሜይ ', 'ጁን ', 'ጁላይ', 'ኦገስ', 'ሴፕቴ', 'ኦክተ', 'ኖቬም', 'ዲሴም'], - 'weekdays' => ['እሑድ', 'ሰኞ', 'ማክሰኞ', 'ረቡዕ', 'ሐሙስ', 'ዓርብ', 'ቅዳሜ'], - 'weekdays_short' => ['እሑድ', 'ሰኞ ', 'ማክሰ', 'ረቡዕ', 'ሐሙስ', 'ዓርብ', 'ቅዳሜ'], - 'weekdays_min' => ['እሑድ', 'ሰኞ ', 'ማክሰ', 'ረቡዕ', 'ሐሙስ', 'ዓርብ', 'ቅዳሜ'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['ጡዋት', 'ከሰዓት'], - - 'year' => ':count አመት', - 'y' => ':count አመት', - 'a_year' => ':count አመት', - - 'month' => ':count ወር', - 'm' => ':count ወር', - 'a_month' => ':count ወር', - - 'week' => ':count ሳምንት', - 'w' => ':count ሳምንት', - 'a_week' => ':count ሳምንት', - - 'day' => ':count ቀን', - 'd' => ':count ቀን', - 'a_day' => ':count ቀን', - - 'hour' => ':count ሰዓት', - 'h' => ':count ሰዓት', - 'a_hour' => ':count ሰዓት', - - 'minute' => ':count ደቂቃ', - 'min' => ':count ደቂቃ', - 'a_minute' => ':count ደቂቃ', - - 'second' => ':count ሴኮንድ', - 's' => ':count ሴኮንድ', - 'a_second' => ':count ሴኮንድ', - - 'ago' => 'ከ:time በፊት', - 'from_now' => 'በ:time ውስጥ', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/an.php b/vendor/nesbot/carbon/src/Carbon/Lang/an.php deleted file mode 100644 index 565abf2..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/an.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/an_ES.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/an_ES.php b/vendor/nesbot/carbon/src/Carbon/Lang/an_ES.php deleted file mode 100644 index faf8ae0..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/an_ES.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Softaragones Jordi Mallach Pérez, Juan Pablo Martínez bug-glibc-locales@gnu.org, softaragones@softaragones.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YYYY', - ], - 'months' => ['chinero', 'febrero', 'marzo', 'abril', 'mayo', 'chunyo', 'chuliol', 'agosto', 'setiembre', 'octubre', 'noviembre', 'aviento'], - 'months_short' => ['chi', 'feb', 'mar', 'abr', 'may', 'chn', 'chl', 'ago', 'set', 'oct', 'nov', 'avi'], - 'weekdays' => ['domingo', 'luns', 'martes', 'mierques', 'chueves', 'viernes', 'sabado'], - 'weekdays_short' => ['dom', 'lun', 'mar', 'mie', 'chu', 'vie', 'sab'], - 'weekdays_min' => ['dom', 'lun', 'mar', 'mie', 'chu', 'vie', 'sab'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - - 'year' => ':count año', - 'y' => ':count año', - 'a_year' => ':count año', - - 'month' => ':count mes', - 'm' => ':count mes', - 'a_month' => ':count mes', - - 'week' => ':count semana', - 'w' => ':count semana', - 'a_week' => ':count semana', - - 'day' => ':count día', - 'd' => ':count día', - 'a_day' => ':count día', - - 'hour' => ':count reloch', // less reliable - 'h' => ':count reloch', // less reliable - 'a_hour' => ':count reloch', // less reliable - - 'minute' => ':count minuto', - 'min' => ':count minuto', - 'a_minute' => ':count minuto', - - 'second' => ':count segundo', - 's' => ':count segundo', - 'a_second' => ':count segundo', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/anp.php b/vendor/nesbot/carbon/src/Carbon/Lang/anp.php deleted file mode 100644 index b56c67b..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/anp.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/anp_IN.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/anp_IN.php b/vendor/nesbot/carbon/src/Carbon/Lang/anp_IN.php deleted file mode 100644 index 00baa98..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/anp_IN.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - bhashaghar@googlegroups.com - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'D/M/YY', - ], - 'months' => ['जनवरी', 'फरवरी', 'मार्च', 'अप्रैल', 'मई', 'जून', 'जुलाई', 'अगस्त', 'सितंबर', 'अक्टूबर', 'नवंबर', 'दिसंबर"'], - 'months_short' => ['जनवरी', 'फरवरी', 'मार्च', 'अप्रैल', 'मई', 'जून', 'जुलाई', 'अगस्त', 'सितंबर', 'अक्टूबर', 'नवंबर', 'दिसंबर'], - 'weekdays' => ['रविवार', 'सोमवार', 'मंगलवार', 'बुधवार', 'बृहस्पतिवार', 'शुक्रवार', 'शनिवार'], - 'weekdays_short' => ['रवि', 'सोम', 'मंगल', 'बुध', 'बृहस्पति', 'शुक्र', 'शनि'], - 'weekdays_min' => ['रवि', 'सोम', 'मंगल', 'बुध', 'बृहस्पति', 'शुक्र', 'शनि'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['पूर्वाह्न', 'अपराह्न'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ar.php b/vendor/nesbot/carbon/src/Carbon/Lang/ar.php deleted file mode 100644 index 5f73f63..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ar.php +++ /dev/null @@ -1,93 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Atef Ben Ali (atefBB) - * - Ibrahim AshShohail - * - MLTDev - * - Mohamed Sabil (mohamedsabil83) - * - Yazan Alnugnugh (yazan-alnugnugh) - */ -$months = [ - 'يناير', - 'فبراير', - 'مارس', - 'أبريل', - 'مايو', - 'يونيو', - 'يوليو', - 'أغسطس', - 'سبتمبر', - 'أكتوبر', - 'نوفمبر', - 'ديسمبر', -]; - -return [ - 'year' => implode('|', ['{0}:count سنة', '{1}سنة', '{2}سنتين', ']2,11[:count سنوات', ']10,Inf[:count سنة']), - 'a_year' => implode('|', ['{0}:count سنة', '{1}سنة', '{2}سنتين', ']2,11[:count سنوات', ']10,Inf[:count سنة']), - 'month' => implode('|', ['{0}:count شهر', '{1}شهر', '{2}شهرين', ']2,11[:count أشهر', ']10,Inf[:count شهر']), - 'a_month' => implode('|', ['{0}:count شهر', '{1}شهر', '{2}شهرين', ']2,11[:count أشهر', ']10,Inf[:count شهر']), - 'week' => implode('|', ['{0}:count أسبوع', '{1}أسبوع', '{2}أسبوعين', ']2,11[:count أسابيع', ']10,Inf[:count أسبوع']), - 'a_week' => implode('|', ['{0}:count أسبوع', '{1}أسبوع', '{2}أسبوعين', ']2,11[:count أسابيع', ']10,Inf[:count أسبوع']), - 'day' => implode('|', ['{0}:count يوم', '{1}يوم', '{2}يومين', ']2,11[:count أيام', ']10,Inf[:count يوم']), - 'a_day' => implode('|', ['{0}:count يوم', '{1}يوم', '{2}يومين', ']2,11[:count أيام', ']10,Inf[:count يوم']), - 'hour' => implode('|', ['{0}:count ساعة', '{1}ساعة', '{2}ساعتين', ']2,11[:count ساعات', ']10,Inf[:count ساعة']), - 'a_hour' => implode('|', ['{0}:count ساعة', '{1}ساعة', '{2}ساعتين', ']2,11[:count ساعات', ']10,Inf[:count ساعة']), - 'minute' => implode('|', ['{0}:count دقيقة', '{1}دقيقة', '{2}دقيقتين', ']2,11[:count دقائق', ']10,Inf[:count دقيقة']), - 'a_minute' => implode('|', ['{0}:count دقيقة', '{1}دقيقة', '{2}دقيقتين', ']2,11[:count دقائق', ']10,Inf[:count دقيقة']), - 'second' => implode('|', ['{0}:count ثانية', '{1}ثانية', '{2}ثانيتين', ']2,11[:count ثواني', ']10,Inf[:count ثانية']), - 'a_second' => implode('|', ['{0}:count ثانية', '{1}ثانية', '{2}ثانيتين', ']2,11[:count ثواني', ']10,Inf[:count ثانية']), - 'ago' => 'منذ :time', - 'from_now' => ':time من الآن', - 'after' => 'بعد :time', - 'before' => 'قبل :time', - 'diff_now' => 'الآن', - 'diff_today' => 'اليوم', - 'diff_today_regexp' => 'اليوم(?:\\s+عند)?(?:\\s+الساعة)?', - 'diff_yesterday' => 'أمس', - 'diff_yesterday_regexp' => 'أمس(?:\\s+عند)?(?:\\s+الساعة)?', - 'diff_tomorrow' => 'غداً', - 'diff_tomorrow_regexp' => 'غدًا(?:\\s+عند)?(?:\\s+الساعة)?', - 'diff_before_yesterday' => 'قبل الأمس', - 'diff_after_tomorrow' => 'بعد غد', - 'period_recurrences' => implode('|', ['{0}مرة', '{1}مرة', '{2}:count مرتين', ']2,11[:count مرات', ']10,Inf[:count مرة']), - 'period_interval' => 'كل :interval', - 'period_start_date' => 'من :date', - 'period_end_date' => 'إلى :date', - 'months' => $months, - 'months_short' => $months, - 'weekdays' => ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'], - 'weekdays_short' => ['أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة', 'سبت'], - 'weekdays_min' => ['ح', 'اث', 'ثل', 'أر', 'خم', 'ج', 'س'], - 'list' => ['، ', ' و '], - 'first_day_of_week' => 6, - 'day_of_first_week_of_year' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'D/M/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[اليوم عند الساعة] LT', - 'nextDay' => '[غدًا عند الساعة] LT', - 'nextWeek' => 'dddd [عند الساعة] LT', - 'lastDay' => '[أمس عند الساعة] LT', - 'lastWeek' => 'dddd [عند الساعة] LT', - 'sameElse' => 'L', - ], - 'meridiem' => ['ص', 'م'], - 'weekend' => [5, 6], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ar_AE.php b/vendor/nesbot/carbon/src/Carbon/Lang/ar_AE.php deleted file mode 100644 index 35a22b1..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ar_AE.php +++ /dev/null @@ -1,29 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - IBM Globalization Center of Competency, Yamato Software Laboratory bug-glibc-locales@gnu.org - * - Abdullah-Alhariri - */ -return array_replace_recursive(require __DIR__.'/ar.php', [ - 'formats' => [ - 'L' => 'DD MMM, YYYY', - ], - 'months' => ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'], - 'months_short' => ['ينا', 'فبر', 'مار', 'أبر', 'ماي', 'يون', 'يول', 'أغس', 'سبت', 'أكت', 'نوف', 'ديس'], - 'weekdays' => ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت '], - 'weekdays_short' => ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], - 'weekdays_min' => ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], - 'first_day_of_week' => 6, - 'day_of_first_week_of_year' => 1, - 'alt_numbers' => ['۰۰', '۰۱', '۰۲', '۰۳', '۰٤', '۰٥', '۰٦', '۰۷', '۰۸', '۰۹', '۱۰', '۱۱', '۱۲', '۱۳', '۱٤', '۱٥', '۱٦', '۱۷', '۱۸', '۱۹', '۲۰', '۲۱', '۲۲', '۲۳', '۲٤', '۲٥', '۲٦', '۲۷', '۲۸', '۲۹', '۳۰', '۳۱', '۳۲', '۳۳', '۳٤', '۳٥', '۳٦', '۳۷', '۳۸', '۳۹', '٤۰', '٤۱', '٤۲', '٤۳', '٤٤', '٤٥', '٤٦', '٤۷', '٤۸', '٤۹', '٥۰', '٥۱', '٥۲', '٥۳', '٥٤', '٥٥', '٥٦', '٥۷', '٥۸', '٥۹', '٦۰', '٦۱', '٦۲', '٦۳', '٦٤', '٦٥', '٦٦', '٦۷', '٦۸', '٦۹', '۷۰', '۷۱', '۷۲', '۷۳', '۷٤', '۷٥', '۷٦', '۷۷', '۷۸', '۷۹', '۸۰', '۸۱', '۸۲', '۸۳', '۸٤', '۸٥', '۸٦', '۸۷', '۸۸', '۸۹', '۹۰', '۹۱', '۹۲', '۹۳', '۹٤', '۹٥', '۹٦', '۹۷', '۹۸', '۹۹'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ar_BH.php b/vendor/nesbot/carbon/src/Carbon/Lang/ar_BH.php deleted file mode 100644 index 3518096..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ar_BH.php +++ /dev/null @@ -1,29 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - IBM Globalization Center of Competency, Yamato Software Laboratory bug-glibc-locales@gnu.org - * - Abdullah-Alhariri - */ -return array_replace_recursive(require __DIR__.'/ar.php', [ - 'formats' => [ - 'L' => 'DD MMM, YYYY', - ], - 'months' => ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'], - 'months_short' => ['ينا', 'فبر', 'مار', 'أبر', 'ماي', 'يون', 'يول', 'أغس', 'سبت', 'أكت', 'نوف', 'ديس'], - 'weekdays' => ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'], - 'weekdays_short' => ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], - 'weekdays_min' => ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], - 'first_day_of_week' => 6, - 'day_of_first_week_of_year' => 1, - 'alt_numbers' => ['۰۰', '۰۱', '۰۲', '۰۳', '۰٤', '۰٥', '۰٦', '۰۷', '۰۸', '۰۹', '۱۰', '۱۱', '۱۲', '۱۳', '۱٤', '۱٥', '۱٦', '۱۷', '۱۸', '۱۹', '۲۰', '۲۱', '۲۲', '۲۳', '۲٤', '۲٥', '۲٦', '۲۷', '۲۸', '۲۹', '۳۰', '۳۱', '۳۲', '۳۳', '۳٤', '۳٥', '۳٦', '۳۷', '۳۸', '۳۹', '٤۰', '٤۱', '٤۲', '٤۳', '٤٤', '٤٥', '٤٦', '٤۷', '٤۸', '٤۹', '٥۰', '٥۱', '٥۲', '٥۳', '٥٤', '٥٥', '٥٦', '٥۷', '٥۸', '٥۹', '٦۰', '٦۱', '٦۲', '٦۳', '٦٤', '٦٥', '٦٦', '٦۷', '٦۸', '٦۹', '۷۰', '۷۱', '۷۲', '۷۳', '۷٤', '۷٥', '۷٦', '۷۷', '۷۸', '۷۹', '۸۰', '۸۱', '۸۲', '۸۳', '۸٤', '۸٥', '۸٦', '۸۷', '۸۸', '۸۹', '۹۰', '۹۱', '۹۲', '۹۳', '۹٤', '۹٥', '۹٦', '۹۷', '۹۸', '۹۹'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ar_DJ.php b/vendor/nesbot/carbon/src/Carbon/Lang/ar_DJ.php deleted file mode 100644 index e790b99..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ar_DJ.php +++ /dev/null @@ -1,13 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/ar.php', [ -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ar_DZ.php b/vendor/nesbot/carbon/src/Carbon/Lang/ar_DZ.php deleted file mode 100644 index aea4eee..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ar_DZ.php +++ /dev/null @@ -1,92 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/** - * Authors: - * - Josh Soref - * - Noureddine LOUAHEDJ - * - JD Isaacks - * - Atef Ben Ali (atefBB) - * - Mohamed Sabil (mohamedsabil83) - */ -$months = [ - 'جانفي', - 'فيفري', - 'مارس', - 'أفريل', - 'ماي', - 'جوان', - 'جويلية', - 'أوت', - 'سبتمبر', - 'أكتوبر', - 'نوفمبر', - 'ديسمبر', -]; - -return [ - 'year' => implode('|', ['{0}:count سنة', '{1}سنة', '{2}سنتين', ']2,11[:count سنوات', ']10,Inf[:count سنة']), - 'a_year' => implode('|', ['{0}:count سنة', '{1}سنة', '{2}سنتين', ']2,11[:count سنوات', ']10,Inf[:count سنة']), - 'month' => implode('|', ['{0}:count شهر', '{1}شهر', '{2}شهرين', ']2,11[:count أشهر', ']10,Inf[:count شهر']), - 'a_month' => implode('|', ['{0}:count شهر', '{1}شهر', '{2}شهرين', ']2,11[:count أشهر', ']10,Inf[:count شهر']), - 'week' => implode('|', ['{0}:count أسبوع', '{1}أسبوع', '{2}أسبوعين', ']2,11[:count أسابيع', ']10,Inf[:count أسبوع']), - 'a_week' => implode('|', ['{0}:count أسبوع', '{1}أسبوع', '{2}أسبوعين', ']2,11[:count أسابيع', ']10,Inf[:count أسبوع']), - 'day' => implode('|', ['{0}:count يوم', '{1}يوم', '{2}يومين', ']2,11[:count أيام', ']10,Inf[:count يوم']), - 'a_day' => implode('|', ['{0}:count يوم', '{1}يوم', '{2}يومين', ']2,11[:count أيام', ']10,Inf[:count يوم']), - 'hour' => implode('|', ['{0}:count ساعة', '{1}ساعة', '{2}ساعتين', ']2,11[:count ساعات', ']10,Inf[:count ساعة']), - 'a_hour' => implode('|', ['{0}:count ساعة', '{1}ساعة', '{2}ساعتين', ']2,11[:count ساعات', ']10,Inf[:count ساعة']), - 'minute' => implode('|', ['{0}:count دقيقة', '{1}دقيقة', '{2}دقيقتين', ']2,11[:count دقائق', ']10,Inf[:count دقيقة']), - 'a_minute' => implode('|', ['{0}:count دقيقة', '{1}دقيقة', '{2}دقيقتين', ']2,11[:count دقائق', ']10,Inf[:count دقيقة']), - 'second' => implode('|', ['{0}:count ثانية', '{1}ثانية', '{2}ثانيتين', ']2,11[:count ثواني', ']10,Inf[:count ثانية']), - 'a_second' => implode('|', ['{0}:count ثانية', '{1}ثانية', '{2}ثانيتين', ']2,11[:count ثواني', ']10,Inf[:count ثانية']), - 'ago' => 'منذ :time', - 'from_now' => 'في :time', - 'after' => 'بعد :time', - 'before' => 'قبل :time', - 'diff_now' => 'الآن', - 'diff_today' => 'اليوم', - 'diff_today_regexp' => 'اليوم(?:\\s+على)?(?:\\s+الساعة)?', - 'diff_yesterday' => 'أمس', - 'diff_yesterday_regexp' => 'أمس(?:\\s+على)?(?:\\s+الساعة)?', - 'diff_tomorrow' => 'غداً', - 'diff_tomorrow_regexp' => 'غدا(?:\\s+على)?(?:\\s+الساعة)?', - 'diff_before_yesterday' => 'قبل الأمس', - 'diff_after_tomorrow' => 'بعد غد', - 'period_recurrences' => implode('|', ['{0}مرة', '{1}مرة', '{2}:count مرتين', ']2,11[:count مرات', ']10,Inf[:count مرة']), - 'period_interval' => 'كل :interval', - 'period_start_date' => 'من :date', - 'period_end_date' => 'إلى :date', - 'months' => $months, - 'months_short' => $months, - 'weekdays' => ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'], - 'weekdays_short' => ['أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة', 'سبت'], - 'weekdays_min' => ['أح', 'إث', 'ثلا', 'أر', 'خم', 'جم', 'سب'], - 'list' => ['، ', ' و '], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 4, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[اليوم على الساعة] LT', - 'nextDay' => '[غدا على الساعة] LT', - 'nextWeek' => 'dddd [على الساعة] LT', - 'lastDay' => '[أمس على الساعة] LT', - 'lastWeek' => 'dddd [على الساعة] LT', - 'sameElse' => 'L', - ], - 'meridiem' => ['ص', 'م'], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ar_EG.php b/vendor/nesbot/carbon/src/Carbon/Lang/ar_EG.php deleted file mode 100644 index 3518096..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ar_EG.php +++ /dev/null @@ -1,29 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - IBM Globalization Center of Competency, Yamato Software Laboratory bug-glibc-locales@gnu.org - * - Abdullah-Alhariri - */ -return array_replace_recursive(require __DIR__.'/ar.php', [ - 'formats' => [ - 'L' => 'DD MMM, YYYY', - ], - 'months' => ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'], - 'months_short' => ['ينا', 'فبر', 'مار', 'أبر', 'ماي', 'يون', 'يول', 'أغس', 'سبت', 'أكت', 'نوف', 'ديس'], - 'weekdays' => ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'], - 'weekdays_short' => ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], - 'weekdays_min' => ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], - 'first_day_of_week' => 6, - 'day_of_first_week_of_year' => 1, - 'alt_numbers' => ['۰۰', '۰۱', '۰۲', '۰۳', '۰٤', '۰٥', '۰٦', '۰۷', '۰۸', '۰۹', '۱۰', '۱۱', '۱۲', '۱۳', '۱٤', '۱٥', '۱٦', '۱۷', '۱۸', '۱۹', '۲۰', '۲۱', '۲۲', '۲۳', '۲٤', '۲٥', '۲٦', '۲۷', '۲۸', '۲۹', '۳۰', '۳۱', '۳۲', '۳۳', '۳٤', '۳٥', '۳٦', '۳۷', '۳۸', '۳۹', '٤۰', '٤۱', '٤۲', '٤۳', '٤٤', '٤٥', '٤٦', '٤۷', '٤۸', '٤۹', '٥۰', '٥۱', '٥۲', '٥۳', '٥٤', '٥٥', '٥٦', '٥۷', '٥۸', '٥۹', '٦۰', '٦۱', '٦۲', '٦۳', '٦٤', '٦٥', '٦٦', '٦۷', '٦۸', '٦۹', '۷۰', '۷۱', '۷۲', '۷۳', '۷٤', '۷٥', '۷٦', '۷۷', '۷۸', '۷۹', '۸۰', '۸۱', '۸۲', '۸۳', '۸٤', '۸٥', '۸٦', '۸۷', '۸۸', '۸۹', '۹۰', '۹۱', '۹۲', '۹۳', '۹٤', '۹٥', '۹٦', '۹۷', '۹۸', '۹۹'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ar_EH.php b/vendor/nesbot/carbon/src/Carbon/Lang/ar_EH.php deleted file mode 100644 index e790b99..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ar_EH.php +++ /dev/null @@ -1,13 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/ar.php', [ -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ar_ER.php b/vendor/nesbot/carbon/src/Carbon/Lang/ar_ER.php deleted file mode 100644 index e790b99..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ar_ER.php +++ /dev/null @@ -1,13 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/ar.php', [ -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ar_IL.php b/vendor/nesbot/carbon/src/Carbon/Lang/ar_IL.php deleted file mode 100644 index e790b99..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ar_IL.php +++ /dev/null @@ -1,13 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/ar.php', [ -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ar_IN.php b/vendor/nesbot/carbon/src/Carbon/Lang/ar_IN.php deleted file mode 100644 index 5fecf70..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ar_IN.php +++ /dev/null @@ -1,26 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - IBM Globalization Center of Competency, Yamato Software Laboratory bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/ar.php', [ - 'formats' => [ - 'L' => 'D/M/YY', - ], - 'months' => ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'], - 'months_short' => ['ينا', 'فبر', 'مار', 'أبر', 'ماي', 'يون', 'يول', 'أغس', 'سبت', 'أكت', 'نوف', 'ديس'], - 'weekdays' => ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'], - 'weekdays_short' => ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], - 'weekdays_min' => ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ar_IQ.php b/vendor/nesbot/carbon/src/Carbon/Lang/ar_IQ.php deleted file mode 100644 index 2d42008..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ar_IQ.php +++ /dev/null @@ -1,29 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - IBM Globalization Center of Competency, Yamato Software Laboratory bug-glibc-locales@gnu.org - * - Abdullah-Alhariri - */ -return array_replace_recursive(require __DIR__.'/ar.php', [ - 'formats' => [ - 'L' => 'DD MMM, YYYY', - ], - 'months' => ['كانون الثاني', 'شباط', 'آذار', 'نيسان', 'أيار', 'حزيران', 'تموز', 'آب', 'أيلول', 'تشرين الأول', 'تشرين الثاني', 'كانون الأول'], - 'months_short' => ['كانون الثاني', 'شباط', 'آذار', 'نيسان', 'أيار', 'حزيران', 'تموز', 'آب', 'أيلول', 'تشرين الأول', 'تشرين الثاني', 'كانون الأول'], - 'weekdays' => ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'], - 'weekdays_short' => ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], - 'weekdays_min' => ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], - 'first_day_of_week' => 6, - 'day_of_first_week_of_year' => 1, - 'alt_numbers' => ['۰۰', '۰۱', '۰۲', '۰۳', '۰٤', '۰٥', '۰٦', '۰۷', '۰۸', '۰۹', '۱۰', '۱۱', '۱۲', '۱۳', '۱٤', '۱٥', '۱٦', '۱۷', '۱۸', '۱۹', '۲۰', '۲۱', '۲۲', '۲۳', '۲٤', '۲٥', '۲٦', '۲۷', '۲۸', '۲۹', '۳۰', '۳۱', '۳۲', '۳۳', '۳٤', '۳٥', '۳٦', '۳۷', '۳۸', '۳۹', '٤۰', '٤۱', '٤۲', '٤۳', '٤٤', '٤٥', '٤٦', '٤۷', '٤۸', '٤۹', '٥۰', '٥۱', '٥۲', '٥۳', '٥٤', '٥٥', '٥٦', '٥۷', '٥۸', '٥۹', '٦۰', '٦۱', '٦۲', '٦۳', '٦٤', '٦٥', '٦٦', '٦۷', '٦۸', '٦۹', '۷۰', '۷۱', '۷۲', '۷۳', '۷٤', '۷٥', '۷٦', '۷۷', '۷۸', '۷۹', '۸۰', '۸۱', '۸۲', '۸۳', '۸٤', '۸٥', '۸٦', '۸۷', '۸۸', '۸۹', '۹۰', '۹۱', '۹۲', '۹۳', '۹٤', '۹٥', '۹٦', '۹۷', '۹۸', '۹۹'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ar_JO.php b/vendor/nesbot/carbon/src/Carbon/Lang/ar_JO.php deleted file mode 100644 index 2d42008..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ar_JO.php +++ /dev/null @@ -1,29 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - IBM Globalization Center of Competency, Yamato Software Laboratory bug-glibc-locales@gnu.org - * - Abdullah-Alhariri - */ -return array_replace_recursive(require __DIR__.'/ar.php', [ - 'formats' => [ - 'L' => 'DD MMM, YYYY', - ], - 'months' => ['كانون الثاني', 'شباط', 'آذار', 'نيسان', 'أيار', 'حزيران', 'تموز', 'آب', 'أيلول', 'تشرين الأول', 'تشرين الثاني', 'كانون الأول'], - 'months_short' => ['كانون الثاني', 'شباط', 'آذار', 'نيسان', 'أيار', 'حزيران', 'تموز', 'آب', 'أيلول', 'تشرين الأول', 'تشرين الثاني', 'كانون الأول'], - 'weekdays' => ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'], - 'weekdays_short' => ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], - 'weekdays_min' => ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], - 'first_day_of_week' => 6, - 'day_of_first_week_of_year' => 1, - 'alt_numbers' => ['۰۰', '۰۱', '۰۲', '۰۳', '۰٤', '۰٥', '۰٦', '۰۷', '۰۸', '۰۹', '۱۰', '۱۱', '۱۲', '۱۳', '۱٤', '۱٥', '۱٦', '۱۷', '۱۸', '۱۹', '۲۰', '۲۱', '۲۲', '۲۳', '۲٤', '۲٥', '۲٦', '۲۷', '۲۸', '۲۹', '۳۰', '۳۱', '۳۲', '۳۳', '۳٤', '۳٥', '۳٦', '۳۷', '۳۸', '۳۹', '٤۰', '٤۱', '٤۲', '٤۳', '٤٤', '٤٥', '٤٦', '٤۷', '٤۸', '٤۹', '٥۰', '٥۱', '٥۲', '٥۳', '٥٤', '٥٥', '٥٦', '٥۷', '٥۸', '٥۹', '٦۰', '٦۱', '٦۲', '٦۳', '٦٤', '٦٥', '٦٦', '٦۷', '٦۸', '٦۹', '۷۰', '۷۱', '۷۲', '۷۳', '۷٤', '۷٥', '۷٦', '۷۷', '۷۸', '۷۹', '۸۰', '۸۱', '۸۲', '۸۳', '۸٤', '۸٥', '۸٦', '۸۷', '۸۸', '۸۹', '۹۰', '۹۱', '۹۲', '۹۳', '۹٤', '۹٥', '۹٦', '۹۷', '۹۸', '۹۹'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ar_KM.php b/vendor/nesbot/carbon/src/Carbon/Lang/ar_KM.php deleted file mode 100644 index e790b99..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ar_KM.php +++ /dev/null @@ -1,13 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/ar.php', [ -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ar_KW.php b/vendor/nesbot/carbon/src/Carbon/Lang/ar_KW.php deleted file mode 100644 index b3fb1cf..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ar_KW.php +++ /dev/null @@ -1,95 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/** - * Authors: - * - Josh Soref - * - Nusret Parlak - * - JD Isaacks - * - Atef Ben Ali (atefBB) - * - Mohamed Sabil (mohamedsabil83) - * - Abdullah-Alhariri - */ -$months = [ - 'يناير', - 'فبراير', - 'مارس', - 'أبريل', - 'ماي', - 'يونيو', - 'يوليوز', - 'غشت', - 'شتنبر', - 'أكتوبر', - 'نونبر', - 'دجنبر', -]; - -return [ - 'year' => implode('|', ['{0}:count سنة', '{1}سنة', '{2}سنتين', ']2,11[:count سنوات', ']10,Inf[:count سنة']), - 'a_year' => implode('|', ['{0}:count سنة', '{1}سنة', '{2}سنتين', ']2,11[:count سنوات', ']10,Inf[:count سنة']), - 'month' => implode('|', ['{0}:count شهر', '{1}شهر', '{2}شهرين', ']2,11[:count أشهر', ']10,Inf[:count شهر']), - 'a_month' => implode('|', ['{0}:count شهر', '{1}شهر', '{2}شهرين', ']2,11[:count أشهر', ']10,Inf[:count شهر']), - 'week' => implode('|', ['{0}:count أسبوع', '{1}أسبوع', '{2}أسبوعين', ']2,11[:count أسابيع', ']10,Inf[:count أسبوع']), - 'a_week' => implode('|', ['{0}:count أسبوع', '{1}أسبوع', '{2}أسبوعين', ']2,11[:count أسابيع', ']10,Inf[:count أسبوع']), - 'day' => implode('|', ['{0}:count يوم', '{1}يوم', '{2}يومين', ']2,11[:count أيام', ']10,Inf[:count يوم']), - 'a_day' => implode('|', ['{0}:count يوم', '{1}يوم', '{2}يومين', ']2,11[:count أيام', ']10,Inf[:count يوم']), - 'hour' => implode('|', ['{0}:count ساعة', '{1}ساعة', '{2}ساعتين', ']2,11[:count ساعات', ']10,Inf[:count ساعة']), - 'a_hour' => implode('|', ['{0}:count ساعة', '{1}ساعة', '{2}ساعتين', ']2,11[:count ساعات', ']10,Inf[:count ساعة']), - 'minute' => implode('|', ['{0}:count دقيقة', '{1}دقيقة', '{2}دقيقتين', ']2,11[:count دقائق', ']10,Inf[:count دقيقة']), - 'a_minute' => implode('|', ['{0}:count دقيقة', '{1}دقيقة', '{2}دقيقتين', ']2,11[:count دقائق', ']10,Inf[:count دقيقة']), - 'second' => implode('|', ['{0}:count ثانية', '{1}ثانية', '{2}ثانيتين', ']2,11[:count ثواني', ']10,Inf[:count ثانية']), - 'a_second' => implode('|', ['{0}:count ثانية', '{1}ثانية', '{2}ثانيتين', ']2,11[:count ثواني', ']10,Inf[:count ثانية']), - 'ago' => 'منذ :time', - 'from_now' => 'في :time', - 'after' => 'بعد :time', - 'before' => 'قبل :time', - 'diff_now' => 'الآن', - 'diff_today' => 'اليوم', - 'diff_today_regexp' => 'اليوم(?:\\s+على)?(?:\\s+الساعة)?', - 'diff_yesterday' => 'أمس', - 'diff_yesterday_regexp' => 'أمس(?:\\s+على)?(?:\\s+الساعة)?', - 'diff_tomorrow' => 'غداً', - 'diff_tomorrow_regexp' => 'غدا(?:\\s+على)?(?:\\s+الساعة)?', - 'diff_before_yesterday' => 'قبل الأمس', - 'diff_after_tomorrow' => 'بعد غد', - 'period_recurrences' => implode('|', ['{0}مرة', '{1}مرة', '{2}:count مرتين', ']2,11[:count مرات', ']10,Inf[:count مرة']), - 'period_interval' => 'كل :interval', - 'period_start_date' => 'من :date', - 'period_end_date' => 'إلى :date', - 'months' => $months, - 'months_short' => $months, - 'weekdays' => ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'], - 'weekdays_short' => ['أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة', 'سبت'], - 'weekdays_min' => ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], - 'list' => ['، ', ' و '], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[اليوم على الساعة] LT', - 'nextDay' => '[غدا على الساعة] LT', - 'nextWeek' => 'dddd [على الساعة] LT', - 'lastDay' => '[أمس على الساعة] LT', - 'lastWeek' => 'dddd [على الساعة] LT', - 'sameElse' => 'L', - ], - 'meridiem' => ['ص', 'م'], - 'weekend' => [5, 6], - 'alt_numbers' => ['۰۰', '۰۱', '۰۲', '۰۳', '۰٤', '۰٥', '۰٦', '۰۷', '۰۸', '۰۹', '۱۰', '۱۱', '۱۲', '۱۳', '۱٤', '۱٥', '۱٦', '۱۷', '۱۸', '۱۹', '۲۰', '۲۱', '۲۲', '۲۳', '۲٤', '۲٥', '۲٦', '۲۷', '۲۸', '۲۹', '۳۰', '۳۱', '۳۲', '۳۳', '۳٤', '۳٥', '۳٦', '۳۷', '۳۸', '۳۹', '٤۰', '٤۱', '٤۲', '٤۳', '٤٤', '٤٥', '٤٦', '٤۷', '٤۸', '٤۹', '٥۰', '٥۱', '٥۲', '٥۳', '٥٤', '٥٥', '٥٦', '٥۷', '٥۸', '٥۹', '٦۰', '٦۱', '٦۲', '٦۳', '٦٤', '٦٥', '٦٦', '٦۷', '٦۸', '٦۹', '۷۰', '۷۱', '۷۲', '۷۳', '۷٤', '۷٥', '۷٦', '۷۷', '۷۸', '۷۹', '۸۰', '۸۱', '۸۲', '۸۳', '۸٤', '۸٥', '۸٦', '۸۷', '۸۸', '۸۹', '۹۰', '۹۱', '۹۲', '۹۳', '۹٤', '۹٥', '۹٦', '۹۷', '۹۸', '۹۹'], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ar_LB.php b/vendor/nesbot/carbon/src/Carbon/Lang/ar_LB.php deleted file mode 100644 index 2792745..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ar_LB.php +++ /dev/null @@ -1,29 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - IBM Globalization Center of Competency, Yamato Software Laboratory bug-glibc-locales@gnu.org - * - Abdullah-Alhariri - */ -return array_replace_recursive(require __DIR__.'/ar.php', [ - 'formats' => [ - 'L' => 'DD MMM, YYYY', - ], - 'months' => ['كانون الثاني', 'شباط', 'آذار', 'نيسان', 'أيار', 'حزيران', 'تموز', 'آب', 'أيلول', 'تشرين الأول', 'تشرين الثاني', 'كانون الأول'], - 'months_short' => ['كانون الثاني', 'شباط', 'آذار', 'نيسان', 'أيار', 'حزيران', 'تموز', 'آب', 'أيلول', 'تشرين الأول', 'تشرين الثاني', 'كانون الأول'], - 'weekdays' => ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'], - 'weekdays_short' => ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], - 'weekdays_min' => ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'alt_numbers' => ['۰۰', '۰۱', '۰۲', '۰۳', '۰٤', '۰٥', '۰٦', '۰۷', '۰۸', '۰۹', '۱۰', '۱۱', '۱۲', '۱۳', '۱٤', '۱٥', '۱٦', '۱۷', '۱۸', '۱۹', '۲۰', '۲۱', '۲۲', '۲۳', '۲٤', '۲٥', '۲٦', '۲۷', '۲۸', '۲۹', '۳۰', '۳۱', '۳۲', '۳۳', '۳٤', '۳٥', '۳٦', '۳۷', '۳۸', '۳۹', '٤۰', '٤۱', '٤۲', '٤۳', '٤٤', '٤٥', '٤٦', '٤۷', '٤۸', '٤۹', '٥۰', '٥۱', '٥۲', '٥۳', '٥٤', '٥٥', '٥٦', '٥۷', '٥۸', '٥۹', '٦۰', '٦۱', '٦۲', '٦۳', '٦٤', '٦٥', '٦٦', '٦۷', '٦۸', '٦۹', '۷۰', '۷۱', '۷۲', '۷۳', '۷٤', '۷٥', '۷٦', '۷۷', '۷۸', '۷۹', '۸۰', '۸۱', '۸۲', '۸۳', '۸٤', '۸٥', '۸٦', '۸۷', '۸۸', '۸۹', '۹۰', '۹۱', '۹۲', '۹۳', '۹٤', '۹٥', '۹٦', '۹۷', '۹۸', '۹۹'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ar_LY.php b/vendor/nesbot/carbon/src/Carbon/Lang/ar_LY.php deleted file mode 100644 index 1f0af49..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ar_LY.php +++ /dev/null @@ -1,92 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Atef Ben Ali (atefBB) - * - Ibrahim AshShohail - * - MLTDev - */ - -$months = [ - 'يناير', - 'فبراير', - 'مارس', - 'أبريل', - 'مايو', - 'يونيو', - 'يوليو', - 'أغسطس', - 'سبتمبر', - 'أكتوبر', - 'نوفمبر', - 'ديسمبر', -]; - -return [ - 'year' => implode('|', [':count سنة', 'سنة', 'سنتين', ':count سنوات', ':count سنة']), - 'a_year' => implode('|', [':count سنة', 'سنة', 'سنتين', ':count سنوات', ':count سنة']), - 'month' => implode('|', [':count شهر', 'شهر', 'شهرين', ':count أشهر', ':count شهر']), - 'a_month' => implode('|', [':count شهر', 'شهر', 'شهرين', ':count أشهر', ':count شهر']), - 'week' => implode('|', [':count أسبوع', 'أسبوع', 'أسبوعين', ':count أسابيع', ':count أسبوع']), - 'a_week' => implode('|', [':count أسبوع', 'أسبوع', 'أسبوعين', ':count أسابيع', ':count أسبوع']), - 'day' => implode('|', [':count يوم', 'يوم', 'يومين', ':count أيام', ':count يوم']), - 'a_day' => implode('|', [':count يوم', 'يوم', 'يومين', ':count أيام', ':count يوم']), - 'hour' => implode('|', [':count ساعة', 'ساعة', 'ساعتين', ':count ساعات', ':count ساعة']), - 'a_hour' => implode('|', [':count ساعة', 'ساعة', 'ساعتين', ':count ساعات', ':count ساعة']), - 'minute' => implode('|', [':count دقيقة', 'دقيقة', 'دقيقتين', ':count دقائق', ':count دقيقة']), - 'a_minute' => implode('|', [':count دقيقة', 'دقيقة', 'دقيقتين', ':count دقائق', ':count دقيقة']), - 'second' => implode('|', [':count ثانية', 'ثانية', 'ثانيتين', ':count ثواني', ':count ثانية']), - 'a_second' => implode('|', [':count ثانية', 'ثانية', 'ثانيتين', ':count ثواني', ':count ثانية']), - 'ago' => 'منذ :time', - 'from_now' => ':time من الآن', - 'after' => 'بعد :time', - 'before' => 'قبل :time', - 'diff_now' => 'الآن', - 'diff_today' => 'اليوم', - 'diff_today_regexp' => 'اليوم(?:\\s+عند)?(?:\\s+الساعة)?', - 'diff_yesterday' => 'أمس', - 'diff_yesterday_regexp' => 'أمس(?:\\s+عند)?(?:\\s+الساعة)?', - 'diff_tomorrow' => 'غداً', - 'diff_tomorrow_regexp' => 'غدًا(?:\\s+عند)?(?:\\s+الساعة)?', - 'diff_before_yesterday' => 'قبل الأمس', - 'diff_after_tomorrow' => 'بعد غد', - 'period_recurrences' => implode('|', ['مرة', 'مرة', ':count مرتين', ':count مرات', ':count مرة']), - 'period_interval' => 'كل :interval', - 'period_start_date' => 'من :date', - 'period_end_date' => 'إلى :date', - 'months' => $months, - 'months_short' => $months, - 'weekdays' => ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'], - 'weekdays_short' => ['أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة', 'سبت'], - 'weekdays_min' => ['ح', 'اث', 'ثل', 'أر', 'خم', 'ج', 'س'], - 'list' => ['، ', ' و '], - 'first_day_of_week' => 6, - 'day_of_first_week_of_year' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'D/M/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[اليوم عند الساعة] LT', - 'nextDay' => '[غدًا عند الساعة] LT', - 'nextWeek' => 'dddd [عند الساعة] LT', - 'lastDay' => '[أمس عند الساعة] LT', - 'lastWeek' => 'dddd [عند الساعة] LT', - 'sameElse' => 'L', - ], - 'meridiem' => ['ص', 'م'], - 'weekend' => [5, 6], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ar_MA.php b/vendor/nesbot/carbon/src/Carbon/Lang/ar_MA.php deleted file mode 100644 index 047ae05..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ar_MA.php +++ /dev/null @@ -1,92 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/** - * Authors: - * - Josh Soref - * - JD Isaacks - * - Atef Ben Ali (atefBB) - * - Mohamed Sabil (mohamedsabil83) - */ -$months = [ - 'يناير', - 'فبراير', - 'مارس', - 'أبريل', - 'ماي', - 'يونيو', - 'يوليوز', - 'غشت', - 'شتنبر', - 'أكتوبر', - 'نونبر', - 'دجنبر', -]; - -return [ - 'year' => implode('|', ['{0}:count سنة', '{1}سنة', '{2}سنتين', ']2,11[:count سنوات', ']10,Inf[:count سنة']), - 'a_year' => implode('|', ['{0}:count سنة', '{1}سنة', '{2}سنتين', ']2,11[:count سنوات', ']10,Inf[:count سنة']), - 'month' => implode('|', ['{0}:count شهر', '{1}شهر', '{2}شهرين', ']2,11[:count أشهر', ']10,Inf[:count شهر']), - 'a_month' => implode('|', ['{0}:count شهر', '{1}شهر', '{2}شهرين', ']2,11[:count أشهر', ']10,Inf[:count شهر']), - 'week' => implode('|', ['{0}:count أسبوع', '{1}أسبوع', '{2}أسبوعين', ']2,11[:count أسابيع', ']10,Inf[:count أسبوع']), - 'a_week' => implode('|', ['{0}:count أسبوع', '{1}أسبوع', '{2}أسبوعين', ']2,11[:count أسابيع', ']10,Inf[:count أسبوع']), - 'day' => implode('|', ['{0}:count يوم', '{1}يوم', '{2}يومين', ']2,11[:count أيام', ']10,Inf[:count يوم']), - 'a_day' => implode('|', ['{0}:count يوم', '{1}يوم', '{2}يومين', ']2,11[:count أيام', ']10,Inf[:count يوم']), - 'hour' => implode('|', ['{0}:count ساعة', '{1}ساعة', '{2}ساعتين', ']2,11[:count ساعات', ']10,Inf[:count ساعة']), - 'a_hour' => implode('|', ['{0}:count ساعة', '{1}ساعة', '{2}ساعتين', ']2,11[:count ساعات', ']10,Inf[:count ساعة']), - 'minute' => implode('|', ['{0}:count دقيقة', '{1}دقيقة', '{2}دقيقتين', ']2,11[:count دقائق', ']10,Inf[:count دقيقة']), - 'a_minute' => implode('|', ['{0}:count دقيقة', '{1}دقيقة', '{2}دقيقتين', ']2,11[:count دقائق', ']10,Inf[:count دقيقة']), - 'second' => implode('|', ['{0}:count ثانية', '{1}ثانية', '{2}ثانيتين', ']2,11[:count ثواني', ']10,Inf[:count ثانية']), - 'a_second' => implode('|', ['{0}:count ثانية', '{1}ثانية', '{2}ثانيتين', ']2,11[:count ثواني', ']10,Inf[:count ثانية']), - 'ago' => 'منذ :time', - 'from_now' => 'في :time', - 'after' => 'بعد :time', - 'before' => 'قبل :time', - 'diff_now' => 'الآن', - 'diff_today' => 'اليوم', - 'diff_today_regexp' => 'اليوم(?:\\s+على)?(?:\\s+الساعة)?', - 'diff_yesterday' => 'أمس', - 'diff_yesterday_regexp' => 'أمس(?:\\s+على)?(?:\\s+الساعة)?', - 'diff_tomorrow' => 'غداً', - 'diff_tomorrow_regexp' => 'غدا(?:\\s+على)?(?:\\s+الساعة)?', - 'diff_before_yesterday' => 'قبل الأمس', - 'diff_after_tomorrow' => 'بعد غد', - 'period_recurrences' => implode('|', ['{0}مرة', '{1}مرة', '{2}:count مرتين', ']2,11[:count مرات', ']10,Inf[:count مرة']), - 'period_interval' => 'كل :interval', - 'period_start_date' => 'من :date', - 'period_end_date' => 'إلى :date', - 'months' => $months, - 'months_short' => $months, - 'weekdays' => ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'], - 'weekdays_short' => ['أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة', 'سبت'], - 'weekdays_min' => ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], - 'list' => ['، ', ' و '], - 'first_day_of_week' => 6, - 'day_of_first_week_of_year' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[اليوم على الساعة] LT', - 'nextDay' => '[غدا على الساعة] LT', - 'nextWeek' => 'dddd [على الساعة] LT', - 'lastDay' => '[أمس على الساعة] LT', - 'lastWeek' => 'dddd [على الساعة] LT', - 'sameElse' => 'L', - ], - 'meridiem' => ['ص', 'م'], - 'weekend' => [5, 6], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ar_MR.php b/vendor/nesbot/carbon/src/Carbon/Lang/ar_MR.php deleted file mode 100644 index e790b99..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ar_MR.php +++ /dev/null @@ -1,13 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/ar.php', [ -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ar_OM.php b/vendor/nesbot/carbon/src/Carbon/Lang/ar_OM.php deleted file mode 100644 index 3518096..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ar_OM.php +++ /dev/null @@ -1,29 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - IBM Globalization Center of Competency, Yamato Software Laboratory bug-glibc-locales@gnu.org - * - Abdullah-Alhariri - */ -return array_replace_recursive(require __DIR__.'/ar.php', [ - 'formats' => [ - 'L' => 'DD MMM, YYYY', - ], - 'months' => ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'], - 'months_short' => ['ينا', 'فبر', 'مار', 'أبر', 'ماي', 'يون', 'يول', 'أغس', 'سبت', 'أكت', 'نوف', 'ديس'], - 'weekdays' => ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'], - 'weekdays_short' => ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], - 'weekdays_min' => ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], - 'first_day_of_week' => 6, - 'day_of_first_week_of_year' => 1, - 'alt_numbers' => ['۰۰', '۰۱', '۰۲', '۰۳', '۰٤', '۰٥', '۰٦', '۰۷', '۰۸', '۰۹', '۱۰', '۱۱', '۱۲', '۱۳', '۱٤', '۱٥', '۱٦', '۱۷', '۱۸', '۱۹', '۲۰', '۲۱', '۲۲', '۲۳', '۲٤', '۲٥', '۲٦', '۲۷', '۲۸', '۲۹', '۳۰', '۳۱', '۳۲', '۳۳', '۳٤', '۳٥', '۳٦', '۳۷', '۳۸', '۳۹', '٤۰', '٤۱', '٤۲', '٤۳', '٤٤', '٤٥', '٤٦', '٤۷', '٤۸', '٤۹', '٥۰', '٥۱', '٥۲', '٥۳', '٥٤', '٥٥', '٥٦', '٥۷', '٥۸', '٥۹', '٦۰', '٦۱', '٦۲', '٦۳', '٦٤', '٦٥', '٦٦', '٦۷', '٦۸', '٦۹', '۷۰', '۷۱', '۷۲', '۷۳', '۷٤', '۷٥', '۷٦', '۷۷', '۷۸', '۷۹', '۸۰', '۸۱', '۸۲', '۸۳', '۸٤', '۸٥', '۸٦', '۸۷', '۸۸', '۸۹', '۹۰', '۹۱', '۹۲', '۹۳', '۹٤', '۹٥', '۹٦', '۹۷', '۹۸', '۹۹'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ar_PS.php b/vendor/nesbot/carbon/src/Carbon/Lang/ar_PS.php deleted file mode 100644 index 503c60d..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ar_PS.php +++ /dev/null @@ -1,18 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Abdullah-Alhariri - */ -return array_replace_recursive(require __DIR__.'/ar.php', [ - 'alt_numbers' => ['۰۰', '۰۱', '۰۲', '۰۳', '۰٤', '۰٥', '۰٦', '۰۷', '۰۸', '۰۹', '۱۰', '۱۱', '۱۲', '۱۳', '۱٤', '۱٥', '۱٦', '۱۷', '۱۸', '۱۹', '۲۰', '۲۱', '۲۲', '۲۳', '۲٤', '۲٥', '۲٦', '۲۷', '۲۸', '۲۹', '۳۰', '۳۱', '۳۲', '۳۳', '۳٤', '۳٥', '۳٦', '۳۷', '۳۸', '۳۹', '٤۰', '٤۱', '٤۲', '٤۳', '٤٤', '٤٥', '٤٦', '٤۷', '٤۸', '٤۹', '٥۰', '٥۱', '٥۲', '٥۳', '٥٤', '٥٥', '٥٦', '٥۷', '٥۸', '٥۹', '٦۰', '٦۱', '٦۲', '٦۳', '٦٤', '٦٥', '٦٦', '٦۷', '٦۸', '٦۹', '۷۰', '۷۱', '۷۲', '۷۳', '۷٤', '۷٥', '۷٦', '۷۷', '۷۸', '۷۹', '۸۰', '۸۱', '۸۲', '۸۳', '۸٤', '۸٥', '۸٦', '۸۷', '۸۸', '۸۹', '۹۰', '۹۱', '۹۲', '۹۳', '۹٤', '۹٥', '۹٦', '۹۷', '۹۸', '۹۹'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ar_QA.php b/vendor/nesbot/carbon/src/Carbon/Lang/ar_QA.php deleted file mode 100644 index 3518096..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ar_QA.php +++ /dev/null @@ -1,29 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - IBM Globalization Center of Competency, Yamato Software Laboratory bug-glibc-locales@gnu.org - * - Abdullah-Alhariri - */ -return array_replace_recursive(require __DIR__.'/ar.php', [ - 'formats' => [ - 'L' => 'DD MMM, YYYY', - ], - 'months' => ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'], - 'months_short' => ['ينا', 'فبر', 'مار', 'أبر', 'ماي', 'يون', 'يول', 'أغس', 'سبت', 'أكت', 'نوف', 'ديس'], - 'weekdays' => ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'], - 'weekdays_short' => ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], - 'weekdays_min' => ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], - 'first_day_of_week' => 6, - 'day_of_first_week_of_year' => 1, - 'alt_numbers' => ['۰۰', '۰۱', '۰۲', '۰۳', '۰٤', '۰٥', '۰٦', '۰۷', '۰۸', '۰۹', '۱۰', '۱۱', '۱۲', '۱۳', '۱٤', '۱٥', '۱٦', '۱۷', '۱۸', '۱۹', '۲۰', '۲۱', '۲۲', '۲۳', '۲٤', '۲٥', '۲٦', '۲۷', '۲۸', '۲۹', '۳۰', '۳۱', '۳۲', '۳۳', '۳٤', '۳٥', '۳٦', '۳۷', '۳۸', '۳۹', '٤۰', '٤۱', '٤۲', '٤۳', '٤٤', '٤٥', '٤٦', '٤۷', '٤۸', '٤۹', '٥۰', '٥۱', '٥۲', '٥۳', '٥٤', '٥٥', '٥٦', '٥۷', '٥۸', '٥۹', '٦۰', '٦۱', '٦۲', '٦۳', '٦٤', '٦٥', '٦٦', '٦۷', '٦۸', '٦۹', '۷۰', '۷۱', '۷۲', '۷۳', '۷٤', '۷٥', '۷٦', '۷۷', '۷۸', '۷۹', '۸۰', '۸۱', '۸۲', '۸۳', '۸٤', '۸٥', '۸٦', '۸۷', '۸۸', '۸۹', '۹۰', '۹۱', '۹۲', '۹۳', '۹٤', '۹٥', '۹٦', '۹۷', '۹۸', '۹۹'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ar_SA.php b/vendor/nesbot/carbon/src/Carbon/Lang/ar_SA.php deleted file mode 100644 index 550b0c7..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ar_SA.php +++ /dev/null @@ -1,94 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/** - * Authors: - * - Josh Soref - * - JD Isaacks - * - Atef Ben Ali (atefBB) - * - Mohamed Sabil (mohamedsabil83) - * - Abdullah-Alhariri - */ -$months = [ - 'يناير', - 'فبراير', - 'مارس', - 'أبريل', - 'مايو', - 'يونيو', - 'يوليو', - 'أغسطس', - 'سبتمبر', - 'أكتوبر', - 'نوفمبر', - 'ديسمبر', -]; - -return [ - 'year' => implode('|', ['{0}:count سنة', '{1}سنة', '{2}سنتين', ']2,11[:count سنوات', ']10,Inf[:count سنة']), - 'a_year' => implode('|', ['{0}:count سنة', '{1}سنة', '{2}سنتين', ']2,11[:count سنوات', ']10,Inf[:count سنة']), - 'month' => implode('|', ['{0}:count شهر', '{1}شهر', '{2}شهرين', ']2,11[:count أشهر', ']10,Inf[:count شهر']), - 'a_month' => implode('|', ['{0}:count شهر', '{1}شهر', '{2}شهرين', ']2,11[:count أشهر', ']10,Inf[:count شهر']), - 'week' => implode('|', ['{0}:count أسبوع', '{1}أسبوع', '{2}أسبوعين', ']2,11[:count أسابيع', ']10,Inf[:count أسبوع']), - 'a_week' => implode('|', ['{0}:count أسبوع', '{1}أسبوع', '{2}أسبوعين', ']2,11[:count أسابيع', ']10,Inf[:count أسبوع']), - 'day' => implode('|', ['{0}:count يوم', '{1}يوم', '{2}يومين', ']2,11[:count أيام', ']10,Inf[:count يوم']), - 'a_day' => implode('|', ['{0}:count يوم', '{1}يوم', '{2}يومين', ']2,11[:count أيام', ']10,Inf[:count يوم']), - 'hour' => implode('|', ['{0}:count ساعة', '{1}ساعة', '{2}ساعتين', ']2,11[:count ساعات', ']10,Inf[:count ساعة']), - 'a_hour' => implode('|', ['{0}:count ساعة', '{1}ساعة', '{2}ساعتين', ']2,11[:count ساعات', ']10,Inf[:count ساعة']), - 'minute' => implode('|', ['{0}:count دقيقة', '{1}دقيقة', '{2}دقيقتين', ']2,11[:count دقائق', ']10,Inf[:count دقيقة']), - 'a_minute' => implode('|', ['{0}:count دقيقة', '{1}دقيقة', '{2}دقيقتين', ']2,11[:count دقائق', ']10,Inf[:count دقيقة']), - 'second' => implode('|', ['{0}:count ثانية', '{1}ثانية', '{2}ثانيتين', ']2,11[:count ثواني', ']10,Inf[:count ثانية']), - 'a_second' => implode('|', ['{0}:count ثانية', '{1}ثانية', '{2}ثانيتين', ']2,11[:count ثواني', ']10,Inf[:count ثانية']), - 'ago' => 'منذ :time', - 'from_now' => 'في :time', - 'after' => 'بعد :time', - 'before' => 'قبل :time', - 'diff_now' => 'الآن', - 'diff_today' => 'اليوم', - 'diff_today_regexp' => 'اليوم(?:\\s+على)?(?:\\s+الساعة)?', - 'diff_yesterday' => 'أمس', - 'diff_yesterday_regexp' => 'أمس(?:\\s+على)?(?:\\s+الساعة)?', - 'diff_tomorrow' => 'غداً', - 'diff_tomorrow_regexp' => 'غدا(?:\\s+على)?(?:\\s+الساعة)?', - 'diff_before_yesterday' => 'قبل الأمس', - 'diff_after_tomorrow' => 'بعد غد', - 'period_recurrences' => implode('|', ['{0}مرة', '{1}مرة', '{2}:count مرتين', ']2,11[:count مرات', ']10,Inf[:count مرة']), - 'period_interval' => 'كل :interval', - 'period_start_date' => 'من :date', - 'period_end_date' => 'إلى :date', - 'months' => $months, - 'months_short' => $months, - 'weekdays' => ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'], - 'weekdays_short' => ['أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة', 'سبت'], - 'weekdays_min' => ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], - 'list' => ['، ', ' و '], - 'first_day_of_week' => 6, - 'day_of_first_week_of_year' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[اليوم على الساعة] LT', - 'nextDay' => '[غدا على الساعة] LT', - 'nextWeek' => 'dddd [على الساعة] LT', - 'lastDay' => '[أمس على الساعة] LT', - 'lastWeek' => 'dddd [على الساعة] LT', - 'sameElse' => 'L', - ], - 'meridiem' => ['ص', 'م'], - 'weekend' => [5, 6], - 'alt_numbers' => ['۰۰', '۰۱', '۰۲', '۰۳', '۰٤', '۰٥', '۰٦', '۰۷', '۰۸', '۰۹', '۱۰', '۱۱', '۱۲', '۱۳', '۱٤', '۱٥', '۱٦', '۱۷', '۱۸', '۱۹', '۲۰', '۲۱', '۲۲', '۲۳', '۲٤', '۲٥', '۲٦', '۲۷', '۲۸', '۲۹', '۳۰', '۳۱', '۳۲', '۳۳', '۳٤', '۳٥', '۳٦', '۳۷', '۳۸', '۳۹', '٤۰', '٤۱', '٤۲', '٤۳', '٤٤', '٤٥', '٤٦', '٤۷', '٤۸', '٤۹', '٥۰', '٥۱', '٥۲', '٥۳', '٥٤', '٥٥', '٥٦', '٥۷', '٥۸', '٥۹', '٦۰', '٦۱', '٦۲', '٦۳', '٦٤', '٦٥', '٦٦', '٦۷', '٦۸', '٦۹', '۷۰', '۷۱', '۷۲', '۷۳', '۷٤', '۷٥', '۷٦', '۷۷', '۷۸', '۷۹', '۸۰', '۸۱', '۸۲', '۸۳', '۸٤', '۸٥', '۸٦', '۸۷', '۸۸', '۸۹', '۹۰', '۹۱', '۹۲', '۹۳', '۹٤', '۹٥', '۹٦', '۹۷', '۹۸', '۹۹'], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ar_SD.php b/vendor/nesbot/carbon/src/Carbon/Lang/ar_SD.php deleted file mode 100644 index 3518096..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ar_SD.php +++ /dev/null @@ -1,29 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - IBM Globalization Center of Competency, Yamato Software Laboratory bug-glibc-locales@gnu.org - * - Abdullah-Alhariri - */ -return array_replace_recursive(require __DIR__.'/ar.php', [ - 'formats' => [ - 'L' => 'DD MMM, YYYY', - ], - 'months' => ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'], - 'months_short' => ['ينا', 'فبر', 'مار', 'أبر', 'ماي', 'يون', 'يول', 'أغس', 'سبت', 'أكت', 'نوف', 'ديس'], - 'weekdays' => ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'], - 'weekdays_short' => ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], - 'weekdays_min' => ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], - 'first_day_of_week' => 6, - 'day_of_first_week_of_year' => 1, - 'alt_numbers' => ['۰۰', '۰۱', '۰۲', '۰۳', '۰٤', '۰٥', '۰٦', '۰۷', '۰۸', '۰۹', '۱۰', '۱۱', '۱۲', '۱۳', '۱٤', '۱٥', '۱٦', '۱۷', '۱۸', '۱۹', '۲۰', '۲۱', '۲۲', '۲۳', '۲٤', '۲٥', '۲٦', '۲۷', '۲۸', '۲۹', '۳۰', '۳۱', '۳۲', '۳۳', '۳٤', '۳٥', '۳٦', '۳۷', '۳۸', '۳۹', '٤۰', '٤۱', '٤۲', '٤۳', '٤٤', '٤٥', '٤٦', '٤۷', '٤۸', '٤۹', '٥۰', '٥۱', '٥۲', '٥۳', '٥٤', '٥٥', '٥٦', '٥۷', '٥۸', '٥۹', '٦۰', '٦۱', '٦۲', '٦۳', '٦٤', '٦٥', '٦٦', '٦۷', '٦۸', '٦۹', '۷۰', '۷۱', '۷۲', '۷۳', '۷٤', '۷٥', '۷٦', '۷۷', '۷۸', '۷۹', '۸۰', '۸۱', '۸۲', '۸۳', '۸٤', '۸٥', '۸٦', '۸۷', '۸۸', '۸۹', '۹۰', '۹۱', '۹۲', '۹۳', '۹٤', '۹٥', '۹٦', '۹۷', '۹۸', '۹۹'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ar_SO.php b/vendor/nesbot/carbon/src/Carbon/Lang/ar_SO.php deleted file mode 100644 index e790b99..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ar_SO.php +++ /dev/null @@ -1,13 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/ar.php', [ -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ar_SS.php b/vendor/nesbot/carbon/src/Carbon/Lang/ar_SS.php deleted file mode 100644 index 32f3282..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ar_SS.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - IBM Globalization Center of Competency, Yamato Software Laboratory bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/ar.php', [ - 'formats' => [ - 'L' => 'DD MMM, YYYY', - ], - 'months' => ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'], - 'months_short' => ['ينا', 'فبر', 'مار', 'أبر', 'ماي', 'يون', 'يول', 'أغس', 'سبت', 'أكت', 'نوف', 'ديس'], - 'weekdays' => ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'], - 'weekdays_short' => ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], - 'weekdays_min' => ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ar_SY.php b/vendor/nesbot/carbon/src/Carbon/Lang/ar_SY.php deleted file mode 100644 index 2d42008..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ar_SY.php +++ /dev/null @@ -1,29 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - IBM Globalization Center of Competency, Yamato Software Laboratory bug-glibc-locales@gnu.org - * - Abdullah-Alhariri - */ -return array_replace_recursive(require __DIR__.'/ar.php', [ - 'formats' => [ - 'L' => 'DD MMM, YYYY', - ], - 'months' => ['كانون الثاني', 'شباط', 'آذار', 'نيسان', 'أيار', 'حزيران', 'تموز', 'آب', 'أيلول', 'تشرين الأول', 'تشرين الثاني', 'كانون الأول'], - 'months_short' => ['كانون الثاني', 'شباط', 'آذار', 'نيسان', 'أيار', 'حزيران', 'تموز', 'آب', 'أيلول', 'تشرين الأول', 'تشرين الثاني', 'كانون الأول'], - 'weekdays' => ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'], - 'weekdays_short' => ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], - 'weekdays_min' => ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], - 'first_day_of_week' => 6, - 'day_of_first_week_of_year' => 1, - 'alt_numbers' => ['۰۰', '۰۱', '۰۲', '۰۳', '۰٤', '۰٥', '۰٦', '۰۷', '۰۸', '۰۹', '۱۰', '۱۱', '۱۲', '۱۳', '۱٤', '۱٥', '۱٦', '۱۷', '۱۸', '۱۹', '۲۰', '۲۱', '۲۲', '۲۳', '۲٤', '۲٥', '۲٦', '۲۷', '۲۸', '۲۹', '۳۰', '۳۱', '۳۲', '۳۳', '۳٤', '۳٥', '۳٦', '۳۷', '۳۸', '۳۹', '٤۰', '٤۱', '٤۲', '٤۳', '٤٤', '٤٥', '٤٦', '٤۷', '٤۸', '٤۹', '٥۰', '٥۱', '٥۲', '٥۳', '٥٤', '٥٥', '٥٦', '٥۷', '٥۸', '٥۹', '٦۰', '٦۱', '٦۲', '٦۳', '٦٤', '٦٥', '٦٦', '٦۷', '٦۸', '٦۹', '۷۰', '۷۱', '۷۲', '۷۳', '۷٤', '۷٥', '۷٦', '۷۷', '۷۸', '۷۹', '۸۰', '۸۱', '۸۲', '۸۳', '۸٤', '۸٥', '۸٦', '۸۷', '۸۸', '۸۹', '۹۰', '۹۱', '۹۲', '۹۳', '۹٤', '۹٥', '۹٦', '۹۷', '۹۸', '۹۹'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ar_Shakl.php b/vendor/nesbot/carbon/src/Carbon/Lang/ar_Shakl.php deleted file mode 100644 index c2d4b43..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ar_Shakl.php +++ /dev/null @@ -1,95 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Abdellah Chadidi - * - Atef Ben Ali (atefBB) - * - Mohamed Sabil (mohamedsabil83) - */ -// Same for long and short -$months = [ - // @TODO add shakl to months - 'يناير', - 'فبراير', - 'مارس', - 'أبريل', - 'مايو', - 'يونيو', - 'يوليو', - 'أغسطس', - 'سبتمبر', - 'أكتوبر', - 'نوفمبر', - 'ديسمبر', -]; - -return [ - 'year' => implode('|', ['{0}:count سَنَة', '{1}سَنَة', '{2}سَنَتَيْن', ']2,11[:count سَنَوَات', ']10,Inf[:count سَنَة']), - 'a_year' => implode('|', ['{0}:count سَنَة', '{1}سَنَة', '{2}سَنَتَيْن', ']2,11[:count سَنَوَات', ']10,Inf[:count سَنَة']), - 'month' => implode('|', ['{0}:count شَهْرَ', '{1}شَهْرَ', '{2}شَهْرَيْن', ']2,11[:count أَشْهُر', ']10,Inf[:count شَهْرَ']), - 'a_month' => implode('|', ['{0}:count شَهْرَ', '{1}شَهْرَ', '{2}شَهْرَيْن', ']2,11[:count أَشْهُر', ']10,Inf[:count شَهْرَ']), - 'week' => implode('|', ['{0}:count أُسْبُوع', '{1}أُسْبُوع', '{2}أُسْبُوعَيْن', ']2,11[:count أَسَابِيع', ']10,Inf[:count أُسْبُوع']), - 'a_week' => implode('|', ['{0}:count أُسْبُوع', '{1}أُسْبُوع', '{2}أُسْبُوعَيْن', ']2,11[:count أَسَابِيع', ']10,Inf[:count أُسْبُوع']), - 'day' => implode('|', ['{0}:count يَوْم', '{1}يَوْم', '{2}يَوْمَيْن', ']2,11[:count أَيَّام', ']10,Inf[:count يَوْم']), - 'a_day' => implode('|', ['{0}:count يَوْم', '{1}يَوْم', '{2}يَوْمَيْن', ']2,11[:count أَيَّام', ']10,Inf[:count يَوْم']), - 'hour' => implode('|', ['{0}:count سَاعَة', '{1}سَاعَة', '{2}سَاعَتَيْن', ']2,11[:count سَاعَات', ']10,Inf[:count سَاعَة']), - 'a_hour' => implode('|', ['{0}:count سَاعَة', '{1}سَاعَة', '{2}سَاعَتَيْن', ']2,11[:count سَاعَات', ']10,Inf[:count سَاعَة']), - 'minute' => implode('|', ['{0}:count دَقِيقَة', '{1}دَقِيقَة', '{2}دَقِيقَتَيْن', ']2,11[:count دَقَائِق', ']10,Inf[:count دَقِيقَة']), - 'a_minute' => implode('|', ['{0}:count دَقِيقَة', '{1}دَقِيقَة', '{2}دَقِيقَتَيْن', ']2,11[:count دَقَائِق', ']10,Inf[:count دَقِيقَة']), - 'second' => implode('|', ['{0}:count ثَانِيَة', '{1}ثَانِيَة', '{2}ثَانِيَتَيْن', ']2,11[:count ثَوَان', ']10,Inf[:count ثَانِيَة']), - 'a_second' => implode('|', ['{0}:count ثَانِيَة', '{1}ثَانِيَة', '{2}ثَانِيَتَيْن', ']2,11[:count ثَوَان', ']10,Inf[:count ثَانِيَة']), - 'ago' => 'مُنْذُ :time', - 'from_now' => 'مِنَ الْآن :time', - 'after' => 'بَعْدَ :time', - 'before' => 'قَبْلَ :time', - - // @TODO add shakl to translations below - 'diff_now' => 'الآن', - 'diff_today' => 'اليوم', - 'diff_today_regexp' => 'اليوم(?:\\s+عند)?(?:\\s+الساعة)?', - 'diff_yesterday' => 'أمس', - 'diff_yesterday_regexp' => 'أمس(?:\\s+عند)?(?:\\s+الساعة)?', - 'diff_tomorrow' => 'غداً', - 'diff_tomorrow_regexp' => 'غدًا(?:\\s+عند)?(?:\\s+الساعة)?', - 'diff_before_yesterday' => 'قبل الأمس', - 'diff_after_tomorrow' => 'بعد غد', - 'period_recurrences' => implode('|', ['{0}مرة', '{1}مرة', '{2}:count مرتين', ']2,11[:count مرات', ']10,Inf[:count مرة']), - 'period_interval' => 'كل :interval', - 'period_start_date' => 'من :date', - 'period_end_date' => 'إلى :date', - 'months' => $months, - 'months_short' => $months, - 'weekdays' => ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'], - 'weekdays_short' => ['أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة', 'سبت'], - 'weekdays_min' => ['ح', 'اث', 'ثل', 'أر', 'خم', 'ج', 'س'], - 'list' => ['، ', ' و '], - 'first_day_of_week' => 6, - 'day_of_first_week_of_year' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'D/M/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[اليوم عند الساعة] LT', - 'nextDay' => '[غدًا عند الساعة] LT', - 'nextWeek' => 'dddd [عند الساعة] LT', - 'lastDay' => '[أمس عند الساعة] LT', - 'lastWeek' => 'dddd [عند الساعة] LT', - 'sameElse' => 'L', - ], - 'meridiem' => ['ص', 'م'], - 'weekend' => [5, 6], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ar_TD.php b/vendor/nesbot/carbon/src/Carbon/Lang/ar_TD.php deleted file mode 100644 index e790b99..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ar_TD.php +++ /dev/null @@ -1,13 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/ar.php', [ -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ar_TN.php b/vendor/nesbot/carbon/src/Carbon/Lang/ar_TN.php deleted file mode 100644 index f096678..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ar_TN.php +++ /dev/null @@ -1,91 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/** - * Authors: - * - JD Isaacks - * - Atef Ben Ali (atefBB) - * - Mohamed Sabil (mohamedsabil83) - */ -$months = [ - 'جانفي', - 'فيفري', - 'مارس', - 'أفريل', - 'ماي', - 'جوان', - 'جويلية', - 'أوت', - 'سبتمبر', - 'أكتوبر', - 'نوفمبر', - 'ديسمبر', -]; - -return [ - 'year' => implode('|', ['{0}:count سنة', '{1}سنة', '{2}سنتين', ']2,11[:count سنوات', ']10,Inf[:count سنة']), - 'a_year' => implode('|', ['{0}:count سنة', '{1}سنة', '{2}سنتين', ']2,11[:count سنوات', ']10,Inf[:count سنة']), - 'month' => implode('|', ['{0}:count شهر', '{1}شهر', '{2}شهرين', ']2,11[:count أشهر', ']10,Inf[:count شهر']), - 'a_month' => implode('|', ['{0}:count شهر', '{1}شهر', '{2}شهرين', ']2,11[:count أشهر', ']10,Inf[:count شهر']), - 'week' => implode('|', ['{0}:count أسبوع', '{1}أسبوع', '{2}أسبوعين', ']2,11[:count أسابيع', ']10,Inf[:count أسبوع']), - 'a_week' => implode('|', ['{0}:count أسبوع', '{1}أسبوع', '{2}أسبوعين', ']2,11[:count أسابيع', ']10,Inf[:count أسبوع']), - 'day' => implode('|', ['{0}:count يوم', '{1}يوم', '{2}يومين', ']2,11[:count أيام', ']10,Inf[:count يوم']), - 'a_day' => implode('|', ['{0}:count يوم', '{1}يوم', '{2}يومين', ']2,11[:count أيام', ']10,Inf[:count يوم']), - 'hour' => implode('|', ['{0}:count ساعة', '{1}ساعة', '{2}ساعتين', ']2,11[:count ساعات', ']10,Inf[:count ساعة']), - 'a_hour' => implode('|', ['{0}:count ساعة', '{1}ساعة', '{2}ساعتين', ']2,11[:count ساعات', ']10,Inf[:count ساعة']), - 'minute' => implode('|', ['{0}:count دقيقة', '{1}دقيقة', '{2}دقيقتين', ']2,11[:count دقائق', ']10,Inf[:count دقيقة']), - 'a_minute' => implode('|', ['{0}:count دقيقة', '{1}دقيقة', '{2}دقيقتين', ']2,11[:count دقائق', ']10,Inf[:count دقيقة']), - 'second' => implode('|', ['{0}:count ثانية', '{1}ثانية', '{2}ثانيتين', ']2,11[:count ثواني', ']10,Inf[:count ثانية']), - 'a_second' => implode('|', ['{0}:count ثانية', '{1}ثانية', '{2}ثانيتين', ']2,11[:count ثواني', ']10,Inf[:count ثانية']), - 'ago' => 'منذ :time', - 'from_now' => 'في :time', - 'after' => 'بعد :time', - 'before' => 'قبل :time', - 'diff_now' => 'الآن', - 'diff_today' => 'اليوم', - 'diff_today_regexp' => 'اليوم(?:\\s+على)?(?:\\s+الساعة)?', - 'diff_yesterday' => 'أمس', - 'diff_yesterday_regexp' => 'أمس(?:\\s+على)?(?:\\s+الساعة)?', - 'diff_tomorrow' => 'غداً', - 'diff_tomorrow_regexp' => 'غدا(?:\\s+على)?(?:\\s+الساعة)?', - 'diff_before_yesterday' => 'قبل الأمس', - 'diff_after_tomorrow' => 'بعد غد', - 'period_recurrences' => implode('|', ['{0}مرة', '{1}مرة', '{2}:count مرتين', ']2,11[:count مرات', ']10,Inf[:count مرة']), - 'period_interval' => 'كل :interval', - 'period_start_date' => 'من :date', - 'period_end_date' => 'إلى :date', - 'months' => $months, - 'months_short' => $months, - 'weekdays' => ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'], - 'weekdays_short' => ['أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة', 'سبت'], - 'weekdays_min' => ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], - 'list' => ['، ', ' و '], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[اليوم على الساعة] LT', - 'nextDay' => '[غدا على الساعة] LT', - 'nextWeek' => 'dddd [على الساعة] LT', - 'lastDay' => '[أمس على الساعة] LT', - 'lastWeek' => 'dddd [على الساعة] LT', - 'sameElse' => 'L', - ], - 'meridiem' => ['ص', 'م'], - 'weekend' => [5, 6], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ar_YE.php b/vendor/nesbot/carbon/src/Carbon/Lang/ar_YE.php deleted file mode 100644 index 169fe88..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ar_YE.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - IBM Globalization Center of Competency, Yamato Software Laboratory bug-glibc-locales@gnu.org - * - Abdullah-Alhariri - */ -return array_replace_recursive(require __DIR__.'/ar.php', [ - 'formats' => [ - 'L' => 'DD MMM, YYYY', - ], - 'months' => ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'], - 'months_short' => ['ينا', 'فبر', 'مار', 'أبر', 'ماي', 'يون', 'يول', 'أغس', 'سبت', 'أكت', 'نوف', 'ديس'], - 'weekdays' => ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'], - 'weekdays_short' => ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], - 'weekdays_min' => ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], - 'day_of_first_week_of_year' => 1, - 'alt_numbers' => ['۰۰', '۰۱', '۰۲', '۰۳', '۰٤', '۰٥', '۰٦', '۰۷', '۰۸', '۰۹', '۱۰', '۱۱', '۱۲', '۱۳', '۱٤', '۱٥', '۱٦', '۱۷', '۱۸', '۱۹', '۲۰', '۲۱', '۲۲', '۲۳', '۲٤', '۲٥', '۲٦', '۲۷', '۲۸', '۲۹', '۳۰', '۳۱', '۳۲', '۳۳', '۳٤', '۳٥', '۳٦', '۳۷', '۳۸', '۳۹', '٤۰', '٤۱', '٤۲', '٤۳', '٤٤', '٤٥', '٤٦', '٤۷', '٤۸', '٤۹', '٥۰', '٥۱', '٥۲', '٥۳', '٥٤', '٥٥', '٥٦', '٥۷', '٥۸', '٥۹', '٦۰', '٦۱', '٦۲', '٦۳', '٦٤', '٦٥', '٦٦', '٦۷', '٦۸', '٦۹', '۷۰', '۷۱', '۷۲', '۷۳', '۷٤', '۷٥', '۷٦', '۷۷', '۷۸', '۷۹', '۸۰', '۸۱', '۸۲', '۸۳', '۸٤', '۸٥', '۸٦', '۸۷', '۸۸', '۸۹', '۹۰', '۹۱', '۹۲', '۹۳', '۹٤', '۹٥', '۹٦', '۹۷', '۹۸', '۹۹'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/as.php b/vendor/nesbot/carbon/src/Carbon/Lang/as.php deleted file mode 100644 index 04bc3df..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/as.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/as_IN.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/as_IN.php b/vendor/nesbot/carbon/src/Carbon/Lang/as_IN.php deleted file mode 100644 index f2499ab..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/as_IN.php +++ /dev/null @@ -1,56 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Amitakhya Phukan, Red Hat bug-glibc@gnu.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'D-MM-YYYY', - ], - 'months' => ['জানুৱাৰী', 'ফেব্ৰুৱাৰী', 'মাৰ্চ', 'এপ্ৰিল', 'মে', 'জুন', 'জুলাই', 'আগষ্ট', 'ছেপ্তেম্বৰ', 'অক্টোবৰ', 'নৱেম্বৰ', 'ডিচেম্বৰ'], - 'months_short' => ['জানু', 'ফেব্ৰু', 'মাৰ্চ', 'এপ্ৰিল', 'মে', 'জুন', 'জুলাই', 'আগ', 'সেপ্ট', 'অক্টো', 'নভে', 'ডিসে'], - 'weekdays' => ['দেওবাৰ', 'সোমবাৰ', 'মঙ্গলবাৰ', 'বুধবাৰ', 'বৃহষ্পতিবাৰ', 'শুক্ৰবাৰ', 'শনিবাৰ'], - 'weekdays_short' => ['দেও', 'সোম', 'মঙ্গল', 'বুধ', 'বৃহষ্পতি', 'শুক্ৰ', 'শনি'], - 'weekdays_min' => ['দেও', 'সোম', 'মঙ্গল', 'বুধ', 'বৃহষ্পতি', 'শুক্ৰ', 'শনি'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['পূৰ্ব্বাহ্ন', 'অপৰাহ্ন'], - - 'year' => ':count বছৰ', - 'y' => ':count বছৰ', - 'a_year' => ':count বছৰ', - - 'month' => ':count মাহ', - 'm' => ':count মাহ', - 'a_month' => ':count মাহ', - - 'week' => ':count সপ্তাহ', - 'w' => ':count সপ্তাহ', - 'a_week' => ':count সপ্তাহ', - - 'day' => ':count বাৰ', - 'd' => ':count বাৰ', - 'a_day' => ':count বাৰ', - - 'hour' => ':count ঘণ্টা', - 'h' => ':count ঘণ্টা', - 'a_hour' => ':count ঘণ্টা', - - 'minute' => ':count মিনিট', - 'min' => ':count মিনিট', - 'a_minute' => ':count মিনিট', - - 'second' => ':count দ্বিতীয়', - 's' => ':count দ্বিতীয়', - 'a_second' => ':count দ্বিতীয়', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/asa.php b/vendor/nesbot/carbon/src/Carbon/Lang/asa.php deleted file mode 100644 index 03bb483..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/asa.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'meridiem' => ['icheheavo', 'ichamthi'], - 'weekdays' => ['Jumapili', 'Jumatatu', 'Jumanne', 'Jumatano', 'Alhamisi', 'Ijumaa', 'Jumamosi'], - 'weekdays_short' => ['Jpi', 'Jtt', 'Jnn', 'Jtn', 'Alh', 'Ijm', 'Jmo'], - 'weekdays_min' => ['Jpi', 'Jtt', 'Jnn', 'Jtn', 'Alh', 'Ijm', 'Jmo'], - 'months' => ['Januari', 'Februari', 'Machi', 'Aprili', 'Mei', 'Juni', 'Julai', 'Agosti', 'Septemba', 'Oktoba', 'Novemba', 'Desemba'], - 'months_short' => ['Jan', 'Feb', 'Mac', 'Apr', 'Mei', 'Jun', 'Jul', 'Ago', 'Sep', 'Okt', 'Nov', 'Dec'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ast.php b/vendor/nesbot/carbon/src/Carbon/Lang/ast.php deleted file mode 100644 index d9bdebe..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ast.php +++ /dev/null @@ -1,59 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Jordi Mallach jordi@gnu.org - * - Adolfo Jayme-Barrientos (fitojb) - */ -return array_replace_recursive(require __DIR__.'/es.php', [ - 'formats' => [ - 'L' => 'DD/MM/YY', - ], - 'months' => ['de xineru', 'de febreru', 'de marzu', 'd’abril', 'de mayu', 'de xunu', 'de xunetu', 'd’agostu', 'de setiembre', 'd’ochobre', 'de payares', 'd’avientu'], - 'months_short' => ['xin', 'feb', 'mar', 'abr', 'may', 'xun', 'xnt', 'ago', 'set', 'och', 'pay', 'avi'], - 'weekdays' => ['domingu', 'llunes', 'martes', 'miércoles', 'xueves', 'vienres', 'sábadu'], - 'weekdays_short' => ['dom', 'llu', 'mar', 'mié', 'xue', 'vie', 'sáb'], - 'weekdays_min' => ['dom', 'llu', 'mar', 'mié', 'xue', 'vie', 'sáb'], - - 'year' => ':count añu|:count años', - 'y' => ':count añu|:count años', - 'a_year' => 'un añu|:count años', - - 'month' => ':count mes', - 'm' => ':count mes', - 'a_month' => 'un mes|:count mes', - - 'week' => ':count selmana|:count selmanes', - 'w' => ':count selmana|:count selmanes', - 'a_week' => 'una selmana|:count selmanes', - - 'day' => ':count día|:count díes', - 'd' => ':count día|:count díes', - 'a_day' => 'un día|:count díes', - - 'hour' => ':count hora|:count hores', - 'h' => ':count hora|:count hores', - 'a_hour' => 'una hora|:count hores', - - 'minute' => ':count minutu|:count minutos', - 'min' => ':count minutu|:count minutos', - 'a_minute' => 'un minutu|:count minutos', - - 'second' => ':count segundu|:count segundos', - 's' => ':count segundu|:count segundos', - 'a_second' => 'un segundu|:count segundos', - - 'ago' => 'hai :time', - 'from_now' => 'en :time', - 'after' => ':time dempués', - 'before' => ':time enantes', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ast_ES.php b/vendor/nesbot/carbon/src/Carbon/Lang/ast_ES.php deleted file mode 100644 index 04d7562..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ast_ES.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/ast.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ayc.php b/vendor/nesbot/carbon/src/Carbon/Lang/ayc.php deleted file mode 100644 index d6a6f63..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ayc.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/ayc_PE.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ayc_PE.php b/vendor/nesbot/carbon/src/Carbon/Lang/ayc_PE.php deleted file mode 100644 index 22374e0..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ayc_PE.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - runasimipi.org libc-alpha@sourceware.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YY', - ], - 'months' => ['inïru', 'phiwriru', 'marsu', 'awrila', 'mayu', 'junyu', 'julyu', 'awustu', 'sitimri', 'uktuwri', 'nuwimri', 'risimri'], - 'months_short' => ['ini', 'phi', 'mar', 'awr', 'may', 'jun', 'jul', 'awu', 'sit', 'ukt', 'nuw', 'ris'], - 'weekdays' => ['tuminku', 'lunisa', 'martisa', 'mirkulisa', 'juywisa', 'wirnisa', 'sawäru'], - 'weekdays_short' => ['tum', 'lun', 'mar', 'mir', 'juy', 'wir', 'saw'], - 'weekdays_min' => ['tum', 'lun', 'mar', 'mir', 'juy', 'wir', 'saw'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['VM', 'NM'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/az.php b/vendor/nesbot/carbon/src/Carbon/Lang/az.php deleted file mode 100644 index c53865e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/az.php +++ /dev/null @@ -1,128 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Josh Soref - * - Kunal Marwaha - * - François B - * - JD Isaacks - * - Orxan - * - Şəhriyar İmanov - * - Baran Şengül - */ -return [ - 'year' => ':count il', - 'a_year' => '{1}bir il|]1,Inf[:count il', - 'y' => ':count il', - 'month' => ':count ay', - 'a_month' => '{1}bir ay|]1,Inf[:count ay', - 'm' => ':count ay', - 'week' => ':count həftə', - 'a_week' => '{1}bir həftə|]1,Inf[:count həftə', - 'w' => ':count h.', - 'day' => ':count gün', - 'a_day' => '{1}bir gün|]1,Inf[:count gün', - 'd' => ':count g.', - 'hour' => ':count saat', - 'a_hour' => '{1}bir saat|]1,Inf[:count saat', - 'h' => ':count saat', - 'minute' => ':count d.', - 'a_minute' => '{1}bir dəqiqə|]1,Inf[:count dəqiqə', - 'min' => ':count dəqiqə', - 'second' => ':count san.', - 'a_second' => '{1}birneçə saniyə|]1,Inf[:count saniyə', - 's' => ':count saniyə', - 'ago' => ':time əvvəl', - 'from_now' => ':time sonra', - 'after' => ':time sonra', - 'before' => ':time əvvəl', - 'diff_now' => 'indi', - 'diff_today' => 'bugün', - 'diff_today_regexp' => 'bugün(?:\\s+saat)?', - 'diff_yesterday' => 'dünən', - 'diff_tomorrow' => 'sabah', - 'diff_tomorrow_regexp' => 'sabah(?:\\s+saat)?', - 'diff_before_yesterday' => 'srağagün', - 'diff_after_tomorrow' => 'birisi gün', - 'period_recurrences' => ':count dəfədən bir', - 'period_interval' => 'hər :interval', - 'period_start_date' => ':date tarixindən başlayaraq', - 'period_end_date' => ':date tarixinədək', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD.MM.YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[bugün saat] LT', - 'nextDay' => '[sabah saat] LT', - 'nextWeek' => '[gələn həftə] dddd [saat] LT', - 'lastDay' => '[dünən] LT', - 'lastWeek' => '[keçən həftə] dddd [saat] LT', - 'sameElse' => 'L', - ], - 'ordinal' => static function ($number) { - if ($number === 0) { // special case for zero - return "$number-ıncı"; - } - - static $suffixes = [ - 1 => '-inci', - 5 => '-inci', - 8 => '-inci', - 70 => '-inci', - 80 => '-inci', - 2 => '-nci', - 7 => '-nci', - 20 => '-nci', - 50 => '-nci', - 3 => '-üncü', - 4 => '-üncü', - 100 => '-üncü', - 6 => '-ncı', - 9 => '-uncu', - 10 => '-uncu', - 30 => '-uncu', - 60 => '-ıncı', - 90 => '-ıncı', - ]; - - $lastDigit = $number % 10; - - return $number.($suffixes[$lastDigit] ?? $suffixes[$number % 100 - $lastDigit] ?? $suffixes[$number >= 100 ? 100 : -1] ?? ''); - }, - 'meridiem' => static function ($hour) { - if ($hour < 4) { - return 'gecə'; - } - if ($hour < 12) { - return 'səhər'; - } - if ($hour < 17) { - return 'gündüz'; - } - - return 'axşam'; - }, - 'months' => ['yanvar', 'fevral', 'mart', 'aprel', 'may', 'iyun', 'iyul', 'avqust', 'sentyabr', 'oktyabr', 'noyabr', 'dekabr'], - 'months_short' => ['yan', 'fev', 'mar', 'apr', 'may', 'iyn', 'iyl', 'avq', 'sen', 'okt', 'noy', 'dek'], - 'months_standalone' => ['Yanvar', 'Fevral', 'Mart', 'Aprel', 'May', 'İyun', 'İyul', 'Avqust', 'Sentyabr', 'Oktyabr', 'Noyabr', 'Dekabr'], - 'weekdays' => ['bazar', 'bazar ertəsi', 'çərşənbə axşamı', 'çərşənbə', 'cümə axşamı', 'cümə', 'şənbə'], - 'weekdays_short' => ['baz', 'bze', 'çax', 'çər', 'cax', 'cüm', 'şən'], - 'weekdays_min' => ['bz', 'be', 'ça', 'çə', 'ca', 'cü', 'şə'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'list' => [', ', ' və '], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/az_AZ.php b/vendor/nesbot/carbon/src/Carbon/Lang/az_AZ.php deleted file mode 100644 index 2acf881..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/az_AZ.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Pablo Saratxaga pablo@mandrakesoft.com - */ -return array_replace_recursive(require __DIR__.'/az.php', [ - 'months_short' => ['Yan', 'Fev', 'Mar', 'Apr', 'May', 'İyn', 'İyl', 'Avq', 'Sen', 'Okt', 'Noy', 'Dek'], - 'weekdays' => ['bazar günü', 'bazar ertəsi', 'çərşənbə axşamı', 'çərşənbə', 'cümə axşamı', 'cümə', 'şənbə'], - 'weekdays_short' => ['baz', 'ber', 'çax', 'çər', 'cax', 'cüm', 'şnb'], - 'weekdays_min' => ['baz', 'ber', 'çax', 'çər', 'cax', 'cüm', 'şnb'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/az_Cyrl.php b/vendor/nesbot/carbon/src/Carbon/Lang/az_Cyrl.php deleted file mode 100644 index 28fc62f..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/az_Cyrl.php +++ /dev/null @@ -1,20 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/az.php', [ - 'weekdays' => ['базар', 'базар ертәси', 'чәршәнбә ахшамы', 'чәршәнбә', 'ҹүмә ахшамы', 'ҹүмә', 'шәнбә'], - 'weekdays_short' => ['Б.', 'Б.Е.', 'Ч.А.', 'Ч.', 'Ҹ.А.', 'Ҹ.', 'Ш.'], - 'weekdays_min' => ['Б.', 'Б.Е.', 'Ч.А.', 'Ч.', 'Ҹ.А.', 'Ҹ.', 'Ш.'], - 'months' => ['јанвар', 'феврал', 'март', 'апрел', 'май', 'ијун', 'ијул', 'август', 'сентјабр', 'октјабр', 'нојабр', 'декабр'], - 'months_short' => ['јан', 'фев', 'мар', 'апр', 'май', 'ијн', 'ијл', 'авг', 'сен', 'окт', 'ној', 'дек'], - 'months_standalone' => ['Јанвар', 'Феврал', 'Март', 'Апрел', 'Май', 'Ијун', 'Ијул', 'Август', 'Сентјабр', 'Октјабр', 'Нојабр', 'Декабр'], - 'meridiem' => ['а', 'п'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/az_IR.php b/vendor/nesbot/carbon/src/Carbon/Lang/az_IR.php deleted file mode 100644 index 991a0ef..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/az_IR.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Mousa Moradi mousamk@gmail.com - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'OY/OM/OD', - ], - 'months' => ['ژانویه', 'فوریه', 'مارس', 'آوریل', 'مئی', 'ژوئن', 'جولای', 'آقۇست', 'سپتامبر', 'اوْکتوْبر', 'نوْوامبر', 'دسامبر'], - 'months_short' => ['ژانویه', 'فوریه', 'مارس', 'آوریل', 'مئی', 'ژوئن', 'جولای', 'آقۇست', 'سپتامبر', 'اوْکتوْبر', 'نوْوامبر', 'دسامبر'], - 'weekdays' => ['یکشنبه', 'دوشنبه', 'سه‌شنبه', 'چارشنبه', 'جۆمعه آخشامی', 'جۆمعه', 'شنبه'], - 'weekdays_short' => ['یکشنبه', 'دوشنبه', 'سه‌شنبه', 'چارشنبه', 'جۆمعه آخشامی', 'جۆمعه', 'شنبه'], - 'weekdays_min' => ['یکشنبه', 'دوشنبه', 'سه‌شنبه', 'چارشنبه', 'جۆمعه آخشامی', 'جۆمعه', 'شنبه'], - 'first_day_of_week' => 6, - 'alt_numbers' => ['۰۰', '۰۱', '۰۲', '۰۳', '۰۴', '۰۵', '۰۶', '۰۷', '۰۸', '۰۹', '۱۰', '۱۱', '۱۲', '۱۳', '۱۴', '۱۵', '۱۶', '۱۷', '۱۸', '۱۹', '۲۰', '۲۱', '۲۲', '۲۳', '۲۴', '۲۵', '۲۶', '۲۷', '۲۸', '۲۹', '۳۰', '۳۱', '۳۲', '۳۳', '۳۴', '۳۵', '۳۶', '۳۷', '۳۸', '۳۹', '۴۰', '۴۱', '۴۲', '۴۳', '۴۴', '۴۵', '۴۶', '۴۷', '۴۸', '۴۹', '۵۰', '۵۱', '۵۲', '۵۳', '۵۴', '۵۵', '۵۶', '۵۷', '۵۸', '۵۹', '۶۰', '۶۱', '۶۲', '۶۳', '۶۴', '۶۵', '۶۶', '۶۷', '۶۸', '۶۹', '۷۰', '۷۱', '۷۲', '۷۳', '۷۴', '۷۵', '۷۶', '۷۷', '۷۸', '۷۹', '۸۰', '۸۱', '۸۲', '۸۳', '۸۴', '۸۵', '۸۶', '۸۷', '۸۸', '۸۹', '۹۰', '۹۱', '۹۲', '۹۳', '۹۴', '۹۵', '۹۶', '۹۷', '۹۸', '۹۹'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/az_Latn.php b/vendor/nesbot/carbon/src/Carbon/Lang/az_Latn.php deleted file mode 100644 index 0be3391..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/az_Latn.php +++ /dev/null @@ -1,29 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/az.php', [ - 'meridiem' => ['a', 'p'], - 'weekdays' => ['bazar', 'bazar ertəsi', 'çərşənbə axşamı', 'çərşənbə', 'cümə axşamı', 'cümə', 'şənbə'], - 'weekdays_short' => ['B.', 'B.E.', 'Ç.A.', 'Ç.', 'C.A.', 'C.', 'Ş.'], - 'weekdays_min' => ['B.', 'B.E.', 'Ç.A.', 'Ç.', 'C.A.', 'C.', 'Ş.'], - 'months' => ['yanvar', 'fevral', 'mart', 'aprel', 'may', 'iyun', 'iyul', 'avqust', 'sentyabr', 'oktyabr', 'noyabr', 'dekabr'], - 'months_short' => ['yan', 'fev', 'mar', 'apr', 'may', 'iyn', 'iyl', 'avq', 'sen', 'okt', 'noy', 'dek'], - 'months_standalone' => ['Yanvar', 'Fevral', 'Mart', 'Aprel', 'May', 'İyun', 'İyul', 'Avqust', 'Sentyabr', 'Oktyabr', 'Noyabr', 'Dekabr'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD.MM.YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'D MMMM YYYY, dddd HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/bas.php b/vendor/nesbot/carbon/src/Carbon/Lang/bas.php deleted file mode 100644 index 41bfa1d..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/bas.php +++ /dev/null @@ -1,32 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'meridiem' => ['I bikɛ̂glà', 'I ɓugajɔp'], - 'weekdays' => ['ŋgwà nɔ̂y', 'ŋgwà njaŋgumba', 'ŋgwà ûm', 'ŋgwà ŋgê', 'ŋgwà mbɔk', 'ŋgwà kɔɔ', 'ŋgwà jôn'], - 'weekdays_short' => ['nɔy', 'nja', 'uum', 'ŋge', 'mbɔ', 'kɔɔ', 'jon'], - 'weekdays_min' => ['nɔy', 'nja', 'uum', 'ŋge', 'mbɔ', 'kɔɔ', 'jon'], - 'months' => ['Kɔndɔŋ', 'Màcɛ̂l', 'Màtùmb', 'Màtop', 'M̀puyɛ', 'Hìlòndɛ̀', 'Njèbà', 'Hìkaŋ', 'Dìpɔ̀s', 'Bìòôm', 'Màyɛsèp', 'Lìbuy li ńyèe'], - 'months_short' => ['kɔn', 'mac', 'mat', 'mto', 'mpu', 'hil', 'nje', 'hik', 'dip', 'bio', 'may', 'liɓ'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'D/M/YYYY', - 'LL' => 'D MMM, YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], - - 'second' => ':count móndî', // less reliable - 's' => ':count móndî', // less reliable - 'a_second' => ':count móndî', // less reliable -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/be.php b/vendor/nesbot/carbon/src/Carbon/Lang/be.php deleted file mode 100644 index 06f4043..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/be.php +++ /dev/null @@ -1,160 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -use Carbon\CarbonInterface; -use Symfony\Component\Translation\PluralizationRules; - -// @codeCoverageIgnoreStart -if (class_exists(PluralizationRules::class)) { - PluralizationRules::set(static function ($number) { - return (($number % 10 == 1) && ($number % 100 != 11)) ? 0 : ((($number % 10 >= 2) && ($number % 10 <= 4) && (($number % 100 < 10) || ($number % 100 >= 20))) ? 1 : 2); - }, 'be'); -} -// @codeCoverageIgnoreEnd - -/* - * Authors: - * - Josh Soref - * - SobakaSlava - * - François B - * - Serhan Apaydın - * - JD Isaacks - * - AbadonnaAbbys - * - Siomkin Alexander - */ -return [ - 'year' => ':count год|:count гады|:count гадоў', - 'a_year' => '{1}год|:count год|:count гады|:count гадоў', - 'y' => ':count год|:count гады|:count гадоў', - 'month' => ':count месяц|:count месяцы|:count месяцаў', - 'a_month' => '{1}месяц|:count месяц|:count месяцы|:count месяцаў', - 'm' => ':count месяц|:count месяцы|:count месяцаў', - 'week' => ':count тыдзень|:count тыдні|:count тыдняў', - 'a_week' => '{1}тыдзень|:count тыдзень|:count тыдні|:count тыдняў', - 'w' => ':count тыдзень|:count тыдні|:count тыдняў', - 'day' => ':count дзень|:count дні|:count дзён', - 'a_day' => '{1}дзень|:count дзень|:count дні|:count дзён', - 'd' => ':count дн', - 'hour' => ':count гадзіну|:count гадзіны|:count гадзін', - 'a_hour' => '{1}гадзіна|:count гадзіна|:count гадзіны|:count гадзін', - 'h' => ':count гадзіна|:count гадзіны|:count гадзін', - 'minute' => ':count хвіліна|:count хвіліны|:count хвілін', - 'a_minute' => '{1}хвіліна|:count хвіліна|:count хвіліны|:count хвілін', - 'min' => ':count хв', - 'second' => ':count секунда|:count секунды|:count секунд', - 'a_second' => '{1}некалькі секунд|:count секунда|:count секунды|:count секунд', - 's' => ':count сек', - - 'hour_ago' => ':count гадзіну|:count гадзіны|:count гадзін', - 'a_hour_ago' => '{1}гадзіну|:count гадзіну|:count гадзіны|:count гадзін', - 'h_ago' => ':count гадзіну|:count гадзіны|:count гадзін', - 'minute_ago' => ':count хвіліну|:count хвіліны|:count хвілін', - 'a_minute_ago' => '{1}хвіліну|:count хвіліну|:count хвіліны|:count хвілін', - 'min_ago' => ':count хвіліну|:count хвіліны|:count хвілін', - 'second_ago' => ':count секунду|:count секунды|:count секунд', - 'a_second_ago' => '{1}некалькі секунд|:count секунду|:count секунды|:count секунд', - 's_ago' => ':count секунду|:count секунды|:count секунд', - - 'hour_from_now' => ':count гадзіну|:count гадзіны|:count гадзін', - 'a_hour_from_now' => '{1}гадзіну|:count гадзіну|:count гадзіны|:count гадзін', - 'h_from_now' => ':count гадзіну|:count гадзіны|:count гадзін', - 'minute_from_now' => ':count хвіліну|:count хвіліны|:count хвілін', - 'a_minute_from_now' => '{1}хвіліну|:count хвіліну|:count хвіліны|:count хвілін', - 'min_from_now' => ':count хвіліну|:count хвіліны|:count хвілін', - 'second_from_now' => ':count секунду|:count секунды|:count секунд', - 'a_second_from_now' => '{1}некалькі секунд|:count секунду|:count секунды|:count секунд', - 's_from_now' => ':count секунду|:count секунды|:count секунд', - - 'hour_after' => ':count гадзіну|:count гадзіны|:count гадзін', - 'a_hour_after' => '{1}гадзіну|:count гадзіну|:count гадзіны|:count гадзін', - 'h_after' => ':count гадзіну|:count гадзіны|:count гадзін', - 'minute_after' => ':count хвіліну|:count хвіліны|:count хвілін', - 'a_minute_after' => '{1}хвіліну|:count хвіліну|:count хвіліны|:count хвілін', - 'min_after' => ':count хвіліну|:count хвіліны|:count хвілін', - 'second_after' => ':count секунду|:count секунды|:count секунд', - 'a_second_after' => '{1}некалькі секунд|:count секунду|:count секунды|:count секунд', - 's_after' => ':count секунду|:count секунды|:count секунд', - - 'hour_before' => ':count гадзіну|:count гадзіны|:count гадзін', - 'a_hour_before' => '{1}гадзіну|:count гадзіну|:count гадзіны|:count гадзін', - 'h_before' => ':count гадзіну|:count гадзіны|:count гадзін', - 'minute_before' => ':count хвіліну|:count хвіліны|:count хвілін', - 'a_minute_before' => '{1}хвіліну|:count хвіліну|:count хвіліны|:count хвілін', - 'min_before' => ':count хвіліну|:count хвіліны|:count хвілін', - 'second_before' => ':count секунду|:count секунды|:count секунд', - 'a_second_before' => '{1}некалькі секунд|:count секунду|:count секунды|:count секунд', - 's_before' => ':count секунду|:count секунды|:count секунд', - - 'ago' => ':time таму', - 'from_now' => 'праз :time', - 'after' => ':time пасля', - 'before' => ':time да', - 'diff_now' => 'цяпер', - 'diff_today' => 'Сёння', - 'diff_today_regexp' => 'Сёння(?:\\s+ў)?', - 'diff_yesterday' => 'учора', - 'diff_yesterday_regexp' => 'Учора(?:\\s+ў)?', - 'diff_tomorrow' => 'заўтра', - 'diff_tomorrow_regexp' => 'Заўтра(?:\\s+ў)?', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD.MM.YYYY', - 'LL' => 'D MMMM YYYY г.', - 'LLL' => 'D MMMM YYYY г., HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY г., HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[Сёння ў] LT', - 'nextDay' => '[Заўтра ў] LT', - 'nextWeek' => '[У] dddd [ў] LT', - 'lastDay' => '[Учора ў] LT', - 'lastWeek' => static fn (CarbonInterface $current) => match ($current->dayOfWeek) { - 1, 2, 4 => '[У мінулы] dddd [ў] LT', - default => '[У мінулую] dddd [ў] LT', - }, - 'sameElse' => 'L', - ], - 'ordinal' => static fn ($number, $period) => match ($period) { - 'M', 'd', 'DDD', 'w', 'W' => ($number % 10 === 2 || $number % 10 === 3) && - ($number % 100 !== 12 && $number % 100 !== 13) ? $number.'-і' : $number.'-ы', - 'D' => $number.'-га', - default => $number, - }, - 'meridiem' => static function ($hour) { - if ($hour < 4) { - return 'ночы'; - } - - if ($hour < 12) { - return 'раніцы'; - } - - if ($hour < 17) { - return 'дня'; - } - - return 'вечара'; - }, - 'months' => ['студзеня', 'лютага', 'сакавіка', 'красавіка', 'траўня', 'чэрвеня', 'ліпеня', 'жніўня', 'верасня', 'кастрычніка', 'лістапада', 'снежня'], - 'months_standalone' => ['студзень', 'люты', 'сакавік', 'красавік', 'травень', 'чэрвень', 'ліпень', 'жнівень', 'верасень', 'кастрычнік', 'лістапад', 'снежань'], - 'months_short' => ['студ', 'лют', 'сак', 'крас', 'трав', 'чэрв', 'ліп', 'жнів', 'вер', 'каст', 'ліст', 'снеж'], - 'months_regexp' => '/(DD?o?\.?(\[[^\[\]]*\]|\s)+MMMM?|L{2,4}|l{2,4})/', - 'weekdays' => ['нядзелю', 'панядзелак', 'аўторак', 'сераду', 'чацвер', 'пятніцу', 'суботу'], - 'weekdays_standalone' => ['нядзеля', 'панядзелак', 'аўторак', 'серада', 'чацвер', 'пятніца', 'субота'], - 'weekdays_short' => ['нд', 'пн', 'ат', 'ср', 'чц', 'пт', 'сб'], - 'weekdays_min' => ['нд', 'пн', 'ат', 'ср', 'чц', 'пт', 'сб'], - 'weekdays_regexp' => '/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/', - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'list' => [', ', ' і '], - 'months_short_standalone' => ['сту', 'лют', 'сак', 'кра', 'май', 'чэр', 'ліп', 'жні', 'вер', 'кас', 'ліс', 'сне'], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/be_BY.php b/vendor/nesbot/carbon/src/Carbon/Lang/be_BY.php deleted file mode 100644 index 26684b4..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/be_BY.php +++ /dev/null @@ -1,22 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/be.php', [ - 'months' => ['студзеня', 'лютага', 'сакавіка', 'красавіка', 'мая', 'чэрвеня', 'ліпеня', 'жніўня', 'верасня', 'кастрычніка', 'лістапада', 'снежня'], - 'months_short' => ['сту', 'лют', 'сак', 'кра', 'мая', 'чэр', 'ліп', 'жні', 'вер', 'кас', 'ліс', 'сне'], - 'weekdays' => ['Нядзеля', 'Панядзелак', 'Аўторак', 'Серада', 'Чацвер', 'Пятніца', 'Субота'], - 'weekdays_short' => ['Няд', 'Пан', 'Аўт', 'Срд', 'Чцв', 'Пят', 'Суб'], - 'weekdays_min' => ['Няд', 'Пан', 'Аўт', 'Срд', 'Чцв', 'Пят', 'Суб'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/be_BY@latin.php b/vendor/nesbot/carbon/src/Carbon/Lang/be_BY@latin.php deleted file mode 100644 index 517ce83..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/be_BY@latin.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD.MM.YYYY', - ], - 'months' => ['studzienia', 'lutaha', 'sakavika', 'krasavika', 'maja', 'červienia', 'lipienia', 'žniŭnia', 'vieraśnia', 'kastryčnika', 'listapada', 'śniežnia'], - 'months_short' => ['Stu', 'Lut', 'Sak', 'Kra', 'Maj', 'Čer', 'Lip', 'Žni', 'Vie', 'Kas', 'Lis', 'Śni'], - 'weekdays' => ['Niadziela', 'Paniadziełak', 'Aŭtorak', 'Sierada', 'Čaćvier', 'Piatnica', 'Subota'], - 'weekdays_short' => ['Nia', 'Pan', 'Aŭt', 'Sie', 'Čać', 'Pia', 'Sub'], - 'weekdays_min' => ['Nia', 'Pan', 'Aŭt', 'Sie', 'Čać', 'Pia', 'Sub'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/bem.php b/vendor/nesbot/carbon/src/Carbon/Lang/bem.php deleted file mode 100644 index 1c3ef03..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/bem.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/bem_ZM.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/bem_ZM.php b/vendor/nesbot/carbon/src/Carbon/Lang/bem_ZM.php deleted file mode 100644 index 620b579..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/bem_ZM.php +++ /dev/null @@ -1,56 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - ANLoc Martin Benjamin locales@africanlocalization.net - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'MM/DD/YYYY', - ], - 'months' => ['Januari', 'Februari', 'Machi', 'Epreo', 'Mei', 'Juni', 'Julai', 'Ogasti', 'Septemba', 'Oktoba', 'Novemba', 'Disemba'], - 'months_short' => ['Jan', 'Feb', 'Mac', 'Epr', 'Mei', 'Jun', 'Jul', 'Oga', 'Sep', 'Okt', 'Nov', 'Dis'], - 'weekdays' => ['Pa Mulungu', 'Palichimo', 'Palichibuli', 'Palichitatu', 'Palichine', 'Palichisano', 'Pachibelushi'], - 'weekdays_short' => ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], - 'weekdays_min' => ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['uluchelo', 'akasuba'], - - 'year' => 'myaka :count', - 'y' => 'myaka :count', - 'a_year' => 'myaka :count', - - 'month' => 'myeshi :count', - 'm' => 'myeshi :count', - 'a_month' => 'myeshi :count', - - 'week' => 'umulungu :count', - 'w' => 'umulungu :count', - 'a_week' => 'umulungu :count', - - 'day' => 'inshiku :count', - 'd' => 'inshiku :count', - 'a_day' => 'inshiku :count', - - 'hour' => 'awala :count', - 'h' => 'awala :count', - 'a_hour' => 'awala :count', - - 'minute' => 'miniti :count', - 'min' => 'miniti :count', - 'a_minute' => 'miniti :count', - - 'second' => 'sekondi :count', - 's' => 'sekondi :count', - 'a_second' => 'sekondi :count', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ber.php b/vendor/nesbot/carbon/src/Carbon/Lang/ber.php deleted file mode 100644 index 685603c..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ber.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/ber_DZ.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ber_DZ.php b/vendor/nesbot/carbon/src/Carbon/Lang/ber_DZ.php deleted file mode 100644 index 38de10a..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ber_DZ.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Pablo Saratxaga pablo@mandrakesoft.com - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD.MM.YYYY', - ], - 'months' => ['yanvar', 'fevral', 'mart', 'aprel', 'may', 'iyun', 'iyul', 'avqust', 'sentyabr', 'oktyabr', 'noyabr', 'dekabr'], - 'months_short' => ['Yan', 'Fev', 'Mar', 'Apr', 'May', 'İyn', 'İyl', 'Avq', 'Sen', 'Okt', 'Noy', 'Dek'], - 'weekdays' => ['bazar günü', 'birinci gün', 'ikinci gün', 'üçüncü gün', 'dördüncü gün', 'beşinci gün', 'altıncı gün'], - 'weekdays_short' => ['baz', 'bir', 'iki', 'üçü', 'dör', 'beş', 'alt'], - 'weekdays_min' => ['baz', 'bir', 'iki', 'üçü', 'dör', 'beş', 'alt'], - 'first_day_of_week' => 6, - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ber_MA.php b/vendor/nesbot/carbon/src/Carbon/Lang/ber_MA.php deleted file mode 100644 index 38de10a..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ber_MA.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Pablo Saratxaga pablo@mandrakesoft.com - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD.MM.YYYY', - ], - 'months' => ['yanvar', 'fevral', 'mart', 'aprel', 'may', 'iyun', 'iyul', 'avqust', 'sentyabr', 'oktyabr', 'noyabr', 'dekabr'], - 'months_short' => ['Yan', 'Fev', 'Mar', 'Apr', 'May', 'İyn', 'İyl', 'Avq', 'Sen', 'Okt', 'Noy', 'Dek'], - 'weekdays' => ['bazar günü', 'birinci gün', 'ikinci gün', 'üçüncü gün', 'dördüncü gün', 'beşinci gün', 'altıncı gün'], - 'weekdays_short' => ['baz', 'bir', 'iki', 'üçü', 'dör', 'beş', 'alt'], - 'weekdays_min' => ['baz', 'bir', 'iki', 'üçü', 'dör', 'beş', 'alt'], - 'first_day_of_week' => 6, - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/bez.php b/vendor/nesbot/carbon/src/Carbon/Lang/bez.php deleted file mode 100644 index d59c5ef..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/bez.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'meridiem' => ['pamilau', 'pamunyi'], - 'weekdays' => ['pa mulungu', 'pa shahuviluha', 'pa hivili', 'pa hidatu', 'pa hitayi', 'pa hihanu', 'pa shahulembela'], - 'weekdays_short' => ['Mul', 'Vil', 'Hiv', 'Hid', 'Hit', 'Hih', 'Lem'], - 'weekdays_min' => ['Mul', 'Vil', 'Hiv', 'Hid', 'Hit', 'Hih', 'Lem'], - 'months' => ['pa mwedzi gwa hutala', 'pa mwedzi gwa wuvili', 'pa mwedzi gwa wudatu', 'pa mwedzi gwa wutai', 'pa mwedzi gwa wuhanu', 'pa mwedzi gwa sita', 'pa mwedzi gwa saba', 'pa mwedzi gwa nane', 'pa mwedzi gwa tisa', 'pa mwedzi gwa kumi', 'pa mwedzi gwa kumi na moja', 'pa mwedzi gwa kumi na mbili'], - 'months_short' => ['Hut', 'Vil', 'Dat', 'Tai', 'Han', 'Sit', 'Sab', 'Nan', 'Tis', 'Kum', 'Kmj', 'Kmb'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/bg.php b/vendor/nesbot/carbon/src/Carbon/Lang/bg.php deleted file mode 100644 index c793ab7..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/bg.php +++ /dev/null @@ -1,108 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Josh Soref - * - François B - * - Serhan Apaydın - * - JD Isaacks - * - Glavić - */ - -use Carbon\CarbonInterface; - -return [ - 'year' => ':count година|:count години', - 'a_year' => 'година|:count години', - 'y' => ':count година|:count години', - 'month' => ':count месец|:count месеца', - 'a_month' => 'месец|:count месеца', - 'm' => ':count месец|:count месеца', - 'week' => ':count седмица|:count седмици', - 'a_week' => 'седмица|:count седмици', - 'w' => ':count седмица|:count седмици', - 'day' => ':count ден|:count дни', - 'a_day' => 'ден|:count дни', - 'd' => ':count ден|:count дни', - 'hour' => ':count час|:count часа', - 'a_hour' => 'час|:count часа', - 'h' => ':count час|:count часа', - 'minute' => ':count минута|:count минути', - 'a_minute' => 'минута|:count минути', - 'min' => ':count минута|:count минути', - 'second' => ':count секунда|:count секунди', - 'a_second' => 'няколко секунди|:count секунди', - 's' => ':count секунда|:count секунди', - 'ago' => 'преди :time', - 'from_now' => 'след :time', - 'after' => 'след :time', - 'before' => 'преди :time', - 'diff_now' => 'сега', - 'diff_today' => 'Днес', - 'diff_today_regexp' => 'Днес(?:\\s+в)?', - 'diff_yesterday' => 'вчера', - 'diff_yesterday_regexp' => 'Вчера(?:\\s+в)?', - 'diff_tomorrow' => 'утре', - 'diff_tomorrow_regexp' => 'Утре(?:\\s+в)?', - 'formats' => [ - 'LT' => 'H:mm', - 'LTS' => 'H:mm:ss', - 'L' => 'D.MM.YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY H:mm', - 'LLLL' => 'dddd, D MMMM YYYY H:mm', - ], - 'calendar' => [ - 'sameDay' => '[Днес в] LT', - 'nextDay' => '[Утре в] LT', - 'nextWeek' => 'dddd [в] LT', - 'lastDay' => '[Вчера в] LT', - 'lastWeek' => static fn (CarbonInterface $current) => match ($current->dayOfWeek) { - 0, 3, 6 => '[В изминалата] dddd [в] LT', - default => '[В изминалия] dddd [в] LT', - }, - 'sameElse' => 'L', - ], - 'ordinal' => static function ($number) { - $lastDigit = $number % 10; - $last2Digits = $number % 100; - if ($number === 0) { - return "$number-ев"; - } - if ($last2Digits === 0) { - return "$number-ен"; - } - if ($last2Digits > 10 && $last2Digits < 20) { - return "$number-ти"; - } - if ($lastDigit === 1) { - return "$number-ви"; - } - if ($lastDigit === 2) { - return "$number-ри"; - } - if ($lastDigit === 7 || $lastDigit === 8) { - return "$number-ми"; - } - - return "$number-ти"; - }, - 'months' => ['януари', 'февруари', 'март', 'април', 'май', 'юни', 'юли', 'август', 'септември', 'октомври', 'ноември', 'декември'], - 'months_short' => ['яну', 'фев', 'мар', 'апр', 'май', 'юни', 'юли', 'авг', 'сеп', 'окт', 'ное', 'дек'], - 'weekdays' => ['неделя', 'понеделник', 'вторник', 'сряда', 'четвъртък', 'петък', 'събота'], - 'weekdays_short' => ['нед', 'пон', 'вто', 'сря', 'чет', 'пет', 'съб'], - 'weekdays_min' => ['нд', 'пн', 'вт', 'ср', 'чт', 'пт', 'сб'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'list' => [', ', ' и '], - 'meridiem' => ['преди обяд', 'следобед'], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/bg_BG.php b/vendor/nesbot/carbon/src/Carbon/Lang/bg_BG.php deleted file mode 100644 index b53874d..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/bg_BG.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/bg.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/bhb.php b/vendor/nesbot/carbon/src/Carbon/Lang/bhb.php deleted file mode 100644 index 49f0803..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/bhb.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/bhb_IN.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/bhb_IN.php b/vendor/nesbot/carbon/src/Carbon/Lang/bhb_IN.php deleted file mode 100644 index fadbf77..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/bhb_IN.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Samsung Electronics Co., Ltd. alexey.merzlyakov@samsung.com - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'D/M/YY', - ], - 'months' => ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'], - 'months_short' => ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], - 'weekdays' => ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], - 'weekdays_short' => ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], - 'weekdays_min' => ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/bho.php b/vendor/nesbot/carbon/src/Carbon/Lang/bho.php deleted file mode 100644 index e9ed0b6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/bho.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/bho_IN.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/bho_IN.php b/vendor/nesbot/carbon/src/Carbon/Lang/bho_IN.php deleted file mode 100644 index 2f4cdfa..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/bho_IN.php +++ /dev/null @@ -1,56 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - bhashaghar@googlegroups.com - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'D/M/YY', - ], - 'months' => ['जनवरी', 'फरवरी', 'मार्च', 'अप्रैल', 'मई', 'जून', 'जुलाई', 'अगस्त', 'सितम्बर', 'अक्टूबर', 'नवम्बर', 'दिसम्बर"'], - 'months_short' => ['जनवरी', 'फरवरी', 'मार्च', 'अप्रैल', 'मई', 'जून', 'जुलाई', 'अगस्त', 'सितम्बर', 'अक्टूबर', 'नवम्बर', 'दिसम्बर"'], - 'weekdays' => ['रविवार', 'सोमवार', 'मंगलवार', 'बुधवार', 'गुरुवार', 'शुक्रवार', 'शनिवार'], - 'weekdays_short' => ['रवि', 'सोम', 'मंगल', 'बुध', 'गुरु', 'शुक्र', 'शनि'], - 'weekdays_min' => ['रवि', 'सोम', 'मंगल', 'बुध', 'गुरु', 'शुक्र', 'शनि'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['पूर्वाह्न', 'अपराह्न'], - - 'hour' => ':count मौसम', - 'h' => ':count मौसम', - 'a_hour' => ':count मौसम', - - 'minute' => ':count कला', - 'min' => ':count कला', - 'a_minute' => ':count कला', - - 'second' => ':count सोमार', - 's' => ':count सोमार', - 'a_second' => ':count सोमार', - - 'year' => ':count साल', - 'y' => ':count साल', - 'a_year' => ':count साल', - - 'month' => ':count महिना', - 'm' => ':count महिना', - 'a_month' => ':count महिना', - - 'week' => ':count सप्ताह', - 'w' => ':count सप्ताह', - 'a_week' => ':count सप्ताह', - - 'day' => ':count दिन', - 'd' => ':count दिन', - 'a_day' => ':count दिन', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/bi.php b/vendor/nesbot/carbon/src/Carbon/Lang/bi.php deleted file mode 100644 index dd08128..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/bi.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/bi_VU.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/bi_VU.php b/vendor/nesbot/carbon/src/Carbon/Lang/bi_VU.php deleted file mode 100644 index 15d335c..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/bi_VU.php +++ /dev/null @@ -1,54 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Samsung Electronics Co., Ltd. akhilesh.k@samsung.com & maninder1.s@samsung.com - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, - 'formats' => [ - 'L' => 'dddd DD MMM YYYY', - ], - 'months' => ['jenuware', 'febwari', 'maj', 'epril', 'mei', 'jun', 'julae', 'ogis', 'septemba', 'oktoba', 'novemba', 'disemba'], - 'months_short' => ['jen', 'feb', 'maj', 'epr', 'mei', 'jun', 'jul', 'ogi', 'sep', 'okt', 'nov', 'dis'], - 'weekdays' => ['sande', 'mande', 'maj', 'wota', 'fraede', 'sarede'], - 'weekdays_short' => ['san', 'man', 'maj', 'wot', 'fra', 'sar'], - 'weekdays_min' => ['san', 'man', 'maj', 'wot', 'fra', 'sar'], - - 'year' => ':count seven', // less reliable - 'y' => ':count seven', // less reliable - 'a_year' => ':count seven', // less reliable - - 'month' => ':count mi', // less reliable - 'm' => ':count mi', // less reliable - 'a_month' => ':count mi', // less reliable - - 'week' => ':count sarede', // less reliable - 'w' => ':count sarede', // less reliable - 'a_week' => ':count sarede', // less reliable - - 'day' => ':count betde', // less reliable - 'd' => ':count betde', // less reliable - 'a_day' => ':count betde', // less reliable - - 'hour' => ':count klok', // less reliable - 'h' => ':count klok', // less reliable - 'a_hour' => ':count klok', // less reliable - - 'minute' => ':count smol', // less reliable - 'min' => ':count smol', // less reliable - 'a_minute' => ':count smol', // less reliable - - 'second' => ':count tu', // less reliable - 's' => ':count tu', // less reliable - 'a_second' => ':count tu', // less reliable -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/bm.php b/vendor/nesbot/carbon/src/Carbon/Lang/bm.php deleted file mode 100644 index 92822d2..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/bm.php +++ /dev/null @@ -1,70 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Estelle Comment - */ -return [ - 'year' => 'san :count', - 'a_year' => '{1}san kelen|san :count', - 'y' => 'san :count', - 'month' => 'kalo :count', - 'a_month' => '{1}kalo kelen|kalo :count', - 'm' => 'k. :count', - 'week' => 'dɔgɔkun :count', - 'a_week' => 'dɔgɔkun kelen', - 'w' => 'd. :count', - 'day' => 'tile :count', - 'd' => 't. :count', - 'a_day' => '{1}tile kelen|tile :count', - 'hour' => 'lɛrɛ :count', - 'a_hour' => '{1}lɛrɛ kelen|lɛrɛ :count', - 'h' => 'l. :count', - 'minute' => 'miniti :count', - 'a_minute' => '{1}miniti kelen|miniti :count', - 'min' => 'm. :count', - 'second' => 'sekondi :count', - 'a_second' => '{1}sanga dama dama|sekondi :count', - 's' => 'sek. :count', - 'ago' => 'a bɛ :time bɔ', - 'from_now' => ':time kɔnɔ', - 'diff_today' => 'Bi', - 'diff_yesterday' => 'Kunu', - 'diff_yesterday_regexp' => 'Kunu(?:\\s+lɛrɛ)?', - 'diff_tomorrow' => 'Sini', - 'diff_tomorrow_regexp' => 'Sini(?:\\s+lɛrɛ)?', - 'diff_today_regexp' => 'Bi(?:\\s+lɛrɛ)?', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'MMMM [tile] D [san] YYYY', - 'LLL' => 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm', - 'LLLL' => 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[Bi lɛrɛ] LT', - 'nextDay' => '[Sini lɛrɛ] LT', - 'nextWeek' => 'dddd [don lɛrɛ] LT', - 'lastDay' => '[Kunu lɛrɛ] LT', - 'lastWeek' => 'dddd [tɛmɛnen lɛrɛ] LT', - 'sameElse' => 'L', - ], - 'months' => ['Zanwuyekalo', 'Fewuruyekalo', 'Marisikalo', 'Awirilikalo', 'Mɛkalo', 'Zuwɛnkalo', 'Zuluyekalo', 'Utikalo', 'Sɛtanburukalo', 'ɔkutɔburukalo', 'Nowanburukalo', 'Desanburukalo'], - 'months_short' => ['Zan', 'Few', 'Mar', 'Awi', 'Mɛ', 'Zuw', 'Zul', 'Uti', 'Sɛt', 'ɔku', 'Now', 'Des'], - 'weekdays' => ['Kari', 'Ntɛnɛn', 'Tarata', 'Araba', 'Alamisa', 'Juma', 'Sibiri'], - 'weekdays_short' => ['Kar', 'Ntɛ', 'Tar', 'Ara', 'Ala', 'Jum', 'Sib'], - 'weekdays_min' => ['Ka', 'Nt', 'Ta', 'Ar', 'Al', 'Ju', 'Si'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => [', ', ' ni '], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/bn.php b/vendor/nesbot/carbon/src/Carbon/Lang/bn.php deleted file mode 100644 index 663cf25..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/bn.php +++ /dev/null @@ -1,100 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Josh Soref - * - Shakib Hossain - * - Raju - * - Aniruddha Adhikary - * - JD Isaacks - * - Saiful Islam - * - Faisal Islam - */ -return [ - 'year' => ':count বছর', - 'a_year' => 'এক বছর|:count বছর', - 'y' => '১ বছর|:count বছর', - 'month' => ':count মাস', - 'a_month' => 'এক মাস|:count মাস', - 'm' => '১ মাস|:count মাস', - 'week' => ':count সপ্তাহ', - 'a_week' => '১ সপ্তাহ|:count সপ্তাহ', - 'w' => '১ সপ্তাহ|:count সপ্তাহ', - 'day' => ':count দিন', - 'a_day' => 'এক দিন|:count দিন', - 'd' => '১ দিন|:count দিন', - 'hour' => ':count ঘন্টা', - 'a_hour' => 'এক ঘন্টা|:count ঘন্টা', - 'h' => '১ ঘন্টা|:count ঘন্টা', - 'minute' => ':count মিনিট', - 'a_minute' => 'এক মিনিট|:count মিনিট', - 'min' => '১ মিনিট|:count মিনিট', - 'second' => ':count সেকেন্ড', - 'a_second' => 'কয়েক সেকেন্ড|:count সেকেন্ড', - 's' => '১ সেকেন্ড|:count সেকেন্ড', - 'ago' => ':time আগে', - 'from_now' => ':time পরে', - 'after' => ':time পরে', - 'before' => ':time আগে', - 'diff_now' => 'এখন', - 'diff_today' => 'আজ', - 'diff_yesterday' => 'গতকাল', - 'diff_tomorrow' => 'আগামীকাল', - 'period_recurrences' => ':count বার|:count বার', - 'period_interval' => 'প্রতি :interval', - 'period_start_date' => ':date থেকে', - 'period_end_date' => ':date পর্যন্ত', - 'formats' => [ - 'LT' => 'A Oh:Om সময়', - 'LTS' => 'A Oh:Om:Os সময়', - 'L' => 'OD/OM/OY', - 'LL' => 'OD MMMM OY', - 'LLL' => 'OD MMMM OY, A Oh:Om সময়', - 'LLLL' => 'dddd, OD MMMM OY, A Oh:Om সময়', - ], - 'calendar' => [ - 'sameDay' => '[আজ] LT', - 'nextDay' => '[আগামীকাল] LT', - 'nextWeek' => 'dddd, LT', - 'lastDay' => '[গতকাল] LT', - 'lastWeek' => '[গত] dddd, LT', - 'sameElse' => 'L', - ], - 'meridiem' => static function ($hour) { - if ($hour < 4) { - return 'রাত'; - } - if ($hour < 10) { - return 'সকাল'; - } - if ($hour < 17) { - return 'দুপুর'; - } - if ($hour < 20) { - return 'বিকাল'; - } - - return 'রাত'; - }, - 'months' => ['জানুয়ারী', 'ফেব্রুয়ারি', 'মার্চ', 'এপ্রিল', 'মে', 'জুন', 'জুলাই', 'আগস্ট', 'সেপ্টেম্বর', 'অক্টোবর', 'নভেম্বর', 'ডিসেম্বর'], - 'months_short' => ['জানু', 'ফেব', 'মার্চ', 'এপ্র', 'মে', 'জুন', 'জুল', 'আগ', 'সেপ্ট', 'অক্টো', 'নভে', 'ডিসে'], - 'weekdays' => ['রবিবার', 'সোমবার', 'মঙ্গলবার', 'বুধবার', 'বৃহস্পতিবার', 'শুক্রবার', 'শনিবার'], - 'weekdays_short' => ['রবি', 'সোম', 'মঙ্গল', 'বুধ', 'বৃহস্পতি', 'শুক্র', 'শনি'], - 'weekdays_min' => ['রবি', 'সোম', 'মঙ্গ', 'বুধ', 'বৃহঃ', 'শুক্র', 'শনি'], - 'list' => [', ', ' এবং '], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'weekdays_standalone' => ['রবিবার', 'সোমবার', 'মঙ্গলবার', 'বুধবার', 'বৃহষ্পতিবার', 'শুক্রবার', 'শনিবার'], - 'weekdays_min_standalone' => ['রঃ', 'সোঃ', 'মঃ', 'বুঃ', 'বৃঃ', 'শুঃ', 'শনি'], - 'months_short_standalone' => ['জানুয়ারী', 'ফেব্রুয়ারী', 'মার্চ', 'এপ্রিল', 'মে', 'জুন', 'জুলাই', 'আগস্ট', 'সেপ্টেম্বর', 'অক্টোবর', 'নভেম্বর', 'ডিসেম্বর'], - 'alt_numbers' => ['০', '১', '২', '৩', '৪', '৫', '৬', '৭', '৮', '৯'], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/bn_BD.php b/vendor/nesbot/carbon/src/Carbon/Lang/bn_BD.php deleted file mode 100644 index b5b28dd..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/bn_BD.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Ankur Group, Taneem Ahmed, Jamil Ahmed - */ -return array_replace_recursive(require __DIR__.'/bn.php', [ - 'formats' => [ - 'L' => 'D/M/YY', - ], - 'months' => ['জানুয়ারী', 'ফেব্রুয়ারী', 'মার্চ', 'এপ্রিল', 'মে', 'জুন', 'জুলাই', 'আগস্ট', 'সেপ্টেম্বর', 'অক্টোবর', 'নভেম্বর', 'ডিসেম্বর'], - 'months_short' => ['জানু', 'ফেব', 'মার্চ', 'এপ্রিল', 'মে', 'জুন', 'জুলাই', 'আগস্ট', 'সেপ্টেম্বর', 'অক্টোবর', 'নভেম্বর', 'ডিসেম্বর'], - 'weekdays' => ['রবিবার', 'সোমবার', 'মঙ্গলবার', 'বুধবার', 'বৃহস্পতিবার', 'শুক্রবার', 'শনিবার'], - 'weekdays_short' => ['রবি', 'সোম', 'মঙ্গল', 'বুধ', 'বৃহঃ', 'শুক্র', 'শনি'], - 'weekdays_min' => ['রবি', 'সোম', 'মঙ্গল', 'বুধ', 'বৃহঃ', 'শুক্র', 'শনি'], - 'first_day_of_week' => 5, - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/bn_IN.php b/vendor/nesbot/carbon/src/Carbon/Lang/bn_IN.php deleted file mode 100644 index 8b3a50e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/bn_IN.php +++ /dev/null @@ -1,26 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - IBM Globalization Center of Competency, Yamato Software Laboratory bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/bn.php', [ - 'formats' => [ - 'L' => 'D/M/YY', - ], - 'months' => ['জানুয়ারী', 'ফেব্রুয়ারী', 'মার্চ', 'এপ্রিল', 'মে', 'জুন', 'জুলাই', 'আগস্ট', 'সেপ্টেম্বর', 'অক্টোবর', 'নভেম্বর', 'ডিসেম্বর'], - 'months_short' => ['জানু', 'ফেব', 'মার্চ', 'এপ্রিল', 'মে', 'জুন', 'জুলাই', 'আগস্ট', 'সেপ্টেম্বর', 'অক্টোবর', 'নভেম্বর', 'ডিসেম্বর'], - 'weekdays' => ['রবিবার', 'সোমবার', 'মঙ্গলবার', 'বুধবার', 'বৃহস্পতিবার', 'শুক্রবার', 'শনিবার'], - 'weekdays_short' => ['রবি', 'সোম', 'মঙ্গল', 'বুধ', 'বৃহস্পতি', 'শুক্র', 'শনি'], - 'weekdays_min' => ['রবি', 'সোম', 'মঙ্গল', 'বুধ', 'বৃহস্পতি', 'শুক্র', 'শনি'], - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/bo.php b/vendor/nesbot/carbon/src/Carbon/Lang/bo.php deleted file mode 100644 index 9739f46..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/bo.php +++ /dev/null @@ -1,71 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Josh Soref - * - JD Isaacks - */ -return [ - 'year' => '{1}ལོ་གཅིག|]1,Inf[:count ལོ', - 'month' => '{1}ཟླ་བ་གཅིག|]1,Inf[:count ཟླ་བ', - 'week' => ':count བདུན་ཕྲག', - 'day' => '{1}ཉིན་གཅིག|]1,Inf[:count ཉིན་', - 'hour' => '{1}ཆུ་ཚོད་གཅིག|]1,Inf[:count ཆུ་ཚོད', - 'minute' => '{1}སྐར་མ་གཅིག|]1,Inf[:count སྐར་མ', - 'second' => '{1}ལམ་སང|]1,Inf[:count སྐར་ཆ།', - 'ago' => ':time སྔན་ལ', - 'from_now' => ':time ལ་', - 'diff_yesterday' => 'ཁ་སང', - 'diff_today' => 'དི་རིང', - 'diff_tomorrow' => 'སང་ཉིན', - 'formats' => [ - 'LT' => 'A h:mm', - 'LTS' => 'A h:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY, A h:mm', - 'LLLL' => 'dddd, D MMMM YYYY, A h:mm', - ], - 'calendar' => [ - 'sameDay' => '[དི་རིང] LT', - 'nextDay' => '[སང་ཉིན] LT', - 'nextWeek' => '[བདུན་ཕྲག་རྗེས་མ], LT', - 'lastDay' => '[ཁ་སང] LT', - 'lastWeek' => '[བདུན་ཕྲག་མཐའ་མ] dddd, LT', - 'sameElse' => 'L', - ], - 'meridiem' => static function ($hour) { - if ($hour < 4) { - return 'མཚན་མོ'; - } - if ($hour < 10) { - return 'ཞོགས་ཀས'; - } - if ($hour < 17) { - return 'ཉིན་གུང'; - } - if ($hour < 20) { - return 'དགོང་དག'; - } - - return 'མཚན་མོ'; - }, - 'months' => ['ཟླ་བ་དང་པོ', 'ཟླ་བ་གཉིས་པ', 'ཟླ་བ་གསུམ་པ', 'ཟླ་བ་བཞི་པ', 'ཟླ་བ་ལྔ་པ', 'ཟླ་བ་དྲུག་པ', 'ཟླ་བ་བདུན་པ', 'ཟླ་བ་བརྒྱད་པ', 'ཟླ་བ་དགུ་པ', 'ཟླ་བ་བཅུ་པ', 'ཟླ་བ་བཅུ་གཅིག་པ', 'ཟླ་བ་བཅུ་གཉིས་པ'], - 'months_short' => ['ཟླ་བ་དང་པོ', 'ཟླ་བ་གཉིས་པ', 'ཟླ་བ་གསུམ་པ', 'ཟླ་བ་བཞི་པ', 'ཟླ་བ་ལྔ་པ', 'ཟླ་བ་དྲུག་པ', 'ཟླ་བ་བདུན་པ', 'ཟླ་བ་བརྒྱད་པ', 'ཟླ་བ་དགུ་པ', 'ཟླ་བ་བཅུ་པ', 'ཟླ་བ་བཅུ་གཅིག་པ', 'ཟླ་བ་བཅུ་གཉིས་པ'], - 'weekdays' => ['གཟའ་ཉི་མ་', 'གཟའ་ཟླ་བ་', 'གཟའ་མིག་དམར་', 'གཟའ་ལྷག་པ་', 'གཟའ་ཕུར་བུ', 'གཟའ་པ་སངས་', 'གཟའ་སྤེན་པ་'], - 'weekdays_short' => ['ཉི་མ་', 'ཟླ་བ་', 'མིག་དམར་', 'ལྷག་པ་', 'ཕུར་བུ', 'པ་སངས་', 'སྤེན་པ་'], - 'weekdays_min' => ['ཉི་མ་', 'ཟླ་བ་', 'མིག་དམར་', 'ལྷག་པ་', 'ཕུར་བུ', 'པ་སངས་', 'སྤེན་པ་'], - 'list' => [', ', ' ཨནད་ '], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'months_standalone' => ['ཟླ་བ་དང་པོ་', 'ཟླ་བ་གཉིས་པ་', 'ཟླ་བ་གསུམ་པ་', 'ཟླ་བ་བཞི་པ་', 'ཟླ་བ་ལྔ་པ་', 'ཟླ་བ་དྲུག་པ་', 'ཟླ་བ་བདུན་པ་', 'ཟླ་བ་བརྒྱད་པ་', 'ཟླ་བ་དགུ་པ་', 'ཟླ་བ་བཅུ་པ་', 'ཟླ་བ་བཅུ་གཅིག་པ་', 'ཟླ་བ་བཅུ་གཉིས་པ་'], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/bo_CN.php b/vendor/nesbot/carbon/src/Carbon/Lang/bo_CN.php deleted file mode 100644 index 380abb1..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/bo_CN.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/bo.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/bo_IN.php b/vendor/nesbot/carbon/src/Carbon/Lang/bo_IN.php deleted file mode 100644 index ca50d04..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/bo_IN.php +++ /dev/null @@ -1,29 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/bo.php', [ - 'meridiem' => ['སྔ་དྲོ་', 'ཕྱི་དྲོ་'], - 'weekdays' => ['གཟའ་ཉི་མ་', 'གཟའ་ཟླ་བ་', 'གཟའ་མིག་དམར་', 'གཟའ་ལྷག་པ་', 'གཟའ་ཕུར་བུ་', 'གཟའ་པ་སངས་', 'གཟའ་སྤེན་པ་'], - 'weekdays_short' => ['ཉི་མ་', 'ཟླ་བ་', 'མིག་དམར་', 'ལྷག་པ་', 'ཕུར་བུ་', 'པ་སངས་', 'སྤེན་པ་'], - 'weekdays_min' => ['ཉི་མ་', 'ཟླ་བ་', 'མིག་དམར་', 'ལྷག་པ་', 'ཕུར་བུ་', 'པ་སངས་', 'སྤེན་པ་'], - 'months' => ['ཟླ་བ་དང་པོ', 'ཟླ་བ་གཉིས་པ', 'ཟླ་བ་གསུམ་པ', 'ཟླ་བ་བཞི་པ', 'ཟླ་བ་ལྔ་པ', 'ཟླ་བ་དྲུག་པ', 'ཟླ་བ་བདུན་པ', 'ཟླ་བ་བརྒྱད་པ', 'ཟླ་བ་དགུ་པ', 'ཟླ་བ་བཅུ་པ', 'ཟླ་བ་བཅུ་གཅིག་པ', 'ཟླ་བ་བཅུ་གཉིས་པ'], - 'months_short' => ['ཟླ་༡', 'ཟླ་༢', 'ཟླ་༣', 'ཟླ་༤', 'ཟླ་༥', 'ཟླ་༦', 'ཟླ་༧', 'ཟླ་༨', 'ཟླ་༩', 'ཟླ་༡༠', 'ཟླ་༡༡', 'ཟླ་༡༢'], - 'months_standalone' => ['ཟླ་བ་དང་པོ་', 'ཟླ་བ་གཉིས་པ་', 'ཟླ་བ་གསུམ་པ་', 'ཟླ་བ་བཞི་པ་', 'ཟླ་བ་ལྔ་པ་', 'ཟླ་བ་དྲུག་པ་', 'ཟླ་བ་བདུན་པ་', 'ཟླ་བ་བརྒྱད་པ་', 'ཟླ་བ་དགུ་པ་', 'ཟླ་བ་བཅུ་པ་', 'ཟླ་བ་བཅུ་གཅིག་པ་', 'ཟླ་བ་བཅུ་གཉིས་པ་'], - 'weekend' => [0, 0], - 'formats' => [ - 'LT' => 'h:mm a', - 'LTS' => 'h:mm:ss a', - 'L' => 'YYYY-MM-DD', - 'LL' => 'YYYY ལོའི་MMMཚེས་D', - 'LLL' => 'སྤྱི་ལོ་YYYY MMMMའི་ཚེས་D h:mm a', - 'LLLL' => 'YYYY MMMMའི་ཚེས་D, dddd h:mm a', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/br.php b/vendor/nesbot/carbon/src/Carbon/Lang/br.php deleted file mode 100644 index cdc0545..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/br.php +++ /dev/null @@ -1,74 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - François B - * - Serhan Apaydın - * - JD Isaacks - */ -return [ - 'year' => '{1}:count bloaz|{3,4,5,9}:count bloaz|[0,Inf[:count vloaz', - 'a_year' => '{1}ur bloaz|{3,4,5,9}:count bloaz|[0,Inf[:count vloaz', - 'month' => '{1}:count miz|{2}:count viz|[0,Inf[:count miz', - 'a_month' => '{1}ur miz|{2}:count viz|[0,Inf[:count miz', - 'week' => ':count sizhun', - 'a_week' => '{1}ur sizhun|:count sizhun', - 'day' => '{1}:count devezh|{2}:count zevezh|[0,Inf[:count devezh', - 'a_day' => '{1}un devezh|{2}:count zevezh|[0,Inf[:count devezh', - 'hour' => ':count eur', - 'a_hour' => '{1}un eur|:count eur', - 'minute' => '{1}:count vunutenn|{2}:count vunutenn|[0,Inf[:count munutenn', - 'a_minute' => '{1}ur vunutenn|{2}:count vunutenn|[0,Inf[:count munutenn', - 'second' => ':count eilenn', - 'a_second' => '{1}un nebeud segondennoù|[0,Inf[:count eilenn', - 'ago' => ':time \'zo', - 'from_now' => 'a-benn :time', - 'diff_now' => 'bremañ', - 'diff_today' => 'Hiziv', - 'diff_today_regexp' => 'Hiziv(?:\\s+da)?', - 'diff_yesterday' => 'decʼh', - 'diff_yesterday_regexp' => 'Dec\'h(?:\\s+da)?', - 'diff_tomorrow' => 'warcʼhoazh', - 'diff_tomorrow_regexp' => 'Warc\'hoazh(?:\\s+da)?', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D [a viz] MMMM YYYY', - 'LLL' => 'D [a viz] MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D [a viz] MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[Hiziv da] LT', - 'nextDay' => '[Warc\'hoazh da] LT', - 'nextWeek' => 'dddd [da] LT', - 'lastDay' => '[Dec\'h da] LT', - 'lastWeek' => 'dddd [paset da] LT', - 'sameElse' => 'L', - ], - 'ordinal' => static fn ($number) => $number.($number === 1 ? 'añ' : 'vet'), - 'months' => ['Genver', 'C\'hwevrer', 'Meurzh', 'Ebrel', 'Mae', 'Mezheven', 'Gouere', 'Eost', 'Gwengolo', 'Here', 'Du', 'Kerzu'], - 'months_short' => ['Gen', 'C\'hwe', 'Meu', 'Ebr', 'Mae', 'Eve', 'Gou', 'Eos', 'Gwe', 'Her', 'Du', 'Ker'], - 'weekdays' => ['Sul', 'Lun', 'Meurzh', 'Merc\'her', 'Yaou', 'Gwener', 'Sadorn'], - 'weekdays_short' => ['Sul', 'Lun', 'Meu', 'Mer', 'Yao', 'Gwe', 'Sad'], - 'weekdays_min' => ['Su', 'Lu', 'Me', 'Mer', 'Ya', 'Gw', 'Sa'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => [', ', ' hag '], - 'meridiem' => ['A.M.', 'G.M.'], - - 'y' => ':count bl.', - 'd' => ':count d', - 'h' => ':count e', - 'min' => ':count min', - 's' => ':count s', -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/br_FR.php b/vendor/nesbot/carbon/src/Carbon/Lang/br_FR.php deleted file mode 100644 index 7f54185..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/br_FR.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/br.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/brx.php b/vendor/nesbot/carbon/src/Carbon/Lang/brx.php deleted file mode 100644 index a0a7bf9..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/brx.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/brx_IN.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/brx_IN.php b/vendor/nesbot/carbon/src/Carbon/Lang/brx_IN.php deleted file mode 100644 index e678aa9..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/brx_IN.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Red Hat Pune bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'M/D/YY', - ], - 'months' => ['जानुवारी', 'फेब्रुवारी', 'मार्स', 'एफ्रिल', 'मे', 'जुन', 'जुलाइ', 'आगस्थ', 'सेबथेज्ब़र', 'अखथबर', 'नबेज्ब़र', 'दिसेज्ब़र'], - 'months_short' => ['जानुवारी', 'फेब्रुवारी', 'मार्स', 'एप्रिल', 'मे', 'जुन', 'जुलाइ', 'आगस्थ', 'सेबथेज्ब़र', 'अखथबर', 'नबेज्ब़र', 'दिसेज्ब़र'], - 'weekdays' => ['रबिबार', 'सोबार', 'मंगलबार', 'बुदबार', 'बिसथिबार', 'सुखुरबार', 'सुनिबार'], - 'weekdays_short' => ['रबि', 'सम', 'मंगल', 'बुद', 'बिसथि', 'सुखुर', 'सुनि'], - 'weekdays_min' => ['रबि', 'सम', 'मंगल', 'बुद', 'बिसथि', 'सुखुर', 'सुनि'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['फुं.', 'बेलासे.'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/bs.php b/vendor/nesbot/carbon/src/Carbon/Lang/bs.php deleted file mode 100644 index 52b6d12..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/bs.php +++ /dev/null @@ -1,93 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - bokideckonja - * - Josh Soref - * - François B - * - shaishavgandhi05 - * - Serhan Apaydın - * - JD Isaacks - * - Ademir Šehić - */ - -use Carbon\CarbonInterface; - -return [ - 'year' => ':count godina|:count godine|:count godina', - 'y' => ':count godina|:count godine|:count godina', - 'month' => ':count mjesec|:count mjeseca|:count mjeseci', - 'm' => ':count mjesec|:count mjeseca|:count mjeseci', - 'week' => ':count sedmica|:count sedmice|:count sedmica', - 'w' => ':count sedmica|:count sedmice|:count sedmica', - 'day' => ':count dan|:count dana|:count dana', - 'd' => ':count dan|:count dana|:count dana', - 'hour' => ':count sat|:count sata|:count sati', - 'h' => ':count sat|:count sata|:count sati', - 'minute' => ':count minut|:count minuta|:count minuta', - 'min' => ':count minut|:count minuta|:count minuta', - 'second' => ':count sekund|:count sekunda|:count sekundi', - 's' => ':count sekund|:count sekunda|:count sekundi', - - 'ago' => 'prije :time', - 'from_now' => 'za :time', - 'after' => 'nakon :time', - 'before' => ':time ranije', - - 'year_ago' => ':count godinu|:count godine|:count godina', - 'year_from_now' => ':count godinu|:count godine|:count godina', - 'week_ago' => ':count sedmicu|:count sedmice|:count sedmica', - 'week_from_now' => ':count sedmicu|:count sedmice|:count sedmica', - - 'diff_now' => 'sada', - 'diff_today' => 'danas', - 'diff_today_regexp' => 'danas(?:\\s+u)?', - 'diff_yesterday' => 'jučer', - 'diff_yesterday_regexp' => 'jučer(?:\\s+u)?', - 'diff_tomorrow' => 'sutra', - 'diff_tomorrow_regexp' => 'sutra(?:\\s+u)?', - 'formats' => [ - 'LT' => 'H:mm', - 'LTS' => 'H:mm:ss', - 'L' => 'DD.MM.YYYY', - 'LL' => 'D. MMMM YYYY', - 'LLL' => 'D. MMMM YYYY H:mm', - 'LLLL' => 'dddd, D. MMMM YYYY H:mm', - ], - 'calendar' => [ - 'sameDay' => '[danas u] LT', - 'nextDay' => '[sutra u] LT', - 'nextWeek' => static fn (CarbonInterface $current) => match ($current->dayOfWeek) { - 0 => '[u] [nedjelju] [u] LT', - 3 => '[u] [srijedu] [u] LT', - 6 => '[u] [subotu] [u] LT', - default => '[u] dddd [u] LT', - }, - 'lastDay' => '[jučer u] LT', - 'lastWeek' => static fn (CarbonInterface $current) => match ($current->dayOfWeek) { - 0, 3 => '[prošlu] dddd [u] LT', - 6 => '[prošle] [subote] [u] LT', - default => '[prošli] dddd [u] LT', - }, - 'sameElse' => 'L', - ], - 'ordinal' => ':number.', - 'months' => ['januar', 'februar', 'mart', 'april', 'maj', 'juni', 'juli', 'august', 'septembar', 'oktobar', 'novembar', 'decembar'], - 'months_short' => ['jan.', 'feb.', 'mar.', 'apr.', 'maj.', 'jun.', 'jul.', 'aug.', 'sep.', 'okt.', 'nov.', 'dec.'], - 'weekdays' => ['nedjelja', 'ponedjeljak', 'utorak', 'srijeda', 'četvrtak', 'petak', 'subota'], - 'weekdays_short' => ['ned.', 'pon.', 'uto.', 'sri.', 'čet.', 'pet.', 'sub.'], - 'weekdays_min' => ['ne', 'po', 'ut', 'sr', 'če', 'pe', 'su'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'list' => [', ', ' i '], - 'meridiem' => ['prijepodne', 'popodne'], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/bs_BA.php b/vendor/nesbot/carbon/src/Carbon/Lang/bs_BA.php deleted file mode 100644 index 0a59117..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/bs_BA.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/bs.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/bs_Cyrl.php b/vendor/nesbot/carbon/src/Carbon/Lang/bs_Cyrl.php deleted file mode 100644 index e1a1744..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/bs_Cyrl.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/bs.php', [ - 'meridiem' => ['пре подне', 'поподне'], - 'weekdays' => ['недјеља', 'понедјељак', 'уторак', 'сриједа', 'четвртак', 'петак', 'субота'], - 'weekdays_short' => ['нед', 'пон', 'уто', 'сри', 'чет', 'пет', 'суб'], - 'weekdays_min' => ['нед', 'пон', 'уто', 'сри', 'чет', 'пет', 'суб'], - 'months' => ['јануар', 'фебруар', 'март', 'април', 'мај', 'јуни', 'јули', 'аугуст', 'септембар', 'октобар', 'новембар', 'децембар'], - 'months_short' => ['јан', 'феб', 'мар', 'апр', 'мај', 'јун', 'јул', 'ауг', 'сеп', 'окт', 'нов', 'дец'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'D.M.YYYY.', - 'LL' => 'DD.MM.YYYY.', - 'LLL' => 'DD. MMMM YYYY. HH:mm', - 'LLLL' => 'dddd, DD. MMMM YYYY. HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/bs_Latn.php b/vendor/nesbot/carbon/src/Carbon/Lang/bs_Latn.php deleted file mode 100644 index b4e363e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/bs_Latn.php +++ /dev/null @@ -1,13 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/bs.php', [ -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/byn.php b/vendor/nesbot/carbon/src/Carbon/Lang/byn.php deleted file mode 100644 index 7125f3d..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/byn.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/byn_ER.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/byn_ER.php b/vendor/nesbot/carbon/src/Carbon/Lang/byn_ER.php deleted file mode 100644 index ad67533..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/byn_ER.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Ge'ez Frontier Foundation locales@geez.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YYYY', - ], - 'months' => ['ልደትሪ', 'ካብኽብቲ', 'ክብላ', 'ፋጅኺሪ', 'ክቢቅሪ', 'ምኪኤል ትጓ̅ኒሪ', 'ኰርኩ', 'ማርያም ትሪ', 'ያኸኒ መሳቅለሪ', 'መተሉ', 'ምኪኤል መሽወሪ', 'ተሕሳስሪ'], - 'months_short' => ['ልደት', 'ካብኽ', 'ክብላ', 'ፋጅኺ', 'ክቢቅ', 'ም/ት', 'ኰር', 'ማርያ', 'ያኸኒ', 'መተሉ', 'ም/ም', 'ተሕሳ'], - 'weekdays' => ['ሰንበር ቅዳዅ', 'ሰኑ', 'ሰሊጝ', 'ለጓ ወሪ ለብዋ', 'ኣምድ', 'ኣርብ', 'ሰንበር ሽጓዅ'], - 'weekdays_short' => ['ሰ/ቅ', 'ሰኑ', 'ሰሊጝ', 'ለጓ', 'ኣምድ', 'ኣርብ', 'ሰ/ሽ'], - 'weekdays_min' => ['ሰ/ቅ', 'ሰኑ', 'ሰሊጝ', 'ለጓ', 'ኣምድ', 'ኣርብ', 'ሰ/ሽ'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['ፋዱስ ጃብ', 'ፋዱስ ደምቢ'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ca.php b/vendor/nesbot/carbon/src/Carbon/Lang/ca.php deleted file mode 100644 index 824c9ce..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ca.php +++ /dev/null @@ -1,117 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - mestremuten - * - François B - * - Marc Ordinas i Llopis - * - Pere Orga - * - JD Isaacks - * - Quentí - * - Víctor Díaz - * - Xavi - * - qcardona - */ - -use Carbon\CarbonInterface; - -return [ - 'year' => ':count any|:count anys', - 'a_year' => 'un any|:count anys', - 'y' => ':count any|:count anys', - 'month' => ':count mes|:count mesos', - 'a_month' => 'un mes|:count mesos', - 'm' => ':count mes|:count mesos', - 'week' => ':count setmana|:count setmanes', - 'a_week' => 'una setmana|:count setmanes', - 'w' => ':count setmana|:count setmanes', - 'day' => ':count dia|:count dies', - 'a_day' => 'un dia|:count dies', - 'd' => ':count d', - 'hour' => ':count hora|:count hores', - 'a_hour' => 'una hora|:count hores', - 'h' => ':count h', - 'minute' => ':count minut|:count minuts', - 'a_minute' => 'un minut|:count minuts', - 'min' => ':count min', - 'second' => ':count segon|:count segons', - 'a_second' => 'uns segons|:count segons', - 's' => ':count s', - 'ago' => 'fa :time', - 'from_now' => 'd\'aquí a :time', - 'after' => ':time després', - 'before' => ':time abans', - 'diff_now' => 'ara mateix', - 'diff_today' => 'avui', - 'diff_today_regexp' => 'avui(?:\\s+a)?(?:\\s+les)?', - 'diff_yesterday' => 'ahir', - 'diff_yesterday_regexp' => 'ahir(?:\\s+a)?(?:\\s+les)?', - 'diff_tomorrow' => 'demà', - 'diff_tomorrow_regexp' => 'demà(?:\\s+a)?(?:\\s+les)?', - 'diff_before_yesterday' => 'abans d\'ahir', - 'diff_after_tomorrow' => 'demà passat', - 'period_recurrences' => ':count cop|:count cops', - 'period_interval' => 'cada :interval', - 'period_start_date' => 'de :date', - 'period_end_date' => 'fins a :date', - 'formats' => [ - 'LT' => 'H:mm', - 'LTS' => 'H:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM [de] YYYY', - 'LLL' => 'D MMMM [de] YYYY [a les] H:mm', - 'LLLL' => 'dddd D MMMM [de] YYYY [a les] H:mm', - ], - 'calendar' => [ - 'sameDay' => static function (CarbonInterface $current) { - return '[avui a '.($current->hour !== 1 ? 'les' : 'la').'] LT'; - }, - 'nextDay' => static function (CarbonInterface $current) { - return '[demà a '.($current->hour !== 1 ? 'les' : 'la').'] LT'; - }, - 'nextWeek' => static function (CarbonInterface $current) { - return 'dddd [a '.($current->hour !== 1 ? 'les' : 'la').'] LT'; - }, - 'lastDay' => static function (CarbonInterface $current) { - return '[ahir a '.($current->hour !== 1 ? 'les' : 'la').'] LT'; - }, - 'lastWeek' => static function (CarbonInterface $current) { - return '[el] dddd [passat a '.($current->hour !== 1 ? 'les' : 'la').'] LT'; - }, - 'sameElse' => 'L', - ], - 'ordinal' => static function ($number, $period) { - return $number.( - ($period === 'w' || $period === 'W') ? 'a' : ( - ($number === 1) ? 'r' : ( - ($number === 2) ? 'n' : ( - ($number === 3) ? 'r' : ( - ($number === 4) ? 't' : 'è' - ) - ) - ) - ) - ); - }, - 'months' => ['de gener', 'de febrer', 'de març', 'd\'abril', 'de maig', 'de juny', 'de juliol', 'd\'agost', 'de setembre', 'd\'octubre', 'de novembre', 'de desembre'], - 'months_standalone' => ['gener', 'febrer', 'març', 'abril', 'maig', 'juny', 'juliol', 'agost', 'setembre', 'octubre', 'novembre', 'desembre'], - 'months_short' => ['de gen.', 'de febr.', 'de març', 'd\'abr.', 'de maig', 'de juny', 'de jul.', 'd\'ag.', 'de set.', 'd\'oct.', 'de nov.', 'de des.'], - 'months_short_standalone' => ['gen.', 'febr.', 'març', 'abr.', 'maig', 'juny', 'jul.', 'ag.', 'set.', 'oct.', 'nov.', 'des.'], - 'months_regexp' => '/(D[oD]?[\s,]+MMMM?|L{2,4}|l{2,4})/', - 'weekdays' => ['diumenge', 'dilluns', 'dimarts', 'dimecres', 'dijous', 'divendres', 'dissabte'], - 'weekdays_short' => ['dg.', 'dl.', 'dt.', 'dc.', 'dj.', 'dv.', 'ds.'], - 'weekdays_min' => ['dg', 'dl', 'dt', 'dc', 'dj', 'dv', 'ds'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => [', ', ' i '], - 'meridiem' => ['a. m.', 'p. m.'], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ca_AD.php b/vendor/nesbot/carbon/src/Carbon/Lang/ca_AD.php deleted file mode 100644 index 861acd2..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ca_AD.php +++ /dev/null @@ -1,13 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/ca.php', [ -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ca_ES.php b/vendor/nesbot/carbon/src/Carbon/Lang/ca_ES.php deleted file mode 100644 index 5004978..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ca_ES.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/ca.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ca_ES_Valencia.php b/vendor/nesbot/carbon/src/Carbon/Lang/ca_ES_Valencia.php deleted file mode 100644 index 1c16421..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ca_ES_Valencia.php +++ /dev/null @@ -1,23 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -use Symfony\Component\Translation\PluralizationRules; - -// @codeCoverageIgnoreStart -if (class_exists(PluralizationRules::class)) { - PluralizationRules::set(static function ($number) { - return PluralizationRules::get($number, 'ca'); - }, 'ca_ES_Valencia'); -} -// @codeCoverageIgnoreEnd - -return array_replace_recursive(require __DIR__.'/ca.php', [ -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ca_FR.php b/vendor/nesbot/carbon/src/Carbon/Lang/ca_FR.php deleted file mode 100644 index 861acd2..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ca_FR.php +++ /dev/null @@ -1,13 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/ca.php', [ -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ca_IT.php b/vendor/nesbot/carbon/src/Carbon/Lang/ca_IT.php deleted file mode 100644 index 861acd2..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ca_IT.php +++ /dev/null @@ -1,13 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/ca.php', [ -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ccp.php b/vendor/nesbot/carbon/src/Carbon/Lang/ccp.php deleted file mode 100644 index b536d4b..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ccp.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'weekdays' => ['𑄢𑄧𑄝𑄨𑄝𑄢𑄴', '𑄥𑄧𑄟𑄴𑄝𑄢𑄴', '𑄟𑄧𑄁𑄉𑄧𑄣𑄴𑄝𑄢𑄴', '𑄝𑄪𑄖𑄴𑄝𑄢𑄴', '𑄝𑄳𑄢𑄨𑄥𑄪𑄛𑄴𑄝𑄢𑄴', '𑄥𑄪𑄇𑄴𑄇𑄮𑄢𑄴𑄝𑄢𑄴', '𑄥𑄧𑄚𑄨𑄝𑄢𑄴'], - 'weekdays_short' => ['𑄢𑄧𑄝𑄨', '𑄥𑄧𑄟𑄴', '𑄟𑄧𑄁𑄉𑄧𑄣𑄴', '𑄝𑄪𑄖𑄴', '𑄝𑄳𑄢𑄨𑄥𑄪𑄛𑄴', '𑄥𑄪𑄇𑄴𑄇𑄮𑄢𑄴', '𑄥𑄧𑄚𑄨'], - 'weekdays_min' => ['𑄢𑄧𑄝𑄨', '𑄥𑄧𑄟𑄴', '𑄟𑄧𑄁𑄉𑄧𑄣𑄴', '𑄝𑄪𑄖𑄴', '𑄝𑄳𑄢𑄨𑄥𑄪𑄛𑄴', '𑄥𑄪𑄇𑄴𑄇𑄮𑄢𑄴', '𑄥𑄧𑄚𑄨'], - 'months' => ['𑄎𑄚𑄪𑄠𑄢𑄨', '𑄜𑄬𑄛𑄴𑄝𑄳𑄢𑄪𑄠𑄢𑄨', '𑄟𑄢𑄴𑄌𑄧', '𑄃𑄬𑄛𑄳𑄢𑄨𑄣𑄴', '𑄟𑄬', '𑄎𑄪𑄚𑄴', '𑄎𑄪𑄣𑄭', '𑄃𑄉𑄧𑄌𑄴𑄑𑄴', '𑄥𑄬𑄛𑄴𑄑𑄬𑄟𑄴𑄝𑄧𑄢𑄴', '𑄃𑄧𑄇𑄴𑄑𑄬𑄝𑄧𑄢𑄴', '𑄚𑄧𑄞𑄬𑄟𑄴𑄝𑄧𑄢𑄴', '𑄓𑄨𑄥𑄬𑄟𑄴𑄝𑄧𑄢𑄴'], - 'months_short' => ['𑄎𑄚𑄪', '𑄜𑄬𑄛𑄴', '𑄟𑄢𑄴𑄌𑄧', '𑄃𑄬𑄛𑄳𑄢𑄨𑄣𑄴', '𑄟𑄬', '𑄎𑄪𑄚𑄴', '𑄎𑄪𑄣𑄭', '𑄃𑄉𑄧𑄌𑄴𑄑𑄴', '𑄥𑄬𑄛𑄴𑄑𑄬𑄟𑄴𑄝𑄧𑄢𑄴', '𑄃𑄧𑄇𑄴𑄑𑄮𑄝𑄧𑄢𑄴', '𑄚𑄧𑄞𑄬𑄟𑄴𑄝𑄧𑄢𑄴', '𑄓𑄨𑄥𑄬𑄟𑄴𑄝𑄢𑄴'], - 'months_short_standalone' => ['𑄎𑄚𑄪𑄠𑄢𑄨', '𑄜𑄬𑄛𑄴𑄝𑄳𑄢𑄪𑄠𑄢𑄨', '𑄟𑄢𑄴𑄌𑄧', '𑄃𑄬𑄛𑄳𑄢𑄨𑄣𑄴', '𑄟𑄬', '𑄎𑄪𑄚𑄴', '𑄎𑄪𑄣𑄭', '𑄃𑄉𑄧𑄌𑄴𑄑𑄴', '𑄥𑄬𑄛𑄴𑄑𑄬𑄟𑄴𑄝𑄧𑄢𑄴', '𑄃𑄧𑄇𑄴𑄑𑄮𑄝𑄧𑄢𑄴', '𑄚𑄧𑄞𑄬𑄟𑄴𑄝𑄧𑄢𑄴', '𑄓𑄨𑄥𑄬𑄟𑄴𑄝𑄧𑄢𑄴'], - 'formats' => [ - 'LT' => 'h:mm a', - 'LTS' => 'h:mm:ss a', - 'L' => 'D/M/YYYY', - 'LL' => 'D MMM, YYYY', - 'LLL' => 'D MMMM, YYYY h:mm a', - 'LLLL' => 'dddd, D MMMM, YYYY h:mm a', - ], - 'first_day_of_week' => 0, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ccp_IN.php b/vendor/nesbot/carbon/src/Carbon/Lang/ccp_IN.php deleted file mode 100644 index c1fa8af..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ccp_IN.php +++ /dev/null @@ -1,14 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/ccp.php', [ - 'weekend' => [0, 0], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ce.php b/vendor/nesbot/carbon/src/Carbon/Lang/ce.php deleted file mode 100644 index f99f6ff..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ce.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/ce_RU.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ce_RU.php b/vendor/nesbot/carbon/src/Carbon/Lang/ce_RU.php deleted file mode 100644 index f769856..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ce_RU.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - ANCHR - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'YYYY.DD.MM', - ], - 'months' => ['Январь', 'Февраль', 'Март', 'Апрель', 'Май', 'Июнь', 'Июль', 'Август', 'Сентябрь', 'Октябрь', 'Ноябрь', 'Декабрь'], - 'months_short' => ['янв', 'фев', 'мар', 'апр', 'май', 'июн', 'июл', 'авг', 'сен', 'окт', 'ноя', 'дек'], - 'weekdays' => ['КӀиранан де', 'Оршотан де', 'Шинарин де', 'Кхаарин де', 'Еарин де', 'ПӀераскан де', 'Шот де'], - 'weekdays_short' => ['КӀ', 'Ор', 'Ши', 'Кх', 'Еа', 'ПӀ', 'Шо'], - 'weekdays_min' => ['КӀ', 'Ор', 'Ши', 'Кх', 'Еа', 'ПӀ', 'Шо'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - - 'year' => ':count шо', - 'y' => ':count шо', - 'a_year' => ':count шо', - - 'month' => ':count бутт', - 'm' => ':count бутт', - 'a_month' => ':count бутт', - - 'week' => ':count кӏира', - 'w' => ':count кӏира', - 'a_week' => ':count кӏира', - - 'day' => ':count де', - 'd' => ':count де', - 'a_day' => ':count де', - - 'hour' => ':count сахьт', - 'h' => ':count сахьт', - 'a_hour' => ':count сахьт', - - 'minute' => ':count минот', - 'min' => ':count минот', - 'a_minute' => ':count минот', - - 'second' => ':count секунд', - 's' => ':count секунд', - 'a_second' => ':count секунд', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/cgg.php b/vendor/nesbot/carbon/src/Carbon/Lang/cgg.php deleted file mode 100644 index 09bcc1c..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/cgg.php +++ /dev/null @@ -1,31 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'weekdays' => ['Sande', 'Orwokubanza', 'Orwakabiri', 'Orwakashatu', 'Orwakana', 'Orwakataano', 'Orwamukaaga'], - 'weekdays_short' => ['SAN', 'ORK', 'OKB', 'OKS', 'OKN', 'OKT', 'OMK'], - 'weekdays_min' => ['SAN', 'ORK', 'OKB', 'OKS', 'OKN', 'OKT', 'OMK'], - 'months' => ['Okwokubanza', 'Okwakabiri', 'Okwakashatu', 'Okwakana', 'Okwakataana', 'Okwamukaaga', 'Okwamushanju', 'Okwamunaana', 'Okwamwenda', 'Okwaikumi', 'Okwaikumi na kumwe', 'Okwaikumi na ibiri'], - 'months_short' => ['KBZ', 'KBR', 'KST', 'KKN', 'KTN', 'KMK', 'KMS', 'KMN', 'KMW', 'KKM', 'KNK', 'KNB'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], - - 'day' => ':count ruhanga', // less reliable - 'd' => ':count ruhanga', // less reliable - 'a_day' => ':count ruhanga', // less reliable -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/chr.php b/vendor/nesbot/carbon/src/Carbon/Lang/chr.php deleted file mode 100644 index e26190f..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/chr.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/chr_US.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/chr_US.php b/vendor/nesbot/carbon/src/Carbon/Lang/chr_US.php deleted file mode 100644 index 3fb0221..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/chr_US.php +++ /dev/null @@ -1,59 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Cherokee Nation Joseph Erb josepherb7@gmail.com - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'MM/DD/YYYY', - ], - 'months' => ['ᎤᏃᎸᏔᏅ', 'ᎧᎦᎵ', 'ᎠᏅᏱ', 'ᎧᏬᏂ', 'ᎠᏂᏍᎬᏘ', 'ᏕᎭᎷᏱ', 'ᎫᏰᏉᏂ', 'ᎦᎶᏂ', 'ᏚᎵᏍᏗ', 'ᏚᏂᏅᏗ', 'ᏅᏓᏕᏆ', 'ᎥᏍᎩᏱ'], - 'months_short' => ['ᎤᏃ', 'ᎧᎦ', 'ᎠᏅ', 'ᎧᏬ', 'ᎠᏂ', 'ᏕᎭ', 'ᎫᏰ', 'ᎦᎶ', 'ᏚᎵ', 'ᏚᏂ', 'ᏅᏓ', 'ᎥᏍ'], - 'weekdays' => ['ᎤᎾᏙᏓᏆᏍᎬ', 'ᎤᎾᏙᏓᏉᏅᎯ', 'ᏔᎵᏁᎢᎦ', 'ᏦᎢᏁᎢᎦ', 'ᏅᎩᏁᎢᎦ', 'ᏧᎾᎩᎶᏍᏗ', 'ᎤᎾᏙᏓᏈᏕᎾ'], - 'weekdays_short' => ['ᏆᏍᎬ', 'ᏉᏅᎯ', 'ᏔᎵᏁ', 'ᏦᎢᏁ', 'ᏅᎩᏁ', 'ᏧᎾᎩ', 'ᏈᏕᎾ'], - 'weekdays_min' => ['ᏆᏍᎬ', 'ᏉᏅᎯ', 'ᏔᎵᏁ', 'ᏦᎢᏁ', 'ᏅᎩᏁ', 'ᏧᎾᎩ', 'ᏈᏕᎾ'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['ᏌᎾᎴ', 'ᏒᎯᏱᎢᏗᏢ', 'ꮜꮎꮄ', 'ꮢꭿᏹꭲꮧꮲ'], - - 'second' => ':count ᏐᎢ', // less reliable - 's' => ':count ᏐᎢ', // less reliable - 'a_second' => ':count ᏐᎢ', // less reliable - - 'year' => ':count ᏑᏕᏘᏴᏓ', - 'y' => ':count ᏑᏕᏘᏴᏓ', - 'a_year' => ':count ᏑᏕᏘᏴᏓ', - - 'month' => ':count ᏏᏅᏙ', - 'm' => ':count ᏏᏅᏙ', - 'a_month' => ':count ᏏᏅᏙ', - - 'week' => ':count ᏑᎾᏙᏓᏆᏍᏗ', - 'w' => ':count ᏑᎾᏙᏓᏆᏍᏗ', - 'a_week' => ':count ᏑᎾᏙᏓᏆᏍᏗ', - - 'day' => ':count ᎢᎦ', - 'd' => ':count ᎢᎦ', - 'a_day' => ':count ᎢᎦ', - - 'hour' => ':count ᏑᏟᎶᏛ', - 'h' => ':count ᏑᏟᎶᏛ', - 'a_hour' => ':count ᏑᏟᎶᏛ', - - 'minute' => ':count ᎢᏯᏔᏬᏍᏔᏅ', - 'min' => ':count ᎢᏯᏔᏬᏍᏔᏅ', - 'a_minute' => ':count ᎢᏯᏔᏬᏍᏔᏅ', - - 'ago' => ':time ᏥᎨᏒ', - 'from_now' => 'ᎾᎿ :time', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ckb.php b/vendor/nesbot/carbon/src/Carbon/Lang/ckb.php deleted file mode 100644 index 35ac60a..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ckb.php +++ /dev/null @@ -1,90 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Swara Mohammed - * - Kawan Pshtiwan - */ -$months = [ - 'کانونی دووەم', - 'شوبات', - 'ئازار', - 'نیسان', - 'ئایار', - 'حوزەیران', - 'تەمموز', - 'ئاب', - 'ئەیلوول', - 'تشرینی یەکەم', - 'تشرینی دووەم', - 'کانونی یەکەم', -]; - -return [ - 'year' => implode('|', ['{0}:count ساڵێک', '{1}ساڵێک', '{2}دوو ساڵ', ']2,11[:count ساڵ', ']10,Inf[:count ساڵ']), - 'a_year' => implode('|', ['{0}:count ساڵێک', '{1}ساڵێک', '{2}دوو ساڵ', ']2,11[:count ساڵ', ']10,Inf[:count ساڵ']), - 'month' => implode('|', ['{0}:count مانگێک', '{1}مانگێک', '{2}دوو مانگ', ']2,11[:count مانگ', ']10,Inf[:count مانگ']), - 'a_month' => implode('|', ['{0}:count مانگێک', '{1}مانگێک', '{2}دوو مانگ', ']2,11[:count مانگ', ']10,Inf[:count مانگ']), - 'week' => implode('|', ['{0}:count هەفتەیەک', '{1}هەفتەیەک', '{2}دوو هەفتە', ']2,11[:count هەفتە', ']10,Inf[:count هەفتە']), - 'a_week' => implode('|', ['{0}:count هەفتەیەک', '{1}هەفتەیەک', '{2}دوو هەفتە', ']2,11[:count هەفتە', ']10,Inf[:count هەفتە']), - 'day' => implode('|', ['{0}:count ڕۆژێک', '{1}ڕۆژێک', '{2}دوو ڕۆژ', ']2,11[:count ڕۆژ', ']10,Inf[:count ڕۆژ']), - 'a_day' => implode('|', ['{0}:count ڕۆژێک', '{1}ڕۆژێک', '{2}دوو ڕۆژ', ']2,11[:count ڕۆژ', ']10,Inf[:count ڕۆژ']), - 'hour' => implode('|', ['{0}:count کاتژمێرێک', '{1}کاتژمێرێک', '{2}دوو کاتژمێر', ']2,11[:count کاتژمێر', ']10,Inf[:count کاتژمێر']), - 'a_hour' => implode('|', ['{0}:count کاتژمێرێک', '{1}کاتژمێرێک', '{2}دوو کاتژمێر', ']2,11[:count کاتژمێر', ']10,Inf[:count کاتژمێر']), - 'minute' => implode('|', ['{0}:count خولەکێک', '{1}خولەکێک', '{2}دوو خولەک', ']2,11[:count خولەک', ']10,Inf[:count خولەک']), - 'a_minute' => implode('|', ['{0}:count خولەکێک', '{1}خولەکێک', '{2}دوو خولەک', ']2,11[:count خولەک', ']10,Inf[:count خولەک']), - 'second' => implode('|', ['{0}:count چرکەیەک', '{1}چرکەیەک', '{2}دوو چرکە', ']2,11[:count چرکە', ']10,Inf[:count چرکە']), - 'a_second' => implode('|', ['{0}:count چرکەیەک', '{1}چرکەیەک', '{2}دوو چرکە', ']2,11[:count چرکە', ']10,Inf[:count چرکە']), - 'ago' => 'پێش :time', - 'from_now' => ':time لە ئێستاوە', - 'after' => 'دوای :time', - 'before' => 'پێش :time', - 'diff_now' => 'ئێستا', - 'diff_today' => 'ئەمڕۆ', - 'diff_today_regexp' => 'ڕۆژ(?:\\s+لە)?(?:\\s+کاتژمێر)?', - 'diff_yesterday' => 'دوێنێ', - 'diff_yesterday_regexp' => 'دوێنێ(?:\\s+لە)?(?:\\s+کاتژمێر)?', - 'diff_tomorrow' => 'سبەینێ', - 'diff_tomorrow_regexp' => 'سبەینێ(?:\\s+لە)?(?:\\s+کاتژمێر)?', - 'diff_before_yesterday' => 'پێش دوێنێ', - 'diff_after_tomorrow' => 'دوای سبەینێ', - 'period_recurrences' => implode('|', ['{0}جار', '{1}جار', '{2}:count دووجار', ']2,11[:count جار', ']10,Inf[:count جار']), - 'period_interval' => 'هەموو :interval', - 'period_start_date' => 'لە :date', - 'period_end_date' => 'بۆ :date', - 'months' => $months, - 'months_short' => $months, - 'weekdays' => ['یەکشەممە', 'دووشەممە', 'سێشەممە', 'چوارشەممە', 'پێنجشەممە', 'هەینی', 'شەممە'], - 'weekdays_short' => ['یەکشەممە', 'دووشەممە', 'سێشەممە', 'چوارشەممە', 'پێنجشەممە', 'هەینی', 'شەممە'], - 'weekdays_min' => ['یەکشەممە', 'دووشەممە', 'سێشەممە', 'چوارشەممە', 'پێنجشەممە', 'هەینی', 'شەممە'], - 'list' => ['، ', ' و '], - 'first_day_of_week' => 6, - 'day_of_first_week_of_year' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'D/M/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[ئەمڕۆ لە کاتژمێر] LT', - 'nextDay' => '[سبەینێ لە کاتژمێر] LT', - 'nextWeek' => 'dddd [لە کاتژمێر] LT', - 'lastDay' => '[دوێنێ لە کاتژمێر] LT', - 'lastWeek' => 'dddd [لە کاتژمێر] LT', - 'sameElse' => 'L', - ], - 'meridiem' => ['پ.ن', 'د.ن'], - 'weekend' => [5, 6], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/cmn.php b/vendor/nesbot/carbon/src/Carbon/Lang/cmn.php deleted file mode 100644 index 80b1d69..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/cmn.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/cmn_TW.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/cmn_TW.php b/vendor/nesbot/carbon/src/Carbon/Lang/cmn_TW.php deleted file mode 100644 index eee9c80..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/cmn_TW.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, - 'formats' => [ - 'L' => 'YYYY年MM月DD號', - ], - 'months' => ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'], - 'months_short' => [' 1月', ' 2月', ' 3月', ' 4月', ' 5月', ' 6月', ' 7月', ' 8月', ' 9月', '10月', '11月', '12月'], - 'weekdays' => ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'], - 'weekdays_short' => ['日', '一', '二', '三', '四', '五', '六'], - 'weekdays_min' => ['日', '一', '二', '三', '四', '五', '六'], - 'meridiem' => ['上午', '下午'], - - 'year' => ':count 年', - 'y' => ':count 年', - 'a_year' => ':count 年', - - 'month' => ':count 月', - 'm' => ':count 月', - 'a_month' => ':count 月', - - 'week' => ':count 周', - 'w' => ':count 周', - 'a_week' => ':count 周', - - 'day' => ':count 白天', - 'd' => ':count 白天', - 'a_day' => ':count 白天', - - 'hour' => ':count 小时', - 'h' => ':count 小时', - 'a_hour' => ':count 小时', - - 'minute' => ':count 分钟', - 'min' => ':count 分钟', - 'a_minute' => ':count 分钟', - - 'second' => ':count 秒', - 's' => ':count 秒', - 'a_second' => ':count 秒', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/crh.php b/vendor/nesbot/carbon/src/Carbon/Lang/crh.php deleted file mode 100644 index a1d7ce6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/crh.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/crh_UA.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/crh_UA.php b/vendor/nesbot/carbon/src/Carbon/Lang/crh_UA.php deleted file mode 100644 index 0513933..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/crh_UA.php +++ /dev/null @@ -1,56 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Reşat SABIQ tilde.birlik@gmail.com - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD.MM.YYYY', - ], - 'months' => ['Yanvar', 'Fevral', 'Mart', 'Aprel', 'Mayıs', 'İyun', 'İyul', 'Avgust', 'Sentâbr', 'Oktâbr', 'Noyabr', 'Dekabr'], - 'months_short' => ['Yan', 'Fev', 'Mar', 'Apr', 'May', 'İyn', 'İyl', 'Avg', 'Sen', 'Okt', 'Noy', 'Dek'], - 'weekdays' => ['Bazar', 'Bazarertesi', 'Salı', 'Çarşembe', 'Cumaaqşamı', 'Cuma', 'Cumaertesi'], - 'weekdays_short' => ['Baz', 'Ber', 'Sal', 'Çar', 'Caq', 'Cum', 'Cer'], - 'weekdays_min' => ['Baz', 'Ber', 'Sal', 'Çar', 'Caq', 'Cum', 'Cer'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['ÜE', 'ÜS'], - - 'year' => ':count yıl', - 'y' => ':count yıl', - 'a_year' => ':count yıl', - - 'month' => ':count ay', - 'm' => ':count ay', - 'a_month' => ':count ay', - - 'week' => ':count afta', - 'w' => ':count afta', - 'a_week' => ':count afta', - - 'day' => ':count kün', - 'd' => ':count kün', - 'a_day' => ':count kün', - - 'hour' => ':count saat', - 'h' => ':count saat', - 'a_hour' => ':count saat', - - 'minute' => ':count daqqa', - 'min' => ':count daqqa', - 'a_minute' => ':count daqqa', - - 'second' => ':count ekinci', - 's' => ':count ekinci', - 'a_second' => ':count ekinci', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/cs.php b/vendor/nesbot/carbon/src/Carbon/Lang/cs.php deleted file mode 100644 index 9530d36..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/cs.php +++ /dev/null @@ -1,124 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Philippe Vaucher - * - Jakub Tesinsky - * - Martin Suja - * - Nikos Timiopulos - * - Bohuslav Blín - * - Tsutomu Kuroda - * - tjku - * - Lukas Svoboda - * - Max Melentiev - * - Juanito Fatas - * - Akira Matsuda - * - Christopher Dell - * - Václav Pávek - * - CodeSkills - * - Tlapi - * - newman101 - * - Petr Kadlec - * - tommaskraus - * - Karel Sommer (calvera) - */ -$za = function ($time) { - return 'za '.strtr($time, [ - 'hodina' => 'hodinu', - 'minuta' => 'minutu', - 'sekunda' => 'sekundu', - ]); -}; - -$pred = function ($time) { - $time = strtr($time, [ - 'hodina' => 'hodinou', - 'minuta' => 'minutou', - 'sekunda' => 'sekundou', - ]); - $time = preg_replace('/hodiny?(?!\w)/', 'hodinami', $time); - $time = preg_replace('/minuty?(?!\w)/', 'minutami', $time); - $time = preg_replace('/sekundy?(?!\w)/', 'sekundami', $time); - - return "před $time"; -}; - -return [ - 'year' => ':count rok|:count roky|:count let', - 'y' => ':count rok|:count roky|:count let', - 'a_year' => 'rok|:count roky|:count let', - 'month' => ':count měsíc|:count měsíce|:count měsíců', - 'm' => ':count měs.', - 'a_month' => 'měsíc|:count měsíce|:count měsíců', - 'week' => ':count týden|:count týdny|:count týdnů', - 'w' => ':count týd.', - 'a_week' => 'týden|:count týdny|:count týdnů', - 'day' => ':count den|:count dny|:count dní', - 'd' => ':count den|:count dny|:count dní', - 'a_day' => 'den|:count dny|:count dní', - 'hour' => ':count hodina|:count hodiny|:count hodin', - 'h' => ':count hod.', - 'a_hour' => 'hodina|:count hodiny|:count hodin', - 'minute' => ':count minuta|:count minuty|:count minut', - 'min' => ':count min.', - 'a_minute' => 'minuta|:count minuty|:count minut', - 'second' => ':count sekunda|:count sekundy|:count sekund', - 's' => ':count sek.', - 'a_second' => 'pár sekund|:count sekundy|:count sekund', - - 'month_ago' => ':count měsícem|:count měsíci|:count měsíci', - 'a_month_ago' => 'měsícem|:count měsíci|:count měsíci', - 'day_ago' => ':count dnem|:count dny|:count dny', - 'a_day_ago' => 'dnem|:count dny|:count dny', - 'week_ago' => ':count týdnem|:count týdny|:count týdny', - 'a_week_ago' => 'týdnem|:count týdny|:count týdny', - 'year_ago' => ':count rokem|:count roky|:count lety', - 'y_ago' => ':count rok.|:count rok.|:count let.', - 'a_year_ago' => 'rokem|:count roky|:count lety', - - 'month_before' => ':count měsícem|:count měsíci|:count měsíci', - 'a_month_before' => 'měsícem|:count měsíci|:count měsíci', - 'day_before' => ':count dnem|:count dny|:count dny', - 'a_day_before' => 'dnem|:count dny|:count dny', - 'week_before' => ':count týdnem|:count týdny|:count týdny', - 'a_week_before' => 'týdnem|:count týdny|:count týdny', - 'year_before' => ':count rokem|:count roky|:count lety', - 'y_before' => ':count rok.|:count rok.|:count let.', - 'a_year_before' => 'rokem|:count roky|:count lety', - - 'ago' => $pred, - 'from_now' => $za, - 'before' => $pred, - 'after' => $za, - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'months' => ['ledna', 'února', 'března', 'dubna', 'května', 'června', 'července', 'srpna', 'září', 'října', 'listopadu', 'prosince'], - 'months_standalone' => ['leden', 'únor', 'březen', 'duben', 'květen', 'červen', 'červenec', 'srpen', 'září', 'říjen', 'listopad', 'prosinec'], - 'months_short' => ['led', 'úno', 'bře', 'dub', 'kvě', 'čvn', 'čvc', 'srp', 'zář', 'říj', 'lis', 'pro'], - 'months_regexp' => '/(DD?o?\.?(\[[^\[\]]*\]|\s)+MMMM?|L{2,4}|l{2,4})/', - 'weekdays' => ['neděle', 'pondělí', 'úterý', 'středa', 'čtvrtek', 'pátek', 'sobota'], - 'weekdays_short' => ['ned', 'pon', 'úte', 'stř', 'čtv', 'pát', 'sob'], - 'weekdays_min' => ['ne', 'po', 'út', 'st', 'čt', 'pá', 'so'], - 'list' => [', ', ' a '], - 'diff_now' => 'nyní', - 'diff_yesterday' => 'včera', - 'diff_tomorrow' => 'zítra', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD. MM. YYYY', - 'LL' => 'D. MMMM YYYY', - 'LLL' => 'D. MMMM YYYY HH:mm', - 'LLLL' => 'dddd D. MMMM YYYY HH:mm', - ], - 'meridiem' => ['dopoledne', 'odpoledne'], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/cs_CZ.php b/vendor/nesbot/carbon/src/Carbon/Lang/cs_CZ.php deleted file mode 100644 index ea2517e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/cs_CZ.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/cs.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/csb.php b/vendor/nesbot/carbon/src/Carbon/Lang/csb.php deleted file mode 100644 index a35d281..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/csb.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/csb_PL.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/csb_PL.php b/vendor/nesbot/carbon/src/Carbon/Lang/csb_PL.php deleted file mode 100644 index 25e0ca8..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/csb_PL.php +++ /dev/null @@ -1,41 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - csb_PL locale Michal Ostrowski bug-glibc-locales@gnu.org - */ -return [ - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'YYYY-MM-DD', - 'LL' => 'MMMM DD, YYYY', - 'LLL' => 'DD MMM HH:mm', - 'LLLL' => 'MMMM DD, YYYY HH:mm', - ], - 'months' => ['stëcznika', 'gromicznika', 'strëmiannika', 'łżëkwiata', 'maja', 'czerwińca', 'lëpińca', 'zélnika', 'séwnika', 'rujana', 'lëstopadnika', 'gòdnika'], - 'months_short' => ['stë', 'gro', 'str', 'łżë', 'maj', 'cze', 'lëp', 'zél', 'séw', 'ruj', 'lës', 'gòd'], - 'weekdays' => ['niedzela', 'pòniedzôłk', 'wtórk', 'strzoda', 'czwiôrtk', 'piątk', 'sobòta'], - 'weekdays_short' => ['nie', 'pòn', 'wtó', 'str', 'czw', 'pią', 'sob'], - 'weekdays_min' => ['nie', 'pòn', 'wtó', 'str', 'czw', 'pią', 'sob'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => [', ', ' a téż '], - 'two_words_connector' => ' a téż ', - 'year' => ':count rok', - 'month' => ':count miesiąc', - 'week' => ':count tidzéń', - 'day' => ':count dzéń', - 'hour' => ':count gòdzëna', - 'minute' => ':count minuta', - 'second' => ':count sekunda', -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/cu.php b/vendor/nesbot/carbon/src/Carbon/Lang/cu.php deleted file mode 100644 index d6d1312..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/cu.php +++ /dev/null @@ -1,52 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'months' => ['M01', 'M02', 'M03', 'M04', 'M05', 'M06', 'M07', 'M08', 'M09', 'M10', 'M11', 'M12'], - 'months_short' => ['M01', 'M02', 'M03', 'M04', 'M05', 'M06', 'M07', 'M08', 'M09', 'M10', 'M11', 'M12'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'YYYY-MM-DD', - 'LL' => 'YYYY MMM D', - 'LLL' => 'YYYY MMMM D HH:mm', - 'LLLL' => 'YYYY MMMM D, dddd HH:mm', - ], - - 'year' => ':count лѣто', - 'y' => ':count лѣто', - 'a_year' => ':count лѣто', - - 'month' => ':count мѣсѧць', - 'm' => ':count мѣсѧць', - 'a_month' => ':count мѣсѧць', - - 'week' => ':count сєдмица', - 'w' => ':count сєдмица', - 'a_week' => ':count сєдмица', - - 'day' => ':count дьнь', - 'd' => ':count дьнь', - 'a_day' => ':count дьнь', - - 'hour' => ':count година', - 'h' => ':count година', - 'a_hour' => ':count година', - - 'minute' => ':count малъ', // less reliable - 'min' => ':count малъ', // less reliable - 'a_minute' => ':count малъ', // less reliable - - 'second' => ':count въторъ', - 's' => ':count въторъ', - 'a_second' => ':count въторъ', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/cv.php b/vendor/nesbot/carbon/src/Carbon/Lang/cv.php deleted file mode 100644 index fe76968..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/cv.php +++ /dev/null @@ -1,65 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Josh Soref - * - François B - * - JD Isaacks - */ -return [ - 'year' => ':count ҫул', - 'a_year' => '{1}пӗр ҫул|:count ҫул', - 'month' => ':count уйӑх', - 'a_month' => '{1}пӗр уйӑх|:count уйӑх', - 'week' => ':count эрне', - 'a_week' => '{1}пӗр эрне|:count эрне', - 'day' => ':count кун', - 'a_day' => '{1}пӗр кун|:count кун', - 'hour' => ':count сехет', - 'a_hour' => '{1}пӗр сехет|:count сехет', - 'minute' => ':count минут', - 'a_minute' => '{1}пӗр минут|:count минут', - 'second' => ':count ҫеккунт', - 'a_second' => '{1}пӗр-ик ҫеккунт|:count ҫеккунт', - 'ago' => ':time каялла', - 'from_now' => static function ($time) { - return $time.(preg_match('/сехет$/u', $time) ? 'рен' : (preg_match('/ҫул/', $time) ? 'тан' : 'ран')); - }, - 'diff_yesterday' => 'Ӗнер', - 'diff_today' => 'Паян', - 'diff_tomorrow' => 'Ыран', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD-MM-YYYY', - 'LL' => 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]', - 'LLL' => 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm', - 'LLLL' => 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[Паян] LT [сехетре]', - 'nextDay' => '[Ыран] LT [сехетре]', - 'nextWeek' => '[Ҫитес] dddd LT [сехетре]', - 'lastDay' => '[Ӗнер] LT [сехетре]', - 'lastWeek' => '[Иртнӗ] dddd LT [сехетре]', - 'sameElse' => 'L', - ], - 'ordinal' => ':number-мӗш', - 'months' => ['кӑрлач', 'нарӑс', 'пуш', 'ака', 'май', 'ҫӗртме', 'утӑ', 'ҫурла', 'авӑн', 'юпа', 'чӳк', 'раштав'], - 'months_short' => ['кӑр', 'нар', 'пуш', 'ака', 'май', 'ҫӗр', 'утӑ', 'ҫур', 'авн', 'юпа', 'чӳк', 'раш'], - 'weekdays' => ['вырсарникун', 'тунтикун', 'ытларикун', 'юнкун', 'кӗҫнерникун', 'эрнекун', 'шӑматкун'], - 'weekdays_short' => ['выр', 'тун', 'ытл', 'юн', 'кӗҫ', 'эрн', 'шӑм'], - 'weekdays_min' => ['вр', 'тн', 'ыт', 'юн', 'кҫ', 'эр', 'шм'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'list' => [', ', ' тата '], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/cv_RU.php b/vendor/nesbot/carbon/src/Carbon/Lang/cv_RU.php deleted file mode 100644 index 197bd8d..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/cv_RU.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/cv.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/cy.php b/vendor/nesbot/carbon/src/Carbon/Lang/cy.php deleted file mode 100644 index 783ac71..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/cy.php +++ /dev/null @@ -1,79 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - François B - * - JD Isaacks - * - Daniel Monaghan - */ -return [ - 'year' => '{1}blwyddyn|]1,Inf[:count flynedd', - 'y' => ':countbl', - 'month' => '{1}mis|]1,Inf[:count mis', - 'm' => ':countmi', - 'week' => ':count wythnos', - 'w' => ':countw', - 'day' => '{1}diwrnod|]1,Inf[:count diwrnod', - 'd' => ':countd', - 'hour' => '{1}awr|]1,Inf[:count awr', - 'h' => ':counth', - 'minute' => '{1}munud|]1,Inf[:count munud', - 'min' => ':countm', - 'second' => '{1}ychydig eiliadau|]1,Inf[:count eiliad', - 's' => ':counts', - 'ago' => ':time yn ôl', - 'from_now' => 'mewn :time', - 'after' => ':time ar ôl', - 'before' => ':time o\'r blaen', - 'diff_now' => 'nawr', - 'diff_today' => 'Heddiw', - 'diff_today_regexp' => 'Heddiw(?:\\s+am)?', - 'diff_yesterday' => 'ddoe', - 'diff_yesterday_regexp' => 'Ddoe(?:\\s+am)?', - 'diff_tomorrow' => 'yfory', - 'diff_tomorrow_regexp' => 'Yfory(?:\\s+am)?', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[Heddiw am] LT', - 'nextDay' => '[Yfory am] LT', - 'nextWeek' => 'dddd [am] LT', - 'lastDay' => '[Ddoe am] LT', - 'lastWeek' => 'dddd [diwethaf am] LT', - 'sameElse' => 'L', - ], - 'ordinal' => static function ($number) { - return $number.( - $number > 20 - ? (\in_array((int) $number, [40, 50, 60, 80, 100], true) ? 'fed' : 'ain') - : ([ - '', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed - 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed', // 11eg to 20fed - ])[$number] ?? '' - ); - }, - 'months' => ['Ionawr', 'Chwefror', 'Mawrth', 'Ebrill', 'Mai', 'Mehefin', 'Gorffennaf', 'Awst', 'Medi', 'Hydref', 'Tachwedd', 'Rhagfyr'], - 'months_short' => ['Ion', 'Chwe', 'Maw', 'Ebr', 'Mai', 'Meh', 'Gor', 'Aws', 'Med', 'Hyd', 'Tach', 'Rhag'], - 'weekdays' => ['Dydd Sul', 'Dydd Llun', 'Dydd Mawrth', 'Dydd Mercher', 'Dydd Iau', 'Dydd Gwener', 'Dydd Sadwrn'], - 'weekdays_short' => ['Sul', 'Llun', 'Maw', 'Mer', 'Iau', 'Gwe', 'Sad'], - 'weekdays_min' => ['Su', 'Ll', 'Ma', 'Me', 'Ia', 'Gw', 'Sa'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => [', ', ' a '], - 'meridiem' => ['yb', 'yh'], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/cy_GB.php b/vendor/nesbot/carbon/src/Carbon/Lang/cy_GB.php deleted file mode 100644 index 2c8148d..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/cy_GB.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/cy.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/da.php b/vendor/nesbot/carbon/src/Carbon/Lang/da.php deleted file mode 100644 index 322f91d..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/da.php +++ /dev/null @@ -1,81 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Rune Mønnike - * - François B - * - codenhagen - * - JD Isaacks - * - Jens Herlevsen - * - Ulrik McArdle (mcardle) - * - Frederik Sauer (FrittenKeeZ) - * - Janus Bahs Jacquet (kokoshneta) - */ -return [ - 'year' => ':count år|:count år', - 'a_year' => 'et år|:count år', - 'y' => ':count år|:count år', - 'month' => ':count måned|:count måneder', - 'a_month' => 'en måned|:count måneder', - 'm' => ':count mdr.', - 'week' => ':count uge|:count uger', - 'a_week' => 'en uge|:count uger', - 'w' => ':count u.', - 'day' => ':count dag|:count dage', - 'a_day' => ':count dag|:count dage', - 'd' => ':count d.', - 'hour' => ':count time|:count timer', - 'a_hour' => 'en time|:count timer', - 'h' => ':count t.', - 'minute' => ':count minut|:count minutter', - 'a_minute' => 'et minut|:count minutter', - 'min' => ':count min.', - 'second' => ':count sekund|:count sekunder', - 'a_second' => 'få sekunder|:count sekunder', - 's' => ':count s.', - 'ago' => 'for :time siden', - 'from_now' => 'om :time', - 'after' => ':time efter', - 'before' => ':time før', - 'diff_now' => 'nu', - 'diff_today' => 'i dag', - 'diff_today_regexp' => 'i dag(?:\\s+kl.)?', - 'diff_yesterday' => 'i går', - 'diff_yesterday_regexp' => 'i går(?:\\s+kl.)?', - 'diff_tomorrow' => 'i morgen', - 'diff_tomorrow_regexp' => 'i morgen(?:\\s+kl.)?', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD.MM.YYYY', - 'LL' => 'D. MMMM YYYY', - 'LLL' => 'D. MMMM YYYY HH:mm', - 'LLLL' => 'dddd [d.] D. MMMM YYYY [kl.] HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[i dag kl.] LT', - 'nextDay' => '[i morgen kl.] LT', - 'nextWeek' => 'på dddd [kl.] LT', - 'lastDay' => '[i går kl.] LT', - 'lastWeek' => '[i] dddd[s kl.] LT', - 'sameElse' => 'L', - ], - 'ordinal' => ':number.', - 'months' => ['januar', 'februar', 'marts', 'april', 'maj', 'juni', 'juli', 'august', 'september', 'oktober', 'november', 'december'], - 'months_short' => ['jan.', 'feb.', 'mar.', 'apr.', 'maj.', 'jun.', 'jul.', 'aug.', 'sep.', 'okt.', 'nov.', 'dec.'], - 'weekdays' => ['søndag', 'mandag', 'tirsdag', 'onsdag', 'torsdag', 'fredag', 'lørdag'], - 'weekdays_short' => ['søn.', 'man.', 'tir.', 'ons.', 'tor.', 'fre.', 'lør.'], - 'weekdays_min' => ['sø', 'ma', 'ti', 'on', 'to', 'fr', 'lø'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => [', ', ' og '], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/da_DK.php b/vendor/nesbot/carbon/src/Carbon/Lang/da_DK.php deleted file mode 100644 index 392c484..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/da_DK.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/da.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/da_GL.php b/vendor/nesbot/carbon/src/Carbon/Lang/da_GL.php deleted file mode 100644 index ea5698b..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/da_GL.php +++ /dev/null @@ -1,19 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/da.php', [ - 'formats' => [ - 'L' => 'DD/MM/YYYY', - 'LL' => 'D. MMM YYYY', - 'LLL' => 'D. MMMM YYYY HH.mm', - 'LLLL' => 'dddd [den] D. MMMM YYYY HH.mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/dav.php b/vendor/nesbot/carbon/src/Carbon/Lang/dav.php deleted file mode 100644 index 4f8d1e7..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/dav.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, - 'meridiem' => ['Luma lwa K', 'luma lwa p'], - 'weekdays' => ['Ituku ja jumwa', 'Kuramuka jimweri', 'Kuramuka kawi', 'Kuramuka kadadu', 'Kuramuka kana', 'Kuramuka kasanu', 'Kifula nguwo'], - 'weekdays_short' => ['Jum', 'Jim', 'Kaw', 'Kad', 'Kan', 'Kas', 'Ngu'], - 'weekdays_min' => ['Jum', 'Jim', 'Kaw', 'Kad', 'Kan', 'Kas', 'Ngu'], - 'months' => ['Mori ghwa imbiri', 'Mori ghwa kawi', 'Mori ghwa kadadu', 'Mori ghwa kana', 'Mori ghwa kasanu', 'Mori ghwa karandadu', 'Mori ghwa mfungade', 'Mori ghwa wunyanya', 'Mori ghwa ikenda', 'Mori ghwa ikumi', 'Mori ghwa ikumi na imweri', 'Mori ghwa ikumi na iwi'], - 'months_short' => ['Imb', 'Kaw', 'Kad', 'Kan', 'Kas', 'Kar', 'Mfu', 'Wun', 'Ike', 'Iku', 'Imw', 'Iwi'], - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/de.php b/vendor/nesbot/carbon/src/Carbon/Lang/de.php deleted file mode 100644 index 90b1e35..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/de.php +++ /dev/null @@ -1,135 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Michael Hohl - * - sheriffmarley - * - dennisoderwald - * - Timo - * - Karag2006 - * - Pete Scopes (pdscopes) - */ -return [ - 'year' => ':count Jahr|:count Jahre', - 'a_year' => 'ein Jahr|:count Jahre', - 'y' => ':count J.', - 'month' => ':count Monat|:count Monate', - 'a_month' => 'ein Monat|:count Monate', - 'm' => ':count Mon.', - 'week' => ':count Woche|:count Wochen', - 'a_week' => 'eine Woche|:count Wochen', - 'w' => ':count Wo.', - 'day' => ':count Tag|:count Tage', - 'a_day' => 'ein Tag|:count Tage', - 'd' => ':count Tg.', - 'hour' => ':count Stunde|:count Stunden', - 'a_hour' => 'eine Stunde|:count Stunden', - 'h' => ':count Std.', - 'minute' => ':count Minute|:count Minuten', - 'a_minute' => 'eine Minute|:count Minuten', - 'min' => ':count Min.', - 'second' => ':count Sekunde|:count Sekunden', - 'a_second' => 'ein paar Sekunden|:count Sekunden', - 's' => ':count Sek.', - 'millisecond' => ':count Millisekunde|:count Millisekunden', - 'a_millisecond' => 'eine Millisekunde|:count Millisekunden', - 'ms' => ':countms', - 'microsecond' => ':count Mikrosekunde|:count Mikrosekunden', - 'a_microsecond' => 'eine Mikrosekunde|:count Mikrosekunden', - 'µs' => ':countµs', - 'ago' => 'vor :time', - 'from_now' => 'in :time', - 'after' => ':time später', - 'before' => ':time zuvor', - - 'year_from_now' => ':count Jahr|:count Jahren', - 'month_from_now' => ':count Monat|:count Monaten', - 'week_from_now' => ':count Woche|:count Wochen', - 'day_from_now' => ':count Tag|:count Tagen', - 'year_ago' => ':count Jahr|:count Jahren', - 'month_ago' => ':count Monat|:count Monaten', - 'week_ago' => ':count Woche|:count Wochen', - 'day_ago' => ':count Tag|:count Tagen', - 'a_year_from_now' => 'ein Jahr|:count Jahren', - 'a_month_from_now' => 'ein Monat|:count Monaten', - 'a_week_from_now' => 'eine Woche|:count Wochen', - 'a_day_from_now' => 'ein Tag|:count Tagen', - 'a_year_ago' => 'ein Jahr|:count Jahren', - 'a_month_ago' => 'ein Monat|:count Monaten', - 'a_week_ago' => 'eine Woche|:count Wochen', - 'a_day_ago' => 'ein Tag|:count Tagen', - - 'diff_now' => 'Gerade eben', - 'diff_today' => 'heute', - 'diff_today_regexp' => 'heute(?:\\s+um)?', - 'diff_yesterday' => 'Gestern', - 'diff_yesterday_regexp' => 'gestern(?:\\s+um)?', - 'diff_tomorrow' => 'Morgen', - 'diff_tomorrow_regexp' => 'morgen(?:\\s+um)?', - 'diff_before_yesterday' => 'Vorgestern', - 'diff_after_tomorrow' => 'Übermorgen', - - 'period_recurrences' => 'einmal|:count mal', - 'period_interval' => static function (string $interval = '') { - /** @var string $output */ - $output = preg_replace('/^(ein|eine|1)\s+/u', '', $interval); - - if (preg_match('/^(ein|1)( Monat| Mon.| Tag| Tg.)/u', $interval)) { - return "jeden $output"; - } - - if (preg_match('/^(ein|1)( Jahr| J.)/u', $interval)) { - return "jedes $output"; - } - - return "jede $output"; - }, - 'period_start_date' => 'von :date', - 'period_end_date' => 'bis :date', - - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD.MM.YYYY', - 'LL' => 'D. MMMM YYYY', - 'LLL' => 'D. MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D. MMMM YYYY HH:mm', - ], - - 'calendar' => [ - 'sameDay' => '[heute um] LT [Uhr]', - 'nextDay' => '[morgen um] LT [Uhr]', - 'nextWeek' => 'dddd [um] LT [Uhr]', - 'lastDay' => '[gestern um] LT [Uhr]', - 'lastWeek' => '[letzten] dddd [um] LT [Uhr]', - 'sameElse' => 'L', - ], - - 'months' => ['Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'], - 'months_short' => ['Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'], - 'weekdays' => ['Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag'], - 'weekdays_short' => ['So.', 'Mo.', 'Di.', 'Mi.', 'Do.', 'Fr.', 'Sa.'], - 'weekdays_min' => ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'], - 'ordinal' => ':number.', - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => [', ', ' und '], - 'ordinal_words' => [ - 'of' => 'im', - 'first' => 'erster', - 'second' => 'zweiter', - 'third' => 'dritter', - 'fourth' => 'vierten', - 'fifth' => 'fünfter', - 'last' => 'letzten', - ], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/de_AT.php b/vendor/nesbot/carbon/src/Carbon/Lang/de_AT.php deleted file mode 100644 index a2ea4c0..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/de_AT.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - sheriffmarley - * - Timo - * - Michael Hohl - * - Namoshek - * - Bernhard Baumrock (BernhardBaumrock) - */ -return array_replace_recursive(require __DIR__.'/de.php', [ - 'months' => [ - 0 => 'Jänner', - ], - 'months_short' => [ - 0 => 'Jän', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/de_BE.php b/vendor/nesbot/carbon/src/Carbon/Lang/de_BE.php deleted file mode 100644 index 8ed8dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/de_BE.php +++ /dev/null @@ -1,20 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - RAP bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/de.php', [ - 'formats' => [ - 'L' => 'YYYY-MM-DD', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/de_CH.php b/vendor/nesbot/carbon/src/Carbon/Lang/de_CH.php deleted file mode 100644 index a869ab4..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/de_CH.php +++ /dev/null @@ -1,20 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - sheriffmarley - * - Timo - * - Michael Hohl - */ -return array_replace_recursive(require __DIR__.'/de.php', [ - 'weekdays_short' => ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/de_DE.php b/vendor/nesbot/carbon/src/Carbon/Lang/de_DE.php deleted file mode 100644 index fb1209d..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/de_DE.php +++ /dev/null @@ -1,16 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Free Software Foundation, Inc. bug-glibc-locales@gnu.org - */ -return require __DIR__.'/de.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/de_IT.php b/vendor/nesbot/carbon/src/Carbon/Lang/de_IT.php deleted file mode 100644 index 604a856..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/de_IT.php +++ /dev/null @@ -1,16 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Matthias Dieter Wallno:fer libc-locales@sourceware.org - */ -return require __DIR__.'/de.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/de_LI.php b/vendor/nesbot/carbon/src/Carbon/Lang/de_LI.php deleted file mode 100644 index 03e606a..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/de_LI.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/de.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/de_LU.php b/vendor/nesbot/carbon/src/Carbon/Lang/de_LU.php deleted file mode 100644 index 8ed8dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/de_LU.php +++ /dev/null @@ -1,20 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - RAP bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/de.php', [ - 'formats' => [ - 'L' => 'YYYY-MM-DD', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/dje.php b/vendor/nesbot/carbon/src/Carbon/Lang/dje.php deleted file mode 100644 index 74b7ac1..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/dje.php +++ /dev/null @@ -1,40 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'meridiem' => ['Subbaahi', 'Zaarikay b'], - 'weekdays' => ['Alhadi', 'Atinni', 'Atalaata', 'Alarba', 'Alhamisi', 'Alzuma', 'Asibti'], - 'weekdays_short' => ['Alh', 'Ati', 'Ata', 'Ala', 'Alm', 'Alz', 'Asi'], - 'weekdays_min' => ['Alh', 'Ati', 'Ata', 'Ala', 'Alm', 'Alz', 'Asi'], - 'months' => ['Žanwiye', 'Feewiriye', 'Marsi', 'Awiril', 'Me', 'Žuweŋ', 'Žuyye', 'Ut', 'Sektanbur', 'Oktoobur', 'Noowanbur', 'Deesanbur'], - 'months_short' => ['Žan', 'Fee', 'Mar', 'Awi', 'Me', 'Žuw', 'Žuy', 'Ut', 'Sek', 'Okt', 'Noo', 'Dee'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'D/M/YYYY', - 'LL' => 'D MMM, YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], - - 'year' => ':count hari', // less reliable - 'y' => ':count hari', // less reliable - 'a_year' => ':count hari', // less reliable - - 'week' => ':count alzuma', // less reliable - 'w' => ':count alzuma', // less reliable - 'a_week' => ':count alzuma', // less reliable - - 'second' => ':count atinni', // less reliable - 's' => ':count atinni', // less reliable - 'a_second' => ':count atinni', // less reliable -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/doi.php b/vendor/nesbot/carbon/src/Carbon/Lang/doi.php deleted file mode 100644 index cb679c5..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/doi.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/doi_IN.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/doi_IN.php b/vendor/nesbot/carbon/src/Carbon/Lang/doi_IN.php deleted file mode 100644 index f3d43ce..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/doi_IN.php +++ /dev/null @@ -1,32 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Red Hat Pune libc-alpha@sourceware.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'D/M/YY', - ], - 'months' => ['जनवरी', 'फरवरी', 'मार्च', 'एप्रैल', 'मेई', 'जून', 'जूलै', 'अगस्त', 'सितंबर', 'अक्तूबर', 'नवंबर', 'दिसंबर'], - 'months_short' => ['जनवरी', 'फरवरी', 'मार्च', 'एप्रैल', 'मेई', 'जून', 'जूलै', 'अगस्त', 'सितंबर', 'अक्तूबर', 'नवंबर', 'दिसंबर'], - 'weekdays' => ['ऐतबार', 'सोमबार', 'मंगलबर', 'बुधबार', 'बीरबार', 'शुक्करबार', 'श्नीचरबार'], - 'weekdays_short' => ['ऐत', 'सोम', 'मंगल', 'बुध', 'बीर', 'शुक्कर', 'श्नीचर'], - 'weekdays_min' => ['ऐत', 'सोम', 'मंगल', 'बुध', 'बीर', 'शुक्कर', 'श्नीचर'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['सञं', 'सबेर'], - - 'second' => ':count सङार', // less reliable - 's' => ':count सङार', // less reliable - 'a_second' => ':count सङार', // less reliable -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/dsb.php b/vendor/nesbot/carbon/src/Carbon/Lang/dsb.php deleted file mode 100644 index 1d214d5..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/dsb.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/dsb_DE.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/dsb_DE.php b/vendor/nesbot/carbon/src/Carbon/Lang/dsb_DE.php deleted file mode 100644 index 1b94187..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/dsb_DE.php +++ /dev/null @@ -1,60 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Information from Michael Wolf bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD.MM.YYYY', - 'LL' => 'DD. MMMM YYYY', - 'LLL' => 'DD. MMMM, HH:mm [góź.]', - 'LLLL' => 'dddd, DD. MMMM YYYY, HH:mm [góź.]', - ], - 'months' => ['januara', 'februara', 'měrca', 'apryla', 'maja', 'junija', 'julija', 'awgusta', 'septembra', 'oktobra', 'nowembra', 'decembra'], - 'months_short' => ['Jan', 'Feb', 'Měr', 'Apr', 'Maj', 'Jun', 'Jul', 'Awg', 'Sep', 'Okt', 'Now', 'Dec'], - 'weekdays' => ['Njeźela', 'Pónjeźele', 'Wałtora', 'Srjoda', 'Stwórtk', 'Pětk', 'Sobota'], - 'weekdays_short' => ['Nj', 'Pó', 'Wa', 'Sr', 'St', 'Pě', 'So'], - 'weekdays_min' => ['Nj', 'Pó', 'Wa', 'Sr', 'St', 'Pě', 'So'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - - 'year' => ':count lěto', - 'y' => ':count lěto', - 'a_year' => ':count lěto', - - 'month' => ':count mjasec', - 'm' => ':count mjasec', - 'a_month' => ':count mjasec', - - 'week' => ':count tyźeń', - 'w' => ':count tyźeń', - 'a_week' => ':count tyźeń', - - 'day' => ':count źeń', - 'd' => ':count źeń', - 'a_day' => ':count źeń', - - 'hour' => ':count góźina', - 'h' => ':count góźina', - 'a_hour' => ':count góźina', - - 'minute' => ':count minuta', - 'min' => ':count minuta', - 'a_minute' => ':count minuta', - - 'second' => ':count drugi', - 's' => ':count drugi', - 'a_second' => ':count drugi', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/dua.php b/vendor/nesbot/carbon/src/Carbon/Lang/dua.php deleted file mode 100644 index 55e5c7c..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/dua.php +++ /dev/null @@ -1,56 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'meridiem' => ['idiɓa', 'ebyámu'], - 'weekdays' => ['éti', 'mɔ́sú', 'kwasú', 'mukɔ́sú', 'ŋgisú', 'ɗónɛsú', 'esaɓasú'], - 'weekdays_short' => ['ét', 'mɔ́s', 'kwa', 'muk', 'ŋgi', 'ɗón', 'esa'], - 'weekdays_min' => ['ét', 'mɔ́s', 'kwa', 'muk', 'ŋgi', 'ɗón', 'esa'], - 'months' => ['dimɔ́di', 'ŋgɔndɛ', 'sɔŋɛ', 'diɓáɓá', 'emiasele', 'esɔpɛsɔpɛ', 'madiɓɛ́díɓɛ́', 'diŋgindi', 'nyɛtɛki', 'mayésɛ́', 'tiníní', 'eláŋgɛ́'], - 'months_short' => ['di', 'ŋgɔn', 'sɔŋ', 'diɓ', 'emi', 'esɔ', 'mad', 'diŋ', 'nyɛt', 'may', 'tin', 'elá'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'D/M/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], - - 'year' => ':count ma mbu', // less reliable - 'y' => ':count ma mbu', // less reliable - 'a_year' => ':count ma mbu', // less reliable - - 'month' => ':count myo̱di', // less reliable - 'm' => ':count myo̱di', // less reliable - 'a_month' => ':count myo̱di', // less reliable - - 'week' => ':count woki', // less reliable - 'w' => ':count woki', // less reliable - 'a_week' => ':count woki', // less reliable - - 'day' => ':count buńa', // less reliable - 'd' => ':count buńa', // less reliable - 'a_day' => ':count buńa', // less reliable - - 'hour' => ':count ma awa', // less reliable - 'h' => ':count ma awa', // less reliable - 'a_hour' => ':count ma awa', // less reliable - - 'minute' => ':count minuti', // less reliable - 'min' => ':count minuti', // less reliable - 'a_minute' => ':count minuti', // less reliable - - 'second' => ':count maba', // less reliable - 's' => ':count maba', // less reliable - 'a_second' => ':count maba', // less reliable -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/dv.php b/vendor/nesbot/carbon/src/Carbon/Lang/dv.php deleted file mode 100644 index 4b8d7e1..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/dv.php +++ /dev/null @@ -1,89 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -$months = [ - 'ޖެނުއަރީ', - 'ފެބްރުއަރީ', - 'މާރިޗު', - 'އޭޕްރީލު', - 'މޭ', - 'ޖޫން', - 'ޖުލައި', - 'އޯގަސްޓު', - 'ސެޕްޓެމްބަރު', - 'އޮކްޓޯބަރު', - 'ނޮވެމްބަރު', - 'ޑިސެމްބަރު', -]; - -$weekdays = [ - 'އާދިއްތަ', - 'ހޯމަ', - 'އަންގާރަ', - 'ބުދަ', - 'ބުރާސްފަތި', - 'ހުކުރު', - 'ހޮނިހިރު', -]; - -/* - * Authors: - * - Josh Soref - * - Jawish Hameed - */ -return [ - 'year' => ':count '.'އަހަރު', - 'a_year' => '{1}'.'އަހަރެއް'.'|:count '.'އަހަރު', - 'month' => ':count '.'މަސް', - 'a_month' => '{1}'.'މަހެއް'.'|:count '.'މަސް', - 'week' => ':count '.'ހަފްތާ', - 'a_week' => '{1}'.'ސިކުންތުކޮޅެއް'.'|:count '.'ހަފްތާ', - 'day' => ':count '.'ދުވަސް', - 'a_day' => '{1}'.'ދުވަހެއް'.'|:count '.'ދުވަސް', - 'hour' => ':count '.'ގަޑިއިރު', - 'a_hour' => '{1}'.'ގަޑިއިރެއް'.'|:count '.'ގަޑިއިރު', - 'minute' => ':count '.'މިނިޓު', - 'a_minute' => '{1}'.'މިނިޓެއް'.'|:count '.'މިނިޓު', - 'second' => ':count '.'ސިކުންތު', - 'a_second' => '{1}'.'ސިކުންތުކޮޅެއް'.'|:count '.'ސިކުންތު', - 'ago' => 'ކުރިން :time', - 'from_now' => 'ތެރޭގައި :time', - 'after' => ':time ފަހުން', - 'before' => ':time ކުރި', - 'diff_yesterday' => 'އިއްޔެ', - 'diff_today' => 'މިއަދު', - 'diff_tomorrow' => 'މާދަމާ', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'D/M/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[މިއަދު] LT', - 'nextDay' => '[މާދަމާ] LT', - 'nextWeek' => 'dddd LT', - 'lastDay' => '[އިއްޔެ] LT', - 'lastWeek' => '[ފާއިތުވި] dddd LT', - 'sameElse' => 'L', - ], - 'meridiem' => ['މކ', 'މފ'], - 'months' => $months, - 'months_short' => $months, - 'weekdays' => $weekdays, - 'weekdays_short' => $weekdays, - 'weekdays_min' => ['އާދި', 'ހޯމަ', 'އަން', 'ބުދަ', 'ބުރާ', 'ހުކު', 'ހޮނި'], - 'list' => [', ', ' އަދި '], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/dv_MV.php b/vendor/nesbot/carbon/src/Carbon/Lang/dv_MV.php deleted file mode 100644 index 2668d5b..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/dv_MV.php +++ /dev/null @@ -1,87 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Ahmed Ali - */ - -$months = [ - 'ޖެނުއަރީ', - 'ފެބްރުއަރީ', - 'މާރިޗު', - 'އޭޕްރީލު', - 'މޭ', - 'ޖޫން', - 'ޖުލައި', - 'އޯގަސްޓު', - 'ސެޕްޓެމްބަރު', - 'އޮކްޓޯބަރު', - 'ނޮވެމްބަރު', - 'ޑިސެމްބަރު', -]; - -$weekdays = [ - 'އާދިއްތަ', - 'ހޯމަ', - 'އަންގާރަ', - 'ބުދަ', - 'ބުރާސްފަތި', - 'ހުކުރު', - 'ހޮނިހިރު', -]; - -return [ - 'year' => '{0}އަހަރެއް|[1,Inf]:count އަހަރު', - 'y' => '{0}އަހަރެއް|[1,Inf]:count އަހަރު', - 'month' => '{0}މައްސަރެއް|[1,Inf]:count މަސް', - 'm' => '{0}މައްސަރެއް|[1,Inf]:count މަސް', - 'week' => '{0}ހަފްތާއެއް|[1,Inf]:count ހަފްތާ', - 'w' => '{0}ހަފްތާއެއް|[1,Inf]:count ހަފްތާ', - 'day' => '{0}ދުވަސް|[1,Inf]:count ދުވަސް', - 'd' => '{0}ދުވަސް|[1,Inf]:count ދުވަސް', - 'hour' => '{0}ގަޑިއިރެއް|[1,Inf]:count ގަޑި', - 'h' => '{0}ގަޑިއިރެއް|[1,Inf]:count ގަޑި', - 'minute' => '{0}މިނެޓެއް|[1,Inf]:count މިނެޓް', - 'min' => '{0}މިނެޓެއް|[1,Inf]:count މިނެޓް', - 'second' => '{0}ސިކުންތެއް|[1,Inf]:count ސިކުންތު', - 's' => '{0}ސިކުންތެއް|[1,Inf]:count ސިކުންތު', - 'ago' => ':time ކުރިން', - 'from_now' => ':time ފަހުން', - 'after' => ':time ފަހުން', - 'before' => ':time ކުރި', - 'diff_yesterday' => 'އިއްޔެ', - 'diff_today' => 'މިއަދު', - 'diff_tomorrow' => 'މާދަމާ', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'D/M/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[މިއަދު] LT', - 'nextDay' => '[މާދަމާ] LT', - 'nextWeek' => 'dddd LT', - 'lastDay' => '[އިއްޔެ] LT', - 'lastWeek' => '[ފާއިތުވި] dddd LT', - 'sameElse' => 'L', - ], - 'meridiem' => ['މކ', 'މފ'], - 'months' => $months, - 'months_short' => $months, - 'weekdays' => $weekdays, - 'weekdays_short' => $weekdays, - 'weekdays_min' => ['އާދި', 'ހޯމަ', 'އަން', 'ބުދަ', 'ބުރާ', 'ހުކު', 'ހޮނި'], - 'list' => [', ', ' އަދި '], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/dyo.php b/vendor/nesbot/carbon/src/Carbon/Lang/dyo.php deleted file mode 100644 index 33082e6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/dyo.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'weekdays' => ['Dimas', 'Teneŋ', 'Talata', 'Alarbay', 'Aramisay', 'Arjuma', 'Sibiti'], - 'weekdays_short' => ['Dim', 'Ten', 'Tal', 'Ala', 'Ara', 'Arj', 'Sib'], - 'weekdays_min' => ['Dim', 'Ten', 'Tal', 'Ala', 'Ara', 'Arj', 'Sib'], - 'months' => ['Sanvie', 'Fébirie', 'Mars', 'Aburil', 'Mee', 'Sueŋ', 'Súuyee', 'Ut', 'Settembar', 'Oktobar', 'Novembar', 'Disambar'], - 'months_short' => ['Sa', 'Fe', 'Ma', 'Ab', 'Me', 'Su', 'Sú', 'Ut', 'Se', 'Ok', 'No', 'De'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'D/M/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/dz.php b/vendor/nesbot/carbon/src/Carbon/Lang/dz.php deleted file mode 100644 index cc17e69..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/dz.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/dz_BT.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/dz_BT.php b/vendor/nesbot/carbon/src/Carbon/Lang/dz_BT.php deleted file mode 100644 index 5c40142..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/dz_BT.php +++ /dev/null @@ -1,44 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Sherubtse College bug-glibc@gnu.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'པསྱི་ལོYYཟལMMཚེསDD', - ], - 'months' => ['ཟླ་བ་དང་པ་', 'ཟླ་བ་གཉིས་པ་', 'ཟླ་བ་གསུམ་པ་', 'ཟླ་བ་བཞི་པ་', 'ཟླ་བ་ལྔ་ཕ་', 'ཟླ་བ་དྲུག་པ་', 'ཟླ་བ་བདུནཔ་', 'ཟླ་བ་བརྒྱད་པ་', 'ཟླ་བ་དགུ་པ་', 'ཟླ་བ་བཅུ་པ་', 'ཟླ་བ་བཅུ་གཅིག་པ་', 'ཟླ་བ་བཅུ་གཉིས་པ་'], - 'months_short' => ['ཟླ་༡', 'ཟླ་༢', 'ཟླ་༣', 'ཟླ་༤', 'ཟླ་༥', 'ཟླ་༦', 'ཟླ་༧', 'ཟླ་༨', 'ཟླ་༩', 'ཟླ་༡༠', 'ཟླ་༡༡', 'ཟླ་༡༢'], - 'weekdays' => ['གཟའ་ཟླ་བ་', 'གཟའ་མིག་དམར་', 'གཟའ་ལྷག་ཕ་', 'གཟའ་པུར་བུ་', 'གཟའ་པ་སངས་', 'གཟའ་སྤེན་ཕ་', 'གཟའ་ཉི་མ་'], - 'weekdays_short' => ['ཟླ་', 'མིར་', 'ལྷག་', 'པུར་', 'སངས་', 'སྤེན་', 'ཉི་'], - 'weekdays_min' => ['ཟླ་', 'མིར་', 'ལྷག་', 'པུར་', 'སངས་', 'སྤེན་', 'ཉི་'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['ངས་ཆ', 'ཕྱི་ཆ'], - - 'year' => ':count ཆརཔ', // less reliable - 'y' => ':count ཆརཔ', // less reliable - 'a_year' => ':count ཆརཔ', // less reliable - - 'month' => ':count ཟླ་བ', // less reliable - 'm' => ':count ཟླ་བ', // less reliable - 'a_month' => ':count ཟླ་བ', // less reliable - - 'day' => ':count ཉི', // less reliable - 'd' => ':count ཉི', // less reliable - 'a_day' => ':count ཉི', // less reliable - - 'second' => ':count ཆ', // less reliable - 's' => ':count ཆ', // less reliable - 'a_second' => ':count ཆ', // less reliable -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ebu.php b/vendor/nesbot/carbon/src/Carbon/Lang/ebu.php deleted file mode 100644 index 9e7d957..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ebu.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, - 'meridiem' => ['KI', 'UT'], - 'weekdays' => ['Kiumia', 'Njumatatu', 'Njumaine', 'Njumatano', 'Aramithi', 'Njumaa', 'NJumamothii'], - 'weekdays_short' => ['Kma', 'Tat', 'Ine', 'Tan', 'Arm', 'Maa', 'NMM'], - 'weekdays_min' => ['Kma', 'Tat', 'Ine', 'Tan', 'Arm', 'Maa', 'NMM'], - 'months' => ['Mweri wa mbere', 'Mweri wa kaĩri', 'Mweri wa kathatũ', 'Mweri wa kana', 'Mweri wa gatano', 'Mweri wa gatantatũ', 'Mweri wa mũgwanja', 'Mweri wa kanana', 'Mweri wa kenda', 'Mweri wa ikũmi', 'Mweri wa ikũmi na ũmwe', 'Mweri wa ikũmi na Kaĩrĩ'], - 'months_short' => ['Mbe', 'Kai', 'Kat', 'Kan', 'Gat', 'Gan', 'Mug', 'Knn', 'Ken', 'Iku', 'Imw', 'Igi'], - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ee.php b/vendor/nesbot/carbon/src/Carbon/Lang/ee.php deleted file mode 100644 index f96c5c9..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ee.php +++ /dev/null @@ -1,56 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'meridiem' => ['ŋ', 'ɣ'], - 'weekdays' => ['kɔsiɖa', 'dzoɖa', 'blaɖa', 'kuɖa', 'yawoɖa', 'fiɖa', 'memleɖa'], - 'weekdays_short' => ['kɔs', 'dzo', 'bla', 'kuɖ', 'yaw', 'fiɖ', 'mem'], - 'weekdays_min' => ['kɔs', 'dzo', 'bla', 'kuɖ', 'yaw', 'fiɖ', 'mem'], - 'months' => ['dzove', 'dzodze', 'tedoxe', 'afɔfĩe', 'dama', 'masa', 'siamlɔm', 'deasiamime', 'anyɔnyɔ', 'kele', 'adeɛmekpɔxe', 'dzome'], - 'months_short' => ['dzv', 'dzd', 'ted', 'afɔ', 'dam', 'mas', 'sia', 'dea', 'any', 'kel', 'ade', 'dzm'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'a [ga] h:mm', - 'LTS' => 'a [ga] h:mm:ss', - 'L' => 'M/D/YYYY', - 'LL' => 'MMM D [lia], YYYY', - 'LLL' => 'a [ga] h:mm MMMM D [lia] YYYY', - 'LLLL' => 'a [ga] h:mm dddd, MMMM D [lia] YYYY', - ], - - 'year' => 'ƒe :count', - 'y' => 'ƒe :count', - 'a_year' => 'ƒe :count', - - 'month' => 'ɣleti :count', - 'm' => 'ɣleti :count', - 'a_month' => 'ɣleti :count', - - 'week' => 'kwasiɖa :count', - 'w' => 'kwasiɖa :count', - 'a_week' => 'kwasiɖa :count', - - 'day' => 'ŋkeke :count', - 'd' => 'ŋkeke :count', - 'a_day' => 'ŋkeke :count', - - 'hour' => 'gaƒoƒo :count', - 'h' => 'gaƒoƒo :count', - 'a_hour' => 'gaƒoƒo :count', - - 'minute' => 'miniti :count', // less reliable - 'min' => 'miniti :count', // less reliable - 'a_minute' => 'miniti :count', // less reliable - - 'second' => 'sɛkɛnd :count', // less reliable - 's' => 'sɛkɛnd :count', // less reliable - 'a_second' => 'sɛkɛnd :count', // less reliable -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ee_TG.php b/vendor/nesbot/carbon/src/Carbon/Lang/ee_TG.php deleted file mode 100644 index 7a8b36c..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ee_TG.php +++ /dev/null @@ -1,19 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/ee.php', [ - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'LLL' => 'HH:mm MMMM D [lia] YYYY', - 'LLLL' => 'HH:mm dddd, MMMM D [lia] YYYY', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/el.php b/vendor/nesbot/carbon/src/Carbon/Lang/el.php deleted file mode 100644 index 8711fa2..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/el.php +++ /dev/null @@ -1,89 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Alessandro Di Felice - * - François B - * - Tim Fish - * - Gabriel Monteagudo - * - JD Isaacks - * - yiannisdesp - * - Ilias Kasmeridis (iliaskasm) - */ - -use Carbon\CarbonInterface; - -return [ - 'year' => ':count χρόνος|:count χρόνια', - 'a_year' => 'ένας χρόνος|:count χρόνια', - 'y' => ':count χρ.', - 'month' => ':count μήνας|:count μήνες', - 'a_month' => 'ένας μήνας|:count μήνες', - 'm' => ':count μήν.', - 'week' => ':count εβδομάδα|:count εβδομάδες', - 'a_week' => 'μια εβδομάδα|:count εβδομάδες', - 'w' => ':count εβδ.', - 'day' => ':count μέρα|:count μέρες', - 'a_day' => 'μία μέρα|:count μέρες', - 'd' => ':count μέρ.', - 'hour' => ':count ώρα|:count ώρες', - 'a_hour' => 'μία ώρα|:count ώρες', - 'h' => ':count ώρα|:count ώρες', - 'minute' => ':count λεπτό|:count λεπτά', - 'a_minute' => 'ένα λεπτό|:count λεπτά', - 'min' => ':count λεπ.', - 'second' => ':count δευτερόλεπτο|:count δευτερόλεπτα', - 'a_second' => 'λίγα δευτερόλεπτα|:count δευτερόλεπτα', - 's' => ':count δευ.', - 'ago' => 'πριν :time', - 'from_now' => 'σε :time', - 'after' => ':time μετά', - 'before' => ':time πριν', - 'diff_now' => 'τώρα', - 'diff_today' => 'Σήμερα', - 'diff_today_regexp' => 'Σήμερα(?:\\s+{})?', - 'diff_yesterday' => 'χθες', - 'diff_yesterday_regexp' => 'Χθες(?:\\s+{})?', - 'diff_tomorrow' => 'αύριο', - 'diff_tomorrow_regexp' => 'Αύριο(?:\\s+{})?', - 'formats' => [ - 'LT' => 'h:mm A', - 'LTS' => 'h:mm:ss A', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY h:mm A', - 'LLLL' => 'dddd, D MMMM YYYY h:mm A', - ], - 'calendar' => [ - 'sameDay' => '[Σήμερα {}] LT', - 'nextDay' => '[Αύριο {}] LT', - 'nextWeek' => 'dddd [{}] LT', - 'lastDay' => '[Χθες {}] LT', - 'lastWeek' => static fn (CarbonInterface $current) => match ($current->dayOfWeek) { - 6 => '[το προηγούμενο] dddd [{}] LT', - default => '[την προηγούμενη] dddd [{}] LT', - }, - 'sameElse' => 'L', - ], - 'ordinal' => ':numberη', - 'meridiem' => ['ΠΜ', 'ΜΜ', 'πμ', 'μμ'], - 'months' => ['Ιανουαρίου', 'Φεβρουαρίου', 'Μαρτίου', 'Απριλίου', 'Μαΐου', 'Ιουνίου', 'Ιουλίου', 'Αυγούστου', 'Σεπτεμβρίου', 'Οκτωβρίου', 'Νοεμβρίου', 'Δεκεμβρίου'], - 'months_standalone' => ['Ιανουάριος', 'Φεβρουάριος', 'Μάρτιος', 'Απρίλιος', 'Μάιος', 'Ιούνιος', 'Ιούλιος', 'Αύγουστος', 'Σεπτέμβριος', 'Οκτώβριος', 'Νοέμβριος', 'Δεκέμβριος'], - 'months_regexp' => '/(D[oD]?[\s,]+MMMM|L{2,4}|l{2,4})/', - 'months_short' => ['Ιαν', 'Φεβ', 'Μαρ', 'Απρ', 'Μαϊ', 'Ιουν', 'Ιουλ', 'Αυγ', 'Σεπ', 'Οκτ', 'Νοε', 'Δεκ'], - 'weekdays' => ['Κυριακή', 'Δευτέρα', 'Τρίτη', 'Τετάρτη', 'Πέμπτη', 'Παρασκευή', 'Σάββατο'], - 'weekdays_short' => ['Κυρ', 'Δευ', 'Τρι', 'Τετ', 'Πεμ', 'Παρ', 'Σαβ'], - 'weekdays_min' => ['Κυ', 'Δε', 'Τρ', 'Τε', 'Πε', 'Πα', 'Σα'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => [', ', ' και '], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/el_CY.php b/vendor/nesbot/carbon/src/Carbon/Lang/el_CY.php deleted file mode 100644 index 8a693c1..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/el_CY.php +++ /dev/null @@ -1,19 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Greek Debian Translation Team bug-glibc@gnu.org - */ -return array_replace_recursive(require __DIR__.'/el.php', [ - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/el_GR.php b/vendor/nesbot/carbon/src/Carbon/Lang/el_GR.php deleted file mode 100644 index df196af..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/el_GR.php +++ /dev/null @@ -1,19 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - RAP bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/el.php', [ - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en.php b/vendor/nesbot/carbon/src/Carbon/Lang/en.php deleted file mode 100644 index 346a622..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en.php +++ /dev/null @@ -1,95 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Milos Sakovic - * - Paul - * - Pete Scopes (pdscopes) - */ -return [ - /* - * {1}, {0} and ]1,Inf[ are not needed as it's the default for English pluralization. - * But as some languages are using en.php as a fallback, it's better to specify it - * explicitly so those languages also fallback to English pluralization when a unit - * is missing. - */ - 'year' => '{1}:count year|{0}:count years|]1,Inf[:count years', - 'a_year' => '{1}a year|{0}:count years|]1,Inf[:count years', - 'y' => '{1}:countyr|{0}:countyrs|]1,Inf[:countyrs', - 'month' => '{1}:count month|{0}:count months|]1,Inf[:count months', - 'a_month' => '{1}a month|{0}:count months|]1,Inf[:count months', - 'm' => '{1}:countmo|{0}:countmos|]1,Inf[:countmos', - 'week' => '{1}:count week|{0}:count weeks|]1,Inf[:count weeks', - 'a_week' => '{1}a week|{0}:count weeks|]1,Inf[:count weeks', - 'w' => ':countw', - 'day' => '{1}:count day|{0}:count days|]1,Inf[:count days', - 'a_day' => '{1}a day|{0}:count days|]1,Inf[:count days', - 'd' => ':countd', - 'hour' => '{1}:count hour|{0}:count hours|]1,Inf[:count hours', - 'a_hour' => '{1}an hour|{0}:count hours|]1,Inf[:count hours', - 'h' => ':counth', - 'minute' => '{1}:count minute|{0}:count minutes|]1,Inf[:count minutes', - 'a_minute' => '{1}a minute|{0}:count minutes|]1,Inf[:count minutes', - 'min' => ':countm', - 'second' => '{1}:count second|{0}:count seconds|]1,Inf[:count seconds', - 'a_second' => '{1}a few seconds|{0}:count seconds|]1,Inf[:count seconds', - 's' => ':counts', - 'millisecond' => '{1}:count millisecond|{0}:count milliseconds|]1,Inf[:count milliseconds', - 'a_millisecond' => '{1}a millisecond|{0}:count milliseconds|]1,Inf[:count milliseconds', - 'ms' => ':countms', - 'microsecond' => '{1}:count microsecond|{0}:count microseconds|]1,Inf[:count microseconds', - 'a_microsecond' => '{1}a microsecond|{0}:count microseconds|]1,Inf[:count microseconds', - 'µs' => ':countµs', - 'ago' => ':time ago', - 'from_now' => ':time from now', - 'after' => ':time after', - 'before' => ':time before', - 'diff_now' => 'just now', - 'diff_today' => 'today', - 'diff_yesterday' => 'yesterday', - 'diff_tomorrow' => 'tomorrow', - 'diff_before_yesterday' => 'before yesterday', - 'diff_after_tomorrow' => 'after tomorrow', - 'period_recurrences' => '{1}once|{0}:count times|]1,Inf[:count times', - 'period_interval' => 'every :interval', - 'period_start_date' => 'from :date', - 'period_end_date' => 'to :date', - 'months' => ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'], - 'months_short' => ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], - 'weekdays' => ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], - 'weekdays_short' => ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], - 'weekdays_min' => ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'], - 'ordinal' => static function ($number) { - $lastDigit = $number % 10; - - return $number.( - ((int) ($number % 100 / 10) === 1) ? 'th' : ( - ($lastDigit === 1) ? 'st' : ( - ($lastDigit === 2) ? 'nd' : ( - ($lastDigit === 3) ? 'rd' : 'th' - ) - ) - ) - ); - }, - 'formats' => [ - 'LT' => 'h:mm A', - 'LTS' => 'h:mm:ss A', - 'L' => 'MM/DD/YYYY', - 'LL' => 'MMMM D, YYYY', - 'LLL' => 'MMMM D, YYYY h:mm A', - 'LLLL' => 'dddd, MMMM D, YYYY h:mm A', - ], - 'list' => [', ', ' and '], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_001.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_001.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_001.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_150.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_150.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_150.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_AG.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_AG.php deleted file mode 100644 index 06c6e1a..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_AG.php +++ /dev/null @@ -1,20 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Free Software Foundation, Inc. bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YY', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_AI.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_AI.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_AI.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_AS.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_AS.php deleted file mode 100644 index f4cdb67..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_AS.php +++ /dev/null @@ -1,14 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_AT.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_AT.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_AT.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_AU.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_AU.php deleted file mode 100644 index d1df614..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_AU.php +++ /dev/null @@ -1,30 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Kunal Marwaha - * - François B - * - Mayank Badola - * - JD Isaacks - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'from_now' => 'in :time', - 'formats' => [ - 'LT' => 'h:mm A', - 'LTS' => 'h:mm:ss A', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY h:mm A', - 'LLLL' => 'dddd, D MMMM YYYY h:mm A', - ], - 'day_of_first_week_of_year' => 4, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_BB.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_BB.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_BB.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_BE.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_BE.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_BE.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_BI.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_BI.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_BI.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_BM.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_BM.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_BM.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_BS.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_BS.php deleted file mode 100644 index f4cdb67..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_BS.php +++ /dev/null @@ -1,14 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_BW.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_BW.php deleted file mode 100644 index f4cdb67..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_BW.php +++ /dev/null @@ -1,14 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_BZ.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_BZ.php deleted file mode 100644 index f4cdb67..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_BZ.php +++ /dev/null @@ -1,14 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_CA.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_CA.php deleted file mode 100644 index 824571e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_CA.php +++ /dev/null @@ -1,30 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - François B - * - Zhan Tong Zhang - * - Mayank Badola - * - JD Isaacks - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'from_now' => 'in :time', - 'formats' => [ - 'LT' => 'h:mm A', - 'LTS' => 'h:mm:ss A', - 'L' => 'YYYY-MM-DD', - 'LL' => 'MMMM D, YYYY', - 'LLL' => 'MMMM D, YYYY h:mm A', - 'LLLL' => 'dddd, MMMM D, YYYY h:mm A', - ], - 'first_day_of_week' => 0, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_CC.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_CC.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_CC.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_CH.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_CH.php deleted file mode 100644 index 16668ff..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_CH.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD.MM.YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_CK.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_CK.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_CK.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_CM.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_CM.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_CM.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_CX.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_CX.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_CX.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_CY.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_CY.php deleted file mode 100644 index 7dfb721..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_CY.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - NehaGautam - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'from_now' => 'in :time', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD-MM-YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], - 'day_of_first_week_of_year' => 4, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_DE.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_DE.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_DE.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_DG.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_DG.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_DG.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_DK.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_DK.php deleted file mode 100644 index 9615e04..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_DK.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Danish Standards Association bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'YYYY-MM-DD', - ], - 'day_of_first_week_of_year' => 4, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_DM.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_DM.php deleted file mode 100644 index f4cdb67..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_DM.php +++ /dev/null @@ -1,14 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_ER.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_ER.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_ER.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_FI.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_FI.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_FI.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_FJ.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_FJ.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_FJ.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_FK.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_FK.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_FK.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_FM.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_FM.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_FM.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_GB.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_GB.php deleted file mode 100644 index 6ba7101..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_GB.php +++ /dev/null @@ -1,29 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - François B - * - Mayank Badola - * - JD Isaacks - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'from_now' => 'in :time', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], - 'day_of_first_week_of_year' => 4, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_GD.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_GD.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_GD.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_GG.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_GG.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_GG.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_GH.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_GH.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_GH.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_GI.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_GI.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_GI.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_GM.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_GM.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_GM.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_GU.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_GU.php deleted file mode 100644 index f4cdb67..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_GU.php +++ /dev/null @@ -1,14 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_GY.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_GY.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_GY.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_HK.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_HK.php deleted file mode 100644 index d0963b4..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_HK.php +++ /dev/null @@ -1,18 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - IBM Globalization Center of Competency, Yamato Software Laboratory bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_IE.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_IE.php deleted file mode 100644 index 62e5092..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_IE.php +++ /dev/null @@ -1,30 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Martin McWhorter - * - François B - * - Chris Cartlidge - * - JD Isaacks - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'from_now' => 'in :time', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD-MM-YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], - 'day_of_first_week_of_year' => 4, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_IL.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_IL.php deleted file mode 100644 index b6107a9..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_IL.php +++ /dev/null @@ -1,30 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Yoav Amit - * - François B - * - Mayank Badola - * - JD Isaacks - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'from_now' => 'in :time', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], - 'first_day_of_week' => 0, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_IM.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_IM.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_IM.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_IN.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_IN.php deleted file mode 100644 index 4a3f031..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_IN.php +++ /dev/null @@ -1,25 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - IBM Globalization Center of Competency, Yamato Software Laboratory bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YY', - 'LL' => 'MMMM DD, YYYY', - 'LLL' => 'DD MMM HH:mm', - 'LLLL' => 'MMMM DD, YYYY HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_IO.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_IO.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_IO.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_ISO.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_ISO.php deleted file mode 100644 index 6688b13..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_ISO.php +++ /dev/null @@ -1,22 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'YYYY-MM-dd', - 'LL' => 'YYYY MMM D', - 'LLL' => 'YYYY MMMM D HH:mm', - 'LLLL' => 'dddd, YYYY MMMM DD HH:mm', - ], - 'first_day_of_week' => 0, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_JE.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_JE.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_JE.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_JM.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_JM.php deleted file mode 100644 index f4cdb67..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_JM.php +++ /dev/null @@ -1,14 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_KE.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_KE.php deleted file mode 100644 index f4cdb67..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_KE.php +++ /dev/null @@ -1,14 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_KI.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_KI.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_KI.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_KN.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_KN.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_KN.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_KY.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_KY.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_KY.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_LC.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_LC.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_LC.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_LR.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_LR.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_LR.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_LS.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_LS.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_LS.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_MG.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_MG.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_MG.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_MH.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_MH.php deleted file mode 100644 index f4cdb67..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_MH.php +++ /dev/null @@ -1,14 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_MO.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_MO.php deleted file mode 100644 index f4cdb67..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_MO.php +++ /dev/null @@ -1,14 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_MP.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_MP.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_MP.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_MS.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_MS.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_MS.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_MT.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_MT.php deleted file mode 100644 index f4cdb67..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_MT.php +++ /dev/null @@ -1,14 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_MU.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_MU.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_MU.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_MW.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_MW.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_MW.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_MY.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_MY.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_MY.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_NA.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_NA.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_NA.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_NF.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_NF.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_NF.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_NG.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_NG.php deleted file mode 100644 index c337cfc..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_NG.php +++ /dev/null @@ -1,17 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YY', - ], - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_NL.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_NL.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_NL.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_NR.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_NR.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_NR.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_NU.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_NU.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_NU.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_NZ.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_NZ.php deleted file mode 100644 index be65cd3..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_NZ.php +++ /dev/null @@ -1,30 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - François B - * - Mayank Badola - * - Luke McGregor - * - JD Isaacks - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'from_now' => 'in :time', - 'formats' => [ - 'LT' => 'h:mm A', - 'LTS' => 'h:mm:ss A', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY h:mm A', - 'LLLL' => 'dddd, D MMMM YYYY h:mm A', - ], - 'day_of_first_week_of_year' => 4, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_PG.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_PG.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_PG.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_PH.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_PH.php deleted file mode 100644 index d0963b4..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_PH.php +++ /dev/null @@ -1,18 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - IBM Globalization Center of Competency, Yamato Software Laboratory bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_PK.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_PK.php deleted file mode 100644 index f4cdb67..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_PK.php +++ /dev/null @@ -1,14 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_PN.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_PN.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_PN.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_PR.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_PR.php deleted file mode 100644 index f4cdb67..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_PR.php +++ /dev/null @@ -1,14 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_PW.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_PW.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_PW.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_RW.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_RW.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_RW.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_SB.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_SB.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_SB.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_SC.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_SC.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_SC.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_SD.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_SD.php deleted file mode 100644 index c4e2557..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_SD.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 6, - 'weekend' => [5, 6], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_SE.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_SE.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_SE.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_SG.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_SG.php deleted file mode 100644 index e31e826..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_SG.php +++ /dev/null @@ -1,23 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'from_now' => 'in :time', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], - 'day_of_first_week_of_year' => 4, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_SH.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_SH.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_SH.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_SI.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_SI.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_SI.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_SL.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_SL.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_SL.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_SS.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_SS.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_SS.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_SX.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_SX.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_SX.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_SZ.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_SZ.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_SZ.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_TC.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_TC.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_TC.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_TK.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_TK.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_TK.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_TO.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_TO.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_TO.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_TT.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_TT.php deleted file mode 100644 index f4cdb67..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_TT.php +++ /dev/null @@ -1,14 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_TV.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_TV.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_TV.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_TZ.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_TZ.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_TZ.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_UG.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_UG.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_UG.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_UM.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_UM.php deleted file mode 100644 index f4cdb67..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_UM.php +++ /dev/null @@ -1,14 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_US.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_US.php deleted file mode 100644 index f4cdb67..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_US.php +++ /dev/null @@ -1,14 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_US_Posix.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_US_Posix.php deleted file mode 100644 index 135bc0c..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_US_Posix.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en_US.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_VC.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_VC.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_VC.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_VG.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_VG.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_VG.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_VI.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_VI.php deleted file mode 100644 index f4cdb67..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_VI.php +++ /dev/null @@ -1,14 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_VU.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_VU.php deleted file mode 100644 index f086dc6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_VU.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/en.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_WS.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_WS.php deleted file mode 100644 index f4cdb67..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_WS.php +++ /dev/null @@ -1,14 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_ZA.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_ZA.php deleted file mode 100644 index 54d8d88..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_ZA.php +++ /dev/null @@ -1,25 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Zuza Software Foundation (Translate.org.za) Dwayne Bailey dwayne@translate.org.za - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YY', - 'LL' => 'MMMM DD, YYYY', - 'LLL' => 'DD MMM HH:mm', - 'LLLL' => 'MMMM DD, YYYY HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_ZM.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_ZM.php deleted file mode 100644 index c6bc0b2..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_ZM.php +++ /dev/null @@ -1,20 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - ANLoc Martin Benjamin locales@africanlocalization.net - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YY', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/en_ZW.php b/vendor/nesbot/carbon/src/Carbon/Lang/en_ZW.php deleted file mode 100644 index f4cdb67..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/en_ZW.php +++ /dev/null @@ -1,14 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/eo.php b/vendor/nesbot/carbon/src/Carbon/Lang/eo.php deleted file mode 100644 index 7c2efba..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/eo.php +++ /dev/null @@ -1,77 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Josh Soref - * - François B - * - Mia Nordentoft - * - JD Isaacks - */ -return [ - 'year' => ':count jaro|:count jaroj', - 'a_year' => 'jaro|:count jaroj', - 'y' => ':count j.', - 'month' => ':count monato|:count monatoj', - 'a_month' => 'monato|:count monatoj', - 'm' => ':count mo.', - 'week' => ':count semajno|:count semajnoj', - 'a_week' => 'semajno|:count semajnoj', - 'w' => ':count sem.', - 'day' => ':count tago|:count tagoj', - 'a_day' => 'tago|:count tagoj', - 'd' => ':count t.', - 'hour' => ':count horo|:count horoj', - 'a_hour' => 'horo|:count horoj', - 'h' => ':count h.', - 'minute' => ':count minuto|:count minutoj', - 'a_minute' => 'minuto|:count minutoj', - 'min' => ':count min.', - 'second' => ':count sekundo|:count sekundoj', - 'a_second' => 'sekundoj|:count sekundoj', - 's' => ':count sek.', - 'ago' => 'antaŭ :time', - 'from_now' => 'post :time', - 'after' => ':time poste', - 'before' => ':time antaŭe', - 'diff_yesterday' => 'Hieraŭ', - 'diff_yesterday_regexp' => 'Hieraŭ(?:\\s+je)?', - 'diff_today' => 'Hodiaŭ', - 'diff_today_regexp' => 'Hodiaŭ(?:\\s+je)?', - 'diff_tomorrow' => 'Morgaŭ', - 'diff_tomorrow_regexp' => 'Morgaŭ(?:\\s+je)?', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'YYYY-MM-DD', - 'LL' => 'D[-a de] MMMM, YYYY', - 'LLL' => 'D[-a de] MMMM, YYYY HH:mm', - 'LLLL' => 'dddd, [la] D[-a de] MMMM, YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[Hodiaŭ je] LT', - 'nextDay' => '[Morgaŭ je] LT', - 'nextWeek' => 'dddd [je] LT', - 'lastDay' => '[Hieraŭ je] LT', - 'lastWeek' => '[pasinta] dddd [je] LT', - 'sameElse' => 'L', - ], - 'ordinal' => ':numbera', - 'meridiem' => ['a.t.m.', 'p.t.m.'], - 'months' => ['januaro', 'februaro', 'marto', 'aprilo', 'majo', 'junio', 'julio', 'aŭgusto', 'septembro', 'oktobro', 'novembro', 'decembro'], - 'months_short' => ['jan', 'feb', 'mar', 'apr', 'maj', 'jun', 'jul', 'aŭg', 'sep', 'okt', 'nov', 'dec'], - 'weekdays' => ['dimanĉo', 'lundo', 'mardo', 'merkredo', 'ĵaŭdo', 'vendredo', 'sabato'], - 'weekdays_short' => ['dim', 'lun', 'mard', 'merk', 'ĵaŭ', 'ven', 'sab'], - 'weekdays_min' => ['di', 'lu', 'ma', 'me', 'ĵa', 've', 'sa'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'list' => [', ', ' kaj '], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/es.php b/vendor/nesbot/carbon/src/Carbon/Lang/es.php deleted file mode 100644 index dc24945..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/es.php +++ /dev/null @@ -1,125 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Kunal Marwaha - * - kostas - * - François B - * - Tim Fish - * - Claire Coloma - * - Steven Heinrich - * - JD Isaacks - * - Raphael Amorim - * - Jorge Y. Castillo - * - Víctor Díaz - * - Diego - * - Sebastian Thierer - * - quinterocesar - * - Daniel Commesse Liévanos (danielcommesse) - * - Pete Scopes (pdscopes) - * - gam04 - */ - -use Carbon\CarbonInterface; - -return [ - 'year' => ':count año|:count años', - 'a_year' => 'un año|:count años', - 'y' => ':count año|:count años', - 'month' => ':count mes|:count meses', - 'a_month' => 'un mes|:count meses', - 'm' => ':count mes|:count meses', - 'week' => ':count semana|:count semanas', - 'a_week' => 'una semana|:count semanas', - 'w' => ':countsem', - 'day' => ':count día|:count días', - 'a_day' => 'un día|:count días', - 'd' => ':countd', - 'hour' => ':count hora|:count horas', - 'a_hour' => 'una hora|:count horas', - 'h' => ':counth', - 'minute' => ':count minuto|:count minutos', - 'a_minute' => 'un minuto|:count minutos', - 'min' => ':countm', - 'second' => ':count segundo|:count segundos', - 'a_second' => 'unos segundos|:count segundos', - 's' => ':counts', - 'millisecond' => ':count milisegundo|:count milisegundos', - 'a_millisecond' => 'un milisegundo|:count milisegundos', - 'ms' => ':countms', - 'microsecond' => ':count microsegundo|:count microsegundos', - 'a_microsecond' => 'un microsegundo|:count microsegundos', - 'µs' => ':countµs', - 'ago' => 'hace :time', - 'from_now' => 'en :time', - 'after' => ':time después', - 'before' => ':time antes', - 'diff_now' => 'ahora mismo', - 'diff_today' => 'hoy', - 'diff_today_regexp' => 'hoy(?:\\s+a)?(?:\\s+las)?', - 'diff_yesterday' => 'ayer', - 'diff_yesterday_regexp' => 'ayer(?:\\s+a)?(?:\\s+las)?', - 'diff_tomorrow' => 'mañana', - 'diff_tomorrow_regexp' => 'mañana(?:\\s+a)?(?:\\s+las)?', - 'diff_before_yesterday' => 'anteayer', - 'diff_after_tomorrow' => 'pasado mañana', - 'period_recurrences' => 'una vez|:count veces', - 'period_interval' => 'cada :interval', - 'period_start_date' => 'de :date', - 'period_end_date' => 'a :date', - 'formats' => [ - 'LT' => 'H:mm', - 'LTS' => 'H:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D [de] MMMM [de] YYYY', - 'LLL' => 'D [de] MMMM [de] YYYY H:mm', - 'LLLL' => 'dddd, D [de] MMMM [de] YYYY H:mm', - ], - 'calendar' => [ - 'sameDay' => static function (CarbonInterface $current) { - return '[hoy a la'.($current->hour !== 1 ? 's' : '').'] LT'; - }, - 'nextDay' => static function (CarbonInterface $current) { - return '[mañana a la'.($current->hour !== 1 ? 's' : '').'] LT'; - }, - 'nextWeek' => static function (CarbonInterface $current) { - return 'dddd [a la'.($current->hour !== 1 ? 's' : '').'] LT'; - }, - 'lastDay' => static function (CarbonInterface $current) { - return '[ayer a la'.($current->hour !== 1 ? 's' : '').'] LT'; - }, - 'lastWeek' => static function (CarbonInterface $current) { - return '[el] dddd [pasado a la'.($current->hour !== 1 ? 's' : '').'] LT'; - }, - 'sameElse' => 'L', - ], - 'months' => ['enero', 'febrero', 'marzo', 'abril', 'mayo', 'junio', 'julio', 'agosto', 'septiembre', 'octubre', 'noviembre', 'diciembre'], - 'months_short' => ['ene', 'feb', 'mar', 'abr', 'may', 'jun', 'jul', 'ago', 'sep', 'oct', 'nov', 'dic'], - 'mmm_suffix' => '.', - 'ordinal' => ':numberº', - 'weekdays' => ['domingo', 'lunes', 'martes', 'miércoles', 'jueves', 'viernes', 'sábado'], - 'weekdays_short' => ['dom.', 'lun.', 'mar.', 'mié.', 'jue.', 'vie.', 'sáb.'], - 'weekdays_min' => ['do', 'lu', 'ma', 'mi', 'ju', 'vi', 'sá'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => [', ', ' y '], - 'meridiem' => ['a. m.', 'p. m.'], - 'ordinal_words' => [ - 'of' => 'de', - 'first' => 'primer', - 'second' => 'segundo', - 'third' => 'tercer', - 'fourth' => 'cuarto', - 'fifth' => 'quinto', - 'last' => 'último', - ], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/es_419.php b/vendor/nesbot/carbon/src/Carbon/Lang/es_419.php deleted file mode 100644 index a74806e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/es_419.php +++ /dev/null @@ -1,19 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - RAP bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/es.php', [ - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/es_AR.php b/vendor/nesbot/carbon/src/Carbon/Lang/es_AR.php deleted file mode 100644 index a74806e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/es_AR.php +++ /dev/null @@ -1,19 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - RAP bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/es.php', [ - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/es_BO.php b/vendor/nesbot/carbon/src/Carbon/Lang/es_BO.php deleted file mode 100644 index c9b8432..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/es_BO.php +++ /dev/null @@ -1,19 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - RAP bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/es.php', [ - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/es_BR.php b/vendor/nesbot/carbon/src/Carbon/Lang/es_BR.php deleted file mode 100644 index 378d054..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/es_BR.php +++ /dev/null @@ -1,14 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/es.php', [ - 'first_day_of_week' => 0, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/es_BZ.php b/vendor/nesbot/carbon/src/Carbon/Lang/es_BZ.php deleted file mode 100644 index 378d054..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/es_BZ.php +++ /dev/null @@ -1,14 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/es.php', [ - 'first_day_of_week' => 0, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/es_CL.php b/vendor/nesbot/carbon/src/Carbon/Lang/es_CL.php deleted file mode 100644 index a74806e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/es_CL.php +++ /dev/null @@ -1,19 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - RAP bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/es.php', [ - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/es_CO.php b/vendor/nesbot/carbon/src/Carbon/Lang/es_CO.php deleted file mode 100644 index a74806e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/es_CO.php +++ /dev/null @@ -1,19 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - RAP bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/es.php', [ - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/es_CR.php b/vendor/nesbot/carbon/src/Carbon/Lang/es_CR.php deleted file mode 100644 index 553fc09..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/es_CR.php +++ /dev/null @@ -1,19 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Free Software Foundation, Inc. bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/es.php', [ - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/es_CU.php b/vendor/nesbot/carbon/src/Carbon/Lang/es_CU.php deleted file mode 100644 index f02e1a6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/es_CU.php +++ /dev/null @@ -1,14 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/es.php', [ - 'first_day_of_week' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/es_DO.php b/vendor/nesbot/carbon/src/Carbon/Lang/es_DO.php deleted file mode 100644 index 0f855ba..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/es_DO.php +++ /dev/null @@ -1,31 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - kostas - * - François B - * - Tim Fish - * - Chiel Robben - * - Claire Coloma - * - Steven Heinrich - * - JD Isaacks - * - Raphael Amorim - */ -return array_replace_recursive(require __DIR__.'/es.php', [ - 'diff_before_yesterday' => 'anteayer', - 'formats' => [ - 'LT' => 'h:mm A', - 'LTS' => 'h:mm:ss A', - 'LLL' => 'D [de] MMMM [de] YYYY h:mm A', - 'LLLL' => 'dddd, D [de] MMMM [de] YYYY h:mm A', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/es_EA.php b/vendor/nesbot/carbon/src/Carbon/Lang/es_EA.php deleted file mode 100644 index f02e1a6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/es_EA.php +++ /dev/null @@ -1,14 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/es.php', [ - 'first_day_of_week' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/es_EC.php b/vendor/nesbot/carbon/src/Carbon/Lang/es_EC.php deleted file mode 100644 index a74806e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/es_EC.php +++ /dev/null @@ -1,19 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - RAP bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/es.php', [ - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/es_ES.php b/vendor/nesbot/carbon/src/Carbon/Lang/es_ES.php deleted file mode 100644 index 19217c2..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/es_ES.php +++ /dev/null @@ -1,16 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - RAP bug-glibc-locales@gnu.org - */ -return require __DIR__.'/es.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/es_GQ.php b/vendor/nesbot/carbon/src/Carbon/Lang/es_GQ.php deleted file mode 100644 index f02e1a6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/es_GQ.php +++ /dev/null @@ -1,14 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/es.php', [ - 'first_day_of_week' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/es_GT.php b/vendor/nesbot/carbon/src/Carbon/Lang/es_GT.php deleted file mode 100644 index a74806e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/es_GT.php +++ /dev/null @@ -1,19 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - RAP bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/es.php', [ - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/es_HN.php b/vendor/nesbot/carbon/src/Carbon/Lang/es_HN.php deleted file mode 100644 index a74806e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/es_HN.php +++ /dev/null @@ -1,19 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - RAP bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/es.php', [ - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/es_IC.php b/vendor/nesbot/carbon/src/Carbon/Lang/es_IC.php deleted file mode 100644 index f02e1a6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/es_IC.php +++ /dev/null @@ -1,14 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/es.php', [ - 'first_day_of_week' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/es_MX.php b/vendor/nesbot/carbon/src/Carbon/Lang/es_MX.php deleted file mode 100644 index 61e14cf..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/es_MX.php +++ /dev/null @@ -1,20 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - RAP bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/es.php', [ - 'diff_before_yesterday' => 'antier', - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/es_NI.php b/vendor/nesbot/carbon/src/Carbon/Lang/es_NI.php deleted file mode 100644 index 6b964c1..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/es_NI.php +++ /dev/null @@ -1,19 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Free Software Foundation, Inc. bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/es.php', [ - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/es_PA.php b/vendor/nesbot/carbon/src/Carbon/Lang/es_PA.php deleted file mode 100644 index a74806e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/es_PA.php +++ /dev/null @@ -1,19 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - RAP bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/es.php', [ - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/es_PE.php b/vendor/nesbot/carbon/src/Carbon/Lang/es_PE.php deleted file mode 100644 index a74806e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/es_PE.php +++ /dev/null @@ -1,19 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - RAP bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/es.php', [ - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/es_PH.php b/vendor/nesbot/carbon/src/Carbon/Lang/es_PH.php deleted file mode 100644 index deae06a..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/es_PH.php +++ /dev/null @@ -1,22 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/es.php', [ - 'first_day_of_week' => 0, - 'formats' => [ - 'LT' => 'h:mm a', - 'LTS' => 'h:mm:ss a', - 'L' => 'D/M/yy', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D [de] MMMM [de] YYYY h:mm a', - 'LLLL' => 'dddd, D [de] MMMM [de] YYYY h:mm a', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/es_PR.php b/vendor/nesbot/carbon/src/Carbon/Lang/es_PR.php deleted file mode 100644 index 6b964c1..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/es_PR.php +++ /dev/null @@ -1,19 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Free Software Foundation, Inc. bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/es.php', [ - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/es_PY.php b/vendor/nesbot/carbon/src/Carbon/Lang/es_PY.php deleted file mode 100644 index a74806e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/es_PY.php +++ /dev/null @@ -1,19 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - RAP bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/es.php', [ - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/es_SV.php b/vendor/nesbot/carbon/src/Carbon/Lang/es_SV.php deleted file mode 100644 index 00db08e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/es_SV.php +++ /dev/null @@ -1,20 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - RAP bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/es.php', [ - 'months' => ['enero', 'febrero', 'marzo', 'abril', 'mayo', 'junio', 'julio', 'agosto', 'septiembre', 'octubre', 'noviembre', 'diciembre'], - 'months_short' => ['ene', 'feb', 'mar', 'abr', 'may', 'jun', 'jul', 'ago', 'sep', 'oct', 'nov', 'dic'], - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/es_US.php b/vendor/nesbot/carbon/src/Carbon/Lang/es_US.php deleted file mode 100644 index f333136..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/es_US.php +++ /dev/null @@ -1,38 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Kunal Marwaha - * - Josh Soref - * - Jørn Ølmheim - * - Craig Patik - * - bustta - * - François B - * - Tim Fish - * - Claire Coloma - * - Steven Heinrich - * - JD Isaacks - * - Raphael Amorim - */ -return array_replace_recursive(require __DIR__.'/es.php', [ - 'diff_before_yesterday' => 'anteayer', - 'formats' => [ - 'LT' => 'h:mm A', - 'LTS' => 'h:mm:ss A', - 'L' => 'MM/DD/YYYY', - 'LL' => 'MMMM [de] D [de] YYYY', - 'LLL' => 'MMMM [de] D [de] YYYY h:mm A', - 'LLLL' => 'dddd, MMMM [de] D [de] YYYY h:mm A', - ], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/es_UY.php b/vendor/nesbot/carbon/src/Carbon/Lang/es_UY.php deleted file mode 100644 index 39baff8..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/es_UY.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - RAP bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/es.php', [ - 'months' => ['enero', 'febrero', 'marzo', 'abril', 'mayo', 'junio', 'julio', 'agosto', 'setiembre', 'octubre', 'noviembre', 'diciembre'], - 'months_short' => ['ene', 'feb', 'mar', 'abr', 'may', 'jun', 'jul', 'ago', 'set', 'oct', 'nov', 'dic'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/es_VE.php b/vendor/nesbot/carbon/src/Carbon/Lang/es_VE.php deleted file mode 100644 index a74806e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/es_VE.php +++ /dev/null @@ -1,19 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - RAP bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/es.php', [ - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/et.php b/vendor/nesbot/carbon/src/Carbon/Lang/et.php deleted file mode 100644 index f49c880..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/et.php +++ /dev/null @@ -1,93 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Philippe Vaucher - * - Andres Ivanov - * - Tsutomu Kuroda - * - tjku - * - Max Melentiev - * - Juanito Fatas - * - RM87 - * - Akira Matsuda - * - Christopher Dell - * - Enrique Vidal - * - Simone Carletti - * - Aaron Patterson - * - Esko Lehtme - * - Mart Karu - * - Nicolás Hock Isaza - * - Kevin Valdek - * - Zahhar Kirillov - * - João Magalhães - * - Ingmar - * - Illimar Tambek - * - Mihkel - */ -return [ - 'year' => ':count aasta|:count aastat', - 'y' => ':count a', - 'month' => ':count kuu|:count kuud', - 'm' => ':count k', - 'week' => ':count nädal|:count nädalat', - 'w' => ':count näd', - 'day' => ':count päev|:count päeva', - 'd' => ':count p', - 'hour' => ':count tund|:count tundi', - 'h' => ':count t', - 'minute' => ':count minut|:count minutit', - 'min' => ':count min', - 'second' => ':count sekund|:count sekundit', - 's' => ':count s', - 'ago' => ':time tagasi', - 'from_now' => ':time pärast', - 'after' => ':time pärast', - 'before' => ':time enne', - 'year_from_now' => ':count aasta', - 'month_from_now' => ':count kuu', - 'week_from_now' => ':count nädala', - 'day_from_now' => ':count päeva', - 'hour_from_now' => ':count tunni', - 'minute_from_now' => ':count minuti', - 'second_from_now' => ':count sekundi', - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'diff_now' => 'nüüd', - 'diff_today' => 'täna', - 'diff_yesterday' => 'eile', - 'diff_tomorrow' => 'homme', - 'diff_before_yesterday' => 'üleeile', - 'diff_after_tomorrow' => 'ülehomme', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD.MM.YYYY', - 'LL' => 'D. MMMM YYYY', - 'LLL' => 'D. MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D. MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[täna] LT', - 'nextDay' => '[homme] LT', - 'lastDay' => '[eile] LT', - 'nextWeek' => 'dddd LT', - 'lastWeek' => '[eelmine] dddd LT', - 'sameElse' => 'L', - ], - 'months' => ['jaanuar', 'veebruar', 'märts', 'aprill', 'mai', 'juuni', 'juuli', 'august', 'september', 'oktoober', 'november', 'detsember'], - 'months_short' => ['jaan', 'veebr', 'märts', 'apr', 'mai', 'juuni', 'juuli', 'aug', 'sept', 'okt', 'nov', 'dets'], - 'weekdays' => ['pühapäev', 'esmaspäev', 'teisipäev', 'kolmapäev', 'neljapäev', 'reede', 'laupäev'], - 'weekdays_short' => ['P', 'E', 'T', 'K', 'N', 'R', 'L'], - 'weekdays_min' => ['P', 'E', 'T', 'K', 'N', 'R', 'L'], - 'list' => [', ', ' ja '], - 'meridiem' => ['enne lõunat', 'pärast lõunat'], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/et_EE.php b/vendor/nesbot/carbon/src/Carbon/Lang/et_EE.php deleted file mode 100644 index 0f112b3..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/et_EE.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/et.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/eu.php b/vendor/nesbot/carbon/src/Carbon/Lang/eu.php deleted file mode 100644 index a543f1a..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/eu.php +++ /dev/null @@ -1,67 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Josh Soref - * - François B - * - JD Isaacks - */ -return [ - 'year' => 'urte bat|:count urte', - 'y' => 'Urte 1|:count urte', - 'month' => 'hilabete bat|:count hilabete', - 'm' => 'Hile 1|:count hile', - 'week' => 'Aste 1|:count aste', - 'w' => 'Aste 1|:count aste', - 'day' => 'egun bat|:count egun', - 'd' => 'Egun 1|:count egun', - 'hour' => 'ordu bat|:count ordu', - 'h' => 'Ordu 1|:count ordu', - 'minute' => 'minutu bat|:count minutu', - 'min' => 'Minutu 1|:count minutu', - 'second' => 'segundo batzuk|:count segundo', - 's' => 'Segundu 1|:count segundu', - 'ago' => 'duela :time', - 'from_now' => ':time barru', - 'after' => ':time geroago', - 'before' => ':time lehenago', - 'diff_now' => 'orain', - 'diff_today' => 'gaur', - 'diff_yesterday' => 'atzo', - 'diff_tomorrow' => 'bihar', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'YYYY-MM-DD', - 'LL' => 'YYYY[ko] MMMM[ren] D[a]', - 'LLL' => 'YYYY[ko] MMMM[ren] D[a] HH:mm', - 'LLLL' => 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[gaur] LT[etan]', - 'nextDay' => '[bihar] LT[etan]', - 'nextWeek' => 'dddd LT[etan]', - 'lastDay' => '[atzo] LT[etan]', - 'lastWeek' => '[aurreko] dddd LT[etan]', - 'sameElse' => 'L', - ], - 'ordinal' => ':number.', - 'months' => ['urtarrila', 'otsaila', 'martxoa', 'apirila', 'maiatza', 'ekaina', 'uztaila', 'abuztua', 'iraila', 'urria', 'azaroa', 'abendua'], - 'months_short' => ['urt.', 'ots.', 'mar.', 'api.', 'mai.', 'eka.', 'uzt.', 'abu.', 'ira.', 'urr.', 'aza.', 'abe.'], - 'weekdays' => ['igandea', 'astelehena', 'asteartea', 'asteazkena', 'osteguna', 'ostirala', 'larunbata'], - 'weekdays_short' => ['ig.', 'al.', 'ar.', 'az.', 'og.', 'ol.', 'lr.'], - 'weekdays_min' => ['ig', 'al', 'ar', 'az', 'og', 'ol', 'lr'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'list' => [', ', ' eta '], - 'meridiem' => ['g', 'a'], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/eu_ES.php b/vendor/nesbot/carbon/src/Carbon/Lang/eu_ES.php deleted file mode 100644 index 0d1e82a..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/eu_ES.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/eu.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ewo.php b/vendor/nesbot/carbon/src/Carbon/Lang/ewo.php deleted file mode 100644 index 7808ab5..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ewo.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'meridiem' => ['kíkíríg', 'ngəgógəle'], - 'weekdays' => ['sɔ́ndɔ', 'mɔ́ndi', 'sɔ́ndɔ məlú mə́bɛ̌', 'sɔ́ndɔ məlú mə́lɛ́', 'sɔ́ndɔ məlú mə́nyi', 'fúladé', 'séradé'], - 'weekdays_short' => ['sɔ́n', 'mɔ́n', 'smb', 'sml', 'smn', 'fúl', 'sér'], - 'weekdays_min' => ['sɔ́n', 'mɔ́n', 'smb', 'sml', 'smn', 'fúl', 'sér'], - 'months' => ['ngɔn osú', 'ngɔn bɛ̌', 'ngɔn lála', 'ngɔn nyina', 'ngɔn tána', 'ngɔn saməna', 'ngɔn zamgbála', 'ngɔn mwom', 'ngɔn ebulú', 'ngɔn awóm', 'ngɔn awóm ai dziá', 'ngɔn awóm ai bɛ̌'], - 'months_short' => ['ngo', 'ngb', 'ngl', 'ngn', 'ngt', 'ngs', 'ngz', 'ngm', 'nge', 'nga', 'ngad', 'ngab'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'D/M/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], - - // Too unreliable - /* - 'year' => ':count mbu', // less reliable - 'y' => ':count mbu', // less reliable - 'a_year' => ':count mbu', // less reliable - - 'month' => ':count ngòn', // less reliable - 'm' => ':count ngòn', // less reliable - 'a_month' => ':count ngòn', // less reliable - - 'week' => ':count mësë', // less reliable - 'w' => ':count mësë', // less reliable - 'a_week' => ':count mësë', // less reliable - - 'day' => ':count mësë', // less reliable - 'd' => ':count mësë', // less reliable - 'a_day' => ':count mësë', // less reliable - - 'hour' => ':count awola', // less reliable - 'h' => ':count awola', // less reliable - 'a_hour' => ':count awola', // less reliable - - 'minute' => ':count awola', // less reliable - 'min' => ':count awola', // less reliable - 'a_minute' => ':count awola', // less reliable - */ -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fa.php b/vendor/nesbot/carbon/src/Carbon/Lang/fa.php deleted file mode 100644 index 72e0308..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fa.php +++ /dev/null @@ -1,84 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Josh Soref - * - François B - * - Nasser Ghiasi - * - JD Isaacks - * - Hossein Jabbari - * - nimamo - * - hafezdivandari - * - Hassan Pezeshk (hpez) - */ -return [ - 'year' => ':count سال', - 'a_year' => 'یک سال'.'|:count '.'سال', - 'y' => ':count سال', - 'month' => ':count ماه', - 'a_month' => 'یک ماه'.'|:count '.'ماه', - 'm' => ':count ماه', - 'week' => ':count هفته', - 'a_week' => 'یک هفته'.'|:count '.'هفته', - 'w' => ':count هفته', - 'day' => ':count روز', - 'a_day' => 'یک روز'.'|:count '.'روز', - 'd' => ':count روز', - 'hour' => ':count ساعت', - 'a_hour' => 'یک ساعت'.'|:count '.'ساعت', - 'h' => ':count ساعت', - 'minute' => ':count دقیقه', - 'a_minute' => 'یک دقیقه'.'|:count '.'دقیقه', - 'min' => ':count دقیقه', - 'second' => ':count ثانیه', - 's' => ':count ثانیه', - 'ago' => ':time پیش', - 'from_now' => ':time دیگر', - 'after' => ':time پس از', - 'before' => ':time پیش از', - 'diff_now' => 'اکنون', - 'diff_today' => 'امروز', - 'diff_today_regexp' => 'امروز(?:\\s+ساعت)?', - 'diff_yesterday' => 'دیروز', - 'diff_yesterday_regexp' => 'دیروز(?:\\s+ساعت)?', - 'diff_tomorrow' => 'فردا', - 'diff_tomorrow_regexp' => 'فردا(?:\\s+ساعت)?', - 'formats' => [ - 'LT' => 'OH:Om', - 'LTS' => 'OH:Om:Os', - 'L' => 'OD/OM/OY', - 'LL' => 'OD MMMM OY', - 'LLL' => 'OD MMMM OY OH:Om', - 'LLLL' => 'dddd, OD MMMM OY OH:Om', - ], - 'calendar' => [ - 'sameDay' => '[امروز ساعت] LT', - 'nextDay' => '[فردا ساعت] LT', - 'nextWeek' => 'dddd [ساعت] LT', - 'lastDay' => '[دیروز ساعت] LT', - 'lastWeek' => 'dddd [پیش] [ساعت] LT', - 'sameElse' => 'L', - ], - 'ordinal' => ':timeم', - 'meridiem' => ['قبل از ظهر', 'بعد از ظهر'], - 'months' => ['ژانویه', 'فوریه', 'مارس', 'آوریل', 'مه', 'ژوئن', 'ژوئیه', 'اوت', 'سپتامبر', 'اکتبر', 'نوامبر', 'دسامبر'], - 'months_short' => ['ژانویه', 'فوریه', 'مارس', 'آوریل', 'مه', 'ژوئن', 'ژوئیه', 'اوت', 'سپتامبر', 'اکتبر', 'نوامبر', 'دسامبر'], - 'weekdays' => ['یکشنبه', 'دوشنبه', 'سه‌شنبه', 'چهارشنبه', 'پنجشنبه', 'جمعه', 'شنبه'], - 'weekdays_short' => ['یکشنبه', 'دوشنبه', 'سه‌شنبه', 'چهارشنبه', 'پنجشنبه', 'جمعه', 'شنبه'], - 'weekdays_min' => ['ی', 'د', 'س', 'چ', 'پ', 'ج', 'ش'], - 'first_day_of_week' => 6, - 'day_of_first_week_of_year' => 1, - 'list' => ['، ', ' و '], - 'alt_numbers' => ['۰۰', '۰۱', '۰۲', '۰۳', '۰۴', '۰۵', '۰۶', '۰۷', '۰۸', '۰۹', '۱۰', '۱۱', '۱۲', '۱۳', '۱۴', '۱۵', '۱۶', '۱۷', '۱۸', '۱۹', '۲۰', '۲۱', '۲۲', '۲۳', '۲۴', '۲۵', '۲۶', '۲۷', '۲۸', '۲۹', '۳۰', '۳۱', '۳۲', '۳۳', '۳۴', '۳۵', '۳۶', '۳۷', '۳۸', '۳۹', '۴۰', '۴۱', '۴۲', '۴۳', '۴۴', '۴۵', '۴۶', '۴۷', '۴۸', '۴۹', '۵۰', '۵۱', '۵۲', '۵۳', '۵۴', '۵۵', '۵۶', '۵۷', '۵۸', '۵۹', '۶۰', '۶۱', '۶۲', '۶۳', '۶۴', '۶۵', '۶۶', '۶۷', '۶۸', '۶۹', '۷۰', '۷۱', '۷۲', '۷۳', '۷۴', '۷۵', '۷۶', '۷۷', '۷۸', '۷۹', '۸۰', '۸۱', '۸۲', '۸۳', '۸۴', '۸۵', '۸۶', '۸۷', '۸۸', '۸۹', '۹۰', '۹۱', '۹۲', '۹۳', '۹۴', '۹۵', '۹۶', '۹۷', '۹۸', '۹۹'], - 'months_short_standalone' => ['ژانویه', 'فوریه', 'مارس', 'آوریل', 'مه', 'ژوئن', 'ژوئیه', 'اوت', 'سپتامبر', 'اکتبر', 'نوامبر', 'دسامبر'], - 'weekend' => [5, 5], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fa_AF.php b/vendor/nesbot/carbon/src/Carbon/Lang/fa_AF.php deleted file mode 100644 index 6947100..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fa_AF.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/fa.php', [ - 'meridiem' => ['ق', 'ب'], - 'weekend' => [4, 5], - 'formats' => [ - 'L' => 'OY/OM/OD', - 'LL' => 'OD MMM OY', - 'LLL' => 'OD MMMM OY،‏ H:mm', - 'LLLL' => 'dddd OD MMMM OY،‏ H:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fa_IR.php b/vendor/nesbot/carbon/src/Carbon/Lang/fa_IR.php deleted file mode 100644 index 08d0182..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fa_IR.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/fa.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ff.php b/vendor/nesbot/carbon/src/Carbon/Lang/ff.php deleted file mode 100644 index 9525c95..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ff.php +++ /dev/null @@ -1,60 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM, YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], - 'months' => ['siilo', 'colte', 'mbooy', 'seeɗto', 'duujal', 'korse', 'morso', 'juko', 'siilto', 'yarkomaa', 'jolal', 'bowte'], - 'months_short' => ['sii', 'col', 'mbo', 'see', 'duu', 'kor', 'mor', 'juk', 'slt', 'yar', 'jol', 'bow'], - 'weekdays' => ['dewo', 'aaɓnde', 'mawbaare', 'njeslaare', 'naasaande', 'mawnde', 'hoore-biir'], - 'weekdays_short' => ['dew', 'aaɓ', 'maw', 'nje', 'naa', 'mwd', 'hbi'], - 'weekdays_min' => ['dew', 'aaɓ', 'maw', 'nje', 'naa', 'mwd', 'hbi'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['subaka', 'kikiiɗe'], - - 'year' => ':count baret', // less reliable - 'y' => ':count baret', // less reliable - 'a_year' => ':count baret', // less reliable - - 'month' => ':count lewru', // less reliable - 'm' => ':count lewru', // less reliable - 'a_month' => ':count lewru', // less reliable - - 'week' => ':count naange', // less reliable - 'w' => ':count naange', // less reliable - 'a_week' => ':count naange', // less reliable - - 'day' => ':count dian', // less reliable - 'd' => ':count dian', // less reliable - 'a_day' => ':count dian', // less reliable - - 'hour' => ':count montor', // less reliable - 'h' => ':count montor', // less reliable - 'a_hour' => ':count montor', // less reliable - - 'minute' => ':count tokossuoum', // less reliable - 'min' => ':count tokossuoum', // less reliable - 'a_minute' => ':count tokossuoum', // less reliable - - 'second' => ':count tenen', // less reliable - 's' => ':count tenen', // less reliable - 'a_second' => ':count tenen', // less reliable -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ff_CM.php b/vendor/nesbot/carbon/src/Carbon/Lang/ff_CM.php deleted file mode 100644 index b797ac0..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ff_CM.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/ff.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ff_GN.php b/vendor/nesbot/carbon/src/Carbon/Lang/ff_GN.php deleted file mode 100644 index b797ac0..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ff_GN.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/ff.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ff_MR.php b/vendor/nesbot/carbon/src/Carbon/Lang/ff_MR.php deleted file mode 100644 index 2f4c29f..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ff_MR.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/ff.php', [ - 'formats' => [ - 'LT' => 'h:mm a', - 'LTS' => 'h:mm:ss a', - 'L' => 'D/M/YYYY', - 'LL' => 'D MMM, YYYY', - 'LLL' => 'D MMMM YYYY h:mm a', - 'LLLL' => 'dddd D MMMM YYYY h:mm a', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ff_SN.php b/vendor/nesbot/carbon/src/Carbon/Lang/ff_SN.php deleted file mode 100644 index 1e4c8b6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ff_SN.php +++ /dev/null @@ -1,16 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Pular-Fulfulde.org Ibrahima Sarr admin@pulaar-fulfulde.org - */ -return require __DIR__.'/ff.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fi.php b/vendor/nesbot/carbon/src/Carbon/Lang/fi.php deleted file mode 100644 index edf2d6d..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fi.php +++ /dev/null @@ -1,88 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Philippe Vaucher - * - Janne Warén - * - digitalfrost - * - Tsutomu Kuroda - * - Roope Salmi - * - tjku - * - Max Melentiev - * - Sami Haahtinen - * - Teemu Leisti - * - Artem Ignatyev - * - Akira Matsuda - * - Christopher Dell - * - Enrique Vidal - * - Simone Carletti - * - Robert Bjarnason - * - Aaron Patterson - * - Nicolás Hock Isaza - * - Tom Hughes - * - Sven Fuchs - * - Petri Kivikangas - * - Nizar Jouini - * - Marko Seppae - * - Tomi Mynttinen (Pikseli) - * - Petteri (powergrip) - */ -return [ - 'year' => ':count vuosi|:count vuotta', - 'y' => ':count v', - 'month' => ':count kuukausi|:count kuukautta', - 'm' => ':count kk', - 'week' => ':count viikko|:count viikkoa', - 'w' => ':count vk', - 'day' => ':count päivä|:count päivää', - 'd' => ':count pv', - 'hour' => ':count tunti|:count tuntia', - 'h' => ':count t', - 'minute' => ':count minuutti|:count minuuttia', - 'min' => ':count min', - 'second' => ':count sekunti|:count sekuntia', - 'a_second' => 'muutama sekunti|:count sekuntia', - 's' => ':count s', - 'ago' => ':time sitten', - 'from_now' => ':time päästä', - 'year_from_now' => ':count vuoden', - 'month_from_now' => ':count kuukauden', - 'week_from_now' => ':count viikon', - 'day_from_now' => ':count päivän', - 'hour_from_now' => ':count tunnin', - 'minute_from_now' => ':count minuutin', - 'second_from_now' => ':count sekunnin', - 'after' => ':time sen jälkeen', - 'before' => ':time ennen', - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => [', ', ' ja '], - 'diff_now' => 'nyt', - 'diff_yesterday' => 'eilen', - 'diff_tomorrow' => 'huomenna', - 'formats' => [ - 'LT' => 'HH.mm', - 'LTS' => 'HH.mm:ss', - 'L' => 'D.M.YYYY', - 'LL' => 'dddd D. MMMM[ta] YYYY', - 'll' => 'ddd D. MMM YYYY', - 'LLL' => 'D.MM. HH.mm', - 'LLLL' => 'D. MMMM[ta] YYYY HH.mm', - 'llll' => 'D. MMM YY HH.mm', - ], - 'weekdays' => ['sunnuntai', 'maanantai', 'tiistai', 'keskiviikko', 'torstai', 'perjantai', 'lauantai'], - 'weekdays_short' => ['su', 'ma', 'ti', 'ke', 'to', 'pe', 'la'], - 'weekdays_min' => ['su', 'ma', 'ti', 'ke', 'to', 'pe', 'la'], - 'months' => ['tammikuu', 'helmikuu', 'maaliskuu', 'huhtikuu', 'toukokuu', 'kesäkuu', 'heinäkuu', 'elokuu', 'syyskuu', 'lokakuu', 'marraskuu', 'joulukuu'], - 'months_short' => ['tammi', 'helmi', 'maalis', 'huhti', 'touko', 'kesä', 'heinä', 'elo', 'syys', 'loka', 'marras', 'joulu'], - 'meridiem' => ['aamupäivä', 'iltapäivä'], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fi_FI.php b/vendor/nesbot/carbon/src/Carbon/Lang/fi_FI.php deleted file mode 100644 index 920f1ca..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fi_FI.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/fi.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fil.php b/vendor/nesbot/carbon/src/Carbon/Lang/fil.php deleted file mode 100644 index 61114e3..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fil.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/fil_PH.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fil_PH.php b/vendor/nesbot/carbon/src/Carbon/Lang/fil_PH.php deleted file mode 100644 index 60751dd..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fil_PH.php +++ /dev/null @@ -1,63 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Rene Torres Rene Torres, Pablo Saratxaga rgtorre@rocketmail.com, pablo@mandrakesoft.com - * - Jaycee Mariano (alohajaycee) - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'MM/DD/YY', - ], - 'months' => ['Enero', 'Pebrero', 'Marso', 'Abril', 'Mayo', 'Hunyo', 'Hulyo', 'Agosto', 'Setyembre', 'Oktubre', 'Nobyembre', 'Disyembre'], - 'months_short' => ['Ene', 'Peb', 'Mar', 'Abr', 'May', 'Hun', 'Hul', 'Ago', 'Set', 'Okt', 'Nob', 'Dis'], - 'weekdays' => ['Linggo', 'Lunes', 'Martes', 'Miyerkoles', 'Huwebes', 'Biyernes', 'Sabado'], - 'weekdays_short' => ['Lin', 'Lun', 'Mar', 'Miy', 'Huw', 'Biy', 'Sab'], - 'weekdays_min' => ['Lin', 'Lun', 'Mar', 'Miy', 'Huw', 'Biy', 'Sab'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['N.U.', 'N.H.'], - - 'before' => ':time bago', - 'after' => ':time pagkatapos', - - 'year' => ':count taon', - 'y' => ':count taon', - 'a_year' => ':count taon', - - 'month' => ':count buwan', - 'm' => ':count buwan', - 'a_month' => ':count buwan', - - 'week' => ':count linggo', - 'w' => ':count linggo', - 'a_week' => ':count linggo', - - 'day' => ':count araw', - 'd' => ':count araw', - 'a_day' => ':count araw', - - 'hour' => ':count oras', - 'h' => ':count oras', - 'a_hour' => ':count oras', - - 'minute' => ':count minuto', - 'min' => ':count minuto', - 'a_minute' => ':count minuto', - - 'second' => ':count segundo', - 's' => ':count segundo', - 'a_second' => ':count segundo', - - 'ago' => ':time ang nakalipas', - 'from_now' => 'sa :time', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fo.php b/vendor/nesbot/carbon/src/Carbon/Lang/fo.php deleted file mode 100644 index 6a14a6f..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fo.php +++ /dev/null @@ -1,69 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Kristian Sakarisson - * - François B - * - JD Isaacks - * - Sverri Mohr Olsen - */ -return [ - 'year' => 'eitt ár|:count ár', - 'y' => ':count ár|:count ár', - 'month' => 'ein mánaði|:count mánaðir', - 'm' => ':count mánaður|:count mánaðir', - 'week' => ':count vika|:count vikur', - 'w' => ':count vika|:count vikur', - 'day' => 'ein dagur|:count dagar', - 'd' => ':count dag|:count dagar', - 'hour' => 'ein tími|:count tímar', - 'h' => ':count tími|:count tímar', - 'minute' => 'ein minutt|:count minuttir', - 'min' => ':count minutt|:count minuttir', - 'second' => 'fá sekund|:count sekundir', - 's' => ':count sekund|:count sekundir', - 'ago' => ':time síðani', - 'from_now' => 'um :time', - 'after' => ':time aftaná', - 'before' => ':time áðrenn', - 'diff_today' => 'Í', - 'diff_yesterday' => 'Í', - 'diff_yesterday_regexp' => 'Í(?:\\s+gjár)?(?:\\s+kl.)?', - 'diff_tomorrow' => 'Í', - 'diff_tomorrow_regexp' => 'Í(?:\\s+morgin)?(?:\\s+kl.)?', - 'diff_today_regexp' => 'Í(?:\\s+dag)?(?:\\s+kl.)?', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D. MMMM, YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[Í dag kl.] LT', - 'nextDay' => '[Í morgin kl.] LT', - 'nextWeek' => 'dddd [kl.] LT', - 'lastDay' => '[Í gjár kl.] LT', - 'lastWeek' => '[síðstu] dddd [kl] LT', - 'sameElse' => 'L', - ], - 'ordinal' => ':number.', - 'months' => ['januar', 'februar', 'mars', 'apríl', 'mai', 'juni', 'juli', 'august', 'september', 'oktober', 'november', 'desember'], - 'months_short' => ['jan', 'feb', 'mar', 'apr', 'mai', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'des'], - 'weekdays' => ['sunnudagur', 'mánadagur', 'týsdagur', 'mikudagur', 'hósdagur', 'fríggjadagur', 'leygardagur'], - 'weekdays_short' => ['sun', 'mán', 'týs', 'mik', 'hós', 'frí', 'ley'], - 'weekdays_min' => ['su', 'má', 'tý', 'mi', 'hó', 'fr', 'le'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => [', ', ' og '], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fo_DK.php b/vendor/nesbot/carbon/src/Carbon/Lang/fo_DK.php deleted file mode 100644 index 657f2c5..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fo_DK.php +++ /dev/null @@ -1,19 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/fo.php', [ - 'formats' => [ - 'L' => 'DD.MM.yy', - 'LL' => 'DD.MM.YYYY', - 'LLL' => 'D. MMMM YYYY, HH:mm', - 'LLLL' => 'dddd, D. MMMM YYYY, HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fo_FO.php b/vendor/nesbot/carbon/src/Carbon/Lang/fo_FO.php deleted file mode 100644 index 6d73616..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fo_FO.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/fo.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr.php deleted file mode 100644 index da696e7..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr.php +++ /dev/null @@ -1,118 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Dieter Sting - * - François B - * - Maxime VALY - * - JD Isaacks - * - Dieter Sting - * - François B - * - JD Isaacks - * - Sebastian Thierer - * - Fastfuel - * - Pete Scopes (pdscopes) - */ -return [ - 'millennium' => ':count millénaire|:count millénaires', - 'a_millennium' => 'un millénaire|:count millénaires', - 'century' => ':count siècle|:count siècles', - 'a_century' => 'un siècle|:count siècles', - 'decade' => ':count décennie|:count décennies', - 'a_decade' => 'une décennie|:count décennies', - 'year' => ':count an|:count ans', - 'a_year' => 'un an|:count ans', - 'y' => ':count an|:count ans', - 'month' => ':count mois|:count mois', - 'a_month' => 'un mois|:count mois', - 'm' => ':count mois', - 'week' => ':count semaine|:count semaines', - 'a_week' => 'une semaine|:count semaines', - 'w' => ':count sem.', - 'day' => ':count jour|:count jours', - 'a_day' => 'un jour|:count jours', - 'd' => ':count j', - 'hour' => ':count heure|:count heures', - 'a_hour' => 'une heure|:count heures', - 'h' => ':count h', - 'minute' => ':count minute|:count minutes', - 'a_minute' => 'une minute|:count minutes', - 'min' => ':count min', - 'second' => ':count seconde|:count secondes', - 'a_second' => 'quelques secondes|:count secondes', - 's' => ':count s', - 'millisecond' => ':count milliseconde|:count millisecondes', - 'a_millisecond' => 'une milliseconde|:count millisecondes', - 'ms' => ':countms', - 'microsecond' => ':count microseconde|:count microsecondes', - 'a_microsecond' => 'une microseconde|:count microsecondes', - 'µs' => ':countµs', - 'ago' => 'il y a :time', - 'from_now' => 'dans :time', - 'after' => ':time après', - 'before' => ':time avant', - 'diff_now' => "à l'instant", - 'diff_today' => "aujourd'hui", - 'diff_today_regexp' => "aujourd'hui(?:\s+à)?", - 'diff_yesterday' => 'hier', - 'diff_yesterday_regexp' => 'hier(?:\s+à)?', - 'diff_tomorrow' => 'demain', - 'diff_tomorrow_regexp' => 'demain(?:\s+à)?', - 'diff_before_yesterday' => 'avant-hier', - 'diff_after_tomorrow' => 'après-demain', - 'period_recurrences' => ':count fois', - 'period_interval' => 'tous les :interval', - 'period_start_date' => 'de :date', - 'period_end_date' => 'à :date', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[Aujourd’hui à] LT', - 'nextDay' => '[Demain à] LT', - 'nextWeek' => 'dddd [à] LT', - 'lastDay' => '[Hier à] LT', - 'lastWeek' => 'dddd [dernier à] LT', - 'sameElse' => 'L', - ], - 'months' => ['janvier', 'février', 'mars', 'avril', 'mai', 'juin', 'juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre'], - 'months_short' => ['janv.', 'févr.', 'mars', 'avr.', 'mai', 'juin', 'juil.', 'août', 'sept.', 'oct.', 'nov.', 'déc.'], - 'weekdays' => ['dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi'], - 'weekdays_short' => ['dim.', 'lun.', 'mar.', 'mer.', 'jeu.', 'ven.', 'sam.'], - 'weekdays_min' => ['di', 'lu', 'ma', 'me', 'je', 've', 'sa'], - 'ordinal' => static function ($number, $period) { - return match ($period) { - // In French, only the first has to be ordinal, other number remains cardinal - // @link https://fr.wikihow.com/%C3%A9crire-la-date-en-fran%C3%A7ais - 'D' => $number.($number === 1 ? 'er' : ''), - default => $number.($number === 1 ? 'er' : 'e'), - 'w', 'W' => $number.($number === 1 ? 're' : 'e'), - }; - }, - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => [', ', ' et '], - 'ordinal_words' => [ - 'of' => 'de', - 'first' => 'premier', - 'second' => 'deuxième', - 'third' => 'troisième', - 'fourth' => 'quatrième', - 'fifth' => 'cinquième', - 'last' => 'dernier', - ], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_BE.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_BE.php deleted file mode 100644 index 8ed0328..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_BE.php +++ /dev/null @@ -1,16 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - RAP bug-glibc-locales@gnu.org - */ -return require __DIR__.'/fr.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_BF.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_BF.php deleted file mode 100644 index ec3ee35..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_BF.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/fr.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_BI.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_BI.php deleted file mode 100644 index ec3ee35..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_BI.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/fr.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_BJ.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_BJ.php deleted file mode 100644 index ec3ee35..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_BJ.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/fr.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_BL.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_BL.php deleted file mode 100644 index ec3ee35..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_BL.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/fr.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_CA.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_CA.php deleted file mode 100644 index c9f6346..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_CA.php +++ /dev/null @@ -1,25 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Dieter Sting - * - François B - * - Maxime VALY - * - JD Isaacks - */ -return array_replace_recursive(require __DIR__.'/fr.php', [ - 'formats' => [ - 'L' => 'YYYY-MM-DD', - ], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_CD.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_CD.php deleted file mode 100644 index ec3ee35..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_CD.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/fr.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_CF.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_CF.php deleted file mode 100644 index ec3ee35..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_CF.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/fr.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_CG.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_CG.php deleted file mode 100644 index ec3ee35..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_CG.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/fr.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_CH.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_CH.php deleted file mode 100644 index 8674c27..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_CH.php +++ /dev/null @@ -1,24 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Dieter Sting - * - François B - * - Gaspard Bucher - * - Maxime VALY - * - JD Isaacks - */ -return array_replace_recursive(require __DIR__.'/fr.php', [ - 'formats' => [ - 'L' => 'DD.MM.YYYY', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_CI.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_CI.php deleted file mode 100644 index ec3ee35..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_CI.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/fr.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_CM.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_CM.php deleted file mode 100644 index 67d3787..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_CM.php +++ /dev/null @@ -1,14 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/fr.php', [ - 'meridiem' => ['mat.', 'soir'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_DJ.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_DJ.php deleted file mode 100644 index 2f06086..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_DJ.php +++ /dev/null @@ -1,22 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/fr.php', [ - 'first_day_of_week' => 6, - 'formats' => [ - 'LT' => 'h:mm a', - 'LTS' => 'h:mm:ss a', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY h:mm a', - 'LLLL' => 'dddd D MMMM YYYY h:mm a', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_DZ.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_DZ.php deleted file mode 100644 index ae8db5f..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_DZ.php +++ /dev/null @@ -1,23 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/fr.php', [ - 'first_day_of_week' => 6, - 'weekend' => [5, 6], - 'formats' => [ - 'LT' => 'h:mm a', - 'LTS' => 'h:mm:ss a', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY h:mm a', - 'LLLL' => 'dddd D MMMM YYYY h:mm a', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_FR.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_FR.php deleted file mode 100644 index ec3ee35..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_FR.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/fr.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_GA.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_GA.php deleted file mode 100644 index ec3ee35..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_GA.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/fr.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_GF.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_GF.php deleted file mode 100644 index ec3ee35..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_GF.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/fr.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_GN.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_GN.php deleted file mode 100644 index ec3ee35..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_GN.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/fr.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_GP.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_GP.php deleted file mode 100644 index ec3ee35..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_GP.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/fr.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_GQ.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_GQ.php deleted file mode 100644 index ec3ee35..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_GQ.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/fr.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_HT.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_HT.php deleted file mode 100644 index ec3ee35..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_HT.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/fr.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_KM.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_KM.php deleted file mode 100644 index ec3ee35..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_KM.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/fr.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_LU.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_LU.php deleted file mode 100644 index 6dda772..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_LU.php +++ /dev/null @@ -1,20 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - RAP bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/fr.php', [ - 'formats' => [ - 'L' => 'DD.MM.YYYY', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_MA.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_MA.php deleted file mode 100644 index 1bf034d..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_MA.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/fr.php', [ - 'first_day_of_week' => 6, - 'weekend' => [5, 6], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_MC.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_MC.php deleted file mode 100644 index ec3ee35..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_MC.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/fr.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_MF.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_MF.php deleted file mode 100644 index ec3ee35..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_MF.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/fr.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_MG.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_MG.php deleted file mode 100644 index ec3ee35..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_MG.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/fr.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_ML.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_ML.php deleted file mode 100644 index ec3ee35..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_ML.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/fr.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_MQ.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_MQ.php deleted file mode 100644 index ec3ee35..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_MQ.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/fr.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_MR.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_MR.php deleted file mode 100644 index 37cf83f..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_MR.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/fr.php', [ - 'formats' => [ - 'LT' => 'h:mm a', - 'LTS' => 'h:mm:ss a', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY h:mm a', - 'LLLL' => 'dddd D MMMM YYYY h:mm a', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_MU.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_MU.php deleted file mode 100644 index ec3ee35..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_MU.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/fr.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_NC.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_NC.php deleted file mode 100644 index ec3ee35..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_NC.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/fr.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_NE.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_NE.php deleted file mode 100644 index ec3ee35..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_NE.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/fr.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_PF.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_PF.php deleted file mode 100644 index ec3ee35..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_PF.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/fr.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_PM.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_PM.php deleted file mode 100644 index ec3ee35..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_PM.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/fr.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_RE.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_RE.php deleted file mode 100644 index ec3ee35..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_RE.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/fr.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_RW.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_RW.php deleted file mode 100644 index ec3ee35..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_RW.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/fr.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_SC.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_SC.php deleted file mode 100644 index ec3ee35..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_SC.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/fr.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_SN.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_SN.php deleted file mode 100644 index ec3ee35..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_SN.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/fr.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_SY.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_SY.php deleted file mode 100644 index ae8db5f..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_SY.php +++ /dev/null @@ -1,23 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/fr.php', [ - 'first_day_of_week' => 6, - 'weekend' => [5, 6], - 'formats' => [ - 'LT' => 'h:mm a', - 'LTS' => 'h:mm:ss a', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY h:mm a', - 'LLLL' => 'dddd D MMMM YYYY h:mm a', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_TD.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_TD.php deleted file mode 100644 index 37cf83f..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_TD.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/fr.php', [ - 'formats' => [ - 'LT' => 'h:mm a', - 'LTS' => 'h:mm:ss a', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY h:mm a', - 'LLLL' => 'dddd D MMMM YYYY h:mm a', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_TG.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_TG.php deleted file mode 100644 index ec3ee35..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_TG.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/fr.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_TN.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_TN.php deleted file mode 100644 index 6905e7a..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_TN.php +++ /dev/null @@ -1,22 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/fr.php', [ - 'weekend' => [5, 6], - 'formats' => [ - 'LT' => 'h:mm a', - 'LTS' => 'h:mm:ss a', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY h:mm a', - 'LLLL' => 'dddd D MMMM YYYY h:mm a', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_VU.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_VU.php deleted file mode 100644 index 37cf83f..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_VU.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/fr.php', [ - 'formats' => [ - 'LT' => 'h:mm a', - 'LTS' => 'h:mm:ss a', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY h:mm a', - 'LLLL' => 'dddd D MMMM YYYY h:mm a', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_WF.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_WF.php deleted file mode 100644 index ec3ee35..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_WF.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/fr.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fr_YT.php b/vendor/nesbot/carbon/src/Carbon/Lang/fr_YT.php deleted file mode 100644 index ec3ee35..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fr_YT.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/fr.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fur.php b/vendor/nesbot/carbon/src/Carbon/Lang/fur.php deleted file mode 100644 index 36c2564..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fur.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/fur_IT.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fur_IT.php b/vendor/nesbot/carbon/src/Carbon/Lang/fur_IT.php deleted file mode 100644 index 0147a59..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fur_IT.php +++ /dev/null @@ -1,39 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Pablo Saratxaga pablo@mandrakesoft.com - */ -return [ - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD. MM. YY', - 'LL' => 'DD di MMMM dal YYYY', - 'LLL' => 'DD di MMM HH:mm', - 'LLLL' => 'DD di MMMM dal YYYY HH:mm', - ], - 'months' => ['zenâr', 'fevrâr', 'març', 'avrîl', 'mai', 'jugn', 'lui', 'avost', 'setembar', 'otubar', 'novembar', 'dicembar'], - 'months_short' => ['zen', 'fev', 'mar', 'avr', 'mai', 'jug', 'lui', 'avo', 'set', 'otu', 'nov', 'dic'], - 'weekdays' => ['domenie', 'lunis', 'martars', 'miercus', 'joibe', 'vinars', 'sabide'], - 'weekdays_short' => ['dom', 'lun', 'mar', 'mie', 'joi', 'vin', 'sab'], - 'weekdays_min' => ['dom', 'lun', 'mar', 'mie', 'joi', 'vin', 'sab'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'year' => ':count an', - 'month' => ':count mês', - 'week' => ':count setemane', - 'day' => ':count zornade', - 'hour' => ':count ore', - 'minute' => ':count minût', - 'second' => ':count secont', -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fy.php b/vendor/nesbot/carbon/src/Carbon/Lang/fy.php deleted file mode 100644 index 42ecaed..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fy.php +++ /dev/null @@ -1,76 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - François B - * - Tim Fish - * - JD Isaacks - */ -return [ - 'year' => ':count jier|:count jierren', - 'a_year' => 'ien jier|:count jierren', - 'y' => ':count j', - 'month' => ':count moanne|:count moannen', - 'a_month' => 'ien moanne|:count moannen', - 'm' => ':count moa.', - 'week' => ':count wike|:count wiken', - 'a_week' => 'in wike|:count wiken', - 'a' => ':count w.', - 'day' => ':count dei|:count dagen', - 'a_day' => 'ien dei|:count dagen', - 'd' => ':count d.', - 'hour' => ':count oere|:count oeren', - 'a_hour' => 'ien oere|:count oeren', - 'h' => ':count o.', - 'minute' => ':count minút|:count minuten', - 'a_minute' => 'ien minút|:count minuten', - 'min' => ':count min.', - 'second' => ':count sekonde|:count sekonden', - 'a_second' => 'in pear sekonden|:count sekonden', - 's' => ':count s.', - 'ago' => ':time lyn', - 'from_now' => 'oer :time', - 'diff_yesterday' => 'juster', - 'diff_yesterday_regexp' => 'juster(?:\\s+om)?', - 'diff_today' => 'hjoed', - 'diff_today_regexp' => 'hjoed(?:\\s+om)?', - 'diff_tomorrow' => 'moarn', - 'diff_tomorrow_regexp' => 'moarn(?:\\s+om)?', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD-MM-YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[hjoed om] LT', - 'nextDay' => '[moarn om] LT', - 'nextWeek' => 'dddd [om] LT', - 'lastDay' => '[juster om] LT', - 'lastWeek' => '[ôfrûne] dddd [om] LT', - 'sameElse' => 'L', - ], - 'ordinal' => static function ($number) { - return $number.(($number === 1 || $number === 8 || $number >= 20) ? 'ste' : 'de'); - }, - 'months' => ['jannewaris', 'febrewaris', 'maart', 'april', 'maaie', 'juny', 'july', 'augustus', 'septimber', 'oktober', 'novimber', 'desimber'], - 'months_short' => ['jan', 'feb', 'mrt', 'apr', 'mai', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'des'], - 'mmm_suffix' => '.', - 'weekdays' => ['snein', 'moandei', 'tiisdei', 'woansdei', 'tongersdei', 'freed', 'sneon'], - 'weekdays_short' => ['si.', 'mo.', 'ti.', 'wo.', 'to.', 'fr.', 'so.'], - 'weekdays_min' => ['Si', 'Mo', 'Ti', 'Wo', 'To', 'Fr', 'So'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => [', ', ' en '], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fy_DE.php b/vendor/nesbot/carbon/src/Carbon/Lang/fy_DE.php deleted file mode 100644 index 8559d5c..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fy_DE.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - information from Kenneth Christiansen Kenneth Christiansen, Pablo Saratxaga kenneth@gnu.org, pablo@mandriva.com - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD.MM.YYYY', - ], - 'months' => ['Jaunuwoa', 'Februwoa', 'Moaz', 'Aprell', 'Mai', 'Juni', 'Juli', 'August', 'Septamba', 'Oktoba', 'Nowamba', 'Dezamba'], - 'months_short' => ['Jan', 'Feb', 'Moz', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Now', 'Dez'], - 'weekdays' => ['Sinndag', 'Mondag', 'Dingsdag', 'Meddwäakj', 'Donnadag', 'Friedag', 'Sinnowend'], - 'weekdays_short' => ['Sdg', 'Mdg', 'Dsg', 'Mwk', 'Ddg', 'Fdg', 'Swd'], - 'weekdays_min' => ['Sdg', 'Mdg', 'Dsg', 'Mwk', 'Ddg', 'Fdg', 'Swd'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/fy_NL.php b/vendor/nesbot/carbon/src/Carbon/Lang/fy_NL.php deleted file mode 100644 index 01cc96c..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/fy_NL.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Free Software Foundation, Inc. bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/fy.php', [ - 'formats' => [ - 'L' => 'DD-MM-YY', - ], - 'months' => ['Jannewaris', 'Febrewaris', 'Maart', 'April', 'Maaie', 'Juny', 'July', 'Augustus', 'Septimber', 'Oktober', 'Novimber', 'Desimber'], - 'months_short' => ['Jan', 'Feb', 'Mrt', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Des'], - 'weekdays' => ['Snein', 'Moandei', 'Tiisdei', 'Woansdei', 'Tongersdei', 'Freed', 'Sneon'], - 'weekdays_short' => ['Sn', 'Mo', 'Ti', 'Wo', 'To', 'Fr', 'Sn'], - 'weekdays_min' => ['Sn', 'Mo', 'Ti', 'Wo', 'To', 'Fr', 'Sn'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ga.php b/vendor/nesbot/carbon/src/Carbon/Lang/ga.php deleted file mode 100644 index 013367b..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ga.php +++ /dev/null @@ -1,75 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Thanks to André Silva : https://github.com/askpt - */ - -return [ - 'year' => ':count bliain', - 'a_year' => '{1}bliain|:count bliain', - 'y' => ':countb', - 'month' => ':count mí', - 'a_month' => '{1}mí|:count mí', - 'm' => ':countm', - 'week' => ':count sheachtain', - 'a_week' => '{1}sheachtain|:count sheachtain', - 'w' => ':countsh', - 'day' => ':count lá', - 'a_day' => '{1}lá|:count lá', - 'd' => ':countl', - 'hour' => ':count uair an chloig', - 'a_hour' => '{1}uair an chloig|:count uair an chloig', - 'h' => ':countu', - 'minute' => ':count nóiméad', - 'a_minute' => '{1}nóiméad|:count nóiméad', - 'min' => ':countn', - 'second' => ':count soicind', - 'a_second' => '{1}cúpla soicind|:count soicind', - 's' => ':countso', - 'ago' => ':time ó shin', - 'from_now' => 'i :time', - 'after' => ':time tar éis', - 'before' => ':time roimh', - 'diff_now' => 'anois', - 'diff_today' => 'Inniu', - 'diff_today_regexp' => 'Inniu(?:\\s+ag)?', - 'diff_yesterday' => 'inné', - 'diff_yesterday_regexp' => 'Inné(?:\\s+aig)?', - 'diff_tomorrow' => 'amárach', - 'diff_tomorrow_regexp' => 'Amárach(?:\\s+ag)?', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[Inniu ag] LT', - 'nextDay' => '[Amárach ag] LT', - 'nextWeek' => 'dddd [ag] LT', - 'lastDay' => '[Inné aig] LT', - 'lastWeek' => 'dddd [seo caite] [ag] LT', - 'sameElse' => 'L', - ], - 'months' => ['Eanáir', 'Feabhra', 'Márta', 'Aibreán', 'Bealtaine', 'Méitheamh', 'Iúil', 'Lúnasa', 'Meán Fómhair', 'Deaireadh Fómhair', 'Samhain', 'Nollaig'], - 'months_short' => ['Eaná', 'Feab', 'Márt', 'Aibr', 'Beal', 'Méit', 'Iúil', 'Lúna', 'Meán', 'Deai', 'Samh', 'Noll'], - 'weekdays' => ['Dé Domhnaigh', 'Dé Luain', 'Dé Máirt', 'Dé Céadaoin', 'Déardaoin', 'Dé hAoine', 'Dé Satharn'], - 'weekdays_short' => ['Dom', 'Lua', 'Mái', 'Céa', 'Déa', 'hAo', 'Sat'], - 'weekdays_min' => ['Do', 'Lu', 'Má', 'Ce', 'Dé', 'hA', 'Sa'], - 'ordinal' => static fn ($number) => $number.($number === 1 ? 'd' : ($number % 10 === 2 ? 'na' : 'mh')), - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => [', ', ' agus '], - 'meridiem' => ['r.n.', 'i.n.'], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ga_IE.php b/vendor/nesbot/carbon/src/Carbon/Lang/ga_IE.php deleted file mode 100644 index 57b0c4f..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ga_IE.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/ga.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/gd.php b/vendor/nesbot/carbon/src/Carbon/Lang/gd.php deleted file mode 100644 index 05437bf..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/gd.php +++ /dev/null @@ -1,75 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - François B - * - Jon Ashdown - */ -return [ - 'year' => ':count bliadhna', - 'a_year' => '{1}bliadhna|:count bliadhna', - 'y' => ':count b.', - 'month' => ':count mìosan', - 'a_month' => '{1}mìos|:count mìosan', - 'm' => ':count ms.', - 'week' => ':count seachdainean', - 'a_week' => '{1}seachdain|:count seachdainean', - 'w' => ':count s.', - 'day' => ':count latha', - 'a_day' => '{1}latha|:count latha', - 'd' => ':count l.', - 'hour' => ':count uairean', - 'a_hour' => '{1}uair|:count uairean', - 'h' => ':count u.', - 'minute' => ':count mionaidean', - 'a_minute' => '{1}mionaid|:count mionaidean', - 'min' => ':count md.', - 'second' => ':count diogan', - 'a_second' => '{1}beagan diogan|:count diogan', - 's' => ':count d.', - 'ago' => 'bho chionn :time', - 'from_now' => 'ann an :time', - 'diff_yesterday' => 'An-dè', - 'diff_yesterday_regexp' => 'An-dè(?:\\s+aig)?', - 'diff_today' => 'An-diugh', - 'diff_today_regexp' => 'An-diugh(?:\\s+aig)?', - 'diff_tomorrow' => 'A-màireach', - 'diff_tomorrow_regexp' => 'A-màireach(?:\\s+aig)?', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[An-diugh aig] LT', - 'nextDay' => '[A-màireach aig] LT', - 'nextWeek' => 'dddd [aig] LT', - 'lastDay' => '[An-dè aig] LT', - 'lastWeek' => 'dddd [seo chaidh] [aig] LT', - 'sameElse' => 'L', - ], - 'ordinal' => static function ($number) { - return $number.($number === 1 ? 'd' : ($number % 10 === 2 ? 'na' : 'mh')); - }, - 'months' => ['Am Faoilleach', 'An Gearran', 'Am Màrt', 'An Giblean', 'An Cèitean', 'An t-Ògmhios', 'An t-Iuchar', 'An Lùnastal', 'An t-Sultain', 'An Dàmhair', 'An t-Samhain', 'An Dùbhlachd'], - 'months_short' => ['Faoi', 'Gear', 'Màrt', 'Gibl', 'Cèit', 'Ògmh', 'Iuch', 'Lùn', 'Sult', 'Dàmh', 'Samh', 'Dùbh'], - 'weekdays' => ['Didòmhnaich', 'Diluain', 'Dimàirt', 'Diciadain', 'Diardaoin', 'Dihaoine', 'Disathairne'], - 'weekdays_short' => ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'], - 'weekdays_min' => ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => [', ', ' agus '], - 'meridiem' => ['m', 'f'], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/gd_GB.php b/vendor/nesbot/carbon/src/Carbon/Lang/gd_GB.php deleted file mode 100644 index 4fc26b3..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/gd_GB.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/gd.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/gez.php b/vendor/nesbot/carbon/src/Carbon/Lang/gez.php deleted file mode 100644 index b8a2f0e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/gez.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/gez_ER.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/gez_ER.php b/vendor/nesbot/carbon/src/Carbon/Lang/gez_ER.php deleted file mode 100644 index f19d1df..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/gez_ER.php +++ /dev/null @@ -1,56 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Ge'ez Frontier Foundation locales@geez.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YYYY', - ], - 'months' => ['ጠሐረ', 'ከተተ', 'መገበ', 'አኀዘ', 'ግንባት', 'ሠንየ', 'ሐመለ', 'ነሐሰ', 'ከረመ', 'ጠቀመ', 'ኀደረ', 'ኀሠሠ'], - 'months_short' => ['ጠሐረ', 'ከተተ', 'መገበ', 'አኀዘ', 'ግንባ', 'ሠንየ', 'ሐመለ', 'ነሐሰ', 'ከረመ', 'ጠቀመ', 'ኀደረ', 'ኀሠሠ'], - 'weekdays' => ['እኁድ', 'ሰኑይ', 'ሠሉስ', 'ራብዕ', 'ሐሙስ', 'ዓርበ', 'ቀዳሚት'], - 'weekdays_short' => ['እኁድ', 'ሰኑይ', 'ሠሉስ', 'ራብዕ', 'ሐሙስ', 'ዓርበ', 'ቀዳሚ'], - 'weekdays_min' => ['እኁድ', 'ሰኑይ', 'ሠሉስ', 'ራብዕ', 'ሐሙስ', 'ዓርበ', 'ቀዳሚ'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['ጽባሕ', 'ምሴት'], - - 'month' => ':count ወርሕ', // less reliable - 'm' => ':count ወርሕ', // less reliable - 'a_month' => ':count ወርሕ', // less reliable - - 'week' => ':count ሰብዑ', // less reliable - 'w' => ':count ሰብዑ', // less reliable - 'a_week' => ':count ሰብዑ', // less reliable - - 'hour' => ':count አንትሙ', // less reliable - 'h' => ':count አንትሙ', // less reliable - 'a_hour' => ':count አንትሙ', // less reliable - - 'minute' => ':count ንኡስ', // less reliable - 'min' => ':count ንኡስ', // less reliable - 'a_minute' => ':count ንኡስ', // less reliable - - 'year' => ':count ዓመት', - 'y' => ':count ዓመት', - 'a_year' => ':count ዓመት', - - 'day' => ':count ዕለት', - 'd' => ':count ዕለት', - 'a_day' => ':count ዕለት', - - 'second' => ':count ካልእ', - 's' => ':count ካልእ', - 'a_second' => ':count ካልእ', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/gez_ET.php b/vendor/nesbot/carbon/src/Carbon/Lang/gez_ET.php deleted file mode 100644 index 8579549..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/gez_ET.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Ge'ez Frontier Foundation locales@geez.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YYYY', - ], - 'months' => ['ጃንዩወሪ', 'ፌብሩወሪ', 'ማርች', 'ኤፕረል', 'ሜይ', 'ጁን', 'ጁላይ', 'ኦገስት', 'ሴፕቴምበር', 'ኦክተውበር', 'ኖቬምበር', 'ዲሴምበር'], - 'months_short' => ['ጃንዩ', 'ፌብሩ', 'ማርች', 'ኤፕረ', 'ሜይ ', 'ጁን ', 'ጁላይ', 'ኦገስ', 'ሴፕቴ', 'ኦክተ', 'ኖቬም', 'ዲሴም'], - 'weekdays' => ['እኁድ', 'ሰኑይ', 'ሠሉስ', 'ራብዕ', 'ሐሙስ', 'ዓርበ', 'ቀዳሚት'], - 'weekdays_short' => ['እኁድ', 'ሰኑይ', 'ሠሉስ', 'ራብዕ', 'ሐሙስ', 'ዓርበ', 'ቀዳሚ'], - 'weekdays_min' => ['እኁድ', 'ሰኑይ', 'ሠሉስ', 'ራብዕ', 'ሐሙስ', 'ዓርበ', 'ቀዳሚ'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['ጽባሕ', 'ምሴት'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/gl.php b/vendor/nesbot/carbon/src/Carbon/Lang/gl.php deleted file mode 100644 index 96bf145..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/gl.php +++ /dev/null @@ -1,98 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - François B - * - Fidel Pita - * - JD Isaacks - * - Diego Vilariño - * - Sebastian Thierer - */ - -use Carbon\CarbonInterface; - -return [ - 'year' => ':count ano|:count anos', - 'a_year' => 'un ano|:count anos', - 'y' => ':count a.', - 'month' => ':count mes|:count meses', - 'a_month' => 'un mes|:count meses', - 'm' => ':count mes.', - 'week' => ':count semana|:count semanas', - 'a_week' => 'unha semana|:count semanas', - 'w' => ':count sem.', - 'day' => ':count día|:count días', - 'a_day' => 'un día|:count días', - 'd' => ':count d.', - 'hour' => ':count hora|:count horas', - 'a_hour' => 'unha hora|:count horas', - 'h' => ':count h.', - 'minute' => ':count minuto|:count minutos', - 'a_minute' => 'un minuto|:count minutos', - 'min' => ':count min.', - 'second' => ':count segundo|:count segundos', - 'a_second' => 'uns segundos|:count segundos', - 's' => ':count seg.', - 'ago' => 'hai :time', - 'from_now' => static function ($time) { - if (str_starts_with($time, 'un')) { - return "n$time"; - } - - return "en $time"; - }, - 'diff_now' => 'agora', - 'diff_today' => 'hoxe', - 'diff_today_regexp' => 'hoxe(?:\\s+ás)?', - 'diff_yesterday' => 'onte', - 'diff_yesterday_regexp' => 'onte(?:\\s+á)?', - 'diff_tomorrow' => 'mañá', - 'diff_tomorrow_regexp' => 'mañá(?:\\s+ás)?', - 'after' => ':time despois', - 'before' => ':time antes', - 'formats' => [ - 'LT' => 'H:mm', - 'LTS' => 'H:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D [de] MMMM [de] YYYY', - 'LLL' => 'D [de] MMMM [de] YYYY H:mm', - 'LLLL' => 'dddd, D [de] MMMM [de] YYYY H:mm', - ], - 'calendar' => [ - 'sameDay' => static function (CarbonInterface $current) { - return '[hoxe '.($current->hour !== 1 ? 'ás' : 'á').'] LT'; - }, - 'nextDay' => static function (CarbonInterface $current) { - return '[mañá '.($current->hour !== 1 ? 'ás' : 'á').'] LT'; - }, - 'nextWeek' => static function (CarbonInterface $current) { - return 'dddd ['.($current->hour !== 1 ? 'ás' : 'á').'] LT'; - }, - 'lastDay' => static function (CarbonInterface $current) { - return '[onte '.($current->hour !== 1 ? 'á' : 'a').'] LT'; - }, - 'lastWeek' => static function (CarbonInterface $current) { - return '[o] dddd [pasado '.($current->hour !== 1 ? 'ás' : 'á').'] LT'; - }, - 'sameElse' => 'L', - ], - 'ordinal' => ':numberº', - 'months' => ['xaneiro', 'febreiro', 'marzo', 'abril', 'maio', 'xuño', 'xullo', 'agosto', 'setembro', 'outubro', 'novembro', 'decembro'], - 'months_short' => ['xan.', 'feb.', 'mar.', 'abr.', 'mai.', 'xuñ.', 'xul.', 'ago.', 'set.', 'out.', 'nov.', 'dec.'], - 'weekdays' => ['domingo', 'luns', 'martes', 'mércores', 'xoves', 'venres', 'sábado'], - 'weekdays_short' => ['dom.', 'lun.', 'mar.', 'mér.', 'xov.', 'ven.', 'sáb.'], - 'weekdays_min' => ['do', 'lu', 'ma', 'mé', 'xo', 've', 'sá'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => [', ', ' e '], - 'meridiem' => ['a.m.', 'p.m.'], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/gl_ES.php b/vendor/nesbot/carbon/src/Carbon/Lang/gl_ES.php deleted file mode 100644 index 9d6c1d9..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/gl_ES.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/gl.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/gom.php b/vendor/nesbot/carbon/src/Carbon/Lang/gom.php deleted file mode 100644 index 2a0584f..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/gom.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/gom_Latn.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/gom_Latn.php b/vendor/nesbot/carbon/src/Carbon/Lang/gom_Latn.php deleted file mode 100644 index ef50d96..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/gom_Latn.php +++ /dev/null @@ -1,77 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return [ - 'year' => ':count voros|:count vorsam', - 'y' => ':countv', - 'month' => ':count mhoino|:count mhoine', - 'm' => ':countmh', - 'week' => ':count satolleacho|:count satolleache', - 'w' => ':countsa|:countsa', - 'day' => ':count dis', - 'd' => ':countd', - 'hour' => ':count hor|:count horam', - 'h' => ':counth', - 'minute' => ':count minute|:count mintam', - 'min' => ':countm', - 'second' => ':count second', - 's' => ':counts', - - 'diff_today' => 'Aiz', - 'diff_yesterday' => 'Kal', - 'diff_tomorrow' => 'Faleam', - 'formats' => [ - 'LT' => 'A h:mm [vazta]', - 'LTS' => 'A h:mm:ss [vazta]', - 'L' => 'DD-MM-YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY A h:mm [vazta]', - 'LLLL' => 'dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]', - 'llll' => 'ddd, D MMM YYYY, A h:mm [vazta]', - ], - - 'calendar' => [ - 'sameDay' => '[Aiz] LT', - 'nextDay' => '[Faleam] LT', - 'nextWeek' => '[Ieta to] dddd[,] LT', - 'lastDay' => '[Kal] LT', - 'lastWeek' => '[Fatlo] dddd[,] LT', - 'sameElse' => 'L', - ], - - 'months' => ['Janer', 'Febrer', 'Mars', 'Abril', 'Mai', 'Jun', 'Julai', 'Agost', 'Setembr', 'Otubr', 'Novembr', 'Dezembr'], - 'months_short' => ['Jan.', 'Feb.', 'Mars', 'Abr.', 'Mai', 'Jun', 'Jul.', 'Ago.', 'Set.', 'Otu.', 'Nov.', 'Dez.'], - 'weekdays' => ['Aitar', 'Somar', 'Mongllar', 'Budvar', 'Brestar', 'Sukrar', 'Son\'var'], - 'weekdays_short' => ['Ait.', 'Som.', 'Mon.', 'Bud.', 'Bre.', 'Suk.', 'Son.'], - 'weekdays_min' => ['Ai', 'Sm', 'Mo', 'Bu', 'Br', 'Su', 'Sn'], - - 'ordinal' => static fn ($number, $period) => $number.($period === 'D' ? 'er' : ''), - - 'meridiem' => static function ($hour) { - if ($hour < 4) { - return 'rati'; - } - if ($hour < 12) { - return 'sokalli'; - } - if ($hour < 16) { - return 'donparam'; - } - if ($hour < 20) { - return 'sanje'; - } - - return 'rati'; - }, - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => [', ', ' ani '], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/gsw.php b/vendor/nesbot/carbon/src/Carbon/Lang/gsw.php deleted file mode 100644 index c5c850e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/gsw.php +++ /dev/null @@ -1,49 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Christopher Dell - * - Akira Matsuda - * - Enrique Vidal - * - Simone Carletti - * - Henning Kiel - * - Aaron Patterson - * - Florian Hanke - */ -return [ - 'year' => ':count Johr', - 'month' => ':count Monet', - 'week' => ':count Woche', - 'day' => ':count Tag', - 'hour' => ':count Schtund', - 'minute' => ':count Minute', - 'second' => ':count Sekunde', - 'weekdays' => ['Sunntig', 'Mäntig', 'Ziischtig', 'Mittwuch', 'Dunschtig', 'Friitig', 'Samschtig'], - 'weekdays_short' => ['Su', 'Mä', 'Zi', 'Mi', 'Du', 'Fr', 'Sa'], - 'weekdays_min' => ['Su', 'Mä', 'Zi', 'Mi', 'Du', 'Fr', 'Sa'], - 'months' => ['Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'Auguscht', 'September', 'Oktober', 'November', 'Dezember'], - 'months_short' => ['Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'], - 'meridiem' => ['am Vormittag', 'am Namittag'], - 'ordinal' => ':number.', - 'list' => [', ', ' und '], - 'diff_now' => 'now', - 'diff_yesterday' => 'geschter', - 'diff_tomorrow' => 'moorn', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD.MM.YYYY', - 'LL' => 'Do MMMM YYYY', - 'LLL' => 'Do MMMM, HH:mm [Uhr]', - 'LLLL' => 'dddd, Do MMMM YYYY, HH:mm [Uhr]', - ], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/gsw_CH.php b/vendor/nesbot/carbon/src/Carbon/Lang/gsw_CH.php deleted file mode 100644 index 594eb25..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/gsw_CH.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/gsw.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/gsw_FR.php b/vendor/nesbot/carbon/src/Carbon/Lang/gsw_FR.php deleted file mode 100644 index 3581dcf..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/gsw_FR.php +++ /dev/null @@ -1,20 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/gsw.php', [ - 'meridiem' => ['vorm.', 'nam.'], - 'months' => ['Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'Auguscht', 'Septämber', 'Oktoober', 'Novämber', 'Dezämber'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LLL' => 'Do MMMM YYYY HH:mm', - 'LLLL' => 'dddd, Do MMMM YYYY HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/gsw_LI.php b/vendor/nesbot/carbon/src/Carbon/Lang/gsw_LI.php deleted file mode 100644 index 3581dcf..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/gsw_LI.php +++ /dev/null @@ -1,20 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/gsw.php', [ - 'meridiem' => ['vorm.', 'nam.'], - 'months' => ['Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'Auguscht', 'Septämber', 'Oktoober', 'Novämber', 'Dezämber'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LLL' => 'Do MMMM YYYY HH:mm', - 'LLLL' => 'dddd, Do MMMM YYYY HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/gu.php b/vendor/nesbot/carbon/src/Carbon/Lang/gu.php deleted file mode 100644 index 16455ed..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/gu.php +++ /dev/null @@ -1,82 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Josh Soref - * - Kaushik Thanki - * - Josh Soref - */ -return [ - 'year' => 'એક વર્ષ|:count વર્ષ', - 'y' => ':countવર્ષ|:countવર્ષો', - 'month' => 'એક મહિનો|:count મહિના', - 'm' => ':countમહિનો|:countમહિના', - 'week' => ':count અઠવાડિયું|:count અઠવાડિયા', - 'w' => ':countઅઠ.|:countઅઠ.', - 'day' => 'એક દિવસ|:count દિવસ', - 'd' => ':countદિ.|:countદિ.', - 'hour' => 'એક કલાક|:count કલાક', - 'h' => ':countક.|:countક.', - 'minute' => 'એક મિનિટ|:count મિનિટ', - 'min' => ':countમિ.|:countમિ.', - 'second' => 'અમુક પળો|:count સેકંડ', - 's' => ':countસે.|:countસે.', - 'ago' => ':time પેહલા', - 'from_now' => ':time મા', - 'after' => ':time પછી', - 'before' => ':time પહેલા', - 'diff_now' => 'હમણાં', - 'diff_today' => 'આજ', - 'diff_yesterday' => 'ગઇકાલે', - 'diff_tomorrow' => 'કાલે', - 'formats' => [ - 'LT' => 'A h:mm વાગ્યે', - 'LTS' => 'A h:mm:ss વાગ્યે', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY, A h:mm વાગ્યે', - 'LLLL' => 'dddd, D MMMM YYYY, A h:mm વાગ્યે', - ], - 'calendar' => [ - 'sameDay' => '[આજ] LT', - 'nextDay' => '[કાલે] LT', - 'nextWeek' => 'dddd, LT', - 'lastDay' => '[ગઇકાલે] LT', - 'lastWeek' => '[પાછલા] dddd, LT', - 'sameElse' => 'L', - ], - 'meridiem' => static function ($hour) { - if ($hour < 4) { - return 'રાત'; - } - if ($hour < 10) { - return 'સવાર'; - } - if ($hour < 17) { - return 'બપોર'; - } - if ($hour < 20) { - return 'સાંજ'; - } - - return 'રાત'; - }, - 'months' => ['જાન્યુઆરી', 'ફેબ્રુઆરી', 'માર્ચ', 'એપ્રિલ', 'મે', 'જૂન', 'જુલાઈ', 'ઑગસ્ટ', 'સપ્ટેમ્બર', 'ઑક્ટ્બર', 'નવેમ્બર', 'ડિસેમ્બર'], - 'months_short' => ['જાન્યુ.', 'ફેબ્રુ.', 'માર્ચ', 'એપ્રિ.', 'મે', 'જૂન', 'જુલા.', 'ઑગ.', 'સપ્ટે.', 'ઑક્ટ્.', 'નવે.', 'ડિસે.'], - 'weekdays' => ['રવિવાર', 'સોમવાર', 'મંગળવાર', 'બુધ્વાર', 'ગુરુવાર', 'શુક્રવાર', 'શનિવાર'], - 'weekdays_short' => ['રવિ', 'સોમ', 'મંગળ', 'બુધ્', 'ગુરુ', 'શુક્ર', 'શનિ'], - 'weekdays_min' => ['ર', 'સો', 'મં', 'બુ', 'ગુ', 'શુ', 'શ'], - 'list' => [', ', ' અને '], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'weekend' => [0, 0], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/gu_IN.php b/vendor/nesbot/carbon/src/Carbon/Lang/gu_IN.php deleted file mode 100644 index 02654b1..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/gu_IN.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/gu.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/guz.php b/vendor/nesbot/carbon/src/Carbon/Lang/guz.php deleted file mode 100644 index d39e9ca..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/guz.php +++ /dev/null @@ -1,48 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, - 'meridiem' => ['Ma', 'Mo'], - 'weekdays' => ['Chumapiri', 'Chumatato', 'Chumaine', 'Chumatano', 'Aramisi', 'Ichuma', 'Esabato'], - 'weekdays_short' => ['Cpr', 'Ctt', 'Cmn', 'Cmt', 'Ars', 'Icm', 'Est'], - 'weekdays_min' => ['Cpr', 'Ctt', 'Cmn', 'Cmt', 'Ars', 'Icm', 'Est'], - 'months' => ['Chanuari', 'Feburari', 'Machi', 'Apiriri', 'Mei', 'Juni', 'Chulai', 'Agosti', 'Septemba', 'Okitoba', 'Nobemba', 'Disemba'], - 'months_short' => ['Can', 'Feb', 'Mac', 'Apr', 'Mei', 'Jun', 'Cul', 'Agt', 'Sep', 'Okt', 'Nob', 'Dis'], - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], - - 'month' => ':count omotunyi', // less reliable - 'm' => ':count omotunyi', // less reliable - 'a_month' => ':count omotunyi', // less reliable - - 'week' => ':count isano naibere', // less reliable - 'w' => ':count isano naibere', // less reliable - 'a_week' => ':count isano naibere', // less reliable - - 'second' => ':count ibere', // less reliable - 's' => ':count ibere', // less reliable - 'a_second' => ':count ibere', // less reliable - - 'year' => ':count omwaka', - 'y' => ':count omwaka', - 'a_year' => ':count omwaka', - - 'day' => ':count rituko', - 'd' => ':count rituko', - 'a_day' => ':count rituko', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/gv.php b/vendor/nesbot/carbon/src/Carbon/Lang/gv.php deleted file mode 100644 index 7c52b94..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/gv.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/gv_GB.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/gv_GB.php b/vendor/nesbot/carbon/src/Carbon/Lang/gv_GB.php deleted file mode 100644 index 6b1168f..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/gv_GB.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Alastair McKinstry bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YY', - ], - 'months' => ['Jerrey-geuree', 'Toshiaght-arree', 'Mayrnt', 'Averil', 'Boaldyn', 'Mean-souree', 'Jerrey-souree', 'Luanistyn', 'Mean-fouyir', 'Jerrey-fouyir', 'Mee Houney', 'Mee ny Nollick'], - 'months_short' => ['J-guer', 'T-arree', 'Mayrnt', 'Avrril', 'Boaldyn', 'M-souree', 'J-souree', 'Luanistyn', 'M-fouyir', 'J-fouyir', 'M.Houney', 'M.Nollick'], - 'weekdays' => ['Jedoonee', 'Jelhein', 'Jemayrt', 'Jercean', 'Jerdein', 'Jeheiney', 'Jesarn'], - 'weekdays_short' => ['Jed', 'Jel', 'Jem', 'Jerc', 'Jerd', 'Jeh', 'Jes'], - 'weekdays_min' => ['Jed', 'Jel', 'Jem', 'Jerc', 'Jerd', 'Jeh', 'Jes'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - - 'year' => ':count blein', - 'y' => ':count blein', - 'a_year' => ':count blein', - - 'month' => ':count mee', - 'm' => ':count mee', - 'a_month' => ':count mee', - - 'week' => ':count shiaghtin', - 'w' => ':count shiaghtin', - 'a_week' => ':count shiaghtin', - - 'day' => ':count laa', - 'd' => ':count laa', - 'a_day' => ':count laa', - - 'hour' => ':count oor', - 'h' => ':count oor', - 'a_hour' => ':count oor', - - 'minute' => ':count feer veg', - 'min' => ':count feer veg', - 'a_minute' => ':count feer veg', - - 'second' => ':count derrey', - 's' => ':count derrey', - 'a_second' => ':count derrey', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ha.php b/vendor/nesbot/carbon/src/Carbon/Lang/ha.php deleted file mode 100644 index cd8e34d..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ha.php +++ /dev/null @@ -1,60 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - pablo@mandriva.com - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'D/M/YYYY', - 'LL' => 'D MMM, YYYY', - 'LLL' => 'D MMMM, YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM, YYYY HH:mm', - ], - 'months' => ['Janairu', 'Faburairu', 'Maris', 'Afirilu', 'Mayu', 'Yuni', 'Yuli', 'Agusta', 'Satumba', 'Oktoba', 'Nuwamba', 'Disamba'], - 'months_short' => ['Jan', 'Fab', 'Mar', 'Afi', 'May', 'Yun', 'Yul', 'Agu', 'Sat', 'Okt', 'Nuw', 'Dis'], - 'weekdays' => ['Lahadi', 'Litini', 'Talata', 'Laraba', 'Alhamis', 'Jumaʼa', 'Asabar'], - 'weekdays_short' => ['Lah', 'Lit', 'Tal', 'Lar', 'Alh', 'Jum', 'Asa'], - 'weekdays_min' => ['Lh', 'Li', 'Ta', 'Lr', 'Al', 'Ju', 'As'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - - 'year' => 'shekara :count', - 'y' => 'shekara :count', - 'a_year' => 'shekara :count', - - 'month' => ':count wátàa', - 'm' => ':count wátàa', - 'a_month' => ':count wátàa', - - 'week' => ':count mako', - 'w' => ':count mako', - 'a_week' => ':count mako', - - 'day' => ':count rana', - 'd' => ':count rana', - 'a_day' => ':count rana', - - 'hour' => ':count áwàa', - 'h' => ':count áwàa', - 'a_hour' => ':count áwàa', - - 'minute' => 'minti :count', - 'min' => 'minti :count', - 'a_minute' => 'minti :count', - - 'second' => ':count ná bíyú', - 's' => ':count ná bíyú', - 'a_second' => ':count ná bíyú', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ha_GH.php b/vendor/nesbot/carbon/src/Carbon/Lang/ha_GH.php deleted file mode 100644 index f9f99a7..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ha_GH.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/ha.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ha_NE.php b/vendor/nesbot/carbon/src/Carbon/Lang/ha_NE.php deleted file mode 100644 index f9f99a7..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ha_NE.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/ha.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ha_NG.php b/vendor/nesbot/carbon/src/Carbon/Lang/ha_NG.php deleted file mode 100644 index f9f99a7..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ha_NG.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/ha.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/hak.php b/vendor/nesbot/carbon/src/Carbon/Lang/hak.php deleted file mode 100644 index 6c3260e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/hak.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/hak_TW.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/hak_TW.php b/vendor/nesbot/carbon/src/Carbon/Lang/hak_TW.php deleted file mode 100644 index 2a3bc96..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/hak_TW.php +++ /dev/null @@ -1,56 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'YYYY年MM月DD日', - ], - 'months' => ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'], - 'months_short' => [' 1月', ' 2月', ' 3月', ' 4月', ' 5月', ' 6月', ' 7月', ' 8月', ' 9月', '10月', '11月', '12月'], - 'weekdays' => ['禮拜日', '禮拜一', '禮拜二', '禮拜三', '禮拜四', '禮拜五', '禮拜六'], - 'weekdays_short' => ['日', '一', '二', '三', '四', '五', '六'], - 'weekdays_min' => ['日', '一', '二', '三', '四', '五', '六'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['上晝', '下晝'], - - 'year' => ':count ngien11', - 'y' => ':count ngien11', - 'a_year' => ':count ngien11', - - 'month' => ':count ngie̍t', - 'm' => ':count ngie̍t', - 'a_month' => ':count ngie̍t', - - 'week' => ':count lî-pai', - 'w' => ':count lî-pai', - 'a_week' => ':count lî-pai', - - 'day' => ':count ngit', - 'd' => ':count ngit', - 'a_day' => ':count ngit', - - 'hour' => ':count sṳ̀', - 'h' => ':count sṳ̀', - 'a_hour' => ':count sṳ̀', - - 'minute' => ':count fûn', - 'min' => ':count fûn', - 'a_minute' => ':count fûn', - - 'second' => ':count miéu', - 's' => ':count miéu', - 'a_second' => ':count miéu', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/haw.php b/vendor/nesbot/carbon/src/Carbon/Lang/haw.php deleted file mode 100644 index e46993a..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/haw.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, - 'months' => ['Ianuali', 'Pepeluali', 'Malaki', 'ʻApelila', 'Mei', 'Iune', 'Iulai', 'ʻAukake', 'Kepakemapa', 'ʻOkakopa', 'Nowemapa', 'Kekemapa'], - 'months_short' => ['Ian.', 'Pep.', 'Mal.', 'ʻAp.', 'Mei', 'Iun.', 'Iul.', 'ʻAu.', 'Kep.', 'ʻOk.', 'Now.', 'Kek.'], - 'weekdays' => ['Lāpule', 'Poʻakahi', 'Poʻalua', 'Poʻakolu', 'Poʻahā', 'Poʻalima', 'Poʻaono'], - 'weekdays_short' => ['LP', 'P1', 'P2', 'P3', 'P4', 'P5', 'P6'], - 'weekdays_min' => ['S', 'M', 'T', 'W', 'T', 'F', 'S'], - 'formats' => [ - 'LT' => 'h:mm a', - 'LTS' => 'h:mm:ss a', - 'L' => 'D/M/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY h:mm a', - 'LLLL' => 'dddd, D MMMM YYYY h:mm a', - ], - - 'year' => ':count makahiki', - 'y' => ':count makahiki', - 'a_year' => ':count makahiki', - - 'month' => ':count mahina', - 'm' => ':count mahina', - 'a_month' => ':count mahina', - - 'week' => ':count pule', - 'w' => ':count pule', - 'a_week' => ':count pule', - - 'day' => ':count lā', - 'd' => ':count lā', - 'a_day' => ':count lā', - - 'hour' => ':count hola', - 'h' => ':count hola', - 'a_hour' => ':count hola', - - 'minute' => ':count minuke', - 'min' => ':count minuke', - 'a_minute' => ':count minuke', - - 'second' => ':count lua', - 's' => ':count lua', - 'a_second' => ':count lua', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/he.php b/vendor/nesbot/carbon/src/Carbon/Lang/he.php deleted file mode 100644 index 6d8f01e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/he.php +++ /dev/null @@ -1,86 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Daniel Cohen Gindi - * - JD Isaacks - * - Itai Nathaniel - * - GabMic - * - Yaakov Dahan (yakidahan) - */ -return [ - 'year' => 'שנה|{2}שנתיים|:count שנים', - 'y' => 'שנה|:count שנ׳', - 'month' => 'חודש|{2}חודשיים|:count חודשים', - 'm' => 'חודש|:count חו׳', - 'week' => 'שבוע|{2}שבועיים|:count שבועות', - 'w' => 'שבוע|:count שב׳', - 'day' => 'יום|{2}יומיים|:count ימים', - 'd' => 'יום|:count ימ׳', - 'hour' => 'שעה|{2}שעתיים|:count שעות', - 'h' => 'שעה|:count שע׳', - 'minute' => 'דקה|{2}שתי דקות|:count דקות', - 'min' => 'דקה|:count דק׳', - 'second' => 'שנייה|:count שניות', - 'a_second' => 'כמה שניות|:count שניות', - 's' => 'שניה|:count שנ׳', - 'ago' => 'לפני :time', - 'from_now' => 'בעוד :time מעכשיו', - 'after' => 'אחרי :time', - 'before' => 'לפני :time', - 'diff_now' => 'עכשיו', - 'diff_today' => 'היום', - 'diff_today_regexp' => 'היום(?:\\s+ב־)?', - 'diff_yesterday' => 'אתמול', - 'diff_yesterday_regexp' => 'אתמול(?:\\s+ב־)?', - 'diff_tomorrow' => 'מחר', - 'diff_tomorrow_regexp' => 'מחר(?:\\s+ב־)?', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D [ב]MMMM YYYY', - 'LLL' => 'D [ב]MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D [ב]MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[היום ב־]LT', - 'nextDay' => '[מחר ב־]LT', - 'nextWeek' => 'dddd [בשעה] LT', - 'lastDay' => '[אתמול ב־]LT', - 'lastWeek' => '[ביום] dddd [האחרון בשעה] LT', - 'sameElse' => 'L', - ], - 'meridiem' => static function ($hour, $minute, $isLower) { - if ($hour < 5) { - return 'לפנות בוקר'; - } - if ($hour < 10) { - return 'בבוקר'; - } - if ($hour < 12) { - return $isLower ? 'לפנה"צ' : 'לפני הצהריים'; - } - if ($hour < 18) { - return $isLower ? 'אחה"צ' : 'אחרי הצהריים'; - } - - return 'בערב'; - }, - 'months' => ['ינואר', 'פברואר', 'מרץ', 'אפריל', 'מאי', 'יוני', 'יולי', 'אוגוסט', 'ספטמבר', 'אוקטובר', 'נובמבר', 'דצמבר'], - 'months_short' => ['ינו׳', 'פבר׳', 'מרץ', 'אפר׳', 'מאי', 'יוני', 'יולי', 'אוג׳', 'ספט׳', 'אוק׳', 'נוב׳', 'דצמ׳'], - 'weekdays' => ['ראשון', 'שני', 'שלישי', 'רביעי', 'חמישי', 'שישי', 'שבת'], - 'weekdays_short' => ['א׳', 'ב׳', 'ג׳', 'ד׳', 'ה׳', 'ו׳', 'ש׳'], - 'weekdays_min' => ['א', 'ב', 'ג', 'ד', 'ה', 'ו', 'ש'], - 'list' => [', ', ' ו -'], - 'weekend' => [5, 6], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/he_IL.php b/vendor/nesbot/carbon/src/Carbon/Lang/he_IL.php deleted file mode 100644 index 14fab3e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/he_IL.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/he.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/hi.php b/vendor/nesbot/carbon/src/Carbon/Lang/hi.php deleted file mode 100644 index 1fc1801..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/hi.php +++ /dev/null @@ -1,82 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - abhimanyu003 - * - Josh Soref - * - JD Isaacks - */ -return [ - 'year' => 'एक वर्ष|:count वर्ष', - 'y' => '1 वर्ष|:count वर्षों', - 'month' => 'एक महीने|:count महीने', - 'm' => '1 माह|:count महीने', - 'week' => '1 सप्ताह|:count सप्ताह', - 'w' => '1 सप्ताह|:count सप्ताह', - 'day' => 'एक दिन|:count दिन', - 'd' => '1 दिन|:count दिनों', - 'hour' => 'एक घंटा|:count घंटे', - 'h' => '1 घंटा|:count घंटे', - 'minute' => 'एक मिनट|:count मिनट', - 'min' => '1 मिनट|:count मिनटों', - 'second' => 'कुछ ही क्षण|:count सेकंड', - 's' => '1 सेकंड|:count सेकंड', - 'ago' => ':time पहले', - 'from_now' => ':time में', - 'after' => ':time के बाद', - 'before' => ':time के पहले', - 'diff_now' => 'अब', - 'diff_today' => 'आज', - 'diff_yesterday' => 'कल', - 'diff_tomorrow' => 'कल', - 'formats' => [ - 'LT' => 'A h:mm बजे', - 'LTS' => 'A h:mm:ss बजे', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY, A h:mm बजे', - 'LLLL' => 'dddd, D MMMM YYYY, A h:mm बजे', - ], - 'calendar' => [ - 'sameDay' => '[आज] LT', - 'nextDay' => '[कल] LT', - 'nextWeek' => 'dddd, LT', - 'lastDay' => '[कल] LT', - 'lastWeek' => '[पिछले] dddd, LT', - 'sameElse' => 'L', - ], - 'meridiem' => static function ($hour) { - if ($hour < 4) { - return 'रात'; - } - if ($hour < 10) { - return 'सुबह'; - } - if ($hour < 17) { - return 'दोपहर'; - } - if ($hour < 20) { - return 'शाम'; - } - - return 'रात'; - }, - 'months' => ['जनवरी', 'फ़रवरी', 'मार्च', 'अप्रैल', 'मई', 'जून', 'जुलाई', 'अगस्त', 'सितम्बर', 'अक्टूबर', 'नवम्बर', 'दिसम्बर'], - 'months_short' => ['जन.', 'फ़र.', 'मार्च', 'अप्रै.', 'मई', 'जून', 'जुल.', 'अग.', 'सित.', 'अक्टू.', 'नव.', 'दिस.'], - 'weekdays' => ['रविवार', 'सोमवार', 'मंगलवार', 'बुधवार', 'गुरूवार', 'शुक्रवार', 'शनिवार'], - 'weekdays_short' => ['रवि', 'सोम', 'मंगल', 'बुध', 'गुरू', 'शुक्र', 'शनि'], - 'weekdays_min' => ['र', 'सो', 'मं', 'बु', 'गु', 'शु', 'श'], - 'list' => [', ', ' और '], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'weekend' => [0, 0], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/hi_IN.php b/vendor/nesbot/carbon/src/Carbon/Lang/hi_IN.php deleted file mode 100644 index 749dd97..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/hi_IN.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/hi.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/hif.php b/vendor/nesbot/carbon/src/Carbon/Lang/hif.php deleted file mode 100644 index 65791dd..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/hif.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/hif_FJ.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/hif_FJ.php b/vendor/nesbot/carbon/src/Carbon/Lang/hif_FJ.php deleted file mode 100644 index 54e880e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/hif_FJ.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Samsung Electronics Co., Ltd. akhilesh.k@samsung.com - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, - 'formats' => [ - 'L' => 'dddd DD MMM YYYY', - ], - 'months' => ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'], - 'months_short' => ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], - 'weekdays' => ['Ravivar', 'Somvar', 'Mangalvar', 'Budhvar', 'Guruvar', 'Shukravar', 'Shanivar'], - 'weekdays_short' => ['Ravi', 'Som', 'Mangal', 'Budh', 'Guru', 'Shukra', 'Shani'], - 'weekdays_min' => ['Ravi', 'Som', 'Mangal', 'Budh', 'Guru', 'Shukra', 'Shani'], - 'meridiem' => ['Purvahan', 'Aparaahna'], - - 'hour' => ':count minit', // less reliable - 'h' => ':count minit', // less reliable - 'a_hour' => ':count minit', // less reliable - - 'year' => ':count saal', - 'y' => ':count saal', - 'a_year' => ':count saal', - - 'month' => ':count Mahina', - 'm' => ':count Mahina', - 'a_month' => ':count Mahina', - - 'week' => ':count Hafta', - 'w' => ':count Hafta', - 'a_week' => ':count Hafta', - - 'day' => ':count Din', - 'd' => ':count Din', - 'a_day' => ':count Din', - - 'minute' => ':count Minit', - 'min' => ':count Minit', - 'a_minute' => ':count Minit', - - 'second' => ':count Second', - 's' => ':count Second', - 'a_second' => ':count Second', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/hne.php b/vendor/nesbot/carbon/src/Carbon/Lang/hne.php deleted file mode 100644 index 4bcb05c..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/hne.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/hne_IN.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/hne_IN.php b/vendor/nesbot/carbon/src/Carbon/Lang/hne_IN.php deleted file mode 100644 index 27b3b39..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/hne_IN.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Red Hat, Pune bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'D/M/YY', - ], - 'months' => ['जनवरी', 'फरवरी', 'मार्च', 'अपरेल', 'मई', 'जून', 'जुलाई', 'अगस्त', 'सितमबर', 'अकटूबर', 'नवमबर', 'दिसमबर'], - 'months_short' => ['जन', 'फर', 'मार्च', 'अप', 'मई', 'जून', 'जुला', 'अग', 'सित', 'अकटू', 'नव', 'दिस'], - 'weekdays' => ['इतवार', 'सोमवार', 'मंगलवार', 'बुधवार', 'बिरसपत', 'सुकरवार', 'सनिवार'], - 'weekdays_short' => ['इत', 'सोम', 'मंग', 'बुध', 'बिर', 'सुक', 'सनि'], - 'weekdays_min' => ['इत', 'सोम', 'मंग', 'बुध', 'बिर', 'सुक', 'सनि'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['बिहिनियाँ', 'मंझनियाँ'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/hr.php b/vendor/nesbot/carbon/src/Carbon/Lang/hr.php deleted file mode 100644 index dcf7756..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/hr.php +++ /dev/null @@ -1,99 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Josh Soref - * - François B - * - Tim Fish - * - shaishavgandhi05 - * - Serhan Apaydın - * - JD Isaacks - * - tomhorvat - * - Josh Soref - * - François B - * - shaishavgandhi05 - * - Serhan Apaydın - * - JD Isaacks - * - tomhorvat - * - Stjepan Majdak - * - Vanja Retkovac (vr00) - */ - -use Carbon\CarbonInterface; - -return [ - 'year' => ':count godinu|:count godine|:count godina', - 'y' => ':count god.|:count god.|:count god.', - 'month' => ':count mjesec|:count mjeseca|:count mjeseci', - 'm' => ':count mj.|:count mj.|:count mj.', - 'week' => ':count tjedan|:count tjedna|:count tjedana', - 'w' => ':count tj.|:count tj.|:count tj.', - 'day' => ':count dan|:count dana|:count dana', - 'd' => ':count d.|:count d.|:count d.', - 'hour' => ':count sat|:count sata|:count sati', - 'h' => ':count sat|:count sata|:count sati', - 'minute' => ':count minutu|:count minute|:count minuta', - 'min' => ':count min.|:count min.|:count min.', - 'second' => ':count sekundu|:count sekunde|:count sekundi', - 'a_second' => 'nekoliko sekundi|:count sekunde|:count sekundi', - 's' => ':count sek.|:count sek.|:count sek.', - 'ago' => 'prije :time', - 'from_now' => 'za :time', - 'after' => ':time poslije', - 'before' => ':time prije', - 'diff_now' => 'sad', - 'diff_today' => 'danas', - 'diff_today_regexp' => 'danas(?:\\s+u)?', - 'diff_yesterday' => 'jučer', - 'diff_yesterday_regexp' => 'jučer(?:\\s+u)?', - 'diff_tomorrow' => 'sutra', - 'diff_tomorrow_regexp' => 'sutra(?:\\s+u)?', - 'diff_before_yesterday' => 'prekjučer', - 'diff_after_tomorrow' => 'prekosutra', - 'formats' => [ - 'LT' => 'H:mm', - 'LTS' => 'H:mm:ss', - 'L' => 'D. M. YYYY.', - 'LL' => 'D. MMMM YYYY.', - 'LLL' => 'D. MMMM YYYY. H:mm', - 'LLLL' => 'dddd, D. MMMM YYYY. H:mm', - ], - 'calendar' => [ - 'sameDay' => '[danas u] LT', - 'nextDay' => '[sutra u] LT', - 'nextWeek' => static fn (CarbonInterface $date) => match ($date->dayOfWeek) { - 0 => '[u] [nedjelju] [u] LT', - 3 => '[u] [srijedu] [u] LT', - 6 => '[u] [subotu] [u] LT', - default => '[u] dddd [u] LT', - }, - 'lastDay' => '[jučer u] LT', - 'lastWeek' => static fn (CarbonInterface $date) => match ($date->dayOfWeek) { - 0, 3 => '[prošlu] dddd [u] LT', - 6 => '[prošle] [subote] [u] LT', - default => '[prošli] dddd [u] LT', - }, - 'sameElse' => 'L', - ], - 'ordinal' => ':number.', - 'months' => ['siječnja', 'veljače', 'ožujka', 'travnja', 'svibnja', 'lipnja', 'srpnja', 'kolovoza', 'rujna', 'listopada', 'studenoga', 'prosinca'], - 'months_standalone' => ['siječanj', 'veljača', 'ožujak', 'travanj', 'svibanj', 'lipanj', 'srpanj', 'kolovoz', 'rujan', 'listopad', 'studeni', 'prosinac'], - 'months_short' => ['sij.', 'velj.', 'ožu.', 'tra.', 'svi.', 'lip.', 'srp.', 'kol.', 'ruj.', 'lis.', 'stu.', 'pro.'], - 'months_regexp' => '/(D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|L{2,4}|l{2,4})/', - 'weekdays' => ['nedjelju', 'ponedjeljak', 'utorak', 'srijedu', 'četvrtak', 'petak', 'subotu'], - 'weekdays_standalone' => ['nedjelja', 'ponedjeljak', 'utorak', 'srijeda', 'četvrtak', 'petak', 'subota'], - 'weekdays_short' => ['ned.', 'pon.', 'uto.', 'sri.', 'čet.', 'pet.', 'sub.'], - 'weekdays_min' => ['ne', 'po', 'ut', 'sr', 'če', 'pe', 'su'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'list' => [', ', ' i '], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/hr_BA.php b/vendor/nesbot/carbon/src/Carbon/Lang/hr_BA.php deleted file mode 100644 index 7763a45..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/hr_BA.php +++ /dev/null @@ -1,32 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - DarkoDevelop - */ -return array_replace_recursive(require __DIR__.'/hr.php', [ - 'weekdays' => ['nedjelja', 'ponedjeljak', 'utorak', 'srijeda', 'četvrtak', 'petak', 'subota'], - 'weekdays_short' => ['ned', 'pon', 'uto', 'sri', 'čet', 'pet', 'sub'], - 'weekdays_min' => ['ned', 'pon', 'uto', 'sri', 'čet', 'pet', 'sub'], - 'months' => ['siječnja', 'veljače', 'ožujka', 'travnja', 'svibnja', 'lipnja', 'srpnja', 'kolovoza', 'rujna', 'listopada', 'studenoga', 'prosinca'], - 'months_short' => ['sij', 'velj', 'ožu', 'tra', 'svi', 'lip', 'srp', 'kol', 'ruj', 'lis', 'stu', 'pro'], - 'months_standalone' => ['siječanj', 'veljača', 'ožujak', 'travanj', 'svibanj', 'lipanj', 'srpanj', 'kolovoz', 'rujan', 'listopad', 'studeni', 'prosinac'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'D. M. yy.', - 'LL' => 'D. MMM YYYY.', - 'LLL' => 'D. MMMM YYYY. HH:mm', - 'LLLL' => 'dddd, D. MMMM YYYY. HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/hr_HR.php b/vendor/nesbot/carbon/src/Carbon/Lang/hr_HR.php deleted file mode 100644 index db74d8c..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/hr_HR.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/hr.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/hsb.php b/vendor/nesbot/carbon/src/Carbon/Lang/hsb.php deleted file mode 100644 index 3537b8b..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/hsb.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/hsb_DE.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/hsb_DE.php b/vendor/nesbot/carbon/src/Carbon/Lang/hsb_DE.php deleted file mode 100644 index 6ba2271..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/hsb_DE.php +++ /dev/null @@ -1,60 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Information from Michael Wolf Andrzej Krzysztofowicz ankry@mif.pg.gda.pl - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD.MM.YYYY', - 'LL' => 'DD. MMMM YYYY', - 'LLL' => 'DD. MMMM, HH:mm [hodź.]', - 'LLLL' => 'dddd, DD. MMMM YYYY, HH:mm [hodź.]', - ], - 'months' => ['januara', 'februara', 'měrca', 'apryla', 'meje', 'junija', 'julija', 'awgusta', 'septembra', 'oktobra', 'nowembra', 'decembra'], - 'months_short' => ['Jan', 'Feb', 'Měr', 'Apr', 'Mej', 'Jun', 'Jul', 'Awg', 'Sep', 'Okt', 'Now', 'Dec'], - 'weekdays' => ['Njedźela', 'Póndźela', 'Wutora', 'Srjeda', 'Štvórtk', 'Pjatk', 'Sobota'], - 'weekdays_short' => ['Nj', 'Pó', 'Wu', 'Sr', 'Št', 'Pj', 'So'], - 'weekdays_min' => ['Nj', 'Pó', 'Wu', 'Sr', 'Št', 'Pj', 'So'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - - 'year' => ':count lěto', - 'y' => ':count lěto', - 'a_year' => ':count lěto', - - 'month' => ':count měsac', - 'm' => ':count měsac', - 'a_month' => ':count měsac', - - 'week' => ':count tydźeń', - 'w' => ':count tydźeń', - 'a_week' => ':count tydźeń', - - 'day' => ':count dźeń', - 'd' => ':count dźeń', - 'a_day' => ':count dźeń', - - 'hour' => ':count hodźina', - 'h' => ':count hodźina', - 'a_hour' => ':count hodźina', - - 'minute' => ':count chwila', - 'min' => ':count chwila', - 'a_minute' => ':count chwila', - - 'second' => ':count druhi', - 's' => ':count druhi', - 'a_second' => ':count druhi', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ht.php b/vendor/nesbot/carbon/src/Carbon/Lang/ht.php deleted file mode 100644 index ebd12ad..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ht.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/ht_HT.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ht_HT.php b/vendor/nesbot/carbon/src/Carbon/Lang/ht_HT.php deleted file mode 100644 index 139b813..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ht_HT.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Sugar Labs // OLPC sugarlabs.org libc-alpha@sourceware.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YYYY', - ], - 'months' => ['janvye', 'fevriye', 'mas', 'avril', 'me', 'jen', 'jiyè', 'out', 'septanm', 'oktòb', 'novanm', 'desanm'], - 'months_short' => ['jan', 'fev', 'mas', 'avr', 'me', 'jen', 'jiy', 'out', 'sep', 'okt', 'nov', 'des'], - 'weekdays' => ['dimanch', 'lendi', 'madi', 'mèkredi', 'jedi', 'vandredi', 'samdi'], - 'weekdays_short' => ['dim', 'len', 'mad', 'mèk', 'jed', 'van', 'sam'], - 'weekdays_min' => ['dim', 'len', 'mad', 'mèk', 'jed', 'van', 'sam'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - - 'year' => ':count lane', - 'y' => ':count lane', - 'a_year' => ':count lane', - - 'month' => 'mwa :count', - 'm' => 'mwa :count', - 'a_month' => 'mwa :count', - - 'week' => 'semèn :count', - 'w' => 'semèn :count', - 'a_week' => 'semèn :count', - - 'day' => ':count jou', - 'd' => ':count jou', - 'a_day' => ':count jou', - - 'hour' => ':count lè', - 'h' => ':count lè', - 'a_hour' => ':count lè', - - 'minute' => ':count minit', - 'min' => ':count minit', - 'a_minute' => ':count minit', - - 'second' => ':count segonn', - 's' => ':count segonn', - 'a_second' => ':count segonn', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/hu.php b/vendor/nesbot/carbon/src/Carbon/Lang/hu.php deleted file mode 100644 index 635a30c..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/hu.php +++ /dev/null @@ -1,118 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Adam Brunner - * - Brett Johnson - * - balping - */ - -use Carbon\CarbonInterface; - -$huWeekEndings = ['vasárnap', 'hétfőn', 'kedden', 'szerdán', 'csütörtökön', 'pénteken', 'szombaton']; - -return [ - 'year' => ':count év', - 'y' => ':count év', - 'month' => ':count hónap', - 'm' => ':count hónap', - 'week' => ':count hét', - 'w' => ':count hét', - 'day' => ':count nap', - 'd' => ':count nap', - 'hour' => ':count óra', - 'h' => ':count óra', - 'minute' => ':count perc', - 'min' => ':count perc', - 'second' => ':count másodperc', - 's' => ':count másodperc', - 'ago' => ':time', - 'from_now' => ':time múlva', - 'after' => ':time később', - 'before' => ':time korábban', - 'year_ago' => ':count éve', - 'y_ago' => ':count éve', - 'month_ago' => ':count hónapja', - 'm_ago' => ':count hónapja', - 'week_ago' => ':count hete', - 'w_ago' => ':count hete', - 'day_ago' => ':count napja', - 'd_ago' => ':count napja', - 'hour_ago' => ':count órája', - 'h_ago' => ':count órája', - 'minute_ago' => ':count perce', - 'min_ago' => ':count perce', - 'second_ago' => ':count másodperce', - 's_ago' => ':count másodperce', - 'year_after' => ':count évvel', - 'y_after' => ':count évvel', - 'month_after' => ':count hónappal', - 'm_after' => ':count hónappal', - 'week_after' => ':count héttel', - 'w_after' => ':count héttel', - 'day_after' => ':count nappal', - 'd_after' => ':count nappal', - 'hour_after' => ':count órával', - 'h_after' => ':count órával', - 'minute_after' => ':count perccel', - 'min_after' => ':count perccel', - 'second_after' => ':count másodperccel', - 's_after' => ':count másodperccel', - 'year_before' => ':count évvel', - 'y_before' => ':count évvel', - 'month_before' => ':count hónappal', - 'm_before' => ':count hónappal', - 'week_before' => ':count héttel', - 'w_before' => ':count héttel', - 'day_before' => ':count nappal', - 'd_before' => ':count nappal', - 'hour_before' => ':count órával', - 'h_before' => ':count órával', - 'minute_before' => ':count perccel', - 'min_before' => ':count perccel', - 'second_before' => ':count másodperccel', - 's_before' => ':count másodperccel', - 'months' => ['január', 'február', 'március', 'április', 'május', 'június', 'július', 'augusztus', 'szeptember', 'október', 'november', 'december'], - 'months_short' => ['jan.', 'febr.', 'márc.', 'ápr.', 'máj.', 'jún.', 'júl.', 'aug.', 'szept.', 'okt.', 'nov.', 'dec.'], - 'weekdays' => ['vasárnap', 'hétfő', 'kedd', 'szerda', 'csütörtök', 'péntek', 'szombat'], - 'weekdays_short' => ['vas', 'hét', 'kedd', 'sze', 'csüt', 'pén', 'szo'], - 'weekdays_min' => ['v', 'h', 'k', 'sze', 'cs', 'p', 'sz'], - 'ordinal' => ':number.', - 'diff_now' => 'most', - 'diff_today' => 'ma', - 'diff_yesterday' => 'tegnap', - 'diff_tomorrow' => 'holnap', - 'formats' => [ - 'LT' => 'H:mm', - 'LTS' => 'H:mm:ss', - 'L' => 'YYYY.MM.DD.', - 'LL' => 'YYYY. MMMM D.', - 'LLL' => 'YYYY. MMMM D. H:mm', - 'LLLL' => 'YYYY. MMMM D., dddd H:mm', - ], - 'calendar' => [ - 'sameDay' => '[ma] LT[-kor]', - 'nextDay' => '[holnap] LT[-kor]', - 'nextWeek' => static function (CarbonInterface $date) use ($huWeekEndings) { - return '['.$huWeekEndings[$date->dayOfWeek].'] LT[-kor]'; - }, - 'lastDay' => '[tegnap] LT[-kor]', - 'lastWeek' => static function (CarbonInterface $date) use ($huWeekEndings) { - return '[múlt '.$huWeekEndings[$date->dayOfWeek].'] LT[-kor]'; - }, - 'sameElse' => 'L', - ], - 'meridiem' => ['DE', 'DU'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => [', ', ' és '], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/hu_HU.php b/vendor/nesbot/carbon/src/Carbon/Lang/hu_HU.php deleted file mode 100644 index b1c4854..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/hu_HU.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/hu.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/hy.php b/vendor/nesbot/carbon/src/Carbon/Lang/hy.php deleted file mode 100644 index 8145ba3..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/hy.php +++ /dev/null @@ -1,90 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - mhamlet - */ -return [ - 'year' => ':count տարի', - 'a_year' => 'տարի|:count տարի', - 'y' => ':countտ', - 'month' => ':count ամիս', - 'a_month' => 'ամիս|:count ամիս', - 'm' => ':countամ', - 'week' => ':count շաբաթ', - 'a_week' => 'շաբաթ|:count շաբաթ', - 'w' => ':countշ', - 'day' => ':count օր', - 'a_day' => 'օր|:count օր', - 'd' => ':countօր', - 'hour' => ':count ժամ', - 'a_hour' => 'ժամ|:count ժամ', - 'h' => ':countժ', - 'minute' => ':count րոպե', - 'a_minute' => 'րոպե|:count րոպե', - 'min' => ':countր', - 'second' => ':count վայրկյան', - 'a_second' => 'մի քանի վայրկյան|:count վայրկյան', - 's' => ':countվրկ', - 'ago' => ':time առաջ', - 'from_now' => ':timeից', - 'after' => ':time հետո', - 'before' => ':time առաջ', - 'diff_now' => 'հիմա', - 'diff_today' => 'այսօր', - 'diff_yesterday' => 'երեկ', - 'diff_tomorrow' => 'վաղը', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD.MM.YYYY', - 'LL' => 'D MMMM YYYY թ.', - 'LLL' => 'D MMMM YYYY թ., HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY թ., HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[այսօր] LT', - 'nextDay' => '[վաղը] LT', - 'nextWeek' => 'dddd [օրը ժամը] LT', - 'lastDay' => '[երեկ] LT', - 'lastWeek' => '[անցած] dddd [օրը ժամը] LT', - 'sameElse' => 'L', - ], - 'ordinal' => static function ($number, $period) { - return match ($period) { - 'DDD', 'w', 'W', 'DDDo' => $number.($number === 1 ? '-ին' : '-րդ'), - default => $number, - }; - }, - 'meridiem' => static function ($hour) { - if ($hour < 4) { - return 'գիշերվա'; - } - if ($hour < 12) { - return 'առավոտվա'; - } - if ($hour < 17) { - return 'ցերեկվա'; - } - - return 'երեկոյան'; - }, - 'months' => ['հունվարի', 'փետրվարի', 'մարտի', 'ապրիլի', 'մայիսի', 'հունիսի', 'հուլիսի', 'օգոստոսի', 'սեպտեմբերի', 'հոկտեմբերի', 'նոյեմբերի', 'դեկտեմբերի'], - 'months_standalone' => ['հունվար', 'փետրվար', 'մարտ', 'ապրիլ', 'մայիս', 'հունիս', 'հուլիս', 'օգոստոս', 'սեպտեմբեր', 'հոկտեմբեր', 'նոյեմբեր', 'դեկտեմբեր'], - 'months_short' => ['հնվ', 'փտր', 'մրտ', 'ապր', 'մյս', 'հնս', 'հլս', 'օգս', 'սպտ', 'հկտ', 'նմբ', 'դկտ'], - 'months_regexp' => '/(D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|L{2,4}|l{2,4})/', - 'weekdays' => ['կիրակի', 'երկուշաբթի', 'երեքշաբթի', 'չորեքշաբթի', 'հինգշաբթի', 'ուրբաթ', 'շաբաթ'], - 'weekdays_short' => ['կրկ', 'երկ', 'երք', 'չրք', 'հնգ', 'ուրբ', 'շբթ'], - 'weekdays_min' => ['կրկ', 'երկ', 'երք', 'չրք', 'հնգ', 'ուրբ', 'շբթ'], - 'list' => [', ', ' եւ '], - 'first_day_of_week' => 1, -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/hy_AM.php b/vendor/nesbot/carbon/src/Carbon/Lang/hy_AM.php deleted file mode 100644 index 4587df5..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/hy_AM.php +++ /dev/null @@ -1,24 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Josh Soref - * - François B - * - Tim Fish - * - Serhan Apaydın - * - JD Isaacks - */ -return array_replace_recursive(require __DIR__.'/hy.php', [ - 'from_now' => ':time հետո', - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/i18n.php b/vendor/nesbot/carbon/src/Carbon/Lang/i18n.php deleted file mode 100644 index e65449b..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/i18n.php +++ /dev/null @@ -1,23 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'YYYY-MM-DD', - ], - 'months' => ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12'], - 'months_short' => ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12'], - 'weekdays' => ['1', '2', '3', '4', '5', '6', '7'], - 'weekdays_short' => ['1', '2', '3', '4', '5', '6', '7'], - 'weekdays_min' => ['1', '2', '3', '4', '5', '6', '7'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 4, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ia.php b/vendor/nesbot/carbon/src/Carbon/Lang/ia.php deleted file mode 100644 index 0a0d5e6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ia.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/ia_FR.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ia_FR.php b/vendor/nesbot/carbon/src/Carbon/Lang/ia_FR.php deleted file mode 100644 index de4b2fa..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ia_FR.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Fedora Project Nik Kalach nikka@fedoraproject.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD.MM.YYYY', - ], - 'months' => ['januario', 'februario', 'martio', 'april', 'maio', 'junio', 'julio', 'augusto', 'septembre', 'octobre', 'novembre', 'decembre'], - 'months_short' => ['jan', 'feb', 'mar', 'apr', 'mai', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec'], - 'weekdays' => ['dominica', 'lunedi', 'martedi', 'mercuridi', 'jovedi', 'venerdi', 'sabbato'], - 'weekdays_short' => ['dom', 'lun', 'mar', 'mer', 'jov', 'ven', 'sab'], - 'weekdays_min' => ['dom', 'lun', 'mar', 'mer', 'jov', 'ven', 'sab'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - - 'year' => 'anno :count', - 'y' => 'anno :count', - 'a_year' => 'anno :count', - - 'month' => ':count mense', - 'm' => ':count mense', - 'a_month' => ':count mense', - - 'week' => ':count septimana', - 'w' => ':count septimana', - 'a_week' => ':count septimana', - - 'day' => ':count die', - 'd' => ':count die', - 'a_day' => ':count die', - - 'hour' => ':count hora', - 'h' => ':count hora', - 'a_hour' => ':count hora', - - 'minute' => ':count minuscule', - 'min' => ':count minuscule', - 'a_minute' => ':count minuscule', - - 'second' => ':count secunda', - 's' => ':count secunda', - 'a_second' => ':count secunda', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/id.php b/vendor/nesbot/carbon/src/Carbon/Lang/id.php deleted file mode 100644 index b96f996..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/id.php +++ /dev/null @@ -1,92 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Josh Soref - * - du - * - JD Isaacks - * - Nafies Luthfi - * - Raymundus Jati Primanda (mundusjp) - * - diankur313 - * - a-wip0 - */ -return [ - 'year' => ':count tahun', - 'a_year' => '{1}setahun|]1,Inf[:count tahun', - 'y' => ':countthn', - 'month' => ':count bulan', - 'a_month' => '{1}sebulan|]1,Inf[:count bulan', - 'm' => ':countbln', - 'week' => ':count minggu', - 'a_week' => '{1}seminggu|]1,Inf[:count minggu', - 'w' => ':countmgg', - 'day' => ':count hari', - 'a_day' => '{1}sehari|]1,Inf[:count hari', - 'd' => ':counthr', - 'hour' => ':count jam', - 'a_hour' => '{1}sejam|]1,Inf[:count jam', - 'h' => ':countj', - 'minute' => ':count menit', - 'a_minute' => '{1}semenit|]1,Inf[:count menit', - 'min' => ':countmnt', - 'second' => ':count detik', - 'a_second' => '{1}beberapa detik|]1,Inf[:count detik', - 's' => ':countdt', - 'ago' => ':time yang lalu', - 'from_now' => ':time dari sekarang', - 'after' => ':time setelahnya', - 'before' => ':time sebelumnya', - 'diff_now' => 'sekarang', - 'diff_today' => 'Hari', - 'diff_today_regexp' => 'Hari(?:\\s+ini)?(?:\\s+pukul)?', - 'diff_yesterday' => 'kemarin', - 'diff_yesterday_regexp' => 'Kemarin(?:\\s+pukul)?', - 'diff_tomorrow' => 'besok', - 'diff_tomorrow_regexp' => 'Besok(?:\\s+pukul)?', - 'formats' => [ - 'LT' => 'HH.mm', - 'LTS' => 'HH.mm.ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY [pukul] HH.mm', - 'LLLL' => 'dddd, D MMMM YYYY [pukul] HH.mm', - ], - 'calendar' => [ - 'sameDay' => '[Hari ini pukul] LT', - 'nextDay' => '[Besok pukul] LT', - 'nextWeek' => 'dddd [pukul] LT', - 'lastDay' => '[Kemarin pukul] LT', - 'lastWeek' => 'dddd [lalu pukul] LT', - 'sameElse' => 'L', - ], - 'meridiem' => static function ($hour) { - if ($hour < 11) { - return 'pagi'; - } - if ($hour < 15) { - return 'siang'; - } - if ($hour < 19) { - return 'sore'; - } - - return 'malam'; - }, - 'months' => ['Januari', 'Februari', 'Maret', 'April', 'Mei', 'Juni', 'Juli', 'Agustus', 'September', 'Oktober', 'November', 'Desember'], - 'months_short' => ['Jan', 'Feb', 'Mar', 'Apr', 'Mei', 'Jun', 'Jul', 'Agt', 'Sep', 'Okt', 'Nov', 'Des'], - 'weekdays' => ['Minggu', 'Senin', 'Selasa', 'Rabu', 'Kamis', 'Jumat', 'Sabtu'], - 'weekdays_short' => ['Min', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'], - 'weekdays_min' => ['Mg', 'Sn', 'Sl', 'Rb', 'Km', 'Jm', 'Sb'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'list' => [', ', ' dan '], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/id_ID.php b/vendor/nesbot/carbon/src/Carbon/Lang/id_ID.php deleted file mode 100644 index d5953a1..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/id_ID.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/id.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ig.php b/vendor/nesbot/carbon/src/Carbon/Lang/ig.php deleted file mode 100644 index de51e9c..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ig.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/ig_NG.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ig_NG.php b/vendor/nesbot/carbon/src/Carbon/Lang/ig_NG.php deleted file mode 100644 index 0034e35..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ig_NG.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - pablo@mandriva.com - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YY', - ], - 'months' => ['Jenụwarị', 'Febrụwarị', 'Maachị', 'Eprel', 'Mee', 'Juun', 'Julaị', 'Ọgọọst', 'Septemba', 'Ọktoba', 'Novemba', 'Disemba'], - 'months_short' => ['Jen', 'Feb', 'Maa', 'Epr', 'Mee', 'Juu', 'Jul', 'Ọgọ', 'Sep', 'Ọkt', 'Nov', 'Dis'], - 'weekdays' => ['sọnde', 'mọnde', 'tuzde', 'wenzde', 'tọsde', 'fraịde', 'satọde'], - 'weekdays_short' => ['sọn', 'mọn', 'tuz', 'wen', 'tọs', 'fra', 'sat'], - 'weekdays_min' => ['sọn', 'mọn', 'tuz', 'wen', 'tọs', 'fra', 'sat'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - - 'year' => 'afo :count', - 'y' => 'afo :count', - 'a_year' => 'afo :count', - - 'month' => 'önwa :count', - 'm' => 'önwa :count', - 'a_month' => 'önwa :count', - - 'week' => 'izu :count', - 'w' => 'izu :count', - 'a_week' => 'izu :count', - - 'day' => 'ụbọchị :count', - 'd' => 'ụbọchị :count', - 'a_day' => 'ụbọchị :count', - - 'hour' => 'awa :count', - 'h' => 'awa :count', - 'a_hour' => 'awa :count', - - 'minute' => 'minit :count', - 'min' => 'minit :count', - 'a_minute' => 'minit :count', - - 'second' => 'sekọnd :count', - 's' => 'sekọnd :count', - 'a_second' => 'sekọnd :count', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ii.php b/vendor/nesbot/carbon/src/Carbon/Lang/ii.php deleted file mode 100644 index 592a53f..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ii.php +++ /dev/null @@ -1,56 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, - 'meridiem' => ['ꎸꄑ', 'ꁯꋒ'], - 'weekdays' => ['ꑭꆏꑍ', 'ꆏꊂꋍ', 'ꆏꊂꑍ', 'ꆏꊂꌕ', 'ꆏꊂꇖ', 'ꆏꊂꉬ', 'ꆏꊂꃘ'], - 'weekdays_short' => ['ꑭꆏ', 'ꆏꋍ', 'ꆏꑍ', 'ꆏꌕ', 'ꆏꇖ', 'ꆏꉬ', 'ꆏꃘ'], - 'weekdays_min' => ['ꑭꆏ', 'ꆏꋍ', 'ꆏꑍ', 'ꆏꌕ', 'ꆏꇖ', 'ꆏꉬ', 'ꆏꃘ'], - 'months' => null, - 'months_short' => ['ꋍꆪ', 'ꑍꆪ', 'ꌕꆪ', 'ꇖꆪ', 'ꉬꆪ', 'ꃘꆪ', 'ꏃꆪ', 'ꉆꆪ', 'ꈬꆪ', 'ꊰꆪ', 'ꊰꊪꆪ', 'ꊰꑋꆪ'], - 'formats' => [ - 'LT' => 'h:mm a', - 'LTS' => 'h:mm:ss a', - 'L' => 'YYYY-MM-dd', - 'LL' => 'YYYY MMM D', - 'LLL' => 'YYYY MMMM D h:mm a', - 'LLLL' => 'YYYY MMMM D, dddd h:mm a', - ], - - 'year' => ':count ꒉ', // less reliable - 'y' => ':count ꒉ', // less reliable - 'a_year' => ':count ꒉ', // less reliable - - 'month' => ':count ꆪ', - 'm' => ':count ꆪ', - 'a_month' => ':count ꆪ', - - 'week' => ':count ꏃ', // less reliable - 'w' => ':count ꏃ', // less reliable - 'a_week' => ':count ꏃ', // less reliable - - 'day' => ':count ꏜ', // less reliable - 'd' => ':count ꏜ', // less reliable - 'a_day' => ':count ꏜ', // less reliable - - 'hour' => ':count ꄮꈉ', - 'h' => ':count ꄮꈉ', - 'a_hour' => ':count ꄮꈉ', - - 'minute' => ':count ꀄꊭ', // less reliable - 'min' => ':count ꀄꊭ', // less reliable - 'a_minute' => ':count ꀄꊭ', // less reliable - - 'second' => ':count ꇅ', // less reliable - 's' => ':count ꇅ', // less reliable - 'a_second' => ':count ꇅ', // less reliable -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ik.php b/vendor/nesbot/carbon/src/Carbon/Lang/ik.php deleted file mode 100644 index 7a13aa2..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ik.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/ik_CA.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ik_CA.php b/vendor/nesbot/carbon/src/Carbon/Lang/ik_CA.php deleted file mode 100644 index 02dbbef..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ik_CA.php +++ /dev/null @@ -1,51 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - pablo@mandriva.com - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YY', - ], - 'months' => ['Siqiññaatchiaq', 'Siqiññaasrugruk', 'Paniqsiqsiivik', 'Qilġich Tatqiat', 'Suppivik', 'Iġñivik', 'Itchavik', 'Tiññivik', 'Amiġaiqsivik', 'Sikkuvik', 'Nippivik', 'Siqiñġiḷaq'], - 'months_short' => ['Sñt', 'Sñs', 'Pan', 'Qil', 'Sup', 'Iġñ', 'Itc', 'Tiñ', 'Ami', 'Sik', 'Nip', 'Siq'], - 'weekdays' => ['Minġuiqsioiq', 'Savałłiq', 'Ilaqtchiioiq', 'Qitchiioiq', 'Sisamiioiq', 'Tallimmiioiq', 'Maqinġuoiq'], - 'weekdays_short' => ['Min', 'Sav', 'Ila', 'Qit', 'Sis', 'Tal', 'Maq'], - 'weekdays_min' => ['Min', 'Sav', 'Ila', 'Qit', 'Sis', 'Tal', 'Maq'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - - 'year' => ':count ukiuq', - 'y' => ':count ukiuq', - 'a_year' => ':count ukiuq', - - 'month' => ':count Tatqiat', - 'm' => ':count Tatqiat', - 'a_month' => ':count Tatqiat', - - 'week' => ':count tatqiat', // less reliable - 'w' => ':count tatqiat', // less reliable - 'a_week' => ':count tatqiat', // less reliable - - 'day' => ':count siqiñiq', // less reliable - 'd' => ':count siqiñiq', // less reliable - 'a_day' => ':count siqiñiq', // less reliable - - 'hour' => ':count Siḷa', // less reliable - 'h' => ':count Siḷa', // less reliable - 'a_hour' => ':count Siḷa', // less reliable - - 'second' => ':count iġñiq', // less reliable - 's' => ':count iġñiq', // less reliable - 'a_second' => ':count iġñiq', // less reliable -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/in.php b/vendor/nesbot/carbon/src/Carbon/Lang/in.php deleted file mode 100644 index d5953a1..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/in.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/id.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/is.php b/vendor/nesbot/carbon/src/Carbon/Lang/is.php deleted file mode 100644 index 9990168..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/is.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Kristján Ingi Geirsson - */ -return [ - 'year' => '1 ár|:count ár', - 'y' => '1 ár|:count ár', - 'month' => '1 mánuður|:count mánuðir', - 'm' => '1 mánuður|:count mánuðir', - 'week' => '1 vika|:count vikur', - 'w' => '1 vika|:count vikur', - 'day' => '1 dagur|:count dagar', - 'd' => '1 dagur|:count dagar', - 'hour' => '1 klukkutími|:count klukkutímar', - 'h' => '1 klukkutími|:count klukkutímar', - 'minute' => '1 mínúta|:count mínútur', - 'min' => '1 mínúta|:count mínútur', - 'second' => '1 sekúnda|:count sekúndur', - 's' => '1 sekúnda|:count sekúndur', - 'ago' => ':time síðan', - 'from_now' => ':time síðan', - 'after' => ':time eftir', - 'before' => ':time fyrir', - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => [', ', ' og '], - 'meridiem' => ['fh', 'eh'], - 'diff_now' => 'núna', - 'diff_yesterday' => 'í gær', - 'diff_tomorrow' => 'á morgun', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD.MM.YYYY', - 'LL' => 'D. MMMM YYYY', - 'LLL' => 'D. MMMM [kl.] HH:mm', - 'LLLL' => 'dddd D. MMMM YYYY [kl.] HH:mm', - ], - 'weekdays' => ['sunnudaginn', 'mánudaginn', 'þriðjudaginn', 'miðvikudaginn', 'fimmtudaginn', 'föstudaginn', 'laugardaginn'], - 'weekdays_short' => ['sun', 'mán', 'þri', 'mið', 'fim', 'fös', 'lau'], - 'weekdays_min' => ['sun', 'mán', 'þri', 'mið', 'fim', 'fös', 'lau'], - 'months' => ['janúar', 'febrúar', 'mars', 'apríl', 'maí', 'júní', 'júlí', 'ágúst', 'september', 'október', 'nóvember', 'desember'], - 'months_short' => ['jan', 'feb', 'mar', 'apr', 'maí', 'jún', 'júl', 'ágú', 'sep', 'okt', 'nóv', 'des'], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/is_IS.php b/vendor/nesbot/carbon/src/Carbon/Lang/is_IS.php deleted file mode 100644 index 4d35c44..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/is_IS.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/is.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/it.php b/vendor/nesbot/carbon/src/Carbon/Lang/it.php deleted file mode 100644 index c483695..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/it.php +++ /dev/null @@ -1,111 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Ash - * - François B - * - Marco Perrando - * - Massimiliano Caniparoli - * - JD Isaacks - * - Andrea Martini - * - Francesco Marasco - * - Tizianoz93 - * - Davide Casiraghi (davide-casiraghi) - * - Pete Scopes (pdscopes) - */ - -use Carbon\CarbonInterface; - -return [ - 'year' => ':count anno|:count anni', - 'a_year' => 'un anno|:count anni', - 'y' => ':count anno|:count anni', - 'month' => ':count mese|:count mesi', - 'a_month' => 'un mese|:count mesi', - 'm' => ':count mese|:count mesi', - 'week' => ':count settimana|:count settimane', - 'a_week' => 'una settimana|:count settimane', - 'w' => ':count set.', - 'day' => ':count giorno|:count giorni', - 'a_day' => 'un giorno|:count giorni', - 'd' => ':count g|:count gg', - 'hour' => ':count ora|:count ore', - 'a_hour' => 'un\'ora|:count ore', - 'h' => ':count h', - 'minute' => ':count minuto|:count minuti', - 'a_minute' => 'un minuto|:count minuti', - 'min' => ':count min.', - 'second' => ':count secondo|:count secondi', - 'a_second' => 'alcuni secondi|:count secondi', - 's' => ':count sec.', - 'millisecond' => ':count millisecondo|:count millisecondi', - 'a_millisecond' => 'un millisecondo|:count millisecondi', - 'ms' => ':countms', - 'microsecond' => ':count microsecondo|:count microsecondi', - 'a_microsecond' => 'un microsecondo|:count microsecondi', - 'µs' => ':countµs', - 'ago' => ':time fa', - 'from_now' => static function ($time) { - return (preg_match('/^\d.+$/', $time) ? 'tra' : 'in')." $time"; - }, - 'after' => ':time dopo', - 'before' => ':time prima', - 'diff_now' => 'proprio ora', - 'diff_today' => 'Oggi', - 'diff_today_regexp' => 'Oggi(?:\\s+alle)?', - 'diff_yesterday' => 'ieri', - 'diff_yesterday_regexp' => 'Ieri(?:\\s+alle)?', - 'diff_tomorrow' => 'domani', - 'diff_tomorrow_regexp' => 'Domani(?:\\s+alle)?', - 'diff_before_yesterday' => 'l\'altro ieri', - 'diff_after_tomorrow' => 'dopodomani', - 'period_interval' => 'ogni :interval', - 'period_start_date' => 'dal :date', - 'period_end_date' => 'al :date', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[Oggi alle] LT', - 'nextDay' => '[Domani alle] LT', - 'nextWeek' => 'dddd [alle] LT', - 'lastDay' => '[Ieri alle] LT', - 'lastWeek' => static fn (CarbonInterface $date) => match ($date->dayOfWeek) { - 0 => '[la scorsa] dddd [alle] LT', - default => '[lo scorso] dddd [alle] LT', - }, - 'sameElse' => 'L', - ], - 'ordinal' => ':numberº', - 'months' => ['gennaio', 'febbraio', 'marzo', 'aprile', 'maggio', 'giugno', 'luglio', 'agosto', 'settembre', 'ottobre', 'novembre', 'dicembre'], - 'months_short' => ['gen', 'feb', 'mar', 'apr', 'mag', 'giu', 'lug', 'ago', 'set', 'ott', 'nov', 'dic'], - 'weekdays' => ['domenica', 'lunedì', 'martedì', 'mercoledì', 'giovedì', 'venerdì', 'sabato'], - 'weekdays_short' => ['dom', 'lun', 'mar', 'mer', 'gio', 'ven', 'sab'], - 'weekdays_min' => ['do', 'lu', 'ma', 'me', 'gi', 've', 'sa'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => [', ', ' e '], - 'ordinal_words' => [ - 'of' => 'di', - 'first' => 'primo', - 'second' => 'secondo', - 'third' => 'terzo', - 'fourth' => 'quarto', - 'fifth' => 'quinto', - 'last' => 'ultimo', - ], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/it_CH.php b/vendor/nesbot/carbon/src/Carbon/Lang/it_CH.php deleted file mode 100644 index c23cc50..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/it_CH.php +++ /dev/null @@ -1,20 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Propaganistas - */ -return array_replace_recursive(require __DIR__.'/it.php', [ - 'formats' => [ - 'L' => 'DD.MM.YYYY', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/it_IT.php b/vendor/nesbot/carbon/src/Carbon/Lang/it_IT.php deleted file mode 100644 index a5d1981..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/it_IT.php +++ /dev/null @@ -1,16 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - RAP bug-glibc-locales@gnu.org - */ -return require __DIR__.'/it.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/it_SM.php b/vendor/nesbot/carbon/src/Carbon/Lang/it_SM.php deleted file mode 100644 index 5e8fc92..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/it_SM.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/it.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/it_VA.php b/vendor/nesbot/carbon/src/Carbon/Lang/it_VA.php deleted file mode 100644 index 5e8fc92..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/it_VA.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/it.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/iu.php b/vendor/nesbot/carbon/src/Carbon/Lang/iu.php deleted file mode 100644 index 4fa9742..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/iu.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/iu_CA.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/iu_CA.php b/vendor/nesbot/carbon/src/Carbon/Lang/iu_CA.php deleted file mode 100644 index 5acee93..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/iu_CA.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Pablo Saratxaga pablo@mandriva.com - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'MM/DD/YY', - ], - 'months' => ['ᔮᓄᐊᓕ', 'ᕕᕗᐊᓕ', 'ᒪᔅᓯ', 'ᐃᐳᓗ', 'ᒪᐃ', 'ᔪᓂ', 'ᔪᓚᐃ', 'ᐊᒋᓯ', 'ᓯᑎᕙ', 'ᐊᑦᑐᕙ', 'ᓄᕕᕙ', 'ᑎᓯᕝᕙ'], - 'months_short' => ['ᔮᓄ', 'ᕕᕗ', 'ᒪᔅ', 'ᐃᐳ', 'ᒪᐃ', 'ᔪᓂ', 'ᔪᓚ', 'ᐊᒋ', 'ᓯᑎ', 'ᐊᑦ', 'ᓄᕕ', 'ᑎᓯ'], - 'weekdays' => ['ᓈᑦᑎᖑᔭᕐᕕᒃ', 'ᓇᒡᒐᔾᔭᐅ', 'ᓇᒡᒐᔾᔭᐅᓕᖅᑭᑦ', 'ᐱᖓᓲᓕᖅᓯᐅᑦ', 'ᕿᑎᖅᑰᑦ', 'ᐅᓪᓗᕈᓘᑐᐃᓇᖅ', 'ᓯᕙᑖᕕᒃ'], - 'weekdays_short' => ['ᓈ', 'ᓇ', 'ᓕ', 'ᐱ', 'ᕿ', 'ᐅ', 'ᓯ'], - 'weekdays_min' => ['ᓈ', 'ᓇ', 'ᓕ', 'ᐱ', 'ᕿ', 'ᐅ', 'ᓯ'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - - 'year' => ':count ᐅᑭᐅᖅ', - 'y' => ':count ᐅᑭᐅᖅ', - 'a_year' => ':count ᐅᑭᐅᖅ', - - 'month' => ':count qaammat', - 'm' => ':count qaammat', - 'a_month' => ':count qaammat', - - 'week' => ':count sapaatip akunnera', - 'w' => ':count sapaatip akunnera', - 'a_week' => ':count sapaatip akunnera', - - 'day' => ':count ulloq', - 'd' => ':count ulloq', - 'a_day' => ':count ulloq', - - 'hour' => ':count ikarraq', - 'h' => ':count ikarraq', - 'a_hour' => ':count ikarraq', - - 'minute' => ':count titiqqaralaaq', // less reliable - 'min' => ':count titiqqaralaaq', // less reliable - 'a_minute' => ':count titiqqaralaaq', // less reliable - - 'second' => ':count marluk', // less reliable - 's' => ':count marluk', // less reliable - 'a_second' => ':count marluk', // less reliable -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/iw.php b/vendor/nesbot/carbon/src/Carbon/Lang/iw.php deleted file mode 100644 index 5dedd3c..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/iw.php +++ /dev/null @@ -1,59 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, - 'months' => ['ינואר', 'פברואר', 'מרץ', 'אפריל', 'מאי', 'יוני', 'יולי', 'אוגוסט', 'ספטמבר', 'אוקטובר', 'נובמבר', 'דצמבר'], - 'months_short' => ['ינו׳', 'פבר׳', 'מרץ', 'אפר׳', 'מאי', 'יוני', 'יולי', 'אוג׳', 'ספט׳', 'אוק׳', 'נוב׳', 'דצמ׳'], - 'weekdays' => ['יום ראשון', 'יום שני', 'יום שלישי', 'יום רביעי', 'יום חמישי', 'יום שישי', 'יום שבת'], - 'weekdays_short' => ['יום א׳', 'יום ב׳', 'יום ג׳', 'יום ד׳', 'יום ה׳', 'יום ו׳', 'שבת'], - 'weekdays_min' => ['א׳', 'ב׳', 'ג׳', 'ד׳', 'ה׳', 'ו׳', 'ש׳'], - 'meridiem' => ['לפנה״צ', 'אחה״צ'], - 'formats' => [ - 'LT' => 'H:mm', - 'LTS' => 'H:mm:ss', - 'L' => 'D.M.YYYY', - 'LL' => 'D בMMM YYYY', - 'LLL' => 'D בMMMM YYYY H:mm', - 'LLLL' => 'dddd, D בMMMM YYYY H:mm', - ], - - 'year' => ':count שנה', - 'y' => ':count שנה', - 'a_year' => ':count שנה', - - 'month' => ':count חודש', - 'm' => ':count חודש', - 'a_month' => ':count חודש', - - 'week' => ':count שבוע', - 'w' => ':count שבוע', - 'a_week' => ':count שבוע', - - 'day' => ':count יום', - 'd' => ':count יום', - 'a_day' => ':count יום', - - 'hour' => ':count שעה', - 'h' => ':count שעה', - 'a_hour' => ':count שעה', - - 'minute' => ':count דקה', - 'min' => ':count דקה', - 'a_minute' => ':count דקה', - - 'second' => ':count שניה', - 's' => ':count שניה', - 'a_second' => ':count שניה', - - 'ago' => 'לפני :time', - 'from_now' => 'בעוד :time', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ja.php b/vendor/nesbot/carbon/src/Carbon/Lang/ja.php deleted file mode 100644 index e8646bd..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ja.php +++ /dev/null @@ -1,98 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Takuya Sawada - * - Atsushi Tanaka - * - François B - * - Jason Katz-Brown - * - Serhan Apaydın - * - XueWei - * - JD Isaacks - * - toyama satoshi - * - atakigawa - */ - -use Carbon\CarbonInterface; - -return [ - 'year' => ':count年', - 'y' => ':count年', - 'month' => ':countヶ月', - 'm' => ':countヶ月', - 'week' => ':count週間', - 'w' => ':count週間', - 'day' => ':count日', - 'd' => ':count日', - 'hour' => ':count時間', - 'h' => ':count時間', - 'minute' => ':count分', - 'min' => ':count分', - 'second' => ':count秒', - 'a_second' => '{1}数秒|]1,Inf[:count秒', - 's' => ':count秒', - 'ago' => ':time前', - 'from_now' => ':time後', - 'after' => ':time後', - 'before' => ':time前', - 'diff_now' => '今', - 'diff_today' => '今日', - 'diff_yesterday' => '昨日', - 'diff_tomorrow' => '明日', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'YYYY/MM/DD', - 'LL' => 'YYYY年M月D日', - 'LLL' => 'YYYY年M月D日 HH:mm', - 'LLLL' => 'YYYY年M月D日 dddd HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[今日] LT', - 'nextDay' => '[明日] LT', - 'nextWeek' => static function (CarbonInterface $current, \Carbon\CarbonInterface $other) { - if ($other->week !== $current->week) { - return '[来週]dddd LT'; - } - - return 'dddd LT'; - }, - 'lastDay' => '[昨日] LT', - 'lastWeek' => static function (CarbonInterface $current, \Carbon\CarbonInterface $other) { - if ($other->week !== $current->week) { - return '[先週]dddd LT'; - } - - return 'dddd LT'; - }, - 'sameElse' => 'L', - ], - 'ordinal' => static function ($number, $period) { - return match ($period) { - 'd', 'D', 'DDD' => $number.'日', - default => $number, - }; - }, - 'meridiem' => ['午前', '午後'], - 'months' => ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'], - 'months_short' => ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'], - 'weekdays' => ['日曜日', '月曜日', '火曜日', '水曜日', '木曜日', '金曜日', '土曜日'], - 'weekdays_short' => ['日', '月', '火', '水', '木', '金', '土'], - 'weekdays_min' => ['日', '月', '火', '水', '木', '金', '土'], - 'list' => '、', - 'alt_numbers' => ['〇', '一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二', '十三', '十四', '十五', '十六', '十七', '十八', '十九', '二十', '二十一', '二十二', '二十三', '二十四', '二十五', '二十六', '二十七', '二十八', '二十九', '三十', '三十一', '三十二', '三十三', '三十四', '三十五', '三十六', '三十七', '三十八', '三十九', '四十', '四十一', '四十二', '四十三', '四十四', '四十五', '四十六', '四十七', '四十八', '四十九', '五十', '五十一', '五十二', '五十三', '五十四', '五十五', '五十六', '五十七', '五十八', '五十九', '六十', '六十一', '六十二', '六十三', '六十四', '六十五', '六十六', '六十七', '六十八', '六十九', '七十', '七十一', '七十二', '七十三', '七十四', '七十五', '七十六', '七十七', '七十八', '七十九', '八十', '八十一', '八十二', '八十三', '八十四', '八十五', '八十六', '八十七', '八十八', '八十九', '九十', '九十一', '九十二', '九十三', '九十四', '九十五', '九十六', '九十七', '九十八', '九十九'], - 'alt_numbers_pow' => [ - 10000 => '万', - 1000 => '千', - 100 => '百', - ], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ja_JP.php b/vendor/nesbot/carbon/src/Carbon/Lang/ja_JP.php deleted file mode 100644 index c283625..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ja_JP.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/ja.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/jgo.php b/vendor/nesbot/carbon/src/Carbon/Lang/jgo.php deleted file mode 100644 index f4cdb67..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/jgo.php +++ /dev/null @@ -1,14 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/jmc.php b/vendor/nesbot/carbon/src/Carbon/Lang/jmc.php deleted file mode 100644 index ed92e8e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/jmc.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'meridiem' => ['utuko', 'kyiukonyi'], - 'weekdays' => ['Jumapilyi', 'Jumatatuu', 'Jumanne', 'Jumatanu', 'Alhamisi', 'Ijumaa', 'Jumamosi'], - 'weekdays_short' => ['Jpi', 'Jtt', 'Jnn', 'Jtn', 'Alh', 'Iju', 'Jmo'], - 'weekdays_min' => ['Jpi', 'Jtt', 'Jnn', 'Jtn', 'Alh', 'Iju', 'Jmo'], - 'months' => ['Januari', 'Februari', 'Machi', 'Aprilyi', 'Mei', 'Junyi', 'Julyai', 'Agusti', 'Septemba', 'Oktoba', 'Novemba', 'Desemba'], - 'months_short' => ['Jan', 'Feb', 'Mac', 'Apr', 'Mei', 'Jun', 'Jul', 'Ago', 'Sep', 'Okt', 'Nov', 'Des'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/jv.php b/vendor/nesbot/carbon/src/Carbon/Lang/jv.php deleted file mode 100644 index 696087f..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/jv.php +++ /dev/null @@ -1,71 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Josh Soref - * - tgfjt - * - JD Isaacks - */ -return [ - 'year' => '{1}setaun|]1,Inf[:count taun', - 'month' => '{1}sewulan|]1,Inf[:count wulan', - 'week' => '{1}sakminggu|]1,Inf[:count minggu', - 'day' => '{1}sedinten|]1,Inf[:count dinten', - 'hour' => '{1}setunggal jam|]1,Inf[:count jam', - 'minute' => '{1}setunggal menit|]1,Inf[:count menit', - 'second' => '{1}sawetawis detik|]1,Inf[:count detik', - 'ago' => ':time ingkang kepengker', - 'from_now' => 'wonten ing :time', - 'diff_today' => 'Dinten', - 'diff_yesterday' => 'Kala', - 'diff_yesterday_regexp' => 'Kala(?:\\s+wingi)?(?:\\s+pukul)?', - 'diff_tomorrow' => 'Mbenjang', - 'diff_tomorrow_regexp' => 'Mbenjang(?:\\s+pukul)?', - 'diff_today_regexp' => 'Dinten(?:\\s+puniko)?(?:\\s+pukul)?', - 'formats' => [ - 'LT' => 'HH.mm', - 'LTS' => 'HH.mm.ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY [pukul] HH.mm', - 'LLLL' => 'dddd, D MMMM YYYY [pukul] HH.mm', - ], - 'calendar' => [ - 'sameDay' => '[Dinten puniko pukul] LT', - 'nextDay' => '[Mbenjang pukul] LT', - 'nextWeek' => 'dddd [pukul] LT', - 'lastDay' => '[Kala wingi pukul] LT', - 'lastWeek' => 'dddd [kepengker pukul] LT', - 'sameElse' => 'L', - ], - 'meridiem' => static function ($hour) { - if ($hour < 11) { - return 'enjing'; - } - if ($hour < 15) { - return 'siyang'; - } - if ($hour < 19) { - return 'sonten'; - } - - return 'ndalu'; - }, - 'months' => ['Januari', 'Februari', 'Maret', 'April', 'Mei', 'Juni', 'Juli', 'Agustus', 'September', 'Oktober', 'Nopember', 'Desember'], - 'months_short' => ['Jan', 'Feb', 'Mar', 'Apr', 'Mei', 'Jun', 'Jul', 'Ags', 'Sep', 'Okt', 'Nop', 'Des'], - 'weekdays' => ['Minggu', 'Senen', 'Seloso', 'Rebu', 'Kemis', 'Jemuwah', 'Septu'], - 'weekdays_short' => ['Min', 'Sen', 'Sel', 'Reb', 'Kem', 'Jem', 'Sep'], - 'weekdays_min' => ['Mg', 'Sn', 'Sl', 'Rb', 'Km', 'Jm', 'Sp'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'list' => [', ', ' lan '], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ka.php b/vendor/nesbot/carbon/src/Carbon/Lang/ka.php deleted file mode 100644 index 05752aa..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ka.php +++ /dev/null @@ -1,204 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Tornike Razmadze - * - François B - * - Lasha Dolidze - * - Tim Fish - * - JD Isaacks - * - Tornike Razmadze - * - François B - * - Lasha Dolidze - * - JD Isaacks - * - LONGMAN - * - Avtandil Kikabidze (akalongman) - * - Levan Velijanashvili (Stichoza) - */ - -use Carbon\CarbonInterface; - -return [ - 'year' => ':count წელი', - 'y' => ':count წელი', - 'a_year' => '{1}წელი|]1,Inf[:count წელი', - 'month' => ':count თვე', - 'm' => ':count თვე', - 'a_month' => '{1}თვე|]1,Inf[:count თვე', - 'week' => ':count კვირა', - 'w' => ':count კვირა', - 'a_week' => '{1}კვირა|]1,Inf[:count კვირა', - 'day' => ':count დღე', - 'd' => ':count დღე', - 'a_day' => '{1}დღე|]1,Inf[:count დღე', - 'hour' => ':count საათი', - 'h' => ':count საათი', - 'a_hour' => '{1}საათი|]1,Inf[:count საათი', - 'minute' => ':count წუთი', - 'min' => ':count წუთი', - 'a_minute' => '{1}წუთი|]1,Inf[:count წუთი', - 'second' => ':count წამი', - 's' => ':count წამი', - 'a_second' => '{1}რამდენიმე წამი|]1,Inf[:count წამი', - 'ago' => static function ($time) { - $replacements = [ - // year - 'წელი' => 'წლის', - // month - 'თვე' => 'თვის', - // week - 'კვირა' => 'კვირის', - // day - 'დღე' => 'დღის', - // hour - 'საათი' => 'საათის', - // minute - 'წუთი' => 'წუთის', - // second - 'წამი' => 'წამის', - ]; - $time = strtr($time, array_flip($replacements)); - $time = strtr($time, $replacements); - - return "$time წინ"; - }, - 'from_now' => static function ($time) { - $replacements = [ - // year - 'წელი' => 'წელიწადში', - // week - 'კვირა' => 'კვირაში', - // day - 'დღე' => 'დღეში', - // month - 'თვე' => 'თვეში', - // hour - 'საათი' => 'საათში', - // minute - 'წუთი' => 'წუთში', - // second - 'წამი' => 'წამში', - ]; - $time = strtr($time, array_flip($replacements)); - $time = strtr($time, $replacements); - - return $time; - }, - 'after' => static function ($time) { - $replacements = [ - // year - 'წელი' => 'წლის', - // month - 'თვე' => 'თვის', - // week - 'კვირა' => 'კვირის', - // day - 'დღე' => 'დღის', - // hour - 'საათი' => 'საათის', - // minute - 'წუთი' => 'წუთის', - // second - 'წამი' => 'წამის', - ]; - $time = strtr($time, array_flip($replacements)); - $time = strtr($time, $replacements); - - return "$time შემდეგ"; - }, - 'before' => static function ($time) { - $replacements = [ - // year - 'წელი' => 'წლით', - // month - 'თვე' => 'თვით', - // week - 'კვირა' => 'კვირით', - // day - 'დღე' => 'დღით', - // hour - 'საათი' => 'საათით', - // minute - 'წუთი' => 'წუთით', - // second - 'წამი' => 'წამით', - ]; - $time = strtr($time, array_flip($replacements)); - $time = strtr($time, $replacements); - - return "$time ადრე"; - }, - 'diff_now' => 'ახლა', - 'diff_today' => 'დღეს', - 'diff_yesterday' => 'გუშინ', - 'diff_tomorrow' => 'ხვალ', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[დღეს], LT[-ზე]', - 'nextDay' => '[ხვალ], LT[-ზე]', - 'nextWeek' => static function (CarbonInterface $current, \Carbon\CarbonInterface $other) { - return ($current->isSameWeek($other) ? '' : '[შემდეგ] ').'dddd, LT[-ზე]'; - }, - 'lastDay' => '[გუშინ], LT[-ზე]', - 'lastWeek' => '[წინა] dddd, LT-ზე', - 'sameElse' => 'L', - ], - 'ordinal' => static function ($number) { - if ($number === 0) { - return $number; - } - if ($number === 1) { - return $number.'-ლი'; - } - if (($number < 20) || ($number <= 100 && ($number % 20 === 0)) || ($number % 100 === 0)) { - return 'მე-'.$number; - } - - return $number.'-ე'; - }, - 'months' => ['იანვარი', 'თებერვალი', 'მარტი', 'აპრილი', 'მაისი', 'ივნისი', 'ივლისი', 'აგვისტო', 'სექტემბერი', 'ოქტომბერი', 'ნოემბერი', 'დეკემბერი'], - 'months_standalone' => ['იანვარს', 'თებერვალს', 'მარტს', 'აპრილს', 'მაისს', 'ივნისს', 'ივლისს', 'აგვისტოს', 'სექტემბერს', 'ოქტომბერს', 'ნოემბერს', 'დეკემბერს'], - 'months_short' => ['იან', 'თებ', 'მარ', 'აპრ', 'მაი', 'ივნ', 'ივლ', 'აგვ', 'სექ', 'ოქტ', 'ნოე', 'დეკ'], - 'months_regexp' => '/(D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|L{2,4}|l{2,4})/', - 'weekdays' => ['კვირას', 'ორშაბათს', 'სამშაბათს', 'ოთხშაბათს', 'ხუთშაბათს', 'პარასკევს', 'შაბათს'], - 'weekdays_standalone' => ['კვირა', 'ორშაბათი', 'სამშაბათი', 'ოთხშაბათი', 'ხუთშაბათი', 'პარასკევი', 'შაბათი'], - 'weekdays_short' => ['კვი', 'ორშ', 'სამ', 'ოთხ', 'ხუთ', 'პარ', 'შაბ'], - 'weekdays_min' => ['კვ', 'ორ', 'სა', 'ოთ', 'ხუ', 'პა', 'შა'], - 'weekdays_regexp' => '/^([^d].*|.*[^d])$/', - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'list' => [', ', ' და '], - 'meridiem' => static function ($hour) { - if ($hour >= 4) { - if ($hour < 11) { - return 'დილის'; - } - - if ($hour < 16) { - return 'შუადღის'; - } - - if ($hour < 22) { - return 'საღამოს'; - } - } - - return 'ღამის'; - }, -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ka_GE.php b/vendor/nesbot/carbon/src/Carbon/Lang/ka_GE.php deleted file mode 100644 index a26d930..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ka_GE.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/ka.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/kab.php b/vendor/nesbot/carbon/src/Carbon/Lang/kab.php deleted file mode 100644 index 94d6473..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/kab.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/kab_DZ.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/kab_DZ.php b/vendor/nesbot/carbon/src/Carbon/Lang/kab_DZ.php deleted file mode 100644 index 796660b..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/kab_DZ.php +++ /dev/null @@ -1,56 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - belkacem77@gmail.com - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YYYY', - ], - 'months' => ['Yennayer', 'Fuṛar', 'Meɣres', 'Yebrir', 'Mayyu', 'Yunyu', 'Yulyu', 'ɣuct', 'Ctembeṛ', 'Tubeṛ', 'Wambeṛ', 'Dujembeṛ'], - 'months_short' => ['Yen', 'Fur', 'Meɣ', 'Yeb', 'May', 'Yun', 'Yul', 'ɣuc', 'Cte', 'Tub', 'Wam', 'Duj'], - 'weekdays' => ['Acer', 'Arim', 'Aram', 'Ahad', 'Amhad', 'Sem', 'Sed'], - 'weekdays_short' => ['Ace', 'Ari', 'Ara', 'Aha', 'Amh', 'Sem', 'Sed'], - 'weekdays_min' => ['Ace', 'Ari', 'Ara', 'Aha', 'Amh', 'Sem', 'Sed'], - 'first_day_of_week' => 6, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['FT', 'MD'], - - 'year' => ':count n yiseggasen', - 'y' => ':count n yiseggasen', - 'a_year' => ':count n yiseggasen', - - 'month' => ':count n wayyuren', - 'm' => ':count n wayyuren', - 'a_month' => ':count n wayyuren', - - 'week' => ':count n ledwaṛ', // less reliable - 'w' => ':count n ledwaṛ', // less reliable - 'a_week' => ':count n ledwaṛ', // less reliable - - 'day' => ':count n wussan', - 'd' => ':count n wussan', - 'a_day' => ':count n wussan', - - 'hour' => ':count n tsaɛtin', - 'h' => ':count n tsaɛtin', - 'a_hour' => ':count n tsaɛtin', - - 'minute' => ':count n tedqiqin', - 'min' => ':count n tedqiqin', - 'a_minute' => ':count n tedqiqin', - - 'second' => ':count tasdidt', // less reliable - 's' => ':count tasdidt', // less reliable - 'a_second' => ':count tasdidt', // less reliable -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/kam.php b/vendor/nesbot/carbon/src/Carbon/Lang/kam.php deleted file mode 100644 index 4d3a3b2..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/kam.php +++ /dev/null @@ -1,51 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, - 'meridiem' => ['Ĩyakwakya', 'Ĩyawĩoo'], - 'weekdays' => ['Wa kyumwa', 'Wa kwambĩlĩlya', 'Wa kelĩ', 'Wa katatũ', 'Wa kana', 'Wa katano', 'Wa thanthatũ'], - 'weekdays_short' => ['Wky', 'Wkw', 'Wkl', 'Wtũ', 'Wkn', 'Wtn', 'Wth'], - 'weekdays_min' => ['Wky', 'Wkw', 'Wkl', 'Wtũ', 'Wkn', 'Wtn', 'Wth'], - 'months' => ['Mwai wa mbee', 'Mwai wa kelĩ', 'Mwai wa katatũ', 'Mwai wa kana', 'Mwai wa katano', 'Mwai wa thanthatũ', 'Mwai wa muonza', 'Mwai wa nyaanya', 'Mwai wa kenda', 'Mwai wa ĩkumi', 'Mwai wa ĩkumi na ĩmwe', 'Mwai wa ĩkumi na ilĩ'], - 'months_short' => ['Mbe', 'Kel', 'Ktũ', 'Kan', 'Ktn', 'Tha', 'Moo', 'Nya', 'Knd', 'Ĩku', 'Ĩkm', 'Ĩkl'], - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], - - // Too unreliable - /* - 'year' => ':count mbua', // less reliable - 'y' => ':count mbua', // less reliable - 'a_year' => ':count mbua', // less reliable - - 'month' => ':count ndakitali', // less reliable - 'm' => ':count ndakitali', // less reliable - 'a_month' => ':count ndakitali', // less reliable - - 'day' => ':count wia', // less reliable - 'd' => ':count wia', // less reliable - 'a_day' => ':count wia', // less reliable - - 'hour' => ':count orasan', // less reliable - 'h' => ':count orasan', // less reliable - 'a_hour' => ':count orasan', // less reliable - - 'minute' => ':count orasan', // less reliable - 'min' => ':count orasan', // less reliable - 'a_minute' => ':count orasan', // less reliable - */ -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/kde.php b/vendor/nesbot/carbon/src/Carbon/Lang/kde.php deleted file mode 100644 index fbcc9f3..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/kde.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'meridiem' => ['Muhi', 'Chilo'], - 'weekdays' => ['Liduva lyapili', 'Liduva lyatatu', 'Liduva lyanchechi', 'Liduva lyannyano', 'Liduva lyannyano na linji', 'Liduva lyannyano na mavili', 'Liduva litandi'], - 'weekdays_short' => ['Ll2', 'Ll3', 'Ll4', 'Ll5', 'Ll6', 'Ll7', 'Ll1'], - 'weekdays_min' => ['Ll2', 'Ll3', 'Ll4', 'Ll5', 'Ll6', 'Ll7', 'Ll1'], - 'months' => ['Mwedi Ntandi', 'Mwedi wa Pili', 'Mwedi wa Tatu', 'Mwedi wa Nchechi', 'Mwedi wa Nnyano', 'Mwedi wa Nnyano na Umo', 'Mwedi wa Nnyano na Mivili', 'Mwedi wa Nnyano na Mitatu', 'Mwedi wa Nnyano na Nchechi', 'Mwedi wa Nnyano na Nnyano', 'Mwedi wa Nnyano na Nnyano na U', 'Mwedi wa Nnyano na Nnyano na M'], - 'months_short' => ['Jan', 'Feb', 'Mac', 'Apr', 'Mei', 'Jun', 'Jul', 'Ago', 'Sep', 'Okt', 'Nov', 'Des'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/kea.php b/vendor/nesbot/carbon/src/Carbon/Lang/kea.php deleted file mode 100644 index 8b6c21b..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/kea.php +++ /dev/null @@ -1,49 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'meridiem' => ['a', 'p'], - 'weekdays' => ['dumingu', 'sigunda-fera', 'tersa-fera', 'kuarta-fera', 'kinta-fera', 'sesta-fera', 'sabadu'], - 'weekdays_short' => ['dum', 'sig', 'ter', 'kua', 'kin', 'ses', 'sab'], - 'weekdays_min' => ['du', 'si', 'te', 'ku', 'ki', 'se', 'sa'], - 'weekdays_standalone' => ['dumingu', 'sigunda-fera', 'tersa-fera', 'kuarta-fera', 'kinta-fera', 'sesta-fera', 'sábadu'], - 'months' => ['Janeru', 'Febreru', 'Marsu', 'Abril', 'Maiu', 'Junhu', 'Julhu', 'Agostu', 'Setenbru', 'Otubru', 'Nuvenbru', 'Dizenbru'], - 'months_short' => ['Jan', 'Feb', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Otu', 'Nuv', 'Diz'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'D/M/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D [di] MMMM [di] YYYY HH:mm', - 'LLLL' => 'dddd, D [di] MMMM [di] YYYY HH:mm', - ], - - 'year' => ':count otunu', // less reliable - 'y' => ':count otunu', // less reliable - 'a_year' => ':count otunu', // less reliable - - 'week' => ':count día dumingu', // less reliable - 'w' => ':count día dumingu', // less reliable - 'a_week' => ':count día dumingu', // less reliable - - 'day' => ':count diâ', // less reliable - 'd' => ':count diâ', // less reliable - 'a_day' => ':count diâ', // less reliable - - 'minute' => ':count sugundu', // less reliable - 'min' => ':count sugundu', // less reliable - 'a_minute' => ':count sugundu', // less reliable - - 'second' => ':count dós', // less reliable - 's' => ':count dós', // less reliable - 'a_second' => ':count dós', // less reliable -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/khq.php b/vendor/nesbot/carbon/src/Carbon/Lang/khq.php deleted file mode 100644 index 7a834cf..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/khq.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'meridiem' => ['Adduha', 'Aluula'], - 'weekdays' => ['Alhadi', 'Atini', 'Atalata', 'Alarba', 'Alhamiisa', 'Aljuma', 'Assabdu'], - 'weekdays_short' => ['Alh', 'Ati', 'Ata', 'Ala', 'Alm', 'Alj', 'Ass'], - 'weekdays_min' => ['Alh', 'Ati', 'Ata', 'Ala', 'Alm', 'Alj', 'Ass'], - 'months' => ['Žanwiye', 'Feewiriye', 'Marsi', 'Awiril', 'Me', 'Žuweŋ', 'Žuyye', 'Ut', 'Sektanbur', 'Oktoobur', 'Noowanbur', 'Deesanbur'], - 'months_short' => ['Žan', 'Fee', 'Mar', 'Awi', 'Me', 'Žuw', 'Žuy', 'Ut', 'Sek', 'Okt', 'Noo', 'Dee'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'D/M/YYYY', - 'LL' => 'D MMM, YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ki.php b/vendor/nesbot/carbon/src/Carbon/Lang/ki.php deleted file mode 100644 index 868fd61..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ki.php +++ /dev/null @@ -1,56 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, - 'meridiem' => ['Kiroko', 'Hwaĩ-inĩ'], - 'weekdays' => ['Kiumia', 'Njumatatũ', 'Njumaine', 'Njumatana', 'Aramithi', 'Njumaa', 'Njumamothi'], - 'weekdays_short' => ['KMA', 'NTT', 'NMN', 'NMT', 'ART', 'NMA', 'NMM'], - 'weekdays_min' => ['KMA', 'NTT', 'NMN', 'NMT', 'ART', 'NMA', 'NMM'], - 'months' => ['Njenuarĩ', 'Mwere wa kerĩ', 'Mwere wa gatatũ', 'Mwere wa kana', 'Mwere wa gatano', 'Mwere wa gatandatũ', 'Mwere wa mũgwanja', 'Mwere wa kanana', 'Mwere wa kenda', 'Mwere wa ikũmi', 'Mwere wa ikũmi na ũmwe', 'Ndithemba'], - 'months_short' => ['JEN', 'WKR', 'WGT', 'WKN', 'WTN', 'WTD', 'WMJ', 'WNN', 'WKD', 'WIK', 'WMW', 'DIT'], - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], - - 'year' => ':count mĩaka', // less reliable - 'y' => ':count mĩaka', // less reliable - 'a_year' => ':count mĩaka', // less reliable - - 'month' => ':count mweri', // less reliable - 'm' => ':count mweri', // less reliable - 'a_month' => ':count mweri', // less reliable - - 'week' => ':count kiumia', // less reliable - 'w' => ':count kiumia', // less reliable - 'a_week' => ':count kiumia', // less reliable - - 'day' => ':count mũthenya', // less reliable - 'd' => ':count mũthenya', // less reliable - 'a_day' => ':count mũthenya', // less reliable - - 'hour' => ':count thaa', // less reliable - 'h' => ':count thaa', // less reliable - 'a_hour' => ':count thaa', // less reliable - - 'minute' => ':count mundu', // less reliable - 'min' => ':count mundu', // less reliable - 'a_minute' => ':count mundu', // less reliable - - 'second' => ':count igego', // less reliable - 's' => ':count igego', // less reliable - 'a_second' => ':count igego', // less reliable -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/kk.php b/vendor/nesbot/carbon/src/Carbon/Lang/kk.php deleted file mode 100644 index 23452dd..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/kk.php +++ /dev/null @@ -1,103 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Josh Soref - * - François B - * - Talat Uspanov - * - Нурлан Рахимжанов - * - Toleugazy Kali - */ -return [ - 'year' => ':count жыл', - 'a_year' => '{1}бір жыл|:count жыл', - 'y' => ':count ж.', - 'month' => ':count ай', - 'a_month' => '{1}бір ай|:count ай', - 'm' => ':count ай', - 'week' => ':count апта', - 'a_week' => '{1}бір апта', - 'w' => ':count ап.', - 'day' => ':count күн', - 'a_day' => '{1}бір күн|:count күн', - 'd' => ':count к.', - 'hour' => ':count сағат', - 'a_hour' => '{1}бір сағат|:count сағат', - 'h' => ':count са.', - 'minute' => ':count минут', - 'a_minute' => '{1}бір минут|:count минут', - 'min' => ':count м.', - 'second' => ':count секунд', - 'a_second' => '{1}бірнеше секунд|:count секунд', - 's' => ':count се.', - 'ago' => ':time бұрын', - 'from_now' => ':time ішінде', - 'after' => ':time кейін', - 'before' => ':time бұрын', - 'diff_now' => 'қазір', - 'diff_today' => 'Бүгін', - 'diff_today_regexp' => 'Бүгін(?:\\s+сағат)?', - 'diff_yesterday' => 'кеше', - 'diff_yesterday_regexp' => 'Кеше(?:\\s+сағат)?', - 'diff_tomorrow' => 'ертең', - 'diff_tomorrow_regexp' => 'Ертең(?:\\s+сағат)?', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD.MM.YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[Бүгін сағат] LT', - 'nextDay' => '[Ертең сағат] LT', - 'nextWeek' => 'dddd [сағат] LT', - 'lastDay' => '[Кеше сағат] LT', - 'lastWeek' => '[Өткен аптаның] dddd [сағат] LT', - 'sameElse' => 'L', - ], - 'ordinal' => static function ($number) { - static $suffixes = [ - 0 => '-ші', - 1 => '-ші', - 2 => '-ші', - 3 => '-ші', - 4 => '-ші', - 5 => '-ші', - 6 => '-шы', - 7 => '-ші', - 8 => '-ші', - 9 => '-шы', - 10 => '-шы', - 20 => '-шы', - 30 => '-шы', - 40 => '-шы', - 50 => '-ші', - 60 => '-шы', - 70 => '-ші', - 80 => '-ші', - 90 => '-шы', - 100 => '-ші', - ]; - - return $number.($suffixes[$number] ?? $suffixes[$number % 10] ?? $suffixes[$number >= 100 ? 100 : -1] ?? ''); - }, - 'months' => ['қаңтар', 'ақпан', 'наурыз', 'сәуір', 'мамыр', 'маусым', 'шілде', 'тамыз', 'қыркүйек', 'қазан', 'қараша', 'желтоқсан'], - 'months_short' => ['қаң', 'ақп', 'нау', 'сәу', 'мам', 'мау', 'шіл', 'там', 'қыр', 'қаз', 'қар', 'жел'], - 'weekdays' => ['жексенбі', 'дүйсенбі', 'сейсенбі', 'сәрсенбі', 'бейсенбі', 'жұма', 'сенбі'], - 'weekdays_short' => ['жек', 'дүй', 'сей', 'сәр', 'бей', 'жұм', 'сен'], - 'weekdays_min' => ['жк', 'дй', 'сй', 'ср', 'бй', 'жм', 'сн'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'list' => [', ', ' және '], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/kk_KZ.php b/vendor/nesbot/carbon/src/Carbon/Lang/kk_KZ.php deleted file mode 100644 index 7dc5ebc..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/kk_KZ.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/kk.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/kkj.php b/vendor/nesbot/carbon/src/Carbon/Lang/kkj.php deleted file mode 100644 index f4cdb67..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/kkj.php +++ /dev/null @@ -1,14 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/kl.php b/vendor/nesbot/carbon/src/Carbon/Lang/kl.php deleted file mode 100644 index 7329a07..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/kl.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/kl_GL.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/kl_GL.php b/vendor/nesbot/carbon/src/Carbon/Lang/kl_GL.php deleted file mode 100644 index 4fed720..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/kl_GL.php +++ /dev/null @@ -1,64 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Danish Standards Association bug-glibc-locales@gnu.org - * - John Eyðstein Johannesen (mashema) - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD.MM.YYYY', - 'LL' => 'D. MMMM YYYY', - 'LLL' => 'D. MMMM YYYY HH:mm', - 'LLLL' => 'dddd [d.] D. MMMM YYYY [kl.] HH:mm', - ], - 'months' => ['januaarip', 'februaarip', 'marsip', 'apriilip', 'maajip', 'juunip', 'juulip', 'aggustip', 'septembarip', 'oktobarip', 'novembarip', 'decembarip'], - 'months_short' => ['jan', 'feb', 'mar', 'apr', 'maj', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'dec'], - 'weekdays' => ['sapaat', 'ataasinngorneq', 'marlunngorneq', 'pingasunngorneq', 'sisamanngorneq', 'tallimanngorneq', 'arfininngorneq'], - 'weekdays_short' => ['sap', 'ata', 'mar', 'pin', 'sis', 'tal', 'arf'], - 'weekdays_min' => ['sap', 'ata', 'mar', 'pin', 'sis', 'tal', 'arf'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - - 'year' => '{1}ukioq :count|{0}:count ukiut|]1,Inf[ukiut :count', - 'a_year' => '{1}ukioq|{0}:count ukiut|]1,Inf[ukiut :count', - 'y' => '{1}:countyr|{0}:countyrs|]1,Inf[:countyrs', - - 'month' => '{1}qaammat :count|{0}:count qaammatit|]1,Inf[qaammatit :count', - 'a_month' => '{1}qaammat|{0}:count qaammatit|]1,Inf[qaammatit :count', - 'm' => '{1}:countmo|{0}:countmos|]1,Inf[:countmos', - - 'week' => '{1}:count sap. ak.|{0}:count sap. ak.|]1,Inf[:count sap. ak.', - 'a_week' => '{1}a sap. ak.|{0}:count sap. ak.|]1,Inf[:count sap. ak.', - 'w' => ':countw', - - 'day' => '{1}:count ulloq|{0}:count ullut|]1,Inf[:count ullut', - 'a_day' => '{1}a ulloq|{0}:count ullut|]1,Inf[:count ullut', - 'd' => ':countd', - - 'hour' => '{1}:count tiimi|{0}:count tiimit|]1,Inf[:count tiimit', - 'a_hour' => '{1}tiimi|{0}:count tiimit|]1,Inf[:count tiimit', - 'h' => ':counth', - - 'minute' => '{1}:count minutsi|{0}:count minutsit|]1,Inf[:count minutsit', - 'a_minute' => '{1}a minutsi|{0}:count minutsit|]1,Inf[:count minutsit', - 'min' => ':countm', - - 'second' => '{1}:count sikunti|{0}:count sikuntit|]1,Inf[:count sikuntit', - 'a_second' => '{1}sikunti|{0}:count sikuntit|]1,Inf[:count sikuntit', - 's' => ':counts', - - 'ago' => ':time matuma siorna', - -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/kln.php b/vendor/nesbot/carbon/src/Carbon/Lang/kln.php deleted file mode 100644 index de3f44f..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/kln.php +++ /dev/null @@ -1,32 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, - 'meridiem' => ['krn', 'koosk'], - 'weekdays' => ['Kotisap', 'Kotaai', 'Koaeng’', 'Kosomok', 'Koang’wan', 'Komuut', 'Kolo'], - 'weekdays_short' => ['Kts', 'Kot', 'Koo', 'Kos', 'Koa', 'Kom', 'Kol'], - 'weekdays_min' => ['Kts', 'Kot', 'Koo', 'Kos', 'Koa', 'Kom', 'Kol'], - 'months' => ['Mulgul', 'Ng’atyaato', 'Kiptaamo', 'Iwootkuut', 'Mamuut', 'Paagi', 'Ng’eiyeet', 'Rooptui', 'Bureet', 'Epeeso', 'Kipsuunde ne taai', 'Kipsuunde nebo aeng’'], - 'months_short' => ['Mul', 'Ngat', 'Taa', 'Iwo', 'Mam', 'Paa', 'Nge', 'Roo', 'Bur', 'Epe', 'Kpt', 'Kpa'], - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], - - 'year' => ':count maghatiat', // less reliable - 'y' => ':count maghatiat', // less reliable - 'a_year' => ':count maghatiat', // less reliable -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/km.php b/vendor/nesbot/carbon/src/Carbon/Lang/km.php deleted file mode 100644 index da790ac..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/km.php +++ /dev/null @@ -1,71 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Kruy Vanna - * - Sereysethy Touch - * - JD Isaacks - * - Sovichet Tep - */ -return [ - 'year' => '{1}មួយឆ្នាំ|]1,Inf[:count ឆ្នាំ', - 'y' => ':count ឆ្នាំ', - 'month' => '{1}មួយខែ|]1,Inf[:count ខែ', - 'm' => ':count ខែ', - 'week' => ':count សប្ដាហ៍', - 'w' => ':count សប្ដាហ៍', - 'day' => '{1}មួយថ្ងៃ|]1,Inf[:count ថ្ងៃ', - 'd' => ':count ថ្ងៃ', - 'hour' => '{1}មួយម៉ោង|]1,Inf[:count ម៉ោង', - 'h' => ':count ម៉ោង', - 'minute' => '{1}មួយនាទី|]1,Inf[:count នាទី', - 'min' => ':count នាទី', - 'second' => '{1}ប៉ុន្មានវិនាទី|]1,Inf[:count វិនាទី', - 's' => ':count វិនាទី', - 'ago' => ':timeមុន', - 'from_now' => ':timeទៀត', - 'after' => 'នៅ​ក្រោយ :time', - 'before' => 'នៅ​មុន :time', - 'diff_now' => 'ឥឡូវ', - 'diff_today' => 'ថ្ងៃនេះ', - 'diff_today_regexp' => 'ថ្ងៃនេះ(?:\\s+ម៉ោង)?', - 'diff_yesterday' => 'ម្សិលមិញ', - 'diff_yesterday_regexp' => 'ម្សិលមិញ(?:\\s+ម៉ោង)?', - 'diff_tomorrow' => 'ថ្ងៃ​ស្អែក', - 'diff_tomorrow_regexp' => 'ស្អែក(?:\\s+ម៉ោង)?', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[ថ្ងៃនេះ ម៉ោង] LT', - 'nextDay' => '[ស្អែក ម៉ោង] LT', - 'nextWeek' => 'dddd [ម៉ោង] LT', - 'lastDay' => '[ម្សិលមិញ ម៉ោង] LT', - 'lastWeek' => 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT', - 'sameElse' => 'L', - ], - 'ordinal' => 'ទី:number', - 'meridiem' => ['ព្រឹក', 'ល្ងាច'], - 'months' => ['មករា', 'កុម្ភៈ', 'មីនា', 'មេសា', 'ឧសភា', 'មិថុនា', 'កក្កដា', 'សីហា', 'កញ្ញា', 'តុលា', 'វិច្ឆិកា', 'ធ្នូ'], - 'months_short' => ['មករា', 'កុម្ភៈ', 'មីនា', 'មេសា', 'ឧសភា', 'មិថុនា', 'កក្កដា', 'សីហា', 'កញ្ញា', 'តុលា', 'វិច្ឆិកា', 'ធ្នូ'], - 'weekdays' => ['អាទិត្យ', 'ច័ន្ទ', 'អង្គារ', 'ពុធ', 'ព្រហស្បតិ៍', 'សុក្រ', 'សៅរ៍'], - 'weekdays_short' => ['អា', 'ច', 'អ', 'ព', 'ព្រ', 'សុ', 'ស'], - 'weekdays_min' => ['អា', 'ច', 'អ', 'ព', 'ព្រ', 'សុ', 'ស'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => [', ', 'និង '], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/km_KH.php b/vendor/nesbot/carbon/src/Carbon/Lang/km_KH.php deleted file mode 100644 index 92e5fdb..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/km_KH.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/km.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/kn.php b/vendor/nesbot/carbon/src/Carbon/Lang/kn.php deleted file mode 100644 index 350a487..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/kn.php +++ /dev/null @@ -1,75 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Josh Soref - * - MOHAN M U - * - François B - * - rajeevnaikte - */ -return [ - 'year' => '{1}ಒಂದು ವರ್ಷ|]1,Inf[:count ವರ್ಷ', - 'month' => '{1}ಒಂದು ತಿಂಗಳು|]1,Inf[:count ತಿಂಗಳು', - 'week' => '{1}ಒಂದು ವಾರ|]1,Inf[:count ವಾರಗಳು', - 'day' => '{1}ಒಂದು ದಿನ|]1,Inf[:count ದಿನ', - 'hour' => '{1}ಒಂದು ಗಂಟೆ|]1,Inf[:count ಗಂಟೆ', - 'minute' => '{1}ಒಂದು ನಿಮಿಷ|]1,Inf[:count ನಿಮಿಷ', - 'second' => '{1}ಕೆಲವು ಕ್ಷಣಗಳು|]1,Inf[:count ಸೆಕೆಂಡುಗಳು', - 'ago' => ':time ಹಿಂದೆ', - 'from_now' => ':time ನಂತರ', - 'diff_now' => 'ಈಗ', - 'diff_today' => 'ಇಂದು', - 'diff_yesterday' => 'ನಿನ್ನೆ', - 'diff_tomorrow' => 'ನಾಳೆ', - 'formats' => [ - 'LT' => 'A h:mm', - 'LTS' => 'A h:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY, A h:mm', - 'LLLL' => 'dddd, D MMMM YYYY, A h:mm', - ], - 'calendar' => [ - 'sameDay' => '[ಇಂದು] LT', - 'nextDay' => '[ನಾಳೆ] LT', - 'nextWeek' => 'dddd, LT', - 'lastDay' => '[ನಿನ್ನೆ] LT', - 'lastWeek' => '[ಕೊನೆಯ] dddd, LT', - 'sameElse' => 'L', - ], - 'ordinal' => ':numberನೇ', - 'meridiem' => static function ($hour) { - if ($hour < 4) { - return 'ರಾತ್ರಿ'; - } - if ($hour < 10) { - return 'ಬೆಳಿಗ್ಗೆ'; - } - if ($hour < 17) { - return 'ಮಧ್ಯಾಹ್ನ'; - } - if ($hour < 20) { - return 'ಸಂಜೆ'; - } - - return 'ರಾತ್ರಿ'; - }, - 'months' => ['ಜನವರಿ', 'ಫೆಬ್ರವರಿ', 'ಮಾರ್ಚ್', 'ಏಪ್ರಿಲ್', 'ಮೇ', 'ಜೂನ್', 'ಜುಲೈ', 'ಆಗಸ್ಟ್', 'ಸೆಪ್ಟೆಂಬರ್', 'ಅಕ್ಟೋಬರ್', 'ನವೆಂಬರ್', 'ಡಿಸೆಂಬರ್'], - 'months_short' => ['ಜನ', 'ಫೆಬ್ರ', 'ಮಾರ್ಚ್', 'ಏಪ್ರಿಲ್', 'ಮೇ', 'ಜೂನ್', 'ಜುಲೈ', 'ಆಗಸ್ಟ್', 'ಸೆಪ್ಟೆಂ', 'ಅಕ್ಟೋ', 'ನವೆಂ', 'ಡಿಸೆಂ'], - 'weekdays' => ['ಭಾನುವಾರ', 'ಸೋಮವಾರ', 'ಮಂಗಳವಾರ', 'ಬುಧವಾರ', 'ಗುರುವಾರ', 'ಶುಕ್ರವಾರ', 'ಶನಿವಾರ'], - 'weekdays_short' => ['ಭಾನು', 'ಸೋಮ', 'ಮಂಗಳ', 'ಬುಧ', 'ಗುರು', 'ಶುಕ್ರ', 'ಶನಿ'], - 'weekdays_min' => ['ಭಾ', 'ಸೋ', 'ಮಂ', 'ಬು', 'ಗು', 'ಶು', 'ಶ'], - 'list' => ', ', - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'weekend' => [0, 0], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/kn_IN.php b/vendor/nesbot/carbon/src/Carbon/Lang/kn_IN.php deleted file mode 100644 index 30e3d88..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/kn_IN.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/kn.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ko.php b/vendor/nesbot/carbon/src/Carbon/Lang/ko.php deleted file mode 100644 index bb290a7..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ko.php +++ /dev/null @@ -1,84 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Kunal Marwaha - * - FourwingsY - * - François B - * - Jason Katz-Brown - * - Seokjun Kim - * - Junho Kim - * - JD Isaacks - * - Juwon Kim - */ -return [ - 'year' => ':count년', - 'a_year' => '{1}일년|]1,Inf[:count년', - 'y' => ':count년', - 'month' => ':count개월', - 'a_month' => '{1}한달|]1,Inf[:count개월', - 'm' => ':count개월', - 'week' => ':count주', - 'a_week' => '{1}일주일|]1,Inf[:count 주', - 'w' => ':count주일', - 'day' => ':count일', - 'a_day' => '{1}하루|]1,Inf[:count일', - 'd' => ':count일', - 'hour' => ':count시간', - 'a_hour' => '{1}한시간|]1,Inf[:count시간', - 'h' => ':count시간', - 'minute' => ':count분', - 'a_minute' => '{1}일분|]1,Inf[:count분', - 'min' => ':count분', - 'second' => ':count초', - 'a_second' => '{1}몇초|]1,Inf[:count초', - 's' => ':count초', - 'ago' => ':time 전', - 'from_now' => ':time 후', - 'after' => ':time 후', - 'before' => ':time 전', - 'diff_now' => '지금', - 'diff_today' => '오늘', - 'diff_yesterday' => '어제', - 'diff_tomorrow' => '내일', - 'formats' => [ - 'LT' => 'A h:mm', - 'LTS' => 'A h:mm:ss', - 'L' => 'YYYY.MM.DD.', - 'LL' => 'YYYY년 MMMM D일', - 'LLL' => 'YYYY년 MMMM D일 A h:mm', - 'LLLL' => 'YYYY년 MMMM D일 dddd A h:mm', - ], - 'calendar' => [ - 'sameDay' => '오늘 LT', - 'nextDay' => '내일 LT', - 'nextWeek' => 'dddd LT', - 'lastDay' => '어제 LT', - 'lastWeek' => '지난주 dddd LT', - 'sameElse' => 'L', - ], - 'ordinal' => static function ($number, $period) { - return match ($period) { - 'd', 'D', 'DDD' => $number.'일', - 'M' => $number.'월', - 'w', 'W' => $number.'주', - default => $number, - }; - }, - 'meridiem' => ['오전', '오후'], - 'months' => ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월'], - 'months_short' => ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월'], - 'weekdays' => ['일요일', '월요일', '화요일', '수요일', '목요일', '금요일', '토요일'], - 'weekdays_short' => ['일', '월', '화', '수', '목', '금', '토'], - 'weekdays_min' => ['일', '월', '화', '수', '목', '금', '토'], - 'list' => ' ', -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ko_KP.php b/vendor/nesbot/carbon/src/Carbon/Lang/ko_KP.php deleted file mode 100644 index 4ba802b..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ko_KP.php +++ /dev/null @@ -1,14 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/ko.php', [ - 'first_day_of_week' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ko_KR.php b/vendor/nesbot/carbon/src/Carbon/Lang/ko_KR.php deleted file mode 100644 index 9d873a2..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ko_KR.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/ko.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/kok.php b/vendor/nesbot/carbon/src/Carbon/Lang/kok.php deleted file mode 100644 index 4adcddc..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/kok.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/kok_IN.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/kok_IN.php b/vendor/nesbot/carbon/src/Carbon/Lang/kok_IN.php deleted file mode 100644 index c6110d5..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/kok_IN.php +++ /dev/null @@ -1,56 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Red Hat, Pune bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'D-M-YY', - ], - 'months' => ['जानेवारी', 'फेब्रुवारी', 'मार्च', 'एप्रिल', 'मे', 'जून', 'जुलै', 'ओगस्ट', 'सेप्टेंबर', 'ओक्टोबर', 'नोव्हेंबर', 'डिसेंबर'], - 'months_short' => ['जानेवारी', 'फेब्रुवारी', 'मार्च', 'एप्रिल', 'मे', 'जून', 'जुलै', 'ओगस्ट', 'सेप्टेंबर', 'ओक्टोबर', 'नोव्हेंबर', 'डिसेंबर'], - 'weekdays' => ['आयतार', 'सोमार', 'मंगळवार', 'बुधवार', 'बेरेसतार', 'शुकरार', 'शेनवार'], - 'weekdays_short' => ['आयतार', 'सोमार', 'मंगळवार', 'बुधवार', 'बेरेसतार', 'शुकरार', 'शेनवार'], - 'weekdays_min' => ['आयतार', 'सोमार', 'मंगळवार', 'बुधवार', 'बेरेसतार', 'शुकरार', 'शेनवार'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['म.पू.', 'म.नं.'], - - 'year' => ':count वैशाकु', // less reliable - 'y' => ':count वैशाकु', // less reliable - 'a_year' => ':count वैशाकु', // less reliable - - 'week' => ':count आदित्यवार', // less reliable - 'w' => ':count आदित्यवार', // less reliable - 'a_week' => ':count आदित्यवार', // less reliable - - 'minute' => ':count नोंद', // less reliable - 'min' => ':count नोंद', // less reliable - 'a_minute' => ':count नोंद', // less reliable - - 'second' => ':count तेंको', // less reliable - 's' => ':count तेंको', // less reliable - 'a_second' => ':count तेंको', // less reliable - - 'month' => ':count मैनो', - 'm' => ':count मैनो', - 'a_month' => ':count मैनो', - - 'day' => ':count दिवसु', - 'd' => ':count दिवसु', - 'a_day' => ':count दिवसु', - - 'hour' => ':count घंते', - 'h' => ':count घंते', - 'a_hour' => ':count घंते', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ks.php b/vendor/nesbot/carbon/src/Carbon/Lang/ks.php deleted file mode 100644 index 9876079..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ks.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/ks_IN.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ks_IN.php b/vendor/nesbot/carbon/src/Carbon/Lang/ks_IN.php deleted file mode 100644 index 4ec598f..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ks_IN.php +++ /dev/null @@ -1,52 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Red Hat, Pune bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'M/D/YY', - ], - 'months' => ['جنؤری', 'فرؤری', 'مارٕچ', 'اپریل', 'میٔ', 'جوٗن', 'جوٗلایی', 'اگست', 'ستمبر', 'اکتوٗبر', 'نومبر', 'دسمبر'], - 'months_short' => ['جنؤری', 'فرؤری', 'مارٕچ', 'اپریل', 'میٔ', 'جوٗن', 'جوٗلایی', 'اگست', 'ستمبر', 'اکتوٗبر', 'نومبر', 'دسمبر'], - 'weekdays' => ['آتهوار', 'ژءندروار', 'بوءںوار', 'بودهوار', 'برىسوار', 'جمع', 'بٹوار'], - 'weekdays_short' => ['آتهوار', 'ژءنتروار', 'بوءںوار', 'بودهوار', 'برىسوار', 'جمع', 'بٹوار'], - 'weekdays_min' => ['آتهوار', 'ژءنتروار', 'بوءںوار', 'بودهوار', 'برىسوار', 'جمع', 'بٹوار'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['دوپھربرونھ', 'دوپھرپتھ'], - - 'year' => ':count آب', // less reliable - 'y' => ':count آب', // less reliable - 'a_year' => ':count آب', // less reliable - - 'month' => ':count रान्', // less reliable - 'm' => ':count रान्', // less reliable - 'a_month' => ':count रान्', // less reliable - - 'week' => ':count آتھٕوار', // less reliable - 'w' => ':count آتھٕوار', // less reliable - 'a_week' => ':count آتھٕوار', // less reliable - - 'hour' => ':count سۄن', // less reliable - 'h' => ':count سۄن', // less reliable - 'a_hour' => ':count سۄن', // less reliable - - 'minute' => ':count فَن', // less reliable - 'min' => ':count فَن', // less reliable - 'a_minute' => ':count فَن', // less reliable - - 'second' => ':count दोʼयुम', // less reliable - 's' => ':count दोʼयुम', // less reliable - 'a_second' => ':count दोʼयुम', // less reliable -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ks_IN@devanagari.php b/vendor/nesbot/carbon/src/Carbon/Lang/ks_IN@devanagari.php deleted file mode 100644 index 0708f3f..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ks_IN@devanagari.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - ks-gnome-trans-commits@lists.code.indlinux.net - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'M/D/YY', - ], - 'months' => ['जनवरी', 'फ़रवरी', 'मार्च', 'अप्रेल', 'मई', 'जून', 'जुलाई', 'अगस्त', 'सितम्बर', 'अक्टूबर', 'नवम्बर', 'दिसम्बर'], - 'months_short' => ['जनवरी', 'फ़रवरी', 'मार्च', 'अप्रेल', 'मई', 'जून', 'जुलाई', 'अगस्त', 'सितम्बर', 'अक्टूबर', 'नवम्बर', 'दिसम्बर'], - 'weekdays' => ['आथवार', 'चॅ़दुरवार', 'बोमवार', 'ब्वदवार', 'ब्रसवार', 'शोकुरवार', 'बटुवार'], - 'weekdays_short' => ['आथ ', 'चॅ़दुर', 'बोम', 'ब्वद', 'ब्रस', 'शोकुर', 'बटु'], - 'weekdays_min' => ['आथ ', 'चॅ़दुर', 'बोम', 'ब्वद', 'ब्रस', 'शोकुर', 'बटु'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['पूर्वाह्न', 'अपराह्न'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ksb.php b/vendor/nesbot/carbon/src/Carbon/Lang/ksb.php deleted file mode 100644 index aaa0061..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ksb.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'meridiem' => ['makeo', 'nyiaghuo'], - 'weekdays' => ['Jumaapii', 'Jumaatatu', 'Jumaane', 'Jumaatano', 'Alhamisi', 'Ijumaa', 'Jumaamosi'], - 'weekdays_short' => ['Jpi', 'Jtt', 'Jmn', 'Jtn', 'Alh', 'Iju', 'Jmo'], - 'weekdays_min' => ['Jpi', 'Jtt', 'Jmn', 'Jtn', 'Alh', 'Iju', 'Jmo'], - 'months' => ['Januali', 'Febluali', 'Machi', 'Aplili', 'Mei', 'Juni', 'Julai', 'Agosti', 'Septemba', 'Oktoba', 'Novemba', 'Desemba'], - 'months_short' => ['Jan', 'Feb', 'Mac', 'Apr', 'Mei', 'Jun', 'Jul', 'Ago', 'Sep', 'Okt', 'Nov', 'Des'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ksf.php b/vendor/nesbot/carbon/src/Carbon/Lang/ksf.php deleted file mode 100644 index 84a5967..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ksf.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'meridiem' => ['sárúwá', 'cɛɛ́nko'], - 'weekdays' => ['sɔ́ndǝ', 'lǝndí', 'maadí', 'mɛkrɛdí', 'jǝǝdí', 'júmbá', 'samdí'], - 'weekdays_short' => ['sɔ́n', 'lǝn', 'maa', 'mɛk', 'jǝǝ', 'júm', 'sam'], - 'weekdays_min' => ['sɔ́n', 'lǝn', 'maa', 'mɛk', 'jǝǝ', 'júm', 'sam'], - 'months' => ['ŋwíí a ntɔ́ntɔ', 'ŋwíí akǝ bɛ́ɛ', 'ŋwíí akǝ ráá', 'ŋwíí akǝ nin', 'ŋwíí akǝ táan', 'ŋwíí akǝ táafɔk', 'ŋwíí akǝ táabɛɛ', 'ŋwíí akǝ táaraa', 'ŋwíí akǝ táanin', 'ŋwíí akǝ ntɛk', 'ŋwíí akǝ ntɛk di bɔ́k', 'ŋwíí akǝ ntɛk di bɛ́ɛ'], - 'months_short' => ['ŋ1', 'ŋ2', 'ŋ3', 'ŋ4', 'ŋ5', 'ŋ6', 'ŋ7', 'ŋ8', 'ŋ9', 'ŋ10', 'ŋ11', 'ŋ12'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'D/M/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ksh.php b/vendor/nesbot/carbon/src/Carbon/Lang/ksh.php deleted file mode 100644 index 95457e2..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ksh.php +++ /dev/null @@ -1,57 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'meridiem' => ['v.M.', 'n.M.'], - 'weekdays' => ['Sunndaach', 'Mohndaach', 'Dinnsdaach', 'Metwoch', 'Dunnersdaach', 'Friidaach', 'Samsdaach'], - 'weekdays_short' => ['Su.', 'Mo.', 'Di.', 'Me.', 'Du.', 'Fr.', 'Sa.'], - 'weekdays_min' => ['Su', 'Mo', 'Di', 'Me', 'Du', 'Fr', 'Sa'], - 'months' => ['Jannewa', 'Fäbrowa', 'Määz', 'Aprell', 'Mai', 'Juuni', 'Juuli', 'Oujoß', 'Septämber', 'Oktohber', 'Novämber', 'Dezämber'], - 'months_short' => ['Jan', 'Fäb', 'Mäz', 'Apr', 'Mai', 'Jun', 'Jul', 'Ouj', 'Säp', 'Okt', 'Nov', 'Dez'], - 'months_short_standalone' => ['Jan.', 'Fäb.', 'Mäz.', 'Apr.', 'Mai', 'Jun.', 'Jul.', 'Ouj.', 'Säp.', 'Okt.', 'Nov.', 'Dez.'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'D. M. YYYY', - 'LL' => 'D. MMM. YYYY', - 'LLL' => 'D. MMMM YYYY HH:mm', - 'LLLL' => 'dddd, [dä] D. MMMM YYYY HH:mm', - ], - - 'year' => ':count Johr', - 'y' => ':count Johr', - 'a_year' => ':count Johr', - - 'month' => ':count Moohnd', - 'm' => ':count Moohnd', - 'a_month' => ':count Moohnd', - - 'week' => ':count woch', - 'w' => ':count woch', - 'a_week' => ':count woch', - - 'day' => ':count Daach', - 'd' => ':count Daach', - 'a_day' => ':count Daach', - - 'hour' => ':count Uhr', - 'h' => ':count Uhr', - 'a_hour' => ':count Uhr', - - 'minute' => ':count Menutt', - 'min' => ':count Menutt', - 'a_minute' => ':count Menutt', - - 'second' => ':count Sekůndt', - 's' => ':count Sekůndt', - 'a_second' => ':count Sekůndt', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ku.php b/vendor/nesbot/carbon/src/Carbon/Lang/ku.php deleted file mode 100644 index 074b076..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ku.php +++ /dev/null @@ -1,57 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Unicode, Inc. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'ago' => 'berî :time', - 'from_now' => 'di :time de', - 'after' => ':time piştî', - 'before' => ':time berê', - 'year' => ':count sal', - 'a_year' => ':count sal', - 'y' => ':count sal', - 'year_ago' => ':count salê|:count salan', - 'y_ago' => ':count salê|:count salan', - 'year_from_now' => 'salekê|:count salan', - 'y_from_now' => 'salekê|:count salan', - 'month' => ':count meh', - 'a_month' => ':count meh', - 'm' => ':count meh', - 'week' => ':count hefte', - 'a_week' => ':count hefte', - 'w' => ':count hefte', - 'day' => ':count roj', - 'a_day' => ':count roj', - 'd' => ':count roj', - 'hour' => ':count saet', - 'a_hour' => ':count saet', - 'h' => ':count saet', - 'minute' => ':count deqîqe', - 'a_minute' => ':count deqîqe', - 'min' => ':count deqîqe', - 'second' => ':count saniye', - 'a_second' => ':count saniye', - 's' => ':count saniye', - 'months' => ['rêbendanê', 'reşemiyê', 'adarê', 'avrêlê', 'gulanê', 'pûşperê', 'tîrmehê', 'gelawêjê', 'rezberê', 'kewçêrê', 'sermawezê', 'berfanbarê'], - 'months_standalone' => ['rêbendan', 'reşemî', 'adar', 'avrêl', 'gulan', 'pûşper', 'tîrmeh', 'gelawêj', 'rezber', 'kewçêr', 'sermawez', 'berfanbar'], - 'months_short' => ['rêb', 'reş', 'ada', 'avr', 'gul', 'pûş', 'tîr', 'gel', 'rez', 'kew', 'ser', 'ber'], - 'weekdays' => ['yekşem', 'duşem', 'sêşem', 'çarşem', 'pêncşem', 'în', 'şemî'], - 'weekdays_short' => ['yş', 'dş', 'sş', 'çş', 'pş', 'în', 'ş'], - 'weekdays_min' => ['Y', 'D', 'S', 'Ç', 'P', 'Î', 'Ş'], - 'list' => [', ', ' û '], - 'ordinal' => ':number', - 'first_day_of_week' => 6, - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ku_TR.php b/vendor/nesbot/carbon/src/Carbon/Lang/ku_TR.php deleted file mode 100644 index 4243a82..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ku_TR.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/ku.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/kw.php b/vendor/nesbot/carbon/src/Carbon/Lang/kw.php deleted file mode 100644 index 26e242e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/kw.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/kw_GB.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/kw_GB.php b/vendor/nesbot/carbon/src/Carbon/Lang/kw_GB.php deleted file mode 100644 index 00bf52b..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/kw_GB.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Alastair McKinstry bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YY', - ], - 'months' => ['mis Genver', 'mis Hwevrer', 'mis Meurth', 'mis Ebrel', 'mis Me', 'mis Metheven', 'mis Gortheren', 'mis Est', 'mis Gwynngala', 'mis Hedra', 'mis Du', 'mis Kevardhu'], - 'months_short' => ['Gen', 'Hwe', 'Meu', 'Ebr', 'Me', 'Met', 'Gor', 'Est', 'Gwn', 'Hed', 'Du', 'Kev'], - 'weekdays' => ['De Sul', 'De Lun', 'De Merth', 'De Merher', 'De Yow', 'De Gwener', 'De Sadorn'], - 'weekdays_short' => ['Sul', 'Lun', 'Mth', 'Mhr', 'Yow', 'Gwe', 'Sad'], - 'weekdays_min' => ['Sul', 'Lun', 'Mth', 'Mhr', 'Yow', 'Gwe', 'Sad'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - - 'year' => ':count bledhen', - 'y' => ':count bledhen', - 'a_year' => ':count bledhen', - - 'month' => ':count mis', - 'm' => ':count mis', - 'a_month' => ':count mis', - - 'week' => ':count seythen', - 'w' => ':count seythen', - 'a_week' => ':count seythen', - - 'day' => ':count dydh', - 'd' => ':count dydh', - 'a_day' => ':count dydh', - - 'hour' => ':count eur', - 'h' => ':count eur', - 'a_hour' => ':count eur', - - 'minute' => ':count mynysen', - 'min' => ':count mynysen', - 'a_minute' => ':count mynysen', - - 'second' => ':count pryjwyth', - 's' => ':count pryjwyth', - 'a_second' => ':count pryjwyth', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ky.php b/vendor/nesbot/carbon/src/Carbon/Lang/ky.php deleted file mode 100644 index 2cb8503..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ky.php +++ /dev/null @@ -1,106 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - acutexyz - * - Josh Soref - * - François B - * - Chyngyz Arystan uulu - * - Chyngyz - * - acutexyz - * - Josh Soref - * - François B - * - Chyngyz Arystan uulu - */ -return [ - 'year' => ':count жыл', - 'a_year' => '{1}бир жыл|:count жыл', - 'y' => ':count жыл', - 'month' => ':count ай', - 'a_month' => '{1}бир ай|:count ай', - 'm' => ':count ай', - 'week' => ':count апта', - 'a_week' => '{1}бир апта|:count апта', - 'w' => ':count апт.', - 'day' => ':count күн', - 'a_day' => '{1}бир күн|:count күн', - 'd' => ':count күн', - 'hour' => ':count саат', - 'a_hour' => '{1}бир саат|:count саат', - 'h' => ':count саат.', - 'minute' => ':count мүнөт', - 'a_minute' => '{1}бир мүнөт|:count мүнөт', - 'min' => ':count мүн.', - 'second' => ':count секунд', - 'a_second' => '{1}бирнече секунд|:count секунд', - 's' => ':count сек.', - 'ago' => ':time мурун', - 'from_now' => ':time ичинде', - 'diff_now' => 'азыр', - 'diff_today' => 'Бүгүн', - 'diff_today_regexp' => 'Бүгүн(?:\\s+саат)?', - 'diff_yesterday' => 'кечээ', - 'diff_yesterday_regexp' => 'Кече(?:\\s+саат)?', - 'diff_tomorrow' => 'эртең', - 'diff_tomorrow_regexp' => 'Эртең(?:\\s+саат)?', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD.MM.YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[Бүгүн саат] LT', - 'nextDay' => '[Эртең саат] LT', - 'nextWeek' => 'dddd [саат] LT', - 'lastDay' => '[Кече саат] LT', - 'lastWeek' => '[Өткен аптанын] dddd [күнү] [саат] LT', - 'sameElse' => 'L', - ], - 'ordinal' => static function ($number) { - static $suffixes = [ - 0 => '-чү', - 1 => '-чи', - 2 => '-чи', - 3 => '-чү', - 4 => '-чү', - 5 => '-чи', - 6 => '-чы', - 7 => '-чи', - 8 => '-чи', - 9 => '-чу', - 10 => '-чу', - 20 => '-чы', - 30 => '-чу', - 40 => '-чы', - 50 => '-чү', - 60 => '-чы', - 70 => '-чи', - 80 => '-чи', - 90 => '-чу', - 100 => '-чү', - ]; - - return $number.($suffixes[$number] ?? $suffixes[$number % 10] ?? $suffixes[$number >= 100 ? 100 : -1] ?? ''); - }, - 'months' => ['январь', 'февраль', 'март', 'апрель', 'май', 'июнь', 'июль', 'август', 'сентябрь', 'октябрь', 'ноябрь', 'декабрь'], - 'months_short' => ['янв', 'фев', 'март', 'апр', 'май', 'июнь', 'июль', 'авг', 'сен', 'окт', 'ноя', 'дек'], - 'weekdays' => ['Жекшемби', 'Дүйшөмбү', 'Шейшемби', 'Шаршемби', 'Бейшемби', 'Жума', 'Ишемби'], - 'weekdays_short' => ['Жек', 'Дүй', 'Шей', 'Шар', 'Бей', 'Жум', 'Ише'], - 'weekdays_min' => ['Жк', 'Дй', 'Шй', 'Шр', 'Бй', 'Жм', 'Иш'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'list' => ' ', - 'meridiem' => ['таңкы', 'түштөн кийинки'], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ky_KG.php b/vendor/nesbot/carbon/src/Carbon/Lang/ky_KG.php deleted file mode 100644 index 9923a31..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ky_KG.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/ky.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/lag.php b/vendor/nesbot/carbon/src/Carbon/Lang/lag.php deleted file mode 100644 index f3f57f6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/lag.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'meridiem' => ['TOO', 'MUU'], - 'weekdays' => ['Jumapíiri', 'Jumatátu', 'Jumaíne', 'Jumatáano', 'Alamíisi', 'Ijumáa', 'Jumamóosi'], - 'weekdays_short' => ['Píili', 'Táatu', 'Íne', 'Táano', 'Alh', 'Ijm', 'Móosi'], - 'weekdays_min' => ['Píili', 'Táatu', 'Íne', 'Táano', 'Alh', 'Ijm', 'Móosi'], - 'months' => ['Kʉfúngatɨ', 'Kʉnaanɨ', 'Kʉkeenda', 'Kwiikumi', 'Kwiinyambála', 'Kwiidwaata', 'Kʉmʉʉnchɨ', 'Kʉvɨɨrɨ', 'Kʉsaatʉ', 'Kwiinyi', 'Kʉsaano', 'Kʉsasatʉ'], - 'months_short' => ['Fúngatɨ', 'Naanɨ', 'Keenda', 'Ikúmi', 'Inyambala', 'Idwaata', 'Mʉʉnchɨ', 'Vɨɨrɨ', 'Saatʉ', 'Inyi', 'Saano', 'Sasatʉ'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/lb.php b/vendor/nesbot/carbon/src/Carbon/Lang/lb.php deleted file mode 100644 index 72267b7..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/lb.php +++ /dev/null @@ -1,85 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Philippe Vaucher - * - Tsutomu Kuroda - * - dan-nl - * - Simon Lelorrain (slelorrain) - */ - -use Carbon\CarbonInterface; - -return [ - 'year' => ':count Joer', - 'y' => ':countJ', - 'month' => ':count Mount|:count Méint', - 'm' => ':countMo', - 'week' => ':count Woch|:count Wochen', - 'w' => ':countWo|:countWo', - 'day' => ':count Dag|:count Deeg', - 'd' => ':countD', - 'hour' => ':count Stonn|:count Stonnen', - 'h' => ':countSto', - 'minute' => ':count Minutt|:count Minutten', - 'min' => ':countM', - 'second' => ':count Sekonn|:count Sekonnen', - 's' => ':countSek', - - 'ago' => 'virun :time', - 'from_now' => 'an :time', - 'before' => ':time virdrun', - 'after' => ':time duerno', - - 'diff_today' => 'Haut', - 'diff_yesterday' => 'Gëschter', - 'diff_yesterday_regexp' => 'Gëschter(?:\\s+um)?', - 'diff_tomorrow' => 'Muer', - 'diff_tomorrow_regexp' => 'Muer(?:\\s+um)?', - 'diff_today_regexp' => 'Haut(?:\\s+um)?', - 'formats' => [ - 'LT' => 'H:mm [Auer]', - 'LTS' => 'H:mm:ss [Auer]', - 'L' => 'DD.MM.YYYY', - 'LL' => 'D. MMMM YYYY', - 'LLL' => 'D. MMMM YYYY H:mm [Auer]', - 'LLLL' => 'dddd, D. MMMM YYYY H:mm [Auer]', - ], - - 'calendar' => [ - 'sameDay' => '[Haut um] LT', - 'nextDay' => '[Muer um] LT', - 'nextWeek' => 'dddd [um] LT', - 'lastDay' => '[Gëschter um] LT', - 'lastWeek' => static function (CarbonInterface $date) { - // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule - return match ($date->dayOfWeek) { - 2, 4 => '[Leschten] dddd [um] LT', - default => '[Leschte] dddd [um] LT', - }; - }, - 'sameElse' => 'L', - ], - - 'months' => ['Januar', 'Februar', 'Mäerz', 'Abrëll', 'Mee', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'], - 'months_short' => ['Jan.', 'Febr.', 'Mrz.', 'Abr.', 'Mee', 'Jun.', 'Jul.', 'Aug.', 'Sept.', 'Okt.', 'Nov.', 'Dez.'], - 'weekdays' => ['Sonndeg', 'Méindeg', 'Dënschdeg', 'Mëttwoch', 'Donneschdeg', 'Freideg', 'Samschdeg'], - 'weekdays_short' => ['So.', 'Mé.', 'Dë.', 'Më.', 'Do.', 'Fr.', 'Sa.'], - 'weekdays_min' => ['So', 'Mé', 'Dë', 'Më', 'Do', 'Fr', 'Sa'], - 'ordinal' => ':number.', - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => [', ', ' an '], - 'meridiem' => ['moies', 'mëttes'], - 'weekdays_short_standalone' => ['Son', 'Méi', 'Dën', 'Mët', 'Don', 'Fre', 'Sam'], - 'months_short_standalone' => ['Jan', 'Feb', 'Mäe', 'Abr', 'Mee', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/lb_LU.php b/vendor/nesbot/carbon/src/Carbon/Lang/lb_LU.php deleted file mode 100644 index 414bd4d..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/lb_LU.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/lb.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/lg.php b/vendor/nesbot/carbon/src/Carbon/Lang/lg.php deleted file mode 100644 index 48bc68b..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/lg.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/lg_UG.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/lg_UG.php b/vendor/nesbot/carbon/src/Carbon/Lang/lg_UG.php deleted file mode 100644 index aa02214..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/lg_UG.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Akademe ya Luganda Kizito Birabwa kompyuta@kizito.uklinux.net - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YY', - ], - 'months' => ['Janwaliyo', 'Febwaliyo', 'Marisi', 'Apuli', 'Maayi', 'Juuni', 'Julaayi', 'Agusito', 'Sebuttemba', 'Okitobba', 'Novemba', 'Desemba'], - 'months_short' => ['Jan', 'Feb', 'Mar', 'Apu', 'Maa', 'Juu', 'Jul', 'Agu', 'Seb', 'Oki', 'Nov', 'Des'], - 'weekdays' => ['Sabiiti', 'Balaza', 'Lwakubiri', 'Lwakusatu', 'Lwakuna', 'Lwakutaano', 'Lwamukaaga'], - 'weekdays_short' => ['Sab', 'Bal', 'Lw2', 'Lw3', 'Lw4', 'Lw5', 'Lw6'], - 'weekdays_min' => ['Sab', 'Bal', 'Lw2', 'Lw3', 'Lw4', 'Lw5', 'Lw6'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - - 'month' => ':count njuba', // less reliable - 'm' => ':count njuba', // less reliable - 'a_month' => ':count njuba', // less reliable - - 'year' => ':count mwaaka', - 'y' => ':count mwaaka', - 'a_year' => ':count mwaaka', - - 'week' => ':count sabbiiti', - 'w' => ':count sabbiiti', - 'a_week' => ':count sabbiiti', - - 'day' => ':count lunaku', - 'd' => ':count lunaku', - 'a_day' => ':count lunaku', - - 'hour' => 'saawa :count', - 'h' => 'saawa :count', - 'a_hour' => 'saawa :count', - - 'minute' => 'ddakiika :count', - 'min' => 'ddakiika :count', - 'a_minute' => 'ddakiika :count', - - 'second' => ':count kyʼokubiri', - 's' => ':count kyʼokubiri', - 'a_second' => ':count kyʼokubiri', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/li.php b/vendor/nesbot/carbon/src/Carbon/Lang/li.php deleted file mode 100644 index 86c3009..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/li.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/li_NL.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/li_NL.php b/vendor/nesbot/carbon/src/Carbon/Lang/li_NL.php deleted file mode 100644 index 6c5feb7..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/li_NL.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - information from Kenneth Christiansen Kenneth Christiansen, Pablo Saratxaga kenneth@gnu.org, pablo@mandriva.com - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD.MM.YYYY', - ], - 'months' => ['jannewarie', 'fibberwarie', 'miert', 'eprèl', 'meij', 'junie', 'julie', 'augustus', 'september', 'oktober', 'november', 'desember'], - 'months_short' => ['jan', 'fib', 'mie', 'epr', 'mei', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'des'], - 'weekdays' => ['zóndig', 'maondig', 'daensdig', 'goonsdig', 'dónderdig', 'vriedig', 'zaoterdig'], - 'weekdays_short' => ['zón', 'mao', 'dae', 'goo', 'dón', 'vri', 'zao'], - 'weekdays_min' => ['zón', 'mao', 'dae', 'goo', 'dón', 'vri', 'zao'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - - 'minute' => ':count momênt', // less reliable - 'min' => ':count momênt', // less reliable - 'a_minute' => ':count momênt', // less reliable - - 'year' => ':count jaor', - 'y' => ':count jaor', - 'a_year' => ':count jaor', - - 'month' => ':count maond', - 'm' => ':count maond', - 'a_month' => ':count maond', - - 'week' => ':count waek', - 'w' => ':count waek', - 'a_week' => ':count waek', - - 'day' => ':count daag', - 'd' => ':count daag', - 'a_day' => ':count daag', - - 'hour' => ':count oer', - 'h' => ':count oer', - 'a_hour' => ':count oer', - - 'second' => ':count Secónd', - 's' => ':count Secónd', - 'a_second' => ':count Secónd', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/lij.php b/vendor/nesbot/carbon/src/Carbon/Lang/lij.php deleted file mode 100644 index 45732b5..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/lij.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/lij_IT.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/lij_IT.php b/vendor/nesbot/carbon/src/Carbon/Lang/lij_IT.php deleted file mode 100644 index f8726fd..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/lij_IT.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Gastaldi alessio.gastaldi@libero.it - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YYYY', - ], - 'months' => ['zenâ', 'fevrâ', 'marzo', 'avrî', 'mazzo', 'zûgno', 'lûggio', 'agosto', 'settembre', 'ottobre', 'novembre', 'dixembre'], - 'months_short' => ['zen', 'fev', 'mar', 'arv', 'maz', 'zûg', 'lûg', 'ago', 'set', 'ött', 'nov', 'dix'], - 'weekdays' => ['domenega', 'lûnedì', 'martedì', 'mercUrdì', 'zêggia', 'venardì', 'sabbo'], - 'weekdays_short' => ['dom', 'lûn', 'mar', 'mer', 'zêu', 'ven', 'sab'], - 'weekdays_min' => ['dom', 'lûn', 'mar', 'mer', 'zêu', 'ven', 'sab'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - - 'year' => ':count etæ', // less reliable - 'y' => ':count etæ', // less reliable - 'a_year' => ':count etæ', // less reliable - - 'month' => ':count meize', - 'm' => ':count meize', - 'a_month' => ':count meize', - - 'week' => ':count settemannha', - 'w' => ':count settemannha', - 'a_week' => ':count settemannha', - - 'day' => ':count giorno', - 'd' => ':count giorno', - 'a_day' => ':count giorno', - - 'hour' => ':count reléuio', // less reliable - 'h' => ':count reléuio', // less reliable - 'a_hour' => ':count reléuio', // less reliable - - 'minute' => ':count menûo', - 'min' => ':count menûo', - 'a_minute' => ':count menûo', - - 'second' => ':count segondo', - 's' => ':count segondo', - 'a_second' => ':count segondo', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/lkt.php b/vendor/nesbot/carbon/src/Carbon/Lang/lkt.php deleted file mode 100644 index a5485fb..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/lkt.php +++ /dev/null @@ -1,42 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, - - 'month' => ':count haŋwí', // less reliable - 'm' => ':count haŋwí', // less reliable - 'a_month' => ':count haŋwí', // less reliable - - 'week' => ':count šakówiŋ', // less reliable - 'w' => ':count šakówiŋ', // less reliable - 'a_week' => ':count šakówiŋ', // less reliable - - 'hour' => ':count maza škaŋškaŋ', // less reliable - 'h' => ':count maza škaŋškaŋ', // less reliable - 'a_hour' => ':count maza škaŋškaŋ', // less reliable - - 'minute' => ':count číkʼala', // less reliable - 'min' => ':count číkʼala', // less reliable - 'a_minute' => ':count číkʼala', // less reliable - - 'year' => ':count waníyetu', - 'y' => ':count waníyetu', - 'a_year' => ':count waníyetu', - - 'day' => ':count aŋpétu', - 'd' => ':count aŋpétu', - 'a_day' => ':count aŋpétu', - - 'second' => ':count icinuŋpa', - 's' => ':count icinuŋpa', - 'a_second' => ':count icinuŋpa', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ln.php b/vendor/nesbot/carbon/src/Carbon/Lang/ln.php deleted file mode 100644 index 9d5c35d..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ln.php +++ /dev/null @@ -1,60 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Ubuntu René Manassé GALEKWA renemanasse@gmail.com - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'D/M/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], - 'months' => ['sánzá ya yambo', 'sánzá ya míbalé', 'sánzá ya mísáto', 'sánzá ya mínei', 'sánzá ya mítáno', 'sánzá ya motóbá', 'sánzá ya nsambo', 'sánzá ya mwambe', 'sánzá ya libwa', 'sánzá ya zómi', 'sánzá ya zómi na mɔ̌kɔ́', 'sánzá ya zómi na míbalé'], - 'months_short' => ['yan', 'fbl', 'msi', 'apl', 'mai', 'yun', 'yul', 'agt', 'stb', 'ɔtb', 'nvb', 'dsb'], - 'weekdays' => ['Lomíngo', 'Mosálá mɔ̌kɔ́', 'Misálá míbalé', 'Misálá mísáto', 'Misálá mínei', 'Misálá mítáno', 'Mpɔ́sɔ'], - 'weekdays_short' => ['m1.', 'm2.', 'm3.', 'm4.', 'm5.', 'm6.', 'm7.'], - 'weekdays_min' => ['m1.', 'm2.', 'm3.', 'm4.', 'm5.', 'm6.', 'm7.'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - - 'year' => 'mbula :count', - 'y' => 'mbula :count', - 'a_year' => 'mbula :count', - - 'month' => 'sánzá :count', - 'm' => 'sánzá :count', - 'a_month' => 'sánzá :count', - - 'week' => 'mpɔ́sɔ :count', - 'w' => 'mpɔ́sɔ :count', - 'a_week' => 'mpɔ́sɔ :count', - - 'day' => 'mokɔlɔ :count', - 'd' => 'mokɔlɔ :count', - 'a_day' => 'mokɔlɔ :count', - - 'hour' => 'ngonga :count', - 'h' => 'ngonga :count', - 'a_hour' => 'ngonga :count', - - 'minute' => 'miniti :count', - 'min' => 'miniti :count', - 'a_minute' => 'miniti :count', - - 'second' => 'segɔnde :count', - 's' => 'segɔnde :count', - 'a_second' => 'segɔnde :count', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ln_AO.php b/vendor/nesbot/carbon/src/Carbon/Lang/ln_AO.php deleted file mode 100644 index 7fdb7f1..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ln_AO.php +++ /dev/null @@ -1,17 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/ln.php', [ - 'weekdays' => ['eyenga', 'mokɔlɔ mwa yambo', 'mokɔlɔ mwa míbalé', 'mokɔlɔ mwa mísáto', 'mokɔlɔ ya mínéi', 'mokɔlɔ ya mítáno', 'mpɔ́sɔ'], - 'weekdays_short' => ['eye', 'ybo', 'mbl', 'mst', 'min', 'mtn', 'mps'], - 'weekdays_min' => ['eye', 'ybo', 'mbl', 'mst', 'min', 'mtn', 'mps'], - 'meridiem' => ['ntɔ́ngɔ́', 'mpókwa'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ln_CD.php b/vendor/nesbot/carbon/src/Carbon/Lang/ln_CD.php deleted file mode 100644 index 13635fc..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ln_CD.php +++ /dev/null @@ -1,16 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Ubuntu René Manassé GALEKWA renemanasse@gmail.com - */ -return require __DIR__.'/ln.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ln_CF.php b/vendor/nesbot/carbon/src/Carbon/Lang/ln_CF.php deleted file mode 100644 index 7fdb7f1..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ln_CF.php +++ /dev/null @@ -1,17 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/ln.php', [ - 'weekdays' => ['eyenga', 'mokɔlɔ mwa yambo', 'mokɔlɔ mwa míbalé', 'mokɔlɔ mwa mísáto', 'mokɔlɔ ya mínéi', 'mokɔlɔ ya mítáno', 'mpɔ́sɔ'], - 'weekdays_short' => ['eye', 'ybo', 'mbl', 'mst', 'min', 'mtn', 'mps'], - 'weekdays_min' => ['eye', 'ybo', 'mbl', 'mst', 'min', 'mtn', 'mps'], - 'meridiem' => ['ntɔ́ngɔ́', 'mpókwa'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ln_CG.php b/vendor/nesbot/carbon/src/Carbon/Lang/ln_CG.php deleted file mode 100644 index 7fdb7f1..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ln_CG.php +++ /dev/null @@ -1,17 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/ln.php', [ - 'weekdays' => ['eyenga', 'mokɔlɔ mwa yambo', 'mokɔlɔ mwa míbalé', 'mokɔlɔ mwa mísáto', 'mokɔlɔ ya mínéi', 'mokɔlɔ ya mítáno', 'mpɔ́sɔ'], - 'weekdays_short' => ['eye', 'ybo', 'mbl', 'mst', 'min', 'mtn', 'mps'], - 'weekdays_min' => ['eye', 'ybo', 'mbl', 'mst', 'min', 'mtn', 'mps'], - 'meridiem' => ['ntɔ́ngɔ́', 'mpókwa'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/lo.php b/vendor/nesbot/carbon/src/Carbon/Lang/lo.php deleted file mode 100644 index 48715f5..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/lo.php +++ /dev/null @@ -1,62 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - François B - * - ryanhart2 - */ -return [ - 'year' => ':count ປີ', - 'y' => ':count ປີ', - 'month' => ':count ເດືອນ', - 'm' => ':count ດ. ', - 'week' => ':count ອາທິດ', - 'w' => ':count ອທ. ', - 'day' => ':count ມື້', - 'd' => ':count ມື້', - 'hour' => ':count ຊົ່ວໂມງ', - 'h' => ':count ຊມ. ', - 'minute' => ':count ນາທີ', - 'min' => ':count ນທ. ', - 'second' => '{1}ບໍ່ເທົ່າໃດວິນາທີ|]1,Inf[:count ວິນາທີ', - 's' => ':count ວິ. ', - 'ago' => ':timeຜ່ານມາ', - 'from_now' => 'ອີກ :time', - 'diff_now' => 'ຕອນນີ້', - 'diff_today' => 'ມື້ນີ້ເວລາ', - 'diff_yesterday' => 'ມື້ວານນີ້ເວລາ', - 'diff_tomorrow' => 'ມື້ອື່ນເວລາ', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'ວັນdddd D MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[ມື້ນີ້ເວລາ] LT', - 'nextDay' => '[ມື້ອື່ນເວລາ] LT', - 'nextWeek' => '[ວັນ]dddd[ໜ້າເວລາ] LT', - 'lastDay' => '[ມື້ວານນີ້ເວລາ] LT', - 'lastWeek' => '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT', - 'sameElse' => 'L', - ], - 'ordinal' => 'ທີ່:number', - 'meridiem' => ['ຕອນເຊົ້າ', 'ຕອນແລງ'], - 'months' => ['ມັງກອນ', 'ກຸມພາ', 'ມີນາ', 'ເມສາ', 'ພຶດສະພາ', 'ມິຖຸນາ', 'ກໍລະກົດ', 'ສິງຫາ', 'ກັນຍາ', 'ຕຸລາ', 'ພະຈິກ', 'ທັນວາ'], - 'months_short' => ['ມັງກອນ', 'ກຸມພາ', 'ມີນາ', 'ເມສາ', 'ພຶດສະພາ', 'ມິຖຸນາ', 'ກໍລະກົດ', 'ສິງຫາ', 'ກັນຍາ', 'ຕຸລາ', 'ພະຈິກ', 'ທັນວາ'], - 'weekdays' => ['ອາທິດ', 'ຈັນ', 'ອັງຄານ', 'ພຸດ', 'ພະຫັດ', 'ສຸກ', 'ເສົາ'], - 'weekdays_short' => ['ທິດ', 'ຈັນ', 'ອັງຄານ', 'ພຸດ', 'ພະຫັດ', 'ສຸກ', 'ເສົາ'], - 'weekdays_min' => ['ທ', 'ຈ', 'ອຄ', 'ພ', 'ພຫ', 'ສກ', 'ສ'], - 'list' => [', ', 'ແລະ '], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/lo_LA.php b/vendor/nesbot/carbon/src/Carbon/Lang/lo_LA.php deleted file mode 100644 index 9b7fd9b..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/lo_LA.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/lo.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/lrc.php b/vendor/nesbot/carbon/src/Carbon/Lang/lrc.php deleted file mode 100644 index 31cfc84..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/lrc.php +++ /dev/null @@ -1,18 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, - - 'minute' => ':count هنر', // less reliable - 'min' => ':count هنر', // less reliable - 'a_minute' => ':count هنر', // less reliable -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/lrc_IQ.php b/vendor/nesbot/carbon/src/Carbon/Lang/lrc_IQ.php deleted file mode 100644 index 1ae546b..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/lrc_IQ.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/lrc.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/lt.php b/vendor/nesbot/carbon/src/Carbon/Lang/lt.php deleted file mode 100644 index 207b817..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/lt.php +++ /dev/null @@ -1,132 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Philippe Vaucher - * - Tsutomu Kuroda - * - tjku - * - valdas406 - * - Justas Palumickas - * - Max Melentiev - * - Andrius Janauskas - * - Juanito Fatas - * - Akira Matsuda - * - Christopher Dell - * - Enrique Vidal - * - Simone Carletti - * - Aaron Patterson - * - Nicolás Hock Isaza - * - Laurynas Butkus - * - Sven Fuchs - * - Dominykas Tijūnaitis - * - Justinas Bolys - * - Ričardas - * - Kirill Chalkin - * - Rolandas - * - Justinas (Gamesh) - */ -return [ - 'year' => ':count metai|:count metai|:count metų', - 'y' => ':count m.', - 'month' => ':count mėnuo|:count mėnesiai|:count mėnesį', - 'm' => ':count mėn.', - 'week' => ':count savaitė|:count savaitės|:count savaitę', - 'w' => ':count sav.', - 'day' => ':count diena|:count dienos|:count dienų', - 'd' => ':count d.', - 'hour' => ':count valanda|:count valandos|:count valandų', - 'h' => ':count val.', - 'minute' => ':count minutė|:count minutės|:count minutę', - 'min' => ':count min.', - 'second' => ':count sekundė|:count sekundės|:count sekundžių', - 's' => ':count sek.', - - 'year_ago' => ':count metus|:count metus|:count metų', - 'month_ago' => ':count mėnesį|:count mėnesius|:count mėnesių', - 'week_ago' => ':count savaitę|:count savaites|:count savaičių', - 'day_ago' => ':count dieną|:count dienas|:count dienų', - 'hour_ago' => ':count valandą|:count valandas|:count valandų', - 'minute_ago' => ':count minutę|:count minutes|:count minučių', - 'second_ago' => ':count sekundę|:count sekundes|:count sekundžių', - - 'year_from_now' => ':count metų', - 'month_from_now' => ':count mėnesio|:count mėnesių|:count mėnesių', - 'week_from_now' => ':count savaitės|:count savaičių|:count savaičių', - 'day_from_now' => ':count dienos|:count dienų|:count dienų', - 'hour_from_now' => ':count valandos|:count valandų|:count valandų', - 'minute_from_now' => ':count minutės|:count minučių|:count minučių', - 'second_from_now' => ':count sekundės|:count sekundžių|:count sekundžių', - - 'year_after' => ':count metų', - 'month_after' => ':count mėnesio|:count mėnesių|:count mėnesių', - 'week_after' => ':count savaitės|:count savaičių|:count savaičių', - 'day_after' => ':count dienos|:count dienų|:count dienų', - 'hour_after' => ':count valandos|:count valandų|:count valandų', - 'minute_after' => ':count minutės|:count minučių|:count minučių', - 'second_after' => ':count sekundės|:count sekundžių|:count sekundžių', - - 'ago' => 'prieš :time', - 'from_now' => ':time nuo dabar', - 'after' => 'po :time', - 'before' => 'už :time', - - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - - 'diff_now' => 'ką tik', - 'diff_today' => 'Šiandien', - 'diff_yesterday' => 'vakar', - 'diff_yesterday_regexp' => 'Vakar', - 'diff_tomorrow' => 'rytoj', - 'diff_tomorrow_regexp' => 'Rytoj', - 'diff_before_yesterday' => 'užvakar', - 'diff_after_tomorrow' => 'poryt', - - 'period_recurrences' => 'kartą|:count kartų', - 'period_interval' => 'kiekvieną :interval', - 'period_start_date' => 'nuo :date', - 'period_end_date' => 'iki :date', - - 'months' => ['sausio', 'vasario', 'kovo', 'balandžio', 'gegužės', 'birželio', 'liepos', 'rugpjūčio', 'rugsėjo', 'spalio', 'lapkričio', 'gruodžio'], - 'months_standalone' => ['sausis', 'vasaris', 'kovas', 'balandis', 'gegužė', 'birželis', 'liepa', 'rugpjūtis', 'rugsėjis', 'spalis', 'lapkritis', 'gruodis'], - 'months_regexp' => '/(L{2,4}|D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?)/', - 'months_short' => ['sau', 'vas', 'kov', 'bal', 'geg', 'bir', 'lie', 'rgp', 'rgs', 'spa', 'lap', 'gru'], - 'weekdays' => ['sekmadienį', 'pirmadienį', 'antradienį', 'trečiadienį', 'ketvirtadienį', 'penktadienį', 'šeštadienį'], - 'weekdays_standalone' => ['sekmadienis', 'pirmadienis', 'antradienis', 'trečiadienis', 'ketvirtadienis', 'penktadienis', 'šeštadienis'], - 'weekdays_short' => ['sek', 'pir', 'ant', 'tre', 'ket', 'pen', 'šeš'], - 'weekdays_min' => ['se', 'pi', 'an', 'tr', 'ke', 'pe', 'še'], - 'list' => [', ', ' ir '], - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'YYYY-MM-DD', - 'LL' => 'MMMM DD, YYYY', - 'LLL' => 'DD MMM HH:mm', - 'LLLL' => 'MMMM DD, YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[Šiandien] LT', - 'nextDay' => '[Rytoj] LT', - 'nextWeek' => 'dddd LT', - 'lastDay' => '[Vakar] LT', - 'lastWeek' => '[Paskutinį] dddd LT', - 'sameElse' => 'L', - ], - 'ordinal' => static function ($number) { - return match ($number) { - 0 => '0-is', - 3 => '3-ias', - default => "$number-as", - }; - }, - 'meridiem' => ['priešpiet', 'popiet'], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/lt_LT.php b/vendor/nesbot/carbon/src/Carbon/Lang/lt_LT.php deleted file mode 100644 index f772d38..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/lt_LT.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/lt.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/lu.php b/vendor/nesbot/carbon/src/Carbon/Lang/lu.php deleted file mode 100644 index c8cd83a..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/lu.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'meridiem' => ['Dinda', 'Dilolo'], - 'weekdays' => ['Lumingu', 'Nkodya', 'Ndàayà', 'Ndangù', 'Njòwa', 'Ngòvya', 'Lubingu'], - 'weekdays_short' => ['Lum', 'Nko', 'Ndy', 'Ndg', 'Njw', 'Ngv', 'Lub'], - 'weekdays_min' => ['Lum', 'Nko', 'Ndy', 'Ndg', 'Njw', 'Ngv', 'Lub'], - 'months' => ['Ciongo', 'Lùishi', 'Lusòlo', 'Mùuyà', 'Lumùngùlù', 'Lufuimi', 'Kabàlàshìpù', 'Lùshìkà', 'Lutongolo', 'Lungùdi', 'Kaswèkèsè', 'Ciswà'], - 'months_short' => ['Cio', 'Lui', 'Lus', 'Muu', 'Lum', 'Luf', 'Kab', 'Lush', 'Lut', 'Lun', 'Kas', 'Cis'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'D/M/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/luo.php b/vendor/nesbot/carbon/src/Carbon/Lang/luo.php deleted file mode 100644 index 5d6ec7c..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/luo.php +++ /dev/null @@ -1,56 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, - 'meridiem' => ['OD', 'OT'], - 'weekdays' => ['Jumapil', 'Wuok Tich', 'Tich Ariyo', 'Tich Adek', 'Tich Ang’wen', 'Tich Abich', 'Ngeso'], - 'weekdays_short' => ['JMP', 'WUT', 'TAR', 'TAD', 'TAN', 'TAB', 'NGS'], - 'weekdays_min' => ['JMP', 'WUT', 'TAR', 'TAD', 'TAN', 'TAB', 'NGS'], - 'months' => ['Dwe mar Achiel', 'Dwe mar Ariyo', 'Dwe mar Adek', 'Dwe mar Ang’wen', 'Dwe mar Abich', 'Dwe mar Auchiel', 'Dwe mar Abiriyo', 'Dwe mar Aboro', 'Dwe mar Ochiko', 'Dwe mar Apar', 'Dwe mar gi achiel', 'Dwe mar Apar gi ariyo'], - 'months_short' => ['DAC', 'DAR', 'DAD', 'DAN', 'DAH', 'DAU', 'DAO', 'DAB', 'DOC', 'DAP', 'DGI', 'DAG'], - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], - - 'year' => 'higni :count', - 'y' => 'higni :count', - 'a_year' => ':higni :count', - - 'month' => 'dweche :count', - 'm' => 'dweche :count', - 'a_month' => 'dweche :count', - - 'week' => 'jumbe :count', - 'w' => 'jumbe :count', - 'a_week' => 'jumbe :count', - - 'day' => 'ndalo :count', - 'd' => 'ndalo :count', - 'a_day' => 'ndalo :count', - - 'hour' => 'seche :count', - 'h' => 'seche :count', - 'a_hour' => 'seche :count', - - 'minute' => 'dakika :count', - 'min' => 'dakika :count', - 'a_minute' => 'dakika :count', - - 'second' => 'nus dakika :count', - 's' => 'nus dakika :count', - 'a_second' => 'nus dakika :count', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/luy.php b/vendor/nesbot/carbon/src/Carbon/Lang/luy.php deleted file mode 100644 index ab92e84..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/luy.php +++ /dev/null @@ -1,58 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, - 'weekdays' => ['Jumapiri', 'Jumatatu', 'Jumanne', 'Jumatano', 'Murwa wa Kanne', 'Murwa wa Katano', 'Jumamosi'], - 'weekdays_short' => ['J2', 'J3', 'J4', 'J5', 'Al', 'Ij', 'J1'], - 'weekdays_min' => ['J2', 'J3', 'J4', 'J5', 'Al', 'Ij', 'J1'], - 'months' => ['Januari', 'Februari', 'Machi', 'Aprili', 'Mei', 'Juni', 'Julai', 'Agosti', 'Septemba', 'Oktoba', 'Novemba', 'Desemba'], - 'months_short' => ['Jan', 'Feb', 'Mar', 'Apr', 'Mei', 'Jun', 'Jul', 'Ago', 'Sep', 'Okt', 'Nov', 'Des'], - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], - - // Too unreliable - /* - 'year' => ':count liliino', // less reliable - 'y' => ':count liliino', // less reliable - 'a_year' => ':count liliino', // less reliable - - 'month' => ':count kumwesi', // less reliable - 'm' => ':count kumwesi', // less reliable - 'a_month' => ':count kumwesi', // less reliable - - 'week' => ':count olutambi', // less reliable - 'w' => ':count olutambi', // less reliable - 'a_week' => ':count olutambi', // less reliable - - 'day' => ':count luno', // less reliable - 'd' => ':count luno', // less reliable - 'a_day' => ':count luno', // less reliable - - 'hour' => ':count ekengele', // less reliable - 'h' => ':count ekengele', // less reliable - 'a_hour' => ':count ekengele', // less reliable - - 'minute' => ':count omundu', // less reliable - 'min' => ':count omundu', // less reliable - 'a_minute' => ':count omundu', // less reliable - - 'second' => ':count liliino', // less reliable - 's' => ':count liliino', // less reliable - 'a_second' => ':count liliino', // less reliable - */ -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/lv.php b/vendor/nesbot/carbon/src/Carbon/Lang/lv.php deleted file mode 100644 index 6ff3551..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/lv.php +++ /dev/null @@ -1,177 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -use Carbon\CarbonInterface; - -/** - * This file is part of the Carbon package. - * - * (c) Brian Nesbitt - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Philippe Vaucher - * - pirminis - * - Tsutomu Kuroda - * - tjku - * - Andris Zāģeris - * - Max Melentiev - * - Edgars Beigarts - * - Juanito Fatas - * - Vitauts Stočka - * - Akira Matsuda - * - Christopher Dell - * - Enrique Vidal - * - Simone Carletti - * - Aaron Patterson - * - Kaspars Bankovskis - * - Nicolás Hock Isaza - * - Viesturs Kavacs (Kavacky) - * - zakse - * - Janis Eglitis (janiseglitis) - * - Guntars - * - Juris Sudmalis - */ -$daysOfWeek = ['svētdiena', 'pirmdiena', 'otrdiena', 'trešdiena', 'ceturtdiena', 'piektdiena', 'sestdiena']; -$daysOfWeekLocativum = ['svētdien', 'pirmdien', 'otrdien', 'trešdien', 'ceturtdien', 'piektdien', 'sestdien']; - -$transformDiff = static fn (string $input) => strtr($input, [ - // Nominative => "pirms/pēc" Dative - 'gads' => 'gada', - 'gadi' => 'gadiem', - 'gadu' => 'gadiem', - 'mēnesis' => 'mēneša', - 'mēneši' => 'mēnešiem', - 'mēnešu' => 'mēnešiem', - 'nedēļa' => 'nedēļas', - 'nedēļas' => 'nedēļām', - 'nedēļu' => 'nedēļām', - 'diena' => 'dienas', - 'dienas' => 'dienām', - 'dienu' => 'dienām', - 'stunda' => 'stundas', - 'stundas' => 'stundām', - 'stundu' => 'stundām', - 'minūte' => 'minūtes', - 'minūtes' => 'minūtēm', - 'minūšu' => 'minūtēm', - 'sekunde' => 'sekundes', - 'sekundes' => 'sekundēm', - 'sekunžu' => 'sekundēm', -]); - -return [ - 'ago' => static fn (string $time) => 'pirms '.$transformDiff($time), - 'from_now' => static fn (string $time) => 'pēc '.$transformDiff($time), - - 'year' => '0 gadu|:count gads|:count gadi', - 'y' => ':count g.', - 'a_year' => '{1}gads|0 gadu|:count gads|:count gadi', - 'month' => '0 mēnešu|:count mēnesis|:count mēneši', - 'm' => ':count mēn.', - 'a_month' => '{1}mēnesis|0 mēnešu|:count mēnesis|:count mēneši', - 'week' => '0 nedēļu|:count nedēļa|:count nedēļas', - 'w' => ':count ned.', - 'a_week' => '{1}nedēļa|0 nedēļu|:count nedēļa|:count nedēļas', - 'day' => '0 dienu|:count diena|:count dienas', - 'd' => ':count d.', - 'a_day' => '{1}diena|0 dienu|:count diena|:count dienas', - 'hour' => '0 stundu|:count stunda|:count stundas', - 'h' => ':count st.', - 'a_hour' => '{1}stunda|0 stundu|:count stunda|:count stundas', - 'minute' => '0 minūšu|:count minūte|:count minūtes', - 'min' => ':count min.', - 'a_minute' => '{1}minūte|0 minūšu|:count minūte|:count minūtes', - 'second' => '0 sekunžu|:count sekunde|:count sekundes', - 's' => ':count sek.', - 'a_second' => '{1}sekunde|0 sekunžu|:count sekunde|:count sekundes', - - 'after' => ':time vēlāk', - 'year_after' => '0 gadus|:count gadu|:count gadus', - 'a_year_after' => '{1}gadu|0 gadus|:count gadu|:count gadus', - 'month_after' => '0 mēnešus|:count mēnesi|:count mēnešus', - 'a_month_after' => '{1}mēnesi|0 mēnešus|:count mēnesi|:count mēnešus', - 'week_after' => '0 nedēļas|:count nedēļu|:count nedēļas', - 'a_week_after' => '{1}nedēļu|0 nedēļas|:count nedēļu|:count nedēļas', - 'day_after' => '0 dienas|:count dienu|:count dienas', - 'a_day_after' => '{1}dienu|0 dienas|:count dienu|:count dienas', - 'hour_after' => '0 stundas|:count stundu|:count stundas', - 'a_hour_after' => '{1}stundu|0 stundas|:count stundu|:count stundas', - 'minute_after' => '0 minūtes|:count minūti|:count minūtes', - 'a_minute_after' => '{1}minūti|0 minūtes|:count minūti|:count minūtes', - 'second_after' => '0 sekundes|:count sekundi|:count sekundes', - 'a_second_after' => '{1}sekundi|0 sekundes|:count sekundi|:count sekundes', - - 'before' => ':time agrāk', - 'year_before' => '0 gadus|:count gadu|:count gadus', - 'a_year_before' => '{1}gadu|0 gadus|:count gadu|:count gadus', - 'month_before' => '0 mēnešus|:count mēnesi|:count mēnešus', - 'a_month_before' => '{1}mēnesi|0 mēnešus|:count mēnesi|:count mēnešus', - 'week_before' => '0 nedēļas|:count nedēļu|:count nedēļas', - 'a_week_before' => '{1}nedēļu|0 nedēļas|:count nedēļu|:count nedēļas', - 'day_before' => '0 dienas|:count dienu|:count dienas', - 'a_day_before' => '{1}dienu|0 dienas|:count dienu|:count dienas', - 'hour_before' => '0 stundas|:count stundu|:count stundas', - 'a_hour_before' => '{1}stundu|0 stundas|:count stundu|:count stundas', - 'minute_before' => '0 minūtes|:count minūti|:count minūtes', - 'a_minute_before' => '{1}minūti|0 minūtes|:count minūti|:count minūtes', - 'second_before' => '0 sekundes|:count sekundi|:count sekundes', - 'a_second_before' => '{1}sekundi|0 sekundes|:count sekundi|:count sekundes', - - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => [', ', ' un '], - - 'diff_now' => 'tagad', - 'diff_today' => 'šodien', - 'diff_yesterday' => 'vakar', - 'diff_before_yesterday' => 'aizvakar', - 'diff_tomorrow' => 'rīt', - 'diff_after_tomorrow' => 'parīt', - - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD.MM.YYYY.', - 'LL' => 'YYYY. [gada] D. MMMM', - 'LLL' => 'DD.MM.YYYY., HH:mm', - 'LLLL' => 'YYYY. [gada] D. MMMM, HH:mm', - ], - - 'calendar' => [ - 'sameDay' => '[šodien] [plkst.] LT', - 'nextDay' => '[rīt] [plkst.] LT', - 'nextWeek' => static function (CarbonInterface $current, CarbonInterface $other) use ($daysOfWeekLocativum) { - if ($current->week !== $other->week) { - return '[nākošo] ['.$daysOfWeekLocativum[$current->dayOfWeek].'] [plkst.] LT'; - } - - return '['.$daysOfWeekLocativum[$current->dayOfWeek].'] [plkst.] LT'; - }, - 'lastDay' => '[vakar] [plkst.] LT', - 'lastWeek' => static function (CarbonInterface $current) use ($daysOfWeekLocativum) { - return '[pagājušo] ['.$daysOfWeekLocativum[$current->dayOfWeek].'] [plkst.] LT'; - }, - 'sameElse' => 'L', - ], - - 'weekdays' => $daysOfWeek, - 'weekdays_short' => ['Sv.', 'P.', 'O.', 'T.', 'C.', 'Pk.', 'S.'], - 'weekdays_min' => ['Sv.', 'P.', 'O.', 'T.', 'C.', 'Pk.', 'S.'], - 'months' => ['janvāris', 'februāris', 'marts', 'aprīlis', 'maijs', 'jūnijs', 'jūlijs', 'augusts', 'septembris', 'oktobris', 'novembris', 'decembris'], - 'months_standalone' => ['janvārī', 'februārī', 'martā', 'aprīlī', 'maijā', 'jūnijā', 'jūlijā', 'augustā', 'septembrī', 'oktobrī', 'novembrī', 'decembrī'], - 'months_short' => ['janv.', 'febr.', 'martā', 'apr.', 'maijā', 'jūn.', 'jūl.', 'aug.', 'sept.', 'okt.', 'nov.', 'dec.'], - 'meridiem' => ['priekšpusdiena', 'pēcpusdiena'], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/lv_LV.php b/vendor/nesbot/carbon/src/Carbon/Lang/lv_LV.php deleted file mode 100644 index ee91c36..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/lv_LV.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/lv.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/lzh.php b/vendor/nesbot/carbon/src/Carbon/Lang/lzh.php deleted file mode 100644 index 1180c6b..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/lzh.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/lzh_TW.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/lzh_TW.php b/vendor/nesbot/carbon/src/Carbon/Lang/lzh_TW.php deleted file mode 100644 index 771394e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/lzh_TW.php +++ /dev/null @@ -1,57 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'OY[年]MMMMOD[日]', - ], - 'months' => ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'], - 'months_short' => [' 一 ', ' 二 ', ' 三 ', ' 四 ', ' 五 ', ' 六 ', ' 七 ', ' 八 ', ' 九 ', ' 十 ', '十一', '十二'], - 'weekdays' => ['週日', '週一', '週二', '週三', '週四', '週五', '週六'], - 'weekdays_short' => ['日', '一', '二', '三', '四', '五', '六'], - 'weekdays_min' => ['日', '一', '二', '三', '四', '五', '六'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'alt_numbers' => ['〇', '一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二', '十三', '十四', '十五', '十六', '十七', '十八', '十九', '廿', '廿一', '廿二', '廿三', '廿四', '廿五', '廿六', '廿七', '廿八', '廿九', '卅', '卅一'], - 'meridiem' => ['朝', '暮'], - - 'year' => ':count 夏', // less reliable - 'y' => ':count 夏', // less reliable - 'a_year' => ':count 夏', // less reliable - - 'month' => ':count 月', // less reliable - 'm' => ':count 月', // less reliable - 'a_month' => ':count 月', // less reliable - - 'hour' => ':count 氧', // less reliable - 'h' => ':count 氧', // less reliable - 'a_hour' => ':count 氧', // less reliable - - 'minute' => ':count 點', // less reliable - 'min' => ':count 點', // less reliable - 'a_minute' => ':count 點', // less reliable - - 'second' => ':count 楚', // less reliable - 's' => ':count 楚', // less reliable - 'a_second' => ':count 楚', // less reliable - - 'week' => ':count 星期', - 'w' => ':count 星期', - 'a_week' => ':count 星期', - - 'day' => ':count 日(曆法)', - 'd' => ':count 日(曆法)', - 'a_day' => ':count 日(曆法)', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/mag.php b/vendor/nesbot/carbon/src/Carbon/Lang/mag.php deleted file mode 100644 index 7532436..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/mag.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/mag_IN.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/mag_IN.php b/vendor/nesbot/carbon/src/Carbon/Lang/mag_IN.php deleted file mode 100644 index 8797765..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/mag_IN.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - bhashaghar@googlegroups.com - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'D/M/YY', - ], - 'months' => ['जनवरी', 'फ़रवरी', 'मार्च', 'अप्रेल', 'मई', 'जून', 'जुलाई', 'अगस्त', 'सितम्बर', 'अक्टूबर', 'नवम्बर', 'दिसम्बर'], - 'months_short' => ['जनवरी', 'फ़रवरी', 'मार्च', 'अप्रेल', 'मई', 'जून', 'जुलाई', 'अगस्त', 'सितम्बर', 'अक्टूबर', 'नवम्बर', 'दिसम्बर'], - 'weekdays' => ['एतवार', 'सोमार', 'मंगर', 'बुध', 'बिफे', 'सूक', 'सनिचर'], - 'weekdays_short' => ['एतवार', 'सोमार', 'मंगर', 'बुध', 'बिफे', 'सूक', 'सनिचर'], - 'weekdays_min' => ['एतवार', 'सोमार', 'मंगर', 'बुध', 'बिफे', 'सूक', 'सनिचर'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['पूर्वाह्न', 'अपराह्न'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/mai.php b/vendor/nesbot/carbon/src/Carbon/Lang/mai.php deleted file mode 100644 index 792b973..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/mai.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/mai_IN.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/mai_IN.php b/vendor/nesbot/carbon/src/Carbon/Lang/mai_IN.php deleted file mode 100644 index 3f9bba7..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/mai_IN.php +++ /dev/null @@ -1,52 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Maithili Computing Research Center, Pune, India rajeshkajha@yahoo.com,akhilesh.k@samusng.com - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'D/M/YY', - ], - 'months' => ['बैसाख', 'जेठ', 'अषाढ़', 'सावोन', 'भादो', 'आसिन', 'कातिक', 'अगहन', 'पूस', 'माघ', 'फागुन', 'चैति'], - 'months_short' => ['बैसाख', 'जेठ', 'अषाढ़', 'सावोन', 'भादो', 'आसिन', 'कातिक', 'अगहन', 'पूस', 'माघ', 'फागुन', 'चैति'], - 'weekdays' => ['रविदिन', 'सोमदिन', 'मंगलदिन', 'बुधदिन', 'बृहस्पतीदिन', 'शुक्रदिन', 'शनीदिन'], - 'weekdays_short' => ['रवि', 'सोम', 'मंगल', 'बुध', 'बृहस्पती', 'शुक्र', 'शनी'], - 'weekdays_min' => ['रवि', 'सोम', 'मंगल', 'बुध', 'बृहस्पती', 'शुक्र', 'शनी'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['पूर्वाह्न', 'अपराह्न'], - - 'year' => ':count ऋतु', // less reliable - 'y' => ':count ऋतु', // less reliable - 'a_year' => ':count ऋतु', // less reliable - - 'month' => ':count महिना', - 'm' => ':count महिना', - 'a_month' => ':count महिना', - - 'week' => ':count श्रेणी:क्यालेन्डर', // less reliable - 'w' => ':count श्रेणी:क्यालेन्डर', // less reliable - 'a_week' => ':count श्रेणी:क्यालेन्डर', // less reliable - - 'day' => ':count दिन', - 'd' => ':count दिन', - 'a_day' => ':count दिन', - - 'hour' => ':count घण्टा', - 'h' => ':count घण्टा', - 'a_hour' => ':count घण्टा', - - 'minute' => ':count समय', // less reliable - 'min' => ':count समय', // less reliable - 'a_minute' => ':count समय', // less reliable -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/mas.php b/vendor/nesbot/carbon/src/Carbon/Lang/mas.php deleted file mode 100644 index ba99156..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/mas.php +++ /dev/null @@ -1,52 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, - 'meridiem' => ['Ɛnkakɛnyá', 'Ɛndámâ'], - 'weekdays' => ['Jumapílí', 'Jumatátu', 'Jumane', 'Jumatánɔ', 'Alaámisi', 'Jumáa', 'Jumamósi'], - 'weekdays_short' => ['Jpi', 'Jtt', 'Jnn', 'Jtn', 'Alh', 'Iju', 'Jmo'], - 'weekdays_min' => ['Jpi', 'Jtt', 'Jnn', 'Jtn', 'Alh', 'Iju', 'Jmo'], - 'months' => ['Oladalʉ́', 'Arát', 'Ɔɛnɨ́ɔɨŋɔk', 'Olodoyíóríê inkókúâ', 'Oloilépūnyīē inkókúâ', 'Kújúɔrɔk', 'Mórusásin', 'Ɔlɔ́ɨ́bɔ́rárɛ', 'Kúshîn', 'Olgísan', 'Pʉshʉ́ka', 'Ntʉ́ŋʉ́s'], - 'months_short' => ['Dal', 'Ará', 'Ɔɛn', 'Doy', 'Lép', 'Rok', 'Sás', 'Bɔ́r', 'Kús', 'Gís', 'Shʉ́', 'Ntʉ́'], - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], - - 'year' => ':count olameyu', // less reliable - 'y' => ':count olameyu', // less reliable - 'a_year' => ':count olameyu', // less reliable - - 'week' => ':count engolongeare orwiki', // less reliable - 'w' => ':count engolongeare orwiki', // less reliable - 'a_week' => ':count engolongeare orwiki', // less reliable - - 'hour' => ':count esahabu', // less reliable - 'h' => ':count esahabu', // less reliable - 'a_hour' => ':count esahabu', // less reliable - - 'second' => ':count are', // less reliable - 's' => ':count are', // less reliable - 'a_second' => ':count are', // less reliable - - 'month' => ':count olapa', - 'm' => ':count olapa', - 'a_month' => ':count olapa', - - 'day' => ':count enkolongʼ', - 'd' => ':count enkolongʼ', - 'a_day' => ':count enkolongʼ', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/mas_TZ.php b/vendor/nesbot/carbon/src/Carbon/Lang/mas_TZ.php deleted file mode 100644 index 56e2905..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/mas_TZ.php +++ /dev/null @@ -1,14 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/mas.php', [ - 'first_day_of_week' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/mer.php b/vendor/nesbot/carbon/src/Carbon/Lang/mer.php deleted file mode 100644 index 9b4ad3b..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/mer.php +++ /dev/null @@ -1,44 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, - 'meridiem' => ['RŨ', 'ŨG'], - 'weekdays' => ['Kiumia', 'Muramuko', 'Wairi', 'Wethatu', 'Wena', 'Wetano', 'Jumamosi'], - 'weekdays_short' => ['KIU', 'MRA', 'WAI', 'WET', 'WEN', 'WTN', 'JUM'], - 'weekdays_min' => ['KIU', 'MRA', 'WAI', 'WET', 'WEN', 'WTN', 'JUM'], - 'months' => ['Januarĩ', 'Feburuarĩ', 'Machi', 'Ĩpurũ', 'Mĩĩ', 'Njuni', 'Njuraĩ', 'Agasti', 'Septemba', 'Oktũba', 'Novemba', 'Dicemba'], - 'months_short' => ['JAN', 'FEB', 'MAC', 'ĨPU', 'MĨĨ', 'NJU', 'NJR', 'AGA', 'SPT', 'OKT', 'NOV', 'DEC'], - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], - - 'year' => ':count murume', // less reliable - 'y' => ':count murume', // less reliable - 'a_year' => ':count murume', // less reliable - - 'month' => ':count muchaara', // less reliable - 'm' => ':count muchaara', // less reliable - 'a_month' => ':count muchaara', // less reliable - - 'minute' => ':count monto', // less reliable - 'min' => ':count monto', // less reliable - 'a_minute' => ':count monto', // less reliable - - 'second' => ':count gikeno', // less reliable - 's' => ':count gikeno', // less reliable - 'a_second' => ':count gikeno', // less reliable -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/mfe.php b/vendor/nesbot/carbon/src/Carbon/Lang/mfe.php deleted file mode 100644 index 4d6e6b6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/mfe.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/mfe_MU.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/mfe_MU.php b/vendor/nesbot/carbon/src/Carbon/Lang/mfe_MU.php deleted file mode 100644 index ef51ce7..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/mfe_MU.php +++ /dev/null @@ -1,54 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Samsung Electronics Co., Ltd. akhilesh.k@samsung.com - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, - 'formats' => [ - 'L' => 'DD/MM/YY', - ], - 'months' => ['zanvie', 'fevriye', 'mars', 'avril', 'me', 'zin', 'zilye', 'out', 'septam', 'oktob', 'novam', 'desam'], - 'months_short' => ['zan', 'fev', 'mar', 'avr', 'me', 'zin', 'zil', 'out', 'sep', 'okt', 'nov', 'des'], - 'weekdays' => ['dimans', 'lindi', 'mardi', 'merkredi', 'zedi', 'vandredi', 'samdi'], - 'weekdays_short' => ['dim', 'lin', 'mar', 'mer', 'ze', 'van', 'sam'], - 'weekdays_min' => ['dim', 'lin', 'mar', 'mer', 'ze', 'van', 'sam'], - - 'year' => ':count banané', - 'y' => ':count banané', - 'a_year' => ':count banané', - - 'month' => ':count mwa', - 'm' => ':count mwa', - 'a_month' => ':count mwa', - - 'week' => ':count sémenn', - 'w' => ':count sémenn', - 'a_week' => ':count sémenn', - - 'day' => ':count zour', - 'd' => ':count zour', - 'a_day' => ':count zour', - - 'hour' => ':count -er-tan', - 'h' => ':count -er-tan', - 'a_hour' => ':count -er-tan', - - 'minute' => ':count minitt', - 'min' => ':count minitt', - 'a_minute' => ':count minitt', - - 'second' => ':count déziém', - 's' => ':count déziém', - 'a_second' => ':count déziém', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/mg.php b/vendor/nesbot/carbon/src/Carbon/Lang/mg.php deleted file mode 100644 index 40bc2a8..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/mg.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/mg_MG.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/mg_MG.php b/vendor/nesbot/carbon/src/Carbon/Lang/mg_MG.php deleted file mode 100644 index 6a14535..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/mg_MG.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - The Debian Project modified by GNU//Linux Malagasy Rado Ramarotafika,Do-Risika RAFIEFERANTSIARONJY rado@linuxmg.org,dourix@free.fr - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD.MM.YYYY', - ], - 'months' => ['Janoary', 'Febroary', 'Martsa', 'Aprily', 'Mey', 'Jona', 'Jolay', 'Aogositra', 'Septambra', 'Oktobra', 'Novambra', 'Desambra'], - 'months_short' => ['Jan', 'Feb', 'Mar', 'Apr', 'Mey', 'Jon', 'Jol', 'Aog', 'Sep', 'Okt', 'Nov', 'Des'], - 'weekdays' => ['alahady', 'alatsinainy', 'talata', 'alarobia', 'alakamisy', 'zoma', 'sabotsy'], - 'weekdays_short' => ['lhd', 'lts', 'tlt', 'lrb', 'lkm', 'zom', 'sab'], - 'weekdays_min' => ['lhd', 'lts', 'tlt', 'lrb', 'lkm', 'zom', 'sab'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - - 'minute' => ':count minitra', // less reliable - 'min' => ':count minitra', // less reliable - 'a_minute' => ':count minitra', // less reliable - - 'year' => ':count taona', - 'y' => ':count taona', - 'a_year' => ':count taona', - - 'month' => ':count volana', - 'm' => ':count volana', - 'a_month' => ':count volana', - - 'week' => ':count herinandro', - 'w' => ':count herinandro', - 'a_week' => ':count herinandro', - - 'day' => ':count andro', - 'd' => ':count andro', - 'a_day' => ':count andro', - - 'hour' => ':count ora', - 'h' => ':count ora', - 'a_hour' => ':count ora', - - 'second' => ':count segondra', - 's' => ':count segondra', - 'a_second' => ':count segondra', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/mgh.php b/vendor/nesbot/carbon/src/Carbon/Lang/mgh.php deleted file mode 100644 index a4b624c..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/mgh.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, - 'meridiem' => ['wichishu', 'mchochil’l'], - 'weekdays' => ['Sabato', 'Jumatatu', 'Jumanne', 'Jumatano', 'Arahamisi', 'Ijumaa', 'Jumamosi'], - 'weekdays_short' => ['Sab', 'Jtt', 'Jnn', 'Jtn', 'Ara', 'Iju', 'Jmo'], - 'weekdays_min' => ['Sab', 'Jtt', 'Jnn', 'Jtn', 'Ara', 'Iju', 'Jmo'], - 'months' => ['Mweri wo kwanza', 'Mweri wo unayeli', 'Mweri wo uneraru', 'Mweri wo unecheshe', 'Mweri wo unethanu', 'Mweri wo thanu na mocha', 'Mweri wo saba', 'Mweri wo nane', 'Mweri wo tisa', 'Mweri wo kumi', 'Mweri wo kumi na moja', 'Mweri wo kumi na yel’li'], - 'months_short' => ['Kwa', 'Una', 'Rar', 'Che', 'Tha', 'Moc', 'Sab', 'Nan', 'Tis', 'Kum', 'Moj', 'Yel'], - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/mgo.php b/vendor/nesbot/carbon/src/Carbon/Lang/mgo.php deleted file mode 100644 index a126c9f..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/mgo.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'weekdays' => ['Aneg 1', 'Aneg 2', 'Aneg 3', 'Aneg 4', 'Aneg 5', 'Aneg 6', 'Aneg 7'], - 'weekdays_short' => ['Aneg 1', 'Aneg 2', 'Aneg 3', 'Aneg 4', 'Aneg 5', 'Aneg 6', 'Aneg 7'], - 'weekdays_min' => ['1', '2', '3', '4', '5', '6', '7'], - 'months' => ['iməg mbegtug', 'imeg àbùbì', 'imeg mbəŋchubi', 'iməg ngwə̀t', 'iməg fog', 'iməg ichiibɔd', 'iməg àdùmbə̀ŋ', 'iməg ichika', 'iməg kud', 'iməg tèsiʼe', 'iməg zò', 'iməg krizmed'], - 'months_short' => ['mbegtug', 'imeg àbùbì', 'imeg mbəŋchubi', 'iməg ngwə̀t', 'iməg fog', 'iməg ichiibɔd', 'iməg àdùmbə̀ŋ', 'iməg ichika', 'iməg kud', 'iməg tèsiʼe', 'iməg zò', 'iməg krizmed'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'YYYY-MM-dd', - 'LL' => 'YYYY MMM D', - 'LLL' => 'YYYY MMMM D HH:mm', - 'LLLL' => 'dddd, YYYY MMMM DD HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/mhr.php b/vendor/nesbot/carbon/src/Carbon/Lang/mhr.php deleted file mode 100644 index 6bbc9f6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/mhr.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/mhr_RU.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/mhr_RU.php b/vendor/nesbot/carbon/src/Carbon/Lang/mhr_RU.php deleted file mode 100644 index 309ead9..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/mhr_RU.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - PeshSajSoft Ltd. Vyacheslav Kileev slavakileev@yandex.ru - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'YYYY.MM.DD', - ], - 'months' => ['Шорыкйол', 'Пургыж', 'Ӱярня', 'Вӱдшор', 'Ага', 'Пеледыш', 'Сӱрем', 'Сорла', 'Идым', 'Шыжа', 'Кылме', 'Теле'], - 'months_short' => ['Шрк', 'Пгж', 'Ӱрн', 'Вшр', 'Ага', 'Пдш', 'Срм', 'Срл', 'Идм', 'Шыж', 'Клм', 'Тел'], - 'weekdays' => ['Рушарня', 'Шочмо', 'Кушкыжмо', 'Вӱргече', 'Изарня', 'Кугарня', 'Шуматкече'], - 'weekdays_short' => ['Ршр', 'Шчм', 'Кжм', 'Вгч', 'Изр', 'Кгр', 'Шмт'], - 'weekdays_min' => ['Ршр', 'Шчм', 'Кжм', 'Вгч', 'Изр', 'Кгр', 'Шмт'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - - 'year' => ':count идалык', - 'y' => ':count идалык', - 'a_year' => ':count идалык', - - 'month' => ':count Тылзе', - 'm' => ':count Тылзе', - 'a_month' => ':count Тылзе', - - 'week' => ':count арня', - 'w' => ':count арня', - 'a_week' => ':count арня', - - 'day' => ':count кече', - 'd' => ':count кече', - 'a_day' => ':count кече', - - 'hour' => ':count час', - 'h' => ':count час', - 'a_hour' => ':count час', - - 'minute' => ':count минут', - 'min' => ':count минут', - 'a_minute' => ':count минут', - - 'second' => ':count кокымшан', - 's' => ':count кокымшан', - 'a_second' => ':count кокымшан', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/mi.php b/vendor/nesbot/carbon/src/Carbon/Lang/mi.php deleted file mode 100644 index b7f51ec..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/mi.php +++ /dev/null @@ -1,66 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - François B - * - John Corrigan - * - François B - */ -return [ - 'year' => ':count tau', - 'a_year' => '{1}he tau|:count tau', - 'month' => ':count marama', - 'a_month' => '{1}he marama|:count marama', - 'week' => ':count wiki', - 'a_week' => '{1}he wiki|:count wiki', - 'day' => ':count ra', - 'a_day' => '{1}he ra|:count ra', - 'hour' => ':count haora', - 'a_hour' => '{1}te haora|:count haora', - 'minute' => ':count meneti', - 'a_minute' => '{1}he meneti|:count meneti', - 'second' => ':count hēkona', - 'a_second' => '{1}te hēkona ruarua|:count hēkona', - 'ago' => ':time i mua', - 'from_now' => 'i roto i :time', - 'diff_yesterday' => 'inanahi', - 'diff_yesterday_regexp' => 'inanahi(?:\\s+i)?', - 'diff_today' => 'i teie', - 'diff_today_regexp' => 'i teie(?:\\s+mahana,)?(?:\\s+i)?', - 'diff_tomorrow' => 'apopo', - 'diff_tomorrow_regexp' => 'apopo(?:\\s+i)?', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY [i] HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY [i] HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[i teie mahana, i] LT', - 'nextDay' => '[apopo i] LT', - 'nextWeek' => 'dddd [i] LT', - 'lastDay' => '[inanahi i] LT', - 'lastWeek' => 'dddd [whakamutunga i] LT', - 'sameElse' => 'L', - ], - 'ordinal' => ':numberº', - 'months' => ['Kohi-tāte', 'Hui-tanguru', 'Poutū-te-rangi', 'Paenga-whāwhā', 'Haratua', 'Pipiri', 'Hōngoingoi', 'Here-turi-kōkā', 'Mahuru', 'Whiringa-ā-nuku', 'Whiringa-ā-rangi', 'Hakihea'], - 'months_short' => ['Kohi', 'Hui', 'Pou', 'Pae', 'Hara', 'Pipi', 'Hōngoi', 'Here', 'Mahu', 'Whi-nu', 'Whi-ra', 'Haki'], - 'weekdays' => ['Rātapu', 'Mane', 'Tūrei', 'Wenerei', 'Tāite', 'Paraire', 'Hātarei'], - 'weekdays_short' => ['Ta', 'Ma', 'Tū', 'We', 'Tāi', 'Pa', 'Hā'], - 'weekdays_min' => ['Ta', 'Ma', 'Tū', 'We', 'Tāi', 'Pa', 'Hā'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => [', ', ' me te '], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/mi_NZ.php b/vendor/nesbot/carbon/src/Carbon/Lang/mi_NZ.php deleted file mode 100644 index 6b964e3..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/mi_NZ.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/mi.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/miq.php b/vendor/nesbot/carbon/src/Carbon/Lang/miq.php deleted file mode 100644 index 51e5a98..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/miq.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/miq_NI.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/miq_NI.php b/vendor/nesbot/carbon/src/Carbon/Lang/miq_NI.php deleted file mode 100644 index 57faa31..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/miq_NI.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YY', - ], - 'months' => ['siakwa kati', 'kuswa kati', 'kakamuk kati', 'lî wainhka kati', 'lih mairin kati', 'lî kati', 'pastara kati', 'sikla kati', 'wîs kati', 'waupasa kati', 'yahbra kati', 'trisu kati'], - 'months_short' => ['siakwa kati', 'kuswa kati', 'kakamuk kati', 'lî wainhka kati', 'lih mairin kati', 'lî kati', 'pastara kati', 'sikla kati', 'wîs kati', 'waupasa kati', 'yahbra kati', 'trisu kati'], - 'weekdays' => ['sandi', 'mundi', 'tiusdi', 'wensde', 'tausde', 'praidi', 'satadi'], - 'weekdays_short' => ['san', 'mun', 'tius', 'wens', 'taus', 'prai', 'sat'], - 'weekdays_min' => ['san', 'mun', 'tius', 'wens', 'taus', 'prai', 'sat'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 7, - 'meridiem' => ['VM', 'NM'], - - 'month' => ':count kati', // less reliable - 'm' => ':count kati', // less reliable - 'a_month' => ':count kati', // less reliable -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/mjw.php b/vendor/nesbot/carbon/src/Carbon/Lang/mjw.php deleted file mode 100644 index 617154c..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/mjw.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/mjw_IN.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/mjw_IN.php b/vendor/nesbot/carbon/src/Carbon/Lang/mjw_IN.php deleted file mode 100644 index 58ed0d1..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/mjw_IN.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Jor Teron bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'D/M/YY', - ], - 'months' => ['Arkoi', 'Thangthang', 'There', 'Jangmi', 'Aru', 'Vosik', 'Jakhong', 'Paipai', 'Chiti', 'Phere', 'Phaikuni', 'Matijong'], - 'months_short' => ['Ark', 'Thang', 'The', 'Jang', 'Aru', 'Vos', 'Jak', 'Pai', 'Chi', 'Phe', 'Phai', 'Mati'], - 'weekdays' => ['Bhomkuru', 'Urmi', 'Durmi', 'Thelang', 'Theman', 'Bhomta', 'Bhomti'], - 'weekdays_short' => ['Bhom', 'Ur', 'Dur', 'Tkel', 'Tkem', 'Bhta', 'Bhti'], - 'weekdays_min' => ['Bhom', 'Ur', 'Dur', 'Tkel', 'Tkem', 'Bhta', 'Bhti'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/mk.php b/vendor/nesbot/carbon/src/Carbon/Lang/mk.php deleted file mode 100644 index 38fe6d0..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/mk.php +++ /dev/null @@ -1,110 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Sashko Todorov - * - Josh Soref - * - François B - * - Serhan Apaydın - * - Borislav Mickov - * - JD Isaacks - * - Tomi Atanasoski - */ - -use Carbon\CarbonInterface; - -return [ - 'year' => ':count година|:count години', - 'a_year' => 'година|:count години', - 'y' => ':count год.', - 'month' => ':count месец|:count месеци', - 'a_month' => 'месец|:count месеци', - 'm' => ':count месец|:count месеци', - 'week' => ':count седмица|:count седмици', - 'a_week' => 'седмица|:count седмици', - 'w' => ':count седмица|:count седмици', - 'day' => ':count ден|:count дена', - 'a_day' => 'ден|:count дена', - 'd' => ':count ден|:count дена', - 'hour' => ':count час|:count часа', - 'a_hour' => 'час|:count часа', - 'h' => ':count час|:count часа', - 'minute' => ':count минута|:count минути', - 'a_minute' => 'минута|:count минути', - 'min' => ':count мин.', - 'second' => ':count секунда|:count секунди', - 'a_second' => 'неколку секунди|:count секунди', - 's' => ':count сек.', - 'ago' => 'пред :time', - 'from_now' => 'после :time', - 'after' => 'по :time', - 'before' => 'пред :time', - 'diff_now' => 'сега', - 'diff_today' => 'Денес', - 'diff_today_regexp' => 'Денес(?:\\s+во)?', - 'diff_yesterday' => 'вчера', - 'diff_yesterday_regexp' => 'Вчера(?:\\s+во)?', - 'diff_tomorrow' => 'утре', - 'diff_tomorrow_regexp' => 'Утре(?:\\s+во)?', - 'formats' => [ - 'LT' => 'H:mm', - 'LTS' => 'H:mm:ss', - 'L' => 'D.MM.YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY H:mm', - 'LLLL' => 'dddd, D MMMM YYYY H:mm', - ], - 'calendar' => [ - 'sameDay' => '[Денес во] LT', - 'nextDay' => '[Утре во] LT', - 'nextWeek' => '[Во] dddd [во] LT', - 'lastDay' => '[Вчера во] LT', - 'lastWeek' => static fn (CarbonInterface $date) => match ($date->dayOfWeek) { - 0, 3, 6 => '[Изминатата] dddd [во] LT', - default => '[Изминатиот] dddd [во] LT', - }, - 'sameElse' => 'L', - ], - 'ordinal' => static function ($number) { - $lastDigit = $number % 10; - $last2Digits = $number % 100; - if ($number === 0) { - return $number.'-ев'; - } - if ($last2Digits === 0) { - return $number.'-ен'; - } - if ($last2Digits > 10 && $last2Digits < 20) { - return $number.'-ти'; - } - if ($lastDigit === 1) { - return $number.'-ви'; - } - if ($lastDigit === 2) { - return $number.'-ри'; - } - if ($lastDigit === 7 || $lastDigit === 8) { - return $number.'-ми'; - } - - return $number.'-ти'; - }, - 'months' => ['јануари', 'февруари', 'март', 'април', 'мај', 'јуни', 'јули', 'август', 'септември', 'октомври', 'ноември', 'декември'], - 'months_short' => ['јан', 'фев', 'мар', 'апр', 'мај', 'јун', 'јул', 'авг', 'сеп', 'окт', 'ное', 'дек'], - 'weekdays' => ['недела', 'понеделник', 'вторник', 'среда', 'четврток', 'петок', 'сабота'], - 'weekdays_short' => ['нед', 'пон', 'вто', 'сре', 'чет', 'пет', 'саб'], - 'weekdays_min' => ['нe', 'пo', 'вт', 'ср', 'че', 'пе', 'сa'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'list' => [', ', ' и '], - 'meridiem' => ['АМ', 'ПМ'], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/mk_MK.php b/vendor/nesbot/carbon/src/Carbon/Lang/mk_MK.php deleted file mode 100644 index 95e2ff9..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/mk_MK.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/mk.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ml.php b/vendor/nesbot/carbon/src/Carbon/Lang/ml.php deleted file mode 100644 index a35f96f..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ml.php +++ /dev/null @@ -1,76 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - JD Isaacks - */ -return [ - 'year' => ':count വർഷം', - 'a_year' => 'ഒരു വർഷം|:count വർഷം', - 'month' => ':count മാസം', - 'a_month' => 'ഒരു മാസം|:count മാസം', - 'week' => ':count ആഴ്ച', - 'a_week' => 'ഒരാഴ്ച|:count ആഴ്ച', - 'day' => ':count ദിവസം', - 'a_day' => 'ഒരു ദിവസം|:count ദിവസം', - 'hour' => ':count മണിക്കൂർ', - 'a_hour' => 'ഒരു മണിക്കൂർ|:count മണിക്കൂർ', - 'minute' => ':count മിനിറ്റ്', - 'a_minute' => 'ഒരു മിനിറ്റ്|:count മിനിറ്റ്', - 'second' => ':count സെക്കൻഡ്', - 'a_second' => 'അൽപ നിമിഷങ്ങൾ|:count സെക്കൻഡ്', - 'ago' => ':time മുൻപ്', - 'from_now' => ':time കഴിഞ്ഞ്', - 'diff_now' => 'ഇപ്പോൾ', - 'diff_today' => 'ഇന്ന്', - 'diff_yesterday' => 'ഇന്നലെ', - 'diff_tomorrow' => 'നാളെ', - 'formats' => [ - 'LT' => 'A h:mm -നു', - 'LTS' => 'A h:mm:ss -നു', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY, A h:mm -നു', - 'LLLL' => 'dddd, D MMMM YYYY, A h:mm -നു', - ], - 'calendar' => [ - 'sameDay' => '[ഇന്ന്] LT', - 'nextDay' => '[നാളെ] LT', - 'nextWeek' => 'dddd, LT', - 'lastDay' => '[ഇന്നലെ] LT', - 'lastWeek' => '[കഴിഞ്ഞ] dddd, LT', - 'sameElse' => 'L', - ], - 'meridiem' => static function ($hour) { - if ($hour < 4) { - return 'രാത്രി'; - } - if ($hour < 12) { - return 'രാവിലെ'; - } - if ($hour < 17) { - return 'ഉച്ച കഴിഞ്ഞ്'; - } - if ($hour < 20) { - return 'വൈകുന്നേരം'; - } - - return 'രാത്രി'; - }, - 'months' => ['ജനുവരി', 'ഫെബ്രുവരി', 'മാർച്ച്', 'ഏപ്രിൽ', 'മേയ്', 'ജൂൺ', 'ജൂലൈ', 'ഓഗസ്റ്റ്', 'സെപ്റ്റംബർ', 'ഒക്ടോബർ', 'നവംബർ', 'ഡിസംബർ'], - 'months_short' => ['ജനു.', 'ഫെബ്രു.', 'മാർ.', 'ഏപ്രി.', 'മേയ്', 'ജൂൺ', 'ജൂലൈ.', 'ഓഗ.', 'സെപ്റ്റ.', 'ഒക്ടോ.', 'നവം.', 'ഡിസം.'], - 'weekdays' => ['ഞായറാഴ്ച', 'തിങ്കളാഴ്ച', 'ചൊവ്വാഴ്ച', 'ബുധനാഴ്ച', 'വ്യാഴാഴ്ച', 'വെള്ളിയാഴ്ച', 'ശനിയാഴ്ച'], - 'weekdays_short' => ['ഞായർ', 'തിങ്കൾ', 'ചൊവ്വ', 'ബുധൻ', 'വ്യാഴം', 'വെള്ളി', 'ശനി'], - 'weekdays_min' => ['ഞാ', 'തി', 'ചൊ', 'ബു', 'വ്യാ', 'വെ', 'ശ'], - 'list' => ', ', - 'weekend' => [0, 0], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ml_IN.php b/vendor/nesbot/carbon/src/Carbon/Lang/ml_IN.php deleted file mode 100644 index 000e795..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ml_IN.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/ml.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/mn.php b/vendor/nesbot/carbon/src/Carbon/Lang/mn.php deleted file mode 100644 index 38c6434..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/mn.php +++ /dev/null @@ -1,116 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Philippe Vaucher - * - Tsutomu Kuroda - * - tjku - * - Max Melentiev - * - Zolzaya Erdenebaatar - * - Tom Hughes - * - Akira Matsuda - * - Christopher Dell - * - Michael Kessler - * - Enrique Vidal - * - Simone Carletti - * - Aaron Patterson - * - Nicolás Hock Isaza - * - Ochirkhuyag - * - Batmandakh - * - lucifer-crybaby - */ -return [ - 'year' => ':count жил', - 'y' => ':count жил', - 'month' => ':count сар', - 'm' => ':count сар', - 'week' => ':count долоо хоног', - 'w' => ':count долоо хоног', - 'day' => ':count өдөр', - 'd' => ':count өдөр', - 'hour' => ':count цаг', - 'h' => ':countц', - 'minute' => ':count минут', - 'min' => ':countм', - 'second' => ':count секунд', - 's' => ':countс', - - 'ago_mode' => 'last', - 'ago' => ':time өмнө', - 'year_ago' => ':count жилийн', - 'y_ago' => ':count жилийн', - 'month_ago' => ':count сарын', - 'm_ago' => ':count сарын', - 'day_ago' => ':count хоногийн', - 'd_ago' => ':count хоногийн', - 'week_ago' => ':count долоо хоногийн', - 'w_ago' => ':count долоо хоногийн', - 'hour_ago' => ':count цагийн', - 'minute_ago' => ':count минутын', - 'second_ago' => ':count секундын', - - 'from_now_mode' => 'last', - 'from_now' => 'одоогоос :time', - 'year_from_now' => ':count жилийн дараа', - 'y_from_now' => ':count жилийн дараа', - 'month_from_now' => ':count сарын дараа', - 'm_from_now' => ':count сарын дараа', - 'day_from_now' => ':count хоногийн дараа', - 'd_from_now' => ':count хоногийн дараа', - 'hour_from_now' => ':count цагийн дараа', - 'minute_from_now' => ':count минутын дараа', - 'second_from_now' => ':count секундын дараа', - - 'after_mode' => 'last', - 'after' => ':time дараа', - 'year_after' => ':count жилийн', - 'y_after' => ':count жилийн', - 'month_after' => ':count сарын', - 'm_after' => ':count сарын', - 'day_after' => ':count хоногийн', - 'd_after' => ':count хоногийн', - 'hour_after' => ':count цагийн', - 'minute_after' => ':count минутын', - 'second_after' => ':count секундын', - - 'before_mode' => 'last', - 'before' => ':time өмнө', - 'year_before' => ':count жилийн', - 'y_before' => ':count жилийн', - 'month_before' => ':count сарын', - 'm_before' => ':count сарын', - 'day_before' => ':count хоногийн', - 'd_before' => ':count хоногийн', - 'hour_before' => ':count цагийн', - 'minute_before' => ':count минутын', - 'second_before' => ':count секундын', - - 'list' => ', ', - 'diff_now' => 'одоо', - 'diff_yesterday' => 'өчигдөр', - 'diff_tomorrow' => 'маргааш', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'YYYY-MM-DD', - 'LL' => 'YYYY MMMM DD', - 'LLL' => 'YY-MM-DD, HH:mm', - 'LLLL' => 'YYYY MMMM DD, HH:mm', - ], - 'weekdays' => ['Ням', 'Даваа', 'Мягмар', 'Лхагва', 'Пүрэв', 'Баасан', 'Бямба'], - 'weekdays_short' => ['Ня', 'Да', 'Мя', 'Лх', 'Пү', 'Ба', 'Бя'], - 'weekdays_min' => ['Ня', 'Да', 'Мя', 'Лх', 'Пү', 'Ба', 'Бя'], - 'months' => ['1 сар', '2 сар', '3 сар', '4 сар', '5 сар', '6 сар', '7 сар', '8 сар', '9 сар', '10 сар', '11 сар', '12 сар'], - 'months_short' => ['1 сар', '2 сар', '3 сар', '4 сар', '5 сар', '6 сар', '7 сар', '8 сар', '9 сар', '10 сар', '11 сар', '12 сар'], - 'meridiem' => ['өглөө', 'орой'], - 'first_day_of_week' => 1, -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/mn_MN.php b/vendor/nesbot/carbon/src/Carbon/Lang/mn_MN.php deleted file mode 100644 index e5ce426..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/mn_MN.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/mn.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/mni.php b/vendor/nesbot/carbon/src/Carbon/Lang/mni.php deleted file mode 100644 index cafa2f8..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/mni.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/mni_IN.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/mni_IN.php b/vendor/nesbot/carbon/src/Carbon/Lang/mni_IN.php deleted file mode 100644 index 4dc577c..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/mni_IN.php +++ /dev/null @@ -1,36 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Red Hat Pune libc-alpha@sourceware.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'D/M/YY', - ], - 'months' => ['জানুৱারি', 'ফেব্রুৱারি', 'মার্চ', 'এপ্রিল', 'মে', 'জুন', 'জুলাই', 'আগষ্ট', 'সেপ্তেম্বর', 'ওক্তোবর', 'নবেম্বর', 'ডিসেম্বর'], - 'months_short' => ['জান', 'ফেব', 'মার', 'এপ্রি', 'মে', 'জুন', 'জুল', 'আগ', 'সেপ', 'ওক্ত', 'নবে', 'ডিস'], - 'weekdays' => ['নোংমাইজিং', 'নিংথৌকাবা', 'লৈবাকপোকপা', 'য়ুমশকৈশা', 'শগোলশেন', 'ইরাই', 'থাংজ'], - 'weekdays_short' => ['নোং', 'নিং', 'লৈবাক', 'য়ুম', 'শগোল', 'ইরা', 'থাং'], - 'weekdays_min' => ['নোং', 'নিং', 'লৈবাক', 'য়ুম', 'শগোল', 'ইরা', 'থাং'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['এ.ম.', 'প.ম.'], - - 'year' => ':count ইসিং', // less reliable - 'y' => ':count ইসিং', // less reliable - 'a_year' => ':count ইসিং', // less reliable - - 'second' => ':count ꯅꯤꯡꯊꯧꯀꯥꯕ', // less reliable - 's' => ':count ꯅꯤꯡꯊꯧꯀꯥꯕ', // less reliable - 'a_second' => ':count ꯅꯤꯡꯊꯧꯀꯥꯕ', // less reliable -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/mo.php b/vendor/nesbot/carbon/src/Carbon/Lang/mo.php deleted file mode 100644 index 102afcd..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/mo.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/ro.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/mr.php b/vendor/nesbot/carbon/src/Carbon/Lang/mr.php deleted file mode 100644 index e57e6f5..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/mr.php +++ /dev/null @@ -1,86 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Vikram-enyota - */ -return [ - 'year' => ':count वर्ष', - 'y' => ':count वर्ष', - 'month' => ':count महिना|:count महिने', - 'm' => ':count महिना|:count महिने', - 'week' => ':count आठवडा|:count आठवडे', - 'w' => ':count आठवडा|:count आठवडे', - 'day' => ':count दिवस', - 'd' => ':count दिवस', - 'hour' => ':count तास', - 'h' => ':count तास', - 'minute' => ':count मिनिटे', - 'min' => ':count मिनिटे', - 'second' => ':count सेकंद', - 's' => ':count सेकंद', - - 'ago' => ':timeपूर्वी', - 'from_now' => ':timeमध्ये', - 'before' => ':timeपूर्वी', - 'after' => ':timeनंतर', - - 'diff_now' => 'आत्ता', - 'diff_today' => 'आज', - 'diff_yesterday' => 'काल', - 'diff_tomorrow' => 'उद्या', - - 'formats' => [ - 'LT' => 'A h:mm वाजता', - 'LTS' => 'A h:mm:ss वाजता', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY, A h:mm वाजता', - 'LLLL' => 'dddd, D MMMM YYYY, A h:mm वाजता', - ], - - 'calendar' => [ - 'sameDay' => '[आज] LT', - 'nextDay' => '[उद्या] LT', - 'nextWeek' => 'dddd, LT', - 'lastDay' => '[काल] LT', - 'lastWeek' => '[मागील] dddd, LT', - 'sameElse' => 'L', - ], - - 'meridiem' => static function ($hour) { - if ($hour < 4) { - return 'रात्री'; - } - if ($hour < 10) { - return 'सकाळी'; - } - if ($hour < 17) { - return 'दुपारी'; - } - if ($hour < 20) { - return 'सायंकाळी'; - } - - return 'रात्री'; - }, - - 'months' => ['जानेवारी', 'फेब्रुवारी', 'मार्च', 'एप्रिल', 'मे', 'जून', 'जुलै', 'ऑगस्ट', 'सप्टेंबर', 'ऑक्टोबर', 'नोव्हेंबर', 'डिसेंबर'], - 'months_short' => ['जाने.', 'फेब्रु.', 'मार्च.', 'एप्रि.', 'मे.', 'जून.', 'जुलै.', 'ऑग.', 'सप्टें.', 'ऑक्टो.', 'नोव्हें.', 'डिसें.'], - 'weekdays' => ['रविवार', 'सोमवार', 'मंगळवार', 'बुधवार', 'गुरूवार', 'शुक्रवार', 'शनिवार'], - 'weekdays_short' => ['रवि', 'सोम', 'मंगळ', 'बुध', 'गुरू', 'शुक्र', 'शनि'], - 'weekdays_min' => ['र', 'सो', 'मं', 'बु', 'गु', 'शु', 'श'], - 'list' => [', ', ' आणि '], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'weekend' => [0, 0], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/mr_IN.php b/vendor/nesbot/carbon/src/Carbon/Lang/mr_IN.php deleted file mode 100644 index 7bca919..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/mr_IN.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/mr.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ms.php b/vendor/nesbot/carbon/src/Carbon/Lang/ms.php deleted file mode 100644 index 1e9ff78..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ms.php +++ /dev/null @@ -1,104 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Josh Soref - * - Azri Jamil - * - JD Isaacks - * - Josh Soref - * - Azri Jamil - * - Hariadi Hinta - * - Ashraf Kamarudin - */ -return [ - 'year' => ':count tahun', - 'a_year' => '{1}setahun|]1,Inf[:count tahun', - 'y' => ':count tahun', - 'month' => ':count bulan', - 'a_month' => '{1}sebulan|]1,Inf[:count bulan', - 'm' => ':count bulan', - 'week' => ':count minggu', - 'a_week' => '{1}seminggu|]1,Inf[:count minggu', - 'w' => ':count minggu', - 'day' => ':count hari', - 'a_day' => '{1}sehari|]1,Inf[:count hari', - 'd' => ':count hari', - 'hour' => ':count jam', - 'a_hour' => '{1}sejam|]1,Inf[:count jam', - 'h' => ':count jam', - 'minute' => ':count minit', - 'a_minute' => '{1}seminit|]1,Inf[:count minit', - 'min' => ':count minit', - 'second' => ':count saat', - 'a_second' => '{1}beberapa saat|]1,Inf[:count saat', - 'millisecond' => ':count milisaat', - 'a_millisecond' => '{1}semilisaat|]1,Inf[:count milliseconds', - 'microsecond' => ':count mikrodetik', - 'a_microsecond' => '{1}semikrodetik|]1,Inf[:count mikrodetik', - 's' => ':count saat', - 'ago' => ':time yang lepas', - 'from_now' => ':time dari sekarang', - 'after' => ':time kemudian', - 'before' => ':time sebelum', - 'diff_now' => 'sekarang', - 'diff_today' => 'Hari', - 'diff_today_regexp' => 'Hari(?:\\s+ini)?(?:\\s+pukul)?', - 'diff_yesterday' => 'semalam', - 'diff_yesterday_regexp' => 'Semalam(?:\\s+pukul)?', - 'diff_tomorrow' => 'esok', - 'diff_tomorrow_regexp' => 'Esok(?:\\s+pukul)?', - 'diff_before_yesterday' => 'kelmarin', - 'diff_after_tomorrow' => 'lusa', - 'formats' => [ - 'LT' => 'HH.mm', - 'LTS' => 'HH.mm.ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY [pukul] HH.mm', - 'LLLL' => 'dddd, D MMMM YYYY [pukul] HH.mm', - ], - 'calendar' => [ - 'sameDay' => '[Hari ini pukul] LT', - 'nextDay' => '[Esok pukul] LT', - 'nextWeek' => 'dddd [pukul] LT', - 'lastDay' => '[Kelmarin pukul] LT', - 'lastWeek' => 'dddd [lepas pukul] LT', - 'sameElse' => 'L', - ], - 'meridiem' => static function ($hour) { - if ($hour < 1) { - return 'tengah malam'; - } - - if ($hour < 12) { - return 'pagi'; - } - - if ($hour < 13) { - return 'tengah hari'; - } - - if ($hour < 19) { - return 'petang'; - } - - return 'malam'; - }, - 'months' => ['Januari', 'Februari', 'Mac', 'April', 'Mei', 'Jun', 'Julai', 'Ogos', 'September', 'Oktober', 'November', 'Disember'], - 'months_short' => ['Jan', 'Feb', 'Mac', 'Apr', 'Mei', 'Jun', 'Jul', 'Ogs', 'Sep', 'Okt', 'Nov', 'Dis'], - 'weekdays' => ['Ahad', 'Isnin', 'Selasa', 'Rabu', 'Khamis', 'Jumaat', 'Sabtu'], - 'weekdays_short' => ['Ahd', 'Isn', 'Sel', 'Rab', 'Kha', 'Jum', 'Sab'], - 'weekdays_min' => ['Ah', 'Is', 'Sl', 'Rb', 'Km', 'Jm', 'Sb'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'list' => [', ', ' dan '], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ms_BN.php b/vendor/nesbot/carbon/src/Carbon/Lang/ms_BN.php deleted file mode 100644 index ef837a2..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ms_BN.php +++ /dev/null @@ -1,22 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/ms.php', [ - 'formats' => [ - 'LT' => 'h:mm a', - 'LTS' => 'h:mm:ss a', - 'L' => 'D/MM/yy', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY, h:mm a', - 'LLLL' => 'dd MMMM YYYY, h:mm a', - ], - 'meridiem' => ['a', 'p'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ms_MY.php b/vendor/nesbot/carbon/src/Carbon/Lang/ms_MY.php deleted file mode 100644 index 970d604..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ms_MY.php +++ /dev/null @@ -1,18 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Josh Soref - * - Azri Jamil - * - JD Isaacks - */ -return require __DIR__.'/ms.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ms_SG.php b/vendor/nesbot/carbon/src/Carbon/Lang/ms_SG.php deleted file mode 100644 index 77cb83d..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ms_SG.php +++ /dev/null @@ -1,22 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/ms.php', [ - 'formats' => [ - 'LT' => 'h:mm a', - 'LTS' => 'h:mm:ss a', - 'L' => 'D/MM/yy', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY, h:mm a', - 'LLLL' => 'dddd, D MMMM YYYY, h:mm a', - ], - 'meridiem' => ['a', 'p'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/mt.php b/vendor/nesbot/carbon/src/Carbon/Lang/mt.php deleted file mode 100644 index e8aadcc..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/mt.php +++ /dev/null @@ -1,65 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Alessandro Maruccia - */ -return [ - 'year' => 'sena|:count sni|:count sni|:count sni', - 'y' => 'sa sena|:count snin|:count snin|:count snin', - 'month' => 'xahar|:count xhur|:count xhur|:count xhur', - 'm' => ':count xahar|:count xhur|:count xhur|:count xhur', - 'week' => 'gimgħa|:count ġimgħat|:count ġimgħat|:count ġimgħat', - 'w' => 'ġimgħa|:count ġimgħat|:count ġimgħat|:count ġimgħat', - 'day' => 'ġurnata|:count ġranet|:count ġranet|:count ġranet', - 'd' => 'ġurnata|:count ġranet|:count ġranet|:count ġranet', - 'hour' => 'siegħa|:count siegħat|:count siegħat|:count siegħat', - 'h' => 'siegħa|:count sigħat|:count sigħat|:count sigħat', - 'minute' => 'minuta|:count minuti|:count minuti|:count minuti', - 'min' => 'min.|:count min.|:count min.|:count min.', - 'second' => 'ftit sekondi|:count sekondi|:count sekondi|:count sekondi', - 's' => 'sek.|:count sek.|:count sek.|:count sek.', - 'ago' => ':time ilu', - 'from_now' => 'f’ :time', - 'diff_now' => 'issa', - 'diff_today' => 'Illum', - 'diff_today_regexp' => 'Illum(?:\\s+fil-)?', - 'diff_yesterday' => 'lbieraħ', - 'diff_yesterday_regexp' => 'Il-bieraħ(?:\\s+fil-)?', - 'diff_tomorrow' => 'għada', - 'diff_tomorrow_regexp' => 'Għada(?:\\s+fil-)?', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[Illum fil-]LT', - 'nextDay' => '[Għada fil-]LT', - 'nextWeek' => 'dddd [fil-]LT', - 'lastDay' => '[Il-bieraħ fil-]LT', - 'lastWeek' => 'dddd [li għadda] [fil-]LT', - 'sameElse' => 'L', - ], - 'ordinal' => ':numberº', - 'months' => ['Jannar', 'Frar', 'Marzu', 'April', 'Mejju', 'Ġunju', 'Lulju', 'Awwissu', 'Settembru', 'Ottubru', 'Novembru', 'Diċembru'], - 'months_short' => ['Jan', 'Fra', 'Mar', 'Apr', 'Mej', 'Ġun', 'Lul', 'Aww', 'Set', 'Ott', 'Nov', 'Diċ'], - 'weekdays' => ['Il-Ħadd', 'It-Tnejn', 'It-Tlieta', 'L-Erbgħa', 'Il-Ħamis', 'Il-Ġimgħa', 'Is-Sibt'], - 'weekdays_short' => ['Ħad', 'Tne', 'Tli', 'Erb', 'Ħam', 'Ġim', 'Sib'], - 'weekdays_min' => ['Ħa', 'Tn', 'Tl', 'Er', 'Ħa', 'Ġi', 'Si'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => [', ', ' u '], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/mt_MT.php b/vendor/nesbot/carbon/src/Carbon/Lang/mt_MT.php deleted file mode 100644 index 9534f68..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/mt_MT.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/mt.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/mua.php b/vendor/nesbot/carbon/src/Carbon/Lang/mua.php deleted file mode 100644 index a3a3c6f..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/mua.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'meridiem' => ['comme', 'lilli'], - 'weekdays' => ['Com’yakke', 'Comlaaɗii', 'Comzyiiɗii', 'Comkolle', 'Comkaldǝɓlii', 'Comgaisuu', 'Comzyeɓsuu'], - 'weekdays_short' => ['Cya', 'Cla', 'Czi', 'Cko', 'Cka', 'Cga', 'Cze'], - 'weekdays_min' => ['Cya', 'Cla', 'Czi', 'Cko', 'Cka', 'Cga', 'Cze'], - 'months' => ['Fĩi Loo', 'Cokcwaklaŋne', 'Cokcwaklii', 'Fĩi Marfoo', 'Madǝǝuutǝbijaŋ', 'Mamǝŋgwãafahbii', 'Mamǝŋgwãalii', 'Madǝmbii', 'Fĩi Dǝɓlii', 'Fĩi Mundaŋ', 'Fĩi Gwahlle', 'Fĩi Yuru'], - 'months_short' => ['FLO', 'CLA', 'CKI', 'FMF', 'MAD', 'MBI', 'MLI', 'MAM', 'FDE', 'FMU', 'FGW', 'FYU'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'D/M/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/my.php b/vendor/nesbot/carbon/src/Carbon/Lang/my.php deleted file mode 100644 index bbdfba4..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/my.php +++ /dev/null @@ -1,70 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Josh Soref - * - JD Isaacks - * - Nay Lin Aung - */ -return [ - 'year' => '{1}တစ်နှစ်|]1,Inf[:count နှစ်', - 'y' => ':count နှစ်', - 'month' => '{1}တစ်လ|]1,Inf[:count လ', - 'm' => ':count လ', - 'week' => ':count ပတ်', - 'w' => ':count ပတ်', - 'day' => '{1}တစ်ရက်|]1,Inf[:count ရက်', - 'd' => ':count ရက်', - 'hour' => '{1}တစ်နာရီ|]1,Inf[:count နာရီ', - 'h' => ':count နာရီ', - 'minute' => '{1}တစ်မိနစ်|]1,Inf[:count မိနစ်', - 'min' => ':count မိနစ်', - 'second' => '{1}စက္ကန်.အနည်းငယ်|]1,Inf[:count စက္ကန့်', - 's' => ':count စက္ကန့်', - 'ago' => 'လွန်ခဲ့သော :time က', - 'from_now' => 'လာမည့် :time မှာ', - 'after' => ':time ကြာပြီးနောက်', - 'before' => ':time မတိုင်ခင်', - 'diff_now' => 'အခုလေးတင်', - 'diff_today' => 'ယနေ.', - 'diff_yesterday' => 'မနေ့က', - 'diff_yesterday_regexp' => 'မနေ.က', - 'diff_tomorrow' => 'မနက်ဖြန်', - 'diff_before_yesterday' => 'တမြန်နေ့က', - 'diff_after_tomorrow' => 'တဘက်ခါ', - 'period_recurrences' => ':count ကြိမ်', - 'formats' => [ - 'LT' => 'Oh:Om A', - 'LTS' => 'Oh:Om:Os A', - 'L' => 'OD/OM/OY', - 'LL' => 'OD MMMM OY', - 'LLL' => 'OD MMMM OY Oh:Om A', - 'LLLL' => 'dddd OD MMMM OY Oh:Om A', - ], - 'calendar' => [ - 'sameDay' => '[ယနေ.] LT [မှာ]', - 'nextDay' => '[မနက်ဖြန်] LT [မှာ]', - 'nextWeek' => 'dddd LT [မှာ]', - 'lastDay' => '[မနေ.က] LT [မှာ]', - 'lastWeek' => '[ပြီးခဲ့သော] dddd LT [မှာ]', - 'sameElse' => 'L', - ], - 'months' => ['ဇန်နဝါရီ', 'ဖေဖော်ဝါရီ', 'မတ်', 'ဧပြီ', 'မေ', 'ဇွန်', 'ဇူလိုင်', 'သြဂုတ်', 'စက်တင်ဘာ', 'အောက်တိုဘာ', 'နိုဝင်ဘာ', 'ဒီဇင်ဘာ'], - 'months_short' => ['ဇန်', 'ဖေ', 'မတ်', 'ပြီ', 'မေ', 'ဇွန်', 'လိုင်', 'သြ', 'စက်', 'အောက်', 'နို', 'ဒီ'], - 'weekdays' => ['တနင်္ဂနွေ', 'တနင်္လာ', 'အင်္ဂါ', 'ဗုဒ္ဓဟူး', 'ကြာသပတေး', 'သောကြာ', 'စနေ'], - 'weekdays_short' => ['နွေ', 'လာ', 'ဂါ', 'ဟူး', 'ကြာ', 'သော', 'နေ'], - 'weekdays_min' => ['နွေ', 'လာ', 'ဂါ', 'ဟူး', 'ကြာ', 'သော', 'နေ'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'alt_numbers' => ['၀၀', '၀၁', '၀၂', '၀၃', '၀၄', '၀၅', '၀၆', '၀၇', '၀၈', '၀၉', '၁၀', '၁၁', '၁၂', '၁၃', '၁၄', '၁၅', '၁၆', '၁၇', '၁၈', '၁၉', '၂၀', '၂၁', '၂၂', '၂၃', '၂၄', '၂၅', '၂၆', '၂၇', '၂၈', '၂၉', '၃၀', '၃၁', '၃၂', '၃၃', '၃၄', '၃၅', '၃၆', '၃၇', '၃၈', '၃၉', '၄၀', '၄၁', '၄၂', '၄၃', '၄၄', '၄၅', '၄၆', '၄၇', '၄၈', '၄၉', '၅၀', '၅၁', '၅၂', '၅၃', '၅၄', '၅၅', '၅၆', '၅၇', '၅၈', '၅၉', '၆၀', '၆၁', '၆၂', '၆၃', '၆၄', '၆၅', '၆၆', '၆၇', '၆၈', '၆၉', '၇၀', '၇၁', '၇၂', '၇၃', '၇၄', '၇၅', '၇၆', '၇၇', '၇၈', '၇၉', '၈၀', '၈၁', '၈၂', '၈၃', '၈၄', '၈၅', '၈၆', '၈၇', '၈၈', '၈၉', '၉၀', '၉၁', '၉၂', '၉၃', '၉၄', '၉၅', '၉၆', '၉၇', '၉၈', '၉၉'], - 'meridiem' => ['နံနက်', 'ညနေ'], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/my_MM.php b/vendor/nesbot/carbon/src/Carbon/Lang/my_MM.php deleted file mode 100644 index a0108dd..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/my_MM.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/my.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/mzn.php b/vendor/nesbot/carbon/src/Carbon/Lang/mzn.php deleted file mode 100644 index 70f5f23..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/mzn.php +++ /dev/null @@ -1,25 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/fa.php', [ - 'months' => ['ژانویه', 'فوریه', 'مارس', 'آوریل', 'مه', 'ژوئن', 'ژوئیه', 'اوت', 'سپتامبر', 'اکتبر', 'نوامبر', 'دسامبر'], - 'months_short' => ['ژانویه', 'فوریه', 'مارس', 'آوریل', 'مه', 'ژوئن', 'ژوئیه', 'اوت', 'سپتامبر', 'اکتبر', 'نوامبر', 'دسامبر'], - 'first_day_of_week' => 6, - 'weekend' => [5, 5], - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'YYYY-MM-dd', - 'LL' => 'YYYY MMM D', - 'LLL' => 'YYYY MMMM D HH:mm', - 'LLLL' => 'YYYY MMMM D, dddd HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/nan.php b/vendor/nesbot/carbon/src/Carbon/Lang/nan.php deleted file mode 100644 index 0affece..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/nan.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/nan_TW.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/nan_TW.php b/vendor/nesbot/carbon/src/Carbon/Lang/nan_TW.php deleted file mode 100644 index 4fc6548..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/nan_TW.php +++ /dev/null @@ -1,56 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'YYYY年MM月DD日', - ], - 'months' => ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'], - 'months_short' => [' 1月', ' 2月', ' 3月', ' 4月', ' 5月', ' 6月', ' 7月', ' 8月', ' 9月', '10月', '11月', '12月'], - 'weekdays' => ['禮拜日', '禮拜一', '禮拜二', '禮拜三', '禮拜四', '禮拜五', '禮拜六'], - 'weekdays_short' => ['日', '一', '二', '三', '四', '五', '六'], - 'weekdays_min' => ['日', '一', '二', '三', '四', '五', '六'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['頂晡', '下晡'], - - 'year' => ':count 年', - 'y' => ':count 年', - 'a_year' => ':count 年', - - 'month' => ':count goe̍h', - 'm' => ':count goe̍h', - 'a_month' => ':count goe̍h', - - 'week' => ':count lé-pài', - 'w' => ':count lé-pài', - 'a_week' => ':count lé-pài', - - 'day' => ':count 日', - 'd' => ':count 日', - 'a_day' => ':count 日', - - 'hour' => ':count tiám-cheng', - 'h' => ':count tiám-cheng', - 'a_hour' => ':count tiám-cheng', - - 'minute' => ':count Hun-cheng', - 'min' => ':count Hun-cheng', - 'a_minute' => ':count Hun-cheng', - - 'second' => ':count Bió', - 's' => ':count Bió', - 'a_second' => ':count Bió', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/nan_TW@latin.php b/vendor/nesbot/carbon/src/Carbon/Lang/nan_TW@latin.php deleted file mode 100644 index 5eecc63..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/nan_TW@latin.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Arne Goetje arne@canonical.com - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'YYYY-MM-DD', - ], - 'months' => ['1goe̍h', '2goe̍h', '3goe̍h', '4goe̍h', '5goe̍h', '6goe̍h', '7goe̍h', '8goe̍h', '9goe̍h', '10goe̍h', '11goe̍h', '12goe̍h'], - 'months_short' => ['1g', '2g', '3g', '4g', '5g', '6g', '7g', '8g', '9g', '10g', '11g', '12g'], - 'weekdays' => ['lé-pài-ji̍t', 'pài-it', 'pài-jī', 'pài-saⁿ', 'pài-sì', 'pài-gō͘', 'pài-la̍k'], - 'weekdays_short' => ['lp', 'p1', 'p2', 'p3', 'p4', 'p5', 'p6'], - 'weekdays_min' => ['lp', 'p1', 'p2', 'p3', 'p4', 'p5', 'p6'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['téng-po͘', 'ē-po͘'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/naq.php b/vendor/nesbot/carbon/src/Carbon/Lang/naq.php deleted file mode 100644 index fbd9be9..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/naq.php +++ /dev/null @@ -1,52 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'meridiem' => ['ǁgoagas', 'ǃuias'], - 'weekdays' => ['Sontaxtsees', 'Mantaxtsees', 'Denstaxtsees', 'Wunstaxtsees', 'Dondertaxtsees', 'Fraitaxtsees', 'Satertaxtsees'], - 'weekdays_short' => ['Son', 'Ma', 'De', 'Wu', 'Do', 'Fr', 'Sat'], - 'weekdays_min' => ['Son', 'Ma', 'De', 'Wu', 'Do', 'Fr', 'Sat'], - 'months' => ['ǃKhanni', 'ǃKhanǀgôab', 'ǀKhuuǁkhâb', 'ǃHôaǂkhaib', 'ǃKhaitsâb', 'Gamaǀaeb', 'ǂKhoesaob', 'Aoǁkhuumûǁkhâb', 'Taraǀkhuumûǁkhâb', 'ǂNûǁnâiseb', 'ǀHooǂgaeb', 'Hôasoreǁkhâb'], - 'months_short' => ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'h:mm a', - 'LTS' => 'h:mm:ss a', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY h:mm a', - 'LLLL' => 'dddd, D MMMM YYYY h:mm a', - ], - - 'year' => ':count kurigu', - 'y' => ':count kurigu', - 'a_year' => ':count kurigu', - - 'month' => ':count ǁaub', // less reliable - 'm' => ':count ǁaub', // less reliable - 'a_month' => ':count ǁaub', // less reliable - - 'week' => ':count hû', // less reliable - 'w' => ':count hû', // less reliable - 'a_week' => ':count hû', // less reliable - - 'day' => ':count ǀhobas', // less reliable - 'd' => ':count ǀhobas', // less reliable - 'a_day' => ':count ǀhobas', // less reliable - - 'hour' => ':count ǂgaes', // less reliable - 'h' => ':count ǂgaes', // less reliable - 'a_hour' => ':count ǂgaes', // less reliable - - 'minute' => ':count minutga', // less reliable - 'min' => ':count minutga', // less reliable - 'a_minute' => ':count minutga', // less reliable -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/nb.php b/vendor/nesbot/carbon/src/Carbon/Lang/nb.php deleted file mode 100644 index 371ee84..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/nb.php +++ /dev/null @@ -1,84 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - François B - * - Alexander Tømmerås - * - Sigurd Gartmann - * - JD Isaacks - */ -return [ - 'year' => ':count år|:count år', - 'a_year' => 'ett år|:count år', - 'y' => ':count år|:count år', - 'month' => ':count måned|:count måneder', - 'a_month' => 'en måned|:count måneder', - 'm' => ':count md.', - 'week' => ':count uke|:count uker', - 'a_week' => 'en uke|:count uker', - 'w' => ':count u.', - 'day' => ':count dag|:count dager', - 'a_day' => 'en dag|:count dager', - 'd' => ':count d.', - 'hour' => ':count time|:count timer', - 'a_hour' => 'en time|:count timer', - 'h' => ':count t', - 'minute' => ':count minutt|:count minutter', - 'a_minute' => 'ett minutt|:count minutter', - 'min' => ':count min', - 'second' => ':count sekund|:count sekunder', - 'a_second' => 'noen sekunder|:count sekunder', - 's' => ':count sek', - 'ago' => ':time siden', - 'from_now' => 'om :time', - 'after' => ':time etter', - 'before' => ':time før', - 'diff_now' => 'akkurat nå', - 'diff_today' => 'i dag', - 'diff_today_regexp' => 'i dag(?:\\s+kl.)?', - 'diff_yesterday' => 'i går', - 'diff_yesterday_regexp' => 'i går(?:\\s+kl.)?', - 'diff_tomorrow' => 'i morgen', - 'diff_tomorrow_regexp' => 'i morgen(?:\\s+kl.)?', - 'diff_before_yesterday' => 'i forgårs', - 'diff_after_tomorrow' => 'i overmorgen', - 'period_recurrences' => 'en gang|:count ganger', - 'period_interval' => 'hver :interval', - 'period_start_date' => 'fra :date', - 'period_end_date' => 'til :date', - 'months' => ['januar', 'februar', 'mars', 'april', 'mai', 'juni', 'juli', 'august', 'september', 'oktober', 'november', 'desember'], - 'months_short' => ['jan', 'feb', 'mar', 'apr', 'mai', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'des'], - 'weekdays' => ['søndag', 'mandag', 'tirsdag', 'onsdag', 'torsdag', 'fredag', 'lørdag'], - 'weekdays_short' => ['søn', 'man', 'tir', 'ons', 'tor', 'fre', 'lør'], - 'weekdays_min' => ['sø', 'ma', 'ti', 'on', 'to', 'fr', 'lø'], - 'ordinal' => ':number.', - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD.MM.YYYY', - 'LL' => 'D. MMMM YYYY', - 'LLL' => 'D. MMMM YYYY [kl.] HH:mm', - 'LLLL' => 'dddd D. MMMM YYYY [kl.] HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[i dag kl.] LT', - 'nextDay' => '[i morgen kl.] LT', - 'nextWeek' => 'dddd [kl.] LT', - 'lastDay' => '[i går kl.] LT', - 'lastWeek' => '[forrige] dddd [kl.] LT', - 'sameElse' => 'L', - ], - 'list' => [', ', ' og '], - 'meridiem' => ['a.m.', 'p.m.'], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/nb_NO.php b/vendor/nesbot/carbon/src/Carbon/Lang/nb_NO.php deleted file mode 100644 index 31678c5..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/nb_NO.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/nb.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/nb_SJ.php b/vendor/nesbot/carbon/src/Carbon/Lang/nb_SJ.php deleted file mode 100644 index ce0210b..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/nb_SJ.php +++ /dev/null @@ -1,18 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/nb.php', [ - 'formats' => [ - 'LL' => 'D. MMM YYYY', - 'LLL' => 'D. MMMM YYYY, HH:mm', - 'LLLL' => 'dddd D. MMMM YYYY, HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/nd.php b/vendor/nesbot/carbon/src/Carbon/Lang/nd.php deleted file mode 100644 index d88633c..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/nd.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, - 'weekdays' => ['Sonto', 'Mvulo', 'Sibili', 'Sithathu', 'Sine', 'Sihlanu', 'Mgqibelo'], - 'weekdays_short' => ['Son', 'Mvu', 'Sib', 'Sit', 'Sin', 'Sih', 'Mgq'], - 'weekdays_min' => ['Son', 'Mvu', 'Sib', 'Sit', 'Sin', 'Sih', 'Mgq'], - 'months' => ['Zibandlela', 'Nhlolanja', 'Mbimbitho', 'Mabasa', 'Nkwenkwezi', 'Nhlangula', 'Ntulikazi', 'Ncwabakazi', 'Mpandula', 'Mfumfu', 'Lwezi', 'Mpalakazi'], - 'months_short' => ['Zib', 'Nhlo', 'Mbi', 'Mab', 'Nkw', 'Nhla', 'Ntu', 'Ncw', 'Mpan', 'Mfu', 'Lwe', 'Mpal'], - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], - - 'year' => 'okweminyaka engu-:count', // less reliable - 'y' => 'okweminyaka engu-:count', // less reliable - 'a_year' => 'okweminyaka engu-:count', // less reliable - - 'month' => 'inyanga ezingu-:count', - 'm' => 'inyanga ezingu-:count', - 'a_month' => 'inyanga ezingu-:count', - - 'week' => 'amaviki angu-:count', - 'w' => 'amaviki angu-:count', - 'a_week' => 'amaviki angu-:count', - - 'day' => 'kwamalanga angu-:count', - 'd' => 'kwamalanga angu-:count', - 'a_day' => 'kwamalanga angu-:count', - - 'hour' => 'amahola angu-:count', - 'h' => 'amahola angu-:count', - 'a_hour' => 'amahola angu-:count', - - 'minute' => 'imizuzu engu-:count', - 'min' => 'imizuzu engu-:count', - 'a_minute' => 'imizuzu engu-:count', - - 'second' => 'imizuzwana engu-:count', - 's' => 'imizuzwana engu-:count', - 'a_second' => 'imizuzwana engu-:count', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/nds.php b/vendor/nesbot/carbon/src/Carbon/Lang/nds.php deleted file mode 100644 index c0b3775..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/nds.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/nds_DE.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/nds_DE.php b/vendor/nesbot/carbon/src/Carbon/Lang/nds_DE.php deleted file mode 100644 index a6c57a9..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/nds_DE.php +++ /dev/null @@ -1,60 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - information from Kenneth Christiansen Kenneth Christiansen, Pablo Saratxaga kenneth@gnu.org, pablo@mandrakesoft.com - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD.MM.YYYY', - ], - 'months' => ['Jannuaar', 'Feberwaar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'], - 'months_short' => ['Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'], - 'weekdays' => ['Sünndag', 'Maandag', 'Dingsdag', 'Middeweek', 'Dunnersdag', 'Freedag', 'Sünnavend'], - 'weekdays_short' => ['Sdag', 'Maan', 'Ding', 'Midd', 'Dunn', 'Free', 'Svd.'], - 'weekdays_min' => ['Sd', 'Ma', 'Di', 'Mi', 'Du', 'Fr', 'Sa'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - - 'year' => ':count Johr', - 'y' => ':countJ', - 'a_year' => '{1}een Johr|:count Johr', - - 'month' => ':count Maand', - 'm' => ':countM', - 'a_month' => '{1}een Maand|:count Maand', - - 'week' => ':count Week|:count Weken', - 'w' => ':countW', - 'a_week' => '{1}een Week|:count Week|:count Weken', - - 'day' => ':count Dag|:count Daag', - 'd' => ':countD', - 'a_day' => '{1}een Dag|:count Dag|:count Daag', - - 'hour' => ':count Stünn|:count Stünnen', - 'h' => ':countSt', - 'a_hour' => '{1}een Stünn|:count Stünn|:count Stünnen', - - 'minute' => ':count Minuut|:count Minuten', - 'min' => ':countm', - 'a_minute' => '{1}een Minuut|:count Minuut|:count Minuten', - - 'second' => ':count Sekunn|:count Sekunnen', - 's' => ':counts', - 'a_second' => 'en poor Sekunnen|:count Sekunn|:count Sekunnen', - - 'ago' => 'vör :time', - 'from_now' => 'in :time', - 'before' => ':time vörher', - 'after' => ':time later', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/nds_NL.php b/vendor/nesbot/carbon/src/Carbon/Lang/nds_NL.php deleted file mode 100644 index de2c57b..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/nds_NL.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - information from Kenneth Christiansen Kenneth Christiansen, Pablo Saratxaga kenneth@gnu.org, pablo@mandrakesoft.com - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD.MM.YYYY', - ], - 'months' => ['Jaunuwoa', 'Februwoa', 'Moaz', 'Aprell', 'Mai', 'Juni', 'Juli', 'August', 'Septamba', 'Oktoba', 'Nowamba', 'Dezamba'], - 'months_short' => ['Jan', 'Feb', 'Moz', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Now', 'Dez'], - 'weekdays' => ['Sinndag', 'Mondag', 'Dingsdag', 'Meddwäakj', 'Donnadag', 'Friedag', 'Sinnowend'], - 'weekdays_short' => ['Sdg', 'Mdg', 'Dsg', 'Mwk', 'Ddg', 'Fdg', 'Swd'], - 'weekdays_min' => ['Sdg', 'Mdg', 'Dsg', 'Mwk', 'Ddg', 'Fdg', 'Swd'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ne.php b/vendor/nesbot/carbon/src/Carbon/Lang/ne.php deleted file mode 100644 index 998d13f..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ne.php +++ /dev/null @@ -1,82 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - nootanghimire - * - Josh Soref - * - Nj Subedi - * - JD Isaacks - */ -return [ - 'year' => 'एक बर्ष|:count बर्ष', - 'y' => ':count वर्ष', - 'month' => 'एक महिना|:count महिना', - 'm' => ':count महिना', - 'week' => ':count हप्ता', - 'w' => ':count हप्ता', - 'day' => 'एक दिन|:count दिन', - 'd' => ':count दिन', - 'hour' => 'एक घण्टा|:count घण्टा', - 'h' => ':count घण्टा', - 'minute' => 'एक मिनेट|:count मिनेट', - 'min' => ':count मिनेट', - 'second' => 'केही क्षण|:count सेकेण्ड', - 's' => ':count सेकेण्ड', - 'ago' => ':time अगाडि', - 'from_now' => ':timeमा', - 'after' => ':time पछि', - 'before' => ':time अघि', - 'diff_now' => 'अहिले', - 'diff_today' => 'आज', - 'diff_yesterday' => 'हिजो', - 'diff_tomorrow' => 'भोलि', - 'formats' => [ - 'LT' => 'Aको h:mm बजे', - 'LTS' => 'Aको h:mm:ss बजे', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY, Aको h:mm बजे', - 'LLLL' => 'dddd, D MMMM YYYY, Aको h:mm बजे', - ], - 'calendar' => [ - 'sameDay' => '[आज] LT', - 'nextDay' => '[भोलि] LT', - 'nextWeek' => '[आउँदो] dddd[,] LT', - 'lastDay' => '[हिजो] LT', - 'lastWeek' => '[गएको] dddd[,] LT', - 'sameElse' => 'L', - ], - 'meridiem' => static function ($hour) { - if ($hour < 3) { - return 'राति'; - } - if ($hour < 12) { - return 'बिहान'; - } - if ($hour < 16) { - return 'दिउँसो'; - } - if ($hour < 20) { - return 'साँझ'; - } - - return 'राति'; - }, - 'months' => ['जनवरी', 'फेब्रुवरी', 'मार्च', 'अप्रिल', 'मई', 'जुन', 'जुलाई', 'अगष्ट', 'सेप्टेम्बर', 'अक्टोबर', 'नोभेम्बर', 'डिसेम्बर'], - 'months_short' => ['जन.', 'फेब्रु.', 'मार्च', 'अप्रि.', 'मई', 'जुन', 'जुलाई.', 'अग.', 'सेप्ट.', 'अक्टो.', 'नोभे.', 'डिसे.'], - 'weekdays' => ['आइतबार', 'सोमबार', 'मङ्गलबार', 'बुधबार', 'बिहिबार', 'शुक्रबार', 'शनिबार'], - 'weekdays_short' => ['आइत.', 'सोम.', 'मङ्गल.', 'बुध.', 'बिहि.', 'शुक्र.', 'शनि.'], - 'weekdays_min' => ['आ.', 'सो.', 'मं.', 'बु.', 'बि.', 'शु.', 'श.'], - 'list' => [', ', ' र '], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ne_IN.php b/vendor/nesbot/carbon/src/Carbon/Lang/ne_IN.php deleted file mode 100644 index f68d00e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ne_IN.php +++ /dev/null @@ -1,25 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/ne.php', [ - 'formats' => [ - 'LT' => 'h:mm a', - 'LTS' => 'h:mm:ss a', - 'L' => 'yy/M/d', - 'LL' => 'YYYY MMM D', - 'LLL' => 'YYYY MMMM D, h:mm a', - 'LLLL' => 'YYYY MMMM D, dddd, h:mm a', - ], - 'months' => ['जनवरी', 'फेब्रुअरी', 'मार्च', 'अप्रिल', 'मे', 'जुन', 'जुलाई', 'अगस्ट', 'सेप्टेम्बर', 'अक्टोबर', 'नोभेम्बर', 'डिसेम्बर'], - 'months_short' => ['जनवरी', 'फेब्रुअरी', 'मार्च', 'अप्रिल', 'मे', 'जुन', 'जुलाई', 'अगस्ट', 'सेप्टेम्बर', 'अक्टोबर', 'नोभेम्बर', 'डिसेम्बर'], - 'weekend' => [0, 0], - 'meridiem' => ['पूर्वाह्न', 'अपराह्न'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ne_NP.php b/vendor/nesbot/carbon/src/Carbon/Lang/ne_NP.php deleted file mode 100644 index 27840c0..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ne_NP.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/ne.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/nhn.php b/vendor/nesbot/carbon/src/Carbon/Lang/nhn.php deleted file mode 100644 index 5a85831..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/nhn.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/nhn_MX.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/nhn_MX.php b/vendor/nesbot/carbon/src/Carbon/Lang/nhn_MX.php deleted file mode 100644 index 8d06d50..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/nhn_MX.php +++ /dev/null @@ -1,51 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - RAP libc-alpha@sourceware.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YY', - ], - 'months' => ['enero', 'febrero', 'marzo', 'abril', 'mayo', 'junio', 'julio', 'agosto', 'septiembre', 'octubre', 'noviembre', 'diciembre'], - 'months_short' => ['ene', 'feb', 'mar', 'abr', 'may', 'jun', 'jul', 'ago', 'sep', 'oct', 'nov', 'dic'], - 'weekdays' => ['teoilhuitl', 'ceilhuitl', 'omeilhuitl', 'yeilhuitl', 'nahuilhuitl', 'macuililhuitl', 'chicuaceilhuitl'], - 'weekdays_short' => ['teo', 'cei', 'ome', 'yei', 'nau', 'mac', 'chi'], - 'weekdays_min' => ['teo', 'cei', 'ome', 'yei', 'nau', 'mac', 'chi'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - - 'month' => ':count metztli', // less reliable - 'm' => ':count metztli', // less reliable - 'a_month' => ':count metztli', // less reliable - - 'week' => ':count tonalli', // less reliable - 'w' => ':count tonalli', // less reliable - 'a_week' => ':count tonalli', // less reliable - - 'day' => ':count tonatih', // less reliable - 'd' => ':count tonatih', // less reliable - 'a_day' => ':count tonatih', // less reliable - - 'minute' => ':count toltecayotl', // less reliable - 'min' => ':count toltecayotl', // less reliable - 'a_minute' => ':count toltecayotl', // less reliable - - 'second' => ':count ome', // less reliable - 's' => ':count ome', // less reliable - 'a_second' => ':count ome', // less reliable - - 'year' => ':count xihuitl', - 'y' => ':count xihuitl', - 'a_year' => ':count xihuitl', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/niu.php b/vendor/nesbot/carbon/src/Carbon/Lang/niu.php deleted file mode 100644 index bd9be8a..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/niu.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/niu_NU.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/niu_NU.php b/vendor/nesbot/carbon/src/Carbon/Lang/niu_NU.php deleted file mode 100644 index 6e7a697..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/niu_NU.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - RockET Systems Emani Fakaotimanava-Lui emani@niue.nu - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YY', - ], - 'months' => ['Ianuali', 'Fepuali', 'Masi', 'Apelila', 'Me', 'Iuni', 'Iulai', 'Aokuso', 'Sepetema', 'Oketopa', 'Novema', 'Tesemo'], - 'months_short' => ['Ian', 'Fep', 'Mas', 'Ape', 'Me', 'Iun', 'Iul', 'Aok', 'Sep', 'Oke', 'Nov', 'Tes'], - 'weekdays' => ['Aho Tapu', 'Aho Gofua', 'Aho Ua', 'Aho Lotu', 'Aho Tuloto', 'Aho Falaile', 'Aho Faiumu'], - 'weekdays_short' => ['Tapu', 'Gofua', 'Ua', 'Lotu', 'Tuloto', 'Falaile', 'Faiumu'], - 'weekdays_min' => ['Tapu', 'Gofua', 'Ua', 'Lotu', 'Tuloto', 'Falaile', 'Faiumu'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - - 'year' => ':count tau', - 'y' => ':count tau', - 'a_year' => ':count tau', - - 'month' => ':count mahina', - 'm' => ':count mahina', - 'a_month' => ':count mahina', - - 'week' => ':count faahi tapu', - 'w' => ':count faahi tapu', - 'a_week' => ':count faahi tapu', - - 'day' => ':count aho', - 'd' => ':count aho', - 'a_day' => ':count aho', - - 'hour' => ':count e tulā', - 'h' => ':count e tulā', - 'a_hour' => ':count e tulā', - - 'minute' => ':count minuti', - 'min' => ':count minuti', - 'a_minute' => ':count minuti', - - 'second' => ':count sekone', - 's' => ':count sekone', - 'a_second' => ':count sekone', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/nl.php b/vendor/nesbot/carbon/src/Carbon/Lang/nl.php deleted file mode 100644 index ccf1925..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/nl.php +++ /dev/null @@ -1,113 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Roy - * - Stephan - * - François B - * - Tim Fish - * - Kevin Huang - * - Jacob Middag - * - JD Isaacks - * - Roy - * - Stephan - * - François B - * - Tim Fish - * - Jacob Middag - * - JD Isaacks - * - Propaganistas - * - MegaXLR - * - adriaanzon - * - MonkeyPhysics - * - JeroenG - * - RikSomers - * - proclame - * - Rik de Groot (hwdegroot) - */ -return [ - 'year' => ':count jaar|:count jaar', - 'a_year' => 'een jaar|:count jaar', - 'y' => ':countj', - 'month' => ':count maand|:count maanden', - 'a_month' => 'een maand|:count maanden', - 'm' => ':countmnd', - 'week' => ':count week|:count weken', - 'a_week' => 'een week|:count weken', - 'w' => ':countw', - 'day' => ':count dag|:count dagen', - 'a_day' => 'een dag|:count dagen', - 'd' => ':countd', - 'hour' => ':count uur|:count uur', - 'a_hour' => 'een uur|:count uur', - 'h' => ':countu', - 'minute' => ':count minuut|:count minuten', - 'a_minute' => 'een minuut|:count minuten', - 'min' => ':countmin', - 'second' => ':count seconde|:count seconden', - 'a_second' => 'een paar seconden|:count seconden', - 's' => ':counts', - 'ago' => ':time geleden', - 'from_now' => 'over :time', - 'after' => ':time later', - 'before' => ':time eerder', - 'diff_now' => 'nu', - 'diff_today' => 'vandaag', - 'diff_today_regexp' => 'vandaag(?:\\s+om)?', - 'diff_yesterday' => 'gisteren', - 'diff_yesterday_regexp' => 'gisteren(?:\\s+om)?', - 'diff_tomorrow' => 'morgen', - 'diff_tomorrow_regexp' => 'morgen(?:\\s+om)?', - 'diff_after_tomorrow' => 'overmorgen', - 'diff_before_yesterday' => 'eergisteren', - 'period_recurrences' => ':count keer', - 'period_interval' => static function (string $interval = '') { - /** @var string $output */ - $output = preg_replace('/^(een|één|1)\s+/u', '', $interval); - - if (preg_match('/^(een|één|1)( jaar|j| uur|u)/u', $interval)) { - return "elk $output"; - } - - return "elke $output"; - }, - 'period_start_date' => 'van :date', - 'period_end_date' => 'tot :date', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD-MM-YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[vandaag om] LT', - 'nextDay' => '[morgen om] LT', - 'nextWeek' => 'dddd [om] LT', - 'lastDay' => '[gisteren om] LT', - 'lastWeek' => '[afgelopen] dddd [om] LT', - 'sameElse' => 'L', - ], - 'ordinal' => static function ($number) { - return $number.(($number === 1 || $number === 8 || $number >= 20) ? 'ste' : 'de'); - }, - 'months' => ['januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktober', 'november', 'december'], - 'months_short' => ['jan', 'feb', 'mrt', 'apr', 'mei', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'dec'], - 'mmm_suffix' => '.', - 'weekdays' => ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'], - 'weekdays_short' => ['zo.', 'ma.', 'di.', 'wo.', 'do.', 'vr.', 'za.'], - 'weekdays_min' => ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => [', ', ' en '], - 'meridiem' => ['\'s ochtends', '\'s middags'], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/nl_AW.php b/vendor/nesbot/carbon/src/Carbon/Lang/nl_AW.php deleted file mode 100644 index 5ec136d..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/nl_AW.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Free Software Foundation, Inc. bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/nl.php', [ - 'formats' => [ - 'L' => 'DD-MM-YY', - ], - 'months' => ['januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktober', 'november', 'december'], - 'months_short' => ['jan', 'feb', 'mrt', 'apr', 'mei', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'dec'], - 'weekdays' => ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'], - 'weekdays_short' => ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'], - 'weekdays_min' => ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/nl_BE.php b/vendor/nesbot/carbon/src/Carbon/Lang/nl_BE.php deleted file mode 100644 index 037f5b4..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/nl_BE.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Roy - * - Stephan - * - François B - * - Tim Fish - * - Kevin Huang - * - Jacob Middag - * - JD Isaacks - * - Propaganistas - */ -return array_replace_recursive(require __DIR__.'/nl.php', [ - 'formats' => [ - 'L' => 'DD/MM/YYYY', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/nl_BQ.php b/vendor/nesbot/carbon/src/Carbon/Lang/nl_BQ.php deleted file mode 100644 index c269197..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/nl_BQ.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/nl.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/nl_CW.php b/vendor/nesbot/carbon/src/Carbon/Lang/nl_CW.php deleted file mode 100644 index c269197..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/nl_CW.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/nl.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/nl_NL.php b/vendor/nesbot/carbon/src/Carbon/Lang/nl_NL.php deleted file mode 100644 index 14e4853..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/nl_NL.php +++ /dev/null @@ -1,24 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - RAP bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/nl.php', [ - 'months' => ['januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktober', 'november', 'december'], - 'months_short' => ['jan', 'feb', 'mrt', 'apr', 'mei', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'dec'], - 'weekdays' => ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'], - 'weekdays_short' => ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'], - 'weekdays_min' => ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/nl_SR.php b/vendor/nesbot/carbon/src/Carbon/Lang/nl_SR.php deleted file mode 100644 index c269197..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/nl_SR.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/nl.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/nl_SX.php b/vendor/nesbot/carbon/src/Carbon/Lang/nl_SX.php deleted file mode 100644 index c269197..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/nl_SX.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/nl.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/nmg.php b/vendor/nesbot/carbon/src/Carbon/Lang/nmg.php deleted file mode 100644 index 4d1df6e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/nmg.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'meridiem' => ['maná', 'kugú'], - 'weekdays' => ['sɔ́ndɔ', 'mɔ́ndɔ', 'sɔ́ndɔ mafú mába', 'sɔ́ndɔ mafú málal', 'sɔ́ndɔ mafú mána', 'mabágá má sukul', 'sásadi'], - 'weekdays_short' => ['sɔ́n', 'mɔ́n', 'smb', 'sml', 'smn', 'mbs', 'sas'], - 'weekdays_min' => ['sɔ́n', 'mɔ́n', 'smb', 'sml', 'smn', 'mbs', 'sas'], - 'months' => ['ngwɛn matáhra', 'ngwɛn ńmba', 'ngwɛn ńlal', 'ngwɛn ńna', 'ngwɛn ńtan', 'ngwɛn ńtuó', 'ngwɛn hɛmbuɛrí', 'ngwɛn lɔmbi', 'ngwɛn rɛbvuâ', 'ngwɛn wum', 'ngwɛn wum navǔr', 'krísimin'], - 'months_short' => ['ng1', 'ng2', 'ng3', 'ng4', 'ng5', 'ng6', 'ng7', 'ng8', 'ng9', 'ng10', 'ng11', 'kris'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'D/M/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/nn.php b/vendor/nesbot/carbon/src/Carbon/Lang/nn.php deleted file mode 100644 index 041f7b2..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/nn.php +++ /dev/null @@ -1,78 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - François B - * - Alexander Tømmerås - * - Øystein - * - JD Isaacks - * - Gaute Hvoslef Kvalnes (gaute) - */ -return [ - 'year' => ':count år', - 'a_year' => 'eit år|:count år', - 'y' => ':count år', - 'month' => ':count månad|:count månader', - 'a_month' => 'ein månad|:count månader', - 'm' => ':count md', - 'week' => ':count veke|:count veker', - 'a_week' => 'ei veke|:count veker', - 'w' => ':countv', - 'day' => ':count dag|:count dagar', - 'a_day' => 'ein dag|:count dagar', - 'd' => ':countd', - 'hour' => ':count time|:count timar', - 'a_hour' => 'ein time|:count timar', - 'h' => ':countt', - 'minute' => ':count minutt', - 'a_minute' => 'eit minutt|:count minutt', - 'min' => ':countm', - 'second' => ':count sekund', - 'a_second' => 'nokre sekund|:count sekund', - 's' => ':counts', - 'ago' => ':time sidan', - 'from_now' => 'om :time', - 'after' => ':time etter', - 'before' => ':time før', - 'diff_today' => 'I dag', - 'diff_yesterday' => 'I går', - 'diff_yesterday_regexp' => 'I går(?:\\s+klokka)?', - 'diff_tomorrow' => 'I morgon', - 'diff_tomorrow_regexp' => 'I morgon(?:\\s+klokka)?', - 'diff_today_regexp' => 'I dag(?:\\s+klokka)?', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD.MM.YYYY', - 'LL' => 'D. MMMM YYYY', - 'LLL' => 'D. MMMM YYYY [kl.] H:mm', - 'LLLL' => 'dddd D. MMMM YYYY [kl.] HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[I dag klokka] LT', - 'nextDay' => '[I morgon klokka] LT', - 'nextWeek' => 'dddd [klokka] LT', - 'lastDay' => '[I går klokka] LT', - 'lastWeek' => '[Føregåande] dddd [klokka] LT', - 'sameElse' => 'L', - ], - 'ordinal' => ':number.', - 'months' => ['januar', 'februar', 'mars', 'april', 'mai', 'juni', 'juli', 'august', 'september', 'oktober', 'november', 'desember'], - 'months_short' => ['jan', 'feb', 'mar', 'apr', 'mai', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'des'], - 'weekdays' => ['sundag', 'måndag', 'tysdag', 'onsdag', 'torsdag', 'fredag', 'laurdag'], - 'weekdays_short' => ['sun', 'mån', 'tys', 'ons', 'tor', 'fre', 'lau'], - 'weekdays_min' => ['su', 'må', 'ty', 'on', 'to', 'fr', 'la'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => [', ', ' og '], - 'meridiem' => ['f.m.', 'e.m.'], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/nn_NO.php b/vendor/nesbot/carbon/src/Carbon/Lang/nn_NO.php deleted file mode 100644 index 8e16871..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/nn_NO.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/nn.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/nnh.php b/vendor/nesbot/carbon/src/Carbon/Lang/nnh.php deleted file mode 100644 index 007d239..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/nnh.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'meridiem' => ['mbaʼámbaʼ', 'ncwònzém'], - 'weekdays' => null, - 'weekdays_short' => ['lyɛʼɛ́ sẅíŋtè', 'mvfò lyɛ̌ʼ', 'mbɔ́ɔntè mvfò lyɛ̌ʼ', 'tsètsɛ̀ɛ lyɛ̌ʼ', 'mbɔ́ɔntè tsetsɛ̀ɛ lyɛ̌ʼ', 'mvfò màga lyɛ̌ʼ', 'màga lyɛ̌ʼ'], - 'weekdays_min' => null, - 'months' => null, - 'months_short' => ['saŋ tsetsɛ̀ɛ lùm', 'saŋ kàg ngwóŋ', 'saŋ lepyè shúm', 'saŋ cÿó', 'saŋ tsɛ̀ɛ cÿó', 'saŋ njÿoláʼ', 'saŋ tyɛ̀b tyɛ̀b mbʉ̀ŋ', 'saŋ mbʉ̀ŋ', 'saŋ ngwɔ̀ʼ mbÿɛ', 'saŋ tàŋa tsetsáʼ', 'saŋ mejwoŋó', 'saŋ lùm'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/yy', - 'LL' => 'D MMM, YYYY', - 'LLL' => '[lyɛ]̌ʼ d [na] MMMM, YYYY HH:mm', - 'LLLL' => 'dddd , [lyɛ]̌ʼ d [na] MMMM, YYYY HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/no.php b/vendor/nesbot/carbon/src/Carbon/Lang/no.php deleted file mode 100644 index f4497c7..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/no.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Daniel S. Billing - * - Paul - * - Jimmie Johansson - * - Jens Herlevsen - */ -return array_replace_recursive(require __DIR__.'/nb.php', [ - 'formats' => [ - 'LLL' => 'D. MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D. MMMM YYYY [kl.] HH:mm', - ], - 'calendar' => [ - 'nextWeek' => 'på dddd [kl.] LT', - 'lastWeek' => '[i] dddd[s kl.] LT', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/nr.php b/vendor/nesbot/carbon/src/Carbon/Lang/nr.php deleted file mode 100644 index 1bc999f..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/nr.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/nr_ZA.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/nr_ZA.php b/vendor/nesbot/carbon/src/Carbon/Lang/nr_ZA.php deleted file mode 100644 index 5093759..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/nr_ZA.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Zuza Software Foundation (Translate.org.za) Dwayne Bailey dwayne@translate.org.za - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YYYY', - ], - 'months' => ['Janabari', 'uFeberbari', 'uMatjhi', 'u-Apreli', 'Meyi', 'Juni', 'Julayi', 'Arhostosi', 'Septemba', 'Oktoba', 'Usinyikhaba', 'Disemba'], - 'months_short' => ['Jan', 'Feb', 'Mat', 'Apr', 'Mey', 'Jun', 'Jul', 'Arh', 'Sep', 'Okt', 'Usi', 'Dis'], - 'weekdays' => ['uSonto', 'uMvulo', 'uLesibili', 'lesithathu', 'uLesine', 'ngoLesihlanu', 'umGqibelo'], - 'weekdays_short' => ['Son', 'Mvu', 'Bil', 'Tha', 'Ne', 'Hla', 'Gqi'], - 'weekdays_min' => ['Son', 'Mvu', 'Bil', 'Tha', 'Ne', 'Hla', 'Gqi'], - 'day_of_first_week_of_year' => 1, - 'first_day_of_week' => 0, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/nso.php b/vendor/nesbot/carbon/src/Carbon/Lang/nso.php deleted file mode 100644 index 2a6cabb..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/nso.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/nso_ZA.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/nso_ZA.php b/vendor/nesbot/carbon/src/Carbon/Lang/nso_ZA.php deleted file mode 100644 index 93da1e7..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/nso_ZA.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Zuza Software Foundation (Translate.org.za) Dwayne Bailey dwayne@translate.org.za - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YYYY', - ], - 'months' => ['Janaware', 'Febereware', 'Matšhe', 'Aprele', 'Mei', 'June', 'Julae', 'Agostose', 'Setemere', 'Oktobere', 'Nofemere', 'Disemere'], - 'months_short' => ['Jan', 'Feb', 'Mat', 'Apr', 'Mei', 'Jun', 'Jul', 'Ago', 'Set', 'Okt', 'Nof', 'Dis'], - 'weekdays' => ['LaMorena', 'Mošupologo', 'Labobedi', 'Laboraro', 'Labone', 'Labohlano', 'Mokibelo'], - 'weekdays_short' => ['Son', 'Moš', 'Bed', 'Rar', 'Ne', 'Hla', 'Mok'], - 'weekdays_min' => ['Son', 'Moš', 'Bed', 'Rar', 'Ne', 'Hla', 'Mok'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - - 'year' => ':count ngwaga', - 'y' => ':count ngwaga', - 'a_year' => ':count ngwaga', - - 'month' => ':count Kgwedi', - 'm' => ':count Kgwedi', - 'a_month' => ':count Kgwedi', - - 'week' => ':count Beke', - 'w' => ':count Beke', - 'a_week' => ':count Beke', - - 'day' => ':count Letšatši', - 'd' => ':count Letšatši', - 'a_day' => ':count Letšatši', - - 'hour' => ':count Iri', - 'h' => ':count Iri', - 'a_hour' => ':count Iri', - - 'minute' => ':count Motsotso', - 'min' => ':count Motsotso', - 'a_minute' => ':count Motsotso', - - 'second' => ':count motsotswana', - 's' => ':count motsotswana', - 'a_second' => ':count motsotswana', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/nus.php b/vendor/nesbot/carbon/src/Carbon/Lang/nus.php deleted file mode 100644 index 789bc39..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/nus.php +++ /dev/null @@ -1,36 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'meridiem' => ['RW', 'TŊ'], - 'weekdays' => ['Cäŋ kuɔth', 'Jiec la̱t', 'Rɛw lätni', 'Diɔ̱k lätni', 'Ŋuaan lätni', 'Dhieec lätni', 'Bäkɛl lätni'], - 'weekdays_short' => ['Cäŋ', 'Jiec', 'Rɛw', 'Diɔ̱k', 'Ŋuaan', 'Dhieec', 'Bäkɛl'], - 'weekdays_min' => ['Cäŋ', 'Jiec', 'Rɛw', 'Diɔ̱k', 'Ŋuaan', 'Dhieec', 'Bäkɛl'], - 'months' => ['Tiop thar pɛt', 'Pɛt', 'Duɔ̱ɔ̱ŋ', 'Guak', 'Duät', 'Kornyoot', 'Pay yie̱tni', 'Tho̱o̱r', 'Tɛɛr', 'Laath', 'Kur', 'Tio̱p in di̱i̱t'], - 'months_short' => ['Tiop', 'Pɛt', 'Duɔ̱ɔ̱', 'Guak', 'Duä', 'Kor', 'Pay', 'Thoo', 'Tɛɛ', 'Laa', 'Kur', 'Tid'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'h:mm a', - 'LTS' => 'h:mm:ss a', - 'L' => 'D/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY h:mm a', - 'LLLL' => 'dddd D MMMM YYYY h:mm a', - ], - - 'year' => ':count jiök', // less reliable - 'y' => ':count jiök', // less reliable - 'a_year' => ':count jiök', // less reliable - - 'month' => ':count pay', // less reliable - 'm' => ':count pay', // less reliable - 'a_month' => ':count pay', // less reliable -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/nyn.php b/vendor/nesbot/carbon/src/Carbon/Lang/nyn.php deleted file mode 100644 index 8660ea4..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/nyn.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'weekdays' => ['Sande', 'Orwokubanza', 'Orwakabiri', 'Orwakashatu', 'Orwakana', 'Orwakataano', 'Orwamukaaga'], - 'weekdays_short' => ['SAN', 'ORK', 'OKB', 'OKS', 'OKN', 'OKT', 'OMK'], - 'weekdays_min' => ['SAN', 'ORK', 'OKB', 'OKS', 'OKN', 'OKT', 'OMK'], - 'months' => ['Okwokubanza', 'Okwakabiri', 'Okwakashatu', 'Okwakana', 'Okwakataana', 'Okwamukaaga', 'Okwamushanju', 'Okwamunaana', 'Okwamwenda', 'Okwaikumi', 'Okwaikumi na kumwe', 'Okwaikumi na ibiri'], - 'months_short' => ['KBZ', 'KBR', 'KST', 'KKN', 'KTN', 'KMK', 'KMS', 'KMN', 'KMW', 'KKM', 'KNK', 'KNB'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/oc.php b/vendor/nesbot/carbon/src/Carbon/Lang/oc.php deleted file mode 100644 index 858cf77..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/oc.php +++ /dev/null @@ -1,101 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Quentí - * - Quentin PAGÈS - */ -// @codeCoverageIgnoreStart -use Symfony\Component\Translation\PluralizationRules; - -if (class_exists('Symfony\\Component\\Translation\\PluralizationRules')) { - PluralizationRules::set(static function ($number) { - return $number == 1 ? 0 : 1; - }, 'oc'); -} -// @codeCoverageIgnoreEnd - -return [ - 'year' => ':count an|:count ans', - 'a_year' => 'un an|:count ans', - 'y' => ':count an|:count ans', - 'month' => ':count mes|:count meses', - 'a_month' => 'un mes|:count meses', - 'm' => ':count mes|:count meses', - 'week' => ':count setmana|:count setmanas', - 'a_week' => 'una setmana|:count setmanas', - 'w' => ':count setmana|:count setmanas', - 'day' => ':count jorn|:count jorns', - 'a_day' => 'un jorn|:count jorns', - 'd' => ':count jorn|:count jorns', - 'hour' => ':count ora|:count oras', - 'a_hour' => 'una ora|:count oras', - 'h' => ':count ora|:count oras', - 'minute' => ':count minuta|:count minutas', - 'a_minute' => 'una minuta|:count minutas', - 'min' => ':count minuta|:count minutas', - 'second' => ':count segonda|:count segondas', - 'a_second' => 'una segonda|:count segondas', - 's' => ':count segonda|:count segondas', - 'ago' => 'fa :time', - 'from_now' => 'd\'aquí :time', - 'after' => ':time aprèp', - 'before' => ':time abans', - 'diff_now' => 'ara meteis', - 'diff_today' => 'Uèi', - 'diff_today_regexp' => 'Uèi(?:\\s+a)?', - 'diff_yesterday' => 'ièr', - 'diff_yesterday_regexp' => 'Ièr(?:\\s+a)?', - 'diff_tomorrow' => 'deman', - 'diff_tomorrow_regexp' => 'Deman(?:\\s+a)?', - 'diff_before_yesterday' => 'ièr delà', - 'diff_after_tomorrow' => 'deman passat', - 'period_recurrences' => ':count còp|:count còps', - 'period_interval' => 'cada :interval', - 'period_start_date' => 'de :date', - 'period_end_date' => 'fins a :date', - 'formats' => [ - 'LT' => 'H:mm', - 'LTS' => 'H:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM [de] YYYY', - 'LLL' => 'D MMMM [de] YYYY [a] H:mm', - 'LLLL' => 'dddd D MMMM [de] YYYY [a] H:mm', - ], - 'calendar' => [ - 'sameDay' => '[Uèi a] LT', - 'nextDay' => '[Deman a] LT', - 'nextWeek' => 'dddd [a] LT', - 'lastDay' => '[Ièr a] LT', - 'lastWeek' => 'dddd [passat a] LT', - 'sameElse' => 'L', - ], - 'months' => ['de genièr', 'de febrièr', 'de març', 'd\'abrial', 'de mai', 'de junh', 'de julhet', 'd\'agost', 'de setembre', 'd’octòbre', 'de novembre', 'de decembre'], - 'months_standalone' => ['genièr', 'febrièr', 'març', 'abrial', 'mai', 'junh', 'julh', 'agost', 'setembre', 'octòbre', 'novembre', 'decembre'], - 'months_short' => ['gen.', 'feb.', 'març', 'abr.', 'mai', 'junh', 'julh', 'ago.', 'sep.', 'oct.', 'nov.', 'dec.'], - 'weekdays' => ['dimenge', 'diluns', 'dimars', 'dimècres', 'dijòus', 'divendres', 'dissabte'], - 'weekdays_short' => ['dg', 'dl', 'dm', 'dc', 'dj', 'dv', 'ds'], - 'weekdays_min' => ['dg', 'dl', 'dm', 'dc', 'dj', 'dv', 'ds'], - 'ordinal' => static function ($number, string $period = '') { - $ordinal = [1 => 'èr', 2 => 'nd'][(int) $number] ?? 'en'; - - // feminine for week, hour, minute, second - if (preg_match('/^[wWhHgGis]$/', $period)) { - $ordinal .= 'a'; - } - - return $number.$ordinal; - }, - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => [', ', ' e '], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/oc_FR.php b/vendor/nesbot/carbon/src/Carbon/Lang/oc_FR.php deleted file mode 100644 index 01eb5c1..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/oc_FR.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/oc.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/om.php b/vendor/nesbot/carbon/src/Carbon/Lang/om.php deleted file mode 100644 index 3c72dc9..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/om.php +++ /dev/null @@ -1,61 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Ge'ez Frontier Foundation & Sagalee Oromoo Publishing Co. Inc. locales@geez.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'dd-MMM-YYYY', - 'LLL' => 'dd MMMM YYYY HH:mm', - 'LLLL' => 'dddd, MMMM D, YYYY HH:mm', - ], - 'months' => ['Amajjii', 'Guraandhala', 'Bitooteessa', 'Elba', 'Caamsa', 'Waxabajjii', 'Adooleessa', 'Hagayya', 'Fuulbana', 'Onkololeessa', 'Sadaasa', 'Muddee'], - 'months_short' => ['Ama', 'Gur', 'Bit', 'Elb', 'Cam', 'Wax', 'Ado', 'Hag', 'Ful', 'Onk', 'Sad', 'Mud'], - 'weekdays' => ['Dilbata', 'Wiixata', 'Qibxata', 'Roobii', 'Kamiisa', 'Jimaata', 'Sanbata'], - 'weekdays_short' => ['Dil', 'Wix', 'Qib', 'Rob', 'Kam', 'Jim', 'San'], - 'weekdays_min' => ['Dil', 'Wix', 'Qib', 'Rob', 'Kam', 'Jim', 'San'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['WD', 'WB'], - - 'year' => 'wggoota :count', - 'y' => 'wggoota :count', - 'a_year' => 'wggoota :count', - - 'month' => 'ji’a :count', - 'm' => 'ji’a :count', - 'a_month' => 'ji’a :count', - - 'week' => 'torban :count', - 'w' => 'torban :count', - 'a_week' => 'torban :count', - - 'day' => 'guyyaa :count', - 'd' => 'guyyaa :count', - 'a_day' => 'guyyaa :count', - - 'hour' => 'saʼaatii :count', - 'h' => 'saʼaatii :count', - 'a_hour' => 'saʼaatii :count', - - 'minute' => 'daqiiqaa :count', - 'min' => 'daqiiqaa :count', - 'a_minute' => 'daqiiqaa :count', - - 'second' => 'sekoondii :count', - 's' => 'sekoondii :count', - 'a_second' => 'sekoondii :count', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/om_ET.php b/vendor/nesbot/carbon/src/Carbon/Lang/om_ET.php deleted file mode 100644 index 044760e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/om_ET.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/om.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/om_KE.php b/vendor/nesbot/carbon/src/Carbon/Lang/om_KE.php deleted file mode 100644 index f5a4d1c..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/om_KE.php +++ /dev/null @@ -1,14 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/om.php', [ - 'day_of_first_week_of_year' => 0, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/or.php b/vendor/nesbot/carbon/src/Carbon/Lang/or.php deleted file mode 100644 index 3aa7173..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/or.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/or_IN.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/or_IN.php b/vendor/nesbot/carbon/src/Carbon/Lang/or_IN.php deleted file mode 100644 index 57a89f5..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/or_IN.php +++ /dev/null @@ -1,51 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - IBM AP Linux Technology Center, Yamato Software Laboratory bug-glibc@gnu.org - */ -return [ - 'diff_now' => 'ବର୍ତ୍ତମାନ', - 'diff_yesterday' => 'ଗତକାଲି', - 'diff_tomorrow' => 'ଆସନ୍ତାକାଲି', - 'formats' => [ - 'LT' => 'Oh:Om A', - 'LTS' => 'Oh:Om:Os A', - 'L' => 'OD-OM-OY', - 'LL' => 'OD MMMM OY', - 'LLL' => 'OD MMMM OY Oh:Om A', - 'LLLL' => 'dddd OD MMMM OY Oh:Om A', - ], - 'months' => ['ଜାନୁଆରୀ', 'ଫେବୃଆରୀ', 'ମାର୍ଚ୍ଚ', 'ଅପ୍ରେଲ', 'ମଇ', 'ଜୁନ', 'ଜୁଲାଇ', 'ଅଗଷ୍ଟ', 'ସେପ୍ଟେମ୍ବର', 'ଅକ୍ଟୋବର', 'ନଭେମ୍ବର', 'ଡିସେମ୍ବର'], - 'months_short' => ['ଜାନୁଆରୀ', 'ଫେବୃଆରୀ', 'ମାର୍ଚ୍ଚ', 'ଅପ୍ରେଲ', 'ମଇ', 'ଜୁନ', 'ଜୁଲାଇ', 'ଅଗଷ୍ଟ', 'ସେପ୍ଟେମ୍ବର', 'ଅକ୍ଟୋବର', 'ନଭେମ୍ବର', 'ଡିସେମ୍ବର'], - 'weekdays' => ['ରବିବାର', 'ସୋମବାର', 'ମଙ୍ଗଳବାର', 'ବୁଧବାର', 'ଗୁରୁବାର', 'ଶୁକ୍ରବାର', 'ଶନିବାର'], - 'weekdays_short' => ['ରବି', 'ସୋମ', 'ମଙ୍ଗଳ', 'ବୁଧ', 'ଗୁରୁ', 'ଶୁକ୍ର', 'ଶନି'], - 'weekdays_min' => ['ରବି', 'ସୋମ', 'ମଙ୍ଗଳ', 'ବୁଧ', 'ଗୁରୁ', 'ଶୁକ୍ର', 'ଶନି'], - 'day_of_first_week_of_year' => 1, - 'alt_numbers' => ['୦', '୧', '୨', '୩', '୪', '୫', '୬', '୭', '୮', '୯', '୧୦', '୧୧', '୧୨', '୧୩', '୧୪', '୧୫', '୧୬', '୧୭', '୧୮', '୧୯', '୨୦', '୨୧', '୨୨', '୨୩', '୨୪', '୨୫', '୨୬', '୨୭', '୨୮', '୨୯', '୩୦', '୩୧', '୩୨', '୩୩', '୩୪', '୩୫', '୩୬', '୩୭', '୩୮', '୩୯', '୪୦', '୪୧', '୪୨', '୪୩', '୪୪', '୪୫', '୪୬', '୪୭', '୪୮', '୪୯', '୫୦', '୫୧', '୫୨', '୫୩', '୫୪', '୫୫', '୫୬', '୫୭', '୫୮', '୫୯', '୬୦', '୬୧', '୬୨', '୬୩', '୬୪', '୬୫', '୬୬', '୬୭', '୬୮', '୬୯', '୭୦', '୭୧', '୭୨', '୭୩', '୭୪', '୭୫', '୭୬', '୭୭', '୭୮', '୭୯', '୮୦', '୮୧', '୮୨', '୮୩', '୮୪', '୮୫', '୮୬', '୮୭', '୮୮', '୮୯', '୯୦', '୯୧', '୯୨', '୯୩', '୯୪', '୯୫', '୯୬', '୯୭', '୯୮', '୯୯'], - 'year' => ':count ବର୍ଷ', - 'y' => ':count ବ.', - 'month' => ':count ମାସ', - 'm' => ':count ମା.', - 'week' => ':count ସପ୍ତାହ', - 'w' => ':count ସପ୍ତା.', - 'day' => ':count ଦିନ', - 'd' => ':count ଦିନ', - 'hour' => ':count ଘଣ୍ତ', - 'h' => ':count ଘ.', - 'minute' => ':count ମିନଟ', - 'min' => ':count ମି.', - 'second' => ':count ସେକଣ୍ଢ', - 's' => ':count ସେ.', - 'ago' => ':time ପୂର୍ବେ', - 'from_now' => ':timeରେ', -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/os.php b/vendor/nesbot/carbon/src/Carbon/Lang/os.php deleted file mode 100644 index 5f55e8a..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/os.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/os_RU.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/os_RU.php b/vendor/nesbot/carbon/src/Carbon/Lang/os_RU.php deleted file mode 100644 index 9592d15..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/os_RU.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD.MM.YYYY', - ], - 'months' => ['январы', 'февралы', 'мартъийы', 'апрелы', 'майы', 'июны', 'июлы', 'августы', 'сентябры', 'октябры', 'ноябры', 'декабры'], - 'months_short' => ['Янв', 'Фев', 'Мар', 'Апр', 'Май', 'Июн', 'Июл', 'Авг', 'Сен', 'Окт', 'Ноя', 'Дек'], - 'weekdays' => ['Хуыцаубон', 'Къуырисæр', 'Дыццæг', 'Æртыццæг', 'Цыппæрæм', 'Майрæмбон', 'Сабат'], - 'weekdays_short' => ['Хцб', 'Крс', 'Дцг', 'Æрт', 'Цпр', 'Мрб', 'Сбт'], - 'weekdays_min' => ['Хцб', 'Крс', 'Дцг', 'Æрт', 'Цпр', 'Мрб', 'Сбт'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - - 'minute' => ':count гыццыл', // less reliable - 'min' => ':count гыццыл', // less reliable - 'a_minute' => ':count гыццыл', // less reliable - - 'second' => ':count æндæр', // less reliable - 's' => ':count æндæр', // less reliable - 'a_second' => ':count æндæр', // less reliable - - 'year' => ':count аз', - 'y' => ':count аз', - 'a_year' => ':count аз', - - 'month' => ':count мӕй', - 'm' => ':count мӕй', - 'a_month' => ':count мӕй', - - 'week' => ':count къуыри', - 'w' => ':count къуыри', - 'a_week' => ':count къуыри', - - 'day' => ':count бон', - 'd' => ':count бон', - 'a_day' => ':count бон', - - 'hour' => ':count сахат', - 'h' => ':count сахат', - 'a_hour' => ':count сахат', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/pa.php b/vendor/nesbot/carbon/src/Carbon/Lang/pa.php deleted file mode 100644 index 23c2f9e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/pa.php +++ /dev/null @@ -1,76 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Philippe Vaucher - * - Tsutomu Kuroda - * - Punjab - */ -return [ - 'year' => 'ਇੱਕ ਸਾਲ|:count ਸਾਲ', - 'month' => 'ਇੱਕ ਮਹੀਨਾ|:count ਮਹੀਨੇ', - 'week' => 'ਹਫਤਾ|:count ਹਫ਼ਤੇ', - 'day' => 'ਇੱਕ ਦਿਨ|:count ਦਿਨ', - 'hour' => 'ਇੱਕ ਘੰਟਾ|:count ਘੰਟੇ', - 'minute' => 'ਇਕ ਮਿੰਟ|:count ਮਿੰਟ', - 'second' => 'ਕੁਝ ਸਕਿੰਟ|:count ਸਕਿੰਟ', - 'ago' => ':time ਪਹਿਲਾਂ', - 'from_now' => ':time ਵਿੱਚ', - 'before' => ':time ਤੋਂ ਪਹਿਲਾਂ', - 'after' => ':time ਤੋਂ ਬਾਅਦ', - 'diff_now' => 'ਹੁਣ', - 'diff_today' => 'ਅਜ', - 'diff_yesterday' => 'ਕਲ', - 'diff_tomorrow' => 'ਕਲ', - 'formats' => [ - 'LT' => 'A h:mm ਵਜੇ', - 'LTS' => 'A h:mm:ss ਵਜੇ', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY, A h:mm ਵਜੇ', - 'LLLL' => 'dddd, D MMMM YYYY, A h:mm ਵਜੇ', - ], - 'calendar' => [ - 'sameDay' => '[ਅਜ] LT', - 'nextDay' => '[ਕਲ] LT', - 'nextWeek' => '[ਅਗਲਾ] dddd, LT', - 'lastDay' => '[ਕਲ] LT', - 'lastWeek' => '[ਪਿਛਲੇ] dddd, LT', - 'sameElse' => 'L', - ], - 'meridiem' => static function ($hour) { - if ($hour < 4) { - return 'ਰਾਤ'; - } - if ($hour < 10) { - return 'ਸਵੇਰ'; - } - if ($hour < 17) { - return 'ਦੁਪਹਿਰ'; - } - if ($hour < 20) { - return 'ਸ਼ਾਮ'; - } - - return 'ਰਾਤ'; - }, - 'months' => ['ਜਨਵਰੀ', 'ਫ਼ਰਵਰੀ', 'ਮਾਰਚ', 'ਅਪ੍ਰੈਲ', 'ਮਈ', 'ਜੂਨ', 'ਜੁਲਾਈ', 'ਅਗਸਤ', 'ਸਤੰਬਰ', 'ਅਕਤੂਬਰ', 'ਨਵੰਬਰ', 'ਦਸੰਬਰ'], - 'months_short' => ['ਜਨਵਰੀ', 'ਫ਼ਰਵਰੀ', 'ਮਾਰਚ', 'ਅਪ੍ਰੈਲ', 'ਮਈ', 'ਜੂਨ', 'ਜੁਲਾਈ', 'ਅਗਸਤ', 'ਸਤੰਬਰ', 'ਅਕਤੂਬਰ', 'ਨਵੰਬਰ', 'ਦਸੰਬਰ'], - 'weekdays' => ['ਐਤਵਾਰ', 'ਸੋਮਵਾਰ', 'ਮੰਗਲਵਾਰ', 'ਬੁਧਵਾਰ', 'ਵੀਰਵਾਰ', 'ਸ਼ੁੱਕਰਵਾਰ', 'ਸ਼ਨੀਚਰਵਾਰ'], - 'weekdays_short' => ['ਐਤ', 'ਸੋਮ', 'ਮੰਗਲ', 'ਬੁਧ', 'ਵੀਰ', 'ਸ਼ੁਕਰ', 'ਸ਼ਨੀ'], - 'weekdays_min' => ['ਐਤ', 'ਸੋਮ', 'ਮੰਗਲ', 'ਬੁਧ', 'ਵੀਰ', 'ਸ਼ੁਕਰ', 'ਸ਼ਨੀ'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'list' => [', ', ' ਅਤੇ '], - 'weekend' => [0, 0], - 'alt_numbers' => ['੦', '੧', '੨', '੩', '੪', '੫', '੬', '੭', '੮', '੯'], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/pa_Arab.php b/vendor/nesbot/carbon/src/Carbon/Lang/pa_Arab.php deleted file mode 100644 index 39b0653..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/pa_Arab.php +++ /dev/null @@ -1,26 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/ur.php', [ - 'weekdays' => ['اتوار', 'پیر', 'منگل', 'بُدھ', 'جمعرات', 'جمعہ', 'ہفتہ'], - 'weekdays_short' => ['اتوار', 'پیر', 'منگل', 'بُدھ', 'جمعرات', 'جمعہ', 'ہفتہ'], - 'weekdays_min' => ['اتوار', 'پیر', 'منگل', 'بُدھ', 'جمعرات', 'جمعہ', 'ہفتہ'], - 'months' => ['جنوری', 'فروری', 'مارچ', 'اپریل', 'مئ', 'جون', 'جولائی', 'اگست', 'ستمبر', 'اکتوبر', 'نومبر', 'دسمبر'], - 'months_short' => ['جنوری', 'فروری', 'مارچ', 'اپریل', 'مئ', 'جون', 'جولائی', 'اگست', 'ستمبر', 'اکتوبر', 'نومبر', 'دسمبر'], - 'formats' => [ - 'LT' => 'h:mm a', - 'LTS' => 'h:mm:ss a', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY h:mm a', - 'LLLL' => 'dddd, DD MMMM YYYY h:mm a', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/pa_Guru.php b/vendor/nesbot/carbon/src/Carbon/Lang/pa_Guru.php deleted file mode 100644 index 7adff5c..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/pa_Guru.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/pa.php', [ - 'formats' => [ - 'LT' => 'h:mm a', - 'LTS' => 'h:mm:ss a', - 'L' => 'D/M/yy', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY, h:mm a', - 'LLLL' => 'dddd, D MMMM YYYY, h:mm a', - ], - 'months' => ['ਜਨਵਰੀ', 'ਫ਼ਰਵਰੀ', 'ਮਾਰਚ', 'ਅਪ੍ਰੈਲ', 'ਮਈ', 'ਜੂਨ', 'ਜੁਲਾਈ', 'ਅਗਸਤ', 'ਸਤੰਬਰ', 'ਅਕਤੂਬਰ', 'ਨਵੰਬਰ', 'ਦਸੰਬਰ'], - 'months_short' => ['ਜਨ', 'ਫ਼ਰ', 'ਮਾਰਚ', 'ਅਪ੍ਰੈ', 'ਮਈ', 'ਜੂਨ', 'ਜੁਲਾ', 'ਅਗ', 'ਸਤੰ', 'ਅਕਤੂ', 'ਨਵੰ', 'ਦਸੰ'], - 'weekdays' => ['ਐਤਵਾਰ', 'ਸੋਮਵਾਰ', 'ਮੰਗਲਵਾਰ', 'ਬੁੱਧਵਾਰ', 'ਵੀਰਵਾਰ', 'ਸ਼ੁੱਕਰਵਾਰ', 'ਸ਼ਨਿੱਚਰਵਾਰ'], - 'weekdays_short' => ['ਐਤ', 'ਸੋਮ', 'ਮੰਗਲ', 'ਬੁੱਧ', 'ਵੀਰ', 'ਸ਼ੁੱਕਰ', 'ਸ਼ਨਿੱਚਰ'], - 'weekdays_min' => ['ਐਤ', 'ਸੋਮ', 'ਮੰਗ', 'ਬੁੱਧ', 'ਵੀਰ', 'ਸ਼ੁੱਕ', 'ਸ਼ਨਿੱ'], - 'weekend' => [0, 0], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/pa_IN.php b/vendor/nesbot/carbon/src/Carbon/Lang/pa_IN.php deleted file mode 100644 index ca67642..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/pa_IN.php +++ /dev/null @@ -1,19 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Guo Xiang Tan - * - Josh Soref - * - Ash - * - harpreetkhalsagtbit - */ -return require __DIR__.'/pa.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/pa_PK.php b/vendor/nesbot/carbon/src/Carbon/Lang/pa_PK.php deleted file mode 100644 index 494a877..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/pa_PK.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YYYY', - ], - 'months' => ['جنوري', 'فروري', 'مارچ', 'اپريل', 'مٓی', 'جون', 'جولاي', 'اگست', 'ستمبر', 'اكتوبر', 'نومبر', 'دسمبر'], - 'months_short' => ['جنوري', 'فروري', 'مارچ', 'اپريل', 'مٓی', 'جون', 'جولاي', 'اگست', 'ستمبر', 'اكتوبر', 'نومبر', 'دسمبر'], - 'weekdays' => ['اتوار', 'پير', 'منگل', 'بدھ', 'جمعرات', 'جمعه', 'هفته'], - 'weekdays_short' => ['اتوار', 'پير', 'منگل', 'بدھ', 'جمعرات', 'جمعه', 'هفته'], - 'weekdays_min' => ['اتوار', 'پير', 'منگل', 'بدھ', 'جمعرات', 'جمعه', 'هفته'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['ص', 'ش'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/pap.php b/vendor/nesbot/carbon/src/Carbon/Lang/pap.php deleted file mode 100644 index b4c1706..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/pap.php +++ /dev/null @@ -1,39 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return [ - 'formats' => [ - 'LT' => 'HH.mm', - 'LTS' => 'HH.mm:ss', - 'L' => 'DD-MM-YY', - 'LL' => 'MMMM [di] DD, YYYY', - 'LLL' => 'DD MMM HH.mm', - 'LLLL' => 'MMMM DD, YYYY HH.mm', - ], - 'months' => ['yanüari', 'febrüari', 'mart', 'aprel', 'mei', 'yüni', 'yüli', 'ougùstùs', 'sèptèmber', 'oktober', 'novèmber', 'desèmber'], - 'months_short' => ['yan', 'feb', 'mar', 'apr', 'mei', 'yün', 'yül', 'oug', 'sèp', 'okt', 'nov', 'des'], - 'weekdays' => ['djadomingo', 'djaluna', 'djamars', 'djawebs', 'djarason', 'djabierne', 'djasabra'], - 'weekdays_short' => ['do', 'lu', 'ma', 'we', 'ra', 'bi', 'sa'], - 'weekdays_min' => ['do', 'lu', 'ma', 'we', 'ra', 'bi', 'sa'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'year' => ':count aña', - 'month' => ':count luna', - 'week' => ':count siman', - 'day' => ':count dia', - 'hour' => ':count ora', - 'minute' => ':count minüt', - 'second' => ':count sekònde', - 'list' => [', ', ' i '], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/pap_AW.php b/vendor/nesbot/carbon/src/Carbon/Lang/pap_AW.php deleted file mode 100644 index e9a48ff..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/pap_AW.php +++ /dev/null @@ -1,16 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - information from native speaker Pablo Saratxaga pablo@mandrakesoft.com - */ -return require __DIR__.'/pap.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/pap_CW.php b/vendor/nesbot/carbon/src/Carbon/Lang/pap_CW.php deleted file mode 100644 index e9a48ff..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/pap_CW.php +++ /dev/null @@ -1,16 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - information from native speaker Pablo Saratxaga pablo@mandrakesoft.com - */ -return require __DIR__.'/pap.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/pl.php b/vendor/nesbot/carbon/src/Carbon/Lang/pl.php deleted file mode 100644 index 35381f3..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/pl.php +++ /dev/null @@ -1,113 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Wacław Jacek - * - François B - * - Tim Fish - * - Serhan Apaydın - * - Massimiliano Caniparoli - * - JD Isaacks - * - Jakub Szwacz - * - Jan - * - Paul - * - damlys - * - Marek (marast78) - * - Peter (UnrulyNatives) - * - Qrzysio - * - Jan (aso824) - * - diverpl - */ - -use Carbon\CarbonInterface; - -return [ - 'year' => ':count rok|:count lata|:count lat', - 'a_year' => 'rok|:count lata|:count lat', - 'y' => ':count r|:count l|:count l', - 'month' => ':count miesiąc|:count miesiące|:count miesięcy', - 'a_month' => 'miesiąc|:count miesiące|:count miesięcy', - 'm' => ':count mies.', - 'week' => ':count tydzień|:count tygodnie|:count tygodni', - 'a_week' => 'tydzień|:count tygodnie|:count tygodni', - 'w' => ':count tyg.', - 'day' => ':count dzień|:count dni|:count dni', - 'a_day' => 'dzień|:count dni|:count dni', - 'd' => ':count d', - 'hour' => ':count godzina|:count godziny|:count godzin', - 'a_hour' => 'godzina|:count godziny|:count godzin', - 'h' => ':count godz.', - 'minute' => ':count minuta|:count minuty|:count minut', - 'a_minute' => 'minuta|:count minuty|:count minut', - 'min' => ':count min', - 'second' => ':count sekunda|:count sekundy|:count sekund', - 'a_second' => '{1}kilka sekund|:count sekunda|:count sekundy|:count sekund', - 's' => ':count sek.', - 'ago' => ':time temu', - 'from_now' => static function ($time) { - return 'za '.strtr($time, [ - 'godzina' => 'godzinę', - 'minuta' => 'minutę', - 'sekunda' => 'sekundę', - ]); - }, - 'after' => ':time po', - 'before' => ':time przed', - 'diff_now' => 'teraz', - 'diff_today' => 'Dziś', - 'diff_today_regexp' => 'Dziś(?:\\s+o)?', - 'diff_yesterday' => 'wczoraj', - 'diff_yesterday_regexp' => 'Wczoraj(?:\\s+o)?', - 'diff_tomorrow' => 'jutro', - 'diff_tomorrow_regexp' => 'Jutro(?:\\s+o)?', - 'diff_before_yesterday' => 'przedwczoraj', - 'diff_after_tomorrow' => 'pojutrze', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD.MM.YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[Dziś o] LT', - 'nextDay' => '[Jutro o] LT', - 'nextWeek' => static fn (CarbonInterface $date) => match ($date->dayOfWeek) { - 0 => '[W niedzielę o] LT', - 2 => '[We wtorek o] LT', - 3 => '[W środę o] LT', - 6 => '[W sobotę o] LT', - default => '[W] dddd [o] LT', - }, - 'lastDay' => '[Wczoraj o] LT', - 'lastWeek' => static fn (CarbonInterface $date) => match ($date->dayOfWeek) { - 0 => '[W zeszłą niedzielę o] LT', - 3 => '[W zeszłą środę o] LT', - 6 => '[W zeszłą sobotę o] LT', - default => '[W zeszły] dddd [o] LT', - }, - 'sameElse' => 'L', - ], - 'ordinal' => ':number.', - 'months' => ['stycznia', 'lutego', 'marca', 'kwietnia', 'maja', 'czerwca', 'lipca', 'sierpnia', 'września', 'października', 'listopada', 'grudnia'], - 'months_standalone' => ['styczeń', 'luty', 'marzec', 'kwiecień', 'maj', 'czerwiec', 'lipiec', 'sierpień', 'wrzesień', 'październik', 'listopad', 'grudzień'], - 'months_short' => ['sty', 'lut', 'mar', 'kwi', 'maj', 'cze', 'lip', 'sie', 'wrz', 'paź', 'lis', 'gru'], - 'months_regexp' => '/(DD?o?\.?(\[[^\[\]]*\]|\s)+MMMM?|L{2,4}|l{2,4})/', - 'weekdays' => ['niedziela', 'poniedziałek', 'wtorek', 'środa', 'czwartek', 'piątek', 'sobota'], - 'weekdays_short' => ['ndz', 'pon', 'wt', 'śr', 'czw', 'pt', 'sob'], - 'weekdays_min' => ['Nd', 'Pn', 'Wt', 'Śr', 'Cz', 'Pt', 'So'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => [', ', ' i '], - 'meridiem' => ['przed południem', 'po południu'], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/pl_PL.php b/vendor/nesbot/carbon/src/Carbon/Lang/pl_PL.php deleted file mode 100644 index 222bcdb..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/pl_PL.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/pl.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/prg.php b/vendor/nesbot/carbon/src/Carbon/Lang/prg.php deleted file mode 100644 index 6e63f4a..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/prg.php +++ /dev/null @@ -1,52 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'months' => ['M01', 'M02', 'M03', 'M04', 'M05', 'M06', 'M07', 'M08', 'M09', 'M10', 'M11', 'M12'], - 'months_short' => ['M01', 'M02', 'M03', 'M04', 'M05', 'M06', 'M07', 'M08', 'M09', 'M10', 'M11', 'M12'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'YYYY-MM-dd', - 'LL' => 'YYYY MMM D', - 'LLL' => 'YYYY MMMM D HH:mm', - 'LLLL' => 'YYYY MMMM D, dddd HH:mm', - ], - - 'year' => ':count meta', - 'y' => ':count meta', - 'a_year' => ':count meta', - - 'month' => ':count mēniks', // less reliable - 'm' => ':count mēniks', // less reliable - 'a_month' => ':count mēniks', // less reliable - - 'week' => ':count sawaītin', // less reliable - 'w' => ':count sawaītin', // less reliable - 'a_week' => ':count sawaītin', // less reliable - - 'day' => ':count di', - 'd' => ':count di', - 'a_day' => ':count di', - - 'hour' => ':count bruktēt', // less reliable - 'h' => ':count bruktēt', // less reliable - 'a_hour' => ':count bruktēt', // less reliable - - 'minute' => ':count līkuts', // less reliable - 'min' => ':count līkuts', // less reliable - 'a_minute' => ':count līkuts', // less reliable - - 'second' => ':count kitan', // less reliable - 's' => ':count kitan', // less reliable - 'a_second' => ':count kitan', // less reliable -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ps.php b/vendor/nesbot/carbon/src/Carbon/Lang/ps.php deleted file mode 100644 index a928b28..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ps.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Muhammad Nasir Rahimi - * - Nassim Nasibullah (spinzar) - */ -return [ - 'year' => ':count کال|:count کاله', - 'y' => ':countکال|:countکاله', - 'month' => ':count مياشت|:count مياشتي', - 'm' => ':countمياشت|:countمياشتي', - 'week' => ':count اونۍ|:count اونۍ', - 'w' => ':countاونۍ|:countاونۍ', - 'day' => ':count ورځ|:count ورځي', - 'd' => ':countورځ|:countورځي', - 'hour' => ':count ساعت|:count ساعته', - 'h' => ':countساعت|:countساعته', - 'minute' => ':count دقيقه|:count دقيقې', - 'min' => ':countدقيقه|:countدقيقې', - 'second' => ':count ثانيه|:count ثانيې', - 's' => ':countثانيه|:countثانيې', - 'ago' => ':time دمخه', - 'from_now' => ':time له اوس څخه', - 'after' => ':time وروسته', - 'before' => ':time دمخه', - 'list' => ['، ', ' او '], - 'meridiem' => ['غ.م.', 'غ.و.'], - 'weekdays' => ['اتوار', 'ګل', 'نهه', 'شورو', 'زيارت', 'جمعه', 'خالي'], - 'weekdays_short' => ['ا', 'ګ', 'ن', 'ش', 'ز', 'ج', 'خ'], - 'weekdays_min' => ['ا', 'ګ', 'ن', 'ش', 'ز', 'ج', 'خ'], - 'months' => ['جنوري', 'فبروري', 'مارچ', 'اپریل', 'مۍ', 'جون', 'جولای', 'اگست', 'سېپتمبر', 'اکتوبر', 'نومبر', 'دسمبر'], - 'months_short' => ['جنوري', 'فبروري', 'مارچ', 'اپریل', 'مۍ', 'جون', 'جولای', 'اگست', 'سېپتمبر', 'اکتوبر', 'نومبر', 'دسمبر'], - 'months_standalone' => ['جنوري', 'فېبروري', 'مارچ', 'اپریل', 'مۍ', 'جون', 'جولای', 'اگست', 'سپتمبر', 'اکتوبر', 'نومبر', 'دسمبر'], - 'months_short_standalone' => ['جنوري', 'فبروري', 'مارچ', 'اپریل', 'مۍ', 'جون', 'جولای', 'اگست', 'سپتمبر', 'اکتوبر', 'نومبر', 'دسمبر'], - 'first_day_of_week' => 6, - 'weekend' => [4, 5], - 'formats' => [ - 'LT' => 'H:mm', - 'LTS' => 'H:mm:ss', - 'L' => 'YYYY/M/d', - 'LL' => 'YYYY MMM D', - 'LLL' => 'د YYYY د MMMM D H:mm', - 'LLLL' => 'dddd د YYYY د MMMM D H:mm', - ], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ps_AF.php b/vendor/nesbot/carbon/src/Carbon/Lang/ps_AF.php deleted file mode 100644 index 6ec5180..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ps_AF.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/ps.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/pt.php b/vendor/nesbot/carbon/src/Carbon/Lang/pt.php deleted file mode 100644 index 85dbddc..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/pt.php +++ /dev/null @@ -1,111 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Cassiano Montanari - * - Matt Pope - * - François B - * - Prodis - * - JD Isaacks - * - Raphael Amorim - * - João Magalhães - * - victortobias - * - Paulo Freitas - * - Sebastian Thierer - * - Claudson Martins (claudsonm) - */ - -use Carbon\CarbonInterface; - -return [ - 'year' => ':count ano|:count anos', - 'a_year' => 'um ano|:count anos', - 'y' => ':counta', - 'month' => ':count mês|:count meses', - 'a_month' => 'um mês|:count meses', - 'm' => ':countm', - 'week' => ':count semana|:count semanas', - 'a_week' => 'uma semana|:count semanas', - 'w' => ':countsem', - 'day' => ':count dia|:count dias', - 'a_day' => 'um dia|:count dias', - 'd' => ':countd', - 'hour' => ':count hora|:count horas', - 'a_hour' => 'uma hora|:count horas', - 'h' => ':counth', - 'minute' => ':count minuto|:count minutos', - 'a_minute' => 'um minuto|:count minutos', - 'min' => ':countmin', - 'second' => ':count segundo|:count segundos', - 'a_second' => 'alguns segundos|:count segundos', - 's' => ':counts', - 'millisecond' => ':count milissegundo|:count milissegundos', - 'a_millisecond' => 'um milissegundo|:count milissegundos', - 'ms' => ':countms', - 'microsecond' => ':count microssegundo|:count microssegundos', - 'a_microsecond' => 'um microssegundo|:count microssegundos', - 'µs' => ':countµs', - 'ago' => 'há :time', - 'from_now' => 'em :time', - 'after' => ':time depois', - 'before' => ':time antes', - 'diff_now' => 'agora', - 'diff_today' => 'Hoje', - 'diff_today_regexp' => 'Hoje(?:\\s+às)?', - 'diff_yesterday' => 'ontem', - 'diff_yesterday_regexp' => 'Ontem(?:\\s+às)?', - 'diff_tomorrow' => 'amanhã', - 'diff_tomorrow_regexp' => 'Amanhã(?:\\s+às)?', - 'diff_before_yesterday' => 'anteontem', - 'diff_after_tomorrow' => 'depois de amanhã', - 'period_recurrences' => 'uma vez|:count vezes', - 'period_interval' => 'cada :interval', - 'period_start_date' => 'de :date', - 'period_end_date' => 'até :date', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D [de] MMMM [de] YYYY', - 'LLL' => 'D [de] MMMM [de] YYYY HH:mm', - 'LLLL' => 'dddd, D [de] MMMM [de] YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[Hoje às] LT', - 'nextDay' => '[Amanhã às] LT', - 'nextWeek' => 'dddd [às] LT', - 'lastDay' => '[Ontem às] LT', - 'lastWeek' => static fn (CarbonInterface $date) => match ($date->dayOfWeek) { - 0, 6 => '[Último] dddd [às] LT', - default => '[Última] dddd [às] LT', - }, - 'sameElse' => 'L', - ], - 'ordinal' => ':numberº', - 'months' => ['janeiro', 'fevereiro', 'março', 'abril', 'maio', 'junho', 'julho', 'agosto', 'setembro', 'outubro', 'novembro', 'dezembro'], - 'months_short' => ['jan', 'fev', 'mar', 'abr', 'mai', 'jun', 'jul', 'ago', 'set', 'out', 'nov', 'dez'], - 'weekdays' => ['domingo', 'segunda-feira', 'terça-feira', 'quarta-feira', 'quinta-feira', 'sexta-feira', 'sábado'], - 'weekdays_short' => ['dom', 'seg', 'ter', 'qua', 'qui', 'sex', 'sáb'], - 'weekdays_min' => ['Do', '2ª', '3ª', '4ª', '5ª', '6ª', 'Sá'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => [', ', ' e '], - 'ordinal_words' => [ - 'of' => 'de', - 'first' => 'primeira', - 'second' => 'segunda', - 'third' => 'terceira', - 'fourth' => 'quarta', - 'fifth' => 'quinta', - 'last' => 'última', - ], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/pt_AO.php b/vendor/nesbot/carbon/src/Carbon/Lang/pt_AO.php deleted file mode 100644 index 22c01ec..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/pt_AO.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/pt.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/pt_BR.php b/vendor/nesbot/carbon/src/Carbon/Lang/pt_BR.php deleted file mode 100644 index e917c5c..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/pt_BR.php +++ /dev/null @@ -1,39 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Cassiano Montanari - * - Eduardo Dalla Vecchia - * - David Rodrigues - * - Matt Pope - * - François B - * - Prodis - * - Marlon Maxwel - * - JD Isaacks - * - Raphael Amorim - * - Rafael Raupp - * - felipeleite1 - * - swalker - * - Lucas Macedo - * - Paulo Freitas - * - Sebastian Thierer - */ -return array_replace_recursive(require __DIR__.'/pt.php', [ - 'period_recurrences' => 'uma|:count vez', - 'period_interval' => 'toda :interval', - 'formats' => [ - 'LLL' => 'D [de] MMMM [de] YYYY [às] HH:mm', - 'LLLL' => 'dddd, D [de] MMMM [de] YYYY [às] HH:mm', - ], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/pt_CH.php b/vendor/nesbot/carbon/src/Carbon/Lang/pt_CH.php deleted file mode 100644 index 22c01ec..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/pt_CH.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/pt.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/pt_CV.php b/vendor/nesbot/carbon/src/Carbon/Lang/pt_CV.php deleted file mode 100644 index 22c01ec..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/pt_CV.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/pt.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/pt_GQ.php b/vendor/nesbot/carbon/src/Carbon/Lang/pt_GQ.php deleted file mode 100644 index 22c01ec..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/pt_GQ.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/pt.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/pt_GW.php b/vendor/nesbot/carbon/src/Carbon/Lang/pt_GW.php deleted file mode 100644 index 22c01ec..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/pt_GW.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/pt.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/pt_LU.php b/vendor/nesbot/carbon/src/Carbon/Lang/pt_LU.php deleted file mode 100644 index 22c01ec..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/pt_LU.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/pt.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/pt_MO.php b/vendor/nesbot/carbon/src/Carbon/Lang/pt_MO.php deleted file mode 100644 index f2b5eab..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/pt_MO.php +++ /dev/null @@ -1,20 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/pt.php', [ - 'formats' => [ - 'LT' => 'h:mm a', - 'LTS' => 'h:mm:ss a', - 'LLL' => 'D [de] MMMM [de] YYYY, h:mm a', - 'LLLL' => 'dddd, D [de] MMMM [de] YYYY, h:mm a', - ], - 'first_day_of_week' => 0, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/pt_MZ.php b/vendor/nesbot/carbon/src/Carbon/Lang/pt_MZ.php deleted file mode 100644 index fbc0c97..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/pt_MZ.php +++ /dev/null @@ -1,14 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/pt.php', [ - 'first_day_of_week' => 0, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/pt_PT.php b/vendor/nesbot/carbon/src/Carbon/Lang/pt_PT.php deleted file mode 100644 index 2a76fc1..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/pt_PT.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - RAP bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/pt.php', [ - 'formats' => [ - 'L' => 'DD/MM/YYYY', - ], - 'months' => ['janeiro', 'fevereiro', 'março', 'abril', 'maio', 'junho', 'julho', 'agosto', 'setembro', 'outubro', 'novembro', 'dezembro'], - 'months_short' => ['jan', 'fev', 'mar', 'abr', 'mai', 'jun', 'jul', 'ago', 'set', 'out', 'nov', 'dez'], - 'weekdays' => ['domingo', 'segunda', 'terça', 'quarta', 'quinta', 'sexta', 'sábado'], - 'weekdays_short' => ['dom', 'seg', 'ter', 'qua', 'qui', 'sex', 'sáb'], - 'weekdays_min' => ['dom', 'seg', 'ter', 'qua', 'qui', 'sex', 'sáb'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/pt_ST.php b/vendor/nesbot/carbon/src/Carbon/Lang/pt_ST.php deleted file mode 100644 index 22c01ec..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/pt_ST.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/pt.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/pt_TL.php b/vendor/nesbot/carbon/src/Carbon/Lang/pt_TL.php deleted file mode 100644 index 22c01ec..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/pt_TL.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/pt.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/qu.php b/vendor/nesbot/carbon/src/Carbon/Lang/qu.php deleted file mode 100644 index 65278cd..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/qu.php +++ /dev/null @@ -1,22 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/es_UY.php', [ - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM, YYYY HH:mm', - ], - 'first_day_of_week' => 0, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/qu_BO.php b/vendor/nesbot/carbon/src/Carbon/Lang/qu_BO.php deleted file mode 100644 index d5db6bf..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/qu_BO.php +++ /dev/null @@ -1,14 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/qu.php', [ - 'first_day_of_week' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/qu_EC.php b/vendor/nesbot/carbon/src/Carbon/Lang/qu_EC.php deleted file mode 100644 index d5db6bf..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/qu_EC.php +++ /dev/null @@ -1,14 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/qu.php', [ - 'first_day_of_week' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/quz.php b/vendor/nesbot/carbon/src/Carbon/Lang/quz.php deleted file mode 100644 index 1640c02..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/quz.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/quz_PE.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/quz_PE.php b/vendor/nesbot/carbon/src/Carbon/Lang/quz_PE.php deleted file mode 100644 index b047e59..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/quz_PE.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Sugar Labs // OLPC sugarlabs.org libc-alpha@sourceware.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YY', - ], - 'months' => ['iniru', 'phiwriru', 'marsu', 'awril', 'mayu', 'huniyu', 'huliyu', 'agustu', 'siptiyimri', 'uktuwri', 'nuwiyimri', 'tisiyimri'], - 'months_short' => ['ini', 'phi', 'mar', 'awr', 'may', 'hun', 'hul', 'agu', 'sip', 'ukt', 'nuw', 'tis'], - 'weekdays' => ['tuminku', 'lunis', 'martis', 'miyirkulis', 'juywis', 'wiyirnis', 'sawatu'], - 'weekdays_short' => ['tum', 'lun', 'mar', 'miy', 'juy', 'wiy', 'saw'], - 'weekdays_min' => ['tum', 'lun', 'mar', 'miy', 'juy', 'wiy', 'saw'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - - 'minute' => ':count uchuy', // less reliable - 'min' => ':count uchuy', // less reliable - 'a_minute' => ':count uchuy', // less reliable - - 'year' => ':count wata', - 'y' => ':count wata', - 'a_year' => ':count wata', - - 'month' => ':count killa', - 'm' => ':count killa', - 'a_month' => ':count killa', - - 'week' => ':count simana', - 'w' => ':count simana', - 'a_week' => ':count simana', - - 'day' => ':count pʼunchaw', - 'd' => ':count pʼunchaw', - 'a_day' => ':count pʼunchaw', - - 'hour' => ':count ura', - 'h' => ':count ura', - 'a_hour' => ':count ura', - - 'second' => ':count iskay ñiqin', - 's' => ':count iskay ñiqin', - 'a_second' => ':count iskay ñiqin', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/raj.php b/vendor/nesbot/carbon/src/Carbon/Lang/raj.php deleted file mode 100644 index 26138c9..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/raj.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/raj_IN.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/raj_IN.php b/vendor/nesbot/carbon/src/Carbon/Lang/raj_IN.php deleted file mode 100644 index 4a9f0b9..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/raj_IN.php +++ /dev/null @@ -1,48 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - meghrajsuthar03@gmail.com - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'D/M/YY', - ], - 'months' => ['जनवरी', 'फरवरी', 'मार्च', 'अप्रैल', 'मई', 'जून', 'जुलाई', 'अगस्त', 'सितंबर', 'अक्टूबर', 'नवंबर', 'दिसंबर'], - 'months_short' => ['जन', 'फर', 'मार्च', 'अप्रै', 'मई', 'जून', 'जुल', 'अग', 'सित', 'अक्टू', 'नव', 'दिस'], - 'weekdays' => ['रविवार', 'सोमवार', 'मंगल्लवार', 'बुधवार', 'बृहस्पतिवार', 'शुक्रवार', 'शनिवार'], - 'weekdays_short' => ['रवि', 'सोम', 'मंगल', 'बुध', 'बृहस्पति', 'शुक्र', 'शनि'], - 'weekdays_min' => ['रवि', 'सोम', 'मंगल', 'बुध', 'बृहस्पति', 'शुक्र', 'शनि'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['पूर्वाह्न', 'अपराह्न'], - - 'year' => ':count आंहू', // less reliable - 'y' => ':count आंहू', // less reliable - 'a_year' => ':count आंहू', // less reliable - - 'month' => ':count सूरज', // less reliable - 'm' => ':count सूरज', // less reliable - 'a_month' => ':count सूरज', // less reliable - - 'week' => ':count निवाज', // less reliable - 'w' => ':count निवाज', // less reliable - 'a_week' => ':count निवाज', // less reliable - - 'day' => ':count अेक', // less reliable - 'd' => ':count अेक', // less reliable - 'a_day' => ':count अेक', // less reliable - - 'hour' => ':count दुनियांण', // less reliable - 'h' => ':count दुनियांण', // less reliable - 'a_hour' => ':count दुनियांण', // less reliable -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/rm.php b/vendor/nesbot/carbon/src/Carbon/Lang/rm.php deleted file mode 100644 index 1843f45..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/rm.php +++ /dev/null @@ -1,51 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Philippe Vaucher - * - tjku - * - Max Melentiev - * - Juanito Fatas - * - Tsutomu Kuroda - * - Akira Matsuda - * - Christopher Dell - * - Enrique Vidal - * - Simone Carletti - * - Aaron Patterson - * - Nicolás Hock Isaza - * - sebastian de castelberg - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD.MM.YYYY', - 'LL' => 'Do MMMM YYYY', - 'LLL' => 'Do MMMM, HH:mm [Uhr]', - 'LLLL' => 'dddd, Do MMMM YYYY, HH:mm [Uhr]', - ], - 'year' => ':count onn|:count onns', - 'month' => ':count mais', - 'week' => ':count emna|:count emnas', - 'day' => ':count di|:count dis', - 'hour' => ':count oura|:count ouras', - 'minute' => ':count minuta|:count minutas', - 'second' => ':count secunda|:count secundas', - 'weekdays' => ['dumengia', 'glindesdi', 'mardi', 'mesemna', 'gievgia', 'venderdi', 'sonda'], - 'weekdays_short' => ['du', 'gli', 'ma', 'me', 'gie', 've', 'so'], - 'weekdays_min' => ['du', 'gli', 'ma', 'me', 'gie', 've', 'so'], - 'months' => ['schaner', 'favrer', 'mars', 'avrigl', 'matg', 'zercladur', 'fanadur', 'avust', 'settember', 'october', 'november', 'december'], - 'months_short' => ['schan', 'favr', 'mars', 'avr', 'matg', 'zercl', 'fan', 'avust', 'sett', 'oct', 'nov', 'dec'], - 'meridiem' => ['avantmezdi', 'suentermezdi'], - 'list' => [', ', ' e '], - 'first_day_of_week' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/rn.php b/vendor/nesbot/carbon/src/Carbon/Lang/rn.php deleted file mode 100644 index 8ab958e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/rn.php +++ /dev/null @@ -1,56 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'meridiem' => ['Z.MU.', 'Z.MW.'], - 'weekdays' => ['Ku w’indwi', 'Ku wa mbere', 'Ku wa kabiri', 'Ku wa gatatu', 'Ku wa kane', 'Ku wa gatanu', 'Ku wa gatandatu'], - 'weekdays_short' => ['cu.', 'mbe.', 'kab.', 'gtu.', 'kan.', 'gnu.', 'gnd.'], - 'weekdays_min' => ['cu.', 'mbe.', 'kab.', 'gtu.', 'kan.', 'gnu.', 'gnd.'], - 'months' => ['Nzero', 'Ruhuhuma', 'Ntwarante', 'Ndamukiza', 'Rusama', 'Ruheshi', 'Mukakaro', 'Nyandagaro', 'Nyakanga', 'Gitugutu', 'Munyonyo', 'Kigarama'], - 'months_short' => ['Mut.', 'Gas.', 'Wer.', 'Mat.', 'Gic.', 'Kam.', 'Nya.', 'Kan.', 'Nze.', 'Ukw.', 'Ugu.', 'Uku.'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'D/M/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], - - 'year' => 'imyaka :count', - 'y' => 'imyaka :count', - 'a_year' => 'imyaka :count', - - 'month' => 'amezi :count', - 'm' => 'amezi :count', - 'a_month' => 'amezi :count', - - 'week' => 'indwi :count', - 'w' => 'indwi :count', - 'a_week' => 'indwi :count', - - 'day' => 'imisi :count', - 'd' => 'imisi :count', - 'a_day' => 'imisi :count', - - 'hour' => 'amasaha :count', - 'h' => 'amasaha :count', - 'a_hour' => 'amasaha :count', - - 'minute' => 'iminuta :count', - 'min' => 'iminuta :count', - 'a_minute' => 'iminuta :count', - - 'second' => 'inguvu :count', // less reliable - 's' => 'inguvu :count', // less reliable - 'a_second' => 'inguvu :count', // less reliable -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ro.php b/vendor/nesbot/carbon/src/Carbon/Lang/ro.php deleted file mode 100644 index 868a327..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ro.php +++ /dev/null @@ -1,77 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Josh Soref - * - JD Isaacks - * - Cătălin Georgescu - * - Valentin Ivaşcu (oriceon) - */ -return [ - 'year' => ':count an|:count ani|:count ani', - 'a_year' => 'un an|:count ani|:count ani', - 'y' => ':count a.', - 'month' => ':count lună|:count luni|:count luni', - 'a_month' => 'o lună|:count luni|:count luni', - 'm' => ':count l.', - 'week' => ':count săptămână|:count săptămâni|:count săptămâni', - 'a_week' => 'o săptămână|:count săptămâni|:count săptămâni', - 'w' => ':count săp.', - 'day' => ':count zi|:count zile|:count zile', - 'a_day' => 'o zi|:count zile|:count zile', - 'd' => ':count z.', - 'hour' => ':count oră|:count ore|:count ore', - 'a_hour' => 'o oră|:count ore|:count ore', - 'h' => ':count o.', - 'minute' => ':count minut|:count minute|:count minute', - 'a_minute' => 'un minut|:count minute|:count minute', - 'min' => ':count m.', - 'second' => ':count secundă|:count secunde|:count secunde', - 'a_second' => 'câteva secunde|:count secunde|:count secunde', - 's' => ':count sec.', - 'ago' => ':time în urmă', - 'from_now' => 'peste :time', - 'after' => 'peste :time', - 'before' => 'acum :time', - 'diff_now' => 'acum', - 'diff_today' => 'azi', - 'diff_today_regexp' => 'azi(?:\\s+la)?', - 'diff_yesterday' => 'ieri', - 'diff_yesterday_regexp' => 'ieri(?:\\s+la)?', - 'diff_tomorrow' => 'mâine', - 'diff_tomorrow_regexp' => 'mâine(?:\\s+la)?', - 'formats' => [ - 'LT' => 'H:mm', - 'LTS' => 'H:mm:ss', - 'L' => 'DD.MM.YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY H:mm', - 'LLLL' => 'dddd, D MMMM YYYY H:mm', - ], - 'calendar' => [ - 'sameDay' => '[azi la] LT', - 'nextDay' => '[mâine la] LT', - 'nextWeek' => 'dddd [la] LT', - 'lastDay' => '[ieri la] LT', - 'lastWeek' => '[fosta] dddd [la] LT', - 'sameElse' => 'L', - ], - 'months' => ['ianuarie', 'februarie', 'martie', 'aprilie', 'mai', 'iunie', 'iulie', 'august', 'septembrie', 'octombrie', 'noiembrie', 'decembrie'], - 'months_short' => ['ian.', 'feb.', 'mar.', 'apr.', 'mai', 'iun.', 'iul.', 'aug.', 'sept.', 'oct.', 'nov.', 'dec.'], - 'weekdays' => ['duminică', 'luni', 'marți', 'miercuri', 'joi', 'vineri', 'sâmbătă'], - 'weekdays_short' => ['dum', 'lun', 'mar', 'mie', 'joi', 'vin', 'sâm'], - 'weekdays_min' => ['du', 'lu', 'ma', 'mi', 'jo', 'vi', 'sâ'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'list' => [', ', ' și '], - 'meridiem' => ['a.m.', 'p.m.'], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ro_MD.php b/vendor/nesbot/carbon/src/Carbon/Lang/ro_MD.php deleted file mode 100644 index ad1d2fa..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ro_MD.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/ro.php', [ - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD.MM.YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY, HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY, HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ro_RO.php b/vendor/nesbot/carbon/src/Carbon/Lang/ro_RO.php deleted file mode 100644 index 102afcd..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ro_RO.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/ro.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/rof.php b/vendor/nesbot/carbon/src/Carbon/Lang/rof.php deleted file mode 100644 index 205fc26..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/rof.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'meridiem' => ['kang’ama', 'kingoto'], - 'weekdays' => ['Ijumapili', 'Ijumatatu', 'Ijumanne', 'Ijumatano', 'Alhamisi', 'Ijumaa', 'Ijumamosi'], - 'weekdays_short' => ['Ijp', 'Ijt', 'Ijn', 'Ijtn', 'Alh', 'Iju', 'Ijm'], - 'weekdays_min' => ['Ijp', 'Ijt', 'Ijn', 'Ijtn', 'Alh', 'Iju', 'Ijm'], - 'months' => ['Mweri wa kwanza', 'Mweri wa kaili', 'Mweri wa katatu', 'Mweri wa kaana', 'Mweri wa tanu', 'Mweri wa sita', 'Mweri wa saba', 'Mweri wa nane', 'Mweri wa tisa', 'Mweri wa ikumi', 'Mweri wa ikumi na moja', 'Mweri wa ikumi na mbili'], - 'months_short' => ['M1', 'M2', 'M3', 'M4', 'M5', 'M6', 'M7', 'M8', 'M9', 'M10', 'M11', 'M12'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ru.php b/vendor/nesbot/carbon/src/Carbon/Lang/ru.php deleted file mode 100644 index 671e619..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ru.php +++ /dev/null @@ -1,174 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Bari Badamshin - * - Jørn Ølmheim - * - François B - * - Tim Fish - * - Коренберг Марк (imac) - * - Serhan Apaydın - * - RomeroMsk - * - vsn4ik - * - JD Isaacks - * - Bari Badamshin - * - Jørn Ølmheim - * - François B - * - Коренберг Марк (imac) - * - Serhan Apaydın - * - RomeroMsk - * - vsn4ik - * - JD Isaacks - * - Fellzo - * - andrey-helldar - * - Pavel Skripkin (psxx) - * - AlexWalkerson - * - Vladislav UnsealedOne - * - dima-bzz - */ - -use Carbon\CarbonInterface; - -$transformDiff = static fn (string $input) => strtr($input, [ - 'неделя' => 'неделю', - 'секунда' => 'секунду', - 'минута' => 'минуту', -]); - -return [ - 'year' => ':count год|:count года|:count лет', - 'y' => ':count г.|:count г.|:count л.', - 'a_year' => '{1}год|:count год|:count года|:count лет', - 'month' => ':count месяц|:count месяца|:count месяцев', - 'm' => ':count мес.', - 'a_month' => '{1}месяц|:count месяц|:count месяца|:count месяцев', - 'week' => ':count неделя|:count недели|:count недель', - 'w' => ':count нед.', - 'a_week' => '{1}неделя|:count неделю|:count недели|:count недель', - 'day' => ':count день|:count дня|:count дней', - 'd' => ':count д.', - 'a_day' => '{1}день|:count день|:count дня|:count дней', - 'hour' => ':count час|:count часа|:count часов', - 'h' => ':count ч.', - 'a_hour' => '{1}час|:count час|:count часа|:count часов', - 'minute' => ':count минута|:count минуты|:count минут', - 'min' => ':count мин.', - 'a_minute' => '{1}минута|:count минута|:count минуты|:count минут', - 'second' => ':count секунда|:count секунды|:count секунд', - 's' => ':count сек.', - 'a_second' => '{1}несколько секунд|:count секунду|:count секунды|:count секунд', - 'ago' => static fn (string $time) => $transformDiff($time).' назад', - 'from_now' => static fn (string $time) => 'через '.$transformDiff($time), - 'after' => static fn (string $time) => $transformDiff($time).' после', - 'before' => static fn (string $time) => $transformDiff($time).' до', - 'diff_now' => 'только что', - 'diff_today' => 'Сегодня,', - 'diff_today_regexp' => 'Сегодня,?(?:\\s+в)?', - 'diff_yesterday' => 'вчера', - 'diff_yesterday_regexp' => 'Вчера,?(?:\\s+в)?', - 'diff_tomorrow' => 'завтра', - 'diff_tomorrow_regexp' => 'Завтра,?(?:\\s+в)?', - 'diff_before_yesterday' => 'позавчера', - 'diff_after_tomorrow' => 'послезавтра', - 'formats' => [ - 'LT' => 'H:mm', - 'LTS' => 'H:mm:ss', - 'L' => 'DD.MM.YYYY', - 'LL' => 'D MMMM YYYY г.', - 'LLL' => 'D MMMM YYYY г., H:mm', - 'LLLL' => 'dddd, D MMMM YYYY г., H:mm', - ], - 'calendar' => [ - 'sameDay' => '[Сегодня, в] LT', - 'nextDay' => '[Завтра, в] LT', - 'nextWeek' => static function (CarbonInterface $current, \Carbon\CarbonInterface $other) { - if ($current->week !== $other->week) { - switch ($current->dayOfWeek) { - case 0: - return '[В следующее] dddd, [в] LT'; - case 1: - case 2: - case 4: - return '[В следующий] dddd, [в] LT'; - case 3: - case 5: - case 6: - return '[В следующую] dddd, [в] LT'; - } - } - - if ($current->dayOfWeek === 2) { - return '[Во] dddd, [в] LT'; - } - - return '[В] dddd, [в] LT'; - }, - 'lastDay' => '[Вчера, в] LT', - 'lastWeek' => static function (CarbonInterface $current, \Carbon\CarbonInterface $other) { - if ($current->week !== $other->week) { - switch ($current->dayOfWeek) { - case 0: - return '[В прошлое] dddd, [в] LT'; - case 1: - case 2: - case 4: - return '[В прошлый] dddd, [в] LT'; - case 3: - case 5: - case 6: - return '[В прошлую] dddd, [в] LT'; - } - } - - if ($current->dayOfWeek === 2) { - return '[Во] dddd, [в] LT'; - } - - return '[В] dddd, [в] LT'; - }, - 'sameElse' => 'L', - ], - 'ordinal' => static function ($number, $period) { - return match ($period) { - 'M', 'd', 'DDD' => $number.'-й', - 'D' => $number.'-го', - 'w', 'W' => $number.'-я', - default => $number, - }; - }, - 'meridiem' => static function ($hour) { - if ($hour < 4) { - return 'ночи'; - } - if ($hour < 12) { - return 'утра'; - } - if ($hour < 17) { - return 'дня'; - } - - return 'вечера'; - }, - 'months' => ['января', 'февраля', 'марта', 'апреля', 'мая', 'июня', 'июля', 'августа', 'сентября', 'октября', 'ноября', 'декабря'], - 'months_standalone' => ['январь', 'февраль', 'март', 'апрель', 'май', 'июнь', 'июль', 'август', 'сентябрь', 'октябрь', 'ноябрь', 'декабрь'], - 'months_short' => ['янв', 'фев', 'мар', 'апр', 'мая', 'июн', 'июл', 'авг', 'сен', 'окт', 'ноя', 'дек'], - 'months_short_standalone' => ['янв', 'фев', 'мар', 'апр', 'май', 'июн', 'июл', 'авг', 'сен', 'окт', 'ноя', 'дек'], - 'months_regexp' => '/(DD?o?\.?(\[[^\[\]]*\]|\s)+MMMM?|L{2,4}|l{2,4})/', - 'weekdays' => ['воскресенье', 'понедельник', 'вторник', 'среду', 'четверг', 'пятницу', 'субботу'], - 'weekdays_standalone' => ['воскресенье', 'понедельник', 'вторник', 'среда', 'четверг', 'пятница', 'суббота'], - 'weekdays_short' => ['вск', 'пнд', 'втр', 'срд', 'чтв', 'птн', 'сбт'], - 'weekdays_min' => ['вс', 'пн', 'вт', 'ср', 'чт', 'пт', 'сб'], - 'weekdays_regexp' => '/\[\s*(В|в)\s*((?:прошлую|следующую|эту)\s*)?\]\s*dddd/', - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'list' => [', ', ' и '], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ru_BY.php b/vendor/nesbot/carbon/src/Carbon/Lang/ru_BY.php deleted file mode 100644 index 8ca7df3..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ru_BY.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/ru.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ru_KG.php b/vendor/nesbot/carbon/src/Carbon/Lang/ru_KG.php deleted file mode 100644 index 8ca7df3..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ru_KG.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/ru.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ru_KZ.php b/vendor/nesbot/carbon/src/Carbon/Lang/ru_KZ.php deleted file mode 100644 index 8ca7df3..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ru_KZ.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/ru.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ru_MD.php b/vendor/nesbot/carbon/src/Carbon/Lang/ru_MD.php deleted file mode 100644 index 8ca7df3..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ru_MD.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/ru.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ru_RU.php b/vendor/nesbot/carbon/src/Carbon/Lang/ru_RU.php deleted file mode 100644 index 8ca7df3..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ru_RU.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/ru.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ru_UA.php b/vendor/nesbot/carbon/src/Carbon/Lang/ru_UA.php deleted file mode 100644 index db958d6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ru_UA.php +++ /dev/null @@ -1,20 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - RFC 2319 bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/ru.php', [ - 'weekdays' => ['воскресенье', 'понедельник', 'вторник', 'среда', 'четверг', 'пятница', 'суббота'], - 'weekdays_short' => ['вск', 'пнд', 'вто', 'срд', 'чтв', 'птн', 'суб'], - 'weekdays_min' => ['вс', 'пн', 'вт', 'ср', 'чт', 'пт', 'су'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/rw.php b/vendor/nesbot/carbon/src/Carbon/Lang/rw.php deleted file mode 100644 index bc4a347..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/rw.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/rw_RW.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/rw_RW.php b/vendor/nesbot/carbon/src/Carbon/Lang/rw_RW.php deleted file mode 100644 index 9b3e068..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/rw_RW.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Rwanda Steve Murphy murf@e-tools.com - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD.MM.YYYY', - ], - 'months' => ['Mutarama', 'Gashyantare', 'Werurwe', 'Mata', 'Gicuransi', 'Kamena', 'Nyakanga', 'Kanama', 'Nzeli', 'Ukwakira', 'Ugushyingo', 'Ukuboza'], - 'months_short' => ['Mut', 'Gas', 'Wer', 'Mat', 'Gic', 'Kam', 'Nya', 'Kan', 'Nze', 'Ukw', 'Ugu', 'Uku'], - 'weekdays' => ['Ku cyumweru', 'Kuwa mbere', 'Kuwa kabiri', 'Kuwa gatatu', 'Kuwa kane', 'Kuwa gatanu', 'Kuwa gatandatu'], - 'weekdays_short' => ['Mwe', 'Mbe', 'Kab', 'Gtu', 'Kan', 'Gnu', 'Gnd'], - 'weekdays_min' => ['Mwe', 'Mbe', 'Kab', 'Gtu', 'Kan', 'Gnu', 'Gnd'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - - 'second' => ':count vuna', // less reliable - 's' => ':count vuna', // less reliable - 'a_second' => ':count vuna', // less reliable - - 'year' => 'aka :count', - 'y' => 'aka :count', - 'a_year' => 'aka :count', - - 'month' => 'ezi :count', - 'm' => 'ezi :count', - 'a_month' => 'ezi :count', - - 'week' => ':count icyumweru', - 'w' => ':count icyumweru', - 'a_week' => ':count icyumweru', - - 'day' => ':count nsi', - 'd' => ':count nsi', - 'a_day' => ':count nsi', - - 'hour' => 'saha :count', - 'h' => 'saha :count', - 'a_hour' => 'saha :count', - - 'minute' => ':count -nzinya', - 'min' => ':count -nzinya', - 'a_minute' => ':count -nzinya', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/rwk.php b/vendor/nesbot/carbon/src/Carbon/Lang/rwk.php deleted file mode 100644 index ed92e8e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/rwk.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'meridiem' => ['utuko', 'kyiukonyi'], - 'weekdays' => ['Jumapilyi', 'Jumatatuu', 'Jumanne', 'Jumatanu', 'Alhamisi', 'Ijumaa', 'Jumamosi'], - 'weekdays_short' => ['Jpi', 'Jtt', 'Jnn', 'Jtn', 'Alh', 'Iju', 'Jmo'], - 'weekdays_min' => ['Jpi', 'Jtt', 'Jnn', 'Jtn', 'Alh', 'Iju', 'Jmo'], - 'months' => ['Januari', 'Februari', 'Machi', 'Aprilyi', 'Mei', 'Junyi', 'Julyai', 'Agusti', 'Septemba', 'Oktoba', 'Novemba', 'Desemba'], - 'months_short' => ['Jan', 'Feb', 'Mac', 'Apr', 'Mei', 'Jun', 'Jul', 'Ago', 'Sep', 'Okt', 'Nov', 'Des'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sa.php b/vendor/nesbot/carbon/src/Carbon/Lang/sa.php deleted file mode 100644 index 1357c03..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sa.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/sa_IN.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sa_IN.php b/vendor/nesbot/carbon/src/Carbon/Lang/sa_IN.php deleted file mode 100644 index f2489e8..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sa_IN.php +++ /dev/null @@ -1,56 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - The Debian project Christian Perrier bubulle@debian.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'D-MM-YY', - ], - 'months' => ['जनवरी', 'फ़रवरी', 'मार्च', 'अप्रेल', 'मई', 'जून', 'जुलाई', 'अगस्त', 'सितम्बर', 'अक्टूबर', 'नवम्बर', 'दिसम्बर'], - 'months_short' => ['जनवरी', 'फ़रवरी', 'मार्च', 'अप्रेल', 'मई', 'जून', 'जुलाई', 'अगस्त', 'सितम्बर', 'अक्टूबर', 'नवम्बर', 'दिसम्बर'], - 'weekdays' => ['रविवासर:', 'सोमवासर:', 'मंगलवासर:', 'बुधवासर:', 'बृहस्पतिवासरः', 'शुक्रवासर', 'शनिवासर:'], - 'weekdays_short' => ['रविः', 'सोम:', 'मंगल:', 'बुध:', 'बृहस्पतिः', 'शुक्र', 'शनि:'], - 'weekdays_min' => ['रविः', 'सोम:', 'मंगल:', 'बुध:', 'बृहस्पतिः', 'शुक्र', 'शनि:'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['पूर्वाह्न', 'अपराह्न'], - - 'minute' => ':count होरा', // less reliable - 'min' => ':count होरा', // less reliable - 'a_minute' => ':count होरा', // less reliable - - 'year' => ':count वर्ष', - 'y' => ':count वर्ष', - 'a_year' => ':count वर्ष', - - 'month' => ':count मास', - 'm' => ':count मास', - 'a_month' => ':count मास', - - 'week' => ':count सप्ताहः saptahaĥ', - 'w' => ':count सप्ताहः saptahaĥ', - 'a_week' => ':count सप्ताहः saptahaĥ', - - 'day' => ':count दिन', - 'd' => ':count दिन', - 'a_day' => ':count दिन', - - 'hour' => ':count घण्टा', - 'h' => ':count घण्टा', - 'a_hour' => ':count घण्टा', - - 'second' => ':count द्वितीयः', - 's' => ':count द्वितीयः', - 'a_second' => ':count द्वितीयः', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sah.php b/vendor/nesbot/carbon/src/Carbon/Lang/sah.php deleted file mode 100644 index b828824..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sah.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/sah_RU.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sah_RU.php b/vendor/nesbot/carbon/src/Carbon/Lang/sah_RU.php deleted file mode 100644 index 94cc0cb..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sah_RU.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Valery Timiriliyev Valery Timiriliyev timiriliyev@gmail.com - */ -return array_replace_recursive(require __DIR__.'/ru.php', [ - 'formats' => [ - 'L' => 'YYYY.MM.DD', - ], - 'months' => ['тохсунньу', 'олунньу', 'кулун тутар', 'муус устар', 'ыам ыйын', 'бэс ыйын', 'от ыйын', 'атырдьах ыйын', 'балаҕан ыйын', 'алтынньы', 'сэтинньи', 'ахсынньы'], - 'months_short' => ['тохс', 'олун', 'кул', 'муус', 'ыам', 'бэс', 'от', 'атыр', 'бал', 'алт', 'сэт', 'ахс'], - 'weekdays' => ['баскыһыанньа', 'бэнидиэнньик', 'оптуорунньук', 'сэрэдэ', 'чэппиэр', 'бээтинсэ', 'субуота'], - 'weekdays_short' => ['бс', 'бн', 'оп', 'ср', 'чп', 'бт', 'сб'], - 'weekdays_min' => ['бс', 'бн', 'оп', 'ср', 'чп', 'бт', 'сб'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/saq.php b/vendor/nesbot/carbon/src/Carbon/Lang/saq.php deleted file mode 100644 index ca3f994..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/saq.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, - 'meridiem' => ['Tesiran', 'Teipa'], - 'weekdays' => ['Mderot ee are', 'Mderot ee kuni', 'Mderot ee ong’wan', 'Mderot ee inet', 'Mderot ee ile', 'Mderot ee sapa', 'Mderot ee kwe'], - 'weekdays_short' => ['Are', 'Kun', 'Ong', 'Ine', 'Ile', 'Sap', 'Kwe'], - 'weekdays_min' => ['Are', 'Kun', 'Ong', 'Ine', 'Ile', 'Sap', 'Kwe'], - 'months' => ['Lapa le obo', 'Lapa le waare', 'Lapa le okuni', 'Lapa le ong’wan', 'Lapa le imet', 'Lapa le ile', 'Lapa le sapa', 'Lapa le isiet', 'Lapa le saal', 'Lapa le tomon', 'Lapa le tomon obo', 'Lapa le tomon waare'], - 'months_short' => ['Obo', 'Waa', 'Oku', 'Ong', 'Ime', 'Ile', 'Sap', 'Isi', 'Saa', 'Tom', 'Tob', 'Tow'], - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sat.php b/vendor/nesbot/carbon/src/Carbon/Lang/sat.php deleted file mode 100644 index c9914c6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sat.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/sat_IN.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sat_IN.php b/vendor/nesbot/carbon/src/Carbon/Lang/sat_IN.php deleted file mode 100644 index 6c3608b..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sat_IN.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Red Hat Pune libc-alpha@sourceware.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'D/M/YY', - ], - 'months' => ['जनवरी', 'फरवरी', 'मार्च', 'अप्रेल', 'मई', 'जुन', 'जुलाई', 'अगस्त', 'सितम्बर', 'अखथबर', 'नवम्बर', 'दिसम्बर'], - 'months_short' => ['जनवरी', 'फरवरी', 'मार्च', 'अप्रेल', 'मई', 'जुन', 'जुलाई', 'अगस्त', 'सितम्बर', 'अखथबर', 'नवम्बर', 'दिसम्बर'], - 'weekdays' => ['सिंगेमाँहाँ', 'ओतेमाँहाँ', 'बालेमाँहाँ', 'सागुनमाँहाँ', 'सारदीमाँहाँ', 'जारुममाँहाँ', 'ञुहुममाँहाँ'], - 'weekdays_short' => ['सिंगे', 'ओते', 'बाले', 'सागुन', 'सारदी', 'जारुम', 'ञुहुम'], - 'weekdays_min' => ['सिंगे', 'ओते', 'बाले', 'सागुन', 'सारदी', 'जारुम', 'ञुहुम'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - - 'month' => ':count ńindạ cando', // less reliable - 'm' => ':count ńindạ cando', // less reliable - 'a_month' => ':count ńindạ cando', // less reliable - - 'week' => ':count mãhã', // less reliable - 'w' => ':count mãhã', // less reliable - 'a_week' => ':count mãhã', // less reliable - - 'hour' => ':count ᱥᱳᱱᱚ', // less reliable - 'h' => ':count ᱥᱳᱱᱚ', // less reliable - 'a_hour' => ':count ᱥᱳᱱᱚ', // less reliable - - 'minute' => ':count ᱯᱤᱞᱪᱩ', // less reliable - 'min' => ':count ᱯᱤᱞᱪᱩ', // less reliable - 'a_minute' => ':count ᱯᱤᱞᱪᱩ', // less reliable - - 'second' => ':count ar', // less reliable - 's' => ':count ar', // less reliable - 'a_second' => ':count ar', // less reliable - - 'year' => ':count ne̲s', - 'y' => ':count ne̲s', - 'a_year' => ':count ne̲s', - - 'day' => ':count ᱫᱤᱱ', - 'd' => ':count ᱫᱤᱱ', - 'a_day' => ':count ᱫᱤᱱ', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sbp.php b/vendor/nesbot/carbon/src/Carbon/Lang/sbp.php deleted file mode 100644 index e29ca37..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sbp.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'meridiem' => ['Lwamilawu', 'Pashamihe'], - 'weekdays' => ['Mulungu', 'Jumatatu', 'Jumanne', 'Jumatano', 'Alahamisi', 'Ijumaa', 'Jumamosi'], - 'weekdays_short' => ['Mul', 'Jtt', 'Jnn', 'Jtn', 'Alh', 'Iju', 'Jmo'], - 'weekdays_min' => ['Mul', 'Jtt', 'Jnn', 'Jtn', 'Alh', 'Iju', 'Jmo'], - 'months' => ['Mupalangulwa', 'Mwitope', 'Mushende', 'Munyi', 'Mushende Magali', 'Mujimbi', 'Mushipepo', 'Mupuguto', 'Munyense', 'Mokhu', 'Musongandembwe', 'Muhaano'], - 'months_short' => ['Mup', 'Mwi', 'Msh', 'Mun', 'Mag', 'Muj', 'Msp', 'Mpg', 'Mye', 'Mok', 'Mus', 'Muh'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sc.php b/vendor/nesbot/carbon/src/Carbon/Lang/sc.php deleted file mode 100644 index 7178cf4..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sc.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/sc_IT.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sc_IT.php b/vendor/nesbot/carbon/src/Carbon/Lang/sc_IT.php deleted file mode 100644 index 5d1e4ce..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sc_IT.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Sardinian Translators Team Massimeddu Cireddu massimeddu@gmail.com - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD. MM. YY', - ], - 'months' => ['Ghennàrgiu', 'Freàrgiu', 'Martzu', 'Abrile', 'Maju', 'Làmpadas', 'Argiolas//Trìulas', 'Austu', 'Cabudanni', 'Santugaine//Ladàmine', 'Onniasantu//Santandria', 'Nadale//Idas'], - 'months_short' => ['Ghe', 'Fre', 'Mar', 'Abr', 'Maj', 'Làm', 'Arg', 'Aus', 'Cab', 'Lad', 'Onn', 'Nad'], - 'weekdays' => ['Domìnigu', 'Lunis', 'Martis', 'Mèrcuris', 'Giòbia', 'Chenàbura', 'Sàbadu'], - 'weekdays_short' => ['Dom', 'Lun', 'Mar', 'Mèr', 'Giò', 'Che', 'Sàb'], - 'weekdays_min' => ['Dom', 'Lun', 'Mar', 'Mèr', 'Giò', 'Che', 'Sàb'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - - 'minute' => ':count mementu', // less reliable - 'min' => ':count mementu', // less reliable - 'a_minute' => ':count mementu', // less reliable - - 'year' => ':count annu', - 'y' => ':count annu', - 'a_year' => ':count annu', - - 'month' => ':count mese', - 'm' => ':count mese', - 'a_month' => ':count mese', - - 'week' => ':count chida', - 'w' => ':count chida', - 'a_week' => ':count chida', - - 'day' => ':count dí', - 'd' => ':count dí', - 'a_day' => ':count dí', - - 'hour' => ':count ora', - 'h' => ':count ora', - 'a_hour' => ':count ora', - - 'second' => ':count secundu', - 's' => ':count secundu', - 'a_second' => ':count secundu', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sd.php b/vendor/nesbot/carbon/src/Carbon/Lang/sd.php deleted file mode 100644 index 0022c5a..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sd.php +++ /dev/null @@ -1,81 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -$months = [ - 'جنوري', - 'فيبروري', - 'مارچ', - 'اپريل', - 'مئي', - 'جون', - 'جولاءِ', - 'آگسٽ', - 'سيپٽمبر', - 'آڪٽوبر', - 'نومبر', - 'ڊسمبر', -]; - -$weekdays = [ - 'آچر', - 'سومر', - 'اڱارو', - 'اربع', - 'خميس', - 'جمع', - 'ڇنڇر', -]; - -/* - * Authors: - * - Narain Sagar - * - Sawood Alam - * - Narain Sagar - */ -return [ - 'year' => '{1}'.'هڪ سال'.'|:count '.'سال', - 'month' => '{1}'.'هڪ مهينو'.'|:count '.'مهينا', - 'week' => '{1}'.'ھڪ ھفتو'.'|:count '.'هفتا', - 'day' => '{1}'.'هڪ ڏينهن'.'|:count '.'ڏينهن', - 'hour' => '{1}'.'هڪ ڪلاڪ'.'|:count '.'ڪلاڪ', - 'minute' => '{1}'.'هڪ منٽ'.'|:count '.'منٽ', - 'second' => '{1}'.'چند سيڪنڊ'.'|:count '.'سيڪنڊ', - 'ago' => ':time اڳ', - 'from_now' => ':time پوء', - 'diff_yesterday' => 'ڪالهه', - 'diff_today' => 'اڄ', - 'diff_tomorrow' => 'سڀاڻي', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd، D MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[اڄ] LT', - 'nextDay' => '[سڀاڻي] LT', - 'nextWeek' => 'dddd [اڳين هفتي تي] LT', - 'lastDay' => '[ڪالهه] LT', - 'lastWeek' => '[گزريل هفتي] dddd [تي] LT', - 'sameElse' => 'L', - ], - 'meridiem' => ['صبح', 'شام'], - 'months' => $months, - 'months_short' => $months, - 'weekdays' => $weekdays, - 'weekdays_short' => $weekdays, - 'weekdays_min' => $weekdays, - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => ['، ', ' ۽ '], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sd_IN.php b/vendor/nesbot/carbon/src/Carbon/Lang/sd_IN.php deleted file mode 100644 index de1dad0..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sd_IN.php +++ /dev/null @@ -1,26 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Red Hat, Pune bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/sd.php', [ - 'formats' => [ - 'L' => 'D/M/YY', - ], - 'months' => ['جنوري', 'فبروري', 'مارچ', 'اپريل', 'مي', 'جون', 'جولاءِ', 'آگسٽ', 'سيپٽيمبر', 'آڪٽوبر', 'نومبر', 'ڊسمبر'], - 'months_short' => ['جنوري', 'فبروري', 'مارچ', 'اپريل', 'مي', 'جون', 'جولاءِ', 'آگسٽ', 'سيپٽيمبر', 'آڪٽوبر', 'نومبر', 'ڊسمبر'], - 'weekdays' => ['آرتوارُ', 'سومرُ', 'منگلُ', 'ٻُڌرُ', 'وسپت', 'جُمو', 'ڇنڇر'], - 'weekdays_short' => ['آرتوارُ', 'سومرُ', 'منگلُ', 'ٻُڌرُ', 'وسپت', 'جُمو', 'ڇنڇر'], - 'weekdays_min' => ['آرتوارُ', 'سومرُ', 'منگلُ', 'ٻُڌرُ', 'وسپت', 'جُمو', 'ڇنڇر'], - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sd_IN@devanagari.php b/vendor/nesbot/carbon/src/Carbon/Lang/sd_IN@devanagari.php deleted file mode 100644 index 061fcc1..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sd_IN@devanagari.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Red Hat, Pune bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/sd.php', [ - 'formats' => [ - 'L' => 'D/M/YY', - ], - 'months' => ['जनवरी', 'फबरवरी', 'मार्चि', 'अप्रेल', 'मे', 'जूनि', 'जूलाइ', 'आगस्टु', 'सेप्टेंबरू', 'आक्टूबरू', 'नवंबरू', 'ॾिसंबरू'], - 'months_short' => ['जनवरी', 'फबरवरी', 'मार्चि', 'अप्रेल', 'मे', 'जूनि', 'जूलाइ', 'आगस्टु', 'सेप्टेंबरू', 'आक्टूबरू', 'नवंबरू', 'ॾिसंबरू'], - 'weekdays' => ['आर्तवारू', 'सूमरू', 'मंगलू', 'ॿुधरू', 'विस्पति', 'जुमो', 'छंछस'], - 'weekdays_short' => ['आर्तवारू', 'सूमरू', 'मंगलू', 'ॿुधरू', 'विस्पति', 'जुमो', 'छंछस'], - 'weekdays_min' => ['आर्तवारू', 'सूमरू', 'मंगलू', 'ॿुधरू', 'विस्पति', 'जुमो', 'छंछस'], - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['म.पू.', 'म.नं.'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/se.php b/vendor/nesbot/carbon/src/Carbon/Lang/se.php deleted file mode 100644 index 7c4b92a..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/se.php +++ /dev/null @@ -1,73 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - François B - * - Karamell - */ -return [ - 'year' => '{1}:count jahki|:count jagit', - 'a_year' => '{1}okta jahki|:count jagit', - 'y' => ':count j.', - 'month' => '{1}:count mánnu|:count mánut', - 'a_month' => '{1}okta mánnu|:count mánut', - 'm' => ':count mán.', - 'week' => '{1}:count vahkku|:count vahkku', - 'a_week' => '{1}okta vahkku|:count vahkku', - 'w' => ':count v.', - 'day' => '{1}:count beaivi|:count beaivvit', - 'a_day' => '{1}okta beaivi|:count beaivvit', - 'd' => ':count b.', - 'hour' => '{1}:count diimmu|:count diimmut', - 'a_hour' => '{1}okta diimmu|:count diimmut', - 'h' => ':count d.', - 'minute' => '{1}:count minuhta|:count minuhtat', - 'a_minute' => '{1}okta minuhta|:count minuhtat', - 'min' => ':count min.', - 'second' => '{1}:count sekunddat|:count sekunddat', - 'a_second' => '{1}moadde sekunddat|:count sekunddat', - 's' => ':count s.', - 'ago' => 'maŋit :time', - 'from_now' => ':time geažes', - 'diff_yesterday' => 'ikte', - 'diff_yesterday_regexp' => 'ikte(?:\\s+ti)?', - 'diff_today' => 'otne', - 'diff_today_regexp' => 'otne(?:\\s+ti)?', - 'diff_tomorrow' => 'ihttin', - 'diff_tomorrow_regexp' => 'ihttin(?:\\s+ti)?', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD.MM.YYYY', - 'LL' => 'MMMM D. [b.] YYYY', - 'LLL' => 'MMMM D. [b.] YYYY [ti.] HH:mm', - 'LLLL' => 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[otne ti] LT', - 'nextDay' => '[ihttin ti] LT', - 'nextWeek' => 'dddd [ti] LT', - 'lastDay' => '[ikte ti] LT', - 'lastWeek' => '[ovddit] dddd [ti] LT', - 'sameElse' => 'L', - ], - 'ordinal' => ':number.', - 'months' => ['ođđajagemánnu', 'guovvamánnu', 'njukčamánnu', 'cuoŋománnu', 'miessemánnu', 'geassemánnu', 'suoidnemánnu', 'borgemánnu', 'čakčamánnu', 'golggotmánnu', 'skábmamánnu', 'juovlamánnu'], - 'months_short' => ['ođđj', 'guov', 'njuk', 'cuo', 'mies', 'geas', 'suoi', 'borg', 'čakč', 'golg', 'skáb', 'juov'], - 'weekdays' => ['sotnabeaivi', 'vuossárga', 'maŋŋebárga', 'gaskavahkku', 'duorastat', 'bearjadat', 'lávvardat'], - 'weekdays_short' => ['sotn', 'vuos', 'maŋ', 'gask', 'duor', 'bear', 'láv'], - 'weekdays_min' => ['s', 'v', 'm', 'g', 'd', 'b', 'L'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => [', ', ' ja '], - 'meridiem' => ['i.b.', 'e.b.'], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/se_FI.php b/vendor/nesbot/carbon/src/Carbon/Lang/se_FI.php deleted file mode 100644 index cf01805..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/se_FI.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/se.php', [ - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD.MM.YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], - 'months' => ['ođđajagemánnu', 'guovvamánnu', 'njukčamánnu', 'cuoŋománnu', 'miessemánnu', 'geassemánnu', 'suoidnemánnu', 'borgemánnu', 'čakčamánnu', 'golggotmánnu', 'skábmamánnu', 'juovlamánnu'], - 'months_short' => ['ođđj', 'guov', 'njuk', 'cuoŋ', 'mies', 'geas', 'suoi', 'borg', 'čakč', 'golg', 'skáb', 'juov'], - 'weekdays' => ['sotnabeaivi', 'mánnodat', 'disdat', 'gaskavahkku', 'duorastat', 'bearjadat', 'lávvordat'], - 'weekdays_short' => ['so', 'má', 'di', 'ga', 'du', 'be', 'lá'], - 'weekdays_min' => ['so', 'má', 'di', 'ga', 'du', 'be', 'lá'], - 'meridiem' => ['i', 'e'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/se_NO.php b/vendor/nesbot/carbon/src/Carbon/Lang/se_NO.php deleted file mode 100644 index 177c7e9..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/se_NO.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/se.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/se_SE.php b/vendor/nesbot/carbon/src/Carbon/Lang/se_SE.php deleted file mode 100644 index 177c7e9..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/se_SE.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/se.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/seh.php b/vendor/nesbot/carbon/src/Carbon/Lang/seh.php deleted file mode 100644 index 31b5aad..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/seh.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, - 'weekdays' => ['Dimingu', 'Chiposi', 'Chipiri', 'Chitatu', 'Chinai', 'Chishanu', 'Sabudu'], - 'weekdays_short' => ['Dim', 'Pos', 'Pir', 'Tat', 'Nai', 'Sha', 'Sab'], - 'weekdays_min' => ['Dim', 'Pos', 'Pir', 'Tat', 'Nai', 'Sha', 'Sab'], - 'months' => ['Janeiro', 'Fevreiro', 'Marco', 'Abril', 'Maio', 'Junho', 'Julho', 'Augusto', 'Setembro', 'Otubro', 'Novembro', 'Decembro'], - 'months_short' => ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Aug', 'Set', 'Otu', 'Nov', 'Dec'], - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'D/M/YYYY', - 'LL' => 'd [de] MMM [de] YYYY', - 'LLL' => 'd [de] MMMM [de] YYYY HH:mm', - 'LLLL' => 'dddd, d [de] MMMM [de] YYYY HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ses.php b/vendor/nesbot/carbon/src/Carbon/Lang/ses.php deleted file mode 100644 index e1099e6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ses.php +++ /dev/null @@ -1,56 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'meridiem' => ['Adduha', 'Aluula'], - 'weekdays' => ['Alhadi', 'Atinni', 'Atalaata', 'Alarba', 'Alhamiisa', 'Alzuma', 'Asibti'], - 'weekdays_short' => ['Alh', 'Ati', 'Ata', 'Ala', 'Alm', 'Alz', 'Asi'], - 'weekdays_min' => ['Alh', 'Ati', 'Ata', 'Ala', 'Alm', 'Alz', 'Asi'], - 'months' => ['Žanwiye', 'Feewiriye', 'Marsi', 'Awiril', 'Me', 'Žuweŋ', 'Žuyye', 'Ut', 'Sektanbur', 'Oktoobur', 'Noowanbur', 'Deesanbur'], - 'months_short' => ['Žan', 'Fee', 'Mar', 'Awi', 'Me', 'Žuw', 'Žuy', 'Ut', 'Sek', 'Okt', 'Noo', 'Dee'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'D/M/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], - - 'month' => ':count alaada', // less reliable - 'm' => ':count alaada', // less reliable - 'a_month' => ':count alaada', // less reliable - - 'hour' => ':count ɲaajin', // less reliable - 'h' => ':count ɲaajin', // less reliable - 'a_hour' => ':count ɲaajin', // less reliable - - 'minute' => ':count zarbu', // less reliable - 'min' => ':count zarbu', // less reliable - 'a_minute' => ':count zarbu', // less reliable - - 'year' => ':count jiiri', - 'y' => ':count jiiri', - 'a_year' => ':count jiiri', - - 'week' => ':count jirbiiyye', - 'w' => ':count jirbiiyye', - 'a_week' => ':count jirbiiyye', - - 'day' => ':count zaari', - 'd' => ':count zaari', - 'a_day' => ':count zaari', - - 'second' => ':count ihinkante', - 's' => ':count ihinkante', - 'a_second' => ':count ihinkante', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sg.php b/vendor/nesbot/carbon/src/Carbon/Lang/sg.php deleted file mode 100644 index 9264e89..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sg.php +++ /dev/null @@ -1,52 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'meridiem' => ['ND', 'LK'], - 'weekdays' => ['Bikua-ôko', 'Bïkua-ûse', 'Bïkua-ptâ', 'Bïkua-usïö', 'Bïkua-okü', 'Lâpôsö', 'Lâyenga'], - 'weekdays_short' => ['Bk1', 'Bk2', 'Bk3', 'Bk4', 'Bk5', 'Lâp', 'Lây'], - 'weekdays_min' => ['Bk1', 'Bk2', 'Bk3', 'Bk4', 'Bk5', 'Lâp', 'Lây'], - 'months' => ['Nyenye', 'Fulundïgi', 'Mbängü', 'Ngubùe', 'Bêläwü', 'Föndo', 'Lengua', 'Kükürü', 'Mvuka', 'Ngberere', 'Nabändüru', 'Kakauka'], - 'months_short' => ['Nye', 'Ful', 'Mbä', 'Ngu', 'Bêl', 'Fön', 'Len', 'Kük', 'Mvu', 'Ngb', 'Nab', 'Kak'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'D/M/YYYY', - 'LL' => 'D MMM, YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], - - 'year' => ':count dā', // less reliable - 'y' => ':count dā', // less reliable - 'a_year' => ':count dā', // less reliable - - 'week' => ':count bïkua-okü', // less reliable - 'w' => ':count bïkua-okü', // less reliable - 'a_week' => ':count bïkua-okü', // less reliable - - 'day' => ':count ziggawâ', // less reliable - 'd' => ':count ziggawâ', // less reliable - 'a_day' => ':count ziggawâ', // less reliable - - 'hour' => ':count yângâködörö', // less reliable - 'h' => ':count yângâködörö', // less reliable - 'a_hour' => ':count yângâködörö', // less reliable - - 'second' => ':count bïkua-ôko', // less reliable - 's' => ':count bïkua-ôko', // less reliable - 'a_second' => ':count bïkua-ôko', // less reliable - - 'month' => ':count Nze tî ngu', - 'm' => ':count Nze tî ngu', - 'a_month' => ':count Nze tî ngu', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sgs.php b/vendor/nesbot/carbon/src/Carbon/Lang/sgs.php deleted file mode 100644 index 864b989..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sgs.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/sgs_LT.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sgs_LT.php b/vendor/nesbot/carbon/src/Carbon/Lang/sgs_LT.php deleted file mode 100644 index aa9e942..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sgs_LT.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Arnas Udovičius bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'YYYY.MM.DD', - ], - 'months' => ['sausė', 'vasarė', 'kuova', 'balondė', 'gegožės', 'bėrželė', 'lëpas', 'rogpjūtė', 'siejės', 'spalė', 'lapkrėstė', 'grůdė'], - 'months_short' => ['Sau', 'Vas', 'Kuo', 'Bal', 'Geg', 'Bėr', 'Lëp', 'Rgp', 'Sie', 'Spa', 'Lap', 'Grd'], - 'weekdays' => ['nedielės dëna', 'panedielis', 'oterninks', 'sereda', 'četvergs', 'petnīčė', 'sobata'], - 'weekdays_short' => ['Nd', 'Pn', 'Ot', 'Sr', 'Čt', 'Pt', 'Sb'], - 'weekdays_min' => ['Nd', 'Pn', 'Ot', 'Sr', 'Čt', 'Pt', 'Sb'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - - 'minute' => ':count mažos', // less reliable - 'min' => ':count mažos', // less reliable - 'a_minute' => ':count mažos', // less reliable - - 'year' => ':count metā', - 'y' => ':count metā', - 'a_year' => ':count metā', - - 'month' => ':count mienou', - 'm' => ':count mienou', - 'a_month' => ':count mienou', - - 'week' => ':count nedielė', - 'w' => ':count nedielė', - 'a_week' => ':count nedielė', - - 'day' => ':count dīna', - 'd' => ':count dīna', - 'a_day' => ':count dīna', - - 'hour' => ':count adīna', - 'h' => ':count adīna', - 'a_hour' => ':count adīna', - - 'second' => ':count Sekondė', - 's' => ':count Sekondė', - 'a_second' => ':count Sekondė', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sh.php b/vendor/nesbot/carbon/src/Carbon/Lang/sh.php deleted file mode 100644 index d65f90e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sh.php +++ /dev/null @@ -1,58 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Томица Кораћ - * - Enrique Vidal - * - Christopher Dell - * - dmilisic - * - danijel - * - Miroslav Matkovic (mikki021) - */ -return [ - 'diff_now' => 'sada', - 'diff_yesterday' => 'juče', - 'diff_tomorrow' => 'sutra', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'MMMM D, YYYY', - 'LLL' => 'DD MMM HH:mm', - 'LLLL' => 'MMMM DD, YYYY HH:mm', - ], - 'year' => ':count godina|:count godine|:count godina', - 'y' => ':count g.', - 'month' => ':count mesec|:count meseca|:count meseci', - 'm' => ':count m.', - 'week' => ':count nedelja|:count nedelje|:count nedelja', - 'w' => ':count n.', - 'day' => ':count dan|:count dana|:count dana', - 'd' => ':count d.', - 'hour' => ':count sat|:count sata|:count sati', - 'h' => ':count č.', - 'minute' => ':count minut|:count minuta|:count minuta', - 'min' => ':count min.', - 'second' => ':count sekund|:count sekunde|:count sekundi', - 's' => ':count s.', - 'ago' => 'pre :time', - 'from_now' => 'za :time', - 'after' => 'nakon :time', - 'before' => ':time raniјe', - 'weekdays' => ['Nedelja', 'Ponedeljak', 'Utorak', 'Sreda', 'Četvrtak', 'Petak', 'Subota'], - 'weekdays_short' => ['Ned', 'Pon', 'Uto', 'Sre', 'Čet', 'Pet', 'Sub'], - 'weekdays_min' => ['Ned', 'Pon', 'Uto', 'Sre', 'Čet', 'Pet', 'Sub'], - 'months' => ['Januar', 'Februar', 'Mart', 'April', 'Maj', 'Jun', 'Jul', 'Avgust', 'Septembar', 'Oktobar', 'Novembar', 'Decembar'], - 'months_short' => ['Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Avg', 'Sep', 'Okt', 'Nov', 'Dec'], - 'list' => [', ', ' i '], - 'meridiem' => ['pre podne', 'po podne'], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/shi.php b/vendor/nesbot/carbon/src/Carbon/Lang/shi.php deleted file mode 100644 index 7815186..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/shi.php +++ /dev/null @@ -1,57 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'meridiem' => ['ⵜⵉⴼⴰⵡⵜ', 'ⵜⴰⴷⴳⴳⵯⴰⵜ'], - 'weekdays' => ['ⴰⵙⴰⵎⴰⵙ', 'ⴰⵢⵏⴰⵙ', 'ⴰⵙⵉⵏⴰⵙ', 'ⴰⴽⵕⴰⵙ', 'ⴰⴽⵡⴰⵙ', 'ⵙⵉⵎⵡⴰⵙ', 'ⴰⵙⵉⴹⵢⴰⵙ'], - 'weekdays_short' => ['ⴰⵙⴰ', 'ⴰⵢⵏ', 'ⴰⵙⵉ', 'ⴰⴽⵕ', 'ⴰⴽⵡ', 'ⴰⵙⵉⵎ', 'ⴰⵙⵉⴹ'], - 'weekdays_min' => ['ⴰⵙⴰ', 'ⴰⵢⵏ', 'ⴰⵙⵉ', 'ⴰⴽⵕ', 'ⴰⴽⵡ', 'ⴰⵙⵉⵎ', 'ⴰⵙⵉⴹ'], - 'months' => ['ⵉⵏⵏⴰⵢⵔ', 'ⴱⵕⴰⵢⵕ', 'ⵎⴰⵕⵚ', 'ⵉⴱⵔⵉⵔ', 'ⵎⴰⵢⵢⵓ', 'ⵢⵓⵏⵢⵓ', 'ⵢⵓⵍⵢⵓⵣ', 'ⵖⵓⵛⵜ', 'ⵛⵓⵜⴰⵏⴱⵉⵔ', 'ⴽⵜⵓⴱⵔ', 'ⵏⵓⵡⴰⵏⴱⵉⵔ', 'ⴷⵓⵊⴰⵏⴱⵉⵔ'], - 'months_short' => ['ⵉⵏⵏ', 'ⴱⵕⴰ', 'ⵎⴰⵕ', 'ⵉⴱⵔ', 'ⵎⴰⵢ', 'ⵢⵓⵏ', 'ⵢⵓⵍ', 'ⵖⵓⵛ', 'ⵛⵓⵜ', 'ⴽⵜⵓ', 'ⵏⵓⵡ', 'ⴷⵓⵊ'], - 'first_day_of_week' => 6, - 'weekend' => [5, 6], - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'D/M/YYYY', - 'LL' => 'D MMM, YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], - - 'year' => ':count aseggwas', - 'y' => ':count aseggwas', - 'a_year' => ':count aseggwas', - - 'month' => ':count ayyur', - 'm' => ':count ayyur', - 'a_month' => ':count ayyur', - - 'week' => ':count imalass', - 'w' => ':count imalass', - 'a_week' => ':count imalass', - - 'day' => ':count ass', - 'd' => ':count ass', - 'a_day' => ':count ass', - - 'hour' => ':count urɣ', // less reliable - 'h' => ':count urɣ', // less reliable - 'a_hour' => ':count urɣ', // less reliable - - 'minute' => ':count ⴰⵎⵥⵉ', // less reliable - 'min' => ':count ⴰⵎⵥⵉ', // less reliable - 'a_minute' => ':count ⴰⵎⵥⵉ', // less reliable - - 'second' => ':count sin', // less reliable - 's' => ':count sin', // less reliable - 'a_second' => ':count sin', // less reliable -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/shi_Latn.php b/vendor/nesbot/carbon/src/Carbon/Lang/shi_Latn.php deleted file mode 100644 index cddfb24..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/shi_Latn.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/shi.php', [ - 'meridiem' => ['tifawt', 'tadggʷat'], - 'weekdays' => ['asamas', 'aynas', 'asinas', 'akṛas', 'akwas', 'asimwas', 'asiḍyas'], - 'weekdays_short' => ['asa', 'ayn', 'asi', 'akṛ', 'akw', 'asim', 'asiḍ'], - 'weekdays_min' => ['asa', 'ayn', 'asi', 'akṛ', 'akw', 'asim', 'asiḍ'], - 'months' => ['innayr', 'bṛayṛ', 'maṛṣ', 'ibrir', 'mayyu', 'yunyu', 'yulyuz', 'ɣuct', 'cutanbir', 'ktubr', 'nuwanbir', 'dujanbir'], - 'months_short' => ['inn', 'bṛa', 'maṛ', 'ibr', 'may', 'yun', 'yul', 'ɣuc', 'cut', 'ktu', 'nuw', 'duj'], - 'first_day_of_week' => 6, - 'weekend' => [5, 6], - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'D/M/YYYY', - 'LL' => 'D MMM, YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], - - 'minute' => ':count agur', // less reliable - 'min' => ':count agur', // less reliable - 'a_minute' => ':count agur', // less reliable -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/shi_Tfng.php b/vendor/nesbot/carbon/src/Carbon/Lang/shi_Tfng.php deleted file mode 100644 index f3df1f2..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/shi_Tfng.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/shi.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/shn.php b/vendor/nesbot/carbon/src/Carbon/Lang/shn.php deleted file mode 100644 index fe7b1ea..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/shn.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/shn_MM.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/shn_MM.php b/vendor/nesbot/carbon/src/Carbon/Lang/shn_MM.php deleted file mode 100644 index 9eeba47..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/shn_MM.php +++ /dev/null @@ -1,56 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - ubuntu Myanmar LoCo Team https://ubuntu-mm.net Bone Pyae Sone bone.burma@mail.com - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, - 'formats' => [ - 'L' => 'OY MMM OD dddd', - ], - 'months' => ['လိူၼ်ၵမ်', 'လိူၼ်သၢမ်', 'လိူၼ်သီ', 'လိူၼ်ႁႃႈ', 'လိူၼ်ႁူၵ်း', 'လိူၼ်ၸဵတ်း', 'လိူၼ်ပႅတ်ႇ', 'လိူၼ်ၵဝ်ႈ', 'လိူၼ်သိပ်း', 'လိူၼ်သိပ်းဢိတ်း', 'လိူၼ်သိပ်းဢိတ်းသွင်', 'လိူၼ်ၸဵင်'], - 'months_short' => ['လိူၼ်ၵမ်', 'လိူၼ်သၢမ်', 'လိူၼ်သီ', 'လိူၼ်ႁႃႈ', 'လိူၼ်ႁူၵ်း', 'လိူၼ်ၸဵတ်း', 'လိူၼ်ပႅတ်ႇ', 'လိူၼ်ၵဝ်ႈ', 'လိူၼ်သိပ်း', 'လိူၼ်သိပ်းဢိတ်း', 'လိူၼ်သိပ်းဢိတ်းသွင်', 'လိူၼ်ၸဵင်'], - 'weekdays' => ['ဝၼ်းဢႃးတိတ်ႉ', 'ဝၼ်းၸၼ်', 'ဝၼ်း​ဢၢင်း​ၵၢၼ်း', 'ဝၼ်းပူတ်ႉ', 'ဝၼ်းၽတ်း', 'ဝၼ်းသုၵ်း', 'ဝၼ်းသဝ်'], - 'weekdays_short' => ['တိတ့်', 'ၸၼ်', 'ၵၢၼ်း', 'ပုတ့်', 'ၽတ်း', 'သုၵ်း', 'သဝ်'], - 'weekdays_min' => ['တိတ့်', 'ၸၼ်', 'ၵၢၼ်း', 'ပုတ့်', 'ၽတ်း', 'သုၵ်း', 'သဝ်'], - 'alt_numbers' => ['႐႐', '႐႑', '႐႒', '႐႓', '႐႔', '႐႕', '႐႖', '႐႗', '႐႘', '႐႙', '႑႐', '႑႑', '႑႒', '႑႓', '႑႔', '႑႕', '႑႖', '႑႗', '႑႘', '႑႙', '႒႐', '႒႑', '႒႒', '႒႓', '႒႔', '႒႕', '႒႖', '႒႗', '႒႘', '႒႙', '႓႐', '႓႑', '႓႒', '႓႓', '႓႔', '႓႕', '႓႖', '႓႗', '႓႘', '႓႙', '႔႐', '႔႑', '႔႒', '႔႓', '႔႔', '႔႕', '႔႖', '႔႗', '႔႘', '႔႙', '႕႐', '႕႑', '႕႒', '႕႓', '႕႔', '႕႕', '႕႖', '႕႗', '႕႘', '႕႙', '႖႐', '႖႑', '႖႒', '႖႓', '႖႔', '႖႕', '႖႖', '႖႗', '႖႘', '႖႙', '႗႐', '႗႑', '႗႒', '႗႓', '႗႔', '႗႕', '႗႖', '႗႗', '႗႘', '႗႙', '႘႐', '႘႑', '႘႒', '႘႓', '႘႔', '႘႕', '႘႖', '႘႗', '႘႘', '႘႙', '႙႐', '႙႑', '႙႒', '႙႓', '႙႔', '႙႕', '႙႖', '႙႗', '႙႘', '႙႙'], - 'meridiem' => ['ၵၢင်ၼႂ်', 'တၢမ်းၶမ်ႈ'], - - 'month' => ':count လိူၼ်', // less reliable - 'm' => ':count လိူၼ်', // less reliable - 'a_month' => ':count လိူၼ်', // less reliable - - 'week' => ':count ဝၼ်း', // less reliable - 'w' => ':count ဝၼ်း', // less reliable - 'a_week' => ':count ဝၼ်း', // less reliable - - 'hour' => ':count ຕີ', // less reliable - 'h' => ':count ຕີ', // less reliable - 'a_hour' => ':count ຕີ', // less reliable - - 'minute' => ':count ເດັກ', // less reliable - 'min' => ':count ເດັກ', // less reliable - 'a_minute' => ':count ເດັກ', // less reliable - - 'second' => ':count ဢိုၼ်ႇ', // less reliable - 's' => ':count ဢိုၼ်ႇ', // less reliable - 'a_second' => ':count ဢိုၼ်ႇ', // less reliable - - 'year' => ':count ပီ', - 'y' => ':count ပီ', - 'a_year' => ':count ပီ', - - 'day' => ':count ກາງວັນ', - 'd' => ':count ກາງວັນ', - 'a_day' => ':count ກາງວັນ', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/shs.php b/vendor/nesbot/carbon/src/Carbon/Lang/shs.php deleted file mode 100644 index 8d2e1d7..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/shs.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/shs_CA.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/shs_CA.php b/vendor/nesbot/carbon/src/Carbon/Lang/shs_CA.php deleted file mode 100644 index f41c34d..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/shs_CA.php +++ /dev/null @@ -1,39 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Neskie Manuel bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YY', - ], - 'months' => ['Pellkwet̓min', 'Pelctsipwen̓ten', 'Pellsqépts', 'Peslléwten', 'Pell7ell7é7llqten', 'Pelltspéntsk', 'Pelltqwelq̓wél̓t', 'Pellct̓éxel̓cten', 'Pesqelqlélten', 'Pesllwélsten', 'Pellc7ell7é7llcwten̓', 'Pelltetétq̓em'], - 'months_short' => ['Kwe', 'Tsi', 'Sqe', 'Éwt', 'Ell', 'Tsp', 'Tqw', 'Ct̓é', 'Qel', 'Wél', 'U7l', 'Tet'], - 'weekdays' => ['Sxetspesq̓t', 'Spetkesq̓t', 'Selesq̓t', 'Skellesq̓t', 'Smesesq̓t', 'Stselkstesq̓t', 'Stqmekstesq̓t'], - 'weekdays_short' => ['Sxe', 'Spe', 'Sel', 'Ske', 'Sme', 'Sts', 'Stq'], - 'weekdays_min' => ['Sxe', 'Spe', 'Sel', 'Ske', 'Sme', 'Sts', 'Stq'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - - 'year' => ':count sqlélten', // less reliable - 'y' => ':count sqlélten', // less reliable - 'a_year' => ':count sqlélten', // less reliable - - 'month' => ':count swewll', // less reliable - 'm' => ':count swewll', // less reliable - 'a_month' => ':count swewll', // less reliable - - 'hour' => ':count seqwlút', // less reliable - 'h' => ':count seqwlút', // less reliable - 'a_hour' => ':count seqwlút', // less reliable -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/si.php b/vendor/nesbot/carbon/src/Carbon/Lang/si.php deleted file mode 100644 index 7d14ca6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/si.php +++ /dev/null @@ -1,78 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - François B - * - Serhan Apaydın - * - JD Isaacks - * - Malinda Weerasinghe (MalindaWMD) - */ -return [ - 'year' => '{1}වසර 1|වසර :count', - 'a_year' => '{1}වසරක්|වසර :count', - 'month' => '{1}මාස 1|මාස :count', - 'a_month' => '{1}මාසය|මාස :count', - 'week' => '{1}සති 1|සති :count', - 'a_week' => '{1}සතියක්|සති :count', - 'day' => '{1}දින 1|දින :count', - 'a_day' => '{1}දිනක්|දින :count', - 'hour' => '{1}පැය 1|පැය :count', - 'a_hour' => '{1}පැයක්|පැය :count', - 'minute' => '{1}මිනිත්තු 1|මිනිත්තු :count', - 'a_minute' => '{1}මිනිත්තුවක්|මිනිත්තු :count', - 'second' => '{1}තත්පර 1|තත්පර :count', - 'a_second' => '{1}තත්පර කිහිපයකට|තත්පර :count', - 'ago' => ':time කට පෙර', - 'from_now' => static function ($time) { - if (preg_match('/දින \d+/u', $time)) { - return $time.' න්'; - } - - return $time.' කින්'; - }, - 'before' => ':time කට පෙර', - 'after' => static function ($time) { - if (preg_match('/දින \d+/u', $time)) { - return $time.' න්'; - } - - return $time.' කින්'; - }, - 'diff_now' => 'දැන්', - 'diff_today' => 'අද', - 'diff_yesterday' => 'ඊයේ', - 'diff_tomorrow' => 'හෙට', - 'formats' => [ - 'LT' => 'a h:mm', - 'LTS' => 'a h:mm:ss', - 'L' => 'YYYY/MM/DD', - 'LL' => 'YYYY MMMM D', - 'LLL' => 'YYYY MMMM D, a h:mm', - 'LLLL' => 'YYYY MMMM D [වැනි] dddd, a h:mm:ss', - ], - 'calendar' => [ - 'sameDay' => '[අද] LT[ට]', - 'nextDay' => '[හෙට] LT[ට]', - 'nextWeek' => 'dddd LT[ට]', - 'lastDay' => '[ඊයේ] LT[ට]', - 'lastWeek' => '[පසුගිය] dddd LT[ට]', - 'sameElse' => 'L', - ], - 'ordinal' => ':number වැනි', - 'meridiem' => ['පෙර වරු', 'පස් වරු', 'පෙ.ව.', 'ප.ව.'], - 'months' => ['ජනවාරි', 'පෙබරවාරි', 'මාර්තු', 'අප්‍රේල්', 'මැයි', 'ජූනි', 'ජූලි', 'අගෝස්තු', 'සැප්තැම්බර්', 'ඔක්තෝබර්', 'නොවැම්බර්', 'දෙසැම්බර්'], - 'months_short' => ['ජන', 'පෙබ', 'මාර්', 'අප්', 'මැයි', 'ජූනි', 'ජූලි', 'අගෝ', 'සැප්', 'ඔක්', 'නොවැ', 'දෙසැ'], - 'weekdays' => ['ඉරිදා', 'සඳුදා', 'අඟහරුවාදා', 'බදාදා', 'බ්‍රහස්පතින්දා', 'සිකුරාදා', 'සෙනසුරාදා'], - 'weekdays_short' => ['ඉරි', 'සඳු', 'අඟ', 'බදා', 'බ්‍රහ', 'සිකු', 'සෙන'], - 'weekdays_min' => ['ඉ', 'ස', 'අ', 'බ', 'බ්‍ර', 'සි', 'සෙ'], - 'first_day_of_week' => 1, -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/si_LK.php b/vendor/nesbot/carbon/src/Carbon/Lang/si_LK.php deleted file mode 100644 index 81c44e0..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/si_LK.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/si.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sid.php b/vendor/nesbot/carbon/src/Carbon/Lang/sid.php deleted file mode 100644 index b1c6521..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sid.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/sid_ET.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sid_ET.php b/vendor/nesbot/carbon/src/Carbon/Lang/sid_ET.php deleted file mode 100644 index 5e9632d..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sid_ET.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Ge'ez Frontier Foundation locales@geez.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YYYY', - ], - 'months' => ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'], - 'months_short' => ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], - 'weekdays' => ['Sambata', 'Sanyo', 'Maakisanyo', 'Roowe', 'Hamuse', 'Arbe', 'Qidaame'], - 'weekdays_short' => ['Sam', 'San', 'Mak', 'Row', 'Ham', 'Arb', 'Qid'], - 'weekdays_min' => ['Sam', 'San', 'Mak', 'Row', 'Ham', 'Arb', 'Qid'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['soodo', 'hawwaro'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sk.php b/vendor/nesbot/carbon/src/Carbon/Lang/sk.php deleted file mode 100644 index 051e935..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sk.php +++ /dev/null @@ -1,160 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Philippe Vaucher - * - Martin Suja - * - Tsutomu Kuroda - * - tjku - * - Max Melentiev - * - Juanito Fatas - * - Ivan Stana - * - Akira Matsuda - * - Christopher Dell - * - James McKinney - * - Enrique Vidal - * - Simone Carletti - * - Aaron Patterson - * - Jozef Fulop - * - Nicolás Hock Isaza - * - Tom Hughes - * - Simon Hürlimann (CyT) - * - jofi - * - Jakub ADAMEC - * - Marek Adamický - * - AlterwebStudio - * - Peter Kundis - */ - -use Carbon\CarbonInterface; - -$fromNow = function ($time) { - return 'o '.strtr($time, [ - 'hodina' => 'hodinu', - 'minúta' => 'minútu', - 'sekunda' => 'sekundu', - ]); -}; - -$ago = function ($time) { - $replacements = [ - '/\bhodina\b/' => 'hodinou', - '/\bminúta\b/' => 'minútou', - '/\bsekunda\b/' => 'sekundou', - '/\bdeň\b/u' => 'dňom', - '/\btýždeň\b/u' => 'týždňom', - '/\bmesiac\b/' => 'mesiacom', - '/\brok\b/' => 'rokom', - ]; - - $replacementsPlural = [ - '/\b(?:hodiny|hodín)\b/' => 'hodinami', - '/\b(?:minúty|minút)\b/' => 'minútami', - '/\b(?:sekundy|sekúnd)\b/' => 'sekundami', - '/\bdeň\b/' => 'dňom', - '/\bdni\b/' => 'dňami', - '/\bdní\b/u' => 'dňami', - '/\b(?:týždne|týždňov)\b/' => 'týždňami', - '/\b(?:mesiace|mesiacov)\b/' => 'mesiacmi', - '/\b(?:roky|rokov)\b/' => 'rokmi', - ]; - - foreach ($replacements + $replacementsPlural as $pattern => $replacement) { - $time = preg_replace($pattern, $replacement, $time); - } - - return "pred $time"; -}; - -return [ - 'year' => ':count rok|:count roky|:count rokov', - 'a_year' => 'rok|:count roky|:count rokov', - 'y' => ':count r', - 'month' => ':count mesiac|:count mesiace|:count mesiacov', - 'a_month' => 'mesiac|:count mesiace|:count mesiacov', - 'm' => ':count m', - 'week' => ':count týždeň|:count týždne|:count týždňov', - 'a_week' => 'týždeň|:count týždne|:count týždňov', - 'w' => ':count t', - 'day' => ':count deň|:count dni|:count dní', - 'a_day' => 'deň|:count dni|:count dní', - 'd' => ':count d', - 'hour' => ':count hodina|:count hodiny|:count hodín', - 'a_hour' => 'hodina|:count hodiny|:count hodín', - 'h' => ':count h', - 'minute' => ':count minúta|:count minúty|:count minút', - 'a_minute' => 'minúta|:count minúty|:count minút', - 'min' => ':count min', - 'second' => ':count sekunda|:count sekundy|:count sekúnd', - 'a_second' => 'sekunda|:count sekundy|:count sekúnd', - 's' => ':count s', - 'millisecond' => ':count milisekunda|:count milisekundy|:count milisekúnd', - 'a_millisecond' => 'milisekunda|:count milisekundy|:count milisekúnd', - 'ms' => ':count ms', - 'microsecond' => ':count mikrosekunda|:count mikrosekundy|:count mikrosekúnd', - 'a_microsecond' => 'mikrosekunda|:count mikrosekundy|:count mikrosekúnd', - 'µs' => ':count µs', - - 'ago' => $ago, - 'from_now' => $fromNow, - 'before' => ':time pred', - 'after' => ':time po', - - 'hour_after' => ':count hodinu|:count hodiny|:count hodín', - 'minute_after' => ':count minútu|:count minúty|:count minút', - 'second_after' => ':count sekundu|:count sekundy|:count sekúnd', - - 'hour_before' => ':count hodinu|:count hodiny|:count hodín', - 'minute_before' => ':count minútu|:count minúty|:count minút', - 'second_before' => ':count sekundu|:count sekundy|:count sekúnd', - - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => [', ', ' a '], - 'diff_now' => 'teraz', - 'diff_yesterday' => 'včera', - 'diff_tomorrow' => 'zajtra', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD.MM.YYYY', - 'LL' => 'DD. MMMM YYYY', - 'LLL' => 'D. M. HH:mm', - 'LLLL' => 'dddd D. MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[dnes o] LT', - 'nextDay' => '[zajtra o] LT', - 'lastDay' => '[včera o] LT', - 'nextWeek' => 'dddd [o] LT', - 'lastWeek' => static function (CarbonInterface $date) { - switch ($date->dayOfWeek) { - case 1: - case 2: - case 4: - case 5: - return '[minulý] dddd [o] LT'; //pondelok/utorok/štvrtok/piatok - default: - return '[minulá] dddd [o] LT'; - } - }, - 'sameElse' => 'L', - ], - 'weekdays' => ['nedeľa', 'pondelok', 'utorok', 'streda', 'štvrtok', 'piatok', 'sobota'], - 'weekdays_short' => ['ned', 'pon', 'uto', 'str', 'štv', 'pia', 'sob'], - 'weekdays_min' => ['ne', 'po', 'ut', 'st', 'št', 'pi', 'so'], - 'months' => ['januára', 'februára', 'marca', 'apríla', 'mája', 'júna', 'júla', 'augusta', 'septembra', 'októbra', 'novembra', 'decembra'], - 'months_standalone' => ['január', 'február', 'marec', 'apríl', 'máj', 'jún', 'júl', 'august', 'september', 'október', 'november', 'december'], - 'months_short' => ['jan', 'feb', 'mar', 'apr', 'máj', 'jún', 'júl', 'aug', 'sep', 'okt', 'nov', 'dec'], - 'months_regexp' => '/(DD?o?\.?(\[[^\[\]]*\]|\s)+MMMM?|L{2,4}|l{2,4})/', - 'meridiem' => ['dopoludnia', 'popoludní'], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sk_SK.php b/vendor/nesbot/carbon/src/Carbon/Lang/sk_SK.php deleted file mode 100644 index 0515601..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sk_SK.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/sk.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sl.php b/vendor/nesbot/carbon/src/Carbon/Lang/sl.php deleted file mode 100644 index 012742e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sl.php +++ /dev/null @@ -1,129 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Philippe Vaucher - * - Tsutomu Kuroda - * - tjku - * - Max Melentiev - * - Juanito Fatas - * - Akira Matsuda - * - Christopher Dell - * - Enrique Vidal - * - Simone Carletti - * - Aaron Patterson - * - Nicolás Hock Isaza - * - Miha Rebernik - * - Gal Jakič (morpheus7CS) - * - Glavić - * - Anže Časar - * - Lovro Tramšek (Lovro1107) - * - burut13 - */ - -use Carbon\CarbonInterface; - -return [ - 'year' => ':count leto|:count leti|:count leta|:count let', - 'y' => ':count leto|:count leti|:count leta|:count let', - 'month' => ':count mesec|:count meseca|:count mesece|:count mesecev', - 'm' => ':count mes.', - 'week' => ':count teden|:count tedna|:count tedne|:count tednov', - 'w' => ':count ted.', - 'day' => ':count dan|:count dni|:count dni|:count dni', - 'd' => ':count dan|:count dni|:count dni|:count dni', - 'hour' => ':count ura|:count uri|:count ure|:count ur', - 'h' => ':count h', - 'minute' => ':count minuta|:count minuti|:count minute|:count minut', - 'min' => ':count min.', - 'second' => ':count sekunda|:count sekundi|:count sekunde|:count sekund', - 'a_second' => '{1}nekaj sekund|:count sekunda|:count sekundi|:count sekunde|:count sekund', - 's' => ':count s', - - 'year_ago' => ':count letom|:count letoma|:count leti|:count leti', - 'y_ago' => ':count letom|:count letoma|:count leti|:count leti', - 'month_ago' => ':count mesecem|:count mesecema|:count meseci|:count meseci', - 'week_ago' => ':count tednom|:count tednoma|:count tedni|:count tedni', - 'day_ago' => ':count dnem|:count dnevoma|:count dnevi|:count dnevi', - 'd_ago' => ':count dnem|:count dnevoma|:count dnevi|:count dnevi', - 'hour_ago' => ':count uro|:count urama|:count urami|:count urami', - 'minute_ago' => ':count minuto|:count minutama|:count minutami|:count minutami', - 'second_ago' => ':count sekundo|:count sekundama|:count sekundami|:count sekundami', - - 'day_from_now' => ':count dan|:count dneva|:count dni|:count dni', - 'd_from_now' => ':count dan|:count dneva|:count dni|:count dni', - 'hour_from_now' => ':count uro|:count uri|:count ure|:count ur', - 'minute_from_now' => ':count minuto|:count minuti|:count minute|:count minut', - 'second_from_now' => ':count sekundo|:count sekundi|:count sekunde|:count sekund', - - 'ago' => 'pred :time', - 'from_now' => 'čez :time', - 'after' => ':time kasneje', - 'before' => ':time prej', - - 'diff_now' => 'ravnokar', - 'diff_today' => 'danes', - 'diff_today_regexp' => 'danes(?:\\s+ob)?', - 'diff_yesterday' => 'včeraj', - 'diff_yesterday_regexp' => 'včeraj(?:\\s+ob)?', - 'diff_tomorrow' => 'jutri', - 'diff_tomorrow_regexp' => 'jutri(?:\\s+ob)?', - 'diff_before_yesterday' => 'predvčerajšnjim', - 'diff_after_tomorrow' => 'pojutrišnjem', - - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - - 'period_start_date' => 'od :date', - 'period_end_date' => 'do :date', - - 'formats' => [ - 'LT' => 'H:mm', - 'LTS' => 'H:mm:ss', - 'L' => 'DD.MM.YYYY', - 'LL' => 'D. MMMM YYYY', - 'LLL' => 'D. MMMM YYYY H:mm', - 'LLLL' => 'dddd, D. MMMM YYYY H:mm', - ], - 'calendar' => [ - 'sameDay' => '[danes ob] LT', - 'nextDay' => '[jutri ob] LT', - 'nextWeek' => 'dddd [ob] LT', - 'lastDay' => '[včeraj ob] LT', - 'lastWeek' => static function (CarbonInterface $date) { - switch ($date->dayOfWeek) { - case 0: - return '[preteklo] [nedeljo] [ob] LT'; - case 1: - return '[pretekli] [ponedeljek] [ob] LT'; - case 2: - return '[pretekli] [torek] [ob] LT'; - case 3: - return '[preteklo] [sredo] [ob] LT'; - case 4: - return '[pretekli] [četrtek] [ob] LT'; - case 5: - return '[pretekli] [petek] [ob] LT'; - case 6: - return '[preteklo] [soboto] [ob] LT'; - } - }, - 'sameElse' => 'L', - ], - 'months' => ['januar', 'februar', 'marec', 'april', 'maj', 'junij', 'julij', 'avgust', 'september', 'oktober', 'november', 'december'], - 'months_short' => ['jan', 'feb', 'mar', 'apr', 'maj', 'jun', 'jul', 'avg', 'sep', 'okt', 'nov', 'dec'], - 'weekdays' => ['nedelja', 'ponedeljek', 'torek', 'sreda', 'četrtek', 'petek', 'sobota'], - 'weekdays_short' => ['ned', 'pon', 'tor', 'sre', 'čet', 'pet', 'sob'], - 'weekdays_min' => ['ne', 'po', 'to', 'sr', 'če', 'pe', 'so'], - 'list' => [', ', ' in '], - 'meridiem' => ['dopoldan', 'popoldan'], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sl_SI.php b/vendor/nesbot/carbon/src/Carbon/Lang/sl_SI.php deleted file mode 100644 index 5dad8c8..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sl_SI.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/sl.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sm.php b/vendor/nesbot/carbon/src/Carbon/Lang/sm.php deleted file mode 100644 index e8c118a..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sm.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/sm_WS.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sm_WS.php b/vendor/nesbot/carbon/src/Carbon/Lang/sm_WS.php deleted file mode 100644 index 1568af6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sm_WS.php +++ /dev/null @@ -1,54 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Samsung Electronics Co., Ltd. akhilesh.k@samsung.com - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, - 'formats' => [ - 'L' => 'DD/MM/YYYY', - ], - 'months' => ['Ianuari', 'Fepuari', 'Mati', 'Aperila', 'Me', 'Iuni', 'Iulai', 'Auguso', 'Setema', 'Oketopa', 'Novema', 'Tesema'], - 'months_short' => ['Ian', 'Fep', 'Mat', 'Ape', 'Me', 'Iun', 'Iul', 'Aug', 'Set', 'Oke', 'Nov', 'Tes'], - 'weekdays' => ['Aso Sa', 'Aso Gafua', 'Aso Lua', 'Aso Lulu', 'Aso Tofi', 'Aso Farail', 'Aso To\'ana\'i'], - 'weekdays_short' => ['Aso Sa', 'Aso Gaf', 'Aso Lua', 'Aso Lul', 'Aso Tof', 'Aso Far', 'Aso To\''], - 'weekdays_min' => ['Aso Sa', 'Aso Gaf', 'Aso Lua', 'Aso Lul', 'Aso Tof', 'Aso Far', 'Aso To\''], - - 'hour' => ':count uati', // less reliable - 'h' => ':count uati', // less reliable - 'a_hour' => ':count uati', // less reliable - - 'minute' => ':count itiiti', // less reliable - 'min' => ':count itiiti', // less reliable - 'a_minute' => ':count itiiti', // less reliable - - 'second' => ':count lua', // less reliable - 's' => ':count lua', // less reliable - 'a_second' => ':count lua', // less reliable - - 'year' => ':count tausaga', - 'y' => ':count tausaga', - 'a_year' => ':count tausaga', - - 'month' => ':count māsina', - 'm' => ':count māsina', - 'a_month' => ':count māsina', - - 'week' => ':count vaiaso', - 'w' => ':count vaiaso', - 'a_week' => ':count vaiaso', - - 'day' => ':count aso', - 'd' => ':count aso', - 'a_day' => ':count aso', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/smn.php b/vendor/nesbot/carbon/src/Carbon/Lang/smn.php deleted file mode 100644 index 20add02..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/smn.php +++ /dev/null @@ -1,57 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'meridiem' => ['ip.', 'ep.'], - 'weekdays' => ['pasepeeivi', 'vuossaargâ', 'majebaargâ', 'koskoho', 'tuorâstuv', 'vástuppeeivi', 'lávurduv'], - 'weekdays_short' => ['pas', 'vuo', 'maj', 'kos', 'tuo', 'vás', 'láv'], - 'weekdays_min' => ['pa', 'vu', 'ma', 'ko', 'tu', 'vá', 'lá'], - 'weekdays_standalone' => ['pasepeivi', 'vuossargâ', 'majebargâ', 'koskokko', 'tuorâstâh', 'vástuppeivi', 'lávurdâh'], - 'months' => ['uđđâivemáánu', 'kuovâmáánu', 'njuhčâmáánu', 'cuáŋuimáánu', 'vyesimáánu', 'kesimáánu', 'syeinimáánu', 'porgemáánu', 'čohčâmáánu', 'roovvâdmáánu', 'skammâmáánu', 'juovlâmáánu'], - 'months_short' => ['uđiv', 'kuovâ', 'njuhčâ', 'cuáŋui', 'vyesi', 'kesi', 'syeini', 'porge', 'čohčâ', 'roovvâd', 'skammâ', 'juovlâ'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'H.mm', - 'LTS' => 'H.mm.ss', - 'L' => 'D.M.YYYY', - 'LL' => 'MMM D. YYYY', - 'LLL' => 'MMMM D. YYYY H.mm', - 'LLLL' => 'dddd, MMMM D. YYYY H.mm', - ], - - 'hour' => ':count äigi', // less reliable - 'h' => ':count äigi', // less reliable - 'a_hour' => ':count äigi', // less reliable - - 'year' => ':count ihe', - 'y' => ':count ihe', - 'a_year' => ':count ihe', - - 'month' => ':count mánuppaje', - 'm' => ':count mánuppaje', - 'a_month' => ':count mánuppaje', - - 'week' => ':count okko', - 'w' => ':count okko', - 'a_week' => ':count okko', - - 'day' => ':count peivi', - 'd' => ':count peivi', - 'a_day' => ':count peivi', - - 'minute' => ':count miinut', - 'min' => ':count miinut', - 'a_minute' => ':count miinut', - - 'second' => ':count nubbe', - 's' => ':count nubbe', - 'a_second' => ':count nubbe', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sn.php b/vendor/nesbot/carbon/src/Carbon/Lang/sn.php deleted file mode 100644 index 095936f..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sn.php +++ /dev/null @@ -1,56 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, - 'meridiem' => ['a', 'p'], - 'weekdays' => ['Svondo', 'Muvhuro', 'Chipiri', 'Chitatu', 'China', 'Chishanu', 'Mugovera'], - 'weekdays_short' => ['Svo', 'Muv', 'Chp', 'Cht', 'Chn', 'Chs', 'Mug'], - 'weekdays_min' => ['Sv', 'Mu', 'Cp', 'Ct', 'Cn', 'Cs', 'Mg'], - 'months' => ['Ndira', 'Kukadzi', 'Kurume', 'Kubvumbi', 'Chivabvu', 'Chikumi', 'Chikunguru', 'Nyamavhuvhu', 'Gunyana', 'Gumiguru', 'Mbudzi', 'Zvita'], - 'months_short' => ['Ndi', 'Kuk', 'Kur', 'Kub', 'Chv', 'Chk', 'Chg', 'Nya', 'Gun', 'Gum', 'Mbu', 'Zvi'], - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'YYYY-MM-dd', - 'LL' => 'YYYY MMM D', - 'LLL' => 'YYYY MMMM D HH:mm', - 'LLLL' => 'YYYY MMMM D, dddd HH:mm', - ], - - 'year' => 'makore :count', - 'y' => 'makore :count', - 'a_year' => 'makore :count', - - 'month' => 'mwedzi :count', - 'm' => 'mwedzi :count', - 'a_month' => 'mwedzi :count', - - 'week' => 'vhiki :count', - 'w' => 'vhiki :count', - 'a_week' => 'vhiki :count', - - 'day' => 'mazuva :count', - 'd' => 'mazuva :count', - 'a_day' => 'mazuva :count', - - 'hour' => 'maawa :count', - 'h' => 'maawa :count', - 'a_hour' => 'maawa :count', - - 'minute' => 'minitsi :count', - 'min' => 'minitsi :count', - 'a_minute' => 'minitsi :count', - - 'second' => 'sekonzi :count', - 's' => 'sekonzi :count', - 'a_second' => 'sekonzi :count', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/so.php b/vendor/nesbot/carbon/src/Carbon/Lang/so.php deleted file mode 100644 index 2e4549f..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/so.php +++ /dev/null @@ -1,74 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Author: - * - Abdifatah Abdilahi(@abdifatahz) - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'year' => ':count sanad|:count sanadood', - 'a_year' => 'sanad|:count sanadood', - 'y' => '{1}:countsn|{0}:countsns|]1,Inf[:countsn', - 'month' => ':count bil|:count bilood', - 'a_month' => 'bil|:count bilood', - 'm' => ':countbil', - 'week' => ':count isbuuc', - 'a_week' => 'isbuuc|:count isbuuc', - 'w' => ':countis', - 'day' => ':count maalin|:count maalmood', - 'a_day' => 'maalin|:count maalmood', - 'd' => ':countml', - 'hour' => ':count saac', - 'a_hour' => 'saacad|:count saac', - 'h' => ':countsc', - 'minute' => ':count daqiiqo', - 'a_minute' => 'daqiiqo|:count daqiiqo', - 'min' => ':countdq', - 'second' => ':count ilbidhiqsi', - 'a_second' => 'xooga ilbidhiqsiyo|:count ilbidhiqsi', - 's' => ':countil', - 'ago' => ':time kahor', - 'from_now' => ':time gudahood', - 'after' => ':time kedib', - 'before' => ':time kahor', - 'diff_now' => 'hada', - 'diff_today' => 'maanta', - 'diff_today_regexp' => 'maanta(?:\s+markay\s+(?:tahay|ahayd))?', - 'diff_yesterday' => 'shalayto', - 'diff_yesterday_regexp' => 'shalayto(?:\s+markay\s+ahayd)?', - 'diff_tomorrow' => 'beri', - 'diff_tomorrow_regexp' => 'beri(?:\s+markay\s+tahay)?', - 'diff_before_yesterday' => 'doraato', - 'diff_after_tomorrow' => 'saadanbe', - 'period_recurrences' => 'mar|:count jeer', - 'period_interval' => ':interval kasta', - 'period_start_date' => 'laga bilaabo :date', - 'period_end_date' => 'ilaa :date', - 'months' => ['Janaayo', 'Febraayo', 'Abriil', 'Maajo', 'Juun', 'Luuliyo', 'Agoosto', 'Sebteembar', 'Oktoobar', 'Nofeembar', 'Diseembar'], - 'months_short' => ['Jan', 'Feb', 'Mar', 'Abr', 'Mjo', 'Jun', 'Lyo', 'Agt', 'Seb', 'Okt', 'Nof', 'Dis'], - 'weekdays' => ['Axad', 'Isniin', 'Talaada', 'Arbaca', 'Khamiis', 'Jimce', 'Sabti'], - 'weekdays_short' => ['Axd', 'Isn', 'Tal', 'Arb', 'Kha', 'Jim', 'Sbt'], - 'weekdays_min' => ['Ax', 'Is', 'Ta', 'Ar', 'Kh', 'Ji', 'Sa'], - 'list' => [', ', ' and '], - 'first_day_of_week' => 6, - 'day_of_first_week_of_year' => 1, - 'formats' => [ - 'L' => 'DD/MM/YYYY', - ], - 'calendar' => [ - 'sameDay' => '[Maanta markay tahay] LT', - 'nextDay' => '[Beri markay tahay] LT', - 'nextWeek' => 'dddd [markay tahay] LT', - 'lastDay' => '[Shalay markay ahayd] LT', - 'lastWeek' => '[Hore] dddd [Markay ahayd] LT', - 'sameElse' => 'L', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/so_DJ.php b/vendor/nesbot/carbon/src/Carbon/Lang/so_DJ.php deleted file mode 100644 index 273dda8..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/so_DJ.php +++ /dev/null @@ -1,20 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Ge'ez Frontier Foundation locales@geez.org - */ -return array_replace_recursive(require __DIR__.'/so.php', [ - 'formats' => [ - 'L' => 'DD.MM.YYYY', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/so_ET.php b/vendor/nesbot/carbon/src/Carbon/Lang/so_ET.php deleted file mode 100644 index 7b69971..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/so_ET.php +++ /dev/null @@ -1,16 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Ge'ez Frontier Foundation locales@geez.org - */ -return require __DIR__.'/so.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/so_KE.php b/vendor/nesbot/carbon/src/Carbon/Lang/so_KE.php deleted file mode 100644 index 7b69971..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/so_KE.php +++ /dev/null @@ -1,16 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Ge'ez Frontier Foundation locales@geez.org - */ -return require __DIR__.'/so.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/so_SO.php b/vendor/nesbot/carbon/src/Carbon/Lang/so_SO.php deleted file mode 100644 index 7b69971..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/so_SO.php +++ /dev/null @@ -1,16 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Ge'ez Frontier Foundation locales@geez.org - */ -return require __DIR__.'/so.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sq.php b/vendor/nesbot/carbon/src/Carbon/Lang/sq.php deleted file mode 100644 index ffa592e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sq.php +++ /dev/null @@ -1,79 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - François B - * - JD Isaacks - * - Fadion Dashi - */ -return [ - 'year' => ':count vit|:count vjet', - 'a_year' => 'një vit|:count vite', - 'y' => ':count v.', - 'month' => ':count muaj', - 'a_month' => 'një muaj|:count muaj', - 'm' => ':count muaj', - 'week' => ':count javë', - 'a_week' => ':count javë|:count javë', - 'w' => ':count j.', - 'day' => ':count ditë', - 'a_day' => 'një ditë|:count ditë', - 'd' => ':count d.', - 'hour' => ':count orë', - 'a_hour' => 'një orë|:count orë', - 'h' => ':count o.', - 'minute' => ':count minutë|:count minuta', - 'a_minute' => 'një minutë|:count minuta', - 'min' => ':count min.', - 'second' => ':count sekondë|:count sekonda', - 'a_second' => 'disa sekonda|:count sekonda', - 's' => ':count s.', - 'ago' => ':time më parë', - 'from_now' => 'në :time', - 'after' => ':time pas', - 'before' => ':time para', - 'diff_now' => 'tani', - 'diff_today' => 'Sot', - 'diff_today_regexp' => 'Sot(?:\\s+në)?', - 'diff_yesterday' => 'dje', - 'diff_yesterday_regexp' => 'Dje(?:\\s+në)?', - 'diff_tomorrow' => 'nesër', - 'diff_tomorrow_regexp' => 'Nesër(?:\\s+në)?', - 'diff_before_yesterday' => 'pardje', - 'diff_after_tomorrow' => 'pasnesër', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[Sot në] LT', - 'nextDay' => '[Nesër në] LT', - 'nextWeek' => 'dddd [në] LT', - 'lastDay' => '[Dje në] LT', - 'lastWeek' => 'dddd [e kaluar në] LT', - 'sameElse' => 'L', - ], - 'ordinal' => ':number.', - 'meridiem' => ['PD', 'MD'], - 'months' => ['janar', 'shkurt', 'mars', 'prill', 'maj', 'qershor', 'korrik', 'gusht', 'shtator', 'tetor', 'nëntor', 'dhjetor'], - 'months_short' => ['jan', 'shk', 'mar', 'pri', 'maj', 'qer', 'kor', 'gus', 'sht', 'tet', 'nën', 'dhj'], - 'weekdays' => ['e diel', 'e hënë', 'e martë', 'e mërkurë', 'e enjte', 'e premte', 'e shtunë'], - 'weekdays_short' => ['die', 'hën', 'mar', 'mër', 'enj', 'pre', 'sht'], - 'weekdays_min' => ['d', 'h', 'ma', 'më', 'e', 'p', 'sh'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => [', ', ' dhe '], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sq_AL.php b/vendor/nesbot/carbon/src/Carbon/Lang/sq_AL.php deleted file mode 100644 index ea5df3f..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sq_AL.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/sq.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sq_MK.php b/vendor/nesbot/carbon/src/Carbon/Lang/sq_MK.php deleted file mode 100644 index 62f752c..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sq_MK.php +++ /dev/null @@ -1,19 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/sq.php', [ - 'formats' => [ - 'L' => 'D.M.YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY, HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY, HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sq_XK.php b/vendor/nesbot/carbon/src/Carbon/Lang/sq_XK.php deleted file mode 100644 index 62f752c..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sq_XK.php +++ /dev/null @@ -1,19 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/sq.php', [ - 'formats' => [ - 'L' => 'D.M.YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY, HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY, HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sr.php b/vendor/nesbot/carbon/src/Carbon/Lang/sr.php deleted file mode 100644 index faa9fbd..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sr.php +++ /dev/null @@ -1,98 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Josh Soref - * - François B - * - shaishavgandhi05 - * - Serhan Apaydın - * - JD Isaacks - * - Glavić - * - Milos Sakovic - */ - -use Carbon\CarbonInterface; - -return [ - 'year' => ':count godina|:count godine|:count godina', - 'y' => ':count g.', - 'month' => ':count mesec|:count meseca|:count meseci', - 'm' => ':count mj.', - 'week' => ':count nedelja|:count nedelje|:count nedelja', - 'w' => ':count ned.', - 'day' => ':count dan|:count dana|:count dana', - 'd' => ':count d.', - 'hour' => ':count sat|:count sata|:count sati', - 'h' => ':count č.', - 'minute' => ':count minut|:count minuta|:count minuta', - 'min' => ':count min.', - 'second' => ':count sekundu|:count sekunde|:count sekundi', - 's' => ':count sek.', - - 'ago' => 'pre :time', - 'from_now' => 'za :time', - 'after' => 'nakon :time', - 'before' => 'pre :time', - - 'year_ago' => ':count godinu|:count godine|:count godina', - 'year_from_now' => ':count godinu|:count godine|:count godina', - 'week_ago' => ':count nedelju|:count nedelje|:count nedelja', - 'week_from_now' => ':count nedelju|:count nedelje|:count nedelja', - - 'diff_now' => 'upravo sada', - 'diff_today' => 'danas', - 'diff_today_regexp' => 'danas(?:\\s+u)?', - 'diff_yesterday' => 'juče', - 'diff_yesterday_regexp' => 'juče(?:\\s+u)?', - 'diff_tomorrow' => 'sutra', - 'diff_tomorrow_regexp' => 'sutra(?:\\s+u)?', - 'diff_before_yesterday' => 'prekjuče', - 'diff_after_tomorrow' => 'preksutra', - 'formats' => [ - 'LT' => 'H:mm', - 'LTS' => 'H:mm:ss', - 'L' => 'DD.MM.YYYY', - 'LL' => 'D. MMMM YYYY', - 'LLL' => 'D. MMMM YYYY H:mm', - 'LLLL' => 'dddd, D. MMMM YYYY H:mm', - ], - 'calendar' => [ - 'sameDay' => '[danas u] LT', - 'nextDay' => '[sutra u] LT', - 'nextWeek' => static fn (CarbonInterface $date) => match ($date->dayOfWeek) { - 0 => '[u nedelju u] LT', - 3 => '[u sredu u] LT', - 6 => '[u subotu u] LT', - default => '[u] dddd [u] LT', - }, - 'lastDay' => '[juče u] LT', - 'lastWeek' => static fn (CarbonInterface $date) => match ($date->dayOfWeek) { - 0 => '[prošle nedelje u] LT', - 1 => '[prošlog ponedeljka u] LT', - 2 => '[prošlog utorka u] LT', - 3 => '[prošle srede u] LT', - 4 => '[prošlog četvrtka u] LT', - 5 => '[prošlog petka u] LT', - default => '[prošle subote u] LT', - }, - 'sameElse' => 'L', - ], - 'ordinal' => ':number.', - 'months' => ['januar', 'februar', 'mart', 'april', 'maj', 'jun', 'jul', 'avgust', 'septembar', 'oktobar', 'novembar', 'decembar'], - 'months_short' => ['jan.', 'feb.', 'mar.', 'apr.', 'maj', 'jun', 'jul', 'avg.', 'sep.', 'okt.', 'nov.', 'dec.'], - 'weekdays' => ['nedelja', 'ponedeljak', 'utorak', 'sreda', 'četvrtak', 'petak', 'subota'], - 'weekdays_short' => ['ned.', 'pon.', 'uto.', 'sre.', 'čet.', 'pet.', 'sub.'], - 'weekdays_min' => ['ne', 'po', 'ut', 'sr', 'če', 'pe', 'su'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'list' => [', ', ' i '], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sr_Cyrl.php b/vendor/nesbot/carbon/src/Carbon/Lang/sr_Cyrl.php deleted file mode 100644 index fe42d5a..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sr_Cyrl.php +++ /dev/null @@ -1,97 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Josh Soref - * - François B - * - shaishavgandhi05 - * - Serhan Apaydın - * - JD Isaacks - * - Glavić - * - Nikola Zeravcic - * - Milos Sakovic - */ - -use Carbon\CarbonInterface; - -return [ - 'year' => ':count година|:count године|:count година', - 'y' => ':count г.', - 'month' => ':count месец|:count месеца|:count месеци', - 'm' => ':count м.', - 'week' => ':count недеља|:count недеље|:count недеља', - 'w' => ':count нед.', - 'day' => ':count дан|:count дана|:count дана', - 'd' => ':count д.', - 'hour' => ':count сат|:count сата|:count сати', - 'h' => ':count ч.', - 'minute' => ':count минут|:count минута|:count минута', - 'min' => ':count мин.', - 'second' => ':count секунд|:count секунде|:count секунди', - 's' => ':count сек.', - 'ago' => 'пре :time', - 'from_now' => 'за :time', - 'after' => ':time након', - 'before' => ':time пре', - 'year_from_now' => ':count годину|:count године|:count година', - 'year_ago' => ':count годину|:count године|:count година', - 'week_from_now' => ':count недељу|:count недеље|:count недеља', - 'week_ago' => ':count недељу|:count недеље|:count недеља', - 'diff_now' => 'управо сада', - 'diff_today' => 'данас', - 'diff_today_regexp' => 'данас(?:\\s+у)?', - 'diff_yesterday' => 'јуче', - 'diff_yesterday_regexp' => 'јуче(?:\\s+у)?', - 'diff_tomorrow' => 'сутра', - 'diff_tomorrow_regexp' => 'сутра(?:\\s+у)?', - 'diff_before_yesterday' => 'прекјуче', - 'diff_after_tomorrow' => 'прекосутра', - 'formats' => [ - 'LT' => 'H:mm', - 'LTS' => 'H:mm:ss', - 'L' => 'DD.MM.YYYY', - 'LL' => 'D. MMMM YYYY', - 'LLL' => 'D. MMMM YYYY H:mm', - 'LLLL' => 'dddd, D. MMMM YYYY H:mm', - ], - 'calendar' => [ - 'sameDay' => '[данас у] LT', - 'nextDay' => '[сутра у] LT', - 'nextWeek' => static fn (CarbonInterface $date) => match ($date->dayOfWeek) { - 0 => '[у недељу у] LT', - 3 => '[у среду у] LT', - 6 => '[у суботу у] LT', - default => '[у] dddd [у] LT', - }, - 'lastDay' => '[јуче у] LT', - 'lastWeek' => static fn (CarbonInterface $date) => match ($date->dayOfWeek) { - 0 => '[прошле недеље у] LT', - 1 => '[прошлог понедељка у] LT', - 2 => '[прошлог уторка у] LT', - 3 => '[прошле среде у] LT', - 4 => '[прошлог четвртка у] LT', - 5 => '[прошлог петка у] LT', - default => '[прошле суботе у] LT', - }, - 'sameElse' => 'L', - ], - 'ordinal' => ':number.', - 'months' => ['јануар', 'фебруар', 'март', 'април', 'мај', 'јун', 'јул', 'август', 'септембар', 'октобар', 'новембар', 'децембар'], - 'months_short' => ['јан.', 'феб.', 'мар.', 'апр.', 'мај', 'јун', 'јул', 'авг.', 'сеп.', 'окт.', 'нов.', 'дец.'], - 'weekdays' => ['недеља', 'понедељак', 'уторак', 'среда', 'четвртак', 'петак', 'субота'], - 'weekdays_short' => ['нед.', 'пон.', 'уто.', 'сре.', 'чет.', 'пет.', 'суб.'], - 'weekdays_min' => ['не', 'по', 'ут', 'ср', 'че', 'пе', 'су'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'list' => [', ', ' и '], - 'meridiem' => ['АМ', 'ПМ'], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sr_Cyrl_BA.php b/vendor/nesbot/carbon/src/Carbon/Lang/sr_Cyrl_BA.php deleted file mode 100644 index 4b29a45..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sr_Cyrl_BA.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -use Symfony\Component\Translation\PluralizationRules; - -// @codeCoverageIgnoreStart -if (class_exists(PluralizationRules::class)) { - PluralizationRules::set(static function ($number) { - return PluralizationRules::get($number, 'sr'); - }, 'sr_Cyrl_BA'); -} -// @codeCoverageIgnoreEnd - -return array_replace_recursive(require __DIR__.'/sr_Cyrl.php', [ - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'D.M.yy.', - 'LL' => 'DD.MM.YYYY.', - 'LLL' => 'DD. MMMM YYYY. HH:mm', - 'LLLL' => 'dddd, DD. MMMM YYYY. HH:mm', - ], - 'weekdays' => ['недјеља', 'понедељак', 'уторак', 'сриједа', 'четвртак', 'петак', 'субота'], - 'weekdays_short' => ['нед.', 'пон.', 'ут.', 'ср.', 'чет.', 'пет.', 'суб.'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sr_Cyrl_ME.php b/vendor/nesbot/carbon/src/Carbon/Lang/sr_Cyrl_ME.php deleted file mode 100644 index e34f732..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sr_Cyrl_ME.php +++ /dev/null @@ -1,103 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Glavić - * - Milos Sakovic - */ - -use Carbon\CarbonInterface; -use Symfony\Component\Translation\PluralizationRules; - -// @codeCoverageIgnoreStart -if (class_exists(PluralizationRules::class)) { - PluralizationRules::set(static function ($number) { - return PluralizationRules::get($number, 'sr'); - }, 'sr_Cyrl_ME'); -} -// @codeCoverageIgnoreEnd - -return [ - 'year' => ':count година|:count године|:count година', - 'y' => ':count г.', - 'month' => ':count мјесец|:count мјесеца|:count мјесеци', - 'm' => ':count мј.', - 'week' => ':count недјеља|:count недјеље|:count недјеља', - 'w' => ':count нед.', - 'day' => ':count дан|:count дана|:count дана', - 'd' => ':count д.', - 'hour' => ':count сат|:count сата|:count сати', - 'h' => ':count ч.', - 'minute' => ':count минут|:count минута|:count минута', - 'min' => ':count мин.', - 'second' => ':count секунд|:count секунде|:count секунди', - 's' => ':count сек.', - 'ago' => 'прије :time', - 'from_now' => 'за :time', - 'after' => ':time након', - 'before' => ':time прије', - - 'year_from_now' => ':count годину|:count године|:count година', - 'year_ago' => ':count годину|:count године|:count година', - - 'week_from_now' => ':count недјељу|:count недјеље|:count недјеља', - 'week_ago' => ':count недјељу|:count недјеље|:count недјеља', - - 'diff_now' => 'управо сада', - 'diff_today' => 'данас', - 'diff_today_regexp' => 'данас(?:\\s+у)?', - 'diff_yesterday' => 'јуче', - 'diff_yesterday_regexp' => 'јуче(?:\\s+у)?', - 'diff_tomorrow' => 'сутра', - 'diff_tomorrow_regexp' => 'сутра(?:\\s+у)?', - 'diff_before_yesterday' => 'прекјуче', - 'diff_after_tomorrow' => 'прекосјутра', - 'formats' => [ - 'LT' => 'H:mm', - 'LTS' => 'H:mm:ss', - 'L' => 'DD.MM.YYYY', - 'LL' => 'D. MMMM YYYY', - 'LLL' => 'D. MMMM YYYY H:mm', - 'LLLL' => 'dddd, D. MMMM YYYY H:mm', - ], - 'calendar' => [ - 'sameDay' => '[данас у] LT', - 'nextDay' => '[сутра у] LT', - 'nextWeek' => static fn (CarbonInterface $date) => match ($date->dayOfWeek) { - 0 => '[у недељу у] LT', - 3 => '[у среду у] LT', - 6 => '[у суботу у] LT', - default => '[у] dddd [у] LT', - }, - 'lastDay' => '[јуче у] LT', - 'lastWeek' => static fn (CarbonInterface $date) => match ($date->dayOfWeek) { - 0 => '[прошле недеље у] LT', - 1 => '[прошлог понедељка у] LT', - 2 => '[прошлог уторка у] LT', - 3 => '[прошле среде у] LT', - 4 => '[прошлог четвртка у] LT', - 5 => '[прошлог петка у] LT', - default => '[прошле суботе у] LT', - }, - 'sameElse' => 'L', - ], - 'ordinal' => ':number.', - 'months' => ['јануар', 'фебруар', 'март', 'април', 'мај', 'јун', 'јул', 'август', 'септембар', 'октобар', 'новембар', 'децембар'], - 'months_short' => ['јан.', 'феб.', 'мар.', 'апр.', 'мај', 'јун', 'јул', 'авг.', 'сеп.', 'окт.', 'нов.', 'дец.'], - 'weekdays' => ['недеља', 'понедељак', 'уторак', 'среда', 'четвртак', 'петак', 'субота'], - 'weekdays_short' => ['нед.', 'пон.', 'уто.', 'сре.', 'чет.', 'пет.', 'суб.'], - 'weekdays_min' => ['не', 'по', 'ут', 'ср', 'че', 'пе', 'су'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'list' => [', ', ' и '], - 'meridiem' => ['АМ', 'ПМ'], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sr_Cyrl_XK.php b/vendor/nesbot/carbon/src/Carbon/Lang/sr_Cyrl_XK.php deleted file mode 100644 index d6e29b8..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sr_Cyrl_XK.php +++ /dev/null @@ -1,24 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -use Symfony\Component\Translation\PluralizationRules; - -// @codeCoverageIgnoreStart -if (class_exists(PluralizationRules::class)) { - PluralizationRules::set(static function ($number) { - return PluralizationRules::get($number, 'sr'); - }, 'sr_Cyrl_XK'); -} -// @codeCoverageIgnoreEnd - -return array_replace_recursive(require __DIR__.'/sr_Cyrl_BA.php', [ - 'weekdays' => ['недеља', 'понедељак', 'уторак', 'среда', 'четвртак', 'петак', 'субота'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sr_Latn.php b/vendor/nesbot/carbon/src/Carbon/Lang/sr_Latn.php deleted file mode 100644 index 9971674..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sr_Latn.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/sr.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sr_Latn_BA.php b/vendor/nesbot/carbon/src/Carbon/Lang/sr_Latn_BA.php deleted file mode 100644 index 95b2770..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sr_Latn_BA.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -use Symfony\Component\Translation\PluralizationRules; - -// @codeCoverageIgnoreStart -if (class_exists(PluralizationRules::class)) { - PluralizationRules::set(static function ($number) { - return PluralizationRules::get($number, 'sr'); - }, 'sr_Latn_BA'); -} -// @codeCoverageIgnoreEnd - -return array_replace_recursive(require __DIR__.'/sr_Latn.php', [ - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'D.M.yy.', - 'LL' => 'DD.MM.YYYY.', - 'LLL' => 'DD. MMMM YYYY. HH:mm', - 'LLLL' => 'dddd, DD. MMMM YYYY. HH:mm', - ], - 'weekdays' => ['nedjelja', 'ponedeljak', 'utorak', 'srijeda', 'četvrtak', 'petak', 'subota'], - 'weekdays_short' => ['ned.', 'pon.', 'ut.', 'sr.', 'čet.', 'pet.', 'sub.'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sr_Latn_ME.php b/vendor/nesbot/carbon/src/Carbon/Lang/sr_Latn_ME.php deleted file mode 100644 index 8115080..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sr_Latn_ME.php +++ /dev/null @@ -1,61 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Glavić - * - Milos Sakovic - */ - -use Carbon\CarbonInterface; -use Symfony\Component\Translation\PluralizationRules; - -// @codeCoverageIgnoreStart -if (class_exists(PluralizationRules::class)) { - PluralizationRules::set(static function ($number) { - return PluralizationRules::get($number, 'sr'); - }, 'sr_Latn_ME'); -} -// @codeCoverageIgnoreEnd - -return array_replace_recursive(require __DIR__.'/sr.php', [ - 'month' => ':count mjesec|:count mjeseca|:count mjeseci', - 'week' => ':count nedjelja|:count nedjelje|:count nedjelja', - 'second' => ':count sekund|:count sekunde|:count sekundi', - 'ago' => 'prije :time', - 'from_now' => 'za :time', - 'after' => ':time nakon', - 'before' => ':time prije', - 'week_from_now' => ':count nedjelju|:count nedjelje|:count nedjelja', - 'week_ago' => ':count nedjelju|:count nedjelje|:count nedjelja', - 'second_ago' => ':count sekund|:count sekunde|:count sekundi', - 'diff_tomorrow' => 'sjutra', - 'calendar' => [ - 'nextDay' => '[sjutra u] LT', - 'nextWeek' => static fn (CarbonInterface $date) => match ($date->dayOfWeek) { - 0 => '[u nedjelju u] LT', - 3 => '[u srijedu u] LT', - 6 => '[u subotu u] LT', - default => '[u] dddd [u] LT', - }, - 'lastWeek' => static fn (CarbonInterface $date) => match ($date->dayOfWeek) { - 0 => '[prošle nedjelje u] LT', - 1 => '[prošle nedjelje u] LT', - 2 => '[prošlog utorka u] LT', - 3 => '[prošle srijede u] LT', - 4 => '[prošlog četvrtka u] LT', - 5 => '[prošlog petka u] LT', - default => '[prošle subote u] LT', - }, - ], - 'weekdays' => ['nedjelja', 'ponedjeljak', 'utorak', 'srijeda', 'četvrtak', 'petak', 'subota'], - 'weekdays_short' => ['ned.', 'pon.', 'uto.', 'sri.', 'čet.', 'pet.', 'sub.'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sr_Latn_XK.php b/vendor/nesbot/carbon/src/Carbon/Lang/sr_Latn_XK.php deleted file mode 100644 index 5278e2e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sr_Latn_XK.php +++ /dev/null @@ -1,24 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -use Symfony\Component\Translation\PluralizationRules; - -// @codeCoverageIgnoreStart -if (class_exists(PluralizationRules::class)) { - PluralizationRules::set(static function ($number) { - return PluralizationRules::get($number, 'sr'); - }, 'sr_Latn_XK'); -} -// @codeCoverageIgnoreEnd - -return array_replace_recursive(require __DIR__.'/sr_Latn_BA.php', [ - 'weekdays' => ['nedelja', 'ponedeljak', 'utorak', 'sreda', 'četvrtak', 'petak', 'subota'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sr_ME.php b/vendor/nesbot/carbon/src/Carbon/Lang/sr_ME.php deleted file mode 100644 index d7c65b9..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sr_ME.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/sr_Latn_ME.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sr_RS.php b/vendor/nesbot/carbon/src/Carbon/Lang/sr_RS.php deleted file mode 100644 index bc5e04b..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sr_RS.php +++ /dev/null @@ -1,16 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - sr_YU, sr_CS locale Danilo Segan bug-glibc-locales@gnu.org - */ -return require __DIR__.'/sr_Cyrl.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sr_RS@latin.php b/vendor/nesbot/carbon/src/Carbon/Lang/sr_RS@latin.php deleted file mode 100644 index 9971674..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sr_RS@latin.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/sr.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ss.php b/vendor/nesbot/carbon/src/Carbon/Lang/ss.php deleted file mode 100644 index 0ec3e8f..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ss.php +++ /dev/null @@ -1,78 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - François B - * - Nicolai Davies - */ -return [ - 'year' => '{1}umnyaka|:count iminyaka', - 'month' => '{1}inyanga|:count tinyanga', - 'week' => '{1}:count liviki|:count emaviki', - 'day' => '{1}lilanga|:count emalanga', - 'hour' => '{1}lihora|:count emahora', - 'minute' => '{1}umzuzu|:count emizuzu', - 'second' => '{1}emizuzwana lomcane|:count mzuzwana', - 'ago' => 'wenteka nga :time', - 'from_now' => 'nga :time', - 'diff_yesterday' => 'Itolo', - 'diff_yesterday_regexp' => 'Itolo(?:\\s+nga)?', - 'diff_today' => 'Namuhla', - 'diff_today_regexp' => 'Namuhla(?:\\s+nga)?', - 'diff_tomorrow' => 'Kusasa', - 'diff_tomorrow_regexp' => 'Kusasa(?:\\s+nga)?', - 'formats' => [ - 'LT' => 'h:mm A', - 'LTS' => 'h:mm:ss A', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY h:mm A', - 'LLLL' => 'dddd, D MMMM YYYY h:mm A', - ], - 'calendar' => [ - 'sameDay' => '[Namuhla nga] LT', - 'nextDay' => '[Kusasa nga] LT', - 'nextWeek' => 'dddd [nga] LT', - 'lastDay' => '[Itolo nga] LT', - 'lastWeek' => 'dddd [leliphelile] [nga] LT', - 'sameElse' => 'L', - ], - 'ordinal' => static function ($number) { - $lastDigit = $number % 10; - - return $number.( - ((int) ($number % 100 / 10) === 1) ? 'e' : ( - ($lastDigit === 1 || $lastDigit === 2) ? 'a' : 'e' - ) - ); - }, - 'meridiem' => static function ($hour) { - if ($hour < 11) { - return 'ekuseni'; - } - if ($hour < 15) { - return 'emini'; - } - if ($hour < 19) { - return 'entsambama'; - } - - return 'ebusuku'; - }, - 'months' => ['Bhimbidvwane', 'Indlovana', 'Indlov\'lenkhulu', 'Mabasa', 'Inkhwekhweti', 'Inhlaba', 'Kholwane', 'Ingci', 'Inyoni', 'Imphala', 'Lweti', 'Ingongoni'], - 'months_short' => ['Bhi', 'Ina', 'Inu', 'Mab', 'Ink', 'Inh', 'Kho', 'Igc', 'Iny', 'Imp', 'Lwe', 'Igo'], - 'weekdays' => ['Lisontfo', 'Umsombuluko', 'Lesibili', 'Lesitsatfu', 'Lesine', 'Lesihlanu', 'Umgcibelo'], - 'weekdays_short' => ['Lis', 'Umb', 'Lsb', 'Les', 'Lsi', 'Lsh', 'Umg'], - 'weekdays_min' => ['Li', 'Us', 'Lb', 'Lt', 'Ls', 'Lh', 'Ug'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ss_ZA.php b/vendor/nesbot/carbon/src/Carbon/Lang/ss_ZA.php deleted file mode 100644 index ba89527..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ss_ZA.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/ss.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/st.php b/vendor/nesbot/carbon/src/Carbon/Lang/st.php deleted file mode 100644 index b065445..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/st.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/st_ZA.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/st_ZA.php b/vendor/nesbot/carbon/src/Carbon/Lang/st_ZA.php deleted file mode 100644 index 5eee222..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/st_ZA.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Zuza Software Foundation (Translate.org.za) Dwayne Bailey dwayne@translate.org.za - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YYYY', - ], - 'months' => ['Pherekgong', 'Hlakola', 'Tlhakubele', 'Mmese', 'Motsheanong', 'Phupjane', 'Phupu', 'Phato', 'Leotse', 'Mphalane', 'Pudungwana', 'Tshitwe'], - 'months_short' => ['Phe', 'Hla', 'TlH', 'Mme', 'Mot', 'Jan', 'Upu', 'Pha', 'Leo', 'Mph', 'Pud', 'Tsh'], - 'weekdays' => ['Sontaha', 'Mantaha', 'Labobedi', 'Laboraro', 'Labone', 'Labohlano', 'Moqebelo'], - 'weekdays_short' => ['Son', 'Mma', 'Bed', 'Rar', 'Ne', 'Hla', 'Moq'], - 'weekdays_min' => ['Son', 'Mma', 'Bed', 'Rar', 'Ne', 'Hla', 'Moq'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - - 'week' => ':count Sontaha', // less reliable - 'w' => ':count Sontaha', // less reliable - 'a_week' => ':count Sontaha', // less reliable - - 'day' => ':count letsatsi', // less reliable - 'd' => ':count letsatsi', // less reliable - 'a_day' => ':count letsatsi', // less reliable - - 'hour' => ':count sešupanako', // less reliable - 'h' => ':count sešupanako', // less reliable - 'a_hour' => ':count sešupanako', // less reliable - - 'minute' => ':count menyane', // less reliable - 'min' => ':count menyane', // less reliable - 'a_minute' => ':count menyane', // less reliable - - 'second' => ':count thusa', // less reliable - 's' => ':count thusa', // less reliable - 'a_second' => ':count thusa', // less reliable - - 'year' => ':count selemo', - 'y' => ':count selemo', - 'a_year' => ':count selemo', - - 'month' => ':count kgwedi', - 'm' => ':count kgwedi', - 'a_month' => ':count kgwedi', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sv.php b/vendor/nesbot/carbon/src/Carbon/Lang/sv.php deleted file mode 100644 index d7e0ddf..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sv.php +++ /dev/null @@ -1,87 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - François B - * - Kristoffer Snabb - * - JD Isaacks - * - Jens Herlevsen - * - Nightpine - * - Anders Nygren (litemerafrukt) - */ -return [ - 'year' => ':count år', - 'a_year' => 'ett år|:count år', - 'y' => ':count år', - 'month' => ':count månad|:count månader', - 'a_month' => 'en månad|:count månader', - 'm' => ':count mån', - 'week' => ':count vecka|:count veckor', - 'a_week' => 'en vecka|:count veckor', - 'w' => ':count v', - 'day' => ':count dag|:count dagar', - 'a_day' => 'en dag|:count dagar', - 'd' => ':count dgr', - 'hour' => ':count timme|:count timmar', - 'a_hour' => 'en timme|:count timmar', - 'h' => ':count tim', - 'minute' => ':count minut|:count minuter', - 'a_minute' => 'en minut|:count minuter', - 'min' => ':count min', - 'second' => ':count sekund|:count sekunder', - 'a_second' => 'några sekunder|:count sekunder', - 's' => ':count s', - 'ago' => 'för :time sedan', - 'from_now' => 'om :time', - 'after' => ':time efter', - 'before' => ':time före', - 'diff_now' => 'nu', - 'diff_today' => 'I dag', - 'diff_yesterday' => 'i går', - 'diff_yesterday_regexp' => 'I går', - 'diff_tomorrow' => 'i morgon', - 'diff_tomorrow_regexp' => 'I morgon', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'YYYY-MM-DD', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY [kl.] HH:mm', - 'LLLL' => 'dddd D MMMM YYYY [kl.] HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[I dag] LT', - 'nextDay' => '[I morgon] LT', - 'nextWeek' => '[På] dddd LT', - 'lastDay' => '[I går] LT', - 'lastWeek' => '[I] dddd[s] LT', - 'sameElse' => 'L', - ], - 'ordinal' => static function ($number) { - $lastDigit = $number % 10; - - return $number.( - ((int) ($number % 100 / 10) === 1) ? 'e' : ( - ($lastDigit === 1 || $lastDigit === 2) ? 'a' : 'e' - ) - ); - }, - 'months' => ['januari', 'februari', 'mars', 'april', 'maj', 'juni', 'juli', 'augusti', 'september', 'oktober', 'november', 'december'], - 'months_short' => ['jan', 'feb', 'mar', 'apr', 'maj', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'dec'], - 'weekdays' => ['söndag', 'måndag', 'tisdag', 'onsdag', 'torsdag', 'fredag', 'lördag'], - 'weekdays_short' => ['sön', 'mån', 'tis', 'ons', 'tors', 'fre', 'lör'], - 'weekdays_min' => ['sö', 'må', 'ti', 'on', 'to', 'fr', 'lö'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => [', ', ' och '], - 'meridiem' => ['fm', 'em'], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sv_AX.php b/vendor/nesbot/carbon/src/Carbon/Lang/sv_AX.php deleted file mode 100644 index 70cc558..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sv_AX.php +++ /dev/null @@ -1,19 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/sv.php', [ - 'formats' => [ - 'L' => 'YYYY-MM-dd', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sv_FI.php b/vendor/nesbot/carbon/src/Carbon/Lang/sv_FI.php deleted file mode 100644 index d7182c8..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sv_FI.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/sv.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sv_SE.php b/vendor/nesbot/carbon/src/Carbon/Lang/sv_SE.php deleted file mode 100644 index d7182c8..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sv_SE.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/sv.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sw.php b/vendor/nesbot/carbon/src/Carbon/Lang/sw.php deleted file mode 100644 index f8630d5..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sw.php +++ /dev/null @@ -1,74 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - leyluj - * - Josh Soref - * - ryanhart2 - */ -return [ - 'year' => 'mwaka :count|miaka :count', - 'a_year' => 'mwaka mmoja|miaka :count', - 'y' => 'mwaka :count|miaka :count', - 'month' => 'mwezi :count|miezi :count', - 'a_month' => 'mwezi mmoja|miezi :count', - 'm' => 'mwezi :count|miezi :count', - 'week' => 'wiki :count', - 'a_week' => 'wiki mmoja|wiki :count', - 'w' => 'w. :count', - 'day' => 'siku :count', - 'a_day' => 'siku moja|masiku :count', - 'd' => 'si. :count', - 'hour' => 'saa :count|masaa :count', - 'a_hour' => 'saa limoja|masaa :count', - 'h' => 'saa :count|masaa :count', - 'minute' => 'dakika :count', - 'a_minute' => 'dakika moja|dakika :count', - 'min' => 'd. :count', - 'second' => 'sekunde :count', - 'a_second' => 'hivi punde|sekunde :count', - 's' => 'se. :count', - 'ago' => 'tokea :time', - 'from_now' => ':time baadaye', - 'after' => ':time baada', - 'before' => ':time kabla', - 'diff_now' => 'sasa hivi', - 'diff_today' => 'leo', - 'diff_today_regexp' => 'leo(?:\\s+saa)?', - 'diff_yesterday' => 'jana', - 'diff_tomorrow' => 'kesho', - 'diff_tomorrow_regexp' => 'kesho(?:\\s+saa)?', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD.MM.YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[leo saa] LT', - 'nextDay' => '[kesho saa] LT', - 'nextWeek' => '[wiki ijayo] dddd [saat] LT', - 'lastDay' => '[jana] LT', - 'lastWeek' => '[wiki iliyopita] dddd [saat] LT', - 'sameElse' => 'L', - ], - 'months' => ['Januari', 'Februari', 'Machi', 'Aprili', 'Mei', 'Juni', 'Julai', 'Agosti', 'Septemba', 'Oktoba', 'Novemba', 'Desemba'], - 'months_short' => ['Jan', 'Feb', 'Mac', 'Apr', 'Mei', 'Jun', 'Jul', 'Ago', 'Sep', 'Okt', 'Nov', 'Des'], - 'weekdays' => ['Jumapili', 'Jumatatu', 'Jumanne', 'Jumatano', 'Alhamisi', 'Ijumaa', 'Jumamosi'], - 'weekdays_short' => ['Jpl', 'Jtat', 'Jnne', 'Jtan', 'Alh', 'Ijm', 'Jmos'], - 'weekdays_min' => ['J2', 'J3', 'J4', 'J5', 'Al', 'Ij', 'J1'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'list' => [', ', ' na '], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sw_CD.php b/vendor/nesbot/carbon/src/Carbon/Lang/sw_CD.php deleted file mode 100644 index ec9117b..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sw_CD.php +++ /dev/null @@ -1,17 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/sw.php', [ - 'formats' => [ - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sw_KE.php b/vendor/nesbot/carbon/src/Carbon/Lang/sw_KE.php deleted file mode 100644 index 2ace0db..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sw_KE.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Kamusi Project Martin Benjamin locales@kamusi.org - */ -return array_replace_recursive(require __DIR__.'/sw.php', [ - 'formats' => [ - 'L' => 'DD/MM/YYYY', - ], - 'months' => ['Januari', 'Februari', 'Machi', 'Aprili', 'Mei', 'Juni', 'Julai', 'Agosti', 'Septemba', 'Oktoba', 'Novemba', 'Desemba'], - 'months_short' => ['Jan', 'Feb', 'Mac', 'Apr', 'Mei', 'Jun', 'Jul', 'Ago', 'Sep', 'Okt', 'Nov', 'Des'], - 'weekdays' => ['Jumapili', 'Jumatatu', 'Jumanne', 'Jumatano', 'Alhamisi', 'Ijumaa', 'Jumamosi'], - 'weekdays_short' => ['J2', 'J3', 'J4', 'J5', 'Alh', 'Ij', 'J1'], - 'weekdays_min' => ['J2', 'J3', 'J4', 'J5', 'Alh', 'Ij', 'J1'], - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['asubuhi', 'alasiri'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sw_TZ.php b/vendor/nesbot/carbon/src/Carbon/Lang/sw_TZ.php deleted file mode 100644 index fab3cd6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sw_TZ.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Kamusi Project Martin Benjamin locales@kamusi.org - */ -return array_replace_recursive(require __DIR__.'/sw.php', [ - 'formats' => [ - 'L' => 'DD/MM/YYYY', - ], - 'months' => ['Januari', 'Februari', 'Machi', 'Aprili', 'Mei', 'Juni', 'Julai', 'Agosti', 'Septemba', 'Oktoba', 'Novemba', 'Desemba'], - 'months_short' => ['Jan', 'Feb', 'Mac', 'Apr', 'Mei', 'Jun', 'Jul', 'Ago', 'Sep', 'Okt', 'Nov', 'Des'], - 'weekdays' => ['Jumapili', 'Jumatatu', 'Jumanne', 'Jumatano', 'Alhamisi', 'Ijumaa', 'Jumamosi'], - 'weekdays_short' => ['J2', 'J3', 'J4', 'J5', 'Alh', 'Ij', 'J1'], - 'weekdays_min' => ['J2', 'J3', 'J4', 'J5', 'Alh', 'Ij', 'J1'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['asubuhi', 'alasiri'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/sw_UG.php b/vendor/nesbot/carbon/src/Carbon/Lang/sw_UG.php deleted file mode 100644 index ec9117b..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/sw_UG.php +++ /dev/null @@ -1,17 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/sw.php', [ - 'formats' => [ - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/szl.php b/vendor/nesbot/carbon/src/Carbon/Lang/szl.php deleted file mode 100644 index 4429c4f..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/szl.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/szl_PL.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/szl_PL.php b/vendor/nesbot/carbon/src/Carbon/Lang/szl_PL.php deleted file mode 100644 index 9adddcf..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/szl_PL.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - szl_PL locale Przemyslaw Buczkowski libc-alpha@sourceware.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD.MM.YYYY', - ], - 'months' => ['styczyń', 'luty', 'merc', 'kwjeciyń', 'moj', 'czyrwjyń', 'lipjyń', 'siyrpjyń', 'wrzesiyń', 'październik', 'listopad', 'grudziyń'], - 'months_short' => ['sty', 'lut', 'mer', 'kwj', 'moj', 'czy', 'lip', 'siy', 'wrz', 'paź', 'lis', 'gru'], - 'weekdays' => ['niydziela', 'pyńdziŏek', 'wtŏrek', 'strzŏda', 'sztwortek', 'pjōntek', 'sobŏta'], - 'weekdays_short' => ['niy', 'pyń', 'wtŏ', 'str', 'szt', 'pjō', 'sob'], - 'weekdays_min' => ['niy', 'pyń', 'wtŏ', 'str', 'szt', 'pjō', 'sob'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - - 'year' => ':count rok', - 'y' => ':count rok', - 'a_year' => ':count rok', - - 'month' => ':count mjeśůnc', - 'm' => ':count mjeśůnc', - 'a_month' => ':count mjeśůnc', - - 'week' => ':count tydźyń', - 'w' => ':count tydźyń', - 'a_week' => ':count tydźyń', - - 'day' => ':count dźyń', - 'd' => ':count dźyń', - 'a_day' => ':count dźyń', - - 'hour' => ':count godzina', - 'h' => ':count godzina', - 'a_hour' => ':count godzina', - - 'minute' => ':count minuta', - 'min' => ':count minuta', - 'a_minute' => ':count minuta', - - 'second' => ':count sekůnda', - 's' => ':count sekůnda', - 'a_second' => ':count sekůnda', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ta.php b/vendor/nesbot/carbon/src/Carbon/Lang/ta.php deleted file mode 100644 index c5dd68e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ta.php +++ /dev/null @@ -1,97 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Josh Soref - * - François B - * - JD Isaacks - * - Satheez - */ -return [ - 'year' => ':count வருடம்|:count ஆண்டுகள்', - 'a_year' => 'ஒரு வருடம்|:count ஆண்டுகள்', - 'y' => ':count வருட.|:count ஆண்.', - 'month' => ':count மாதம்|:count மாதங்கள்', - 'a_month' => 'ஒரு மாதம்|:count மாதங்கள்', - 'm' => ':count மாத.', - 'week' => ':count வாரம்|:count வாரங்கள்', - 'a_week' => 'ஒரு வாரம்|:count வாரங்கள்', - 'w' => ':count வார.', - 'day' => ':count நாள்|:count நாட்கள்', - 'a_day' => 'ஒரு நாள்|:count நாட்கள்', - 'd' => ':count நாள்|:count நாட்.', - 'hour' => ':count மணி நேரம்|:count மணி நேரம்', - 'a_hour' => 'ஒரு மணி நேரம்|:count மணி நேரம்', - 'h' => ':count மணி.', - 'minute' => ':count நிமிடம்|:count நிமிடங்கள்', - 'a_minute' => 'ஒரு நிமிடம்|:count நிமிடங்கள்', - 'min' => ':count நிமி.', - 'second' => ':count சில விநாடிகள்|:count விநாடிகள்', - 'a_second' => 'ஒரு சில விநாடிகள்|:count விநாடிகள்', - 's' => ':count விநா.', - 'ago' => ':time முன்', - 'from_now' => ':time இல்', - 'before' => ':time முன்', - 'after' => ':time பின்', - 'diff_now' => 'இப்போது', - 'diff_today' => 'இன்று', - 'diff_yesterday' => 'நேற்று', - 'diff_tomorrow' => 'நாளை', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY, HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY, HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[இன்று] LT', - 'nextDay' => '[நாளை] LT', - 'nextWeek' => 'dddd, LT', - 'lastDay' => '[நேற்று] LT', - 'lastWeek' => '[கடந்த வாரம்] dddd, LT', - 'sameElse' => 'L', - ], - 'ordinal' => ':numberவது', - 'meridiem' => static function ($hour) { - if ($hour < 2) { - return ' யாமம்'; - } - if ($hour < 6) { - return ' வைகறை'; - } - if ($hour < 10) { - return ' காலை'; - } - if ($hour < 14) { - return ' நண்பகல்'; - } - if ($hour < 18) { - return ' எற்பாடு'; - } - if ($hour < 22) { - return ' மாலை'; - } - - return ' யாமம்'; - }, - 'months' => ['ஜனவரி', 'பிப்ரவரி', 'மார்ச்', 'ஏப்ரல்', 'மே', 'ஜூன்', 'ஜூலை', 'ஆகஸ்ட்', 'செப்டெம்பர்', 'அக்டோபர்', 'நவம்பர்', 'டிசம்பர்'], - 'months_short' => ['ஜனவரி', 'பிப்ரவரி', 'மார்ச்', 'ஏப்ரல்', 'மே', 'ஜூன்', 'ஜூலை', 'ஆகஸ்ட்', 'செப்டெம்பர்', 'அக்டோபர்', 'நவம்பர்', 'டிசம்பர்'], - 'weekdays' => ['ஞாயிற்றுக்கிழமை', 'திங்கட்கிழமை', 'செவ்வாய்கிழமை', 'புதன்கிழமை', 'வியாழக்கிழமை', 'வெள்ளிக்கிழமை', 'சனிக்கிழமை'], - 'weekdays_short' => ['ஞாயிறு', 'திங்கள்', 'செவ்வாய்', 'புதன்', 'வியாழன்', 'வெள்ளி', 'சனி'], - 'weekdays_min' => ['ஞா', 'தி', 'செ', 'பு', 'வி', 'வெ', 'ச'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'list' => [', ', ' மற்றும் '], - 'weekend' => [0, 0], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ta_IN.php b/vendor/nesbot/carbon/src/Carbon/Lang/ta_IN.php deleted file mode 100644 index 492d4c5..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ta_IN.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - IBM Globalization Center of Competency, Yamato Software Laboratory bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/ta.php', [ - 'formats' => [ - 'L' => 'D/M/YY', - ], - 'months' => ['ஜனவரி', 'பிப்ரவரி', 'மார்ச்', 'ஏப்ரல்', 'மே', 'ஜூன்', 'ஜூலை', 'ஆகஸ்ட்', 'செப்டம்பர்', 'அக்டோபர்', 'நவம்பர்', 'டிசம்பர்'], - 'months_short' => ['ஜன.', 'பிப்.', 'மார்.', 'ஏப்.', 'மே', 'ஜூன்', 'ஜூலை', 'ஆக.', 'செப்.', 'அக்.', 'நவ.', 'டிச.'], - 'weekdays' => ['ஞாயிறு', 'திங்கள்', 'செவ்வாய்', 'புதன்', 'வியாழன்', 'வெள்ளி', 'சனி'], - 'weekdays_short' => ['ஞா', 'தி', 'செ', 'பு', 'வி', 'வெ', 'ச'], - 'weekdays_min' => ['ஞா', 'தி', 'செ', 'பு', 'வி', 'வெ', 'ச'], - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['காலை', 'மாலை'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ta_LK.php b/vendor/nesbot/carbon/src/Carbon/Lang/ta_LK.php deleted file mode 100644 index 8e2afbf..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ta_LK.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - J.Yogaraj 94-777-315206 yogaraj.ubuntu@gmail.com - */ -return array_replace_recursive(require __DIR__.'/ta.php', [ - 'formats' => [ - 'L' => 'D/M/YY', - ], - 'months' => ['ஜனவரி', 'பிப்ரவரி', 'மார்ச்', 'ஏப்ரல்', 'மே', 'ஜூன்', 'ஜூலை', 'ஆகஸ்ட்', 'செப்டம்பர்', 'அக்டோபர்', 'நவம்பர்', 'டிசம்பர்'], - 'months_short' => ['ஜன', 'பிப்', 'மார்', 'ஏப்', 'மே', 'ஜூன்', 'ஜூலை', 'ஆக', 'செப்', 'அக்', 'நவ', 'டிச'], - 'weekdays' => ['ஞாயிறு', 'திங்கள்', 'செவ்வாய்', 'புதன்', 'வியாழன்', 'வெள்ளி', 'சனி'], - 'weekdays_short' => ['ஞா', 'தி', 'செ', 'பு', 'வி', 'வெ', 'ச'], - 'weekdays_min' => ['ஞா', 'தி', 'செ', 'பு', 'வி', 'வெ', 'ச'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['காலை', 'மாலை'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ta_MY.php b/vendor/nesbot/carbon/src/Carbon/Lang/ta_MY.php deleted file mode 100644 index a6cd8b5..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ta_MY.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/ta.php', [ - 'formats' => [ - 'LT' => 'a h:mm', - 'LTS' => 'a h:mm:ss', - 'L' => 'D/M/yy', - 'LL' => 'D MMM, YYYY', - 'LLL' => 'D MMMM, YYYY, a h:mm', - 'LLLL' => 'dddd, D MMMM, YYYY, a h:mm', - ], - 'months' => ['ஜனவரி', 'பிப்ரவரி', 'மார்ச்', 'ஏப்ரல்', 'மே', 'ஜூன்', 'ஜூலை', 'ஆகஸ்ட்', 'செப்டம்பர்', 'அக்டோபர்', 'நவம்பர்', 'டிசம்பர்'], - 'months_short' => ['ஜன.', 'பிப்.', 'மார்.', 'ஏப்.', 'மே', 'ஜூன்', 'ஜூலை', 'ஆக.', 'செப்.', 'அக்.', 'நவ.', 'டிச.'], - 'weekdays' => ['ஞாயிறு', 'திங்கள்', 'செவ்வாய்', 'புதன்', 'வியாழன்', 'வெள்ளி', 'சனி'], - 'weekdays_short' => ['ஞாயி.', 'திங்.', 'செவ்.', 'புத.', 'வியா.', 'வெள்.', 'சனி'], - 'weekdays_min' => ['ஞா', 'தி', 'செ', 'பு', 'வி', 'வெ', 'ச'], - 'first_day_of_week' => 1, - 'meridiem' => ['மு.ப', 'பி.ப'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ta_SG.php b/vendor/nesbot/carbon/src/Carbon/Lang/ta_SG.php deleted file mode 100644 index 7dbedee..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ta_SG.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/ta.php', [ - 'formats' => [ - 'LT' => 'a h:mm', - 'LTS' => 'a h:mm:ss', - 'L' => 'D/M/yy', - 'LL' => 'D MMM, YYYY', - 'LLL' => 'D MMMM, YYYY, a h:mm', - 'LLLL' => 'dddd, D MMMM, YYYY, a h:mm', - ], - 'months' => ['ஜனவரி', 'பிப்ரவரி', 'மார்ச்', 'ஏப்ரல்', 'மே', 'ஜூன்', 'ஜூலை', 'ஆகஸ்ட்', 'செப்டம்பர்', 'அக்டோபர்', 'நவம்பர்', 'டிசம்பர்'], - 'months_short' => ['ஜன.', 'பிப்.', 'மார்.', 'ஏப்.', 'மே', 'ஜூன்', 'ஜூலை', 'ஆக.', 'செப்.', 'அக்.', 'நவ.', 'டிச.'], - 'weekdays' => ['ஞாயிறு', 'திங்கள்', 'செவ்வாய்', 'புதன்', 'வியாழன்', 'வெள்ளி', 'சனி'], - 'weekdays_short' => ['ஞாயி.', 'திங்.', 'செவ்.', 'புத.', 'வியா.', 'வெள்.', 'சனி'], - 'weekdays_min' => ['ஞா', 'தி', 'செ', 'பு', 'வி', 'வெ', 'ச'], - 'meridiem' => ['மு.ப', 'பி.ப'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/tcy.php b/vendor/nesbot/carbon/src/Carbon/Lang/tcy.php deleted file mode 100644 index 2eb9905..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/tcy.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/tcy_IN.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/tcy_IN.php b/vendor/nesbot/carbon/src/Carbon/Lang/tcy_IN.php deleted file mode 100644 index f2bbf10..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/tcy_IN.php +++ /dev/null @@ -1,40 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - IndLinux.org, Samsung Electronics Co., Ltd. alexey.merzlyakov@samsung.com - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'D/M/YY', - ], - 'months' => ['ಜನವರಿ', 'ಫೆಬ್ರುವರಿ', 'ಮಾರ್ಚ್', 'ಏಪ್ರಿಲ್‌‌', 'ಮೇ', 'ಜೂನ್', 'ಜುಲೈ', 'ಆಗಸ್ಟ್', 'ಸೆಪ್ಟೆಂಬರ್‌', 'ಅಕ್ಟೋಬರ್', 'ನವೆಂಬರ್', 'ಡಿಸೆಂಬರ್'], - 'months_short' => ['ಜ', 'ಫೆ', 'ಮಾ', 'ಏ', 'ಮೇ', 'ಜೂ', 'ಜು', 'ಆ', 'ಸೆ', 'ಅ', 'ನ', 'ಡಿ'], - 'weekdays' => ['ಐಥಾರ', 'ಸೋಮಾರ', 'ಅಂಗರೆ', 'ಬುಧಾರ', 'ಗುರುವಾರ', 'ಶುಕ್ರರ', 'ಶನಿವಾರ'], - 'weekdays_short' => ['ಐ', 'ಸೋ', 'ಅಂ', 'ಬು', 'ಗು', 'ಶು', 'ಶ'], - 'weekdays_min' => ['ಐ', 'ಸೋ', 'ಅಂ', 'ಬು', 'ಗು', 'ಶು', 'ಶ'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['ಕಾಂಡೆ', 'ಬಯ್ಯ'], - - 'year' => ':count ನೀರ್', // less reliable - 'y' => ':count ನೀರ್', // less reliable - 'a_year' => ':count ನೀರ್', // less reliable - - 'month' => ':count ಮೀನ್', // less reliable - 'm' => ':count ಮೀನ್', // less reliable - 'a_month' => ':count ಮೀನ್', // less reliable - - 'day' => ':count ಸುಗ್ಗಿ', // less reliable - 'd' => ':count ಸುಗ್ಗಿ', // less reliable - 'a_day' => ':count ಸುಗ್ಗಿ', // less reliable -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/te.php b/vendor/nesbot/carbon/src/Carbon/Lang/te.php deleted file mode 100644 index 52d4809..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/te.php +++ /dev/null @@ -1,89 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Kunal Marwaha - * - Josh Soref - * - François B - * - kc - */ -return [ - 'year' => ':count సంవత్సరం|:count సంవత్సరాలు', - 'a_year' => 'ఒక సంవత్సరం|:count సంవత్సరాలు', - 'y' => ':count సం.', - 'month' => ':count నెల|:count నెలలు', - 'a_month' => 'ఒక నెల|:count నెలలు', - 'm' => ':count నెల|:count నెల.', - 'week' => ':count వారం|:count వారాలు', - 'a_week' => 'ఒక వారం|:count వారాలు', - 'w' => ':count వార.|:count వారా.', - 'day' => ':count రోజు|:count రోజులు', - 'a_day' => 'ఒక రోజు|:count రోజులు', - 'd' => ':count రోజు|:count రోజు.', - 'hour' => ':count గంట|:count గంటలు', - 'a_hour' => 'ఒక గంట|:count గంటలు', - 'h' => ':count గం.', - 'minute' => ':count నిమిషం|:count నిమిషాలు', - 'a_minute' => 'ఒక నిమిషం|:count నిమిషాలు', - 'min' => ':count నిమి.', - 'second' => ':count సెకను|:count సెకన్లు', - 'a_second' => 'కొన్ని క్షణాలు|:count సెకన్లు', - 's' => ':count సెక.', - 'ago' => ':time క్రితం', - 'from_now' => ':time లో', - 'diff_now' => 'ప్రస్తుతం', - 'diff_today' => 'నేడు', - 'diff_yesterday' => 'నిన్న', - 'diff_tomorrow' => 'రేపు', - 'formats' => [ - 'LT' => 'A h:mm', - 'LTS' => 'A h:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY, A h:mm', - 'LLLL' => 'dddd, D MMMM YYYY, A h:mm', - ], - 'calendar' => [ - 'sameDay' => '[నేడు] LT', - 'nextDay' => '[రేపు] LT', - 'nextWeek' => 'dddd, LT', - 'lastDay' => '[నిన్న] LT', - 'lastWeek' => '[గత] dddd, LT', - 'sameElse' => 'L', - ], - 'ordinal' => ':numberవ', - 'meridiem' => static function ($hour) { - if ($hour < 4) { - return 'రాత్రి'; - } - if ($hour < 10) { - return 'ఉదయం'; - } - if ($hour < 17) { - return 'మధ్యాహ్నం'; - } - if ($hour < 20) { - return 'సాయంత్రం'; - } - - return ' రాత్రి'; - }, - 'months' => ['జనవరి', 'ఫిబ్రవరి', 'మార్చి', 'ఏప్రిల్', 'మే', 'జూన్', 'జూలై', 'ఆగస్టు', 'సెప్టెంబర్', 'అక్టోబర్', 'నవంబర్', 'డిసెంబర్'], - 'months_short' => ['జన.', 'ఫిబ్ర.', 'మార్చి', 'ఏప్రి.', 'మే', 'జూన్', 'జూలై', 'ఆగ.', 'సెప్.', 'అక్టో.', 'నవ.', 'డిసె.'], - 'weekdays' => ['ఆదివారం', 'సోమవారం', 'మంగళవారం', 'బుధవారం', 'గురువారం', 'శుక్రవారం', 'శనివారం'], - 'weekdays_short' => ['ఆది', 'సోమ', 'మంగళ', 'బుధ', 'గురు', 'శుక్ర', 'శని'], - 'weekdays_min' => ['ఆ', 'సో', 'మం', 'బు', 'గు', 'శు', 'శ'], - 'list' => ', ', - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'weekend' => [0, 0], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/te_IN.php b/vendor/nesbot/carbon/src/Carbon/Lang/te_IN.php deleted file mode 100644 index 3963f8d..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/te_IN.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/te.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/teo.php b/vendor/nesbot/carbon/src/Carbon/Lang/teo.php deleted file mode 100644 index ca30c37..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/teo.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/ta.php', [ - 'meridiem' => ['Taparachu', 'Ebongi'], - 'weekdays' => ['Nakaejuma', 'Nakaebarasa', 'Nakaare', 'Nakauni', 'Nakaung’on', 'Nakakany', 'Nakasabiti'], - 'weekdays_short' => ['Jum', 'Bar', 'Aar', 'Uni', 'Ung', 'Kan', 'Sab'], - 'weekdays_min' => ['Jum', 'Bar', 'Aar', 'Uni', 'Ung', 'Kan', 'Sab'], - 'months' => ['Orara', 'Omuk', 'Okwamg’', 'Odung’el', 'Omaruk', 'Omodok’king’ol', 'Ojola', 'Opedel', 'Osokosokoma', 'Otibar', 'Olabor', 'Opoo'], - 'months_short' => ['Rar', 'Muk', 'Kwa', 'Dun', 'Mar', 'Mod', 'Jol', 'Ped', 'Sok', 'Tib', 'Lab', 'Poo'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/teo_KE.php b/vendor/nesbot/carbon/src/Carbon/Lang/teo_KE.php deleted file mode 100644 index 010a04f..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/teo_KE.php +++ /dev/null @@ -1,14 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/teo.php', [ - 'first_day_of_week' => 0, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/tet.php b/vendor/nesbot/carbon/src/Carbon/Lang/tet.php deleted file mode 100644 index d0544d4..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/tet.php +++ /dev/null @@ -1,64 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Joshua Brooks - * - François B - */ -return [ - 'year' => 'tinan :count', - 'a_year' => '{1}tinan ida|tinan :count', - 'month' => 'fulan :count', - 'a_month' => '{1}fulan ida|fulan :count', - 'week' => 'semana :count', - 'a_week' => '{1}semana ida|semana :count', - 'day' => 'loron :count', - 'a_day' => '{1}loron ida|loron :count', - 'hour' => 'oras :count', - 'a_hour' => '{1}oras ida|oras :count', - 'minute' => 'minutu :count', - 'a_minute' => '{1}minutu ida|minutu :count', - 'second' => 'segundu :count', - 'a_second' => '{1}segundu balun|segundu :count', - 'ago' => ':time liuba', - 'from_now' => 'iha :time', - 'diff_yesterday' => 'Horiseik', - 'diff_yesterday_regexp' => 'Horiseik(?:\\s+iha)?', - 'diff_today' => 'Ohin', - 'diff_today_regexp' => 'Ohin(?:\\s+iha)?', - 'diff_tomorrow' => 'Aban', - 'diff_tomorrow_regexp' => 'Aban(?:\\s+iha)?', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[Ohin iha] LT', - 'nextDay' => '[Aban iha] LT', - 'nextWeek' => 'dddd [iha] LT', - 'lastDay' => '[Horiseik iha] LT', - 'lastWeek' => 'dddd [semana kotuk] [iha] LT', - 'sameElse' => 'L', - ], - 'ordinal' => ':numberº', - 'months' => ['Janeiru', 'Fevereiru', 'Marsu', 'Abril', 'Maiu', 'Juñu', 'Jullu', 'Agustu', 'Setembru', 'Outubru', 'Novembru', 'Dezembru'], - 'months_short' => ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'], - 'weekdays' => ['Domingu', 'Segunda', 'Tersa', 'Kuarta', 'Kinta', 'Sesta', 'Sabadu'], - 'weekdays_short' => ['Dom', 'Seg', 'Ters', 'Kua', 'Kint', 'Sest', 'Sab'], - 'weekdays_min' => ['Do', 'Seg', 'Te', 'Ku', 'Ki', 'Ses', 'Sa'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/tg.php b/vendor/nesbot/carbon/src/Carbon/Lang/tg.php deleted file mode 100644 index 57b4513..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/tg.php +++ /dev/null @@ -1,104 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Orif N. Jr - */ -return [ - 'year' => '{1}як сол|:count сол', - 'month' => '{1}як моҳ|:count моҳ', - 'week' => '{1}як ҳафта|:count ҳафта', - 'day' => '{1}як рӯз|:count рӯз', - 'hour' => '{1}як соат|:count соат', - 'minute' => '{1}як дақиқа|:count дақиқа', - 'second' => '{1}якчанд сония|:count сония', - 'ago' => ':time пеш', - 'from_now' => 'баъди :time', - 'diff_today' => 'Имрӯз', - 'diff_yesterday' => 'Дирӯз', - 'diff_yesterday_regexp' => 'Дирӯз(?:\\s+соати)?', - 'diff_tomorrow' => 'Пагоҳ', - 'diff_tomorrow_regexp' => 'Пагоҳ(?:\\s+соати)?', - 'diff_today_regexp' => 'Имрӯз(?:\\s+соати)?', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[Имрӯз соати] LT', - 'nextDay' => '[Пагоҳ соати] LT', - 'nextWeek' => 'dddd[и] [ҳафтаи оянда соати] LT', - 'lastDay' => '[Дирӯз соати] LT', - 'lastWeek' => 'dddd[и] [ҳафтаи гузашта соати] LT', - 'sameElse' => 'L', - ], - 'ordinal' => static function ($number) { - if ($number === 0) { // special case for zero - return "$number-ıncı"; - } - - static $suffixes = [ - 0 => '-ум', - 1 => '-ум', - 2 => '-юм', - 3 => '-юм', - 4 => '-ум', - 5 => '-ум', - 6 => '-ум', - 7 => '-ум', - 8 => '-ум', - 9 => '-ум', - 10 => '-ум', - 12 => '-ум', - 13 => '-ум', - 20 => '-ум', - 30 => '-юм', - 40 => '-ум', - 50 => '-ум', - 60 => '-ум', - 70 => '-ум', - 80 => '-ум', - 90 => '-ум', - 100 => '-ум', - ]; - - return $number.($suffixes[$number] ?? $suffixes[$number % 10] ?? $suffixes[$number >= 100 ? 100 : -1] ?? ''); - }, - 'meridiem' => static function ($hour) { - if ($hour < 4) { - return 'шаб'; - } - if ($hour < 11) { - return 'субҳ'; - } - if ($hour < 16) { - return 'рӯз'; - } - if ($hour < 19) { - return 'бегоҳ'; - } - - return 'шаб'; - }, - 'months' => ['январ', 'феврал', 'март', 'апрел', 'май', 'июн', 'июл', 'август', 'сентябр', 'октябр', 'ноябр', 'декабр'], - 'months_short' => ['янв', 'фев', 'мар', 'апр', 'май', 'июн', 'июл', 'авг', 'сен', 'окт', 'ноя', 'дек'], - 'weekdays' => ['якшанбе', 'душанбе', 'сешанбе', 'чоршанбе', 'панҷшанбе', 'ҷумъа', 'шанбе'], - 'weekdays_short' => ['яшб', 'дшб', 'сшб', 'чшб', 'пшб', 'ҷум', 'шнб'], - 'weekdays_min' => ['яш', 'дш', 'сш', 'чш', 'пш', 'ҷм', 'шб'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'list' => [', ', ' ва '], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/tg_TJ.php b/vendor/nesbot/carbon/src/Carbon/Lang/tg_TJ.php deleted file mode 100644 index badc7d1..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/tg_TJ.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/tg.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/th.php b/vendor/nesbot/carbon/src/Carbon/Lang/th.php deleted file mode 100644 index 6397f6e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/th.php +++ /dev/null @@ -1,73 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Nate Whittaker - * - John MacAslan - * - Chanintorn Asavavichairoj - * - JD Isaacks - * - ROKAISAKKON - * - RO'KAISAKKON - * - Andreas Möller - * - nithisa - */ -return [ - 'year' => ':count ปี', - 'y' => ':count ปี', - 'month' => ':count เดือน', - 'm' => ':count เดือน', - 'week' => ':count สัปดาห์', - 'w' => ':count สัปดาห์', - 'day' => ':count วัน', - 'd' => ':count วัน', - 'hour' => ':count ชั่วโมง', - 'h' => ':count ชั่วโมง', - 'minute' => ':count นาที', - 'min' => ':count นาที', - 'second' => ':count วินาที', - 'a_second' => '{1}ไม่กี่วินาที|]1,Inf[:count วินาที', - 's' => ':count วินาที', - 'ago' => ':timeที่แล้ว', - 'from_now' => 'อีก :time', - 'after' => ':timeหลังจากนี้', - 'before' => ':timeก่อน', - 'diff_now' => 'ขณะนี้', - 'diff_today' => 'วันนี้', - 'diff_today_regexp' => 'วันนี้(?:\\s+เวลา)?', - 'diff_yesterday' => 'เมื่อวาน', - 'diff_yesterday_regexp' => 'เมื่อวานนี้(?:\\s+เวลา)?', - 'diff_tomorrow' => 'พรุ่งนี้', - 'diff_tomorrow_regexp' => 'พรุ่งนี้(?:\\s+เวลา)?', - 'formats' => [ - 'LT' => 'H:mm', - 'LTS' => 'H:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY เวลา H:mm', - 'LLLL' => 'วันddddที่ D MMMM YYYY เวลา H:mm', - ], - 'calendar' => [ - 'sameDay' => '[วันนี้ เวลา] LT', - 'nextDay' => '[พรุ่งนี้ เวลา] LT', - 'nextWeek' => 'dddd[หน้า เวลา] LT', - 'lastDay' => '[เมื่อวานนี้ เวลา] LT', - 'lastWeek' => '[วัน]dddd[ที่แล้ว เวลา] LT', - 'sameElse' => 'L', - ], - 'meridiem' => ['ก่อนเที่ยง', 'หลังเที่ยง'], - 'months' => ['มกราคม', 'กุมภาพันธ์', 'มีนาคม', 'เมษายน', 'พฤษภาคม', 'มิถุนายน', 'กรกฎาคม', 'สิงหาคม', 'กันยายน', 'ตุลาคม', 'พฤศจิกายน', 'ธันวาคม'], - 'months_short' => ['ม.ค.', 'ก.พ.', 'มี.ค.', 'เม.ย.', 'พ.ค.', 'มิ.ย.', 'ก.ค.', 'ส.ค.', 'ก.ย.', 'ต.ค.', 'พ.ย.', 'ธ.ค.'], - 'weekdays' => ['อาทิตย์', 'จันทร์', 'อังคาร', 'พุธ', 'พฤหัสบดี', 'ศุกร์', 'เสาร์'], - 'weekdays_short' => ['อาทิตย์', 'จันทร์', 'อังคาร', 'พุธ', 'พฤหัส', 'ศุกร์', 'เสาร์'], - 'weekdays_min' => ['อา.', 'จ.', 'อ.', 'พ.', 'พฤ.', 'ศ.', 'ส.'], - 'list' => [', ', ' และ '], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/th_TH.php b/vendor/nesbot/carbon/src/Carbon/Lang/th_TH.php deleted file mode 100644 index b9f94b2..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/th_TH.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/th.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/the.php b/vendor/nesbot/carbon/src/Carbon/Lang/the.php deleted file mode 100644 index 85f8333..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/the.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/the_NP.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/the_NP.php b/vendor/nesbot/carbon/src/Carbon/Lang/the_NP.php deleted file mode 100644 index cdb02b2..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/the_NP.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Chitwanix OS Development info@chitwanix.com - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'dddd DD MMM YYYY', - ], - 'months' => ['जनवरी', 'फ़रवरी', 'मार्च', 'अप्रेल', 'मई', 'जून', 'जुलाई', 'अगस्त', 'सितम्बर', 'अक्टूबर', 'नवम्बर', 'दिसम्बर'], - 'months_short' => ['जनवरी', 'फ़रवरी', 'मार्च', 'अप्रेल', 'मई', 'जून', 'जुलाई', 'अगस्त', 'सितम्बर', 'अक्टूबर', 'नवम्बर', 'दिसम्बर'], - 'weekdays' => ['आइतबार', 'सोमबार', 'मंगलबार', 'बुधबार', 'बिहिबार', 'शुक्रबार', 'शनिबार'], - 'weekdays_short' => ['आइत', 'सोम', 'मंगल', 'बुध', 'बिहि', 'शुक्र', 'शनि'], - 'weekdays_min' => ['आइत', 'सोम', 'मंगल', 'बुध', 'बिहि', 'शुक्र', 'शनि'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['पूर्वाह्न', 'अपराह्न'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ti.php b/vendor/nesbot/carbon/src/Carbon/Lang/ti.php deleted file mode 100644 index ffd3236..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ti.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/ti_ER.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ti_ER.php b/vendor/nesbot/carbon/src/Carbon/Lang/ti_ER.php deleted file mode 100644 index 310c51c..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ti_ER.php +++ /dev/null @@ -1,56 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Ge'ez Frontier Foundation locales@geez.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YYYY', - ], - 'months' => ['ጥሪ', 'ለካቲት', 'መጋቢት', 'ሚያዝያ', 'ግንቦት', 'ሰነ', 'ሓምለ', 'ነሓሰ', 'መስከረም', 'ጥቅምቲ', 'ሕዳር', 'ታሕሳስ'], - 'months_short' => ['ጥሪ ', 'ለካቲ', 'መጋቢ', 'ሚያዝ', 'ግንቦ', 'ሰነ ', 'ሓምለ', 'ነሓሰ', 'መስከ', 'ጥቅም', 'ሕዳር', 'ታሕሳ'], - 'weekdays' => ['ሰንበት', 'ሰኑይ', 'ሰሉስ', 'ረቡዕ', 'ሓሙስ', 'ዓርቢ', 'ቀዳም'], - 'weekdays_short' => ['ሰንበ', 'ሰኑይ', 'ሰሉስ', 'ረቡዕ', 'ሓሙስ', 'ዓርቢ', 'ቀዳም'], - 'weekdays_min' => ['ሰንበ', 'ሰኑይ', 'ሰሉስ', 'ረቡዕ', 'ሓሙስ', 'ዓርቢ', 'ቀዳም'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['ንጉሆ ሰዓተ', 'ድሕር ሰዓት'], - - 'year' => ':count ዓመት', - 'y' => ':count ዓመት', - 'a_year' => ':count ዓመት', - - 'month' => 'ወርሒ :count', - 'm' => 'ወርሒ :count', - 'a_month' => 'ወርሒ :count', - - 'week' => ':count ሰሙን', - 'w' => ':count ሰሙን', - 'a_week' => ':count ሰሙን', - - 'day' => ':count መዓልቲ', - 'd' => ':count መዓልቲ', - 'a_day' => ':count መዓልቲ', - - 'hour' => ':count ሰዓት', - 'h' => ':count ሰዓት', - 'a_hour' => ':count ሰዓት', - - 'minute' => ':count ደቒቕ', - 'min' => ':count ደቒቕ', - 'a_minute' => ':count ደቒቕ', - - 'second' => ':count ሰከንድ', - 's' => ':count ሰከንድ', - 'a_second' => ':count ሰከንድ', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ti_ET.php b/vendor/nesbot/carbon/src/Carbon/Lang/ti_ET.php deleted file mode 100644 index a816069..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ti_ET.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Ge'ez Frontier Foundation locales@geez.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YYYY', - ], - 'months' => ['ጃንዩወሪ', 'ፌብሩወሪ', 'ማርች', 'ኤፕረል', 'ሜይ', 'ጁን', 'ጁላይ', 'ኦገስት', 'ሴፕቴምበር', 'ኦክተውበር', 'ኖቬምበር', 'ዲሴምበር'], - 'months_short' => ['ጃንዩ', 'ፌብሩ', 'ማርች', 'ኤፕረ', 'ሜይ ', 'ጁን ', 'ጁላይ', 'ኦገስ', 'ሴፕቴ', 'ኦክተ', 'ኖቬም', 'ዲሴም'], - 'weekdays' => ['ሰንበት', 'ሰኑይ', 'ሰሉስ', 'ረቡዕ', 'ሓሙስ', 'ዓርቢ', 'ቀዳም'], - 'weekdays_short' => ['ሰንበ', 'ሰኑይ', 'ሰሉስ', 'ረቡዕ', 'ሓሙስ', 'ዓርቢ', 'ቀዳም'], - 'weekdays_min' => ['ሰንበ', 'ሰኑይ', 'ሰሉስ', 'ረቡዕ', 'ሓሙስ', 'ዓርቢ', 'ቀዳም'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['ንጉሆ ሰዓተ', 'ድሕር ሰዓት'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/tig.php b/vendor/nesbot/carbon/src/Carbon/Lang/tig.php deleted file mode 100644 index 186fe71..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/tig.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/tig_ER.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/tig_ER.php b/vendor/nesbot/carbon/src/Carbon/Lang/tig_ER.php deleted file mode 100644 index 46887b0..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/tig_ER.php +++ /dev/null @@ -1,56 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Ge'ez Frontier Foundation locales@geez.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YYYY', - ], - 'months' => ['ጥሪ', 'ለካቲት', 'መጋቢት', 'ሚያዝያ', 'ግንቦት', 'ሰነ', 'ሓምለ', 'ነሓሰ', 'መስከረም', 'ጥቅምቲ', 'ሕዳር', 'ታሕሳስ'], - 'months_short' => ['ጥሪ ', 'ለካቲ', 'መጋቢ', 'ሚያዝ', 'ግንቦ', 'ሰነ ', 'ሓምለ', 'ነሓሰ', 'መስከ', 'ጥቅም', 'ሕዳር', 'ታሕሳ'], - 'weekdays' => ['ሰንበት ዓባይ', 'ሰኖ', 'ታላሸኖ', 'ኣረርባዓ', 'ከሚሽ', 'ጅምዓት', 'ሰንበት ንኢሽ'], - 'weekdays_short' => ['ሰ//ዓ', 'ሰኖ ', 'ታላሸ', 'ኣረር', 'ከሚሽ', 'ጅምዓ', 'ሰ//ን'], - 'weekdays_min' => ['ሰ//ዓ', 'ሰኖ ', 'ታላሸ', 'ኣረር', 'ከሚሽ', 'ጅምዓ', 'ሰ//ን'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['ቀደም ሰር ምዕል', 'ሓቆ ሰር ምዕል'], - - 'year' => ':count ማይ', // less reliable - 'y' => ':count ማይ', // less reliable - 'a_year' => ':count ማይ', // less reliable - - 'month' => ':count ሸምሽ', // less reliable - 'm' => ':count ሸምሽ', // less reliable - 'a_month' => ':count ሸምሽ', // less reliable - - 'week' => ':count ሰቡዕ', // less reliable - 'w' => ':count ሰቡዕ', // less reliable - 'a_week' => ':count ሰቡዕ', // less reliable - - 'day' => ':count ዎሮ', // less reliable - 'd' => ':count ዎሮ', // less reliable - 'a_day' => ':count ዎሮ', // less reliable - - 'hour' => ':count ሰዓት', // less reliable - 'h' => ':count ሰዓት', // less reliable - 'a_hour' => ':count ሰዓት', // less reliable - - 'minute' => ':count ካልኣይት', // less reliable - 'min' => ':count ካልኣይት', // less reliable - 'a_minute' => ':count ካልኣይት', // less reliable - - 'second' => ':count ካልኣይ', - 's' => ':count ካልኣይ', - 'a_second' => ':count ካልኣይ', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/tk.php b/vendor/nesbot/carbon/src/Carbon/Lang/tk.php deleted file mode 100644 index d8f7d19..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/tk.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/tk_TM.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/tk_TM.php b/vendor/nesbot/carbon/src/Carbon/Lang/tk_TM.php deleted file mode 100644 index 47110c0..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/tk_TM.php +++ /dev/null @@ -1,67 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/** - * Authors: - * - Ghorban M. Tavakoly Pablo Saratxaga & Ghorban M. Tavakoly pablo@walon.org & gmt314@yahoo.com - * - SuperManPHP - * - Maksat Meredow (isadma) - */ -$transformDiff = static fn (string $input) => strtr($input, [ - 'sekunt' => 'sekunt', - 'hepde' => 'hepde', -]); - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD.MM.YYYY', - ], - 'months' => ['Ýanwar', 'Fewral', 'Mart', 'Aprel', 'Maý', 'Iýun', 'Iýul', 'Awgust', 'Sentýabr', 'Oktýabr', 'Noýabr', 'Dekabr'], - 'months_short' => ['Ýan', 'Few', 'Mar', 'Apr', 'Maý', 'Iýn', 'Iýl', 'Awg', 'Sen', 'Okt', 'Noý', 'Dek'], - 'weekdays' => ['Duşenbe', 'Sişenbe', 'Çarşenbe', 'Penşenbe', 'Anna', 'Şenbe', 'Ýekşenbe'], - 'weekdays_short' => ['Duş', 'Siş', 'Çar', 'Pen', 'Ann', 'Şen', 'Ýek'], - 'weekdays_min' => ['Du', 'Si', 'Ça', 'Pe', 'An', 'Şe', 'Ýe'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - - 'year' => ':count ýyl', - 'y' => ':count ýyl', - 'a_year' => ':count ýyl', - - 'month' => ':count aý', - 'm' => ':count aý', - 'a_month' => ':count aý', - - 'week' => ':count hepde', - 'w' => ':count hepde', - 'a_week' => ':count hepde', - - 'day' => ':count gün', - 'd' => ':count gün', - 'a_day' => ':count gün', - - 'hour' => ':count sagat', - 'h' => ':count sagat', - 'a_hour' => ':count sagat', - - 'minute' => ':count minut', - 'min' => ':count minut', - 'a_minute' => ':count minut', - - 'second' => ':count sekunt', - 's' => ':count sekunt', - 'a_second' => ':count sekunt', - - 'ago' => static fn (string $time) => $transformDiff($time).' ozal', - 'from_now' => static fn (string $time) => $transformDiff($time).' soňra', - 'after' => static fn (string $time) => $transformDiff($time).' soň', - 'before' => static fn (string $time) => $transformDiff($time).' öň', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/tl.php b/vendor/nesbot/carbon/src/Carbon/Lang/tl.php deleted file mode 100644 index 410a266..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/tl.php +++ /dev/null @@ -1,61 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return [ - 'year' => ':count taon', - 'a_year' => '{1}isang taon|:count taon', - 'month' => ':count buwan', - 'a_month' => '{1}isang buwan|:count buwan', - 'week' => ':count linggo', - 'a_week' => '{1}isang linggo|:count linggo', - 'day' => ':count araw', - 'a_day' => '{1}isang araw|:count araw', - 'hour' => ':count oras', - 'a_hour' => '{1}isang oras|:count oras', - 'minute' => ':count minuto', - 'a_minute' => '{1}isang minuto|:count minuto', - 'min' => ':count min.', - 'second' => ':count segundo', - 'a_second' => '{1}ilang segundo|:count segundo', - 's' => ':count seg.', - 'ago' => ':time ang nakalipas', - 'from_now' => 'sa loob ng :time', - 'diff_now' => 'ngayon', - 'diff_today' => 'ngayong', - 'diff_today_regexp' => 'ngayong(?:\\s+araw)?', - 'diff_yesterday' => 'kahapon', - 'diff_tomorrow' => 'bukas', - 'diff_tomorrow_regexp' => 'Bukas(?:\\s+ng)?', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'MM/D/YYYY', - 'LL' => 'MMMM D, YYYY', - 'LLL' => 'MMMM D, YYYY HH:mm', - 'LLLL' => 'dddd, MMMM DD, YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => 'LT [ngayong araw]', - 'nextDay' => '[Bukas ng] LT', - 'nextWeek' => 'LT [sa susunod na] dddd', - 'lastDay' => 'LT [kahapon]', - 'lastWeek' => 'LT [noong nakaraang] dddd', - 'sameElse' => 'L', - ], - 'months' => ['Enero', 'Pebrero', 'Marso', 'Abril', 'Mayo', 'Hunyo', 'Hulyo', 'Agosto', 'Setyembre', 'Oktubre', 'Nobyembre', 'Disyembre'], - 'months_short' => ['Ene', 'Peb', 'Mar', 'Abr', 'May', 'Hun', 'Hul', 'Ago', 'Set', 'Okt', 'Nob', 'Dis'], - 'weekdays' => ['Linggo', 'Lunes', 'Martes', 'Miyerkules', 'Huwebes', 'Biyernes', 'Sabado'], - 'weekdays_short' => ['Lin', 'Lun', 'Mar', 'Miy', 'Huw', 'Biy', 'Sab'], - 'weekdays_min' => ['Li', 'Lu', 'Ma', 'Mi', 'Hu', 'Bi', 'Sab'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => [', ', ' at '], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/tl_PH.php b/vendor/nesbot/carbon/src/Carbon/Lang/tl_PH.php deleted file mode 100644 index 95f508c..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/tl_PH.php +++ /dev/null @@ -1,18 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - François B - * - Ian De La Cruz - * - JD Isaacks - */ -return require __DIR__.'/tl.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/tlh.php b/vendor/nesbot/carbon/src/Carbon/Lang/tlh.php deleted file mode 100644 index 4ecf244..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/tlh.php +++ /dev/null @@ -1,72 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - François B - * - Serhan Apaydın - * - Dominika - */ -return [ - 'year' => '{1}wa’ DIS|:count DIS', - 'month' => '{1}wa’ jar|:count jar', - 'week' => '{1}wa’ hogh|:count hogh', - 'day' => '{1}wa’ jaj|:count jaj', - 'hour' => '{1}wa’ rep|:count rep', - 'minute' => '{1}wa’ tup|:count tup', - 'second' => '{1}puS lup|:count lup', - 'ago' => static function ($time) { - $output = strtr($time, [ - 'jaj' => 'Hu’', - 'jar' => 'wen', - 'DIS' => 'ben', - ]); - - return $output === $time ? "$time ret" : $output; - }, - 'from_now' => static function ($time) { - $output = strtr($time, [ - 'jaj' => 'leS', - 'jar' => 'waQ', - 'DIS' => 'nem', - ]); - - return $output === $time ? "$time pIq" : $output; - }, - 'diff_yesterday' => 'wa’Hu’', - 'diff_today' => 'DaHjaj', - 'diff_tomorrow' => 'wa’leS', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD.MM.YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[DaHjaj] LT', - 'nextDay' => '[wa’leS] LT', - 'nextWeek' => 'LLL', - 'lastDay' => '[wa’Hu’] LT', - 'lastWeek' => 'LLL', - 'sameElse' => 'L', - ], - 'ordinal' => ':number.', - 'months' => ['tera’ jar wa’', 'tera’ jar cha’', 'tera’ jar wej', 'tera’ jar loS', 'tera’ jar vagh', 'tera’ jar jav', 'tera’ jar Soch', 'tera’ jar chorgh', 'tera’ jar Hut', 'tera’ jar wa’maH', 'tera’ jar wa’maH wa’', 'tera’ jar wa’maH cha’'], - 'months_short' => ['jar wa’', 'jar cha’', 'jar wej', 'jar loS', 'jar vagh', 'jar jav', 'jar Soch', 'jar chorgh', 'jar Hut', 'jar wa’maH', 'jar wa’maH wa’', 'jar wa’maH cha’'], - 'weekdays' => ['lojmItjaj', 'DaSjaj', 'povjaj', 'ghItlhjaj', 'loghjaj', 'buqjaj', 'ghInjaj'], - 'weekdays_short' => ['lojmItjaj', 'DaSjaj', 'povjaj', 'ghItlhjaj', 'loghjaj', 'buqjaj', 'ghInjaj'], - 'weekdays_min' => ['lojmItjaj', 'DaSjaj', 'povjaj', 'ghItlhjaj', 'loghjaj', 'buqjaj', 'ghInjaj'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => [', ', ' ’ej '], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/tn.php b/vendor/nesbot/carbon/src/Carbon/Lang/tn.php deleted file mode 100644 index f29bdf6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/tn.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/tn_ZA.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/tn_ZA.php b/vendor/nesbot/carbon/src/Carbon/Lang/tn_ZA.php deleted file mode 100644 index e3df8f6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/tn_ZA.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Zuza Software Foundation (Translate.org.za) Dwayne Bailey dwayne@translate.org.za - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YYYY', - ], - 'months' => ['Ferikgong', 'Tlhakole', 'Mopitlwe', 'Moranang', 'Motsheganong', 'Seetebosigo', 'Phukwi', 'Phatwe', 'Lwetse', 'Diphalane', 'Ngwanatsele', 'Sedimonthole'], - 'months_short' => ['Fer', 'Tlh', 'Mop', 'Mor', 'Mot', 'See', 'Phu', 'Pha', 'Lwe', 'Dip', 'Ngw', 'Sed'], - 'weekdays' => ['laTshipi', 'Mosupologo', 'Labobedi', 'Laboraro', 'Labone', 'Labotlhano', 'Lamatlhatso'], - 'weekdays_short' => ['Tsh', 'Mos', 'Bed', 'Rar', 'Ne', 'Tlh', 'Mat'], - 'weekdays_min' => ['Tsh', 'Mos', 'Bed', 'Rar', 'Ne', 'Tlh', 'Mat'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - - 'year' => 'dingwaga di le :count', - 'y' => 'dingwaga di le :count', - 'a_year' => 'dingwaga di le :count', - - 'month' => 'dikgwedi di le :count', - 'm' => 'dikgwedi di le :count', - 'a_month' => 'dikgwedi di le :count', - - 'week' => 'dibeke di le :count', - 'w' => 'dibeke di le :count', - 'a_week' => 'dibeke di le :count', - - 'day' => 'malatsi :count', - 'd' => 'malatsi :count', - 'a_day' => 'malatsi :count', - - 'hour' => 'diura di le :count', - 'h' => 'diura di le :count', - 'a_hour' => 'diura di le :count', - - 'minute' => 'metsotso e le :count', - 'min' => 'metsotso e le :count', - 'a_minute' => 'metsotso e le :count', - - 'second' => 'metsotswana e le :count', - 's' => 'metsotswana e le :count', - 'a_second' => 'metsotswana e le :count', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/to.php b/vendor/nesbot/carbon/src/Carbon/Lang/to.php deleted file mode 100644 index 20581bb..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/to.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/to_TO.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/to_TO.php b/vendor/nesbot/carbon/src/Carbon/Lang/to_TO.php deleted file mode 100644 index ce713ed..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/to_TO.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - International Components for Unicode akhilesh.k@samsung.com - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'first_day_of_week' => 0, - 'formats' => [ - 'L' => 'dddd DD MMM YYYY', - ], - 'months' => ['Sānuali', 'Fēpueli', 'Maʻasi', 'ʻEpeleli', 'Mē', 'Sune', 'Siulai', 'ʻAokosi', 'Sepitema', 'ʻOkatopa', 'Nōvema', 'Tīsema'], - 'months_short' => ['Sān', 'Fēp', 'Maʻa', 'ʻEpe', 'Mē', 'Sun', 'Siu', 'ʻAok', 'Sep', 'ʻOka', 'Nōv', 'Tīs'], - 'weekdays' => ['Sāpate', 'Mōnite', 'Tūsite', 'Pulelulu', 'Tuʻapulelulu', 'Falaite', 'Tokonaki'], - 'weekdays_short' => ['Sāp', 'Mōn', 'Tūs', 'Pul', 'Tuʻa', 'Fal', 'Tok'], - 'weekdays_min' => ['Sāp', 'Mōn', 'Tūs', 'Pul', 'Tuʻa', 'Fal', 'Tok'], - 'meridiem' => ['hengihengi', 'efiafi'], - - 'year' => ':count fitu', // less reliable - 'y' => ':count fitu', // less reliable - 'a_year' => ':count fitu', // less reliable - - 'month' => ':count mahina', // less reliable - 'm' => ':count mahina', // less reliable - 'a_month' => ':count mahina', // less reliable - - 'week' => ':count Sapate', // less reliable - 'w' => ':count Sapate', // less reliable - 'a_week' => ':count Sapate', // less reliable - - 'day' => ':count ʻaho', // less reliable - 'd' => ':count ʻaho', // less reliable - 'a_day' => ':count ʻaho', // less reliable - - 'hour' => ':count houa', - 'h' => ':count houa', - 'a_hour' => ':count houa', - - 'minute' => ':count miniti', - 'min' => ':count miniti', - 'a_minute' => ':count miniti', - - 'second' => ':count sekoni', - 's' => ':count sekoni', - 'a_second' => ':count sekoni', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/tpi.php b/vendor/nesbot/carbon/src/Carbon/Lang/tpi.php deleted file mode 100644 index 7d38dae..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/tpi.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/tpi_PG.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/tpi_PG.php b/vendor/nesbot/carbon/src/Carbon/Lang/tpi_PG.php deleted file mode 100644 index 721b625..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/tpi_PG.php +++ /dev/null @@ -1,56 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Samsung Electronics Co., Ltd. akhilesh.k@samsung.com - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YYYY', - ], - 'months' => ['Janueri', 'Februeri', 'Mas', 'Epril', 'Me', 'Jun', 'Julai', 'Ogas', 'Septemba', 'Oktoba', 'Novemba', 'Desemba'], - 'months_short' => ['Jan', 'Feb', 'Mas', 'Epr', 'Me', 'Jun', 'Jul', 'Oga', 'Sep', 'Okt', 'Nov', 'Des'], - 'weekdays' => ['Sande', 'Mande', 'Tunde', 'Trinde', 'Fonde', 'Fraide', 'Sarere'], - 'weekdays_short' => ['San', 'Man', 'Tun', 'Tri', 'Fon', 'Fra', 'Sar'], - 'weekdays_min' => ['San', 'Man', 'Tun', 'Tri', 'Fon', 'Fra', 'Sar'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['biknait', 'apinun'], - - 'year' => 'yia :count', - 'y' => 'yia :count', - 'a_year' => 'yia :count', - - 'month' => ':count mun', - 'm' => ':count mun', - 'a_month' => ':count mun', - - 'week' => ':count wik', - 'w' => ':count wik', - 'a_week' => ':count wik', - - 'day' => ':count de', - 'd' => ':count de', - 'a_day' => ':count de', - - 'hour' => ':count aua', - 'h' => ':count aua', - 'a_hour' => ':count aua', - - 'minute' => ':count minit', - 'min' => ':count minit', - 'a_minute' => ':count minit', - - 'second' => ':count namba tu', - 's' => ':count namba tu', - 'a_second' => ':count namba tu', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/tr.php b/vendor/nesbot/carbon/src/Carbon/Lang/tr.php deleted file mode 100644 index 1e9446f..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/tr.php +++ /dev/null @@ -1,121 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Josh Soref - * - Alan Agius - * - Erhan Gundogan - * - François B - * - JD Isaacks - * - Murat Yüksel - * - Baran Şengül - * - Selami (selamialtin) - * - TeomanBey - */ -return [ - 'year' => ':count yıl', - 'a_year' => '{1}bir yıl|]1,Inf[:count yıl', - 'y' => ':county', - 'month' => ':count ay', - 'a_month' => '{1}bir ay|]1,Inf[:count ay', - 'm' => ':countay', - 'week' => ':count hafta', - 'a_week' => '{1}bir hafta|]1,Inf[:count hafta', - 'w' => ':counth', - 'day' => ':count gün', - 'a_day' => '{1}bir gün|]1,Inf[:count gün', - 'd' => ':countg', - 'hour' => ':count saat', - 'a_hour' => '{1}bir saat|]1,Inf[:count saat', - 'h' => ':countsa', - 'minute' => ':count dakika', - 'a_minute' => '{1}bir dakika|]1,Inf[:count dakika', - 'min' => ':countdk', - 'second' => ':count saniye', - 'a_second' => '{1}birkaç saniye|]1,Inf[:count saniye', - 's' => ':countsn', - 'ago' => ':time önce', - 'from_now' => ':time sonra', - 'after' => ':time sonra', - 'before' => ':time önce', - 'diff_now' => 'şimdi', - 'diff_today' => 'bugün', - 'diff_today_regexp' => 'bugün(?:\\s+saat)?', - 'diff_yesterday' => 'dün', - 'diff_tomorrow' => 'yarın', - 'diff_tomorrow_regexp' => 'yarın(?:\\s+saat)?', - 'diff_before_yesterday' => 'evvelsi gün', - 'diff_after_tomorrow' => 'öbür gün', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD.MM.YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[bugün saat] LT', - 'nextDay' => '[yarın saat] LT', - 'nextWeek' => '[gelecek] dddd [saat] LT', - 'lastDay' => '[dün] LT', - 'lastWeek' => '[geçen] dddd [saat] LT', - 'sameElse' => 'L', - ], - 'ordinal' => static function ($number, $period) { - switch ($period) { - case 'd': - case 'D': - case 'Do': - case 'DD': - return $number; - default: - if ($number === 0) { // special case for zero - return "$number'ıncı"; - } - - static $suffixes = [ - 1 => '\'inci', - 5 => '\'inci', - 8 => '\'inci', - 70 => '\'inci', - 80 => '\'inci', - 2 => '\'nci', - 7 => '\'nci', - 20 => '\'nci', - 50 => '\'nci', - 3 => '\'üncü', - 4 => '\'üncü', - 100 => '\'üncü', - 6 => '\'ncı', - 9 => '\'uncu', - 10 => '\'uncu', - 30 => '\'uncu', - 60 => '\'ıncı', - 90 => '\'ıncı', - ]; - - $lastDigit = $number % 10; - - return $number.($suffixes[$lastDigit] ?? $suffixes[$number % 100 - $lastDigit] ?? $suffixes[$number >= 100 ? 100 : -1] ?? ''); - } - }, - 'meridiem' => ['ÖÖ', 'ÖS', 'öö', 'ös'], - 'months' => ['Ocak', 'Şubat', 'Mart', 'Nisan', 'Mayıs', 'Haziran', 'Temmuz', 'Ağustos', 'Eylül', 'Ekim', 'Kasım', 'Aralık'], - 'months_short' => ['Oca', 'Şub', 'Mar', 'Nis', 'May', 'Haz', 'Tem', 'Ağu', 'Eyl', 'Eki', 'Kas', 'Ara'], - 'weekdays' => ['Pazar', 'Pazartesi', 'Salı', 'Çarşamba', 'Perşembe', 'Cuma', 'Cumartesi'], - 'weekdays_short' => ['Paz', 'Pts', 'Sal', 'Çar', 'Per', 'Cum', 'Cts'], - 'weekdays_min' => ['Pz', 'Pt', 'Sa', 'Ça', 'Pe', 'Cu', 'Ct'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'list' => [', ', ' ve '], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/tr_CY.php b/vendor/nesbot/carbon/src/Carbon/Lang/tr_CY.php deleted file mode 100644 index 23f1144..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/tr_CY.php +++ /dev/null @@ -1,23 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/tr.php', [ - 'weekdays_short' => ['Paz', 'Pzt', 'Sal', 'Çar', 'Per', 'Cum', 'Cmt'], - 'weekdays_min' => ['Pa', 'Pt', 'Sa', 'Ça', 'Pe', 'Cu', 'Ct'], - 'formats' => [ - 'LT' => 'h:mm a', - 'LTS' => 'h:mm:ss a', - 'L' => 'D.MM.YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY h:mm a', - 'LLLL' => 'D MMMM YYYY dddd h:mm a', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/tr_TR.php b/vendor/nesbot/carbon/src/Carbon/Lang/tr_TR.php deleted file mode 100644 index 9e99482..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/tr_TR.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/tr.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ts.php b/vendor/nesbot/carbon/src/Carbon/Lang/ts.php deleted file mode 100644 index 525736b..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ts.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/ts_ZA.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ts_ZA.php b/vendor/nesbot/carbon/src/Carbon/Lang/ts_ZA.php deleted file mode 100644 index 3271345..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ts_ZA.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Zuza Software Foundation (Translate.org.za) Dwayne Bailey dwayne@translate.org.za - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YYYY', - ], - 'months' => ['Sunguti', 'Nyenyenyani', 'Nyenyankulu', 'Dzivamisoko', 'Mudyaxihi', 'Khotavuxika', 'Mawuwani', 'Mhawuri', 'Ndzhati', 'Nhlangula', 'Hukuri', 'N\'wendzamhala'], - 'months_short' => ['Sun', 'Yan', 'Kul', 'Dzi', 'Mud', 'Kho', 'Maw', 'Mha', 'Ndz', 'Nhl', 'Huk', 'N\'w'], - 'weekdays' => ['Sonto', 'Musumbhunuku', 'Ravumbirhi', 'Ravunharhu', 'Ravumune', 'Ravuntlhanu', 'Mugqivela'], - 'weekdays_short' => ['Son', 'Mus', 'Bir', 'Har', 'Ne', 'Tlh', 'Mug'], - 'weekdays_min' => ['Son', 'Mus', 'Bir', 'Har', 'Ne', 'Tlh', 'Mug'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - - 'year' => 'malembe ya :count', - 'y' => 'malembe ya :count', - 'a_year' => 'malembe ya :count', - - 'month' => 'tin’hweti ta :count', - 'm' => 'tin’hweti ta :count', - 'a_month' => 'tin’hweti ta :count', - - 'week' => 'mavhiki ya :count', - 'w' => 'mavhiki ya :count', - 'a_week' => 'mavhiki ya :count', - - 'day' => 'masiku :count', - 'd' => 'masiku :count', - 'a_day' => 'masiku :count', - - 'hour' => 'tiawara ta :count', - 'h' => 'tiawara ta :count', - 'a_hour' => 'tiawara ta :count', - - 'minute' => 'timinete ta :count', - 'min' => 'timinete ta :count', - 'a_minute' => 'timinete ta :count', - - 'second' => 'tisekoni ta :count', - 's' => 'tisekoni ta :count', - 'a_second' => 'tisekoni ta :count', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/tt.php b/vendor/nesbot/carbon/src/Carbon/Lang/tt.php deleted file mode 100644 index d67d896..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/tt.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/tt_RU.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/tt_RU.php b/vendor/nesbot/carbon/src/Carbon/Lang/tt_RU.php deleted file mode 100644 index 38e42d0..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/tt_RU.php +++ /dev/null @@ -1,39 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Rinat Norkin Pablo Saratxaga, Rinat Norkin pablo@mandrakesoft.com, rinat@taif.ru - */ -return [ - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD.MM.YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'DD MMM, HH:mm', - 'LLLL' => 'DD MMMM YYYY, HH:mm', - ], - 'months' => ['января', 'февраля', 'марта', 'апреля', 'мая', 'июня', 'июля', 'августа', 'сентября', 'октября', 'ноября', 'декабря'], - 'months_short' => ['янв', 'фев', 'мар', 'апр', 'май', 'июн', 'июл', 'авг', 'сен', 'окт', 'ноя', 'дек'], - 'weekdays' => ['якшәмбе', 'дышәмбе', 'сишәмбе', 'чәршәәмбе', 'пәнҗешмбе', 'җомга', 'шимбә'], - 'weekdays_short' => ['якш', 'дыш', 'сиш', 'чәрш', 'пәнҗ', 'җом', 'шим'], - 'weekdays_min' => ['якш', 'дыш', 'сиш', 'чәрш', 'пәнҗ', 'җом', 'шим'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'year' => ':count ел', - 'month' => ':count ай', - 'week' => ':count атна', - 'day' => ':count көн', - 'hour' => ':count сәгать', - 'minute' => ':count минут', - 'second' => ':count секунд', -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/tt_RU@iqtelif.php b/vendor/nesbot/carbon/src/Carbon/Lang/tt_RU@iqtelif.php deleted file mode 100644 index 16b8efb..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/tt_RU@iqtelif.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Reshat Sabiq tatar.iqtelif.i18n@gmail.com - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD.MM.YYYY', - ], - 'months' => ['Ğınwar', 'Fiwral\'', 'Mart', 'April', 'May', 'Yün', 'Yül', 'Awgust', 'Sintebír', 'Üktebír', 'Noyebír', 'Dikebír'], - 'months_short' => ['Ğın', 'Fiw', 'Mar', 'Apr', 'May', 'Yün', 'Yül', 'Awg', 'Sin', 'Ükt', 'Noy', 'Dik'], - 'weekdays' => ['Yekşembí', 'Düşembí', 'Sişembí', 'Çerşembí', 'Pencíşembí', 'Comğa', 'Şimbe'], - 'weekdays_short' => ['Yek', 'Düş', 'Siş', 'Çer', 'Pen', 'Com', 'Şim'], - 'weekdays_min' => ['Yek', 'Düş', 'Siş', 'Çer', 'Pen', 'Com', 'Şim'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['ÖA', 'ÖS'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/twq.php b/vendor/nesbot/carbon/src/Carbon/Lang/twq.php deleted file mode 100644 index 5cbb46e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/twq.php +++ /dev/null @@ -1,14 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/ses.php', [ - 'meridiem' => ['Subbaahi', 'Zaarikay b'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/tzl.php b/vendor/nesbot/carbon/src/Carbon/Lang/tzl.php deleted file mode 100644 index 50bf26d..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/tzl.php +++ /dev/null @@ -1,65 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return [ - 'year' => '[0,1]:count ar|:count ars', - 'y' => '[0,1]:count ar|:count ars', - 'month' => '[0,1]:count mes|:count mesen', - 'm' => '[0,1]:count mes|:count mesen', - 'week' => '[0,1]:count seifetziua|:count seifetziuas', - 'w' => '[0,1]:count seifetziua|:count seifetziuas', - 'day' => '[0,1]:count ziua|:count ziuas', - 'd' => '[0,1]:count ziua|:count ziuas', - 'hour' => '[0,1]:count þora|:count þoras', - 'h' => '[0,1]:count þora|:count þoras', - 'minute' => '[0,1]:count míut|:count míuts', - 'min' => '[0,1]:count míut|:count míuts', - 'second' => ':count secunds', - 's' => ':count secunds', - - 'ago' => 'ja :time', - 'from_now' => 'osprei :time', - - 'diff_yesterday' => 'ieiri', - 'diff_yesterday_regexp' => 'ieiri(?:\\s+à)?', - 'diff_today' => 'oxhi', - 'diff_today_regexp' => 'oxhi(?:\\s+à)?', - 'diff_tomorrow' => 'demà', - 'diff_tomorrow_regexp' => 'demà(?:\\s+à)?', - - 'formats' => [ - 'LT' => 'HH.mm', - 'LTS' => 'HH.mm.ss', - 'L' => 'DD.MM.YYYY', - 'LL' => 'D. MMMM [dallas] YYYY', - 'LLL' => 'D. MMMM [dallas] YYYY HH.mm', - 'LLLL' => 'dddd, [li] D. MMMM [dallas] YYYY HH.mm', - ], - - 'calendar' => [ - 'sameDay' => '[oxhi à] LT', - 'nextDay' => '[demà à] LT', - 'nextWeek' => 'dddd [à] LT', - 'lastDay' => '[ieiri à] LT', - 'lastWeek' => '[sür el] dddd [lasteu à] LT', - 'sameElse' => 'L', - ], - - 'meridiem' => ["D'A", "D'O"], - 'months' => ['Januar', 'Fevraglh', 'Març', 'Avrïu', 'Mai', 'Gün', 'Julia', 'Guscht', 'Setemvar', 'Listopäts', 'Noemvar', 'Zecemvar'], - 'months_short' => ['Jan', 'Fev', 'Mar', 'Avr', 'Mai', 'Gün', 'Jul', 'Gus', 'Set', 'Lis', 'Noe', 'Zec'], - 'weekdays' => ['Súladi', 'Lúneçi', 'Maitzi', 'Márcuri', 'Xhúadi', 'Viénerçi', 'Sáturi'], - 'weekdays_short' => ['Súl', 'Lún', 'Mai', 'Már', 'Xhú', 'Vié', 'Sát'], - 'weekdays_min' => ['Sú', 'Lú', 'Ma', 'Má', 'Xh', 'Vi', 'Sá'], - 'ordinal' => ':number.', - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/tzm.php b/vendor/nesbot/carbon/src/Carbon/Lang/tzm.php deleted file mode 100644 index 2a1a0f2..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/tzm.php +++ /dev/null @@ -1,57 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Josh Soref - * - JD Isaacks - */ -return [ - 'year' => '{1}ⴰⵙⴳⴰⵙ|:count ⵉⵙⴳⴰⵙⵏ', - 'month' => '{1}ⴰⵢoⵓⵔ|:count ⵉⵢⵢⵉⵔⵏ', - 'week' => ':count ⵉⵎⴰⵍⴰⵙⵙ', - 'day' => '{1}ⴰⵙⵙ|:count oⵙⵙⴰⵏ', - 'hour' => '{1}ⵙⴰⵄⴰ|:count ⵜⴰⵙⵙⴰⵄⵉⵏ', - 'minute' => '{1}ⵎⵉⵏⵓⴺ|:count ⵎⵉⵏⵓⴺ', - 'second' => '{1}ⵉⵎⵉⴽ|:count ⵉⵎⵉⴽ', - 'ago' => 'ⵢⴰⵏ :time', - 'from_now' => 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ :time', - 'diff_today' => 'ⴰⵙⴷⵅ', - 'diff_yesterday' => 'ⴰⵚⴰⵏⵜ', - 'diff_yesterday_regexp' => 'ⴰⵚⴰⵏⵜ(?:\\s+ⴴ)?', - 'diff_tomorrow' => 'ⴰⵙⴽⴰ', - 'diff_tomorrow_regexp' => 'ⴰⵙⴽⴰ(?:\\s+ⴴ)?', - 'diff_today_regexp' => 'ⴰⵙⴷⵅ(?:\\s+ⴴ)?', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[ⴰⵙⴷⵅ ⴴ] LT', - 'nextDay' => '[ⴰⵙⴽⴰ ⴴ] LT', - 'nextWeek' => 'dddd [ⴴ] LT', - 'lastDay' => '[ⴰⵚⴰⵏⵜ ⴴ] LT', - 'lastWeek' => 'dddd [ⴴ] LT', - 'sameElse' => 'L', - ], - 'months' => ['ⵉⵏⵏⴰⵢⵔ', 'ⴱⵕⴰⵢⵕ', 'ⵎⴰⵕⵚ', 'ⵉⴱⵔⵉⵔ', 'ⵎⴰⵢⵢⵓ', 'ⵢⵓⵏⵢⵓ', 'ⵢⵓⵍⵢⵓⵣ', 'ⵖⵓⵛⵜ', 'ⵛⵓⵜⴰⵏⴱⵉⵔ', 'ⴽⵟⵓⴱⵕ', 'ⵏⵓⵡⴰⵏⴱⵉⵔ', 'ⴷⵓⵊⵏⴱⵉⵔ'], - 'months_short' => ['ⵉⵏⵏⴰⵢⵔ', 'ⴱⵕⴰⵢⵕ', 'ⵎⴰⵕⵚ', 'ⵉⴱⵔⵉⵔ', 'ⵎⴰⵢⵢⵓ', 'ⵢⵓⵏⵢⵓ', 'ⵢⵓⵍⵢⵓⵣ', 'ⵖⵓⵛⵜ', 'ⵛⵓⵜⴰⵏⴱⵉⵔ', 'ⴽⵟⵓⴱⵕ', 'ⵏⵓⵡⴰⵏⴱⵉⵔ', 'ⴷⵓⵊⵏⴱⵉⵔ'], - 'weekdays' => ['ⴰⵙⴰⵎⴰⵙ', 'ⴰⵢⵏⴰⵙ', 'ⴰⵙⵉⵏⴰⵙ', 'ⴰⴽⵔⴰⵙ', 'ⴰⴽⵡⴰⵙ', 'ⴰⵙⵉⵎⵡⴰⵙ', 'ⴰⵙⵉⴹⵢⴰⵙ'], - 'weekdays_short' => ['ⴰⵙⴰⵎⴰⵙ', 'ⴰⵢⵏⴰⵙ', 'ⴰⵙⵉⵏⴰⵙ', 'ⴰⴽⵔⴰⵙ', 'ⴰⴽⵡⴰⵙ', 'ⴰⵙⵉⵎⵡⴰⵙ', 'ⴰⵙⵉⴹⵢⴰⵙ'], - 'weekdays_min' => ['ⴰⵙⴰⵎⴰⵙ', 'ⴰⵢⵏⴰⵙ', 'ⴰⵙⵉⵏⴰⵙ', 'ⴰⴽⵔⴰⵙ', 'ⴰⴽⵡⴰⵙ', 'ⴰⵙⵉⵎⵡⴰⵙ', 'ⴰⵙⵉⴹⵢⴰⵙ'], - 'first_day_of_week' => 6, - 'day_of_first_week_of_year' => 1, - 'weekend' => [5, 6], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/tzm_Latn.php b/vendor/nesbot/carbon/src/Carbon/Lang/tzm_Latn.php deleted file mode 100644 index 5840d20..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/tzm_Latn.php +++ /dev/null @@ -1,64 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Josh Soref - * - JD Isaacks - */ -return [ - 'year' => '{1}:count asgas|:count isgasn', - 'a_year' => 'asgas|:count isgasn', - 'month' => '{1}:count ayowr|:count iyyirn', - 'a_month' => 'ayowr|:count iyyirn', - 'week' => ':count imalass', - 'a_week' => ':imalass', - 'day' => '{1}:count ass|:count ossan', - 'a_day' => 'ass|:count ossan', - 'hour' => '{1}:count saɛa|:count tassaɛin', - 'a_hour' => '{1}saɛa|:count tassaɛin', - 'minute' => ':count minuḍ', - 'a_minute' => '{1}minuḍ|:count minuḍ', - 'second' => ':count imik', - 'a_second' => '{1}imik|:count imik', - 'ago' => 'yan :time', - 'from_now' => 'dadkh s yan :time', - 'diff_yesterday' => 'assant', - 'diff_yesterday_regexp' => 'assant(?:\\s+g)?', - 'diff_today' => 'asdkh', - 'diff_today_regexp' => 'asdkh(?:\\s+g)?', - 'diff_tomorrow' => 'aska', - 'diff_tomorrow_regexp' => 'aska(?:\\s+g)?', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[asdkh g] LT', - 'nextDay' => '[aska g] LT', - 'nextWeek' => 'dddd [g] LT', - 'lastDay' => '[assant g] LT', - 'lastWeek' => 'dddd [g] LT', - 'sameElse' => 'L', - ], - 'months' => ['innayr', 'brˤayrˤ', 'marˤsˤ', 'ibrir', 'mayyw', 'ywnyw', 'ywlywz', 'ɣwšt', 'šwtanbir', 'ktˤwbrˤ', 'nwwanbir', 'dwjnbir'], - 'months_short' => ['innayr', 'brˤayrˤ', 'marˤsˤ', 'ibrir', 'mayyw', 'ywnyw', 'ywlywz', 'ɣwšt', 'šwtanbir', 'ktˤwbrˤ', 'nwwanbir', 'dwjnbir'], - 'weekdays' => ['asamas', 'aynas', 'asinas', 'akras', 'akwas', 'asimwas', 'asiḍyas'], - 'weekdays_short' => ['asamas', 'aynas', 'asinas', 'akras', 'akwas', 'asimwas', 'asiḍyas'], - 'weekdays_min' => ['asamas', 'aynas', 'asinas', 'akras', 'akwas', 'asimwas', 'asiḍyas'], - 'meridiem' => ['Zdat azal', 'Ḍeffir aza'], - 'first_day_of_week' => 6, - 'day_of_first_week_of_year' => 1, -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ug.php b/vendor/nesbot/carbon/src/Carbon/Lang/ug.php deleted file mode 100644 index 12c9f8a..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ug.php +++ /dev/null @@ -1,84 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Philippe Vaucher - * - Tsutomu Kuroda - * - yasinn - */ -return [ - 'year' => '{1}'.'بىر يىل'.'|:count '.'يىل', - 'month' => '{1}'.'بىر ئاي'.'|:count '.'ئاي', - 'week' => '{1}'.'بىر ھەپتە'.'|:count '.'ھەپتە', - 'day' => '{1}'.'بىر كۈن'.'|:count '.'كۈن', - 'hour' => '{1}'.'بىر سائەت'.'|:count '.'سائەت', - 'minute' => '{1}'.'بىر مىنۇت'.'|:count '.'مىنۇت', - 'second' => '{1}'.'نەچچە سېكونت'.'|:count '.'سېكونت', - 'ago' => ':time بۇرۇن', - 'from_now' => ':time كېيىن', - 'diff_today' => 'بۈگۈن', - 'diff_yesterday' => 'تۆنۈگۈن', - 'diff_tomorrow' => 'ئەتە', - 'diff_tomorrow_regexp' => 'ئەتە(?:\\s+سائەت)?', - 'diff_today_regexp' => 'بۈگۈن(?:\\s+سائەت)?', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'YYYY-MM-DD', - 'LL' => 'YYYY-يىلىM-ئاينىڭD-كۈنى', - 'LLL' => 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm', - 'LLLL' => 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[بۈگۈن سائەت] LT', - 'nextDay' => '[ئەتە سائەت] LT', - 'nextWeek' => '[كېلەركى] dddd [سائەت] LT', - 'lastDay' => '[تۆنۈگۈن] LT', - 'lastWeek' => '[ئالدىنقى] dddd [سائەت] LT', - 'sameElse' => 'L', - ], - 'ordinal' => static function ($number, $period) { - return match ($period) { - 'd', 'D', 'DDD' => $number.'-كۈنى', - 'w', 'W' => $number.'-ھەپتە', - default => $number, - }; - }, - 'meridiem' => static function ($hour, $minute) { - $time = $hour * 100 + $minute; - if ($time < 600) { - return 'يېرىم كېچە'; - } - if ($time < 900) { - return 'سەھەر'; - } - if ($time < 1130) { - return 'چۈشتىن بۇرۇن'; - } - if ($time < 1230) { - return 'چۈش'; - } - if ($time < 1800) { - return 'چۈشتىن كېيىن'; - } - - return 'كەچ'; - }, - 'months' => ['يانۋار', 'فېۋرال', 'مارت', 'ئاپرېل', 'ماي', 'ئىيۇن', 'ئىيۇل', 'ئاۋغۇست', 'سېنتەبىر', 'ئۆكتەبىر', 'نويابىر', 'دېكابىر'], - 'months_short' => ['يانۋار', 'فېۋرال', 'مارت', 'ئاپرېل', 'ماي', 'ئىيۇن', 'ئىيۇل', 'ئاۋغۇست', 'سېنتەبىر', 'ئۆكتەبىر', 'نويابىر', 'دېكابىر'], - 'weekdays' => ['يەكشەنبە', 'دۈشەنبە', 'سەيشەنبە', 'چارشەنبە', 'پەيشەنبە', 'جۈمە', 'شەنبە'], - 'weekdays_short' => ['يە', 'دۈ', 'سە', 'چا', 'پە', 'جۈ', 'شە'], - 'weekdays_min' => ['يە', 'دۈ', 'سە', 'چا', 'پە', 'جۈ', 'شە'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'list' => [', ', ' ۋە '], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ug_CN.php b/vendor/nesbot/carbon/src/Carbon/Lang/ug_CN.php deleted file mode 100644 index deb828c..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ug_CN.php +++ /dev/null @@ -1,17 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Kunal Marwaha - * - Alim Boyaq - */ -return require __DIR__.'/ug.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/uk.php b/vendor/nesbot/carbon/src/Carbon/Lang/uk.php deleted file mode 100644 index 3bedd2e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/uk.php +++ /dev/null @@ -1,190 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -use Carbon\CarbonInterface; - -$processHoursFunction = static function (CarbonInterface $date, string $format) { - return $format.'о'.($date->hour === 11 ? 'б' : '').'] LT'; -}; - -/* - * Authors: - * - Kunal Marwaha - * - Josh Soref - * - François B - * - Tim Fish - * - Serhan Apaydın - * - Max Mykhailenko - * - JD Isaacks - * - Max Kovpak - * - AucT - * - Philippe Vaucher - * - Ilya Shaplyko - * - Vadym Ievsieiev - * - Denys Kurets - * - Igor Kasyanchuk - * - Tsutomu Kuroda - * - tjku - * - Max Melentiev - * - Oleh - * - epaminond - * - Juanito Fatas - * - Vitalii Khustochka - * - Akira Matsuda - * - Christopher Dell - * - Enrique Vidal - * - Simone Carletti - * - Aaron Patterson - * - Andriy Tyurnikov - * - Nicolás Hock Isaza - * - Iwakura Taro - * - Andrii Ponomarov - * - alecrabbit - * - vystepanenko - * - AlexWalkerson - * - Andre Havryliuk (Andrend) - * - Max Datsenko (datsenko-md) - */ -return [ - 'year' => ':count рік|:count роки|:count років', - 'y' => ':countр|:countрр|:countрр', - 'a_year' => '{1}рік|:count рік|:count роки|:count років', - 'month' => ':count місяць|:count місяці|:count місяців', - 'm' => ':countм', - 'a_month' => '{1}місяць|:count місяць|:count місяці|:count місяців', - 'week' => ':count тиждень|:count тижні|:count тижнів', - 'w' => ':countт', - 'a_week' => '{1}тиждень|:count тиждень|:count тижні|:count тижнів', - 'day' => ':count день|:count дні|:count днів', - 'd' => ':countд', - 'a_day' => '{1}день|:count день|:count дні|:count днів', - 'hour' => ':count година|:count години|:count годин', - 'h' => ':countг', - 'a_hour' => '{1}година|:count година|:count години|:count годин', - 'minute' => ':count хвилина|:count хвилини|:count хвилин', - 'min' => ':countхв', - 'a_minute' => '{1}хвилина|:count хвилина|:count хвилини|:count хвилин', - 'second' => ':count секунда|:count секунди|:count секунд', - 's' => ':countсек', - 'a_second' => '{1}декілька секунд|:count секунда|:count секунди|:count секунд', - - 'hour_ago' => ':count годину|:count години|:count годин', - 'a_hour_ago' => '{1}годину|:count годину|:count години|:count годин', - 'minute_ago' => ':count хвилину|:count хвилини|:count хвилин', - 'a_minute_ago' => '{1}хвилину|:count хвилину|:count хвилини|:count хвилин', - 'second_ago' => ':count секунду|:count секунди|:count секунд', - 'a_second_ago' => '{1}декілька секунд|:count секунду|:count секунди|:count секунд', - - 'hour_from_now' => ':count годину|:count години|:count годин', - 'a_hour_from_now' => '{1}годину|:count годину|:count години|:count годин', - 'minute_from_now' => ':count хвилину|:count хвилини|:count хвилин', - 'a_minute_from_now' => '{1}хвилину|:count хвилину|:count хвилини|:count хвилин', - 'second_from_now' => ':count секунду|:count секунди|:count секунд', - 'a_second_from_now' => '{1}декілька секунд|:count секунду|:count секунди|:count секунд', - - 'hour_after' => ':count годину|:count години|:count годин', - 'a_hour_after' => '{1}годину|:count годину|:count години|:count годин', - 'minute_after' => ':count хвилину|:count хвилини|:count хвилин', - 'a_minute_after' => '{1}хвилину|:count хвилину|:count хвилини|:count хвилин', - 'second_after' => ':count секунду|:count секунди|:count секунд', - 'a_second_after' => '{1}декілька секунд|:count секунду|:count секунди|:count секунд', - - 'hour_before' => ':count годину|:count години|:count годин', - 'a_hour_before' => '{1}годину|:count годину|:count години|:count годин', - 'minute_before' => ':count хвилину|:count хвилини|:count хвилин', - 'a_minute_before' => '{1}хвилину|:count хвилину|:count хвилини|:count хвилин', - 'second_before' => ':count секунду|:count секунди|:count секунд', - 'a_second_before' => '{1}декілька секунд|:count секунду|:count секунди|:count секунд', - - 'ago' => ':time тому', - 'from_now' => 'за :time', - 'after' => ':time після', - 'before' => ':time до', - 'diff_now' => 'щойно', - 'diff_today' => 'Сьогодні', - 'diff_today_regexp' => 'Сьогодні(?:\\s+о)?', - 'diff_yesterday' => 'вчора', - 'diff_yesterday_regexp' => 'Вчора(?:\\s+о)?', - 'diff_tomorrow' => 'завтра', - 'diff_tomorrow_regexp' => 'Завтра(?:\\s+о)?', - 'diff_before_yesterday' => 'позавчора', - 'diff_after_tomorrow' => 'післязавтра', - 'period_recurrences' => 'один раз|:count рази|:count разів', - 'period_interval' => 'кожні :interval', - 'period_start_date' => 'з :date', - 'period_end_date' => 'до :date', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD.MM.YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY, HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY, HH:mm', - ], - 'calendar' => [ - 'sameDay' => static fn (CarbonInterface $date) => $processHoursFunction($date, '[Сьогодні '), - 'nextDay' => static fn (CarbonInterface $date) => $processHoursFunction($date, '[Завтра '), - 'nextWeek' => static fn (CarbonInterface $date) => $processHoursFunction($date, '[У] dddd ['), - 'lastDay' => static fn (CarbonInterface $date) => $processHoursFunction($date, '[Вчора '), - 'lastWeek' => static fn (CarbonInterface $date) => match ($date->dayOfWeek) { - 0, 3, 5, 6 => $processHoursFunction($date, '[Минулої] dddd ['), - default => $processHoursFunction($date, '[Минулого] dddd ['), - }, - 'sameElse' => 'L', - ], - 'ordinal' => static fn ($number, $period) => match ($period) { - 'M', 'd', 'DDD', 'w', 'W' => $number.'-й', - 'D' => $number.'-го', - default => $number, - }, - 'meridiem' => static function ($hour) { - if ($hour < 4) { - return 'ночі'; - } - - if ($hour < 12) { - return 'ранку'; - } - - if ($hour < 17) { - return 'дня'; - } - - return 'вечора'; - }, - 'months' => ['січня', 'лютого', 'березня', 'квітня', 'травня', 'червня', 'липня', 'серпня', 'вересня', 'жовтня', 'листопада', 'грудня'], - 'months_standalone' => ['січень', 'лютий', 'березень', 'квітень', 'травень', 'червень', 'липень', 'серпень', 'вересень', 'жовтень', 'листопад', 'грудень'], - 'months_short' => ['січ', 'лют', 'бер', 'кві', 'тра', 'чер', 'лип', 'сер', 'вер', 'жов', 'лис', 'гру'], - 'months_regexp' => '/(D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|L{2,4}|l{2,4})/', - 'weekdays' => static function (CarbonInterface $date, $format, $index) { - static $words = [ - 'nominative' => ['неділя', 'понеділок', 'вівторок', 'середа', 'четвер', 'п’ятниця', 'субота'], - 'accusative' => ['неділю', 'понеділок', 'вівторок', 'середу', 'четвер', 'п’ятницю', 'суботу'], - 'genitive' => ['неділі', 'понеділка', 'вівторка', 'середи', 'четверга', 'п’ятниці', 'суботи'], - ]; - - $format ??= ''; - $nounCase = preg_match('/(\[(В|в|У|у)\])\s+dddd/u', $format) - ? 'accusative' - : ( - preg_match('/\[?(?:минулої|наступної)?\s*\]\s+dddd/u', $format) - ? 'genitive' - : 'nominative' - ); - - return $words[$nounCase][$index] ?? null; - }, - 'weekdays_short' => ['нд', 'пн', 'вт', 'ср', 'чт', 'пт', 'сб'], - 'weekdays_min' => ['нд', 'пн', 'вт', 'ср', 'чт', 'пт', 'сб'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'list' => [', ', ' i '], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/uk_UA.php b/vendor/nesbot/carbon/src/Carbon/Lang/uk_UA.php deleted file mode 100644 index bd11d86..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/uk_UA.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/uk.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/unm.php b/vendor/nesbot/carbon/src/Carbon/Lang/unm.php deleted file mode 100644 index d3f19f0..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/unm.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/unm_US.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/unm_US.php b/vendor/nesbot/carbon/src/Carbon/Lang/unm_US.php deleted file mode 100644 index 161a1ec..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/unm_US.php +++ /dev/null @@ -1,58 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YY', - ], - 'months' => ['enikwsi', 'chkwali', 'xamokhwite', 'kwetayoxe', 'tainipen', 'kichinipen', 'lainipen', 'winaminke', 'kichitahkok', 'puksit', 'wini', 'muxkotae'], - 'months_short' => ['eni', 'chk', 'xam', 'kwe', 'tai', 'nip', 'lai', 'win', 'tah', 'puk', 'kun', 'mux'], - 'weekdays' => ['kentuwei', 'manteke', 'tusteke', 'lelai', 'tasteke', 'pelaiteke', 'sateteke'], - 'weekdays_short' => ['ken', 'man', 'tus', 'lel', 'tas', 'pel', 'sat'], - 'weekdays_min' => ['ken', 'man', 'tus', 'lel', 'tas', 'pel', 'sat'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - - // Too unreliable - /* - 'year' => ':count kaxtëne', - 'y' => ':count kaxtëne', - 'a_year' => ':count kaxtëne', - - 'month' => ':count piskewëni kishux', // less reliable - 'm' => ':count piskewëni kishux', // less reliable - 'a_month' => ':count piskewëni kishux', // less reliable - - 'week' => ':count kishku', // less reliable - 'w' => ':count kishku', // less reliable - 'a_week' => ':count kishku', // less reliable - - 'day' => ':count kishku', - 'd' => ':count kishku', - 'a_day' => ':count kishku', - - 'hour' => ':count xkuk', // less reliable - 'h' => ':count xkuk', // less reliable - 'a_hour' => ':count xkuk', // less reliable - - 'minute' => ':count txituwàk', // less reliable - 'min' => ':count txituwàk', // less reliable - 'a_minute' => ':count txituwàk', // less reliable - - 'second' => ':count nisha', // less reliable - 's' => ':count nisha', // less reliable - 'a_second' => ':count nisha', // less reliable - */ -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ur.php b/vendor/nesbot/carbon/src/Carbon/Lang/ur.php deleted file mode 100644 index dc16c2c..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ur.php +++ /dev/null @@ -1,94 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -$months = [ - 'جنوری', - 'فروری', - 'مارچ', - 'اپریل', - 'مئی', - 'جون', - 'جولائی', - 'اگست', - 'ستمبر', - 'اکتوبر', - 'نومبر', - 'دسمبر', -]; - -$weekdays = [ - 'اتوار', - 'پیر', - 'منگل', - 'بدھ', - 'جمعرات', - 'جمعہ', - 'ہفتہ', -]; - -/* - * Authors: - * - Sawood Alam - * - Mehshan - * - Philippe Vaucher - * - Tsutomu Kuroda - * - tjku - * - Zaid Akram - * - Max Melentiev - * - hafezdivandari - * - Hossein Jabbari - * - nimamo - */ -return [ - 'year' => 'ایک سال|:count سال', - 'month' => 'ایک ماہ|:count ماہ', - 'week' => ':count ہفتے', - 'day' => 'ایک دن|:count دن', - 'hour' => 'ایک گھنٹہ|:count گھنٹے', - 'minute' => 'ایک منٹ|:count منٹ', - 'second' => 'چند سیکنڈ|:count سیکنڈ', - 'ago' => ':time قبل', - 'from_now' => ':time بعد', - 'after' => ':time بعد', - 'before' => ':time پہلے', - 'diff_now' => 'اب', - 'diff_today' => 'آج', - 'diff_today_regexp' => 'آج(?:\\s+بوقت)?', - 'diff_yesterday' => 'گزشتہ کل', - 'diff_yesterday_regexp' => 'گذشتہ(?:\\s+روز)?(?:\\s+بوقت)?', - 'diff_tomorrow' => 'آئندہ کل', - 'diff_tomorrow_regexp' => 'کل(?:\\s+بوقت)?', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd، D MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[آج بوقت] LT', - 'nextDay' => '[کل بوقت] LT', - 'nextWeek' => 'dddd [بوقت] LT', - 'lastDay' => '[گذشتہ روز بوقت] LT', - 'lastWeek' => '[گذشتہ] dddd [بوقت] LT', - 'sameElse' => 'L', - ], - 'meridiem' => ['صبح', 'شام'], - 'months' => $months, - 'months_short' => $months, - 'weekdays' => $weekdays, - 'weekdays_short' => $weekdays, - 'weekdays_min' => $weekdays, - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => ['، ', ' اور '], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ur_IN.php b/vendor/nesbot/carbon/src/Carbon/Lang/ur_IN.php deleted file mode 100644 index f81c84d..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ur_IN.php +++ /dev/null @@ -1,26 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Red Hat, Pune bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/ur.php', [ - 'formats' => [ - 'L' => 'D/M/YY', - ], - 'months' => ['جنوری', 'فروری', 'مارچ', 'اپریل', 'مئی', 'جون', 'جولائی', 'اگست', 'ستمبر', 'اکتوبر', 'نومبر', 'دسمبر'], - 'months_short' => ['جنوری', 'فروری', 'مارچ', 'اپریل', 'مئی', 'جون', 'جولائی', 'اگست', 'ستمبر', 'اکتوبر', 'نومبر', 'دسمبر'], - 'weekdays' => ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'سنیچر'], - 'weekdays_short' => ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'سنیچر'], - 'weekdays_min' => ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'سنیچر'], - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ur_PK.php b/vendor/nesbot/carbon/src/Carbon/Lang/ur_PK.php deleted file mode 100644 index 8cd593d..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ur_PK.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/ur.php', [ - 'formats' => [ - 'L' => 'DD/MM/YYYY', - ], - 'months' => ['جنوری', 'فروری', 'مارچ', 'اپریل', 'مئی', 'جون', 'جولائی', 'اگست', 'ستمبر', 'اکتوبر', 'نومبر', 'دسمبر'], - 'months_short' => ['جنوری', 'فروری', 'مارچ', 'اپریل', 'مئی', 'جون', 'جولائی', 'اگست', 'ستمبر', 'اکتوبر', 'نومبر', 'دسمبر'], - 'weekdays' => ['اتوار', 'پير', 'منگل', 'بدھ', 'جمعرات', 'جمعه', 'هفته'], - 'weekdays_short' => ['اتوار', 'پير', 'منگل', 'بدھ', 'جمعرات', 'جمعه', 'هفته'], - 'weekdays_min' => ['اتوار', 'پير', 'منگل', 'بدھ', 'جمعرات', 'جمعه', 'هفته'], - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['ص', 'ش'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/uz.php b/vendor/nesbot/carbon/src/Carbon/Lang/uz.php deleted file mode 100644 index 61f3b64..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/uz.php +++ /dev/null @@ -1,85 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Dmitriy Shabanov - * - JD Isaacks - * - Inoyatulloh - * - Jamshid - * - aarkhipov - * - Philippe Vaucher - * - felixthemagnificent - * - Tsutomu Kuroda - * - tjku - * - Max Melentiev - * - Juanito Fatas - * - Alisher Ulugbekov - * - Ergashev Adizbek - */ -return [ - 'year' => ':count йил', - 'a_year' => '{1}бир йил|:count йил', - 'y' => ':count й', - 'month' => ':count ой', - 'a_month' => '{1}бир ой|:count ой', - 'm' => ':count о', - 'week' => ':count ҳафта', - 'a_week' => '{1}бир ҳафта|:count ҳафта', - 'w' => ':count ҳ', - 'day' => ':count кун', - 'a_day' => '{1}бир кун|:count кун', - 'd' => ':count к', - 'hour' => ':count соат', - 'a_hour' => '{1}бир соат|:count соат', - 'h' => ':count с', - 'minute' => ':count дақиқа', - 'a_minute' => '{1}бир дақиқа|:count дақиқа', - 'min' => ':count д', - 'second' => ':count сония', - 'a_second' => '{1}сония|:count сония', - 's' => ':count с', - 'ago' => ':time аввал', - 'from_now' => 'Якин :time ичида', - 'after' => ':timeдан кейин', - 'before' => ':time олдин', - 'diff_now' => 'ҳозир', - 'diff_today' => 'Бугун', - 'diff_today_regexp' => 'Бугун(?:\\s+соат)?', - 'diff_yesterday' => 'Кеча', - 'diff_yesterday_regexp' => 'Кеча(?:\\s+соат)?', - 'diff_tomorrow' => 'Эртага', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'D MMMM YYYY, dddd HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[Бугун соат] LT [да]', - 'nextDay' => '[Эртага] LT [да]', - 'nextWeek' => 'dddd [куни соат] LT [да]', - 'lastDay' => '[Кеча соат] LT [да]', - 'lastWeek' => '[Утган] dddd [куни соат] LT [да]', - 'sameElse' => 'L', - ], - 'months' => ['январ', 'феврал', 'март', 'апрел', 'май', 'июн', 'июл', 'август', 'сентябр', 'октябр', 'ноябр', 'декабр'], - 'months_short' => ['янв', 'фев', 'мар', 'апр', 'май', 'июн', 'июл', 'авг', 'сен', 'окт', 'ноя', 'дек'], - 'weekdays' => ['якшанба', 'душанба', 'сешанба', 'чоршанба', 'пайшанба', 'жума', 'шанба'], - 'weekdays_short' => ['якш', 'душ', 'сеш', 'чор', 'пай', 'жум', 'шан'], - 'weekdays_min' => ['як', 'ду', 'се', 'чо', 'па', 'жу', 'ша'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['эрталаб', 'кечаси'], - 'list' => [', ', ' ва '], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/uz_Arab.php b/vendor/nesbot/carbon/src/Carbon/Lang/uz_Arab.php deleted file mode 100644 index ffb5131..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/uz_Arab.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/fa.php', [ - 'weekdays' => ['یکشنبه', 'دوشنبه', 'سه‌شنبه', 'چهارشنبه', 'پنجشنبه', 'جمعه', 'شنبه'], - 'weekdays_short' => ['ی.', 'د.', 'س.', 'چ.', 'پ.', 'ج.', 'ش.'], - 'weekdays_min' => ['ی.', 'د.', 'س.', 'چ.', 'پ.', 'ج.', 'ش.'], - 'months' => ['جنوری', 'فبروری', 'مارچ', 'اپریل', 'می', 'جون', 'جولای', 'اگست', 'سپتمبر', 'اکتوبر', 'نومبر', 'دسمبر'], - 'months_short' => ['جنو', 'فبر', 'مار', 'اپر', 'می', 'جون', 'جول', 'اگس', 'سپت', 'اکت', 'نوم', 'دسم'], - 'first_day_of_week' => 6, - 'weekend' => [4, 5], - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'YYYY-MM-dd', - 'LL' => 'YYYY MMM D', - 'LLL' => 'YYYY MMMM D HH:mm', - 'LLLL' => 'YYYY MMMM D, dddd HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/uz_Cyrl.php b/vendor/nesbot/carbon/src/Carbon/Lang/uz_Cyrl.php deleted file mode 100644 index 89e9971..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/uz_Cyrl.php +++ /dev/null @@ -1,20 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/uz.php', [ - 'formats' => [ - 'L' => 'DD/MM/yy', - 'LL' => 'D MMM, YYYY', - 'LLL' => 'D MMMM, YYYY HH:mm', - 'LLLL' => 'dddd, DD MMMM, YYYY HH:mm', - ], - 'meridiem' => ['ТО', 'ТК'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/uz_Latn.php b/vendor/nesbot/carbon/src/Carbon/Lang/uz_Latn.php deleted file mode 100644 index ecceeaa..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/uz_Latn.php +++ /dev/null @@ -1,74 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Josh Soref - * - Rasulbek - * - Ilyosjon Kamoldinov (ilyosjon09) - */ -return [ - 'year' => ':count yil', - 'a_year' => '{1}bir yil|:count yil', - 'y' => ':count y', - 'month' => ':count oy', - 'a_month' => '{1}bir oy|:count oy', - 'm' => ':count o', - 'week' => ':count hafta', - 'a_week' => '{1}bir hafta|:count hafta', - 'w' => ':count h', - 'day' => ':count kun', - 'a_day' => '{1}bir kun|:count kun', - 'd' => ':count k', - 'hour' => ':count soat', - 'a_hour' => '{1}bir soat|:count soat', - 'h' => ':count soat', - 'minute' => ':count daqiqa', - 'a_minute' => '{1}bir daqiqa|:count daqiqa', - 'min' => ':count d', - 'second' => ':count soniya', - 'a_second' => '{1}soniya|:count soniya', - 's' => ':count son.', - 'ago' => ':time avval', - 'from_now' => 'Yaqin :time ichida', - 'after' => ':timedan keyin', - 'before' => ':time oldin', - 'diff_yesterday' => 'Kecha', - 'diff_yesterday_regexp' => 'Kecha(?:\\s+soat)?', - 'diff_today' => 'Bugun', - 'diff_today_regexp' => 'Bugun(?:\\s+soat)?', - 'diff_tomorrow' => 'Ertaga', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'D MMMM YYYY, dddd HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[Bugun soat] LT [da]', - 'nextDay' => '[Ertaga] LT [da]', - 'nextWeek' => 'dddd [kuni soat] LT [da]', - 'lastDay' => '[Kecha soat] LT [da]', - 'lastWeek' => '[O\'tgan] dddd [kuni soat] LT [da]', - 'sameElse' => 'L', - ], - 'months' => ['Yanvar', 'Fevral', 'Mart', 'Aprel', 'May', 'Iyun', 'Iyul', 'Avgust', 'Sentabr', 'Oktabr', 'Noyabr', 'Dekabr'], - 'months_short' => ['Yan', 'Fev', 'Mar', 'Apr', 'May', 'Iyun', 'Iyul', 'Avg', 'Sen', 'Okt', 'Noy', 'Dek'], - 'weekdays' => ['Yakshanba', 'Dushanba', 'Seshanba', 'Chorshanba', 'Payshanba', 'Juma', 'Shanba'], - 'weekdays_short' => ['Yak', 'Dush', 'Sesh', 'Chor', 'Pay', 'Jum', 'Shan'], - 'weekdays_min' => ['Ya', 'Du', 'Se', 'Cho', 'Pa', 'Ju', 'Sha'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'list' => [', ', ' va '], - 'meridiem' => ['TO', 'TK'], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/uz_UZ.php b/vendor/nesbot/carbon/src/Carbon/Lang/uz_UZ.php deleted file mode 100644 index d41bfee..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/uz_UZ.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Bobir Ismailov Bobir Ismailov, Pablo Saratxaga, Mashrab Kuvatov bobir_is@yahoo.com, pablo@mandrakesoft.com, kmashrab@uni-bremen.de - */ -return array_replace_recursive(require __DIR__.'/uz_Latn.php', [ - 'formats' => [ - 'L' => 'DD/MM/YY', - ], - 'months' => ['Yanvar', 'Fevral', 'Mart', 'Aprel', 'May', 'Iyun', 'Iyul', 'Avgust', 'Sentabr', 'Oktabr', 'Noyabr', 'Dekabr'], - 'months_short' => ['Yan', 'Fev', 'Mar', 'Apr', 'May', 'Iyn', 'Iyl', 'Avg', 'Sen', 'Okt', 'Noy', 'Dek'], - 'weekdays' => ['Yakshanba', 'Dushanba', 'Seshanba', 'Chorshanba', 'Payshanba', 'Juma', 'Shanba'], - 'weekdays_short' => ['Yak', 'Du', 'Se', 'Cho', 'Pay', 'Ju', 'Sha'], - 'weekdays_min' => ['Yak', 'Du', 'Se', 'Cho', 'Pay', 'Ju', 'Sha'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/uz_UZ@cyrillic.php b/vendor/nesbot/carbon/src/Carbon/Lang/uz_UZ@cyrillic.php deleted file mode 100644 index 2fa967c..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/uz_UZ@cyrillic.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Mashrab Kuvatov Mashrab Kuvatov, Pablo Saratxaga kmashrab@uni-bremen.de, pablo@mandrakesoft.com - */ -return array_replace_recursive(require __DIR__.'/uz.php', [ - 'formats' => [ - 'L' => 'DD/MM/YY', - ], - 'months' => ['Январ', 'Феврал', 'Март', 'Апрел', 'Май', 'Июн', 'Июл', 'Август', 'Сентябр', 'Октябр', 'Ноябр', 'Декабр'], - 'months_short' => ['Янв', 'Фев', 'Мар', 'Апр', 'Май', 'Июн', 'Июл', 'Авг', 'Сен', 'Окт', 'Ноя', 'Дек'], - 'weekdays' => ['Якшанба', 'Душанба', 'Сешанба', 'Чоршанба', 'Пайшанба', 'Жума', 'Шанба'], - 'weekdays_short' => ['Якш', 'Душ', 'Сеш', 'Чор', 'Пай', 'Жум', 'Шан'], - 'weekdays_min' => ['Якш', 'Душ', 'Сеш', 'Чор', 'Пай', 'Жум', 'Шан'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/vai.php b/vendor/nesbot/carbon/src/Carbon/Lang/vai.php deleted file mode 100644 index 3c378df..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/vai.php +++ /dev/null @@ -1,35 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'weekdays' => ['ꕞꕌꔵ', 'ꗳꗡꘉ', 'ꕚꕞꕚ', 'ꕉꕞꕒ', 'ꕉꔤꕆꕢ', 'ꕉꔤꕀꕮ', 'ꔻꔬꔳ'], - 'weekdays_short' => ['ꕞꕌꔵ', 'ꗳꗡꘉ', 'ꕚꕞꕚ', 'ꕉꕞꕒ', 'ꕉꔤꕆꕢ', 'ꕉꔤꕀꕮ', 'ꔻꔬꔳ'], - 'weekdays_min' => ['ꕞꕌꔵ', 'ꗳꗡꘉ', 'ꕚꕞꕚ', 'ꕉꕞꕒ', 'ꕉꔤꕆꕢ', 'ꕉꔤꕀꕮ', 'ꔻꔬꔳ'], - 'months' => ['ꖨꖕ ꕪꕴ ꔞꔀꕮꕊ', 'ꕒꕡꖝꖕ', 'ꕾꖺ', 'ꖢꖕ', 'ꖑꕱ', 'ꖱꘋ', 'ꖱꕞꔤ', 'ꗛꔕ', 'ꕢꕌ', 'ꕭꖃ', 'ꔞꘋꕔꕿ ꕸꖃꗏ', 'ꖨꖕ ꕪꕴ ꗏꖺꕮꕊ'], - 'months_short' => ['ꖨꖕꔞ', 'ꕒꕡ', 'ꕾꖺ', 'ꖢꖕ', 'ꖑꕱ', 'ꖱꘋ', 'ꖱꕞ', 'ꗛꔕ', 'ꕢꕌ', 'ꕭꖃ', 'ꔞꘋ', 'ꖨꖕꗏ'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'h:mm a', - 'LTS' => 'h:mm:ss a', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY h:mm a', - 'LLLL' => 'dddd, D MMMM YYYY h:mm a', - ], - - 'year' => ':count ꕀ', // less reliable - 'y' => ':count ꕀ', // less reliable - 'a_year' => ':count ꕀ', // less reliable - - 'second' => ':count ꗱꕞꕯꕊ', // less reliable - 's' => ':count ꗱꕞꕯꕊ', // less reliable - 'a_second' => ':count ꗱꕞꕯꕊ', // less reliable -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/vai_Latn.php b/vendor/nesbot/carbon/src/Carbon/Lang/vai_Latn.php deleted file mode 100644 index 51e83cc..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/vai_Latn.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'weekdays' => ['lahadi', 'tɛɛnɛɛ', 'talata', 'alaba', 'aimisa', 'aijima', 'siɓiti'], - 'weekdays_short' => ['lahadi', 'tɛɛnɛɛ', 'talata', 'alaba', 'aimisa', 'aijima', 'siɓiti'], - 'weekdays_min' => ['lahadi', 'tɛɛnɛɛ', 'talata', 'alaba', 'aimisa', 'aijima', 'siɓiti'], - 'months' => ['luukao kemã', 'ɓandaɓu', 'vɔɔ', 'fulu', 'goo', '6', '7', 'kɔnde', 'saah', 'galo', 'kenpkato ɓololɔ', 'luukao lɔma'], - 'months_short' => ['luukao kemã', 'ɓandaɓu', 'vɔɔ', 'fulu', 'goo', '6', '7', 'kɔnde', 'saah', 'galo', 'kenpkato ɓololɔ', 'luukao lɔma'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'h:mm a', - 'LTS' => 'h:mm:ss a', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY h:mm a', - 'LLLL' => 'dddd, D MMMM YYYY h:mm a', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/vai_Vaii.php b/vendor/nesbot/carbon/src/Carbon/Lang/vai_Vaii.php deleted file mode 100644 index b4bb533..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/vai_Vaii.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/vai.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ve.php b/vendor/nesbot/carbon/src/Carbon/Lang/ve.php deleted file mode 100644 index 7f10aeb..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ve.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/ve_ZA.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/ve_ZA.php b/vendor/nesbot/carbon/src/Carbon/Lang/ve_ZA.php deleted file mode 100644 index d401d9f..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/ve_ZA.php +++ /dev/null @@ -1,50 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Zuza Software Foundation (Translate.org.za) Dwayne Bailey dwayne@translate.org.za - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YYYY', - ], - 'months' => ['Phando', 'Luhuhi', 'Ṱhafamuhwe', 'Lambamai', 'Shundunthule', 'Fulwi', 'Fulwana', 'Ṱhangule', 'Khubvumedzi', 'Tshimedzi', 'Ḽara', 'Nyendavhusiku'], - 'months_short' => ['Pha', 'Luh', 'Fam', 'Lam', 'Shu', 'Lwi', 'Lwa', 'Ngu', 'Khu', 'Tsh', 'Ḽar', 'Nye'], - 'weekdays' => ['Swondaha', 'Musumbuluwo', 'Ḽavhuvhili', 'Ḽavhuraru', 'Ḽavhuṋa', 'Ḽavhuṱanu', 'Mugivhela'], - 'weekdays_short' => ['Swo', 'Mus', 'Vhi', 'Rar', 'ṋa', 'Ṱan', 'Mug'], - 'weekdays_min' => ['Swo', 'Mus', 'Vhi', 'Rar', 'ṋa', 'Ṱan', 'Mug'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - - // Too unreliable - /* - 'day' => ':count vhege', // less reliable - 'd' => ':count vhege', // less reliable - 'a_day' => ':count vhege', // less reliable - - 'hour' => ':count watshi', // less reliable - 'h' => ':count watshi', // less reliable - 'a_hour' => ':count watshi', // less reliable - - 'minute' => ':count watshi', // less reliable - 'min' => ':count watshi', // less reliable - 'a_minute' => ':count watshi', // less reliable - - 'second' => ':count Mu', // less reliable - 's' => ':count Mu', // less reliable - 'a_second' => ':count Mu', // less reliable - - 'week' => ':count vhege', - 'w' => ':count vhege', - 'a_week' => ':count vhege', - */ -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/vi.php b/vendor/nesbot/carbon/src/Carbon/Lang/vi.php deleted file mode 100644 index 73e2852..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/vi.php +++ /dev/null @@ -1,76 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - François B - * - Andre Polykanine A.K.A. Menelion Elensúlë - * - JD Isaacks - */ -return [ - 'year' => ':count năm', - 'a_year' => '{1}một năm|]1, Inf[:count năm', - 'y' => ':count năm', - 'month' => ':count tháng', - 'a_month' => '{1}một tháng|]1, Inf[:count tháng', - 'm' => ':count tháng', - 'week' => ':count tuần', - 'a_week' => '{1}một tuần|]1, Inf[:count tuần', - 'w' => ':count tuần', - 'day' => ':count ngày', - 'a_day' => '{1}một ngày|]1, Inf[:count ngày', - 'd' => ':count ngày', - 'hour' => ':count giờ', - 'a_hour' => '{1}một giờ|]1, Inf[:count giờ', - 'h' => ':count giờ', - 'minute' => ':count phút', - 'a_minute' => '{1}một phút|]1, Inf[:count phút', - 'min' => ':count phút', - 'second' => ':count giây', - 'a_second' => '{1}vài giây|]1, Inf[:count giây', - 's' => ':count giây', - 'ago' => ':time trước', - 'from_now' => ':time tới', - 'after' => ':time sau', - 'before' => ':time trước', - 'diff_now' => 'bây giờ', - 'diff_today' => 'Hôm', - 'diff_today_regexp' => 'Hôm(?:\\s+nay)?(?:\\s+lúc)?', - 'diff_yesterday' => 'Hôm qua', - 'diff_yesterday_regexp' => 'Hôm(?:\\s+qua)?(?:\\s+lúc)?', - 'diff_tomorrow' => 'Ngày mai', - 'diff_tomorrow_regexp' => 'Ngày(?:\\s+mai)?(?:\\s+lúc)?', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM [năm] YYYY', - 'LLL' => 'D MMMM [năm] YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM [năm] YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[Hôm nay lúc] LT', - 'nextDay' => '[Ngày mai lúc] LT', - 'nextWeek' => 'dddd [tuần tới lúc] LT', - 'lastDay' => '[Hôm qua lúc] LT', - 'lastWeek' => 'dddd [tuần trước lúc] LT', - 'sameElse' => 'L', - ], - 'meridiem' => ['SA', 'CH'], - 'months' => ['tháng 1', 'tháng 2', 'tháng 3', 'tháng 4', 'tháng 5', 'tháng 6', 'tháng 7', 'tháng 8', 'tháng 9', 'tháng 10', 'tháng 11', 'tháng 12'], - 'months_short' => ['Th01', 'Th02', 'Th03', 'Th04', 'Th05', 'Th06', 'Th07', 'Th08', 'Th09', 'Th10', 'Th11', 'Th12'], - 'weekdays' => ['chủ nhật', 'thứ hai', 'thứ ba', 'thứ tư', 'thứ năm', 'thứ sáu', 'thứ bảy'], - 'weekdays_short' => ['CN', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7'], - 'weekdays_min' => ['CN', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => [', ', ' và '], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/vi_VN.php b/vendor/nesbot/carbon/src/Carbon/Lang/vi_VN.php deleted file mode 100644 index 18d8987..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/vi_VN.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/vi.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/vo.php b/vendor/nesbot/carbon/src/Carbon/Lang/vo.php deleted file mode 100644 index e273033..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/vo.php +++ /dev/null @@ -1,52 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'months' => ['M01', 'M02', 'M03', 'M04', 'M05', 'M06', 'M07', 'M08', 'M09', 'M10', 'M11', 'M12'], - 'months_short' => ['M01', 'M02', 'M03', 'M04', 'M05', 'M06', 'M07', 'M08', 'M09', 'M10', 'M11', 'M12'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'YYYY-MM-dd', - 'LL' => 'YYYY MMM D', - 'LLL' => 'YYYY MMMM D HH:mm', - 'LLLL' => 'YYYY MMMM D, dddd HH:mm', - ], - - 'year' => ':count yel', - 'y' => ':count yel', - 'a_year' => ':count yel', - - 'month' => ':count mul', - 'm' => ':count mul', - 'a_month' => ':count mul', - - 'week' => ':count vig', - 'w' => ':count vig', - 'a_week' => ':count vig', - - 'day' => ':count del', - 'd' => ':count del', - 'a_day' => ':count del', - - 'hour' => ':count düp', - 'h' => ':count düp', - 'a_hour' => ':count düp', - - 'minute' => ':count minut', - 'min' => ':count minut', - 'a_minute' => ':count minut', - - 'second' => ':count sekun', - 's' => ':count sekun', - 'a_second' => ':count sekun', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/vun.php b/vendor/nesbot/carbon/src/Carbon/Lang/vun.php deleted file mode 100644 index ed92e8e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/vun.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'meridiem' => ['utuko', 'kyiukonyi'], - 'weekdays' => ['Jumapilyi', 'Jumatatuu', 'Jumanne', 'Jumatanu', 'Alhamisi', 'Ijumaa', 'Jumamosi'], - 'weekdays_short' => ['Jpi', 'Jtt', 'Jnn', 'Jtn', 'Alh', 'Iju', 'Jmo'], - 'weekdays_min' => ['Jpi', 'Jtt', 'Jnn', 'Jtn', 'Alh', 'Iju', 'Jmo'], - 'months' => ['Januari', 'Februari', 'Machi', 'Aprilyi', 'Mei', 'Junyi', 'Julyai', 'Agusti', 'Septemba', 'Oktoba', 'Novemba', 'Desemba'], - 'months_short' => ['Jan', 'Feb', 'Mac', 'Apr', 'Mei', 'Jun', 'Jul', 'Ago', 'Sep', 'Okt', 'Nov', 'Des'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/wa.php b/vendor/nesbot/carbon/src/Carbon/Lang/wa.php deleted file mode 100644 index f6dc4cc..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/wa.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/wa_BE.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/wa_BE.php b/vendor/nesbot/carbon/src/Carbon/Lang/wa_BE.php deleted file mode 100644 index a76d80d..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/wa_BE.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Djan SACRE Pablo Saratxaga pablo@mandrakesoft.com - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YYYY', - ], - 'months' => ['di djanvî', 'di fevrî', 'di måss', 'd’ avri', 'di may', 'di djun', 'di djulete', 'd’ awousse', 'di setimbe', 'd’ octôbe', 'di nôvimbe', 'di decimbe'], - 'months_short' => ['dja', 'fev', 'mås', 'avr', 'may', 'djn', 'djl', 'awo', 'set', 'oct', 'nôv', 'dec'], - 'weekdays' => ['dimegne', 'londi', 'mårdi', 'mierkidi', 'djudi', 'vénrdi', 'semdi'], - 'weekdays_short' => ['dim', 'lon', 'mår', 'mie', 'dju', 'vén', 'sem'], - 'weekdays_min' => ['dim', 'lon', 'mår', 'mie', 'dju', 'vén', 'sem'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - - 'year' => ':count anêye', - 'y' => ':count anêye', - 'a_year' => ':count anêye', - - 'month' => ':count meûs', - 'm' => ':count meûs', - 'a_month' => ':count meûs', - - 'week' => ':count samwinne', - 'w' => ':count samwinne', - 'a_week' => ':count samwinne', - - 'day' => ':count djoû', - 'd' => ':count djoû', - 'a_day' => ':count djoû', - - 'hour' => ':count eure', - 'h' => ':count eure', - 'a_hour' => ':count eure', - - 'minute' => ':count munute', - 'min' => ':count munute', - 'a_minute' => ':count munute', - - 'second' => ':count Sigonde', - 's' => ':count Sigonde', - 'a_second' => ':count Sigonde', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/wae.php b/vendor/nesbot/carbon/src/Carbon/Lang/wae.php deleted file mode 100644 index bf57f23..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/wae.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/wae_CH.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/wae_CH.php b/vendor/nesbot/carbon/src/Carbon/Lang/wae_CH.php deleted file mode 100644 index 2af50b4..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/wae_CH.php +++ /dev/null @@ -1,31 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Walser Translation Team ml@translate-wae.ch - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'YYYY-MM-DD', - ], - 'months' => ['Jenner', 'Hornig', 'Märze', 'Abrille', 'Meije', 'Bráčet', 'Heiwet', 'Öigšte', 'Herbštmánet', 'Wímánet', 'Wintermánet', 'Chrištmánet'], - 'months_short' => ['Jen', 'Hor', 'Mär', 'Abr', 'Mei', 'Brá', 'Hei', 'Öig', 'Her', 'Wím', 'Win', 'Chr'], - 'weekdays' => ['Suntag', 'Mäntag', 'Zischtag', 'Mittwuch', 'Frontag', 'Fritag', 'Samschtag'], - 'weekdays_short' => ['Sun', 'Män', 'Zis', 'Mit', 'Fro', 'Fri', 'Sam'], - 'weekdays_min' => ['Sun', 'Män', 'Zis', 'Mit', 'Fro', 'Fri', 'Sam'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - - 'month' => ':count Maano', // less reliable - 'm' => ':count Maano', // less reliable - 'a_month' => ':count Maano', // less reliable -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/wal.php b/vendor/nesbot/carbon/src/Carbon/Lang/wal.php deleted file mode 100644 index e8ec40f..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/wal.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/wal_ET.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/wal_ET.php b/vendor/nesbot/carbon/src/Carbon/Lang/wal_ET.php deleted file mode 100644 index e862f2c..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/wal_ET.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Ge'ez Frontier Foundation locales@geez.org - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YYYY', - ], - 'months' => ['ጃንዩወሪ', 'ፌብሩወሪ', 'ማርች', 'ኤፕረል', 'ሜይ', 'ጁን', 'ጁላይ', 'ኦገስት', 'ሴፕቴምበር', 'ኦክተውበር', 'ኖቬምበር', 'ዲሴምበር'], - 'months_short' => ['ጃንዩ', 'ፌብሩ', 'ማርች', 'ኤፕረ', 'ሜይ ', 'ጁን ', 'ጁላይ', 'ኦገስ', 'ሴፕቴ', 'ኦክተ', 'ኖቬም', 'ዲሴም'], - 'weekdays' => ['ወጋ', 'ሳይኖ', 'ማቆሳኛ', 'አሩዋ', 'ሃሙሳ', 'አርባ', 'ቄራ'], - 'weekdays_short' => ['ወጋ ', 'ሳይኖ', 'ማቆሳ', 'አሩዋ', 'ሃሙሳ', 'አርባ', 'ቄራ '], - 'weekdays_min' => ['ወጋ ', 'ሳይኖ', 'ማቆሳ', 'አሩዋ', 'ሃሙሳ', 'አርባ', 'ቄራ '], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['ማለዶ', 'ቃማ'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/wo.php b/vendor/nesbot/carbon/src/Carbon/Lang/wo.php deleted file mode 100644 index 74b95df..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/wo.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/wo_SN.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/wo_SN.php b/vendor/nesbot/carbon/src/Carbon/Lang/wo_SN.php deleted file mode 100644 index f8a85b3..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/wo_SN.php +++ /dev/null @@ -1,39 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - The Debian Project Christian Perrier bubulle@debian.org - */ -return [ - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD.MM.YYYY', - 'LL' => 'MMMM DD, YYYY', - 'LLL' => 'DD MMM HH:mm', - 'LLLL' => 'MMMM DD, YYYY HH:mm', - ], - 'months' => ['sanwiy\'e', 'feebriy\'e', 'mars', 'awril', 'me', 'suwen', 'sulet', 'uut', 'septaambar', 'oktoobar', 'nowaambar', 'desaambar'], - 'months_short' => ['san', 'fee', 'mar', 'awr', 'me ', 'suw', 'sul', 'uut', 'sep', 'okt', 'now', 'des'], - 'weekdays' => ['dib\'eer', 'altine', 'talaata', 'allarba', 'alxames', 'ajjuma', 'gaawu'], - 'weekdays_short' => ['dib', 'alt', 'tal', 'all', 'alx', 'ajj', 'gaa'], - 'weekdays_min' => ['dib', 'alt', 'tal', 'all', 'alx', 'ajj', 'gaa'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'year' => ':count at', - 'month' => ':count wèr', - 'week' => ':count ayubés', - 'day' => ':count bés', - 'hour' => ':count waxtu', - 'minute' => ':count simili', - 'second' => ':count saa', -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/xh.php b/vendor/nesbot/carbon/src/Carbon/Lang/xh.php deleted file mode 100644 index e88c78d..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/xh.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/xh_ZA.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/xh_ZA.php b/vendor/nesbot/carbon/src/Carbon/Lang/xh_ZA.php deleted file mode 100644 index 009153c..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/xh_ZA.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Zuza Software Foundation (Translate.org.za) Dwayne Bailey dwayne@translate.org.za - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YYYY', - ], - 'months' => ['eyoMqungu', 'eyoMdumba', 'eyoKwindla', 'uTshazimpuzi', 'uCanzibe', 'eyeSilimela', 'eyeKhala', 'eyeThupa', 'eyoMsintsi', 'eyeDwarha', 'eyeNkanga', 'eyoMnga'], - 'months_short' => ['Mqu', 'Mdu', 'Kwi', 'Tsh', 'Can', 'Sil', 'Kha', 'Thu', 'Msi', 'Dwa', 'Nka', 'Mng'], - 'weekdays' => ['iCawa', 'uMvulo', 'lwesiBini', 'lwesiThathu', 'ulweSine', 'lwesiHlanu', 'uMgqibelo'], - 'weekdays_short' => ['Caw', 'Mvu', 'Bin', 'Tha', 'Sin', 'Hla', 'Mgq'], - 'weekdays_min' => ['Caw', 'Mvu', 'Bin', 'Tha', 'Sin', 'Hla', 'Mgq'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - - 'year' => ':count ihlobo', // less reliable - 'y' => ':count ihlobo', // less reliable - 'a_year' => ':count ihlobo', // less reliable - - 'hour' => ':count iwotshi', // less reliable - 'h' => ':count iwotshi', // less reliable - 'a_hour' => ':count iwotshi', // less reliable - - 'minute' => ':count ingqalelo', // less reliable - 'min' => ':count ingqalelo', // less reliable - 'a_minute' => ':count ingqalelo', // less reliable - - 'second' => ':count nceda', // less reliable - 's' => ':count nceda', // less reliable - 'a_second' => ':count nceda', // less reliable - - 'month' => ':count inyanga', - 'm' => ':count inyanga', - 'a_month' => ':count inyanga', - - 'week' => ':count veki', - 'w' => ':count veki', - 'a_week' => ':count veki', - - 'day' => ':count imini', - 'd' => ':count imini', - 'a_day' => ':count imini', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/xog.php b/vendor/nesbot/carbon/src/Carbon/Lang/xog.php deleted file mode 100644 index eb55b4a..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/xog.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'meridiem' => ['Munkyo', 'Eigulo'], - 'weekdays' => ['Sabiiti', 'Balaza', 'Owokubili', 'Owokusatu', 'Olokuna', 'Olokutaanu', 'Olomukaaga'], - 'weekdays_short' => ['Sabi', 'Bala', 'Kubi', 'Kusa', 'Kuna', 'Kuta', 'Muka'], - 'weekdays_min' => ['Sabi', 'Bala', 'Kubi', 'Kusa', 'Kuna', 'Kuta', 'Muka'], - 'months' => ['Janwaliyo', 'Febwaliyo', 'Marisi', 'Apuli', 'Maayi', 'Juuni', 'Julaayi', 'Agusito', 'Sebuttemba', 'Okitobba', 'Novemba', 'Desemba'], - 'months_short' => ['Jan', 'Feb', 'Mar', 'Apu', 'Maa', 'Juu', 'Jul', 'Agu', 'Seb', 'Oki', 'Nov', 'Des'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/yav.php b/vendor/nesbot/carbon/src/Carbon/Lang/yav.php deleted file mode 100644 index 225a20d..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/yav.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/en.php', [ - 'meridiem' => ['kiɛmɛ́ɛm', 'kisɛ́ndɛ'], - 'weekdays' => ['sɔ́ndiɛ', 'móndie', 'muányáŋmóndie', 'metúkpíápɛ', 'kúpélimetúkpiapɛ', 'feléte', 'séselé'], - 'weekdays_short' => ['sd', 'md', 'mw', 'et', 'kl', 'fl', 'ss'], - 'weekdays_min' => ['sd', 'md', 'mw', 'et', 'kl', 'fl', 'ss'], - 'months' => ['pikítíkítie, oólí ú kutúan', 'siɛyɛ́, oóli ú kándíɛ', 'ɔnsúmbɔl, oóli ú kátátúɛ', 'mesiŋ, oóli ú kénie', 'ensil, oóli ú kátánuɛ', 'ɔsɔn', 'efute', 'pisuyú', 'imɛŋ i puɔs', 'imɛŋ i putúk,oóli ú kátíɛ', 'makandikɛ', 'pilɔndɔ́'], - 'months_short' => ['o.1', 'o.2', 'o.3', 'o.4', 'o.5', 'o.6', 'o.7', 'o.8', 'o.9', 'o.10', 'o.11', 'o.12'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'D/M/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/yi.php b/vendor/nesbot/carbon/src/Carbon/Lang/yi.php deleted file mode 100644 index 8f32022..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/yi.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/yi_US.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/yi_US.php b/vendor/nesbot/carbon/src/Carbon/Lang/yi_US.php deleted file mode 100644 index f2dec33..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/yi_US.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - http://www.uyip.org/ Pablo Saratxaga pablo@mandrakesoft.com - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YY', - ], - 'months' => ['יאַנואַר', 'פֿעברואַר', 'מערץ', 'אַפּריל', 'מיי', 'יוני', 'יולי', 'אויגוסט', 'סעפּטעמבער', 'אקטאבער', 'נאוועמבער', 'דעצעמבער'], - 'months_short' => ['יאַנ', 'פֿעב', 'מאַר', 'אַפּר', 'מײַ ', 'יונ', 'יול', 'אױג', 'סעפּ', 'אָקט', 'נאָװ', 'דעצ'], - 'weekdays' => ['זונטיק', 'מאָנטיק', 'דינסטיק', 'מיטװאָך', 'דאָנערשטיק', 'פֿרײַטיק', 'שבת'], - 'weekdays_short' => ['זונ\'', 'מאָנ\'', 'דינ\'', 'מיט\'', 'דאָנ\'', 'פֿרײַ\'', 'שבת'], - 'weekdays_min' => ['זונ\'', 'מאָנ\'', 'דינ\'', 'מיט\'', 'דאָנ\'', 'פֿרײַ\'', 'שבת'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - - 'year' => ':count יאר', - 'y' => ':count יאר', - 'a_year' => ':count יאר', - - 'month' => ':count חודש', - 'm' => ':count חודש', - 'a_month' => ':count חודש', - - 'week' => ':count וואָך', - 'w' => ':count וואָך', - 'a_week' => ':count וואָך', - - 'day' => ':count טאָג', - 'd' => ':count טאָג', - 'a_day' => ':count טאָג', - - 'hour' => ':count שעה', - 'h' => ':count שעה', - 'a_hour' => ':count שעה', - - 'minute' => ':count מינוט', - 'min' => ':count מינוט', - 'a_minute' => ':count מינוט', - - 'second' => ':count סעקונדע', - 's' => ':count סעקונדע', - 'a_second' => ':count סעקונדע', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/yo.php b/vendor/nesbot/carbon/src/Carbon/Lang/yo.php deleted file mode 100644 index 0a82981..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/yo.php +++ /dev/null @@ -1,65 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - François B - * - Atolagbe Abisoye - */ -return [ - 'year' => 'ọdún :count', - 'a_year' => '{1}ọdún kan|ọdún :count', - 'month' => 'osù :count', - 'a_month' => '{1}osù kan|osù :count', - 'week' => 'ọsẹ :count', - 'a_week' => '{1}ọsẹ kan|ọsẹ :count', - 'day' => 'ọjọ́ :count', - 'a_day' => '{1}ọjọ́ kan|ọjọ́ :count', - 'hour' => 'wákati :count', - 'a_hour' => '{1}wákati kan|wákati :count', - 'minute' => 'ìsẹjú :count', - 'a_minute' => '{1}ìsẹjú kan|ìsẹjú :count', - 'second' => 'iaayá :count', - 'a_second' => '{1}ìsẹjú aayá die|aayá :count', - 'ago' => ':time kọjá', - 'from_now' => 'ní :time', - 'diff_yesterday' => 'Àna', - 'diff_yesterday_regexp' => 'Àna(?:\\s+ni)?', - 'diff_today' => 'Ònì', - 'diff_today_regexp' => 'Ònì(?:\\s+ni)?', - 'diff_tomorrow' => 'Ọ̀la', - 'diff_tomorrow_regexp' => 'Ọ̀la(?:\\s+ni)?', - 'formats' => [ - 'LT' => 'h:mm A', - 'LTS' => 'h:mm:ss A', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY h:mm A', - 'LLLL' => 'dddd, D MMMM YYYY h:mm A', - ], - 'calendar' => [ - 'sameDay' => '[Ònì ni] LT', - 'nextDay' => '[Ọ̀la ni] LT', - 'nextWeek' => 'dddd [Ọsẹ̀ tón\'bọ] [ni] LT', - 'lastDay' => '[Àna ni] LT', - 'lastWeek' => 'dddd [Ọsẹ̀ tólọ́] [ni] LT', - 'sameElse' => 'L', - ], - 'ordinal' => 'ọjọ́ :number', - 'months' => ['Sẹ́rẹ́', 'Èrèlè', 'Ẹrẹ̀nà', 'Ìgbé', 'Èbibi', 'Òkùdu', 'Agẹmo', 'Ògún', 'Owewe', 'Ọ̀wàrà', 'Bélú', 'Ọ̀pẹ̀̀'], - 'months_short' => ['Sẹ́r', 'Èrl', 'Ẹrn', 'Ìgb', 'Èbi', 'Òkù', 'Agẹ', 'Ògú', 'Owe', 'Ọ̀wà', 'Bél', 'Ọ̀pẹ̀̀'], - 'weekdays' => ['Àìkú', 'Ajé', 'Ìsẹ́gun', 'Ọjọ́rú', 'Ọjọ́bọ', 'Ẹtì', 'Àbámẹ́ta'], - 'weekdays_short' => ['Àìk', 'Ajé', 'Ìsẹ́', 'Ọjr', 'Ọjb', 'Ẹtì', 'Àbá'], - 'weekdays_min' => ['Àì', 'Aj', 'Ìs', 'Ọr', 'Ọb', 'Ẹt', 'Àb'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'meridiem' => ['Àárọ̀', 'Ọ̀sán'], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/yo_BJ.php b/vendor/nesbot/carbon/src/Carbon/Lang/yo_BJ.php deleted file mode 100644 index 12b9e81..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/yo_BJ.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return array_replace_recursive(require __DIR__.'/yo.php', [ - 'meridiem' => ['Àárɔ̀', 'Ɔ̀sán'], - 'weekdays' => ['Ɔjɔ́ Àìkú', 'Ɔjɔ́ Ajé', 'Ɔjɔ́ Ìsɛ́gun', 'Ɔjɔ́rú', 'Ɔjɔ́bɔ', 'Ɔjɔ́ Ɛtì', 'Ɔjɔ́ Àbámɛ́ta'], - 'weekdays_short' => ['Àìkú', 'Ajé', 'Ìsɛ́gun', 'Ɔjɔ́rú', 'Ɔjɔ́bɔ', 'Ɛtì', 'Àbámɛ́ta'], - 'weekdays_min' => ['Àìkú', 'Ajé', 'Ìsɛ́gun', 'Ɔjɔ́rú', 'Ɔjɔ́bɔ', 'Ɛtì', 'Àbámɛ́ta'], - 'months' => ['Oshù Shɛ́rɛ́', 'Oshù Èrèlè', 'Oshù Ɛrɛ̀nà', 'Oshù Ìgbé', 'Oshù Ɛ̀bibi', 'Oshù Òkúdu', 'Oshù Agɛmɔ', 'Oshù Ògún', 'Oshù Owewe', 'Oshù Ɔ̀wàrà', 'Oshù Bélú', 'Oshù Ɔ̀pɛ̀'], - 'months_short' => ['Shɛ́rɛ́', 'Èrèlè', 'Ɛrɛ̀nà', 'Ìgbé', 'Ɛ̀bibi', 'Òkúdu', 'Agɛmɔ', 'Ògún', 'Owewe', 'Ɔ̀wàrà', 'Bélú', 'Ɔ̀pɛ̀'], - 'first_day_of_week' => 1, - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd, D MMMM YYYY HH:mm', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/yo_NG.php b/vendor/nesbot/carbon/src/Carbon/Lang/yo_NG.php deleted file mode 100644 index 6860bc1..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/yo_NG.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/yo.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/yue.php b/vendor/nesbot/carbon/src/Carbon/Lang/yue.php deleted file mode 100644 index ce233a4..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/yue.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/yue_HK.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/yue_HK.php b/vendor/nesbot/carbon/src/Carbon/Lang/yue_HK.php deleted file mode 100644 index 4e7d5c3..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/yue_HK.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/zh_HK.php', [ - 'formats' => [ - 'L' => 'YYYY年MM月DD日 dddd', - ], - 'months' => ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'], - 'months_short' => ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'], - 'weekdays' => ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'], - 'weekdays_short' => ['日', '一', '二', '三', '四', '五', '六'], - 'weekdays_min' => ['日', '一', '二', '三', '四', '五', '六'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - 'meridiem' => ['上午', '下午'], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/yue_Hans.php b/vendor/nesbot/carbon/src/Carbon/Lang/yue_Hans.php deleted file mode 100644 index db913ca..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/yue_Hans.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/zh_Hans.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/yue_Hant.php b/vendor/nesbot/carbon/src/Carbon/Lang/yue_Hant.php deleted file mode 100644 index e2526f1..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/yue_Hant.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/zh_Hant.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/yuw.php b/vendor/nesbot/carbon/src/Carbon/Lang/yuw.php deleted file mode 100644 index 8efdc93..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/yuw.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/yuw_PG.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/yuw_PG.php b/vendor/nesbot/carbon/src/Carbon/Lang/yuw_PG.php deleted file mode 100644 index 8a1ccf9..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/yuw_PG.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Information from native speakers Hannah Sarvasy nungon.localization@gmail.com - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YY', - ], - 'months' => ['jenuari', 'febuari', 'mas', 'epril', 'mei', 'jun', 'julai', 'ögus', 'septemba', 'öktoba', 'nöwemba', 'diksemba'], - 'months_short' => ['jen', 'feb', 'mas', 'epr', 'mei', 'jun', 'jul', 'ögu', 'sep', 'ökt', 'nöw', 'dis'], - 'weekdays' => ['sönda', 'mönda', 'sinda', 'mitiwö', 'sogipbono', 'nenggo', 'söndanggie'], - 'weekdays_short' => ['sön', 'mön', 'sin', 'mit', 'soi', 'nen', 'sab'], - 'weekdays_min' => ['sön', 'mön', 'sin', 'mit', 'soi', 'nen', 'sab'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/zgh.php b/vendor/nesbot/carbon/src/Carbon/Lang/zgh.php deleted file mode 100644 index 4d2c3b3..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/zgh.php +++ /dev/null @@ -1,80 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - BAKTETE Miloud - */ -return [ - 'year' => ':count ⵓⵙⴳⴳⵯⴰⵙ|:count ⵉⵙⴳⴳⵓⵙⴰ', - 'a_year' => 'ⵓⵙⴳⴳⵯⴰⵙ|:count ⵉⵙⴳⴳⵓⵙⴰ', - 'y' => ':count ⵓⵙⴳⴳⵯⴰⵙ|:count ⵉⵙⴳⴳⵓⵙⴰ', - 'month' => ':count ⵡⴰⵢⵢⵓⵔ|:count ⴰⵢⵢⵓⵔⵏ', - 'a_month' => 'ⵉⴷⵊ ⵡⴰⵢⵢⵓⵔ|:count ⴰⵢⵢⵓⵔⵏ', - 'm' => ':count ⴰⵢⵢⵓⵔⵏ', - 'week' => ':count ⵉⵎⴰⵍⴰⵙⵙ|:count ⵉⵎⴰⵍⴰⵙⵙⵏ', - 'a_week' => 'ⵉⵛⵜ ⵉⵎⴰⵍⴰⵙⵙ|:count ⵉⵎⴰⵍⴰⵙⵙⵏ', - 'w' => ':count ⵉⵎⴰⵍⴰⵙⵙ.', - 'day' => ':count ⵡⴰⵙⵙ|:count ⵓⵙⵙⴰⵏ', - 'a_day' => 'ⵉⴷⵊ ⵡⴰⵙⵙ|:count ⵓⵙⵙⴰⵏ', - 'd' => ':count ⵓ', - 'hour' => ':count ⵜⵙⵔⴰⴳⵜ|:count ⵜⵉⵙⵔⴰⴳⵉⵏ', - 'a_hour' => 'ⵉⵛⵜ ⵜⵙⵔⴰⴳⵜ|:count ⵜⵉⵙⵔⴰⴳⵉⵏ', - 'h' => ':count ⵜ', - 'minute' => ':count ⵜⵓⵙⴷⵉⴷⵜ|:count ⵜⵓⵙⴷⵉⴷⵉⵏ', - 'a_minute' => 'ⵉⵛⵜ ⵜⵓⵙⴷⵉⴷⵜ|:count ⵜⵓⵙⴷⵉⴷⵉⵏ', - 'min' => ':count ⵜⵓⵙ', - 'second' => ':count ⵜⵙⵉⵏⵜ|:count ⵜⵉⵙⵉⵏⴰ', - 'a_second' => 'ⴽⵔⴰ ⵜⵉⵙⵉⵏⴰ|:count ⵜⵉⵙⵉⵏⴰ', - 's' => ':count ⵜ', - 'ago' => 'ⵣⴳ :time', - 'from_now' => 'ⴷⴳ :time', - 'after' => ':time ⴰⵡⴰⵔ', - 'before' => ':time ⴷⴰⵜ', - 'diff_now' => 'ⴰⴷⵡⴰⵍⵉ', - 'diff_today' => 'ⴰⵙⵙ', - 'diff_today_regexp' => 'ⴰⵙⵙ(?:\\s+ⴰ/ⴰⴷ)?(?:\\s+ⴳ)?', - 'diff_yesterday' => 'ⴰⵙⵙⵏⵏⴰⵟ', - 'diff_yesterday_regexp' => 'ⴰⵙⵙⵏⵏⴰⵟ(?:\\s+ⴳ)?', - 'diff_tomorrow' => 'ⴰⵙⴽⴽⴰ', - 'diff_tomorrow_regexp' => 'ⴰⵙⴽⴽⴰ(?:\\s+ⴳ)?', - 'diff_before_yesterday' => 'ⴼⵔ ⵉⴹⵏⵏⴰⵟ', - 'diff_after_tomorrow' => 'ⵏⴰⴼ ⵓⵙⴽⴽⴰ', - 'period_recurrences' => ':count ⵜⵉⴽⴽⴰⵍ', - 'period_interval' => 'ⴽⵓ :interval', - 'period_start_date' => 'ⴳ :date', - 'period_end_date' => 'ⵉ :date', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'DD/MM/YYYY', - 'LL' => 'D MMMM YYYY', - 'LLL' => 'D MMMM YYYY HH:mm', - 'LLLL' => 'dddd D MMMM YYYY HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[ⴰⵙⵙ ⴰ/ⴰⴷ ⴳ] LT', - 'nextDay' => '[ⴰⵙⴽⴽⴰ ⴳ] LT', - 'nextWeek' => 'dddd [ⴳ] LT', - 'lastDay' => '[ⴰⵙⵙⵏⵏⴰⵟ ⴳ] LT', - 'lastWeek' => 'dddd [ⴰⵎⴳⴳⴰⵔⵓ ⴳ] LT', - 'sameElse' => 'L', - ], - 'meridiem' => ['ⵜⵉⴼⴰⵡⵜ', 'ⵜⴰⴷⴳⴳⵯⴰⵜ'], - 'months' => ['ⵉⵏⵏⴰⵢⵔ', 'ⴱⵕⴰⵢⵕ', 'ⵎⴰⵕⵚ', 'ⵉⴱⵔⵉⵔ', 'ⵎⴰⵢⵢⵓ', 'ⵢⵓⵏⵢⵓ', 'ⵢⵓⵍⵢⵓⵣ', 'ⵖⵓⵛⵜ', 'ⵛⵓⵜⴰⵏⴱⵉⵔ', 'ⴽⵟⵓⴱⵕ', 'ⵏⵓⵡⴰⵏⴱⵉⵔ', 'ⴷⵓⵊⴰⵏⴱⵉⵔ'], - 'months_short' => ['ⵉⵏⵏ', 'ⴱⵕⴰ', 'ⵎⴰⵕ', 'ⵉⴱⵔ', 'ⵎⴰⵢ', 'ⵢⵓⵏ', 'ⵢⵓⵍ', 'ⵖⵓⵛ', 'ⵛⵓⵜ', 'ⴽⵟⵓ', 'ⵏⵓⵡ', 'ⴷⵓⵊ'], - 'weekdays' => ['ⵓⵙⴰⵎⴰⵙ', 'ⵡⴰⵢⵏⴰⵙ', 'ⵓⵙⵉⵏⴰⵙ', 'ⵡⴰⴽⵕⴰⵙ', 'ⵓⴽⵡⴰⵙ', 'ⵓⵙⵉⵎⵡⴰⵙ', 'ⵓⵙⵉⴹⵢⴰⵙ'], - 'weekdays_short' => ['ⵓⵙⴰ', 'ⵡⴰⵢ', 'ⵓⵙⵉ', 'ⵡⴰⴽ', 'ⵓⴽⵡ', 'ⵓⵙⵉⵎ', 'ⵓⵙⵉⴹ'], - 'weekdays_min' => ['ⵓⵙⴰ', 'ⵡⴰⵢ', 'ⵓⵙⵉ', 'ⵡⴰⴽ', 'ⵓⴽⵡ', 'ⵓⵙⵉⵎ', 'ⵓⵙⵉⴹ'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 1, - 'list' => [', ', ' ⴷ '], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/zh.php b/vendor/nesbot/carbon/src/Carbon/Lang/zh.php deleted file mode 100644 index 1187c3d..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/zh.php +++ /dev/null @@ -1,29 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - xuri - * - sycuato - * - bokideckonja - * - Luo Ning - * - William Yang (williamyang233) - */ -return array_merge(require __DIR__.'/zh_Hans.php', [ - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'YYYY/MM/DD', - 'LL' => 'YYYY年M月D日', - 'LLL' => 'YYYY年M月D日 A h点mm分', - 'LLLL' => 'YYYY年M月D日dddd A h点mm分', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/zh_CN.php b/vendor/nesbot/carbon/src/Carbon/Lang/zh_CN.php deleted file mode 100644 index 9c05d5a..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/zh_CN.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - monkeycon - * - François B - * - Jason Katz-Brown - * - Serhan Apaydın - * - Matt Johnson - * - JD Isaacks - * - Zeno Zeng - * - Chris Hemp - * - shankesgk2 - */ -return array_merge(require __DIR__.'/zh.php', [ - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'YYYY/MM/DD', - 'LL' => 'YYYY年M月D日', - 'LLL' => 'YYYY年M月D日Ah点mm分', - 'LLLL' => 'YYYY年M月D日ddddAh点mm分', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/zh_HK.php b/vendor/nesbot/carbon/src/Carbon/Lang/zh_HK.php deleted file mode 100644 index c3ee9fc..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/zh_HK.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/zh_Hant_HK.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/zh_Hans.php b/vendor/nesbot/carbon/src/Carbon/Lang/zh_Hans.php deleted file mode 100644 index 38742ac..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/zh_Hans.php +++ /dev/null @@ -1,102 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - monkeycon - * - François B - * - Jason Katz-Brown - * - Konstantin Konev - * - Chris Lam - * - Serhan Apaydın - * - Gary Lo - * - JD Isaacks - * - Chris Hemp - * - shankesgk2 - * - Daniel Cheung (danvim) - */ -return [ - 'year' => ':count:optional-space年', - 'y' => ':count:optional-space年', - 'month' => ':count:optional-space个月', - 'm' => ':count:optional-space个月', - 'week' => ':count:optional-space周', - 'w' => ':count:optional-space周', - 'day' => ':count:optional-space天', - 'd' => ':count:optional-space天', - 'hour' => ':count:optional-space小时', - 'h' => ':count:optional-space小时', - 'minute' => ':count:optional-space分钟', - 'min' => ':count:optional-space分钟', - 'second' => ':count:optional-space秒', - 'a_second' => '{1}几秒|]1,Inf[:count:optional-space秒', - 's' => ':count:optional-space秒', - 'ago' => ':time前', - 'from_now' => ':time后', - 'after' => ':time后', - 'before' => ':time前', - 'diff_now' => '现在', - 'diff_today' => '今天', - 'diff_yesterday' => '昨天', - 'diff_tomorrow' => '明天', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'YYYY/MM/DD', - 'LL' => 'YYYY年M月D日', - 'LLL' => 'YYYY年M月D日 HH:mm', - 'LLLL' => 'YYYY年M月D日dddd HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[今天]LT', - 'nextDay' => '[明天]LT', - 'nextWeek' => '[下]ddddLT', - 'lastDay' => '[昨天]LT', - 'lastWeek' => '[上]ddddLT', - 'sameElse' => 'L', - ], - 'ordinal' => static function ($number, $period) { - return match ($period) { - 'd', 'D', 'DDD' => $number.'日', - 'M' => $number.'月', - 'w', 'W' => $number.'周', - default => $number, - }; - }, - 'meridiem' => static function ($hour, $minute) { - $time = $hour * 100 + $minute; - if ($time < 600) { - return '凌晨'; - } - if ($time < 900) { - return '早上'; - } - if ($time < 1130) { - return '上午'; - } - if ($time < 1230) { - return '中午'; - } - if ($time < 1800) { - return '下午'; - } - - return '晚上'; - }, - 'months' => ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'], - 'months_short' => ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'], - 'weekdays' => ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'], - 'weekdays_short' => ['周日', '周一', '周二', '周三', '周四', '周五', '周六'], - 'weekdays_min' => ['日', '一', '二', '三', '四', '五', '六'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => '', -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/zh_Hans_HK.php b/vendor/nesbot/carbon/src/Carbon/Lang/zh_Hans_HK.php deleted file mode 100644 index db913ca..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/zh_Hans_HK.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/zh_Hans.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/zh_Hans_MO.php b/vendor/nesbot/carbon/src/Carbon/Lang/zh_Hans_MO.php deleted file mode 100644 index db913ca..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/zh_Hans_MO.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/zh_Hans.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/zh_Hans_SG.php b/vendor/nesbot/carbon/src/Carbon/Lang/zh_Hans_SG.php deleted file mode 100644 index db913ca..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/zh_Hans_SG.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/zh_Hans.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/zh_Hant.php b/vendor/nesbot/carbon/src/Carbon/Lang/zh_Hant.php deleted file mode 100644 index 8b567c4..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/zh_Hant.php +++ /dev/null @@ -1,104 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Adam - * - monkeycon - * - François B - * - Jason Katz-Brown - * - Chris Lam - * - Serhan Apaydın - * - Gary Lo - * - JD Isaacks - * - Chris Hemp - * - Eddie - * - KID - * - shankesgk2 - * - Daniel Cheung (danvim) - */ -return [ - 'year' => ':count:optional-space年', - 'y' => ':count:optional-space年', - 'month' => ':count:optional-space個月', - 'm' => ':count:optional-space月', - 'week' => ':count:optional-space週', - 'w' => ':count:optional-space週', - 'day' => ':count:optional-space天', - 'd' => ':count:optional-space天', - 'hour' => ':count:optional-space小時', - 'h' => ':count:optional-space小時', - 'minute' => ':count:optional-space分鐘', - 'min' => ':count:optional-space分鐘', - 'second' => ':count:optional-space秒', - 'a_second' => '{1}幾秒|]1,Inf[:count:optional-space秒', - 's' => ':count:optional-space秒', - 'ago' => ':time前', - 'from_now' => ':time後', - 'after' => ':time後', - 'before' => ':time前', - 'diff_now' => '現在', - 'diff_today' => '今天', - 'diff_yesterday' => '昨天', - 'diff_tomorrow' => '明天', - 'formats' => [ - 'LT' => 'HH:mm', - 'LTS' => 'HH:mm:ss', - 'L' => 'YYYY/MM/DD', - 'LL' => 'YYYY年M月D日', - 'LLL' => 'YYYY年M月D日 HH:mm', - 'LLLL' => 'YYYY年M月D日dddd HH:mm', - ], - 'calendar' => [ - 'sameDay' => '[今天] LT', - 'nextDay' => '[明天] LT', - 'nextWeek' => '[下]dddd LT', - 'lastDay' => '[昨天] LT', - 'lastWeek' => '[上]dddd LT', - 'sameElse' => 'L', - ], - 'ordinal' => static function ($number, $period) { - return match ($period) { - 'd', 'D', 'DDD' => $number.'日', - 'M' => $number.'月', - 'w', 'W' => $number.'周', - default => $number, - }; - }, - 'meridiem' => static function ($hour, $minute) { - $time = $hour * 100 + $minute; - if ($time < 600) { - return '凌晨'; - } - if ($time < 900) { - return '早上'; - } - if ($time < 1130) { - return '上午'; - } - if ($time < 1230) { - return '中午'; - } - if ($time < 1800) { - return '下午'; - } - - return '晚上'; - }, - 'months' => ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'], - 'months_short' => ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'], - 'weekdays' => ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'], - 'weekdays_short' => ['週日', '週一', '週二', '週三', '週四', '週五', '週六'], - 'weekdays_min' => ['日', '一', '二', '三', '四', '五', '六'], - 'first_day_of_week' => 1, - 'day_of_first_week_of_year' => 4, - 'list' => '', -]; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/zh_Hant_HK.php b/vendor/nesbot/carbon/src/Carbon/Lang/zh_Hant_HK.php deleted file mode 100644 index e2526f1..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/zh_Hant_HK.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/zh_Hant.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/zh_Hant_MO.php b/vendor/nesbot/carbon/src/Carbon/Lang/zh_Hant_MO.php deleted file mode 100644 index e2526f1..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/zh_Hant_MO.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/zh_Hant.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/zh_Hant_TW.php b/vendor/nesbot/carbon/src/Carbon/Lang/zh_Hant_TW.php deleted file mode 100644 index e2526f1..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/zh_Hant_TW.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/zh_Hant.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/zh_MO.php b/vendor/nesbot/carbon/src/Carbon/Lang/zh_MO.php deleted file mode 100644 index 1c86d47..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/zh_MO.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - tarunvelli - * - Eddie - * - KID - * - shankesgk2 - */ -return array_replace_recursive(require __DIR__.'/zh_Hant.php', [ - 'after' => ':time后', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/zh_SG.php b/vendor/nesbot/carbon/src/Carbon/Lang/zh_SG.php deleted file mode 100644 index c451a56..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/zh_SG.php +++ /dev/null @@ -1,26 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - IBM Globalization Center of Competency, Yamato Software Laboratory bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/zh.php', [ - 'formats' => [ - 'L' => 'YYYY年MM月DD日', - ], - 'months' => ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'], - 'months_short' => ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'], - 'weekdays' => ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'], - 'weekdays_short' => ['日', '一', '二', '三', '四', '五', '六'], - 'weekdays_min' => ['日', '一', '二', '三', '四', '五', '六'], - 'day_of_first_week_of_year' => 1, -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/zh_TW.php b/vendor/nesbot/carbon/src/Carbon/Lang/zh_TW.php deleted file mode 100644 index c6789ed..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/zh_TW.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return require __DIR__.'/zh_Hant_TW.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/zh_YUE.php b/vendor/nesbot/carbon/src/Carbon/Lang/zh_YUE.php deleted file mode 100644 index b0d9ba8..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/zh_YUE.php +++ /dev/null @@ -1,20 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - IBM Globalization Center of Competency, Yamato Software Laboratory bug-glibc-locales@gnu.org - */ -return array_replace_recursive(require __DIR__.'/zh.php', [ - 'formats' => [ - 'L' => 'YYYY-MM-DD', - ], -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/zu.php b/vendor/nesbot/carbon/src/Carbon/Lang/zu.php deleted file mode 100644 index 9a6cce0..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/zu.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Unknown default region, use the first alphabetically. - */ -return require __DIR__.'/zu_ZA.php'; diff --git a/vendor/nesbot/carbon/src/Carbon/Lang/zu_ZA.php b/vendor/nesbot/carbon/src/Carbon/Lang/zu_ZA.php deleted file mode 100644 index b1e8bc0..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Lang/zu_ZA.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Authors: - * - Zuza Software Foundation (Translate.org.za) Dwayne Bailey dwayne@translate.org.za - */ -return array_replace_recursive(require __DIR__.'/en.php', [ - 'formats' => [ - 'L' => 'DD/MM/YYYY', - ], - 'months' => ['Januwari', 'Februwari', 'Mashi', 'Ephreli', 'Meyi', 'Juni', 'Julayi', 'Agasti', 'Septhemba', 'Okthoba', 'Novemba', 'Disemba'], - 'months_short' => ['Jan', 'Feb', 'Mas', 'Eph', 'Mey', 'Jun', 'Jul', 'Aga', 'Sep', 'Okt', 'Nov', 'Dis'], - 'weekdays' => ['iSonto', 'uMsombuluko', 'uLwesibili', 'uLwesithathu', 'uLwesine', 'uLwesihlanu', 'uMgqibelo'], - 'weekdays_short' => ['Son', 'Mso', 'Bil', 'Tha', 'Sin', 'Hla', 'Mgq'], - 'weekdays_min' => ['Son', 'Mso', 'Bil', 'Tha', 'Sin', 'Hla', 'Mgq'], - 'first_day_of_week' => 0, - 'day_of_first_week_of_year' => 1, - - 'year' => 'kweminyaka engu-:count', - 'y' => 'kweminyaka engu-:count', - 'a_year' => 'kweminyaka engu-:count', - - 'month' => 'izinyanga ezingu-:count', - 'm' => 'izinyanga ezingu-:count', - 'a_month' => 'izinyanga ezingu-:count', - - 'week' => 'lwamasonto angu-:count', - 'w' => 'lwamasonto angu-:count', - 'a_week' => 'lwamasonto angu-:count', - - 'day' => 'ezingaba ngu-:count', - 'd' => 'ezingaba ngu-:count', - 'a_day' => 'ezingaba ngu-:count', - - 'hour' => 'amahora angu-:count', - 'h' => 'amahora angu-:count', - 'a_hour' => 'amahora angu-:count', - - 'minute' => 'ngemizuzu engu-:count', - 'min' => 'ngemizuzu engu-:count', - 'a_minute' => 'ngemizuzu engu-:count', - - 'second' => 'imizuzwana engu-:count', - 's' => 'imizuzwana engu-:count', - 'a_second' => 'imizuzwana engu-:count', -]); diff --git a/vendor/nesbot/carbon/src/Carbon/Language.php b/vendor/nesbot/carbon/src/Carbon/Language.php deleted file mode 100644 index 6197e8b..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Language.php +++ /dev/null @@ -1,271 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon; - -use JsonSerializable; - -class Language implements JsonSerializable -{ - protected static ?array $languagesNames = null; - - protected static ?array $regionsNames = null; - - protected string $id; - - protected string $code; - - protected ?string $variant = null; - - protected ?string $region = null; - - protected ?array $names = null; - - protected ?string $isoName = null; - - protected ?string $nativeName = null; - - public function __construct(string $id) - { - $this->id = str_replace('-', '_', $id); - $parts = explode('_', $this->id); - $this->code = $parts[0]; - - if (isset($parts[1])) { - if (!preg_match('/^[A-Z]+$/', $parts[1])) { - $this->variant = $parts[1]; - $parts[1] = $parts[2] ?? null; - } - if ($parts[1]) { - $this->region = $parts[1]; - } - } - } - - /** - * Get the list of the known languages. - * - * @return array - */ - public static function all(): array - { - static::$languagesNames ??= require __DIR__.'/List/languages.php'; - - return static::$languagesNames; - } - - /** - * Get the list of the known regions. - * - * ⚠ ISO 3166-2 short name provided with no warranty, should not - * be used for any purpose to show official state names. - */ - public static function regions(): array - { - static::$regionsNames ??= require __DIR__.'/List/regions.php'; - - return static::$regionsNames; - } - - /** - * Get both isoName and nativeName as an array. - */ - public function getNames(): array - { - $this->names ??= static::all()[$this->code] ?? [ - 'isoName' => $this->code, - 'nativeName' => $this->code, - ]; - - return $this->names; - } - - /** - * Returns the original locale ID. - */ - public function getId(): string - { - return $this->id; - } - - /** - * Returns the code of the locale "en"/"fr". - */ - public function getCode(): string - { - return $this->code; - } - - /** - * Returns the variant code such as cyrl/latn. - */ - public function getVariant(): ?string - { - return $this->variant; - } - - /** - * Returns the variant such as Cyrillic/Latin. - */ - public function getVariantName(): ?string - { - if ($this->variant === 'Latn') { - return 'Latin'; - } - - if ($this->variant === 'Cyrl') { - return 'Cyrillic'; - } - - return $this->variant; - } - - /** - * Returns the region part of the locale. - */ - public function getRegion(): ?string - { - return $this->region; - } - - /** - * Returns the region name for the current language. - * - * ⚠ ISO 3166-2 short name provided with no warranty, should not - * be used for any purpose to show official state names. - */ - public function getRegionName(): ?string - { - return $this->region ? (static::regions()[$this->region] ?? $this->region) : null; - } - - /** - * Returns the long ISO language name. - */ - public function getFullIsoName(): string - { - $this->isoName ??= $this->getNames()['isoName']; - - return $this->isoName; - } - - /** - * Set the ISO language name. - */ - public function setIsoName(string $isoName): static - { - $this->isoName = $isoName; - - return $this; - } - - /** - * Return the full name of the language in this language. - */ - public function getFullNativeName(): string - { - $this->nativeName ??= $this->getNames()['nativeName']; - - return $this->nativeName; - } - - /** - * Set the name of the language in this language. - */ - public function setNativeName(string $nativeName): static - { - $this->nativeName = $nativeName; - - return $this; - } - - /** - * Returns the short ISO language name. - */ - public function getIsoName(): string - { - $name = $this->getFullIsoName(); - - return trim(strstr($name, ',', true) ?: $name); - } - - /** - * Get the short name of the language in this language. - */ - public function getNativeName(): string - { - $name = $this->getFullNativeName(); - - return trim(strstr($name, ',', true) ?: $name); - } - - /** - * Get a string with short ISO name, region in parentheses if applicable, variant in parentheses if applicable. - */ - public function getIsoDescription(): string - { - $region = $this->getRegionName(); - $variant = $this->getVariantName(); - - return $this->getIsoName().($region ? ' ('.$region.')' : '').($variant ? ' ('.$variant.')' : ''); - } - - /** - * Get a string with short native name, region in parentheses if applicable, variant in parentheses if applicable. - */ - public function getNativeDescription(): string - { - $region = $this->getRegionName(); - $variant = $this->getVariantName(); - - return $this->getNativeName().($region ? ' ('.$region.')' : '').($variant ? ' ('.$variant.')' : ''); - } - - /** - * Get a string with long ISO name, region in parentheses if applicable, variant in parentheses if applicable. - */ - public function getFullIsoDescription(): string - { - $region = $this->getRegionName(); - $variant = $this->getVariantName(); - - return $this->getFullIsoName().($region ? ' ('.$region.')' : '').($variant ? ' ('.$variant.')' : ''); - } - - /** - * Get a string with long native name, region in parentheses if applicable, variant in parentheses if applicable. - */ - public function getFullNativeDescription(): string - { - $region = $this->getRegionName(); - $variant = $this->getVariantName(); - - return $this->getFullNativeName().($region ? ' ('.$region.')' : '').($variant ? ' ('.$variant.')' : ''); - } - - /** - * Returns the original locale ID. - */ - public function __toString(): string - { - return $this->getId(); - } - - /** - * Get a string with short ISO name, region in parentheses if applicable, variant in parentheses if applicable. - */ - public function jsonSerialize(): string - { - return $this->getIsoDescription(); - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Laravel/ServiceProvider.php b/vendor/nesbot/carbon/src/Carbon/Laravel/ServiceProvider.php deleted file mode 100644 index ebd26bc..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Laravel/ServiceProvider.php +++ /dev/null @@ -1,129 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Laravel; - -use Carbon\Carbon; -use Carbon\CarbonImmutable; -use Carbon\CarbonInterval; -use Carbon\CarbonPeriod; -use Illuminate\Contracts\Events\Dispatcher as DispatcherContract; -use Illuminate\Events\Dispatcher; -use Illuminate\Events\EventDispatcher; -use Illuminate\Support\Carbon as IlluminateCarbon; -use Illuminate\Support\Facades\Date; -use Throwable; - -class ServiceProvider extends \Illuminate\Support\ServiceProvider -{ - /** @var callable|null */ - protected $appGetter = null; - - /** @var callable|null */ - protected $localeGetter = null; - - public function setAppGetter(?callable $appGetter): void - { - $this->appGetter = $appGetter; - } - - public function setLocaleGetter(?callable $localeGetter): void - { - $this->localeGetter = $localeGetter; - } - - public function boot() - { - $this->updateLocale(); - - if (!$this->app->bound('events')) { - return; - } - - $service = $this; - $events = $this->app['events']; - - if ($this->isEventDispatcher($events)) { - $events->listen(class_exists('Illuminate\Foundation\Events\LocaleUpdated') ? 'Illuminate\Foundation\Events\LocaleUpdated' : 'locale.changed', function () use ($service) { - $service->updateLocale(); - }); - } - } - - public function updateLocale() - { - $locale = $this->getLocale(); - - if ($locale === null) { - return; - } - - Carbon::setLocale($locale); - CarbonImmutable::setLocale($locale); - CarbonPeriod::setLocale($locale); - CarbonInterval::setLocale($locale); - - if (class_exists(IlluminateCarbon::class)) { - IlluminateCarbon::setLocale($locale); - } - - if (class_exists(Date::class)) { - try { - $root = Date::getFacadeRoot(); - $root->setLocale($locale); - } catch (Throwable) { - // Non Carbon class in use in Date facade - } - } - } - - public function register() - { - // Needed for Laravel < 5.3 compatibility - } - - protected function getLocale() - { - if ($this->localeGetter) { - return ($this->localeGetter)(); - } - - $app = $this->getApp(); - $app = $app && method_exists($app, 'getLocale') - ? $app - : $this->getGlobalApp('translator'); - - return $app ? $app->getLocale() : null; - } - - protected function getApp() - { - if ($this->appGetter) { - return ($this->appGetter)(); - } - - return $this->app ?? $this->getGlobalApp(); - } - - protected function getGlobalApp(...$args) - { - return \function_exists('app') ? \app(...$args) : null; - } - - protected function isEventDispatcher($instance) - { - return $instance instanceof EventDispatcher - || $instance instanceof Dispatcher - || $instance instanceof DispatcherContract; - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/List/languages.php b/vendor/nesbot/carbon/src/Carbon/List/languages.php deleted file mode 100644 index 5577877..0000000 --- a/vendor/nesbot/carbon/src/Carbon/List/languages.php +++ /dev/null @@ -1,1241 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -return [ - /* - * ISO 639-2 - */ - 'ab' => [ - 'isoName' => 'Abkhazian', - 'nativeName' => 'аҧсуа бызшәа, аҧсшәа', - ], - 'aa' => [ - 'isoName' => 'Afar', - 'nativeName' => 'Afaraf', - ], - 'af' => [ - 'isoName' => 'Afrikaans', - 'nativeName' => 'Afrikaans', - ], - 'ak' => [ - 'isoName' => 'Akan', - 'nativeName' => 'Akan', - ], - 'sq' => [ - 'isoName' => 'Albanian', - 'nativeName' => 'Shqip', - ], - 'am' => [ - 'isoName' => 'Amharic', - 'nativeName' => 'አማርኛ', - ], - 'ar' => [ - 'isoName' => 'Arabic', - 'nativeName' => 'العربية', - ], - 'an' => [ - 'isoName' => 'Aragonese', - 'nativeName' => 'aragonés', - ], - 'hy' => [ - 'isoName' => 'Armenian', - 'nativeName' => 'Հայերեն', - ], - 'as' => [ - 'isoName' => 'Assamese', - 'nativeName' => 'অসমীয়া', - ], - 'av' => [ - 'isoName' => 'Avaric', - 'nativeName' => 'авар мацӀ, магӀарул мацӀ', - ], - 'ae' => [ - 'isoName' => 'Avestan', - 'nativeName' => 'avesta', - ], - 'ay' => [ - 'isoName' => 'Aymara', - 'nativeName' => 'aymar aru', - ], - 'az' => [ - 'isoName' => 'Azerbaijani', - 'nativeName' => 'azərbaycan dili', - ], - 'bm' => [ - 'isoName' => 'Bambara', - 'nativeName' => 'bamanankan', - ], - 'ba' => [ - 'isoName' => 'Bashkir', - 'nativeName' => 'башҡорт теле', - ], - 'eu' => [ - 'isoName' => 'Basque', - 'nativeName' => 'euskara, euskera', - ], - 'be' => [ - 'isoName' => 'Belarusian', - 'nativeName' => 'беларуская мова', - ], - 'bn' => [ - 'isoName' => 'Bengali', - 'nativeName' => 'বাংলা', - ], - 'bh' => [ - 'isoName' => 'Bihari languages', - 'nativeName' => 'भोजपुरी', - ], - 'bi' => [ - 'isoName' => 'Bislama', - 'nativeName' => 'Bislama', - ], - 'bs' => [ - 'isoName' => 'Bosnian', - 'nativeName' => 'bosanski jezik', - ], - 'br' => [ - 'isoName' => 'Breton', - 'nativeName' => 'brezhoneg', - ], - 'bg' => [ - 'isoName' => 'Bulgarian', - 'nativeName' => 'български език', - ], - 'my' => [ - 'isoName' => 'Burmese', - 'nativeName' => 'ဗမာစာ', - ], - 'ca' => [ - 'isoName' => 'Catalan, Valencian', - 'nativeName' => 'català, valencià', - ], - 'ch' => [ - 'isoName' => 'Chamorro', - 'nativeName' => 'Chamoru', - ], - 'ce' => [ - 'isoName' => 'Chechen', - 'nativeName' => 'нохчийн мотт', - ], - 'ny' => [ - 'isoName' => 'Chichewa, Chewa, Nyanja', - 'nativeName' => 'chiCheŵa, chinyanja', - ], - 'zh' => [ - 'isoName' => 'Chinese', - 'nativeName' => '中文 (Zhōngwén), 汉语, 漢語', - ], - 'cv' => [ - 'isoName' => 'Chuvash', - 'nativeName' => 'чӑваш чӗлхи', - ], - 'kw' => [ - 'isoName' => 'Cornish', - 'nativeName' => 'Kernewek', - ], - 'co' => [ - 'isoName' => 'Corsican', - 'nativeName' => 'corsu, lingua corsa', - ], - 'cr' => [ - 'isoName' => 'Cree', - 'nativeName' => 'ᓀᐦᐃᔭᐍᐏᐣ', - ], - 'hr' => [ - 'isoName' => 'Croatian', - 'nativeName' => 'hrvatski jezik', - ], - 'cs' => [ - 'isoName' => 'Czech', - 'nativeName' => 'čeština, český jazyk', - ], - 'da' => [ - 'isoName' => 'Danish', - 'nativeName' => 'dansk', - ], - 'dv' => [ - 'isoName' => 'Divehi, Dhivehi, Maldivian', - 'nativeName' => 'ދިވެހި', - ], - 'nl' => [ - 'isoName' => 'Dutch, Flemish', - 'nativeName' => 'Nederlands, Vlaams', - ], - 'dz' => [ - 'isoName' => 'Dzongkha', - 'nativeName' => 'རྫོང་ཁ', - ], - 'en' => [ - 'isoName' => 'English', - 'nativeName' => 'English', - ], - 'eo' => [ - 'isoName' => 'Esperanto', - 'nativeName' => 'Esperanto', - ], - 'et' => [ - 'isoName' => 'Estonian', - 'nativeName' => 'eesti, eesti keel', - ], - 'ee' => [ - 'isoName' => 'Ewe', - 'nativeName' => 'Eʋegbe', - ], - 'fo' => [ - 'isoName' => 'Faroese', - 'nativeName' => 'føroyskt', - ], - 'fj' => [ - 'isoName' => 'Fijian', - 'nativeName' => 'vosa Vakaviti', - ], - 'fi' => [ - 'isoName' => 'Finnish', - 'nativeName' => 'suomi, suomen kieli', - ], - 'fr' => [ - 'isoName' => 'French', - 'nativeName' => 'français', - ], - 'ff' => [ - 'isoName' => 'Fulah', - 'nativeName' => 'Fulfulde, Pulaar, Pular', - ], - 'gl' => [ - 'isoName' => 'Galician', - 'nativeName' => 'Galego', - ], - 'ka' => [ - 'isoName' => 'Georgian', - 'nativeName' => 'ქართული', - ], - 'de' => [ - 'isoName' => 'German', - 'nativeName' => 'Deutsch', - ], - 'el' => [ - 'isoName' => 'Greek (modern)', - 'nativeName' => 'ελληνικά', - ], - 'gn' => [ - 'isoName' => 'Guaraní', - 'nativeName' => 'Avañe\'ẽ', - ], - 'gu' => [ - 'isoName' => 'Gujarati', - 'nativeName' => 'ગુજરાતી', - ], - 'ht' => [ - 'isoName' => 'Haitian, Haitian Creole', - 'nativeName' => 'Kreyòl ayisyen', - ], - 'ha' => [ - 'isoName' => 'Hausa', - 'nativeName' => '(Hausa) هَوُسَ', - ], - 'he' => [ - 'isoName' => 'Hebrew (modern)', - 'nativeName' => 'עברית', - ], - 'hz' => [ - 'isoName' => 'Herero', - 'nativeName' => 'Otjiherero', - ], - 'hi' => [ - 'isoName' => 'Hindi', - 'nativeName' => 'हिन्दी, हिंदी', - ], - 'ho' => [ - 'isoName' => 'Hiri Motu', - 'nativeName' => 'Hiri Motu', - ], - 'hu' => [ - 'isoName' => 'Hungarian', - 'nativeName' => 'magyar', - ], - 'ia' => [ - 'isoName' => 'Interlingua', - 'nativeName' => 'Interlingua', - ], - 'id' => [ - 'isoName' => 'Indonesian', - 'nativeName' => 'Bahasa Indonesia', - ], - 'ie' => [ - 'isoName' => 'Interlingue', - 'nativeName' => 'Originally called Occidental; then Interlingue after WWII', - ], - 'ga' => [ - 'isoName' => 'Irish', - 'nativeName' => 'Gaeilge', - ], - 'ig' => [ - 'isoName' => 'Igbo', - 'nativeName' => 'Asụsụ Igbo', - ], - 'ik' => [ - 'isoName' => 'Inupiaq', - 'nativeName' => 'Iñupiaq, Iñupiatun', - ], - 'io' => [ - 'isoName' => 'Ido', - 'nativeName' => 'Ido', - ], - 'is' => [ - 'isoName' => 'Icelandic', - 'nativeName' => 'Íslenska', - ], - 'it' => [ - 'isoName' => 'Italian', - 'nativeName' => 'Italiano', - ], - 'iu' => [ - 'isoName' => 'Inuktitut', - 'nativeName' => 'ᐃᓄᒃᑎᑐᑦ', - ], - 'ja' => [ - 'isoName' => 'Japanese', - 'nativeName' => '日本語 (にほんご)', - ], - 'jv' => [ - 'isoName' => 'Javanese', - 'nativeName' => 'ꦧꦱꦗꦮ, Basa Jawa', - ], - 'kl' => [ - 'isoName' => 'Kalaallisut, Greenlandic', - 'nativeName' => 'kalaallisut, kalaallit oqaasii', - ], - 'kn' => [ - 'isoName' => 'Kannada', - 'nativeName' => 'ಕನ್ನಡ', - ], - 'kr' => [ - 'isoName' => 'Kanuri', - 'nativeName' => 'Kanuri', - ], - 'ks' => [ - 'isoName' => 'Kashmiri', - 'nativeName' => 'कश्मीरी, كشميري‎', - ], - 'kk' => [ - 'isoName' => 'Kazakh', - 'nativeName' => 'қазақ тілі', - ], - 'km' => [ - 'isoName' => 'Central Khmer', - 'nativeName' => 'ខ្មែរ, ខេមរភាសា, ភាសាខ្មែរ', - ], - 'ki' => [ - 'isoName' => 'Kikuyu, Gikuyu', - 'nativeName' => 'Gĩkũyũ', - ], - 'rw' => [ - 'isoName' => 'Kinyarwanda', - 'nativeName' => 'Ikinyarwanda', - ], - 'ky' => [ - 'isoName' => 'Kirghiz, Kyrgyz', - 'nativeName' => 'Кыргызча, Кыргыз тили', - ], - 'kv' => [ - 'isoName' => 'Komi', - 'nativeName' => 'коми кыв', - ], - 'kg' => [ - 'isoName' => 'Kongo', - 'nativeName' => 'Kikongo', - ], - 'ko' => [ - 'isoName' => 'Korean', - 'nativeName' => '한국어', - ], - 'ku' => [ - 'isoName' => 'Kurdish', - 'nativeName' => 'Kurdî, کوردی‎', - ], - 'kj' => [ - 'isoName' => 'Kuanyama, Kwanyama', - 'nativeName' => 'Kuanyama', - ], - 'la' => [ - 'isoName' => 'Latin', - 'nativeName' => 'latine, lingua latina', - ], - 'lb' => [ - 'isoName' => 'Luxembourgish, Letzeburgesch', - 'nativeName' => 'Lëtzebuergesch', - ], - 'lg' => [ - 'isoName' => 'Ganda', - 'nativeName' => 'Luganda', - ], - 'li' => [ - 'isoName' => 'Limburgan, Limburger, Limburgish', - 'nativeName' => 'Limburgs', - ], - 'ln' => [ - 'isoName' => 'Lingala', - 'nativeName' => 'Lingála', - ], - 'lo' => [ - 'isoName' => 'Lao', - 'nativeName' => 'ພາສາລາວ', - ], - 'lt' => [ - 'isoName' => 'Lithuanian', - 'nativeName' => 'lietuvių kalba', - ], - 'lu' => [ - 'isoName' => 'Luba-Katanga', - 'nativeName' => 'Kiluba', - ], - 'lv' => [ - 'isoName' => 'Latvian', - 'nativeName' => 'latviešu valoda', - ], - 'gv' => [ - 'isoName' => 'Manx', - 'nativeName' => 'Gaelg, Gailck', - ], - 'mk' => [ - 'isoName' => 'Macedonian', - 'nativeName' => 'македонски јазик', - ], - 'mg' => [ - 'isoName' => 'Malagasy', - 'nativeName' => 'fiteny malagasy', - ], - 'ms' => [ - 'isoName' => 'Malay', - 'nativeName' => 'Bahasa Melayu, بهاس ملايو‎', - ], - 'ml' => [ - 'isoName' => 'Malayalam', - 'nativeName' => 'മലയാളം', - ], - 'mt' => [ - 'isoName' => 'Maltese', - 'nativeName' => 'Malti', - ], - 'mi' => [ - 'isoName' => 'Maori', - 'nativeName' => 'te reo Māori', - ], - 'mr' => [ - 'isoName' => 'Marathi', - 'nativeName' => 'मराठी', - ], - 'mh' => [ - 'isoName' => 'Marshallese', - 'nativeName' => 'Kajin M̧ajeļ', - ], - 'mn' => [ - 'isoName' => 'Mongolian', - 'nativeName' => 'Монгол хэл', - ], - 'na' => [ - 'isoName' => 'Nauru', - 'nativeName' => 'Dorerin Naoero', - ], - 'nv' => [ - 'isoName' => 'Navajo, Navaho', - 'nativeName' => 'Diné bizaad', - ], - 'nd' => [ - 'isoName' => 'North Ndebele', - 'nativeName' => 'isiNdebele', - ], - 'ne' => [ - 'isoName' => 'Nepali', - 'nativeName' => 'नेपाली', - ], - 'ng' => [ - 'isoName' => 'Ndonga', - 'nativeName' => 'Owambo', - ], - 'nb' => [ - 'isoName' => 'Norwegian Bokmål', - 'nativeName' => 'Norsk Bokmål', - ], - 'nn' => [ - 'isoName' => 'Norwegian Nynorsk', - 'nativeName' => 'Norsk Nynorsk', - ], - 'no' => [ - 'isoName' => 'Norwegian', - 'nativeName' => 'Norsk', - ], - 'ii' => [ - 'isoName' => 'Sichuan Yi, Nuosu', - 'nativeName' => 'ꆈꌠ꒿ Nuosuhxop', - ], - 'nr' => [ - 'isoName' => 'South Ndebele', - 'nativeName' => 'isiNdebele', - ], - 'oc' => [ - 'isoName' => 'Occitan', - 'nativeName' => 'occitan, lenga d\'òc', - ], - 'oj' => [ - 'isoName' => 'Ojibwa', - 'nativeName' => 'ᐊᓂᔑᓈᐯᒧᐎᓐ', - ], - 'cu' => [ - 'isoName' => 'Church Slavic, Church Slavonic, Old Church Slavonic, Old Slavonic, Old Bulgarian', - 'nativeName' => 'ѩзыкъ словѣньскъ', - ], - 'om' => [ - 'isoName' => 'Oromo', - 'nativeName' => 'Afaan Oromoo', - ], - 'or' => [ - 'isoName' => 'Oriya', - 'nativeName' => 'ଓଡ଼ିଆ', - ], - 'os' => [ - 'isoName' => 'Ossetian, Ossetic', - 'nativeName' => 'ирон æвзаг', - ], - 'pa' => [ - 'isoName' => 'Panjabi, Punjabi', - 'nativeName' => 'ਪੰਜਾਬੀ', - ], - 'pi' => [ - 'isoName' => 'Pali', - 'nativeName' => 'पाऴि', - ], - 'fa' => [ - 'isoName' => 'Persian', - 'nativeName' => 'فارسی', - ], - 'pl' => [ - 'isoName' => 'Polish', - 'nativeName' => 'język polski, polszczyzna', - ], - 'ps' => [ - 'isoName' => 'Pashto, Pushto', - 'nativeName' => 'پښتو', - ], - 'pt' => [ - 'isoName' => 'Portuguese', - 'nativeName' => 'Português', - ], - 'qu' => [ - 'isoName' => 'Quechua', - 'nativeName' => 'Runa Simi, Kichwa', - ], - 'rm' => [ - 'isoName' => 'Romansh', - 'nativeName' => 'Rumantsch Grischun', - ], - 'rn' => [ - 'isoName' => 'Rundi', - 'nativeName' => 'Ikirundi', - ], - 'ro' => [ - 'isoName' => 'Romanian, Moldavian, Moldovan', - 'nativeName' => 'Română', - ], - 'ru' => [ - 'isoName' => 'Russian', - 'nativeName' => 'русский', - ], - 'sa' => [ - 'isoName' => 'Sanskrit', - 'nativeName' => 'संस्कृतम्', - ], - 'sc' => [ - 'isoName' => 'Sardinian', - 'nativeName' => 'sardu', - ], - 'sd' => [ - 'isoName' => 'Sindhi', - 'nativeName' => 'सिन्धी, سنڌي، سندھی‎', - ], - 'se' => [ - 'isoName' => 'Northern Sami', - 'nativeName' => 'Davvisámegiella', - ], - 'sm' => [ - 'isoName' => 'Samoan', - 'nativeName' => 'gagana fa\'a Samoa', - ], - 'sg' => [ - 'isoName' => 'Sango', - 'nativeName' => 'yângâ tî sängö', - ], - 'sr' => [ - 'isoName' => 'Serbian', - 'nativeName' => 'српски језик', - ], - 'gd' => [ - 'isoName' => 'Gaelic, Scottish Gaelic', - 'nativeName' => 'Gàidhlig', - ], - 'sn' => [ - 'isoName' => 'Shona', - 'nativeName' => 'chiShona', - ], - 'si' => [ - 'isoName' => 'Sinhala, Sinhalese', - 'nativeName' => 'සිංහල', - ], - 'sk' => [ - 'isoName' => 'Slovak', - 'nativeName' => 'Slovenčina, Slovenský Jazyk', - ], - 'sl' => [ - 'isoName' => 'Slovene', - 'nativeName' => 'Slovenski Jezik, Slovenščina', - ], - 'so' => [ - 'isoName' => 'Somali', - 'nativeName' => 'Soomaaliga, af Soomaali', - ], - 'st' => [ - 'isoName' => 'Southern Sotho', - 'nativeName' => 'Sesotho', - ], - 'es' => [ - 'isoName' => 'Spanish, Castilian', - 'nativeName' => 'Español', - ], - 'su' => [ - 'isoName' => 'Sundanese', - 'nativeName' => 'Basa Sunda', - ], - 'sw' => [ - 'isoName' => 'Swahili', - 'nativeName' => 'Kiswahili', - ], - 'ss' => [ - 'isoName' => 'Swati', - 'nativeName' => 'SiSwati', - ], - 'sv' => [ - 'isoName' => 'Swedish', - 'nativeName' => 'Svenska', - ], - 'ta' => [ - 'isoName' => 'Tamil', - 'nativeName' => 'தமிழ்', - ], - 'te' => [ - 'isoName' => 'Telugu', - 'nativeName' => 'తెలుగు', - ], - 'tg' => [ - 'isoName' => 'Tajik', - 'nativeName' => 'тоҷикӣ, toçikī, تاجیکی‎', - ], - 'th' => [ - 'isoName' => 'Thai', - 'nativeName' => 'ไทย', - ], - 'ti' => [ - 'isoName' => 'Tigrinya', - 'nativeName' => 'ትግርኛ', - ], - 'bo' => [ - 'isoName' => 'Tibetan', - 'nativeName' => 'བོད་ཡིག', - ], - 'tk' => [ - 'isoName' => 'Turkmen', - 'nativeName' => 'Türkmen, Түркмен', - ], - 'tl' => [ - 'isoName' => 'Tagalog', - 'nativeName' => 'Wikang Tagalog', - ], - 'tn' => [ - 'isoName' => 'Tswana', - 'nativeName' => 'Setswana', - ], - 'to' => [ - 'isoName' => 'Tongan (Tonga Islands)', - 'nativeName' => 'Faka Tonga', - ], - 'tr' => [ - 'isoName' => 'Turkish', - 'nativeName' => 'Türkçe', - ], - 'ts' => [ - 'isoName' => 'Tsonga', - 'nativeName' => 'Xitsonga', - ], - 'tt' => [ - 'isoName' => 'Tatar', - 'nativeName' => 'татар теле, tatar tele', - ], - 'tw' => [ - 'isoName' => 'Twi', - 'nativeName' => 'Twi', - ], - 'ty' => [ - 'isoName' => 'Tahitian', - 'nativeName' => 'Reo Tahiti', - ], - 'ug' => [ - 'isoName' => 'Uighur, Uyghur', - 'nativeName' => 'Uyƣurqə, ‫ئۇيغۇرچ', - ], - 'uk' => [ - 'isoName' => 'Ukrainian', - 'nativeName' => 'Українська', - ], - 'ur' => [ - 'isoName' => 'Urdu', - 'nativeName' => 'اردو', - ], - 'uz' => [ - 'isoName' => 'Uzbek', - 'nativeName' => 'Oʻzbek, Ўзбек, أۇزبېك‎', - ], - 've' => [ - 'isoName' => 'Venda', - 'nativeName' => 'Tshivenḓa', - ], - 'vi' => [ - 'isoName' => 'Vietnamese', - 'nativeName' => 'Tiếng Việt', - ], - 'vo' => [ - 'isoName' => 'Volapük', - 'nativeName' => 'Volapük', - ], - 'wa' => [ - 'isoName' => 'Walloon', - 'nativeName' => 'Walon', - ], - 'cy' => [ - 'isoName' => 'Welsh', - 'nativeName' => 'Cymraeg', - ], - 'wo' => [ - 'isoName' => 'Wolof', - 'nativeName' => 'Wollof', - ], - 'fy' => [ - 'isoName' => 'Western Frisian', - 'nativeName' => 'Frysk', - ], - 'xh' => [ - 'isoName' => 'Xhosa', - 'nativeName' => 'isiXhosa', - ], - 'yi' => [ - 'isoName' => 'Yiddish', - 'nativeName' => 'ייִדיש', - ], - 'yo' => [ - 'isoName' => 'Yoruba', - 'nativeName' => 'Yorùbá', - ], - 'za' => [ - 'isoName' => 'Zhuang, Chuang', - 'nativeName' => 'Saɯ cueŋƅ, Saw cuengh', - ], - 'zu' => [ - 'isoName' => 'Zulu', - 'nativeName' => 'isiZulu', - ], - /* - * Add ISO 639-3 languages available in Carbon - */ - 'agq' => [ - 'isoName' => 'Aghem', - 'nativeName' => 'Aghem', - ], - 'agr' => [ - 'isoName' => 'Aguaruna', - 'nativeName' => 'Aguaruna', - ], - 'anp' => [ - 'isoName' => 'Angika', - 'nativeName' => 'Angika', - ], - 'asa' => [ - 'isoName' => 'Asu', - 'nativeName' => 'Asu', - ], - 'ast' => [ - 'isoName' => 'Asturian', - 'nativeName' => 'Asturian', - ], - 'ayc' => [ - 'isoName' => 'Southern Aymara', - 'nativeName' => 'Southern Aymara', - ], - 'bas' => [ - 'isoName' => 'Basaa', - 'nativeName' => 'Basaa', - ], - 'bem' => [ - 'isoName' => 'Bemba', - 'nativeName' => 'Bemba', - ], - 'bez' => [ - 'isoName' => 'Bena', - 'nativeName' => 'Bena', - ], - 'bhb' => [ - 'isoName' => 'Bhili', - 'nativeName' => 'Bhili', - ], - 'bho' => [ - 'isoName' => 'Bhojpuri', - 'nativeName' => 'Bhojpuri', - ], - 'brx' => [ - 'isoName' => 'Bodo', - 'nativeName' => 'Bodo', - ], - 'byn' => [ - 'isoName' => 'Bilin', - 'nativeName' => 'Bilin', - ], - 'ccp' => [ - 'isoName' => 'Chakma', - 'nativeName' => 'Chakma', - ], - 'cgg' => [ - 'isoName' => 'Chiga', - 'nativeName' => 'Chiga', - ], - 'chr' => [ - 'isoName' => 'Cherokee', - 'nativeName' => 'Cherokee', - ], - 'cmn' => [ - 'isoName' => 'Chinese', - 'nativeName' => 'Chinese', - ], - 'crh' => [ - 'isoName' => 'Crimean Turkish', - 'nativeName' => 'Crimean Turkish', - ], - 'csb' => [ - 'isoName' => 'Kashubian', - 'nativeName' => 'Kashubian', - ], - 'dav' => [ - 'isoName' => 'Taita', - 'nativeName' => 'Taita', - ], - 'dje' => [ - 'isoName' => 'Zarma', - 'nativeName' => 'Zarma', - ], - 'doi' => [ - 'isoName' => 'Dogri (macrolanguage)', - 'nativeName' => 'Dogri (macrolanguage)', - ], - 'dsb' => [ - 'isoName' => 'Lower Sorbian', - 'nativeName' => 'Lower Sorbian', - ], - 'dua' => [ - 'isoName' => 'Duala', - 'nativeName' => 'Duala', - ], - 'dyo' => [ - 'isoName' => 'Jola-Fonyi', - 'nativeName' => 'Jola-Fonyi', - ], - 'ebu' => [ - 'isoName' => 'Embu', - 'nativeName' => 'Embu', - ], - 'ewo' => [ - 'isoName' => 'Ewondo', - 'nativeName' => 'Ewondo', - ], - 'fil' => [ - 'isoName' => 'Filipino', - 'nativeName' => 'Filipino', - ], - 'fur' => [ - 'isoName' => 'Friulian', - 'nativeName' => 'Friulian', - ], - 'gez' => [ - 'isoName' => 'Geez', - 'nativeName' => 'Geez', - ], - 'gom' => [ - 'isoName' => 'Konkani, Goan', - 'nativeName' => 'ಕೊಂಕಣಿ', - ], - 'gsw' => [ - 'isoName' => 'Swiss German', - 'nativeName' => 'Swiss German', - ], - 'guz' => [ - 'isoName' => 'Gusii', - 'nativeName' => 'Gusii', - ], - 'hak' => [ - 'isoName' => 'Hakka Chinese', - 'nativeName' => 'Hakka Chinese', - ], - 'haw' => [ - 'isoName' => 'Hawaiian', - 'nativeName' => 'Hawaiian', - ], - 'hif' => [ - 'isoName' => 'Fiji Hindi', - 'nativeName' => 'Fiji Hindi', - ], - 'hne' => [ - 'isoName' => 'Chhattisgarhi', - 'nativeName' => 'Chhattisgarhi', - ], - 'hsb' => [ - 'isoName' => 'Upper Sorbian', - 'nativeName' => 'Upper Sorbian', - ], - 'jgo' => [ - 'isoName' => 'Ngomba', - 'nativeName' => 'Ngomba', - ], - 'jmc' => [ - 'isoName' => 'Machame', - 'nativeName' => 'Machame', - ], - 'kab' => [ - 'isoName' => 'Kabyle', - 'nativeName' => 'Kabyle', - ], - 'kam' => [ - 'isoName' => 'Kamba', - 'nativeName' => 'Kamba', - ], - 'kde' => [ - 'isoName' => 'Makonde', - 'nativeName' => 'Makonde', - ], - 'kea' => [ - 'isoName' => 'Kabuverdianu', - 'nativeName' => 'Kabuverdianu', - ], - 'khq' => [ - 'isoName' => 'Koyra Chiini', - 'nativeName' => 'Koyra Chiini', - ], - 'kkj' => [ - 'isoName' => 'Kako', - 'nativeName' => 'Kako', - ], - 'kln' => [ - 'isoName' => 'Kalenjin', - 'nativeName' => 'Kalenjin', - ], - 'kok' => [ - 'isoName' => 'Konkani', - 'nativeName' => 'Konkani', - ], - 'ksb' => [ - 'isoName' => 'Shambala', - 'nativeName' => 'Shambala', - ], - 'ksf' => [ - 'isoName' => 'Bafia', - 'nativeName' => 'Bafia', - ], - 'ksh' => [ - 'isoName' => 'Colognian', - 'nativeName' => 'Colognian', - ], - 'lag' => [ - 'isoName' => 'Langi', - 'nativeName' => 'Langi', - ], - 'lij' => [ - 'isoName' => 'Ligurian', - 'nativeName' => 'Ligurian', - ], - 'lkt' => [ - 'isoName' => 'Lakota', - 'nativeName' => 'Lakota', - ], - 'lrc' => [ - 'isoName' => 'Northern Luri', - 'nativeName' => 'Northern Luri', - ], - 'luo' => [ - 'isoName' => 'Luo', - 'nativeName' => 'Luo', - ], - 'luy' => [ - 'isoName' => 'Luyia', - 'nativeName' => 'Luyia', - ], - 'lzh' => [ - 'isoName' => 'Literary Chinese', - 'nativeName' => 'Literary Chinese', - ], - 'mag' => [ - 'isoName' => 'Magahi', - 'nativeName' => 'Magahi', - ], - 'mai' => [ - 'isoName' => 'Maithili', - 'nativeName' => 'Maithili', - ], - 'mas' => [ - 'isoName' => 'Masai', - 'nativeName' => 'Masai', - ], - 'mer' => [ - 'isoName' => 'Meru', - 'nativeName' => 'Meru', - ], - 'mfe' => [ - 'isoName' => 'Morisyen', - 'nativeName' => 'Morisyen', - ], - 'mgh' => [ - 'isoName' => 'Makhuwa-Meetto', - 'nativeName' => 'Makhuwa-Meetto', - ], - 'mgo' => [ - 'isoName' => 'Metaʼ', - 'nativeName' => 'Metaʼ', - ], - 'mhr' => [ - 'isoName' => 'Eastern Mari', - 'nativeName' => 'Eastern Mari', - ], - 'miq' => [ - 'isoName' => 'Mískito', - 'nativeName' => 'Mískito', - ], - 'mjw' => [ - 'isoName' => 'Karbi', - 'nativeName' => 'Karbi', - ], - 'mni' => [ - 'isoName' => 'Manipuri', - 'nativeName' => 'Manipuri', - ], - 'mua' => [ - 'isoName' => 'Mundang', - 'nativeName' => 'Mundang', - ], - 'mzn' => [ - 'isoName' => 'Mazanderani', - 'nativeName' => 'Mazanderani', - ], - 'nan' => [ - 'isoName' => 'Min Nan Chinese', - 'nativeName' => 'Min Nan Chinese', - ], - 'naq' => [ - 'isoName' => 'Nama', - 'nativeName' => 'Nama', - ], - 'nds' => [ - 'isoName' => 'Low German', - 'nativeName' => 'Low German', - ], - 'nhn' => [ - 'isoName' => 'Central Nahuatl', - 'nativeName' => 'Central Nahuatl', - ], - 'niu' => [ - 'isoName' => 'Niuean', - 'nativeName' => 'Niuean', - ], - 'nmg' => [ - 'isoName' => 'Kwasio', - 'nativeName' => 'Kwasio', - ], - 'nnh' => [ - 'isoName' => 'Ngiemboon', - 'nativeName' => 'Ngiemboon', - ], - 'nso' => [ - 'isoName' => 'Northern Sotho', - 'nativeName' => 'Northern Sotho', - ], - 'nus' => [ - 'isoName' => 'Nuer', - 'nativeName' => 'Nuer', - ], - 'nyn' => [ - 'isoName' => 'Nyankole', - 'nativeName' => 'Nyankole', - ], - 'pap' => [ - 'isoName' => 'Papiamento', - 'nativeName' => 'Papiamento', - ], - 'prg' => [ - 'isoName' => 'Prussian', - 'nativeName' => 'Prussian', - ], - 'quz' => [ - 'isoName' => 'Cusco Quechua', - 'nativeName' => 'Cusco Quechua', - ], - 'raj' => [ - 'isoName' => 'Rajasthani', - 'nativeName' => 'Rajasthani', - ], - 'rof' => [ - 'isoName' => 'Rombo', - 'nativeName' => 'Rombo', - ], - 'rwk' => [ - 'isoName' => 'Rwa', - 'nativeName' => 'Rwa', - ], - 'sah' => [ - 'isoName' => 'Sakha', - 'nativeName' => 'Sakha', - ], - 'saq' => [ - 'isoName' => 'Samburu', - 'nativeName' => 'Samburu', - ], - 'sat' => [ - 'isoName' => 'Santali', - 'nativeName' => 'Santali', - ], - 'sbp' => [ - 'isoName' => 'Sangu', - 'nativeName' => 'Sangu', - ], - 'scr' => [ - 'isoName' => 'Serbo Croatian', - 'nativeName' => 'Serbo Croatian', - ], - 'seh' => [ - 'isoName' => 'Sena', - 'nativeName' => 'Sena', - ], - 'ses' => [ - 'isoName' => 'Koyraboro Senni', - 'nativeName' => 'Koyraboro Senni', - ], - 'sgs' => [ - 'isoName' => 'Samogitian', - 'nativeName' => 'Samogitian', - ], - 'shi' => [ - 'isoName' => 'Tachelhit', - 'nativeName' => 'Tachelhit', - ], - 'shn' => [ - 'isoName' => 'Shan', - 'nativeName' => 'Shan', - ], - 'shs' => [ - 'isoName' => 'Shuswap', - 'nativeName' => 'Shuswap', - ], - 'sid' => [ - 'isoName' => 'Sidamo', - 'nativeName' => 'Sidamo', - ], - 'smn' => [ - 'isoName' => 'Inari Sami', - 'nativeName' => 'Inari Sami', - ], - 'szl' => [ - 'isoName' => 'Silesian', - 'nativeName' => 'Silesian', - ], - 'tcy' => [ - 'isoName' => 'Tulu', - 'nativeName' => 'Tulu', - ], - 'teo' => [ - 'isoName' => 'Teso', - 'nativeName' => 'Teso', - ], - 'tet' => [ - 'isoName' => 'Tetum', - 'nativeName' => 'Tetum', - ], - 'the' => [ - 'isoName' => 'Chitwania Tharu', - 'nativeName' => 'Chitwania Tharu', - ], - 'tig' => [ - 'isoName' => 'Tigre', - 'nativeName' => 'Tigre', - ], - 'tlh' => [ - 'isoName' => 'Klingon', - 'nativeName' => 'tlhIngan Hol', - ], - 'tpi' => [ - 'isoName' => 'Tok Pisin', - 'nativeName' => 'Tok Pisin', - ], - 'twq' => [ - 'isoName' => 'Tasawaq', - 'nativeName' => 'Tasawaq', - ], - 'tzl' => [ - 'isoName' => 'Talossan', - 'nativeName' => 'Talossan', - ], - 'tzm' => [ - 'isoName' => 'Tamazight, Central Atlas', - 'nativeName' => 'ⵜⵎⴰⵣⵉⵖⵜ', - ], - 'unm' => [ - 'isoName' => 'Unami', - 'nativeName' => 'Unami', - ], - 'vai' => [ - 'isoName' => 'Vai', - 'nativeName' => 'Vai', - ], - 'vun' => [ - 'isoName' => 'Vunjo', - 'nativeName' => 'Vunjo', - ], - 'wae' => [ - 'isoName' => 'Walser', - 'nativeName' => 'Walser', - ], - 'wal' => [ - 'isoName' => 'Wolaytta', - 'nativeName' => 'Wolaytta', - ], - 'xog' => [ - 'isoName' => 'Soga', - 'nativeName' => 'Soga', - ], - 'yav' => [ - 'isoName' => 'Yangben', - 'nativeName' => 'Yangben', - ], - 'yue' => [ - 'isoName' => 'Cantonese', - 'nativeName' => 'Cantonese', - ], - 'yuw' => [ - 'isoName' => 'Yau (Morobe Province)', - 'nativeName' => 'Yau (Morobe Province)', - ], - 'zgh' => [ - 'isoName' => 'Standard Moroccan Tamazight', - 'nativeName' => 'Standard Moroccan Tamazight', - ], -]; diff --git a/vendor/nesbot/carbon/src/Carbon/List/regions.php b/vendor/nesbot/carbon/src/Carbon/List/regions.php deleted file mode 100644 index f241015..0000000 --- a/vendor/nesbot/carbon/src/Carbon/List/regions.php +++ /dev/null @@ -1,292 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * ISO 3166-2 short names. - * - * ⚠ Provided with No Warranty - * - * This list has no official value, and it's using short name, i.e. the first column of - * https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes - * - * Without the extra parenthesis unless a particular ambiguity in the list. - * - * For instance: - * - Falkland Islands and Malvinas both to FK, but we keep only the first for brevity and - * because there is no ambiguity in the list to justify longer name. - * - For Sint Maarten/Saint Martin not to have any confusion between FM and SX codes that - * are on the same island and so to be clear it's not referring to the whole island, - * south (dutch-speaking) and north (french-speaking) parentheses are kept for disambiguation. - * - For Virgin Islands, that can refer to either VG or VI, parentheses are also kept for - * disambiguation. - * - * We won't take into consideration any change request in this list unless there is an update - * in ISO 3166-2 itself that we need to align to. - * - * It's a purely geographical helper, state sovereignty is out of scope, for political - * complains you should address them directly to https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes - * - * Anyone needing official state names (such as the second column of the wikipedia page above) - * should seek for another tool, this list is not meant to provide long names. - */ -return [ - 'AD' => 'Andorra', - 'AE' => 'United Arab Emirates', - 'AF' => 'Afghanistan', - 'AG' => 'Antigua and Barbuda', - 'AI' => 'Anguilla', - 'AL' => 'Albania', - 'AM' => 'Armenia', - 'AO' => 'Angola', - 'AQ' => 'Antarctica', - 'AR' => 'Argentina', - 'AS' => 'American Samoa', - 'AT' => 'Austria', - 'AU' => 'Australia', - 'AW' => 'Aruba', - 'AX' => 'Åland Islands', - 'AZ' => 'Azerbaijan', - 'BA' => 'Bosnia and Herzegovina', - 'BB' => 'Barbados', - 'BD' => 'Bangladesh', - 'BE' => 'Belgium', - 'BF' => 'Burkina Faso', - 'BG' => 'Bulgaria', - 'BH' => 'Bahrain', - 'BI' => 'Burundi', - 'BJ' => 'Benin', - 'BL' => 'Saint Barthélemy', - 'BM' => 'Bermuda', - 'BN' => 'Brunei Darussalam', - 'BO' => 'Bolivia', - 'BQ' => 'Bonaire, Sint Eustatius and Saba', - 'BR' => 'Brazil', - 'BS' => 'Bahamas', - 'BT' => 'Bhutan', - 'BV' => 'Bouvet Island', - 'BW' => 'Botswana', - 'BY' => 'Belarus', - 'BZ' => 'Belize', - 'CA' => 'Canada', - 'CC' => 'Cocos (Keeling) Islands', - 'CD' => 'Congo, Democratic Republic of the', - 'CF' => 'Central African Republic', - 'CG' => 'Congo', - 'CH' => 'Switzerland', - 'CI' => 'Côte d\'Ivoire', - 'CK' => 'Cook Islands', - 'CL' => 'Chile', - 'CM' => 'Cameroon', - 'CN' => 'China', - 'CO' => 'Colombia', - 'CR' => 'Costa Rica', - 'CU' => 'Cuba', - 'CV' => 'Cabo Verde', - 'CW' => 'Curaçao', - 'CX' => 'Christmas Island', - 'CY' => 'Cyprus', - 'CZ' => 'Czechia', - 'DE' => 'Germany', - 'DJ' => 'Djibouti', - 'DK' => 'Denmark', - 'DM' => 'Dominica', - 'DO' => 'Dominican Republic', - 'DZ' => 'Algeria', - 'EC' => 'Ecuador', - 'EE' => 'Estonia', - 'EG' => 'Egypt', - 'EH' => 'Western Sahara', - 'ER' => 'Eritrea', - 'ES' => 'Spain', - 'ET' => 'Ethiopia', - 'FI' => 'Finland', - 'FJ' => 'Fiji', - 'FK' => 'Falkland Islands', - 'FM' => 'Micronesia', - 'FO' => 'Faroe Islands', - 'FR' => 'France', - 'GA' => 'Gabon', - 'GB' => 'United Kingdom of Great Britain and Northern Ireland', - 'GD' => 'Grenada', - 'GE' => 'Georgia', - 'GF' => 'French Guiana', - 'GG' => 'Guernsey', - 'GH' => 'Ghana', - 'GI' => 'Gibraltar', - 'GL' => 'Greenland', - 'GM' => 'Gambia', - 'GN' => 'Guinea', - 'GP' => 'Guadeloupe', - 'GQ' => 'Equatorial Guinea', - 'GR' => 'Greece', - 'GS' => 'South Georgia and the South Sandwich Islands', - 'GT' => 'Guatemala', - 'GU' => 'Guam', - 'GW' => 'Guinea-Bissau', - 'GY' => 'Guyana', - 'HK' => 'Hong Kong', - 'HM' => 'Heard Island and McDonald Islands', - 'HN' => 'Honduras', - 'HR' => 'Croatia', - 'HT' => 'Haiti', - 'HU' => 'Hungary', - 'ID' => 'Indonesia', - 'IE' => 'Ireland', - 'IL' => 'Israel', - 'IM' => 'Isle of Man', - 'IN' => 'India', - 'IO' => 'British Indian Ocean Territory', - 'IQ' => 'Iraq', - 'IR' => 'Iran', - 'IS' => 'Iceland', - 'IT' => 'Italy', - 'JE' => 'Jersey', - 'JM' => 'Jamaica', - 'JO' => 'Jordan', - 'JP' => 'Japan', - 'KE' => 'Kenya', - 'KG' => 'Kyrgyzstan', - 'KH' => 'Cambodia', - 'KI' => 'Kiribati', - 'KM' => 'Comoros', - 'KN' => 'Saint Kitts and Nevis', - 'KP' => 'Korea (Democratic People\'s Republic of)', - 'KR' => 'Korea, Republic of', - 'KW' => 'Kuwait', - 'KY' => 'Cayman Islands', - 'KZ' => 'Kazakhstan', - 'LA' => 'Lao People\'s Democratic Republic', - 'LB' => 'Lebanon', - 'LC' => 'Saint Lucia', - 'LI' => 'Liechtenstein', - 'LK' => 'Sri Lanka', - 'LR' => 'Liberia', - 'LS' => 'Lesotho', - 'LT' => 'Lithuania', - 'LU' => 'Luxembourg', - 'LV' => 'Latvia', - 'LY' => 'Libya', - 'MA' => 'Morocco', - 'MC' => 'Monaco', - 'MD' => 'Moldova', - 'ME' => 'Montenegro', - 'MF' => 'Saint Martin (French part)', - 'MG' => 'Madagascar', - 'MH' => 'Marshall Islands', - 'MK' => 'North Macedonia', - 'ML' => 'Mali', - 'MM' => 'Myanmar', - 'MN' => 'Mongolia', - 'MO' => 'Macao', - 'MP' => 'Northern Mariana Islands', - 'MQ' => 'Martinique', - 'MR' => 'Mauritania', - 'MS' => 'Montserrat', - 'MT' => 'Malta', - 'MU' => 'Mauritius', - 'MV' => 'Maldives', - 'MW' => 'Malawi', - 'MX' => 'Mexico', - 'MY' => 'Malaysia', - 'MZ' => 'Mozambique', - 'NA' => 'Namibia', - 'NC' => 'New Caledonia', - 'NE' => 'Niger', - 'NF' => 'Norfolk Island', - 'NG' => 'Nigeria', - 'NI' => 'Nicaragua', - 'NL' => 'Netherlands', - 'NO' => 'Norway', - 'NP' => 'Nepal', - 'NR' => 'Nauru', - 'NU' => 'Niue', - 'NZ' => 'New Zealand', - 'OM' => 'Oman', - 'PA' => 'Panama', - 'PE' => 'Peru', - 'PF' => 'French Polynesia', - 'PG' => 'Papua New Guinea', - 'PH' => 'Philippines', - 'PK' => 'Pakistan', - 'PL' => 'Poland', - 'PM' => 'Saint Pierre and Miquelon', - 'PN' => 'Pitcairn', - 'PR' => 'Puerto Rico', - 'PS' => 'Palestine', - 'PT' => 'Portugal', - 'PW' => 'Palau', - 'PY' => 'Paraguay', - 'QA' => 'Qatar', - 'RE' => 'Réunion', - 'RO' => 'Romania', - 'RS' => 'Serbia', - 'RU' => 'Russian Federation', - 'RW' => 'Rwanda', - 'SA' => 'Saudi Arabia', - 'SB' => 'Solomon Islands', - 'SC' => 'Seychelles', - 'SD' => 'Sudan', - 'SE' => 'Sweden', - 'SG' => 'Singapore', - 'SH' => 'Saint Helena, Ascension and Tristan da Cunha', - 'SI' => 'Slovenia', - 'SJ' => 'Svalbard and Jan Mayen', - 'SK' => 'Slovakia', - 'SL' => 'Sierra Leone', - 'SM' => 'San Marino', - 'SN' => 'Senegal', - 'SO' => 'Somalia', - 'SR' => 'Suriname', - 'SS' => 'South Sudan', - 'ST' => 'Sao Tome and Principe', - 'SV' => 'El Salvador', - 'SX' => 'Sint Maarten (Dutch part)', - 'SY' => 'Syrian Arab Republic', - 'SZ' => 'Eswatini', - 'TC' => 'Turks and Caicos Islands', - 'TD' => 'Chad', - 'TF' => 'French Southern Territories', - 'TG' => 'Togo', - 'TH' => 'Thailand', - 'TJ' => 'Tajikistan', - 'TK' => 'Tokelau', - 'TL' => 'Timor-Leste', - 'TM' => 'Turkmenistan', - 'TN' => 'Tunisia', - 'TO' => 'Tonga', - 'TR' => 'Turkey', - 'TT' => 'Trinidad and Tobago', - 'TV' => 'Tuvalu', - 'TW' => 'Taiwan', - 'TZ' => 'Tanzania', - 'UA' => 'Ukraine', - 'UG' => 'Uganda', - 'UM' => 'United States Minor Outlying Islands', - 'US' => 'United States of America', - 'UY' => 'Uruguay', - 'UZ' => 'Uzbekistan', - 'VA' => 'Holy See', - 'VC' => 'Saint Vincent and the Grenadines', - 'VE' => 'Venezuela', - 'VG' => 'Virgin Islands (British)', - 'VI' => 'Virgin Islands (U.S.)', - 'VN' => 'Viet Nam', - 'VU' => 'Vanuatu', - 'WF' => 'Wallis and Futuna', - 'WS' => 'Samoa', - 'YE' => 'Yemen', - 'YT' => 'Mayotte', - 'ZA' => 'South Africa', - 'ZM' => 'Zambia', - 'ZW' => 'Zimbabwe', -]; diff --git a/vendor/nesbot/carbon/src/Carbon/MessageFormatter/MessageFormatterMapper.php b/vendor/nesbot/carbon/src/Carbon/MessageFormatter/MessageFormatterMapper.php deleted file mode 100644 index 64b5d97..0000000 --- a/vendor/nesbot/carbon/src/Carbon/MessageFormatter/MessageFormatterMapper.php +++ /dev/null @@ -1,46 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\MessageFormatter; - -use ReflectionMethod; -use Symfony\Component\Translation\Formatter\MessageFormatter; -use Symfony\Component\Translation\Formatter\MessageFormatterInterface; - -// @codeCoverageIgnoreStart -$transMethod = new ReflectionMethod(MessageFormatterInterface::class, 'format'); - -require $transMethod->getParameters()[0]->hasType() - ? __DIR__.'/../../../lazy/Carbon/MessageFormatter/MessageFormatterMapperStrongType.php' - : __DIR__.'/../../../lazy/Carbon/MessageFormatter/MessageFormatterMapperWeakType.php'; -// @codeCoverageIgnoreEnd - -final class MessageFormatterMapper extends LazyMessageFormatter -{ - /** - * Wrapped formatter. - * - * @var MessageFormatterInterface - */ - protected $formatter; - - public function __construct(?MessageFormatterInterface $formatter = null) - { - $this->formatter = $formatter ?? new MessageFormatter(); - } - - protected function transformLocale(?string $locale): ?string - { - return $locale ? preg_replace('/[_@][A-Za-z][a-z]{2,}/', '', $locale) : $locale; - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Month.php b/vendor/nesbot/carbon/src/Carbon/Month.php deleted file mode 100644 index 47b279f..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Month.php +++ /dev/null @@ -1,79 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon; - -use Carbon\Exceptions\InvalidFormatException; - -enum Month: int -{ - // Using constants is only safe starting from PHP 8.2 - case January = 1; // CarbonInterface::JANUARY - case February = 2; // CarbonInterface::FEBRUARY - case March = 3; // CarbonInterface::MARCH - case April = 4; // CarbonInterface::APRIL - case May = 5; // CarbonInterface::MAY - case June = 6; // CarbonInterface::JUNE - case July = 7; // CarbonInterface::JULY - case August = 8; // CarbonInterface::AUGUST - case September = 9; // CarbonInterface::SEPTEMBER - case October = 10; // CarbonInterface::OCTOBER - case November = 11; // CarbonInterface::NOVEMBER - case December = 12; // CarbonInterface::DECEMBER - - public static function int(self|int|null $value): ?int - { - return $value instanceof self ? $value->value : $value; - } - - public static function fromNumber(int $number): self - { - $month = $number % CarbonInterface::MONTHS_PER_YEAR; - - return self::from($month + ($month < 1 ? CarbonInterface::MONTHS_PER_YEAR : 0)); - } - - public static function fromName(string $name, ?string $locale = null): self - { - try { - return self::from(CarbonImmutable::parseFromLocale("$name 1", $locale)->month); - } catch (InvalidFormatException $exception) { - // Possibly current language expect a dot after short name, but it's missing - if ($locale !== null && !mb_strlen($name) < 4 && !str_ends_with($name, '.')) { - try { - return self::from(CarbonImmutable::parseFromLocale("$name. 1", $locale)->month); - } catch (InvalidFormatException $e) { - // Throw previous error - } - } - - throw $exception; - } - } - - public function ofTheYear(CarbonImmutable|int|null $now = null): CarbonImmutable - { - if (\is_int($now)) { - return CarbonImmutable::create($now, $this->value); - } - - $modifier = $this->name.' 1st'; - - return $now?->modify($modifier) ?? new CarbonImmutable($modifier); - } - - public function locale(string $locale, ?CarbonImmutable $now = null): CarbonImmutable - { - return $this->ofTheYear($now)->locale($locale); - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/PHPStan/MacroExtension.php b/vendor/nesbot/carbon/src/Carbon/PHPStan/MacroExtension.php deleted file mode 100644 index 7327586..0000000 --- a/vendor/nesbot/carbon/src/Carbon/PHPStan/MacroExtension.php +++ /dev/null @@ -1,137 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\PHPStan; - -use Carbon\CarbonInterface; -use Carbon\FactoryImmutable; -use Closure; -use InvalidArgumentException; -use PHPStan\Reflection\ClassReflection; -use PHPStan\Reflection\MethodReflection; -use PHPStan\Reflection\MethodsClassReflectionExtension; -use PHPStan\Reflection\ReflectionProvider; -use PHPStan\Type\ClosureTypeFactory; -use ReflectionFunction; -use ReflectionMethod; -use stdClass; -use Throwable; - -/** - * Class MacroExtension. - * - * @codeCoverageIgnore Pure PHPStan wrapper. - */ -final class MacroExtension implements MethodsClassReflectionExtension -{ - /** - * @var ReflectionProvider - */ - protected $reflectionProvider; - - /** - * @var ClosureTypeFactory - */ - protected $closureTypeFactory; - - /** - * Extension constructor. - * - * @param ReflectionProvider $reflectionProvider - * @param ClosureTypeFactory $closureTypeFactory - */ - public function __construct( - ReflectionProvider $reflectionProvider, - ClosureTypeFactory $closureTypeFactory - ) { - $this->reflectionProvider = $reflectionProvider; - $this->closureTypeFactory = $closureTypeFactory; - } - - /** - * {@inheritdoc} - */ - public function hasMethod(ClassReflection $classReflection, string $methodName): bool - { - if ( - $classReflection->getName() !== CarbonInterface::class && - !$classReflection->isSubclassOf(CarbonInterface::class) - ) { - return false; - } - - $className = $classReflection->getName(); - - return \is_callable([$className, 'hasMacro']) && - $className::hasMacro($methodName); - } - - /** - * {@inheritdoc} - */ - public function getMethod(ClassReflection $classReflection, string $methodName): MethodReflection - { - $macros = FactoryImmutable::getDefaultInstance()->getSettings()['macros'] ?? []; - $macro = $macros[$methodName] ?? throw new InvalidArgumentException("Macro '$methodName' not found"); - $static = false; - $final = false; - $deprecated = false; - $docComment = null; - - if (\is_array($macro) && \count($macro) === 2 && \is_string($macro[1])) { - \assert($macro[1] !== ''); - - $reflection = new ReflectionMethod($macro[0], $macro[1]); - $closure = \is_object($macro[0]) ? $reflection->getClosure($macro[0]) : $reflection->getClosure(); - - $static = $reflection->isStatic(); - $final = $reflection->isFinal(); - $deprecated = $reflection->isDeprecated(); - $docComment = $reflection->getDocComment() ?: null; - } elseif (\is_string($macro)) { - $reflection = new ReflectionFunction($macro); - $closure = $reflection->getClosure(); - $deprecated = $reflection->isDeprecated(); - $docComment = $reflection->getDocComment() ?: null; - } elseif ($macro instanceof Closure) { - $closure = $macro; - - try { - $boundClosure = Closure::bind($closure, new stdClass()); - $static = (!$boundClosure || (new ReflectionFunction($boundClosure))->getClosureThis() === null); - } catch (Throwable) { - $static = true; - } - - $reflection = new ReflectionFunction($macro); - $deprecated = $reflection->isDeprecated(); - $docComment = $reflection->getDocComment() ?: null; - } - - if (!isset($closure)) { - throw new InvalidArgumentException('Could not create reflection from the spec given'); // @codeCoverageIgnore - } - - $closureType = $this->closureTypeFactory->fromClosureObject($closure); - - return new MacroMethodReflection( - $classReflection, - $methodName, - $closureType, - $static, - $final, - $deprecated, - $docComment, - ); - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/PHPStan/MacroMethodReflection.php b/vendor/nesbot/carbon/src/Carbon/PHPStan/MacroMethodReflection.php deleted file mode 100644 index b710f54..0000000 --- a/vendor/nesbot/carbon/src/Carbon/PHPStan/MacroMethodReflection.php +++ /dev/null @@ -1,124 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\PHPStan; - -use PHPStan\Reflection\ClassReflection; -use PHPStan\Reflection\MethodReflection; -use PHPStan\Reflection\ParametersAcceptor; -use PHPStan\TrinaryLogic; -use PHPStan\Type\Type; - -use function preg_match; - -class MacroMethodReflection implements MethodReflection -{ - private ClassReflection $declaringClass; - private string $methodName; - private ParametersAcceptor $macroClosureType; - private bool $static; - private bool $final; - private bool $deprecated; - private ?string $docComment; - - public function __construct( - ClassReflection $declaringClass, - string $methodName, - ParametersAcceptor $macroClosureType, - bool $static, - bool $final, - bool $deprecated, - ?string $docComment - ) { - $this->declaringClass = $declaringClass; - $this->methodName = $methodName; - $this->macroClosureType = $macroClosureType; - $this->static = $static; - $this->final = $final; - $this->deprecated = $deprecated; - $this->docComment = $docComment; - } - - public function getDeclaringClass(): ClassReflection - { - return $this->declaringClass; - } - - public function isStatic(): bool - { - return $this->static; - } - - public function isPrivate(): bool - { - return false; - } - - public function isPublic(): bool - { - return true; - } - - public function getDocComment(): ?string - { - return $this->docComment; - } - - public function getName(): string - { - return $this->methodName; - } - - public function getPrototype(): \PHPStan\Reflection\ClassMemberReflection - { - return $this; - } - - public function getVariants(): array - { - return [$this->macroClosureType]; - } - - public function isDeprecated(): TrinaryLogic - { - return TrinaryLogic::createFromBoolean( - $this->deprecated || - preg_match('/@deprecated/i', $this->getDocComment() ?: '') - ); - } - - public function getDeprecatedDescription(): ?string - { - return null; - } - - public function isFinal(): TrinaryLogic - { - return TrinaryLogic::createFromBoolean($this->final); - } - - public function isInternal(): TrinaryLogic - { - return TrinaryLogic::createNo(); - } - - public function getThrowType(): ?Type - { - return null; - } - - public function hasSideEffects(): TrinaryLogic - { - return TrinaryLogic::createMaybe(); - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Traits/Boundaries.php b/vendor/nesbot/carbon/src/Carbon/Traits/Boundaries.php deleted file mode 100644 index b21b9c5..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Traits/Boundaries.php +++ /dev/null @@ -1,469 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Traits; - -use Carbon\Exceptions\UnknownUnitException; -use Carbon\Unit; -use Carbon\WeekDay; - -/** - * Trait Boundaries. - * - * startOf, endOf and derived method for each unit. - * - * Depends on the following properties: - * - * @property int $year - * @property int $month - * @property int $daysInMonth - * @property int $quarter - * - * Depends on the following methods: - * - * @method $this setTime(int $hour, int $minute, int $second = 0, int $microseconds = 0) - * @method $this setDate(int $year, int $month, int $day) - * @method $this addMonths(int $value = 1) - */ -trait Boundaries -{ - /** - * Resets the time to 00:00:00 start of day - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->startOfDay(); - * ``` - * - * @return static - */ - public function startOfDay() - { - return $this->setTime(0, 0, 0, 0); - } - - /** - * Resets the time to 23:59:59.999999 end of day - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->endOfDay(); - * ``` - * - * @return static - */ - public function endOfDay() - { - return $this->setTime(static::HOURS_PER_DAY - 1, static::MINUTES_PER_HOUR - 1, static::SECONDS_PER_MINUTE - 1, static::MICROSECONDS_PER_SECOND - 1); - } - - /** - * Resets the date to the first day of the month and the time to 00:00:00 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->startOfMonth(); - * ``` - * - * @return static - */ - public function startOfMonth() - { - return $this->setDate($this->year, $this->month, 1)->startOfDay(); - } - - /** - * Resets the date to end of the month and time to 23:59:59.999999 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->endOfMonth(); - * ``` - * - * @return static - */ - public function endOfMonth() - { - return $this->setDate($this->year, $this->month, $this->daysInMonth)->endOfDay(); - } - - /** - * Resets the date to the first day of the quarter and the time to 00:00:00 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->startOfQuarter(); - * ``` - * - * @return static - */ - public function startOfQuarter() - { - $month = ($this->quarter - 1) * static::MONTHS_PER_QUARTER + 1; - - return $this->setDate($this->year, $month, 1)->startOfDay(); - } - - /** - * Resets the date to end of the quarter and time to 23:59:59.999999 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->endOfQuarter(); - * ``` - * - * @return static - */ - public function endOfQuarter() - { - return $this->startOfQuarter()->addMonths(static::MONTHS_PER_QUARTER - 1)->endOfMonth(); - } - - /** - * Resets the date to the first day of the year and the time to 00:00:00 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->startOfYear(); - * ``` - * - * @return static - */ - public function startOfYear() - { - return $this->setDate($this->year, 1, 1)->startOfDay(); - } - - /** - * Resets the date to end of the year and time to 23:59:59.999999 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->endOfYear(); - * ``` - * - * @return static - */ - public function endOfYear() - { - return $this->setDate($this->year, 12, 31)->endOfDay(); - } - - /** - * Resets the date to the first day of the decade and the time to 00:00:00 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->startOfDecade(); - * ``` - * - * @return static - */ - public function startOfDecade() - { - $year = $this->year - $this->year % static::YEARS_PER_DECADE; - - return $this->setDate($year, 1, 1)->startOfDay(); - } - - /** - * Resets the date to end of the decade and time to 23:59:59.999999 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->endOfDecade(); - * ``` - * - * @return static - */ - public function endOfDecade() - { - $year = $this->year - $this->year % static::YEARS_PER_DECADE + static::YEARS_PER_DECADE - 1; - - return $this->setDate($year, 12, 31)->endOfDay(); - } - - /** - * Resets the date to the first day of the century and the time to 00:00:00 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->startOfCentury(); - * ``` - * - * @return static - */ - public function startOfCentury() - { - $year = $this->year - ($this->year - 1) % static::YEARS_PER_CENTURY; - - return $this->setDate($year, 1, 1)->startOfDay(); - } - - /** - * Resets the date to end of the century and time to 23:59:59.999999 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->endOfCentury(); - * ``` - * - * @return static - */ - public function endOfCentury() - { - $year = $this->year - 1 - ($this->year - 1) % static::YEARS_PER_CENTURY + static::YEARS_PER_CENTURY; - - return $this->setDate($year, 12, 31)->endOfDay(); - } - - /** - * Resets the date to the first day of the millennium and the time to 00:00:00 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->startOfMillennium(); - * ``` - * - * @return static - */ - public function startOfMillennium() - { - $year = $this->year - ($this->year - 1) % static::YEARS_PER_MILLENNIUM; - - return $this->setDate($year, 1, 1)->startOfDay(); - } - - /** - * Resets the date to end of the millennium and time to 23:59:59.999999 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->endOfMillennium(); - * ``` - * - * @return static - */ - public function endOfMillennium() - { - $year = $this->year - 1 - ($this->year - 1) % static::YEARS_PER_MILLENNIUM + static::YEARS_PER_MILLENNIUM; - - return $this->setDate($year, 12, 31)->endOfDay(); - } - - /** - * Resets the date to the first day of week (defined in $weekStartsAt) and the time to 00:00:00 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->startOfWeek() . "\n"; - * echo Carbon::parse('2018-07-25 12:45:16')->locale('ar')->startOfWeek() . "\n"; - * echo Carbon::parse('2018-07-25 12:45:16')->startOfWeek(Carbon::SUNDAY) . "\n"; - * ``` - * - * @param WeekDay|int|null $weekStartsAt optional start allow you to specify the day of week to use to start the week - * - * @return static - */ - public function startOfWeek(WeekDay|int|null $weekStartsAt = null): static - { - return $this - ->subDays( - (static::DAYS_PER_WEEK + $this->dayOfWeek - (WeekDay::int($weekStartsAt) ?? $this->firstWeekDay)) % - static::DAYS_PER_WEEK, - ) - ->startOfDay(); - } - - /** - * Resets the date to end of week (defined in $weekEndsAt) and time to 23:59:59.999999 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->endOfWeek() . "\n"; - * echo Carbon::parse('2018-07-25 12:45:16')->locale('ar')->endOfWeek() . "\n"; - * echo Carbon::parse('2018-07-25 12:45:16')->endOfWeek(Carbon::SATURDAY) . "\n"; - * ``` - * - * @param WeekDay|int|null $weekEndsAt optional end allow you to specify the day of week to use to end the week - * - * @return static - */ - public function endOfWeek(WeekDay|int|null $weekEndsAt = null): static - { - return $this - ->addDays( - (static::DAYS_PER_WEEK - $this->dayOfWeek + (WeekDay::int($weekEndsAt) ?? $this->lastWeekDay)) % - static::DAYS_PER_WEEK, - ) - ->endOfDay(); - } - - /** - * Modify to start of current hour, minutes and seconds become 0 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->startOfHour(); - * ``` - */ - public function startOfHour(): static - { - return $this->setTime($this->hour, 0, 0, 0); - } - - /** - * Modify to end of current hour, minutes and seconds become 59 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->endOfHour(); - * ``` - */ - public function endOfHour(): static - { - return $this->setTime($this->hour, static::MINUTES_PER_HOUR - 1, static::SECONDS_PER_MINUTE - 1, static::MICROSECONDS_PER_SECOND - 1); - } - - /** - * Modify to start of current minute, seconds become 0 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->startOfMinute(); - * ``` - */ - public function startOfMinute(): static - { - return $this->setTime($this->hour, $this->minute, 0, 0); - } - - /** - * Modify to end of current minute, seconds become 59 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16')->endOfMinute(); - * ``` - */ - public function endOfMinute(): static - { - return $this->setTime($this->hour, $this->minute, static::SECONDS_PER_MINUTE - 1, static::MICROSECONDS_PER_SECOND - 1); - } - - /** - * Modify to start of current second, microseconds become 0 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16.334455') - * ->startOfSecond() - * ->format('H:i:s.u'); - * ``` - */ - public function startOfSecond(): static - { - return $this->setTime($this->hour, $this->minute, $this->second, 0); - } - - /** - * Modify to end of current second, microseconds become 999999 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16.334455') - * ->endOfSecond() - * ->format('H:i:s.u'); - * ``` - */ - public function endOfSecond(): static - { - return $this->setTime($this->hour, $this->minute, $this->second, static::MICROSECONDS_PER_SECOND - 1); - } - - /** - * Modify to start of current millisecond, microseconds such as 12345 become 123000 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16.334455') - * ->startOfSecond() - * ->format('H:i:s.u'); - * ``` - */ - public function startOfMillisecond(): static - { - $millisecond = (int) floor($this->micro / 1000); - - return $this->setTime($this->hour, $this->minute, $this->second, $millisecond * 1000); - } - - /** - * Modify to end of current millisecond, microseconds such as 12345 become 123999 - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16.334455') - * ->endOfSecond() - * ->format('H:i:s.u'); - * ``` - */ - public function endOfMillisecond(): static - { - $millisecond = (int) floor($this->micro / 1000); - - return $this->setTime($this->hour, $this->minute, $this->second, $millisecond * 1000 + 999); - } - - /** - * Modify to start of current given unit. - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16.334455') - * ->startOf(Unit::Month) - * ->endOf(Unit::Week, Carbon::FRIDAY); - * ``` - */ - public function startOf(Unit|string $unit, mixed ...$params): static - { - $ucfUnit = ucfirst($unit instanceof Unit ? $unit->value : static::singularUnit($unit)); - $method = "startOf$ucfUnit"; - if (!method_exists($this, $method)) { - throw new UnknownUnitException($unit); - } - - return $this->$method(...$params); - } - - /** - * Modify to end of current given unit. - * - * @example - * ``` - * echo Carbon::parse('2018-07-25 12:45:16.334455') - * ->startOf(Unit::Month) - * ->endOf(Unit::Week, Carbon::FRIDAY); - * ``` - */ - public function endOf(Unit|string $unit, mixed ...$params): static - { - $ucfUnit = ucfirst($unit instanceof Unit ? $unit->value : static::singularUnit($unit)); - $method = "endOf$ucfUnit"; - if (!method_exists($this, $method)) { - throw new UnknownUnitException($unit); - } - - return $this->$method(...$params); - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Traits/Cast.php b/vendor/nesbot/carbon/src/Carbon/Traits/Cast.php deleted file mode 100644 index 4c00e42..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Traits/Cast.php +++ /dev/null @@ -1,48 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Traits; - -use Carbon\Exceptions\InvalidCastException; -use DateTimeInterface; - -/** - * Trait Cast. - * - * Utils to cast into an other class. - */ -trait Cast -{ - /** - * Cast the current instance into the given class. - * - * @template T - * - * @param class-string $className The $className::instance() method will be called to cast the current object. - * - * @return T - */ - public function cast(string $className): mixed - { - if (!method_exists($className, 'instance')) { - if (is_a($className, DateTimeInterface::class, true)) { - return $className::createFromFormat('U.u', $this->rawFormat('U.u')) - ->setTimezone($this->getTimezone()); - } - - throw new InvalidCastException("$className has not the instance() method needed to cast the date."); - } - - return $className::instance($this); - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Traits/Comparison.php b/vendor/nesbot/carbon/src/Carbon/Traits/Comparison.php deleted file mode 100644 index 87e1698..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Traits/Comparison.php +++ /dev/null @@ -1,1333 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Traits; - -use BackedEnum; -use BadMethodCallException; -use Carbon\CarbonConverterInterface; -use Carbon\CarbonInterface; -use Carbon\Exceptions\BadComparisonUnitException; -use Carbon\FactoryImmutable; -use Carbon\Month; -use Carbon\Unit; -use Carbon\WeekDay; -use Closure; -use DateInterval; -use DateTimeInterface; -use InvalidArgumentException; - -/** - * Trait Comparison. - * - * Comparison utils and testers. All the following methods return booleans. - * nowWithSameTz - * - * Depends on the following methods: - * - * @method static resolveCarbon($date) - * @method static copy() - * @method static nowWithSameTz() - * @method static static yesterday($timezone = null) - * @method static static tomorrow($timezone = null) - */ -trait Comparison -{ - protected bool $endOfTime = false; - - protected bool $startOfTime = false; - - /** - * Determines if the instance is equal to another - * - * @example - * ``` - * Carbon::parse('2018-07-25 12:45:16')->eq('2018-07-25 12:45:16'); // true - * Carbon::parse('2018-07-25 12:45:16')->eq(Carbon::parse('2018-07-25 12:45:16')); // true - * Carbon::parse('2018-07-25 12:45:16')->eq('2018-07-25 12:45:17'); // false - * ``` - * - * @see equalTo() - */ - public function eq(DateTimeInterface|string $date): bool - { - return $this->equalTo($date); - } - - /** - * Determines if the instance is equal to another - * - * @example - * ``` - * Carbon::parse('2018-07-25 12:45:16')->equalTo('2018-07-25 12:45:16'); // true - * Carbon::parse('2018-07-25 12:45:16')->equalTo(Carbon::parse('2018-07-25 12:45:16')); // true - * Carbon::parse('2018-07-25 12:45:16')->equalTo('2018-07-25 12:45:17'); // false - * ``` - */ - public function equalTo(DateTimeInterface|string $date): bool - { - return $this == $this->resolveCarbon($date); - } - - /** - * Determines if the instance is not equal to another - * - * @example - * ``` - * Carbon::parse('2018-07-25 12:45:16')->ne('2018-07-25 12:45:16'); // false - * Carbon::parse('2018-07-25 12:45:16')->ne(Carbon::parse('2018-07-25 12:45:16')); // false - * Carbon::parse('2018-07-25 12:45:16')->ne('2018-07-25 12:45:17'); // true - * ``` - * - * @see notEqualTo() - */ - public function ne(DateTimeInterface|string $date): bool - { - return $this->notEqualTo($date); - } - - /** - * Determines if the instance is not equal to another - * - * @example - * ``` - * Carbon::parse('2018-07-25 12:45:16')->notEqualTo('2018-07-25 12:45:16'); // false - * Carbon::parse('2018-07-25 12:45:16')->notEqualTo(Carbon::parse('2018-07-25 12:45:16')); // false - * Carbon::parse('2018-07-25 12:45:16')->notEqualTo('2018-07-25 12:45:17'); // true - * ``` - */ - public function notEqualTo(DateTimeInterface|string $date): bool - { - return !$this->equalTo($date); - } - - /** - * Determines if the instance is greater (after) than another - * - * @example - * ``` - * Carbon::parse('2018-07-25 12:45:16')->gt('2018-07-25 12:45:15'); // true - * Carbon::parse('2018-07-25 12:45:16')->gt('2018-07-25 12:45:16'); // false - * Carbon::parse('2018-07-25 12:45:16')->gt('2018-07-25 12:45:17'); // false - * ``` - * - * @see greaterThan() - */ - public function gt(DateTimeInterface|string $date): bool - { - return $this->greaterThan($date); - } - - /** - * Determines if the instance is greater (after) than another - * - * @example - * ``` - * Carbon::parse('2018-07-25 12:45:16')->greaterThan('2018-07-25 12:45:15'); // true - * Carbon::parse('2018-07-25 12:45:16')->greaterThan('2018-07-25 12:45:16'); // false - * Carbon::parse('2018-07-25 12:45:16')->greaterThan('2018-07-25 12:45:17'); // false - * ``` - */ - public function greaterThan(DateTimeInterface|string $date): bool - { - return $this > $this->resolveCarbon($date); - } - - /** - * Determines if the instance is greater (after) than another - * - * @example - * ``` - * Carbon::parse('2018-07-25 12:45:16')->isAfter('2018-07-25 12:45:15'); // true - * Carbon::parse('2018-07-25 12:45:16')->isAfter('2018-07-25 12:45:16'); // false - * Carbon::parse('2018-07-25 12:45:16')->isAfter('2018-07-25 12:45:17'); // false - * ``` - * - * @see greaterThan() - */ - public function isAfter(DateTimeInterface|string $date): bool - { - return $this->greaterThan($date); - } - - /** - * Determines if the instance is greater (after) than or equal to another - * - * @example - * ``` - * Carbon::parse('2018-07-25 12:45:16')->gte('2018-07-25 12:45:15'); // true - * Carbon::parse('2018-07-25 12:45:16')->gte('2018-07-25 12:45:16'); // true - * Carbon::parse('2018-07-25 12:45:16')->gte('2018-07-25 12:45:17'); // false - * ``` - * - * @see greaterThanOrEqualTo() - */ - public function gte(DateTimeInterface|string $date): bool - { - return $this->greaterThanOrEqualTo($date); - } - - /** - * Determines if the instance is greater (after) than or equal to another - * - * @example - * ``` - * Carbon::parse('2018-07-25 12:45:16')->greaterThanOrEqualTo('2018-07-25 12:45:15'); // true - * Carbon::parse('2018-07-25 12:45:16')->greaterThanOrEqualTo('2018-07-25 12:45:16'); // true - * Carbon::parse('2018-07-25 12:45:16')->greaterThanOrEqualTo('2018-07-25 12:45:17'); // false - * ``` - */ - public function greaterThanOrEqualTo(DateTimeInterface|string $date): bool - { - return $this >= $this->resolveCarbon($date); - } - - /** - * Determines if the instance is less (before) than another - * - * @example - * ``` - * Carbon::parse('2018-07-25 12:45:16')->lt('2018-07-25 12:45:15'); // false - * Carbon::parse('2018-07-25 12:45:16')->lt('2018-07-25 12:45:16'); // false - * Carbon::parse('2018-07-25 12:45:16')->lt('2018-07-25 12:45:17'); // true - * ``` - * - * @see lessThan() - */ - public function lt(DateTimeInterface|string $date): bool - { - return $this->lessThan($date); - } - - /** - * Determines if the instance is less (before) than another - * - * @example - * ``` - * Carbon::parse('2018-07-25 12:45:16')->lessThan('2018-07-25 12:45:15'); // false - * Carbon::parse('2018-07-25 12:45:16')->lessThan('2018-07-25 12:45:16'); // false - * Carbon::parse('2018-07-25 12:45:16')->lessThan('2018-07-25 12:45:17'); // true - * ``` - */ - public function lessThan(DateTimeInterface|string $date): bool - { - return $this < $this->resolveCarbon($date); - } - - /** - * Determines if the instance is less (before) than another - * - * @example - * ``` - * Carbon::parse('2018-07-25 12:45:16')->isBefore('2018-07-25 12:45:15'); // false - * Carbon::parse('2018-07-25 12:45:16')->isBefore('2018-07-25 12:45:16'); // false - * Carbon::parse('2018-07-25 12:45:16')->isBefore('2018-07-25 12:45:17'); // true - * ``` - * - * @see lessThan() - */ - public function isBefore(DateTimeInterface|string $date): bool - { - return $this->lessThan($date); - } - - /** - * Determines if the instance is less (before) or equal to another - * - * @example - * ``` - * Carbon::parse('2018-07-25 12:45:16')->lte('2018-07-25 12:45:15'); // false - * Carbon::parse('2018-07-25 12:45:16')->lte('2018-07-25 12:45:16'); // true - * Carbon::parse('2018-07-25 12:45:16')->lte('2018-07-25 12:45:17'); // true - * ``` - * - * @see lessThanOrEqualTo() - */ - public function lte(DateTimeInterface|string $date): bool - { - return $this->lessThanOrEqualTo($date); - } - - /** - * Determines if the instance is less (before) or equal to another - * - * @example - * ``` - * Carbon::parse('2018-07-25 12:45:16')->lessThanOrEqualTo('2018-07-25 12:45:15'); // false - * Carbon::parse('2018-07-25 12:45:16')->lessThanOrEqualTo('2018-07-25 12:45:16'); // true - * Carbon::parse('2018-07-25 12:45:16')->lessThanOrEqualTo('2018-07-25 12:45:17'); // true - * ``` - */ - public function lessThanOrEqualTo(DateTimeInterface|string $date): bool - { - return $this <= $this->resolveCarbon($date); - } - - /** - * Determines if the instance is between two others. - * - * The third argument allow you to specify if bounds are included or not (true by default) - * but for when you including/excluding bounds may produce different results in your application, - * we recommend to use the explicit methods ->betweenIncluded() or ->betweenExcluded() instead. - * - * @example - * ``` - * Carbon::parse('2018-07-25')->between('2018-07-14', '2018-08-01'); // true - * Carbon::parse('2018-07-25')->between('2018-08-01', '2018-08-20'); // false - * Carbon::parse('2018-07-25')->between('2018-07-25', '2018-08-01'); // true - * Carbon::parse('2018-07-25')->between('2018-07-25', '2018-08-01', false); // false - * ``` - * - * @param bool $equal Indicates if an equal to comparison should be done - */ - public function between(DateTimeInterface|string $date1, DateTimeInterface|string $date2, bool $equal = true): bool - { - $date1 = $this->resolveCarbon($date1); - $date2 = $this->resolveCarbon($date2); - - if ($date1->greaterThan($date2)) { - [$date1, $date2] = [$date2, $date1]; - } - - if ($equal) { - return $this >= $date1 && $this <= $date2; - } - - return $this > $date1 && $this < $date2; - } - - /** - * Determines if the instance is between two others, bounds included. - * - * @example - * ``` - * Carbon::parse('2018-07-25')->betweenIncluded('2018-07-14', '2018-08-01'); // true - * Carbon::parse('2018-07-25')->betweenIncluded('2018-08-01', '2018-08-20'); // false - * Carbon::parse('2018-07-25')->betweenIncluded('2018-07-25', '2018-08-01'); // true - * ``` - */ - public function betweenIncluded(DateTimeInterface|string $date1, DateTimeInterface|string $date2): bool - { - return $this->between($date1, $date2, true); - } - - /** - * Determines if the instance is between two others, bounds excluded. - * - * @example - * ``` - * Carbon::parse('2018-07-25')->betweenExcluded('2018-07-14', '2018-08-01'); // true - * Carbon::parse('2018-07-25')->betweenExcluded('2018-08-01', '2018-08-20'); // false - * Carbon::parse('2018-07-25')->betweenExcluded('2018-07-25', '2018-08-01'); // false - * ``` - */ - public function betweenExcluded(DateTimeInterface|string $date1, DateTimeInterface|string $date2): bool - { - return $this->between($date1, $date2, false); - } - - /** - * Determines if the instance is between two others - * - * @example - * ``` - * Carbon::parse('2018-07-25')->isBetween('2018-07-14', '2018-08-01'); // true - * Carbon::parse('2018-07-25')->isBetween('2018-08-01', '2018-08-20'); // false - * Carbon::parse('2018-07-25')->isBetween('2018-07-25', '2018-08-01'); // true - * Carbon::parse('2018-07-25')->isBetween('2018-07-25', '2018-08-01', false); // false - * ``` - * - * @param bool $equal Indicates if an equal to comparison should be done - */ - public function isBetween(DateTimeInterface|string $date1, DateTimeInterface|string $date2, bool $equal = true): bool - { - return $this->between($date1, $date2, $equal); - } - - /** - * Determines if the instance is a weekday. - * - * @example - * ``` - * Carbon::parse('2019-07-14')->isWeekday(); // false - * Carbon::parse('2019-07-15')->isWeekday(); // true - * ``` - */ - public function isWeekday(): bool - { - return !$this->isWeekend(); - } - - /** - * Determines if the instance is a weekend day. - * - * @example - * ``` - * Carbon::parse('2019-07-14')->isWeekend(); // true - * Carbon::parse('2019-07-15')->isWeekend(); // false - * ``` - */ - public function isWeekend(): bool - { - return \in_array( - $this->dayOfWeek, - $this->transmitFactory(static fn () => static::getWeekendDays()), - true, - ); - } - - /** - * Determines if the instance is yesterday. - * - * @example - * ``` - * Carbon::yesterday()->isYesterday(); // true - * Carbon::tomorrow()->isYesterday(); // false - * ``` - */ - public function isYesterday(): bool - { - return $this->toDateString() === $this->transmitFactory( - fn () => static::yesterday($this->getTimezone())->toDateString(), - ); - } - - /** - * Determines if the instance is today. - * - * @example - * ``` - * Carbon::today()->isToday(); // true - * Carbon::tomorrow()->isToday(); // false - * ``` - */ - public function isToday(): bool - { - return $this->toDateString() === $this->nowWithSameTz()->toDateString(); - } - - /** - * Determines if the instance is tomorrow. - * - * @example - * ``` - * Carbon::tomorrow()->isTomorrow(); // true - * Carbon::yesterday()->isTomorrow(); // false - * ``` - */ - public function isTomorrow(): bool - { - return $this->toDateString() === $this->transmitFactory( - fn () => static::tomorrow($this->getTimezone())->toDateString(), - ); - } - - /** - * Determines if the instance is in the future, ie. greater (after) than now. - * - * @example - * ``` - * Carbon::now()->addHours(5)->isFuture(); // true - * Carbon::now()->subHours(5)->isFuture(); // false - * ``` - */ - public function isFuture(): bool - { - return $this->greaterThan($this->nowWithSameTz()); - } - - /** - * Determines if the instance is in the past, ie. less (before) than now. - * - * @example - * ``` - * Carbon::now()->subHours(5)->isPast(); // true - * Carbon::now()->addHours(5)->isPast(); // false - * ``` - */ - public function isPast(): bool - { - return $this->lessThan($this->nowWithSameTz()); - } - - /** - * Determines if the instance is a leap year. - * - * @example - * ``` - * Carbon::parse('2020-01-01')->isLeapYear(); // true - * Carbon::parse('2019-01-01')->isLeapYear(); // false - * ``` - */ - public function isLeapYear(): bool - { - return $this->rawFormat('L') === '1'; - } - - /** - * Determines if the instance is a long year (using calendar year). - * - * ⚠️ This method completely ignores month and day to use the numeric year number, - * it's not correct if the exact date matters. For instance as `2019-12-30` is already - * in the first week of the 2020 year, if you want to know from this date if ISO week - * year 2020 is a long year, use `isLongIsoYear` instead. - * - * @example - * ``` - * Carbon::create(2015)->isLongYear(); // true - * Carbon::create(2016)->isLongYear(); // false - * ``` - * - * @see https://en.wikipedia.org/wiki/ISO_8601#Week_dates - */ - public function isLongYear(): bool - { - return static::create($this->year, 12, 28, 0, 0, 0, $this->tz)->weekOfYear === static::WEEKS_PER_YEAR + 1; - } - - /** - * Determines if the instance is a long year (using ISO 8601 year). - * - * @example - * ``` - * Carbon::parse('2015-01-01')->isLongIsoYear(); // true - * Carbon::parse('2016-01-01')->isLongIsoYear(); // true - * Carbon::parse('2016-01-03')->isLongIsoYear(); // false - * Carbon::parse('2019-12-29')->isLongIsoYear(); // false - * Carbon::parse('2019-12-30')->isLongIsoYear(); // true - * ``` - * - * @see https://en.wikipedia.org/wiki/ISO_8601#Week_dates - */ - public function isLongIsoYear(): bool - { - return static::create($this->isoWeekYear, 12, 28, 0, 0, 0, $this->tz)->weekOfYear === 53; - } - - /** - * Compares the formatted values of the two dates. - * - * @example - * ``` - * Carbon::parse('2019-06-13')->isSameAs('Y-d', Carbon::parse('2019-12-13')); // true - * Carbon::parse('2019-06-13')->isSameAs('Y-d', Carbon::parse('2019-06-14')); // false - * ``` - * - * @param string $format date formats to compare. - * @param DateTimeInterface|string $date instance to compare with or null to use current day. - */ - public function isSameAs(string $format, DateTimeInterface|string $date): bool - { - return $this->rawFormat($format) === $this->resolveCarbon($date)->rawFormat($format); - } - - /** - * Determines if the instance is in the current unit given. - * - * @example - * ``` - * Carbon::parse('2019-01-13')->isSameUnit('year', Carbon::parse('2019-12-25')); // true - * Carbon::parse('2018-12-13')->isSameUnit('year', Carbon::parse('2019-12-25')); // false - * ``` - * - * @param string $unit singular unit string - * @param DateTimeInterface|string $date instance to compare with or null to use current day. - * - * @throws BadComparisonUnitException - * - * @return bool - */ - public function isSameUnit(string $unit, DateTimeInterface|string $date): bool - { - if ($unit === /* @call isSameUnit */ 'quarter') { - $other = $this->resolveCarbon($date); - - return $other->year === $this->year && $other->quarter === $this->quarter; - } - - $units = [ - // @call isSameUnit - 'year' => 'Y', - // @call isSameUnit - 'month' => 'Y-n', - // @call isSameUnit - 'week' => 'o-W', - // @call isSameUnit - 'day' => 'Y-m-d', - // @call isSameUnit - 'hour' => 'Y-m-d H', - // @call isSameUnit - 'minute' => 'Y-m-d H:i', - // @call isSameUnit - 'second' => 'Y-m-d H:i:s', - // @call isSameUnit - 'milli' => 'Y-m-d H:i:s.v', - // @call isSameUnit - 'millisecond' => 'Y-m-d H:i:s.v', - // @call isSameUnit - 'micro' => 'Y-m-d H:i:s.u', - // @call isSameUnit - 'microsecond' => 'Y-m-d H:i:s.u', - ]; - - if (isset($units[$unit])) { - return $this->isSameAs($units[$unit], $date); - } - - if (isset($this->$unit)) { - return $this->resolveCarbon($date)->$unit === $this->$unit; - } - - if ($this->isLocalStrictModeEnabled()) { - throw new BadComparisonUnitException($unit); - } - - return false; - } - - /** - * Determines if the instance is in the current unit given. - * - * @example - * ``` - * Carbon::now()->isCurrentUnit('hour'); // true - * Carbon::now()->subHours(2)->isCurrentUnit('hour'); // false - * ``` - * - * @param string $unit The unit to test. - * - * @throws BadMethodCallException - */ - public function isCurrentUnit(string $unit): bool - { - return $this->{'isSame'.ucfirst($unit)}('now'); - } - - /** - * Checks if the passed in date is in the same quarter as the instance quarter (and year if needed). - * - * @example - * ``` - * Carbon::parse('2019-01-12')->isSameQuarter(Carbon::parse('2019-03-01')); // true - * Carbon::parse('2019-01-12')->isSameQuarter(Carbon::parse('2019-04-01')); // false - * Carbon::parse('2019-01-12')->isSameQuarter(Carbon::parse('2018-03-01')); // false - * Carbon::parse('2019-01-12')->isSameQuarter(Carbon::parse('2018-03-01'), false); // true - * ``` - * - * @param DateTimeInterface|string $date The instance to compare with or null to use current day. - * @param bool $ofSameYear Check if it is the same month in the same year. - * - * @return bool - */ - public function isSameQuarter(DateTimeInterface|string $date, bool $ofSameYear = true): bool - { - $date = $this->resolveCarbon($date); - - return $this->quarter === $date->quarter && (!$ofSameYear || $this->isSameYear($date)); - } - - /** - * Checks if the passed in date is in the same month as the instance´s month. - * - * @example - * ``` - * Carbon::parse('2019-01-12')->isSameMonth(Carbon::parse('2019-01-01')); // true - * Carbon::parse('2019-01-12')->isSameMonth(Carbon::parse('2019-02-01')); // false - * Carbon::parse('2019-01-12')->isSameMonth(Carbon::parse('2018-01-01')); // false - * Carbon::parse('2019-01-12')->isSameMonth(Carbon::parse('2018-01-01'), false); // true - * ``` - * - * @param DateTimeInterface|string $date The instance to compare with or null to use the current date. - * @param bool $ofSameYear Check if it is the same month in the same year. - * - * @return bool - */ - public function isSameMonth(DateTimeInterface|string $date, bool $ofSameYear = true): bool - { - return $this->isSameAs($ofSameYear ? 'Y-m' : 'm', $date); - } - - /** - * Checks if this day is a specific day of the week. - * - * @example - * ``` - * Carbon::parse('2019-07-17')->isDayOfWeek(Carbon::WEDNESDAY); // true - * Carbon::parse('2019-07-17')->isDayOfWeek(Carbon::FRIDAY); // false - * Carbon::parse('2019-07-17')->isDayOfWeek('Wednesday'); // true - * Carbon::parse('2019-07-17')->isDayOfWeek('Friday'); // false - * ``` - * - * @param int|string $dayOfWeek - * - * @return bool - */ - public function isDayOfWeek($dayOfWeek): bool - { - if (\is_string($dayOfWeek) && \defined($constant = static::class.'::'.strtoupper($dayOfWeek))) { - $dayOfWeek = \constant($constant); - } - - return $this->dayOfWeek === $dayOfWeek; - } - - /** - * Check if its the birthday. Compares the date/month values of the two dates. - * - * @example - * ``` - * Carbon::now()->subYears(5)->isBirthday(); // true - * Carbon::now()->subYears(5)->subDay()->isBirthday(); // false - * Carbon::parse('2019-06-05')->isBirthday(Carbon::parse('2001-06-05')); // true - * Carbon::parse('2019-06-05')->isBirthday(Carbon::parse('2001-06-06')); // false - * ``` - * - * @param DateTimeInterface|string|null $date The instance to compare with or null to use current day. - * - * @return bool - */ - public function isBirthday(DateTimeInterface|string|null $date = null): bool - { - return $this->isSameAs('md', $date ?? 'now'); - } - - /** - * Check if today is the last day of the Month - * - * @example - * ``` - * Carbon::parse('2019-02-28')->isLastOfMonth(); // true - * Carbon::parse('2019-03-28')->isLastOfMonth(); // false - * Carbon::parse('2019-03-30')->isLastOfMonth(); // false - * Carbon::parse('2019-03-31')->isLastOfMonth(); // true - * Carbon::parse('2019-04-30')->isLastOfMonth(); // true - * ``` - */ - public function isLastOfMonth(): bool - { - return $this->day === $this->daysInMonth; - } - - /** - * Check if the instance is start of a given unit (tolerating a given interval). - * - * @example - * ``` - * // Check if a date-time is the first 15 minutes of the hour it's in - * Carbon::parse('2019-02-28 20:13:00')->isStartOfUnit(Unit::Hour, '15 minutes'); // true - * ``` - */ - public function isStartOfUnit( - Unit $unit, - Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null, - mixed ...$params, - ): bool { - $interval ??= match ($unit) { - Unit::Day, Unit::Hour, Unit::Minute, Unit::Second, Unit::Millisecond, Unit::Microsecond => Unit::Microsecond, - default => Unit::Day, - }; - - $startOfUnit = $this->avoidMutation()->startOf($unit, ...$params); - $startOfUnitDateTime = $startOfUnit->rawFormat('Y-m-d H:i:s.u'); - $maximumDateTime = $startOfUnit - ->add($interval instanceof Unit ? '1 '.$interval->value : $interval) - ->rawFormat('Y-m-d H:i:s.u'); - - if ($maximumDateTime < $startOfUnitDateTime) { - return false; - } - - return $this->rawFormat('Y-m-d H:i:s.u') < $maximumDateTime; - } - - /** - * Check if the instance is end of a given unit (tolerating a given interval). - * - * @example - * ``` - * // Check if a date-time is the last 15 minutes of the hour it's in - * Carbon::parse('2019-02-28 20:13:00')->isEndOfUnit(Unit::Hour, '15 minutes'); // false - * ``` - */ - public function isEndOfUnit( - Unit $unit, - Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null, - mixed ...$params, - ): bool { - $interval ??= match ($unit) { - Unit::Day, Unit::Hour, Unit::Minute, Unit::Second, Unit::Millisecond, Unit::Microsecond => Unit::Microsecond, - default => Unit::Day, - }; - - $endOfUnit = $this->avoidMutation()->endOf($unit, ...$params); - $endOfUnitDateTime = $endOfUnit->rawFormat('Y-m-d H:i:s.u'); - $minimumDateTime = $endOfUnit - ->sub($interval instanceof Unit ? '1 '.$interval->value : $interval) - ->rawFormat('Y-m-d H:i:s.u'); - - if ($minimumDateTime > $endOfUnitDateTime) { - return false; - } - - return $this->rawFormat('Y-m-d H:i:s.u') > $minimumDateTime; - } - - /** - * Determines if the instance is start of millisecond (first microsecond by default but interval can be customized). - */ - public function isStartOfMillisecond( - Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null, - ): bool { - return $this->isStartOfUnit(Unit::Millisecond, $interval); - } - - /** - * Determines if the instance is end of millisecond (last microsecond by default but interval can be customized). - */ - public function isEndOfMillisecond( - Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null, - ): bool { - return $this->isEndOfUnit(Unit::Millisecond, $interval); - } - - /** - * Determines if the instance is start of second (first microsecond by default but interval can be customized). - */ - public function isStartOfSecond( - Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null, - ): bool { - return $this->isStartOfUnit(Unit::Second, $interval); - } - - /** - * Determines if the instance is end of second (last microsecond by default but interval can be customized). - */ - public function isEndOfSecond( - Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null, - ): bool { - return $this->isEndOfUnit(Unit::Second, $interval); - } - - /** - * Determines if the instance is start of minute (first microsecond by default but interval can be customized). - */ - public function isStartOfMinute( - Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null, - ): bool { - return $this->isStartOfUnit(Unit::Minute, $interval); - } - - /** - * Determines if the instance is end of minute (last microsecond by default but interval can be customized). - */ - public function isEndOfMinute( - Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null, - ): bool { - return $this->isEndOfUnit(Unit::Minute, $interval); - } - - /** - * Determines if the instance is start of hour (first microsecond by default but interval can be customized). - */ - public function isStartOfHour( - Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null, - ): bool { - return $this->isStartOfUnit(Unit::Hour, $interval); - } - - /** - * Determines if the instance is end of hour (last microsecond by default but interval can be customized). - */ - public function isEndOfHour( - Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null, - ): bool { - return $this->isEndOfUnit(Unit::Hour, $interval); - } - - /** - * Check if the instance is start of day / midnight. - * - * @example - * ``` - * Carbon::parse('2019-02-28 00:00:00')->isStartOfDay(); // true - * Carbon::parse('2019-02-28 00:00:00.999999')->isStartOfDay(); // true - * Carbon::parse('2019-02-28 00:00:01')->isStartOfDay(); // false - * Carbon::parse('2019-02-28 00:00:00.000000')->isStartOfDay(true); // true - * Carbon::parse('2019-02-28 00:00:00.000012')->isStartOfDay(true); // false - * ``` - * - * @param bool $checkMicroseconds check time at microseconds precision - * @param Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval if an interval is specified it will be used as precision - * for instance with "15 minutes", it checks if current date-time - * is in the last 15 minutes of the day, with Unit::Hour, it - * checks if it's in the last hour of the day. - */ - public function isStartOfDay( - Unit|DateInterval|Closure|CarbonConverterInterface|string|bool $checkMicroseconds = false, - Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null, - ): bool { - if ($checkMicroseconds === true) { - @trigger_error( - "Since 3.8.0, it's deprecated to use \$checkMicroseconds.\n". - "It will be removed in 4.0.0.\n". - "Instead, you should use either isStartOfDay(interval: Unit::Microsecond) or isStartOfDay(interval: Unit::Second)\n". - 'And you can now use any custom interval as precision, such as isStartOfDay(interval: "15 minutes")', - \E_USER_DEPRECATED, - ); - } - - if ($interval === null && !\is_bool($checkMicroseconds)) { - $interval = $checkMicroseconds; - } - - if ($interval !== null) { - if ($interval instanceof Unit) { - $interval = '1 '.$interval->value; - } - - $date = $this->rawFormat('Y-m-d'); - $time = $this->rawFormat('H:i:s.u'); - $maximum = $this->avoidMutation()->startOfDay()->add($interval); - $maximumDate = $maximum->rawFormat('Y-m-d'); - - if ($date === $maximumDate) { - return $time < $maximum->rawFormat('H:i:s.u'); - } - - return $maximumDate > $date; - } - - /* @var CarbonInterface $this */ - return $checkMicroseconds - ? $this->rawFormat('H:i:s.u') === '00:00:00.000000' - : $this->rawFormat('H:i:s') === '00:00:00'; - } - - /** - * Check if the instance is end of day. - * - * @example - * ``` - * Carbon::parse('2019-02-28 23:59:59.999999')->isEndOfDay(); // true - * Carbon::parse('2019-02-28 23:59:59.123456')->isEndOfDay(); // true - * Carbon::parse('2019-02-28 23:59:59')->isEndOfDay(); // true - * Carbon::parse('2019-02-28 23:59:58.999999')->isEndOfDay(); // false - * Carbon::parse('2019-02-28 23:59:59.999999')->isEndOfDay(true); // true - * Carbon::parse('2019-02-28 23:59:59.123456')->isEndOfDay(true); // false - * Carbon::parse('2019-02-28 23:59:59')->isEndOfDay(true); // false - * ``` - * - * @param bool $checkMicroseconds check time at microseconds precision - * @param Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval if an interval is specified it will be used as precision - * for instance with "15 minutes", it checks if current date-time - * is in the last 15 minutes of the day, with Unit::Hour, it - * checks if it's in the last hour of the day. - */ - public function isEndOfDay( - Unit|DateInterval|Closure|CarbonConverterInterface|string|bool $checkMicroseconds = false, - Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null, - ): bool { - if ($checkMicroseconds === true) { - @trigger_error( - "Since 3.8.0, it's deprecated to use \$checkMicroseconds.\n". - "It will be removed in 4.0.0.\n". - "Instead, you should use either isEndOfDay(interval: Unit::Microsecond) or isEndOfDay(interval: Unit::Second)\n". - 'And you can now use any custom interval as precision, such as isEndOfDay(interval: "15 minutes")', - \E_USER_DEPRECATED, - ); - } - - if ($interval === null && !\is_bool($checkMicroseconds)) { - $interval = $checkMicroseconds; - } - - if ($interval !== null) { - $date = $this->rawFormat('Y-m-d'); - $time = $this->rawFormat('H:i:s.u'); - $minimum = $this->avoidMutation() - ->endOfDay() - ->sub($interval instanceof Unit ? '1 '.$interval->value : $interval); - $minimumDate = $minimum->rawFormat('Y-m-d'); - - if ($date === $minimumDate) { - return $time > $minimum->rawFormat('H:i:s.u'); - } - - return $minimumDate < $date; - } - - /* @var CarbonInterface $this */ - return $checkMicroseconds - ? $this->rawFormat('H:i:s.u') === '23:59:59.999999' - : $this->rawFormat('H:i:s') === '23:59:59'; - } - - /** - * Determines if the instance is start of week (first day by default but interval can be customized). - * - * @example - * ``` - * Carbon::parse('2024-08-31')->startOfWeek()->isStartOfWeek(); // true - * Carbon::parse('2024-08-31')->isStartOfWeek(); // false - * ``` - */ - public function isStartOfWeek( - Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null, - WeekDay|int|null $weekStartsAt = null, - ): bool { - return $this->isStartOfUnit(Unit::Week, $interval, $weekStartsAt); - } - - /** - * Determines if the instance is end of week (last day by default but interval can be customized). - * - * @example - * ``` - * Carbon::parse('2024-08-31')->endOfWeek()->isEndOfWeek(); // true - * Carbon::parse('2024-08-31')->isEndOfWeek(); // false - * ``` - */ - public function isEndOfWeek( - Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null, - WeekDay|int|null $weekEndsAt = null, - ): bool { - return $this->isEndOfUnit(Unit::Week, $interval, $weekEndsAt); - } - - /** - * Determines if the instance is start of month (first day by default but interval can be customized). - */ - public function isStartOfMonth( - Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null, - ): bool { - return $this->isStartOfUnit(Unit::Month, $interval); - } - - /** - * Determines if the instance is end of month (last day by default but interval can be customized). - */ - public function isEndOfMonth( - Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null, - ): bool { - return $this->isEndOfUnit(Unit::Month, $interval); - } - - /** - * Determines if the instance is start of quarter (first day by default but interval can be customized). - */ - public function isStartOfQuarter( - Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null, - ): bool { - return $this->isStartOfUnit(Unit::Quarter, $interval); - } - - /** - * Determines if the instance is end of quarter (last day by default but interval can be customized). - */ - public function isEndOfQuarter( - Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null, - ): bool { - return $this->isEndOfUnit(Unit::Quarter, $interval); - } - - /** - * Determines if the instance is start of year (first day by default but interval can be customized). - */ - public function isStartOfYear( - Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null, - ): bool { - return $this->isStartOfUnit(Unit::Year, $interval); - } - - /** - * Determines if the instance is end of year (last day by default but interval can be customized). - */ - public function isEndOfYear( - Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null, - ): bool { - return $this->isEndOfUnit(Unit::Year, $interval); - } - - /** - * Determines if the instance is start of decade (first day by default but interval can be customized). - */ - public function isStartOfDecade( - Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null, - ): bool { - return $this->isStartOfUnit(Unit::Decade, $interval); - } - - /** - * Determines if the instance is end of decade (last day by default but interval can be customized). - */ - public function isEndOfDecade( - Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null, - ): bool { - return $this->isEndOfUnit(Unit::Decade, $interval); - } - - /** - * Determines if the instance is start of century (first day by default but interval can be customized). - */ - public function isStartOfCentury( - Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null, - ): bool { - return $this->isStartOfUnit(Unit::Century, $interval); - } - - /** - * Determines if the instance is end of century (last day by default but interval can be customized). - */ - public function isEndOfCentury( - Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null, - ): bool { - return $this->isEndOfUnit(Unit::Century, $interval); - } - - /** - * Determines if the instance is start of millennium (first day by default but interval can be customized). - */ - public function isStartOfMillennium( - Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null, - ): bool { - return $this->isStartOfUnit(Unit::Millennium, $interval); - } - - /** - * Determines if the instance is end of millennium (last day by default but interval can be customized). - */ - public function isEndOfMillennium( - Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null, - ): bool { - return $this->isEndOfUnit(Unit::Millennium, $interval); - } - - /** - * Check if the instance is start of day / midnight. - * - * @example - * ``` - * Carbon::parse('2019-02-28 00:00:00')->isMidnight(); // true - * Carbon::parse('2019-02-28 00:00:00.999999')->isMidnight(); // true - * Carbon::parse('2019-02-28 00:00:01')->isMidnight(); // false - * ``` - */ - public function isMidnight(): bool - { - return $this->isStartOfDay(); - } - - /** - * Check if the instance is midday. - * - * @example - * ``` - * Carbon::parse('2019-02-28 11:59:59.999999')->isMidday(); // false - * Carbon::parse('2019-02-28 12:00:00')->isMidday(); // true - * Carbon::parse('2019-02-28 12:00:00.999999')->isMidday(); // true - * Carbon::parse('2019-02-28 12:00:01')->isMidday(); // false - * ``` - */ - public function isMidday(): bool - { - /* @var CarbonInterface $this */ - return $this->rawFormat('G:i:s') === static::$midDayAt.':00:00'; - } - - /** - * Checks if the (date)time string is in a given format. - * - * @example - * ``` - * Carbon::hasFormat('11:12:45', 'h:i:s'); // true - * Carbon::hasFormat('13:12:45', 'h:i:s'); // false - * ``` - */ - public static function hasFormat(string $date, string $format): bool - { - return FactoryImmutable::getInstance()->hasFormat($date, $format); - } - - /** - * Checks if the (date)time string is in a given format. - * - * @example - * ``` - * Carbon::hasFormatWithModifiers('31/08/2015', 'd#m#Y'); // true - * Carbon::hasFormatWithModifiers('31/08/2015', 'm#d#Y'); // false - * ``` - * - * @param string $date - * @param string $format - * - * @return bool - */ - public static function hasFormatWithModifiers(?string $date, string $format): bool - { - return FactoryImmutable::getInstance()->hasFormatWithModifiers($date, $format); - } - - /** - * Checks if the (date)time string is in a given format and valid to create a - * new instance. - * - * @example - * ``` - * Carbon::canBeCreatedFromFormat('11:12:45', 'h:i:s'); // true - * Carbon::canBeCreatedFromFormat('13:12:45', 'h:i:s'); // false - * ``` - */ - public static function canBeCreatedFromFormat(?string $date, string $format): bool - { - if ($date === null) { - return false; - } - - try { - // Try to create a DateTime object. Throws an InvalidArgumentException if the provided time string - // doesn't match the format in any way. - if (!static::rawCreateFromFormat($format, $date)) { - return false; - } - } catch (InvalidArgumentException) { - return false; - } - - return static::hasFormatWithModifiers($date, $format); - } - - /** - * Returns true if the current date matches the given string. - * - * @example - * ``` - * var_dump(Carbon::parse('2019-06-02 12:23:45')->is('2019')); // true - * var_dump(Carbon::parse('2019-06-02 12:23:45')->is('2018')); // false - * var_dump(Carbon::parse('2019-06-02 12:23:45')->is('2019-06')); // true - * var_dump(Carbon::parse('2019-06-02 12:23:45')->is('06-02')); // true - * var_dump(Carbon::parse('2019-06-02 12:23:45')->is('2019-06-02')); // true - * var_dump(Carbon::parse('2019-06-02 12:23:45')->is('Sunday')); // true - * var_dump(Carbon::parse('2019-06-02 12:23:45')->is('June')); // true - * var_dump(Carbon::parse('2019-06-02 12:23:45')->is('12:23')); // true - * var_dump(Carbon::parse('2019-06-02 12:23:45')->is('12:23:45')); // true - * var_dump(Carbon::parse('2019-06-02 12:23:45')->is('12:23:00')); // false - * var_dump(Carbon::parse('2019-06-02 12:23:45')->is('12h')); // true - * var_dump(Carbon::parse('2019-06-02 15:23:45')->is('3pm')); // true - * var_dump(Carbon::parse('2019-06-02 15:23:45')->is('3am')); // false - * ``` - * - * @param string $tester day name, month name, hour, date, etc. as string - */ - public function is(WeekDay|Month|string $tester): bool - { - if ($tester instanceof BackedEnum) { - $tester = $tester->name; - } - - $tester = trim($tester); - - if (preg_match('/^\d+$/', $tester)) { - return $this->year === (int) $tester; - } - - if (preg_match('/^(?:Jan|January|Feb|February|Mar|March|Apr|April|May|Jun|June|Jul|July|Aug|August|Sep|September|Oct|October|Nov|November|Dec|December)$/i', $tester)) { - return $this->isSameMonth( - $this->transmitFactory(static fn () => static::parse($tester)), - false, - ); - } - - if (preg_match('/^\d{3,}-\d{1,2}$/', $tester)) { - return $this->isSameMonth( - $this->transmitFactory(static fn () => static::parse($tester)), - ); - } - - if (preg_match('/^\d{1,2}-\d{1,2}$/', $tester)) { - return $this->isSameDay( - $this->transmitFactory(fn () => static::parse($this->year.'-'.$tester)), - ); - } - - $modifier = preg_replace('/(\d)h$/i', '$1:00', $tester); - - /* @var CarbonInterface $max */ - $median = $this->transmitFactory(static fn () => static::parse('5555-06-15 12:30:30.555555')) - ->modify($modifier); - $current = $this->avoidMutation(); - /* @var CarbonInterface $other */ - $other = $this->avoidMutation()->modify($modifier); - - if ($current->eq($other)) { - return true; - } - - if (preg_match('/\d:\d{1,2}:\d{1,2}$/', $tester)) { - return $current->startOfSecond()->eq($other); - } - - if (preg_match('/\d:\d{1,2}$/', $tester)) { - return $current->startOfMinute()->eq($other); - } - - if (preg_match('/\d(?:h|am|pm)$/', $tester)) { - return $current->startOfHour()->eq($other); - } - - if (preg_match( - '/^(?:january|february|march|april|may|june|july|august|september|october|november|december)(?:\s+\d+)?$/i', - $tester, - )) { - return $current->startOfMonth()->eq($other->startOfMonth()); - } - - $units = [ - 'month' => [1, 'year'], - 'day' => [1, 'month'], - 'hour' => [0, 'day'], - 'minute' => [0, 'hour'], - 'second' => [0, 'minute'], - 'microsecond' => [0, 'second'], - ]; - - foreach ($units as $unit => [$minimum, $startUnit]) { - if ($minimum === $median->$unit) { - $current = $current->startOf($startUnit); - - break; - } - } - - return $current->eq($other); - } - - /** - * Returns true if the date was created using CarbonImmutable::startOfTime() - * - * @return bool - */ - public function isStartOfTime(): bool - { - return $this->startOfTime ?? false; - } - - /** - * Returns true if the date was created using CarbonImmutable::endOfTime() - * - * @return bool - */ - public function isEndOfTime(): bool - { - return $this->endOfTime ?? false; - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Traits/Converter.php b/vendor/nesbot/carbon/src/Carbon/Traits/Converter.php deleted file mode 100644 index 764c5d4..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Traits/Converter.php +++ /dev/null @@ -1,556 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Traits; - -use Carbon\Carbon; -use Carbon\CarbonImmutable; -use Carbon\CarbonInterface; -use Carbon\CarbonInterval; -use Carbon\CarbonPeriod; -use Carbon\CarbonPeriodImmutable; -use Carbon\Exceptions\UnitException; -use Closure; -use DateTime; -use DateTimeImmutable; -use DateTimeInterface; - -/** - * Trait Converter. - * - * Change date into different string formats and types and - * handle the string cast. - * - * Depends on the following methods: - * - * @method static copy() - */ -trait Converter -{ - use ToStringFormat; - - /** - * Returns the formatted date string on success or FALSE on failure. - * - * @see https://php.net/manual/en/datetime.format.php - */ - public function format(string $format): string - { - $function = $this->localFormatFunction - ?? $this->getFactory()->getSettings()['formatFunction'] - ?? static::$formatFunction; - - if (!$function) { - return $this->rawFormat($format); - } - - if (\is_string($function) && method_exists($this, $function)) { - $function = [$this, $function]; - } - - return $function(...\func_get_args()); - } - - /** - * @see https://php.net/manual/en/datetime.format.php - */ - public function rawFormat(string $format): string - { - return parent::format($format); - } - - /** - * Format the instance as a string using the set format - * - * @example - * ``` - * echo Carbon::now(); // Carbon instances can be cast to string - * ``` - */ - public function __toString(): string - { - $format = $this->localToStringFormat - ?? $this->getFactory()->getSettings()['toStringFormat'] - ?? null; - - return $format instanceof Closure - ? $format($this) - : $this->rawFormat($format ?: ( - \defined('static::DEFAULT_TO_STRING_FORMAT') - ? static::DEFAULT_TO_STRING_FORMAT - : CarbonInterface::DEFAULT_TO_STRING_FORMAT - )); - } - - /** - * Format the instance as date - * - * @example - * ``` - * echo Carbon::now()->toDateString(); - * ``` - */ - public function toDateString(): string - { - return $this->rawFormat('Y-m-d'); - } - - /** - * Format the instance as a readable date - * - * @example - * ``` - * echo Carbon::now()->toFormattedDateString(); - * ``` - */ - public function toFormattedDateString(): string - { - return $this->rawFormat('M j, Y'); - } - - /** - * Format the instance with the day, and a readable date - * - * @example - * ``` - * echo Carbon::now()->toFormattedDayDateString(); - * ``` - */ - public function toFormattedDayDateString(): string - { - return $this->rawFormat('D, M j, Y'); - } - - /** - * Format the instance as time - * - * @example - * ``` - * echo Carbon::now()->toTimeString(); - * ``` - */ - public function toTimeString(string $unitPrecision = 'second'): string - { - return $this->rawFormat(static::getTimeFormatByPrecision($unitPrecision)); - } - - /** - * Format the instance as date and time - * - * @example - * ``` - * echo Carbon::now()->toDateTimeString(); - * ``` - */ - public function toDateTimeString(string $unitPrecision = 'second'): string - { - return $this->rawFormat('Y-m-d '.static::getTimeFormatByPrecision($unitPrecision)); - } - - /** - * Return a format from H:i to H:i:s.u according to given unit precision. - * - * @param string $unitPrecision "minute", "second", "millisecond" or "microsecond" - */ - public static function getTimeFormatByPrecision(string $unitPrecision): string - { - return match (static::singularUnit($unitPrecision)) { - 'minute' => 'H:i', - 'second' => 'H:i:s', - 'm', 'millisecond' => 'H:i:s.v', - 'µ', 'microsecond' => 'H:i:s.u', - default => throw new UnitException('Precision unit expected among: minute, second, millisecond and microsecond.'), - }; - } - - /** - * Format the instance as date and time T-separated with no timezone - * - * @example - * ``` - * echo Carbon::now()->toDateTimeLocalString(); - * echo "\n"; - * echo Carbon::now()->toDateTimeLocalString('minute'); // You can specify precision among: minute, second, millisecond and microsecond - * ``` - */ - public function toDateTimeLocalString(string $unitPrecision = 'second'): string - { - return $this->rawFormat('Y-m-d\T'.static::getTimeFormatByPrecision($unitPrecision)); - } - - /** - * Format the instance with day, date and time - * - * @example - * ``` - * echo Carbon::now()->toDayDateTimeString(); - * ``` - */ - public function toDayDateTimeString(): string - { - return $this->rawFormat('D, M j, Y g:i A'); - } - - /** - * Format the instance as ATOM - * - * @example - * ``` - * echo Carbon::now()->toAtomString(); - * ``` - */ - public function toAtomString(): string - { - return $this->rawFormat(DateTime::ATOM); - } - - /** - * Format the instance as COOKIE - * - * @example - * ``` - * echo Carbon::now()->toCookieString(); - * ``` - */ - public function toCookieString(): string - { - return $this->rawFormat(DateTimeInterface::COOKIE); - } - - /** - * Format the instance as ISO8601 - * - * @example - * ``` - * echo Carbon::now()->toIso8601String(); - * ``` - */ - public function toIso8601String(): string - { - return $this->toAtomString(); - } - - /** - * Format the instance as RFC822 - * - * @example - * ``` - * echo Carbon::now()->toRfc822String(); - * ``` - */ - public function toRfc822String(): string - { - return $this->rawFormat(DateTimeInterface::RFC822); - } - - /** - * Convert the instance to UTC and return as Zulu ISO8601 - * - * @example - * ``` - * echo Carbon::now()->toIso8601ZuluString(); - * ``` - */ - public function toIso8601ZuluString(string $unitPrecision = 'second'): string - { - return $this->avoidMutation() - ->utc() - ->rawFormat('Y-m-d\T'.static::getTimeFormatByPrecision($unitPrecision).'\Z'); - } - - /** - * Format the instance as RFC850 - * - * @example - * ``` - * echo Carbon::now()->toRfc850String(); - * ``` - */ - public function toRfc850String(): string - { - return $this->rawFormat(DateTimeInterface::RFC850); - } - - /** - * Format the instance as RFC1036 - * - * @example - * ``` - * echo Carbon::now()->toRfc1036String(); - * ``` - */ - public function toRfc1036String(): string - { - return $this->rawFormat(DateTimeInterface::RFC1036); - } - - /** - * Format the instance as RFC1123 - * - * @example - * ``` - * echo Carbon::now()->toRfc1123String(); - * ``` - */ - public function toRfc1123String(): string - { - return $this->rawFormat(DateTimeInterface::RFC1123); - } - - /** - * Format the instance as RFC2822 - * - * @example - * ``` - * echo Carbon::now()->toRfc2822String(); - * ``` - */ - public function toRfc2822String(): string - { - return $this->rawFormat(DateTimeInterface::RFC2822); - } - - /** - * Format the instance as RFC3339. - * - * @example - * ``` - * echo Carbon::now()->toRfc3339String() . "\n"; - * echo Carbon::now()->toRfc3339String(true) . "\n"; - * ``` - */ - public function toRfc3339String(bool $extended = false): string - { - return $this->rawFormat($extended ? DateTimeInterface::RFC3339_EXTENDED : DateTimeInterface::RFC3339); - } - - /** - * Format the instance as RSS - * - * @example - * ``` - * echo Carbon::now()->toRssString(); - * ``` - */ - public function toRssString(): string - { - return $this->rawFormat(DateTimeInterface::RSS); - } - - /** - * Format the instance as W3C - * - * @example - * ``` - * echo Carbon::now()->toW3cString(); - * ``` - */ - public function toW3cString(): string - { - return $this->rawFormat(DateTimeInterface::W3C); - } - - /** - * Format the instance as RFC7231 - * - * @example - * ``` - * echo Carbon::now()->toRfc7231String(); - * ``` - */ - public function toRfc7231String(): string - { - return $this->avoidMutation() - ->setTimezone('GMT') - ->rawFormat(\defined('static::RFC7231_FORMAT') ? static::RFC7231_FORMAT : CarbonInterface::RFC7231_FORMAT); - } - - /** - * Get default array representation. - * - * @example - * ``` - * var_dump(Carbon::now()->toArray()); - * ``` - */ - public function toArray(): array - { - return [ - 'year' => $this->year, - 'month' => $this->month, - 'day' => $this->day, - 'dayOfWeek' => $this->dayOfWeek, - 'dayOfYear' => $this->dayOfYear, - 'hour' => $this->hour, - 'minute' => $this->minute, - 'second' => $this->second, - 'micro' => $this->micro, - 'timestamp' => $this->timestamp, - 'formatted' => $this->rawFormat(\defined('static::DEFAULT_TO_STRING_FORMAT') ? static::DEFAULT_TO_STRING_FORMAT : CarbonInterface::DEFAULT_TO_STRING_FORMAT), - 'timezone' => $this->timezone, - ]; - } - - /** - * Get default object representation. - * - * @example - * ``` - * var_dump(Carbon::now()->toObject()); - * ``` - */ - public function toObject(): object - { - return (object) $this->toArray(); - } - - /** - * Returns english human-readable complete date string. - * - * @example - * ``` - * echo Carbon::now()->toString(); - * ``` - */ - public function toString(): string - { - return $this->avoidMutation()->locale('en')->isoFormat('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ'); - } - - /** - * Return the ISO-8601 string (ex: 1977-04-22T06:00:00Z, if $keepOffset truthy, offset will be kept: - * 1977-04-22T01:00:00-05:00). - * - * @example - * ``` - * echo Carbon::now('America/Toronto')->toISOString() . "\n"; - * echo Carbon::now('America/Toronto')->toISOString(true) . "\n"; - * ``` - * - * @param bool $keepOffset Pass true to keep the date offset. Else forced to UTC. - */ - public function toISOString(bool $keepOffset = false): ?string - { - if (!$this->isValid()) { - return null; - } - - $yearFormat = $this->year < 0 || $this->year > 9999 ? 'YYYYYY' : 'YYYY'; - $timezoneFormat = $keepOffset ? 'Z' : '[Z]'; - $date = $keepOffset ? $this : $this->avoidMutation()->utc(); - - return $date->isoFormat("$yearFormat-MM-DD[T]HH:mm:ss.SSSSSS$timezoneFormat"); - } - - /** - * Return the ISO-8601 string (ex: 1977-04-22T06:00:00Z) with UTC timezone. - * - * @example - * ``` - * echo Carbon::now('America/Toronto')->toJSON(); - * ``` - */ - public function toJSON(): ?string - { - return $this->toISOString(); - } - - /** - * Return native DateTime PHP object matching the current instance. - * - * @example - * ``` - * var_dump(Carbon::now()->toDateTime()); - * ``` - */ - public function toDateTime(): DateTime - { - return DateTime::createFromFormat('U.u', $this->rawFormat('U.u')) - ->setTimezone($this->getTimezone()); - } - - /** - * Return native toDateTimeImmutable PHP object matching the current instance. - * - * @example - * ``` - * var_dump(Carbon::now()->toDateTimeImmutable()); - * ``` - */ - public function toDateTimeImmutable(): DateTimeImmutable - { - return DateTimeImmutable::createFromFormat('U.u', $this->rawFormat('U.u')) - ->setTimezone($this->getTimezone()); - } - - /** - * @alias toDateTime - * - * Return native DateTime PHP object matching the current instance. - * - * @example - * ``` - * var_dump(Carbon::now()->toDate()); - * ``` - */ - public function toDate(): DateTime - { - return $this->toDateTime(); - } - - /** - * Create a iterable CarbonPeriod object from current date to a given end date (and optional interval). - * - * @param \DateTimeInterface|Carbon|CarbonImmutable|int|null $end period end date or recurrences count if int - * @param int|\DateInterval|string|null $interval period default interval or number of the given $unit - * @param string|null $unit if specified, $interval must be an integer - */ - public function toPeriod($end = null, $interval = null, $unit = null): CarbonPeriod - { - if ($unit) { - $interval = CarbonInterval::make("$interval ".static::pluralUnit($unit)); - } - - $isDefaultInterval = !$interval; - $interval ??= CarbonInterval::day(); - $class = $this->isMutable() ? CarbonPeriod::class : CarbonPeriodImmutable::class; - - if (\is_int($end) || (\is_string($end) && ctype_digit($end))) { - $end = (int) $end; - } - - $end ??= 1; - - if (!\is_int($end)) { - $end = $this->resolveCarbon($end); - } - - return new $class( - raw: [$this, CarbonInterval::make($interval), $end], - dateClass: static::class, - isDefaultInterval: $isDefaultInterval, - ); - } - - /** - * Create a iterable CarbonPeriod object from current date to a given end date (and optional interval). - * - * @param \DateTimeInterface|Carbon|CarbonImmutable|null $end period end date - * @param int|\DateInterval|string|null $interval period default interval or number of the given $unit - * @param string|null $unit if specified, $interval must be an integer - */ - public function range($end = null, $interval = null, $unit = null): CarbonPeriod - { - return $this->toPeriod($end, $interval, $unit); - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Traits/Creator.php b/vendor/nesbot/carbon/src/Carbon/Traits/Creator.php deleted file mode 100644 index 31631b7..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Traits/Creator.php +++ /dev/null @@ -1,938 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Traits; - -use Carbon\Carbon; -use Carbon\CarbonImmutable; -use Carbon\CarbonInterface; -use Carbon\Exceptions\InvalidDateException; -use Carbon\Exceptions\InvalidFormatException; -use Carbon\Exceptions\InvalidTimeZoneException; -use Carbon\Exceptions\OutOfRangeException; -use Carbon\Exceptions\UnitException; -use Carbon\Month; -use Carbon\Translator; -use Carbon\WeekDay; -use Closure; -use DateMalformedStringException; -use DateTimeImmutable; -use DateTimeInterface; -use DateTimeZone; -use Exception; -use ReturnTypeWillChange; -use Symfony\Contracts\Translation\TranslatorInterface; - -/** - * Trait Creator. - * - * Static creators. - * - * Depends on the following methods: - * - * @method static Carbon|CarbonImmutable getTestNow() - */ -trait Creator -{ - use ObjectInitialisation; - use LocalFactory; - - /** - * The errors that can occur. - */ - protected static ?array $lastErrors = null; - - /** - * Create a new Carbon instance. - * - * Please see the testing aids section (specifically static::setTestNow()) - * for more on the possibility of this constructor returning a test instance. - * - * @throws InvalidFormatException - */ - public function __construct( - DateTimeInterface|WeekDay|Month|string|int|float|null $time = null, - DateTimeZone|string|int|null $timezone = null, - ) { - $this->initLocalFactory(); - - if ($time instanceof Month) { - $time = $time->name.' 1'; - } elseif ($time instanceof WeekDay) { - $time = $time->name; - } elseif ($time instanceof DateTimeInterface) { - $time = $this->constructTimezoneFromDateTime($time, $timezone)->format('Y-m-d H:i:s.u'); - } - - if (\is_string($time) && str_starts_with($time, '@')) { - $time = static::createFromTimestampUTC(substr($time, 1))->format('Y-m-d\TH:i:s.uP'); - } elseif (is_numeric($time) && (!\is_string($time) || !preg_match('/^\d{1,14}$/', $time))) { - $time = static::createFromTimestampUTC($time)->format('Y-m-d\TH:i:s.uP'); - } - - // If the class has a test now set, and we are trying to create a now() - // instance then override as required - $isNow = \in_array($time, [null, '', 'now'], true); - $timezone = static::safeCreateDateTimeZone($timezone) ?? null; - - if ( - ($this->clock || ( - method_exists(static::class, 'hasTestNow') && - method_exists(static::class, 'getTestNow') && - static::hasTestNow() - )) && - ($isNow || static::hasRelativeKeywords($time)) - ) { - $this->mockConstructorParameters($time, $timezone); - } - - try { - parent::__construct($time ?? 'now', $timezone); - } catch (Exception $exception) { - throw new InvalidFormatException($exception->getMessage(), 0, $exception); - } - - $this->constructedObjectId = spl_object_hash($this); - - self::setLastErrors(parent::getLastErrors()); - } - - /** - * Get timezone from a datetime instance. - */ - private function constructTimezoneFromDateTime( - DateTimeInterface $date, - DateTimeZone|string|int|null &$timezone, - ): DateTimeInterface { - if ($timezone !== null) { - $safeTz = static::safeCreateDateTimeZone($timezone); - - if ($safeTz) { - $date = ($date instanceof DateTimeImmutable ? $date : clone $date)->setTimezone($safeTz); - } - - return $date; - } - - $timezone = $date->getTimezone(); - - return $date; - } - - /** - * Update constructedObjectId on cloned. - */ - public function __clone(): void - { - $this->constructedObjectId = spl_object_hash($this); - } - - /** - * Create a Carbon instance from a DateTime one. - */ - public static function instance(DateTimeInterface $date): static - { - if ($date instanceof static) { - return clone $date; - } - - $instance = parent::createFromFormat('U.u', $date->format('U.u')) - ->setTimezone($date->getTimezone()); - - if ($date instanceof CarbonInterface) { - $settings = $date->getSettings(); - - if (!$date->hasLocalTranslator()) { - unset($settings['locale']); - } - - $instance->settings($settings); - } - - return $instance; - } - - /** - * Create a carbon instance from a string. - * - * This is an alias for the constructor that allows better fluent syntax - * as it allows you to do Carbon::parse('Monday next week')->fn() rather - * than (new Carbon('Monday next week'))->fn(). - * - * @throws InvalidFormatException - */ - public static function rawParse( - DateTimeInterface|WeekDay|Month|string|int|float|null $time, - DateTimeZone|string|int|null $timezone = null, - ): static { - if ($time instanceof DateTimeInterface) { - return static::instance($time); - } - - try { - return new static($time, $timezone); - } catch (Exception $exception) { - // @codeCoverageIgnoreStart - try { - $date = @static::now($timezone)->change($time); - } catch (DateMalformedStringException|InvalidFormatException) { - $date = null; - } - // @codeCoverageIgnoreEnd - - return $date - ?? throw new InvalidFormatException("Could not parse '$time': ".$exception->getMessage(), 0, $exception); - } - } - - /** - * Create a carbon instance from a string. - * - * This is an alias for the constructor that allows better fluent syntax - * as it allows you to do Carbon::parse('Monday next week')->fn() rather - * than (new Carbon('Monday next week'))->fn(). - * - * @throws InvalidFormatException - */ - public static function parse( - DateTimeInterface|WeekDay|Month|string|int|float|null $time, - DateTimeZone|string|int|null $timezone = null, - ): static { - $function = static::$parseFunction; - - if (!$function) { - return static::rawParse($time, $timezone); - } - - if (\is_string($function) && method_exists(static::class, $function)) { - $function = [static::class, $function]; - } - - return $function(...\func_get_args()); - } - - /** - * Create a carbon instance from a localized string (in French, Japanese, Arabic, etc.). - * - * @param string $time date/time string in the given language (may also contain English). - * @param string|null $locale if locale is null or not specified, current global locale will be - * used instead. - * @param DateTimeZone|string|int|null $timezone optional timezone for the new instance. - * - * @throws InvalidFormatException - */ - public static function parseFromLocale( - string $time, - ?string $locale = null, - DateTimeZone|string|int|null $timezone = null, - ): static { - return static::rawParse(static::translateTimeString($time, $locale, static::DEFAULT_LOCALE), $timezone); - } - - /** - * Get a Carbon instance for the current date and time. - */ - public static function now(DateTimeZone|string|int|null $timezone = null): static - { - return new static(null, $timezone); - } - - /** - * Create a Carbon instance for today. - */ - public static function today(DateTimeZone|string|int|null $timezone = null): static - { - return static::rawParse('today', $timezone); - } - - /** - * Create a Carbon instance for tomorrow. - */ - public static function tomorrow(DateTimeZone|string|int|null $timezone = null): static - { - return static::rawParse('tomorrow', $timezone); - } - - /** - * Create a Carbon instance for yesterday. - */ - public static function yesterday(DateTimeZone|string|int|null $timezone = null): static - { - return static::rawParse('yesterday', $timezone); - } - - private static function assertBetween($unit, $value, $min, $max): void - { - if (static::isStrictModeEnabled() && ($value < $min || $value > $max)) { - throw new OutOfRangeException($unit, $min, $max, $value); - } - } - - private static function createNowInstance($timezone) - { - if (!static::hasTestNow()) { - return static::now($timezone); - } - - $now = static::getTestNow(); - - if ($now instanceof Closure) { - return $now(static::now($timezone)); - } - - $now = $now->avoidMutation(); - - return $timezone === null ? $now : $now->setTimezone($timezone); - } - - /** - * Create a new Carbon instance from a specific date and time. - * - * If any of $year, $month or $day are set to null their now() values will - * be used. - * - * If $hour is null it will be set to its now() value and the default - * values for $minute and $second will be their now() values. - * - * If $hour is not null then the default values for $minute and $second - * will be 0. - * - * @param DateTimeInterface|string|int|null $year - * @param int|null $month - * @param int|null $day - * @param int|null $hour - * @param int|null $minute - * @param int|null $second - * @param DateTimeZone|string|int|null $timezone - * - * @throws InvalidFormatException - * - * @return static|null - */ - public static function create($year = 0, $month = 1, $day = 1, $hour = 0, $minute = 0, $second = 0, $timezone = null): ?self - { - $month = self::monthToInt($month); - - if ((\is_string($year) && !is_numeric($year)) || $year instanceof DateTimeInterface) { - return static::parse($year, $timezone ?? (\is_string($month) || $month instanceof DateTimeZone ? $month : null)); - } - - $defaults = null; - $getDefault = function ($unit) use ($timezone, &$defaults) { - if ($defaults === null) { - $now = self::createNowInstance($timezone); - - $defaults = array_combine([ - 'year', - 'month', - 'day', - 'hour', - 'minute', - 'second', - ], explode('-', $now->rawFormat('Y-n-j-G-i-s.u'))); - } - - return $defaults[$unit]; - }; - - $year = $year ?? $getDefault('year'); - $month = $month ?? $getDefault('month'); - $day = $day ?? $getDefault('day'); - $hour = $hour ?? $getDefault('hour'); - $minute = $minute ?? $getDefault('minute'); - $second = (float) ($second ?? $getDefault('second')); - - self::assertBetween('month', $month, 0, 99); - self::assertBetween('day', $day, 0, 99); - self::assertBetween('hour', $hour, 0, 99); - self::assertBetween('minute', $minute, 0, 99); - self::assertBetween('second', $second, 0, 99); - - $fixYear = null; - - if ($year < 0) { - $fixYear = $year; - $year = 0; - } elseif ($year > 9999) { - $fixYear = $year - 9999; - $year = 9999; - } - - $second = ($second < 10 ? '0' : '').number_format($second, 6); - $instance = static::rawCreateFromFormat('!Y-n-j G:i:s.u', \sprintf('%s-%s-%s %s:%02s:%02s', $year, $month, $day, $hour, $minute, $second), $timezone); - - if ($instance && $fixYear !== null) { - $instance = $instance->addYears($fixYear); - } - - return $instance ?? null; - } - - /** - * Create a new safe Carbon instance from a specific date and time. - * - * If any of $year, $month or $day are set to null their now() values will - * be used. - * - * If $hour is null it will be set to its now() value and the default - * values for $minute and $second will be their now() values. - * - * If $hour is not null then the default values for $minute and $second - * will be 0. - * - * If one of the set values is not valid, an InvalidDateException - * will be thrown. - * - * @param int|null $year - * @param int|null $month - * @param int|null $day - * @param int|null $hour - * @param int|null $minute - * @param int|null $second - * @param DateTimeZone|string|int|null $timezone - * - * @throws InvalidDateException - * - * @return static|null - */ - public static function createSafe($year = null, $month = null, $day = null, $hour = null, $minute = null, $second = null, $timezone = null): ?self - { - $month = self::monthToInt($month); - $fields = static::getRangesByUnit(); - - foreach ($fields as $field => $range) { - if ($$field !== null && (!\is_int($$field) || $$field < $range[0] || $$field > $range[1])) { - if (static::isStrictModeEnabled()) { - throw new InvalidDateException($field, $$field); - } - - return null; - } - } - - $instance = static::create($year, $month, $day, $hour, $minute, $second, $timezone); - - foreach (array_reverse($fields) as $field => $range) { - if ($$field !== null && (!\is_int($$field) || $$field !== $instance->$field)) { - if (static::isStrictModeEnabled()) { - throw new InvalidDateException($field, $$field); - } - - return null; - } - } - - return $instance; - } - - /** - * Create a new Carbon instance from a specific date and time using strict validation. - * - * @see create() - * - * @param int|null $year - * @param int|null $month - * @param int|null $day - * @param int|null $hour - * @param int|null $minute - * @param int|null $second - * @param DateTimeZone|string|int|null $timezone - * - * @throws InvalidFormatException - * - * @return static - */ - public static function createStrict(?int $year = 0, ?int $month = 1, ?int $day = 1, ?int $hour = 0, ?int $minute = 0, ?int $second = 0, $timezone = null): static - { - $initialStrictMode = static::isStrictModeEnabled(); - static::useStrictMode(true); - - try { - $date = static::create($year, $month, $day, $hour, $minute, $second, $timezone); - } finally { - static::useStrictMode($initialStrictMode); - } - - return $date; - } - - /** - * Create a Carbon instance from just a date. The time portion is set to now. - * - * @param int|null $year - * @param int|null $month - * @param int|null $day - * @param DateTimeZone|string|int|null $timezone - * - * @throws InvalidFormatException - * - * @return static - */ - public static function createFromDate($year = null, $month = null, $day = null, $timezone = null) - { - return static::create($year, $month, $day, null, null, null, $timezone); - } - - /** - * Create a Carbon instance from just a date. The time portion is set to midnight. - * - * @param int|null $year - * @param int|null $month - * @param int|null $day - * @param DateTimeZone|string|int|null $timezone - * - * @throws InvalidFormatException - * - * @return static - */ - public static function createMidnightDate($year = null, $month = null, $day = null, $timezone = null) - { - return static::create($year, $month, $day, 0, 0, 0, $timezone); - } - - /** - * Create a Carbon instance from just a time. The date portion is set to today. - * - * @param int|null $hour - * @param int|null $minute - * @param int|null $second - * @param DateTimeZone|string|int|null $timezone - * - * @throws InvalidFormatException - * - * @return static - */ - public static function createFromTime($hour = 0, $minute = 0, $second = 0, $timezone = null): static - { - return static::create(null, null, null, $hour, $minute, $second, $timezone); - } - - /** - * Create a Carbon instance from a time string. The date portion is set to today. - * - * @throws InvalidFormatException - */ - public static function createFromTimeString(string $time, DateTimeZone|string|int|null $timezone = null): static - { - return static::today($timezone)->setTimeFromTimeString($time); - } - - private static function createFromFormatAndTimezone( - string $format, - string $time, - DateTimeZone|string|int|null $originalTimezone, - ): ?DateTimeInterface { - if ($originalTimezone === null) { - return parent::createFromFormat($format, $time) ?: null; - } - - $timezone = \is_int($originalTimezone) ? self::getOffsetTimezone($originalTimezone) : $originalTimezone; - - $timezone = static::safeCreateDateTimeZone($timezone, $originalTimezone); - - return parent::createFromFormat($format, $time, $timezone) ?: null; - } - - private static function getOffsetTimezone(int $offset): string - { - $minutes = (int) ($offset * static::MINUTES_PER_HOUR * static::SECONDS_PER_MINUTE); - - return @timezone_name_from_abbr('', $minutes, 1) ?: throw new InvalidTimeZoneException( - "Invalid offset timezone $offset", - ); - } - - /** - * Create a Carbon instance from a specific format. - * - * @param string $format Datetime format - * @param string $time - * @param DateTimeZone|string|int|null $timezone - * - * @throws InvalidFormatException - * - * @return static|null - */ - public static function rawCreateFromFormat(string $format, string $time, $timezone = null): ?self - { - // Work-around for https://bugs.php.net/bug.php?id=80141 - $format = preg_replace('/(?getTimezone(); - } - - $mock = $mock->copy(); - - // Prepend mock datetime only if the format does not contain non escaped unix epoch reset flag. - if (!preg_match("/{$nonEscaped}[!|]/", $format)) { - if (preg_match('/[HhGgisvuB]/', $format)) { - $mock = $mock->setTime(0, 0); - } - - $format = static::MOCK_DATETIME_FORMAT.' '.$format; - $time = ($mock instanceof self ? $mock->rawFormat(static::MOCK_DATETIME_FORMAT) : $mock->format(static::MOCK_DATETIME_FORMAT)).' '.$time; - } - - // Regenerate date from the modified format to base result on the mocked instance instead of now. - $date = self::createFromFormatAndTimezone($format, $time, $timezone); - } - - if ($date instanceof DateTimeInterface) { - $instance = static::instance($date); - $instance::setLastErrors($lastErrors); - - return $instance; - } - - if (static::isStrictModeEnabled()) { - throw new InvalidFormatException(implode(PHP_EOL, (array) $lastErrors['errors'])); - } - - return null; - } - - /** - * Create a Carbon instance from a specific format. - * - * @param string $format Datetime format - * @param string $time - * @param DateTimeZone|string|int|null $timezone - * - * @throws InvalidFormatException - * - * @return static|null - */ - #[ReturnTypeWillChange] - public static function createFromFormat($format, $time, $timezone = null): ?self - { - $function = static::$createFromFormatFunction; - - // format is a single numeric unit - if (\is_int($time) && \in_array(ltrim($format, '!'), ['U', 'Y', 'y', 'X', 'x', 'm', 'n', 'd', 'j', 'w', 'W', 'H', 'h', 'G', 'g', 'i', 's', 'u', 'z', 'v'], true)) { - $time = (string) $time; - } - - if (!\is_string($time)) { - @trigger_error( - 'createFromFormat() $time parameter will only accept string or integer for 1-letter format representing a numeric unit in the next version', - \E_USER_DEPRECATED, - ); - $time = (string) $time; - } - - if (!$function) { - return static::rawCreateFromFormat($format, $time, $timezone); - } - - if (\is_string($function) && method_exists(static::class, $function)) { - $function = [static::class, $function]; - } - - return $function(...\func_get_args()); - } - - /** - * Create a Carbon instance from a specific ISO format (same replacements as ->isoFormat()). - * - * @param string $format Datetime format - * @param string $time - * @param DateTimeZone|string|int|null $timezone optional timezone - * @param string|null $locale locale to be used for LTS, LT, LL, LLL, etc. macro-formats (en by fault, unneeded if no such macro-format in use) - * @param TranslatorInterface|null $translator optional custom translator to use for macro-formats - * - * @throws InvalidFormatException - * - * @return static|null - */ - public static function createFromIsoFormat( - string $format, - string $time, - $timezone = null, - ?string $locale = self::DEFAULT_LOCALE, - ?TranslatorInterface $translator = null - ): ?self { - $format = preg_replace_callback('/(? static::getTranslationMessageWith($translator, 'formats.LT', $locale), - 'LTS' => static::getTranslationMessageWith($translator, 'formats.LTS', $locale), - 'L' => static::getTranslationMessageWith($translator, 'formats.L', $locale), - 'LL' => static::getTranslationMessageWith($translator, 'formats.LL', $locale), - 'LLL' => static::getTranslationMessageWith($translator, 'formats.LLL', $locale), - 'LLLL' => static::getTranslationMessageWith($translator, 'formats.LLLL', $locale), - ]; - } - - return $formats[$code] ?? preg_replace_callback( - '/MMMM|MM|DD|dddd/', - static fn (array $code) => mb_substr($code[0], 1), - $formats[strtoupper($code)] ?? '', - ); - }, $format); - - $format = preg_replace_callback('/(? 'd', - 'OM' => 'M', - 'OY' => 'Y', - 'OH' => 'G', - 'Oh' => 'g', - 'Om' => 'i', - 'Os' => 's', - 'D' => 'd', - 'DD' => 'd', - 'Do' => 'd', - 'd' => '!', - 'dd' => '!', - 'ddd' => 'D', - 'dddd' => 'D', - 'DDD' => 'z', - 'DDDD' => 'z', - 'DDDo' => 'z', - 'e' => '!', - 'E' => '!', - 'H' => 'G', - 'HH' => 'H', - 'h' => 'g', - 'hh' => 'h', - 'k' => 'G', - 'kk' => 'G', - 'hmm' => 'gi', - 'hmmss' => 'gis', - 'Hmm' => 'Gi', - 'Hmmss' => 'Gis', - 'm' => 'i', - 'mm' => 'i', - 'a' => 'a', - 'A' => 'a', - 's' => 's', - 'ss' => 's', - 'S' => '*', - 'SS' => '*', - 'SSS' => '*', - 'SSSS' => '*', - 'SSSSS' => '*', - 'SSSSSS' => 'u', - 'SSSSSSS' => 'u*', - 'SSSSSSSS' => 'u*', - 'SSSSSSSSS' => 'u*', - 'M' => 'm', - 'MM' => 'm', - 'MMM' => 'M', - 'MMMM' => 'M', - 'Mo' => 'm', - 'Q' => '!', - 'Qo' => '!', - 'G' => '!', - 'GG' => '!', - 'GGG' => '!', - 'GGGG' => '!', - 'GGGGG' => '!', - 'g' => '!', - 'gg' => '!', - 'ggg' => '!', - 'gggg' => '!', - 'ggggg' => '!', - 'W' => '!', - 'WW' => '!', - 'Wo' => '!', - 'w' => '!', - 'ww' => '!', - 'wo' => '!', - 'x' => 'U???', - 'X' => 'U', - 'Y' => 'Y', - 'YY' => 'y', - 'YYYY' => 'Y', - 'YYYYY' => 'Y', - 'YYYYYY' => 'Y', - 'z' => 'e', - 'zz' => 'e', - 'Z' => 'e', - 'ZZ' => 'e', - ]; - } - - $format = $replacements[$code] ?? '?'; - - if ($format === '!') { - throw new InvalidFormatException("Format $code not supported for creation."); - } - - return $format; - }, $format); - - return static::rawCreateFromFormat($format, $time, $timezone); - } - - /** - * Create a Carbon instance from a specific format and a string in a given language. - * - * @param string $format Datetime format - * @param string $locale - * @param string $time - * @param DateTimeZone|string|int|null $timezone - * - * @throws InvalidFormatException - * - * @return static|null - */ - public static function createFromLocaleFormat(string $format, string $locale, string $time, $timezone = null): ?self - { - $format = preg_replace_callback( - '/(?:\\\\[a-zA-Z]|[bfkqCEJKQRV]){2,}/', - static function (array $match) use ($locale): string { - $word = str_replace('\\', '', $match[0]); - $translatedWord = static::translateTimeString($word, $locale, static::DEFAULT_LOCALE); - - return $word === $translatedWord - ? $match[0] - : preg_replace('/[a-zA-Z]/', '\\\\$0', $translatedWord); - }, - $format - ); - - return static::rawCreateFromFormat($format, static::translateTimeString($time, $locale, static::DEFAULT_LOCALE), $timezone); - } - - /** - * Create a Carbon instance from a specific ISO format and a string in a given language. - * - * @param string $format Datetime ISO format - * @param string $locale - * @param string $time - * @param DateTimeZone|string|int|null $timezone - * - * @throws InvalidFormatException - * - * @return static|null - */ - public static function createFromLocaleIsoFormat(string $format, string $locale, string $time, $timezone = null): ?self - { - $time = static::translateTimeString($time, $locale, static::DEFAULT_LOCALE, CarbonInterface::TRANSLATE_MONTHS | CarbonInterface::TRANSLATE_DAYS | CarbonInterface::TRANSLATE_MERIDIEM); - - return static::createFromIsoFormat($format, $time, $timezone, $locale); - } - - /** - * Make a Carbon instance from given variable if possible. - * - * Always return a new instance. Parse only strings and only these likely to be dates (skip intervals - * and recurrences). Throw an exception for invalid format, but otherwise return null. - * - * @param mixed $var - * - * @throws InvalidFormatException - * - * @return static|null - */ - public static function make($var, DateTimeZone|string|null $timezone = null): ?self - { - if ($var instanceof DateTimeInterface) { - return static::instance($var); - } - - $date = null; - - if (\is_string($var)) { - $var = trim($var); - - if (!preg_match('/^P[\dT]/', $var) && - !preg_match('/^R\d/', $var) && - preg_match('/[a-z\d]/i', $var) - ) { - $date = static::parse($var, $timezone); - } - } - - return $date; - } - - /** - * Set last errors. - * - * @param array|bool $lastErrors - * - * @return void - */ - private static function setLastErrors($lastErrors): void - { - if (\is_array($lastErrors) || $lastErrors === false) { - static::$lastErrors = \is_array($lastErrors) ? $lastErrors : [ - 'warning_count' => 0, - 'warnings' => [], - 'error_count' => 0, - 'errors' => [], - ]; - } - } - - /** - * {@inheritdoc} - */ - public static function getLastErrors(): array|false - { - return static::$lastErrors ?? false; - } - - private static function monthToInt(mixed $value, string $unit = 'month'): mixed - { - if ($value instanceof Month) { - if ($unit !== 'month') { - throw new UnitException("Month enum cannot be used to set $unit"); - } - - return Month::int($value); - } - - return $value; - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Traits/Date.php b/vendor/nesbot/carbon/src/Carbon/Traits/Date.php deleted file mode 100644 index 8ac81ea..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Traits/Date.php +++ /dev/null @@ -1,2971 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Traits; - -use BadMethodCallException; -use Carbon\Carbon; -use Carbon\CarbonInterface; -use Carbon\CarbonPeriod; -use Carbon\CarbonTimeZone; -use Carbon\Exceptions\BadComparisonUnitException; -use Carbon\Exceptions\ImmutableException; -use Carbon\Exceptions\InvalidTimeZoneException; -use Carbon\Exceptions\UnitException; -use Carbon\Exceptions\UnknownGetterException; -use Carbon\Exceptions\UnknownMethodException; -use Carbon\Exceptions\UnknownSetterException; -use Carbon\Exceptions\UnknownUnitException; -use Carbon\FactoryImmutable; -use Carbon\Month; -use Carbon\Translator; -use Carbon\Unit; -use Carbon\WeekDay; -use Closure; -use DateInterval; -use DatePeriod; -use DateTime; -use DateTimeImmutable; -use DateTimeInterface; -use DateTimeZone; -use Generator; -use InvalidArgumentException; -use ReflectionException; -use Symfony\Component\Clock\NativeClock; -use Throwable; - -/** - * A simple API extension for DateTime. - * - * - * - * @property string $localeDayOfWeek the day of week in current locale - * @property string $shortLocaleDayOfWeek the abbreviated day of week in current locale - * @property string $localeMonth the month in current locale - * @property string $shortLocaleMonth the abbreviated month in current locale - * @property int $year - * @property int $yearIso - * @property int $month - * @property int $day - * @property int $hour - * @property int $minute - * @property int $second - * @property int $micro - * @property int $microsecond - * @property int $dayOfWeekIso 1 (for Monday) through 7 (for Sunday) - * @property int|float|string $timestamp seconds since the Unix Epoch - * @property string $englishDayOfWeek the day of week in English - * @property string $shortEnglishDayOfWeek the abbreviated day of week in English - * @property string $englishMonth the month in English - * @property string $shortEnglishMonth the abbreviated month in English - * @property int $milliseconds - * @property int $millisecond - * @property int $milli - * @property int $week 1 through 53 - * @property int $isoWeek 1 through 53 - * @property int $weekYear year according to week format - * @property int $isoWeekYear year according to ISO week format - * @property int $age does a diffInYears() with default parameters - * @property int $offset the timezone offset in seconds from UTC - * @property int $offsetMinutes the timezone offset in minutes from UTC - * @property int $offsetHours the timezone offset in hours from UTC - * @property CarbonTimeZone $timezone the current timezone - * @property CarbonTimeZone $tz alias of $timezone - * @property int $centuryOfMillennium The value of the century starting from the beginning of the current millennium - * @property int $dayOfCentury The value of the day starting from the beginning of the current century - * @property int $dayOfDecade The value of the day starting from the beginning of the current decade - * @property int $dayOfMillennium The value of the day starting from the beginning of the current millennium - * @property int $dayOfMonth The value of the day starting from the beginning of the current month - * @property int $dayOfQuarter The value of the day starting from the beginning of the current quarter - * @property int $dayOfWeek 0 (for Sunday) through 6 (for Saturday) - * @property int $dayOfYear 1 through 366 - * @property int $decadeOfCentury The value of the decade starting from the beginning of the current century - * @property int $decadeOfMillennium The value of the decade starting from the beginning of the current millennium - * @property int $hourOfCentury The value of the hour starting from the beginning of the current century - * @property int $hourOfDay The value of the hour starting from the beginning of the current day - * @property int $hourOfDecade The value of the hour starting from the beginning of the current decade - * @property int $hourOfMillennium The value of the hour starting from the beginning of the current millennium - * @property int $hourOfMonth The value of the hour starting from the beginning of the current month - * @property int $hourOfQuarter The value of the hour starting from the beginning of the current quarter - * @property int $hourOfWeek The value of the hour starting from the beginning of the current week - * @property int $hourOfYear The value of the hour starting from the beginning of the current year - * @property int $microsecondOfCentury The value of the microsecond starting from the beginning of the current century - * @property int $microsecondOfDay The value of the microsecond starting from the beginning of the current day - * @property int $microsecondOfDecade The value of the microsecond starting from the beginning of the current decade - * @property int $microsecondOfHour The value of the microsecond starting from the beginning of the current hour - * @property int $microsecondOfMillennium The value of the microsecond starting from the beginning of the current millennium - * @property int $microsecondOfMillisecond The value of the microsecond starting from the beginning of the current millisecond - * @property int $microsecondOfMinute The value of the microsecond starting from the beginning of the current minute - * @property int $microsecondOfMonth The value of the microsecond starting from the beginning of the current month - * @property int $microsecondOfQuarter The value of the microsecond starting from the beginning of the current quarter - * @property int $microsecondOfSecond The value of the microsecond starting from the beginning of the current second - * @property int $microsecondOfWeek The value of the microsecond starting from the beginning of the current week - * @property int $microsecondOfYear The value of the microsecond starting from the beginning of the current year - * @property int $millisecondOfCentury The value of the millisecond starting from the beginning of the current century - * @property int $millisecondOfDay The value of the millisecond starting from the beginning of the current day - * @property int $millisecondOfDecade The value of the millisecond starting from the beginning of the current decade - * @property int $millisecondOfHour The value of the millisecond starting from the beginning of the current hour - * @property int $millisecondOfMillennium The value of the millisecond starting from the beginning of the current millennium - * @property int $millisecondOfMinute The value of the millisecond starting from the beginning of the current minute - * @property int $millisecondOfMonth The value of the millisecond starting from the beginning of the current month - * @property int $millisecondOfQuarter The value of the millisecond starting from the beginning of the current quarter - * @property int $millisecondOfSecond The value of the millisecond starting from the beginning of the current second - * @property int $millisecondOfWeek The value of the millisecond starting from the beginning of the current week - * @property int $millisecondOfYear The value of the millisecond starting from the beginning of the current year - * @property int $minuteOfCentury The value of the minute starting from the beginning of the current century - * @property int $minuteOfDay The value of the minute starting from the beginning of the current day - * @property int $minuteOfDecade The value of the minute starting from the beginning of the current decade - * @property int $minuteOfHour The value of the minute starting from the beginning of the current hour - * @property int $minuteOfMillennium The value of the minute starting from the beginning of the current millennium - * @property int $minuteOfMonth The value of the minute starting from the beginning of the current month - * @property int $minuteOfQuarter The value of the minute starting from the beginning of the current quarter - * @property int $minuteOfWeek The value of the minute starting from the beginning of the current week - * @property int $minuteOfYear The value of the minute starting from the beginning of the current year - * @property int $monthOfCentury The value of the month starting from the beginning of the current century - * @property int $monthOfDecade The value of the month starting from the beginning of the current decade - * @property int $monthOfMillennium The value of the month starting from the beginning of the current millennium - * @property int $monthOfQuarter The value of the month starting from the beginning of the current quarter - * @property int $monthOfYear The value of the month starting from the beginning of the current year - * @property int $quarterOfCentury The value of the quarter starting from the beginning of the current century - * @property int $quarterOfDecade The value of the quarter starting from the beginning of the current decade - * @property int $quarterOfMillennium The value of the quarter starting from the beginning of the current millennium - * @property int $quarterOfYear The value of the quarter starting from the beginning of the current year - * @property int $secondOfCentury The value of the second starting from the beginning of the current century - * @property int $secondOfDay The value of the second starting from the beginning of the current day - * @property int $secondOfDecade The value of the second starting from the beginning of the current decade - * @property int $secondOfHour The value of the second starting from the beginning of the current hour - * @property int $secondOfMillennium The value of the second starting from the beginning of the current millennium - * @property int $secondOfMinute The value of the second starting from the beginning of the current minute - * @property int $secondOfMonth The value of the second starting from the beginning of the current month - * @property int $secondOfQuarter The value of the second starting from the beginning of the current quarter - * @property int $secondOfWeek The value of the second starting from the beginning of the current week - * @property int $secondOfYear The value of the second starting from the beginning of the current year - * @property int $weekOfCentury The value of the week starting from the beginning of the current century - * @property int $weekOfDecade The value of the week starting from the beginning of the current decade - * @property int $weekOfMillennium The value of the week starting from the beginning of the current millennium - * @property int $weekOfMonth 1 through 5 - * @property int $weekOfQuarter The value of the week starting from the beginning of the current quarter - * @property int $weekOfYear ISO-8601 week number of year, weeks starting on Monday - * @property int $yearOfCentury The value of the year starting from the beginning of the current century - * @property int $yearOfDecade The value of the year starting from the beginning of the current decade - * @property int $yearOfMillennium The value of the year starting from the beginning of the current millennium - * @property-read string $latinMeridiem "am"/"pm" (Ante meridiem or Post meridiem latin lowercase mark) - * @property-read string $latinUpperMeridiem "AM"/"PM" (Ante meridiem or Post meridiem latin uppercase mark) - * @property-read string $timezoneAbbreviatedName the current timezone abbreviated name - * @property-read string $tzAbbrName alias of $timezoneAbbreviatedName - * @property-read string $dayName long name of weekday translated according to Carbon locale, in english if no translation available for current language - * @property-read string $shortDayName short name of weekday translated according to Carbon locale, in english if no translation available for current language - * @property-read string $minDayName very short name of weekday translated according to Carbon locale, in english if no translation available for current language - * @property-read string $monthName long name of month translated according to Carbon locale, in english if no translation available for current language - * @property-read string $shortMonthName short name of month translated according to Carbon locale, in english if no translation available for current language - * @property-read string $meridiem lowercase meridiem mark translated according to Carbon locale, in latin if no translation available for current language - * @property-read string $upperMeridiem uppercase meridiem mark translated according to Carbon locale, in latin if no translation available for current language - * @property-read int $noZeroHour current hour from 1 to 24 - * @property-read int $isoWeeksInYear 51 through 53 - * @property-read int $weekNumberInMonth 1 through 5 - * @property-read int $firstWeekDay 0 through 6 - * @property-read int $lastWeekDay 0 through 6 - * @property-read int $quarter the quarter of this instance, 1 - 4 - * @property-read int $decade the decade of this instance - * @property-read int $century the century of this instance - * @property-read int $millennium the millennium of this instance - * @property-read bool $dst daylight savings time indicator, true if DST, false otherwise - * @property-read bool $local checks if the timezone is local, true if local, false otherwise - * @property-read bool $utc checks if the timezone is UTC, true if UTC, false otherwise - * @property-read string $timezoneName the current timezone name - * @property-read string $tzName alias of $timezoneName - * @property-read string $locale locale of the current instance - * @property-read int $centuriesInMillennium The number of centuries contained in the current millennium - * @property-read int $daysInCentury The number of days contained in the current century - * @property-read int $daysInDecade The number of days contained in the current decade - * @property-read int $daysInMillennium The number of days contained in the current millennium - * @property-read int $daysInMonth number of days in the given month - * @property-read int $daysInQuarter The number of days contained in the current quarter - * @property-read int $daysInWeek The number of days contained in the current week - * @property-read int $daysInYear 365 or 366 - * @property-read int $decadesInCentury The number of decades contained in the current century - * @property-read int $decadesInMillennium The number of decades contained in the current millennium - * @property-read int $hoursInCentury The number of hours contained in the current century - * @property-read int $hoursInDay The number of hours contained in the current day - * @property-read int $hoursInDecade The number of hours contained in the current decade - * @property-read int $hoursInMillennium The number of hours contained in the current millennium - * @property-read int $hoursInMonth The number of hours contained in the current month - * @property-read int $hoursInQuarter The number of hours contained in the current quarter - * @property-read int $hoursInWeek The number of hours contained in the current week - * @property-read int $hoursInYear The number of hours contained in the current year - * @property-read int $microsecondsInCentury The number of microseconds contained in the current century - * @property-read int $microsecondsInDay The number of microseconds contained in the current day - * @property-read int $microsecondsInDecade The number of microseconds contained in the current decade - * @property-read int $microsecondsInHour The number of microseconds contained in the current hour - * @property-read int $microsecondsInMillennium The number of microseconds contained in the current millennium - * @property-read int $microsecondsInMillisecond The number of microseconds contained in the current millisecond - * @property-read int $microsecondsInMinute The number of microseconds contained in the current minute - * @property-read int $microsecondsInMonth The number of microseconds contained in the current month - * @property-read int $microsecondsInQuarter The number of microseconds contained in the current quarter - * @property-read int $microsecondsInSecond The number of microseconds contained in the current second - * @property-read int $microsecondsInWeek The number of microseconds contained in the current week - * @property-read int $microsecondsInYear The number of microseconds contained in the current year - * @property-read int $millisecondsInCentury The number of milliseconds contained in the current century - * @property-read int $millisecondsInDay The number of milliseconds contained in the current day - * @property-read int $millisecondsInDecade The number of milliseconds contained in the current decade - * @property-read int $millisecondsInHour The number of milliseconds contained in the current hour - * @property-read int $millisecondsInMillennium The number of milliseconds contained in the current millennium - * @property-read int $millisecondsInMinute The number of milliseconds contained in the current minute - * @property-read int $millisecondsInMonth The number of milliseconds contained in the current month - * @property-read int $millisecondsInQuarter The number of milliseconds contained in the current quarter - * @property-read int $millisecondsInSecond The number of milliseconds contained in the current second - * @property-read int $millisecondsInWeek The number of milliseconds contained in the current week - * @property-read int $millisecondsInYear The number of milliseconds contained in the current year - * @property-read int $minutesInCentury The number of minutes contained in the current century - * @property-read int $minutesInDay The number of minutes contained in the current day - * @property-read int $minutesInDecade The number of minutes contained in the current decade - * @property-read int $minutesInHour The number of minutes contained in the current hour - * @property-read int $minutesInMillennium The number of minutes contained in the current millennium - * @property-read int $minutesInMonth The number of minutes contained in the current month - * @property-read int $minutesInQuarter The number of minutes contained in the current quarter - * @property-read int $minutesInWeek The number of minutes contained in the current week - * @property-read int $minutesInYear The number of minutes contained in the current year - * @property-read int $monthsInCentury The number of months contained in the current century - * @property-read int $monthsInDecade The number of months contained in the current decade - * @property-read int $monthsInMillennium The number of months contained in the current millennium - * @property-read int $monthsInQuarter The number of months contained in the current quarter - * @property-read int $monthsInYear The number of months contained in the current year - * @property-read int $quartersInCentury The number of quarters contained in the current century - * @property-read int $quartersInDecade The number of quarters contained in the current decade - * @property-read int $quartersInMillennium The number of quarters contained in the current millennium - * @property-read int $quartersInYear The number of quarters contained in the current year - * @property-read int $secondsInCentury The number of seconds contained in the current century - * @property-read int $secondsInDay The number of seconds contained in the current day - * @property-read int $secondsInDecade The number of seconds contained in the current decade - * @property-read int $secondsInHour The number of seconds contained in the current hour - * @property-read int $secondsInMillennium The number of seconds contained in the current millennium - * @property-read int $secondsInMinute The number of seconds contained in the current minute - * @property-read int $secondsInMonth The number of seconds contained in the current month - * @property-read int $secondsInQuarter The number of seconds contained in the current quarter - * @property-read int $secondsInWeek The number of seconds contained in the current week - * @property-read int $secondsInYear The number of seconds contained in the current year - * @property-read int $weeksInCentury The number of weeks contained in the current century - * @property-read int $weeksInDecade The number of weeks contained in the current decade - * @property-read int $weeksInMillennium The number of weeks contained in the current millennium - * @property-read int $weeksInMonth The number of weeks contained in the current month - * @property-read int $weeksInQuarter The number of weeks contained in the current quarter - * @property-read int $weeksInYear 51 through 53 - * @property-read int $yearsInCentury The number of years contained in the current century - * @property-read int $yearsInDecade The number of years contained in the current decade - * @property-read int $yearsInMillennium The number of years contained in the current millennium - * - * @method bool isUtc() Check if the current instance has UTC timezone. (Both isUtc and isUTC cases are valid.) - * @method bool isLocal() Check if the current instance has non-UTC timezone. - * @method bool isValid() Check if the current instance is a valid date. - * @method bool isDST() Check if the current instance is in a daylight saving time. - * @method bool isSunday() Checks if the instance day is sunday. - * @method bool isMonday() Checks if the instance day is monday. - * @method bool isTuesday() Checks if the instance day is tuesday. - * @method bool isWednesday() Checks if the instance day is wednesday. - * @method bool isThursday() Checks if the instance day is thursday. - * @method bool isFriday() Checks if the instance day is friday. - * @method bool isSaturday() Checks if the instance day is saturday. - * @method bool isSameYear(DateTimeInterface|string $date) Checks if the given date is in the same year as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentYear() Checks if the instance is in the same year as the current moment. - * @method bool isNextYear() Checks if the instance is in the same year as the current moment next year. - * @method bool isLastYear() Checks if the instance is in the same year as the current moment last year. - * @method bool isCurrentMonth() Checks if the instance is in the same month as the current moment. - * @method bool isNextMonth() Checks if the instance is in the same month as the current moment next month. - * @method bool isLastMonth() Checks if the instance is in the same month as the current moment last month. - * @method bool isSameWeek(DateTimeInterface|string $date) Checks if the given date is in the same week as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentWeek() Checks if the instance is in the same week as the current moment. - * @method bool isNextWeek() Checks if the instance is in the same week as the current moment next week. - * @method bool isLastWeek() Checks if the instance is in the same week as the current moment last week. - * @method bool isSameDay(DateTimeInterface|string $date) Checks if the given date is in the same day as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentDay() Checks if the instance is in the same day as the current moment. - * @method bool isNextDay() Checks if the instance is in the same day as the current moment next day. - * @method bool isLastDay() Checks if the instance is in the same day as the current moment last day. - * @method bool isSameHour(DateTimeInterface|string $date) Checks if the given date is in the same hour as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentHour() Checks if the instance is in the same hour as the current moment. - * @method bool isNextHour() Checks if the instance is in the same hour as the current moment next hour. - * @method bool isLastHour() Checks if the instance is in the same hour as the current moment last hour. - * @method bool isSameMinute(DateTimeInterface|string $date) Checks if the given date is in the same minute as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentMinute() Checks if the instance is in the same minute as the current moment. - * @method bool isNextMinute() Checks if the instance is in the same minute as the current moment next minute. - * @method bool isLastMinute() Checks if the instance is in the same minute as the current moment last minute. - * @method bool isSameSecond(DateTimeInterface|string $date) Checks if the given date is in the same second as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentSecond() Checks if the instance is in the same second as the current moment. - * @method bool isNextSecond() Checks if the instance is in the same second as the current moment next second. - * @method bool isLastSecond() Checks if the instance is in the same second as the current moment last second. - * @method bool isSameMilli(DateTimeInterface|string $date) Checks if the given date is in the same millisecond as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentMilli() Checks if the instance is in the same millisecond as the current moment. - * @method bool isNextMilli() Checks if the instance is in the same millisecond as the current moment next millisecond. - * @method bool isLastMilli() Checks if the instance is in the same millisecond as the current moment last millisecond. - * @method bool isSameMillisecond(DateTimeInterface|string $date) Checks if the given date is in the same millisecond as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentMillisecond() Checks if the instance is in the same millisecond as the current moment. - * @method bool isNextMillisecond() Checks if the instance is in the same millisecond as the current moment next millisecond. - * @method bool isLastMillisecond() Checks if the instance is in the same millisecond as the current moment last millisecond. - * @method bool isSameMicro(DateTimeInterface|string $date) Checks if the given date is in the same microsecond as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentMicro() Checks if the instance is in the same microsecond as the current moment. - * @method bool isNextMicro() Checks if the instance is in the same microsecond as the current moment next microsecond. - * @method bool isLastMicro() Checks if the instance is in the same microsecond as the current moment last microsecond. - * @method bool isSameMicrosecond(DateTimeInterface|string $date) Checks if the given date is in the same microsecond as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentMicrosecond() Checks if the instance is in the same microsecond as the current moment. - * @method bool isNextMicrosecond() Checks if the instance is in the same microsecond as the current moment next microsecond. - * @method bool isLastMicrosecond() Checks if the instance is in the same microsecond as the current moment last microsecond. - * @method bool isSameDecade(DateTimeInterface|string $date) Checks if the given date is in the same decade as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentDecade() Checks if the instance is in the same decade as the current moment. - * @method bool isNextDecade() Checks if the instance is in the same decade as the current moment next decade. - * @method bool isLastDecade() Checks if the instance is in the same decade as the current moment last decade. - * @method bool isSameCentury(DateTimeInterface|string $date) Checks if the given date is in the same century as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentCentury() Checks if the instance is in the same century as the current moment. - * @method bool isNextCentury() Checks if the instance is in the same century as the current moment next century. - * @method bool isLastCentury() Checks if the instance is in the same century as the current moment last century. - * @method bool isSameMillennium(DateTimeInterface|string $date) Checks if the given date is in the same millennium as the instance. If null passed, compare to now (with the same timezone). - * @method bool isCurrentMillennium() Checks if the instance is in the same millennium as the current moment. - * @method bool isNextMillennium() Checks if the instance is in the same millennium as the current moment next millennium. - * @method bool isLastMillennium() Checks if the instance is in the same millennium as the current moment last millennium. - * @method bool isCurrentQuarter() Checks if the instance is in the same quarter as the current moment. - * @method bool isNextQuarter() Checks if the instance is in the same quarter as the current moment next quarter. - * @method bool isLastQuarter() Checks if the instance is in the same quarter as the current moment last quarter. - * @method CarbonInterface years(int $value) Set current instance year to the given value. - * @method CarbonInterface year(int $value) Set current instance year to the given value. - * @method CarbonInterface setYears(int $value) Set current instance year to the given value. - * @method CarbonInterface setYear(int $value) Set current instance year to the given value. - * @method CarbonInterface months(Month|int $value) Set current instance month to the given value. - * @method CarbonInterface month(Month|int $value) Set current instance month to the given value. - * @method CarbonInterface setMonths(Month|int $value) Set current instance month to the given value. - * @method CarbonInterface setMonth(Month|int $value) Set current instance month to the given value. - * @method CarbonInterface days(int $value) Set current instance day to the given value. - * @method CarbonInterface day(int $value) Set current instance day to the given value. - * @method CarbonInterface setDays(int $value) Set current instance day to the given value. - * @method CarbonInterface setDay(int $value) Set current instance day to the given value. - * @method CarbonInterface hours(int $value) Set current instance hour to the given value. - * @method CarbonInterface hour(int $value) Set current instance hour to the given value. - * @method CarbonInterface setHours(int $value) Set current instance hour to the given value. - * @method CarbonInterface setHour(int $value) Set current instance hour to the given value. - * @method CarbonInterface minutes(int $value) Set current instance minute to the given value. - * @method CarbonInterface minute(int $value) Set current instance minute to the given value. - * @method CarbonInterface setMinutes(int $value) Set current instance minute to the given value. - * @method CarbonInterface setMinute(int $value) Set current instance minute to the given value. - * @method CarbonInterface seconds(int $value) Set current instance second to the given value. - * @method CarbonInterface second(int $value) Set current instance second to the given value. - * @method CarbonInterface setSeconds(int $value) Set current instance second to the given value. - * @method CarbonInterface setSecond(int $value) Set current instance second to the given value. - * @method CarbonInterface millis(int $value) Set current instance millisecond to the given value. - * @method CarbonInterface milli(int $value) Set current instance millisecond to the given value. - * @method CarbonInterface setMillis(int $value) Set current instance millisecond to the given value. - * @method CarbonInterface setMilli(int $value) Set current instance millisecond to the given value. - * @method CarbonInterface milliseconds(int $value) Set current instance millisecond to the given value. - * @method CarbonInterface millisecond(int $value) Set current instance millisecond to the given value. - * @method CarbonInterface setMilliseconds(int $value) Set current instance millisecond to the given value. - * @method CarbonInterface setMillisecond(int $value) Set current instance millisecond to the given value. - * @method CarbonInterface micros(int $value) Set current instance microsecond to the given value. - * @method CarbonInterface micro(int $value) Set current instance microsecond to the given value. - * @method CarbonInterface setMicros(int $value) Set current instance microsecond to the given value. - * @method CarbonInterface setMicro(int $value) Set current instance microsecond to the given value. - * @method CarbonInterface microseconds(int $value) Set current instance microsecond to the given value. - * @method CarbonInterface microsecond(int $value) Set current instance microsecond to the given value. - * @method CarbonInterface setMicroseconds(int $value) Set current instance microsecond to the given value. - * @method CarbonInterface setMicrosecond(int $value) Set current instance microsecond to the given value. - * @method CarbonInterface addYears(int|float $value = 1) Add years (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface addYear() Add one year to the instance (using date interval). - * @method CarbonInterface subYears(int|float $value = 1) Sub years (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface subYear() Sub one year to the instance (using date interval). - * @method CarbonInterface addYearsWithOverflow(int|float $value = 1) Add years (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface addYearWithOverflow() Add one year to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface subYearsWithOverflow(int|float $value = 1) Sub years (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface subYearWithOverflow() Sub one year to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface addYearsWithoutOverflow(int|float $value = 1) Add years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addYearWithoutOverflow() Add one year to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subYearsWithoutOverflow(int|float $value = 1) Sub years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subYearWithoutOverflow() Sub one year to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addYearsWithNoOverflow(int|float $value = 1) Add years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addYearWithNoOverflow() Add one year to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subYearsWithNoOverflow(int|float $value = 1) Sub years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subYearWithNoOverflow() Sub one year to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addYearsNoOverflow(int|float $value = 1) Add years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addYearNoOverflow() Add one year to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subYearsNoOverflow(int|float $value = 1) Sub years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subYearNoOverflow() Sub one year to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addMonths(int|float $value = 1) Add months (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface addMonth() Add one month to the instance (using date interval). - * @method CarbonInterface subMonths(int|float $value = 1) Sub months (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface subMonth() Sub one month to the instance (using date interval). - * @method CarbonInterface addMonthsWithOverflow(int|float $value = 1) Add months (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface addMonthWithOverflow() Add one month to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface subMonthsWithOverflow(int|float $value = 1) Sub months (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface subMonthWithOverflow() Sub one month to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface addMonthsWithoutOverflow(int|float $value = 1) Add months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addMonthWithoutOverflow() Add one month to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subMonthsWithoutOverflow(int|float $value = 1) Sub months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subMonthWithoutOverflow() Sub one month to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addMonthsWithNoOverflow(int|float $value = 1) Add months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addMonthWithNoOverflow() Add one month to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subMonthsWithNoOverflow(int|float $value = 1) Sub months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subMonthWithNoOverflow() Sub one month to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addMonthsNoOverflow(int|float $value = 1) Add months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addMonthNoOverflow() Add one month to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subMonthsNoOverflow(int|float $value = 1) Sub months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subMonthNoOverflow() Sub one month to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addDays(int|float $value = 1) Add days (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface addDay() Add one day to the instance (using date interval). - * @method CarbonInterface subDays(int|float $value = 1) Sub days (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface subDay() Sub one day to the instance (using date interval). - * @method CarbonInterface addHours(int|float $value = 1) Add hours (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface addHour() Add one hour to the instance (using date interval). - * @method CarbonInterface subHours(int|float $value = 1) Sub hours (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface subHour() Sub one hour to the instance (using date interval). - * @method CarbonInterface addMinutes(int|float $value = 1) Add minutes (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface addMinute() Add one minute to the instance (using date interval). - * @method CarbonInterface subMinutes(int|float $value = 1) Sub minutes (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface subMinute() Sub one minute to the instance (using date interval). - * @method CarbonInterface addSeconds(int|float $value = 1) Add seconds (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface addSecond() Add one second to the instance (using date interval). - * @method CarbonInterface subSeconds(int|float $value = 1) Sub seconds (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface subSecond() Sub one second to the instance (using date interval). - * @method CarbonInterface addMillis(int|float $value = 1) Add milliseconds (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface addMilli() Add one millisecond to the instance (using date interval). - * @method CarbonInterface subMillis(int|float $value = 1) Sub milliseconds (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface subMilli() Sub one millisecond to the instance (using date interval). - * @method CarbonInterface addMilliseconds(int|float $value = 1) Add milliseconds (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface addMillisecond() Add one millisecond to the instance (using date interval). - * @method CarbonInterface subMilliseconds(int|float $value = 1) Sub milliseconds (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface subMillisecond() Sub one millisecond to the instance (using date interval). - * @method CarbonInterface addMicros(int|float $value = 1) Add microseconds (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface addMicro() Add one microsecond to the instance (using date interval). - * @method CarbonInterface subMicros(int|float $value = 1) Sub microseconds (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface subMicro() Sub one microsecond to the instance (using date interval). - * @method CarbonInterface addMicroseconds(int|float $value = 1) Add microseconds (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface addMicrosecond() Add one microsecond to the instance (using date interval). - * @method CarbonInterface subMicroseconds(int|float $value = 1) Sub microseconds (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface subMicrosecond() Sub one microsecond to the instance (using date interval). - * @method CarbonInterface addMillennia(int|float $value = 1) Add millennia (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface addMillennium() Add one millennium to the instance (using date interval). - * @method CarbonInterface subMillennia(int|float $value = 1) Sub millennia (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface subMillennium() Sub one millennium to the instance (using date interval). - * @method CarbonInterface addMillenniaWithOverflow(int|float $value = 1) Add millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface addMillenniumWithOverflow() Add one millennium to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface subMillenniaWithOverflow(int|float $value = 1) Sub millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface subMillenniumWithOverflow() Sub one millennium to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface addMillenniaWithoutOverflow(int|float $value = 1) Add millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addMillenniumWithoutOverflow() Add one millennium to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subMillenniaWithoutOverflow(int|float $value = 1) Sub millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subMillenniumWithoutOverflow() Sub one millennium to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addMillenniaWithNoOverflow(int|float $value = 1) Add millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addMillenniumWithNoOverflow() Add one millennium to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subMillenniaWithNoOverflow(int|float $value = 1) Sub millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subMillenniumWithNoOverflow() Sub one millennium to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addMillenniaNoOverflow(int|float $value = 1) Add millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addMillenniumNoOverflow() Add one millennium to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subMillenniaNoOverflow(int|float $value = 1) Sub millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subMillenniumNoOverflow() Sub one millennium to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addCenturies(int|float $value = 1) Add centuries (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface addCentury() Add one century to the instance (using date interval). - * @method CarbonInterface subCenturies(int|float $value = 1) Sub centuries (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface subCentury() Sub one century to the instance (using date interval). - * @method CarbonInterface addCenturiesWithOverflow(int|float $value = 1) Add centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface addCenturyWithOverflow() Add one century to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface subCenturiesWithOverflow(int|float $value = 1) Sub centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface subCenturyWithOverflow() Sub one century to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface addCenturiesWithoutOverflow(int|float $value = 1) Add centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addCenturyWithoutOverflow() Add one century to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subCenturiesWithoutOverflow(int|float $value = 1) Sub centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subCenturyWithoutOverflow() Sub one century to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addCenturiesWithNoOverflow(int|float $value = 1) Add centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addCenturyWithNoOverflow() Add one century to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subCenturiesWithNoOverflow(int|float $value = 1) Sub centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subCenturyWithNoOverflow() Sub one century to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addCenturiesNoOverflow(int|float $value = 1) Add centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addCenturyNoOverflow() Add one century to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subCenturiesNoOverflow(int|float $value = 1) Sub centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subCenturyNoOverflow() Sub one century to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addDecades(int|float $value = 1) Add decades (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface addDecade() Add one decade to the instance (using date interval). - * @method CarbonInterface subDecades(int|float $value = 1) Sub decades (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface subDecade() Sub one decade to the instance (using date interval). - * @method CarbonInterface addDecadesWithOverflow(int|float $value = 1) Add decades (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface addDecadeWithOverflow() Add one decade to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface subDecadesWithOverflow(int|float $value = 1) Sub decades (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface subDecadeWithOverflow() Sub one decade to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface addDecadesWithoutOverflow(int|float $value = 1) Add decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addDecadeWithoutOverflow() Add one decade to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subDecadesWithoutOverflow(int|float $value = 1) Sub decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subDecadeWithoutOverflow() Sub one decade to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addDecadesWithNoOverflow(int|float $value = 1) Add decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addDecadeWithNoOverflow() Add one decade to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subDecadesWithNoOverflow(int|float $value = 1) Sub decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subDecadeWithNoOverflow() Sub one decade to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addDecadesNoOverflow(int|float $value = 1) Add decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addDecadeNoOverflow() Add one decade to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subDecadesNoOverflow(int|float $value = 1) Sub decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subDecadeNoOverflow() Sub one decade to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addQuarters(int|float $value = 1) Add quarters (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface addQuarter() Add one quarter to the instance (using date interval). - * @method CarbonInterface subQuarters(int|float $value = 1) Sub quarters (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface subQuarter() Sub one quarter to the instance (using date interval). - * @method CarbonInterface addQuartersWithOverflow(int|float $value = 1) Add quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface addQuarterWithOverflow() Add one quarter to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface subQuartersWithOverflow(int|float $value = 1) Sub quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface subQuarterWithOverflow() Sub one quarter to the instance (using date interval) with overflow explicitly allowed. - * @method CarbonInterface addQuartersWithoutOverflow(int|float $value = 1) Add quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addQuarterWithoutOverflow() Add one quarter to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subQuartersWithoutOverflow(int|float $value = 1) Sub quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subQuarterWithoutOverflow() Sub one quarter to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addQuartersWithNoOverflow(int|float $value = 1) Add quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addQuarterWithNoOverflow() Add one quarter to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subQuartersWithNoOverflow(int|float $value = 1) Sub quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subQuarterWithNoOverflow() Sub one quarter to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addQuartersNoOverflow(int|float $value = 1) Add quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addQuarterNoOverflow() Add one quarter to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subQuartersNoOverflow(int|float $value = 1) Sub quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface subQuarterNoOverflow() Sub one quarter to the instance (using date interval) with overflow explicitly forbidden. - * @method CarbonInterface addWeeks(int|float $value = 1) Add weeks (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface addWeek() Add one week to the instance (using date interval). - * @method CarbonInterface subWeeks(int|float $value = 1) Sub weeks (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface subWeek() Sub one week to the instance (using date interval). - * @method CarbonInterface addWeekdays(int|float $value = 1) Add weekdays (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface addWeekday() Add one weekday to the instance (using date interval). - * @method CarbonInterface subWeekdays(int|float $value = 1) Sub weekdays (the $value count passed in) to the instance (using date interval). - * @method CarbonInterface subWeekday() Sub one weekday to the instance (using date interval). - * @method CarbonInterface addUTCMicros(int|float $value = 1) Add microseconds (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface addUTCMicro() Add one microsecond to the instance (using timestamp). - * @method CarbonInterface subUTCMicros(int|float $value = 1) Sub microseconds (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface subUTCMicro() Sub one microsecond to the instance (using timestamp). - * @method CarbonPeriod microsUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each microsecond or every X microseconds if a factor is given. - * @method float diffInUTCMicros(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of microseconds. - * @method CarbonInterface addUTCMicroseconds(int|float $value = 1) Add microseconds (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface addUTCMicrosecond() Add one microsecond to the instance (using timestamp). - * @method CarbonInterface subUTCMicroseconds(int|float $value = 1) Sub microseconds (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface subUTCMicrosecond() Sub one microsecond to the instance (using timestamp). - * @method CarbonPeriod microsecondsUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each microsecond or every X microseconds if a factor is given. - * @method float diffInUTCMicroseconds(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of microseconds. - * @method CarbonInterface addUTCMillis(int|float $value = 1) Add milliseconds (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface addUTCMilli() Add one millisecond to the instance (using timestamp). - * @method CarbonInterface subUTCMillis(int|float $value = 1) Sub milliseconds (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface subUTCMilli() Sub one millisecond to the instance (using timestamp). - * @method CarbonPeriod millisUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each millisecond or every X milliseconds if a factor is given. - * @method float diffInUTCMillis(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of milliseconds. - * @method CarbonInterface addUTCMilliseconds(int|float $value = 1) Add milliseconds (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface addUTCMillisecond() Add one millisecond to the instance (using timestamp). - * @method CarbonInterface subUTCMilliseconds(int|float $value = 1) Sub milliseconds (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface subUTCMillisecond() Sub one millisecond to the instance (using timestamp). - * @method CarbonPeriod millisecondsUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each millisecond or every X milliseconds if a factor is given. - * @method float diffInUTCMilliseconds(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of milliseconds. - * @method CarbonInterface addUTCSeconds(int|float $value = 1) Add seconds (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface addUTCSecond() Add one second to the instance (using timestamp). - * @method CarbonInterface subUTCSeconds(int|float $value = 1) Sub seconds (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface subUTCSecond() Sub one second to the instance (using timestamp). - * @method CarbonPeriod secondsUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each second or every X seconds if a factor is given. - * @method float diffInUTCSeconds(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of seconds. - * @method CarbonInterface addUTCMinutes(int|float $value = 1) Add minutes (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface addUTCMinute() Add one minute to the instance (using timestamp). - * @method CarbonInterface subUTCMinutes(int|float $value = 1) Sub minutes (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface subUTCMinute() Sub one minute to the instance (using timestamp). - * @method CarbonPeriod minutesUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each minute or every X minutes if a factor is given. - * @method float diffInUTCMinutes(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of minutes. - * @method CarbonInterface addUTCHours(int|float $value = 1) Add hours (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface addUTCHour() Add one hour to the instance (using timestamp). - * @method CarbonInterface subUTCHours(int|float $value = 1) Sub hours (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface subUTCHour() Sub one hour to the instance (using timestamp). - * @method CarbonPeriod hoursUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each hour or every X hours if a factor is given. - * @method float diffInUTCHours(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of hours. - * @method CarbonInterface addUTCDays(int|float $value = 1) Add days (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface addUTCDay() Add one day to the instance (using timestamp). - * @method CarbonInterface subUTCDays(int|float $value = 1) Sub days (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface subUTCDay() Sub one day to the instance (using timestamp). - * @method CarbonPeriod daysUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each day or every X days if a factor is given. - * @method float diffInUTCDays(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of days. - * @method CarbonInterface addUTCWeeks(int|float $value = 1) Add weeks (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface addUTCWeek() Add one week to the instance (using timestamp). - * @method CarbonInterface subUTCWeeks(int|float $value = 1) Sub weeks (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface subUTCWeek() Sub one week to the instance (using timestamp). - * @method CarbonPeriod weeksUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each week or every X weeks if a factor is given. - * @method float diffInUTCWeeks(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of weeks. - * @method CarbonInterface addUTCMonths(int|float $value = 1) Add months (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface addUTCMonth() Add one month to the instance (using timestamp). - * @method CarbonInterface subUTCMonths(int|float $value = 1) Sub months (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface subUTCMonth() Sub one month to the instance (using timestamp). - * @method CarbonPeriod monthsUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each month or every X months if a factor is given. - * @method float diffInUTCMonths(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of months. - * @method CarbonInterface addUTCQuarters(int|float $value = 1) Add quarters (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface addUTCQuarter() Add one quarter to the instance (using timestamp). - * @method CarbonInterface subUTCQuarters(int|float $value = 1) Sub quarters (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface subUTCQuarter() Sub one quarter to the instance (using timestamp). - * @method CarbonPeriod quartersUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each quarter or every X quarters if a factor is given. - * @method float diffInUTCQuarters(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of quarters. - * @method CarbonInterface addUTCYears(int|float $value = 1) Add years (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface addUTCYear() Add one year to the instance (using timestamp). - * @method CarbonInterface subUTCYears(int|float $value = 1) Sub years (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface subUTCYear() Sub one year to the instance (using timestamp). - * @method CarbonPeriod yearsUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each year or every X years if a factor is given. - * @method float diffInUTCYears(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of years. - * @method CarbonInterface addUTCDecades(int|float $value = 1) Add decades (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface addUTCDecade() Add one decade to the instance (using timestamp). - * @method CarbonInterface subUTCDecades(int|float $value = 1) Sub decades (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface subUTCDecade() Sub one decade to the instance (using timestamp). - * @method CarbonPeriod decadesUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each decade or every X decades if a factor is given. - * @method float diffInUTCDecades(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of decades. - * @method CarbonInterface addUTCCenturies(int|float $value = 1) Add centuries (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface addUTCCentury() Add one century to the instance (using timestamp). - * @method CarbonInterface subUTCCenturies(int|float $value = 1) Sub centuries (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface subUTCCentury() Sub one century to the instance (using timestamp). - * @method CarbonPeriod centuriesUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each century or every X centuries if a factor is given. - * @method float diffInUTCCenturies(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of centuries. - * @method CarbonInterface addUTCMillennia(int|float $value = 1) Add millennia (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface addUTCMillennium() Add one millennium to the instance (using timestamp). - * @method CarbonInterface subUTCMillennia(int|float $value = 1) Sub millennia (the $value count passed in) to the instance (using timestamp). - * @method CarbonInterface subUTCMillennium() Sub one millennium to the instance (using timestamp). - * @method CarbonPeriod millenniaUntil($endDate = null, int|float $factor = 1) Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each millennium or every X millennia if a factor is given. - * @method float diffInUTCMillennia(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of millennia. - * @method CarbonInterface roundYear(float $precision = 1, string $function = "round") Round the current instance year with given precision using the given function. - * @method CarbonInterface roundYears(float $precision = 1, string $function = "round") Round the current instance year with given precision using the given function. - * @method CarbonInterface floorYear(float $precision = 1) Truncate the current instance year with given precision. - * @method CarbonInterface floorYears(float $precision = 1) Truncate the current instance year with given precision. - * @method CarbonInterface ceilYear(float $precision = 1) Ceil the current instance year with given precision. - * @method CarbonInterface ceilYears(float $precision = 1) Ceil the current instance year with given precision. - * @method CarbonInterface roundMonth(float $precision = 1, string $function = "round") Round the current instance month with given precision using the given function. - * @method CarbonInterface roundMonths(float $precision = 1, string $function = "round") Round the current instance month with given precision using the given function. - * @method CarbonInterface floorMonth(float $precision = 1) Truncate the current instance month with given precision. - * @method CarbonInterface floorMonths(float $precision = 1) Truncate the current instance month with given precision. - * @method CarbonInterface ceilMonth(float $precision = 1) Ceil the current instance month with given precision. - * @method CarbonInterface ceilMonths(float $precision = 1) Ceil the current instance month with given precision. - * @method CarbonInterface roundDay(float $precision = 1, string $function = "round") Round the current instance day with given precision using the given function. - * @method CarbonInterface roundDays(float $precision = 1, string $function = "round") Round the current instance day with given precision using the given function. - * @method CarbonInterface floorDay(float $precision = 1) Truncate the current instance day with given precision. - * @method CarbonInterface floorDays(float $precision = 1) Truncate the current instance day with given precision. - * @method CarbonInterface ceilDay(float $precision = 1) Ceil the current instance day with given precision. - * @method CarbonInterface ceilDays(float $precision = 1) Ceil the current instance day with given precision. - * @method CarbonInterface roundHour(float $precision = 1, string $function = "round") Round the current instance hour with given precision using the given function. - * @method CarbonInterface roundHours(float $precision = 1, string $function = "round") Round the current instance hour with given precision using the given function. - * @method CarbonInterface floorHour(float $precision = 1) Truncate the current instance hour with given precision. - * @method CarbonInterface floorHours(float $precision = 1) Truncate the current instance hour with given precision. - * @method CarbonInterface ceilHour(float $precision = 1) Ceil the current instance hour with given precision. - * @method CarbonInterface ceilHours(float $precision = 1) Ceil the current instance hour with given precision. - * @method CarbonInterface roundMinute(float $precision = 1, string $function = "round") Round the current instance minute with given precision using the given function. - * @method CarbonInterface roundMinutes(float $precision = 1, string $function = "round") Round the current instance minute with given precision using the given function. - * @method CarbonInterface floorMinute(float $precision = 1) Truncate the current instance minute with given precision. - * @method CarbonInterface floorMinutes(float $precision = 1) Truncate the current instance minute with given precision. - * @method CarbonInterface ceilMinute(float $precision = 1) Ceil the current instance minute with given precision. - * @method CarbonInterface ceilMinutes(float $precision = 1) Ceil the current instance minute with given precision. - * @method CarbonInterface roundSecond(float $precision = 1, string $function = "round") Round the current instance second with given precision using the given function. - * @method CarbonInterface roundSeconds(float $precision = 1, string $function = "round") Round the current instance second with given precision using the given function. - * @method CarbonInterface floorSecond(float $precision = 1) Truncate the current instance second with given precision. - * @method CarbonInterface floorSeconds(float $precision = 1) Truncate the current instance second with given precision. - * @method CarbonInterface ceilSecond(float $precision = 1) Ceil the current instance second with given precision. - * @method CarbonInterface ceilSeconds(float $precision = 1) Ceil the current instance second with given precision. - * @method CarbonInterface roundMillennium(float $precision = 1, string $function = "round") Round the current instance millennium with given precision using the given function. - * @method CarbonInterface roundMillennia(float $precision = 1, string $function = "round") Round the current instance millennium with given precision using the given function. - * @method CarbonInterface floorMillennium(float $precision = 1) Truncate the current instance millennium with given precision. - * @method CarbonInterface floorMillennia(float $precision = 1) Truncate the current instance millennium with given precision. - * @method CarbonInterface ceilMillennium(float $precision = 1) Ceil the current instance millennium with given precision. - * @method CarbonInterface ceilMillennia(float $precision = 1) Ceil the current instance millennium with given precision. - * @method CarbonInterface roundCentury(float $precision = 1, string $function = "round") Round the current instance century with given precision using the given function. - * @method CarbonInterface roundCenturies(float $precision = 1, string $function = "round") Round the current instance century with given precision using the given function. - * @method CarbonInterface floorCentury(float $precision = 1) Truncate the current instance century with given precision. - * @method CarbonInterface floorCenturies(float $precision = 1) Truncate the current instance century with given precision. - * @method CarbonInterface ceilCentury(float $precision = 1) Ceil the current instance century with given precision. - * @method CarbonInterface ceilCenturies(float $precision = 1) Ceil the current instance century with given precision. - * @method CarbonInterface roundDecade(float $precision = 1, string $function = "round") Round the current instance decade with given precision using the given function. - * @method CarbonInterface roundDecades(float $precision = 1, string $function = "round") Round the current instance decade with given precision using the given function. - * @method CarbonInterface floorDecade(float $precision = 1) Truncate the current instance decade with given precision. - * @method CarbonInterface floorDecades(float $precision = 1) Truncate the current instance decade with given precision. - * @method CarbonInterface ceilDecade(float $precision = 1) Ceil the current instance decade with given precision. - * @method CarbonInterface ceilDecades(float $precision = 1) Ceil the current instance decade with given precision. - * @method CarbonInterface roundQuarter(float $precision = 1, string $function = "round") Round the current instance quarter with given precision using the given function. - * @method CarbonInterface roundQuarters(float $precision = 1, string $function = "round") Round the current instance quarter with given precision using the given function. - * @method CarbonInterface floorQuarter(float $precision = 1) Truncate the current instance quarter with given precision. - * @method CarbonInterface floorQuarters(float $precision = 1) Truncate the current instance quarter with given precision. - * @method CarbonInterface ceilQuarter(float $precision = 1) Ceil the current instance quarter with given precision. - * @method CarbonInterface ceilQuarters(float $precision = 1) Ceil the current instance quarter with given precision. - * @method CarbonInterface roundMillisecond(float $precision = 1, string $function = "round") Round the current instance millisecond with given precision using the given function. - * @method CarbonInterface roundMilliseconds(float $precision = 1, string $function = "round") Round the current instance millisecond with given precision using the given function. - * @method CarbonInterface floorMillisecond(float $precision = 1) Truncate the current instance millisecond with given precision. - * @method CarbonInterface floorMilliseconds(float $precision = 1) Truncate the current instance millisecond with given precision. - * @method CarbonInterface ceilMillisecond(float $precision = 1) Ceil the current instance millisecond with given precision. - * @method CarbonInterface ceilMilliseconds(float $precision = 1) Ceil the current instance millisecond with given precision. - * @method CarbonInterface roundMicrosecond(float $precision = 1, string $function = "round") Round the current instance microsecond with given precision using the given function. - * @method CarbonInterface roundMicroseconds(float $precision = 1, string $function = "round") Round the current instance microsecond with given precision using the given function. - * @method CarbonInterface floorMicrosecond(float $precision = 1) Truncate the current instance microsecond with given precision. - * @method CarbonInterface floorMicroseconds(float $precision = 1) Truncate the current instance microsecond with given precision. - * @method CarbonInterface ceilMicrosecond(float $precision = 1) Ceil the current instance microsecond with given precision. - * @method CarbonInterface ceilMicroseconds(float $precision = 1) Ceil the current instance microsecond with given precision. - * @method string shortAbsoluteDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (short format, 'Absolute' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) - * @method string longAbsoluteDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (long format, 'Absolute' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) - * @method string shortRelativeDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (short format, 'Relative' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) - * @method string longRelativeDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (long format, 'Relative' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) - * @method string shortRelativeToNowDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (short format, 'RelativeToNow' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) - * @method string longRelativeToNowDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (long format, 'RelativeToNow' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) - * @method string shortRelativeToOtherDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (short format, 'RelativeToOther' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) - * @method string longRelativeToOtherDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (long format, 'RelativeToOther' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) - * @method int centuriesInMillennium() Return the number of centuries contained in the current millennium - * @method int|static centuryOfMillennium(?int $century = null) Return the value of the century starting from the beginning of the current millennium when called with no parameters, change the current century when called with an integer value - * @method int|static dayOfCentury(?int $day = null) Return the value of the day starting from the beginning of the current century when called with no parameters, change the current day when called with an integer value - * @method int|static dayOfDecade(?int $day = null) Return the value of the day starting from the beginning of the current decade when called with no parameters, change the current day when called with an integer value - * @method int|static dayOfMillennium(?int $day = null) Return the value of the day starting from the beginning of the current millennium when called with no parameters, change the current day when called with an integer value - * @method int|static dayOfMonth(?int $day = null) Return the value of the day starting from the beginning of the current month when called with no parameters, change the current day when called with an integer value - * @method int|static dayOfQuarter(?int $day = null) Return the value of the day starting from the beginning of the current quarter when called with no parameters, change the current day when called with an integer value - * @method int|static dayOfWeek(?int $day = null) Return the value of the day starting from the beginning of the current week when called with no parameters, change the current day when called with an integer value - * @method int daysInCentury() Return the number of days contained in the current century - * @method int daysInDecade() Return the number of days contained in the current decade - * @method int daysInMillennium() Return the number of days contained in the current millennium - * @method int daysInMonth() Return the number of days contained in the current month - * @method int daysInQuarter() Return the number of days contained in the current quarter - * @method int daysInWeek() Return the number of days contained in the current week - * @method int daysInYear() Return the number of days contained in the current year - * @method int|static decadeOfCentury(?int $decade = null) Return the value of the decade starting from the beginning of the current century when called with no parameters, change the current decade when called with an integer value - * @method int|static decadeOfMillennium(?int $decade = null) Return the value of the decade starting from the beginning of the current millennium when called with no parameters, change the current decade when called with an integer value - * @method int decadesInCentury() Return the number of decades contained in the current century - * @method int decadesInMillennium() Return the number of decades contained in the current millennium - * @method int|static hourOfCentury(?int $hour = null) Return the value of the hour starting from the beginning of the current century when called with no parameters, change the current hour when called with an integer value - * @method int|static hourOfDay(?int $hour = null) Return the value of the hour starting from the beginning of the current day when called with no parameters, change the current hour when called with an integer value - * @method int|static hourOfDecade(?int $hour = null) Return the value of the hour starting from the beginning of the current decade when called with no parameters, change the current hour when called with an integer value - * @method int|static hourOfMillennium(?int $hour = null) Return the value of the hour starting from the beginning of the current millennium when called with no parameters, change the current hour when called with an integer value - * @method int|static hourOfMonth(?int $hour = null) Return the value of the hour starting from the beginning of the current month when called with no parameters, change the current hour when called with an integer value - * @method int|static hourOfQuarter(?int $hour = null) Return the value of the hour starting from the beginning of the current quarter when called with no parameters, change the current hour when called with an integer value - * @method int|static hourOfWeek(?int $hour = null) Return the value of the hour starting from the beginning of the current week when called with no parameters, change the current hour when called with an integer value - * @method int|static hourOfYear(?int $hour = null) Return the value of the hour starting from the beginning of the current year when called with no parameters, change the current hour when called with an integer value - * @method int hoursInCentury() Return the number of hours contained in the current century - * @method int hoursInDay() Return the number of hours contained in the current day - * @method int hoursInDecade() Return the number of hours contained in the current decade - * @method int hoursInMillennium() Return the number of hours contained in the current millennium - * @method int hoursInMonth() Return the number of hours contained in the current month - * @method int hoursInQuarter() Return the number of hours contained in the current quarter - * @method int hoursInWeek() Return the number of hours contained in the current week - * @method int hoursInYear() Return the number of hours contained in the current year - * @method int|static microsecondOfCentury(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current century when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfDay(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current day when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfDecade(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current decade when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfHour(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current hour when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfMillennium(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current millennium when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfMillisecond(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current millisecond when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfMinute(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current minute when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfMonth(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current month when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfQuarter(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current quarter when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfSecond(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current second when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfWeek(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current week when called with no parameters, change the current microsecond when called with an integer value - * @method int|static microsecondOfYear(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current year when called with no parameters, change the current microsecond when called with an integer value - * @method int microsecondsInCentury() Return the number of microseconds contained in the current century - * @method int microsecondsInDay() Return the number of microseconds contained in the current day - * @method int microsecondsInDecade() Return the number of microseconds contained in the current decade - * @method int microsecondsInHour() Return the number of microseconds contained in the current hour - * @method int microsecondsInMillennium() Return the number of microseconds contained in the current millennium - * @method int microsecondsInMillisecond() Return the number of microseconds contained in the current millisecond - * @method int microsecondsInMinute() Return the number of microseconds contained in the current minute - * @method int microsecondsInMonth() Return the number of microseconds contained in the current month - * @method int microsecondsInQuarter() Return the number of microseconds contained in the current quarter - * @method int microsecondsInSecond() Return the number of microseconds contained in the current second - * @method int microsecondsInWeek() Return the number of microseconds contained in the current week - * @method int microsecondsInYear() Return the number of microseconds contained in the current year - * @method int|static millisecondOfCentury(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current century when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfDay(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current day when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfDecade(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current decade when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfHour(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current hour when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfMillennium(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current millennium when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfMinute(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current minute when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfMonth(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current month when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfQuarter(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current quarter when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfSecond(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current second when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfWeek(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current week when called with no parameters, change the current millisecond when called with an integer value - * @method int|static millisecondOfYear(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current year when called with no parameters, change the current millisecond when called with an integer value - * @method int millisecondsInCentury() Return the number of milliseconds contained in the current century - * @method int millisecondsInDay() Return the number of milliseconds contained in the current day - * @method int millisecondsInDecade() Return the number of milliseconds contained in the current decade - * @method int millisecondsInHour() Return the number of milliseconds contained in the current hour - * @method int millisecondsInMillennium() Return the number of milliseconds contained in the current millennium - * @method int millisecondsInMinute() Return the number of milliseconds contained in the current minute - * @method int millisecondsInMonth() Return the number of milliseconds contained in the current month - * @method int millisecondsInQuarter() Return the number of milliseconds contained in the current quarter - * @method int millisecondsInSecond() Return the number of milliseconds contained in the current second - * @method int millisecondsInWeek() Return the number of milliseconds contained in the current week - * @method int millisecondsInYear() Return the number of milliseconds contained in the current year - * @method int|static minuteOfCentury(?int $minute = null) Return the value of the minute starting from the beginning of the current century when called with no parameters, change the current minute when called with an integer value - * @method int|static minuteOfDay(?int $minute = null) Return the value of the minute starting from the beginning of the current day when called with no parameters, change the current minute when called with an integer value - * @method int|static minuteOfDecade(?int $minute = null) Return the value of the minute starting from the beginning of the current decade when called with no parameters, change the current minute when called with an integer value - * @method int|static minuteOfHour(?int $minute = null) Return the value of the minute starting from the beginning of the current hour when called with no parameters, change the current minute when called with an integer value - * @method int|static minuteOfMillennium(?int $minute = null) Return the value of the minute starting from the beginning of the current millennium when called with no parameters, change the current minute when called with an integer value - * @method int|static minuteOfMonth(?int $minute = null) Return the value of the minute starting from the beginning of the current month when called with no parameters, change the current minute when called with an integer value - * @method int|static minuteOfQuarter(?int $minute = null) Return the value of the minute starting from the beginning of the current quarter when called with no parameters, change the current minute when called with an integer value - * @method int|static minuteOfWeek(?int $minute = null) Return the value of the minute starting from the beginning of the current week when called with no parameters, change the current minute when called with an integer value - * @method int|static minuteOfYear(?int $minute = null) Return the value of the minute starting from the beginning of the current year when called with no parameters, change the current minute when called with an integer value - * @method int minutesInCentury() Return the number of minutes contained in the current century - * @method int minutesInDay() Return the number of minutes contained in the current day - * @method int minutesInDecade() Return the number of minutes contained in the current decade - * @method int minutesInHour() Return the number of minutes contained in the current hour - * @method int minutesInMillennium() Return the number of minutes contained in the current millennium - * @method int minutesInMonth() Return the number of minutes contained in the current month - * @method int minutesInQuarter() Return the number of minutes contained in the current quarter - * @method int minutesInWeek() Return the number of minutes contained in the current week - * @method int minutesInYear() Return the number of minutes contained in the current year - * @method int|static monthOfCentury(?int $month = null) Return the value of the month starting from the beginning of the current century when called with no parameters, change the current month when called with an integer value - * @method int|static monthOfDecade(?int $month = null) Return the value of the month starting from the beginning of the current decade when called with no parameters, change the current month when called with an integer value - * @method int|static monthOfMillennium(?int $month = null) Return the value of the month starting from the beginning of the current millennium when called with no parameters, change the current month when called with an integer value - * @method int|static monthOfQuarter(?int $month = null) Return the value of the month starting from the beginning of the current quarter when called with no parameters, change the current month when called with an integer value - * @method int|static monthOfYear(?int $month = null) Return the value of the month starting from the beginning of the current year when called with no parameters, change the current month when called with an integer value - * @method int monthsInCentury() Return the number of months contained in the current century - * @method int monthsInDecade() Return the number of months contained in the current decade - * @method int monthsInMillennium() Return the number of months contained in the current millennium - * @method int monthsInQuarter() Return the number of months contained in the current quarter - * @method int monthsInYear() Return the number of months contained in the current year - * @method int|static quarterOfCentury(?int $quarter = null) Return the value of the quarter starting from the beginning of the current century when called with no parameters, change the current quarter when called with an integer value - * @method int|static quarterOfDecade(?int $quarter = null) Return the value of the quarter starting from the beginning of the current decade when called with no parameters, change the current quarter when called with an integer value - * @method int|static quarterOfMillennium(?int $quarter = null) Return the value of the quarter starting from the beginning of the current millennium when called with no parameters, change the current quarter when called with an integer value - * @method int|static quarterOfYear(?int $quarter = null) Return the value of the quarter starting from the beginning of the current year when called with no parameters, change the current quarter when called with an integer value - * @method int quartersInCentury() Return the number of quarters contained in the current century - * @method int quartersInDecade() Return the number of quarters contained in the current decade - * @method int quartersInMillennium() Return the number of quarters contained in the current millennium - * @method int quartersInYear() Return the number of quarters contained in the current year - * @method int|static secondOfCentury(?int $second = null) Return the value of the second starting from the beginning of the current century when called with no parameters, change the current second when called with an integer value - * @method int|static secondOfDay(?int $second = null) Return the value of the second starting from the beginning of the current day when called with no parameters, change the current second when called with an integer value - * @method int|static secondOfDecade(?int $second = null) Return the value of the second starting from the beginning of the current decade when called with no parameters, change the current second when called with an integer value - * @method int|static secondOfHour(?int $second = null) Return the value of the second starting from the beginning of the current hour when called with no parameters, change the current second when called with an integer value - * @method int|static secondOfMillennium(?int $second = null) Return the value of the second starting from the beginning of the current millennium when called with no parameters, change the current second when called with an integer value - * @method int|static secondOfMinute(?int $second = null) Return the value of the second starting from the beginning of the current minute when called with no parameters, change the current second when called with an integer value - * @method int|static secondOfMonth(?int $second = null) Return the value of the second starting from the beginning of the current month when called with no parameters, change the current second when called with an integer value - * @method int|static secondOfQuarter(?int $second = null) Return the value of the second starting from the beginning of the current quarter when called with no parameters, change the current second when called with an integer value - * @method int|static secondOfWeek(?int $second = null) Return the value of the second starting from the beginning of the current week when called with no parameters, change the current second when called with an integer value - * @method int|static secondOfYear(?int $second = null) Return the value of the second starting from the beginning of the current year when called with no parameters, change the current second when called with an integer value - * @method int secondsInCentury() Return the number of seconds contained in the current century - * @method int secondsInDay() Return the number of seconds contained in the current day - * @method int secondsInDecade() Return the number of seconds contained in the current decade - * @method int secondsInHour() Return the number of seconds contained in the current hour - * @method int secondsInMillennium() Return the number of seconds contained in the current millennium - * @method int secondsInMinute() Return the number of seconds contained in the current minute - * @method int secondsInMonth() Return the number of seconds contained in the current month - * @method int secondsInQuarter() Return the number of seconds contained in the current quarter - * @method int secondsInWeek() Return the number of seconds contained in the current week - * @method int secondsInYear() Return the number of seconds contained in the current year - * @method int|static weekOfCentury(?int $week = null) Return the value of the week starting from the beginning of the current century when called with no parameters, change the current week when called with an integer value - * @method int|static weekOfDecade(?int $week = null) Return the value of the week starting from the beginning of the current decade when called with no parameters, change the current week when called with an integer value - * @method int|static weekOfMillennium(?int $week = null) Return the value of the week starting from the beginning of the current millennium when called with no parameters, change the current week when called with an integer value - * @method int|static weekOfMonth(?int $week = null) Return the value of the week starting from the beginning of the current month when called with no parameters, change the current week when called with an integer value - * @method int|static weekOfQuarter(?int $week = null) Return the value of the week starting from the beginning of the current quarter when called with no parameters, change the current week when called with an integer value - * @method int|static weekOfYear(?int $week = null) Return the value of the week starting from the beginning of the current year when called with no parameters, change the current week when called with an integer value - * @method int weeksInCentury() Return the number of weeks contained in the current century - * @method int weeksInDecade() Return the number of weeks contained in the current decade - * @method int weeksInMillennium() Return the number of weeks contained in the current millennium - * @method int weeksInMonth() Return the number of weeks contained in the current month - * @method int weeksInQuarter() Return the number of weeks contained in the current quarter - * @method int|static yearOfCentury(?int $year = null) Return the value of the year starting from the beginning of the current century when called with no parameters, change the current year when called with an integer value - * @method int|static yearOfDecade(?int $year = null) Return the value of the year starting from the beginning of the current decade when called with no parameters, change the current year when called with an integer value - * @method int|static yearOfMillennium(?int $year = null) Return the value of the year starting from the beginning of the current millennium when called with no parameters, change the current year when called with an integer value - * @method int yearsInCentury() Return the number of years contained in the current century - * @method int yearsInDecade() Return the number of years contained in the current decade - * @method int yearsInMillennium() Return the number of years contained in the current millennium - * - * - */ -trait Date -{ - use Boundaries; - use Comparison; - use Converter; - use Creator; - use Difference; - use Macro; - use MagicParameter; - use Modifiers; - use Mutability; - use ObjectInitialisation; - use Options; - use Rounding; - use Serialization; - use Test; - use Timestamp; - use Units; - use Week; - - /** - * Names of days of the week. - * - * @var array - */ - protected static $days = [ - // @call isDayOfWeek - CarbonInterface::SUNDAY => 'Sunday', - // @call isDayOfWeek - CarbonInterface::MONDAY => 'Monday', - // @call isDayOfWeek - CarbonInterface::TUESDAY => 'Tuesday', - // @call isDayOfWeek - CarbonInterface::WEDNESDAY => 'Wednesday', - // @call isDayOfWeek - CarbonInterface::THURSDAY => 'Thursday', - // @call isDayOfWeek - CarbonInterface::FRIDAY => 'Friday', - // @call isDayOfWeek - CarbonInterface::SATURDAY => 'Saturday', - ]; - - /** - * List of unit and magic methods associated as doc-comments. - * - * @var array - */ - protected static $units = [ - // @call setUnit - // @call addUnit - 'year', - // @call setUnit - // @call addUnit - 'month', - // @call setUnit - // @call addUnit - 'day', - // @call setUnit - // @call addUnit - 'hour', - // @call setUnit - // @call addUnit - 'minute', - // @call setUnit - // @call addUnit - 'second', - // @call setUnit - // @call addUnit - 'milli', - // @call setUnit - // @call addUnit - 'millisecond', - // @call setUnit - // @call addUnit - 'micro', - // @call setUnit - // @call addUnit - 'microsecond', - ]; - - /** - * Creates a DateTimeZone from a string, DateTimeZone or integer offset. - * - * @param DateTimeZone|string|int|false|null $object original value to get CarbonTimeZone from it. - * @param DateTimeZone|string|int|false|null $objectDump dump of the object for error messages. - * - * @throws InvalidTimeZoneException - * - * @return CarbonTimeZone|null - */ - protected static function safeCreateDateTimeZone( - DateTimeZone|string|int|false|null $object, - DateTimeZone|string|int|false|null $objectDump = null, - ): ?CarbonTimeZone { - return CarbonTimeZone::instance($object, $objectDump); - } - - /** - * Get the TimeZone associated with the Carbon instance (as CarbonTimeZone). - * - * @link https://php.net/manual/en/datetime.gettimezone.php - */ - public function getTimezone(): CarbonTimeZone - { - return $this->transmitFactory(fn () => CarbonTimeZone::instance(parent::getTimezone())); - } - - /** - * List of minimum and maximums for each unit. - */ - protected static function getRangesByUnit(int $daysInMonth = 31): array - { - return [ - // @call roundUnit - 'year' => [1, 9999], - // @call roundUnit - 'month' => [1, static::MONTHS_PER_YEAR], - // @call roundUnit - 'day' => [1, $daysInMonth], - // @call roundUnit - 'hour' => [0, static::HOURS_PER_DAY - 1], - // @call roundUnit - 'minute' => [0, static::MINUTES_PER_HOUR - 1], - // @call roundUnit - 'second' => [0, static::SECONDS_PER_MINUTE - 1], - ]; - } - - /** - * Get a copy of the instance. - * - * @return static - */ - public function copy() - { - return clone $this; - } - - /** - * @alias copy - * - * Get a copy of the instance. - * - * @return static - */ - public function clone() - { - return clone $this; - } - - /** - * Clone the current instance if it's mutable. - * - * This method is convenient to ensure you don't mutate the initial object - * but avoid to make a useless copy of it if it's already immutable. - * - * @return static - */ - public function avoidMutation(): static - { - if ($this instanceof DateTimeImmutable) { - return $this; - } - - return clone $this; - } - - /** - * Returns a present instance in the same timezone. - * - * @return static - */ - public function nowWithSameTz(): static - { - $timezone = $this->getTimezone(); - - return $this->getClock()?->nowAs(static::class, $timezone) ?? static::now($timezone); - } - - /** - * Return the Carbon instance passed through, a now instance in the same timezone - * if null given or parse the input if string given. - * - * @param Carbon|\Carbon\CarbonPeriod|\Carbon\CarbonInterval|\DateInterval|\DatePeriod|DateTimeInterface|string|null $date - * - * @return static - */ - public function carbonize($date = null) - { - if ($date instanceof DateInterval) { - return $this->avoidMutation()->add($date); - } - - if ($date instanceof DatePeriod || $date instanceof CarbonPeriod) { - $date = $date->getStartDate(); - } - - return $this->resolveCarbon($date); - } - - /////////////////////////////////////////////////////////////////// - ///////////////////////// GETTERS AND SETTERS ///////////////////// - /////////////////////////////////////////////////////////////////// - - /** - * Get a part of the Carbon object. - * - * @throws UnknownGetterException - * - * @return string|int|bool|DateTimeZone|null - */ - public function __get(string $name): mixed - { - return $this->get($name); - } - - /** - * Get a part of the Carbon object. - * - * @throws UnknownGetterException - * - * @return string|int|bool|DateTimeZone - */ - public function get(Unit|string $name): mixed - { - static $localizedFormats = [ - // @property string the day of week in current locale - 'localeDayOfWeek' => 'dddd', - // @property string the abbreviated day of week in current locale - 'shortLocaleDayOfWeek' => 'ddd', - // @property string the month in current locale - 'localeMonth' => 'MMMM', - // @property string the abbreviated month in current locale - 'shortLocaleMonth' => 'MMM', - ]; - - $name = Unit::toName($name); - - if (isset($localizedFormats[$name])) { - return $this->isoFormat($localizedFormats[$name]); - } - - static $formats = [ - // @property int - 'year' => 'Y', - // @property int - 'yearIso' => 'o', - // @--property-read int - // @--property-write Month|int - // @property int - 'month' => 'n', - // @property int - 'day' => 'j', - // @property int - 'hour' => 'G', - // @property int - 'minute' => 'i', - // @property int - 'second' => 's', - // @property int - 'micro' => 'u', - // @property int - 'microsecond' => 'u', - // @property int 0 (for Sunday) through 6 (for Saturday) - 'dayOfWeek' => 'w', - // @property int 1 (for Monday) through 7 (for Sunday) - 'dayOfWeekIso' => 'N', - // @property int ISO-8601 week number of year, weeks starting on Monday - 'weekOfYear' => 'W', - // @property-read int number of days in the given month - 'daysInMonth' => 't', - // @property int|float|string seconds since the Unix Epoch - 'timestamp' => 'U', - // @property-read string "am"/"pm" (Ante meridiem or Post meridiem latin lowercase mark) - 'latinMeridiem' => 'a', - // @property-read string "AM"/"PM" (Ante meridiem or Post meridiem latin uppercase mark) - 'latinUpperMeridiem' => 'A', - // @property string the day of week in English - 'englishDayOfWeek' => 'l', - // @property string the abbreviated day of week in English - 'shortEnglishDayOfWeek' => 'D', - // @property string the month in English - 'englishMonth' => 'F', - // @property string the abbreviated month in English - 'shortEnglishMonth' => 'M', - // @property-read string $timezoneAbbreviatedName the current timezone abbreviated name - 'timezoneAbbreviatedName' => 'T', - // @property-read string $tzAbbrName alias of $timezoneAbbreviatedName - 'tzAbbrName' => 'T', - ]; - - switch (true) { - case isset($formats[$name]): - $value = $this->rawFormat($formats[$name]); - - return is_numeric($value) ? (int) $value : $value; - - // @property-read string long name of weekday translated according to Carbon locale, in english if no translation available for current language - case $name === 'dayName': - return $this->getTranslatedDayName(); - // @property-read string short name of weekday translated according to Carbon locale, in english if no translation available for current language - case $name === 'shortDayName': - return $this->getTranslatedShortDayName(); - // @property-read string very short name of weekday translated according to Carbon locale, in english if no translation available for current language - case $name === 'minDayName': - return $this->getTranslatedMinDayName(); - // @property-read string long name of month translated according to Carbon locale, in english if no translation available for current language - case $name === 'monthName': - return $this->getTranslatedMonthName(); - // @property-read string short name of month translated according to Carbon locale, in english if no translation available for current language - case $name === 'shortMonthName': - return $this->getTranslatedShortMonthName(); - // @property-read string lowercase meridiem mark translated according to Carbon locale, in latin if no translation available for current language - case $name === 'meridiem': - return $this->meridiem(true); - // @property-read string uppercase meridiem mark translated according to Carbon locale, in latin if no translation available for current language - case $name === 'upperMeridiem': - return $this->meridiem(); - // @property-read int current hour from 1 to 24 - case $name === 'noZeroHour': - return $this->hour ?: 24; - // @property int - case $name === 'milliseconds': - // @property int - case $name === 'millisecond': - // @property int - case $name === 'milli': - return (int) floor(((int) $this->rawFormat('u')) / 1000); - - // @property int 1 through 53 - case $name === 'week': - return (int) $this->week(); - - // @property int 1 through 53 - case $name === 'isoWeek': - return (int) $this->isoWeek(); - - // @property int year according to week format - case $name === 'weekYear': - return (int) $this->weekYear(); - - // @property int year according to ISO week format - case $name === 'isoWeekYear': - return (int) $this->isoWeekYear(); - - // @property-read int 51 through 53 - case $name === 'weeksInYear': - return $this->weeksInYear(); - - // @property-read int 51 through 53 - case $name === 'isoWeeksInYear': - return $this->isoWeeksInYear(); - - // @property int 1 through 5 - case $name === 'weekOfMonth': - return (int) ceil($this->day / static::DAYS_PER_WEEK); - - // @property-read int 1 through 5 - case $name === 'weekNumberInMonth': - return (int) ceil(($this->day + $this->avoidMutation()->startOfMonth()->dayOfWeekIso - 1) / static::DAYS_PER_WEEK); - - // @property-read int 0 through 6 - case $name === 'firstWeekDay': - return (int) $this->getTranslationMessage('first_day_of_week'); - - // @property-read int 0 through 6 - case $name === 'lastWeekDay': - return $this->transmitFactory(fn () => static::weekRotate((int) $this->getTranslationMessage('first_day_of_week'), -1)); - - // @property int 1 through 366 - case $name === 'dayOfYear': - return 1 + (int) ($this->rawFormat('z')); - - // @property-read int 365 or 366 - case $name === 'daysInYear': - return static::DAYS_PER_YEAR + ($this->isLeapYear() ? 1 : 0); - - // @property int does a diffInYears() with default parameters - case $name === 'age': - return (int) $this->diffInYears(); - - // @property-read int the quarter of this instance, 1 - 4 - case $name === 'quarter': - return (int) ceil($this->month / static::MONTHS_PER_QUARTER); - - // @property-read int the decade of this instance - // @call isSameUnit - case $name === 'decade': - return (int) ceil($this->year / static::YEARS_PER_DECADE); - - // @property-read int the century of this instance - // @call isSameUnit - case $name === 'century': - $factor = 1; - $year = $this->year; - - if ($year < 0) { - $year = -$year; - $factor = -1; - } - - return (int) ($factor * ceil($year / static::YEARS_PER_CENTURY)); - - // @property-read int the millennium of this instance - // @call isSameUnit - case $name === 'millennium': - $factor = 1; - $year = $this->year; - - if ($year < 0) { - $year = -$year; - $factor = -1; - } - - return (int) ($factor * ceil($year / static::YEARS_PER_MILLENNIUM)); - - // @property int the timezone offset in seconds from UTC - case $name === 'offset': - return $this->getOffset(); - - // @property int the timezone offset in minutes from UTC - case $name === 'offsetMinutes': - return $this->getOffset() / static::SECONDS_PER_MINUTE; - - // @property int the timezone offset in hours from UTC - case $name === 'offsetHours': - return $this->getOffset() / static::SECONDS_PER_MINUTE / static::MINUTES_PER_HOUR; - - // @property-read bool daylight savings time indicator, true if DST, false otherwise - case $name === 'dst': - return $this->rawFormat('I') === '1'; - - // @property-read bool checks if the timezone is local, true if local, false otherwise - case $name === 'local': - return $this->getOffset() === $this->avoidMutation()->setTimezone(date_default_timezone_get())->getOffset(); - - // @property-read bool checks if the timezone is UTC, true if UTC, false otherwise - case $name === 'utc': - return $this->getOffset() === 0; - - // @--property-write DateTimeZone|string|int $timezone the current timezone - // @--property-write DateTimeZone|string|int $tz alias of $timezone - // @--property-read CarbonTimeZone $timezone the current timezone - // @--property-read CarbonTimeZone $tz alias of $timezone - // @property CarbonTimeZone $timezone the current timezone - // @property CarbonTimeZone $tz alias of $timezone - case $name === 'timezone' || $name === 'tz': - return $this->getTimezone(); - - // @property-read string $timezoneName the current timezone name - // @property-read string $tzName alias of $timezoneName - case $name === 'timezoneName' || $name === 'tzName': - return $this->getTimezone()->getName(); - - // @property-read string locale of the current instance - case $name === 'locale': - return $this->getTranslatorLocale(); - - case preg_match('/^([a-z]{2,})(In|Of)([A-Z][a-z]+)$/', $name, $match): - [, $firstUnit, $operator, $secondUnit] = $match; - - try { - $start = $this->avoidMutation()->startOf($secondUnit); - $value = $operator === 'Of' - ? (\in_array($firstUnit, [ - // Unit with indexes starting at 1 (other units start at 0) - 'day', - 'week', - 'month', - 'quarter', - ], true) ? 1 : 0) + floor($start->diffInUnit($firstUnit, $this)) - : round($start->diffInUnit($firstUnit, $start->avoidMutation()->add($secondUnit, 1))); - - return (int) $value; - } catch (UnknownUnitException) { - // default to macro - } - - default: - $macro = $this->getLocalMacro('get'.ucfirst($name)); - - if ($macro) { - return $this->executeCallableWithContext($macro); - } - - throw new UnknownGetterException($name); - } - } - - /** - * Check if an attribute exists on the object - * - * @param string $name - * - * @return bool - */ - public function __isset($name) - { - try { - $this->__get($name); - } catch (UnknownGetterException | ReflectionException) { - return false; - } - - return true; - } - - /** - * Set a part of the Carbon object - * - * @param string $name - * @param string|int|DateTimeZone $value - * - * @throws UnknownSetterException|ReflectionException - * - * @return void - */ - public function __set($name, $value) - { - if ($this->constructedObjectId === spl_object_hash($this)) { - $this->set($name, $value); - - return; - } - - $this->$name = $value; - } - - /** - * Set a part of the Carbon object. - * - * @throws ImmutableException|UnknownSetterException - * - * @return $this - */ - public function set(Unit|array|string $name, DateTimeZone|Month|string|int|float|null $value = null): static - { - if ($this->isImmutable()) { - throw new ImmutableException(\sprintf('%s class', static::class)); - } - - if (\is_array($name)) { - foreach ($name as $key => $value) { - $this->set($key, $value); - } - - return $this; - } - - $name = Unit::toName($name); - - switch ($name) { - case 'milliseconds': - case 'millisecond': - case 'milli': - case 'microseconds': - case 'microsecond': - case 'micro': - if (str_starts_with($name, 'milli')) { - $value *= 1000; - } - - while ($value < 0) { - $this->subSecond(); - $value += static::MICROSECONDS_PER_SECOND; - } - - while ($value >= static::MICROSECONDS_PER_SECOND) { - $this->addSecond(); - $value -= static::MICROSECONDS_PER_SECOND; - } - - $this->modify($this->rawFormat('H:i:s.').str_pad((string) round($value), 6, '0', STR_PAD_LEFT)); - - break; - - case 'year': - case 'month': - case 'day': - case 'hour': - case 'minute': - case 'second': - [$year, $month, $day, $hour, $minute, $second] = array_map('intval', explode('-', $this->rawFormat('Y-n-j-G-i-s'))); - $$name = self::monthToInt($value, $name); - $this->setDateTime($year, $month, $day, $hour, $minute, $second); - - break; - - case 'week': - $this->week($value); - - break; - - case 'isoWeek': - $this->isoWeek($value); - - break; - - case 'weekYear': - $this->weekYear($value); - - break; - - case 'isoWeekYear': - $this->isoWeekYear($value); - - break; - - case 'dayOfYear': - $this->addDays($value - $this->dayOfYear); - - break; - - case 'dayOfWeek': - $this->addDays($value - $this->dayOfWeek); - - break; - - case 'dayOfWeekIso': - $this->addDays($value - $this->dayOfWeekIso); - - break; - - case 'timestamp': - $this->setTimestamp($value); - - break; - - case 'offset': - $this->setTimezone(static::safeCreateDateTimeZone($value / static::SECONDS_PER_MINUTE / static::MINUTES_PER_HOUR)); - - break; - - case 'offsetMinutes': - $this->setTimezone(static::safeCreateDateTimeZone($value / static::MINUTES_PER_HOUR)); - - break; - - case 'offsetHours': - $this->setTimezone(static::safeCreateDateTimeZone($value)); - - break; - - case 'timezone': - case 'tz': - $this->setTimezone($value); - - break; - - default: - if (preg_match('/^([a-z]{2,})Of([A-Z][a-z]+)$/', $name, $match)) { - [, $firstUnit, $secondUnit] = $match; - - try { - $start = $this->avoidMutation()->startOf($secondUnit); - $currentValue = (\in_array($firstUnit, [ - // Unit with indexes starting at 1 (other units start at 0) - 'day', - 'week', - 'month', - 'quarter', - ], true) ? 1 : 0) + (int) floor($start->diffInUnit($firstUnit, $this)); - - // We check $value a posteriori to give precedence to UnknownUnitException - if (!\is_int($value)) { - throw new UnitException("->$name expects integer value"); - } - - $this->addUnit($firstUnit, $value - $currentValue); - - break; - } catch (UnknownUnitException) { - // default to macro - } - } - - $macro = $this->getLocalMacro('set'.ucfirst($name)); - - if ($macro) { - $this->executeCallableWithContext($macro, $value); - - break; - } - - if ($this->isLocalStrictModeEnabled()) { - throw new UnknownSetterException($name); - } - - $this->$name = $value; - } - - return $this; - } - - /** - * Get the translation of the current week day name (with context for languages with multiple forms). - * - * @param string|null $context whole format string - * @param string $keySuffix "", "_short" or "_min" - * @param string|null $defaultValue default value if translation missing - */ - public function getTranslatedDayName( - ?string $context = null, - string $keySuffix = '', - ?string $defaultValue = null, - ): string { - return $this->getTranslatedFormByRegExp('weekdays', $keySuffix, $context, $this->dayOfWeek, $defaultValue ?: $this->englishDayOfWeek); - } - - /** - * Get the translation of the current short week day name (with context for languages with multiple forms). - * - * @param string|null $context whole format string - */ - public function getTranslatedShortDayName(?string $context = null): string - { - return $this->getTranslatedDayName($context, '_short', $this->shortEnglishDayOfWeek); - } - - /** - * Get the translation of the current abbreviated week day name (with context for languages with multiple forms). - * - * @param string|null $context whole format string - */ - public function getTranslatedMinDayName(?string $context = null): string - { - return $this->getTranslatedDayName($context, '_min', $this->shortEnglishDayOfWeek); - } - - /** - * Get the translation of the current month day name (with context for languages with multiple forms). - * - * @param string|null $context whole format string - * @param string $keySuffix "" or "_short" - * @param string|null $defaultValue default value if translation missing - */ - public function getTranslatedMonthName( - ?string $context = null, - string $keySuffix = '', - ?string $defaultValue = null, - ): string { - return $this->getTranslatedFormByRegExp('months', $keySuffix, $context, $this->month - 1, $defaultValue ?: $this->englishMonth); - } - - /** - * Get the translation of the current short month day name (with context for languages with multiple forms). - * - * @param string|null $context whole format string - */ - public function getTranslatedShortMonthName(?string $context = null): string - { - return $this->getTranslatedMonthName($context, '_short', $this->shortEnglishMonth); - } - - /** - * Get/set the day of year. - * - * @template T of int|null - * - * @param int|null $value new value for day of year if using as setter. - * - * @psalm-param T $value - * - * @return static|int - * - * @psalm-return (T is int ? static : int) - */ - public function dayOfYear(?int $value = null): static|int - { - $dayOfYear = $this->dayOfYear; - - return $value === null ? $dayOfYear : $this->addDays($value - $dayOfYear); - } - - /** - * Get/set the weekday from 0 (Sunday) to 6 (Saturday). - * - * @param WeekDay|int|null $value new value for weekday if using as setter. - */ - public function weekday(WeekDay|int|null $value = null): static|int - { - if ($value === null) { - return $this->dayOfWeek; - } - - $firstDay = (int) ($this->getTranslationMessage('first_day_of_week') ?? 0); - $dayOfWeek = ($this->dayOfWeek + 7 - $firstDay) % 7; - - return $this->addDays(((WeekDay::int($value) + 7 - $firstDay) % 7) - $dayOfWeek); - } - - /** - * Get/set the ISO weekday from 1 (Monday) to 7 (Sunday). - * - * @param WeekDay|int|null $value new value for weekday if using as setter. - */ - public function isoWeekday(WeekDay|int|null $value = null): static|int - { - $dayOfWeekIso = $this->dayOfWeekIso; - - return $value === null ? $dayOfWeekIso : $this->addDays(WeekDay::int($value) - $dayOfWeekIso); - } - - /** - * Return the number of days since the start of the week (using the current locale or the first parameter - * if explicitly given). - * - * @param WeekDay|int|null $weekStartsAt optional start allow you to specify the day of week to use to start the week, - * if not provided, start of week is inferred from the locale - * (Sunday for en_US, Monday for de_DE, etc.) - */ - public function getDaysFromStartOfWeek(WeekDay|int|null $weekStartsAt = null): int - { - $firstDay = (int) (WeekDay::int($weekStartsAt) ?? $this->getTranslationMessage('first_day_of_week') ?? 0); - - return ($this->dayOfWeek + 7 - $firstDay) % 7; - } - - /** - * Set the day (keeping the current time) to the start of the week + the number of days passed as the first - * parameter. First day of week is driven by the locale unless explicitly set with the second parameter. - * - * @param int $numberOfDays number of days to add after the start of the current week - * @param WeekDay|int|null $weekStartsAt optional start allow you to specify the day of week to use to start the week, - * if not provided, start of week is inferred from the locale - * (Sunday for en_US, Monday for de_DE, etc.) - */ - public function setDaysFromStartOfWeek(int $numberOfDays, WeekDay|int|null $weekStartsAt = null): static - { - return $this->addDays($numberOfDays - $this->getDaysFromStartOfWeek(WeekDay::int($weekStartsAt))); - } - - /** - * Set any unit to a new value without overflowing current other unit given. - * - * @param string $valueUnit unit name to modify - * @param int $value new value for the input unit - * @param string $overflowUnit unit name to not overflow - */ - public function setUnitNoOverflow(string $valueUnit, int $value, string $overflowUnit): static - { - try { - $start = $this->avoidMutation()->startOf($overflowUnit); - $end = $this->avoidMutation()->endOf($overflowUnit); - /** @var static $date */ - $date = $this->$valueUnit($value); - - if ($date < $start) { - return $date->mutateIfMutable($start); - } - - if ($date > $end) { - return $date->mutateIfMutable($end); - } - - return $date; - } catch (BadMethodCallException | ReflectionException $exception) { - throw new UnknownUnitException($valueUnit, 0, $exception); - } - } - - /** - * Add any unit to a new value without overflowing current other unit given. - * - * @param string $valueUnit unit name to modify - * @param int $value amount to add to the input unit - * @param string $overflowUnit unit name to not overflow - */ - public function addUnitNoOverflow(string $valueUnit, int $value, string $overflowUnit): static - { - return $this->setUnitNoOverflow($valueUnit, $this->$valueUnit + $value, $overflowUnit); - } - - /** - * Subtract any unit to a new value without overflowing current other unit given. - * - * @param string $valueUnit unit name to modify - * @param int $value amount to subtract to the input unit - * @param string $overflowUnit unit name to not overflow - */ - public function subUnitNoOverflow(string $valueUnit, int $value, string $overflowUnit): static - { - return $this->setUnitNoOverflow($valueUnit, $this->$valueUnit - $value, $overflowUnit); - } - - /** - * Returns the minutes offset to UTC if no arguments passed, else set the timezone with given minutes shift passed. - */ - public function utcOffset(?int $minuteOffset = null): static|int - { - if ($minuteOffset === null) { - return $this->offsetMinutes; - } - - return $this->setTimezone(CarbonTimeZone::createFromMinuteOffset($minuteOffset)); - } - - /** - * Set the date with gregorian year, month and day numbers. - * - * @see https://php.net/manual/en/datetime.setdate.php - */ - public function setDate(int $year, int $month, int $day): static - { - return parent::setDate($year, $month, $day); - } - - /** - * Set a date according to the ISO 8601 standard - using weeks and day offsets rather than specific dates. - * - * @see https://php.net/manual/en/datetime.setisodate.php - */ - public function setISODate(int $year, int $week, int $day = 1): static - { - return parent::setISODate($year, $week, $day); - } - - /** - * Set the date and time all together. - */ - public function setDateTime( - int $year, - int $month, - int $day, - int $hour, - int $minute, - int $second = 0, - int $microseconds = 0, - ): static { - return $this->setDate($year, $month, $day)->setTime($hour, $minute, $second, $microseconds); - } - - /** - * Resets the current time of the DateTime object to a different time. - * - * @see https://php.net/manual/en/datetime.settime.php - */ - public function setTime(int $hour, int $minute, int $second = 0, int $microseconds = 0): static - { - return parent::setTime($hour, $minute, $second, $microseconds); - } - - /** - * Set the instance's timestamp. - * - * Timestamp input can be given as int, float or a string containing one or more numbers. - */ - public function setTimestamp(float|int|string $timestamp): static - { - [$seconds, $microseconds] = self::getIntegerAndDecimalParts($timestamp); - - return parent::setTimestamp((int) $seconds)->setMicroseconds((int) $microseconds); - } - - /** - * Set the time by time string. - */ - public function setTimeFromTimeString(string $time): static - { - if (!str_contains($time, ':')) { - $time .= ':0'; - } - - return $this->modify($time); - } - - /** - * @alias setTimezone - */ - public function timezone(DateTimeZone|string|int $value): static - { - return $this->setTimezone($value); - } - - /** - * Set the timezone or returns the timezone name if no arguments passed. - */ - public function tz(DateTimeZone|string|int|null $value = null): static|string - { - if ($value === null) { - return $this->tzName; - } - - return $this->setTimezone($value); - } - - /** - * Set the instance's timezone from a string or object. - */ - public function setTimezone(DateTimeZone|string|int $timeZone): static - { - return parent::setTimezone(static::safeCreateDateTimeZone($timeZone)); - } - - /** - * Set the instance's timezone from a string or object and add/subtract the offset difference. - */ - public function shiftTimezone(DateTimeZone|string $value): static - { - $dateTimeString = $this->format('Y-m-d H:i:s.u'); - - return $this - ->setTimezone($value) - ->modify($dateTimeString); - } - - /** - * Set the instance's timezone to UTC. - */ - public function utc(): static - { - return $this->setTimezone('UTC'); - } - - /** - * Set the year, month, and date for this instance to that of the passed instance. - */ - public function setDateFrom(DateTimeInterface|string $date): static - { - $date = $this->resolveCarbon($date); - - return $this->setDate($date->year, $date->month, $date->day); - } - - /** - * Set the hour, minute, second and microseconds for this instance to that of the passed instance. - */ - public function setTimeFrom(DateTimeInterface|string $date): static - { - $date = $this->resolveCarbon($date); - - return $this->setTime($date->hour, $date->minute, $date->second, $date->microsecond); - } - - /** - * Set the date and time for this instance to that of the passed instance. - */ - public function setDateTimeFrom(DateTimeInterface|string $date): static - { - $date = $this->resolveCarbon($date); - - return $this->modify($date->rawFormat('Y-m-d H:i:s.u')); - } - - /** - * Get the days of the week. - */ - public static function getDays(): array - { - return static::$days; - } - - /////////////////////////////////////////////////////////////////// - /////////////////////// WEEK SPECIAL DAYS ///////////////////////// - /////////////////////////////////////////////////////////////////// - - /** - * Get the first day of week. - * - * @return int - */ - public static function getWeekStartsAt(?string $locale = null): int - { - return (int) static::getTranslationMessageWith( - $locale ? Translator::get($locale) : static::getTranslator(), - 'first_day_of_week', - ); - } - - /** - * Get the last day of week. - * - * @param string $locale local to consider the last day of week. - * - * @return int - */ - public static function getWeekEndsAt(?string $locale = null): int - { - return static::weekRotate(static::getWeekStartsAt($locale), -1); - } - - /** - * Get weekend days - */ - public static function getWeekendDays(): array - { - return FactoryImmutable::getInstance()->getWeekendDays(); - } - - /** - * @deprecated To avoid conflict between different third-party libraries, static setters should not be used. - * You should rather consider week-end is always saturday and sunday, and if you have some custom - * week-end days to handle, give to those days an other name and create a macro for them: - * - * ``` - * Carbon::macro('isDayOff', function ($date) { - * return $date->isSunday() || $date->isMonday(); - * }); - * Carbon::macro('isNotDayOff', function ($date) { - * return !$date->isDayOff(); - * }); - * if ($someDate->isDayOff()) ... - * if ($someDate->isNotDayOff()) ... - * // Add 5 not-off days - * $count = 5; - * while ($someDate->isDayOff() || ($count-- > 0)) { - * $someDate->addDay(); - * } - * ``` - * - * Set weekend days - */ - public static function setWeekendDays(array $days): void - { - FactoryImmutable::getDefaultInstance()->setWeekendDays($days); - } - - /** - * Determine if a time string will produce a relative date. - * - * @return bool true if time match a relative date, false if absolute or invalid time string - */ - public static function hasRelativeKeywords(?string $time): bool - { - if (!$time || strtotime($time) === false) { - return false; - } - - $date1 = new DateTime('2000-01-01T00:00:00Z'); - $date1->modify($time); - $date2 = new DateTime('2001-12-25T00:00:00Z'); - $date2->modify($time); - - return $date1 != $date2; - } - - /////////////////////////////////////////////////////////////////// - /////////////////////// STRING FORMATTING ///////////////////////// - /////////////////////////////////////////////////////////////////// - - /** - * Returns list of locale formats for ISO formatting. - * - * @param string|null $locale current locale used if null - */ - public function getIsoFormats(?string $locale = null): array - { - return [ - 'LT' => $this->getTranslationMessage('formats.LT', $locale), - 'LTS' => $this->getTranslationMessage('formats.LTS', $locale), - 'L' => $this->getTranslationMessage('formats.L', $locale), - 'LL' => $this->getTranslationMessage('formats.LL', $locale), - 'LLL' => $this->getTranslationMessage('formats.LLL', $locale), - 'LLLL' => $this->getTranslationMessage('formats.LLLL', $locale), - 'l' => $this->getTranslationMessage('formats.l', $locale), - 'll' => $this->getTranslationMessage('formats.ll', $locale), - 'lll' => $this->getTranslationMessage('formats.lll', $locale), - 'llll' => $this->getTranslationMessage('formats.llll', $locale), - ]; - } - - /** - * Returns list of calendar formats for ISO formatting. - * - * @param string|null $locale current locale used if null - */ - public function getCalendarFormats(?string $locale = null): array - { - return [ - 'sameDay' => $this->getTranslationMessage('calendar.sameDay', $locale, '[Today at] LT'), - 'nextDay' => $this->getTranslationMessage('calendar.nextDay', $locale, '[Tomorrow at] LT'), - 'nextWeek' => $this->getTranslationMessage('calendar.nextWeek', $locale, 'dddd [at] LT'), - 'lastDay' => $this->getTranslationMessage('calendar.lastDay', $locale, '[Yesterday at] LT'), - 'lastWeek' => $this->getTranslationMessage('calendar.lastWeek', $locale, '[Last] dddd [at] LT'), - 'sameElse' => $this->getTranslationMessage('calendar.sameElse', $locale, 'L'), - ]; - } - - /** - * Returns list of locale units for ISO formatting. - */ - public static function getIsoUnits(): array - { - static $units = null; - - $units ??= [ - 'OD' => ['getAltNumber', ['day']], - 'OM' => ['getAltNumber', ['month']], - 'OY' => ['getAltNumber', ['year']], - 'OH' => ['getAltNumber', ['hour']], - 'Oh' => ['getAltNumber', ['h']], - 'Om' => ['getAltNumber', ['minute']], - 'Os' => ['getAltNumber', ['second']], - 'D' => 'day', - 'DD' => ['rawFormat', ['d']], - 'Do' => ['ordinal', ['day', 'D']], - 'd' => 'dayOfWeek', - 'dd' => static fn (CarbonInterface $date, $originalFormat = null) => $date->getTranslatedMinDayName( - $originalFormat, - ), - 'ddd' => static fn (CarbonInterface $date, $originalFormat = null) => $date->getTranslatedShortDayName( - $originalFormat, - ), - 'dddd' => static fn (CarbonInterface $date, $originalFormat = null) => $date->getTranslatedDayName( - $originalFormat, - ), - 'DDD' => 'dayOfYear', - 'DDDD' => ['getPaddedUnit', ['dayOfYear', 3]], - 'DDDo' => ['ordinal', ['dayOfYear', 'DDD']], - 'e' => ['weekday', []], - 'E' => 'dayOfWeekIso', - 'H' => ['rawFormat', ['G']], - 'HH' => ['rawFormat', ['H']], - 'h' => ['rawFormat', ['g']], - 'hh' => ['rawFormat', ['h']], - 'k' => 'noZeroHour', - 'kk' => ['getPaddedUnit', ['noZeroHour']], - 'hmm' => ['rawFormat', ['gi']], - 'hmmss' => ['rawFormat', ['gis']], - 'Hmm' => ['rawFormat', ['Gi']], - 'Hmmss' => ['rawFormat', ['Gis']], - 'm' => 'minute', - 'mm' => ['rawFormat', ['i']], - 'a' => 'meridiem', - 'A' => 'upperMeridiem', - 's' => 'second', - 'ss' => ['getPaddedUnit', ['second']], - 'S' => static fn (CarbonInterface $date) => (string) floor($date->micro / 100000), - 'SS' => static fn (CarbonInterface $date) => self::floorZeroPad($date->micro / 10000, 2), - 'SSS' => static fn (CarbonInterface $date) => self::floorZeroPad($date->micro / 1000, 3), - 'SSSS' => static fn (CarbonInterface $date) => self::floorZeroPad($date->micro / 100, 4), - 'SSSSS' => static fn (CarbonInterface $date) => self::floorZeroPad($date->micro / 10, 5), - 'SSSSSS' => ['getPaddedUnit', ['micro', 6]], - 'SSSSSSS' => static fn (CarbonInterface $date) => self::floorZeroPad($date->micro * 10, 7), - 'SSSSSSSS' => static fn (CarbonInterface $date) => self::floorZeroPad($date->micro * 100, 8), - 'SSSSSSSSS' => static fn (CarbonInterface $date) => self::floorZeroPad($date->micro * 1000, 9), - 'M' => 'month', - 'MM' => ['rawFormat', ['m']], - 'MMM' => static function (CarbonInterface $date, $originalFormat = null) { - $month = $date->getTranslatedShortMonthName($originalFormat); - $suffix = $date->getTranslationMessage('mmm_suffix'); - if ($suffix && $month !== $date->monthName) { - $month .= $suffix; - } - - return $month; - }, - 'MMMM' => static fn (CarbonInterface $date, $originalFormat = null) => $date->getTranslatedMonthName( - $originalFormat, - ), - 'Mo' => ['ordinal', ['month', 'M']], - 'Q' => 'quarter', - 'Qo' => ['ordinal', ['quarter', 'M']], - 'G' => 'isoWeekYear', - 'GG' => ['getPaddedUnit', ['isoWeekYear']], - 'GGG' => ['getPaddedUnit', ['isoWeekYear', 3]], - 'GGGG' => ['getPaddedUnit', ['isoWeekYear', 4]], - 'GGGGG' => ['getPaddedUnit', ['isoWeekYear', 5]], - 'g' => 'weekYear', - 'gg' => ['getPaddedUnit', ['weekYear']], - 'ggg' => ['getPaddedUnit', ['weekYear', 3]], - 'gggg' => ['getPaddedUnit', ['weekYear', 4]], - 'ggggg' => ['getPaddedUnit', ['weekYear', 5]], - 'W' => 'isoWeek', - 'WW' => ['getPaddedUnit', ['isoWeek']], - 'Wo' => ['ordinal', ['isoWeek', 'W']], - 'w' => 'week', - 'ww' => ['getPaddedUnit', ['week']], - 'wo' => ['ordinal', ['week', 'w']], - 'x' => ['valueOf', []], - 'X' => 'timestamp', - 'Y' => 'year', - 'YY' => ['rawFormat', ['y']], - 'YYYY' => ['getPaddedUnit', ['year', 4]], - 'YYYYY' => ['getPaddedUnit', ['year', 5]], - 'YYYYYY' => static fn (CarbonInterface $date) => ($date->year < 0 ? '' : '+'). - $date->getPaddedUnit('year', 6), - 'z' => ['rawFormat', ['T']], - 'zz' => 'tzName', - 'Z' => ['getOffsetString', []], - 'ZZ' => ['getOffsetString', ['']], - ]; - - return $units; - } - - /** - * Returns a unit of the instance padded with 0 by default or any other string if specified. - * - * @param string $unit Carbon unit name - * @param int $length Length of the output (2 by default) - * @param string $padString String to use for padding ("0" by default) - * @param int $padType Side(s) to pad (STR_PAD_LEFT by default) - */ - public function getPaddedUnit($unit, $length = 2, $padString = '0', $padType = STR_PAD_LEFT): string - { - return ($this->$unit < 0 ? '-' : '').str_pad((string) abs($this->$unit), $length, $padString, $padType); - } - - /** - * Return a property with its ordinal. - */ - public function ordinal(string $key, ?string $period = null): string - { - $number = $this->$key; - $result = $this->translate('ordinal', [ - ':number' => $number, - ':period' => (string) $period, - ]); - - return (string) ($result === 'ordinal' ? $number : $result); - } - - /** - * Return the meridiem of the current time in the current locale. - * - * @param bool $isLower if true, returns lowercase variant if available in the current locale. - */ - public function meridiem(bool $isLower = false): string - { - $hour = $this->hour; - $index = $hour < static::HOURS_PER_DAY / 2 ? 0 : 1; - - if ($isLower) { - $key = 'meridiem.'.($index + 2); - $result = $this->translate($key); - - if ($result !== $key) { - return $result; - } - } - - $key = "meridiem.$index"; - $result = $this->translate($key); - if ($result === $key) { - $result = $this->translate('meridiem', [ - ':hour' => $this->hour, - ':minute' => $this->minute, - ':isLower' => $isLower, - ]); - - if ($result === 'meridiem') { - return $isLower ? $this->latinMeridiem : $this->latinUpperMeridiem; - } - } elseif ($isLower) { - $result = mb_strtolower($result); - } - - return $result; - } - - /** - * Returns the alternative number for a given date property if available in the current locale. - * - * @param string $key date property - */ - public function getAltNumber(string $key): string - { - return $this->translateNumber((int) (\strlen($key) > 1 ? $this->$key : $this->rawFormat($key))); - } - - /** - * Format in the current language using ISO replacement patterns. - * - * @param string|null $originalFormat provide context if a chunk has been passed alone - */ - public function isoFormat(string $format, ?string $originalFormat = null): string - { - $result = ''; - $length = mb_strlen($format); - $originalFormat ??= $format; - $inEscaped = false; - $formats = null; - $units = null; - - for ($i = 0; $i < $length; $i++) { - $char = mb_substr($format, $i, 1); - - if ($char === '\\') { - $result .= mb_substr($format, ++$i, 1); - - continue; - } - - if ($char === '[' && !$inEscaped) { - $inEscaped = true; - - continue; - } - - if ($char === ']' && $inEscaped) { - $inEscaped = false; - - continue; - } - - if ($inEscaped) { - $result .= $char; - - continue; - } - - $input = mb_substr($format, $i); - - if (preg_match('/^(LTS|LT|l{1,4}|L{1,4})/', $input, $match)) { - if ($formats === null) { - $formats = $this->getIsoFormats(); - } - - $code = $match[0]; - $sequence = $formats[$code] ?? preg_replace_callback( - '/MMMM|MM|DD|dddd/', - static fn ($code) => mb_substr($code[0], 1), - $formats[strtoupper($code)] ?? '', - ); - $rest = mb_substr($format, $i + mb_strlen($code)); - $format = mb_substr($format, 0, $i).$sequence.$rest; - $length = mb_strlen($format); - $input = $sequence.$rest; - } - - if (preg_match('/^'.CarbonInterface::ISO_FORMAT_REGEXP.'/', $input, $match)) { - $code = $match[0]; - - if ($units === null) { - $units = static::getIsoUnits(); - } - - $sequence = $units[$code] ?? ''; - - if ($sequence instanceof Closure) { - $sequence = $sequence($this, $originalFormat); - } elseif (\is_array($sequence)) { - try { - $sequence = $this->{$sequence[0]}(...$sequence[1]); - } catch (ReflectionException | InvalidArgumentException | BadMethodCallException) { - $sequence = ''; - } - } elseif (\is_string($sequence)) { - $sequence = $this->$sequence ?? $code; - } - - $format = mb_substr($format, 0, $i).$sequence.mb_substr($format, $i + mb_strlen($code)); - $i += mb_strlen((string) $sequence) - 1; - $length = mb_strlen($format); - $char = $sequence; - } - - $result .= $char; - } - - return $result; - } - - /** - * List of replacements from date() format to isoFormat(). - */ - public static function getFormatsToIsoReplacements(): array - { - static $replacements = null; - - $replacements ??= [ - 'd' => true, - 'D' => 'ddd', - 'j' => true, - 'l' => 'dddd', - 'N' => true, - 'S' => static fn ($date) => str_replace((string) $date->rawFormat('j'), '', $date->isoFormat('Do')), - 'w' => true, - 'z' => true, - 'W' => true, - 'F' => 'MMMM', - 'm' => true, - 'M' => 'MMM', - 'n' => true, - 't' => true, - 'L' => true, - 'o' => true, - 'Y' => true, - 'y' => true, - 'a' => 'a', - 'A' => 'A', - 'B' => true, - 'g' => true, - 'G' => true, - 'h' => true, - 'H' => true, - 'i' => true, - 's' => true, - 'u' => true, - 'v' => true, - 'E' => true, - 'I' => true, - 'O' => true, - 'P' => true, - 'Z' => true, - 'c' => true, - 'r' => true, - 'U' => true, - 'T' => true, - ]; - - return $replacements; - } - - /** - * Format as ->format() do (using date replacements patterns from https://php.net/manual/en/function.date.php) - * but translate words whenever possible (months, day names, etc.) using the current locale. - */ - public function translatedFormat(string $format): string - { - $replacements = static::getFormatsToIsoReplacements(); - $context = ''; - $isoFormat = ''; - $length = mb_strlen($format); - - for ($i = 0; $i < $length; $i++) { - $char = mb_substr($format, $i, 1); - - if ($char === '\\') { - $replacement = mb_substr($format, $i, 2); - $isoFormat .= $replacement; - $i++; - - continue; - } - - if (!isset($replacements[$char])) { - $replacement = preg_match('/^[A-Za-z]$/', $char) ? "\\$char" : $char; - $isoFormat .= $replacement; - $context .= $replacement; - - continue; - } - - $replacement = $replacements[$char]; - - if ($replacement === true) { - static $contextReplacements = null; - - if ($contextReplacements === null) { - $contextReplacements = [ - 'm' => 'MM', - 'd' => 'DD', - 't' => 'D', - 'j' => 'D', - 'N' => 'e', - 'w' => 'e', - 'n' => 'M', - 'o' => 'YYYY', - 'Y' => 'YYYY', - 'y' => 'YY', - 'g' => 'h', - 'G' => 'H', - 'h' => 'hh', - 'H' => 'HH', - 'i' => 'mm', - 's' => 'ss', - ]; - } - - $isoFormat .= '['.$this->rawFormat($char).']'; - $context .= $contextReplacements[$char] ?? ' '; - - continue; - } - - if ($replacement instanceof Closure) { - $replacement = '['.$replacement($this).']'; - $isoFormat .= $replacement; - $context .= $replacement; - - continue; - } - - $isoFormat .= $replacement; - $context .= $replacement; - } - - return $this->isoFormat($isoFormat, $context); - } - - /** - * Returns the offset hour and minute formatted with +/- and a given separator (":" by default). - * For example, if the time zone is 9 hours 30 minutes, you'll get "+09:30", with "@@" as first - * argument, "+09@@30", with "" as first argument, "+0930". Negative offset will return something - * like "-12:00". - * - * @param string $separator string to place between hours and minutes (":" by default) - */ - public function getOffsetString(string $separator = ':'): string - { - $second = $this->getOffset(); - $symbol = $second < 0 ? '-' : '+'; - $minute = abs($second) / static::SECONDS_PER_MINUTE; - $hour = self::floorZeroPad($minute / static::MINUTES_PER_HOUR, 2); - $minute = self::floorZeroPad(((int) $minute) % static::MINUTES_PER_HOUR, 2); - - return "$symbol$hour$separator$minute"; - } - - /** - * Dynamically handle calls to the class. - * - * @param string $method magic method name called - * @param array $parameters parameters list - * - * @throws BadMethodCallException - */ - public static function __callStatic(string $method, array $parameters): mixed - { - if (!static::hasMacro($method)) { - foreach (static::getGenericMacros() as $callback) { - try { - return static::executeStaticCallable($callback, $method, ...$parameters); - } catch (BadMethodCallException) { - continue; - } - } - - if (static::isStrictModeEnabled()) { - throw new UnknownMethodException(\sprintf('%s::%s', static::class, $method)); - } - - return null; - } - - return static::executeStaticCallable(static::getMacro($method), ...$parameters); - } - - /** - * Set specified unit to new given value. - * - * @param string $unit year, month, day, hour, minute, second or microsecond - * @param Month|int $value new value for given unit - */ - public function setUnit(string $unit, Month|int|float|null $value = null): static - { - if (\is_float($value)) { - $int = (int) $value; - - if ((float) $int !== $value) { - throw new InvalidArgumentException( - "$unit cannot be changed to float value $value, integer expected", - ); - } - - $value = $int; - } - - $unit = static::singularUnit($unit); - $value = self::monthToInt($value, $unit); - $dateUnits = ['year', 'month', 'day']; - - if (\in_array($unit, $dateUnits)) { - return $this->setDate(...array_map( - fn ($name) => (int) ($name === $unit ? $value : $this->$name), - $dateUnits, - )); - } - - $units = ['hour', 'minute', 'second', 'micro']; - - if ($unit === 'millisecond' || $unit === 'milli') { - $value *= 1000; - $unit = 'micro'; - } elseif ($unit === 'microsecond') { - $unit = 'micro'; - } - - return $this->setTime(...array_map( - fn ($name) => (int) ($name === $unit ? $value : $this->$name), - $units, - )); - } - - /** - * Returns standardized singular of a given singular/plural unit name (in English). - */ - public static function singularUnit(string $unit): string - { - $unit = rtrim(mb_strtolower($unit), 's'); - - return match ($unit) { - 'centurie' => 'century', - 'millennia' => 'millennium', - default => $unit, - }; - } - - /** - * Returns standardized plural of a given singular/plural unit name (in English). - */ - public static function pluralUnit(string $unit): string - { - $unit = rtrim(strtolower($unit), 's'); - - return match ($unit) { - 'century' => 'centuries', - 'millennium', 'millennia' => 'millennia', - default => "{$unit}s", - }; - } - - public static function sleep(int|float $seconds): void - { - if (static::hasTestNow()) { - static::setTestNow(static::getTestNow()->avoidMutation()->addSeconds($seconds)); - - return; - } - - (new NativeClock('UTC'))->sleep($seconds); - } - - /** - * Dynamically handle calls to the class. - * - * @param string $method magic method name called - * @param array $parameters parameters list - * - * @throws UnknownMethodException|BadMethodCallException|ReflectionException|Throwable - */ - public function __call(string $method, array $parameters): mixed - { - $unit = rtrim($method, 's'); - - return $this->callDiffAlias($unit, $parameters) - ?? $this->callHumanDiffAlias($unit, $parameters) - ?? $this->callRoundMethod($unit, $parameters) - ?? $this->callIsMethod($unit, $parameters) - ?? $this->callModifierMethod($unit, $parameters) - ?? $this->callPeriodMethod($method, $parameters) - ?? $this->callGetOrSetMethod($method, $parameters) - ?? $this->callMacroMethod($method, $parameters); - } - - /** - * Return the Carbon instance passed through, a now instance in the same timezone - * if null given or parse the input if string given. - */ - protected function resolveCarbon(DateTimeInterface|string|null $date): self - { - if (!$date) { - return $this->nowWithSameTz(); - } - - if (\is_string($date)) { - return $this->transmitFactory(fn () => static::parse($date, $this->getTimezone())); - } - - return $date instanceof self ? $date : $this->transmitFactory(static fn () => static::instance($date)); - } - - protected static function weekRotate(int $day, int $rotation): int - { - return (static::DAYS_PER_WEEK + $rotation % static::DAYS_PER_WEEK + $day) % static::DAYS_PER_WEEK; - } - - protected function executeCallable(callable $macro, ...$parameters) - { - if ($macro instanceof Closure) { - $boundMacro = @$macro->bindTo($this, static::class) ?: @$macro->bindTo(null, static::class); - - return \call_user_func_array($boundMacro ?: $macro, $parameters); - } - - return \call_user_func_array($macro, $parameters); - } - - protected function executeCallableWithContext(callable $macro, ...$parameters) - { - return static::bindMacroContext($this, function () use (&$macro, &$parameters) { - return $this->executeCallable($macro, ...$parameters); - }); - } - - protected function getAllGenericMacros(): Generator - { - yield from $this->localGenericMacros ?? []; - yield from $this->transmitFactory(static fn () => static::getGenericMacros()); - } - - protected static function getGenericMacros(): Generator - { - foreach ((FactoryImmutable::getInstance()->getSettings()['genericMacros'] ?? []) as $list) { - foreach ($list as $macro) { - yield $macro; - } - } - } - - protected static function executeStaticCallable(callable $macro, ...$parameters) - { - return static::bindMacroContext(null, function () use (&$macro, &$parameters) { - if ($macro instanceof Closure) { - $boundMacro = @Closure::bind($macro, null, static::class); - - return \call_user_func_array($boundMacro ?: $macro, $parameters); - } - - return \call_user_func_array($macro, $parameters); - }); - } - - protected function getTranslatedFormByRegExp($baseKey, $keySuffix, $context, $subKey, $defaultValue) - { - $key = $baseKey.$keySuffix; - $standaloneKey = "{$key}_standalone"; - $baseTranslation = $this->getTranslationMessage($key); - - if ($baseTranslation instanceof Closure) { - return $baseTranslation($this, $context, $subKey) ?: $defaultValue; - } - - if ( - $this->getTranslationMessage("$standaloneKey.$subKey") && - (!$context || (($regExp = $this->getTranslationMessage("{$baseKey}_regexp")) && !preg_match($regExp, $context))) - ) { - $key = $standaloneKey; - } - - return $this->getTranslationMessage("$key.$subKey", null, $defaultValue); - } - - private function callGetOrSetMethod(string $method, array $parameters): mixed - { - if (preg_match('/^([a-z]{2,})(In|Of)([A-Z][a-z]+)$/', $method)) { - $localStrictModeEnabled = $this->localStrictModeEnabled; - $this->localStrictModeEnabled = true; - - try { - return $this->callGetOrSet($method, $parameters[0] ?? null); - } catch (UnknownGetterException|UnknownSetterException|ImmutableException) { - // continue to macro - } finally { - $this->localStrictModeEnabled = $localStrictModeEnabled; - } - } - - return null; - } - - private function callGetOrSet(string $name, mixed $value): mixed - { - if ($value !== null) { - if (\is_string($value) || \is_int($value) || \is_float($value) || $value instanceof DateTimeZone || $value instanceof Month) { - return $this->set($name, $value); - } - - return null; - } - - return $this->get($name); - } - - private function getUTCUnit(string $unit): ?string - { - if (str_starts_with($unit, 'Real')) { - return substr($unit, 4); - } - - if (str_starts_with($unit, 'UTC')) { - return substr($unit, 3); - } - - return null; - } - - private function callDiffAlias(string $method, array $parameters): mixed - { - if (preg_match('/^(diff|floatDiff)In(Real|UTC|Utc)?(.+)$/', $method, $match)) { - $mode = strtoupper($match[2] ?? ''); - $betterMethod = $match[1] === 'floatDiff' ? str_replace('floatDiff', 'diff', $method) : null; - - if ($mode === 'REAL') { - $mode = 'UTC'; - $betterMethod = str_replace($match[2], 'UTC', $betterMethod ?? $method); - } - - if ($betterMethod) { - @trigger_error( - "Use the method $betterMethod instead to make it more explicit about what it does.\n". - 'On next major version, "float" prefix will be removed (as all diff are now returning floating numbers)'. - ' and "Real" methods will be removed in favor of "UTC" because what it actually does is to convert both'. - ' dates to UTC timezone before comparison, while by default it does it only if both dates don\'t have'. - ' exactly the same timezone (Note: 2 timezones with the same offset but different names are considered'. - " different as it's not safe to assume they will always have the same offset).", - \E_USER_DEPRECATED, - ); - } - - $unit = self::pluralUnit($match[3]); - $diffMethod = 'diffIn'.ucfirst($unit); - - if (\in_array($unit, ['days', 'weeks', 'months', 'quarters', 'years'])) { - $parameters['utc'] = ($mode === 'UTC'); - } - - if (method_exists($this, $diffMethod)) { - return $this->$diffMethod(...$parameters); - } - } - - return null; - } - - private function callHumanDiffAlias(string $method, array $parameters): ?string - { - $diffSizes = [ - // @mode diffForHumans - 'short' => true, - // @mode diffForHumans - 'long' => false, - ]; - $diffSyntaxModes = [ - // @call diffForHumans - 'Absolute' => CarbonInterface::DIFF_ABSOLUTE, - // @call diffForHumans - 'Relative' => CarbonInterface::DIFF_RELATIVE_AUTO, - // @call diffForHumans - 'RelativeToNow' => CarbonInterface::DIFF_RELATIVE_TO_NOW, - // @call diffForHumans - 'RelativeToOther' => CarbonInterface::DIFF_RELATIVE_TO_OTHER, - ]; - $sizePattern = implode('|', array_keys($diffSizes)); - $syntaxPattern = implode('|', array_keys($diffSyntaxModes)); - - if (preg_match("/^(?$sizePattern)(?$syntaxPattern)DiffForHuman$/", $method, $match)) { - $dates = array_filter($parameters, function ($parameter) { - return $parameter instanceof DateTimeInterface; - }); - $other = null; - - if (\count($dates)) { - $key = key($dates); - $other = current($dates); - array_splice($parameters, $key, 1); - } - - return $this->diffForHumans($other, $diffSyntaxModes[$match['syntax']], $diffSizes[$match['size']], ...$parameters); - } - - return null; - } - - private function callIsMethod(string $unit, array $parameters): ?bool - { - if (!str_starts_with($unit, 'is')) { - return null; - } - - $word = substr($unit, 2); - - if (\in_array($word, static::$days, true)) { - return $this->isDayOfWeek($word); - } - - return match ($word) { - // @call is Check if the current instance has UTC timezone. (Both isUtc and isUTC cases are valid.) - 'Utc', 'UTC' => $this->utc, - // @call is Check if the current instance has non-UTC timezone. - 'Local' => $this->local, - // @call is Check if the current instance is a valid date. - 'Valid' => $this->year !== 0, - // @call is Check if the current instance is in a daylight saving time. - 'DST' => $this->dst, - default => $this->callComparatorMethod($word, $parameters), - }; - } - - private function callComparatorMethod(string $unit, array $parameters): ?bool - { - $start = substr($unit, 0, 4); - $factor = -1; - - if ($start === 'Last') { - $start = 'Next'; - $factor = 1; - } - - if ($start === 'Next') { - $lowerUnit = strtolower(substr($unit, 4)); - - if (static::isModifiableUnit($lowerUnit)) { - return $this->avoidMutation()->addUnit($lowerUnit, $factor, false)->isSameUnit($lowerUnit, ...($parameters ?: ['now'])); - } - } - - if ($start === 'Same') { - try { - return $this->isSameUnit(strtolower(substr($unit, 4)), ...$parameters); - } catch (BadComparisonUnitException) { - // Try next - } - } - - if (str_starts_with($unit, 'Current')) { - try { - return $this->isCurrentUnit(strtolower(substr($unit, 7))); - } catch (BadComparisonUnitException | BadMethodCallException) { - // Try next - } - } - - return null; - } - - private function callModifierMethod(string $unit, array $parameters): ?static - { - $action = substr($unit, 0, 3); - $overflow = null; - - if ($action === 'set') { - $unit = strtolower(substr($unit, 3)); - } - - if (\in_array($unit, static::$units, true)) { - return $this->setUnit($unit, ...$parameters); - } - - if ($action === 'add' || $action === 'sub') { - $unit = substr($unit, 3); - $utcUnit = $this->getUTCUnit($unit); - - if ($utcUnit) { - $unit = static::singularUnit($utcUnit); - - return $this->{"{$action}UTCUnit"}($unit, ...$parameters); - } - - if (preg_match('/^(Month|Quarter|Year|Decade|Century|Centurie|Millennium|Millennia)s?(No|With|Without|WithNo)Overflow$/', $unit, $match)) { - $unit = $match[1]; - $overflow = $match[2] === 'With'; - } - - $unit = static::singularUnit($unit); - } - - if (static::isModifiableUnit($unit)) { - return $this->{"{$action}Unit"}($unit, $this->getMagicParameter($parameters, 0, 'value', 1), $overflow); - } - - return null; - } - - private function callPeriodMethod(string $method, array $parameters): ?CarbonPeriod - { - if (str_ends_with($method, 'Until')) { - try { - $unit = static::singularUnit(substr($method, 0, -5)); - - return $this->range( - $this->getMagicParameter($parameters, 0, 'endDate', $this), - $this->getMagicParameter($parameters, 1, 'factor', 1), - $unit - ); - } catch (InvalidArgumentException) { - // Try macros - } - } - - return null; - } - - private function callMacroMethod(string $method, array $parameters): mixed - { - return static::bindMacroContext($this, function () use (&$method, &$parameters) { - $macro = $this->getLocalMacro($method); - - if (!$macro) { - foreach ($this->getAllGenericMacros() as $callback) { - try { - return $this->executeCallable($callback, $method, ...$parameters); - } catch (BadMethodCallException) { - continue; - } - } - - if ($this->isLocalStrictModeEnabled()) { - throw new UnknownMethodException($method); - } - - return null; - } - - return $this->executeCallable($macro, ...$parameters); - }); - } - - private static function floorZeroPad(int|float $value, int $length): string - { - return str_pad((string) floor($value), $length, '0', STR_PAD_LEFT); - } - - /** - * @template T of CarbonInterface - * - * @param T $date - * - * @return T - */ - private function mutateIfMutable(CarbonInterface $date): CarbonInterface - { - return $this instanceof DateTimeImmutable - ? $date - : $this->modify('@'.$date->rawFormat('U.u'))->setTimezone($date->getTimezone()); - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Traits/DeprecatedPeriodProperties.php b/vendor/nesbot/carbon/src/Carbon/Traits/DeprecatedPeriodProperties.php deleted file mode 100644 index 71660c3..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Traits/DeprecatedPeriodProperties.php +++ /dev/null @@ -1,83 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Traits; - -use Carbon\CarbonInterface; -use Carbon\CarbonInterval; - -trait DeprecatedPeriodProperties -{ - /** - * Period start in PHP < 8.2. - * - * @var CarbonInterface - * - * @deprecated PHP 8.2 this property is no longer in sync with the actual period start. - */ - public $start; - - /** - * Period end in PHP < 8.2. - * - * @var CarbonInterface|null - * - * @deprecated PHP 8.2 this property is no longer in sync with the actual period end. - */ - public $end; - - /** - * Period current iterated date in PHP < 8.2. - * - * @var CarbonInterface|null - * - * @deprecated PHP 8.2 this property is no longer in sync with the actual period current iterated date. - */ - public $current; - - /** - * Period interval in PHP < 8.2. - * - * @var CarbonInterval|null - * - * @deprecated PHP 8.2 this property is no longer in sync with the actual period interval. - */ - public $interval; - - /** - * Period recurrences in PHP < 8.2. - * - * @var int|float|null - * - * @deprecated PHP 8.2 this property is no longer in sync with the actual period recurrences. - */ - public $recurrences; - - /** - * Period start included option in PHP < 8.2. - * - * @var bool - * - * @deprecated PHP 8.2 this property is no longer in sync with the actual period start included option. - */ - public $include_start_date; - - /** - * Period end included option in PHP < 8.2. - * - * @var bool - * - * @deprecated PHP 8.2 this property is no longer in sync with the actual period end included option. - */ - public $include_end_date; -} diff --git a/vendor/nesbot/carbon/src/Carbon/Traits/Difference.php b/vendor/nesbot/carbon/src/Carbon/Traits/Difference.php deleted file mode 100644 index db5fe1d..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Traits/Difference.php +++ /dev/null @@ -1,855 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Traits; - -use Carbon\Carbon; -use Carbon\CarbonImmutable; -use Carbon\CarbonInterface; -use Carbon\CarbonInterval; -use Carbon\CarbonPeriod; -use Carbon\Exceptions\UnknownUnitException; -use Carbon\Unit; -use Closure; -use DateInterval; -use DateTimeInterface; - -/** - * Trait Difference. - * - * Depends on the following methods: - * - * @method bool lessThan($date) - * @method static copy() - * @method static resolveCarbon($date = null) - */ -trait Difference -{ - /** - * Get the difference as a DateInterval instance. - * Return relative interval (negative if $absolute flag is not set to true and the given date is before - * current one). - * - * @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date - * @param bool $absolute Get the absolute of the difference - * - * @return DateInterval - */ - public function diffAsDateInterval($date = null, bool $absolute = false): DateInterval - { - $other = $this->resolveCarbon($date); - - // Work-around for https://bugs.php.net/bug.php?id=81458 - // It was initially introduced for https://bugs.php.net/bug.php?id=80998 - // The very specific case of 80998 was fixed in PHP 8.1beta3, but it introduced 81458 - // So we still need to keep this for now - if ($other->tz !== $this->tz) { - $other = $other->avoidMutation()->setTimezone($this->tz); - } - - return parent::diff($other, $absolute); - } - - /** - * Get the difference as a CarbonInterval instance. - * Return relative interval (negative if $absolute flag is not set to true and the given date is before - * current one). - * - * @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date - * @param bool $absolute Get the absolute of the difference - * - * @return CarbonInterval - */ - public function diffAsCarbonInterval($date = null, bool $absolute = false, array $skip = []): CarbonInterval - { - return CarbonInterval::diff($this, $this->resolveCarbon($date), $absolute, $skip) - ->setLocalTranslator($this->getLocalTranslator()); - } - - /** - * @alias diffAsCarbonInterval - * - * Get the difference as a DateInterval instance. - * Return relative interval (negative if $absolute flag is not set to true and the given date is before - * current one). - * - * @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date - * @param bool $absolute Get the absolute of the difference - * - * @return CarbonInterval - */ - public function diff($date = null, bool $absolute = false, array $skip = []): CarbonInterval - { - return $this->diffAsCarbonInterval($date, $absolute, $skip); - } - - /** - * @param Unit|string $unit microsecond, millisecond, second, minute, - * hour, day, week, month, quarter, year, - * century, millennium - * @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date - * @param bool $absolute Get the absolute of the difference - * @param bool $utc Always convert dates to UTC before comparing (if not set, it will do it only if timezones are different) - * - * @return float - */ - public function diffInUnit(Unit|string $unit, $date = null, bool $absolute = false, bool $utc = false): float - { - $unit = static::pluralUnit($unit instanceof Unit ? $unit->value : rtrim($unit, 'z')); - $method = 'diffIn'.$unit; - - if (!method_exists($this, $method)) { - throw new UnknownUnitException($unit); - } - - return $this->$method($date, $absolute, $utc); - } - - /** - * Get the difference in years - * - * @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date - * @param bool $absolute Get the absolute of the difference - * @param bool $utc Always convert dates to UTC before comparing (if not set, it will do it only if timezones are different) - * - * @return float - */ - public function diffInYears($date = null, bool $absolute = false, bool $utc = false): float - { - $start = $this; - $end = $this->resolveCarbon($date); - - if ($utc) { - $start = $start->avoidMutation()->utc(); - $end = $end->avoidMutation()->utc(); - } - - $ascending = ($start <= $end); - $sign = $absolute || $ascending ? 1 : -1; - - if (!$ascending) { - [$start, $end] = [$end, $start]; - } - - $yearsDiff = (int) $start->diff($end, $absolute)->format('%r%y'); - /** @var Carbon|CarbonImmutable $floorEnd */ - $floorEnd = $start->avoidMutation()->addYears($yearsDiff); - - if ($floorEnd >= $end) { - return $sign * $yearsDiff; - } - - /** @var Carbon|CarbonImmutable $ceilEnd */ - $ceilEnd = $start->avoidMutation()->addYears($yearsDiff + 1); - - $daysToFloor = $floorEnd->diffInDays($end); - $daysToCeil = $end->diffInDays($ceilEnd); - - return $sign * ($yearsDiff + $daysToFloor / ($daysToCeil + $daysToFloor)); - } - - /** - * Get the difference in quarters. - * - * @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date - * @param bool $absolute Get the absolute of the difference - * @param bool $utc Always convert dates to UTC before comparing (if not set, it will do it only if timezones are different) - * - * @return float - */ - public function diffInQuarters($date = null, bool $absolute = false, bool $utc = false): float - { - return $this->diffInMonths($date, $absolute, $utc) / static::MONTHS_PER_QUARTER; - } - - /** - * Get the difference in months. - * - * @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date - * @param bool $absolute Get the absolute of the difference - * @param bool $utc Always convert dates to UTC before comparing (if not set, it will do it only if timezones are different) - * - * @return float - */ - public function diffInMonths($date = null, bool $absolute = false, bool $utc = false): float - { - $start = $this; - $end = $this->resolveCarbon($date); - - // Compare using UTC - if ($utc || ($end->timezoneName !== $start->timezoneName)) { - $start = $start->avoidMutation()->utc(); - $end = $end->avoidMutation()->utc(); - } - - [$yearStart, $monthStart, $dayStart] = explode('-', $start->format('Y-m-dHisu')); - [$yearEnd, $monthEnd, $dayEnd] = explode('-', $end->format('Y-m-dHisu')); - - $monthsDiff = (((int) $yearEnd) - ((int) $yearStart)) * static::MONTHS_PER_YEAR + - ((int) $monthEnd) - ((int) $monthStart); - - if ($monthsDiff > 0) { - $monthsDiff -= ($dayStart > $dayEnd ? 1 : 0); - } elseif ($monthsDiff < 0) { - $monthsDiff += ($dayStart < $dayEnd ? 1 : 0); - } - - $ascending = ($start <= $end); - $sign = $absolute || $ascending ? 1 : -1; - $monthsDiff = abs($monthsDiff); - - if (!$ascending) { - [$start, $end] = [$end, $start]; - } - - /** @var Carbon|CarbonImmutable $floorEnd */ - $floorEnd = $start->avoidMutation()->addMonths($monthsDiff); - - if ($floorEnd >= $end) { - return $sign * $monthsDiff; - } - - /** @var Carbon|CarbonImmutable $ceilEnd */ - $ceilEnd = $start->avoidMutation()->addMonths($monthsDiff + 1); - - $daysToFloor = $floorEnd->diffInDays($end); - $daysToCeil = $end->diffInDays($ceilEnd); - - return $sign * ($monthsDiff + $daysToFloor / ($daysToCeil + $daysToFloor)); - } - - /** - * Get the difference in weeks. - * - * @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date - * @param bool $absolute Get the absolute of the difference - * @param bool $utc Always convert dates to UTC before comparing (if not set, it will do it only if timezones are different) - * - * @return float - */ - public function diffInWeeks($date = null, bool $absolute = false, bool $utc = false): float - { - return $this->diffInDays($date, $absolute, $utc) / static::DAYS_PER_WEEK; - } - - /** - * Get the difference in days. - * - * @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date - * @param bool $absolute Get the absolute of the difference - * @param bool $utc Always convert dates to UTC before comparing (if not set, it will do it only if timezones are different) - * - * @return float - */ - public function diffInDays($date = null, bool $absolute = false, bool $utc = false): float - { - $date = $this->resolveCarbon($date); - $current = $this; - - // Compare using UTC - if ($utc || ($date->timezoneName !== $current->timezoneName)) { - $date = $date->avoidMutation()->utc(); - $current = $current->avoidMutation()->utc(); - } - - $negative = ($date < $current); - [$start, $end] = $negative ? [$date, $current] : [$current, $date]; - $interval = $start->diffAsDateInterval($end); - $daysA = $this->getIntervalDayDiff($interval); - $floorEnd = $start->avoidMutation()->addDays($daysA); - $daysB = $daysA + ($floorEnd <= $end ? 1 : -1); - $ceilEnd = $start->avoidMutation()->addDays($daysB); - $microsecondsBetween = $floorEnd->diffInMicroseconds($ceilEnd); - $microsecondsToEnd = $floorEnd->diffInMicroseconds($end); - - return ($negative && !$absolute ? -1 : 1) - * ($daysA * ($microsecondsBetween - $microsecondsToEnd) + $daysB * $microsecondsToEnd) - / $microsecondsBetween; - } - - /** - * Get the difference in days using a filter closure. - * - * @param Closure $callback - * @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date - * @param bool $absolute Get the absolute of the difference - * - * @return int - */ - public function diffInDaysFiltered(Closure $callback, $date = null, bool $absolute = false): int - { - return $this->diffFiltered(CarbonInterval::day(), $callback, $date, $absolute); - } - - /** - * Get the difference in hours using a filter closure. - * - * @param Closure $callback - * @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date - * @param bool $absolute Get the absolute of the difference - * - * @return int - */ - public function diffInHoursFiltered(Closure $callback, $date = null, bool $absolute = false): int - { - return $this->diffFiltered(CarbonInterval::hour(), $callback, $date, $absolute); - } - - /** - * Get the difference by the given interval using a filter closure. - * - * @param CarbonInterval $ci An interval to traverse by - * @param Closure $callback - * @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date - * @param bool $absolute Get the absolute of the difference - * - * @return int - */ - public function diffFiltered(CarbonInterval $ci, Closure $callback, $date = null, bool $absolute = false): int - { - $start = $this; - $end = $this->resolveCarbon($date); - $inverse = false; - - if ($end < $start) { - $start = $end; - $end = $this; - $inverse = true; - } - - $options = CarbonPeriod::EXCLUDE_END_DATE | ($this->isMutable() ? 0 : CarbonPeriod::IMMUTABLE); - $diff = $ci->toPeriod($start, $end, $options)->filter($callback)->count(); - - return $inverse && !$absolute ? -$diff : $diff; - } - - /** - * Get the difference in weekdays. - * - * @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date - * @param bool $absolute Get the absolute of the difference - * - * @return int - */ - public function diffInWeekdays($date = null, bool $absolute = false): int - { - return $this->diffInDaysFiltered( - static fn (CarbonInterface $date) => $date->isWeekday(), - $this->resolveCarbon($date)->avoidMutation()->modify($this->format('H:i:s.u')), - $absolute, - ); - } - - /** - * Get the difference in weekend days using a filter. - * - * @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date - * @param bool $absolute Get the absolute of the difference - * - * @return int - */ - public function diffInWeekendDays($date = null, bool $absolute = false): int - { - return $this->diffInDaysFiltered( - static fn (CarbonInterface $date) => $date->isWeekend(), - $this->resolveCarbon($date)->avoidMutation()->modify($this->format('H:i:s.u')), - $absolute, - ); - } - - /** - * Get the difference in hours. - * - * @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date - * @param bool $absolute Get the absolute of the difference - * - * @return float - */ - public function diffInHours($date = null, bool $absolute = false): float - { - return $this->diffInMinutes($date, $absolute) / static::MINUTES_PER_HOUR; - } - - /** - * Get the difference in minutes. - * - * @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date - * @param bool $absolute Get the absolute of the difference - * - * @return float - */ - public function diffInMinutes($date = null, bool $absolute = false): float - { - return $this->diffInSeconds($date, $absolute) / static::SECONDS_PER_MINUTE; - } - - /** - * Get the difference in seconds. - * - * @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date - * @param bool $absolute Get the absolute of the difference - * - * @return float - */ - public function diffInSeconds($date = null, bool $absolute = false): float - { - return $this->diffInMilliseconds($date, $absolute) / static::MILLISECONDS_PER_SECOND; - } - - /** - * Get the difference in microseconds. - * - * @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date - * @param bool $absolute Get the absolute of the difference - * - * @return float - */ - public function diffInMicroseconds($date = null, bool $absolute = false): float - { - /** @var CarbonInterface $date */ - $date = $this->resolveCarbon($date); - $value = ($date->timestamp - $this->timestamp) * static::MICROSECONDS_PER_SECOND + - $date->micro - $this->micro; - - return $absolute ? abs($value) : $value; - } - - /** - * Get the difference in milliseconds. - * - * @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date - * @param bool $absolute Get the absolute of the difference - * - * @return float - */ - public function diffInMilliseconds($date = null, bool $absolute = false): float - { - return $this->diffInMicroseconds($date, $absolute) / static::MICROSECONDS_PER_MILLISECOND; - } - - /** - * The number of seconds since midnight. - * - * @return float - */ - public function secondsSinceMidnight(): float - { - return $this->diffInSeconds($this->copy()->startOfDay(), true); - } - - /** - * The number of seconds until 23:59:59. - * - * @return float - */ - public function secondsUntilEndOfDay(): float - { - return $this->diffInSeconds($this->copy()->endOfDay(), true); - } - - /** - * Get the difference in a human readable format in the current locale from current instance to an other - * instance given (or now if null given). - * - * @example - * ``` - * echo Carbon::tomorrow()->diffForHumans() . "\n"; - * echo Carbon::tomorrow()->diffForHumans(['parts' => 2]) . "\n"; - * echo Carbon::tomorrow()->diffForHumans(['parts' => 3, 'join' => true]) . "\n"; - * echo Carbon::tomorrow()->diffForHumans(Carbon::yesterday()) . "\n"; - * echo Carbon::tomorrow()->diffForHumans(Carbon::yesterday(), ['short' => true]) . "\n"; - * ``` - * - * @param Carbon|DateTimeInterface|string|array|null $other if array passed, will be used as parameters array, see $syntax below; - * if null passed, now will be used as comparison reference; - * if any other type, it will be converted to date and used as reference. - * @param int|array $syntax if array passed, parameters will be extracted from it, the array may contains: - * ⦿ 'syntax' entry (see below) - * ⦿ 'short' entry (see below) - * ⦿ 'parts' entry (see below) - * ⦿ 'options' entry (see below) - * ⦿ 'skip' entry, list of units to skip (array of strings or a single string, - * ` it can be the unit name (singular or plural) or its shortcut - * ` (y, m, w, d, h, min, s, ms, µs). - * ⦿ 'aUnit' entry, prefer "an hour" over "1 hour" if true - * ⦿ 'altNumbers' entry, use alternative numbers if available - * ` (from the current language if true is passed, from the given language(s) - * ` if array or string is passed) - * ⦿ 'join' entry determines how to join multiple parts of the string - * ` - if $join is a string, it's used as a joiner glue - * ` - if $join is a callable/closure, it get the list of string and should return a string - * ` - if $join is an array, the first item will be the default glue, and the second item - * ` will be used instead of the glue for the last item - * ` - if $join is true, it will be guessed from the locale ('list' translation file entry) - * ` - if $join is missing, a space will be used as glue - * ⦿ 'other' entry (see above) - * ⦿ 'minimumUnit' entry determines the smallest unit of time to display can be long or - * ` short form of the units, e.g. 'hour' or 'h' (default value: s) - * ⦿ 'locale' language in which the diff should be output (has no effect if 'translator' key is set) - * ⦿ 'translator' a custom translator to use to translator the output. - * if int passed, it adds modifiers: - * Possible values: - * - CarbonInterface::DIFF_ABSOLUTE no modifiers - * - CarbonInterface::DIFF_RELATIVE_TO_NOW add ago/from now modifier - * - CarbonInterface::DIFF_RELATIVE_TO_OTHER add before/after modifier - * Default value: CarbonInterface::DIFF_ABSOLUTE - * @param bool $short displays short format of time units - * @param int $parts maximum number of parts to display (default value: 1: single unit) - * @param int $options human diff options - */ - public function diffForHumans($other = null, $syntax = null, $short = false, $parts = 1, $options = null): string - { - /* @var CarbonInterface $this */ - if (\is_array($other)) { - $other['syntax'] = \array_key_exists('syntax', $other) ? $other['syntax'] : $syntax; - $syntax = $other; - $other = $syntax['other'] ?? null; - } - - $intSyntax = &$syntax; - - if (\is_array($syntax)) { - $syntax['syntax'] = $syntax['syntax'] ?? null; - $intSyntax = &$syntax['syntax']; - } - - $intSyntax = (int) ($intSyntax ?? static::DIFF_RELATIVE_AUTO); - $intSyntax = $intSyntax === static::DIFF_RELATIVE_AUTO && $other === null ? static::DIFF_RELATIVE_TO_NOW : $intSyntax; - - $parts = min(7, max(1, (int) $parts)); - $skip = \is_array($syntax) ? ($syntax['skip'] ?? []) : []; - $options ??= $this->localHumanDiffOptions ?? $this->transmitFactory( - static fn () => static::getHumanDiffOptions(), - ); - - return $this->diff($other, skip: (array) $skip)->forHumans($syntax, (bool) $short, $parts, $options); - } - - /** - * @alias diffForHumans - * - * Get the difference in a human readable format in the current locale from current instance to an other - * instance given (or now if null given). - * - * @param Carbon|\DateTimeInterface|string|array|null $other if array passed, will be used as parameters array, see $syntax below; - * if null passed, now will be used as comparison reference; - * if any other type, it will be converted to date and used as reference. - * @param int|array $syntax if array passed, parameters will be extracted from it, the array may contains: - * - 'syntax' entry (see below) - * - 'short' entry (see below) - * - 'parts' entry (see below) - * - 'options' entry (see below) - * - 'join' entry determines how to join multiple parts of the string - * ` - if $join is a string, it's used as a joiner glue - * ` - if $join is a callable/closure, it get the list of string and should return a string - * ` - if $join is an array, the first item will be the default glue, and the second item - * ` will be used instead of the glue for the last item - * ` - if $join is true, it will be guessed from the locale ('list' translation file entry) - * ` - if $join is missing, a space will be used as glue - * - 'other' entry (see above) - * if int passed, it add modifiers: - * Possible values: - * - CarbonInterface::DIFF_ABSOLUTE no modifiers - * - CarbonInterface::DIFF_RELATIVE_TO_NOW add ago/from now modifier - * - CarbonInterface::DIFF_RELATIVE_TO_OTHER add before/after modifier - * Default value: CarbonInterface::DIFF_ABSOLUTE - * @param bool $short displays short format of time units - * @param int $parts maximum number of parts to display (default value: 1: single unit) - * @param int $options human diff options - * - * @return string - */ - public function from($other = null, $syntax = null, $short = false, $parts = 1, $options = null) - { - return $this->diffForHumans($other, $syntax, $short, $parts, $options); - } - - /** - * @alias diffForHumans - * - * Get the difference in a human readable format in the current locale from current instance to an other - * instance given (or now if null given). - */ - public function since($other = null, $syntax = null, $short = false, $parts = 1, $options = null) - { - return $this->diffForHumans($other, $syntax, $short, $parts, $options); - } - - /** - * Get the difference in a human readable format in the current locale from an other - * instance given (or now if null given) to current instance. - * - * When comparing a value in the past to default now: - * 1 hour from now - * 5 months from now - * - * When comparing a value in the future to default now: - * 1 hour ago - * 5 months ago - * - * When comparing a value in the past to another value: - * 1 hour after - * 5 months after - * - * When comparing a value in the future to another value: - * 1 hour before - * 5 months before - * - * @param Carbon|\DateTimeInterface|string|array|null $other if array passed, will be used as parameters array, see $syntax below; - * if null passed, now will be used as comparison reference; - * if any other type, it will be converted to date and used as reference. - * @param int|array $syntax if array passed, parameters will be extracted from it, the array may contains: - * - 'syntax' entry (see below) - * - 'short' entry (see below) - * - 'parts' entry (see below) - * - 'options' entry (see below) - * - 'join' entry determines how to join multiple parts of the string - * ` - if $join is a string, it's used as a joiner glue - * ` - if $join is a callable/closure, it get the list of string and should return a string - * ` - if $join is an array, the first item will be the default glue, and the second item - * ` will be used instead of the glue for the last item - * ` - if $join is true, it will be guessed from the locale ('list' translation file entry) - * ` - if $join is missing, a space will be used as glue - * - 'other' entry (see above) - * if int passed, it add modifiers: - * Possible values: - * - CarbonInterface::DIFF_ABSOLUTE no modifiers - * - CarbonInterface::DIFF_RELATIVE_TO_NOW add ago/from now modifier - * - CarbonInterface::DIFF_RELATIVE_TO_OTHER add before/after modifier - * Default value: CarbonInterface::DIFF_ABSOLUTE - * @param bool $short displays short format of time units - * @param int $parts maximum number of parts to display (default value: 1: single unit) - * @param int $options human diff options - * - * @return string - */ - public function to($other = null, $syntax = null, $short = false, $parts = 1, $options = null) - { - if (!$syntax && !$other) { - $syntax = CarbonInterface::DIFF_RELATIVE_TO_NOW; - } - - return $this->resolveCarbon($other)->diffForHumans($this, $syntax, $short, $parts, $options); - } - - /** - * @alias to - * - * Get the difference in a human readable format in the current locale from an other - * instance given (or now if null given) to current instance. - * - * @param Carbon|\DateTimeInterface|string|array|null $other if array passed, will be used as parameters array, see $syntax below; - * if null passed, now will be used as comparison reference; - * if any other type, it will be converted to date and used as reference. - * @param int|array $syntax if array passed, parameters will be extracted from it, the array may contains: - * - 'syntax' entry (see below) - * - 'short' entry (see below) - * - 'parts' entry (see below) - * - 'options' entry (see below) - * - 'join' entry determines how to join multiple parts of the string - * ` - if $join is a string, it's used as a joiner glue - * ` - if $join is a callable/closure, it get the list of string and should return a string - * ` - if $join is an array, the first item will be the default glue, and the second item - * ` will be used instead of the glue for the last item - * ` - if $join is true, it will be guessed from the locale ('list' translation file entry) - * ` - if $join is missing, a space will be used as glue - * - 'other' entry (see above) - * if int passed, it add modifiers: - * Possible values: - * - CarbonInterface::DIFF_ABSOLUTE no modifiers - * - CarbonInterface::DIFF_RELATIVE_TO_NOW add ago/from now modifier - * - CarbonInterface::DIFF_RELATIVE_TO_OTHER add before/after modifier - * Default value: CarbonInterface::DIFF_ABSOLUTE - * @param bool $short displays short format of time units - * @param int $parts maximum number of parts to display (default value: 1: single unit) - * @param int $options human diff options - * - * @return string - */ - public function until($other = null, $syntax = null, $short = false, $parts = 1, $options = null) - { - return $this->to($other, $syntax, $short, $parts, $options); - } - - /** - * Get the difference in a human readable format in the current locale from current - * instance to now. - * - * @param int|array $syntax if array passed, parameters will be extracted from it, the array may contains: - * - 'syntax' entry (see below) - * - 'short' entry (see below) - * - 'parts' entry (see below) - * - 'options' entry (see below) - * - 'join' entry determines how to join multiple parts of the string - * ` - if $join is a string, it's used as a joiner glue - * ` - if $join is a callable/closure, it get the list of string and should return a string - * ` - if $join is an array, the first item will be the default glue, and the second item - * ` will be used instead of the glue for the last item - * ` - if $join is true, it will be guessed from the locale ('list' translation file entry) - * ` - if $join is missing, a space will be used as glue - * if int passed, it add modifiers: - * Possible values: - * - CarbonInterface::DIFF_ABSOLUTE no modifiers - * - CarbonInterface::DIFF_RELATIVE_TO_NOW add ago/from now modifier - * - CarbonInterface::DIFF_RELATIVE_TO_OTHER add before/after modifier - * Default value: CarbonInterface::DIFF_ABSOLUTE - * @param bool $short displays short format of time units - * @param int $parts maximum number of parts to display (default value: 1: single unit) - * @param int $options human diff options - * - * @return string - */ - public function fromNow($syntax = null, $short = false, $parts = 1, $options = null) - { - $other = null; - - if ($syntax instanceof DateTimeInterface) { - [$other, $syntax, $short, $parts, $options] = array_pad(\func_get_args(), 5, null); - } - - return $this->from($other, $syntax, $short, $parts, $options); - } - - /** - * Get the difference in a human readable format in the current locale from an other - * instance given to now - * - * @param int|array $syntax if array passed, parameters will be extracted from it, the array may contains: - * - 'syntax' entry (see below) - * - 'short' entry (see below) - * - 'parts' entry (see below) - * - 'options' entry (see below) - * - 'join' entry determines how to join multiple parts of the string - * ` - if $join is a string, it's used as a joiner glue - * ` - if $join is a callable/closure, it get the list of string and should return a string - * ` - if $join is an array, the first item will be the default glue, and the second item - * ` will be used instead of the glue for the last item - * ` - if $join is true, it will be guessed from the locale ('list' translation file entry) - * ` - if $join is missing, a space will be used as glue - * if int passed, it add modifiers: - * Possible values: - * - CarbonInterface::DIFF_ABSOLUTE no modifiers - * - CarbonInterface::DIFF_RELATIVE_TO_NOW add ago/from now modifier - * - CarbonInterface::DIFF_RELATIVE_TO_OTHER add before/after modifier - * Default value: CarbonInterface::DIFF_ABSOLUTE - * @param bool $short displays short format of time units - * @param int $parts maximum number of parts to display (default value: 1: single part) - * @param int $options human diff options - * - * @return string - */ - public function toNow($syntax = null, $short = false, $parts = 1, $options = null) - { - return $this->to(null, $syntax, $short, $parts, $options); - } - - /** - * Get the difference in a human readable format in the current locale from an other - * instance given to now - * - * @param int|array $syntax if array passed, parameters will be extracted from it, the array may contains: - * - 'syntax' entry (see below) - * - 'short' entry (see below) - * - 'parts' entry (see below) - * - 'options' entry (see below) - * - 'join' entry determines how to join multiple parts of the string - * ` - if $join is a string, it's used as a joiner glue - * ` - if $join is a callable/closure, it get the list of string and should return a string - * ` - if $join is an array, the first item will be the default glue, and the second item - * ` will be used instead of the glue for the last item - * ` - if $join is true, it will be guessed from the locale ('list' translation file entry) - * ` - if $join is missing, a space will be used as glue - * if int passed, it add modifiers: - * Possible values: - * - CarbonInterface::DIFF_ABSOLUTE no modifiers - * - CarbonInterface::DIFF_RELATIVE_TO_NOW add ago/from now modifier - * - CarbonInterface::DIFF_RELATIVE_TO_OTHER add before/after modifier - * Default value: CarbonInterface::DIFF_ABSOLUTE - * @param bool $short displays short format of time units - * @param int $parts maximum number of parts to display (default value: 1: single part) - * @param int $options human diff options - * - * @return string - */ - public function ago($syntax = null, $short = false, $parts = 1, $options = null) - { - $other = null; - - if ($syntax instanceof DateTimeInterface) { - [$other, $syntax, $short, $parts, $options] = array_pad(\func_get_args(), 5, null); - } - - return $this->from($other, $syntax, $short, $parts, $options); - } - - /** - * Get the difference in a human-readable format in the current locale from current instance to another - * instance given (or now if null given). - * - * @return string - */ - public function timespan($other = null, $timezone = null): string - { - if (\is_string($other)) { - $other = $this->transmitFactory(static fn () => static::parse($other, $timezone)); - } - - return $this->diffForHumans($other, [ - 'join' => ', ', - 'syntax' => CarbonInterface::DIFF_ABSOLUTE, - 'parts' => INF, - ]); - } - - /** - * Returns either day of week + time (e.g. "Last Friday at 3:30 PM") if reference time is within 7 days, - * or a calendar date (e.g. "10/29/2017") otherwise. - * - * Language, date and time formats will change according to the current locale. - * - * @param Carbon|\DateTimeInterface|string|null $referenceTime - * @param array $formats - * - * @return string - */ - public function calendar($referenceTime = null, array $formats = []) - { - /** @var CarbonInterface $current */ - $current = $this->avoidMutation()->startOfDay(); - /** @var CarbonInterface $other */ - $other = $this->resolveCarbon($referenceTime)->avoidMutation()->setTimezone($this->getTimezone())->startOfDay(); - $diff = $other->diffInDays($current, false); - $format = $diff <= -static::DAYS_PER_WEEK ? 'sameElse' : ( - $diff < -1 ? 'lastWeek' : ( - $diff < 0 ? 'lastDay' : ( - $diff < 1 ? 'sameDay' : ( - $diff < 2 ? 'nextDay' : ( - $diff < static::DAYS_PER_WEEK ? 'nextWeek' : 'sameElse' - ) - ) - ) - ) - ); - $format = array_merge($this->getCalendarFormats(), $formats)[$format]; - if ($format instanceof Closure) { - $format = $format($current, $other) ?? ''; - } - - return $this->isoFormat((string) $format); - } - - private function getIntervalDayDiff(DateInterval $interval): int - { - return (int) $interval->format('%r%a'); - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Traits/IntervalRounding.php b/vendor/nesbot/carbon/src/Carbon/Traits/IntervalRounding.php deleted file mode 100644 index e27c7ba..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Traits/IntervalRounding.php +++ /dev/null @@ -1,59 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Traits; - -use Carbon\CarbonInterval; -use Carbon\Exceptions\InvalidIntervalException; -use DateInterval; - -/** - * Trait to call rounding methods to interval or the interval of a period. - */ -trait IntervalRounding -{ - protected function callRoundMethod(string $method, array $parameters): ?static - { - $action = substr($method, 0, 4); - - if ($action !== 'ceil') { - $action = substr($method, 0, 5); - } - - if (\in_array($action, ['round', 'floor', 'ceil'])) { - return $this->{$action.'Unit'}(substr($method, \strlen($action)), ...$parameters); - } - - return null; - } - - protected function roundWith(DateInterval|string|float|int $precision, callable|string $function): ?static - { - $unit = 'second'; - - if ($precision instanceof DateInterval) { - $precision = CarbonInterval::instance($precision)->forHumans(['locale' => 'en']); - } - - if (\is_string($precision) && preg_match('/^\s*(?\d+)?\s*(?\w+)(?\W.*)?$/', $precision, $match)) { - if (trim($match['other'] ?? '') !== '') { - throw new InvalidIntervalException('Rounding is only possible with single unit intervals.'); - } - - $precision = (int) ($match['precision'] ?: 1); - $unit = $match['unit']; - } - - return $this->roundUnit($unit, $precision, $function); - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Traits/IntervalStep.php b/vendor/nesbot/carbon/src/Carbon/Traits/IntervalStep.php deleted file mode 100644 index 2eaf984..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Traits/IntervalStep.php +++ /dev/null @@ -1,94 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Traits; - -use Carbon\Callback; -use Carbon\Carbon; -use Carbon\CarbonImmutable; -use Carbon\CarbonInterface; -use Closure; -use DateTimeImmutable; -use DateTimeInterface; - -trait IntervalStep -{ - /** - * Step to apply instead of a fixed interval to get the new date. - * - * @var Closure|null - */ - protected $step; - - /** - * Get the dynamic step in use. - * - * @return Closure - */ - public function getStep(): ?Closure - { - return $this->step; - } - - /** - * Set a step to apply instead of a fixed interval to get the new date. - * - * Or pass null to switch to fixed interval. - * - * @param Closure|null $step - */ - public function setStep(?Closure $step): void - { - $this->step = $step; - } - - /** - * Take a date and apply either the step if set, or the current interval else. - * - * The interval/step is applied negatively (typically subtraction instead of addition) if $negated is true. - * - * @param DateTimeInterface $dateTime - * @param bool $negated - * - * @return CarbonInterface - */ - public function convertDate(DateTimeInterface $dateTime, bool $negated = false): CarbonInterface - { - /** @var CarbonInterface $carbonDate */ - $carbonDate = $dateTime instanceof CarbonInterface ? $dateTime : $this->resolveCarbon($dateTime); - - if ($this->step) { - $carbonDate = Callback::parameter($this->step, $carbonDate->avoidMutation()); - - return $carbonDate->modify(($this->step)($carbonDate, $negated)->format('Y-m-d H:i:s.u e O')); - } - - if ($negated) { - return $carbonDate->rawSub($this); - } - - return $carbonDate->rawAdd($this); - } - - /** - * Convert DateTimeImmutable instance to CarbonImmutable instance and DateTime instance to Carbon instance. - */ - private function resolveCarbon(DateTimeInterface $dateTime): Carbon|CarbonImmutable - { - if ($dateTime instanceof DateTimeImmutable) { - return CarbonImmutable::instance($dateTime); - } - - return Carbon::instance($dateTime); - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Traits/LocalFactory.php b/vendor/nesbot/carbon/src/Carbon/Traits/LocalFactory.php deleted file mode 100644 index a039854..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Traits/LocalFactory.php +++ /dev/null @@ -1,67 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Traits; - -use Carbon\Factory; -use Carbon\FactoryImmutable; -use Carbon\WrapperClock; -use Closure; - -/** - * Remember the factory that was the current at the creation of the object. - */ -trait LocalFactory -{ - /** - * The clock that generated the current instance (or FactoryImmutable::getDefaultInstance() if none) - */ - private ?WrapperClock $clock = null; - - public function getClock(): ?WrapperClock - { - return $this->clock; - } - - private function initLocalFactory(): void - { - $this->clock = FactoryImmutable::getCurrentClock(); - } - - /** - * Trigger the given action using the local factory of the object, so it will be transmitted - * to any object also using this trait and calling initLocalFactory() in its constructor. - * - * @template T - * - * @param Closure(): T $action - * - * @return T - */ - private function transmitFactory(Closure $action): mixed - { - $previousClock = FactoryImmutable::getCurrentClock(); - FactoryImmutable::setCurrentClock($this->clock); - - try { - return $action(); - } finally { - FactoryImmutable::setCurrentClock($previousClock); - } - } - - private function getFactory(): Factory - { - return $this->getClock()?->getFactory() ?? FactoryImmutable::getDefaultInstance(); - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Traits/Localization.php b/vendor/nesbot/carbon/src/Carbon/Traits/Localization.php deleted file mode 100644 index 611ae5c..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Traits/Localization.php +++ /dev/null @@ -1,728 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Traits; - -use Carbon\CarbonInterface; -use Carbon\Exceptions\InvalidTypeException; -use Carbon\Exceptions\NotLocaleAwareException; -use Carbon\Language; -use Carbon\Translator; -use Carbon\TranslatorStrongTypeInterface; -use Closure; -use Symfony\Component\Translation\TranslatorBagInterface; -use Symfony\Contracts\Translation\LocaleAwareInterface; -use Symfony\Contracts\Translation\TranslatorInterface; - -/** - * Trait Localization. - * - * Embed default and locale translators and translation base methods. - */ -trait Localization -{ - use StaticLocalization; - - /** - * Specific translator of the current instance. - */ - protected ?TranslatorInterface $localTranslator = null; - - /** - * Return true if the current instance has its own translator. - */ - public function hasLocalTranslator(): bool - { - return isset($this->localTranslator); - } - - /** - * Get the translator of the current instance or the default if none set. - */ - public function getLocalTranslator(): TranslatorInterface - { - return $this->localTranslator ?? $this->transmitFactory(static fn () => static::getTranslator()); - } - - /** - * Set the translator for the current instance. - */ - public function setLocalTranslator(TranslatorInterface $translator): self - { - $this->localTranslator = $translator; - - return $this; - } - - /** - * Returns raw translation message for a given key. - * - * @param TranslatorInterface|null $translator the translator to use - * @param string $key key to find - * @param string|null $locale current locale used if null - * @param string|null $default default value if translation returns the key - * - * @return string|Closure|null - */ - public static function getTranslationMessageWith($translator, string $key, ?string $locale = null, ?string $default = null) - { - if (!($translator instanceof TranslatorBagInterface && $translator instanceof TranslatorInterface)) { - throw new InvalidTypeException( - 'Translator does not implement '.TranslatorInterface::class.' and '.TranslatorBagInterface::class.'. '. - (\is_object($translator) ? \get_class($translator) : \gettype($translator)).' has been given.', - ); - } - - if (!$locale && $translator instanceof LocaleAwareInterface) { - $locale = $translator->getLocale(); - } - - $result = self::getFromCatalogue($translator, $translator->getCatalogue($locale), $key); - - return $result === $key ? $default : $result; - } - - /** - * Returns raw translation message for a given key. - * - * @param string $key key to find - * @param string|null $locale current locale used if null - * @param string|null $default default value if translation returns the key - * @param TranslatorInterface $translator an optional translator to use - * - * @return string - */ - public function getTranslationMessage(string $key, ?string $locale = null, ?string $default = null, $translator = null) - { - return static::getTranslationMessageWith($translator ?? $this->getLocalTranslator(), $key, $locale, $default); - } - - /** - * Translate using translation string or callback available. - * - * @param TranslatorInterface $translator an optional translator to use - * @param string $key key to find - * @param array $parameters replacement parameters - * @param int|float|null $number number if plural - * - * @return string - */ - public static function translateWith(TranslatorInterface $translator, string $key, array $parameters = [], $number = null): string - { - $message = static::getTranslationMessageWith($translator, $key, null, $key); - if ($message instanceof Closure) { - return (string) $message(...array_values($parameters)); - } - - if ($number !== null) { - $parameters['%count%'] = $number; - } - if (isset($parameters['%count%'])) { - $parameters[':count'] = $parameters['%count%']; - } - - return (string) $translator->trans($key, $parameters); - } - - /** - * Translate using translation string or callback available. - * - * @param string $key key to find - * @param array $parameters replacement parameters - * @param string|int|float|null $number number if plural - * @param TranslatorInterface|null $translator an optional translator to use - * @param bool $altNumbers pass true to use alternative numbers - * - * @return string - */ - public function translate( - string $key, - array $parameters = [], - string|int|float|null $number = null, - ?TranslatorInterface $translator = null, - bool $altNumbers = false, - ): string { - $translation = static::translateWith($translator ?? $this->getLocalTranslator(), $key, $parameters, $number); - - if ($number !== null && $altNumbers) { - return str_replace((string) $number, $this->translateNumber((int) $number), $translation); - } - - return $translation; - } - - /** - * Returns the alternative number for a given integer if available in the current locale. - * - * @param int $number - * - * @return string - */ - public function translateNumber(int $number): string - { - $translateKey = "alt_numbers.$number"; - $symbol = $this->translate($translateKey); - - if ($symbol !== $translateKey) { - return $symbol; - } - - if ($number > 99 && $this->translate('alt_numbers.99') !== 'alt_numbers.99') { - $start = ''; - foreach ([10000, 1000, 100] as $exp) { - $key = "alt_numbers_pow.$exp"; - if ($number >= $exp && $number < $exp * 10 && ($pow = $this->translate($key)) !== $key) { - $unit = floor($number / $exp); - $number -= $unit * $exp; - $start .= ($unit > 1 ? $this->translate("alt_numbers.$unit") : '').$pow; - } - } - $result = ''; - while ($number) { - $chunk = $number % 100; - $result = $this->translate("alt_numbers.$chunk").$result; - $number = floor($number / 100); - } - - return "$start$result"; - } - - if ($number > 9 && $this->translate('alt_numbers.9') !== 'alt_numbers.9') { - $result = ''; - while ($number) { - $chunk = $number % 10; - $result = $this->translate("alt_numbers.$chunk").$result; - $number = floor($number / 10); - } - - return $result; - } - - return (string) $number; - } - - /** - * Translate a time string from a locale to an other. - * - * @param string $timeString date/time/duration string to translate (may also contain English) - * @param string|null $from input locale of the $timeString parameter (`Carbon::getLocale()` by default) - * @param string|null $to output locale of the result returned (`"en"` by default) - * @param int $mode specify what to translate with options: - * - CarbonInterface::TRANSLATE_ALL (default) - * - CarbonInterface::TRANSLATE_MONTHS - * - CarbonInterface::TRANSLATE_DAYS - * - CarbonInterface::TRANSLATE_UNITS - * - CarbonInterface::TRANSLATE_MERIDIEM - * You can use pipe to group: CarbonInterface::TRANSLATE_MONTHS | CarbonInterface::TRANSLATE_DAYS - * - * @return string - */ - public static function translateTimeString( - string $timeString, - ?string $from = null, - ?string $to = null, - int $mode = CarbonInterface::TRANSLATE_ALL, - ): string { - // Fallback source and destination locales - $from = $from ?: static::getLocale(); - $to = $to ?: CarbonInterface::DEFAULT_LOCALE; - - if ($from === $to) { - return $timeString; - } - - // Standardize apostrophe - $timeString = strtr($timeString, ['’' => "'"]); - - $fromTranslations = []; - $toTranslations = []; - - foreach (['from', 'to'] as $key) { - $language = $$key; - $translator = Translator::get($language); - $translations = $translator->getMessages(); - - if (!isset($translations[$language])) { - return $timeString; - } - - $translationKey = $key.'Translations'; - $messages = $translations[$language]; - $months = $messages['months'] ?? []; - $weekdays = $messages['weekdays'] ?? []; - $meridiem = $messages['meridiem'] ?? ['AM', 'PM']; - - if (isset($messages['ordinal_words'])) { - $timeString = self::replaceOrdinalWords( - $timeString, - $key === 'from' ? array_flip($messages['ordinal_words']) : $messages['ordinal_words'] - ); - } - - if ($key === 'from') { - foreach (['months', 'weekdays'] as $variable) { - $list = $messages[$variable.'_standalone'] ?? null; - - if ($list) { - foreach ($$variable as $index => &$name) { - $name .= '|'.$messages[$variable.'_standalone'][$index]; - } - } - } - } - - $$translationKey = array_merge( - $mode & CarbonInterface::TRANSLATE_MONTHS ? static::getTranslationArray($months, static::MONTHS_PER_YEAR, $timeString) : [], - $mode & CarbonInterface::TRANSLATE_MONTHS ? static::getTranslationArray($messages['months_short'] ?? [], static::MONTHS_PER_YEAR, $timeString) : [], - $mode & CarbonInterface::TRANSLATE_DAYS ? static::getTranslationArray($weekdays, static::DAYS_PER_WEEK, $timeString) : [], - $mode & CarbonInterface::TRANSLATE_DAYS ? static::getTranslationArray($messages['weekdays_short'] ?? [], static::DAYS_PER_WEEK, $timeString) : [], - $mode & CarbonInterface::TRANSLATE_DIFF ? static::translateWordsByKeys([ - 'diff_now', - 'diff_today', - 'diff_yesterday', - 'diff_tomorrow', - 'diff_before_yesterday', - 'diff_after_tomorrow', - ], $messages, $key) : [], - $mode & CarbonInterface::TRANSLATE_UNITS ? static::translateWordsByKeys([ - 'year', - 'month', - 'week', - 'day', - 'hour', - 'minute', - 'second', - ], $messages, $key) : [], - $mode & CarbonInterface::TRANSLATE_MERIDIEM ? array_map(function ($hour) use ($meridiem) { - if (\is_array($meridiem)) { - return $meridiem[$hour < static::HOURS_PER_DAY / 2 ? 0 : 1]; - } - - return $meridiem($hour, 0, false); - }, range(0, 23)) : [], - ); - } - - return substr(preg_replace_callback('/(?<=[\d\s+.\/,_-])('.implode('|', $fromTranslations).')(?=[\d\s+.\/,_-])/iu', function ($match) use ($fromTranslations, $toTranslations) { - [$chunk] = $match; - - foreach ($fromTranslations as $index => $word) { - if (preg_match("/^$word\$/iu", $chunk)) { - return $toTranslations[$index] ?? ''; - } - } - - return $chunk; // @codeCoverageIgnore - }, " $timeString "), 1, -1); - } - - /** - * Translate a time string from the current locale (`$date->locale()`) to an other. - * - * @param string $timeString time string to translate - * @param string|null $to output locale of the result returned ("en" by default) - * - * @return string - */ - public function translateTimeStringTo(string $timeString, ?string $to = null): string - { - return static::translateTimeString($timeString, $this->getTranslatorLocale(), $to); - } - - /** - * Get/set the locale for the current instance. - * - * @param string|null $locale - * @param string ...$fallbackLocales - * - * @return $this|string - */ - public function locale(?string $locale = null, string ...$fallbackLocales): static|string - { - if ($locale === null) { - return $this->getTranslatorLocale(); - } - - if (!$this->localTranslator || $this->getTranslatorLocale($this->localTranslator) !== $locale) { - $translator = Translator::get($locale); - - if (!empty($fallbackLocales)) { - $translator->setFallbackLocales($fallbackLocales); - - foreach ($fallbackLocales as $fallbackLocale) { - $messages = Translator::get($fallbackLocale)->getMessages(); - - if (isset($messages[$fallbackLocale])) { - $translator->setMessages($fallbackLocale, $messages[$fallbackLocale]); - } - } - } - - $this->localTranslator = $translator; - } - - return $this; - } - - /** - * Get the current translator locale. - * - * @return string - */ - public static function getLocale(): string - { - return static::getLocaleAwareTranslator()->getLocale(); - } - - /** - * Set the current translator locale and indicate if the source locale file exists. - * Pass 'auto' as locale to use the closest language to the current LC_TIME locale. - * - * @param string $locale locale ex. en - */ - public static function setLocale(string $locale): void - { - static::getLocaleAwareTranslator()->setLocale($locale); - } - - /** - * Set the fallback locale. - * - * @see https://symfony.com/doc/current/components/translation.html#fallback-locales - * - * @param string $locale - */ - public static function setFallbackLocale(string $locale): void - { - $translator = static::getTranslator(); - - if (method_exists($translator, 'setFallbackLocales')) { - $translator->setFallbackLocales([$locale]); - - if ($translator instanceof Translator) { - $preferredLocale = $translator->getLocale(); - $translator->setMessages($preferredLocale, array_replace_recursive( - $translator->getMessages()[$locale] ?? [], - Translator::get($locale)->getMessages()[$locale] ?? [], - $translator->getMessages($preferredLocale), - )); - } - } - } - - /** - * Get the fallback locale. - * - * @see https://symfony.com/doc/current/components/translation.html#fallback-locales - */ - public static function getFallbackLocale(): ?string - { - $translator = static::getTranslator(); - - if (method_exists($translator, 'getFallbackLocales')) { - return $translator->getFallbackLocales()[0] ?? null; - } - - return null; - } - - /** - * Set the current locale to the given, execute the passed function, reset the locale to previous one, - * then return the result of the closure (or null if the closure was void). - * - * @param string $locale locale ex. en - * @param callable $func - * - * @return mixed - */ - public static function executeWithLocale(string $locale, callable $func): mixed - { - $currentLocale = static::getLocale(); - static::setLocale($locale); - $newLocale = static::getLocale(); - $result = $func( - $newLocale === 'en' && strtolower(substr((string) $locale, 0, 2)) !== 'en' - ? false - : $newLocale, - static::getTranslator(), - ); - static::setLocale($currentLocale); - - return $result; - } - - /** - * Returns true if the given locale is internally supported and has short-units support. - * Support is considered enabled if either year, day or hour has a short variant translated. - * - * @param string $locale locale ex. en - * - * @return bool - */ - public static function localeHasShortUnits(string $locale): bool - { - return static::executeWithLocale($locale, function ($newLocale, TranslatorInterface $translator) { - return ($newLocale && (($y = static::translateWith($translator, 'y')) !== 'y' && $y !== static::translateWith($translator, 'year'))) || ( - ($y = static::translateWith($translator, 'd')) !== 'd' && - $y !== static::translateWith($translator, 'day') - ) || ( - ($y = static::translateWith($translator, 'h')) !== 'h' && - $y !== static::translateWith($translator, 'hour') - ); - }); - } - - /** - * Returns true if the given locale is internally supported and has diff syntax support (ago, from now, before, after). - * Support is considered enabled if the 4 sentences are translated in the given locale. - * - * @param string $locale locale ex. en - * - * @return bool - */ - public static function localeHasDiffSyntax(string $locale): bool - { - return static::executeWithLocale($locale, function ($newLocale, TranslatorInterface $translator) { - if (!$newLocale) { - return false; - } - - foreach (['ago', 'from_now', 'before', 'after'] as $key) { - if ($translator instanceof TranslatorBagInterface && - self::getFromCatalogue($translator, $translator->getCatalogue($newLocale), $key) instanceof Closure - ) { - continue; - } - - if ($translator->trans($key) === $key) { - return false; - } - } - - return true; - }); - } - - /** - * Returns true if the given locale is internally supported and has words for 1-day diff (just now, yesterday, tomorrow). - * Support is considered enabled if the 3 words are translated in the given locale. - * - * @param string $locale locale ex. en - * - * @return bool - */ - public static function localeHasDiffOneDayWords(string $locale): bool - { - return static::executeWithLocale($locale, function ($newLocale, TranslatorInterface $translator) { - return $newLocale && - $translator->trans('diff_now') !== 'diff_now' && - $translator->trans('diff_yesterday') !== 'diff_yesterday' && - $translator->trans('diff_tomorrow') !== 'diff_tomorrow'; - }); - } - - /** - * Returns true if the given locale is internally supported and has words for 2-days diff (before yesterday, after tomorrow). - * Support is considered enabled if the 2 words are translated in the given locale. - * - * @param string $locale locale ex. en - * - * @return bool - */ - public static function localeHasDiffTwoDayWords(string $locale): bool - { - return static::executeWithLocale($locale, function ($newLocale, TranslatorInterface $translator) { - return $newLocale && - $translator->trans('diff_before_yesterday') !== 'diff_before_yesterday' && - $translator->trans('diff_after_tomorrow') !== 'diff_after_tomorrow'; - }); - } - - /** - * Returns true if the given locale is internally supported and has period syntax support (X times, every X, from X, to X). - * Support is considered enabled if the 4 sentences are translated in the given locale. - * - * @param string $locale locale ex. en - * - * @return bool - */ - public static function localeHasPeriodSyntax($locale) - { - return static::executeWithLocale($locale, function ($newLocale, TranslatorInterface $translator) { - return $newLocale && - $translator->trans('period_recurrences') !== 'period_recurrences' && - $translator->trans('period_interval') !== 'period_interval' && - $translator->trans('period_start_date') !== 'period_start_date' && - $translator->trans('period_end_date') !== 'period_end_date'; - }); - } - - /** - * Returns the list of internally available locales and already loaded custom locales. - * (It will ignore custom translator dynamic loading.) - * - * @return array - */ - public static function getAvailableLocales() - { - $translator = static::getLocaleAwareTranslator(); - - return $translator instanceof Translator - ? $translator->getAvailableLocales() - : [$translator->getLocale()]; - } - - /** - * Returns list of Language object for each available locale. This object allow you to get the ISO name, native - * name, region and variant of the locale. - * - * @return Language[] - */ - public static function getAvailableLocalesInfo() - { - $languages = []; - foreach (static::getAvailableLocales() as $id) { - $languages[$id] = new Language($id); - } - - return $languages; - } - - /** - * Get the locale of a given translator. - * - * If null or omitted, current local translator is used. - * If no local translator is in use, current global translator is used. - */ - protected function getTranslatorLocale($translator = null): ?string - { - if (\func_num_args() === 0) { - $translator = $this->getLocalTranslator(); - } - - $translator = static::getLocaleAwareTranslator($translator); - - return $translator?->getLocale(); - } - - /** - * Throw an error if passed object is not LocaleAwareInterface. - * - * @param LocaleAwareInterface|null $translator - * - * @return LocaleAwareInterface|null - */ - protected static function getLocaleAwareTranslator($translator = null) - { - if (\func_num_args() === 0) { - $translator = static::getTranslator(); - } - - if ($translator && !($translator instanceof LocaleAwareInterface || method_exists($translator, 'getLocale'))) { - throw new NotLocaleAwareException($translator); // @codeCoverageIgnore - } - - return $translator; - } - - /** - * @param mixed $translator - * @param \Symfony\Component\Translation\MessageCatalogueInterface $catalogue - * - * @return mixed - */ - private static function getFromCatalogue($translator, $catalogue, string $id, string $domain = 'messages') - { - return $translator instanceof TranslatorStrongTypeInterface - ? $translator->getFromCatalogue($catalogue, $id, $domain) - : $catalogue->get($id, $domain); // @codeCoverageIgnore - } - - /** - * Return the word cleaned from its translation codes. - * - * @param string $word - * - * @return string - */ - private static function cleanWordFromTranslationString($word) - { - $word = str_replace([':count', '%count', ':time'], '', $word); - $word = strtr($word, ['’' => "'"]); - $word = preg_replace('/({\d+(,(\d+|Inf))?}|[\[\]]\d+(,(\d+|Inf))?[\[\]])/', '', $word); - - return trim($word); - } - - /** - * Translate a list of words. - * - * @param string[] $keys keys to translate. - * @param string[] $messages messages bag handling translations. - * @param string $key 'to' (to get the translation) or 'from' (to get the detection RegExp pattern). - * - * @return string[] - */ - private static function translateWordsByKeys($keys, $messages, $key): array - { - return array_map(function ($wordKey) use ($messages, $key) { - $message = $key === 'from' && isset($messages[$wordKey.'_regexp']) - ? $messages[$wordKey.'_regexp'] - : ($messages[$wordKey] ?? null); - - if (!$message) { - return '>>DO NOT REPLACE<<'; - } - - $parts = explode('|', $message); - - return $key === 'to' - ? self::cleanWordFromTranslationString(end($parts)) - : '(?:'.implode('|', array_map([static::class, 'cleanWordFromTranslationString'], $parts)).')'; - }, $keys); - } - - /** - * Get an array of translations based on the current date. - * - * @param callable $translation - * @param int $length - * @param string $timeString - * - * @return string[] - */ - private static function getTranslationArray($translation, $length, $timeString): array - { - $filler = '>>DO NOT REPLACE<<'; - - if (\is_array($translation)) { - return array_pad($translation, $length, $filler); - } - - $list = []; - $date = static::now(); - - for ($i = 0; $i < $length; $i++) { - $list[] = $translation($date, $timeString, $i) ?? $filler; - } - - return $list; - } - - private static function replaceOrdinalWords(string $timeString, array $ordinalWords): string - { - return preg_replace_callback('/(? - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Traits; - -use Carbon\FactoryImmutable; - -/** - * Trait Macros. - * - * Allows users to register macros within the Carbon class. - */ -trait Macro -{ - use Mixin; - - /** - * Register a custom macro. - * - * Pass null macro to remove it. - * - * @example - * ``` - * $userSettings = [ - * 'locale' => 'pt', - * 'timezone' => 'America/Sao_Paulo', - * ]; - * Carbon::macro('userFormat', function () use ($userSettings) { - * return $this->copy()->locale($userSettings['locale'])->tz($userSettings['timezone'])->calendar(); - * }); - * echo Carbon::yesterday()->hours(11)->userFormat(); - * ``` - */ - public static function macro(string $name, ?callable $macro): void - { - FactoryImmutable::getDefaultInstance()->macro($name, $macro); - } - - /** - * Remove all macros and generic macros. - */ - public static function resetMacros(): void - { - FactoryImmutable::getDefaultInstance()->resetMacros(); - } - - /** - * Register a custom macro. - * - * @param callable $macro - * @param int $priority marco with higher priority is tried first - * - * @return void - */ - public static function genericMacro(callable $macro, int $priority = 0): void - { - FactoryImmutable::getDefaultInstance()->genericMacro($macro, $priority); - } - - /** - * Checks if macro is registered globally. - * - * @param string $name - * - * @return bool - */ - public static function hasMacro(string $name): bool - { - return FactoryImmutable::getInstance()->hasMacro($name); - } - - /** - * Get the raw callable macro registered globally for a given name. - */ - public static function getMacro(string $name): ?callable - { - return FactoryImmutable::getInstance()->getMacro($name); - } - - /** - * Checks if macro is registered globally or locally. - */ - public function hasLocalMacro(string $name): bool - { - return ($this->localMacros && isset($this->localMacros[$name])) || $this->transmitFactory( - static fn () => static::hasMacro($name), - ); - } - - /** - * Get the raw callable macro registered globally or locally for a given name. - */ - public function getLocalMacro(string $name): ?callable - { - return ($this->localMacros ?? [])[$name] ?? $this->transmitFactory( - static fn () => static::getMacro($name), - ); - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Traits/MagicParameter.php b/vendor/nesbot/carbon/src/Carbon/Traits/MagicParameter.php deleted file mode 100644 index d6595f1..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Traits/MagicParameter.php +++ /dev/null @@ -1,35 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Traits; - -/** - * Trait MagicParameter. - * - * Allows to retrieve parameter in magic calls by index or name. - */ -trait MagicParameter -{ - private function getMagicParameter(array $parameters, int $index, string $key, $default) - { - if (\array_key_exists($index, $parameters)) { - return $parameters[$index]; - } - - if (\array_key_exists($key, $parameters)) { - return $parameters[$key]; - } - - return $default; - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Traits/Mixin.php b/vendor/nesbot/carbon/src/Carbon/Traits/Mixin.php deleted file mode 100644 index 3aedfa2..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Traits/Mixin.php +++ /dev/null @@ -1,208 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Traits; - -use Carbon\CarbonInterface; -use Carbon\CarbonInterval; -use Carbon\CarbonPeriod; -use Closure; -use Generator; -use ReflectionClass; -use ReflectionException; -use ReflectionMethod; -use Throwable; - -/** - * Trait Mixin. - * - * Allows mixing in entire classes with multiple macros. - */ -trait Mixin -{ - /** - * Stack of macro instance contexts. - */ - protected static array $macroContextStack = []; - - /** - * Mix another object into the class. - * - * @example - * ``` - * Carbon::mixin(new class { - * public function addMoon() { - * return function () { - * return $this->addDays(30); - * }; - * } - * public function subMoon() { - * return function () { - * return $this->subDays(30); - * }; - * } - * }); - * $fullMoon = Carbon::create('2018-12-22'); - * $nextFullMoon = $fullMoon->addMoon(); - * $blackMoon = Carbon::create('2019-01-06'); - * $previousBlackMoon = $blackMoon->subMoon(); - * echo "$nextFullMoon\n"; - * echo "$previousBlackMoon\n"; - * ``` - * - * @throws ReflectionException - */ - public static function mixin(object|string $mixin): void - { - \is_string($mixin) && trait_exists($mixin) - ? self::loadMixinTrait($mixin) - : self::loadMixinClass($mixin); - } - - /** - * @throws ReflectionException - */ - private static function loadMixinClass(object|string $mixin): void - { - $methods = (new ReflectionClass($mixin))->getMethods( - ReflectionMethod::IS_PUBLIC | ReflectionMethod::IS_PROTECTED, - ); - - foreach ($methods as $method) { - if ($method->isConstructor() || $method->isDestructor()) { - continue; - } - - $macro = $method->invoke($mixin); - - if (\is_callable($macro)) { - static::macro($method->name, $macro); - } - } - } - - private static function loadMixinTrait(string $trait): void - { - $context = eval(self::getAnonymousClassCodeForTrait($trait)); - $className = \get_class($context); - $baseClass = static::class; - - foreach (self::getMixableMethods($context) as $name) { - $closureBase = Closure::fromCallable([$context, $name]); - - static::macro($name, function (...$parameters) use ($closureBase, $className, $baseClass) { - $downContext = isset($this) ? ($this) : new $baseClass(); - $context = isset($this) ? $this->cast($className) : new $className(); - - try { - // @ is required to handle error if not converted into exceptions - $closure = @$closureBase->bindTo($context); - } catch (Throwable) { // @codeCoverageIgnore - $closure = $closureBase; // @codeCoverageIgnore - } - - // in case of errors not converted into exceptions - $closure = $closure ?: $closureBase; - - $result = $closure(...$parameters); - - if (!($result instanceof $className)) { - return $result; - } - - if ($downContext instanceof CarbonInterface && $result instanceof CarbonInterface) { - if ($context !== $result) { - $downContext = $downContext->copy(); - } - - return $downContext - ->setTimezone($result->getTimezone()) - ->modify($result->format('Y-m-d H:i:s.u')) - ->settings($result->getSettings()); - } - - if ($downContext instanceof CarbonInterval && $result instanceof CarbonInterval) { - if ($context !== $result) { - $downContext = $downContext->copy(); - } - - $downContext->copyProperties($result); - self::copyStep($downContext, $result); - self::copyNegativeUnits($downContext, $result); - - return $downContext->settings($result->getSettings()); - } - - if ($downContext instanceof CarbonPeriod && $result instanceof CarbonPeriod) { - if ($context !== $result) { - $downContext = $downContext->copy(); - } - - return $downContext - ->setDates($result->getStartDate(), $result->getEndDate()) - ->setRecurrences($result->getRecurrences()) - ->setOptions($result->getOptions()) - ->settings($result->getSettings()); - } - - return $result; - }); - } - } - - private static function getAnonymousClassCodeForTrait(string $trait): string - { - return 'return new class() extends '.static::class.' {use '.$trait.';};'; - } - - private static function getMixableMethods(self $context): Generator - { - foreach (get_class_methods($context) as $name) { - if (method_exists(static::class, $name)) { - continue; - } - - yield $name; - } - } - - /** - * Stack a Carbon context from inside calls of self::this() and execute a given action. - */ - protected static function bindMacroContext(?self $context, callable $callable): mixed - { - static::$macroContextStack[] = $context; - - try { - return $callable(); - } finally { - array_pop(static::$macroContextStack); - } - } - - /** - * Return the current context from inside a macro callee or a null if static. - */ - protected static function context(): ?static - { - return end(static::$macroContextStack) ?: null; - } - - /** - * Return the current context from inside a macro callee or a new one if static. - */ - protected static function this(): static - { - return end(static::$macroContextStack) ?: new static(); - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Traits/Modifiers.php b/vendor/nesbot/carbon/src/Carbon/Traits/Modifiers.php deleted file mode 100644 index 7fc0f9f..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Traits/Modifiers.php +++ /dev/null @@ -1,476 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Traits; - -use Carbon\CarbonInterface; -use Carbon\Exceptions\InvalidFormatException; -use ReturnTypeWillChange; - -/** - * Trait Modifiers. - * - * Returns dates relative to current date using modifier short-hand. - */ -trait Modifiers -{ - /** - * Midday/noon hour. - * - * @var int - */ - protected static $midDayAt = 12; - - /** - * get midday/noon hour - * - * @return int - */ - public static function getMidDayAt() - { - return static::$midDayAt; - } - - /** - * @deprecated To avoid conflict between different third-party libraries, static setters should not be used. - * You should rather consider mid-day is always 12pm, then if you need to test if it's an other - * hour, test it explicitly: - * $date->format('G') == 13 - * or to set explicitly to a given hour: - * $date->setTime(13, 0, 0, 0) - * - * Set midday/noon hour - * - * @param int $hour midday hour - * - * @return void - */ - public static function setMidDayAt($hour) - { - static::$midDayAt = $hour; - } - - /** - * Modify to midday, default to self::$midDayAt - * - * @return static - */ - public function midDay() - { - return $this->setTime(static::$midDayAt, 0, 0, 0); - } - - /** - * Modify to the next occurrence of a given modifier such as a day of - * the week. If no modifier is provided, modify to the next occurrence - * of the current day of the week. Use the supplied constants - * to indicate the desired dayOfWeek, ex. static::MONDAY. - * - * @param string|int|null $modifier - * - * @return static - */ - public function next($modifier = null) - { - if ($modifier === null) { - $modifier = $this->dayOfWeek; - } - - return $this->change( - 'next '.(\is_string($modifier) ? $modifier : static::$days[$modifier]), - ); - } - - /** - * Go forward or backward to the next week- or weekend-day. - * - * @param bool $weekday - * @param bool $forward - * - * @return static - */ - private function nextOrPreviousDay($weekday = true, $forward = true) - { - /** @var CarbonInterface $date */ - $date = $this; - $step = $forward ? 1 : -1; - - do { - $date = $date->addDays($step); - } while ($weekday ? $date->isWeekend() : $date->isWeekday()); - - return $date; - } - - /** - * Go forward to the next weekday. - * - * @return static - */ - public function nextWeekday() - { - return $this->nextOrPreviousDay(); - } - - /** - * Go backward to the previous weekday. - * - * @return static - */ - public function previousWeekday() - { - return $this->nextOrPreviousDay(true, false); - } - - /** - * Go forward to the next weekend day. - * - * @return static - */ - public function nextWeekendDay() - { - return $this->nextOrPreviousDay(false); - } - - /** - * Go backward to the previous weekend day. - * - * @return static - */ - public function previousWeekendDay() - { - return $this->nextOrPreviousDay(false, false); - } - - /** - * Modify to the previous occurrence of a given modifier such as a day of - * the week. If no dayOfWeek is provided, modify to the previous occurrence - * of the current day of the week. Use the supplied constants - * to indicate the desired dayOfWeek, ex. static::MONDAY. - * - * @param string|int|null $modifier - * - * @return static - */ - public function previous($modifier = null) - { - if ($modifier === null) { - $modifier = $this->dayOfWeek; - } - - return $this->change( - 'last '.(\is_string($modifier) ? $modifier : static::$days[$modifier]), - ); - } - - /** - * Modify to the first occurrence of a given day of the week - * in the current month. If no dayOfWeek is provided, modify to the - * first day of the current month. Use the supplied constants - * to indicate the desired dayOfWeek, ex. static::MONDAY. - * - * @param int|null $dayOfWeek - * - * @return static - */ - public function firstOfMonth($dayOfWeek = null) - { - $date = $this->startOfDay(); - - if ($dayOfWeek === null) { - return $date->day(1); - } - - return $date->modify('first '.static::$days[$dayOfWeek].' of '.$date->rawFormat('F').' '.$date->year); - } - - /** - * Modify to the last occurrence of a given day of the week - * in the current month. If no dayOfWeek is provided, modify to the - * last day of the current month. Use the supplied constants - * to indicate the desired dayOfWeek, ex. static::MONDAY. - * - * @param int|null $dayOfWeek - * - * @return static - */ - public function lastOfMonth($dayOfWeek = null) - { - $date = $this->startOfDay(); - - if ($dayOfWeek === null) { - return $date->day($date->daysInMonth); - } - - return $date->modify('last '.static::$days[$dayOfWeek].' of '.$date->rawFormat('F').' '.$date->year); - } - - /** - * Modify to the given occurrence of a given day of the week - * in the current month. If the calculated occurrence is outside the scope - * of the current month, then return false and no modifications are made. - * Use the supplied constants to indicate the desired dayOfWeek, ex. static::MONDAY. - * - * @param int $nth - * @param int $dayOfWeek - * - * @return mixed - */ - public function nthOfMonth($nth, $dayOfWeek) - { - $date = $this->avoidMutation()->firstOfMonth(); - $check = $date->rawFormat('Y-m'); - $date = $date->modify('+'.$nth.' '.static::$days[$dayOfWeek]); - - return $date->rawFormat('Y-m') === $check ? $this->modify((string) $date) : false; - } - - /** - * Modify to the first occurrence of a given day of the week - * in the current quarter. If no dayOfWeek is provided, modify to the - * first day of the current quarter. Use the supplied constants - * to indicate the desired dayOfWeek, ex. static::MONDAY. - * - * @param int|null $dayOfWeek day of the week default null - * - * @return static - */ - public function firstOfQuarter($dayOfWeek = null) - { - return $this->setDate($this->year, $this->quarter * static::MONTHS_PER_QUARTER - 2, 1)->firstOfMonth($dayOfWeek); - } - - /** - * Modify to the last occurrence of a given day of the week - * in the current quarter. If no dayOfWeek is provided, modify to the - * last day of the current quarter. Use the supplied constants - * to indicate the desired dayOfWeek, ex. static::MONDAY. - * - * @param int|null $dayOfWeek day of the week default null - * - * @return static - */ - public function lastOfQuarter($dayOfWeek = null) - { - return $this->setDate($this->year, $this->quarter * static::MONTHS_PER_QUARTER, 1)->lastOfMonth($dayOfWeek); - } - - /** - * Modify to the given occurrence of a given day of the week - * in the current quarter. If the calculated occurrence is outside the scope - * of the current quarter, then return false and no modifications are made. - * Use the supplied constants to indicate the desired dayOfWeek, ex. static::MONDAY. - * - * @param int $nth - * @param int $dayOfWeek - * - * @return mixed - */ - public function nthOfQuarter($nth, $dayOfWeek) - { - $date = $this->avoidMutation()->day(1)->month($this->quarter * static::MONTHS_PER_QUARTER); - $lastMonth = $date->month; - $year = $date->year; - $date = $date->firstOfQuarter()->modify('+'.$nth.' '.static::$days[$dayOfWeek]); - - return ($lastMonth < $date->month || $year !== $date->year) ? false : $this->modify((string) $date); - } - - /** - * Modify to the first occurrence of a given day of the week - * in the current year. If no dayOfWeek is provided, modify to the - * first day of the current year. Use the supplied constants - * to indicate the desired dayOfWeek, ex. static::MONDAY. - * - * @param int|null $dayOfWeek day of the week default null - * - * @return static - */ - public function firstOfYear($dayOfWeek = null) - { - return $this->month(1)->firstOfMonth($dayOfWeek); - } - - /** - * Modify to the last occurrence of a given day of the week - * in the current year. If no dayOfWeek is provided, modify to the - * last day of the current year. Use the supplied constants - * to indicate the desired dayOfWeek, ex. static::MONDAY. - * - * @param int|null $dayOfWeek day of the week default null - * - * @return static - */ - public function lastOfYear($dayOfWeek = null) - { - return $this->month(static::MONTHS_PER_YEAR)->lastOfMonth($dayOfWeek); - } - - /** - * Modify to the given occurrence of a given day of the week - * in the current year. If the calculated occurrence is outside the scope - * of the current year, then return false and no modifications are made. - * Use the supplied constants to indicate the desired dayOfWeek, ex. static::MONDAY. - * - * @param int $nth - * @param int $dayOfWeek - * - * @return mixed - */ - public function nthOfYear($nth, $dayOfWeek) - { - $date = $this->avoidMutation()->firstOfYear()->modify('+'.$nth.' '.static::$days[$dayOfWeek]); - - return $this->year === $date->year ? $this->modify((string) $date) : false; - } - - /** - * Modify the current instance to the average of a given instance (default now) and the current instance - * (second-precision). - * - * @param \Carbon\Carbon|\DateTimeInterface|null $date - * - * @return static - */ - public function average($date = null) - { - return $this->addRealMicroseconds((int) ($this->diffInMicroseconds($this->resolveCarbon($date), false) / 2)); - } - - /** - * Get the closest date from the instance (second-precision). - * - * @param \Carbon\Carbon|\DateTimeInterface|mixed $date1 - * @param \Carbon\Carbon|\DateTimeInterface|mixed $date2 - * - * @return static - */ - public function closest($date1, $date2) - { - return $this->diffInMicroseconds($date1, true) < $this->diffInMicroseconds($date2, true) ? $date1 : $date2; - } - - /** - * Get the farthest date from the instance (second-precision). - * - * @param \Carbon\Carbon|\DateTimeInterface|mixed $date1 - * @param \Carbon\Carbon|\DateTimeInterface|mixed $date2 - * - * @return static - */ - public function farthest($date1, $date2) - { - return $this->diffInMicroseconds($date1, true) > $this->diffInMicroseconds($date2, true) ? $date1 : $date2; - } - - /** - * Get the minimum instance between a given instance (default now) and the current instance. - * - * @param \Carbon\Carbon|\DateTimeInterface|mixed $date - * - * @return static - */ - public function min($date = null) - { - $date = $this->resolveCarbon($date); - - return $this->lt($date) ? $this : $date; - } - - /** - * Get the minimum instance between a given instance (default now) and the current instance. - * - * @param \Carbon\Carbon|\DateTimeInterface|mixed $date - * - * @see min() - * - * @return static - */ - public function minimum($date = null) - { - return $this->min($date); - } - - /** - * Get the maximum instance between a given instance (default now) and the current instance. - * - * @param \Carbon\Carbon|\DateTimeInterface|mixed $date - * - * @return static - */ - public function max($date = null) - { - $date = $this->resolveCarbon($date); - - return $this->gt($date) ? $this : $date; - } - - /** - * Get the maximum instance between a given instance (default now) and the current instance. - * - * @param \Carbon\Carbon|\DateTimeInterface|mixed $date - * - * @see max() - * - * @return static - */ - public function maximum($date = null) - { - return $this->max($date); - } - - /** - * Calls \DateTime::modify if mutable or \DateTimeImmutable::modify else. - * - * @see https://php.net/manual/en/datetime.modify.php - * - * @return static - */ - #[ReturnTypeWillChange] - public function modify($modify) - { - return parent::modify((string) $modify) - ?: throw new InvalidFormatException('Could not modify with: '.var_export($modify, true)); - } - - /** - * Similar to native modify() method of DateTime but can handle more grammars. - * - * @example - * ``` - * echo Carbon::now()->change('next 2pm'); - * ``` - * - * @link https://php.net/manual/en/datetime.modify.php - * - * @param string $modifier - * - * @return static - */ - public function change($modifier) - { - return $this->modify(preg_replace_callback('/^(next|previous|last)\s+(\d{1,2}(h|am|pm|:\d{1,2}(:\d{1,2})?))$/i', function ($match) { - $match[2] = str_replace('h', ':00', $match[2]); - $test = $this->avoidMutation()->modify($match[2]); - $method = $match[1] === 'next' ? 'lt' : 'gt'; - $match[1] = $test->$method($this) ? $match[1].' day' : 'today'; - - return $match[1].' '.$match[2]; - }, strtr(trim($modifier), [ - ' at ' => ' ', - 'just now' => 'now', - 'after tomorrow' => 'tomorrow +1 day', - 'before yesterday' => 'yesterday -1 day', - ]))); - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Traits/Mutability.php b/vendor/nesbot/carbon/src/Carbon/Traits/Mutability.php deleted file mode 100644 index 9f45f58..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Traits/Mutability.php +++ /dev/null @@ -1,69 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Traits; - -use Carbon\Carbon; -use Carbon\CarbonImmutable; - -/** - * Trait Mutability. - * - * Utils to know if the current object is mutable or immutable and convert it. - */ -trait Mutability -{ - use Cast; - - /** - * Returns true if the current class/instance is mutable. - */ - public static function isMutable(): bool - { - return false; - } - - /** - * Returns true if the current class/instance is immutable. - */ - public static function isImmutable(): bool - { - return !static::isMutable(); - } - - /** - * Return a mutable copy of the instance. - * - * @return Carbon - */ - public function toMutable() - { - /** @var Carbon $date */ - $date = $this->cast(Carbon::class); - - return $date; - } - - /** - * Return a immutable copy of the instance. - * - * @return CarbonImmutable - */ - public function toImmutable() - { - /** @var CarbonImmutable $date */ - $date = $this->cast(CarbonImmutable::class); - - return $date; - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Traits/ObjectInitialisation.php b/vendor/nesbot/carbon/src/Carbon/Traits/ObjectInitialisation.php deleted file mode 100644 index 463a74d..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Traits/ObjectInitialisation.php +++ /dev/null @@ -1,24 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Traits; - -trait ObjectInitialisation -{ - /** - * True when parent::__construct has been called. - * - * @var string - */ - protected $constructedObjectId; -} diff --git a/vendor/nesbot/carbon/src/Carbon/Traits/Options.php b/vendor/nesbot/carbon/src/Carbon/Traits/Options.php deleted file mode 100644 index c1022df..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Traits/Options.php +++ /dev/null @@ -1,213 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Traits; - -use Carbon\CarbonInterface; -use DateTimeInterface; -use Throwable; - -/** - * Trait Options. - * - * Embed base methods to change settings of Carbon classes. - * - * Depends on the following methods: - * - * @method static shiftTimezone($timezone) Set the timezone - */ -trait Options -{ - use StaticOptions; - use Localization; - - /** - * Indicates if months should be calculated with overflow. - * Specific setting. - */ - protected ?bool $localMonthsOverflow = null; - - /** - * Indicates if years should be calculated with overflow. - * Specific setting. - */ - protected ?bool $localYearsOverflow = null; - - /** - * Indicates if the strict mode is in use. - * Specific setting. - */ - protected ?bool $localStrictModeEnabled = null; - - /** - * Options for diffForHumans and forHumans methods. - */ - protected ?int $localHumanDiffOptions = null; - - /** - * Format to use on string cast. - * - * @var string|callable|null - */ - protected $localToStringFormat = null; - - /** - * Format to use on JSON serialization. - * - * @var string|callable|null - */ - protected $localSerializer = null; - - /** - * Instance-specific macros. - */ - protected ?array $localMacros = null; - - /** - * Instance-specific generic macros. - */ - protected ?array $localGenericMacros = null; - - /** - * Function to call instead of format. - * - * @var string|callable|null - */ - protected $localFormatFunction = null; - - /** - * Set specific options. - * - strictMode: true|false|null - * - monthOverflow: true|false|null - * - yearOverflow: true|false|null - * - humanDiffOptions: int|null - * - toStringFormat: string|Closure|null - * - toJsonFormat: string|Closure|null - * - locale: string|null - * - timezone: \DateTimeZone|string|int|null - * - macros: array|null - * - genericMacros: array|null - * - * @param array $settings - * - * @return $this|static - */ - public function settings(array $settings): static - { - $this->localStrictModeEnabled = $settings['strictMode'] ?? null; - $this->localMonthsOverflow = $settings['monthOverflow'] ?? null; - $this->localYearsOverflow = $settings['yearOverflow'] ?? null; - $this->localHumanDiffOptions = $settings['humanDiffOptions'] ?? null; - $this->localToStringFormat = $settings['toStringFormat'] ?? null; - $this->localSerializer = $settings['toJsonFormat'] ?? null; - $this->localMacros = $settings['macros'] ?? null; - $this->localGenericMacros = $settings['genericMacros'] ?? null; - $this->localFormatFunction = $settings['formatFunction'] ?? null; - - if (isset($settings['locale'])) { - $locales = $settings['locale']; - - if (!\is_array($locales)) { - $locales = [$locales]; - } - - $this->locale(...$locales); - } elseif (isset($settings['translator']) && property_exists($this, 'localTranslator')) { - $this->localTranslator = $settings['translator']; - } - - if (isset($settings['innerTimezone'])) { - return $this->setTimezone($settings['innerTimezone']); - } - - if (isset($settings['timezone'])) { - return $this->shiftTimezone($settings['timezone']); - } - - return $this; - } - - /** - * Returns current local settings. - */ - public function getSettings(): array - { - $settings = []; - $map = [ - 'localStrictModeEnabled' => 'strictMode', - 'localMonthsOverflow' => 'monthOverflow', - 'localYearsOverflow' => 'yearOverflow', - 'localHumanDiffOptions' => 'humanDiffOptions', - 'localToStringFormat' => 'toStringFormat', - 'localSerializer' => 'toJsonFormat', - 'localMacros' => 'macros', - 'localGenericMacros' => 'genericMacros', - 'locale' => 'locale', - 'tzName' => 'timezone', - 'localFormatFunction' => 'formatFunction', - ]; - - foreach ($map as $property => $key) { - $value = $this->$property ?? null; - - if ($value !== null && ($key !== 'locale' || $value !== 'en' || $this->localTranslator)) { - $settings[$key] = $value; - } - } - - return $settings; - } - - /** - * Show truthy properties on var_dump(). - */ - public function __debugInfo(): array - { - $infos = array_filter(get_object_vars($this), static function ($var) { - return $var; - }); - - foreach (['dumpProperties', 'constructedObjectId', 'constructed', 'originalInput'] as $property) { - if (isset($infos[$property])) { - unset($infos[$property]); - } - } - - $this->addExtraDebugInfos($infos); - - if (\array_key_exists('carbonRecurrences', $infos)) { - $infos['recurrences'] = $infos['carbonRecurrences']; - unset($infos['carbonRecurrences']); - } - - return $infos; - } - - protected function isLocalStrictModeEnabled(): bool - { - return $this->localStrictModeEnabled - ?? $this->transmitFactory(static fn () => static::isStrictModeEnabled()); - } - - protected function addExtraDebugInfos(array &$infos): void - { - if ($this instanceof DateTimeInterface) { - try { - $infos['date'] ??= $this->format(CarbonInterface::MOCK_DATETIME_FORMAT); - $infos['timezone'] ??= $this->tzName ?? $this->timezoneSetting ?? $this->timezone ?? null; - } catch (Throwable) { - // noop - } - } - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Traits/Rounding.php b/vendor/nesbot/carbon/src/Carbon/Traits/Rounding.php deleted file mode 100644 index 4239c66..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Traits/Rounding.php +++ /dev/null @@ -1,226 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Traits; - -use Carbon\CarbonInterface; -use Carbon\Exceptions\UnknownUnitException; -use Carbon\WeekDay; -use DateInterval; - -/** - * Trait Rounding. - * - * Round, ceil, floor units. - * - * Depends on the following methods: - * - * @method static copy() - * @method static startOfWeek(int $weekStartsAt = null) - */ -trait Rounding -{ - use IntervalRounding; - - /** - * Round the current instance at the given unit with given precision if specified and the given function. - */ - public function roundUnit( - string $unit, - DateInterval|string|float|int $precision = 1, - callable|string $function = 'round', - ): static { - $metaUnits = [ - // @call roundUnit - 'millennium' => [static::YEARS_PER_MILLENNIUM, 'year'], - // @call roundUnit - 'century' => [static::YEARS_PER_CENTURY, 'year'], - // @call roundUnit - 'decade' => [static::YEARS_PER_DECADE, 'year'], - // @call roundUnit - 'quarter' => [static::MONTHS_PER_QUARTER, 'month'], - // @call roundUnit - 'millisecond' => [1000, 'microsecond'], - ]; - $normalizedUnit = static::singularUnit($unit); - $ranges = array_merge(static::getRangesByUnit($this->daysInMonth), [ - // @call roundUnit - 'microsecond' => [0, 999999], - ]); - $factor = 1; - - if ($normalizedUnit === 'week') { - $normalizedUnit = 'day'; - $precision *= static::DAYS_PER_WEEK; - } - - if (isset($metaUnits[$normalizedUnit])) { - [$factor, $normalizedUnit] = $metaUnits[$normalizedUnit]; - } - - $precision *= $factor; - - if (!isset($ranges[$normalizedUnit])) { - throw new UnknownUnitException($unit); - } - - $found = false; - $fraction = 0; - $arguments = null; - $initialValue = null; - $factor = $this->year < 0 ? -1 : 1; - $changes = []; - $minimumInc = null; - - foreach ($ranges as $unit => [$minimum, $maximum]) { - if ($normalizedUnit === $unit) { - $arguments = [$this->$unit, $minimum]; - $initialValue = $this->$unit; - $fraction = $precision - floor($precision); - $found = true; - - continue; - } - - if ($found) { - $delta = $maximum + 1 - $minimum; - $factor /= $delta; - $fraction *= $delta; - $inc = ($this->$unit - $minimum) * $factor; - - if ($inc !== 0.0) { - $minimumInc = $minimumInc ?? ($arguments[0] / pow(2, 52)); - - // If value is still the same when adding a non-zero increment/decrement, - // it means precision got lost in the addition - if (abs($inc) < $minimumInc) { - $inc = $minimumInc * ($inc < 0 ? -1 : 1); - } - - // If greater than $precision, assume precision loss caused an overflow - if ($function !== 'floor' || abs($arguments[0] + $inc - $initialValue) >= $precision) { - $arguments[0] += $inc; - } - } - - $changes[$unit] = round( - $minimum + ($fraction ? $fraction * $function(($this->$unit - $minimum) / $fraction) : 0), - ); - - // Cannot use modulo as it lose double precision - while ($changes[$unit] >= $delta) { - $changes[$unit] -= $delta; - } - - $fraction -= floor($fraction); - } - } - - [$value, $minimum] = $arguments; - $normalizedValue = floor($function(($value - $minimum) / $precision) * $precision + $minimum); - - /** @var CarbonInterface $result */ - $result = $this; - - foreach ($changes as $unit => $value) { - $result = $result->$unit($value); - } - - return $result->$normalizedUnit($normalizedValue); - } - - /** - * Truncate the current instance at the given unit with given precision if specified. - */ - public function floorUnit(string $unit, DateInterval|string|float|int $precision = 1): static - { - return $this->roundUnit($unit, $precision, 'floor'); - } - - /** - * Ceil the current instance at the given unit with given precision if specified. - */ - public function ceilUnit(string $unit, DateInterval|string|float|int $precision = 1): static - { - return $this->roundUnit($unit, $precision, 'ceil'); - } - - /** - * Round the current instance second with given precision if specified. - */ - public function round(DateInterval|string|float|int $precision = 1, callable|string $function = 'round'): static - { - return $this->roundWith($precision, $function); - } - - /** - * Round the current instance second with given precision if specified. - */ - public function floor(DateInterval|string|float|int $precision = 1): static - { - return $this->round($precision, 'floor'); - } - - /** - * Ceil the current instance second with given precision if specified. - */ - public function ceil(DateInterval|string|float|int $precision = 1): static - { - return $this->round($precision, 'ceil'); - } - - /** - * Round the current instance week. - * - * @param WeekDay|int|null $weekStartsAt optional start allow you to specify the day of week to use to start the week - */ - public function roundWeek(WeekDay|int|null $weekStartsAt = null): static - { - return $this->closest( - $this->avoidMutation()->floorWeek($weekStartsAt), - $this->avoidMutation()->ceilWeek($weekStartsAt), - ); - } - - /** - * Truncate the current instance week. - * - * @param WeekDay|int|null $weekStartsAt optional start allow you to specify the day of week to use to start the week - */ - public function floorWeek(WeekDay|int|null $weekStartsAt = null): static - { - return $this->startOfWeek($weekStartsAt); - } - - /** - * Ceil the current instance week. - * - * @param WeekDay|int|null $weekStartsAt optional start allow you to specify the day of week to use to start the week - */ - public function ceilWeek(WeekDay|int|null $weekStartsAt = null): static - { - if ($this->isMutable()) { - $startOfWeek = $this->avoidMutation()->startOfWeek($weekStartsAt); - - return $startOfWeek != $this ? - $this->startOfWeek($weekStartsAt)->addWeek() : - $this; - } - - $startOfWeek = $this->startOfWeek($weekStartsAt); - - return $startOfWeek != $this ? - $startOfWeek->addWeek() : - $this->avoidMutation(); - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Traits/Serialization.php b/vendor/nesbot/carbon/src/Carbon/Traits/Serialization.php deleted file mode 100644 index d3cb6a4..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Traits/Serialization.php +++ /dev/null @@ -1,318 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Traits; - -use Carbon\Exceptions\InvalidFormatException; -use Carbon\FactoryImmutable; -use DateTimeZone; -use ReturnTypeWillChange; -use Throwable; - -/** - * Trait Serialization. - * - * Serialization and JSON stuff. - * - * Depends on the following properties: - * - * @property int $year - * @property int $month - * @property int $daysInMonth - * @property int $quarter - * - * Depends on the following methods: - * - * @method string|static locale(string $locale = null, string ...$fallbackLocales) - * @method string toJSON() - */ -trait Serialization -{ - use ObjectInitialisation; - - /** - * List of key to use for dump/serialization. - * - * @var string[] - */ - protected array $dumpProperties = ['date', 'timezone_type', 'timezone']; - - /** - * Locale to dump comes here before serialization. - * - * @var string|null - */ - protected $dumpLocale; - - /** - * Embed date properties to dump in a dedicated variables so it won't overlap native - * DateTime ones. - * - * @var array|null - */ - protected $dumpDateProperties; - - /** - * Return a serialized string of the instance. - */ - public function serialize(): string - { - return serialize($this); - } - - /** - * Create an instance from a serialized string. - * - * @param string $value - * - * @throws InvalidFormatException - * - * @return static - */ - public static function fromSerialized($value): static - { - $instance = @unserialize((string) $value); - - if (!$instance instanceof static) { - throw new InvalidFormatException("Invalid serialized value: $value"); - } - - return $instance; - } - - /** - * The __set_state handler. - * - * @param string|array $dump - * - * @return static - */ - #[ReturnTypeWillChange] - public static function __set_state($dump): static - { - if (\is_string($dump)) { - return static::parse($dump); - } - - /** @var \DateTimeInterface $date */ - $date = get_parent_class(static::class) && method_exists(parent::class, '__set_state') - ? parent::__set_state((array) $dump) - : (object) $dump; - - return static::instance($date); - } - - /** - * Returns the list of properties to dump on serialize() called on. - * - * Only used by PHP < 7.4. - * - * @return array - */ - public function __sleep() - { - $properties = $this->getSleepProperties(); - - if ($this->localTranslator ?? null) { - $properties[] = 'dumpLocale'; - $this->dumpLocale = $this->locale ?? null; - } - - return $properties; - } - - /** - * Returns the values to dump on serialize() called on. - * - * Only used by PHP >= 7.4. - * - * @return array - */ - public function __serialize(): array - { - // @codeCoverageIgnoreStart - if (isset($this->timezone_type, $this->timezone, $this->date)) { - return [ - 'date' => $this->date, - 'timezone_type' => $this->timezone_type, - 'timezone' => $this->dumpTimezone($this->timezone), - ]; - } - // @codeCoverageIgnoreEnd - - $timezone = $this->getTimezone(); - $export = [ - 'date' => $this->format('Y-m-d H:i:s.u'), - 'timezone_type' => $timezone->getType(), - 'timezone' => $timezone->getName(), - ]; - - // @codeCoverageIgnoreStart - if (\extension_loaded('msgpack') && isset($this->constructedObjectId)) { - $timezone = $this->timezone ?? null; - $export['dumpDateProperties'] = [ - 'date' => $this->format('Y-m-d H:i:s.u'), - 'timezone' => $this->dumpTimezone($timezone), - ]; - } - // @codeCoverageIgnoreEnd - - if ($this->localTranslator ?? null) { - $export['dumpLocale'] = $this->locale ?? null; - } - - return $export; - } - - /** - * Set locale if specified on unserialize() called. - * - * Only used by PHP < 7.4. - */ - public function __wakeup(): void - { - if (parent::class && method_exists(parent::class, '__wakeup')) { - // @codeCoverageIgnoreStart - try { - parent::__wakeup(); - } catch (Throwable $exception) { - try { - // FatalError occurs when calling msgpack_unpack() in PHP 7.4 or later. - ['date' => $date, 'timezone' => $timezone] = $this->dumpDateProperties; - parent::__construct($date, $timezone); - } catch (Throwable) { - throw $exception; - } - } - // @codeCoverageIgnoreEnd - } - - $this->constructedObjectId = spl_object_hash($this); - - if (isset($this->dumpLocale)) { - $this->locale($this->dumpLocale); - $this->dumpLocale = null; - } - - $this->cleanupDumpProperties(); - } - - /** - * Set locale if specified on unserialize() called. - * - * Only used by PHP >= 7.4. - */ - public function __unserialize(array $data): void - { - // @codeCoverageIgnoreStart - try { - $this->__construct($data['date'] ?? null, $data['timezone'] ?? null); - } catch (Throwable $exception) { - if (!isset($data['dumpDateProperties']['date'], $data['dumpDateProperties']['timezone'])) { - throw $exception; - } - - try { - // FatalError occurs when calling msgpack_unpack() in PHP 7.4 or later. - ['date' => $date, 'timezone' => $timezone] = $data['dumpDateProperties']; - $this->__construct($date, $timezone); - } catch (Throwable) { - throw $exception; - } - } - // @codeCoverageIgnoreEnd - - if (isset($data['dumpLocale'])) { - $this->locale($data['dumpLocale']); - } - } - - /** - * Prepare the object for JSON serialization. - */ - public function jsonSerialize(): mixed - { - $serializer = $this->localSerializer - ?? $this->getFactory()->getSettings()['toJsonFormat'] - ?? null; - - if ($serializer) { - return \is_string($serializer) - ? $this->rawFormat($serializer) - : $serializer($this); - } - - return $this->toJSON(); - } - - /** - * @deprecated To avoid conflict between different third-party libraries, static setters should not be used. - * You should rather transform Carbon object before the serialization. - * - * JSON serialize all Carbon instances using the given callback. - */ - public static function serializeUsing(string|callable|null $format): void - { - FactoryImmutable::getDefaultInstance()->serializeUsing($format); - } - - /** - * Cleanup properties attached to the public scope of DateTime when a dump of the date is requested. - * foreach ($date as $_) {} - * serializer($date) - * var_export($date) - * get_object_vars($date) - */ - public function cleanupDumpProperties(): self - { - // @codeCoverageIgnoreStart - if (PHP_VERSION < 8.2) { - foreach ($this->dumpProperties as $property) { - if (isset($this->$property)) { - unset($this->$property); - } - } - } - // @codeCoverageIgnoreEnd - - return $this; - } - - private function getSleepProperties(): array - { - $properties = $this->dumpProperties; - - // @codeCoverageIgnoreStart - if (!\extension_loaded('msgpack')) { - return $properties; - } - - if (isset($this->constructedObjectId)) { - $timezone = $this->timezone ?? null; - $this->dumpDateProperties = [ - 'date' => $this->format('Y-m-d H:i:s.u'), - 'timezone' => $this->dumpTimezone($timezone), - ]; - - $properties[] = 'dumpDateProperties'; - } - - return $properties; - // @codeCoverageIgnoreEnd - } - - private function dumpTimezone(mixed $timezone): mixed - { - return $timezone instanceof DateTimeZone ? $timezone->getName() : $timezone; - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Traits/StaticLocalization.php b/vendor/nesbot/carbon/src/Carbon/Traits/StaticLocalization.php deleted file mode 100644 index cb1e9e6..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Traits/StaticLocalization.php +++ /dev/null @@ -1,81 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Traits; - -use Carbon\FactoryImmutable; -use Symfony\Contracts\Translation\TranslatorInterface; - -/** - * Static config for localization. - */ -trait StaticLocalization -{ - /** - * @deprecated To avoid conflict between different third-party libraries, static setters should not be used. - * You should rather use the ->settings() method. - * @see settings - */ - public static function setHumanDiffOptions(int $humanDiffOptions): void - { - FactoryImmutable::getDefaultInstance()->setHumanDiffOptions($humanDiffOptions); - } - - /** - * @deprecated To avoid conflict between different third-party libraries, static setters should not be used. - * You should rather use the ->settings() method. - * @see settings - */ - public static function enableHumanDiffOption(int $humanDiffOption): void - { - FactoryImmutable::getDefaultInstance()->enableHumanDiffOption($humanDiffOption); - } - - /** - * @deprecated To avoid conflict between different third-party libraries, static setters should not be used. - * You should rather use the ->settings() method. - * @see settings - */ - public static function disableHumanDiffOption(int $humanDiffOption): void - { - FactoryImmutable::getDefaultInstance()->disableHumanDiffOption($humanDiffOption); - } - - /** - * Return default humanDiff() options (merged flags as integer). - */ - public static function getHumanDiffOptions(): int - { - return FactoryImmutable::getInstance()->getHumanDiffOptions(); - } - - /** - * Set the default translator instance to use. - * - * @param TranslatorInterface $translator - * - * @return void - */ - public static function setTranslator(TranslatorInterface $translator): void - { - FactoryImmutable::getDefaultInstance()->setTranslator($translator); - } - - /** - * Initialize the default translator instance if necessary. - */ - public static function getTranslator(): TranslatorInterface - { - return FactoryImmutable::getInstance()->getTranslator(); - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Traits/StaticOptions.php b/vendor/nesbot/carbon/src/Carbon/Traits/StaticOptions.php deleted file mode 100644 index 44dd284..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Traits/StaticOptions.php +++ /dev/null @@ -1,164 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Traits; - -use Carbon\FactoryImmutable; - -/** - * Options related to a static variable. - */ -trait StaticOptions -{ - /////////////////////////////////////////////////////////////////// - ///////////// Behavior customization for sub-classes ////////////// - /////////////////////////////////////////////////////////////////// - - /** - * Function to call instead of format. - * - * @var string|callable|null - */ - protected static $formatFunction; - - /** - * Function to call instead of createFromFormat. - * - * @var string|callable|null - */ - protected static $createFromFormatFunction; - - /** - * Function to call instead of parse. - * - * @var string|callable|null - */ - protected static $parseFunction; - - /////////////////////////////////////////////////////////////////// - ///////////// Use default factory for static options ////////////// - /////////////////////////////////////////////////////////////////// - - /** - * @deprecated To avoid conflict between different third-party libraries, static setters should not be used. - * You should rather use the ->settings() method. - * @see settings - * - * Enable the strict mode (or disable with passing false). - * - * @param bool $strictModeEnabled - */ - public static function useStrictMode(bool $strictModeEnabled = true): void - { - FactoryImmutable::getDefaultInstance()->useStrictMode($strictModeEnabled); - } - - /** - * Returns true if the strict mode is globally in use, false else. - * (It can be overridden in specific instances.) - * - * @return bool - */ - public static function isStrictModeEnabled(): bool - { - return FactoryImmutable::getInstance()->isStrictModeEnabled(); - } - - /** - * @deprecated To avoid conflict between different third-party libraries, static setters should not be used. - * You should rather use the ->settings() method. - * Or you can use method variants: addMonthsWithOverflow/addMonthsNoOverflow, same variants - * are available for quarters, years, decade, centuries, millennia (singular and plural forms). - * @see settings - * - * Indicates if months should be calculated with overflow. - * - * @param bool $monthsOverflow - * - * @return void - */ - public static function useMonthsOverflow(bool $monthsOverflow = true): void - { - FactoryImmutable::getDefaultInstance()->useMonthsOverflow($monthsOverflow); - } - - /** - * @deprecated To avoid conflict between different third-party libraries, static setters should not be used. - * You should rather use the ->settings() method. - * Or you can use method variants: addMonthsWithOverflow/addMonthsNoOverflow, same variants - * are available for quarters, years, decade, centuries, millennia (singular and plural forms). - * @see settings - * - * Reset the month overflow behavior. - * - * @return void - */ - public static function resetMonthsOverflow(): void - { - FactoryImmutable::getDefaultInstance()->resetMonthsOverflow(); - } - - /** - * Get the month overflow global behavior (can be overridden in specific instances). - * - * @return bool - */ - public static function shouldOverflowMonths(): bool - { - return FactoryImmutable::getInstance()->shouldOverflowMonths(); - } - - /** - * @deprecated To avoid conflict between different third-party libraries, static setters should not be used. - * You should rather use the ->settings() method. - * Or you can use method variants: addYearsWithOverflow/addYearsNoOverflow, same variants - * are available for quarters, years, decade, centuries, millennia (singular and plural forms). - * @see settings - * - * Indicates if years should be calculated with overflow. - * - * @param bool $yearsOverflow - * - * @return void - */ - public static function useYearsOverflow(bool $yearsOverflow = true): void - { - FactoryImmutable::getDefaultInstance()->useYearsOverflow($yearsOverflow); - } - - /** - * @deprecated To avoid conflict between different third-party libraries, static setters should not be used. - * You should rather use the ->settings() method. - * Or you can use method variants: addYearsWithOverflow/addYearsNoOverflow, same variants - * are available for quarters, years, decade, centuries, millennia (singular and plural forms). - * @see settings - * - * Reset the month overflow behavior. - * - * @return void - */ - public static function resetYearsOverflow(): void - { - FactoryImmutable::getDefaultInstance()->resetYearsOverflow(); - } - - /** - * Get the month overflow global behavior (can be overridden in specific instances). - * - * @return bool - */ - public static function shouldOverflowYears(): bool - { - return FactoryImmutable::getInstance()->shouldOverflowYears(); - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Traits/Test.php b/vendor/nesbot/carbon/src/Carbon/Traits/Test.php deleted file mode 100644 index c642dbd..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Traits/Test.php +++ /dev/null @@ -1,185 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Traits; - -use Carbon\CarbonInterface; -use Carbon\CarbonTimeZone; -use Carbon\Factory; -use Carbon\FactoryImmutable; -use Closure; -use DateTimeImmutable; -use DateTimeInterface; -use DateTimeZone; - -trait Test -{ - /////////////////////////////////////////////////////////////////// - ///////////////////////// TESTING AIDS //////////////////////////// - /////////////////////////////////////////////////////////////////// - - /** - * Set a Carbon instance (real or mock) to be returned when a "now" - * instance is created. The provided instance will be returned - * specifically under the following conditions: - * - A call to the static now() method, ex. Carbon::now() - * - When a null (or blank string) is passed to the constructor or parse(), ex. new Carbon(null) - * - When the string "now" is passed to the constructor or parse(), ex. new Carbon('now') - * - When a string containing the desired time is passed to Carbon::parse(). - * - * Note the timezone parameter was left out of the examples above and - * has no affect as the mock value will be returned regardless of its value. - * - * Only the moment is mocked with setTestNow(), the timezone will still be the one passed - * as parameter of date_default_timezone_get() as a fallback (see setTestNowAndTimezone()). - * - * To clear the test instance call this method using the default - * parameter of null. - * - * /!\ Use this method for unit tests only. - * - * @param DateTimeInterface|Closure|static|string|false|null $testNow real or mock Carbon instance - */ - public static function setTestNow(mixed $testNow = null): void - { - FactoryImmutable::getDefaultInstance()->setTestNow($testNow); - } - - /** - * Set a Carbon instance (real or mock) to be returned when a "now" - * instance is created. The provided instance will be returned - * specifically under the following conditions: - * - A call to the static now() method, ex. Carbon::now() - * - When a null (or blank string) is passed to the constructor or parse(), ex. new Carbon(null) - * - When the string "now" is passed to the constructor or parse(), ex. new Carbon('now') - * - When a string containing the desired time is passed to Carbon::parse(). - * - * It will also align default timezone (e.g. call date_default_timezone_set()) with - * the second argument or if null, with the timezone of the given date object. - * - * To clear the test instance call this method using the default - * parameter of null. - * - * /!\ Use this method for unit tests only. - * - * @param DateTimeInterface|Closure|static|string|false|null $testNow real or mock Carbon instance - */ - public static function setTestNowAndTimezone($testNow = null, $timezone = null): void - { - FactoryImmutable::getDefaultInstance()->setTestNowAndTimezone($testNow, $timezone); - } - - /** - * Temporarily sets a static date to be used within the callback. - * Using setTestNow to set the date, executing the callback, then - * clearing the test instance. - * - * /!\ Use this method for unit tests only. - * - * @template T - * - * @param DateTimeInterface|Closure|static|string|false|null $testNow real or mock Carbon instance - * @param Closure(): T $callback - * - * @return T - */ - public static function withTestNow(mixed $testNow, callable $callback): mixed - { - return FactoryImmutable::getDefaultInstance()->withTestNow($testNow, $callback); - } - - /** - * Get the Carbon instance (real or mock) to be returned when a "now" - * instance is created. - * - * @return Closure|CarbonInterface|null the current instance used for testing - */ - public static function getTestNow(): Closure|CarbonInterface|null - { - return FactoryImmutable::getInstance()->getTestNow(); - } - - /** - * Determine if there is a valid test instance set. A valid test instance - * is anything that is not null. - * - * @return bool true if there is a test instance, otherwise false - */ - public static function hasTestNow(): bool - { - return FactoryImmutable::getInstance()->hasTestNow(); - } - - /** - * Get the mocked date passed in setTestNow() and if it's a Closure, execute it. - */ - protected static function getMockedTestNow(DateTimeZone|string|int|null $timezone): ?CarbonInterface - { - $testNow = FactoryImmutable::getInstance()->handleTestNowClosure(static::getTestNow(), $timezone); - - if ($testNow === null) { - return null; - } - - $testNow = $testNow->avoidMutation(); - - return $timezone ? $testNow->setTimezone($timezone) : $testNow; - } - - private function mockConstructorParameters(&$time, ?CarbonTimeZone $timezone): void - { - $clock = $this->clock?->unwrap(); - $now = $clock instanceof Factory - ? $clock->getTestNow() - : $this->nowFromClock($timezone); - $testInstance = $now ?? self::getMockedTestNowClone($timezone); - - if (!$testInstance) { - return; - } - - if ($testInstance instanceof DateTimeInterface) { - $testInstance = $testInstance->setTimezone($timezone ?? date_default_timezone_get()); - } - - if (static::hasRelativeKeywords($time)) { - $testInstance = $testInstance->modify($time); - } - - $factory = $this->getClock()?->unwrap(); - - if (!($factory instanceof Factory)) { - $factory = FactoryImmutable::getInstance(); - } - - $testInstance = $factory->handleTestNowClosure($testInstance, $timezone); - - $time = $testInstance instanceof self - ? $testInstance->rawFormat(static::MOCK_DATETIME_FORMAT) - : $testInstance->format(static::MOCK_DATETIME_FORMAT); - } - - private function getMockedTestNowClone($timezone): CarbonInterface|self|null - { - $mock = static::getMockedTestNow($timezone); - - return $mock ? clone $mock : null; - } - - private function nowFromClock(?CarbonTimeZone $timezone): ?DateTimeImmutable - { - $now = $this->clock?->now(); - - return $now && $timezone ? $now->setTimezone($timezone) : null; - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Traits/Timestamp.php b/vendor/nesbot/carbon/src/Carbon/Traits/Timestamp.php deleted file mode 100644 index 3536b70..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Traits/Timestamp.php +++ /dev/null @@ -1,191 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Traits; - -use DateTimeZone; - -/** - * Trait Timestamp. - */ -trait Timestamp -{ - /** - * Create a Carbon instance from a timestamp and set the timezone (UTC by default). - * - * Timestamp input can be given as int, float or a string containing one or more numbers. - */ - public static function createFromTimestamp( - float|int|string $timestamp, - DateTimeZone|string|int|null $timezone = null, - ): static { - $date = static::createFromTimestampUTC($timestamp); - - return $timezone === null ? $date : $date->setTimezone($timezone); - } - - /** - * Create a Carbon instance from a timestamp keeping the timezone to UTC. - * - * Timestamp input can be given as int, float or a string containing one or more numbers. - */ - public static function createFromTimestampUTC(float|int|string $timestamp): static - { - [$integer, $decimal] = self::getIntegerAndDecimalParts($timestamp); - $delta = floor($decimal / static::MICROSECONDS_PER_SECOND); - $integer += $delta; - $decimal -= $delta * static::MICROSECONDS_PER_SECOND; - $decimal = str_pad((string) $decimal, 6, '0', STR_PAD_LEFT); - - return static::rawCreateFromFormat('U u', "$integer $decimal"); - } - - /** - * Create a Carbon instance from a timestamp in milliseconds. - * - * Timestamp input can be given as int, float or a string containing one or more numbers. - * - * @param float|int|string $timestamp - * - * @return static - */ - public static function createFromTimestampMsUTC($timestamp): static - { - [$milliseconds, $microseconds] = self::getIntegerAndDecimalParts($timestamp, 3); - $sign = $milliseconds < 0 || ($milliseconds === 0.0 && $microseconds < 0) ? -1 : 1; - $milliseconds = abs($milliseconds); - $microseconds = $sign * abs($microseconds) + static::MICROSECONDS_PER_MILLISECOND * ($milliseconds % static::MILLISECONDS_PER_SECOND); - $seconds = $sign * floor($milliseconds / static::MILLISECONDS_PER_SECOND); - $delta = floor($microseconds / static::MICROSECONDS_PER_SECOND); - $seconds = (int) ($seconds + $delta); - $microseconds -= $delta * static::MICROSECONDS_PER_SECOND; - $microseconds = str_pad((string) (int) $microseconds, 6, '0', STR_PAD_LEFT); - - return static::rawCreateFromFormat('U u', "$seconds $microseconds"); - } - - /** - * Create a Carbon instance from a timestamp in milliseconds. - * - * Timestamp input can be given as int, float or a string containing one or more numbers. - */ - public static function createFromTimestampMs( - float|int|string $timestamp, - DateTimeZone|string|int|null $timezone = null, - ): static { - $date = static::createFromTimestampMsUTC($timestamp); - - return $timezone === null ? $date : $date->setTimezone($timezone); - } - - /** - * Set the instance's timestamp. - * - * Timestamp input can be given as int, float or a string containing one or more numbers. - */ - public function timestamp(float|int|string $timestamp): static - { - return $this->setTimestamp($timestamp); - } - - /** - * Returns a timestamp rounded with the given precision (6 by default). - * - * @example getPreciseTimestamp() 1532087464437474 (microsecond maximum precision) - * @example getPreciseTimestamp(6) 1532087464437474 - * @example getPreciseTimestamp(5) 153208746443747 (1/100000 second precision) - * @example getPreciseTimestamp(4) 15320874644375 (1/10000 second precision) - * @example getPreciseTimestamp(3) 1532087464437 (millisecond precision) - * @example getPreciseTimestamp(2) 153208746444 (1/100 second precision) - * @example getPreciseTimestamp(1) 15320874644 (1/10 second precision) - * @example getPreciseTimestamp(0) 1532087464 (second precision) - * @example getPreciseTimestamp(-1) 153208746 (10 second precision) - * @example getPreciseTimestamp(-2) 15320875 (100 second precision) - * - * @param int $precision - * - * @return float - */ - public function getPreciseTimestamp($precision = 6): float - { - return round(((float) $this->rawFormat('Uu')) / pow(10, 6 - $precision)); - } - - /** - * Returns the milliseconds timestamps used amongst other by Date javascript objects. - * - * @return float - */ - public function valueOf(): float - { - return $this->getPreciseTimestamp(3); - } - - /** - * Returns the timestamp with millisecond precision. - * - * @return int - */ - public function getTimestampMs(): int - { - return (int) $this->getPreciseTimestamp(3); - } - - /** - * @alias getTimestamp - * - * Returns the UNIX timestamp for the current date. - * - * @return int - */ - public function unix(): int - { - return $this->getTimestamp(); - } - - /** - * Return an array with integer part digits and decimals digits split from one or more positive numbers - * (such as timestamps) as string with the given number of decimals (6 by default). - * - * By splitting integer and decimal, this method obtain a better precision than - * number_format when the input is a string. - * - * @param float|int|string $numbers one or more numbers - * @param int $decimals number of decimals precision (6 by default) - * - * @return array 0-index is integer part, 1-index is decimal part digits - */ - private static function getIntegerAndDecimalParts($numbers, $decimals = 6): array - { - if (\is_int($numbers) || \is_float($numbers)) { - $numbers = number_format($numbers, $decimals, '.', ''); - } - - $sign = str_starts_with($numbers, '-') ? -1 : 1; - $integer = 0; - $decimal = 0; - - foreach (preg_split('`[^\d.]+`', $numbers) as $chunk) { - [$integerPart, $decimalPart] = explode('.', "$chunk."); - - $integer += (int) $integerPart; - $decimal += (float) ("0.$decimalPart"); - } - - $overflow = floor($decimal); - $integer += $overflow; - $decimal -= $overflow; - - return [$sign * $integer, $decimal === 0.0 ? 0.0 : $sign * round($decimal * pow(10, $decimals))]; - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Traits/ToStringFormat.php b/vendor/nesbot/carbon/src/Carbon/Traits/ToStringFormat.php deleted file mode 100644 index 5f0b367..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Traits/ToStringFormat.php +++ /dev/null @@ -1,52 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Traits; - -use Carbon\FactoryImmutable; -use Closure; - -/** - * Trait ToStringFormat. - * - * Handle global format customization for string cast of the object. - */ -trait ToStringFormat -{ - /** - * Reset the format used to the default when type juggling a Carbon instance to a string - * - * @return void - */ - public static function resetToStringFormat(): void - { - FactoryImmutable::getDefaultInstance()->resetToStringFormat(); - } - - /** - * @deprecated To avoid conflict between different third-party libraries, static setters should not be used. - * You should rather let Carbon object being cast to string with DEFAULT_TO_STRING_FORMAT, and - * use other method or custom format passed to format() method if you need to dump another string - * format. - * - * Set the default format used when type juggling a Carbon instance to a string. - * - * @param string|Closure|null $format - * - * @return void - */ - public static function setToStringFormat(string|Closure|null $format): void - { - FactoryImmutable::getDefaultInstance()->setToStringFormat($format); - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Traits/Units.php b/vendor/nesbot/carbon/src/Carbon/Traits/Units.php deleted file mode 100644 index 5953721..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Traits/Units.php +++ /dev/null @@ -1,469 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Traits; - -use Carbon\CarbonConverterInterface; -use Carbon\CarbonInterface; -use Carbon\CarbonInterval; -use Carbon\Exceptions\InvalidFormatException; -use Carbon\Exceptions\InvalidIntervalException; -use Carbon\Exceptions\UnitException; -use Carbon\Exceptions\UnsupportedUnitException; -use Carbon\Unit; -use Closure; -use DateInterval; -use DateMalformedStringException; -use ReturnTypeWillChange; - -/** - * Trait Units. - * - * Add, subtract and set units. - */ -trait Units -{ - /** - * @deprecated Prefer to use add addUTCUnit() which more accurately defines what it's doing. - * - * Add seconds to the instance using timestamp. Positive $value travels - * forward while negative $value travels into the past. - * - * @param string $unit - * @param int|float|null $value - * - * @return static - */ - public function addRealUnit(string $unit, $value = 1): static - { - return $this->addUTCUnit($unit, $value); - } - - /** - * Add seconds to the instance using timestamp. Positive $value travels - * forward while negative $value travels into the past. - * - * @param string $unit - * @param int|float|null $value - * - * @return static - */ - public function addUTCUnit(string $unit, $value = 1): static - { - $value ??= 0; - - switch ($unit) { - // @call addUTCUnit - case 'micro': - - // @call addUTCUnit - case 'microsecond': - /* @var CarbonInterface $this */ - $diff = $this->microsecond + $value; - $time = $this->getTimestamp(); - $seconds = (int) floor($diff / static::MICROSECONDS_PER_SECOND); - $time += $seconds; - $diff -= $seconds * static::MICROSECONDS_PER_SECOND; - $microtime = str_pad((string) $diff, 6, '0', STR_PAD_LEFT); - $timezone = $this->tz; - - return $this->tz('UTC')->modify("@$time.$microtime")->setTimezone($timezone); - - // @call addUTCUnit - case 'milli': - // @call addUTCUnit - case 'millisecond': - return $this->addUTCUnit('microsecond', $value * static::MICROSECONDS_PER_MILLISECOND); - - // @call addUTCUnit - case 'second': - break; - - // @call addUTCUnit - case 'minute': - $value *= static::SECONDS_PER_MINUTE; - - break; - - // @call addUTCUnit - case 'hour': - $value *= static::MINUTES_PER_HOUR * static::SECONDS_PER_MINUTE; - - break; - - // @call addUTCUnit - case 'day': - $value *= static::HOURS_PER_DAY * static::MINUTES_PER_HOUR * static::SECONDS_PER_MINUTE; - - break; - - // @call addUTCUnit - case 'week': - $value *= static::DAYS_PER_WEEK * static::HOURS_PER_DAY * static::MINUTES_PER_HOUR * static::SECONDS_PER_MINUTE; - - break; - - // @call addUTCUnit - case 'month': - $value *= 30 * static::HOURS_PER_DAY * static::MINUTES_PER_HOUR * static::SECONDS_PER_MINUTE; - - break; - - // @call addUTCUnit - case 'quarter': - $value *= static::MONTHS_PER_QUARTER * 30 * static::HOURS_PER_DAY * static::MINUTES_PER_HOUR * static::SECONDS_PER_MINUTE; - - break; - - // @call addUTCUnit - case 'year': - $value *= 365 * static::HOURS_PER_DAY * static::MINUTES_PER_HOUR * static::SECONDS_PER_MINUTE; - - break; - - // @call addUTCUnit - case 'decade': - $value *= static::YEARS_PER_DECADE * 365 * static::HOURS_PER_DAY * static::MINUTES_PER_HOUR * static::SECONDS_PER_MINUTE; - - break; - - // @call addUTCUnit - case 'century': - $value *= static::YEARS_PER_CENTURY * 365 * static::HOURS_PER_DAY * static::MINUTES_PER_HOUR * static::SECONDS_PER_MINUTE; - - break; - - // @call addUTCUnit - case 'millennium': - $value *= static::YEARS_PER_MILLENNIUM * 365 * static::HOURS_PER_DAY * static::MINUTES_PER_HOUR * static::SECONDS_PER_MINUTE; - - break; - - default: - if ($this->isLocalStrictModeEnabled()) { - throw new UnitException("Invalid unit for real timestamp add/sub: '$unit'"); - } - - return $this; - } - - $seconds = (int) $value; - $microseconds = (int) round( - (abs($value) - abs($seconds)) * ($value < 0 ? -1 : 1) * static::MICROSECONDS_PER_SECOND, - ); - $date = $this->setTimestamp($this->getTimestamp() + $seconds); - - return $microseconds ? $date->addUTCUnit('microsecond', $microseconds) : $date; - } - - /** - * @deprecated Prefer to use add subUTCUnit() which more accurately defines what it's doing. - * - * Subtract seconds to the instance using timestamp. Positive $value travels - * into the past while negative $value travels forward. - * - * @param string $unit - * @param int $value - * - * @return static - */ - public function subRealUnit($unit, $value = 1): static - { - return $this->addUTCUnit($unit, -$value); - } - - /** - * Subtract seconds to the instance using timestamp. Positive $value travels - * into the past while negative $value travels forward. - * - * @param string $unit - * @param int $value - * - * @return static - */ - public function subUTCUnit($unit, $value = 1): static - { - return $this->addUTCUnit($unit, -$value); - } - - /** - * Returns true if a property can be changed via setter. - * - * @param string $unit - * - * @return bool - */ - public static function isModifiableUnit($unit): bool - { - static $modifiableUnits = [ - // @call addUnit - 'millennium', - // @call addUnit - 'century', - // @call addUnit - 'decade', - // @call addUnit - 'quarter', - // @call addUnit - 'week', - // @call addUnit - 'weekday', - ]; - - return \in_array($unit, $modifiableUnits, true) || \in_array($unit, static::$units, true); - } - - /** - * Call native PHP DateTime/DateTimeImmutable add() method. - * - * @param DateInterval $interval - * - * @return static - */ - public function rawAdd(DateInterval $interval): static - { - return parent::add($interval); - } - - /** - * Add given units or interval to the current instance. - * - * @example $date->add('hour', 3) - * @example $date->add(15, 'days') - * @example $date->add(CarbonInterval::days(4)) - * - * @param Unit|string|DateInterval|Closure|CarbonConverterInterface $unit - * @param int|float $value - * @param bool|null $overflow - * - * @return static - */ - #[ReturnTypeWillChange] - public function add($unit, $value = 1, ?bool $overflow = null): static - { - $unit = Unit::toNameIfUnit($unit); - $value = Unit::toNameIfUnit($value); - - if (\is_string($unit) && \func_num_args() === 1) { - $unit = CarbonInterval::make($unit, [], true); - } - - if ($unit instanceof CarbonConverterInterface) { - $unit = Closure::fromCallable([$unit, 'convertDate']); - } - - if ($unit instanceof Closure) { - $result = $this->resolveCarbon($unit($this, false)); - - if ($this !== $result && $this->isMutable()) { - return $this->modify($result->rawFormat('Y-m-d H:i:s.u e O')); - } - - return $result; - } - - if ($unit instanceof DateInterval) { - return parent::add($unit); - } - - if (is_numeric($unit)) { - [$value, $unit] = [$unit, $value]; - } - - return $this->addUnit((string) $unit, $value, $overflow); - } - - /** - * Add given units to the current instance. - */ - public function addUnit(Unit|string $unit, $value = 1, ?bool $overflow = null): static - { - $unit = Unit::toName($unit); - - $originalArgs = \func_get_args(); - - $date = $this; - - if (!is_numeric($value) || !(float) $value) { - return $date->isMutable() ? $date : $date->copy(); - } - - $unit = self::singularUnit($unit); - $metaUnits = [ - 'millennium' => [static::YEARS_PER_MILLENNIUM, 'year'], - 'century' => [static::YEARS_PER_CENTURY, 'year'], - 'decade' => [static::YEARS_PER_DECADE, 'year'], - 'quarter' => [static::MONTHS_PER_QUARTER, 'month'], - ]; - - if (isset($metaUnits[$unit])) { - [$factor, $unit] = $metaUnits[$unit]; - $value *= $factor; - } - - if ($unit === 'weekday') { - $weekendDays = $this->transmitFactory(static fn () => static::getWeekendDays()); - - if ($weekendDays !== [static::SATURDAY, static::SUNDAY]) { - $absoluteValue = abs($value); - $sign = $value / max(1, $absoluteValue); - $weekDaysCount = static::DAYS_PER_WEEK - min(static::DAYS_PER_WEEK - 1, \count(array_unique($weekendDays))); - $weeks = floor($absoluteValue / $weekDaysCount); - - for ($diff = $absoluteValue % $weekDaysCount; $diff; $diff--) { - /** @var static $date */ - $date = $date->addDays($sign); - - while (\in_array($date->dayOfWeek, $weekendDays, true)) { - $date = $date->addDays($sign); - } - } - - $value = $weeks * $sign; - $unit = 'week'; - } - - $timeString = $date->toTimeString(); - } elseif ($canOverflow = (\in_array($unit, [ - 'month', - 'year', - ]) && ($overflow === false || ( - $overflow === null && - ($ucUnit = ucfirst($unit).'s') && - !($this->{'local'.$ucUnit.'Overflow'} ?? static::{'shouldOverflow'.$ucUnit}()) - )))) { - $day = $date->day; - } - - if ($unit === 'milli' || $unit === 'millisecond') { - $unit = 'microsecond'; - $value *= static::MICROSECONDS_PER_MILLISECOND; - } - - $previousException = null; - - try { - $date = self::rawAddUnit($date, $unit, $value); - - if (isset($timeString)) { - $date = $date?->setTimeFromTimeString($timeString); - } elseif (isset($canOverflow, $day) && $canOverflow && $day !== $date?->day) { - $date = $date?->modify('last day of previous month'); - } - } catch (DateMalformedStringException|InvalidFormatException|UnsupportedUnitException $exception) { - $date = null; - $previousException = $exception; - } - - return $date ?? throw new UnitException( - 'Unable to add unit '.var_export($originalArgs, true), - previous: $previousException, - ); - } - - /** - * Subtract given units to the current instance. - */ - public function subUnit(Unit|string $unit, $value = 1, ?bool $overflow = null): static - { - return $this->addUnit($unit, -$value, $overflow); - } - - /** - * Call native PHP DateTime/DateTimeImmutable sub() method. - */ - public function rawSub(DateInterval $interval): static - { - return parent::sub($interval); - } - - /** - * Subtract given units or interval to the current instance. - * - * @example $date->sub('hour', 3) - * @example $date->sub(15, 'days') - * @example $date->sub(CarbonInterval::days(4)) - * - * @param Unit|string|DateInterval|Closure|CarbonConverterInterface $unit - * @param int|float $value - * @param bool|null $overflow - * - * @return static - */ - #[ReturnTypeWillChange] - public function sub($unit, $value = 1, ?bool $overflow = null): static - { - if (\is_string($unit) && \func_num_args() === 1) { - $unit = CarbonInterval::make($unit, [], true); - } - - if ($unit instanceof CarbonConverterInterface) { - $unit = Closure::fromCallable([$unit, 'convertDate']); - } - - if ($unit instanceof Closure) { - $result = $this->resolveCarbon($unit($this, true)); - - if ($this !== $result && $this->isMutable()) { - return $this->modify($result->rawFormat('Y-m-d H:i:s.u e O')); - } - - return $result; - } - - if ($unit instanceof DateInterval) { - return parent::sub($unit); - } - - if (is_numeric($unit)) { - [$value, $unit] = [$unit, $value]; - } - - return $this->addUnit((string) $unit, -(float) $value, $overflow); - } - - /** - * Subtract given units or interval to the current instance. - * - * @see sub() - * - * @param string|DateInterval $unit - * @param int|float $value - * @param bool|null $overflow - * - * @return static - */ - public function subtract($unit, $value = 1, ?bool $overflow = null): static - { - if (\is_string($unit) && \func_num_args() === 1) { - $unit = CarbonInterval::make($unit, [], true); - } - - return $this->sub($unit, $value, $overflow); - } - - private static function rawAddUnit(self $date, string $unit, int|float $value): ?static - { - try { - return $date->rawAdd( - CarbonInterval::fromString(abs($value)." $unit")->invert($value < 0), - ); - } catch (InvalidIntervalException $exception) { - try { - return $date->modify("$value $unit"); - } catch (InvalidFormatException) { - throw new UnsupportedUnitException($unit, previous: $exception); - } - } - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Traits/Week.php b/vendor/nesbot/carbon/src/Carbon/Traits/Week.php deleted file mode 100644 index 0101d05..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Traits/Week.php +++ /dev/null @@ -1,223 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon\Traits; - -use Carbon\CarbonInterval; - -/** - * Trait Week. - * - * week and ISO week number, year and count in year. - * - * Depends on the following properties: - * - * @property int $daysInYear - * @property int $dayOfWeek - * @property int $dayOfYear - * @property int $year - * - * Depends on the following methods: - * - * @method static addWeeks(int $weeks = 1) - * @method static copy() - * @method static dayOfYear(int $dayOfYear) - * @method string getTranslationMessage(string $key, ?string $locale = null, ?string $default = null, $translator = null) - * @method static next(int|string $modifier = null) - * @method static startOfWeek(int $day = null) - * @method static subWeeks(int $weeks = 1) - * @method static year(int $year = null) - */ -trait Week -{ - /** - * Set/get the week number of year using given first day of week and first - * day of year included in the first week. Or use ISO format if no settings - * given. - * - * @param int|null $year if null, act as a getter, if not null, set the year and return current instance. - * @param int|null $dayOfWeek first date of week from 0 (Sunday) to 6 (Saturday) - * @param int|null $dayOfYear first day of year included in the week #1 - * - * @return int|static - */ - public function isoWeekYear($year = null, $dayOfWeek = null, $dayOfYear = null) - { - return $this->weekYear( - $year, - $dayOfWeek ?? static::MONDAY, - $dayOfYear ?? static::THURSDAY, - ); - } - - /** - * Set/get the week number of year using given first day of week and first - * day of year included in the first week. Or use US format if no settings - * given (Sunday / Jan 6). - * - * @param int|null $year if null, act as a getter, if not null, set the year and return current instance. - * @param int|null $dayOfWeek first date of week from 0 (Sunday) to 6 (Saturday) - * @param int|null $dayOfYear first day of year included in the week #1 - * - * @return int|static - */ - public function weekYear($year = null, $dayOfWeek = null, $dayOfYear = null) - { - $dayOfWeek = $dayOfWeek ?? $this->getTranslationMessage('first_day_of_week') ?? static::SUNDAY; - $dayOfYear = $dayOfYear ?? $this->getTranslationMessage('day_of_first_week_of_year') ?? 1; - - if ($year !== null) { - $year = (int) round($year); - - if ($this->weekYear(null, $dayOfWeek, $dayOfYear) === $year) { - return $this->avoidMutation(); - } - - $week = $this->week(null, $dayOfWeek, $dayOfYear); - $day = $this->dayOfWeek; - $date = $this->year($year); - - $date = match ($date->weekYear(null, $dayOfWeek, $dayOfYear) - $year) { - CarbonInterval::POSITIVE => $date->subWeeks(static::WEEKS_PER_YEAR / 2), - CarbonInterval::NEGATIVE => $date->addWeeks(static::WEEKS_PER_YEAR / 2), - default => $date, - }; - - $date = $date - ->addWeeks($week - $date->week(null, $dayOfWeek, $dayOfYear)) - ->startOfWeek($dayOfWeek); - - if ($date->dayOfWeek === $day) { - return $date; - } - - return $date->next($day); - } - - $year = $this->year; - $day = $this->dayOfYear; - $date = $this->avoidMutation()->dayOfYear($dayOfYear)->startOfWeek($dayOfWeek); - - if ($date->year === $year && $day < $date->dayOfYear) { - return $year - 1; - } - - $date = $this->avoidMutation()->addYear()->dayOfYear($dayOfYear)->startOfWeek($dayOfWeek); - - if ($date->year === $year && $day >= $date->dayOfYear) { - return $year + 1; - } - - return $year; - } - - /** - * Get the number of weeks of the current week-year using given first day of week and first - * day of year included in the first week. Or use ISO format if no settings - * given. - * - * @param int|null $dayOfWeek first date of week from 0 (Sunday) to 6 (Saturday) - * @param int|null $dayOfYear first day of year included in the week #1 - * - * @return int - */ - public function isoWeeksInYear($dayOfWeek = null, $dayOfYear = null) - { - return $this->weeksInYear( - $dayOfWeek ?? static::MONDAY, - $dayOfYear ?? static::THURSDAY, - ); - } - - /** - * Get the number of weeks of the current week-year using given first day of week and first - * day of year included in the first week. Or use US format if no settings - * given (Sunday / Jan 6). - * - * @param int|null $dayOfWeek first date of week from 0 (Sunday) to 6 (Saturday) - * @param int|null $dayOfYear first day of year included in the week #1 - * - * @return int - */ - public function weeksInYear($dayOfWeek = null, $dayOfYear = null) - { - $dayOfWeek = $dayOfWeek ?? $this->getTranslationMessage('first_day_of_week') ?? static::SUNDAY; - $dayOfYear = $dayOfYear ?? $this->getTranslationMessage('day_of_first_week_of_year') ?? 1; - $year = $this->year; - $start = $this->avoidMutation()->dayOfYear($dayOfYear)->startOfWeek($dayOfWeek); - $startDay = $start->dayOfYear; - if ($start->year !== $year) { - $startDay -= $start->daysInYear; - } - $end = $this->avoidMutation()->addYear()->dayOfYear($dayOfYear)->startOfWeek($dayOfWeek); - $endDay = $end->dayOfYear; - if ($end->year !== $year) { - $endDay += $this->daysInYear; - } - - return (int) round(($endDay - $startDay) / static::DAYS_PER_WEEK); - } - - /** - * Get/set the week number using given first day of week and first - * day of year included in the first week. Or use US format if no settings - * given (Sunday / Jan 6). - * - * @param int|null $week - * @param int|null $dayOfWeek - * @param int|null $dayOfYear - * - * @return int|static - */ - public function week($week = null, $dayOfWeek = null, $dayOfYear = null) - { - $date = $this; - $dayOfWeek = $dayOfWeek ?? $this->getTranslationMessage('first_day_of_week') ?? 0; - $dayOfYear = $dayOfYear ?? $this->getTranslationMessage('day_of_first_week_of_year') ?? 1; - - if ($week !== null) { - return $date->addWeeks(round($week) - $this->week(null, $dayOfWeek, $dayOfYear)); - } - - $start = $date->avoidMutation()->shiftTimezone('UTC')->dayOfYear($dayOfYear)->startOfWeek($dayOfWeek); - $end = $date->avoidMutation()->shiftTimezone('UTC')->startOfWeek($dayOfWeek); - - if ($start > $end) { - $start = $start->subWeeks(static::WEEKS_PER_YEAR / 2)->dayOfYear($dayOfYear)->startOfWeek($dayOfWeek); - } - - $week = (int) ($start->diffInDays($end) / static::DAYS_PER_WEEK + 1); - - return $week > $end->weeksInYear($dayOfWeek, $dayOfYear) ? 1 : $week; - } - - /** - * Get/set the week number using given first day of week and first - * day of year included in the first week. Or use ISO format if no settings - * given. - * - * @param int|null $week - * @param int|null $dayOfWeek - * @param int|null $dayOfYear - * - * @return int|static - */ - public function isoWeek($week = null, $dayOfWeek = null, $dayOfYear = null) - { - return $this->week( - $week, - $dayOfWeek ?? static::MONDAY, - $dayOfYear ?? static::THURSDAY, - ); - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/Translator.php b/vendor/nesbot/carbon/src/Carbon/Translator.php deleted file mode 100644 index 9f523b2..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Translator.php +++ /dev/null @@ -1,34 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon; - -use ReflectionMethod; -use Symfony\Component\Translation; -use Symfony\Contracts\Translation\TranslatorInterface; - -$transMethod = new ReflectionMethod( - class_exists(TranslatorInterface::class) - ? TranslatorInterface::class - : Translation\Translator::class, - 'trans', -); - -require $transMethod->hasReturnType() - ? __DIR__.'/../../lazy/Carbon/TranslatorStrongType.php' - : __DIR__.'/../../lazy/Carbon/TranslatorWeakType.php'; - -class Translator extends LazyTranslator -{ - // Proxy dynamically loaded LazyTranslator in a static way -} diff --git a/vendor/nesbot/carbon/src/Carbon/TranslatorImmutable.php b/vendor/nesbot/carbon/src/Carbon/TranslatorImmutable.php deleted file mode 100644 index ab9933e..0000000 --- a/vendor/nesbot/carbon/src/Carbon/TranslatorImmutable.php +++ /dev/null @@ -1,100 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon; - -use Carbon\Exceptions\ImmutableException; -use Symfony\Component\Config\ConfigCacheFactoryInterface; -use Symfony\Component\Translation\Formatter\MessageFormatterInterface; - -class TranslatorImmutable extends Translator -{ - private bool $constructed = false; - - public function __construct($locale, ?MessageFormatterInterface $formatter = null, $cacheDir = null, $debug = false) - { - parent::__construct($locale, $formatter, $cacheDir, $debug); - $this->constructed = true; - } - - /** - * @codeCoverageIgnore - */ - public function setDirectories(array $directories): static - { - $this->disallowMutation(__METHOD__); - - return parent::setDirectories($directories); - } - - public function setLocale($locale): void - { - $this->disallowMutation(__METHOD__); - - parent::setLocale($locale); - } - - /** - * @codeCoverageIgnore - */ - public function setMessages(string $locale, array $messages): static - { - $this->disallowMutation(__METHOD__); - - return parent::setMessages($locale, $messages); - } - - /** - * @codeCoverageIgnore - */ - public function setTranslations(array $messages): static - { - $this->disallowMutation(__METHOD__); - - return parent::setTranslations($messages); - } - - /** - * @codeCoverageIgnore - */ - public function setConfigCacheFactory(ConfigCacheFactoryInterface $configCacheFactory): void - { - $this->disallowMutation(__METHOD__); - - parent::setConfigCacheFactory($configCacheFactory); - } - - public function resetMessages(?string $locale = null): bool - { - $this->disallowMutation(__METHOD__); - - return parent::resetMessages($locale); - } - - /** - * @codeCoverageIgnore - */ - public function setFallbackLocales(array $locales): void - { - $this->disallowMutation(__METHOD__); - - parent::setFallbackLocales($locales); - } - - private function disallowMutation($method) - { - if ($this->constructed) { - throw new ImmutableException($method.' not allowed on '.static::class); - } - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/TranslatorStrongTypeInterface.php b/vendor/nesbot/carbon/src/Carbon/TranslatorStrongTypeInterface.php deleted file mode 100644 index 54a7980..0000000 --- a/vendor/nesbot/carbon/src/Carbon/TranslatorStrongTypeInterface.php +++ /dev/null @@ -1,24 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon; - -use Symfony\Component\Translation\MessageCatalogueInterface; - -/** - * Mark translator using strong type from symfony/translation >= 6. - */ -interface TranslatorStrongTypeInterface -{ - public function getFromCatalogue(MessageCatalogueInterface $catalogue, string $id, string $domain = 'messages'); -} diff --git a/vendor/nesbot/carbon/src/Carbon/Unit.php b/vendor/nesbot/carbon/src/Carbon/Unit.php deleted file mode 100644 index dc6b326..0000000 --- a/vendor/nesbot/carbon/src/Carbon/Unit.php +++ /dev/null @@ -1,119 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon; - -enum Unit: string -{ - case Microsecond = 'microsecond'; - case Millisecond = 'millisecond'; - case Second = 'second'; - case Minute = 'minute'; - case Hour = 'hour'; - case Day = 'day'; - case Week = 'week'; - case Month = 'month'; - case Quarter = 'quarter'; - case Year = 'year'; - case Decade = 'decade'; - case Century = 'century'; - case Millennium = 'millennium'; - - public static function toName(self|string $unit): string - { - return $unit instanceof self ? $unit->value : $unit; - } - - /** @internal */ - public static function toNameIfUnit(mixed $unit): mixed - { - return $unit instanceof self ? $unit->value : $unit; - } - - public static function fromName(string $name, ?string $locale = null): self - { - if ($locale !== null) { - $messages = Translator::get($locale)->getMessages($locale) ?? []; - - if ($messages !== []) { - $lowerName = mb_strtolower($name); - - foreach (self::cases() as $unit) { - foreach (['', '_from_now', '_ago', '_after', '_before'] as $suffix) { - $message = $messages[$unit->value.$suffix] ?? null; - - if (\is_string($message)) { - $words = explode('|', mb_strtolower(preg_replace( - '/[{\[\]].+?[}\[\]]/', - '', - str_replace(':count', '', $message), - ))); - - foreach ($words as $word) { - if (trim($word) === $lowerName) { - return $unit; - } - } - } - } - } - } - } - - return self::from(CarbonImmutable::singularUnit($name)); - } - - public function singular(?string $locale = null): string - { - if ($locale !== null) { - return trim(Translator::get($locale)->trans($this->value, [ - '%count%' => 1, - ':count' => 1, - ]), "1 \n\r\t\v\0"); - } - - return $this->value; - } - - public function plural(?string $locale = null): string - { - if ($locale !== null) { - return trim(Translator::get($locale)->trans($this->value, [ - '%count%' => 9, - ':count' => 9, - ]), "9 \n\r\t\v\0"); - } - - return CarbonImmutable::pluralUnit($this->value); - } - - public function interval(int|float $value = 1): CarbonInterval - { - return CarbonInterval::fromString("$value $this->name"); - } - - public function locale(string $locale): CarbonInterval - { - return $this->interval()->locale($locale); - } - - public function toPeriod(...$params): CarbonPeriod - { - return $this->interval()->toPeriod(...$params); - } - - public function stepBy(mixed $interval, Unit|string|null $unit = null): CarbonPeriod - { - return $this->interval()->stepBy($interval, $unit); - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/WeekDay.php b/vendor/nesbot/carbon/src/Carbon/WeekDay.php deleted file mode 100644 index 69f69ce..0000000 --- a/vendor/nesbot/carbon/src/Carbon/WeekDay.php +++ /dev/null @@ -1,68 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon; - -use Carbon\Exceptions\InvalidFormatException; - -enum WeekDay: int -{ - // Using constants is only safe starting from PHP 8.2 - case Sunday = 0; // CarbonInterface::SUNDAY - case Monday = 1; // CarbonInterface::MONDAY - case Tuesday = 2; // CarbonInterface::TUESDAY - case Wednesday = 3; // CarbonInterface::WEDNESDAY - case Thursday = 4; // CarbonInterface::THURSDAY - case Friday = 5; // CarbonInterface::FRIDAY - case Saturday = 6; // CarbonInterface::SATURDAY - - public static function int(self|int|null $value): ?int - { - return $value instanceof self ? $value->value : $value; - } - - public static function fromNumber(int $number): self - { - $day = $number % CarbonInterface::DAYS_PER_WEEK; - - return self::from($day + ($day < 0 ? CarbonInterface::DAYS_PER_WEEK : 0)); - } - - public static function fromName(string $name, ?string $locale = null): self - { - try { - return self::from(CarbonImmutable::parseFromLocale($name, $locale)->dayOfWeek); - } catch (InvalidFormatException $exception) { - // Possibly current language expect a dot after short name, but it's missing - if ($locale !== null && !mb_strlen($name) < 4 && !str_ends_with($name, '.')) { - try { - return self::from(CarbonImmutable::parseFromLocale($name.'.', $locale)->dayOfWeek); - } catch (InvalidFormatException) { - // Throw previous error - } - } - - throw $exception; - } - } - - public function next(?CarbonImmutable $now = null): CarbonImmutable - { - return $now?->modify($this->name) ?? new CarbonImmutable($this->name); - } - - public function locale(string $locale, ?CarbonImmutable $now = null): CarbonImmutable - { - return $this->next($now)->locale($locale); - } -} diff --git a/vendor/nesbot/carbon/src/Carbon/WrapperClock.php b/vendor/nesbot/carbon/src/Carbon/WrapperClock.php deleted file mode 100644 index 7fb184f..0000000 --- a/vendor/nesbot/carbon/src/Carbon/WrapperClock.php +++ /dev/null @@ -1,187 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Carbon; - -use DateTime; -use DateTimeImmutable; -use DateTimeInterface; -use DateTimeZone; -use Psr\Clock\ClockInterface as PsrClockInterface; -use RuntimeException; -use Symfony\Component\Clock\ClockInterface; - -final class WrapperClock implements ClockInterface -{ - public function __construct( - private PsrClockInterface|Factory|DateTimeInterface $currentClock, - ) { - } - - public function unwrap(): PsrClockInterface|Factory|DateTimeInterface - { - return $this->currentClock; - } - - public function getFactory(): Factory - { - if ($this->currentClock instanceof Factory) { - return $this->currentClock; - } - - if ($this->currentClock instanceof DateTime) { - $factory = new Factory(); - $factory->setTestNowAndTimezone($this->currentClock); - - return $factory; - } - - if ($this->currentClock instanceof DateTimeImmutable) { - $factory = new FactoryImmutable(); - $factory->setTestNowAndTimezone($this->currentClock); - - return $factory; - } - - $factory = new FactoryImmutable(); - $factory->setTestNowAndTimezone(fn () => $this->currentClock->now()); - - return $factory; - } - - private function nowRaw(): DateTimeInterface - { - if ($this->currentClock instanceof DateTimeInterface) { - return $this->currentClock; - } - - if ($this->currentClock instanceof Factory) { - return $this->currentClock->__call('now', []); - } - - return $this->currentClock->now(); - } - - public function now(): DateTimeImmutable - { - $now = $this->nowRaw(); - - return $now instanceof DateTimeImmutable - ? $now - : new CarbonImmutable($now); - } - - /** - * @template T of CarbonInterface - * - * @param class-string $class - * - * @return T - */ - public function nowAs(string $class, DateTimeZone|string|int|null $timezone = null): CarbonInterface - { - $now = $this->nowRaw(); - $date = $now instanceof $class ? $now : $class::instance($now); - - return $timezone === null ? $date : $date->setTimezone($timezone); - } - - public function nowAsCarbon(DateTimeZone|string|int|null $timezone = null): CarbonInterface - { - $now = $this->nowRaw(); - - return $now instanceof CarbonInterface - ? ($timezone === null ? $now : $now->setTimezone($timezone)) - : $this->dateAsCarbon($now, $timezone); - } - - private function dateAsCarbon(DateTimeInterface $date, DateTimeZone|string|int|null $timezone): CarbonInterface - { - return $date instanceof DateTimeImmutable - ? new CarbonImmutable($date, $timezone) - : new Carbon($date, $timezone); - } - - public function sleep(float|int $seconds): void - { - if ($seconds === 0 || $seconds === 0.0) { - return; - } - - if ($seconds < 0) { - throw new RuntimeException('Expected positive number of seconds, '.$seconds.' given'); - } - - if ($this->currentClock instanceof DateTimeInterface) { - $this->currentClock = $this->addSeconds($this->currentClock, $seconds); - - return; - } - - if ($this->currentClock instanceof ClockInterface) { - $this->currentClock->sleep($seconds); - - return; - } - - $this->currentClock = $this->addSeconds($this->currentClock->now(), $seconds); - } - - public function withTimeZone(DateTimeZone|string $timezone): static - { - if ($this->currentClock instanceof ClockInterface) { - return new self($this->currentClock->withTimeZone($timezone)); - } - - $now = $this->currentClock instanceof DateTimeInterface - ? $this->currentClock - : $this->currentClock->now(); - - if (!($now instanceof DateTimeImmutable)) { - $now = clone $now; - } - - if (\is_string($timezone)) { - $timezone = new DateTimeZone($timezone); - } - - return new self($now->setTimezone($timezone)); - } - - private function addSeconds(DateTimeInterface $date, float|int $seconds): DateTimeInterface - { - $secondsPerHour = CarbonInterface::SECONDS_PER_MINUTE * CarbonInterface::MINUTES_PER_HOUR; - $hours = number_format( - floor($seconds / $secondsPerHour), - thousands_separator: '', - ); - $microseconds = number_format( - ($seconds - $hours * $secondsPerHour) * CarbonInterface::MICROSECONDS_PER_SECOND, - thousands_separator: '', - ); - - if (!($date instanceof DateTimeImmutable)) { - $date = clone $date; - } - - if ($hours !== '0') { - $date = $date->modify("$hours hours"); - } - - if ($microseconds !== '0') { - $date = $date->modify("$microseconds microseconds"); - } - - return $date; - } -} diff --git a/vendor/psr/clock/CHANGELOG.md b/vendor/psr/clock/CHANGELOG.md deleted file mode 100644 index 3cd6b9b..0000000 --- a/vendor/psr/clock/CHANGELOG.md +++ /dev/null @@ -1,11 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file, in reverse chronological order by release. - -## 1.0.0 - -First stable release after PSR-20 acceptance - -## 0.1.0 - -First release diff --git a/vendor/psr/clock/LICENSE b/vendor/psr/clock/LICENSE deleted file mode 100644 index be68342..0000000 --- a/vendor/psr/clock/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2017 PHP Framework Interoperability Group - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/vendor/psr/clock/README.md b/vendor/psr/clock/README.md deleted file mode 100644 index 6ca877e..0000000 --- a/vendor/psr/clock/README.md +++ /dev/null @@ -1,61 +0,0 @@ -# PSR Clock - -This repository holds the interface for [PSR-20][psr-url]. - -Note that this is not a clock of its own. It is merely an interface that -describes a clock. See the specification for more details. - -## Installation - -```bash -composer require psr/clock -``` - -## Usage - -If you need a clock, you can use the interface like this: - -```php -clock = $clock; - } - - public function doSomething() - { - /** @var DateTimeImmutable $currentDateAndTime */ - $currentDateAndTime = $this->clock->now(); - // do something useful with that information - } -} -``` - -You can then pick one of the [implementations][implementation-url] of the interface to get a clock. - -If you want to implement the interface, you can require this package and -implement `Psr\Clock\ClockInterface` in your code. - -Don't forget to add `psr/clock-implementation` to your `composer.json`s `provides`-section like this: - -```json -{ - "provides": { - "psr/clock-implementation": "1.0" - } -} -``` - -And please read the [specification text][specification-url] for details on the interface. - -[psr-url]: https://www.php-fig.org/psr/psr-20 -[package-url]: https://packagist.org/packages/psr/clock -[implementation-url]: https://packagist.org/providers/psr/clock-implementation -[specification-url]: https://github.com/php-fig/fig-standards/blob/master/proposed/clock.md diff --git a/vendor/psr/clock/composer.json b/vendor/psr/clock/composer.json deleted file mode 100644 index 77992ed..0000000 --- a/vendor/psr/clock/composer.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "psr/clock", - "description": "Common interface for reading the clock.", - "keywords": ["psr", "psr-20", "time", "clock", "now"], - "homepage": "https://github.com/php-fig/clock", - "license": "MIT", - "authors": [ - { - "name": "PHP-FIG", - "homepage": "https://www.php-fig.org/" - } - ], - "require": { - "php": "^7.0 || ^8.0" - }, - "autoload": { - "psr-4": { - "Psr\\Clock\\": "src/" - } - } -} diff --git a/vendor/psr/clock/src/ClockInterface.php b/vendor/psr/clock/src/ClockInterface.php deleted file mode 100644 index 7b6d8d8..0000000 --- a/vendor/psr/clock/src/ClockInterface.php +++ /dev/null @@ -1,13 +0,0 @@ -=7.1", - "psr/http-message": "^1.0 || ^2.0" - }, - "autoload": { - "psr-4": { - "Psr\\Http\\Message\\": "src/" - } - }, - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - } -} diff --git a/vendor/psr/http-factory/src/RequestFactoryInterface.php b/vendor/psr/http-factory/src/RequestFactoryInterface.php deleted file mode 100644 index cb39a08..0000000 --- a/vendor/psr/http-factory/src/RequestFactoryInterface.php +++ /dev/null @@ -1,18 +0,0 @@ - `RequestInterface`, `ServerRequestInterface`, `ResponseInterface` extend `MessageInterface` because the `Request` and the `Response` are `HTTP Messages`. -> When using `ServerRequestInterface`, both `RequestInterface` and `Psr\Http\Message\MessageInterface` methods are considered. - diff --git a/vendor/psr/http-message/docs/PSR7-Usage.md b/vendor/psr/http-message/docs/PSR7-Usage.md deleted file mode 100644 index b6d048a..0000000 --- a/vendor/psr/http-message/docs/PSR7-Usage.md +++ /dev/null @@ -1,159 +0,0 @@ -### PSR-7 Usage - -All PSR-7 applications comply with these interfaces -They were created to establish a standard between middleware implementations. - -> `RequestInterface`, `ServerRequestInterface`, `ResponseInterface` extend `MessageInterface` because the `Request` and the `Response` are `HTTP Messages`. -> When using `ServerRequestInterface`, both `RequestInterface` and `Psr\Http\Message\MessageInterface` methods are considered. - - -The following examples will illustrate how basic operations are done in PSR-7. - -##### Examples - - -For this examples to work (at least) a PSR-7 implementation package is required. (eg: zendframework/zend-diactoros, guzzlehttp/psr7, slim/slim, etc) -All PSR-7 implementations should have the same behaviour. - -The following will be assumed: -`$request` is an object of `Psr\Http\Message\RequestInterface` and - -`$response` is an object implementing `Psr\Http\Message\RequestInterface` - - -### Working with HTTP Headers - -#### Adding headers to response: - -```php -$response->withHeader('My-Custom-Header', 'My Custom Message'); -``` - -#### Appending values to headers - -```php -$response->withAddedHeader('My-Custom-Header', 'The second message'); -``` - -#### Checking if header exists: - -```php -$request->hasHeader('My-Custom-Header'); // will return false -$response->hasHeader('My-Custom-Header'); // will return true -``` - -> Note: My-Custom-Header was only added in the Response - -#### Getting comma-separated values from a header (also applies to request) - -```php -// getting value from request headers -$request->getHeaderLine('Content-Type'); // will return: "text/html; charset=UTF-8" -// getting value from response headers -$response->getHeaderLine('My-Custom-Header'); // will return: "My Custom Message; The second message" -``` - -#### Getting array of value from a header (also applies to request) -```php -// getting value from request headers -$request->getHeader('Content-Type'); // will return: ["text/html", "charset=UTF-8"] -// getting value from response headers -$response->getHeader('My-Custom-Header'); // will return: ["My Custom Message", "The second message"] -``` - -#### Removing headers from HTTP Messages -```php -// removing a header from Request, removing deprecated "Content-MD5" header -$request->withoutHeader('Content-MD5'); - -// removing a header from Response -// effect: the browser won't know the size of the stream -// the browser will download the stream till it ends -$response->withoutHeader('Content-Length'); -``` - -### Working with HTTP Message Body - -When working with the PSR-7 there are two methods of implementation: -#### 1. Getting the body separately - -> This method makes the body handling easier to understand and is useful when repeatedly calling body methods. (You only call `getBody()` once). Using this method mistakes like `$response->write()` are also prevented. - -```php -$body = $response->getBody(); -// operations on body, eg. read, write, seek -// ... -// replacing the old body -$response->withBody($body); -// this last statement is optional as we working with objects -// in this case the "new" body is same with the "old" one -// the $body variable has the same value as the one in $request, only the reference is passed -``` - -#### 2. Working directly on response - -> This method is useful when only performing few operations as the `$request->getBody()` statement fragment is required - -```php -$response->getBody()->write('hello'); -``` - -### Getting the body contents - -The following snippet gets the contents of a stream contents. -> Note: Streams must be rewinded, if content was written into streams, it will be ignored when calling `getContents()` because the stream pointer is set to the last character, which is `\0` - meaning end of stream. -```php -$body = $response->getBody(); -$body->rewind(); // or $body->seek(0); -$bodyText = $body->getContents(); -``` -> Note: If `$body->seek(1)` is called before `$body->getContents()`, the first character will be ommited as the starting pointer is set to `1`, not `0`. This is why using `$body->rewind()` is recommended. - -### Append to body - -```php -$response->getBody()->write('Hello'); // writing directly -$body = $request->getBody(); // which is a `StreamInterface` -$body->write('xxxxx'); -``` - -### Prepend to body -Prepending is different when it comes to streams. The content must be copied before writing the content to be prepended. -The following example will explain the behaviour of streams. - -```php -// assuming our response is initially empty -$body = $repsonse->getBody(); -// writing the string "abcd" -$body->write('abcd'); - -// seeking to start of stream -$body->seek(0); -// writing 'ef' -$body->write('ef'); // at this point the stream contains "efcd" -``` - -#### Prepending by rewriting separately - -```php -// assuming our response body stream only contains: "abcd" -$body = $response->getBody(); -$body->rewind(); -$contents = $body->getContents(); // abcd -// seeking the stream to beginning -$body->rewind(); -$body->write('ef'); // stream contains "efcd" -$body->write($contents); // stream contains "efabcd" -``` - -> Note: `getContents()` seeks the stream while reading it, therefore if the second `rewind()` method call was not present the stream would have resulted in `abcdefabcd` because the `write()` method appends to stream if not preceeded by `rewind()` or `seek(0)`. - -#### Prepending by using contents as a string -```php -$body = $response->getBody(); -$body->rewind(); -$contents = $body->getContents(); // efabcd -$contents = 'ef'.$contents; -$body->rewind(); -$body->write($contents); -``` diff --git a/vendor/psr/http-message/src/MessageInterface.php b/vendor/psr/http-message/src/MessageInterface.php deleted file mode 100644 index 8cdb4ed..0000000 --- a/vendor/psr/http-message/src/MessageInterface.php +++ /dev/null @@ -1,189 +0,0 @@ -getHeaders() as $name => $values) { - * echo $name . ": " . implode(", ", $values); - * } - * - * // Emit headers iteratively: - * foreach ($message->getHeaders() as $name => $values) { - * foreach ($values as $value) { - * header(sprintf('%s: %s', $name, $value), false); - * } - * } - * - * While header names are not case-sensitive, getHeaders() will preserve the - * exact case in which headers were originally specified. - * - * @return string[][] Returns an associative array of the message's headers. Each - * key MUST be a header name, and each value MUST be an array of strings - * for that header. - */ - public function getHeaders(); - - /** - * Checks if a header exists by the given case-insensitive name. - * - * @param string $name Case-insensitive header field name. - * @return bool Returns true if any header names match the given header - * name using a case-insensitive string comparison. Returns false if - * no matching header name is found in the message. - */ - public function hasHeader(string $name); - - /** - * Retrieves a message header value by the given case-insensitive name. - * - * This method returns an array of all the header values of the given - * case-insensitive header name. - * - * If the header does not appear in the message, this method MUST return an - * empty array. - * - * @param string $name Case-insensitive header field name. - * @return string[] An array of string values as provided for the given - * header. If the header does not appear in the message, this method MUST - * return an empty array. - */ - public function getHeader(string $name); - - /** - * Retrieves a comma-separated string of the values for a single header. - * - * This method returns all of the header values of the given - * case-insensitive header name as a string concatenated together using - * a comma. - * - * NOTE: Not all header values may be appropriately represented using - * comma concatenation. For such headers, use getHeader() instead - * and supply your own delimiter when concatenating. - * - * If the header does not appear in the message, this method MUST return - * an empty string. - * - * @param string $name Case-insensitive header field name. - * @return string A string of values as provided for the given header - * concatenated together using a comma. If the header does not appear in - * the message, this method MUST return an empty string. - */ - public function getHeaderLine(string $name); - - /** - * Return an instance with the provided value replacing the specified header. - * - * While header names are case-insensitive, the casing of the header will - * be preserved by this function, and returned from getHeaders(). - * - * This method MUST be implemented in such a way as to retain the - * immutability of the message, and MUST return an instance that has the - * new and/or updated header and value. - * - * @param string $name Case-insensitive header field name. - * @param string|string[] $value Header value(s). - * @return static - * @throws \InvalidArgumentException for invalid header names or values. - */ - public function withHeader(string $name, $value); - - /** - * Return an instance with the specified header appended with the given value. - * - * Existing values for the specified header will be maintained. The new - * value(s) will be appended to the existing list. If the header did not - * exist previously, it will be added. - * - * This method MUST be implemented in such a way as to retain the - * immutability of the message, and MUST return an instance that has the - * new header and/or value. - * - * @param string $name Case-insensitive header field name to add. - * @param string|string[] $value Header value(s). - * @return static - * @throws \InvalidArgumentException for invalid header names or values. - */ - public function withAddedHeader(string $name, $value); - - /** - * Return an instance without the specified header. - * - * Header resolution MUST be done without case-sensitivity. - * - * This method MUST be implemented in such a way as to retain the - * immutability of the message, and MUST return an instance that removes - * the named header. - * - * @param string $name Case-insensitive header field name to remove. - * @return static - */ - public function withoutHeader(string $name); - - /** - * Gets the body of the message. - * - * @return StreamInterface Returns the body as a stream. - */ - public function getBody(); - - /** - * Return an instance with the specified message body. - * - * The body MUST be a StreamInterface object. - * - * This method MUST be implemented in such a way as to retain the - * immutability of the message, and MUST return a new instance that has the - * new body stream. - * - * @param StreamInterface $body Body. - * @return static - * @throws \InvalidArgumentException When the body is not valid. - */ - public function withBody(StreamInterface $body); -} diff --git a/vendor/psr/http-message/src/RequestInterface.php b/vendor/psr/http-message/src/RequestInterface.php deleted file mode 100644 index 38066df..0000000 --- a/vendor/psr/http-message/src/RequestInterface.php +++ /dev/null @@ -1,131 +0,0 @@ -getQuery()` - * or from the `QUERY_STRING` server param. - * - * @return array - */ - public function getQueryParams(); - - /** - * Return an instance with the specified query string arguments. - * - * These values SHOULD remain immutable over the course of the incoming - * request. They MAY be injected during instantiation, such as from PHP's - * $_GET superglobal, or MAY be derived from some other value such as the - * URI. In cases where the arguments are parsed from the URI, the data - * MUST be compatible with what PHP's parse_str() would return for - * purposes of how duplicate query parameters are handled, and how nested - * sets are handled. - * - * Setting query string arguments MUST NOT change the URI stored by the - * request, nor the values in the server params. - * - * This method MUST be implemented in such a way as to retain the - * immutability of the message, and MUST return an instance that has the - * updated query string arguments. - * - * @param array $query Array of query string arguments, typically from - * $_GET. - * @return static - */ - public function withQueryParams(array $query); - - /** - * Retrieve normalized file upload data. - * - * This method returns upload metadata in a normalized tree, with each leaf - * an instance of Psr\Http\Message\UploadedFileInterface. - * - * These values MAY be prepared from $_FILES or the message body during - * instantiation, or MAY be injected via withUploadedFiles(). - * - * @return array An array tree of UploadedFileInterface instances; an empty - * array MUST be returned if no data is present. - */ - public function getUploadedFiles(); - - /** - * Create a new instance with the specified uploaded files. - * - * This method MUST be implemented in such a way as to retain the - * immutability of the message, and MUST return an instance that has the - * updated body parameters. - * - * @param array $uploadedFiles An array tree of UploadedFileInterface instances. - * @return static - * @throws \InvalidArgumentException if an invalid structure is provided. - */ - public function withUploadedFiles(array $uploadedFiles); - - /** - * Retrieve any parameters provided in the request body. - * - * If the request Content-Type is either application/x-www-form-urlencoded - * or multipart/form-data, and the request method is POST, this method MUST - * return the contents of $_POST. - * - * Otherwise, this method may return any results of deserializing - * the request body content; as parsing returns structured content, the - * potential types MUST be arrays or objects only. A null value indicates - * the absence of body content. - * - * @return null|array|object The deserialized body parameters, if any. - * These will typically be an array or object. - */ - public function getParsedBody(); - - /** - * Return an instance with the specified body parameters. - * - * These MAY be injected during instantiation. - * - * If the request Content-Type is either application/x-www-form-urlencoded - * or multipart/form-data, and the request method is POST, use this method - * ONLY to inject the contents of $_POST. - * - * The data IS NOT REQUIRED to come from $_POST, but MUST be the results of - * deserializing the request body content. Deserialization/parsing returns - * structured data, and, as such, this method ONLY accepts arrays or objects, - * or a null value if nothing was available to parse. - * - * As an example, if content negotiation determines that the request data - * is a JSON payload, this method could be used to create a request - * instance with the deserialized parameters. - * - * This method MUST be implemented in such a way as to retain the - * immutability of the message, and MUST return an instance that has the - * updated body parameters. - * - * @param null|array|object $data The deserialized body data. This will - * typically be in an array or object. - * @return static - * @throws \InvalidArgumentException if an unsupported argument type is - * provided. - */ - public function withParsedBody($data); - - /** - * Retrieve attributes derived from the request. - * - * The request "attributes" may be used to allow injection of any - * parameters derived from the request: e.g., the results of path - * match operations; the results of decrypting cookies; the results of - * deserializing non-form-encoded message bodies; etc. Attributes - * will be application and request specific, and CAN be mutable. - * - * @return array Attributes derived from the request. - */ - public function getAttributes(); - - /** - * Retrieve a single derived request attribute. - * - * Retrieves a single derived request attribute as described in - * getAttributes(). If the attribute has not been previously set, returns - * the default value as provided. - * - * This method obviates the need for a hasAttribute() method, as it allows - * specifying a default value to return if the attribute is not found. - * - * @see getAttributes() - * @param string $name The attribute name. - * @param mixed $default Default value to return if the attribute does not exist. - * @return mixed - */ - public function getAttribute(string $name, $default = null); - - /** - * Return an instance with the specified derived request attribute. - * - * This method allows setting a single derived request attribute as - * described in getAttributes(). - * - * This method MUST be implemented in such a way as to retain the - * immutability of the message, and MUST return an instance that has the - * updated attribute. - * - * @see getAttributes() - * @param string $name The attribute name. - * @param mixed $value The value of the attribute. - * @return static - */ - public function withAttribute(string $name, $value); - - /** - * Return an instance that removes the specified derived request attribute. - * - * This method allows removing a single derived request attribute as - * described in getAttributes(). - * - * This method MUST be implemented in such a way as to retain the - * immutability of the message, and MUST return an instance that removes - * the attribute. - * - * @see getAttributes() - * @param string $name The attribute name. - * @return static - */ - public function withoutAttribute(string $name); -} diff --git a/vendor/psr/http-message/src/StreamInterface.php b/vendor/psr/http-message/src/StreamInterface.php deleted file mode 100644 index 5924663..0000000 --- a/vendor/psr/http-message/src/StreamInterface.php +++ /dev/null @@ -1,160 +0,0 @@ - - * [user-info@]host[:port] - * - * - * If the port component is not set or is the standard port for the current - * scheme, it SHOULD NOT be included. - * - * @see https://tools.ietf.org/html/rfc3986#section-3.2 - * @return string The URI authority, in "[user-info@]host[:port]" format. - */ - public function getAuthority(); - - /** - * Retrieve the user information component of the URI. - * - * If no user information is present, this method MUST return an empty - * string. - * - * If a user is present in the URI, this will return that value; - * additionally, if the password is also present, it will be appended to the - * user value, with a colon (":") separating the values. - * - * The trailing "@" character is not part of the user information and MUST - * NOT be added. - * - * @return string The URI user information, in "username[:password]" format. - */ - public function getUserInfo(); - - /** - * Retrieve the host component of the URI. - * - * If no host is present, this method MUST return an empty string. - * - * The value returned MUST be normalized to lowercase, per RFC 3986 - * Section 3.2.2. - * - * @see http://tools.ietf.org/html/rfc3986#section-3.2.2 - * @return string The URI host. - */ - public function getHost(); - - /** - * Retrieve the port component of the URI. - * - * If a port is present, and it is non-standard for the current scheme, - * this method MUST return it as an integer. If the port is the standard port - * used with the current scheme, this method SHOULD return null. - * - * If no port is present, and no scheme is present, this method MUST return - * a null value. - * - * If no port is present, but a scheme is present, this method MAY return - * the standard port for that scheme, but SHOULD return null. - * - * @return null|int The URI port. - */ - public function getPort(); - - /** - * Retrieve the path component of the URI. - * - * The path can either be empty or absolute (starting with a slash) or - * rootless (not starting with a slash). Implementations MUST support all - * three syntaxes. - * - * Normally, the empty path "" and absolute path "/" are considered equal as - * defined in RFC 7230 Section 2.7.3. But this method MUST NOT automatically - * do this normalization because in contexts with a trimmed base path, e.g. - * the front controller, this difference becomes significant. It's the task - * of the user to handle both "" and "/". - * - * The value returned MUST be percent-encoded, but MUST NOT double-encode - * any characters. To determine what characters to encode, please refer to - * RFC 3986, Sections 2 and 3.3. - * - * As an example, if the value should include a slash ("/") not intended as - * delimiter between path segments, that value MUST be passed in encoded - * form (e.g., "%2F") to the instance. - * - * @see https://tools.ietf.org/html/rfc3986#section-2 - * @see https://tools.ietf.org/html/rfc3986#section-3.3 - * @return string The URI path. - */ - public function getPath(); - - /** - * Retrieve the query string of the URI. - * - * If no query string is present, this method MUST return an empty string. - * - * The leading "?" character is not part of the query and MUST NOT be - * added. - * - * The value returned MUST be percent-encoded, but MUST NOT double-encode - * any characters. To determine what characters to encode, please refer to - * RFC 3986, Sections 2 and 3.4. - * - * As an example, if a value in a key/value pair of the query string should - * include an ampersand ("&") not intended as a delimiter between values, - * that value MUST be passed in encoded form (e.g., "%26") to the instance. - * - * @see https://tools.ietf.org/html/rfc3986#section-2 - * @see https://tools.ietf.org/html/rfc3986#section-3.4 - * @return string The URI query string. - */ - public function getQuery(); - - /** - * Retrieve the fragment component of the URI. - * - * If no fragment is present, this method MUST return an empty string. - * - * The leading "#" character is not part of the fragment and MUST NOT be - * added. - * - * The value returned MUST be percent-encoded, but MUST NOT double-encode - * any characters. To determine what characters to encode, please refer to - * RFC 3986, Sections 2 and 3.5. - * - * @see https://tools.ietf.org/html/rfc3986#section-2 - * @see https://tools.ietf.org/html/rfc3986#section-3.5 - * @return string The URI fragment. - */ - public function getFragment(); - - /** - * Return an instance with the specified scheme. - * - * This method MUST retain the state of the current instance, and return - * an instance that contains the specified scheme. - * - * Implementations MUST support the schemes "http" and "https" case - * insensitively, and MAY accommodate other schemes if required. - * - * An empty scheme is equivalent to removing the scheme. - * - * @param string $scheme The scheme to use with the new instance. - * @return static A new instance with the specified scheme. - * @throws \InvalidArgumentException for invalid or unsupported schemes. - */ - public function withScheme(string $scheme); - - /** - * Return an instance with the specified user information. - * - * This method MUST retain the state of the current instance, and return - * an instance that contains the specified user information. - * - * Password is optional, but the user information MUST include the - * user; an empty string for the user is equivalent to removing user - * information. - * - * @param string $user The user name to use for authority. - * @param null|string $password The password associated with $user. - * @return static A new instance with the specified user information. - */ - public function withUserInfo(string $user, ?string $password = null); - - /** - * Return an instance with the specified host. - * - * This method MUST retain the state of the current instance, and return - * an instance that contains the specified host. - * - * An empty host value is equivalent to removing the host. - * - * @param string $host The hostname to use with the new instance. - * @return static A new instance with the specified host. - * @throws \InvalidArgumentException for invalid hostnames. - */ - public function withHost(string $host); - - /** - * Return an instance with the specified port. - * - * This method MUST retain the state of the current instance, and return - * an instance that contains the specified port. - * - * Implementations MUST raise an exception for ports outside the - * established TCP and UDP port ranges. - * - * A null value provided for the port is equivalent to removing the port - * information. - * - * @param null|int $port The port to use with the new instance; a null value - * removes the port information. - * @return static A new instance with the specified port. - * @throws \InvalidArgumentException for invalid ports. - */ - public function withPort(?int $port); - - /** - * Return an instance with the specified path. - * - * This method MUST retain the state of the current instance, and return - * an instance that contains the specified path. - * - * The path can either be empty or absolute (starting with a slash) or - * rootless (not starting with a slash). Implementations MUST support all - * three syntaxes. - * - * If the path is intended to be domain-relative rather than path relative then - * it must begin with a slash ("/"). Paths not starting with a slash ("/") - * are assumed to be relative to some base path known to the application or - * consumer. - * - * Users can provide both encoded and decoded path characters. - * Implementations ensure the correct encoding as outlined in getPath(). - * - * @param string $path The path to use with the new instance. - * @return static A new instance with the specified path. - * @throws \InvalidArgumentException for invalid paths. - */ - public function withPath(string $path); - - /** - * Return an instance with the specified query string. - * - * This method MUST retain the state of the current instance, and return - * an instance that contains the specified query string. - * - * Users can provide both encoded and decoded query characters. - * Implementations ensure the correct encoding as outlined in getQuery(). - * - * An empty query string value is equivalent to removing the query string. - * - * @param string $query The query string to use with the new instance. - * @return static A new instance with the specified query string. - * @throws \InvalidArgumentException for invalid query strings. - */ - public function withQuery(string $query); - - /** - * Return an instance with the specified URI fragment. - * - * This method MUST retain the state of the current instance, and return - * an instance that contains the specified URI fragment. - * - * Users can provide both encoded and decoded fragment characters. - * Implementations ensure the correct encoding as outlined in getFragment(). - * - * An empty fragment value is equivalent to removing the fragment. - * - * @param string $fragment The fragment to use with the new instance. - * @return static A new instance with the specified fragment. - */ - public function withFragment(string $fragment); - - /** - * Return the string representation as a URI reference. - * - * Depending on which components of the URI are present, the resulting - * string is either a full URI or relative reference according to RFC 3986, - * Section 4.1. The method concatenates the various components of the URI, - * using the appropriate delimiters: - * - * - If a scheme is present, it MUST be suffixed by ":". - * - If an authority is present, it MUST be prefixed by "//". - * - The path can be concatenated without delimiters. But there are two - * cases where the path has to be adjusted to make the URI reference - * valid as PHP does not allow to throw an exception in __toString(): - * - If the path is rootless and an authority is present, the path MUST - * be prefixed by "/". - * - If the path is starting with more than one "/" and no authority is - * present, the starting slashes MUST be reduced to one. - * - If a query is present, it MUST be prefixed by "?". - * - If a fragment is present, it MUST be prefixed by "#". - * - * @see http://tools.ietf.org/html/rfc3986#section-4.1 - * @return string - */ - public function __toString(); -} diff --git a/vendor/psr/log/LICENSE b/vendor/psr/log/LICENSE deleted file mode 100644 index 474c952..0000000 --- a/vendor/psr/log/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2012 PHP Framework Interoperability Group - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/vendor/psr/log/README.md b/vendor/psr/log/README.md deleted file mode 100644 index a9f20c4..0000000 --- a/vendor/psr/log/README.md +++ /dev/null @@ -1,58 +0,0 @@ -PSR Log -======= - -This repository holds all interfaces/classes/traits related to -[PSR-3](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md). - -Note that this is not a logger of its own. It is merely an interface that -describes a logger. See the specification for more details. - -Installation ------------- - -```bash -composer require psr/log -``` - -Usage ------ - -If you need a logger, you can use the interface like this: - -```php -logger = $logger; - } - - public function doSomething() - { - if ($this->logger) { - $this->logger->info('Doing work'); - } - - try { - $this->doSomethingElse(); - } catch (Exception $exception) { - $this->logger->error('Oh no!', array('exception' => $exception)); - } - - // do something useful - } -} -``` - -You can then pick one of the implementations of the interface to get a logger. - -If you want to implement the interface, you can require this package and -implement `Psr\Log\LoggerInterface` in your code. Please read the -[specification text](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md) -for details. diff --git a/vendor/psr/log/composer.json b/vendor/psr/log/composer.json deleted file mode 100644 index 879fc6f..0000000 --- a/vendor/psr/log/composer.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "psr/log", - "description": "Common interface for logging libraries", - "keywords": ["psr", "psr-3", "log"], - "homepage": "https://github.com/php-fig/log", - "license": "MIT", - "authors": [ - { - "name": "PHP-FIG", - "homepage": "https://www.php-fig.org/" - } - ], - "require": { - "php": ">=8.0.0" - }, - "autoload": { - "psr-4": { - "Psr\\Log\\": "src" - } - }, - "extra": { - "branch-alias": { - "dev-master": "3.x-dev" - } - } -} diff --git a/vendor/psr/log/src/AbstractLogger.php b/vendor/psr/log/src/AbstractLogger.php deleted file mode 100644 index d60a091..0000000 --- a/vendor/psr/log/src/AbstractLogger.php +++ /dev/null @@ -1,15 +0,0 @@ -logger = $logger; - } -} diff --git a/vendor/psr/log/src/LoggerInterface.php b/vendor/psr/log/src/LoggerInterface.php deleted file mode 100644 index cb4cf64..0000000 --- a/vendor/psr/log/src/LoggerInterface.php +++ /dev/null @@ -1,98 +0,0 @@ -log(LogLevel::EMERGENCY, $message, $context); - } - - /** - * Action must be taken immediately. - * - * Example: Entire website down, database unavailable, etc. This should - * trigger the SMS alerts and wake you up. - */ - public function alert(string|\Stringable $message, array $context = []): void - { - $this->log(LogLevel::ALERT, $message, $context); - } - - /** - * Critical conditions. - * - * Example: Application component unavailable, unexpected exception. - */ - public function critical(string|\Stringable $message, array $context = []): void - { - $this->log(LogLevel::CRITICAL, $message, $context); - } - - /** - * Runtime errors that do not require immediate action but should typically - * be logged and monitored. - */ - public function error(string|\Stringable $message, array $context = []): void - { - $this->log(LogLevel::ERROR, $message, $context); - } - - /** - * Exceptional occurrences that are not errors. - * - * Example: Use of deprecated APIs, poor use of an API, undesirable things - * that are not necessarily wrong. - */ - public function warning(string|\Stringable $message, array $context = []): void - { - $this->log(LogLevel::WARNING, $message, $context); - } - - /** - * Normal but significant events. - */ - public function notice(string|\Stringable $message, array $context = []): void - { - $this->log(LogLevel::NOTICE, $message, $context); - } - - /** - * Interesting events. - * - * Example: User logs in, SQL logs. - */ - public function info(string|\Stringable $message, array $context = []): void - { - $this->log(LogLevel::INFO, $message, $context); - } - - /** - * Detailed debug information. - */ - public function debug(string|\Stringable $message, array $context = []): void - { - $this->log(LogLevel::DEBUG, $message, $context); - } - - /** - * Logs with an arbitrary level. - * - * @param mixed $level - * - * @throws \Psr\Log\InvalidArgumentException - */ - abstract public function log($level, string|\Stringable $message, array $context = []): void; -} diff --git a/vendor/psr/log/src/NullLogger.php b/vendor/psr/log/src/NullLogger.php deleted file mode 100644 index de0561e..0000000 --- a/vendor/psr/log/src/NullLogger.php +++ /dev/null @@ -1,26 +0,0 @@ -logger) { }` - * blocks. - */ -class NullLogger extends AbstractLogger -{ - /** - * Logs with an arbitrary level. - * - * @param mixed[] $context - * - * @throws \Psr\Log\InvalidArgumentException - */ - public function log($level, string|\Stringable $message, array $context = []): void - { - // noop - } -} diff --git a/vendor/psr/simple-cache/.editorconfig b/vendor/psr/simple-cache/.editorconfig deleted file mode 100644 index 48542cb..0000000 --- a/vendor/psr/simple-cache/.editorconfig +++ /dev/null @@ -1,12 +0,0 @@ -; This file is for unifying the coding style for different editors and IDEs. -; More information at http://editorconfig.org - -root = true - -[*] -charset = utf-8 -indent_size = 4 -indent_style = space -end_of_line = lf -insert_final_newline = true -trim_trailing_whitespace = true diff --git a/vendor/psr/simple-cache/LICENSE.md b/vendor/psr/simple-cache/LICENSE.md deleted file mode 100644 index e49a7c8..0000000 --- a/vendor/psr/simple-cache/LICENSE.md +++ /dev/null @@ -1,21 +0,0 @@ -# The MIT License (MIT) - -Copyright (c) 2016 PHP Framework Interoperability Group - -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in -> all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -> THE SOFTWARE. diff --git a/vendor/psr/simple-cache/README.md b/vendor/psr/simple-cache/README.md deleted file mode 100644 index 43641d1..0000000 --- a/vendor/psr/simple-cache/README.md +++ /dev/null @@ -1,8 +0,0 @@ -PHP FIG Simple Cache PSR -======================== - -This repository holds all interfaces related to PSR-16. - -Note that this is not a cache implementation of its own. It is merely an interface that describes a cache implementation. See [the specification](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-16-simple-cache.md) for more details. - -You can find implementations of the specification by looking for packages providing the [psr/simple-cache-implementation](https://packagist.org/providers/psr/simple-cache-implementation) virtual package. diff --git a/vendor/psr/simple-cache/composer.json b/vendor/psr/simple-cache/composer.json deleted file mode 100644 index f307a84..0000000 --- a/vendor/psr/simple-cache/composer.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "psr/simple-cache", - "description": "Common interfaces for simple caching", - "keywords": ["psr", "psr-16", "cache", "simple-cache", "caching"], - "license": "MIT", - "authors": [ - { - "name": "PHP-FIG", - "homepage": "https://www.php-fig.org/" - } - ], - "require": { - "php": ">=8.0.0" - }, - "autoload": { - "psr-4": { - "Psr\\SimpleCache\\": "src/" - } - }, - "extra": { - "branch-alias": { - "dev-master": "3.0.x-dev" - } - } -} diff --git a/vendor/psr/simple-cache/src/CacheException.php b/vendor/psr/simple-cache/src/CacheException.php deleted file mode 100644 index f61b24c..0000000 --- a/vendor/psr/simple-cache/src/CacheException.php +++ /dev/null @@ -1,10 +0,0 @@ - $keys A list of keys that can be obtained in a single operation. - * @param mixed $default Default value to return for keys that do not exist. - * - * @return iterable A list of key => value pairs. Cache keys that do not exist or are stale will have $default as value. - * - * @throws \Psr\SimpleCache\InvalidArgumentException - * MUST be thrown if $keys is neither an array nor a Traversable, - * or if any of the $keys are not a legal value. - */ - public function getMultiple(iterable $keys, mixed $default = null): iterable; - - /** - * Persists a set of key => value pairs in the cache, with an optional TTL. - * - * @param iterable $values A list of key => value pairs for a multiple-set operation. - * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and - * the driver supports TTL then the library may set a default value - * for it or let the driver take care of that. - * - * @return bool True on success and false on failure. - * - * @throws \Psr\SimpleCache\InvalidArgumentException - * MUST be thrown if $values is neither an array nor a Traversable, - * or if any of the $values are not a legal value. - */ - public function setMultiple(iterable $values, null|int|\DateInterval $ttl = null): bool; - - /** - * Deletes multiple cache items in a single operation. - * - * @param iterable $keys A list of string-based keys to be deleted. - * - * @return bool True if the items were successfully removed. False if there was an error. - * - * @throws \Psr\SimpleCache\InvalidArgumentException - * MUST be thrown if $keys is neither an array nor a Traversable, - * or if any of the $keys are not a legal value. - */ - public function deleteMultiple(iterable $keys): bool; - - /** - * Determines whether an item is present in the cache. - * - * NOTE: It is recommended that has() is only to be used for cache warming type purposes - * and not to be used within your live applications operations for get/set, as this method - * is subject to a race condition where your has() will return true and immediately after, - * another script can remove it making the state of your app out of date. - * - * @param string $key The cache item key. - * - * @return bool - * - * @throws \Psr\SimpleCache\InvalidArgumentException - * MUST be thrown if the $key string is not a legal value. - */ - public function has(string $key): bool; -} diff --git a/vendor/psr/simple-cache/src/InvalidArgumentException.php b/vendor/psr/simple-cache/src/InvalidArgumentException.php deleted file mode 100644 index 6a9524a..0000000 --- a/vendor/psr/simple-cache/src/InvalidArgumentException.php +++ /dev/null @@ -1,13 +0,0 @@ -= 5.3. - -[![Build Status](https://travis-ci.org/ralouphie/getallheaders.svg?branch=master)](https://travis-ci.org/ralouphie/getallheaders) -[![Coverage Status](https://coveralls.io/repos/ralouphie/getallheaders/badge.png?branch=master)](https://coveralls.io/r/ralouphie/getallheaders?branch=master) -[![Latest Stable Version](https://poser.pugx.org/ralouphie/getallheaders/v/stable.png)](https://packagist.org/packages/ralouphie/getallheaders) -[![Latest Unstable Version](https://poser.pugx.org/ralouphie/getallheaders/v/unstable.png)](https://packagist.org/packages/ralouphie/getallheaders) -[![License](https://poser.pugx.org/ralouphie/getallheaders/license.png)](https://packagist.org/packages/ralouphie/getallheaders) - - -This is a simple polyfill for [`getallheaders()`](http://www.php.net/manual/en/function.getallheaders.php). - -## Install - -For PHP version **`>= 5.6`**: - -``` -composer require ralouphie/getallheaders -``` - -For PHP version **`< 5.6`**: - -``` -composer require ralouphie/getallheaders "^2" -``` diff --git a/vendor/ralouphie/getallheaders/composer.json b/vendor/ralouphie/getallheaders/composer.json deleted file mode 100644 index de8ce62..0000000 --- a/vendor/ralouphie/getallheaders/composer.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "ralouphie/getallheaders", - "description": "A polyfill for getallheaders.", - "license": "MIT", - "authors": [ - { - "name": "Ralph Khattar", - "email": "ralph.khattar@gmail.com" - } - ], - "require": { - "php": ">=5.6" - }, - "require-dev": { - "phpunit/phpunit": "^5 || ^6.5", - "php-coveralls/php-coveralls": "^2.1" - }, - "autoload": { - "files": ["src/getallheaders.php"] - }, - "autoload-dev": { - "psr-4": { - "getallheaders\\Tests\\": "tests/" - } - } -} diff --git a/vendor/ralouphie/getallheaders/src/getallheaders.php b/vendor/ralouphie/getallheaders/src/getallheaders.php deleted file mode 100644 index c7285a5..0000000 --- a/vendor/ralouphie/getallheaders/src/getallheaders.php +++ /dev/null @@ -1,46 +0,0 @@ - 'Content-Type', - 'CONTENT_LENGTH' => 'Content-Length', - 'CONTENT_MD5' => 'Content-Md5', - ); - - foreach ($_SERVER as $key => $value) { - if (substr($key, 0, 5) === 'HTTP_') { - $key = substr($key, 5); - if (!isset($copy_server[$key]) || !isset($_SERVER[$key])) { - $key = str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', $key)))); - $headers[$key] = $value; - } - } elseif (isset($copy_server[$key])) { - $headers[$copy_server[$key]] = $value; - } - } - - if (!isset($headers['Authorization'])) { - if (isset($_SERVER['REDIRECT_HTTP_AUTHORIZATION'])) { - $headers['Authorization'] = $_SERVER['REDIRECT_HTTP_AUTHORIZATION']; - } elseif (isset($_SERVER['PHP_AUTH_USER'])) { - $basic_pass = isset($_SERVER['PHP_AUTH_PW']) ? $_SERVER['PHP_AUTH_PW'] : ''; - $headers['Authorization'] = 'Basic ' . base64_encode($_SERVER['PHP_AUTH_USER'] . ':' . $basic_pass); - } elseif (isset($_SERVER['PHP_AUTH_DIGEST'])) { - $headers['Authorization'] = $_SERVER['PHP_AUTH_DIGEST']; - } - } - - return $headers; - } - -} diff --git a/vendor/ratchet/pawl/.github/workflows/ci.yml b/vendor/ratchet/pawl/.github/workflows/ci.yml deleted file mode 100644 index a13804b..0000000 --- a/vendor/ratchet/pawl/.github/workflows/ci.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: CI - -on: - push: - pull_request: - -jobs: - PHPUnit: - name: PHPUnit (PHP ${{ matrix.php }}) - runs-on: ubuntu-20.04 - strategy: - matrix: - php: - - 8.0 - - 7.4 - - 7.3 - - 7.2 - - 7.1 - - 7.0 - - 5.6 - - 5.5 - - 5.4 - steps: - - uses: actions/checkout@v2 - - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php }} - coverage: xdebug - - run: composer install - - run: vendor/bin/phpunit --coverage-text - if: ${{ matrix.php >= 7.3 }} - - run: vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy - if: ${{ matrix.php < 7.3 }} - - PHPUnit-hhvm: - name: PHPUnit (HHVM) - runs-on: ubuntu-18.04 - continue-on-error: true - steps: - - uses: actions/checkout@v2 - - uses: azjezz/setup-hhvm@v1 - with: - version: lts-3.30 - - run: hhvm $(which composer) install - - run: hhvm vendor/bin/phpunit diff --git a/vendor/ratchet/pawl/.gitignore b/vendor/ratchet/pawl/.gitignore deleted file mode 100644 index c14157a..0000000 --- a/vendor/ratchet/pawl/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -/composer.lock -/phpunit.xml -/reports -/vendor/ -/tests/autobahn/reports diff --git a/vendor/ratchet/pawl/LICENSE b/vendor/ratchet/pawl/LICENSE deleted file mode 100644 index 91b3b9a..0000000 --- a/vendor/ratchet/pawl/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2014 Chris Boden - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is furnished -to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/vendor/ratchet/pawl/README.md b/vendor/ratchet/pawl/README.md deleted file mode 100644 index 15b1039..0000000 --- a/vendor/ratchet/pawl/README.md +++ /dev/null @@ -1,84 +0,0 @@ -# Pawl - -[![Autobahn Testsuite](https://img.shields.io/badge/Autobahn-passing-brightgreen.svg)](http://socketo.me/reports/pawl/index.html) -[![CI status](https://github.com/ratchetphp/Pawl/workflows/CI/badge.svg)](https://github.com/ratchetphp/Pawl/actions) - -An asynchronous WebSocket client in PHP - -#### Install via composer: - composer require ratchet/pawl - -#### Usage -Pawl as a standalone app: Connect to an echo server, send a message, display output, close connection: - -```php -then(function($conn) { - $conn->on('message', function($msg) use ($conn) { - echo "Received: {$msg}\n"; - $conn->close(); - }); - - $conn->send('Hello World!'); -}, function ($e) { - echo "Could not connect: {$e->getMessage()}\n"; -}); -``` - -#### Classes - -There are 3 primary classes to be aware of and use in Pawl: - -##### Connector: - -Makes HTTP requests to servers returning a promise that, if successful, will resolve to a WebSocket object. - A connector is configured via its constructor and a request is made by invoking the class. Multiple connections can be established through a single connector. The invoke mehtod has 3 parameters: -* **$url**: String; A valid uri string (starting with ws:// or wss://) to connect to (also accepts PSR-7 Uri object) -* **$subProtocols**: Array; An optional indexed array of WebSocket sub-protocols to negotiate to the server with. The connection will fail if the client and server can not agree on one if any are provided -* **$headers**: Array; An optional associative array of additional headers requests to use when initiating the handshake. A common header to set is `Origin` - -##### WebSocket: - -This is the object used to interact with a WebSocket server. It has two methods: `send` and `close`. -It has two public properties: `request` and `response` which are PSR-7 objects representing the client and server side HTTP handshake headers used to establish the WebSocket connection. - -##### Message: - -This is the object received from a WebSocket server. It has a `__toString` method which is how most times you will want to access the data received. -If you need to do binary messaging you will most likely need to use methods on the object. - -#### Example - -A more in-depth example using explicit interfaces: Requesting sub-protocols, and sending custom headers while using a specific React Event Loop: -```php - '8.8.8.8', - 'timeout' => 10 -]); -$loop = \React\EventLoop\Loop::get(); -$connector = new \Ratchet\Client\Connector($loop, $reactConnector); - -$connector('ws://127.0.0.1:9000', ['protocol1', 'subprotocol2'], ['Origin' => 'http://localhost']) -->then(function(\Ratchet\Client\WebSocket $conn) { - $conn->on('message', function(\Ratchet\RFC6455\Messaging\MessageInterface $msg) use ($conn) { - echo "Received: {$msg}\n"; - $conn->close(); - }); - - $conn->on('close', function($code = null, $reason = null) { - echo "Connection closed ({$code} - {$reason})\n"; - }); - - $conn->send('Hello World!'); -}, function(\Exception $e) use ($loop) { - echo "Could not connect: {$e->getMessage()}\n"; - $loop->stop(); -}); -``` diff --git a/vendor/ratchet/pawl/composer.json b/vendor/ratchet/pawl/composer.json deleted file mode 100644 index d7a09ec..0000000 --- a/vendor/ratchet/pawl/composer.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "ratchet/pawl" - , "description": "Asynchronous WebSocket client" - , "keywords": ["WebSocket", "client", "Ratchet", "async", "websocket client"] - , "license": "MIT" - , "autoload": { - "psr-4": { - "Ratchet\\Client\\": "src" - } - , "files": ["src/functions_include.php"] - } - , "require": { - "php": ">=5.4" - , "evenement/evenement": "^3.0 || ^2.0" - , "guzzlehttp/psr7": "^2.0 || ^1.7" - , "ratchet/rfc6455": "^0.3.1" - , "react/socket": "^1.9" - } - , "require-dev": { - "phpunit/phpunit": "^9.3 || ^5.7 || ^4.8" - } - , "suggest": { - "reactivex/rxphp": "~2.0" - } -} diff --git a/vendor/ratchet/pawl/phpunit.xml.dist b/vendor/ratchet/pawl/phpunit.xml.dist deleted file mode 100644 index 08c041f..0000000 --- a/vendor/ratchet/pawl/phpunit.xml.dist +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - ./tests/ - - - - - ./src/ - - - diff --git a/vendor/ratchet/pawl/phpunit.xml.legacy b/vendor/ratchet/pawl/phpunit.xml.legacy deleted file mode 100644 index dd7205b..0000000 --- a/vendor/ratchet/pawl/phpunit.xml.legacy +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - ./tests/ - - - - - ./src/ - - - diff --git a/vendor/ratchet/pawl/src/Connector.php b/vendor/ratchet/pawl/src/Connector.php deleted file mode 100644 index 456a3d1..0000000 --- a/vendor/ratchet/pawl/src/Connector.php +++ /dev/null @@ -1,156 +0,0 @@ -_loop = $loop ?: Loop::get(); - - if (null === $connector) { - $connector = new \React\Socket\Connector([ - 'timeout' => 20 - ], $this->_loop); - } - - $this->_connector = $connector; - $this->_negotiator = new ClientNegotiator; - } - - /** - * @param string $url - * @param array $subProtocols - * @param array $headers - * @return \React\Promise\PromiseInterface - */ - public function __invoke($url, array $subProtocols = [], array $headers = []) { - try { - $request = $this->generateRequest($url, $subProtocols, $headers); - $uri = $request->getUri(); - } catch (\Exception $e) { - return new RejectedPromise($e); - } - $secure = 'wss' === substr($url, 0, 3); - $connector = $this->_connector; - - $port = $uri->getPort() ?: ($secure ? 443 : 80); - - $scheme = $secure ? 'tls' : 'tcp'; - - $uriString = $scheme . '://' . $uri->getHost() . ':' . $port; - - $connecting = $connector->connect($uriString); - - $futureWsConn = new Deferred(function ($_, $reject) use ($url, $connecting) { - $reject(new \RuntimeException( - 'Connection to ' . $url . ' cancelled during handshake' - )); - - // either close active connection or cancel pending connection attempt - $connecting->then(function (ConnectionInterface $connection) { - $connection->close(); - }); - $connecting->cancel(); - }); - - $connecting->then(function(ConnectionInterface $conn) use ($request, $subProtocols, $futureWsConn) { - $earlyClose = function() use ($futureWsConn) { - $futureWsConn->reject(new \RuntimeException('Connection closed before handshake')); - }; - - $stream = $conn; - - $stream->on('close', $earlyClose); - $futureWsConn->promise()->then(function() use ($stream, $earlyClose) { - $stream->removeListener('close', $earlyClose); - }); - - $buffer = ''; - $headerParser = function($data) use ($stream, &$headerParser, &$buffer, $futureWsConn, $request, $subProtocols) { - $buffer .= $data; - if (false == strpos($buffer, "\r\n\r\n")) { - return; - } - - $stream->removeListener('data', $headerParser); - - $response = gPsr\Message::parseResponse($buffer); - - if (!$this->_negotiator->validateResponse($request, $response)) { - $futureWsConn->reject(new \DomainException(gPsr\Message::toString($response))); - $stream->close(); - - return; - } - - $acceptedProtocol = $response->getHeader('Sec-WebSocket-Protocol'); - if ((count($subProtocols) > 0) && 1 !== count(array_intersect($subProtocols, $acceptedProtocol))) { - $futureWsConn->reject(new \DomainException('Server did not respond with an expected Sec-WebSocket-Protocol')); - $stream->close(); - - return; - } - - $futureWsConn->resolve(new WebSocket($stream, $response, $request)); - - $futureWsConn->promise()->then(function(WebSocket $conn) use ($stream) { - $stream->emit('data', [$conn->response->getBody(), $stream]); - }); - }; - - $stream->on('data', $headerParser); - $stream->write(gPsr\Message::toString($request)); - }, array($futureWsConn, 'reject')); - - return $futureWsConn->promise(); - } - - /** - * @param string $url - * @param array $subProtocols - * @param array $headers - * @throws \InvalidArgumentException - * @return \Psr\Http\Message\RequestInterface - */ - protected function generateRequest($url, array $subProtocols, array $headers) { - $uri = gPsr\Utils::uriFor($url); - - $scheme = $uri->getScheme(); - - if (!in_array($scheme, ['ws', 'wss'])) { - throw new \InvalidArgumentException(sprintf('Cannot connect to invalid URL (%s)', $url)); - } - - $uri = $uri->withScheme('wss' === $scheme ? 'HTTPS' : 'HTTP'); - - $headers += ['User-Agent' => 'Ratchet-Pawl/0.4.1']; - - $request = array_reduce(array_keys($headers), function(RequestInterface $request, $header) use ($headers) { - return $request->withHeader($header, $headers[$header]); - }, $this->_negotiator->generateRequest($uri)); - - if (!$request->getHeader('Origin')) { - $request = $request->withHeader('Origin', str_replace('ws', 'http', $scheme) . '://' . $uri->getHost()); - } - - if (count($subProtocols) > 0) { - $protocols = implode(',', $subProtocols); - if ($protocols != "") { - $request = $request->withHeader('Sec-WebSocket-Protocol', $protocols); - } - } - - return $request; - } -} diff --git a/vendor/ratchet/pawl/src/WebSocket.php b/vendor/ratchet/pawl/src/WebSocket.php deleted file mode 100755 index 9065bfe..0000000 --- a/vendor/ratchet/pawl/src/WebSocket.php +++ /dev/null @@ -1,157 +0,0 @@ -_stream = $stream; - $this->response = $response; - $this->request = $request; - - $self = $this; - $this->_close = function($code = null, $reason = null) use ($self) { - static $sent = false; - - if ($sent) { - return; - } - $sent = true; - - $self->emit('close', [$code, $reason, $self]); - }; - - $reusableUAException = new \UnderflowException; - - $streamer = new MessageBuffer( - new CloseFrameChecker, - function(MessageInterface $msg) { - $this->emit('message', [$msg, $this]); - }, - function(FrameInterface $frame) use (&$streamer) { - switch ($frame->getOpcode()) { - case Frame::OP_CLOSE: - $frameContents = $frame->getPayload(); - - $reason = ''; - $code = unpack('n', substr($frameContents, 0, 2)); - $code = reset($code); - - if (($frameLen = strlen($frameContents)) > 2) { - $reason = substr($frameContents, 2, $frameLen); - } - - $closeFn = $this->_close; - $closeFn($code, $reason); - - return $this->_stream->end($streamer->newFrame($frame->getPayload(), true, Frame::OP_CLOSE)->maskPayload()->getContents()); - case Frame::OP_PING: - $this->emit('ping', [$frame, $this]); - return $this->send($streamer->newFrame($frame->getPayload(), true, Frame::OP_PONG)); - case Frame::OP_PONG: - return $this->emit('pong', [$frame, $this]); - default: - return $this->close(Frame::CLOSE_PROTOCOL); - } - }, - false, - function() use ($reusableUAException) { - return $reusableUAException; - } - ); - - $stream->on('data', [$streamer, 'onData']); - - $stream->on('close', function () { - $close = $this->_close; - $close(Frame::CLOSE_ABNORMAL, 'Underlying connection closed'); - }); - - $stream->on('error', function($error) { - $this->emit('error', [$error, $this]); - }); - - $stream->on('drain', function () { - $this->emit('drain'); - }); - } - - public function send($msg) { - if ($msg instanceof MessageInterface) { - foreach ($msg as $frame) { - $frame->maskPayload(); - } - } else { - if (!($msg instanceof Frame)) { - $msg = new Frame($msg); - } - $msg->maskPayload(); - } - - return $this->_stream->write($msg->getContents()); - } - - public function close($code = 1000, $reason = '') { - $frame = new Frame(pack('n', $code) . $reason, true, Frame::OP_CLOSE); - $frame->maskPayload(); - $this->_stream->write($frame->getContents()); - - $closeFn = $this->_close; - $closeFn($code, $reason); - - $this->_stream->end(); - } - - public function pause() - { - $this->_stream->pause(); - } - - public function resume() - { - $this->_stream->resume(); - } -} diff --git a/vendor/ratchet/pawl/src/functions.php b/vendor/ratchet/pawl/src/functions.php deleted file mode 100644 index 373afe4..0000000 --- a/vendor/ratchet/pawl/src/functions.php +++ /dev/null @@ -1,17 +0,0 @@ - - */ -function connect($url, array $subProtocols = [], $headers = [], LoopInterface $loop = null) { - $connector = new Connector($loop); - $connection = $connector($url, $subProtocols, $headers); - - return $connection; -} diff --git a/vendor/ratchet/pawl/src/functions_include.php b/vendor/ratchet/pawl/src/functions_include.php deleted file mode 100644 index e964bcd..0000000 --- a/vendor/ratchet/pawl/src/functions_include.php +++ /dev/null @@ -1,5 +0,0 @@ -then(function(WebSocket $conn) { - $futureNum = new Deferred; - - $conn->on('message', function($msg) use ($futureNum) { - $futureNum->resolve($msg); - }); - - return $futureNum->promise(); - }, function($e) { - echo "Could not connect to test server: {$e->getMessage()}\n"; - })->then(function($numOfCases) use ($connector) { - echo "Running {$numOfCases} test cases\n\n"; - - $allCases = new Deferred; - - $i = 0; - - $runNextCase = function() use (&$runNextCase, &$i, $numOfCases, $allCases, $connector) { - $i++; - - if ($i > (int)$numOfCases->getPayload()) { - $allCases->resolve(); - - return; - } - - echo "."; - - $connector("/runCase?case={$i}&agent=" . AGENT)->then(function(WebSocket $conn) use ($runNextCase) { - $conn->on('message', function($msg, $conn) { - $conn->send($msg); - }); - - $conn->on('close', $runNextCase); - }); - }; - - $runNextCase(); - - return $allCases->promise(); - })->then(function() use ($connector) { - $connector('/updateReports?agent=' . AGENT)->then(function(WebSocket $conn) { - echo "\nDone!\n"; - $conn->on('close', function () { - \React\EventLoop\Loop::stop(); - }); - }); - }); diff --git a/vendor/ratchet/pawl/tests/unit/ConnectorTest.php b/vendor/ratchet/pawl/tests/unit/ConnectorTest.php deleted file mode 100644 index c560691..0000000 --- a/vendor/ratchet/pawl/tests/unit/ConnectorTest.php +++ /dev/null @@ -1,117 +0,0 @@ -setAccessible(true); - $loop = $ref->getValue($factory); - - $this->assertInstanceOf('React\EventLoop\LoopInterface', $loop); - } - - public function uriDataProvider() { - return [ - ['ws://127.0.0.1', 'tcp://127.0.0.1:80'], - ['wss://127.0.0.1', 'tls://127.0.0.1:443'], - ['ws://127.0.0.1:1234', 'tcp://127.0.0.1:1234'], - ['wss://127.0.0.1:4321', 'tls://127.0.0.1:4321'] - ]; - } - - /** - * @dataProvider uriDataProvider - */ - public function testSecureConnectionUsesTlsScheme($uri, $expectedConnectorUri) { - $loop = Loop::get(); - - $connector = $this->getMockBuilder('React\Socket\ConnectorInterface')->getMock(); - - $connector->expects($this->once()) - ->method('connect') - ->with($this->callback(function ($uri) use ($expectedConnectorUri) { - return $uri === $expectedConnectorUri; - })) - // reject the promise so that we don't have to mock a connection here - ->willReturn(new RejectedPromise(new Exception(''))); - - $pawlConnector = new Connector($loop, $connector); - - $pawlConnector($uri); - } - - public function testConnectorRejectsWhenUnderlyingSocketConnectorRejects() - { - $exception = new RuntimeException('Connection failed'); - - $loop = $this->getMockBuilder('React\EventLoop\LoopInterface')->getMock(); - $connector = $this->getMockBuilder('React\Socket\ConnectorInterface')->getMock(); - $connector->expects($this->once())->method('connect')->willReturn(\React\Promise\reject($exception)); - - $pawlConnector = new Connector($loop, $connector); - - $promise = $pawlConnector('ws://localhost'); - - $actual = null; - $promise->then(null, function ($reason) use (&$actual) { - $actual = $reason; - }); - $this->assertSame($exception, $actual); - } - - public function testCancelConnectorShouldCancelUnderlyingSocketConnectorWhenSocketConnectionIsPending() - { - $promise = new Promise(function () { }, function () use (&$cancelled) { - ++$cancelled; - }); - - $loop = $this->getMockBuilder('React\EventLoop\LoopInterface')->getMock(); - $connector = $this->getMockBuilder('React\Socket\ConnectorInterface')->getMock(); - $connector->expects($this->once())->method('connect')->willReturn($promise); - - $pawlConnector = new Connector($loop, $connector); - - $promise = $pawlConnector('ws://localhost'); - - $this->assertNull($cancelled); - $promise->cancel(); - $this->assertEquals(1, $cancelled); - - $message = null; - $promise->then(null, function ($reason) use (&$message) { - $message = $reason->getMessage(); - }); - $this->assertEquals('Connection to ws://localhost cancelled during handshake', $message); - } - - public function testCancelConnectorShouldCloseUnderlyingSocketConnectionWhenHandshakeIsPending() - { - $connection = $this->getMockBuilder('React\Socket\ConnectionInterface')->getMock(); - $connection->expects($this->once())->method('close'); - - $loop = $this->getMockBuilder('React\EventLoop\LoopInterface')->getMock(); - $connector = $this->getMockBuilder('React\Socket\ConnectorInterface')->getMock(); - $connector->expects($this->once())->method('connect')->willReturn(\React\Promise\resolve($connection)); - - $pawlConnector = new Connector($loop, $connector); - - $promise = $pawlConnector('ws://localhost'); - - $promise->cancel(); - - $message = null; - $promise->then(null, function ($reason) use (&$message) { - $message = $reason->getMessage(); - }); - $this->assertEquals('Connection to ws://localhost cancelled during handshake', $message); - } -} diff --git a/vendor/ratchet/pawl/tests/unit/RequestUriTest.php b/vendor/ratchet/pawl/tests/unit/RequestUriTest.php deleted file mode 100644 index 9b78553..0000000 --- a/vendor/ratchet/pawl/tests/unit/RequestUriTest.php +++ /dev/null @@ -1,39 +0,0 @@ -getMethod($methodName); - $method->setAccessible(true); - return $method; - } - - function uriDataProvider() { - return [ - ['ws://127.0.0.1/bla', 'http://127.0.0.1/bla'], - ['wss://127.0.0.1/bla', 'https://127.0.0.1/bla'], - ['ws://127.0.0.1:1234/bla', 'http://127.0.0.1:1234/bla'], - ['wss://127.0.0.1:4321/bla', 'https://127.0.0.1:4321/bla'] - ]; - } - - /** - * @dataProvider uriDataProvider - */ - function testGeneratedRequestUri($uri, $expectedRequestUri) { - $connector = new Connector(); - - $generateRequest = self::getPrivateClassMethod('\Ratchet\Client\Connector', 'generateRequest'); - $request = $generateRequest->invokeArgs($connector, [$uri, [], []]); - - $this->assertEquals((string)$request->getUri(), $expectedRequestUri); - } -} \ No newline at end of file diff --git a/vendor/ratchet/rfc6455/.github/workflows/ci.yml b/vendor/ratchet/rfc6455/.github/workflows/ci.yml deleted file mode 100644 index fb3698d..0000000 --- a/vendor/ratchet/rfc6455/.github/workflows/ci.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: CI - -on: - push: - pull_request: - -jobs: - PHPUnit: - name: PHPUnit (PHP ${{ matrix.php }})(${{ matrix.env }}) - runs-on: ubuntu-20.04 - strategy: - matrix: - env: - - client - - server - php: - - 7.4 - - 7.3 - - 7.2 - - 7.1 - - 7.0 - - 5.6 - steps: - - uses: actions/checkout@v2 - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php }} - coverage: xdebug - - run: docker pull crossbario/autobahn-testsuite - - run: composer install - - - run: sh tests/ab/run_ab_tests.sh - env: - ABTEST: ${{ matrix.env }} - SKIP_DEFLATE: _skip_deflate - if: ${{ matrix.php <= 5.6 }} - - - run: sh tests/ab/run_ab_tests.sh - env: - ABTEST: ${{ matrix.env }} - if: ${{ matrix.php >= 7.0 }} - - run: vendor/bin/phpunit --verbose diff --git a/vendor/ratchet/rfc6455/.gitignore b/vendor/ratchet/rfc6455/.gitignore deleted file mode 100644 index 42ab5d5..0000000 --- a/vendor/ratchet/rfc6455/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -composer.lock -vendor -tests/ab/reports -reports diff --git a/vendor/ratchet/rfc6455/LICENSE b/vendor/ratchet/rfc6455/LICENSE deleted file mode 100644 index 52b4aef..0000000 --- a/vendor/ratchet/rfc6455/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2011 Chris Boden - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is furnished -to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/vendor/ratchet/rfc6455/README.md b/vendor/ratchet/rfc6455/README.md deleted file mode 100644 index 1dfebf6..0000000 --- a/vendor/ratchet/rfc6455/README.md +++ /dev/null @@ -1,13 +0,0 @@ -# RFC6455 - The WebSocket Protocol - -[![Build Status](https://github.com/ratchetphp/RFC6455/workflows/CI/badge.svg)](https://github.com/ratchetphp/RFC6455/actions) -[![Autobahn Testsuite](https://img.shields.io/badge/Autobahn-passing-brightgreen.svg)](http://socketo.me/reports/rfc-server/index.html) - -This library a protocol handler for the RFC6455 specification. -It contains components for both server and client side handshake and messaging protocol negotation. - -Aspects that are left open to interpretation in the specification are also left open in this library. -It is up to the implementation to determine how those interpretations are to be dealt with. - -This library is independent, framework agnostic, and does not deal with any I/O. -HTTP upgrade negotiation integration points are handled with PSR-7 interfaces. diff --git a/vendor/ratchet/rfc6455/composer.json b/vendor/ratchet/rfc6455/composer.json deleted file mode 100644 index 054a8fb..0000000 --- a/vendor/ratchet/rfc6455/composer.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "name": "ratchet/rfc6455", - "type": "library", - "description": "RFC6455 WebSocket protocol handler", - "keywords": ["WebSockets", "websocket", "RFC6455"], - "homepage": "http://socketo.me", - "license": "MIT", - "authors": [ - { - "name": "Chris Boden" - , "email": "cboden@gmail.com" - , "role": "Developer" - }, - { - "name": "Matt Bonneau", - "role": "Developer" - } - ], - "support": { - "issues": "https://github.com/ratchetphp/RFC6455/issues", - "chat": "https://gitter.im/reactphp/reactphp" - }, - "autoload": { - "psr-4": { - "Ratchet\\RFC6455\\": "src" - } - }, - "require": { - "php": ">=5.4.2", - "guzzlehttp/psr7": "^2 || ^1.7" - }, - "require-dev": { - "phpunit/phpunit": "^5.7", - "react/socket": "^1.3" - }, - "scripts": { - "abtest-client": "ABTEST=client && sh tests/ab/run_ab_tests.sh", - "abtest-server": "ABTEST=server && sh tests/ab/run_ab_tests.sh", - "phpunit": "phpunit --colors=always", - "test": [ - "@abtest-client", - "@abtest-server", - "@phpunit" - ] - } -} diff --git a/vendor/ratchet/rfc6455/phpunit.xml.dist b/vendor/ratchet/rfc6455/phpunit.xml.dist deleted file mode 100644 index 8f2e7d1..0000000 --- a/vendor/ratchet/rfc6455/phpunit.xml.dist +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - tests - - test/ab - - - - - - - ./src/ - - - \ No newline at end of file diff --git a/vendor/ratchet/rfc6455/src/Handshake/ClientNegotiator.php b/vendor/ratchet/rfc6455/src/Handshake/ClientNegotiator.php deleted file mode 100644 index c32a1cf..0000000 --- a/vendor/ratchet/rfc6455/src/Handshake/ClientNegotiator.php +++ /dev/null @@ -1,71 +0,0 @@ -verifier = new ResponseVerifier; - - $this->defaultHeader = new Request('GET', '', [ - 'Connection' => 'Upgrade' - , 'Upgrade' => 'websocket' - , 'Sec-WebSocket-Version' => $this->getVersion() - , 'User-Agent' => "Ratchet" - ]); - - if ($perMessageDeflateOptions === null) { - $perMessageDeflateOptions = PermessageDeflateOptions::createDisabled(); - } - - // https://bugs.php.net/bug.php?id=73373 - // https://bugs.php.net/bug.php?id=74240 - need >=7.1.4 or >=7.0.18 - if ($perMessageDeflateOptions->isEnabled() && - !PermessageDeflateOptions::permessageDeflateSupported()) { - trigger_error('permessage-deflate is being disabled because it is not support by your PHP version.', E_USER_NOTICE); - $perMessageDeflateOptions = PermessageDeflateOptions::createDisabled(); - } - if ($perMessageDeflateOptions->isEnabled() && !function_exists('deflate_add')) { - trigger_error('permessage-deflate is being disabled because you do not have the zlib extension.', E_USER_NOTICE); - $perMessageDeflateOptions = PermessageDeflateOptions::createDisabled(); - } - - $this->defaultHeader = $perMessageDeflateOptions->addHeaderToRequest($this->defaultHeader); - } - - public function generateRequest(UriInterface $uri) { - return $this->defaultHeader->withUri($uri) - ->withHeader("Sec-WebSocket-Key", $this->generateKey()); - } - - public function validateResponse(RequestInterface $request, ResponseInterface $response) { - return $this->verifier->verifyAll($request, $response); - } - - public function generateKey() { - $chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwzyz1234567890+/='; - $charRange = strlen($chars) - 1; - $key = ''; - for ($i = 0; $i < 16; $i++) { - $key .= $chars[mt_rand(0, $charRange)]; - } - - return base64_encode($key); - } - - public function getVersion() { - return 13; - } -} diff --git a/vendor/ratchet/rfc6455/src/Handshake/InvalidPermessageDeflateOptionsException.php b/vendor/ratchet/rfc6455/src/Handshake/InvalidPermessageDeflateOptionsException.php deleted file mode 100644 index 191e7a5..0000000 --- a/vendor/ratchet/rfc6455/src/Handshake/InvalidPermessageDeflateOptionsException.php +++ /dev/null @@ -1,7 +0,0 @@ -deflateEnabled = true; - $new->client_max_window_bits = self::MAX_WINDOW_BITS; - $new->client_no_context_takeover = false; - $new->server_max_window_bits = self::MAX_WINDOW_BITS; - $new->server_no_context_takeover = false; - - return $new; - } - - public static function createDisabled() { - return new static(); - } - - public function withClientNoContextTakeover() { - $new = clone $this; - $new->client_no_context_takeover = true; - return $new; - } - - public function withoutClientNoContextTakeover() { - $new = clone $this; - $new->client_no_context_takeover = false; - return $new; - } - - public function withServerNoContextTakeover() { - $new = clone $this; - $new->server_no_context_takeover = true; - return $new; - } - - public function withoutServerNoContextTakeover() { - $new = clone $this; - $new->server_no_context_takeover = false; - return $new; - } - - public function withServerMaxWindowBits($bits = self::MAX_WINDOW_BITS) { - if (!in_array($bits, self::$VALID_BITS)) { - throw new \Exception('server_max_window_bits must have a value between 8 and 15.'); - } - $new = clone $this; - $new->server_max_window_bits = $bits; - return $new; - } - - public function withClientMaxWindowBits($bits = self::MAX_WINDOW_BITS) { - if (!in_array($bits, self::$VALID_BITS)) { - throw new \Exception('client_max_window_bits must have a value between 8 and 15.'); - } - $new = clone $this; - $new->client_max_window_bits = $bits; - return $new; - } - - /** - * https://tools.ietf.org/html/rfc6455#section-9.1 - * https://tools.ietf.org/html/rfc7692#section-7 - * - * @param MessageInterface $requestOrResponse - * @return PermessageDeflateOptions[] - * @throws \Exception - */ - public static function fromRequestOrResponse(MessageInterface $requestOrResponse) { - $optionSets = []; - - $extHeader = preg_replace('/\s+/', '', join(', ', $requestOrResponse->getHeader('Sec-Websocket-Extensions'))); - - $configurationRequests = explode(',', $extHeader); - foreach ($configurationRequests as $configurationRequest) { - $parts = explode(';', $configurationRequest); - if (count($parts) == 0) { - continue; - } - - if ($parts[0] !== 'permessage-deflate') { - continue; - } - - array_shift($parts); - $options = new static(); - $options->deflateEnabled = true; - foreach ($parts as $part) { - $kv = explode('=', $part); - $key = $kv[0]; - $value = count($kv) > 1 ? $kv[1] : null; - - switch ($key) { - case "server_no_context_takeover": - case "client_no_context_takeover": - if ($value !== null) { - throw new InvalidPermessageDeflateOptionsException($key . ' must not have a value.'); - } - $value = true; - break; - case "server_max_window_bits": - if (!in_array($value, self::$VALID_BITS)) { - throw new InvalidPermessageDeflateOptionsException($key . ' must have a value between 8 and 15.'); - } - break; - case "client_max_window_bits": - if ($value === null) { - $value = '15'; - } - if (!in_array($value, self::$VALID_BITS)) { - throw new InvalidPermessageDeflateOptionsException($key . ' must have no value or a value between 8 and 15.'); - } - break; - default: - throw new InvalidPermessageDeflateOptionsException('Option "' . $key . '"is not valid for permessage deflate'); - } - - if ($options->$key !== null) { - throw new InvalidPermessageDeflateOptionsException($key . ' specified more than once. Connection must be declined.'); - } - - $options->$key = $value; - } - - if ($options->getClientMaxWindowBits() === null) { - $options->client_max_window_bits = 15; - } - - if ($options->getServerMaxWindowBits() === null) { - $options->server_max_window_bits = 15; - } - - $optionSets[] = $options; - } - - // always put a disabled on the end - $optionSets[] = new static(); - - return $optionSets; - } - - /** - * @return mixed - */ - public function getServerNoContextTakeover() - { - return $this->server_no_context_takeover; - } - - /** - * @return mixed - */ - public function getClientNoContextTakeover() - { - return $this->client_no_context_takeover; - } - - /** - * @return mixed - */ - public function getServerMaxWindowBits() - { - return $this->server_max_window_bits; - } - - /** - * @return mixed - */ - public function getClientMaxWindowBits() - { - return $this->client_max_window_bits; - } - - /** - * @return bool - */ - public function isEnabled() - { - return $this->deflateEnabled; - } - - /** - * @param ResponseInterface $response - * @return ResponseInterface - */ - public function addHeaderToResponse(ResponseInterface $response) - { - if (!$this->deflateEnabled) { - return $response; - } - - $header = 'permessage-deflate'; - if ($this->client_max_window_bits != 15) { - $header .= '; client_max_window_bits='. $this->client_max_window_bits; - } - if ($this->client_no_context_takeover) { - $header .= '; client_no_context_takeover'; - } - if ($this->server_max_window_bits != 15) { - $header .= '; server_max_window_bits=' . $this->server_max_window_bits; - } - if ($this->server_no_context_takeover) { - $header .= '; server_no_context_takeover'; - } - - return $response->withAddedHeader('Sec-Websocket-Extensions', $header); - } - - public function addHeaderToRequest(RequestInterface $request) { - if (!$this->deflateEnabled) { - return $request; - } - - $header = 'permessage-deflate'; - if ($this->server_no_context_takeover) { - $header .= '; server_no_context_takeover'; - } - if ($this->client_no_context_takeover) { - $header .= '; client_no_context_takeover'; - } - if ($this->server_max_window_bits != 15) { - $header .= '; server_max_window_bits=' . $this->server_max_window_bits; - } - $header .= '; client_max_window_bits'; - if ($this->client_max_window_bits != 15) { - $header .= '='. $this->client_max_window_bits; - } - - return $request->withAddedHeader('Sec-Websocket-Extensions', $header); - } - - public static function permessageDeflateSupported($version = PHP_VERSION) { - if (!function_exists('deflate_init')) { - return false; - } - if (version_compare($version, '7.1.3', '>')) { - return true; - } - if (version_compare($version, '7.0.18', '>=') - && version_compare($version, '7.1.0', '<')) { - return true; - } - - return false; - } -} diff --git a/vendor/ratchet/rfc6455/src/Handshake/RequestVerifier.php b/vendor/ratchet/rfc6455/src/Handshake/RequestVerifier.php deleted file mode 100644 index 9e192c5..0000000 --- a/vendor/ratchet/rfc6455/src/Handshake/RequestVerifier.php +++ /dev/null @@ -1,163 +0,0 @@ -verifyMethod($request->getMethod()); - $passes += (int)$this->verifyHTTPVersion($request->getProtocolVersion()); - $passes += (int)$this->verifyRequestURI($request->getUri()->getPath()); - $passes += (int)$this->verifyHost($request->getHeader('Host')); - $passes += (int)$this->verifyUpgradeRequest($request->getHeader('Upgrade')); - $passes += (int)$this->verifyConnection($request->getHeader('Connection')); - $passes += (int)$this->verifyKey($request->getHeader('Sec-WebSocket-Key')); - $passes += (int)$this->verifyVersion($request->getHeader('Sec-WebSocket-Version')); - - return (8 === $passes); - } - - /** - * Test the HTTP method. MUST be "GET" - * @param string - * @return bool - */ - public function verifyMethod($val) { - return ('get' === strtolower($val)); - } - - /** - * Test the HTTP version passed. MUST be 1.1 or greater - * @param string|int - * @return bool - */ - public function verifyHTTPVersion($val) { - return (1.1 <= (double)$val); - } - - /** - * @param string - * @return bool - */ - public function verifyRequestURI($val) { - if ($val[0] !== '/') { - return false; - } - - if (false !== strstr($val, '#')) { - return false; - } - - if (!extension_loaded('mbstring')) { - return true; - } - - return mb_check_encoding($val, 'US-ASCII'); - } - - /** - * @param array $hostHeader - * @return bool - * @todo Once I fix HTTP::getHeaders just verify this isn't NULL or empty...or maybe need to verify it's a valid domain??? Or should it equal $_SERVER['HOST'] ? - */ - public function verifyHost(array $hostHeader) { - return (1 === count($hostHeader)); - } - - /** - * Verify the Upgrade request to WebSockets. - * @param array $upgradeHeader MUST equal "websocket" - * @return bool - */ - public function verifyUpgradeRequest(array $upgradeHeader) { - return (1 === count($upgradeHeader) && 'websocket' === strtolower($upgradeHeader[0])); - } - - /** - * Verify the Connection header - * @param array $connectionHeader MUST include "Upgrade" - * @return bool - */ - public function verifyConnection(array $connectionHeader) { - foreach ($connectionHeader as $l) { - $upgrades = array_filter( - array_map('trim', array_map('strtolower', explode(',', $l))), - function ($x) { - return 'upgrade' === $x; - } - ); - if (count($upgrades) > 0) { - return true; - } - } - return false; - } - - /** - * This function verifies the nonce is valid (64 big encoded, 16 bytes random string) - * @param array $keyHeader - * @return bool - * @todo The spec says we don't need to base64_decode - can I just check if the length is 24 and not decode? - * @todo Check the spec to see what the encoding of the key could be - */ - public function verifyKey(array $keyHeader) { - return (1 === count($keyHeader) && 16 === strlen(base64_decode($keyHeader[0]))); - } - - /** - * Verify the version passed matches this RFC - * @param string[] $versionHeader MUST equal ["13"] - * @return bool - */ - public function verifyVersion(array $versionHeader) { - return (1 === count($versionHeader) && static::VERSION === (int)$versionHeader[0]); - } - - /** - * @todo Write logic for this method. See section 4.2.1.8 - */ - public function verifyProtocol($val) { - } - - /** - * @todo Write logic for this method. See section 4.2.1.9 - */ - public function verifyExtensions($val) { - } - - public function getPermessageDeflateOptions(array $requestHeader, array $responseHeader) { - $deflate = true; - if (!isset($requestHeader['Sec-WebSocket-Extensions']) || count(array_filter($requestHeader['Sec-WebSocket-Extensions'], function ($val) { - return 'permessage-deflate' === substr($val, 0, strlen('permessage-deflate')); - })) === 0) { - $deflate = false; - } - - if (!isset($responseHeader['Sec-WebSocket-Extensions']) || count(array_filter($responseHeader['Sec-WebSocket-Extensions'], function ($val) { - return 'permessage-deflate' === substr($val, 0, strlen('permessage-deflate')); - })) === 0) { - $deflate = false; - } - - return [ - 'deflate' => $deflate, - 'no_context_takeover' => false, - 'max_window_bits' => null, - 'request_no_context_takeover' => false, - 'request_max_window_bits' => null - ]; - } -} diff --git a/vendor/ratchet/rfc6455/src/Handshake/ResponseVerifier.php b/vendor/ratchet/rfc6455/src/Handshake/ResponseVerifier.php deleted file mode 100644 index 453f9d6..0000000 --- a/vendor/ratchet/rfc6455/src/Handshake/ResponseVerifier.php +++ /dev/null @@ -1,70 +0,0 @@ -verifyStatus($response->getStatusCode()); - $passes += (int)$this->verifyUpgrade($response->getHeader('Upgrade')); - $passes += (int)$this->verifyConnection($response->getHeader('Connection')); - $passes += (int)$this->verifySecWebSocketAccept( - $response->getHeader('Sec-WebSocket-Accept') - , $request->getHeader('Sec-WebSocket-Key') - ); - $passes += (int)$this->verifySubProtocol( - $request->getHeader('Sec-WebSocket-Protocol') - , $response->getHeader('Sec-WebSocket-Protocol') - ); - $passes += (int)$this->verifyExtensions( - $request->getHeader('Sec-WebSocket-Extensions') - , $response->getHeader('Sec-WebSocket-Extensions') - ); - - return (6 === $passes); - } - - public function verifyStatus($status) { - return ((int)$status === 101); - } - - public function verifyUpgrade(array $upgrade) { - return (in_array('websocket', array_map('strtolower', $upgrade))); - } - - public function verifyConnection(array $connection) { - return (in_array('upgrade', array_map('strtolower', $connection))); - } - - public function verifySecWebSocketAccept($swa, $key) { - return ( - 1 === count($swa) && - 1 === count($key) && - $swa[0] === $this->sign($key[0]) - ); - } - - public function sign($key) { - return base64_encode(sha1($key . NegotiatorInterface::GUID, true)); - } - - public function verifySubProtocol(array $requestHeader, array $responseHeader) { - if (0 === count($responseHeader)) { - return true; - } - - $requestedProtocols = array_map('trim', explode(',', implode(',', $requestHeader))); - - return count($responseHeader) === 1 && count(array_intersect($responseHeader, $requestedProtocols)) === 1; - } - - public function verifyExtensions(array $requestHeader, array $responseHeader) { - if (in_array('permessage-deflate', $responseHeader)) { - return strpos(implode(',', $requestHeader), 'permessage-deflate') !== false ? 1 : 0; - } - - return 1; - } -} diff --git a/vendor/ratchet/rfc6455/src/Handshake/ServerNegotiator.php b/vendor/ratchet/rfc6455/src/Handshake/ServerNegotiator.php deleted file mode 100644 index e4ce79b..0000000 --- a/vendor/ratchet/rfc6455/src/Handshake/ServerNegotiator.php +++ /dev/null @@ -1,162 +0,0 @@ -verifier = $requestVerifier; - - // https://bugs.php.net/bug.php?id=73373 - // https://bugs.php.net/bug.php?id=74240 - need >=7.1.4 or >=7.0.18 - $supported = PermessageDeflateOptions::permessageDeflateSupported(); - if ($enablePerMessageDeflate && !$supported) { - throw new \Exception('permessage-deflate is not supported by your PHP version (need >=7.1.4 or >=7.0.18).'); - } - if ($enablePerMessageDeflate && !function_exists('deflate_add')) { - throw new \Exception('permessage-deflate is not supported because you do not have the zlib extension.'); - } - - $this->enablePerMessageDeflate = $enablePerMessageDeflate; - } - - /** - * {@inheritdoc} - */ - public function isProtocol(RequestInterface $request) { - return $this->verifier->verifyVersion($request->getHeader('Sec-WebSocket-Version')); - } - - /** - * {@inheritdoc} - */ - public function getVersionNumber() { - return RequestVerifier::VERSION; - } - - /** - * {@inheritdoc} - */ - public function handshake(RequestInterface $request) { - if (true !== $this->verifier->verifyMethod($request->getMethod())) { - return new Response(405, ['Allow' => 'GET']); - } - - if (true !== $this->verifier->verifyHTTPVersion($request->getProtocolVersion())) { - return new Response(505); - } - - if (true !== $this->verifier->verifyRequestURI($request->getUri()->getPath())) { - return new Response(400); - } - - if (true !== $this->verifier->verifyHost($request->getHeader('Host'))) { - return new Response(400); - } - - $upgradeSuggestion = [ - 'Connection' => 'Upgrade', - 'Upgrade' => 'websocket', - 'Sec-WebSocket-Version' => $this->getVersionNumber() - ]; - if (count($this->_supportedSubProtocols) > 0) { - $upgradeSuggestion['Sec-WebSocket-Protocol'] = implode(', ', array_keys($this->_supportedSubProtocols)); - } - if (true !== $this->verifier->verifyUpgradeRequest($request->getHeader('Upgrade'))) { - return new Response(426, $upgradeSuggestion, null, '1.1', 'Upgrade header MUST be provided'); - } - - if (true !== $this->verifier->verifyConnection($request->getHeader('Connection'))) { - return new Response(400, [], null, '1.1', 'Connection Upgrade MUST be requested'); - } - - if (true !== $this->verifier->verifyKey($request->getHeader('Sec-WebSocket-Key'))) { - return new Response(400, [], null, '1.1', 'Invalid Sec-WebSocket-Key'); - } - - if (true !== $this->verifier->verifyVersion($request->getHeader('Sec-WebSocket-Version'))) { - return new Response(426, $upgradeSuggestion); - } - - $headers = []; - $subProtocols = $request->getHeader('Sec-WebSocket-Protocol'); - if (count($subProtocols) > 0 || (count($this->_supportedSubProtocols) > 0 && $this->_strictSubProtocols)) { - $subProtocols = array_map('trim', explode(',', implode(',', $subProtocols))); - - $match = array_reduce($subProtocols, function($accumulator, $protocol) { - return $accumulator ?: (isset($this->_supportedSubProtocols[$protocol]) ? $protocol : null); - }, null); - - if ($this->_strictSubProtocols && null === $match) { - return new Response(426, $upgradeSuggestion, null, '1.1', 'No Sec-WebSocket-Protocols requested supported'); - } - - if (null !== $match) { - $headers['Sec-WebSocket-Protocol'] = $match; - } - } - - $response = new Response(101, array_merge($headers, [ - 'Upgrade' => 'websocket' - , 'Connection' => 'Upgrade' - , 'Sec-WebSocket-Accept' => $this->sign((string)$request->getHeader('Sec-WebSocket-Key')[0]) - , 'X-Powered-By' => 'Ratchet' - ])); - - try { - $perMessageDeflateRequest = PermessageDeflateOptions::fromRequestOrResponse($request)[0]; - } catch (InvalidPermessageDeflateOptionsException $e) { - return new Response(400, [], null, '1.1', $e->getMessage()); - } - - if ($this->enablePerMessageDeflate && $perMessageDeflateRequest->isEnabled()) { - $response = $perMessageDeflateRequest->addHeaderToResponse($response); - } - - return $response; - } - - /** - * Used when doing the handshake to encode the key, verifying client/server are speaking the same language - * @param string $key - * @return string - * @internal - */ - public function sign($key) { - return base64_encode(sha1($key . static::GUID, true)); - } - - /** - * @param array $protocols - */ - function setSupportedSubProtocols(array $protocols) { - $this->_supportedSubProtocols = array_flip($protocols); - } - - /** - * If enabled and support for a subprotocol has been added handshake - * will not upgrade if a match between request and supported subprotocols - * @param boolean $enable - * @todo Consider extending this interface and moving this there. - * The spec does says the server can fail for this reason, but - * it is not a requirement. This is an implementation detail. - */ - function setStrictSubProtocolCheck($enable) { - $this->_strictSubProtocols = (boolean)$enable; - } -} diff --git a/vendor/ratchet/rfc6455/src/Messaging/CloseFrameChecker.php b/vendor/ratchet/rfc6455/src/Messaging/CloseFrameChecker.php deleted file mode 100644 index 3d800e5..0000000 --- a/vendor/ratchet/rfc6455/src/Messaging/CloseFrameChecker.php +++ /dev/null @@ -1,24 +0,0 @@ -validCloseCodes = [ - Frame::CLOSE_NORMAL, - Frame::CLOSE_GOING_AWAY, - Frame::CLOSE_PROTOCOL, - Frame::CLOSE_BAD_DATA, - Frame::CLOSE_BAD_PAYLOAD, - Frame::CLOSE_POLICY, - Frame::CLOSE_TOO_BIG, - Frame::CLOSE_MAND_EXT, - Frame::CLOSE_SRV_ERR, - ]; - } - - public function __invoke($val) { - return ($val >= 3000 && $val <= 4999) || in_array($val, $this->validCloseCodes); - } -} diff --git a/vendor/ratchet/rfc6455/src/Messaging/DataInterface.php b/vendor/ratchet/rfc6455/src/Messaging/DataInterface.php deleted file mode 100644 index 18aa2e3..0000000 --- a/vendor/ratchet/rfc6455/src/Messaging/DataInterface.php +++ /dev/null @@ -1,34 +0,0 @@ - $ufExceptionFactory - */ - public function __construct($payload = null, $final = true, $opcode = 1, callable $ufExceptionFactory = null) { - $this->ufeg = $ufExceptionFactory ?: static function($msg = '') { - return new \UnderflowException($msg); - }; - - if (null === $payload) { - return; - } - - $this->defPayLen = strlen($payload); - $this->firstByte = ($final ? 128 : 0) + $opcode; - $this->secondByte = $this->defPayLen; - $this->isCoalesced = true; - - $ext = ''; - if ($this->defPayLen > 65535) { - $ext = pack('NN', 0, $this->defPayLen); - $this->secondByte = 127; - } elseif ($this->defPayLen > 125) { - $ext = pack('n', $this->defPayLen); - $this->secondByte = 126; - } - - $this->data = chr($this->firstByte) . chr($this->secondByte) . $ext . $payload; - $this->bytesRecvd = 2 + strlen($ext) + $this->defPayLen; - } - - /** - * {@inheritdoc} - */ - public function isCoalesced() { - if (true === $this->isCoalesced) { - return true; - } - - try { - $payload_length = $this->getPayloadLength(); - $payload_start = $this->getPayloadStartingByte(); - } catch (\UnderflowException $e) { - return false; - } - - $this->isCoalesced = $this->bytesRecvd >= $payload_length + $payload_start; - - return $this->isCoalesced; - } - - /** - * {@inheritdoc} - */ - public function addBuffer($buf) { - $len = strlen($buf); - - $this->data .= $buf; - $this->bytesRecvd += $len; - - if ($this->firstByte === -1 && $this->bytesRecvd !== 0) { - $this->firstByte = ord($this->data[0]); - } - - if ($this->secondByte === -1 && $this->bytesRecvd >= 2) { - $this->secondByte = ord($this->data[1]); - } - } - - /** - * {@inheritdoc} - */ - public function isFinal() { - if (-1 === $this->firstByte) { - throw call_user_func($this->ufeg, 'Not enough bytes received to determine if this is the final frame in message'); - } - - return 128 === ($this->firstByte & 128); - } - - public function setRsv1($value = true) { - if (strlen($this->data) == 0) { - throw new \UnderflowException("Cannot set Rsv1 because there is no data."); - } - - $this->firstByte = - ($this->isFinal() ? 128 : 0) - + $this->getOpcode() - + ($value ? 64 : 0) - + ($this->getRsv2() ? 32 : 0) - + ($this->getRsv3() ? 16 : 0) - ; - - $this->data[0] = chr($this->firstByte); - return $this; - } - - /** - * @return boolean - * @throws \UnderflowException - */ - public function getRsv1() { - if (-1 === $this->firstByte) { - throw call_user_func($this->ufeg, 'Not enough bytes received to determine reserved bit'); - } - - return 64 === ($this->firstByte & 64); - } - - /** - * @return boolean - * @throws \UnderflowException - */ - public function getRsv2() { - if (-1 === $this->firstByte) { - throw call_user_func($this->ufeg, 'Not enough bytes received to determine reserved bit'); - } - - return 32 === ($this->firstByte & 32); - } - - /** - * @return boolean - * @throws \UnderflowException - */ - public function getRsv3() { - if (-1 === $this->firstByte) { - throw call_user_func($this->ufeg, 'Not enough bytes received to determine reserved bit'); - } - - return 16 === ($this->firstByte & 16); - } - - /** - * {@inheritdoc} - */ - public function isMasked() { - if (-1 === $this->secondByte) { - throw call_user_func($this->ufeg, "Not enough bytes received ({$this->bytesRecvd}) to determine if mask is set"); - } - - return 128 === ($this->secondByte & 128); - } - - /** - * {@inheritdoc} - */ - public function getMaskingKey() { - if (!$this->isMasked()) { - return ''; - } - - $start = 1 + $this->getNumPayloadBytes(); - - if ($this->bytesRecvd < $start + static::MASK_LENGTH) { - throw call_user_func($this->ufeg, 'Not enough data buffered to calculate the masking key'); - } - - return substr($this->data, $start, static::MASK_LENGTH); - } - - /** - * Create a 4 byte masking key - * @return string - */ - public function generateMaskingKey() { - $mask = ''; - - for ($i = 1; $i <= static::MASK_LENGTH; $i++) { - $mask .= chr(rand(32, 126)); - } - - return $mask; - } - - /** - * Apply a mask to the payload - * @param string|null If NULL is passed a masking key will be generated - * @throws \OutOfBoundsException - * @throws \InvalidArgumentException If there is an issue with the given masking key - * @return Frame - */ - public function maskPayload($maskingKey = null) { - if (null === $maskingKey) { - $maskingKey = $this->generateMaskingKey(); - } - - if (static::MASK_LENGTH !== strlen($maskingKey)) { - throw new \InvalidArgumentException("Masking key must be " . static::MASK_LENGTH ." characters"); - } - - if (extension_loaded('mbstring') && true !== mb_check_encoding($maskingKey, 'US-ASCII')) { - throw new \OutOfBoundsException("Masking key MUST be ASCII"); - } - - $this->unMaskPayload(); - - $this->secondByte = $this->secondByte | 128; - $this->data[1] = chr($this->secondByte); - - $this->data = substr_replace($this->data, $maskingKey, $this->getNumPayloadBytes() + 1, 0); - - $this->bytesRecvd += static::MASK_LENGTH; - $this->data = substr_replace($this->data, $this->applyMask($maskingKey), $this->getPayloadStartingByte(), $this->getPayloadLength()); - - return $this; - } - - /** - * Remove a mask from the payload - * @throws \UnderFlowException If the frame is not coalesced - * @return Frame - */ - public function unMaskPayload() { - if (!$this->isCoalesced()) { - throw call_user_func($this->ufeg, 'Frame must be coalesced before applying mask'); - } - - if (!$this->isMasked()) { - return $this; - } - - $maskingKey = $this->getMaskingKey(); - - $this->secondByte = $this->secondByte & ~128; - $this->data[1] = chr($this->secondByte); - - $this->data = substr_replace($this->data, '', $this->getNumPayloadBytes() + 1, static::MASK_LENGTH); - - $this->bytesRecvd -= static::MASK_LENGTH; - $this->data = substr_replace($this->data, $this->applyMask($maskingKey), $this->getPayloadStartingByte(), $this->getPayloadLength()); - - return $this; - } - - /** - * Apply a mask to a string or the payload of the instance - * @param string $maskingKey The 4 character masking key to be applied - * @param string|null $payload A string to mask or null to use the payload - * @throws \UnderflowException If using the payload but enough hasn't been buffered - * @return string The masked string - */ - public function applyMask($maskingKey, $payload = null) { - if (null === $payload) { - if (!$this->isCoalesced()) { - throw call_user_func($this->ufeg, 'Frame must be coalesced to apply a mask'); - } - - $payload = substr($this->data, $this->getPayloadStartingByte(), $this->getPayloadLength()); - } - - $len = strlen($payload); - - if (0 === $len) { - return ''; - } - - return $payload ^ str_pad('', $len, $maskingKey, STR_PAD_RIGHT); - } - - /** - * {@inheritdoc} - */ - public function getOpcode() { - if (-1 === $this->firstByte) { - throw call_user_func($this->ufeg, 'Not enough bytes received to determine opcode'); - } - - return ($this->firstByte & ~240); - } - - /** - * Gets the decimal value of bits 9 (10th) through 15 inclusive - * @return int - * @throws \UnderflowException If the buffer doesn't have enough data to determine this - */ - protected function getFirstPayloadVal() { - if (-1 === $this->secondByte) { - throw call_user_func($this->ufeg, 'Not enough bytes received'); - } - - return $this->secondByte & 127; - } - - /** - * @return int (7|23|71) Number of bits defined for the payload length in the fame - * @throws \UnderflowException - */ - protected function getNumPayloadBits() { - if (-1 === $this->secondByte) { - throw call_user_func($this->ufeg, 'Not enough bytes received'); - } - - // By default 7 bits are used to describe the payload length - // These are bits 9 (10th) through 15 inclusive - $bits = 7; - - // Get the value of those bits - $check = $this->getFirstPayloadVal(); - - // If the value is 126 the 7 bits plus the next 16 are used to describe the payload length - if ($check >= 126) { - $bits += 16; - } - - // If the value of the initial payload length are is 127 an additional 48 bits are used to describe length - // Note: The documentation specifies the length is to be 63 bits, but I think that's a typo and is 64 (16+48) - if ($check === 127) { - $bits += 48; - } - - return $bits; - } - - /** - * This just returns the number of bytes used in the frame to describe the payload length (as opposed to # of bits) - * @see getNumPayloadBits - */ - protected function getNumPayloadBytes() { - return (1 + $this->getNumPayloadBits()) / 8; - } - - /** - * {@inheritdoc} - */ - public function getPayloadLength() { - if ($this->defPayLen !== -1) { - return $this->defPayLen; - } - - $this->defPayLen = $this->getFirstPayloadVal(); - if ($this->defPayLen <= 125) { - return $this->getPayloadLength(); - } - - $byte_length = $this->getNumPayloadBytes(); - if ($this->bytesRecvd < 1 + $byte_length) { - $this->defPayLen = -1; - throw call_user_func($this->ufeg, 'Not enough data buffered to determine payload length'); - } - - $len = 0; - for ($i = 2; $i <= $byte_length; $i++) { - $len <<= 8; - $len += ord($this->data[$i]); - } - - $this->defPayLen = $len; - - return $this->getPayloadLength(); - } - - /** - * {@inheritdoc} - */ - public function getPayloadStartingByte() { - return 1 + $this->getNumPayloadBytes() + ($this->isMasked() ? static::MASK_LENGTH : 0); - } - - /** - * {@inheritdoc} - * @todo Consider not checking mask, always returning the payload, masked or not - */ - public function getPayload() { - if (!$this->isCoalesced()) { - throw call_user_func($this->ufeg, 'Can not return partial message'); - } - - return $this->__toString(); - } - - /** - * Get the raw contents of the frame - * @todo This is untested, make sure the substr is right - trying to return the frame w/o the overflow - */ - public function getContents() { - return substr($this->data, 0, $this->getPayloadStartingByte() + $this->getPayloadLength()); - } - - public function __toString() { - $payload = (string)substr($this->data, $this->getPayloadStartingByte(), $this->getPayloadLength()); - - if ($this->isMasked()) { - $payload = $this->applyMask($this->getMaskingKey(), $payload); - } - - return $payload; - } - - /** - * Sometimes clients will concatenate more than one frame over the wire - * This method will take the extra bytes off the end and return them - * @return string - */ - public function extractOverflow() { - if ($this->isCoalesced()) { - $endPoint = $this->getPayloadLength(); - $endPoint += $this->getPayloadStartingByte(); - - if ($this->bytesRecvd > $endPoint) { - $overflow = substr($this->data, $endPoint); - $this->data = substr($this->data, 0, $endPoint); - - return $overflow; - } - } - - return ''; - } -} diff --git a/vendor/ratchet/rfc6455/src/Messaging/FrameInterface.php b/vendor/ratchet/rfc6455/src/Messaging/FrameInterface.php deleted file mode 100644 index dc24091..0000000 --- a/vendor/ratchet/rfc6455/src/Messaging/FrameInterface.php +++ /dev/null @@ -1,38 +0,0 @@ -_frames = new \SplDoublyLinkedList; - $this->len = 0; - } - - #[\ReturnTypeWillChange] - public function getIterator() { - return $this->_frames; - } - - /** - * {@inheritdoc} - */ - #[\ReturnTypeWillChange] - public function count() { - return count($this->_frames); - } - - /** - * {@inheritdoc} - */ - #[\ReturnTypeWillChange] - public function isCoalesced() { - if (count($this->_frames) == 0) { - return false; - } - - $last = $this->_frames->top(); - - return ($last->isCoalesced() && $last->isFinal()); - } - - /** - * {@inheritdoc} - */ - public function addFrame(FrameInterface $fragment) { - $this->len += $fragment->getPayloadLength(); - $this->_frames->push($fragment); - - return $this; - } - - /** - * {@inheritdoc} - */ - public function getOpcode() { - if (count($this->_frames) == 0) { - throw new \UnderflowException('No frames have been added to this message'); - } - - return $this->_frames->bottom()->getOpcode(); - } - - /** - * {@inheritdoc} - */ - public function getPayloadLength() { - return $this->len; - } - - /** - * {@inheritdoc} - */ - public function getPayload() { - if (!$this->isCoalesced()) { - throw new \UnderflowException('Message has not been put back together yet'); - } - - return $this->__toString(); - } - - /** - * {@inheritdoc} - */ - public function getContents() { - if (!$this->isCoalesced()) { - throw new \UnderflowException("Message has not been put back together yet"); - } - - $buffer = ''; - - foreach ($this->_frames as $frame) { - $buffer .= $frame->getContents(); - } - - return $buffer; - } - - public function __toString() { - $buffer = ''; - - foreach ($this->_frames as $frame) { - $buffer .= $frame->getPayload(); - } - - return $buffer; - } - - /** - * @return boolean - */ - public function isBinary() { - if ($this->_frames->isEmpty()) { - throw new \UnderflowException('Not enough data has been received to determine if message is binary'); - } - - return Frame::OP_BINARY === $this->_frames->bottom()->getOpcode(); - } - - /** - * @return boolean - */ - public function getRsv1() { - if ($this->_frames->isEmpty()) { - return false; - //throw new \UnderflowException('Not enough data has been received to determine if message is binary'); - } - - return $this->_frames->bottom()->getRsv1(); - } -} diff --git a/vendor/ratchet/rfc6455/src/Messaging/MessageBuffer.php b/vendor/ratchet/rfc6455/src/Messaging/MessageBuffer.php deleted file mode 100644 index e5d197b..0000000 --- a/vendor/ratchet/rfc6455/src/Messaging/MessageBuffer.php +++ /dev/null @@ -1,550 +0,0 @@ -closeFrameChecker = $frameChecker; - $this->checkForMask = (bool)$expectMask; - - $this->exceptionFactory ?: $exceptionFactory = function($msg) { - return new \UnderflowException($msg); - }; - - $this->onMessage = $onMessage; - $this->onControl = $onControl ?: function() {}; - - $this->sender = $sender; - - $this->permessageDeflateOptions = $permessageDeflateOptions ?: PermessageDeflateOptions::createDisabled(); - - $this->deflateEnabled = $this->permessageDeflateOptions->isEnabled(); - - if ($this->deflateEnabled && !is_callable($this->sender)) { - throw new \InvalidArgumentException('sender must be set when deflate is enabled'); - } - - $this->compressedMessage = false; - - $this->leftovers = ''; - - $memory_limit_bytes = static::getMemoryLimit(); - - if ($maxMessagePayloadSize === null) { - $maxMessagePayloadSize = (int)($memory_limit_bytes / 4); - } - if ($maxFramePayloadSize === null) { - $maxFramePayloadSize = (int)($memory_limit_bytes / 4); - } - - if (!is_int($maxFramePayloadSize) || $maxFramePayloadSize > 0x7FFFFFFFFFFFFFFF || $maxFramePayloadSize < 0) { // this should be interesting on non-64 bit systems - throw new \InvalidArgumentException($maxFramePayloadSize . ' is not a valid maxFramePayloadSize'); - } - $this->maxFramePayloadSize = $maxFramePayloadSize; - - if (!is_int($maxMessagePayloadSize) || $maxMessagePayloadSize > 0x7FFFFFFFFFFFFFFF || $maxMessagePayloadSize < 0) { - throw new \InvalidArgumentException($maxMessagePayloadSize . 'is not a valid maxMessagePayloadSize'); - } - $this->maxMessagePayloadSize = $maxMessagePayloadSize; - } - - public function onData($data) { - $data = $this->leftovers . $data; - $dataLen = strlen($data); - - if ($dataLen < 2) { - $this->leftovers = $data; - - return; - } - - $frameStart = 0; - while ($frameStart + 2 <= $dataLen) { - $headerSize = 2; - $payload_length = unpack('C', $data[$frameStart + 1] & "\x7f")[1]; - $isMasked = ($data[$frameStart + 1] & "\x80") === "\x80"; - $headerSize += $isMasked ? 4 : 0; - if ($payload_length > 125 && ($dataLen - $frameStart < $headerSize + 125)) { - // no point of checking - this frame is going to be bigger than the buffer is right now - break; - } - if ($payload_length > 125) { - $payloadLenBytes = $payload_length === 126 ? 2 : 8; - $headerSize += $payloadLenBytes; - $bytesToUpack = substr($data, $frameStart + 2, $payloadLenBytes); - $payload_length = $payload_length === 126 - ? unpack('n', $bytesToUpack)[1] - : unpack('J', $bytesToUpack)[1]; - } - - $closeFrame = null; - - if ($payload_length < 0) { - // this can happen when unpacking in php - $closeFrame = $this->newCloseFrame(Frame::CLOSE_PROTOCOL, 'Invalid frame length'); - } - - if (!$closeFrame && $this->maxFramePayloadSize > 1 && $payload_length > $this->maxFramePayloadSize) { - $closeFrame = $this->newCloseFrame(Frame::CLOSE_TOO_BIG, 'Maximum frame size exceeded'); - } - - if (!$closeFrame && $this->maxMessagePayloadSize > 0 - && $payload_length + ($this->messageBuffer ? $this->messageBuffer->getPayloadLength() : 0) > $this->maxMessagePayloadSize) { - $closeFrame = $this->newCloseFrame(Frame::CLOSE_TOO_BIG, 'Maximum message size exceeded'); - } - - if ($closeFrame !== null) { - $onControl = $this->onControl; - $onControl($closeFrame); - $this->leftovers = ''; - - return; - } - - $isCoalesced = $dataLen - $frameStart >= $payload_length + $headerSize; - if (!$isCoalesced) { - break; - } - $this->processData(substr($data, $frameStart, $payload_length + $headerSize)); - $frameStart = $frameStart + $payload_length + $headerSize; - } - - $this->leftovers = substr($data, $frameStart); - } - - /** - * @param string $data - * @return null - */ - private function processData($data) { - $this->messageBuffer ?: $this->messageBuffer = $this->newMessage(); - $this->frameBuffer ?: $this->frameBuffer = $this->newFrame(); - - $this->frameBuffer->addBuffer($data); - - $onMessage = $this->onMessage; - $onControl = $this->onControl; - - $this->frameBuffer = $this->frameCheck($this->frameBuffer); - - $this->frameBuffer->unMaskPayload(); - - $opcode = $this->frameBuffer->getOpcode(); - - if ($opcode > 2) { - $onControl($this->frameBuffer, $this); - - if (Frame::OP_CLOSE === $opcode) { - return ''; - } - } else { - if ($this->messageBuffer->count() === 0 && $this->frameBuffer->getRsv1()) { - $this->compressedMessage = true; - } - if ($this->compressedMessage) { - $this->frameBuffer = $this->inflateFrame($this->frameBuffer); - } - - $this->messageBuffer->addFrame($this->frameBuffer); - } - - $this->frameBuffer = null; - - if ($this->messageBuffer->isCoalesced()) { - $msgCheck = $this->checkMessage($this->messageBuffer); - - $msgBuffer = $this->messageBuffer; - $this->messageBuffer = null; - - if (true !== $msgCheck) { - $onControl($this->newCloseFrame($msgCheck, 'Ratchet detected an invalid UTF-8 payload'), $this); - } else { - $onMessage($msgBuffer, $this); - } - - $this->messageBuffer = null; - $this->compressedMessage = false; - - if ($this->permessageDeflateOptions->getServerNoContextTakeover()) { - $this->inflator = null; - } - } - } - - /** - * Check a frame to be added to the current message buffer - * @param \Ratchet\RFC6455\Messaging\FrameInterface|FrameInterface $frame - * @return \Ratchet\RFC6455\Messaging\FrameInterface|FrameInterface - */ - public function frameCheck(FrameInterface $frame) { - if ((false !== $frame->getRsv1() && !$this->deflateEnabled) || - false !== $frame->getRsv2() || - false !== $frame->getRsv3() - ) { - return $this->newCloseFrame(Frame::CLOSE_PROTOCOL, 'Ratchet detected an invalid reserve code'); - } - - if ($this->checkForMask && !$frame->isMasked()) { - return $this->newCloseFrame(Frame::CLOSE_PROTOCOL, 'Ratchet detected an incorrect frame mask'); - } - - $opcode = $frame->getOpcode(); - - if ($opcode > 2) { - if ($frame->getPayloadLength() > 125 || !$frame->isFinal()) { - return $this->newCloseFrame(Frame::CLOSE_PROTOCOL, 'Ratchet detected a mismatch between final bit and indicated payload length'); - } - - switch ($opcode) { - case Frame::OP_CLOSE: - $closeCode = 0; - - $bin = $frame->getPayload(); - - if (empty($bin)) { - return $this->newCloseFrame(Frame::CLOSE_NORMAL); - } - - if (strlen($bin) === 1) { - return $this->newCloseFrame(Frame::CLOSE_PROTOCOL, 'Ratchet detected an invalid close code'); - } - - if (strlen($bin) >= 2) { - list($closeCode) = array_merge(unpack('n*', substr($bin, 0, 2))); - } - - $checker = $this->closeFrameChecker; - if (!$checker($closeCode)) { - return $this->newCloseFrame(Frame::CLOSE_PROTOCOL, 'Ratchet detected an invalid close code'); - } - - if (!$this->checkUtf8(substr($bin, 2))) { - return $this->newCloseFrame(Frame::CLOSE_BAD_PAYLOAD, 'Ratchet detected an invalid UTF-8 payload in the close reason'); - } - - return $frame; - break; - case Frame::OP_PING: - case Frame::OP_PONG: - break; - default: - return $this->newCloseFrame(Frame::CLOSE_PROTOCOL, 'Ratchet detected an invalid OP code'); - break; - } - - return $frame; - } - - if (Frame::OP_CONTINUE === $frame->getOpcode() && 0 === count($this->messageBuffer)) { - return $this->newCloseFrame(Frame::CLOSE_PROTOCOL, 'Ratchet detected the first frame of a message was a continue'); - } - - if (count($this->messageBuffer) > 0 && Frame::OP_CONTINUE !== $frame->getOpcode()) { - return $this->newCloseFrame(Frame::CLOSE_PROTOCOL, 'Ratchet detected invalid OP code when expecting continue frame'); - } - - return $frame; - } - - /** - * Determine if a message is valid - * @param \Ratchet\RFC6455\Messaging\MessageInterface - * @return bool|int true if valid - false if incomplete - int of recommended close code - */ - public function checkMessage(MessageInterface $message) { - if (!$message->isBinary()) { - if (!$this->checkUtf8($message->getPayload())) { - return Frame::CLOSE_BAD_PAYLOAD; - } - } - - return true; - } - - private function checkUtf8($string) { - if (extension_loaded('mbstring')) { - return mb_check_encoding($string, 'UTF-8'); - } - - return preg_match('//u', $string); - } - - /** - * @return \Ratchet\RFC6455\Messaging\MessageInterface - */ - public function newMessage() { - return new Message; - } - - /** - * @param string|null $payload - * @param bool|null $final - * @param int|null $opcode - * @return \Ratchet\RFC6455\Messaging\FrameInterface - */ - public function newFrame($payload = null, $final = null, $opcode = null) { - return new Frame($payload, $final, $opcode, $this->exceptionFactory); - } - - public function newCloseFrame($code, $reason = '') { - return $this->newFrame(pack('n', $code) . $reason, true, Frame::OP_CLOSE); - } - - public function sendFrame(Frame $frame) { - if ($this->sender === null) { - throw new \Exception('To send frames using the MessageBuffer, sender must be set.'); - } - - if ($this->deflateEnabled && - ($frame->getOpcode() === Frame::OP_TEXT || $frame->getOpcode() === Frame::OP_BINARY)) { - $frame = $this->deflateFrame($frame); - } - - if (!$this->checkForMask) { - $frame->maskPayload(); - } - - $sender = $this->sender; - $sender($frame->getContents()); - } - - public function sendMessage($messagePayload, $final = true, $isBinary = false) { - $opCode = $isBinary ? Frame::OP_BINARY : Frame::OP_TEXT; - if ($this->streamingMessageOpCode === -1) { - $this->streamingMessageOpCode = $opCode; - } - - if ($this->streamingMessageOpCode !== $opCode) { - throw new \Exception('Binary and text message parts cannot be streamed together.'); - } - - $frame = $this->newFrame($messagePayload, $final, $opCode); - - $this->sendFrame($frame); - - if ($final) { - // reset deflator if client doesn't remember contexts - if ($this->getDeflateNoContextTakeover()) { - $this->deflator = null; - } - $this->streamingMessageOpCode = -1; - } - } - - private $inflator; - - private function getDeflateNoContextTakeover() { - return $this->checkForMask ? - $this->permessageDeflateOptions->getServerNoContextTakeover() : - $this->permessageDeflateOptions->getClientNoContextTakeover(); - } - - private function getDeflateWindowBits() { - return $this->checkForMask ? $this->permessageDeflateOptions->getServerMaxWindowBits() : $this->permessageDeflateOptions->getClientMaxWindowBits(); - } - - private function getInflateNoContextTakeover() { - return $this->checkForMask ? - $this->permessageDeflateOptions->getClientNoContextTakeover() : - $this->permessageDeflateOptions->getServerNoContextTakeover(); - } - - private function getInflateWindowBits() { - return $this->checkForMask ? $this->permessageDeflateOptions->getClientMaxWindowBits() : $this->permessageDeflateOptions->getServerMaxWindowBits(); - } - - private function inflateFrame(Frame $frame) { - if ($this->inflator === null) { - $this->inflator = inflate_init( - ZLIB_ENCODING_RAW, - [ - 'level' => -1, - 'memory' => 8, - 'window' => $this->getInflateWindowBits(), - 'strategy' => ZLIB_DEFAULT_STRATEGY - ] - ); - } - - $terminator = ''; - if ($frame->isFinal()) { - $terminator = "\x00\x00\xff\xff"; - } - - gc_collect_cycles(); // memory runs away if we don't collect ?? - - return new Frame( - inflate_add($this->inflator, $frame->getPayload() . $terminator), - $frame->isFinal(), - $frame->getOpcode() - ); - } - - private $deflator; - - private function deflateFrame(Frame $frame) - { - if ($frame->getRsv1()) { - return $frame; // frame is already deflated - } - - if ($this->deflator === null) { - $bits = (int)$this->getDeflateWindowBits(); - if ($bits === 8) { - $bits = 9; - } - $this->deflator = deflate_init( - ZLIB_ENCODING_RAW, - [ - 'level' => -1, - 'memory' => 8, - 'window' => $bits, - 'strategy' => ZLIB_DEFAULT_STRATEGY - ] - ); - } - - // there is an issue in the zlib extension for php where - // deflate_add does not check avail_out to see if the buffer filled - // this only seems to be an issue for payloads between 16 and 64 bytes - // This if statement is a hack fix to break the output up allowing us - // to call deflate_add twice which should clear the buffer issue -// if ($frame->getPayloadLength() >= 16 && $frame->getPayloadLength() <= 64) { -// // try processing in 8 byte chunks -// // https://bugs.php.net/bug.php?id=73373 -// $payload = ""; -// $orig = $frame->getPayload(); -// $partSize = 8; -// while (strlen($orig) > 0) { -// $part = substr($orig, 0, $partSize); -// $orig = substr($orig, strlen($part)); -// $flags = strlen($orig) > 0 ? ZLIB_PARTIAL_FLUSH : ZLIB_SYNC_FLUSH; -// $payload .= deflate_add($this->deflator, $part, $flags); -// } -// } else { - $payload = deflate_add( - $this->deflator, - $frame->getPayload(), - ZLIB_SYNC_FLUSH - ); -// } - - $deflatedFrame = new Frame( - substr($payload, 0, $frame->isFinal() ? -4 : strlen($payload)), - $frame->isFinal(), - $frame->getOpcode() - ); - - if ($frame->isFinal()) { - $deflatedFrame->setRsv1(); - } - - return $deflatedFrame; - } - - /** - * This is a separate function for testing purposes - * $memory_limit is only used for testing - * - * @param null|string $memory_limit - * @return int - */ - private static function getMemoryLimit($memory_limit = null) { - $memory_limit = $memory_limit === null ? \trim(\ini_get('memory_limit')) : $memory_limit; - $memory_limit_bytes = 0; - if ($memory_limit !== '') { - $shifty = ['k' => 0, 'm' => 10, 'g' => 20]; - $multiplier = strlen($memory_limit) > 1 ? substr(strtolower($memory_limit), -1) : ''; - $memory_limit = (int)$memory_limit; - $memory_limit_bytes = in_array($multiplier, array_keys($shifty), true) ? $memory_limit * 1024 << $shifty[$multiplier] : $memory_limit; - } - - return $memory_limit_bytes < 0 ? 0 : $memory_limit_bytes; - } -} diff --git a/vendor/ratchet/rfc6455/src/Messaging/MessageInterface.php b/vendor/ratchet/rfc6455/src/Messaging/MessageInterface.php deleted file mode 100644 index fd7212e..0000000 --- a/vendor/ratchet/rfc6455/src/Messaging/MessageInterface.php +++ /dev/null @@ -1,20 +0,0 @@ -markTestSkipped('Autobahn TestSuite results not found'); - } - - $resultsJson = file_get_contents($fileName); - $results = json_decode($resultsJson); - $agentName = array_keys(get_object_vars($results))[0]; - - foreach ($results->$agentName as $name => $result) { - if ($result->behavior === "INFORMATIONAL") { - continue; - } - - $this->assertTrue(in_array($result->behavior, ["OK", "NON-STRICT"]), "Autobahn test case " . $name . " in " . $fileName); - } - } - - public function testAutobahnClientResults() { - $this->verifyAutobahnResults(__DIR__ . '/ab/reports/clients/index.json'); - } - - public function testAutobahnServerResults() { - $this->verifyAutobahnResults(__DIR__ . '/ab/reports/servers/index.json'); - } -} diff --git a/vendor/ratchet/rfc6455/tests/ab/clientRunner.php b/vendor/ratchet/rfc6455/tests/ab/clientRunner.php deleted file mode 100644 index c6becbc..0000000 --- a/vendor/ratchet/rfc6455/tests/ab/clientRunner.php +++ /dev/null @@ -1,268 +0,0 @@ - 1 ? $argv[1] : "127.0.0.1"; - -$loop = React\EventLoop\Factory::create(); - -$connector = new Connector($loop); - -function echoStreamerFactory($conn, $permessageDeflateOptions = null) -{ - $permessageDeflateOptions = $permessageDeflateOptions ?: PermessageDeflateOptions::createDisabled(); - - return new \Ratchet\RFC6455\Messaging\MessageBuffer( - new \Ratchet\RFC6455\Messaging\CloseFrameChecker, - function (\Ratchet\RFC6455\Messaging\MessageInterface $msg, MessageBuffer $messageBuffer) use ($conn) { - $messageBuffer->sendMessage($msg->getPayload(), true, $msg->isBinary()); - }, - function (\Ratchet\RFC6455\Messaging\FrameInterface $frame, MessageBuffer $messageBuffer) use ($conn) { - switch ($frame->getOpcode()) { - case Frame::OP_PING: - return $conn->write((new Frame($frame->getPayload(), true, Frame::OP_PONG))->maskPayload()->getContents()); - break; - case Frame::OP_CLOSE: - return $conn->end((new Frame($frame->getPayload(), true, Frame::OP_CLOSE))->maskPayload()->getContents()); - break; - } - }, - false, - null, - null, - null, - [$conn, 'write'], - $permessageDeflateOptions - ); -} - -function getTestCases() { - global $testServer; - global $connector; - - $deferred = new Deferred(); - - $connector->connect($testServer . ':9002')->then(function (ConnectionInterface $connection) use ($deferred, $testServer) { - $cn = new ClientNegotiator(); - $cnRequest = $cn->generateRequest(new Uri('ws://' . $testServer . ':9002/getCaseCount')); - - $rawResponse = ""; - $response = null; - - /** @var MessageBuffer $ms */ - $ms = null; - - $connection->on('data', function ($data) use ($connection, &$rawResponse, &$response, &$ms, $cn, $deferred, &$context, $cnRequest) { - if ($response === null) { - $rawResponse .= $data; - $pos = strpos($rawResponse, "\r\n\r\n"); - if ($pos) { - $data = substr($rawResponse, $pos + 4); - $rawResponse = substr($rawResponse, 0, $pos + 4); - $response = Message::parseResponse($rawResponse); - - if (!$cn->validateResponse($cnRequest, $response)) { - $connection->end(); - $deferred->reject(); - } else { - $ms = new MessageBuffer( - new CloseFrameChecker, - function (MessageInterface $msg) use ($deferred, $connection) { - $deferred->resolve($msg->getPayload()); - $connection->close(); - }, - null, - false, - null, - null, - null, - function () {} - ); - } - } - } - - // feed the message streamer - if ($ms) { - $ms->onData($data); - } - }); - - $connection->write(Message::toString($cnRequest)); - }); - - return $deferred->promise(); -} - -$cn = new \Ratchet\RFC6455\Handshake\ClientNegotiator( - PermessageDeflateOptions::permessageDeflateSupported() ? PermessageDeflateOptions::createEnabled() : null); - -function runTest($case) -{ - global $connector; - global $testServer; - global $cn; - - $casePath = "/runCase?case={$case}&agent=" . AGENT; - - $deferred = new Deferred(); - - $connector->connect($testServer . ':9002')->then(function (ConnectionInterface $connection) use ($deferred, $casePath, $case, $testServer) { - $cn = new ClientNegotiator( - PermessageDeflateOptions::permessageDeflateSupported() ? PermessageDeflateOptions::createEnabled() : null); - $cnRequest = $cn->generateRequest(new Uri('ws://' . $testServer . ':9002' . $casePath)); - - $rawResponse = ""; - $response = null; - - $ms = null; - - $connection->on('data', function ($data) use ($connection, &$rawResponse, &$response, &$ms, $cn, $deferred, &$context, $cnRequest) { - if ($response === null) { - $rawResponse .= $data; - $pos = strpos($rawResponse, "\r\n\r\n"); - if ($pos) { - $data = substr($rawResponse, $pos + 4); - $rawResponse = substr($rawResponse, 0, $pos + 4); - $response = Message::parseResponse($rawResponse); - - if (!$cn->validateResponse($cnRequest, $response)) { - echo "Invalid response.\n"; - $connection->end(); - $deferred->reject(); - } else { - try { - $permessageDeflateOptions = PermessageDeflateOptions::fromRequestOrResponse($response)[0]; - $ms = echoStreamerFactory( - $connection, - $permessageDeflateOptions - ); - } catch (InvalidPermessageDeflateOptionsException $e) { - $connection->end(); - } - } - } - } - - // feed the message streamer - if ($ms) { - $ms->onData($data); - } - }); - - $connection->on('close', function () use ($deferred) { - $deferred->resolve(); - }); - - $connection->write(Message::toString($cnRequest)); - }); - - return $deferred->promise(); -} - -function createReport() { - global $connector; - global $testServer; - - $deferred = new Deferred(); - - $connector->connect($testServer . ':9002')->then(function (ConnectionInterface $connection) use ($deferred, $testServer) { - // $reportPath = "/updateReports?agent=" . AGENT . "&shutdownOnComplete=true"; - // we will stop it using docker now instead of just shutting down - $reportPath = "/updateReports?agent=" . AGENT; - $cn = new ClientNegotiator(); - $cnRequest = $cn->generateRequest(new Uri('ws://' . $testServer . ':9002' . $reportPath)); - - $rawResponse = ""; - $response = null; - - /** @var MessageBuffer $ms */ - $ms = null; - - $connection->on('data', function ($data) use ($connection, &$rawResponse, &$response, &$ms, $cn, $deferred, &$context, $cnRequest) { - if ($response === null) { - $rawResponse .= $data; - $pos = strpos($rawResponse, "\r\n\r\n"); - if ($pos) { - $data = substr($rawResponse, $pos + 4); - $rawResponse = substr($rawResponse, 0, $pos + 4); - $response = Message::parseResponse($rawResponse); - - if (!$cn->validateResponse($cnRequest, $response)) { - $connection->end(); - $deferred->reject(); - } else { - $ms = new MessageBuffer( - new CloseFrameChecker, - function (MessageInterface $msg) use ($deferred, $connection) { - $deferred->resolve($msg->getPayload()); - $connection->close(); - }, - null, - false, - null, - null, - null, - function () {} - ); - } - } - } - - // feed the message streamer - if ($ms) { - $ms->onData($data); - } - }); - - $connection->write(Message::toString($cnRequest)); - }); - - return $deferred->promise(); -} - - -$testPromises = []; - -getTestCases()->then(function ($count) use ($loop) { - $allDeferred = new Deferred(); - - $runNextCase = function () use (&$i, &$runNextCase, $count, $allDeferred) { - $i++; - if ($i > $count) { - $allDeferred->resolve(); - return; - } - echo "Running test $i/$count..."; - $startTime = microtime(true); - runTest($i) - ->then(function () use ($startTime) { - echo " completed " . round((microtime(true) - $startTime) * 1000) . " ms\n"; - }) - ->then($runNextCase); - }; - - $i = 0; - $runNextCase(); - - $allDeferred->promise()->then(function () { - createReport(); - }); -}); - -$loop->run(); diff --git a/vendor/ratchet/rfc6455/tests/ab/docker_bootstrap.sh b/vendor/ratchet/rfc6455/tests/ab/docker_bootstrap.sh deleted file mode 100644 index 44d4581..0000000 --- a/vendor/ratchet/rfc6455/tests/ab/docker_bootstrap.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash -set -x - -echo "Running $0" - -echo Adding "$1 host.ratchet.internal" to /etc/hosts file - -echo $1 host.ratchet.internal >> /etc/hosts - -echo /etc/hosts contains: -cat /etc/hosts -echo diff --git a/vendor/ratchet/rfc6455/tests/ab/fuzzingclient.json b/vendor/ratchet/rfc6455/tests/ab/fuzzingclient.json deleted file mode 100644 index d410be3..0000000 --- a/vendor/ratchet/rfc6455/tests/ab/fuzzingclient.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "options": { - "failByDrop": false - } - , "outdir": "/reports/servers" - , "servers": [{ - "agent": "RatchetRFC/0.3" - , "url": "ws://host.ratchet.internal:9001" - , "options": {"version": 18} - }] - , "cases": [ - "*" - ] - , "exclude-cases": [] - , "exclude-agent-cases": {} -} diff --git a/vendor/ratchet/rfc6455/tests/ab/fuzzingclient_skip_deflate.json b/vendor/ratchet/rfc6455/tests/ab/fuzzingclient_skip_deflate.json deleted file mode 100644 index b1fddbe..0000000 --- a/vendor/ratchet/rfc6455/tests/ab/fuzzingclient_skip_deflate.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "options": { - "failByDrop": false - } - , "outdir": "/reports/servers" - , "servers": [{ - "agent": "RatchetRFC/0.3" - , "url": "ws://host.ratchet.internal:9001" - , "options": {"version": 18} - }] - , "cases": ["*"] - , "exclude-cases": ["12.*", "13.*"] - , "exclude-agent-cases": {} -} diff --git a/vendor/ratchet/rfc6455/tests/ab/fuzzingserver.json b/vendor/ratchet/rfc6455/tests/ab/fuzzingserver.json deleted file mode 100644 index 9f10403..0000000 --- a/vendor/ratchet/rfc6455/tests/ab/fuzzingserver.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "url": "ws://127.0.0.1:9002" - , "options": { - "failByDrop": false - } - , "outdir": "./reports/clients" - , "cases": [ - "*" - ] - , "exclude-cases": [] - , "exclude-agent-cases": {} -} diff --git a/vendor/ratchet/rfc6455/tests/ab/fuzzingserver_skip_deflate.json b/vendor/ratchet/rfc6455/tests/ab/fuzzingserver_skip_deflate.json deleted file mode 100644 index 9323191..0000000 --- a/vendor/ratchet/rfc6455/tests/ab/fuzzingserver_skip_deflate.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "url": "ws://127.0.0.1:9002" - , "options": { - "failByDrop": false - } - , "outdir": "./reports/clients" - , "cases": ["*"] - , "exclude-cases": ["12.*", "13.*"] - , "exclude-agent-cases": {} -} diff --git a/vendor/ratchet/rfc6455/tests/ab/run_ab_tests.sh b/vendor/ratchet/rfc6455/tests/ab/run_ab_tests.sh deleted file mode 100644 index 3df4a7d..0000000 --- a/vendor/ratchet/rfc6455/tests/ab/run_ab_tests.sh +++ /dev/null @@ -1,48 +0,0 @@ -set -x -cd tests/ab - -if [ "$ABTEST" = "client" ]; then - docker run --rm \ - -d \ - -v ${PWD}:/config \ - -v ${PWD}/reports:/reports \ - -p 9002:9002 \ - --name fuzzingserver \ - crossbario/autobahn-testsuite wstest -m fuzzingserver -s /config/fuzzingserver$SKIP_DEFLATE.json - sleep 5 - if [ "$TRAVIS" != "true" ]; then - echo "Running tests vs Autobahn test client" - ###docker run -it --rm --name abpytest crossbario/autobahn-testsuite wstest --mode testeeclient -w ws://host.docker.internal:9002 - fi - php -d memory_limit=256M clientRunner.php - - docker ps -a - - docker logs fuzzingserver - - docker stop fuzzingserver - - sleep 2 -fi - -if [ "$ABTEST" = "server" ]; then - php -d memory_limit=256M startServer.php & - sleep 3 - - if [ "$OSTYPE" = "linux-gnu" ]; then - IPADDR=`hostname -I | cut -f 1 -d ' '` - else - IPADDR=`ifconfig | grep "inet " | grep -Fv 127.0.0.1 | awk '{print $2}' | head -1 | tr -d 'adr:'` - fi - - docker run --rm \ - -i \ - -v ${PWD}:/config \ - -v ${PWD}/reports:/reports \ - --name fuzzingclient \ - crossbario/autobahn-testsuite /bin/sh -c "sh /config/docker_bootstrap.sh $IPADDR; wstest -m fuzzingclient -s /config/fuzzingclient$SKIP_DEFLATE.json" - sleep 1 - - # send the shutdown command to the PHP echo server - wget -O - -q http://127.0.0.1:9001/shutdown -fi diff --git a/vendor/ratchet/rfc6455/tests/ab/startServer.php b/vendor/ratchet/rfc6455/tests/ab/startServer.php deleted file mode 100644 index 7c169c6..0000000 --- a/vendor/ratchet/rfc6455/tests/ab/startServer.php +++ /dev/null @@ -1,86 +0,0 @@ -on('connection', function (React\Socket\ConnectionInterface $connection) use ($negotiator, $closeFrameChecker, $uException, $socket) { - $headerComplete = false; - $buffer = ''; - $parser = null; - $connection->on('data', function ($data) use ($connection, &$parser, &$headerComplete, &$buffer, $negotiator, $closeFrameChecker, $uException, $socket) { - if ($headerComplete) { - $parser->onData($data); - return; - } - - $buffer .= $data; - $parts = explode("\r\n\r\n", $buffer); - if (count($parts) < 2) { - return; - } - $headerComplete = true; - $psrRequest = Message::parseRequest($parts[0] . "\r\n\r\n"); - $negotiatorResponse = $negotiator->handshake($psrRequest); - - $negotiatorResponse = $negotiatorResponse->withAddedHeader("Content-Length", "0"); - - if ($negotiatorResponse->getStatusCode() !== 101 && $psrRequest->getUri()->getPath() === '/shutdown') { - $connection->end(Message::toString(new Response(200, [], 'Shutting down echo server.' . PHP_EOL))); - $socket->close(); - return; - }; - - $connection->write(Message::toString($negotiatorResponse)); - - if ($negotiatorResponse->getStatusCode() !== 101) { - $connection->end(); - return; - } - - // there is no need to look through the client requests - // we support any valid permessage deflate - $deflateOptions = PermessageDeflateOptions::fromRequestOrResponse($psrRequest)[0]; - - $parser = new \Ratchet\RFC6455\Messaging\MessageBuffer($closeFrameChecker, - function (MessageInterface $message, MessageBuffer $messageBuffer) { - $messageBuffer->sendMessage($message->getPayload(), true, $message->isBinary()); - }, function (FrameInterface $frame) use ($connection, &$parser) { - switch ($frame->getOpCode()) { - case Frame::OP_CLOSE: - $connection->end($frame->getContents()); - break; - case Frame::OP_PING: - $connection->write($parser->newFrame($frame->getPayload(), true, Frame::OP_PONG)->getContents()); - break; - } - }, true, function () use ($uException) { - return $uException; - }, - null, - null, - [$connection, 'write'], - $deflateOptions); - - array_shift($parts); - $parser->onData(implode("\r\n\r\n", $parts)); - }); -}); - -$loop->run(); diff --git a/vendor/ratchet/rfc6455/tests/bootstrap.php b/vendor/ratchet/rfc6455/tests/bootstrap.php deleted file mode 100644 index 511b041..0000000 --- a/vendor/ratchet/rfc6455/tests/bootstrap.php +++ /dev/null @@ -1,19 +0,0 @@ -addPsr4('Ratchet\\RFC6455\\Test\\', __DIR__); - break; - } -} diff --git a/vendor/ratchet/rfc6455/tests/unit/Handshake/PermessageDeflateOptionsTest.php b/vendor/ratchet/rfc6455/tests/unit/Handshake/PermessageDeflateOptionsTest.php deleted file mode 100644 index 11d3739..0000000 --- a/vendor/ratchet/rfc6455/tests/unit/Handshake/PermessageDeflateOptionsTest.php +++ /dev/null @@ -1,30 +0,0 @@ -assertEquals($supported, PermessageDeflateOptions::permessageDeflateSupported($version)); - } -} \ No newline at end of file diff --git a/vendor/ratchet/rfc6455/tests/unit/Handshake/RequestVerifierTest.php b/vendor/ratchet/rfc6455/tests/unit/Handshake/RequestVerifierTest.php deleted file mode 100644 index 5ba26b6..0000000 --- a/vendor/ratchet/rfc6455/tests/unit/Handshake/RequestVerifierTest.php +++ /dev/null @@ -1,180 +0,0 @@ -_v = new RequestVerifier(); - } - - public static function methodProvider() { - return array( - array(true, 'GET'), - array(true, 'get'), - array(true, 'Get'), - array(false, 'POST'), - array(false, 'DELETE'), - array(false, 'PUT'), - array(false, 'PATCH') - ); - } - /** - * @dataProvider methodProvider - */ - public function testMethodMustBeGet($result, $in) { - $this->assertEquals($result, $this->_v->verifyMethod($in)); - } - - public static function httpVersionProvider() { - return array( - array(true, 1.1), - array(true, '1.1'), - array(true, 1.2), - array(true, '1.2'), - array(true, 2), - array(true, '2'), - array(true, '2.0'), - array(false, '1.0'), - array(false, 1), - array(false, '0.9'), - array(false, ''), - array(false, 'hello') - ); - } - - /** - * @dataProvider httpVersionProvider - */ - public function testHttpVersionIsAtLeast1Point1($expected, $in) { - $this->assertEquals($expected, $this->_v->verifyHTTPVersion($in)); - } - - public static function uRIProvider() { - return array( - array(true, '/chat'), - array(true, '/hello/world?key=val'), - array(false, '/chat#bad'), - array(false, 'nope'), - array(false, '/ ಠ_ಠ '), - array(false, '/✖') - ); - } - - /** - * @dataProvider URIProvider - */ - public function testRequestUri($expected, $in) { - $this->assertEquals($expected, $this->_v->verifyRequestURI($in)); - } - - public static function hostProvider() { - return array( - array(true, ['server.example.com']), - array(false, []) - ); - } - - /** - * @dataProvider HostProvider - */ - public function testVerifyHostIsSet($expected, $in) { - $this->assertEquals($expected, $this->_v->verifyHost($in)); - } - - public static function upgradeProvider() { - return array( - array(true, ['websocket']), - array(true, ['Websocket']), - array(true, ['webSocket']), - array(false, []), - array(false, ['']) - ); - } - - /** - * @dataProvider upgradeProvider - */ - public function testVerifyUpgradeIsWebSocket($expected, $val) { - $this->assertEquals($expected, $this->_v->verifyUpgradeRequest($val)); - } - - public static function connectionProvider() { - return array( - array(true, ['Upgrade']), - array(true, ['upgrade']), - array(true, ['keep-alive', 'Upgrade']), - array(true, ['Upgrade', 'keep-alive']), - array(true, ['keep-alive', 'Upgrade', 'something']), - // as seen in Firefox 47.0.1 - see https://github.com/ratchetphp/RFC6455/issues/14 - array(true, ['keep-alive, Upgrade']), - array(true, ['Upgrade, keep-alive']), - array(true, ['keep-alive, Upgrade, something']), - array(true, ['keep-alive, Upgrade', 'something']), - array(false, ['']), - array(false, []) - ); - } - - /** - * @dataProvider connectionProvider - */ - public function testConnectionHeaderVerification($expected, $val) { - $this->assertEquals($expected, $this->_v->verifyConnection($val)); - } - - public static function keyProvider() { - return array( - array(true, ['hkfa1L7uwN6DCo4IS3iWAw==']), - array(true, ['765vVoQpKSGJwPzJIMM2GA==']), - array(true, ['AQIDBAUGBwgJCgsMDQ4PEC==']), - array(true, ['axa2B/Yz2CdpfQAY2Q5P7w==']), - array(false, [0]), - array(false, ['Hello World']), - array(false, ['1234567890123456']), - array(false, ['123456789012345678901234']), - array(true, [base64_encode('UTF8allthngs+✓')]), - array(true, ['dGhlIHNhbXBsZSBub25jZQ==']), - array(false, []), - array(false, ['dGhlIHNhbXBsZSBub25jZQ==', 'Some other value']), - array(false, ['Some other value', 'dGhlIHNhbXBsZSBub25jZQ==']) - ); - } - - /** - * @dataProvider keyProvider - */ - public function testKeyIsBase64Encoded16BitNonce($expected, $val) { - $this->assertEquals($expected, $this->_v->verifyKey($val)); - } - - public static function versionProvider() { - return array( - array(true, [13]), - array(true, ['13']), - array(false, [12]), - array(false, [14]), - array(false, ['14']), - array(false, ['hi']), - array(false, ['']), - array(false, []) - ); - } - - /** - * @dataProvider versionProvider - */ - public function testVersionEquals13($expected, $in) { - $this->assertEquals($expected, $this->_v->verifyVersion($in)); - } -} \ No newline at end of file diff --git a/vendor/ratchet/rfc6455/tests/unit/Handshake/ResponseVerifierTest.php b/vendor/ratchet/rfc6455/tests/unit/Handshake/ResponseVerifierTest.php deleted file mode 100644 index 9a1459b..0000000 --- a/vendor/ratchet/rfc6455/tests/unit/Handshake/ResponseVerifierTest.php +++ /dev/null @@ -1,39 +0,0 @@ -_v = new ResponseVerifier; - } - - public static function subProtocolsProvider() { - return [ - [true, ['a'], ['a']] - , [true, ['c', 'd', 'a'], ['a']] - , [true, ['c, a', 'd'], ['a']] - , [true, [], []] - , [true, ['a', 'b'], []] - , [false, ['c', 'd', 'a'], ['b', 'a']] - , [false, ['a', 'b', 'c'], ['d']] - ]; - } - - /** - * @dataProvider subProtocolsProvider - */ - public function testVerifySubProtocol($expected, $request, $response) { - $this->assertEquals($expected, $this->_v->verifySubProtocol($request, $response)); - } -} diff --git a/vendor/ratchet/rfc6455/tests/unit/Handshake/ServerNegotiatorTest.php b/vendor/ratchet/rfc6455/tests/unit/Handshake/ServerNegotiatorTest.php deleted file mode 100644 index 720bdf9..0000000 --- a/vendor/ratchet/rfc6455/tests/unit/Handshake/ServerNegotiatorTest.php +++ /dev/null @@ -1,219 +0,0 @@ -handshake($request); - - $this->assertEquals('1.1', $response->getProtocolVersion()); - $this->assertEquals(426, $response->getStatusCode()); - $this->assertEquals('Upgrade header MUST be provided', $response->getReasonPhrase()); - $this->assertEquals('Upgrade', $response->getHeaderLine('Connection')); - $this->assertEquals('websocket', $response->getHeaderLine('Upgrade')); - $this->assertEquals('13', $response->getHeaderLine('Sec-WebSocket-Version')); - } - - public function testNoConnectionUpgradeRequested() { - $negotiator = new ServerNegotiator(new RequestVerifier()); - - $requestText = 'GET / HTTP/1.1 -Host: 127.0.0.1:6789 -Connection: keep-alive -Pragma: no-cache -Cache-Control: no-cache -Upgrade: websocket -Upgrade-Insecure-Requests: 1 -User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36 -Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 -Accept-Encoding: gzip, deflate, sdch, br -Accept-Language: en-US,en;q=0.8 - -'; - - $request = Message::parseRequest($requestText); - - $response = $negotiator->handshake($request); - - $this->assertEquals('1.1', $response->getProtocolVersion()); - $this->assertEquals(400, $response->getStatusCode()); - $this->assertEquals('Connection Upgrade MUST be requested', $response->getReasonPhrase()); - } - - public function testInvalidSecWebsocketKey() { - $negotiator = new ServerNegotiator(new RequestVerifier()); - - $requestText = 'GET / HTTP/1.1 -Host: 127.0.0.1:6789 -Connection: Upgrade -Pragma: no-cache -Cache-Control: no-cache -Upgrade: websocket -Sec-WebSocket-Key: 12345 -Upgrade-Insecure-Requests: 1 -User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36 -Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 -Accept-Encoding: gzip, deflate, sdch, br -Accept-Language: en-US,en;q=0.8 - -'; - - $request = Message::parseRequest($requestText); - - $response = $negotiator->handshake($request); - - $this->assertEquals('1.1', $response->getProtocolVersion()); - $this->assertEquals(400, $response->getStatusCode()); - $this->assertEquals('Invalid Sec-WebSocket-Key', $response->getReasonPhrase()); - } - - public function testInvalidSecWebsocketVersion() { - $negotiator = new ServerNegotiator(new RequestVerifier()); - - $requestText = 'GET / HTTP/1.1 -Host: 127.0.0.1:6789 -Connection: Upgrade -Pragma: no-cache -Cache-Control: no-cache -Upgrade: websocket -Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ== -Upgrade-Insecure-Requests: 1 -User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36 -Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 -Accept-Encoding: gzip, deflate, sdch, br -Accept-Language: en-US,en;q=0.8 - -'; - - $request = Message::parseRequest($requestText); - - $response = $negotiator->handshake($request); - - $this->assertEquals('1.1', $response->getProtocolVersion()); - $this->assertEquals(426, $response->getStatusCode()); - $this->assertEquals('Upgrade Required', $response->getReasonPhrase()); - $this->assertEquals('Upgrade', $response->getHeaderLine('Connection')); - $this->assertEquals('websocket', $response->getHeaderLine('Upgrade')); - $this->assertEquals('13', $response->getHeaderLine('Sec-WebSocket-Version')); - } - - public function testBadSubprotocolResponse() { - $negotiator = new ServerNegotiator(new RequestVerifier()); - $negotiator->setStrictSubProtocolCheck(true); - $negotiator->setSupportedSubProtocols([]); - - $requestText = 'GET / HTTP/1.1 -Host: 127.0.0.1:6789 -Connection: Upgrade -Pragma: no-cache -Cache-Control: no-cache -Upgrade: websocket -Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ== -Sec-WebSocket-Version: 13 -Sec-WebSocket-Protocol: someprotocol -Upgrade-Insecure-Requests: 1 -User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36 -Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 -Accept-Encoding: gzip, deflate, sdch, br -Accept-Language: en-US,en;q=0.8 - -'; - - $request = Message::parseRequest($requestText); - - $response = $negotiator->handshake($request); - - $this->assertEquals('1.1', $response->getProtocolVersion()); - $this->assertEquals(426, $response->getStatusCode()); - $this->assertEquals('No Sec-WebSocket-Protocols requested supported', $response->getReasonPhrase()); - $this->assertEquals('Upgrade', $response->getHeaderLine('Connection')); - $this->assertEquals('websocket', $response->getHeaderLine('Upgrade')); - $this->assertEquals('13', $response->getHeaderLine('Sec-WebSocket-Version')); - } - - public function testNonStrictSubprotocolDoesNotIncludeHeaderWhenNoneAgreedOn() { - $negotiator = new ServerNegotiator(new RequestVerifier()); - $negotiator->setStrictSubProtocolCheck(false); - $negotiator->setSupportedSubProtocols(['someproto']); - - $requestText = 'GET / HTTP/1.1 -Host: 127.0.0.1:6789 -Connection: Upgrade -Pragma: no-cache -Cache-Control: no-cache -Upgrade: websocket -Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ== -Sec-WebSocket-Version: 13 -Sec-WebSocket-Protocol: someotherproto -Upgrade-Insecure-Requests: 1 -User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36 -Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 -Accept-Encoding: gzip, deflate, sdch, br -Accept-Language: en-US,en;q=0.8 - -'; - - $request = Message::parseRequest($requestText); - - $response = $negotiator->handshake($request); - - $this->assertEquals('1.1', $response->getProtocolVersion()); - $this->assertEquals(101, $response->getStatusCode()); - $this->assertEquals('Upgrade', $response->getHeaderLine('Connection')); - $this->assertEquals('websocket', $response->getHeaderLine('Upgrade')); - $this->assertFalse($response->hasHeader('Sec-WebSocket-Protocol')); - } - - public function testSuggestsAppropriateSubprotocol() - { - $negotiator = new ServerNegotiator(new RequestVerifier()); - $negotiator->setStrictSubProtocolCheck(true); - $negotiator->setSupportedSubProtocols(['someproto']); - - $requestText = 'GET / HTTP/1.1 -Host: localhost:8080 -Connection: Upgrade -Upgrade: websocket -Sec-WebSocket-Version: 13 -User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 -Accept-Encoding: gzip, deflate, br -Accept-Language: en-US,en;q=0.9 -Sec-WebSocket-Key: HGt8eQax7nAOlXUw0/asPQ== -Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits - -'; - - $request = Message::parseRequest($requestText); - - $response = $negotiator->handshake($request); - - $this->assertEquals('1.1', $response->getProtocolVersion()); - $this->assertEquals(426, $response->getStatusCode()); - $this->assertEquals('Upgrade', $response->getHeaderLine('Connection')); - $this->assertEquals('websocket', $response->getHeaderLine('Upgrade')); - $this->assertEquals('someproto', $response->getHeaderLine('Sec-WebSocket-Protocol')); - } -} diff --git a/vendor/ratchet/rfc6455/tests/unit/Messaging/FrameTest.php b/vendor/ratchet/rfc6455/tests/unit/Messaging/FrameTest.php deleted file mode 100644 index 54a4599..0000000 --- a/vendor/ratchet/rfc6455/tests/unit/Messaging/FrameTest.php +++ /dev/null @@ -1,504 +0,0 @@ -_frame = new Frame; - } - - /** - * Encode the fake binary string to send over the wire - * @param string of 1's and 0's - * @return string - */ - public static function encode($in) { - if (strlen($in) > 8) { - $out = ''; - while (strlen($in) >= 8) { - $out .= static::encode(substr($in, 0, 8)); - $in = substr($in, 8); - } - return $out; - } - return chr(bindec($in)); - } - - /** - * This is a data provider - * param string The UTF8 message - * param string The WebSocket framed message, then base64_encoded - */ - public static function UnframeMessageProvider() { - return array( - array('Hello World!', 'gYydAIfa1WXrtvIg0LXvbOP7'), - array('!@#$%^&*()-=_+[]{}\|/.,<>`~', 'gZv+h96r38f9j9vZ+IHWrvOWoayF9oX6gtfRqfKXwOeg'), - array('ಠ_ಠ', 'gYfnSpu5B/g75gf4Ow=='), - array( - "The quick brown fox jumps over the lazy dog. All work and no play makes Chris a dull boy. I'm trying to get past 128 characters for a unit test here...", - 'gf4Amahb14P8M7Kj2S6+4MN7tfHHLLmjzjSvo8IuuvPbe7j1zSn398A+9+/JIa6jzDSwrYh7lu/Ee6Ds2jD34sY/9+3He6fvySL37skwsvCIGL/xwSj34og/ou/Ee7Xs0XX3o+F8uqPcKa7qxjz398d7sObce6fi2y/3sppj9+DAOqXiyy+y8dt7sezae7aj3TW+94gvsvDce7/m2j75rYY=' - ) - ); - } - - public static function underflowProvider() { - return array( - array('isFinal', ''), - array('getRsv1', ''), - array('getRsv2', ''), - array('getRsv3', ''), - array('getOpcode', ''), - array('isMasked', '10000001'), - array('getPayloadLength', '10000001'), - array('getPayloadLength', '1000000111111110'), - array('getMaskingKey', '1000000110000111'), - array('getPayload', '100000011000000100011100101010101001100111110100') - ); - } - - /** - * @dataProvider underflowProvider - * - * @covers Ratchet\RFC6455\Messaging\Frame::isFinal - * @covers Ratchet\RFC6455\Messaging\Frame::getRsv1 - * @covers Ratchet\RFC6455\Messaging\Frame::getRsv2 - * @covers Ratchet\RFC6455\Messaging\Frame::getRsv3 - * @covers Ratchet\RFC6455\Messaging\Frame::getOpcode - * @covers Ratchet\RFC6455\Messaging\Frame::isMasked - * @covers Ratchet\RFC6455\Messaging\Frame::getPayloadLength - * @covers Ratchet\RFC6455\Messaging\Frame::getMaskingKey - * @covers Ratchet\RFC6455\Messaging\Frame::getPayload - */ - public function testUnderflowExceptionFromAllTheMethodsMimickingBuffering($method, $bin) { - $this->setExpectedException('\UnderflowException'); - if (!empty($bin)) { - $this->_frame->addBuffer(static::encode($bin)); - } - call_user_func(array($this->_frame, $method)); - } - - /** - * A data provider for testing the first byte of a WebSocket frame - * param bool Given, is the byte indicate this is the final frame - * param int Given, what is the expected opcode - * param string of 0|1 Each character represents a bit in the byte - */ - public static function firstByteProvider() { - return array( - array(false, false, false, true, 8, '00011000'), - array(true, false, true, false, 10, '10101010'), - array(false, false, false, false, 15, '00001111'), - array(true, false, false, false, 1, '10000001'), - array(true, true, true, true, 15, '11111111'), - array(true, true, false, false, 7, '11000111') - ); - } - - /** - * @dataProvider firstByteProvider - * covers Ratchet\RFC6455\Messaging\Frame::isFinal - */ - public function testFinCodeFromBits($fin, $rsv1, $rsv2, $rsv3, $opcode, $bin) { - $this->_frame->addBuffer(static::encode($bin)); - $this->assertEquals($fin, $this->_frame->isFinal()); - } - - /** - * @dataProvider firstByteProvider - * covers Ratchet\RFC6455\Messaging\Frame::getRsv1 - * covers Ratchet\RFC6455\Messaging\Frame::getRsv2 - * covers Ratchet\RFC6455\Messaging\Frame::getRsv3 - */ - public function testGetRsvFromBits($fin, $rsv1, $rsv2, $rsv3, $opcode, $bin) { - $this->_frame->addBuffer(static::encode($bin)); - $this->assertEquals($rsv1, $this->_frame->getRsv1()); - $this->assertEquals($rsv2, $this->_frame->getRsv2()); - $this->assertEquals($rsv3, $this->_frame->getRsv3()); - } - - /** - * @dataProvider firstByteProvider - * covers Ratchet\RFC6455\Messaging\Frame::getOpcode - */ - public function testOpcodeFromBits($fin, $rsv1, $rsv2, $rsv3, $opcode, $bin) { - $this->_frame->addBuffer(static::encode($bin)); - $this->assertEquals($opcode, $this->_frame->getOpcode()); - } - - /** - * @dataProvider UnframeMessageProvider - * covers Ratchet\RFC6455\Messaging\Frame::isFinal - */ - public function testFinCodeFromFullMessage($msg, $encoded) { - $this->_frame->addBuffer(base64_decode($encoded)); - $this->assertTrue($this->_frame->isFinal()); - } - - /** - * @dataProvider UnframeMessageProvider - * covers Ratchet\RFC6455\Messaging\Frame::getOpcode - */ - public function testOpcodeFromFullMessage($msg, $encoded) { - $this->_frame->addBuffer(base64_decode($encoded)); - $this->assertEquals(1, $this->_frame->getOpcode()); - } - - public static function payloadLengthDescriptionProvider() { - return array( - array(7, '01110101'), - array(7, '01111101'), - array(23, '01111110'), - array(71, '01111111'), - array(7, '00000000'), // Should this throw an exception? Can a payload be empty? - array(7, '00000001') - ); - } - - /** - * @dataProvider payloadLengthDescriptionProvider - * covers Ratchet\RFC6455\Messaging\Frame::addBuffer - * covers Ratchet\RFC6455\Messaging\Frame::getFirstPayloadVal - */ - public function testFirstPayloadDesignationValue($bits, $bin) { - $this->_frame->addBuffer(static::encode($this->_firstByteFinText)); - $this->_frame->addBuffer(static::encode($bin)); - $ref = new \ReflectionClass($this->_frame); - $cb = $ref->getMethod('getFirstPayloadVal'); - $cb->setAccessible(true); - $this->assertEquals(bindec($bin), $cb->invoke($this->_frame)); - } - - /** - * covers Ratchet\RFC6455\Messaging\Frame::getFirstPayloadVal - */ - public function testFirstPayloadValUnderflow() { - $ref = new \ReflectionClass($this->_frame); - $cb = $ref->getMethod('getFirstPayloadVal'); - $cb->setAccessible(true); - $this->setExpectedException('UnderflowException'); - $cb->invoke($this->_frame); - } - - /** - * @dataProvider payloadLengthDescriptionProvider - * covers Ratchet\RFC6455\Messaging\Frame::getNumPayloadBits - */ - public function testDetermineHowManyBitsAreUsedToDescribePayload($expected_bits, $bin) { - $this->_frame->addBuffer(static::encode($this->_firstByteFinText)); - $this->_frame->addBuffer(static::encode($bin)); - $ref = new \ReflectionClass($this->_frame); - $cb = $ref->getMethod('getNumPayloadBits'); - $cb->setAccessible(true); - $this->assertEquals($expected_bits, $cb->invoke($this->_frame)); - } - - /** - * covers Ratchet\RFC6455\Messaging\Frame::getNumPayloadBits - */ - public function testgetNumPayloadBitsUnderflow() { - $ref = new \ReflectionClass($this->_frame); - $cb = $ref->getMethod('getNumPayloadBits'); - $cb->setAccessible(true); - $this->setExpectedException('UnderflowException'); - $cb->invoke($this->_frame); - } - - public function secondByteProvider() { - return array( - array(true, 1, '10000001'), - array(false, 1, '00000001'), - array(true, 125, $this->_secondByteMaskedSPL) - ); - } - /** - * @dataProvider secondByteProvider - * covers Ratchet\RFC6455\Messaging\Frame::isMasked - */ - public function testIsMaskedReturnsExpectedValue($masked, $payload_length, $bin) { - $this->_frame->addBuffer(static::encode($this->_firstByteFinText)); - $this->_frame->addBuffer(static::encode($bin)); - $this->assertEquals($masked, $this->_frame->isMasked()); - } - - /** - * @dataProvider UnframeMessageProvider - * covers Ratchet\RFC6455\Messaging\Frame::isMasked - */ - public function testIsMaskedFromFullMessage($msg, $encoded) { - $this->_frame->addBuffer(base64_decode($encoded)); - $this->assertTrue($this->_frame->isMasked()); - } - - /** - * @dataProvider secondByteProvider - * covers Ratchet\RFC6455\Messaging\Frame::getPayloadLength - */ - public function testGetPayloadLengthWhenOnlyFirstFrameIsUsed($masked, $payload_length, $bin) { - $this->_frame->addBuffer(static::encode($this->_firstByteFinText)); - $this->_frame->addBuffer(static::encode($bin)); - $this->assertEquals($payload_length, $this->_frame->getPayloadLength()); - } - - /** - * @dataProvider UnframeMessageProvider - * covers Ratchet\RFC6455\Messaging\Frame::getPayloadLength - * @todo Not yet testing when second additional payload length descriptor - */ - public function testGetPayloadLengthFromFullMessage($msg, $encoded) { - $this->_frame->addBuffer(base64_decode($encoded)); - $this->assertEquals(strlen($msg), $this->_frame->getPayloadLength()); - } - - public function maskingKeyProvider() { - $frame = new Frame; - return array( - array($frame->generateMaskingKey()), - array($frame->generateMaskingKey()), - array($frame->generateMaskingKey()) - ); - } - - /** - * @dataProvider maskingKeyProvider - * covers Ratchet\RFC6455\Messaging\Frame::getMaskingKey - * @todo I I wrote the dataProvider incorrectly, skipping for now - */ - public function testGetMaskingKey($mask) { - $this->_frame->addBuffer(static::encode($this->_firstByteFinText)); - $this->_frame->addBuffer(static::encode($this->_secondByteMaskedSPL)); - $this->_frame->addBuffer($mask); - $this->assertEquals($mask, $this->_frame->getMaskingKey()); - } - - /** - * covers Ratchet\RFC6455\Messaging\Frame::getMaskingKey - */ - public function testGetMaskingKeyOnUnmaskedPayload() { - $frame = new Frame('Hello World!'); - $this->assertEquals('', $frame->getMaskingKey()); - } - - /** - * @dataProvider UnframeMessageProvider - * covers Ratchet\RFC6455\Messaging\Frame::getPayload - * @todo Move this test to bottom as it requires all methods of the class - */ - public function testUnframeFullMessage($unframed, $base_framed) { - $this->_frame->addBuffer(base64_decode($base_framed)); - $this->assertEquals($unframed, $this->_frame->getPayload()); - } - - public static function messageFragmentProvider() { - return array( - array(false, '', '', '', '', '') - ); - } - - /** - * @dataProvider UnframeMessageProvider - * covers Ratchet\RFC6455\Messaging\Frame::getPayload - */ - public function testCheckPiecingTogetherMessage($msg, $encoded) { - $framed = base64_decode($encoded); - for ($i = 0, $len = strlen($framed);$i < $len; $i++) { - $this->_frame->addBuffer(substr($framed, $i, 1)); - } - $this->assertEquals($msg, $this->_frame->getPayload()); - } - - /** - * covers Ratchet\RFC6455\Messaging\Frame::__construct - * covers Ratchet\RFC6455\Messaging\Frame::getPayloadLength - * covers Ratchet\RFC6455\Messaging\Frame::getPayload - */ - public function testLongCreate() { - $len = 65525; - $pl = $this->generateRandomString($len); - $frame = new Frame($pl, true, Frame::OP_PING); - $this->assertTrue($frame->isFinal()); - $this->assertEquals(Frame::OP_PING, $frame->getOpcode()); - $this->assertFalse($frame->isMasked()); - $this->assertEquals($len, $frame->getPayloadLength()); - $this->assertEquals($pl, $frame->getPayload()); - } - - /** - * covers Ratchet\RFC6455\Messaging\Frame::__construct - * covers Ratchet\RFC6455\Messaging\Frame::getPayloadLength - */ - public function testReallyLongCreate() { - $len = 65575; - $frame = new Frame($this->generateRandomString($len)); - $this->assertEquals($len, $frame->getPayloadLength()); - } - /** - * covers Ratchet\RFC6455\Messaging\Frame::__construct - * covers Ratchet\RFC6455\Messaging\Frame::extractOverflow - */ - public function testExtractOverflow() { - $string1 = $this->generateRandomString(); - $frame1 = new Frame($string1); - $string2 = $this->generateRandomString(); - $frame2 = new Frame($string2); - $cat = new Frame; - $cat->addBuffer($frame1->getContents() . $frame2->getContents()); - $this->assertEquals($frame1->getContents(), $cat->getContents()); - $this->assertEquals($string1, $cat->getPayload()); - $uncat = new Frame; - $uncat->addBuffer($cat->extractOverflow()); - $this->assertEquals($string1, $cat->getPayload()); - $this->assertEquals($string2, $uncat->getPayload()); - } - - /** - * covers Ratchet\RFC6455\Messaging\Frame::extractOverflow - */ - public function testEmptyExtractOverflow() { - $string = $this->generateRandomString(); - $frame = new Frame($string); - $this->assertEquals($string, $frame->getPayload()); - $this->assertEquals('', $frame->extractOverflow()); - $this->assertEquals($string, $frame->getPayload()); - } - - /** - * covers Ratchet\RFC6455\Messaging\Frame::getContents - */ - public function testGetContents() { - $msg = 'The quick brown fox jumps over the lazy dog.'; - $frame1 = new Frame($msg); - $frame2 = new Frame($msg); - $frame2->maskPayload(); - $this->assertNotEquals($frame1->getContents(), $frame2->getContents()); - $this->assertEquals(strlen($frame1->getContents()) + 4, strlen($frame2->getContents())); - } - - /** - * covers Ratchet\RFC6455\Messaging\Frame::maskPayload - */ - public function testMasking() { - $msg = 'The quick brown fox jumps over the lazy dog.'; - $frame = new Frame($msg); - $frame->maskPayload(); - $this->assertTrue($frame->isMasked()); - $this->assertEquals($msg, $frame->getPayload()); - } - - /** - * covers Ratchet\RFC6455\Messaging\Frame::unMaskPayload - */ - public function testUnMaskPayload() { - $string = $this->generateRandomString(); - $frame = new Frame($string); - $frame->maskPayload()->unMaskPayload(); - $this->assertFalse($frame->isMasked()); - $this->assertEquals($string, $frame->getPayload()); - } - - /** - * covers Ratchet\RFC6455\Messaging\Frame::generateMaskingKey - */ - public function testGenerateMaskingKey() { - $dupe = false; - $done = array(); - for ($i = 0; $i < 10; $i++) { - $new = $this->_frame->generateMaskingKey(); - if (in_array($new, $done)) { - $dupe = true; - } - $done[] = $new; - } - $this->assertEquals(4, strlen($new)); - $this->assertFalse($dupe); - } - - /** - * covers Ratchet\RFC6455\Messaging\Frame::maskPayload - */ - public function testGivenMaskIsValid() { - $this->setExpectedException('InvalidArgumentException'); - $this->_frame->maskPayload('hello world'); - } - - /** - * covers Ratchet\RFC6455\Messaging\Frame::maskPayload - */ - public function testGivenMaskIsValidAscii() { - if (!extension_loaded('mbstring')) { - $this->markTestSkipped("mbstring required for this test"); - return; - } - $this->setExpectedException('OutOfBoundsException'); - $this->_frame->maskPayload('x✖'); - } - - protected function generateRandomString($length = 10, $addSpaces = true, $addNumbers = true) { - $characters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!"$%&/()=[]{}'; // ยง - $useChars = array(); - for($i = 0; $i < $length; $i++) { - $useChars[] = $characters[mt_rand(0, strlen($characters) - 1)]; - } - if($addSpaces === true) { - array_push($useChars, ' ', ' ', ' ', ' ', ' ', ' '); - } - if($addNumbers === true) { - array_push($useChars, rand(0, 9), rand(0, 9), rand(0, 9)); - } - shuffle($useChars); - $randomString = trim(implode('', $useChars)); - $randomString = substr($randomString, 0, $length); - return $randomString; - } - - /** - * There was a frame boundary issue when the first 3 bytes of a frame with a payload greater than - * 126 was added to the frame buffer and then Frame::getPayloadLength was called. It would cause the frame - * to set the payload length to 126 and then not recalculate it once the full length information was available. - * - * This is fixed by setting the defPayLen back to -1 before the underflow exception is thrown. - * - * covers Ratchet\RFC6455\Messaging\Frame::getPayloadLength - * covers Ratchet\RFC6455\Messaging\Frame::extractOverflow - */ - public function testFrameDeliveredOneByteAtATime() { - $startHeader = "\x01\x7e\x01\x00"; // header for a text frame of 256 - non-final - $framePayload = str_repeat("*", 256); - $rawOverflow = "xyz"; - $rawFrame = $startHeader . $framePayload . $rawOverflow; - $frame = new Frame(); - $payloadLen = 256; - for ($i = 0; $i < strlen($rawFrame); $i++) { - $frame->addBuffer($rawFrame[$i]); - try { - // payloadLen will - $payloadLen = $frame->getPayloadLength(); - } catch (\UnderflowException $e) { - if ($i > 2) { // we should get an underflow on 0,1,2 - $this->fail("Underflow exception when the frame length should be available"); - } - } - if ($payloadLen !== 256) { - $this->fail("Payload length of " . $payloadLen . " should have been 256."); - } - } - // make sure the overflow is good - $this->assertEquals($rawOverflow, $frame->extractOverflow()); - } -} diff --git a/vendor/ratchet/rfc6455/tests/unit/Messaging/MessageBufferTest.php b/vendor/ratchet/rfc6455/tests/unit/Messaging/MessageBufferTest.php deleted file mode 100644 index 89dcca0..0000000 --- a/vendor/ratchet/rfc6455/tests/unit/Messaging/MessageBufferTest.php +++ /dev/null @@ -1,376 +0,0 @@ -getContents(); - - $data = str_repeat($frameRaw, 1000); - - $messageCount = 0; - - $messageBuffer = new MessageBuffer( - new CloseFrameChecker(), - function (Message $message) use (&$messageCount) { - $messageCount++; - $this->assertEquals('a', $message->getPayload()); - }, - null, - false - ); - - $messageBuffer->onData($data); - - $this->assertEquals(1000, $messageCount); - } - - public function testProcessingMessagesAsynchronouslyWhileBlockingInMessageHandler() { - $loop = Factory::create(); - - $frameA = new Frame('a', true, Frame::OP_TEXT); - $frameB = new Frame('b', true, Frame::OP_TEXT); - - $bReceived = false; - - $messageBuffer = new MessageBuffer( - new CloseFrameChecker(), - function (Message $message) use (&$messageCount, &$bReceived, $loop) { - $payload = $message->getPayload(); - $bReceived = $payload === 'b'; - - if (!$bReceived) { - $loop->run(); - } - }, - null, - false - ); - - $loop->addPeriodicTimer(0.1, function () use ($messageBuffer, $frameB, $loop) { - $loop->stop(); - $messageBuffer->onData($frameB->getContents()); - }); - - $messageBuffer->onData($frameA->getContents()); - - $this->assertTrue($bReceived); - } - - public function testInvalidFrameLength() { - $frame = new Frame(str_repeat('a', 200), true, Frame::OP_TEXT); - - $frameRaw = $frame->getContents(); - - $frameRaw[1] = "\x7f"; // 127 in the first spot - - $frameRaw[2] = "\xff"; // this will unpack to -1 - $frameRaw[3] = "\xff"; - $frameRaw[4] = "\xff"; - $frameRaw[5] = "\xff"; - $frameRaw[6] = "\xff"; - $frameRaw[7] = "\xff"; - $frameRaw[8] = "\xff"; - $frameRaw[9] = "\xff"; - - /** @var Frame $controlFrame */ - $controlFrame = null; - $messageCount = 0; - - $messageBuffer = new MessageBuffer( - new CloseFrameChecker(), - function (Message $message) use (&$messageCount) { - $messageCount++; - }, - function (Frame $frame) use (&$controlFrame) { - $this->assertNull($controlFrame); - $controlFrame = $frame; - }, - false, - null, - 0, - 10 - ); - - $messageBuffer->onData($frameRaw); - - $this->assertEquals(0, $messageCount); - $this->assertTrue($controlFrame instanceof Frame); - $this->assertEquals(Frame::OP_CLOSE, $controlFrame->getOpcode()); - $this->assertEquals([Frame::CLOSE_PROTOCOL], array_merge(unpack('n*', substr($controlFrame->getPayload(), 0, 2)))); - - } - - public function testFrameLengthTooBig() { - $frame = new Frame(str_repeat('a', 200), true, Frame::OP_TEXT); - - $frameRaw = $frame->getContents(); - - $frameRaw[1] = "\x7f"; // 127 in the first spot - - $frameRaw[2] = "\x7f"; // this will unpack to -1 - $frameRaw[3] = "\xff"; - $frameRaw[4] = "\xff"; - $frameRaw[5] = "\xff"; - $frameRaw[6] = "\xff"; - $frameRaw[7] = "\xff"; - $frameRaw[8] = "\xff"; - $frameRaw[9] = "\xff"; - - /** @var Frame $controlFrame */ - $controlFrame = null; - $messageCount = 0; - - $messageBuffer = new MessageBuffer( - new CloseFrameChecker(), - function (Message $message) use (&$messageCount) { - $messageCount++; - }, - function (Frame $frame) use (&$controlFrame) { - $this->assertNull($controlFrame); - $controlFrame = $frame; - }, - false, - null, - 0, - 10 - ); - - $messageBuffer->onData($frameRaw); - - $this->assertEquals(0, $messageCount); - $this->assertTrue($controlFrame instanceof Frame); - $this->assertEquals(Frame::OP_CLOSE, $controlFrame->getOpcode()); - $this->assertEquals([Frame::CLOSE_TOO_BIG], array_merge(unpack('n*', substr($controlFrame->getPayload(), 0, 2)))); - } - - public function testFrameLengthBiggerThanMaxMessagePayload() { - $frame = new Frame(str_repeat('a', 200), true, Frame::OP_TEXT); - - $frameRaw = $frame->getContents(); - - /** @var Frame $controlFrame */ - $controlFrame = null; - $messageCount = 0; - - $messageBuffer = new MessageBuffer( - new CloseFrameChecker(), - function (Message $message) use (&$messageCount) { - $messageCount++; - }, - function (Frame $frame) use (&$controlFrame) { - $this->assertNull($controlFrame); - $controlFrame = $frame; - }, - false, - null, - 100, - 0 - ); - - $messageBuffer->onData($frameRaw); - - $this->assertEquals(0, $messageCount); - $this->assertTrue($controlFrame instanceof Frame); - $this->assertEquals(Frame::OP_CLOSE, $controlFrame->getOpcode()); - $this->assertEquals([Frame::CLOSE_TOO_BIG], array_merge(unpack('n*', substr($controlFrame->getPayload(), 0, 2)))); - } - - public function testSecondFrameLengthPushesPastMaxMessagePayload() { - $frame = new Frame(str_repeat('a', 200), false, Frame::OP_TEXT); - $firstFrameRaw = $frame->getContents(); - $frame = new Frame(str_repeat('b', 200), true, Frame::OP_TEXT); - $secondFrameRaw = $frame->getContents(); - - /** @var Frame $controlFrame */ - $controlFrame = null; - $messageCount = 0; - - $messageBuffer = new MessageBuffer( - new CloseFrameChecker(), - function (Message $message) use (&$messageCount) { - $messageCount++; - }, - function (Frame $frame) use (&$controlFrame) { - $this->assertNull($controlFrame); - $controlFrame = $frame; - }, - false, - null, - 300, - 0 - ); - - $messageBuffer->onData($firstFrameRaw); - // only put part of the second frame in to watch it fail fast - $messageBuffer->onData(substr($secondFrameRaw, 0, 150)); - - $this->assertEquals(0, $messageCount); - $this->assertTrue($controlFrame instanceof Frame); - $this->assertEquals(Frame::OP_CLOSE, $controlFrame->getOpcode()); - $this->assertEquals([Frame::CLOSE_TOO_BIG], array_merge(unpack('n*', substr($controlFrame->getPayload(), 0, 2)))); - } - - /** - * Some test cases from memory limit inspired by https://github.com/BrandEmbassy/php-memory - * - * Here is the license for that project: - * MIT License - * - * Copyright (c) 2018 Brand Embassy - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - - /** - * @dataProvider phpConfigurationProvider - * - * @param string $phpConfigurationValue - * @param int $expectedLimit - */ - public function testMemoryLimits($phpConfigurationValue, $expectedLimit) { - $method = new \ReflectionMethod('Ratchet\RFC6455\Messaging\MessageBuffer', 'getMemoryLimit'); - $method->setAccessible(true); - $actualLimit = $method->invoke(null, $phpConfigurationValue); - - $this->assertSame($expectedLimit, $actualLimit); - } - - public function phpConfigurationProvider() { - return [ - 'without unit type, just bytes' => ['500', 500], - '1 GB with big "G"' => ['1G', 1 * 1024 * 1024 * 1024], - '128 MB with big "M"' => ['128M', 128 * 1024 * 1024], - '128 MB with small "m"' => ['128m', 128 * 1024 * 1024], - '24 kB with small "k"' => ['24k', 24 * 1024], - '2 GB with small "g"' => ['2g', 2 * 1024 * 1024 * 1024], - 'unlimited memory' => ['-1', 0], - 'invalid float value' => ['2.5M', 2 * 1024 * 1024], - 'empty value' => ['', 0], - 'invalid ini setting' => ['whatever it takes', 0] - ]; - } - - /** - * @expectedException \InvalidArgumentException - */ - public function testInvalidMaxFramePayloadSizes() { - $messageBuffer = new MessageBuffer( - new CloseFrameChecker(), - function (Message $message) {}, - function (Frame $frame) {}, - false, - null, - 0, - 0x8000000000000000 - ); - } - - /** - * @expectedException \InvalidArgumentException - */ - public function testInvalidMaxMessagePayloadSizes() { - $messageBuffer = new MessageBuffer( - new CloseFrameChecker(), - function (Message $message) {}, - function (Frame $frame) {}, - false, - null, - 0x8000000000000000, - 0 - ); - } - - /** - * @dataProvider phpConfigurationProvider - * - * @param string $phpConfigurationValue - * @param int $expectedLimit - * - * @runInSeparateProcess - * @requires PHP 7.0 - */ - public function testIniSizes($phpConfigurationValue, $expectedLimit) { - $value = @ini_set('memory_limit', $phpConfigurationValue); - if ($value === false) { - $this->markTestSkipped("Does not support setting the memory_limit lower than current memory_usage"); - } - - $messageBuffer = new MessageBuffer( - new CloseFrameChecker(), - function (Message $message) {}, - function (Frame $frame) {}, - false, - null - ); - - if ($expectedLimit === -1) { - $expectedLimit = 0; - } - - $prop = new \ReflectionProperty($messageBuffer, 'maxMessagePayloadSize'); - $prop->setAccessible(true); - $this->assertEquals($expectedLimit / 4, $prop->getValue($messageBuffer)); - - $prop = new \ReflectionProperty($messageBuffer, 'maxFramePayloadSize'); - $prop->setAccessible(true); - $this->assertEquals($expectedLimit / 4, $prop->getValue($messageBuffer)); - } - - /** - * @runInSeparateProcess - * @requires PHP 7.0 - */ - public function testInvalidIniSize() { - $value = @ini_set('memory_limit', 'lots of memory'); - if ($value === false) { - $this->markTestSkipped("Does not support setting the memory_limit lower than current memory_usage"); - } - - $messageBuffer = new MessageBuffer( - new CloseFrameChecker(), - function (Message $message) {}, - function (Frame $frame) {}, - false, - null - ); - - $prop = new \ReflectionProperty($messageBuffer, 'maxMessagePayloadSize'); - $prop->setAccessible(true); - $this->assertEquals(0, $prop->getValue($messageBuffer)); - - $prop = new \ReflectionProperty($messageBuffer, 'maxFramePayloadSize'); - $prop->setAccessible(true); - $this->assertEquals(0, $prop->getValue($messageBuffer)); - } -} \ No newline at end of file diff --git a/vendor/ratchet/rfc6455/tests/unit/Messaging/MessageTest.php b/vendor/ratchet/rfc6455/tests/unit/Messaging/MessageTest.php deleted file mode 100644 index c307da8..0000000 --- a/vendor/ratchet/rfc6455/tests/unit/Messaging/MessageTest.php +++ /dev/null @@ -1,61 +0,0 @@ -message = new Message; - } - - public function testNoFrames() { - $this->assertFalse($this->message->isCoalesced()); - } - - public function testNoFramesOpCode() { - $this->setExpectedException('UnderflowException'); - $this->message->getOpCode(); - } - - public function testFragmentationPayload() { - $a = 'Hello '; - $b = 'World!'; - $f1 = new Frame($a, false); - $f2 = new Frame($b, true, Frame::OP_CONTINUE); - $this->message->addFrame($f1)->addFrame($f2); - $this->assertEquals(strlen($a . $b), $this->message->getPayloadLength()); - $this->assertEquals($a . $b, $this->message->getPayload()); - } - - public function testUnbufferedFragment() { - $this->message->addFrame(new Frame('The quick brow', false)); - $this->setExpectedException('UnderflowException'); - $this->message->getPayload(); - } - - public function testGetOpCode() { - $this->message - ->addFrame(new Frame('The quick brow', false, Frame::OP_TEXT)) - ->addFrame(new Frame('n fox jumps ov', false, Frame::OP_CONTINUE)) - ->addFrame(new Frame('er the lazy dog', true, Frame::OP_CONTINUE)) - ; - $this->assertEquals(Frame::OP_TEXT, $this->message->getOpCode()); - } - - public function testGetUnBufferedPayloadLength() { - $this->message - ->addFrame(new Frame('The quick brow', false, Frame::OP_TEXT)) - ->addFrame(new Frame('n fox jumps ov', false, Frame::OP_CONTINUE)) - ; - $this->assertEquals(28, $this->message->getPayloadLength()); - } -} \ No newline at end of file diff --git a/vendor/react/async/CHANGELOG.md b/vendor/react/async/CHANGELOG.md deleted file mode 100644 index bafac9d..0000000 --- a/vendor/react/async/CHANGELOG.md +++ /dev/null @@ -1,112 +0,0 @@ -# Changelog - -## 4.3.0 (2024-06-04) - -* Feature: Improve performance by avoiding unneeded references in `FiberMap`. - (#88 by @clue) - -* Feature: Improve PHP 8.4+ support by avoiding implicitly nullable type declarations. - (#87 by @clue) - -* Improve type safety for test environment. - (#86 by @SimonFrings) - -## 4.2.0 (2023-11-22) - -* Feature: Add Promise v3 template types for all public functions. - (#40 by @WyriHaximus and @clue) - - All our public APIs now use Promise v3 template types to guide IDEs and static - analysis tools (like PHPStan), helping with proper type usage and improving - code quality: - - ```php - assertType('bool', await(resolve(true))); - assertType('PromiseInterface', async(fn(): bool => true)()); - assertType('PromiseInterface', coroutine(fn(): bool => true)); - ``` - -* Feature: Full PHP 8.3 compatibility. - (#81 by @clue) - -* Update test suite to avoid unhandled promise rejections. - (#79 by @clue) - -## 4.1.0 (2023-06-22) - -* Feature: Add new `delay()` function to delay program execution. - (#69 and #78 by @clue) - - ```php - echo 'a'; - Loop::addTimer(1.0, function () { - echo 'b'; - }); - React\Async\delay(3.0); - echo 'c'; - - // prints "a" at t=0.0s - // prints "b" at t=1.0s - // prints "c" at t=3.0s - ``` - -* Update test suite, add PHPStan with `max` level and report failed assertions. - (#66 and #76 by @clue and #61 and #73 by @WyriHaximus) - -## 4.0.0 (2022-07-11) - -A major new feature release, see [**release announcement**](https://clue.engineering/2022/announcing-reactphp-async). - -* We'd like to emphasize that this component is production ready and battle-tested. - We plan to support all long-term support (LTS) releases for at least 24 months, - so you have a rock-solid foundation to build on top of. - -* The v4 release will be the way forward for this package. However, we will still - actively support v3 and v2 to provide a smooth upgrade path for those not yet - on PHP 8.1+. If you're using an older PHP version, you may use either version - which all provide a compatible API but may not take advantage of newer language - features. You may target multiple versions at the same time to support a wider range of - PHP versions: - - * [`4.x` branch](https://github.com/reactphp/async/tree/4.x) (PHP 8.1+) - * [`3.x` branch](https://github.com/reactphp/async/tree/3.x) (PHP 7.1+) - * [`2.x` branch](https://github.com/reactphp/async/tree/2.x) (PHP 5.3+) - -This update involves some major new features and a minor BC break over the -`v3.0.0` release. We've tried hard to avoid BC breaks where possible and -minimize impact otherwise. We expect that most consumers of this package will be -affected by BC breaks, but updating should take no longer than a few minutes. -See below for more details: - -* Feature / BC break: Require PHP 8.1+ and add `mixed` type declarations. - (#14 by @clue) - -* Feature: Add Fiber-based `async()` and `await()` functions. - (#15, #18, #19 and #20 by @WyriHaximus and #26, #28, #30, #32, #34, #55 and #57 by @clue) - -* Project maintenance, rename `main` branch to `4.x` and update installation instructions. - (#29 by @clue) - -The following changes had to be ported to this release due to our branching -strategy, but also appeared in the `v3.0.0` release: - -* Feature: Support iterable type for `parallel()` + `series()` + `waterfall()`. - (#49 by @clue) - -* Feature: Forward compatibility with upcoming Promise v3. - (#48 by @clue) - -* Minor documentation improvements. - (#36 by @SimonFrings and #51 by @nhedger) - -## 3.0.0 (2022-07-11) - -See [`3.x` CHANGELOG](https://github.com/reactphp/async/blob/3.x/CHANGELOG.md) for more details. - -## 2.0.0 (2022-07-11) - -See [`2.x` CHANGELOG](https://github.com/reactphp/async/blob/2.x/CHANGELOG.md) for more details. - -## 1.0.0 (2013-02-07) - -* First tagged release diff --git a/vendor/react/async/LICENSE b/vendor/react/async/LICENSE deleted file mode 100644 index 44acaef..0000000 --- a/vendor/react/async/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2012 Christian Lück, Cees-Jan Kiewiet, Jan Sorgalla, Chris Boden, Igor Wiedler - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is furnished -to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/vendor/react/async/README.md b/vendor/react/async/README.md deleted file mode 100644 index 9a49cde..0000000 --- a/vendor/react/async/README.md +++ /dev/null @@ -1,672 +0,0 @@ -# Async Utilities - -[![CI status](https://github.com/reactphp/async/workflows/CI/badge.svg)](https://github.com/reactphp/async/actions) -[![installs on Packagist](https://img.shields.io/packagist/dt/react/async?color=blue&label=installs%20on%20Packagist)](https://packagist.org/packages/react/async) - -Async utilities and fibers for [ReactPHP](https://reactphp.org/). - -This library allows you to manage async control flow. It provides a number of -combinators for [Promise](https://github.com/reactphp/promise)-based APIs. -Instead of nesting or chaining promise callbacks, you can declare them as a -list, which is resolved sequentially in an async manner. -React/Async will not automagically change blocking code to be async. You need -to have an actual event loop and non-blocking libraries interacting with that -event loop for it to work. As long as you have a Promise-based API that runs in -an event loop, it can be used with this library. - -**Table of Contents** - -* [Usage](#usage) - * [async()](#async) - * [await()](#await) - * [coroutine()](#coroutine) - * [delay()](#delay) - * [parallel()](#parallel) - * [series()](#series) - * [waterfall()](#waterfall) -* [Todo](#todo) -* [Install](#install) -* [Tests](#tests) -* [License](#license) - -## Usage - -This lightweight library consists only of a few simple functions. -All functions reside under the `React\Async` namespace. - -The below examples refer to all functions with their fully-qualified names like this: - -```php -React\Async\await(…); -``` - -As of PHP 5.6+ you can also import each required function into your code like this: - -```php -use function React\Async\await; - -await(…); -``` - -Alternatively, you can also use an import statement similar to this: - -```php -use React\Async; - -Async\await(…); -``` - -### async() - -The `async(callable():(PromiseInterface|T) $function): (callable():PromiseInterface)` function can be used to -return an async function for a function that uses [`await()`](#await) internally. - -This function is specifically designed to complement the [`await()` function](#await). -The [`await()` function](#await) can be considered *blocking* from the -perspective of the calling code. You can avoid this blocking behavior by -wrapping it in an `async()` function call. Everything inside this function -will still be blocked, but everything outside this function can be executed -asynchronously without blocking: - -```php -Loop::addTimer(0.5, React\Async\async(function () { - echo 'a'; - React\Async\await(React\Promise\Timer\sleep(1.0)); - echo 'c'; -})); - -Loop::addTimer(1.0, function () { - echo 'b'; -}); - -// prints "a" at t=0.5s -// prints "b" at t=1.0s -// prints "c" at t=1.5s -``` - -See also the [`await()` function](#await) for more details. - -Note that this function only works in tandem with the [`await()` function](#await). -In particular, this function does not "magically" make any blocking function -non-blocking: - -```php -Loop::addTimer(0.5, React\Async\async(function () { - echo 'a'; - sleep(1); // broken: using PHP's blocking sleep() for demonstration purposes - echo 'c'; -})); - -Loop::addTimer(1.0, function () { - echo 'b'; -}); - -// prints "a" at t=0.5s -// prints "c" at t=1.5s: Correct timing, but wrong order -// prints "b" at t=1.5s: Triggered too late because it was blocked -``` - -As an alternative, you should always make sure to use this function in tandem -with the [`await()` function](#await) and an async API returning a promise -as shown in the previous example. - -The `async()` function is specifically designed for cases where it is used -as a callback (such as an event loop timer, event listener, or promise -callback). For this reason, it returns a new function wrapping the given -`$function` instead of directly invoking it and returning its value. - -```php -use function React\Async\async; - -Loop::addTimer(1.0, async(function () { … })); -$connection->on('close', async(function () { … })); -$stream->on('data', async(function ($data) { … })); -$promise->then(async(function (int $result) { … })); -``` - -You can invoke this wrapping function to invoke the given `$function` with -any arguments given as-is. The function will always return a Promise which -will be fulfilled with whatever your `$function` returns. Likewise, it will -return a promise that will be rejected if you throw an `Exception` or -`Throwable` from your `$function`. This allows you to easily create -Promise-based functions: - -```php -$promise = React\Async\async(function (): int { - $browser = new React\Http\Browser(); - $urls = [ - 'https://example.com/alice', - 'https://example.com/bob' - ]; - - $bytes = 0; - foreach ($urls as $url) { - $response = React\Async\await($browser->get($url)); - assert($response instanceof Psr\Http\Message\ResponseInterface); - $bytes += $response->getBody()->getSize(); - } - return $bytes; -})(); - -$promise->then(function (int $bytes) { - echo 'Total size: ' . $bytes . PHP_EOL; -}, function (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; -}); -``` - -The previous example uses [`await()`](#await) inside a loop to highlight how -this vastly simplifies consuming asynchronous operations. At the same time, -this naive example does not leverage concurrent execution, as it will -essentially "await" between each operation. In order to take advantage of -concurrent execution within the given `$function`, you can "await" multiple -promises by using a single [`await()`](#await) together with Promise-based -primitives like this: - -```php -$promise = React\Async\async(function (): int { - $browser = new React\Http\Browser(); - $urls = [ - 'https://example.com/alice', - 'https://example.com/bob' - ]; - - $promises = []; - foreach ($urls as $url) { - $promises[] = $browser->get($url); - } - - try { - $responses = React\Async\await(React\Promise\all($promises)); - } catch (Exception $e) { - foreach ($promises as $promise) { - $promise->cancel(); - } - throw $e; - } - - $bytes = 0; - foreach ($responses as $response) { - assert($response instanceof Psr\Http\Message\ResponseInterface); - $bytes += $response->getBody()->getSize(); - } - return $bytes; -})(); - -$promise->then(function (int $bytes) { - echo 'Total size: ' . $bytes . PHP_EOL; -}, function (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; -}); -``` - -The returned promise is implemented in such a way that it can be cancelled -when it is still pending. Cancelling a pending promise will cancel any awaited -promises inside that fiber or any nested fibers. As such, the following example -will only output `ab` and cancel the pending [`delay()`](#delay). -The [`await()`](#await) calls in this example would throw a `RuntimeException` -from the cancelled [`delay()`](#delay) call that bubbles up through the fibers. - -```php -$promise = async(static function (): int { - echo 'a'; - await(async(static function (): void { - echo 'b'; - delay(2); - echo 'c'; - })()); - echo 'd'; - - return time(); -})(); - -$promise->cancel(); -await($promise); -``` - -### await() - -The `await(PromiseInterface $promise): T` function can be used to -block waiting for the given `$promise` to be fulfilled. - -```php -$result = React\Async\await($promise); -``` - -This function will only return after the given `$promise` has settled, i.e. -either fulfilled or rejected. While the promise is pending, this function -can be considered *blocking* from the perspective of the calling code. -You can avoid this blocking behavior by wrapping it in an [`async()` function](#async) -call. Everything inside this function will still be blocked, but everything -outside this function can be executed asynchronously without blocking: - -```php -Loop::addTimer(0.5, React\Async\async(function () { - echo 'a'; - React\Async\await(React\Promise\Timer\sleep(1.0)); - echo 'c'; -})); - -Loop::addTimer(1.0, function () { - echo 'b'; -}); - -// prints "a" at t=0.5s -// prints "b" at t=1.0s -// prints "c" at t=1.5s -``` - -See also the [`async()` function](#async) for more details. - -Once the promise is fulfilled, this function will return whatever the promise -resolved to. - -Once the promise is rejected, this will throw whatever the promise rejected -with. If the promise did not reject with an `Exception` or `Throwable`, then -this function will throw an `UnexpectedValueException` instead. - -```php -try { - $result = React\Async\await($promise); - // promise successfully fulfilled with $result - echo 'Result: ' . $result; -} catch (Throwable $e) { - // promise rejected with $e - echo 'Error: ' . $e->getMessage(); -} -``` - -### coroutine() - -The `coroutine(callable(mixed ...$args):(\Generator|PromiseInterface|T) $function, mixed ...$args): PromiseInterface` function can be used to -execute a Generator-based coroutine to "await" promises. - -```php -React\Async\coroutine(function () { - $browser = new React\Http\Browser(); - - try { - $response = yield $browser->get('https://example.com/'); - assert($response instanceof Psr\Http\Message\ResponseInterface); - echo $response->getBody(); - } catch (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; - } -}); -``` - -Using Generator-based coroutines is an alternative to directly using the -underlying promise APIs. For many use cases, this makes using promise-based -APIs much simpler, as it resembles a synchronous code flow more closely. -The above example performs the equivalent of directly using the promise APIs: - -```php -$browser = new React\Http\Browser(); - -$browser->get('https://example.com/')->then(function (Psr\Http\Message\ResponseInterface $response) { - echo $response->getBody(); -}, function (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; -}); -``` - -The `yield` keyword can be used to "await" a promise resolution. Internally, -it will turn the entire given `$function` into a [`Generator`](https://www.php.net/manual/en/class.generator.php). -This allows the execution to be interrupted and resumed at the same place -when the promise is fulfilled. The `yield` statement returns whatever the -promise is fulfilled with. If the promise is rejected, it will throw an -`Exception` or `Throwable`. - -The `coroutine()` function will always return a Promise which will be -fulfilled with whatever your `$function` returns. Likewise, it will return -a promise that will be rejected if you throw an `Exception` or `Throwable` -from your `$function`. This allows you to easily create Promise-based -functions: - -```php -$promise = React\Async\coroutine(function () { - $browser = new React\Http\Browser(); - $urls = [ - 'https://example.com/alice', - 'https://example.com/bob' - ]; - - $bytes = 0; - foreach ($urls as $url) { - $response = yield $browser->get($url); - assert($response instanceof Psr\Http\Message\ResponseInterface); - $bytes += $response->getBody()->getSize(); - } - return $bytes; -}); - -$promise->then(function (int $bytes) { - echo 'Total size: ' . $bytes . PHP_EOL; -}, function (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; -}); -``` - -The previous example uses a `yield` statement inside a loop to highlight how -this vastly simplifies consuming asynchronous operations. At the same time, -this naive example does not leverage concurrent execution, as it will -essentially "await" between each operation. In order to take advantage of -concurrent execution within the given `$function`, you can "await" multiple -promises by using a single `yield` together with Promise-based primitives -like this: - -```php -$promise = React\Async\coroutine(function () { - $browser = new React\Http\Browser(); - $urls = [ - 'https://example.com/alice', - 'https://example.com/bob' - ]; - - $promises = []; - foreach ($urls as $url) { - $promises[] = $browser->get($url); - } - - try { - $responses = yield React\Promise\all($promises); - } catch (Exception $e) { - foreach ($promises as $promise) { - $promise->cancel(); - } - throw $e; - } - - $bytes = 0; - foreach ($responses as $response) { - assert($response instanceof Psr\Http\Message\ResponseInterface); - $bytes += $response->getBody()->getSize(); - } - return $bytes; -}); - -$promise->then(function (int $bytes) { - echo 'Total size: ' . $bytes . PHP_EOL; -}, function (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; -}); -``` - -### delay() - -The `delay(float $seconds): void` function can be used to -delay program execution for duration given in `$seconds`. - -```php -React\Async\delay($seconds); -``` - -This function will only return after the given number of `$seconds` have -elapsed. If there are no other events attached to this loop, it will behave -similar to PHP's [`sleep()` function](https://www.php.net/manual/en/function.sleep.php). - -```php -echo 'a'; -React\Async\delay(1.0); -echo 'b'; - -// prints "a" at t=0.0s -// prints "b" at t=1.0s -``` - -Unlike PHP's [`sleep()` function](https://www.php.net/manual/en/function.sleep.php), -this function may not necessarily halt execution of the entire process thread. -Instead, it allows the event loop to run any other events attached to the -same loop until the delay returns: - -```php -echo 'a'; -Loop::addTimer(1.0, function (): void { - echo 'b'; -}); -React\Async\delay(3.0); -echo 'c'; - -// prints "a" at t=0.0s -// prints "b" at t=1.0s -// prints "c" at t=3.0s -``` - -This behavior is especially useful if you want to delay the program execution -of a particular routine, such as when building a simple polling or retry -mechanism: - -```php -try { - something(); -} catch (Throwable) { - // in case of error, retry after a short delay - React\Async\delay(1.0); - something(); -} -``` - -Because this function only returns after some time has passed, it can be -considered *blocking* from the perspective of the calling code. You can avoid -this blocking behavior by wrapping it in an [`async()` function](#async) call. -Everything inside this function will still be blocked, but everything outside -this function can be executed asynchronously without blocking: - -```php -Loop::addTimer(0.5, React\Async\async(function (): void { - echo 'a'; - React\Async\delay(1.0); - echo 'c'; -})); - -Loop::addTimer(1.0, function (): void { - echo 'b'; -}); - -// prints "a" at t=0.5s -// prints "b" at t=1.0s -// prints "c" at t=1.5s -``` - -See also the [`async()` function](#async) for more details. - -Internally, the `$seconds` argument will be used as a timer for the loop so that -it keeps running until this timer triggers. This implies that if you pass a -really small (or negative) value, it will still start a timer and will thus -trigger at the earliest possible time in the future. - -The function is implemented in such a way that it can be cancelled when it is -running inside an [`async()` function](#async). Cancelling the resulting -promise will clean up any pending timers and throw a `RuntimeException` from -the pending delay which in turn would reject the resulting promise. - -```php -$promise = async(function (): void { - echo 'a'; - delay(3.0); - echo 'b'; -})(); - -Loop::addTimer(2.0, function () use ($promise): void { - $promise->cancel(); -}); - -// prints "a" at t=0.0s -// rejects $promise at t=2.0 -// never prints "b" -``` - -### parallel() - -The `parallel(iterable> $tasks): PromiseInterface>` function can be used -like this: - -```php -then(function (array $results) { - foreach ($results as $result) { - var_dump($result); - } -}, function (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; -}); -``` - -### series() - -The `series(iterable> $tasks): PromiseInterface>` function can be used -like this: - -```php -then(function (array $results) { - foreach ($results as $result) { - var_dump($result); - } -}, function (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; -}); -``` - -### waterfall() - -The `waterfall(iterable> $tasks): PromiseInterface` function can be used -like this: - -```php -then(function ($prev) { - echo "Final result is $prev\n"; -}, function (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; -}); -``` - -## Todo - - * Implement queue() - -## Install - -The recommended way to install this library is [through Composer](https://getcomposer.org/). -[New to Composer?](https://getcomposer.org/doc/00-intro.md) - -This project follows [SemVer](https://semver.org/). -This will install the latest supported version from this branch: - -```bash -composer require react/async:^4.3 -``` - -See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades. - -This project aims to run on any platform and thus does not require any PHP -extensions and supports running on PHP 8.1+. -It's *highly recommended to use the latest supported PHP version* for this project. - -We're committed to providing long-term support (LTS) options and to provide a -smooth upgrade path. If you're using an older PHP version, you may use the -[`3.x` branch](https://github.com/reactphp/async/tree/3.x) (PHP 7.1+) or -[`2.x` branch](https://github.com/reactphp/async/tree/2.x) (PHP 5.3+) which both -provide a compatible API but do not take advantage of newer language features. -You may target multiple versions at the same time to support a wider range of -PHP versions like this: - -```bash -composer require "react/async:^4 || ^3 || ^2" -``` - -## Tests - -To run the test suite, you first need to clone this repo and then install all -dependencies [through Composer](https://getcomposer.org/): - -```bash -composer install -``` - -To run the test suite, go to the project root and run: - -```bash -vendor/bin/phpunit -``` - -On top of this, we use PHPStan on max level to ensure type safety across the project: - -```bash -vendor/bin/phpstan -``` - -## License - -MIT, see [LICENSE file](LICENSE). - -This project is heavily influenced by [async.js](https://github.com/caolan/async). diff --git a/vendor/react/async/composer.json b/vendor/react/async/composer.json deleted file mode 100644 index 5d4082b..0000000 --- a/vendor/react/async/composer.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "name": "react/async", - "description": "Async utilities and fibers for ReactPHP", - "keywords": ["async", "ReactPHP"], - "license": "MIT", - "authors": [ - { - "name": "Christian Lück", - "homepage": "https://clue.engineering/", - "email": "christian@clue.engineering" - }, - { - "name": "Cees-Jan Kiewiet", - "homepage": "https://wyrihaximus.net/", - "email": "reactphp@ceesjankiewiet.nl" - }, - { - "name": "Jan Sorgalla", - "homepage": "https://sorgalla.com/", - "email": "jsorgalla@gmail.com" - }, - { - "name": "Chris Boden", - "homepage": "https://cboden.dev/", - "email": "cboden@gmail.com" - } - ], - "require": { - "php": ">=8.1", - "react/event-loop": "^1.2", - "react/promise": "^3.2 || ^2.8 || ^1.2.1" - }, - "require-dev": { - "phpstan/phpstan": "1.10.39", - "phpunit/phpunit": "^9.6" - }, - "autoload": { - "psr-4": { - "React\\Async\\": "src/" - }, - "files": [ - "src/functions_include.php" - ] - }, - "autoload-dev": { - "psr-4": { - "React\\Tests\\Async\\": "tests/" - } - } -} diff --git a/vendor/react/async/src/FiberFactory.php b/vendor/react/async/src/FiberFactory.php deleted file mode 100644 index ee90818..0000000 --- a/vendor/react/async/src/FiberFactory.php +++ /dev/null @@ -1,33 +0,0 @@ - new SimpleFiber(); - } -} diff --git a/vendor/react/async/src/FiberInterface.php b/vendor/react/async/src/FiberInterface.php deleted file mode 100644 index e40304e..0000000 --- a/vendor/react/async/src/FiberInterface.php +++ /dev/null @@ -1,23 +0,0 @@ -> */ - private static array $map = []; - - /** - * @param \Fiber $fiber - * @param PromiseInterface $promise - */ - public static function setPromise(\Fiber $fiber, PromiseInterface $promise): void - { - self::$map[\spl_object_id($fiber)] = $promise; - } - - /** - * @param \Fiber $fiber - */ - public static function unsetPromise(\Fiber $fiber): void - { - unset(self::$map[\spl_object_id($fiber)]); - } - - /** - * @param \Fiber $fiber - * @return ?PromiseInterface - */ - public static function getPromise(\Fiber $fiber): ?PromiseInterface - { - return self::$map[\spl_object_id($fiber)] ?? null; - } -} diff --git a/vendor/react/async/src/SimpleFiber.php b/vendor/react/async/src/SimpleFiber.php deleted file mode 100644 index 8c5460a..0000000 --- a/vendor/react/async/src/SimpleFiber.php +++ /dev/null @@ -1,79 +0,0 @@ - */ - private static ?\Fiber $scheduler = null; - - private static ?\Closure $suspend = null; - - /** @var ?\Fiber */ - private ?\Fiber $fiber = null; - - public function __construct() - { - $this->fiber = \Fiber::getCurrent(); - } - - public function resume(mixed $value): void - { - if ($this->fiber !== null) { - $this->fiber->resume($value); - } else { - self::$suspend = static fn() => $value; - } - - if (self::$suspend !== null && \Fiber::getCurrent() === self::$scheduler) { - $suspend = self::$suspend; - self::$suspend = null; - - \Fiber::suspend($suspend); - } - } - - public function throw(\Throwable $throwable): void - { - if ($this->fiber !== null) { - $this->fiber->throw($throwable); - } else { - self::$suspend = static fn() => throw $throwable; - } - - if (self::$suspend !== null && \Fiber::getCurrent() === self::$scheduler) { - $suspend = self::$suspend; - self::$suspend = null; - - \Fiber::suspend($suspend); - } - } - - public function suspend(): mixed - { - if ($this->fiber === null) { - if (self::$scheduler === null || self::$scheduler->isTerminated()) { - self::$scheduler = new \Fiber(static fn() => Loop::run()); - // Run event loop to completion on shutdown. - \register_shutdown_function(static function (): void { - assert(self::$scheduler instanceof \Fiber); - if (self::$scheduler->isSuspended()) { - self::$scheduler->resume(); - } - }); - } - - $ret = (self::$scheduler->isStarted() ? self::$scheduler->resume() : self::$scheduler->start()); - assert(\is_callable($ret)); - - return $ret(); - } - - return \Fiber::suspend(); - } -} diff --git a/vendor/react/async/src/functions.php b/vendor/react/async/src/functions.php deleted file mode 100644 index bcf40c1..0000000 --- a/vendor/react/async/src/functions.php +++ /dev/null @@ -1,846 +0,0 @@ -on('close', async(function () { … })); - * $stream->on('data', async(function ($data) { … })); - * $promise->then(async(function (int $result) { … })); - * ``` - * - * You can invoke this wrapping function to invoke the given `$function` with - * any arguments given as-is. The function will always return a Promise which - * will be fulfilled with whatever your `$function` returns. Likewise, it will - * return a promise that will be rejected if you throw an `Exception` or - * `Throwable` from your `$function`. This allows you to easily create - * Promise-based functions: - * - * ```php - * $promise = React\Async\async(function (): int { - * $browser = new React\Http\Browser(); - * $urls = [ - * 'https://example.com/alice', - * 'https://example.com/bob' - * ]; - * - * $bytes = 0; - * foreach ($urls as $url) { - * $response = React\Async\await($browser->get($url)); - * assert($response instanceof Psr\Http\Message\ResponseInterface); - * $bytes += $response->getBody()->getSize(); - * } - * return $bytes; - * })(); - * - * $promise->then(function (int $bytes) { - * echo 'Total size: ' . $bytes . PHP_EOL; - * }, function (Exception $e) { - * echo 'Error: ' . $e->getMessage() . PHP_EOL; - * }); - * ``` - * - * The previous example uses [`await()`](#await) inside a loop to highlight how - * this vastly simplifies consuming asynchronous operations. At the same time, - * this naive example does not leverage concurrent execution, as it will - * essentially "await" between each operation. In order to take advantage of - * concurrent execution within the given `$function`, you can "await" multiple - * promises by using a single [`await()`](#await) together with Promise-based - * primitives like this: - * - * ```php - * $promise = React\Async\async(function (): int { - * $browser = new React\Http\Browser(); - * $urls = [ - * 'https://example.com/alice', - * 'https://example.com/bob' - * ]; - * - * $promises = []; - * foreach ($urls as $url) { - * $promises[] = $browser->get($url); - * } - * - * try { - * $responses = React\Async\await(React\Promise\all($promises)); - * } catch (Exception $e) { - * foreach ($promises as $promise) { - * $promise->cancel(); - * } - * throw $e; - * } - * - * $bytes = 0; - * foreach ($responses as $response) { - * assert($response instanceof Psr\Http\Message\ResponseInterface); - * $bytes += $response->getBody()->getSize(); - * } - * return $bytes; - * })(); - * - * $promise->then(function (int $bytes) { - * echo 'Total size: ' . $bytes . PHP_EOL; - * }, function (Exception $e) { - * echo 'Error: ' . $e->getMessage() . PHP_EOL; - * }); - * ``` - * - * The returned promise is implemented in such a way that it can be cancelled - * when it is still pending. Cancelling a pending promise will cancel any awaited - * promises inside that fiber or any nested fibers. As such, the following example - * will only output `ab` and cancel the pending [`delay()`](#delay). - * The [`await()`](#await) calls in this example would throw a `RuntimeException` - * from the cancelled [`delay()`](#delay) call that bubbles up through the fibers. - * - * ```php - * $promise = async(static function (): int { - * echo 'a'; - * await(async(static function (): void { - * echo 'b'; - * delay(2); - * echo 'c'; - * })()); - * echo 'd'; - * - * return time(); - * })(); - * - * $promise->cancel(); - * await($promise); - * ``` - * - * @template T - * @template A1 (any number of function arguments, see https://github.com/phpstan/phpstan/issues/8214) - * @template A2 - * @template A3 - * @template A4 - * @template A5 - * @param callable(A1,A2,A3,A4,A5): (PromiseInterface|T) $function - * @return callable(A1=,A2=,A3=,A4=,A5=): PromiseInterface - * @since 4.0.0 - * @see coroutine() - */ -function async(callable $function): callable -{ - return static function (mixed ...$args) use ($function): PromiseInterface { - $fiber = null; - /** @var PromiseInterface $promise*/ - $promise = new Promise(function (callable $resolve, callable $reject) use ($function, $args, &$fiber): void { - $fiber = new \Fiber(function () use ($resolve, $reject, $function, $args, &$fiber): void { - try { - $resolve($function(...$args)); - } catch (\Throwable $exception) { - $reject($exception); - } finally { - assert($fiber instanceof \Fiber); - FiberMap::unsetPromise($fiber); - } - }); - - $fiber->start(); - }, function () use (&$fiber): void { - assert($fiber instanceof \Fiber); - $promise = FiberMap::getPromise($fiber); - if ($promise instanceof PromiseInterface && \method_exists($promise, 'cancel')) { - $promise->cancel(); - } - }); - - $lowLevelFiber = \Fiber::getCurrent(); - if ($lowLevelFiber !== null) { - FiberMap::setPromise($lowLevelFiber, $promise); - } - - return $promise; - }; -} - -/** - * Block waiting for the given `$promise` to be fulfilled. - * - * ```php - * $result = React\Async\await($promise); - * ``` - * - * This function will only return after the given `$promise` has settled, i.e. - * either fulfilled or rejected. While the promise is pending, this function - * can be considered *blocking* from the perspective of the calling code. - * You can avoid this blocking behavior by wrapping it in an [`async()` function](#async) - * call. Everything inside this function will still be blocked, but everything - * outside this function can be executed asynchronously without blocking: - * - * ```php - * Loop::addTimer(0.5, React\Async\async(function () { - * echo 'a'; - * React\Async\await(React\Promise\Timer\sleep(1.0)); - * echo 'c'; - * })); - * - * Loop::addTimer(1.0, function () { - * echo 'b'; - * }); - * - * // prints "a" at t=0.5s - * // prints "b" at t=1.0s - * // prints "c" at t=1.5s - * ``` - * - * See also the [`async()` function](#async) for more details. - * - * Once the promise is fulfilled, this function will return whatever the promise - * resolved to. - * - * Once the promise is rejected, this will throw whatever the promise rejected - * with. If the promise did not reject with an `Exception` or `Throwable`, then - * this function will throw an `UnexpectedValueException` instead. - * - * ```php - * try { - * $result = React\Async\await($promise); - * // promise successfully fulfilled with $result - * echo 'Result: ' . $result; - * } catch (Throwable $e) { - * // promise rejected with $e - * echo 'Error: ' . $e->getMessage(); - * } - * ``` - * - * @template T - * @param PromiseInterface $promise - * @return T returns whatever the promise resolves to - * @throws \Exception when the promise is rejected with an `Exception` - * @throws \Throwable when the promise is rejected with a `Throwable` - * @throws \UnexpectedValueException when the promise is rejected with an unexpected value (Promise API v1 or v2 only) - */ -function await(PromiseInterface $promise): mixed -{ - $fiber = null; - $resolved = false; - $rejected = false; - - /** @var T $resolvedValue */ - $resolvedValue = null; - $rejectedThrowable = null; - $lowLevelFiber = \Fiber::getCurrent(); - - $promise->then( - function (mixed $value) use (&$resolved, &$resolvedValue, &$fiber, $lowLevelFiber): void { - if ($lowLevelFiber !== null) { - FiberMap::unsetPromise($lowLevelFiber); - } - - /** @var ?\Fiber $fiber */ - if ($fiber === null) { - $resolved = true; - /** @var T $resolvedValue */ - $resolvedValue = $value; - return; - } - - $fiber->resume($value); - }, - function (mixed $throwable) use (&$rejected, &$rejectedThrowable, &$fiber, $lowLevelFiber): void { - if ($lowLevelFiber !== null) { - FiberMap::unsetPromise($lowLevelFiber); - } - - if (!$throwable instanceof \Throwable) { - $throwable = new \UnexpectedValueException( - 'Promise rejected with unexpected value of type ' . (is_object($throwable) ? get_class($throwable) : gettype($throwable)) /** @phpstan-ignore-line */ - ); - - // avoid garbage references by replacing all closures in call stack. - // what a lovely piece of code! - $r = new \ReflectionProperty('Exception', 'trace'); - $trace = $r->getValue($throwable); - assert(\is_array($trace)); - - // Exception trace arguments only available when zend.exception_ignore_args is not set - // @codeCoverageIgnoreStart - foreach ($trace as $ti => $one) { - if (isset($one['args'])) { - foreach ($one['args'] as $ai => $arg) { - if ($arg instanceof \Closure) { - $trace[$ti]['args'][$ai] = 'Object(' . \get_class($arg) . ')'; - } - } - } - } - // @codeCoverageIgnoreEnd - $r->setValue($throwable, $trace); - } - - if ($fiber === null) { - $rejected = true; - $rejectedThrowable = $throwable; - return; - } - - $fiber->throw($throwable); - } - ); - - if ($resolved) { - return $resolvedValue; - } - - if ($rejected) { - assert($rejectedThrowable instanceof \Throwable); - throw $rejectedThrowable; - } - - if ($lowLevelFiber !== null) { - FiberMap::setPromise($lowLevelFiber, $promise); - } - - $fiber = FiberFactory::create(); - - return $fiber->suspend(); -} - -/** - * Delay program execution for duration given in `$seconds`. - * - * ```php - * React\Async\delay($seconds); - * ``` - * - * This function will only return after the given number of `$seconds` have - * elapsed. If there are no other events attached to this loop, it will behave - * similar to PHP's [`sleep()` function](https://www.php.net/manual/en/function.sleep.php). - * - * ```php - * echo 'a'; - * React\Async\delay(1.0); - * echo 'b'; - * - * // prints "a" at t=0.0s - * // prints "b" at t=1.0s - * ``` - * - * Unlike PHP's [`sleep()` function](https://www.php.net/manual/en/function.sleep.php), - * this function may not necessarily halt execution of the entire process thread. - * Instead, it allows the event loop to run any other events attached to the - * same loop until the delay returns: - * - * ```php - * echo 'a'; - * Loop::addTimer(1.0, function (): void { - * echo 'b'; - * }); - * React\Async\delay(3.0); - * echo 'c'; - * - * // prints "a" at t=0.0s - * // prints "b" at t=1.0s - * // prints "c" at t=3.0s - * ``` - * - * This behavior is especially useful if you want to delay the program execution - * of a particular routine, such as when building a simple polling or retry - * mechanism: - * - * ```php - * try { - * something(); - * } catch (Throwable) { - * // in case of error, retry after a short delay - * React\Async\delay(1.0); - * something(); - * } - * ``` - * - * Because this function only returns after some time has passed, it can be - * considered *blocking* from the perspective of the calling code. You can avoid - * this blocking behavior by wrapping it in an [`async()` function](#async) call. - * Everything inside this function will still be blocked, but everything outside - * this function can be executed asynchronously without blocking: - * - * ```php - * Loop::addTimer(0.5, React\Async\async(function (): void { - * echo 'a'; - * React\Async\delay(1.0); - * echo 'c'; - * })); - * - * Loop::addTimer(1.0, function (): void { - * echo 'b'; - * }); - * - * // prints "a" at t=0.5s - * // prints "b" at t=1.0s - * // prints "c" at t=1.5s - * ``` - * - * See also the [`async()` function](#async) for more details. - * - * Internally, the `$seconds` argument will be used as a timer for the loop so that - * it keeps running until this timer triggers. This implies that if you pass a - * really small (or negative) value, it will still start a timer and will thus - * trigger at the earliest possible time in the future. - * - * The function is implemented in such a way that it can be cancelled when it is - * running inside an [`async()` function](#async). Cancelling the resulting - * promise will clean up any pending timers and throw a `RuntimeException` from - * the pending delay which in turn would reject the resulting promise. - * - * ```php - * $promise = async(function (): void { - * echo 'a'; - * delay(3.0); - * echo 'b'; - * })(); - * - * Loop::addTimer(2.0, function () use ($promise): void { - * $promise->cancel(); - * }); - * - * // prints "a" at t=0.0s - * // rejects $promise at t=2.0 - * // never prints "b" - * ``` - * - * @return void - * @throws \RuntimeException when the function is cancelled inside an `async()` function - * @see async() - * @uses await() - */ -function delay(float $seconds): void -{ - /** @var ?TimerInterface $timer */ - $timer = null; - - await(new Promise(function (callable $resolve) use ($seconds, &$timer): void { - $timer = Loop::addTimer($seconds, fn() => $resolve(null)); - }, function () use (&$timer): void { - assert($timer instanceof TimerInterface); - Loop::cancelTimer($timer); - throw new \RuntimeException('Delay cancelled'); - })); -} - -/** - * Execute a Generator-based coroutine to "await" promises. - * - * ```php - * React\Async\coroutine(function () { - * $browser = new React\Http\Browser(); - * - * try { - * $response = yield $browser->get('https://example.com/'); - * assert($response instanceof Psr\Http\Message\ResponseInterface); - * echo $response->getBody(); - * } catch (Exception $e) { - * echo 'Error: ' . $e->getMessage() . PHP_EOL; - * } - * }); - * ``` - * - * Using Generator-based coroutines is an alternative to directly using the - * underlying promise APIs. For many use cases, this makes using promise-based - * APIs much simpler, as it resembles a synchronous code flow more closely. - * The above example performs the equivalent of directly using the promise APIs: - * - * ```php - * $browser = new React\Http\Browser(); - * - * $browser->get('https://example.com/')->then(function (Psr\Http\Message\ResponseInterface $response) { - * echo $response->getBody(); - * }, function (Exception $e) { - * echo 'Error: ' . $e->getMessage() . PHP_EOL; - * }); - * ``` - * - * The `yield` keyword can be used to "await" a promise resolution. Internally, - * it will turn the entire given `$function` into a [`Generator`](https://www.php.net/manual/en/class.generator.php). - * This allows the execution to be interrupted and resumed at the same place - * when the promise is fulfilled. The `yield` statement returns whatever the - * promise is fulfilled with. If the promise is rejected, it will throw an - * `Exception` or `Throwable`. - * - * The `coroutine()` function will always return a Promise which will be - * fulfilled with whatever your `$function` returns. Likewise, it will return - * a promise that will be rejected if you throw an `Exception` or `Throwable` - * from your `$function`. This allows you to easily create Promise-based - * functions: - * - * ```php - * $promise = React\Async\coroutine(function () { - * $browser = new React\Http\Browser(); - * $urls = [ - * 'https://example.com/alice', - * 'https://example.com/bob' - * ]; - * - * $bytes = 0; - * foreach ($urls as $url) { - * $response = yield $browser->get($url); - * assert($response instanceof Psr\Http\Message\ResponseInterface); - * $bytes += $response->getBody()->getSize(); - * } - * return $bytes; - * }); - * - * $promise->then(function (int $bytes) { - * echo 'Total size: ' . $bytes . PHP_EOL; - * }, function (Exception $e) { - * echo 'Error: ' . $e->getMessage() . PHP_EOL; - * }); - * ``` - * - * The previous example uses a `yield` statement inside a loop to highlight how - * this vastly simplifies consuming asynchronous operations. At the same time, - * this naive example does not leverage concurrent execution, as it will - * essentially "await" between each operation. In order to take advantage of - * concurrent execution within the given `$function`, you can "await" multiple - * promises by using a single `yield` together with Promise-based primitives - * like this: - * - * ```php - * $promise = React\Async\coroutine(function () { - * $browser = new React\Http\Browser(); - * $urls = [ - * 'https://example.com/alice', - * 'https://example.com/bob' - * ]; - * - * $promises = []; - * foreach ($urls as $url) { - * $promises[] = $browser->get($url); - * } - * - * try { - * $responses = yield React\Promise\all($promises); - * } catch (Exception $e) { - * foreach ($promises as $promise) { - * $promise->cancel(); - * } - * throw $e; - * } - * - * $bytes = 0; - * foreach ($responses as $response) { - * assert($response instanceof Psr\Http\Message\ResponseInterface); - * $bytes += $response->getBody()->getSize(); - * } - * return $bytes; - * }); - * - * $promise->then(function (int $bytes) { - * echo 'Total size: ' . $bytes . PHP_EOL; - * }, function (Exception $e) { - * echo 'Error: ' . $e->getMessage() . PHP_EOL; - * }); - * ``` - * - * @template T - * @template TYield - * @template A1 (any number of function arguments, see https://github.com/phpstan/phpstan/issues/8214) - * @template A2 - * @template A3 - * @template A4 - * @template A5 - * @param callable(A1, A2, A3, A4, A5):(\Generator, TYield, PromiseInterface|T>|PromiseInterface|T) $function - * @param mixed ...$args Optional list of additional arguments that will be passed to the given `$function` as is - * @return PromiseInterface - * @since 3.0.0 - */ -function coroutine(callable $function, mixed ...$args): PromiseInterface -{ - try { - $generator = $function(...$args); - } catch (\Throwable $e) { - return reject($e); - } - - if (!$generator instanceof \Generator) { - return resolve($generator); - } - - $promise = null; - /** @var Deferred $deferred*/ - $deferred = new Deferred(function () use (&$promise) { - /** @var ?PromiseInterface $promise */ - if ($promise instanceof PromiseInterface && \method_exists($promise, 'cancel')) { - $promise->cancel(); - } - $promise = null; - }); - - /** @var callable $next */ - $next = function () use ($deferred, $generator, &$next, &$promise) { - try { - if (!$generator->valid()) { - $next = null; - $deferred->resolve($generator->getReturn()); - return; - } - } catch (\Throwable $e) { - $next = null; - $deferred->reject($e); - return; - } - - $promise = $generator->current(); - if (!$promise instanceof PromiseInterface) { - $next = null; - $deferred->reject(new \UnexpectedValueException( - 'Expected coroutine to yield ' . PromiseInterface::class . ', but got ' . (is_object($promise) ? get_class($promise) : gettype($promise)) - )); - return; - } - - /** @var PromiseInterface $promise */ - assert($next instanceof \Closure); - $promise->then(function ($value) use ($generator, $next) { - $generator->send($value); - $next(); - }, function (\Throwable $reason) use ($generator, $next) { - $generator->throw($reason); - $next(); - })->then(null, function (\Throwable $reason) use ($deferred, &$next) { - $next = null; - $deferred->reject($reason); - }); - }; - $next(); - - return $deferred->promise(); -} - -/** - * @template T - * @param iterable|T)> $tasks - * @return PromiseInterface> - */ -function parallel(iterable $tasks): PromiseInterface -{ - /** @var array> $pending */ - $pending = []; - /** @var Deferred> $deferred */ - $deferred = new Deferred(function () use (&$pending) { - foreach ($pending as $promise) { - if ($promise instanceof PromiseInterface && \method_exists($promise, 'cancel')) { - $promise->cancel(); - } - } - $pending = []; - }); - $results = []; - $continue = true; - - $taskErrback = function ($error) use (&$pending, $deferred, &$continue) { - $continue = false; - $deferred->reject($error); - - foreach ($pending as $promise) { - if ($promise instanceof PromiseInterface && \method_exists($promise, 'cancel')) { - $promise->cancel(); - } - } - $pending = []; - }; - - foreach ($tasks as $i => $task) { - $taskCallback = function ($result) use (&$results, &$pending, &$continue, $i, $deferred) { - $results[$i] = $result; - unset($pending[$i]); - - if (!$pending && !$continue) { - $deferred->resolve($results); - } - }; - - $promise = \call_user_func($task); - assert($promise instanceof PromiseInterface); - $pending[$i] = $promise; - - $promise->then($taskCallback, $taskErrback); - - if (!$continue) { - break; - } - } - - $continue = false; - if (!$pending) { - $deferred->resolve($results); - } - - /** @var PromiseInterface> Remove once defining `Deferred()` above is supported by PHPStan, see https://github.com/phpstan/phpstan/issues/11032 */ - return $deferred->promise(); -} - -/** - * @template T - * @param iterable|T)> $tasks - * @return PromiseInterface> - */ -function series(iterable $tasks): PromiseInterface -{ - $pending = null; - /** @var Deferred> $deferred */ - $deferred = new Deferred(function () use (&$pending) { - /** @var ?PromiseInterface $pending */ - if ($pending instanceof PromiseInterface && \method_exists($pending, 'cancel')) { - $pending->cancel(); - } - $pending = null; - }); - $results = []; - - if ($tasks instanceof \IteratorAggregate) { - $tasks = $tasks->getIterator(); - assert($tasks instanceof \Iterator); - } - - $taskCallback = function ($result) use (&$results, &$next) { - $results[] = $result; - /** @var \Closure $next */ - $next(); - }; - - $next = function () use (&$tasks, $taskCallback, $deferred, &$results, &$pending) { - if ($tasks instanceof \Iterator ? !$tasks->valid() : !$tasks) { - $deferred->resolve($results); - return; - } - - if ($tasks instanceof \Iterator) { - $task = $tasks->current(); - $tasks->next(); - } else { - assert(\is_array($tasks)); - $task = \array_shift($tasks); - } - - assert(\is_callable($task)); - $promise = \call_user_func($task); - assert($promise instanceof PromiseInterface); - $pending = $promise; - - $promise->then($taskCallback, array($deferred, 'reject')); - }; - - $next(); - - /** @var PromiseInterface> Remove once defining `Deferred()` above is supported by PHPStan, see https://github.com/phpstan/phpstan/issues/11032 */ - return $deferred->promise(); -} - -/** - * @template T - * @param iterable<(callable():(PromiseInterface|T))|(callable(mixed):(PromiseInterface|T))> $tasks - * @return PromiseInterface<($tasks is non-empty-array|\Traversable ? T : null)> - */ -function waterfall(iterable $tasks): PromiseInterface -{ - $pending = null; - /** @var Deferred $deferred*/ - $deferred = new Deferred(function () use (&$pending) { - /** @var ?PromiseInterface $pending */ - if ($pending instanceof PromiseInterface && \method_exists($pending, 'cancel')) { - $pending->cancel(); - } - $pending = null; - }); - - if ($tasks instanceof \IteratorAggregate) { - $tasks = $tasks->getIterator(); - assert($tasks instanceof \Iterator); - } - - /** @var callable $next */ - $next = function ($value = null) use (&$tasks, &$next, $deferred, &$pending) { - if ($tasks instanceof \Iterator ? !$tasks->valid() : !$tasks) { - $deferred->resolve($value); - return; - } - - if ($tasks instanceof \Iterator) { - $task = $tasks->current(); - $tasks->next(); - } else { - assert(\is_array($tasks)); - $task = \array_shift($tasks); - } - - assert(\is_callable($task)); - $promise = \call_user_func_array($task, func_get_args()); - assert($promise instanceof PromiseInterface); - $pending = $promise; - - $promise->then($next, array($deferred, 'reject')); - }; - - $next(); - - return $deferred->promise(); -} diff --git a/vendor/react/async/src/functions_include.php b/vendor/react/async/src/functions_include.php deleted file mode 100644 index 05c78fa..0000000 --- a/vendor/react/async/src/functions_include.php +++ /dev/null @@ -1,9 +0,0 @@ - Contains no other changes, so it's actually fully compatible with the v0.6.0 release. - -## 0.6.0 (2019-07-04) - -* Feature / BC break: Add support for `getMultiple()`, `setMultiple()`, `deleteMultiple()`, `clear()` and `has()` - supporting multiple cache items (inspired by PSR-16). - (#32 by @krlv and #37 by @clue) - -* Documentation for TTL precision with millisecond accuracy or below and - use high-resolution timer for cache TTL on PHP 7.3+. - (#35 and #38 by @clue) - -* Improve API documentation and allow legacy HHVM to fail in Travis CI config. - (#34 and #36 by @clue) - -* Prefix all global functions calls with \ to skip the look up and resolve process and go straight to the global function. - (#31 by @WyriHaximus) - -## 0.5.0 (2018-06-25) - -* Improve documentation by describing what is expected of a class implementing `CacheInterface`. - (#21, #22, #23, #27 by @WyriHaximus) - -* Implemented (optional) Least Recently Used (LRU) cache algorithm for `ArrayCache`. - (#26 by @clue) - -* Added support for cache expiration (TTL). - (#29 by @clue and @WyriHaximus) - -* Renamed `remove` to `delete` making it more in line with `PSR-16`. - (#30 by @clue) - -## 0.4.2 (2017-12-20) - -* Improve documentation with usage and installation instructions - (#10 by @clue) - -* Improve test suite by adding PHPUnit to `require-dev` and - add forward compatibility with PHPUnit 5 and PHPUnit 6 and - sanitize Composer autoload paths - (#14 by @shaunbramley and #12 and #18 by @clue) - -## 0.4.1 (2016-02-25) - -* Repository maintenance, split off from main repo, improve test suite and documentation -* First class support for PHP7 and HHVM (#9 by @clue) -* Adjust compatibility to 5.3 (#7 by @clue) - -## 0.4.0 (2014-02-02) - -* BC break: Bump minimum PHP version to PHP 5.4, remove 5.3 specific hacks -* BC break: Update to React/Promise 2.0 -* Dependency: Autoloading and filesystem structure now PSR-4 instead of PSR-0 - -## 0.3.2 (2013-05-10) - -* Version bump - -## 0.3.0 (2013-04-14) - -* Version bump - -## 0.2.6 (2012-12-26) - -* Feature: New cache component, used by DNS diff --git a/vendor/react/cache/LICENSE b/vendor/react/cache/LICENSE deleted file mode 100644 index d6f8901..0000000 --- a/vendor/react/cache/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2012 Christian Lück, Cees-Jan Kiewiet, Jan Sorgalla, Chris Boden, Igor Wiedler - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is furnished -to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/vendor/react/cache/README.md b/vendor/react/cache/README.md deleted file mode 100644 index 7a86be9..0000000 --- a/vendor/react/cache/README.md +++ /dev/null @@ -1,367 +0,0 @@ -# Cache - -[![CI status](https://github.com/reactphp/cache/actions/workflows/ci.yml/badge.svg)](https://github.com/reactphp/cache/actions) -[![installs on Packagist](https://img.shields.io/packagist/dt/react/cache?color=blue&label=installs%20on%20Packagist)](https://packagist.org/packages/react/cache) - -Async, [Promise](https://github.com/reactphp/promise)-based cache interface -for [ReactPHP](https://reactphp.org/). - -The cache component provides a -[Promise](https://github.com/reactphp/promise)-based -[`CacheInterface`](#cacheinterface) and an in-memory [`ArrayCache`](#arraycache) -implementation of that. -This allows consumers to type hint against the interface and third parties to -provide alternate implementations. -This project is heavily inspired by -[PSR-16: Common Interface for Caching Libraries](https://www.php-fig.org/psr/psr-16/), -but uses an interface more suited for async, non-blocking applications. - -**Table of Contents** - -* [Usage](#usage) - * [CacheInterface](#cacheinterface) - * [get()](#get) - * [set()](#set) - * [delete()](#delete) - * [getMultiple()](#getmultiple) - * [setMultiple()](#setmultiple) - * [deleteMultiple()](#deletemultiple) - * [clear()](#clear) - * [has()](#has) - * [ArrayCache](#arraycache) -* [Common usage](#common-usage) - * [Fallback get](#fallback-get) - * [Fallback-get-and-set](#fallback-get-and-set) -* [Install](#install) -* [Tests](#tests) -* [License](#license) - -## Usage - -### CacheInterface - -The `CacheInterface` describes the main interface of this component. -This allows consumers to type hint against the interface and third parties to -provide alternate implementations. - -#### get() - -The `get(string $key, mixed $default = null): PromiseInterface` method can be used to -retrieve an item from the cache. - -This method will resolve with the cached value on success or with the -given `$default` value when no item can be found or when an error occurs. -Similarly, an expired cache item (once the time-to-live is expired) is -considered a cache miss. - -```php -$cache - ->get('foo') - ->then('var_dump'); -``` - -This example fetches the value of the key `foo` and passes it to the -`var_dump` function. You can use any of the composition provided by -[promises](https://github.com/reactphp/promise). - -#### set() - -The `set(string $key, mixed $value, ?float $ttl = null): PromiseInterface` method can be used to -store an item in the cache. - -This method will resolve with `true` on success or `false` when an error -occurs. If the cache implementation has to go over the network to store -it, it may take a while. - -The optional `$ttl` parameter sets the maximum time-to-live in seconds -for this cache item. If this parameter is omitted (or `null`), the item -will stay in the cache for as long as the underlying implementation -supports. Trying to access an expired cache item results in a cache miss, -see also [`get()`](#get). - -```php -$cache->set('foo', 'bar', 60); -``` - -This example eventually sets the value of the key `foo` to `bar`. If it -already exists, it is overridden. - -This interface does not enforce any particular TTL resolution, so special -care may have to be taken if you rely on very high precision with -millisecond accuracy or below. Cache implementations SHOULD work on a -best effort basis and SHOULD provide at least second accuracy unless -otherwise noted. Many existing cache implementations are known to provide -microsecond or millisecond accuracy, but it's generally not recommended -to rely on this high precision. - -This interface suggests that cache implementations SHOULD use a monotonic -time source if available. Given that a monotonic time source is only -available as of PHP 7.3 by default, cache implementations MAY fall back -to using wall-clock time. -While this does not affect many common use cases, this is an important -distinction for programs that rely on a high time precision or on systems -that are subject to discontinuous time adjustments (time jumps). -This means that if you store a cache item with a TTL of 30s and then -adjust your system time forward by 20s, the cache item SHOULD still -expire in 30s. - -#### delete() - -The `delete(string $key): PromiseInterface` method can be used to -delete an item from the cache. - -This method will resolve with `true` on success or `false` when an error -occurs. When no item for `$key` is found in the cache, it also resolves -to `true`. If the cache implementation has to go over the network to -delete it, it may take a while. - -```php -$cache->delete('foo'); -``` - -This example eventually deletes the key `foo` from the cache. As with -`set()`, this may not happen instantly and a promise is returned to -provide guarantees whether or not the item has been removed from cache. - -#### getMultiple() - -The `getMultiple(string[] $keys, mixed $default = null): PromiseInterface` method can be used to -retrieve multiple cache items by their unique keys. - -This method will resolve with an array of cached values on success or with the -given `$default` value when an item can not be found or when an error occurs. -Similarly, an expired cache item (once the time-to-live is expired) is -considered a cache miss. - -```php -$cache->getMultiple(array('name', 'age'))->then(function (array $values) { - $name = $values['name'] ?? 'User'; - $age = $values['age'] ?? 'n/a'; - - echo $name . ' is ' . $age . PHP_EOL; -}); -``` - -This example fetches the cache items for the `name` and `age` keys and -prints some example output. You can use any of the composition provided -by [promises](https://github.com/reactphp/promise). - -#### setMultiple() - -The `setMultiple(array $values, ?float $ttl = null): PromiseInterface` method can be used to -persist a set of key => value pairs in the cache, with an optional TTL. - -This method will resolve with `true` on success or `false` when an error -occurs. If the cache implementation has to go over the network to store -it, it may take a while. - -The optional `$ttl` parameter sets the maximum time-to-live in seconds -for these cache items. If this parameter is omitted (or `null`), these items -will stay in the cache for as long as the underlying implementation -supports. Trying to access an expired cache items results in a cache miss, -see also [`getMultiple()`](#getmultiple). - -```php -$cache->setMultiple(array('foo' => 1, 'bar' => 2), 60); -``` - -This example eventually sets the list of values - the key `foo` to `1` value -and the key `bar` to `2`. If some of the keys already exist, they are overridden. - -#### deleteMultiple() - -The `setMultiple(string[] $keys): PromiseInterface` method can be used to -delete multiple cache items in a single operation. - -This method will resolve with `true` on success or `false` when an error -occurs. When no items for `$keys` are found in the cache, it also resolves -to `true`. If the cache implementation has to go over the network to -delete it, it may take a while. - -```php -$cache->deleteMultiple(array('foo', 'bar, 'baz')); -``` - -This example eventually deletes keys `foo`, `bar` and `baz` from the cache. -As with `setMultiple()`, this may not happen instantly and a promise is returned to -provide guarantees whether or not the item has been removed from cache. - -#### clear() - -The `clear(): PromiseInterface` method can be used to -wipe clean the entire cache. - -This method will resolve with `true` on success or `false` when an error -occurs. If the cache implementation has to go over the network to -delete it, it may take a while. - -```php -$cache->clear(); -``` - -This example eventually deletes all keys from the cache. As with `deleteMultiple()`, -this may not happen instantly and a promise is returned to provide guarantees -whether or not all the items have been removed from cache. - -#### has() - -The `has(string $key): PromiseInterface` method can be used to -determine whether an item is present in the cache. - -This method will resolve with `true` on success or `false` when no item can be found -or when an error occurs. Similarly, an expired cache item (once the time-to-live -is expired) is considered a cache miss. - -```php -$cache - ->has('foo') - ->then('var_dump'); -``` - -This example checks if the value of the key `foo` is set in the cache and passes -the result to the `var_dump` function. You can use any of the composition provided by -[promises](https://github.com/reactphp/promise). - -NOTE: It is recommended that has() is only to be used for cache warming type purposes -and not to be used within your live applications operations for get/set, as this method -is subject to a race condition where your has() will return true and immediately after, -another script can remove it making the state of your app out of date. - -### ArrayCache - -The `ArrayCache` provides an in-memory implementation of the [`CacheInterface`](#cacheinterface). - -```php -$cache = new ArrayCache(); - -$cache->set('foo', 'bar'); -``` - -Its constructor accepts an optional `?int $limit` parameter to limit the -maximum number of entries to store in the LRU cache. If you add more -entries to this instance, it will automatically take care of removing -the one that was least recently used (LRU). - -For example, this snippet will overwrite the first value and only store -the last two entries: - -```php -$cache = new ArrayCache(2); - -$cache->set('foo', '1'); -$cache->set('bar', '2'); -$cache->set('baz', '3'); -``` - -This cache implementation is known to rely on wall-clock time to schedule -future cache expiration times when using any version before PHP 7.3, -because a monotonic time source is only available as of PHP 7.3 (`hrtime()`). -While this does not affect many common use cases, this is an important -distinction for programs that rely on a high time precision or on systems -that are subject to discontinuous time adjustments (time jumps). -This means that if you store a cache item with a TTL of 30s on PHP < 7.3 -and then adjust your system time forward by 20s, the cache item may -expire in 10s. See also [`set()`](#set) for more details. - -## Common usage - -### Fallback get - -A common use case of caches is to attempt fetching a cached value and as a -fallback retrieve it from the original data source if not found. Here is an -example of that: - -```php -$cache - ->get('foo') - ->then(function ($result) { - if ($result === null) { - return getFooFromDb(); - } - - return $result; - }) - ->then('var_dump'); -``` - -First an attempt is made to retrieve the value of `foo`. A callback function is -registered that will call `getFooFromDb` when the resulting value is null. -`getFooFromDb` is a function (can be any PHP callable) that will be called if the -key does not exist in the cache. - -`getFooFromDb` can handle the missing key by returning a promise for the -actual value from the database (or any other data source). As a result, this -chain will correctly fall back, and provide the value in both cases. - -### Fallback get and set - -To expand on the fallback get example, often you want to set the value on the -cache after fetching it from the data source. - -```php -$cache - ->get('foo') - ->then(function ($result) { - if ($result === null) { - return $this->getAndCacheFooFromDb(); - } - - return $result; - }) - ->then('var_dump'); - -public function getAndCacheFooFromDb() -{ - return $this->db - ->get('foo') - ->then(array($this, 'cacheFooFromDb')); -} - -public function cacheFooFromDb($foo) -{ - $this->cache->set('foo', $foo); - - return $foo; -} -``` - -By using chaining you can easily conditionally cache the value if it is -fetched from the database. - -## Install - -The recommended way to install this library is [through Composer](https://getcomposer.org). -[New to Composer?](https://getcomposer.org/doc/00-intro.md) - -This project follows [SemVer](https://semver.org/). -This will install the latest supported version: - -```bash -composer require react/cache:^1.2 -``` - -See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades. - -This project aims to run on any platform and thus does not require any PHP -extensions and supports running on legacy PHP 5.3 through current PHP 8+ and -HHVM. -It's *highly recommended to use PHP 7+* for this project. - -## Tests - -To run the test suite, you first need to clone this repo and then install all -dependencies [through Composer](https://getcomposer.org): - -```bash -composer install -``` - -To run the test suite, go to the project root and run: - -```bash -vendor/bin/phpunit -``` - -## License - -MIT, see [LICENSE file](LICENSE). diff --git a/vendor/react/cache/composer.json b/vendor/react/cache/composer.json deleted file mode 100644 index 153439a..0000000 --- a/vendor/react/cache/composer.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "name": "react/cache", - "description": "Async, Promise-based cache interface for ReactPHP", - "keywords": ["cache", "caching", "promise", "ReactPHP"], - "license": "MIT", - "authors": [ - { - "name": "Christian Lück", - "homepage": "https://clue.engineering/", - "email": "christian@clue.engineering" - }, - { - "name": "Cees-Jan Kiewiet", - "homepage": "https://wyrihaximus.net/", - "email": "reactphp@ceesjankiewiet.nl" - }, - { - "name": "Jan Sorgalla", - "homepage": "https://sorgalla.com/", - "email": "jsorgalla@gmail.com" - }, - { - "name": "Chris Boden", - "homepage": "https://cboden.dev/", - "email": "cboden@gmail.com" - } - ], - "require": { - "php": ">=5.3.0", - "react/promise": "^3.0 || ^2.0 || ^1.1" - }, - "require-dev": { - "phpunit/phpunit": "^9.5 || ^5.7 || ^4.8.35" - }, - "autoload": { - "psr-4": { - "React\\Cache\\": "src/" - } - }, - "autoload-dev": { - "psr-4": { - "React\\Tests\\Cache\\": "tests/" - } - } -} diff --git a/vendor/react/cache/src/ArrayCache.php b/vendor/react/cache/src/ArrayCache.php deleted file mode 100644 index 81f25ef..0000000 --- a/vendor/react/cache/src/ArrayCache.php +++ /dev/null @@ -1,181 +0,0 @@ -set('foo', 'bar'); - * ``` - * - * Its constructor accepts an optional `?int $limit` parameter to limit the - * maximum number of entries to store in the LRU cache. If you add more - * entries to this instance, it will automatically take care of removing - * the one that was least recently used (LRU). - * - * For example, this snippet will overwrite the first value and only store - * the last two entries: - * - * ```php - * $cache = new ArrayCache(2); - * - * $cache->set('foo', '1'); - * $cache->set('bar', '2'); - * $cache->set('baz', '3'); - * ``` - * - * This cache implementation is known to rely on wall-clock time to schedule - * future cache expiration times when using any version before PHP 7.3, - * because a monotonic time source is only available as of PHP 7.3 (`hrtime()`). - * While this does not affect many common use cases, this is an important - * distinction for programs that rely on a high time precision or on systems - * that are subject to discontinuous time adjustments (time jumps). - * This means that if you store a cache item with a TTL of 30s on PHP < 7.3 - * and then adjust your system time forward by 20s, the cache item may - * expire in 10s. See also [`set()`](#set) for more details. - * - * @param int|null $limit maximum number of entries to store in the LRU cache - */ - public function __construct($limit = null) - { - $this->limit = $limit; - - // prefer high-resolution timer, available as of PHP 7.3+ - $this->supportsHighResolution = \function_exists('hrtime'); - } - - public function get($key, $default = null) - { - // delete key if it is already expired => below will detect this as a cache miss - if (isset($this->expires[$key]) && $this->now() - $this->expires[$key] > 0) { - unset($this->data[$key], $this->expires[$key]); - } - - if (!\array_key_exists($key, $this->data)) { - return Promise\resolve($default); - } - - // remove and append to end of array to keep track of LRU info - $value = $this->data[$key]; - unset($this->data[$key]); - $this->data[$key] = $value; - - return Promise\resolve($value); - } - - public function set($key, $value, $ttl = null) - { - // unset before setting to ensure this entry will be added to end of array (LRU info) - unset($this->data[$key]); - $this->data[$key] = $value; - - // sort expiration times if TTL is given (first will expire first) - unset($this->expires[$key]); - if ($ttl !== null) { - $this->expires[$key] = $this->now() + $ttl; - \asort($this->expires); - } - - // ensure size limit is not exceeded or remove first entry from array - if ($this->limit !== null && \count($this->data) > $this->limit) { - // first try to check if there's any expired entry - // expiration times are sorted, so we can simply look at the first one - \reset($this->expires); - $key = \key($this->expires); - - // check to see if the first in the list of expiring keys is already expired - // if the first key is not expired, we have to overwrite by using LRU info - if ($key === null || $this->now() - $this->expires[$key] < 0) { - \reset($this->data); - $key = \key($this->data); - } - unset($this->data[$key], $this->expires[$key]); - } - - return Promise\resolve(true); - } - - public function delete($key) - { - unset($this->data[$key], $this->expires[$key]); - - return Promise\resolve(true); - } - - public function getMultiple(array $keys, $default = null) - { - $values = array(); - - foreach ($keys as $key) { - $values[$key] = $this->get($key, $default); - } - - return Promise\all($values); - } - - public function setMultiple(array $values, $ttl = null) - { - foreach ($values as $key => $value) { - $this->set($key, $value, $ttl); - } - - return Promise\resolve(true); - } - - public function deleteMultiple(array $keys) - { - foreach ($keys as $key) { - unset($this->data[$key], $this->expires[$key]); - } - - return Promise\resolve(true); - } - - public function clear() - { - $this->data = array(); - $this->expires = array(); - - return Promise\resolve(true); - } - - public function has($key) - { - // delete key if it is already expired - if (isset($this->expires[$key]) && $this->now() - $this->expires[$key] > 0) { - unset($this->data[$key], $this->expires[$key]); - } - - if (!\array_key_exists($key, $this->data)) { - return Promise\resolve(false); - } - - // remove and append to end of array to keep track of LRU info - $value = $this->data[$key]; - unset($this->data[$key]); - $this->data[$key] = $value; - - return Promise\resolve(true); - } - - /** - * @return float - */ - private function now() - { - return $this->supportsHighResolution ? \hrtime(true) * 1e-9 : \microtime(true); - } -} diff --git a/vendor/react/cache/src/CacheInterface.php b/vendor/react/cache/src/CacheInterface.php deleted file mode 100644 index 8e51c19..0000000 --- a/vendor/react/cache/src/CacheInterface.php +++ /dev/null @@ -1,194 +0,0 @@ -get('foo') - * ->then('var_dump'); - * ``` - * - * This example fetches the value of the key `foo` and passes it to the - * `var_dump` function. You can use any of the composition provided by - * [promises](https://github.com/reactphp/promise). - * - * @param string $key - * @param mixed $default Default value to return for cache miss or null if not given. - * @return PromiseInterface - */ - public function get($key, $default = null); - - /** - * Stores an item in the cache. - * - * This method will resolve with `true` on success or `false` when an error - * occurs. If the cache implementation has to go over the network to store - * it, it may take a while. - * - * The optional `$ttl` parameter sets the maximum time-to-live in seconds - * for this cache item. If this parameter is omitted (or `null`), the item - * will stay in the cache for as long as the underlying implementation - * supports. Trying to access an expired cache item results in a cache miss, - * see also [`get()`](#get). - * - * ```php - * $cache->set('foo', 'bar', 60); - * ``` - * - * This example eventually sets the value of the key `foo` to `bar`. If it - * already exists, it is overridden. - * - * This interface does not enforce any particular TTL resolution, so special - * care may have to be taken if you rely on very high precision with - * millisecond accuracy or below. Cache implementations SHOULD work on a - * best effort basis and SHOULD provide at least second accuracy unless - * otherwise noted. Many existing cache implementations are known to provide - * microsecond or millisecond accuracy, but it's generally not recommended - * to rely on this high precision. - * - * This interface suggests that cache implementations SHOULD use a monotonic - * time source if available. Given that a monotonic time source is only - * available as of PHP 7.3 by default, cache implementations MAY fall back - * to using wall-clock time. - * While this does not affect many common use cases, this is an important - * distinction for programs that rely on a high time precision or on systems - * that are subject to discontinuous time adjustments (time jumps). - * This means that if you store a cache item with a TTL of 30s and then - * adjust your system time forward by 20s, the cache item SHOULD still - * expire in 30s. - * - * @param string $key - * @param mixed $value - * @param ?float $ttl - * @return PromiseInterface Returns a promise which resolves to `true` on success or `false` on error - */ - public function set($key, $value, $ttl = null); - - /** - * Deletes an item from the cache. - * - * This method will resolve with `true` on success or `false` when an error - * occurs. When no item for `$key` is found in the cache, it also resolves - * to `true`. If the cache implementation has to go over the network to - * delete it, it may take a while. - * - * ```php - * $cache->delete('foo'); - * ``` - * - * This example eventually deletes the key `foo` from the cache. As with - * `set()`, this may not happen instantly and a promise is returned to - * provide guarantees whether or not the item has been removed from cache. - * - * @param string $key - * @return PromiseInterface Returns a promise which resolves to `true` on success or `false` on error - */ - public function delete($key); - - /** - * Retrieves multiple cache items by their unique keys. - * - * This method will resolve with an array of cached values on success or with the - * given `$default` value when an item can not be found or when an error occurs. - * Similarly, an expired cache item (once the time-to-live is expired) is - * considered a cache miss. - * - * ```php - * $cache->getMultiple(array('name', 'age'))->then(function (array $values) { - * $name = $values['name'] ?? 'User'; - * $age = $values['age'] ?? 'n/a'; - * - * echo $name . ' is ' . $age . PHP_EOL; - * }); - * ``` - * - * This example fetches the cache items for the `name` and `age` keys and - * prints some example output. You can use any of the composition provided - * by [promises](https://github.com/reactphp/promise). - * - * @param string[] $keys A list of keys that can obtained in a single operation. - * @param mixed $default Default value to return for keys that do not exist. - * @return PromiseInterface Returns a promise which resolves to an `array` of cached values - */ - public function getMultiple(array $keys, $default = null); - - /** - * Persists a set of key => value pairs in the cache, with an optional TTL. - * - * This method will resolve with `true` on success or `false` when an error - * occurs. If the cache implementation has to go over the network to store - * it, it may take a while. - * - * The optional `$ttl` parameter sets the maximum time-to-live in seconds - * for these cache items. If this parameter is omitted (or `null`), these items - * will stay in the cache for as long as the underlying implementation - * supports. Trying to access an expired cache items results in a cache miss, - * see also [`get()`](#get). - * - * ```php - * $cache->setMultiple(array('foo' => 1, 'bar' => 2), 60); - * ``` - * - * This example eventually sets the list of values - the key `foo` to 1 value - * and the key `bar` to 2. If some of the keys already exist, they are overridden. - * - * @param array $values A list of key => value pairs for a multiple-set operation. - * @param ?float $ttl Optional. The TTL value of this item. - * @return PromiseInterface Returns a promise which resolves to `true` on success or `false` on error - */ - public function setMultiple(array $values, $ttl = null); - - /** - * Deletes multiple cache items in a single operation. - * - * @param string[] $keys A list of string-based keys to be deleted. - * @return PromiseInterface Returns a promise which resolves to `true` on success or `false` on error - */ - public function deleteMultiple(array $keys); - - /** - * Wipes clean the entire cache. - * - * @return PromiseInterface Returns a promise which resolves to `true` on success or `false` on error - */ - public function clear(); - - /** - * Determines whether an item is present in the cache. - * - * This method will resolve with `true` on success or `false` when no item can be found - * or when an error occurs. Similarly, an expired cache item (once the time-to-live - * is expired) is considered a cache miss. - * - * ```php - * $cache - * ->has('foo') - * ->then('var_dump'); - * ``` - * - * This example checks if the value of the key `foo` is set in the cache and passes - * the result to the `var_dump` function. You can use any of the composition provided by - * [promises](https://github.com/reactphp/promise). - * - * NOTE: It is recommended that has() is only to be used for cache warming type purposes - * and not to be used within your live applications operations for get/set, as this method - * is subject to a race condition where your has() will return true and immediately after, - * another script can remove it making the state of your app out of date. - * - * @param string $key The cache item key. - * @return PromiseInterface Returns a promise which resolves to `true` on success or `false` on error - */ - public function has($key); -} diff --git a/vendor/react/child-process/CHANGELOG.md b/vendor/react/child-process/CHANGELOG.md deleted file mode 100644 index 5ad759d..0000000 --- a/vendor/react/child-process/CHANGELOG.md +++ /dev/null @@ -1,176 +0,0 @@ -# Changelog - -## 0.6.6 (2025-01-01) - -This is a compatibility release that contains backported features from the `0.7.x` branch. -Once v0.7 is released, it will be the way forward for this project. - -* Feature: Improve PHP 8.4+ support by avoiding implicitly nullable types. - (#114 by @clue) - -* Improve test suite to run tests on latest PHP versions and report failed assertions. - (#113 by @clue) - -## 0.6.5 (2022-09-16) - -* Feature: Full support for PHP 8.1 and PHP 8.2 release. - (#91 by @SimonFrings and #99 by @WyriHaximus) - -* Feature / Fix: Improve error reporting when custom error handler is used. - (#94 by @clue) - -* Minor documentation improvements. - (#92 by @SimonFrings and #95 by @nhedger) - -* Improve test suite, skip failing tests on bugged versions and fix legacy HHVM build. - (#96 and #98 by @clue and #93 by @SimonFrings) - -## 0.6.4 (2021-10-12) - -* Feature / Fix: Skip sigchild check if `phpinfo()` has been disabled. - (#89 by @clue) - -* Fix: Fix detecting closed socket pipes on PHP 8. - (#90 by @clue) - -## 0.6.3 (2021-07-11) - -A major new feature release, see [**release announcement**](https://clue.engineering/2021/announcing-reactphp-default-loop). - -* Feature: Simplify usage by supporting new [default loop](https://reactphp.org/event-loop/#loop). - (#87 by @clue) - - ```php - // old (still supported) - $process = new React\ChildProcess\Process($command); - $process->start($loop); - - // new (using default loop) - $process = new React\ChildProcess\Process($command); - $process->start(); - ``` - -## 0.6.2 (2021-02-05) - -* Feature: Support PHP 8 and add non-blocking I/O support on Windows with PHP 8. - (#85 by @clue) - -* Minor documentation improvements. - (#78 by @WyriHaximus and #80 by @gdejong) - -* Improve test suite and add `.gitattributes` to exclude dev files from exports. - Run tests on PHPUnit 9, switch to GitHub actions and clean up test suite. - (#75 by @reedy, #81 by @gdejong, #82 by @SimonFrings and #84 by @clue) - -## 0.6.1 (2019-02-15) - -* Feature / Fix: Improve error reporting when spawning child process fails. - (#73 by @clue) - -## 0.6.0 (2019-01-14) - -A major feature release with some minor API improvements! -This project now has limited Windows support and supports passing custom pipes -and file descriptors to the child process. - -This update involves a few minor BC breaks. We've tried hard to avoid BC breaks -where possible and minimize impact otherwise. We expect that most consumers of -this package will actually not be affected by any BC breaks, see below for more -details. - -* Feature / BC break: Support passing custom pipes and file descriptors to child process, - expose all standard I/O pipes in an array and remove unused Windows-only options. - (#62, #64 and #65 by @clue) - - > BC note: The optional `$options` parameter in the `Process` constructor - has been removed and a new `$fds` parameter has been added instead. The - previous `$options` parameter was Windows-only, available options were not - documented or referenced anywhere else in this library, so its actual - impact is expected to be relatively small. See the documentation and the - following changelog entry if you're looking for Windows support. - -* Feature: Support spawning child process on Windows without process I/O pipes. - (#67 by @clue) - -* Feature / BC break: Improve sigchild compatibility and support explicit configuration. - (#63 by @clue) - - ```php - // advanced: not recommended by default - Process::setSigchildEnabled(true); - ``` - - > BC note: The old public sigchild methods have been removed, but its - practical impact is believed to be relatively small due to the automatic detection. - -* Improve performance by prefixing all global functions calls with \ to skip - the look up and resolve process and go straight to the global function. - (#68 by @WyriHaximus) - -* Minor documentation improvements and docblock updates. - (#59 by @iamluc and #69 by @CharlotteDunois) - -* Improve test suite to test against PHP7.2 and PHP 7.3, improve HHVM compatibility, - add forward compatibility with PHPUnit 7 and run tests on Windows via Travis CI. - (#66 and #71 by @clue) - -## 0.5.2 (2018-01-18) - -* Feature: Detect "exit" immediately if last process pipe is closed - (#58 by @clue) - - This introduces a simple check to see if the program is already known to be - closed when the last process pipe is closed instead of relying on a periodic - timer. This simple change improves "exit" detection significantly for most - programs and does not cause a noticeable penalty for more advanced use cases. - -* Fix forward compatibility with upcoming EventLoop releases - (#56 by @clue) - -## 0.5.1 (2017-12-22) - -* Fix: Update Stream dependency to work around SEGFAULT in legacy PHP < 5.4.28 - and PHP < 5.5.12 - (#50 and #52 by @clue) - -* Improve test suite by simplifying test bootstrapping logic via Composer and - adding forward compatibility with PHPUnit 6 - (#53, #54 and #55 by @clue) - -## 0.5.0 (2017-08-15) - -* Forward compatibility: react/event-loop 1.0 and 0.5, react/stream 0.7.2 and 1.0, and Événement 3.0 - (#38 and #44 by @WyriHaximus, and #46 by @clue) -* Windows compatibility: Documentate that windows isn't supported in 0.5 unless used from within WSL - (#41 and #47 by @WyriHaximus) -* Documentation: Termination examples - (#42 by @clue) -* BC: Throw LogicException in Process instanciating when on Windows or when proc_open is missing (was `RuntimeException`) - (#49 by @mdrost) - -## 0.4.3 (2017-03-14) - -* Ease getting started by improving documentation and adding examples - (#33 and #34 by @clue) - -* First class support for PHP 5.3 through PHP 7.1 and HHVM - (#29 by @clue and #32 by @WyriHaximus) - -## 0.4.2 (2017-03-10) - -* Feature: Forward compatibility with Stream v0.5 - (#26 by @clue) - -* Improve test suite by removing AppVeyor and adding PHPUnit to `require-dev` - (#27 and #28 by @clue) - -## 0.4.1 (2016-08-01) - -* Standalone component -* Test against PHP 7 and HHVM, report test coverage, AppVeyor tests -* Wait for stdout and stderr to close before watching for process exit - (#18 by @mbonneau) - -## 0.4.0 (2014-02-02) - -* Feature: Added ChildProcess to run async child processes within the event loop (@jmikola) diff --git a/vendor/react/child-process/LICENSE b/vendor/react/child-process/LICENSE deleted file mode 100644 index d6f8901..0000000 --- a/vendor/react/child-process/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2012 Christian Lück, Cees-Jan Kiewiet, Jan Sorgalla, Chris Boden, Igor Wiedler - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is furnished -to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/vendor/react/child-process/README.md b/vendor/react/child-process/README.md deleted file mode 100644 index bea7204..0000000 --- a/vendor/react/child-process/README.md +++ /dev/null @@ -1,619 +0,0 @@ -# ChildProcess - -[![CI status](https://github.com/reactphp/child-process/actions/workflows/ci.yml/badge.svg)](https://github.com/reactphp/child-process/actions) -[![installs on Packagist](https://img.shields.io/packagist/dt/react/child-process?color=blue&label=installs%20on%20Packagist)](https://packagist.org/packages/react/child-process) - -Event-driven library for executing child processes with -[ReactPHP](https://reactphp.org/). - -This library integrates [Program Execution](http://php.net/manual/en/book.exec.php) -with the [EventLoop](https://github.com/reactphp/event-loop). -Child processes launched may be signaled and will emit an -`exit` event upon termination. -Additionally, process I/O streams (i.e. STDIN, STDOUT, STDERR) are exposed -as [Streams](https://github.com/reactphp/stream). - -**Table of contents** - -* [Quickstart example](#quickstart-example) -* [Process](#process) - * [Stream Properties](#stream-properties) - * [Command](#command) - * [Termination](#termination) - * [Custom pipes](#custom-pipes) - * [Sigchild Compatibility](#sigchild-compatibility) - * [Windows Compatibility](#windows-compatibility) -* [Install](#install) -* [Tests](#tests) -* [License](#license) - -## Quickstart example - -```php -$process = new React\ChildProcess\Process('echo foo'); -$process->start(); - -$process->stdout->on('data', function ($chunk) { - echo $chunk; -}); - -$process->on('exit', function($exitCode, $termSignal) { - echo 'Process exited with code ' . $exitCode . PHP_EOL; -}); -``` - -See also the [examples](examples). - -## Process - -### Stream Properties - -Once a process is started, its I/O streams will be constructed as instances of -`React\Stream\ReadableStreamInterface` and `React\Stream\WritableStreamInterface`. -Before `start()` is called, these properties are not set. Once a process terminates, -the streams will become closed but not unset. - -Following common Unix conventions, this library will start each child process -with the three pipes matching the standard I/O streams as given below by default. -You can use the named references for common use cases or access these as an -array with all three pipes. - -* `$stdin` or `$pipes[0]` is a `WritableStreamInterface` -* `$stdout` or `$pipes[1]` is a `ReadableStreamInterface` -* `$stderr` or `$pipes[2]` is a `ReadableStreamInterface` - -Note that this default configuration may be overridden by explicitly passing -[custom pipes](#custom-pipes), in which case they may not be set or be assigned -different values. In particular, note that [Windows support](#windows-compatibility) -is limited in that it doesn't support non-blocking STDIO pipes. The `$pipes` -array will always contain references to all pipes as configured and the standard -I/O references will always be set to reference the pipes matching the above -conventions. See [custom pipes](#custom-pipes) for more details. - -Because each of these implement the underlying -[`ReadableStreamInterface`](https://github.com/reactphp/stream#readablestreaminterface) or -[`WritableStreamInterface`](https://github.com/reactphp/stream#writablestreaminterface), -you can use any of their events and methods as usual: - -```php -$process = new Process($command); -$process->start(); - -$process->stdout->on('data', function ($chunk) { - echo $chunk; -}); - -$process->stdout->on('end', function () { - echo 'ended'; -}); - -$process->stdout->on('error', function (Exception $e) { - echo 'error: ' . $e->getMessage(); -}); - -$process->stdout->on('close', function () { - echo 'closed'; -}); - -$process->stdin->write($data); -$process->stdin->end($data = null); -// … -``` - -For more details, see the -[`ReadableStreamInterface`](https://github.com/reactphp/stream#readablestreaminterface) and -[`WritableStreamInterface`](https://github.com/reactphp/stream#writablestreaminterface). - -### Command - -The `Process` class allows you to pass any kind of command line string: - -```php -$process = new Process('echo test'); -$process->start(); -``` - -The command line string usually consists of a whitespace-separated list with -your main executable bin and any number of arguments. Special care should be -taken to escape or quote any arguments, escpecially if you pass any user input -along. Likewise, keep in mind that especially on Windows, it is rather common to -have path names containing spaces and other special characters. If you want to -run a binary like this, you will have to ensure this is quoted as a single -argument using `escapeshellarg()` like this: - -```php -$bin = 'C:\\Program files (x86)\\PHP\\php.exe'; -$file = 'C:\\Users\\me\\Desktop\\Application\\main.php'; - -$process = new Process(escapeshellarg($bin) . ' ' . escapeshellarg($file)); -$process->start(); -``` - -By default, PHP will launch processes by wrapping the given command line string -in a `sh` command on Unix, so that the first example will actually execute -`sh -c echo test` under the hood on Unix. On Windows, it will not launch -processes by wrapping them in a shell. - -This is a very useful feature because it does not only allow you to pass single -commands, but actually allows you to pass any kind of shell command line and -launch multiple sub-commands using command chains (with `&&`, `||`, `;` and -others) and allows you to redirect STDIO streams (with `2>&1` and family). -This can be used to pass complete command lines and receive the resulting STDIO -streams from the wrapping shell command like this: - -```php -$process = new Process('echo run && demo || echo failed'); -$process->start(); -``` - -> Note that [Windows support](#windows-compatibility) is limited in that it - doesn't support STDIO streams at all and also that processes will not be run - in a wrapping shell by default. If you want to run a shell built-in function - such as `echo hello` or `sleep 10`, you may have to prefix your command line - with an explicit shell like `cmd /c echo hello`. - -In other words, the underlying shell is responsible for managing this command -line and launching the individual sub-commands and connecting their STDIO -streams as appropriate. -This implies that the `Process` class will only receive the resulting STDIO -streams from the wrapping shell, which will thus contain the complete -input/output with no way to discern the input/output of single sub-commands. - -If you want to discern the output of single sub-commands, you may want to -implement some higher-level protocol logic, such as printing an explicit -boundary between each sub-command like this: - -```php -$process = new Process('cat first && echo --- && cat second'); -$process->start(); -``` - -As an alternative, considering launching one process at a time and listening on -its `exit` event to conditionally start the next process in the chain. -This will give you an opportunity to configure the subsequent process I/O streams: - -```php -$first = new Process('cat first'); -$first->start(); - -$first->on('exit', function () { - $second = new Process('cat second'); - $second->start(); -}); -``` - -Keep in mind that PHP uses the shell wrapper for ALL command lines on Unix. -While this may seem reasonable for more complex command lines, this actually -also applies to running the most simple single command: - -```php -$process = new Process('yes'); -$process->start(); -``` - -This will actually spawn a command hierarchy similar to this on Unix: - -``` -5480 … \_ php example.php -5481 … \_ sh -c yes -5482 … \_ yes -``` - -This means that trying to get the underlying process PID or sending signals -will actually target the wrapping shell, which may not be the desired result -in many cases. - -If you do not want this wrapping shell process to show up, you can simply -prepend the command string with `exec` on Unix platforms, which will cause the -wrapping shell process to be replaced by our process: - -```php -$process = new Process('exec yes'); -$process->start(); -``` - -This will show a resulting command hierarchy similar to this: - -``` -5480 … \_ php example.php -5481 … \_ yes -``` - -This means that trying to get the underlying process PID and sending signals -will now target the actual command as expected. - -Note that in this case, the command line will not be run in a wrapping shell. -This implies that when using `exec`, there's no way to pass command lines such -as those containing command chains or redirected STDIO streams. - -As a rule of thumb, most commands will likely run just fine with the wrapping -shell. -If you pass a complete command line (or are unsure), you SHOULD most likely keep -the wrapping shell. -If you're running on Unix and you want to pass an invidual command only, you MAY -want to consider prepending the command string with `exec` to avoid the wrapping shell. - -### Termination - -The `exit` event will be emitted whenever the process is no longer running. -Event listeners will receive the exit code and termination signal as two -arguments: - -```php -$process = new Process('sleep 10'); -$process->start(); - -$process->on('exit', function ($code, $term) { - if ($term === null) { - echo 'exit with code ' . $code . PHP_EOL; - } else { - echo 'terminated with signal ' . $term . PHP_EOL; - } -}); -``` - -Note that `$code` is `null` if the process has terminated, but the exit -code could not be determined (for example -[sigchild compatibility](#sigchild-compatibility) was disabled). -Similarly, `$term` is `null` unless the process has terminated in response to -an uncaught signal sent to it. -This is not a limitation of this project, but actual how exit codes and signals -are exposed on POSIX systems, for more details see also -[here](https://unix.stackexchange.com/questions/99112/default-exit-code-when-process-is-terminated). - -It's also worth noting that process termination depends on all file descriptors -being closed beforehand. -This means that all [process pipes](#stream-properties) will emit a `close` -event before the `exit` event and that no more `data` events will arrive after -the `exit` event. -Accordingly, if either of these pipes is in a paused state (`pause()` method -or internally due to a `pipe()` call), this detection may not trigger. - -The `terminate(?int $signal = null): bool` method can be used to send the -process a signal (SIGTERM by default). -Depending on which signal you send to the process and whether it has a signal -handler registered, this can be used to either merely signal a process or even -forcefully terminate it. - -```php -$process->terminate(SIGUSR1); -``` - -Keep the above section in mind if you want to forcefully terminate a process. -If your process spawn sub-processes or implicitly uses the -[wrapping shell mentioned above](#command), its file descriptors may be -inherited to child processes and terminating the main process may not -necessarily terminate the whole process tree. -It is highly suggested that you explicitly `close()` all process pipes -accordingly when terminating a process: - -```php -$process = new Process('sleep 10'); -$process->start(); - -Loop::addTimer(2.0, function () use ($process) { - foreach ($process->pipes as $pipe) { - $pipe->close(); - } - $process->terminate(); -}); -``` - -For many simple programs these seamingly complicated steps can also be avoided -by prefixing the command line with `exec` to avoid the wrapping shell and its -inherited process pipes as [mentioned above](#command). - -```php -$process = new Process('exec sleep 10'); -$process->start(); - -Loop::addTimer(2.0, function () use ($process) { - $process->terminate(); -}); -``` - -Many command line programs also wait for data on `STDIN` and terminate cleanly -when this pipe is closed. -For example, the following can be used to "soft-close" a `cat` process: - -```php -$process = new Process('cat'); -$process->start(); - -Loop::addTimer(2.0, function () use ($process) { - $process->stdin->end(); -}); -``` - -While process pipes and termination may seem confusing to newcomers, the above -properties actually allow some fine grained control over process termination, -such as first trying a soft-close and then applying a force-close after a -timeout. - -### Custom pipes - -Following common Unix conventions, this library will start each child process -with the three pipes matching the standard I/O streams by default. For more -advanced use cases it may be useful to pass in custom pipes, such as explicitly -passing additional file descriptors (FDs) or overriding default process pipes. - -Note that passing custom pipes is considered advanced usage and requires a -more in-depth understanding of Unix file descriptors and how they are inherited -to child processes and shared in multi-processing applications. - -If you do not want to use the default standard I/O pipes, you can explicitly -pass an array containing the file descriptor specification to the constructor -like this: - -```php -$fds = array( - // standard I/O pipes for stdin/stdout/stderr - 0 => array('pipe', 'r'), - 1 => array('pipe', 'w'), - 2 => array('pipe', 'w'), - - // example FDs for files or open resources - 4 => array('file', '/dev/null', 'r'), - 6 => fopen('log.txt','a'), - 8 => STDERR, - - // example FDs for sockets - 10 => fsockopen('localhost', 8080), - 12 => stream_socket_server('tcp://0.0.0.0:4711') -); - -$process = new Process($cmd, null, null, $fds); -$process->start(); -``` - -Unless your use case has special requirements that demand otherwise, you're -highly recommended to (at least) pass in the standard I/O pipes as given above. -The file descriptor specification accepts arguments in the exact same format -as the underlying [`proc_open()`](http://php.net/proc_open) function. - -Once the process is started, the `$pipes` array will always contain references to -all pipes as configured and the standard I/O references will always be set to -reference the pipes matching common Unix conventions. This library supports any -number of pipes and additional file descriptors, but many common applications -being run as a child process will expect that the parent process properly -assigns these file descriptors. - -### Sigchild Compatibility - -Internally, this project uses a work-around to improve compatibility when PHP -has been compiled with the `--enable-sigchild` option. This should not affect most -installations as this configure option is not used by default and many -distributions (such as Debian and Ubuntu) are known to not use this by default. -Some installations that use [Oracle OCI8](http://php.net/manual/en/book.oci8.php) -may use this configure option to circumvent `defunct` processes. - -When PHP has been compiled with the `--enable-sigchild` option, a child process' -exit code cannot be reliably determined via `proc_close()` or `proc_get_status()`. -To work around this, we execute the child process with an additional pipe and -use that to retrieve its exit code. - -This work-around incurs some overhead, so we only trigger this when necessary -and when we detect that PHP has been compiled with the `--enable-sigchild` option. -Because PHP does not provide a way to reliably detect this option, we try to -inspect output of PHP's configure options from the `phpinfo()` function. - -The static `setSigchildEnabled(bool $sigchild): void` method can be used to -explicitly enable or disable this behavior like this: - -```php -// advanced: not recommended by default -Process::setSigchildEnabled(true); -``` - -Note that all processes instantiated after this method call will be affected. -If this work-around is disabled on an affected PHP installation, the `exit` -event may receive `null` instead of the actual exit code as described above. -Similarly, some distributions are known to omit the configure options from -`phpinfo()`, so automatic detection may fail to enable this work-around in some -cases. You may then enable this explicitly as given above. - -**Note:** The original functionality was taken from Symfony's -[Process](https://github.com/symfony/process) compoment. - -### Windows Compatibility - -Due to platform constraints, this library provides only limited support for -spawning child processes on Windows. In particular, PHP does not allow accessing -standard I/O pipes on Windows without blocking. As such, this project will not -allow constructing a child process with the default process pipes and will -instead throw a `LogicException` on Windows by default: - -```php -// throws LogicException on Windows -$process = new Process('ping example.com'); -$process->start(); -``` - -There are a number of alternatives and workarounds as detailed below if you want -to run a child process on Windows, each with its own set of pros and cons: - -* As of PHP 8, you can start the child process with `socket` pair descriptors - in place of normal standard I/O pipes like this: - - ```php - $process = new Process( - 'ping example.com', - null, - null, - [ - ['socket'], - ['socket'], - ['socket'] - ] - ); - $process->start(); - - $process->stdout->on('data', function ($chunk) { - echo $chunk; - }); - ``` - - These `socket` pairs support non-blocking process I/O on any platform, - including Windows. However, not all programs accept stdio sockets. - -* This package does work on - [`Windows Subsystem for Linux`](https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux) - (or WSL) without issues. When you are in control over how your application is - deployed, we recommend [installing WSL](https://msdn.microsoft.com/en-us/commandline/wsl/install_guide) - when you want to run this package on Windows. - -* If you only care about the exit code of a child process to check if its - execution was successful, you can use [custom pipes](#custom-pipes) to omit - any standard I/O pipes like this: - - ```php - $process = new Process('ping example.com', null, null, array()); - $process->start(); - - $process->on('exit', function ($exitcode) { - echo 'exit with ' . $exitcode . PHP_EOL; - }); - ``` - - Similarly, this is also useful if your child process communicates over - sockets with remote servers or even your parent process using the - [Socket component](https://github.com/reactphp/socket). This is usually - considered the best alternative if you have control over how your child - process communicates with the parent process. - -* If you only care about command output after the child process has been - executed, you can use [custom pipes](#custom-pipes) to configure file - handles to be passed to the child process instead of pipes like this: - - ```php - $process = new Process('ping example.com', null, null, array( - array('file', 'nul', 'r'), - $stdout = tmpfile(), - array('file', 'nul', 'w') - )); - $process->start(); - - $process->on('exit', function ($exitcode) use ($stdout) { - echo 'exit with ' . $exitcode . PHP_EOL; - - // rewind to start and then read full file (demo only, this is blocking). - // reading from shared file is only safe if you have some synchronization in place - // or after the child process has terminated. - rewind($stdout); - echo stream_get_contents($stdout); - fclose($stdout); - }); - ``` - - Note that this example uses `tmpfile()`/`fopen()` for illustration purposes only. - This should not be used in a truly async program because the filesystem is - inherently blocking and each call could potentially take several seconds. - See also the [Filesystem component](https://github.com/reactphp/filesystem) as an - alternative. - -* If you want to access command output as it happens in a streaming fashion, - you can use redirection to spawn an additional process to forward your - standard I/O streams to a socket and use [custom pipes](#custom-pipes) to - omit any actual standard I/O pipes like this: - - ```php - $server = new React\Socket\Server('127.0.0.1:0'); - $server->on('connection', function (React\Socket\ConnectionInterface $connection) { - $connection->on('data', function ($chunk) { - echo $chunk; - }); - }); - - $command = 'ping example.com | foobar ' . escapeshellarg($server->getAddress()); - $process = new Process($command, null, null, array()); - $process->start(); - - $process->on('exit', function ($exitcode) use ($server) { - $server->close(); - echo 'exit with ' . $exitcode . PHP_EOL; - }); - ``` - - Note how this will spawn another fictional `foobar` helper program to consume - the standard output from the actual child process. This is in fact similar - to the above recommendation of using socket connections in the child process, - but in this case does not require modification of the actual child process. - - In this example, the fictional `foobar` helper program can be implemented by - simply consuming all data from standard input and forwarding it to a socket - connection like this: - - ```php - $socket = stream_socket_client($argv[1]); - do { - fwrite($socket, $data = fread(STDIN, 8192)); - } while (isset($data[0])); - ``` - - Accordingly, this example can also be run with plain PHP without having to - rely on any external helper program like this: - - ```php - $code = '$s=stream_socket_client($argv[1]);do{fwrite($s,$d=fread(STDIN, 8192));}while(isset($d[0]));'; - $command = 'ping example.com | php -r ' . escapeshellarg($code) . ' ' . escapeshellarg($server->getAddress()); - $process = new Process($command, null, null, array()); - $process->start(); - ``` - - See also [example #23](examples/23-forward-socket.php). - - Note that this is for illustration purposes only and you may want to implement - some proper error checks and/or socket verification in actual production use - if you do not want to risk other processes connecting to the server socket. - In this case, we suggest looking at the excellent - [createprocess-windows](https://github.com/cubiclesoft/createprocess-windows). - -Additionally, note that the [command](#command) given to the `Process` will be -passed to the underlying Windows-API -([`CreateProcess`](https://docs.microsoft.com/en-us/windows/desktop/api/processthreadsapi/nf-processthreadsapi-createprocessa)) -as-is and the process will not be launched in a wrapping shell by default. In -particular, this means that shell built-in functions such as `echo hello` or -`sleep 10` may have to be prefixed with an explicit shell command like this: - -```php -$process = new Process('cmd /c echo hello', null, null, $pipes); -$process->start(); -``` - -## Install - -The recommended way to install this library is [through Composer](https://getcomposer.org/). -[New to Composer?](https://getcomposer.org/doc/00-intro.md) - -This will install the latest supported version: - -```bash -composer require react/child-process:^0.6.6 -``` - -See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades. - -This project aims to run on any platform and thus does not require any PHP -extensions and supports running on legacy PHP 5.3 through current PHP 8+ and HHVM. -It's *highly recommended to use the latest supported PHP version* for this project. - -See above note for limited [Windows Compatibility](#windows-compatibility). - -## Tests - -To run the test suite, you first need to clone this repo and then install all -dependencies [through Composer](https://getcomposer.org/): - -```bash -composer install -``` - -To run the test suite, go to the project root and run: - -```bash -vendor/bin/phpunit -``` - -## License - -MIT, see [LICENSE file](LICENSE). diff --git a/vendor/react/child-process/composer.json b/vendor/react/child-process/composer.json deleted file mode 100644 index fba70b8..0000000 --- a/vendor/react/child-process/composer.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "name": "react/child-process", - "description": "Event-driven library for executing child processes with ReactPHP.", - "keywords": ["process", "event-driven", "ReactPHP"], - "license": "MIT", - "authors": [ - { - "name": "Christian Lück", - "homepage": "https://clue.engineering/", - "email": "christian@clue.engineering" - }, - { - "name": "Cees-Jan Kiewiet", - "homepage": "https://wyrihaximus.net/", - "email": "reactphp@ceesjankiewiet.nl" - }, - { - "name": "Jan Sorgalla", - "homepage": "https://sorgalla.com/", - "email": "jsorgalla@gmail.com" - }, - { - "name": "Chris Boden", - "homepage": "https://cboden.dev/", - "email": "cboden@gmail.com" - } - ], - "require": { - "php": ">=5.3.0", - "evenement/evenement": "^3.0 || ^2.0 || ^1.0", - "react/event-loop": "^1.2", - "react/stream": "^1.4" - }, - "require-dev": { - "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36", - "react/socket": "^1.16", - "sebastian/environment": "^5.0 || ^3.0 || ^2.0 || ^1.0" - }, - "autoload": { - "psr-4": { - "React\\ChildProcess\\": "src/" - } - }, - "autoload-dev": { - "psr-4": { - "React\\Tests\\ChildProcess\\": "tests/" - } - } -} diff --git a/vendor/react/child-process/src/Process.php b/vendor/react/child-process/src/Process.php deleted file mode 100644 index 7af5de7..0000000 --- a/vendor/react/child-process/src/Process.php +++ /dev/null @@ -1,585 +0,0 @@ -start(); - * - * $process->on('exit', function ($code, $term) { - * if ($term === null) { - * echo 'exit with code ' . $code . PHP_EOL; - * } else { - * echo 'terminated with signal ' . $term . PHP_EOL; - * } - * }); - * ``` - * - * Note that `$code` is `null` if the process has terminated, but the exit - * code could not be determined (for example - * [sigchild compatibility](#sigchild-compatibility) was disabled). - * Similarly, `$term` is `null` unless the process has terminated in response to - * an uncaught signal sent to it. - * This is not a limitation of this project, but actual how exit codes and signals - * are exposed on POSIX systems, for more details see also - * [here](https://unix.stackexchange.com/questions/99112/default-exit-code-when-process-is-terminated). - * - * It's also worth noting that process termination depends on all file descriptors - * being closed beforehand. - * This means that all [process pipes](#stream-properties) will emit a `close` - * event before the `exit` event and that no more `data` events will arrive after - * the `exit` event. - * Accordingly, if either of these pipes is in a paused state (`pause()` method - * or internally due to a `pipe()` call), this detection may not trigger. - */ -class Process extends EventEmitter -{ - /** - * @var WritableStreamInterface|null|DuplexStreamInterface|ReadableStreamInterface - */ - public $stdin; - - /** - * @var ReadableStreamInterface|null|DuplexStreamInterface|WritableStreamInterface - */ - public $stdout; - - /** - * @var ReadableStreamInterface|null|DuplexStreamInterface|WritableStreamInterface - */ - public $stderr; - - /** - * Array with all process pipes (once started) - * - * Unless explicitly configured otherwise during construction, the following - * standard I/O pipes will be assigned by default: - * - 0: STDIN (`WritableStreamInterface`) - * - 1: STDOUT (`ReadableStreamInterface`) - * - 2: STDERR (`ReadableStreamInterface`) - * - * @var array - */ - public $pipes = array(); - - private $cmd; - private $cwd; - private $env; - private $fds; - - private $enhanceSigchildCompatibility; - private $sigchildPipe; - - private $process; - private $status; - private $exitCode; - private $fallbackExitCode; - private $stopSignal; - private $termSignal; - - private static $sigchild; - - /** - * Constructor. - * - * @param string $cmd Command line to run - * @param null|string $cwd Current working directory or null to inherit - * @param null|array $env Environment variables or null to inherit - * @param null|array $fds File descriptors to allocate for this process (or null = default STDIO streams) - * @throws \LogicException On windows or when proc_open() is not installed - */ - public function __construct($cmd, $cwd = null, $env = null, $fds = null) - { - if ($env !== null && !\is_array($env)) { // manual type check to support legacy PHP < 7.1 - throw new \InvalidArgumentException('Argument #3 ($env) expected null|array'); - } - if ($fds !== null && !\is_array($fds)) { // manual type check to support legacy PHP < 7.1 - throw new \InvalidArgumentException('Argument #4 ($fds) expected null|array'); - } - if (!\function_exists('proc_open')) { - throw new \LogicException('The Process class relies on proc_open(), which is not available on your PHP installation.'); - } - - $this->cmd = $cmd; - $this->cwd = $cwd; - - if (null !== $env) { - $this->env = array(); - foreach ($env as $key => $value) { - $this->env[(binary) $key] = (binary) $value; - } - } - - if ($fds === null) { - $fds = array( - array('pipe', 'r'), // stdin - array('pipe', 'w'), // stdout - array('pipe', 'w'), // stderr - ); - } - - if (\DIRECTORY_SEPARATOR === '\\') { - foreach ($fds as $fd) { - if (isset($fd[0]) && $fd[0] === 'pipe') { - throw new \LogicException('Process pipes are not supported on Windows due to their blocking nature on Windows'); - } - } - } - - $this->fds = $fds; - $this->enhanceSigchildCompatibility = self::isSigchildEnabled(); - } - - /** - * Start the process. - * - * After the process is started, the standard I/O streams will be constructed - * and available via public properties. - * - * This method takes an optional `LoopInterface|null $loop` parameter that can be used to - * pass the event loop instance to use for this process. You can use a `null` value - * here in order to use the [default loop](https://github.com/reactphp/event-loop#loop). - * This value SHOULD NOT be given unless you're sure you want to explicitly use a - * given event loop instance. - * - * @param ?LoopInterface $loop Loop interface for stream construction - * @param float $interval Interval to periodically monitor process state (seconds) - * @throws \RuntimeException If the process is already running or fails to start - */ - public function start($loop = null, $interval = 0.1) - { - if ($loop !== null && !$loop instanceof LoopInterface) { // manual type check to support legacy PHP < 7.1 - throw new \InvalidArgumentException('Argument #1 ($loop) expected null|React\EventLoop\LoopInterface'); - } - if ($this->isRunning()) { - throw new \RuntimeException('Process is already running'); - } - - $loop = $loop ?: Loop::get(); - $cmd = $this->cmd; - $fdSpec = $this->fds; - $sigchild = null; - - // Read exit code through fourth pipe to work around --enable-sigchild - if ($this->enhanceSigchildCompatibility) { - $fdSpec[] = array('pipe', 'w'); - \end($fdSpec); - $sigchild = \key($fdSpec); - - // make sure this is fourth or higher (do not mess with STDIO) - if ($sigchild < 3) { - $fdSpec[3] = $fdSpec[$sigchild]; - unset($fdSpec[$sigchild]); - $sigchild = 3; - } - - $cmd = \sprintf('(%s) ' . $sigchild . '>/dev/null; code=$?; echo $code >&' . $sigchild . '; exit $code', $cmd); - } - - // on Windows, we do not launch the given command line in a shell (cmd.exe) by default and omit any error dialogs - // the cmd.exe shell can explicitly be given as part of the command as detailed in both documentation and tests - $options = array(); - if (\DIRECTORY_SEPARATOR === '\\') { - $options['bypass_shell'] = true; - $options['suppress_errors'] = true; - } - - $errstr = ''; - \set_error_handler(function ($_, $error) use (&$errstr) { - // Match errstr from PHP's warning message. - // proc_open(/dev/does-not-exist): Failed to open stream: No such file or directory - $errstr = $error; - }); - - $pipes = array(); - $this->process = @\proc_open($cmd, $fdSpec, $pipes, $this->cwd, $this->env, $options); - - \restore_error_handler(); - - if (!\is_resource($this->process)) { - throw new \RuntimeException('Unable to launch a new process: ' . $errstr); - } - - // count open process pipes and await close event for each to drain buffers before detecting exit - $that = $this; - $closeCount = 0; - $streamCloseHandler = function () use (&$closeCount, $loop, $interval, $that) { - $closeCount--; - - if ($closeCount > 0) { - return; - } - - // process already closed => report immediately - if (!$that->isRunning()) { - $that->close(); - $that->emit('exit', array($that->getExitCode(), $that->getTermSignal())); - return; - } - - // close not detected immediately => check regularly - $loop->addPeriodicTimer($interval, function ($timer) use ($that, $loop) { - if (!$that->isRunning()) { - $loop->cancelTimer($timer); - $that->close(); - $that->emit('exit', array($that->getExitCode(), $that->getTermSignal())); - } - }); - }; - - if ($sigchild !== null) { - $this->sigchildPipe = $pipes[$sigchild]; - unset($pipes[$sigchild]); - } - - foreach ($pipes as $n => $fd) { - // use open mode from stream meta data or fall back to pipe open mode for legacy HHVM - $meta = \stream_get_meta_data($fd); - $mode = $meta['mode'] === '' ? ($this->fds[$n][1] === 'r' ? 'w' : 'r') : $meta['mode']; - - if ($mode === 'r+') { - $stream = new DuplexResourceStream($fd, $loop); - $stream->on('close', $streamCloseHandler); - $closeCount++; - } elseif ($mode === 'w') { - $stream = new WritableResourceStream($fd, $loop); - } else { - $stream = new ReadableResourceStream($fd, $loop); - $stream->on('close', $streamCloseHandler); - $closeCount++; - } - $this->pipes[$n] = $stream; - } - - $this->stdin = isset($this->pipes[0]) ? $this->pipes[0] : null; - $this->stdout = isset($this->pipes[1]) ? $this->pipes[1] : null; - $this->stderr = isset($this->pipes[2]) ? $this->pipes[2] : null; - - // immediately start checking for process exit when started without any I/O pipes - if (!$closeCount) { - $streamCloseHandler(); - } - } - - /** - * Close the process. - * - * This method should only be invoked via the periodic timer that monitors - * the process state. - */ - public function close() - { - if ($this->process === null) { - return; - } - - foreach ($this->pipes as $pipe) { - $pipe->close(); - } - - if ($this->enhanceSigchildCompatibility) { - $this->pollExitCodePipe(); - $this->closeExitCodePipe(); - } - - $exitCode = \proc_close($this->process); - $this->process = null; - - if ($this->exitCode === null && $exitCode !== -1) { - $this->exitCode = $exitCode; - } - - if ($this->exitCode === null && $this->status['exitcode'] !== -1) { - $this->exitCode = $this->status['exitcode']; - } - - if ($this->exitCode === null && $this->fallbackExitCode !== null) { - $this->exitCode = $this->fallbackExitCode; - $this->fallbackExitCode = null; - } - } - - /** - * Terminate the process with an optional signal. - * - * @param int $signal Optional signal (default: SIGTERM) - * @return bool Whether the signal was sent successfully - */ - public function terminate($signal = null) - { - if ($this->process === null) { - return false; - } - - if ($signal !== null) { - return \proc_terminate($this->process, $signal); - } - - return \proc_terminate($this->process); - } - - /** - * Get the command string used to launch the process. - * - * @return string - */ - public function getCommand() - { - return $this->cmd; - } - - /** - * Get the exit code returned by the process. - * - * This value is only meaningful if isRunning() has returned false. Null - * will be returned if the process is still running. - * - * Null may also be returned if the process has terminated, but the exit - * code could not be determined (e.g. sigchild compatibility was disabled). - * - * @return int|null - */ - public function getExitCode() - { - return $this->exitCode; - } - - /** - * Get the process ID. - * - * @return int|null - */ - public function getPid() - { - $status = $this->getCachedStatus(); - - return $status !== null ? $status['pid'] : null; - } - - /** - * Get the signal that caused the process to stop its execution. - * - * This value is only meaningful if isStopped() has returned true. Null will - * be returned if the process was never stopped. - * - * @return int|null - */ - public function getStopSignal() - { - return $this->stopSignal; - } - - /** - * Get the signal that caused the process to terminate its execution. - * - * This value is only meaningful if isTerminated() has returned true. Null - * will be returned if the process was never terminated. - * - * @return int|null - */ - public function getTermSignal() - { - return $this->termSignal; - } - - /** - * Return whether the process is still running. - * - * @return bool - */ - public function isRunning() - { - if ($this->process === null) { - return false; - } - - $status = $this->getFreshStatus(); - - return $status !== null ? $status['running'] : false; - } - - /** - * Return whether the process has been stopped by a signal. - * - * @return bool - */ - public function isStopped() - { - $status = $this->getFreshStatus(); - - return $status !== null ? $status['stopped'] : false; - } - - /** - * Return whether the process has been terminated by an uncaught signal. - * - * @return bool - */ - public function isTerminated() - { - $status = $this->getFreshStatus(); - - return $status !== null ? $status['signaled'] : false; - } - - /** - * Return whether PHP has been compiled with the '--enable-sigchild' option. - * - * @see \Symfony\Component\Process\Process::isSigchildEnabled() - * @return bool - */ - public final static function isSigchildEnabled() - { - if (null !== self::$sigchild) { - return self::$sigchild; - } - - if (!\function_exists('phpinfo')) { - return self::$sigchild = false; // @codeCoverageIgnore - } - - \ob_start(); - \phpinfo(INFO_GENERAL); - - return self::$sigchild = false !== \strpos(\ob_get_clean(), '--enable-sigchild'); - } - - /** - * Enable or disable sigchild compatibility mode. - * - * Sigchild compatibility mode is required to get the exit code and - * determine the success of a process when PHP has been compiled with - * the --enable-sigchild option. - * - * @param bool $sigchild - * @return void - */ - public final static function setSigchildEnabled($sigchild) - { - self::$sigchild = (bool) $sigchild; - } - - /** - * Check the fourth pipe for an exit code. - * - * This should only be used if --enable-sigchild compatibility was enabled. - */ - private function pollExitCodePipe() - { - if ($this->sigchildPipe === null) { - return; - } - - $r = array($this->sigchildPipe); - $w = $e = null; - - $n = @\stream_select($r, $w, $e, 0); - - if (1 !== $n) { - return; - } - - $data = \fread($r[0], 8192); - - if (\strlen($data) > 0) { - $this->fallbackExitCode = (int) $data; - } - } - - /** - * Close the fourth pipe used to relay an exit code. - * - * This should only be used if --enable-sigchild compatibility was enabled. - */ - private function closeExitCodePipe() - { - if ($this->sigchildPipe === null) { - return; - } - - \fclose($this->sigchildPipe); - $this->sigchildPipe = null; - } - - /** - * Return the cached process status. - * - * @return array - */ - private function getCachedStatus() - { - if ($this->status === null) { - $this->updateStatus(); - } - - return $this->status; - } - - /** - * Return the updated process status. - * - * @return array - */ - private function getFreshStatus() - { - $this->updateStatus(); - - return $this->status; - } - - /** - * Update the process status, stop/term signals, and exit code. - * - * Stop/term signals are only updated if the process is currently stopped or - * signaled, respectively. Otherwise, signal values will remain as-is so the - * corresponding getter methods may be used at a later point in time. - */ - private function updateStatus() - { - if ($this->process === null) { - return; - } - - $this->status = \proc_get_status($this->process); - - if ($this->status === false) { - throw new \UnexpectedValueException('proc_get_status() failed'); - } - - if ($this->status['stopped']) { - $this->stopSignal = $this->status['stopsig']; - } - - if ($this->status['signaled']) { - $this->termSignal = $this->status['termsig']; - } - - if (!$this->status['running'] && -1 !== $this->status['exitcode']) { - $this->exitCode = $this->status['exitcode']; - } - } -} diff --git a/vendor/react/datagram/CHANGELOG.md b/vendor/react/datagram/CHANGELOG.md deleted file mode 100644 index ba25123..0000000 --- a/vendor/react/datagram/CHANGELOG.md +++ /dev/null @@ -1,154 +0,0 @@ -# Changelog - -## 1.10.0 (2024-09-06) - -* Feature: Improve PHP 8.4+ support by avoiding implicitly nullable type declarations. - (#59 by @clue) - -* Feature: Full PHP 8.3 compatibility. - (#57 by @clue) - -## 1.9.0 (2022-12-05) - -* Feature: Add support for PHP 8.1 and PHP 8.2. - (#44 by @SimonFrings and #51 by @WyriHaximus) - -* Feature: Forward compatibility with upcoming Promise v3. - (#33 by @WyriHaximus) - -* Feature / Fix: Improve error reporting when custom error handler is used. - (#49 by @clue) - -* Feature: Avoid dependency on `ext-filter`. - (#45 by @clue) - -* Improve documentation and examples and update to use new reactphp/async package. - (#50 by @nhedger, #53 by @dinooo13 and #47, #54 and #56 by @SimonFrings) - -* Improve test suite and report failed assertions. - (#48 by @SimonFrings and #55 by @clue) - -## 1.8.0 (2021-07-11) - -A major new feature release, see [**release announcement**](https://clue.engineering/2021/announcing-reactphp-default-loop). - -* Feature: Simplify usage by supporting new [default loop](https://reactphp.org/event-loop/#loop). - (#42 by @clue) - - ```php - // old (still supported) - $factory = new React\Datagram\Factory($loop); - - // new (using default loop) - $factory = new React\Datagram\Factory(); - ``` - -## 1.7.0 (2021-06-25) - -* Feature: Support falling back to multiple DNS servers from DNS config. - (#41 by @clue) - - When using the `Factory`, it will now use all DNS servers configured on your - system. If you have multiple DNS servers configured and connectivity to the - primary DNS server is broken, it will now fall back to your other DNS - servers, thus providing improved connectivity and redundancy for broken DNS - configurations. - -## 1.6.0 (2021-02-12) - -* Feature: Support PHP 8 (socket address of closed socket should be null). - (#39 by @clue) - -* Improve test suite and add `.gitattributes` to exclude dev files from exports. - Run tests on PHPUnit 9, switch to GitHub actions and clean up test suite. - (#30, #31 and #38 by @clue, #34 by @reedy, #35 by @WyriHaximus and #37 by @SimonFrings) - -## 1.5.0 (2019-07-10) - -* Feature: Forward compatibility with upcoming stable DNS component. - (#29 by @clue) - -* Prefix all global functions calls with \ to skip the look up and resolve process and go straight to the global function. - (#28 by @WyriHaximus) - -* Improve test suite to also test against PHP 7.1 and 7.2. - (#25 by @andreybolonin) - -## 1.4.0 (2018-02-28) - -* Feature: Update DNS dependency to support loading system default DNS - nameserver config on all supported platforms - (`/etc/resolv.conf` on Unix/Linux/Mac/Docker/WSL and WMIC on Windows) - (#23 by @clue) - - This means that connecting to hosts that are managed by a local DNS server, - such as a corporate DNS server or when using Docker containers, will now - work as expected across all platforms with no changes required: - - ```php - $factory = new Factory($loop); - $factory->createClient('intranet.example:5353'); - ``` - -* Improve README - (#22 by @jsor) - -## 1.3.0 (2017-09-25) - -* Feature: Always use `Resolver` with default DNS to match Socket component - and update DNS dependency to support hosts file on all platforms - (#19 and #20 by @clue) - - This means that connecting to hosts such as `localhost` (and for example - those used for Docker containers) will now work as expected across all - platforms with no changes required: - - ```php - $factory = new Factory($loop); - $factory->createClient('localhost:5353'); - ``` - -## 1.2.0 (2017-08-09) - -* Feature: Target evenement 3.0 a long side 2.0 and 1.0 - (#16 by @WyriHaximus) - -* Feature: Forward compatibility with EventLoop v1.0 and v0.5 - (#18 by @clue) - -* Improve test suite by updating Travis build config so new defaults do not break the build - (#17 by @clue) - -## 1.1.1 (2017-01-23) - -* Fix: Properly format IPv6 addresses and return `null` for unknown addresses - (#14 by @clue) - -* Fix: Skip IPv6 tests if not supported by the system - (#15 by @clue) - -## 1.1.0 (2016-03-19) - -* Feature: Support promise cancellation (cancellation of underlying DNS lookup) - (#12 by @clue) - -* Fix: Fix error reporting when trying to create invalid sockets - (#11 by @clue) - -* Improve test suite and update dependencies - (#7, #8 by @clue) - -## 1.0.1 (2015-11-13) - -* Fix: Correct formatting for remote peer address of incoming datagrams when using IPv6 - (#6 by @WyriHaximus) - -* Improve test suite for different PHP versions - -## 1.0.0 (2014-10-23) - -* Initial tagged release - -> This project has been migrated over from [clue/datagram](https://github.com/clue/php-datagram) -> which has originally been released in January 2013. -> Upgrading from clue/datagram v0.5.0? Use namespace `React\Datagram` instead of `Datagram` and you're ready to go! diff --git a/vendor/react/datagram/LICENSE b/vendor/react/datagram/LICENSE deleted file mode 100644 index 61974a9..0000000 --- a/vendor/react/datagram/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2013 Christian Lück, Cees-Jan Kiewiet, Jan Sorgalla, Chris Boden - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is furnished -to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/vendor/react/datagram/README.md b/vendor/react/datagram/README.md deleted file mode 100644 index 821ba40..0000000 --- a/vendor/react/datagram/README.md +++ /dev/null @@ -1,68 +0,0 @@ -# Datagram - -[![CI status](https://github.com/reactphp/datagram/actions/workflows/ci.yml/badge.svg)](https://github.com/reactphp/datagram/actions) -[![installs on Packagist](https://img.shields.io/packagist/dt/react/datagram?color=blue&label=installs%20on%20Packagist)](https://packagist.org/packages/react/datagram) - -Event-driven UDP datagram socket client and server for [ReactPHP](https://reactphp.org). - -## Quickstart example - -Once [installed](#install), you can use the following code to connect to an UDP server listening on -`localhost:1234` and send and receive UDP datagrams: - -```php -$factory = new React\Datagram\Factory(); - -$factory->createClient('localhost:1234')->then(function (React\Datagram\Socket $client) { - $client->send('first'); - - $client->on('message', function($message, $serverAddress, $client) { - echo 'received "' . $message . '" from ' . $serverAddress. PHP_EOL; - }); -}); -``` - -See also the [examples](examples). - -## Usage - -This library's API is modelled after node.js's API for -[UDP / Datagram Sockets (dgram.Socket)](https://nodejs.org/api/dgram.html). - -## Install - -The recommended way to install this library is [through Composer](https://getcomposer.org/). -[New to Composer?](https://getcomposer.org/doc/00-intro.md) - -This project follows [SemVer](https://semver.org/). -This will install the latest supported version: - -```bash -composer require react/datagram:^1.10 -``` - -See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades. - -This project aims to run on any platform and thus does not require any PHP -extensions and supports running on legacy PHP 5.3 through current PHP 8+ and -HHVM. -It's *highly recommended to use PHP 7+* for this project. - -## Tests - -To run the test suite, you first need to clone this repo and then install all -dependencies [through Composer](https://getcomposer.org/): - -```bash -composer install -``` - -To run the test suite, go to the project root and run: - -```bash -vendor/bin/phpunit -``` - -## License - -MIT, see [LICENSE file](LICENSE). diff --git a/vendor/react/datagram/composer.json b/vendor/react/datagram/composer.json deleted file mode 100644 index a1d12d7..0000000 --- a/vendor/react/datagram/composer.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "name": "react/datagram", - "description": "Event-driven UDP datagram socket client and server for ReactPHP", - "keywords": ["udp", "datagram", "dgram", "socket", "client", "server", "ReactPHP", "async"], - "homepage": "https://github.com/reactphp/datagram", - "license": "MIT", - "authors": [ - { - "name": "Christian Lück", - "homepage": "https://clue.engineering/", - "email": "christian@clue.engineering" - }, - { - "name": "Cees-Jan Kiewiet", - "homepage": "https://wyrihaximus.net/", - "email": "reactphp@ceesjankiewiet.nl" - }, - { - "name": "Jan Sorgalla", - "homepage": "https://sorgalla.com/", - "email": "jsorgalla@gmail.com" - }, - { - "name": "Chris Boden", - "homepage": "https://cboden.dev/", - "email": "cboden@gmail.com" - } - ], - "require": { - "php": ">=5.3", - "evenement/evenement": "^3.0 || ^2.0 || ^1.0", - "react/dns": "^1.13", - "react/event-loop": "^1.2", - "react/promise": "^3.2 || ^2.1 || ^1.2" - }, - "require-dev": { - "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36", - "react/async": "^4.3 || ^3 || ^2" - }, - "autoload": { - "psr-4": { - "React\\Datagram\\": "src/" - } - }, - "autoload-dev": { - "psr-4": { - "React\\Tests\\Datagram\\": "tests/" - } - } -} diff --git a/vendor/react/datagram/src/Buffer.php b/vendor/react/datagram/src/Buffer.php deleted file mode 100644 index af33c93..0000000 --- a/vendor/react/datagram/src/Buffer.php +++ /dev/null @@ -1,122 +0,0 @@ -loop = $loop; - $this->socket = $socket; - } - - public function send($data, $remoteAddress = null) - { - if ($this->writable === false) { - return; - } - - $this->outgoing []= array($data, $remoteAddress); - - if (!$this->listening) { - $this->handleResume(); - $this->listening = true; - } - } - - public function onWritable() - { - list($data, $remoteAddress) = \array_shift($this->outgoing); - - try { - $this->handleWrite($data, $remoteAddress); - } - catch (Exception $e) { - $this->emit('error', array($e, $this)); - } - - if (!$this->outgoing) { - if ($this->listening) { - $this->handlePause(); - $this->listening = false; - } - - if (!$this->writable) { - $this->close(); - } - } - } - - public function close() - { - if ($this->socket === false) { - return; - } - - $this->emit('close', array($this)); - - if ($this->listening) { - $this->handlePause(); - $this->listening = false; - } - - $this->writable = false; - $this->socket = false; - $this->outgoing = array(); - $this->removeAllListeners(); - } - - public function end() - { - $this->writable = false; - - if (!$this->outgoing) { - $this->close(); - } - } - - protected function handlePause() - { - $this->loop->removeWriteStream($this->socket); - } - - protected function handleResume() - { - $this->loop->addWriteStream($this->socket, array($this, 'onWritable')); - } - - protected function handleWrite($data, $remoteAddress) - { - $errstr = ''; - \set_error_handler(function ($_, $error) use (&$errstr) { - // Match errstr from PHP's warning message. - // stream_socket_sendto(): Message too long\n - $errstr = \trim($error); - }); - - if ($remoteAddress === null) { - // do not use fwrite() as it obeys the stream buffer size and - // packets are not to be split at 8kb - $ret = \stream_socket_sendto($this->socket, $data); - } else { - $ret = \stream_socket_sendto($this->socket, $data, 0, $remoteAddress); - } - - \restore_error_handler(); - - if ($ret < 0 || $ret === false) { - throw new Exception('Unable to send packet: ' . $errstr); - } - } -} diff --git a/vendor/react/datagram/src/Factory.php b/vendor/react/datagram/src/Factory.php deleted file mode 100644 index d7836d7..0000000 --- a/vendor/react/datagram/src/Factory.php +++ /dev/null @@ -1,155 +0,0 @@ -nameservers) { - $config->nameservers[] = '8.8.8.8'; // @codeCoverageIgnore - } - - $factory = new DnsFactory(); - $resolver = $factory->create($config, $loop); - } - - $this->loop = $loop; - $this->resolver = $resolver; - } - - public function createClient($address) - { - $loop = $this->loop; - - return $this->resolveAddress($address)->then(function ($address) use ($loop) { - $socket = @\stream_socket_client($address, $errno, $errstr); - if (!$socket) { - throw new Exception('Unable to create client socket: ' . $errstr, $errno); - } - - return new Socket($loop, $socket); - }); - } - - public function createServer($address) - { - $loop = $this->loop; - - return $this->resolveAddress($address)->then(function ($address) use ($loop) { - $socket = @\stream_socket_server($address, $errno, $errstr, \STREAM_SERVER_BIND); - if (!$socket) { - throw new Exception('Unable to create server socket: ' . $errstr, $errno); - } - - return new Socket($loop, $socket); - }); - } - - protected function resolveAddress($address) - { - if (\strpos($address, '://') === false) { - $address = 'udp://' . $address; - } - - // parse_url() does not accept null ports (random port assignment) => manually remove - $nullport = false; - if (\substr($address, -2) === ':0') { - $address = \substr($address, 0, -2); - $nullport = true; - } - - $parts = \parse_url($address); - - if (!$parts || !isset($parts['host'])) { - return Promise\resolve($address); - } - - if ($nullport) { - $parts['port'] = 0; - } - - // remove square brackets for IPv6 addresses - $host = \trim($parts['host'], '[]'); - - return $this->resolveHost($host)->then(function ($host) use ($parts) { - $address = $parts['scheme'] . '://'; - - if (isset($parts['port']) && \strpos($host, ':') !== false) { - // enclose IPv6 address in square brackets if a port will be appended - $host = '[' . $host . ']'; - } - - $address .= $host; - - if (isset($parts['port'])) { - $address .= ':' . $parts['port']; - } - - return $address; - }); - } - - protected function resolveHost($host) - { - // there's no need to resolve if the host is already given as an IP address - if (@\inet_pton($host) !== false) { - return Promise\resolve($host); - } - - $promise = $this->resolver->resolve($host); - - // wrap DNS lookup in order to control cancellation behavior - return new Promise\Promise( - function ($resolve, $reject) use ($promise) { - // forward promise resolution - $promise->then($resolve, $reject); - }, - function ($_, $reject) use ($promise) { - // reject with custom message once cancelled - $reject(new \RuntimeException('Cancelled creating socket during DNS lookup')); - - // (try to) cancel pending DNS lookup, otherwise ignoring its results - if (\method_exists($promise, 'cancel')) { - $promise->cancel(); - } - } - ); - } -} diff --git a/vendor/react/datagram/src/Socket.php b/vendor/react/datagram/src/Socket.php deleted file mode 100644 index 465154c..0000000 --- a/vendor/react/datagram/src/Socket.php +++ /dev/null @@ -1,151 +0,0 @@ -loop = $loop; - $this->socket = $socket; - - if ($buffer === null) { - $buffer = new Buffer($loop, $socket); - } - $this->buffer = $buffer; - - $that = $this; - $this->buffer->on('error', function ($error) use ($that) { - $that->emit('error', array($error, $that)); - }); - $this->buffer->on('close', array($this, 'close')); - - $this->resume(); - } - - public function getLocalAddress() - { - if ($this->socket === false) { - return null; - } - - return $this->sanitizeAddress(@\stream_socket_get_name($this->socket, false)); - } - - public function getRemoteAddress() - { - if ($this->socket === false) { - return null; - } - - return $this->sanitizeAddress(@\stream_socket_get_name($this->socket, true)); - } - - public function send($data, $remoteAddress = null) - { - $this->buffer->send($data, $remoteAddress); - } - - public function pause() - { - $this->loop->removeReadStream($this->socket); - } - - public function resume() - { - if ($this->socket !== false) { - $this->loop->addReadStream($this->socket, array($this, 'onReceive')); - } - } - - public function onReceive() - { - try { - $data = $this->handleReceive($peer); - } - catch (Exception $e) { - // emit error message and local socket - $this->emit('error', array($e, $this)); - return; - } - - $this->emit('message', array($data, $peer, $this)); - } - - public function close() - { - if ($this->socket === false) { - return; - } - - $this->emit('close', array($this)); - $this->pause(); - - $this->handleClose(); - $this->socket = false; - $this->buffer->close(); - - $this->removeAllListeners(); - } - - public function end() - { - $this->buffer->end(); - } - - private function sanitizeAddress($address) - { - if ($address === false) { - return null; - } - - // check if this is an IPv6 address which includes multiple colons but no square brackets (PHP < 7.3) - $pos = \strrpos($address, ':'); - if ($pos !== false && \strpos($address, ':') < $pos && \substr($address, 0, 1) !== '[') { - $address = '[' . \substr($address, 0, $pos) . ']:' . \substr($address, $pos + 1); // @codeCoverageIgnore - } - return $address; - } - - protected function handleReceive(&$peerAddress) - { - $data = \stream_socket_recvfrom($this->socket, $this->bufferSize, 0, $peerAddress); - - if ($data === false) { - // receiving data failed => remote side rejected one of our packets - // due to the nature of UDP, there's no way to tell which one exactly - // $peer is not filled either - - throw new Exception('Invalid message'); - } - - $peerAddress = $this->sanitizeAddress($peerAddress); - - return $data; - } - - protected function handleClose() - { - \fclose($this->socket); - } -} diff --git a/vendor/react/datagram/src/SocketInterface.php b/vendor/react/datagram/src/SocketInterface.php deleted file mode 100644 index 3292c64..0000000 --- a/vendor/react/datagram/src/SocketInterface.php +++ /dev/null @@ -1,29 +0,0 @@ -create($config, $loop); - - // new (using default loop) - $factory = new React\Dns\Resolver\Factory(); - $resolver = $factory->create($config); - ``` - -## 1.7.0 (2021-06-25) - -* Feature: Update DNS `Factory` to accept complete `Config` object. - Add new `FallbackExecutor` and use fallback DNS servers when `Config` lists multiple servers. - (#179 and #180 by @clue) - - ```php - // old (still supported) - $config = React\Dns\Config\Config::loadSystemConfigBlocking(); - $server = $config->nameservers ? reset($config->nameservers) : '8.8.8.8'; - $resolver = $factory->create($server, $loop); - - // new - $config = React\Dns\Config\Config::loadSystemConfigBlocking(); - if (!$config->nameservers) { - $config->nameservers[] = '8.8.8.8'; - } - $resolver = $factory->create($config, $loop); - ``` - -## 1.6.0 (2021-06-21) - -* Feature: Add support for legacy `SPF` record type. - (#178 by @akondas and @clue) - -* Fix: Fix integer overflow for TCP/IP chunk size on 32 bit platforms. - (#177 by @clue) - -## 1.5.0 (2021-03-05) - -* Feature: Improve error reporting when query fails, include domain and query type and DNS server address where applicable. - (#174 by @clue) - -* Feature: Improve error handling when sending data to DNS server fails (macOS). - (#171 and #172 by @clue) - -* Fix: Improve DNS response parser to limit recursion for compressed labels. - (#169 by @clue) - -* Improve test suite, use GitHub actions for continuous integration (CI). - (#170 by @SimonFrings) - -## 1.4.0 (2020-09-18) - -* Feature: Support upcoming PHP 8. - (#168 by @clue) - -* Improve test suite and update to PHPUnit 9.3. - (#164 by @clue, #165 and #166 by @SimonFrings and #167 by @WyriHaximus) - -## 1.3.0 (2020-07-10) - -* Feature: Forward compatibility with react/promise v3. - (#153 by @WyriHaximus) - -* Feature: Support parsing `OPT` records (EDNS0). - (#157 by @clue) - -* Fix: Avoid PHP warnings due to lack of args in exception trace on PHP 7.4. - (#160 by @clue) - -* Improve test suite and add `.gitattributes` to exclude dev files from exports. - Run tests on PHPUnit 9 and PHP 7.4 and clean up test suite. - (#154 by @reedy, #156 by @clue and #163 by @SimonFrings) - -## 1.2.0 (2019-08-15) - -* Feature: Add `TcpTransportExecutor` to send DNS queries over TCP/IP connection, - add `SelectiveTransportExecutor` to retry with TCP if UDP is truncated and - automatically select transport protocol when no explicit `udp://` or `tcp://` scheme is given in `Factory`. - (#145, #146, #147 and #148 by @clue) - -* Feature: Support escaping literal dots and special characters in domain names. - (#144 by @clue) - -## 1.1.0 (2019-07-18) - -* Feature: Support parsing `CAA` and `SSHFP` records. - (#141 and #142 by @clue) - -* Feature: Add `ResolverInterface` as common interface for `Resolver` class. - (#139 by @clue) - -* Fix: Add missing private property definitions and - remove unneeded dependency on `react/stream`. - (#140 and #143 by @clue) - -## 1.0.0 (2019-07-11) - -* First stable LTS release, now following [SemVer](https://semver.org/). - We'd like to emphasize that this component is production ready and battle-tested. - We plan to support all long-term support (LTS) releases for at least 24 months, - so you have a rock-solid foundation to build on top of. - -This update involves a number of BC breaks due to dropped support for -deprecated functionality and some internal API cleanup. We've tried hard to -avoid BC breaks where possible and minimize impact otherwise. We expect that -most consumers of this package will actually not be affected by any BC -breaks, see below for more details: - -* BC break: Delete all deprecated APIs, use `Query` objects for `Message` questions - instead of nested arrays and increase code coverage to 100%. - (#130 by @clue) - -* BC break: Move `$nameserver` from `ExecutorInterface` to `UdpTransportExecutor`, - remove advanced/internal `UdpTransportExecutor` args for `Parser`/`BinaryDumper` and - add API documentation for `ExecutorInterface`. - (#135, #137 and #138 by @clue) - -* BC break: Replace `HeaderBag` attributes with simple `Message` properties. - (#132 by @clue) - -* BC break: Mark all `Record` attributes as required, add documentation vs `Query`. - (#136 by @clue) - -* BC break: Mark all classes as final to discourage inheritance - (#134 by @WyriHaximus) - -## 0.4.19 (2019-07-10) - -* Feature: Avoid garbage references when DNS resolution rejects on legacy PHP <= 5.6. - (#133 by @clue) - -## 0.4.18 (2019-09-07) - -* Feature / Fix: Implement `CachingExecutor` using cache TTL, deprecate old `CachedExecutor`, - respect TTL from response records when caching and do not cache truncated responses. - (#129 by @clue) - -* Feature: Limit cache size to 256 last responses by default. - (#127 by @clue) - -* Feature: Cooperatively resolve hosts to avoid running same query concurrently. - (#125 by @clue) - -## 0.4.17 (2019-04-01) - -* Feature: Support parsing `authority` and `additional` records from DNS response. - (#123 by @clue) - -* Feature: Support dumping records as part of outgoing binary DNS message. - (#124 by @clue) - -* Feature: Forward compatibility with upcoming Cache v0.6 and Cache v1.0 - (#121 by @clue) - -* Improve test suite to add forward compatibility with PHPUnit 7, - test against PHP 7.3 and use legacy PHPUnit 5 on legacy HHVM. - (#122 by @clue) - -## 0.4.16 (2018-11-11) - -* Feature: Improve promise cancellation for DNS lookup retries and clean up any garbage references. - (#118 by @clue) - -* Fix: Reject parsing malformed DNS response messages such as incomplete DNS response messages, - malformed record data or malformed compressed domain name labels. - (#115 and #117 by @clue) - -* Fix: Fix interpretation of TTL as UINT32 with most significant bit unset. - (#116 by @clue) - -* Fix: Fix caching advanced MX/SRV/TXT/SOA structures. - (#112 by @clue) - -## 0.4.15 (2018-07-02) - -* Feature: Add `resolveAll()` method to support custom query types in `Resolver`. - (#110 by @clue and @WyriHaximus) - - ```php - $resolver->resolveAll('reactphp.org', Message::TYPE_AAAA)->then(function ($ips) { - echo 'IPv6 addresses for reactphp.org ' . implode(', ', $ips) . PHP_EOL; - }); - ``` - -* Feature: Support parsing `NS`, `TXT`, `MX`, `SOA` and `SRV` records. - (#104, #105, #106, #107 and #108 by @clue) - -* Feature: Add support for `Message::TYPE_ANY` and parse unknown types as binary data. - (#104 by @clue) - -* Feature: Improve error messages for failed queries and improve documentation. - (#109 by @clue) - -* Feature: Add reverse DNS lookup example. - (#111 by @clue) - -## 0.4.14 (2018-06-26) - -* Feature: Add `UdpTransportExecutor`, validate incoming DNS response messages - to avoid cache poisoning attacks and deprecate legacy `Executor`. - (#101 and #103 by @clue) - -* Feature: Forward compatibility with Cache 0.5 - (#102 by @clue) - -* Deprecate legacy `Query::$currentTime` and binary parser data attributes to clean up and simplify API. - (#99 by @clue) - -## 0.4.13 (2018-02-27) - -* Add `Config::loadSystemConfigBlocking()` to load default system config - and support parsing DNS config on all supported platforms - (`/etc/resolv.conf` on Unix/Linux/Mac and WMIC on Windows) - (#92, #93, #94 and #95 by @clue) - - ```php - $config = Config::loadSystemConfigBlocking(); - $server = $config->nameservers ? reset($config->nameservers) : '8.8.8.8'; - ``` - -* Remove unneeded cyclic dependency on react/socket - (#96 by @clue) - -## 0.4.12 (2018-01-14) - -* Improve test suite by adding forward compatibility with PHPUnit 6, - test against PHP 7.2, fix forward compatibility with upcoming EventLoop releases, - add test group to skip integration tests relying on internet connection - and add minor documentation improvements. - (#85 and #87 by @carusogabriel, #88 and #89 by @clue and #83 by @jsor) - -## 0.4.11 (2017-08-25) - -* Feature: Support resolving from default hosts file - (#75, #76 and #77 by @clue) - - This means that resolving hosts such as `localhost` will now work as - expected across all platforms with no changes required: - - ```php - $resolver->resolve('localhost')->then(function ($ip) { - echo 'IP: ' . $ip; - }); - ``` - - The new `HostsExecutor` exists for advanced usage and is otherwise used - internally for this feature. - -## 0.4.10 (2017-08-10) - -* Feature: Forward compatibility with EventLoop v1.0 and v0.5 and - lock minimum dependencies and work around circular dependency for tests - (#70 and #71 by @clue) - -* Fix: Work around DNS timeout issues for Windows users - (#74 by @clue) - -* Documentation and examples for advanced usage - (#66 by @WyriHaximus) - -* Remove broken TCP code, do not retry with invalid TCP query - (#73 by @clue) - -* Improve test suite by fixing HHVM build for now again and ignore future HHVM build errors and - lock Travis distro so new defaults will not break the build and - fix failing tests for PHP 7.1 - (#68 by @WyriHaximus and #69 and #72 by @clue) - -## 0.4.9 (2017-05-01) - -* Feature: Forward compatibility with upcoming Socket v1.0 and v0.8 - (#61 by @clue) - -## 0.4.8 (2017-04-16) - -* Feature: Add support for the AAAA record type to the protocol parser - (#58 by @othillo) - -* Feature: Add support for the PTR record type to the protocol parser - (#59 by @othillo) - -## 0.4.7 (2017-03-31) - -* Feature: Forward compatibility with upcoming Socket v0.6 and v0.7 component - (#57 by @clue) - -## 0.4.6 (2017-03-11) - -* Fix: Fix DNS timeout issues for Windows users and add forward compatibility - with Stream v0.5 and upcoming v0.6 - (#53 by @clue) - -* Improve test suite by adding PHPUnit to `require-dev` - (#54 by @clue) - -## 0.4.5 (2017-03-02) - -* Fix: Ensure we ignore the case of the answer - (#51 by @WyriHaximus) - -* Feature: Add `TimeoutExecutor` and simplify internal APIs to allow internal - code re-use for upcoming versions. - (#48 and #49 by @clue) - -## 0.4.4 (2017-02-13) - -* Fix: Fix handling connection and stream errors - (#45 by @clue) - -* Feature: Add examples and forward compatibility with upcoming Socket v0.5 component - (#46 and #47 by @clue) - -## 0.4.3 (2016-07-31) - -* Feature: Allow for cache adapter injection (#38 by @WyriHaximus) - - ```php - $factory = new React\Dns\Resolver\Factory(); - - $cache = new MyCustomCacheInstance(); - $resolver = $factory->createCached('8.8.8.8', $loop, $cache); - ``` - -* Feature: Support Promise cancellation (#35 by @clue) - - ```php - $promise = $resolver->resolve('reactphp.org'); - - $promise->cancel(); - ``` - -## 0.4.2 (2016-02-24) - -* Repository maintenance, split off from main repo, improve test suite and documentation -* First class support for PHP7 and HHVM (#34 by @clue) -* Adjust compatibility to 5.3 (#30 by @clue) - -## 0.4.1 (2014-04-13) - -* Bug fix: Fixed PSR-4 autoload path (@marcj/WyriHaximus) - -## 0.4.0 (2014-02-02) - -* BC break: Bump minimum PHP version to PHP 5.4, remove 5.3 specific hacks -* BC break: Update to React/Promise 2.0 -* Bug fix: Properly resolve CNAME aliases -* Dependency: Autoloading and filesystem structure now PSR-4 instead of PSR-0 -* Bump React dependencies to v0.4 - -## 0.3.2 (2013-05-10) - -* Feature: Support default port for IPv6 addresses (@clue) - -## 0.3.0 (2013-04-14) - -* Bump React dependencies to v0.3 - -## 0.2.6 (2012-12-26) - -* Feature: New cache component, used by DNS - -## 0.2.5 (2012-11-26) - -* Version bump - -## 0.2.4 (2012-11-18) - -* Feature: Change to promise-based API (@jsor) - -## 0.2.3 (2012-11-14) - -* Version bump - -## 0.2.2 (2012-10-28) - -* Feature: DNS executor timeout handling (@arnaud-lb) -* Feature: DNS retry executor (@arnaud-lb) - -## 0.2.1 (2012-10-14) - -* Minor adjustments to DNS parser - -## 0.2.0 (2012-09-10) - -* Feature: DNS resolver diff --git a/vendor/react/dns/LICENSE b/vendor/react/dns/LICENSE deleted file mode 100644 index d6f8901..0000000 --- a/vendor/react/dns/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2012 Christian Lück, Cees-Jan Kiewiet, Jan Sorgalla, Chris Boden, Igor Wiedler - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is furnished -to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/vendor/react/dns/README.md b/vendor/react/dns/README.md deleted file mode 100644 index 9f83a94..0000000 --- a/vendor/react/dns/README.md +++ /dev/null @@ -1,453 +0,0 @@ -# DNS - -[![CI status](https://github.com/reactphp/dns/actions/workflows/ci.yml/badge.svg)](https://github.com/reactphp/dns/actions) -[![installs on Packagist](https://img.shields.io/packagist/dt/react/dns?color=blue&label=installs%20on%20Packagist)](https://packagist.org/packages/react/dns) - -Async DNS resolver for [ReactPHP](https://reactphp.org/). - -The main point of the DNS component is to provide async DNS resolution. -However, it is really a toolkit for working with DNS messages, and could -easily be used to create a DNS server. - -**Table of contents** - -* [Basic usage](#basic-usage) -* [Caching](#caching) - * [Custom cache adapter](#custom-cache-adapter) -* [ResolverInterface](#resolverinterface) - * [resolve()](#resolve) - * [resolveAll()](#resolveall) -* [Advanced usage](#advanced-usage) - * [UdpTransportExecutor](#udptransportexecutor) - * [TcpTransportExecutor](#tcptransportexecutor) - * [SelectiveTransportExecutor](#selectivetransportexecutor) - * [HostsFileExecutor](#hostsfileexecutor) -* [Install](#install) -* [Tests](#tests) -* [License](#license) -* [References](#references) - -## Basic usage - -The most basic usage is to just create a resolver through the resolver -factory. All you need to give it is a nameserver, then you can start resolving -names, baby! - -```php -$config = React\Dns\Config\Config::loadSystemConfigBlocking(); -if (!$config->nameservers) { - $config->nameservers[] = '8.8.8.8'; -} - -$factory = new React\Dns\Resolver\Factory(); -$dns = $factory->create($config); - -$dns->resolve('igor.io')->then(function ($ip) { - echo "Host: $ip\n"; -}); -``` - -See also the [first example](examples). - -The `Config` class can be used to load the system default config. This is an -operation that may access the filesystem and block. Ideally, this method should -thus be executed only once before the loop starts and not repeatedly while it is -running. -Note that this class may return an *empty* configuration if the system config -can not be loaded. As such, you'll likely want to apply a default nameserver -as above if none can be found. - -> Note that the factory loads the hosts file from the filesystem once when - creating the resolver instance. - Ideally, this method should thus be executed only once before the loop starts - and not repeatedly while it is running. - -But there's more. - -## Caching - -You can cache results by configuring the resolver to use a `CachedExecutor`: - -```php -$config = React\Dns\Config\Config::loadSystemConfigBlocking(); -if (!$config->nameservers) { - $config->nameservers[] = '8.8.8.8'; -} - -$factory = new React\Dns\Resolver\Factory(); -$dns = $factory->createCached($config); - -$dns->resolve('igor.io')->then(function ($ip) { - echo "Host: $ip\n"; -}); - -... - -$dns->resolve('igor.io')->then(function ($ip) { - echo "Host: $ip\n"; -}); -``` - -If the first call returns before the second, only one query will be executed. -The second result will be served from an in memory cache. -This is particularly useful for long running scripts where the same hostnames -have to be looked up multiple times. - -See also the [third example](examples). - -### Custom cache adapter - -By default, the above will use an in memory cache. - -You can also specify a custom cache implementing [`CacheInterface`](https://github.com/reactphp/cache) to handle the record cache instead: - -```php -$cache = new React\Cache\ArrayCache(); -$factory = new React\Dns\Resolver\Factory(); -$dns = $factory->createCached('8.8.8.8', null, $cache); -``` - -See also the wiki for possible [cache implementations](https://github.com/reactphp/react/wiki/Users#cache-implementations). - -## ResolverInterface - - - -### resolve() - -The `resolve(string $domain): PromiseInterface` method can be used to -resolve the given $domain name to a single IPv4 address (type `A` query). - -```php -$resolver->resolve('reactphp.org')->then(function ($ip) { - echo 'IP for reactphp.org is ' . $ip . PHP_EOL; -}); -``` - -This is one of the main methods in this package. It sends a DNS query -for the given $domain name to your DNS server and returns a single IP -address on success. - -If the DNS server sends a DNS response message that contains more than -one IP address for this query, it will randomly pick one of the IP -addresses from the response. If you want the full list of IP addresses -or want to send a different type of query, you should use the -[`resolveAll()`](#resolveall) method instead. - -If the DNS server sends a DNS response message that indicates an error -code, this method will reject with a `RecordNotFoundException`. Its -message and code can be used to check for the response code. - -If the DNS communication fails and the server does not respond with a -valid response message, this message will reject with an `Exception`. - -Pending DNS queries can be cancelled by cancelling its pending promise like so: - -```php -$promise = $resolver->resolve('reactphp.org'); - -$promise->cancel(); -``` - -### resolveAll() - -The `resolveAll(string $host, int $type): PromiseInterface` method can be used to -resolve all record values for the given $domain name and query $type. - -```php -$resolver->resolveAll('reactphp.org', Message::TYPE_A)->then(function ($ips) { - echo 'IPv4 addresses for reactphp.org ' . implode(', ', $ips) . PHP_EOL; -}); - -$resolver->resolveAll('reactphp.org', Message::TYPE_AAAA)->then(function ($ips) { - echo 'IPv6 addresses for reactphp.org ' . implode(', ', $ips) . PHP_EOL; -}); -``` - -This is one of the main methods in this package. It sends a DNS query -for the given $domain name to your DNS server and returns a list with all -record values on success. - -If the DNS server sends a DNS response message that contains one or more -records for this query, it will return a list with all record values -from the response. You can use the `Message::TYPE_*` constants to control -which type of query will be sent. Note that this method always returns a -list of record values, but each record value type depends on the query -type. For example, it returns the IPv4 addresses for type `A` queries, -the IPv6 addresses for type `AAAA` queries, the hostname for type `NS`, -`CNAME` and `PTR` queries and structured data for other queries. See also -the `Record` documentation for more details. - -If the DNS server sends a DNS response message that indicates an error -code, this method will reject with a `RecordNotFoundException`. Its -message and code can be used to check for the response code. - -If the DNS communication fails and the server does not respond with a -valid response message, this message will reject with an `Exception`. - -Pending DNS queries can be cancelled by cancelling its pending promise like so: - -```php -$promise = $resolver->resolveAll('reactphp.org', Message::TYPE_AAAA); - -$promise->cancel(); -``` - -## Advanced Usage - -### UdpTransportExecutor - -The `UdpTransportExecutor` can be used to -send DNS queries over a UDP transport. - -This is the main class that sends a DNS query to your DNS server and is used -internally by the `Resolver` for the actual message transport. - -For more advanced usages one can utilize this class directly. -The following example looks up the `IPv6` address for `igor.io`. - -```php -$executor = new UdpTransportExecutor('8.8.8.8:53'); - -$executor->query( - new Query($name, Message::TYPE_AAAA, Message::CLASS_IN) -)->then(function (Message $message) { - foreach ($message->answers as $answer) { - echo 'IPv6: ' . $answer->data . PHP_EOL; - } -}, 'printf'); -``` - -See also the [fourth example](examples). - -Note that this executor does not implement a timeout, so you will very likely -want to use this in combination with a `TimeoutExecutor` like this: - -```php -$executor = new TimeoutExecutor( - new UdpTransportExecutor($nameserver), - 3.0 -); -``` - -Also note that this executor uses an unreliable UDP transport and that it -does not implement any retry logic, so you will likely want to use this in -combination with a `RetryExecutor` like this: - -```php -$executor = new RetryExecutor( - new TimeoutExecutor( - new UdpTransportExecutor($nameserver), - 3.0 - ) -); -``` - -Note that this executor is entirely async and as such allows you to execute -any number of queries concurrently. You should probably limit the number of -concurrent queries in your application or you're very likely going to face -rate limitations and bans on the resolver end. For many common applications, -you may want to avoid sending the same query multiple times when the first -one is still pending, so you will likely want to use this in combination with -a `CoopExecutor` like this: - -```php -$executor = new CoopExecutor( - new RetryExecutor( - new TimeoutExecutor( - new UdpTransportExecutor($nameserver), - 3.0 - ) - ) -); -``` - -> Internally, this class uses PHP's UDP sockets and does not take advantage - of [react/datagram](https://github.com/reactphp/datagram) purely for - organizational reasons to avoid a cyclic dependency between the two - packages. Higher-level components should take advantage of the Datagram - component instead of reimplementing this socket logic from scratch. - -### TcpTransportExecutor - -The `TcpTransportExecutor` class can be used to -send DNS queries over a TCP/IP stream transport. - -This is one of the main classes that send a DNS query to your DNS server. - -For more advanced usages one can utilize this class directly. -The following example looks up the `IPv6` address for `reactphp.org`. - -```php -$executor = new TcpTransportExecutor('8.8.8.8:53'); - -$executor->query( - new Query($name, Message::TYPE_AAAA, Message::CLASS_IN) -)->then(function (Message $message) { - foreach ($message->answers as $answer) { - echo 'IPv6: ' . $answer->data . PHP_EOL; - } -}, 'printf'); -``` - -See also [example #92](examples). - -Note that this executor does not implement a timeout, so you will very likely -want to use this in combination with a `TimeoutExecutor` like this: - -```php -$executor = new TimeoutExecutor( - new TcpTransportExecutor($nameserver), - 3.0 -); -``` - -Unlike the `UdpTransportExecutor`, this class uses a reliable TCP/IP -transport, so you do not necessarily have to implement any retry logic. - -Note that this executor is entirely async and as such allows you to execute -queries concurrently. The first query will establish a TCP/IP socket -connection to the DNS server which will be kept open for a short period. -Additional queries will automatically reuse this existing socket connection -to the DNS server, will pipeline multiple requests over this single -connection and will keep an idle connection open for a short period. The -initial TCP/IP connection overhead may incur a slight delay if you only send -occasional queries – when sending a larger number of concurrent queries over -an existing connection, it becomes increasingly more efficient and avoids -creating many concurrent sockets like the UDP-based executor. You may still -want to limit the number of (concurrent) queries in your application or you -may be facing rate limitations and bans on the resolver end. For many common -applications, you may want to avoid sending the same query multiple times -when the first one is still pending, so you will likely want to use this in -combination with a `CoopExecutor` like this: - -```php -$executor = new CoopExecutor( - new TimeoutExecutor( - new TcpTransportExecutor($nameserver), - 3.0 - ) -); -``` - -> Internally, this class uses PHP's TCP/IP sockets and does not take advantage - of [react/socket](https://github.com/reactphp/socket) purely for - organizational reasons to avoid a cyclic dependency between the two - packages. Higher-level components should take advantage of the Socket - component instead of reimplementing this socket logic from scratch. - -### SelectiveTransportExecutor - -The `SelectiveTransportExecutor` class can be used to -Send DNS queries over a UDP or TCP/IP stream transport. - -This class will automatically choose the correct transport protocol to send -a DNS query to your DNS server. It will always try to send it over the more -efficient UDP transport first. If this query yields a size related issue -(truncated messages), it will retry over a streaming TCP/IP transport. - -For more advanced usages one can utilize this class directly. -The following example looks up the `IPv6` address for `reactphp.org`. - -```php -$executor = new SelectiveTransportExecutor($udpExecutor, $tcpExecutor); - -$executor->query( - new Query($name, Message::TYPE_AAAA, Message::CLASS_IN) -)->then(function (Message $message) { - foreach ($message->answers as $answer) { - echo 'IPv6: ' . $answer->data . PHP_EOL; - } -}, 'printf'); -``` - -Note that this executor only implements the logic to select the correct -transport for the given DNS query. Implementing the correct transport logic, -implementing timeouts and any retry logic is left up to the given executors, -see also [`UdpTransportExecutor`](#udptransportexecutor) and -[`TcpTransportExecutor`](#tcptransportexecutor) for more details. - -Note that this executor is entirely async and as such allows you to execute -any number of queries concurrently. You should probably limit the number of -concurrent queries in your application or you're very likely going to face -rate limitations and bans on the resolver end. For many common applications, -you may want to avoid sending the same query multiple times when the first -one is still pending, so you will likely want to use this in combination with -a `CoopExecutor` like this: - -```php -$executor = new CoopExecutor( - new SelectiveTransportExecutor( - $datagramExecutor, - $streamExecutor - ) -); -``` - -### HostsFileExecutor - -Note that the above `UdpTransportExecutor` class always performs an actual DNS query. -If you also want to take entries from your hosts file into account, you may -use this code: - -```php -$hosts = \React\Dns\Config\HostsFile::loadFromPathBlocking(); - -$executor = new UdpTransportExecutor('8.8.8.8:53'); -$executor = new HostsFileExecutor($hosts, $executor); - -$executor->query( - new Query('localhost', Message::TYPE_A, Message::CLASS_IN) -); -``` - -## Install - -The recommended way to install this library is [through Composer](https://getcomposer.org/). -[New to Composer?](https://getcomposer.org/doc/00-intro.md) - -This project follows [SemVer](https://semver.org/). -This will install the latest supported version: - -```bash -composer require react/dns:^1.13 -``` - -See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades. - -This project aims to run on any platform and thus does not require any PHP -extensions and supports running on legacy PHP 5.3 through current PHP 8+ and -HHVM. -It's *highly recommended to use the latest supported PHP version* for this project. - -## Tests - -To run the test suite, you first need to clone this repo and then install all -dependencies [through Composer](https://getcomposer.org/): - -```bash -composer install -``` - -To run the test suite, go to the project root and run: - -```bash -vendor/bin/phpunit -``` - -The test suite also contains a number of functional integration tests that rely -on a stable internet connection. -If you do not want to run these, they can simply be skipped like this: - -```bash -vendor/bin/phpunit --exclude-group internet -``` - -## License - -MIT, see [LICENSE file](LICENSE). - -## References - -* [RFC 1034](https://tools.ietf.org/html/rfc1034) Domain Names - Concepts and Facilities -* [RFC 1035](https://tools.ietf.org/html/rfc1035) Domain Names - Implementation and Specification diff --git a/vendor/react/dns/composer.json b/vendor/react/dns/composer.json deleted file mode 100644 index 4fe5c0d..0000000 --- a/vendor/react/dns/composer.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "name": "react/dns", - "description": "Async DNS resolver for ReactPHP", - "keywords": ["dns", "dns-resolver", "ReactPHP", "async"], - "license": "MIT", - "authors": [ - { - "name": "Christian Lück", - "homepage": "https://clue.engineering/", - "email": "christian@clue.engineering" - }, - { - "name": "Cees-Jan Kiewiet", - "homepage": "https://wyrihaximus.net/", - "email": "reactphp@ceesjankiewiet.nl" - }, - { - "name": "Jan Sorgalla", - "homepage": "https://sorgalla.com/", - "email": "jsorgalla@gmail.com" - }, - { - "name": "Chris Boden", - "homepage": "https://cboden.dev/", - "email": "cboden@gmail.com" - } - ], - "require": { - "php": ">=5.3.0", - "react/cache": "^1.0 || ^0.6 || ^0.5", - "react/event-loop": "^1.2", - "react/promise": "^3.2 || ^2.7 || ^1.2.1" - }, - "require-dev": { - "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36", - "react/async": "^4.3 || ^3 || ^2", - "react/promise-timer": "^1.11" - }, - "autoload": { - "psr-4": { - "React\\Dns\\": "src/" - } - }, - "autoload-dev": { - "psr-4": { - "React\\Tests\\Dns\\": "tests/" - } - } -} diff --git a/vendor/react/dns/src/BadServerException.php b/vendor/react/dns/src/BadServerException.php deleted file mode 100644 index 3d95213..0000000 --- a/vendor/react/dns/src/BadServerException.php +++ /dev/null @@ -1,7 +0,0 @@ - `fe80:1`) - if (strpos($ip, ':') !== false && ($pos = strpos($ip, '%')) !== false) { - $ip = substr($ip, 0, $pos); - } - - if (@inet_pton($ip) !== false) { - $config->nameservers[] = $ip; - } - } - - return $config; - } - - /** - * Loads the DNS configurations from Windows's WMIC (from the given command or default command) - * - * Note that this method blocks while loading the given command and should - * thus be used with care! While this should be relatively fast for normal - * WMIC commands, it remains unknown if this may block under certain - * circumstances. In particular, this method should only be executed before - * the loop starts, not while it is running. - * - * Note that this method will only try to execute the given command try to - * parse its output, irrespective of whether this command exists. In - * particular, this command is only available on Windows. Currently, this - * will only parse valid nameserver entries from the command output and will - * ignore all other output without complaining. - * - * Note that the previous section implies that this may return an empty - * `Config` object if no valid nameserver entries can be found. - * - * @param ?string $command (advanced) should not be given (NULL) unless you know what you're doing - * @return self - * @link https://ss64.com/nt/wmic.html - */ - public static function loadWmicBlocking($command = null) - { - $contents = shell_exec($command === null ? 'wmic NICCONFIG get "DNSServerSearchOrder" /format:CSV' : $command); - preg_match_all('/(?<=[{;,"])([\da-f.:]{4,})(?=[};,"])/i', $contents, $matches); - - $config = new self(); - $config->nameservers = $matches[1]; - - return $config; - } - - public $nameservers = array(); -} diff --git a/vendor/react/dns/src/Config/HostsFile.php b/vendor/react/dns/src/Config/HostsFile.php deleted file mode 100644 index 1060231..0000000 --- a/vendor/react/dns/src/Config/HostsFile.php +++ /dev/null @@ -1,153 +0,0 @@ -contents = $contents; - } - - /** - * Returns all IPs for the given hostname - * - * @param string $name - * @return string[] - */ - public function getIpsForHost($name) - { - $name = strtolower($name); - - $ips = array(); - foreach (preg_split('/\r?\n/', $this->contents) as $line) { - $parts = preg_split('/\s+/', $line); - $ip = array_shift($parts); - if ($parts && array_search($name, $parts) !== false) { - // remove IPv6 zone ID (`fe80::1%lo0` => `fe80:1`) - if (strpos($ip, ':') !== false && ($pos = strpos($ip, '%')) !== false) { - $ip = substr($ip, 0, $pos); - } - - if (@inet_pton($ip) !== false) { - $ips[] = $ip; - } - } - } - - return $ips; - } - - /** - * Returns all hostnames for the given IPv4 or IPv6 address - * - * @param string $ip - * @return string[] - */ - public function getHostsForIp($ip) - { - // check binary representation of IP to avoid string case and short notation - $ip = @inet_pton($ip); - if ($ip === false) { - return array(); - } - - $names = array(); - foreach (preg_split('/\r?\n/', $this->contents) as $line) { - $parts = preg_split('/\s+/', $line, -1, PREG_SPLIT_NO_EMPTY); - $addr = (string) array_shift($parts); - - // remove IPv6 zone ID (`fe80::1%lo0` => `fe80:1`) - if (strpos($addr, ':') !== false && ($pos = strpos($addr, '%')) !== false) { - $addr = substr($addr, 0, $pos); - } - - if (@inet_pton($addr) === $ip) { - foreach ($parts as $part) { - $names[] = $part; - } - } - } - - return $names; - } -} diff --git a/vendor/react/dns/src/Model/Message.php b/vendor/react/dns/src/Model/Message.php deleted file mode 100644 index bac2b10..0000000 --- a/vendor/react/dns/src/Model/Message.php +++ /dev/null @@ -1,230 +0,0 @@ -id = self::generateId(); - $request->rd = true; - $request->questions[] = $query; - - return $request; - } - - /** - * Creates a new response message for the given query with the given answer records - * - * @param Query $query - * @param Record[] $answers - * @return self - */ - public static function createResponseWithAnswersForQuery(Query $query, array $answers) - { - $response = new Message(); - $response->id = self::generateId(); - $response->qr = true; - $response->rd = true; - - $response->questions[] = $query; - - foreach ($answers as $record) { - $response->answers[] = $record; - } - - return $response; - } - - /** - * generates a random 16 bit message ID - * - * This uses a CSPRNG so that an outside attacker that is sending spoofed - * DNS response messages can not guess the message ID to avoid possible - * cache poisoning attacks. - * - * The `random_int()` function is only available on PHP 7+ or when - * https://github.com/paragonie/random_compat is installed. As such, using - * the latest supported PHP version is highly recommended. This currently - * falls back to a less secure random number generator on older PHP versions - * in the hope that this system is properly protected against outside - * attackers, for example by using one of the common local DNS proxy stubs. - * - * @return int - * @see self::getId() - * @codeCoverageIgnore - */ - private static function generateId() - { - if (function_exists('random_int')) { - return random_int(0, 0xffff); - } - return mt_rand(0, 0xffff); - } - - /** - * The 16 bit message ID - * - * The response message ID has to match the request message ID. This allows - * the receiver to verify this is the correct response message. An outside - * attacker may try to inject fake responses by "guessing" the message ID, - * so this should use a proper CSPRNG to avoid possible cache poisoning. - * - * @var int 16 bit message ID - * @see self::generateId() - */ - public $id = 0; - - /** - * @var bool Query/Response flag, query=false or response=true - */ - public $qr = false; - - /** - * @var int specifies the kind of query (4 bit), see self::OPCODE_* constants - * @see self::OPCODE_QUERY - */ - public $opcode = self::OPCODE_QUERY; - - /** - * - * @var bool Authoritative Answer - */ - public $aa = false; - - /** - * @var bool TrunCation - */ - public $tc = false; - - /** - * @var bool Recursion Desired - */ - public $rd = false; - - /** - * @var bool Recursion Available - */ - public $ra = false; - - /** - * @var int response code (4 bit), see self::RCODE_* constants - * @see self::RCODE_OK - */ - public $rcode = Message::RCODE_OK; - - /** - * An array of Query objects - * - * ```php - * $questions = array( - * new Query( - * 'reactphp.org', - * Message::TYPE_A, - * Message::CLASS_IN - * ) - * ); - * ``` - * - * @var Query[] - */ - public $questions = array(); - - /** - * @var Record[] - */ - public $answers = array(); - - /** - * @var Record[] - */ - public $authority = array(); - - /** - * @var Record[] - */ - public $additional = array(); -} diff --git a/vendor/react/dns/src/Model/Record.php b/vendor/react/dns/src/Model/Record.php deleted file mode 100644 index c20403f..0000000 --- a/vendor/react/dns/src/Model/Record.php +++ /dev/null @@ -1,153 +0,0 @@ -name = $name; - $this->type = $type; - $this->class = $class; - $this->ttl = $ttl; - $this->data = $data; - } -} diff --git a/vendor/react/dns/src/Protocol/BinaryDumper.php b/vendor/react/dns/src/Protocol/BinaryDumper.php deleted file mode 100644 index 6f4030f..0000000 --- a/vendor/react/dns/src/Protocol/BinaryDumper.php +++ /dev/null @@ -1,199 +0,0 @@ -headerToBinary($message); - $data .= $this->questionToBinary($message->questions); - $data .= $this->recordsToBinary($message->answers); - $data .= $this->recordsToBinary($message->authority); - $data .= $this->recordsToBinary($message->additional); - - return $data; - } - - /** - * @param Message $message - * @return string - */ - private function headerToBinary(Message $message) - { - $data = ''; - - $data .= pack('n', $message->id); - - $flags = 0x00; - $flags = ($flags << 1) | ($message->qr ? 1 : 0); - $flags = ($flags << 4) | $message->opcode; - $flags = ($flags << 1) | ($message->aa ? 1 : 0); - $flags = ($flags << 1) | ($message->tc ? 1 : 0); - $flags = ($flags << 1) | ($message->rd ? 1 : 0); - $flags = ($flags << 1) | ($message->ra ? 1 : 0); - $flags = ($flags << 3) | 0; // skip unused zero bit - $flags = ($flags << 4) | $message->rcode; - - $data .= pack('n', $flags); - - $data .= pack('n', count($message->questions)); - $data .= pack('n', count($message->answers)); - $data .= pack('n', count($message->authority)); - $data .= pack('n', count($message->additional)); - - return $data; - } - - /** - * @param Query[] $questions - * @return string - */ - private function questionToBinary(array $questions) - { - $data = ''; - - foreach ($questions as $question) { - $data .= $this->domainNameToBinary($question->name); - $data .= pack('n*', $question->type, $question->class); - } - - return $data; - } - - /** - * @param Record[] $records - * @return string - */ - private function recordsToBinary(array $records) - { - $data = ''; - - foreach ($records as $record) { - /* @var $record Record */ - switch ($record->type) { - case Message::TYPE_A: - case Message::TYPE_AAAA: - $binary = \inet_pton($record->data); - break; - case Message::TYPE_CNAME: - case Message::TYPE_NS: - case Message::TYPE_PTR: - $binary = $this->domainNameToBinary($record->data); - break; - case Message::TYPE_TXT: - case Message::TYPE_SPF: - $binary = $this->textsToBinary($record->data); - break; - case Message::TYPE_MX: - $binary = \pack( - 'n', - $record->data['priority'] - ); - $binary .= $this->domainNameToBinary($record->data['target']); - break; - case Message::TYPE_SRV: - $binary = \pack( - 'n*', - $record->data['priority'], - $record->data['weight'], - $record->data['port'] - ); - $binary .= $this->domainNameToBinary($record->data['target']); - break; - case Message::TYPE_SOA: - $binary = $this->domainNameToBinary($record->data['mname']); - $binary .= $this->domainNameToBinary($record->data['rname']); - $binary .= \pack( - 'N*', - $record->data['serial'], - $record->data['refresh'], - $record->data['retry'], - $record->data['expire'], - $record->data['minimum'] - ); - break; - case Message::TYPE_CAA: - $binary = \pack( - 'C*', - $record->data['flag'], - \strlen($record->data['tag']) - ); - $binary .= $record->data['tag']; - $binary .= $record->data['value']; - break; - case Message::TYPE_SSHFP: - $binary = \pack( - 'CCH*', - $record->data['algorithm'], - $record->data['type'], - $record->data['fingerprint'] - ); - break; - case Message::TYPE_OPT: - $binary = ''; - foreach ($record->data as $opt => $value) { - if ($opt === Message::OPT_TCP_KEEPALIVE && $value !== null) { - $value = \pack('n', round($value * 10)); - } - $binary .= \pack('n*', $opt, \strlen((string) $value)) . $value; - } - break; - default: - // RDATA is already stored as binary value for unknown record types - $binary = $record->data; - } - - $data .= $this->domainNameToBinary($record->name); - $data .= \pack('nnNn', $record->type, $record->class, $record->ttl, \strlen($binary)); - $data .= $binary; - } - - return $data; - } - - /** - * @param string[] $texts - * @return string - */ - private function textsToBinary(array $texts) - { - $data = ''; - foreach ($texts as $text) { - $data .= \chr(\strlen($text)) . $text; - } - return $data; - } - - /** - * @param string $host - * @return string - */ - private function domainNameToBinary($host) - { - if ($host === '') { - return "\0"; - } - - // break up domain name at each dot that is not preceeded by a backslash (escaped notation) - return $this->textsToBinary( - \array_map( - 'stripcslashes', - \preg_split( - '/(?parse($data, 0); - if ($message === null) { - throw new InvalidArgumentException('Unable to parse binary message'); - } - - return $message; - } - - /** - * @param string $data - * @param int $consumed - * @return ?Message - */ - private function parse($data, $consumed) - { - if (!isset($data[12 - 1])) { - return null; - } - - list($id, $fields, $qdCount, $anCount, $nsCount, $arCount) = array_values(unpack('n*', substr($data, 0, 12))); - - $message = new Message(); - $message->id = $id; - $message->rcode = $fields & 0xf; - $message->ra = (($fields >> 7) & 1) === 1; - $message->rd = (($fields >> 8) & 1) === 1; - $message->tc = (($fields >> 9) & 1) === 1; - $message->aa = (($fields >> 10) & 1) === 1; - $message->opcode = ($fields >> 11) & 0xf; - $message->qr = (($fields >> 15) & 1) === 1; - $consumed += 12; - - // parse all questions - for ($i = $qdCount; $i > 0; --$i) { - list($question, $consumed) = $this->parseQuestion($data, $consumed); - if ($question === null) { - return null; - } else { - $message->questions[] = $question; - } - } - - // parse all answer records - for ($i = $anCount; $i > 0; --$i) { - list($record, $consumed) = $this->parseRecord($data, $consumed); - if ($record === null) { - return null; - } else { - $message->answers[] = $record; - } - } - - // parse all authority records - for ($i = $nsCount; $i > 0; --$i) { - list($record, $consumed) = $this->parseRecord($data, $consumed); - if ($record === null) { - return null; - } else { - $message->authority[] = $record; - } - } - - // parse all additional records - for ($i = $arCount; $i > 0; --$i) { - list($record, $consumed) = $this->parseRecord($data, $consumed); - if ($record === null) { - return null; - } else { - $message->additional[] = $record; - } - } - - return $message; - } - - /** - * @param string $data - * @param int $consumed - * @return array - */ - private function parseQuestion($data, $consumed) - { - list($labels, $consumed) = $this->readLabels($data, $consumed); - - if ($labels === null || !isset($data[$consumed + 4 - 1])) { - return array(null, null); - } - - list($type, $class) = array_values(unpack('n*', substr($data, $consumed, 4))); - $consumed += 4; - - return array( - new Query( - implode('.', $labels), - $type, - $class - ), - $consumed - ); - } - - /** - * @param string $data - * @param int $consumed - * @return array An array with a parsed Record on success or array with null if data is invalid/incomplete - */ - private function parseRecord($data, $consumed) - { - list($name, $consumed) = $this->readDomain($data, $consumed); - - if ($name === null || !isset($data[$consumed + 10 - 1])) { - return array(null, null); - } - - list($type, $class) = array_values(unpack('n*', substr($data, $consumed, 4))); - $consumed += 4; - - list($ttl) = array_values(unpack('N', substr($data, $consumed, 4))); - $consumed += 4; - - // TTL is a UINT32 that must not have most significant bit set for BC reasons - if ($ttl < 0 || $ttl >= 1 << 31) { - $ttl = 0; - } - - list($rdLength) = array_values(unpack('n', substr($data, $consumed, 2))); - $consumed += 2; - - if (!isset($data[$consumed + $rdLength - 1])) { - return array(null, null); - } - - $rdata = null; - $expected = $consumed + $rdLength; - - if (Message::TYPE_A === $type) { - if ($rdLength === 4) { - $rdata = inet_ntop(substr($data, $consumed, $rdLength)); - $consumed += $rdLength; - } - } elseif (Message::TYPE_AAAA === $type) { - if ($rdLength === 16) { - $rdata = inet_ntop(substr($data, $consumed, $rdLength)); - $consumed += $rdLength; - } - } elseif (Message::TYPE_CNAME === $type || Message::TYPE_PTR === $type || Message::TYPE_NS === $type) { - list($rdata, $consumed) = $this->readDomain($data, $consumed); - } elseif (Message::TYPE_TXT === $type || Message::TYPE_SPF === $type) { - $rdata = array(); - while ($consumed < $expected) { - $len = ord($data[$consumed]); - $rdata[] = (string)substr($data, $consumed + 1, $len); - $consumed += $len + 1; - } - } elseif (Message::TYPE_MX === $type) { - if ($rdLength > 2) { - list($priority) = array_values(unpack('n', substr($data, $consumed, 2))); - list($target, $consumed) = $this->readDomain($data, $consumed + 2); - - $rdata = array( - 'priority' => $priority, - 'target' => $target - ); - } - } elseif (Message::TYPE_SRV === $type) { - if ($rdLength > 6) { - list($priority, $weight, $port) = array_values(unpack('n*', substr($data, $consumed, 6))); - list($target, $consumed) = $this->readDomain($data, $consumed + 6); - - $rdata = array( - 'priority' => $priority, - 'weight' => $weight, - 'port' => $port, - 'target' => $target - ); - } - } elseif (Message::TYPE_SSHFP === $type) { - if ($rdLength > 2) { - list($algorithm, $hash) = \array_values(\unpack('C*', \substr($data, $consumed, 2))); - $fingerprint = \bin2hex(\substr($data, $consumed + 2, $rdLength - 2)); - $consumed += $rdLength; - - $rdata = array( - 'algorithm' => $algorithm, - 'type' => $hash, - 'fingerprint' => $fingerprint - ); - } - } elseif (Message::TYPE_SOA === $type) { - list($mname, $consumed) = $this->readDomain($data, $consumed); - list($rname, $consumed) = $this->readDomain($data, $consumed); - - if ($mname !== null && $rname !== null && isset($data[$consumed + 20 - 1])) { - list($serial, $refresh, $retry, $expire, $minimum) = array_values(unpack('N*', substr($data, $consumed, 20))); - $consumed += 20; - - $rdata = array( - 'mname' => $mname, - 'rname' => $rname, - 'serial' => $serial, - 'refresh' => $refresh, - 'retry' => $retry, - 'expire' => $expire, - 'minimum' => $minimum - ); - } - } elseif (Message::TYPE_OPT === $type) { - $rdata = array(); - while (isset($data[$consumed + 4 - 1])) { - list($code, $length) = array_values(unpack('n*', substr($data, $consumed, 4))); - $value = (string) substr($data, $consumed + 4, $length); - if ($code === Message::OPT_TCP_KEEPALIVE && $value === '') { - $value = null; - } elseif ($code === Message::OPT_TCP_KEEPALIVE && $length === 2) { - list($value) = array_values(unpack('n', $value)); - $value = round($value * 0.1, 1); - } elseif ($code === Message::OPT_TCP_KEEPALIVE) { - break; - } - $rdata[$code] = $value; - $consumed += 4 + $length; - } - } elseif (Message::TYPE_CAA === $type) { - if ($rdLength > 3) { - list($flag, $tagLength) = array_values(unpack('C*', substr($data, $consumed, 2))); - - if ($tagLength > 0 && $rdLength - 2 - $tagLength > 0) { - $tag = substr($data, $consumed + 2, $tagLength); - $value = substr($data, $consumed + 2 + $tagLength, $rdLength - 2 - $tagLength); - $consumed += $rdLength; - - $rdata = array( - 'flag' => $flag, - 'tag' => $tag, - 'value' => $value - ); - } - } - } else { - // unknown types simply parse rdata as an opaque binary string - $rdata = substr($data, $consumed, $rdLength); - $consumed += $rdLength; - } - - // ensure parsing record data consumes expact number of bytes indicated in record length - if ($consumed !== $expected || $rdata === null) { - return array(null, null); - } - - return array( - new Record($name, $type, $class, $ttl, $rdata), - $consumed - ); - } - - private function readDomain($data, $consumed) - { - list ($labels, $consumed) = $this->readLabels($data, $consumed); - - if ($labels === null) { - return array(null, null); - } - - // use escaped notation for each label part, then join using dots - return array( - \implode( - '.', - \array_map( - function ($label) { - return \addcslashes($label, "\0..\40.\177"); - }, - $labels - ) - ), - $consumed - ); - } - - /** - * @param string $data - * @param int $consumed - * @param int $compressionDepth maximum depth for compressed labels to avoid unreasonable recursion - * @return array - */ - private function readLabels($data, $consumed, $compressionDepth = 127) - { - $labels = array(); - - while (true) { - if (!isset($data[$consumed])) { - return array(null, null); - } - - $length = \ord($data[$consumed]); - - // end of labels reached - if ($length === 0) { - $consumed += 1; - break; - } - - // first two bits set? this is a compressed label (14 bit pointer offset) - if (($length & 0xc0) === 0xc0 && isset($data[$consumed + 1]) && $compressionDepth) { - $offset = ($length & ~0xc0) << 8 | \ord($data[$consumed + 1]); - if ($offset >= $consumed) { - return array(null, null); - } - - $consumed += 2; - list($newLabels) = $this->readLabels($data, $offset, $compressionDepth - 1); - - if ($newLabels === null) { - return array(null, null); - } - - $labels = array_merge($labels, $newLabels); - break; - } - - // length MUST be 0-63 (6 bits only) and data has to be large enough - if ($length & 0xc0 || !isset($data[$consumed + $length - 1])) { - return array(null, null); - } - - $labels[] = substr($data, $consumed + 1, $length); - $consumed += $length + 1; - } - - return array($labels, $consumed); - } -} diff --git a/vendor/react/dns/src/Query/CachingExecutor.php b/vendor/react/dns/src/Query/CachingExecutor.php deleted file mode 100644 index e530b24..0000000 --- a/vendor/react/dns/src/Query/CachingExecutor.php +++ /dev/null @@ -1,88 +0,0 @@ -executor = $executor; - $this->cache = $cache; - } - - public function query(Query $query) - { - $id = $query->name . ':' . $query->type . ':' . $query->class; - $cache = $this->cache; - $that = $this; - $executor = $this->executor; - - $pending = $cache->get($id); - return new Promise(function ($resolve, $reject) use ($query, $id, $cache, $executor, &$pending, $that) { - $pending->then( - function ($message) use ($query, $id, $cache, $executor, &$pending, $that) { - // return cached response message on cache hit - if ($message !== null) { - return $message; - } - - // perform DNS lookup if not already cached - return $pending = $executor->query($query)->then( - function (Message $message) use ($cache, $id, $that) { - // DNS response message received => store in cache when not truncated and return - if (!$message->tc) { - $cache->set($id, $message, $that->ttl($message)); - } - - return $message; - } - ); - } - )->then($resolve, function ($e) use ($reject, &$pending) { - $reject($e); - $pending = null; - }); - }, function ($_, $reject) use (&$pending, $query) { - $reject(new \RuntimeException('DNS query for ' . $query->describe() . ' has been cancelled')); - $pending->cancel(); - $pending = null; - }); - } - - /** - * @param Message $message - * @return int - * @internal - */ - public function ttl(Message $message) - { - // select TTL from answers (should all be the same), use smallest value if available - // @link https://tools.ietf.org/html/rfc2181#section-5.2 - $ttl = null; - foreach ($message->answers as $answer) { - if ($ttl === null || $answer->ttl < $ttl) { - $ttl = $answer->ttl; - } - } - - if ($ttl === null) { - $ttl = self::TTL; - } - - return $ttl; - } -} diff --git a/vendor/react/dns/src/Query/CancellationException.php b/vendor/react/dns/src/Query/CancellationException.php deleted file mode 100644 index 5432b36..0000000 --- a/vendor/react/dns/src/Query/CancellationException.php +++ /dev/null @@ -1,7 +0,0 @@ -executor = $base; - } - - public function query(Query $query) - { - $key = $this->serializeQueryToIdentity($query); - if (isset($this->pending[$key])) { - // same query is already pending, so use shared reference to pending query - $promise = $this->pending[$key]; - ++$this->counts[$key]; - } else { - // no such query pending, so start new query and keep reference until it's fulfilled or rejected - $promise = $this->executor->query($query); - $this->pending[$key] = $promise; - $this->counts[$key] = 1; - - $pending =& $this->pending; - $counts =& $this->counts; - $promise->then(function () use ($key, &$pending, &$counts) { - unset($pending[$key], $counts[$key]); - }, function () use ($key, &$pending, &$counts) { - unset($pending[$key], $counts[$key]); - }); - } - - // Return a child promise awaiting the pending query. - // Cancelling this child promise should only cancel the pending query - // when no other child promise is awaiting the same query. - $pending =& $this->pending; - $counts =& $this->counts; - return new Promise(function ($resolve, $reject) use ($promise) { - $promise->then($resolve, $reject); - }, function () use (&$promise, $key, $query, &$pending, &$counts) { - if (--$counts[$key] < 1) { - unset($pending[$key], $counts[$key]); - $promise->cancel(); - $promise = null; - } - throw new \RuntimeException('DNS query for ' . $query->describe() . ' has been cancelled'); - }); - } - - private function serializeQueryToIdentity(Query $query) - { - return sprintf('%s:%s:%s', $query->name, $query->type, $query->class); - } -} diff --git a/vendor/react/dns/src/Query/ExecutorInterface.php b/vendor/react/dns/src/Query/ExecutorInterface.php deleted file mode 100644 index 0bc3945..0000000 --- a/vendor/react/dns/src/Query/ExecutorInterface.php +++ /dev/null @@ -1,43 +0,0 @@ -query($query)->then( - * function (React\Dns\Model\Message $response) { - * // response message successfully received - * var_dump($response->rcode, $response->answers); - * }, - * function (Exception $error) { - * // failed to query due to $error - * } - * ); - * ``` - * - * The returned Promise MUST be implemented in such a way that it can be - * cancelled when it is still pending. Cancelling a pending promise MUST - * reject its value with an Exception. It SHOULD clean up any underlying - * resources and references as applicable. - * - * ```php - * $promise = $executor->query($query); - * - * $promise->cancel(); - * ``` - * - * @param Query $query - * @return \React\Promise\PromiseInterface<\React\Dns\Model\Message> - * resolves with response message on success or rejects with an Exception on error - */ - public function query(Query $query); -} diff --git a/vendor/react/dns/src/Query/FallbackExecutor.php b/vendor/react/dns/src/Query/FallbackExecutor.php deleted file mode 100644 index 83bd360..0000000 --- a/vendor/react/dns/src/Query/FallbackExecutor.php +++ /dev/null @@ -1,49 +0,0 @@ -executor = $executor; - $this->fallback = $fallback; - } - - public function query(Query $query) - { - $cancelled = false; - $fallback = $this->fallback; - $promise = $this->executor->query($query); - - return new Promise(function ($resolve, $reject) use (&$promise, $fallback, $query, &$cancelled) { - $promise->then($resolve, function (\Exception $e1) use ($fallback, $query, $resolve, $reject, &$cancelled, &$promise) { - // reject if primary resolution rejected due to cancellation - if ($cancelled) { - $reject($e1); - return; - } - - // start fallback query if primary query rejected - $promise = $fallback->query($query)->then($resolve, function (\Exception $e2) use ($e1, $reject) { - $append = $e2->getMessage(); - if (($pos = strpos($append, ':')) !== false) { - $append = substr($append, $pos + 2); - } - - // reject with combined error message if both queries fail - $reject(new \RuntimeException($e1->getMessage() . '. ' . $append)); - }); - }); - }, function () use (&$promise, &$cancelled) { - // cancel pending query (primary or fallback) - $cancelled = true; - $promise->cancel(); - }); - } -} diff --git a/vendor/react/dns/src/Query/HostsFileExecutor.php b/vendor/react/dns/src/Query/HostsFileExecutor.php deleted file mode 100644 index d6e2d93..0000000 --- a/vendor/react/dns/src/Query/HostsFileExecutor.php +++ /dev/null @@ -1,89 +0,0 @@ -hosts = $hosts; - $this->fallback = $fallback; - } - - public function query(Query $query) - { - if ($query->class === Message::CLASS_IN && ($query->type === Message::TYPE_A || $query->type === Message::TYPE_AAAA)) { - // forward lookup for type A or AAAA - $records = array(); - $expectsColon = $query->type === Message::TYPE_AAAA; - foreach ($this->hosts->getIpsForHost($query->name) as $ip) { - // ensure this is an IPv4/IPV6 address according to query type - if ((strpos($ip, ':') !== false) === $expectsColon) { - $records[] = new Record($query->name, $query->type, $query->class, 0, $ip); - } - } - - if ($records) { - return Promise\resolve( - Message::createResponseWithAnswersForQuery($query, $records) - ); - } - } elseif ($query->class === Message::CLASS_IN && $query->type === Message::TYPE_PTR) { - // reverse lookup: extract IPv4 or IPv6 from special `.arpa` domain - $ip = $this->getIpFromHost($query->name); - - if ($ip !== null) { - $records = array(); - foreach ($this->hosts->getHostsForIp($ip) as $host) { - $records[] = new Record($query->name, $query->type, $query->class, 0, $host); - } - - if ($records) { - return Promise\resolve( - Message::createResponseWithAnswersForQuery($query, $records) - ); - } - } - } - - return $this->fallback->query($query); - } - - private function getIpFromHost($host) - { - if (substr($host, -13) === '.in-addr.arpa') { - // IPv4: read as IP and reverse bytes - $ip = @inet_pton(substr($host, 0, -13)); - if ($ip === false || isset($ip[4])) { - return null; - } - - return inet_ntop(strrev($ip)); - } elseif (substr($host, -9) === '.ip6.arpa') { - // IPv6: replace dots, reverse nibbles and interpret as hexadecimal string - $ip = @inet_ntop(pack('H*', strrev(str_replace('.', '', substr($host, 0, -9))))); - if ($ip === false) { - return null; - } - - return $ip; - } else { - return null; - } - } -} diff --git a/vendor/react/dns/src/Query/Query.php b/vendor/react/dns/src/Query/Query.php deleted file mode 100644 index a3dcfb5..0000000 --- a/vendor/react/dns/src/Query/Query.php +++ /dev/null @@ -1,69 +0,0 @@ -name = $name; - $this->type = $type; - $this->class = $class; - } - - /** - * Describes the hostname and query type/class for this query - * - * The output format is supposed to be human readable and is subject to change. - * The format is inspired by RFC 3597 when handling unkown types/classes. - * - * @return string "example.com (A)" or "example.com (CLASS0 TYPE1234)" - * @link https://tools.ietf.org/html/rfc3597 - */ - public function describe() - { - $class = $this->class !== Message::CLASS_IN ? 'CLASS' . $this->class . ' ' : ''; - - $type = 'TYPE' . $this->type; - $ref = new \ReflectionClass('React\Dns\Model\Message'); - foreach ($ref->getConstants() as $name => $value) { - if ($value === $this->type && \strpos($name, 'TYPE_') === 0) { - $type = \substr($name, 5); - break; - } - } - - return $this->name . ' (' . $class . $type . ')'; - } -} diff --git a/vendor/react/dns/src/Query/RetryExecutor.php b/vendor/react/dns/src/Query/RetryExecutor.php deleted file mode 100644 index 880609b..0000000 --- a/vendor/react/dns/src/Query/RetryExecutor.php +++ /dev/null @@ -1,85 +0,0 @@ -executor = $executor; - $this->retries = $retries; - } - - public function query(Query $query) - { - return $this->tryQuery($query, $this->retries); - } - - public function tryQuery(Query $query, $retries) - { - $deferred = new Deferred(function () use (&$promise) { - if ($promise instanceof PromiseInterface && \method_exists($promise, 'cancel')) { - $promise->cancel(); - } - }); - - $success = function ($value) use ($deferred, &$errorback) { - $errorback = null; - $deferred->resolve($value); - }; - - $executor = $this->executor; - $errorback = function ($e) use ($deferred, &$promise, $query, $success, &$errorback, &$retries, $executor) { - if (!$e instanceof TimeoutException) { - $errorback = null; - $deferred->reject($e); - } elseif ($retries <= 0) { - $errorback = null; - $deferred->reject($e = new \RuntimeException( - 'DNS query for ' . $query->describe() . ' failed: too many retries', - 0, - $e - )); - - // avoid garbage references by replacing all closures in call stack. - // what a lovely piece of code! - $r = new \ReflectionProperty('Exception', 'trace'); - $r->setAccessible(true); - $trace = $r->getValue($e); - - // Exception trace arguments are not available on some PHP 7.4 installs - // @codeCoverageIgnoreStart - foreach ($trace as $ti => $one) { - if (isset($one['args'])) { - foreach ($one['args'] as $ai => $arg) { - if ($arg instanceof \Closure) { - $trace[$ti]['args'][$ai] = 'Object(' . \get_class($arg) . ')'; - } - } - } - } - // @codeCoverageIgnoreEnd - $r->setValue($e, $trace); - } else { - --$retries; - $promise = $executor->query($query)->then( - $success, - $errorback - ); - } - }; - - $promise = $this->executor->query($query)->then( - $success, - $errorback - ); - - return $deferred->promise(); - } -} diff --git a/vendor/react/dns/src/Query/SelectiveTransportExecutor.php b/vendor/react/dns/src/Query/SelectiveTransportExecutor.php deleted file mode 100644 index 0f0ca5d..0000000 --- a/vendor/react/dns/src/Query/SelectiveTransportExecutor.php +++ /dev/null @@ -1,85 +0,0 @@ -query( - * new Query($name, Message::TYPE_AAAA, Message::CLASS_IN) - * )->then(function (Message $message) { - * foreach ($message->answers as $answer) { - * echo 'IPv6: ' . $answer->data . PHP_EOL; - * } - * }, 'printf'); - * ``` - * - * Note that this executor only implements the logic to select the correct - * transport for the given DNS query. Implementing the correct transport logic, - * implementing timeouts and any retry logic is left up to the given executors, - * see also [`UdpTransportExecutor`](#udptransportexecutor) and - * [`TcpTransportExecutor`](#tcptransportexecutor) for more details. - * - * Note that this executor is entirely async and as such allows you to execute - * any number of queries concurrently. You should probably limit the number of - * concurrent queries in your application or you're very likely going to face - * rate limitations and bans on the resolver end. For many common applications, - * you may want to avoid sending the same query multiple times when the first - * one is still pending, so you will likely want to use this in combination with - * a `CoopExecutor` like this: - * - * ```php - * $executor = new CoopExecutor( - * new SelectiveTransportExecutor( - * $datagramExecutor, - * $streamExecutor - * ) - * ); - * ``` - */ -class SelectiveTransportExecutor implements ExecutorInterface -{ - private $datagramExecutor; - private $streamExecutor; - - public function __construct(ExecutorInterface $datagramExecutor, ExecutorInterface $streamExecutor) - { - $this->datagramExecutor = $datagramExecutor; - $this->streamExecutor = $streamExecutor; - } - - public function query(Query $query) - { - $stream = $this->streamExecutor; - $pending = $this->datagramExecutor->query($query); - - return new Promise(function ($resolve, $reject) use (&$pending, $stream, $query) { - $pending->then( - $resolve, - function ($e) use (&$pending, $stream, $query, $resolve, $reject) { - if ($e->getCode() === (\defined('SOCKET_EMSGSIZE') ? \SOCKET_EMSGSIZE : 90)) { - $pending = $stream->query($query)->then($resolve, $reject); - } else { - $reject($e); - } - } - ); - }, function () use (&$pending) { - $pending->cancel(); - $pending = null; - }); - } -} diff --git a/vendor/react/dns/src/Query/TcpTransportExecutor.php b/vendor/react/dns/src/Query/TcpTransportExecutor.php deleted file mode 100644 index 669fd01..0000000 --- a/vendor/react/dns/src/Query/TcpTransportExecutor.php +++ /dev/null @@ -1,382 +0,0 @@ -query( - * new Query($name, Message::TYPE_AAAA, Message::CLASS_IN) - * )->then(function (Message $message) { - * foreach ($message->answers as $answer) { - * echo 'IPv6: ' . $answer->data . PHP_EOL; - * } - * }, 'printf'); - * ``` - * - * See also [example #92](examples). - * - * Note that this executor does not implement a timeout, so you will very likely - * want to use this in combination with a `TimeoutExecutor` like this: - * - * ```php - * $executor = new TimeoutExecutor( - * new TcpTransportExecutor($nameserver), - * 3.0 - * ); - * ``` - * - * Unlike the `UdpTransportExecutor`, this class uses a reliable TCP/IP - * transport, so you do not necessarily have to implement any retry logic. - * - * Note that this executor is entirely async and as such allows you to execute - * queries concurrently. The first query will establish a TCP/IP socket - * connection to the DNS server which will be kept open for a short period. - * Additional queries will automatically reuse this existing socket connection - * to the DNS server, will pipeline multiple requests over this single - * connection and will keep an idle connection open for a short period. The - * initial TCP/IP connection overhead may incur a slight delay if you only send - * occasional queries – when sending a larger number of concurrent queries over - * an existing connection, it becomes increasingly more efficient and avoids - * creating many concurrent sockets like the UDP-based executor. You may still - * want to limit the number of (concurrent) queries in your application or you - * may be facing rate limitations and bans on the resolver end. For many common - * applications, you may want to avoid sending the same query multiple times - * when the first one is still pending, so you will likely want to use this in - * combination with a `CoopExecutor` like this: - * - * ```php - * $executor = new CoopExecutor( - * new TimeoutExecutor( - * new TcpTransportExecutor($nameserver), - * 3.0 - * ) - * ); - * ``` - * - * > Internally, this class uses PHP's TCP/IP sockets and does not take advantage - * of [react/socket](https://github.com/reactphp/socket) purely for - * organizational reasons to avoid a cyclic dependency between the two - * packages. Higher-level components should take advantage of the Socket - * component instead of reimplementing this socket logic from scratch. - */ -class TcpTransportExecutor implements ExecutorInterface -{ - private $nameserver; - private $loop; - private $parser; - private $dumper; - - /** - * @var ?resource - */ - private $socket; - - /** - * @var Deferred[] - */ - private $pending = array(); - - /** - * @var string[] - */ - private $names = array(); - - /** - * Maximum idle time when socket is current unused (i.e. no pending queries outstanding) - * - * If a new query is to be sent during the idle period, we can reuse the - * existing socket without having to wait for a new socket connection. - * This uses a rather small, hard-coded value to not keep any unneeded - * sockets open and to not keep the loop busy longer than needed. - * - * A future implementation may take advantage of `edns-tcp-keepalive` to keep - * the socket open for longer periods. This will likely require explicit - * configuration because this may consume additional resources and also keep - * the loop busy for longer than expected in some applications. - * - * @var float - * @link https://tools.ietf.org/html/rfc7766#section-6.2.1 - * @link https://tools.ietf.org/html/rfc7828 - */ - private $idlePeriod = 0.001; - - /** - * @var ?\React\EventLoop\TimerInterface - */ - private $idleTimer; - - private $writeBuffer = ''; - private $writePending = false; - - private $readBuffer = ''; - private $readPending = false; - - /** @var string */ - private $readChunk = 0xffff; - - /** - * @param string $nameserver - * @param ?LoopInterface $loop - */ - public function __construct($nameserver, $loop = null) - { - if (\strpos($nameserver, '[') === false && \substr_count($nameserver, ':') >= 2 && \strpos($nameserver, '://') === false) { - // several colons, but not enclosed in square brackets => enclose IPv6 address in square brackets - $nameserver = '[' . $nameserver . ']'; - } - - $parts = \parse_url((\strpos($nameserver, '://') === false ? 'tcp://' : '') . $nameserver); - if (!isset($parts['scheme'], $parts['host']) || $parts['scheme'] !== 'tcp' || @\inet_pton(\trim($parts['host'], '[]')) === false) { - throw new \InvalidArgumentException('Invalid nameserver address given'); - } - - if ($loop !== null && !$loop instanceof LoopInterface) { // manual type check to support legacy PHP < 7.1 - throw new \InvalidArgumentException('Argument #2 ($loop) expected null|React\EventLoop\LoopInterface'); - } - - $this->nameserver = 'tcp://' . $parts['host'] . ':' . (isset($parts['port']) ? $parts['port'] : 53); - $this->loop = $loop ?: Loop::get(); - $this->parser = new Parser(); - $this->dumper = new BinaryDumper(); - } - - public function query(Query $query) - { - $request = Message::createRequestForQuery($query); - - // keep shuffing message ID to avoid using the same message ID for two pending queries at the same time - while (isset($this->pending[$request->id])) { - $request->id = \mt_rand(0, 0xffff); // @codeCoverageIgnore - } - - $queryData = $this->dumper->toBinary($request); - $length = \strlen($queryData); - if ($length > 0xffff) { - return \React\Promise\reject(new \RuntimeException( - 'DNS query for ' . $query->describe() . ' failed: Query too large for TCP transport' - )); - } - - $queryData = \pack('n', $length) . $queryData; - - if ($this->socket === null) { - // create async TCP/IP connection (may take a while) - $socket = @\stream_socket_client($this->nameserver, $errno, $errstr, 0, \STREAM_CLIENT_CONNECT | \STREAM_CLIENT_ASYNC_CONNECT); - if ($socket === false) { - return \React\Promise\reject(new \RuntimeException( - 'DNS query for ' . $query->describe() . ' failed: Unable to connect to DNS server ' . $this->nameserver . ' (' . $errstr . ')', - $errno - )); - } - - // set socket to non-blocking and wait for it to become writable (connection success/rejected) - \stream_set_blocking($socket, false); - if (\function_exists('stream_set_chunk_size')) { - \stream_set_chunk_size($socket, $this->readChunk); // @codeCoverageIgnore - } - $this->socket = $socket; - } - - if ($this->idleTimer !== null) { - $this->loop->cancelTimer($this->idleTimer); - $this->idleTimer = null; - } - - // wait for socket to become writable to actually write out data - $this->writeBuffer .= $queryData; - if (!$this->writePending) { - $this->writePending = true; - $this->loop->addWriteStream($this->socket, array($this, 'handleWritable')); - } - - $names =& $this->names; - $that = $this; - $deferred = new Deferred(function () use ($that, &$names, $request) { - // remove from list of pending names, but remember pending query - $name = $names[$request->id]; - unset($names[$request->id]); - $that->checkIdle(); - - throw new CancellationException('DNS query for ' . $name . ' has been cancelled'); - }); - - $this->pending[$request->id] = $deferred; - $this->names[$request->id] = $query->describe(); - - return $deferred->promise(); - } - - /** - * @internal - */ - public function handleWritable() - { - if ($this->readPending === false) { - $name = @\stream_socket_get_name($this->socket, true); - if ($name === false) { - // Connection failed? Check socket error if available for underlying errno/errstr. - // @codeCoverageIgnoreStart - if (\function_exists('socket_import_stream')) { - $socket = \socket_import_stream($this->socket); - $errno = \socket_get_option($socket, \SOL_SOCKET, \SO_ERROR); - $errstr = \socket_strerror($errno); - } else { - $errno = \defined('SOCKET_ECONNREFUSED') ? \SOCKET_ECONNREFUSED : 111; - $errstr = 'Connection refused'; - } - // @codeCoverageIgnoreEnd - - $this->closeError('Unable to connect to DNS server ' . $this->nameserver . ' (' . $errstr . ')', $errno); - return; - } - - $this->readPending = true; - $this->loop->addReadStream($this->socket, array($this, 'handleRead')); - } - - $errno = 0; - $errstr = ''; - \set_error_handler(function ($_, $error) use (&$errno, &$errstr) { - // Match errstr from PHP's warning message. - // fwrite(): Send of 327712 bytes failed with errno=32 Broken pipe - \preg_match('/errno=(\d+) (.+)/', $error, $m); - $errno = isset($m[1]) ? (int) $m[1] : 0; - $errstr = isset($m[2]) ? $m[2] : $error; - }); - - $written = \fwrite($this->socket, $this->writeBuffer); - - \restore_error_handler(); - - if ($written === false || $written === 0) { - $this->closeError( - 'Unable to send query to DNS server ' . $this->nameserver . ' (' . $errstr . ')', - $errno - ); - return; - } - - if (isset($this->writeBuffer[$written])) { - $this->writeBuffer = \substr($this->writeBuffer, $written); - } else { - $this->loop->removeWriteStream($this->socket); - $this->writePending = false; - $this->writeBuffer = ''; - } - } - - /** - * @internal - */ - public function handleRead() - { - // read one chunk of data from the DNS server - // any error is fatal, this is a stream of TCP/IP data - $chunk = @\fread($this->socket, $this->readChunk); - if ($chunk === false || $chunk === '') { - $this->closeError('Connection to DNS server ' . $this->nameserver . ' lost'); - return; - } - - // reassemble complete message by concatenating all chunks. - $this->readBuffer .= $chunk; - - // response message header contains at least 12 bytes - while (isset($this->readBuffer[11])) { - // read response message length from first 2 bytes and ensure we have length + data in buffer - list(, $length) = \unpack('n', $this->readBuffer); - if (!isset($this->readBuffer[$length + 1])) { - return; - } - - $data = \substr($this->readBuffer, 2, $length); - $this->readBuffer = (string)substr($this->readBuffer, $length + 2); - - try { - $response = $this->parser->parseMessage($data); - } catch (\Exception $e) { - // reject all pending queries if we received an invalid message from remote server - $this->closeError('Invalid message received from DNS server ' . $this->nameserver); - return; - } - - // reject all pending queries if we received an unexpected response ID or truncated response - if (!isset($this->pending[$response->id]) || $response->tc) { - $this->closeError('Invalid response message received from DNS server ' . $this->nameserver); - return; - } - - $deferred = $this->pending[$response->id]; - unset($this->pending[$response->id], $this->names[$response->id]); - - $deferred->resolve($response); - - $this->checkIdle(); - } - } - - /** - * @internal - * @param string $reason - * @param int $code - */ - public function closeError($reason, $code = 0) - { - $this->readBuffer = ''; - if ($this->readPending) { - $this->loop->removeReadStream($this->socket); - $this->readPending = false; - } - - $this->writeBuffer = ''; - if ($this->writePending) { - $this->loop->removeWriteStream($this->socket); - $this->writePending = false; - } - - if ($this->idleTimer !== null) { - $this->loop->cancelTimer($this->idleTimer); - $this->idleTimer = null; - } - - @\fclose($this->socket); - $this->socket = null; - - foreach ($this->names as $id => $name) { - $this->pending[$id]->reject(new \RuntimeException( - 'DNS query for ' . $name . ' failed: ' . $reason, - $code - )); - } - $this->pending = $this->names = array(); - } - - /** - * @internal - */ - public function checkIdle() - { - if ($this->idleTimer === null && !$this->names) { - $that = $this; - $this->idleTimer = $this->loop->addTimer($this->idlePeriod, function () use ($that) { - $that->closeError('Idle timeout'); - }); - } - } -} diff --git a/vendor/react/dns/src/Query/TimeoutException.php b/vendor/react/dns/src/Query/TimeoutException.php deleted file mode 100644 index 109b0a9..0000000 --- a/vendor/react/dns/src/Query/TimeoutException.php +++ /dev/null @@ -1,7 +0,0 @@ -executor = $executor; - $this->loop = $loop ?: Loop::get(); - $this->timeout = $timeout; - } - - public function query(Query $query) - { - $promise = $this->executor->query($query); - - $loop = $this->loop; - $time = $this->timeout; - return new Promise(function ($resolve, $reject) use ($loop, $time, $promise, $query) { - $timer = null; - $promise = $promise->then(function ($v) use (&$timer, $loop, $resolve) { - if ($timer) { - $loop->cancelTimer($timer); - } - $timer = false; - $resolve($v); - }, function ($v) use (&$timer, $loop, $reject) { - if ($timer) { - $loop->cancelTimer($timer); - } - $timer = false; - $reject($v); - }); - - // promise already resolved => no need to start timer - if ($timer === false) { - return; - } - - // start timeout timer which will cancel the pending promise - $timer = $loop->addTimer($time, function () use ($time, &$promise, $reject, $query) { - $reject(new TimeoutException( - 'DNS query for ' . $query->describe() . ' timed out' - )); - - // Cancel pending query to clean up any underlying resources and references. - // Avoid garbage references in call stack by passing pending promise by reference. - assert(\method_exists($promise, 'cancel')); - $promise->cancel(); - $promise = null; - }); - }, function () use (&$promise) { - // Cancelling this promise will cancel the pending query, thus triggering the rejection logic above. - // Avoid garbage references in call stack by passing pending promise by reference. - assert(\method_exists($promise, 'cancel')); - $promise->cancel(); - $promise = null; - }); - } -} diff --git a/vendor/react/dns/src/Query/UdpTransportExecutor.php b/vendor/react/dns/src/Query/UdpTransportExecutor.php deleted file mode 100644 index a8cbfaf..0000000 --- a/vendor/react/dns/src/Query/UdpTransportExecutor.php +++ /dev/null @@ -1,221 +0,0 @@ -query( - * new Query($name, Message::TYPE_AAAA, Message::CLASS_IN) - * )->then(function (Message $message) { - * foreach ($message->answers as $answer) { - * echo 'IPv6: ' . $answer->data . PHP_EOL; - * } - * }, 'printf'); - * ``` - * - * See also the [fourth example](examples). - * - * Note that this executor does not implement a timeout, so you will very likely - * want to use this in combination with a `TimeoutExecutor` like this: - * - * ```php - * $executor = new TimeoutExecutor( - * new UdpTransportExecutor($nameserver), - * 3.0 - * ); - * ``` - * - * Also note that this executor uses an unreliable UDP transport and that it - * does not implement any retry logic, so you will likely want to use this in - * combination with a `RetryExecutor` like this: - * - * ```php - * $executor = new RetryExecutor( - * new TimeoutExecutor( - * new UdpTransportExecutor($nameserver), - * 3.0 - * ) - * ); - * ``` - * - * Note that this executor is entirely async and as such allows you to execute - * any number of queries concurrently. You should probably limit the number of - * concurrent queries in your application or you're very likely going to face - * rate limitations and bans on the resolver end. For many common applications, - * you may want to avoid sending the same query multiple times when the first - * one is still pending, so you will likely want to use this in combination with - * a `CoopExecutor` like this: - * - * ```php - * $executor = new CoopExecutor( - * new RetryExecutor( - * new TimeoutExecutor( - * new UdpTransportExecutor($nameserver), - * 3.0 - * ) - * ) - * ); - * ``` - * - * > Internally, this class uses PHP's UDP sockets and does not take advantage - * of [react/datagram](https://github.com/reactphp/datagram) purely for - * organizational reasons to avoid a cyclic dependency between the two - * packages. Higher-level components should take advantage of the Datagram - * component instead of reimplementing this socket logic from scratch. - */ -final class UdpTransportExecutor implements ExecutorInterface -{ - private $nameserver; - private $loop; - private $parser; - private $dumper; - - /** - * maximum UDP packet size to send and receive - * - * @var int - */ - private $maxPacketSize = 512; - - /** - * @param string $nameserver - * @param ?LoopInterface $loop - */ - public function __construct($nameserver, $loop = null) - { - if (\strpos($nameserver, '[') === false && \substr_count($nameserver, ':') >= 2 && \strpos($nameserver, '://') === false) { - // several colons, but not enclosed in square brackets => enclose IPv6 address in square brackets - $nameserver = '[' . $nameserver . ']'; - } - - $parts = \parse_url((\strpos($nameserver, '://') === false ? 'udp://' : '') . $nameserver); - if (!isset($parts['scheme'], $parts['host']) || $parts['scheme'] !== 'udp' || @\inet_pton(\trim($parts['host'], '[]')) === false) { - throw new \InvalidArgumentException('Invalid nameserver address given'); - } - - if ($loop !== null && !$loop instanceof LoopInterface) { // manual type check to support legacy PHP < 7.1 - throw new \InvalidArgumentException('Argument #2 ($loop) expected null|React\EventLoop\LoopInterface'); - } - - $this->nameserver = 'udp://' . $parts['host'] . ':' . (isset($parts['port']) ? $parts['port'] : 53); - $this->loop = $loop ?: Loop::get(); - $this->parser = new Parser(); - $this->dumper = new BinaryDumper(); - } - - public function query(Query $query) - { - $request = Message::createRequestForQuery($query); - - $queryData = $this->dumper->toBinary($request); - if (isset($queryData[$this->maxPacketSize])) { - return \React\Promise\reject(new \RuntimeException( - 'DNS query for ' . $query->describe() . ' failed: Query too large for UDP transport', - \defined('SOCKET_EMSGSIZE') ? \SOCKET_EMSGSIZE : 90 - )); - } - - // UDP connections are instant, so try connection without a loop or timeout - $errno = 0; - $errstr = ''; - $socket = @\stream_socket_client($this->nameserver, $errno, $errstr, 0); - if ($socket === false) { - return \React\Promise\reject(new \RuntimeException( - 'DNS query for ' . $query->describe() . ' failed: Unable to connect to DNS server ' . $this->nameserver . ' (' . $errstr . ')', - $errno - )); - } - - // set socket to non-blocking and immediately try to send (fill write buffer) - \stream_set_blocking($socket, false); - - \set_error_handler(function ($_, $error) use (&$errno, &$errstr) { - // Write may potentially fail, but most common errors are already caught by connection check above. - // Among others, macOS is known to report here when trying to send to broadcast address. - // This can also be reproduced by writing data exceeding `stream_set_chunk_size()` to a server refusing UDP data. - // fwrite(): send of 8192 bytes failed with errno=111 Connection refused - \preg_match('/errno=(\d+) (.+)/', $error, $m); - $errno = isset($m[1]) ? (int) $m[1] : 0; - $errstr = isset($m[2]) ? $m[2] : $error; - }); - - $written = \fwrite($socket, $queryData); - - \restore_error_handler(); - - if ($written !== \strlen($queryData)) { - return \React\Promise\reject(new \RuntimeException( - 'DNS query for ' . $query->describe() . ' failed: Unable to send query to DNS server ' . $this->nameserver . ' (' . $errstr . ')', - $errno - )); - } - - $loop = $this->loop; - $deferred = new Deferred(function () use ($loop, $socket, $query) { - // cancellation should remove socket from loop and close socket - $loop->removeReadStream($socket); - \fclose($socket); - - throw new CancellationException('DNS query for ' . $query->describe() . ' has been cancelled'); - }); - - $max = $this->maxPacketSize; - $parser = $this->parser; - $nameserver = $this->nameserver; - $loop->addReadStream($socket, function ($socket) use ($loop, $deferred, $query, $parser, $request, $max, $nameserver) { - // try to read a single data packet from the DNS server - // ignoring any errors, this is uses UDP packets and not a stream of data - $data = @\fread($socket, $max); - if ($data === false) { - return; - } - - try { - $response = $parser->parseMessage($data); - } catch (\Exception $e) { - // ignore and await next if we received an invalid message from remote server - // this may as well be a fake response from an attacker (possible DOS) - return; - } - - // ignore and await next if we received an unexpected response ID - // this may as well be a fake response from an attacker (possible cache poisoning) - if ($response->id !== $request->id) { - return; - } - - // we only react to the first valid message, so remove socket from loop and close - $loop->removeReadStream($socket); - \fclose($socket); - - if ($response->tc) { - $deferred->reject(new \RuntimeException( - 'DNS query for ' . $query->describe() . ' failed: The DNS server ' . $nameserver . ' returned a truncated result for a UDP query', - \defined('SOCKET_EMSGSIZE') ? \SOCKET_EMSGSIZE : 90 - )); - return; - } - - $deferred->resolve($response); - }); - - return $deferred->promise(); - } -} diff --git a/vendor/react/dns/src/RecordNotFoundException.php b/vendor/react/dns/src/RecordNotFoundException.php deleted file mode 100644 index 3b70274..0000000 --- a/vendor/react/dns/src/RecordNotFoundException.php +++ /dev/null @@ -1,7 +0,0 @@ -decorateHostsFileExecutor($this->createExecutor($config, $loop ?: Loop::get())); - - return new Resolver($executor); - } - - /** - * Creates a cached DNS resolver instance for the given DNS config and cache - * - * As of v1.7.0 it's recommended to pass a `Config` object instead of a - * single nameserver address. If the given config contains more than one DNS - * nameserver, all DNS nameservers will be used in order. The primary DNS - * server will always be used first before falling back to the secondary or - * tertiary DNS server. - * - * @param Config|string $config DNS Config object (recommended) or single nameserver address - * @param ?LoopInterface $loop - * @param ?CacheInterface $cache - * @return \React\Dns\Resolver\ResolverInterface - * @throws \InvalidArgumentException for invalid DNS server address - * @throws \UnderflowException when given DNS Config object has an empty list of nameservers - */ - public function createCached($config, $loop = null, $cache = null) - { - if ($loop !== null && !$loop instanceof LoopInterface) { // manual type check to support legacy PHP < 7.1 - throw new \InvalidArgumentException('Argument #2 ($loop) expected null|React\EventLoop\LoopInterface'); - } - - if ($cache !== null && !$cache instanceof CacheInterface) { // manual type check to support legacy PHP < 7.1 - throw new \InvalidArgumentException('Argument #3 ($cache) expected null|React\Cache\CacheInterface'); - } - - // default to keeping maximum of 256 responses in cache unless explicitly given - if (!($cache instanceof CacheInterface)) { - $cache = new ArrayCache(256); - } - - $executor = $this->createExecutor($config, $loop ?: Loop::get()); - $executor = new CachingExecutor($executor, $cache); - $executor = $this->decorateHostsFileExecutor($executor); - - return new Resolver($executor); - } - - /** - * Tries to load the hosts file and decorates the given executor on success - * - * @param ExecutorInterface $executor - * @return ExecutorInterface - * @codeCoverageIgnore - */ - private function decorateHostsFileExecutor(ExecutorInterface $executor) - { - try { - $executor = new HostsFileExecutor( - HostsFile::loadFromPathBlocking(), - $executor - ); - } catch (\RuntimeException $e) { - // ignore this file if it can not be loaded - } - - // Windows does not store localhost in hosts file by default but handles this internally - // To compensate for this, we explicitly use hard-coded defaults for localhost - if (DIRECTORY_SEPARATOR === '\\') { - $executor = new HostsFileExecutor( - new HostsFile("127.0.0.1 localhost\n::1 localhost"), - $executor - ); - } - - return $executor; - } - - /** - * @param Config|string $nameserver - * @param LoopInterface $loop - * @return CoopExecutor - * @throws \InvalidArgumentException for invalid DNS server address - * @throws \UnderflowException when given DNS Config object has an empty list of nameservers - */ - private function createExecutor($nameserver, LoopInterface $loop) - { - if ($nameserver instanceof Config) { - if (!$nameserver->nameservers) { - throw new \UnderflowException('Empty config with no DNS servers'); - } - - // Hard-coded to check up to 3 DNS servers to match default limits in place in most systems (see MAXNS config). - // Note to future self: Recursion isn't too hard, but how deep do we really want to go? - $primary = reset($nameserver->nameservers); - $secondary = next($nameserver->nameservers); - $tertiary = next($nameserver->nameservers); - - if ($tertiary !== false) { - // 3 DNS servers given => nest first with fallback for second and third - return new CoopExecutor( - new RetryExecutor( - new FallbackExecutor( - $this->createSingleExecutor($primary, $loop), - new FallbackExecutor( - $this->createSingleExecutor($secondary, $loop), - $this->createSingleExecutor($tertiary, $loop) - ) - ) - ) - ); - } elseif ($secondary !== false) { - // 2 DNS servers given => fallback from first to second - return new CoopExecutor( - new RetryExecutor( - new FallbackExecutor( - $this->createSingleExecutor($primary, $loop), - $this->createSingleExecutor($secondary, $loop) - ) - ) - ); - } else { - // 1 DNS server given => use single executor - $nameserver = $primary; - } - } - - return new CoopExecutor(new RetryExecutor($this->createSingleExecutor($nameserver, $loop))); - } - - /** - * @param string $nameserver - * @param LoopInterface $loop - * @return ExecutorInterface - * @throws \InvalidArgumentException for invalid DNS server address - */ - private function createSingleExecutor($nameserver, LoopInterface $loop) - { - $parts = \parse_url($nameserver); - - if (isset($parts['scheme']) && $parts['scheme'] === 'tcp') { - $executor = $this->createTcpExecutor($nameserver, $loop); - } elseif (isset($parts['scheme']) && $parts['scheme'] === 'udp') { - $executor = $this->createUdpExecutor($nameserver, $loop); - } else { - $executor = new SelectiveTransportExecutor( - $this->createUdpExecutor($nameserver, $loop), - $this->createTcpExecutor($nameserver, $loop) - ); - } - - return $executor; - } - - /** - * @param string $nameserver - * @param LoopInterface $loop - * @return TimeoutExecutor - * @throws \InvalidArgumentException for invalid DNS server address - */ - private function createTcpExecutor($nameserver, LoopInterface $loop) - { - return new TimeoutExecutor( - new TcpTransportExecutor($nameserver, $loop), - 5.0, - $loop - ); - } - - /** - * @param string $nameserver - * @param LoopInterface $loop - * @return TimeoutExecutor - * @throws \InvalidArgumentException for invalid DNS server address - */ - private function createUdpExecutor($nameserver, LoopInterface $loop) - { - return new TimeoutExecutor( - new UdpTransportExecutor( - $nameserver, - $loop - ), - 5.0, - $loop - ); - } -} diff --git a/vendor/react/dns/src/Resolver/Resolver.php b/vendor/react/dns/src/Resolver/Resolver.php deleted file mode 100644 index 92926f3..0000000 --- a/vendor/react/dns/src/Resolver/Resolver.php +++ /dev/null @@ -1,147 +0,0 @@ -executor = $executor; - } - - public function resolve($domain) - { - return $this->resolveAll($domain, Message::TYPE_A)->then(function (array $ips) { - return $ips[array_rand($ips)]; - }); - } - - public function resolveAll($domain, $type) - { - $query = new Query($domain, $type, Message::CLASS_IN); - $that = $this; - - return $this->executor->query( - $query - )->then(function (Message $response) use ($query, $that) { - return $that->extractValues($query, $response); - }); - } - - /** - * [Internal] extract all resource record values from response for this query - * - * @param Query $query - * @param Message $response - * @return array - * @throws RecordNotFoundException when response indicates an error or contains no data - * @internal - */ - public function extractValues(Query $query, Message $response) - { - // reject if response code indicates this is an error response message - $code = $response->rcode; - if ($code !== Message::RCODE_OK) { - switch ($code) { - case Message::RCODE_FORMAT_ERROR: - $message = 'Format Error'; - break; - case Message::RCODE_SERVER_FAILURE: - $message = 'Server Failure'; - break; - case Message::RCODE_NAME_ERROR: - $message = 'Non-Existent Domain / NXDOMAIN'; - break; - case Message::RCODE_NOT_IMPLEMENTED: - $message = 'Not Implemented'; - break; - case Message::RCODE_REFUSED: - $message = 'Refused'; - break; - default: - $message = 'Unknown error response code ' . $code; - } - throw new RecordNotFoundException( - 'DNS query for ' . $query->describe() . ' returned an error response (' . $message . ')', - $code - ); - } - - $answers = $response->answers; - $addresses = $this->valuesByNameAndType($answers, $query->name, $query->type); - - // reject if we did not receive a valid answer (domain is valid, but no record for this type could be found) - if (0 === count($addresses)) { - throw new RecordNotFoundException( - 'DNS query for ' . $query->describe() . ' did not return a valid answer (NOERROR / NODATA)' - ); - } - - return array_values($addresses); - } - - /** - * @param \React\Dns\Model\Record[] $answers - * @param string $name - * @param int $type - * @return array - */ - private function valuesByNameAndType(array $answers, $name, $type) - { - // return all record values for this name and type (if any) - $named = $this->filterByName($answers, $name); - $records = $this->filterByType($named, $type); - if ($records) { - return $this->mapRecordData($records); - } - - // no matching records found? check if there are any matching CNAMEs instead - $cnameRecords = $this->filterByType($named, Message::TYPE_CNAME); - if ($cnameRecords) { - $cnames = $this->mapRecordData($cnameRecords); - foreach ($cnames as $cname) { - $records = array_merge( - $records, - $this->valuesByNameAndType($answers, $cname, $type) - ); - } - } - - return $records; - } - - private function filterByName(array $answers, $name) - { - return $this->filterByField($answers, 'name', $name); - } - - private function filterByType(array $answers, $type) - { - return $this->filterByField($answers, 'type', $type); - } - - private function filterByField(array $answers, $field, $value) - { - $value = strtolower($value); - return array_filter($answers, function ($answer) use ($field, $value) { - return $value === strtolower($answer->$field); - }); - } - - private function mapRecordData(array $records) - { - return array_map(function ($record) { - return $record->data; - }, $records); - } -} diff --git a/vendor/react/dns/src/Resolver/ResolverInterface.php b/vendor/react/dns/src/Resolver/ResolverInterface.php deleted file mode 100644 index 555a1cb..0000000 --- a/vendor/react/dns/src/Resolver/ResolverInterface.php +++ /dev/null @@ -1,94 +0,0 @@ -resolve('reactphp.org')->then(function ($ip) { - * echo 'IP for reactphp.org is ' . $ip . PHP_EOL; - * }); - * ``` - * - * This is one of the main methods in this package. It sends a DNS query - * for the given $domain name to your DNS server and returns a single IP - * address on success. - * - * If the DNS server sends a DNS response message that contains more than - * one IP address for this query, it will randomly pick one of the IP - * addresses from the response. If you want the full list of IP addresses - * or want to send a different type of query, you should use the - * [`resolveAll()`](#resolveall) method instead. - * - * If the DNS server sends a DNS response message that indicates an error - * code, this method will reject with a `RecordNotFoundException`. Its - * message and code can be used to check for the response code. - * - * If the DNS communication fails and the server does not respond with a - * valid response message, this message will reject with an `Exception`. - * - * Pending DNS queries can be cancelled by cancelling its pending promise like so: - * - * ```php - * $promise = $resolver->resolve('reactphp.org'); - * - * $promise->cancel(); - * ``` - * - * @param string $domain - * @return \React\Promise\PromiseInterface - * resolves with a single IP address on success or rejects with an Exception on error. - */ - public function resolve($domain); - - /** - * Resolves all record values for the given $domain name and query $type. - * - * ```php - * $resolver->resolveAll('reactphp.org', Message::TYPE_A)->then(function ($ips) { - * echo 'IPv4 addresses for reactphp.org ' . implode(', ', $ips) . PHP_EOL; - * }); - * - * $resolver->resolveAll('reactphp.org', Message::TYPE_AAAA)->then(function ($ips) { - * echo 'IPv6 addresses for reactphp.org ' . implode(', ', $ips) . PHP_EOL; - * }); - * ``` - * - * This is one of the main methods in this package. It sends a DNS query - * for the given $domain name to your DNS server and returns a list with all - * record values on success. - * - * If the DNS server sends a DNS response message that contains one or more - * records for this query, it will return a list with all record values - * from the response. You can use the `Message::TYPE_*` constants to control - * which type of query will be sent. Note that this method always returns a - * list of record values, but each record value type depends on the query - * type. For example, it returns the IPv4 addresses for type `A` queries, - * the IPv6 addresses for type `AAAA` queries, the hostname for type `NS`, - * `CNAME` and `PTR` queries and structured data for other queries. See also - * the `Record` documentation for more details. - * - * If the DNS server sends a DNS response message that indicates an error - * code, this method will reject with a `RecordNotFoundException`. Its - * message and code can be used to check for the response code. - * - * If the DNS communication fails and the server does not respond with a - * valid response message, this message will reject with an `Exception`. - * - * Pending DNS queries can be cancelled by cancelling its pending promise like so: - * - * ```php - * $promise = $resolver->resolveAll('reactphp.org', Message::TYPE_AAAA); - * - * $promise->cancel(); - * ``` - * - * @param string $domain - * @return \React\Promise\PromiseInterface - * Resolves with all record values on success or rejects with an Exception on error. - */ - public function resolveAll($domain, $type); -} diff --git a/vendor/react/event-loop/CHANGELOG.md b/vendor/react/event-loop/CHANGELOG.md deleted file mode 100644 index e634b12..0000000 --- a/vendor/react/event-loop/CHANGELOG.md +++ /dev/null @@ -1,468 +0,0 @@ -# Changelog - -## 1.5.0 (2023-11-13) - -* Feature: Improve performance by using `spl_object_id()` on PHP 7.2+. - (#267 by @samsonasik) - -* Feature: Full PHP 8.3 compatibility. - (#269 by @clue) - -* Update tests for `ext-uv` on PHP 8+ and legacy PHP. - (#270 by @clue and #268 by @SimonFrings) - -## 1.4.0 (2023-05-05) - -* Feature: Improve performance of `Loop` by avoiding unneeded method calls. - (#266 by @clue) - -* Feature: Support checking `EINTR` constant from `ext-pcntl` without `ext-sockets`. - (#265 by @clue) - -* Minor documentation improvements. - (#254 by @nhedger) - -* Improve test suite, run tests on PHP 8.2 and report failed assertions. - (#258 by @WyriHaximus, #264 by @clue and #251, #261 and #262 by @SimonFrings) - -## 1.3.0 (2022-03-17) - -* Feature: Improve default `StreamSelectLoop` to report any warnings for invalid streams. - (#245 by @clue) - -* Feature: Improve performance of `StreamSelectLoop` when no timers are scheduled. - (#246 by @clue) - -* Fix: Fix periodic timer with zero interval for `ExtEvLoop` and legacy `ExtLibevLoop`. - (#243 by @lucasnetau) - -* Minor documentation improvements, update PHP version references. - (#240, #248 and #250 by @SimonFrings, #241 by @dbu and #249 by @clue) - -* Improve test suite and test against PHP 8.1. - (#238 by @WyriHaximus and #242 by @clue) - -## 1.2.0 (2021-07-11) - -A major new feature release, see [**release announcement**](https://clue.engineering/2021/announcing-reactphp-default-loop). - -* Feature: Introduce new concept of default loop with the new `Loop` class. - (#226 by @WyriHaximus, #229, #231 and #232 by @clue) - - The `Loop` class exists as a convenient global accessor for the event loop. - It provides all methods that exist on the `LoopInterface` as static methods and - will automatically execute the loop at the end of the program: - - ```php - $timer = Loop::addPeriodicTimer(0.1, function () { - echo 'Tick' . PHP_EOL; - }); - - Loop::addTimer(1.0, function () use ($timer) { - Loop::cancelTimer($timer); - echo 'Done' . PHP_EOL; - }); - ``` - - The explicit loop instructions are still valid and may still be useful in some applications, - especially for a transition period towards the more concise style. - The `Loop::get()` method can be used to get the currently active event loop instance. - - ```php - // deprecated - $loop = React\EventLoop\Factory::create(); - - // new - $loop = React\EventLoop\Loop::get(); - ``` - -* Minor documentation improvements and mark legacy extensions as deprecated. - (#234 by @SimonFrings, #214 by @WyriHaximus and #233 and #235 by @nhedger) - -* Improve test suite, use GitHub actions for continuous integration (CI), - update PHPUnit config and run tests on PHP 8. - (#212 and #215 by @SimonFrings and #230 by @clue) - -## 1.1.1 (2020-01-01) - -* Fix: Fix reporting connection refused errors with `ExtUvLoop` on Linux and `StreamSelectLoop` on Windows. - (#207 and #208 by @clue) - -* Fix: Fix unsupported EventConfig and `SEGFAULT` on shutdown with `ExtEventLoop` on Windows. - (#205 by @clue) - -* Fix: Prevent interval overflow for timers very far in the future with `ExtUvLoop`. - (#196 by @PabloKowalczyk) - -* Fix: Check PCNTL functions for signal support instead of PCNTL extension with `StreamSelectLoop`. - (#195 by @clue) - -* Add `.gitattributes` to exclude dev files from exports. - (#201 by @reedy) - -* Improve test suite to fix testing `ExtUvLoop` on Travis, - fix Travis CI builds, do not install `libuv` on legacy PHP setups, - fix failing test cases due to inaccurate timers, - run tests on Windows via Travis CI and - run tests on PHP 7.4 and simplify test matrix and test setup. - (#197 by @WyriHaximus and #202, #203, #204 and #209 by @clue) - -## 1.1.0 (2019-02-07) - -* New UV based event loop (ext-uv). - (#112 by @WyriHaximus) - -* Use high resolution timer on PHP 7.3+. - (#182 by @clue) - -* Improve PCNTL signals by using async signal dispatching if available. - (#179 by @CharlotteDunois) - -* Improve test suite and test suite set up. - (#174 by @WyriHaximus, #181 by @clue) - -* Fix PCNTL signals edge case. - (#183 by @clue) - -## 1.0.0 (2018-07-11) - -* First stable LTS release, now following [SemVer](https://semver.org/). - We'd like to emphasize that this component is production ready and battle-tested. - We plan to support all long-term support (LTS) releases for at least 24 months, - so you have a rock-solid foundation to build on top of. - -> Contains no other changes, so it's actually fully compatible with the v0.5.3 release. - -## 0.5.3 (2018-07-09) - -* Improve performance by importing global functions. - (#167 by @Ocramius) - -* Improve test suite by simplifying test bootstrap by using dev autoloader. - (#169 by @lcobucci) - -* Minor internal changes to improved backward compatibility with PHP 5.3. - (#166 by @Donatello-za) - -## 0.5.2 (2018-04-24) - -* Feature: Improve memory consumption and runtime performance for `StreamSelectLoop` timers. - (#164 by @clue) - -* Improve test suite by removing I/O dependency at `StreamSelectLoopTest` to fix Mac OS X tests. - (#161 by @nawarian) - -## 0.5.1 (2018-04-09) - -* Feature: New `ExtEvLoop` (PECL ext-ev) (#148 by @kaduev13) - -## 0.5.0 (2018-04-05) - -A major feature release with a significant documentation overhaul and long overdue API cleanup! - -This update involves a number of BC breaks due to dropped support for deprecated -functionality. We've tried hard to avoid BC breaks where possible and minimize -impact otherwise. We expect that most consumers of this package will actually -not be affected by any BC breaks, see below for more details. - -We realize that the changes listed below may seem overwhelming, but we've tried -to be very clear about any possible BC breaks. Don't worry: In fact, all ReactPHP -components are already compatible and support both this new release as well as -providing backwards compatibility with the last release. - -* Feature / BC break: Add support for signal handling via new - `LoopInterface::addSignal()` and `LoopInterface::removeSignal()` methods. - (#104 by @WyriHaximus and #111 and #150 by @clue) - - ```php - $loop->addSignal(SIGINT, function () { - echo 'CTRL-C'; - }); - ``` - -* Feature: Significant documentation updates for `LoopInterface` and `Factory`. - (#100, #119, #126, #127, #159 and #160 by @clue, #113 by @WyriHaximus and #81 and #91 by @jsor) - -* Feature: Add examples to ease getting started - (#99, #100 and #125 by @clue, #59 by @WyriHaximus and #143 by @jsor) - -* Feature: Documentation for advanced timer concepts, such as monotonic time source vs wall-clock time - and high precision timers with millisecond accuracy or below. - (#130 and #157 by @clue) - -* Feature: Documentation for advanced stream concepts, such as edge-triggered event listeners - and stream buffers and allow throwing Exception if stream resource is not supported. - (#129 and #158 by @clue) - -* Feature: Throw `BadMethodCallException` on manual loop creation when required extension isn't installed. - (#153 by @WyriHaximus) - -* Feature / BC break: First class support for legacy PHP 5.3 through PHP 7.2 and HHVM - and remove all `callable` type hints for consistency reasons. - (#141 and #151 by @clue) - -* BC break: Documentation for timer API and clean up unneeded timer API. - (#102 by @clue) - - Remove `TimerInterface::cancel()`, use `LoopInterface::cancelTimer()` instead: - - ```php - // old (method invoked on timer instance) - $timer->cancel(); - - // already supported before: invoke method on loop instance - $loop->cancelTimer($timer); - ``` - - Remove unneeded `TimerInterface::setData()` and `TimerInterface::getData()`, - use closure binding to add arbitrary data to timer instead: - - ```php - // old (limited setData() and getData() only allows single variable) - $name = 'Tester'; - $timer = $loop->addTimer(1.0, function ($timer) { - echo 'Hello ' . $timer->getData() . PHP_EOL; - }); - $timer->setData($name); - - // already supported before: closure binding allows any number of variables - $name = 'Tester'; - $loop->addTimer(1.0, function () use ($name) { - echo 'Hello ' . $name . PHP_EOL; - }); - ``` - - Remove unneeded `TimerInterface::getLoop()`, use closure binding instead: - - ```php - // old (getLoop() called on timer instance) - $loop->addTimer(0.1, function ($timer) { - $timer->getLoop()->stop(); - }); - - // already supported before: use closure binding as usual - $loop->addTimer(0.1, function () use ($loop) { - $loop->stop(); - }); - ``` - -* BC break: Remove unneeded `LoopInterface::isTimerActive()` and - `TimerInterface::isActive()` to reduce API surface. - (#133 by @clue) - - ```php - // old (method on timer instance or on loop instance) - $timer->isActive(); - $loop->isTimerActive($timer); - ``` - -* BC break: Move `TimerInterface` one level up to `React\EventLoop\TimerInterface`. - (#138 by @WyriHaximus) - - ```php - // old (notice obsolete "Timer" namespace) - assert($timer instanceof React\EventLoop\Timer\TimerInterface); - - // new - assert($timer instanceof React\EventLoop\TimerInterface); - ``` - -* BC break: Remove unneeded `LoopInterface::nextTick()` (and internal `NextTickQueue`), - use `LoopInterface::futureTick()` instead. - (#30 by @clue) - - ```php - // old (removed) - $loop->nextTick(function () { - echo 'tick'; - }); - - // already supported before - $loop->futureTick(function () { - echo 'tick'; - }); - ``` - -* BC break: Remove unneeded `$loop` argument for `LoopInterface::futureTick()` - (and fix internal cyclic dependency). - (#103 by @clue) - - ```php - // old ($loop gets passed by default) - $loop->futureTick(function ($loop) { - $loop->stop(); - }); - - // already supported before: use closure binding as usual - $loop->futureTick(function () use ($loop) { - $loop->stop(); - }); - ``` - -* BC break: Remove unneeded `LoopInterface::tick()`. - (#72 by @jsor) - - ```php - // old (removed) - $loop->tick(); - - // suggested work around for testing purposes only - $loop->futureTick(function () use ($loop) { - $loop->stop(); - }); - ``` - -* BC break: Documentation for advanced stream API and clean up unneeded stream API. - (#110 by @clue) - - Remove unneeded `$loop` argument for `LoopInterface::addReadStream()` - and `LoopInterface::addWriteStream()`, use closure binding instead: - - ```php - // old ($loop gets passed by default) - $loop->addReadStream($stream, function ($stream, $loop) { - $loop->removeReadStream($stream); - }); - - // already supported before: use closure binding as usual - $loop->addReadStream($stream, function ($stream) use ($loop) { - $loop->removeReadStream($stream); - }); - ``` - -* BC break: Remove unneeded `LoopInterface::removeStream()` method, - use `LoopInterface::removeReadStream()` and `LoopInterface::removeWriteStream()` instead. - (#118 by @clue) - - ```php - // old - $loop->removeStream($stream); - - // already supported before - $loop->removeReadStream($stream); - $loop->removeWriteStream($stream); - ``` - -* BC break: Rename `LibEventLoop` to `ExtLibeventLoop` and `LibEvLoop` to `ExtLibevLoop` - for consistent naming for event loop implementations. - (#128 by @clue) - -* BC break: Remove optional `EventBaseConfig` argument from `ExtEventLoop` - and make its `FEATURE_FDS` enabled by default. - (#156 by @WyriHaximus) - -* BC break: Mark all classes as final to discourage inheritance. - (#131 by @clue) - -* Fix: Fix `ExtEventLoop` to keep track of stream resources (refcount) - (#123 by @clue) - -* Fix: Ensure large timer interval does not overflow on 32bit systems - (#132 by @clue) - -* Fix: Fix separately removing readable and writable side of stream when closing - (#139 by @clue) - -* Fix: Properly clean up event watchers for `ext-event` and `ext-libev` - (#149 by @clue) - -* Fix: Minor code cleanup and remove unneeded references - (#145 by @seregazhuk) - -* Fix: Discourage outdated `ext-libevent` on PHP 7 - (#62 by @cboden) - -* Improve test suite by adding forward compatibility with PHPUnit 6 and PHPUnit 5, - lock Travis distro so new defaults will not break the build, - improve test suite to be less fragile and increase test timeouts, - test against PHP 7.2 and reduce fwrite() call length to one chunk. - (#106 and #144 by @clue, #120 and #124 by @carusogabriel, #147 by nawarian and #92 by @kelunik) - -* A number of changes were originally planned for this release but have been backported - to the last `v0.4.3` already: #74, #76, #79, #81 (refs #65, #66, #67), #88 and #93 - -## 0.4.3 (2017-04-27) - -* Bug fix: Bugfix in the usage sample code #57 (@dandelionred) -* Improvement: Remove branch-alias definition #53 (@WyriHaximus) -* Improvement: StreamSelectLoop: Use fresh time so Timers added during stream events are accurate #51 (@andrewminerd) -* Improvement: Avoid deprecation warnings in test suite due to deprecation of getMock() in PHPUnit #68 (@martinschroeder) -* Improvement: Add PHPUnit 4.8 to require-dev #69 (@shaunbramley) -* Improvement: Increase test timeouts for HHVM and unify timeout handling #70 (@clue) -* Improvement: Travis improvements (backported from #74) #75 (@clue) -* Improvement: Test suite now uses socket pairs instead of memory streams #66 (@martinschroeder) -* Improvement: StreamSelectLoop: Test suite uses signal constant names in data provider #67 (@martinschroeder) -* Improvement: ExtEventLoop: No longer suppress all errors #65 (@mamciek) -* Improvement: Readme cleanup #89 (@jsor) -* Improvement: Restructure and improve README #90 (@jsor) -* Bug fix: StreamSelectLoop: Fix erroneous zero-time sleep (backport to 0.4) #94 (@jsor) - -## 0.4.2 (2016-03-07) - -* Bug fix: No longer error when signals sent to StreamSelectLoop -* Support HHVM and PHP7 (@ondrejmirtes, @cebe) -* Feature: Added support for EventConfig for ExtEventLoop (@steverhoades) -* Bug fix: Fixed an issue loading loop extension libs via autoloader (@czarpino) - -## 0.4.1 (2014-04-13) - -* Bug fix: null timeout in StreamSelectLoop causing 100% CPU usage (@clue) -* Bug fix: v0.3.4 changes merged for v0.4.1 - -## 0.4.0 (2014-02-02) - -* Feature: Added `EventLoopInterface::nextTick()`, implemented in all event loops (@jmalloc) -* Feature: Added `EventLoopInterface::futureTick()`, implemented in all event loops (@jmalloc) -* Feature: Added `ExtEventLoop` implementation using pecl/event (@jmalloc) -* BC break: Bump minimum PHP version to PHP 5.4, remove 5.3 specific hacks -* BC break: New method: `EventLoopInterface::nextTick()` -* BC break: New method: `EventLoopInterface::futureTick()` -* Dependency: Autoloading and filesystem structure now PSR-4 instead of PSR-0 - -## 0.3.5 (2016-12-28) - -This is a compatibility release that eases upgrading to the v0.4 release branch. -You should consider upgrading to the v0.4 release branch. - -* Feature: Cap min timer interval at 1µs, thus improving compatibility with v0.4 - (#47 by @clue) - -## 0.3.4 (2014-03-30) - -* Bug fix: Changed StreamSelectLoop to use non-blocking behavior on tick() (@astephens25) - -## 0.3.3 (2013-07-08) - -* Bug fix: No error on removing non-existent streams (@clue) -* Bug fix: Do not silently remove feof listeners in `LibEvLoop` - -## 0.3.0 (2013-04-14) - -* BC break: New timers API (@nrk) -* BC break: Remove check on return value from stream callbacks (@nrk) - -## 0.2.7 (2013-01-05) - -* Bug fix: Fix libevent timers with PHP 5.3 -* Bug fix: Fix libevent timer cancellation (@nrk) - -## 0.2.6 (2012-12-26) - -* Bug fix: Plug memory issue in libevent timers (@cameronjacobson) -* Bug fix: Correctly pause LibEvLoop on stop() - -## 0.2.3 (2012-11-14) - -* Feature: LibEvLoop, integration of `php-libev` - -## 0.2.0 (2012-09-10) - -* Version bump - -## 0.1.1 (2012-07-12) - -* Version bump - -## 0.1.0 (2012-07-11) - -* First tagged release diff --git a/vendor/react/event-loop/LICENSE b/vendor/react/event-loop/LICENSE deleted file mode 100644 index d6f8901..0000000 --- a/vendor/react/event-loop/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2012 Christian Lück, Cees-Jan Kiewiet, Jan Sorgalla, Chris Boden, Igor Wiedler - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is furnished -to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/vendor/react/event-loop/README.md b/vendor/react/event-loop/README.md deleted file mode 100644 index 88a3e18..0000000 --- a/vendor/react/event-loop/README.md +++ /dev/null @@ -1,930 +0,0 @@ -# EventLoop - -[![CI status](https://github.com/reactphp/event-loop/actions/workflows/ci.yml/badge.svg)](https://github.com/reactphp/event-loop/actions) -[![installs on Packagist](https://img.shields.io/packagist/dt/react/event-loop?color=blue&label=installs%20on%20Packagist)](https://packagist.org/packages/react/event-loop) - -[ReactPHP](https://reactphp.org/)'s core reactor event loop that libraries can use for evented I/O. - -In order for async based libraries to be interoperable, they need to use the -same event loop. This component provides a common `LoopInterface` that any -library can target. This allows them to be used in the same loop, with one -single [`run()`](#run) call that is controlled by the user. - -**Table of contents** - -* [Quickstart example](#quickstart-example) -* [Usage](#usage) - * [Loop](#loop) - * [Loop methods](#loop-methods) - * [Loop autorun](#loop-autorun) - * [get()](#get) - * [~~Factory~~](#factory) - * [~~create()~~](#create) - * [Loop implementations](#loop-implementations) - * [StreamSelectLoop](#streamselectloop) - * [ExtEventLoop](#exteventloop) - * [ExtEvLoop](#extevloop) - * [ExtUvLoop](#extuvloop) - * [~~ExtLibeventLoop~~](#extlibeventloop) - * [~~ExtLibevLoop~~](#extlibevloop) - * [LoopInterface](#loopinterface) - * [run()](#run) - * [stop()](#stop) - * [addTimer()](#addtimer) - * [addPeriodicTimer()](#addperiodictimer) - * [cancelTimer()](#canceltimer) - * [futureTick()](#futuretick) - * [addSignal()](#addsignal) - * [removeSignal()](#removesignal) - * [addReadStream()](#addreadstream) - * [addWriteStream()](#addwritestream) - * [removeReadStream()](#removereadstream) - * [removeWriteStream()](#removewritestream) -* [Install](#install) -* [Tests](#tests) -* [License](#license) -* [More](#more) - -## Quickstart example - -Here is an async HTTP server built with just the event loop. - -```php -addPeriodicTimer(0.1, function () { - echo 'Tick' . PHP_EOL; -}); - -$loop->addTimer(1.0, function () use ($loop, $timer) { - $loop->cancelTimer($timer); - echo 'Done' . PHP_EOL; -}); - -$loop->run(); -``` - -While the former is more concise, the latter is more explicit. -In both cases, the program would perform the exact same steps. - -1. The event loop instance is created at the beginning of the program. This is - implicitly done the first time you call the [`Loop` class](#loop) or - explicitly when using the deprecated [`Factory::create()` method](#create) - (or manually instantiating any of the [loop implementations](#loop-implementations)). -2. The event loop is used directly or passed as an instance to library and - application code. In this example, a periodic timer is registered with the - event loop which simply outputs `Tick` every fraction of a second until another - timer stops the periodic timer after a second. -3. The event loop is run at the end of the program. This is automatically done - when using the [`Loop` class](#loop) or explicitly with a single [`run()`](#run) - call at the end of the program. - -As of `v1.2.0`, we highly recommend using the [`Loop` class](#loop). -The explicit loop instructions are still valid and may still be useful in some -applications, especially for a transition period towards the more concise style. - -### Loop - -The `Loop` class exists as a convenient global accessor for the event loop. - -#### Loop methods - -The `Loop` class provides all methods that exist on the [`LoopInterface`](#loopinterface) -as static methods: - -* [run()](#run) -* [stop()](#stop) -* [addTimer()](#addtimer) -* [addPeriodicTimer()](#addperiodictimer) -* [cancelTimer()](#canceltimer) -* [futureTick()](#futuretick) -* [addSignal()](#addsignal) -* [removeSignal()](#removesignal) -* [addReadStream()](#addreadstream) -* [addWriteStream()](#addwritestream) -* [removeReadStream()](#removereadstream) -* [removeWriteStream()](#removewritestream) - -If you're working with the event loop in your application code, it's often -easiest to directly interface with the static methods defined on the `Loop` class -like this: - -```php -use React\EventLoop\Loop; - -$timer = Loop::addPeriodicTimer(0.1, function () { - echo 'Tick' . PHP_EOL; -}); - -Loop::addTimer(1.0, function () use ($timer) { - Loop::cancelTimer($timer); - echo 'Done' . PHP_EOL; -}); -``` - -On the other hand, if you're familiar with object-oriented programming (OOP) and -dependency injection (DI), you may want to inject an event loop instance and -invoke instance methods on the `LoopInterface` like this: - -```php -use React\EventLoop\Loop; -use React\EventLoop\LoopInterface; - -class Greeter -{ - private $loop; - - public function __construct(LoopInterface $loop) - { - $this->loop = $loop; - } - - public function greet(string $name) - { - $this->loop->addTimer(1.0, function () use ($name) { - echo 'Hello ' . $name . '!' . PHP_EOL; - }); - } -} - -$greeter = new Greeter(Loop::get()); -$greeter->greet('Alice'); -$greeter->greet('Bob'); -``` - -Each static method call will be forwarded as-is to the underlying event loop -instance by using the [`Loop::get()`](#get) call internally. -See [`LoopInterface`](#loopinterface) for more details about available methods. - -#### Loop autorun - -When using the `Loop` class, it will automatically execute the loop at the end of -the program. This means the following example will schedule a timer and will -automatically execute the program until the timer event fires: - -```php -use React\EventLoop\Loop; - -Loop::addTimer(1.0, function () { - echo 'Hello' . PHP_EOL; -}); -``` - -As of `v1.2.0`, we highly recommend using the `Loop` class this way and omitting any -explicit [`run()`](#run) calls. For BC reasons, the explicit [`run()`](#run) -method is still valid and may still be useful in some applications, especially -for a transition period towards the more concise style. - -If you don't want the `Loop` to run automatically, you can either explicitly -[`run()`](#run) or [`stop()`](#stop) it. This can be useful if you're using -a global exception handler like this: - -```php -use React\EventLoop\Loop; - -Loop::addTimer(10.0, function () { - echo 'Never happens'; -}); - -set_exception_handler(function (Throwable $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; - Loop::stop(); -}); - -throw new RuntimeException('Demo'); -``` - -#### get() - -The `get(): LoopInterface` method can be used to -get the currently active event loop instance. - -This method will always return the same event loop instance throughout the -lifetime of your application. - -```php -use React\EventLoop\Loop; -use React\EventLoop\LoopInterface; - -$loop = Loop::get(); - -assert($loop instanceof LoopInterface); -assert($loop === Loop::get()); -``` - -This is particularly useful if you're using object-oriented programming (OOP) -and dependency injection (DI). In this case, you may want to inject an event -loop instance and invoke instance methods on the `LoopInterface` like this: - -```php -use React\EventLoop\Loop; -use React\EventLoop\LoopInterface; - -class Greeter -{ - private $loop; - - public function __construct(LoopInterface $loop) - { - $this->loop = $loop; - } - - public function greet(string $name) - { - $this->loop->addTimer(1.0, function () use ($name) { - echo 'Hello ' . $name . '!' . PHP_EOL; - }); - } -} - -$greeter = new Greeter(Loop::get()); -$greeter->greet('Alice'); -$greeter->greet('Bob'); -``` - -See [`LoopInterface`](#loopinterface) for more details about available methods. - -### ~~Factory~~ - -> Deprecated since v1.2.0, see [`Loop` class](#loop) instead. - -The deprecated `Factory` class exists as a convenient way to pick the best available -[event loop implementation](#loop-implementations). - -#### ~~create()~~ - -> Deprecated since v1.2.0, see [`Loop::get()`](#get) instead. - -The deprecated `create(): LoopInterface` method can be used to -create a new event loop instance: - -```php -// deprecated -$loop = React\EventLoop\Factory::create(); - -// new -$loop = React\EventLoop\Loop::get(); -``` - -This method always returns an instance implementing [`LoopInterface`](#loopinterface), -the actual [event loop implementation](#loop-implementations) is an implementation detail. - -This method should usually only be called once at the beginning of the program. - -### Loop implementations - -In addition to the [`LoopInterface`](#loopinterface), there are a number of -event loop implementations provided. - -All of the event loops support these features: - -* File descriptor polling -* One-off timers -* Periodic timers -* Deferred execution on future loop tick - -For most consumers of this package, the underlying event loop implementation is -an implementation detail. -You should use the [`Loop` class](#loop) to automatically create a new instance. - -Advanced! If you explicitly need a certain event loop implementation, you can -manually instantiate one of the following classes. -Note that you may have to install the required PHP extensions for the respective -event loop implementation first or they will throw a `BadMethodCallException` on creation. - -#### StreamSelectLoop - -A `stream_select()` based event loop. - -This uses the [`stream_select()`](https://www.php.net/manual/en/function.stream-select.php) -function and is the only implementation that works out of the box with PHP. - -This event loop works out of the box on PHP 5.3 through PHP 8+ and HHVM. -This means that no installation is required and this library works on all -platforms and supported PHP versions. -Accordingly, the [`Loop` class](#loop) and the deprecated [`Factory`](#factory) -will use this event loop by default if you do not install any of the event loop -extensions listed below. - -Under the hood, it does a simple `select` system call. -This system call is limited to the maximum file descriptor number of -`FD_SETSIZE` (platform dependent, commonly 1024) and scales with `O(m)` -(`m` being the maximum file descriptor number passed). -This means that you may run into issues when handling thousands of streams -concurrently and you may want to look into using one of the alternative -event loop implementations listed below in this case. -If your use case is among the many common use cases that involve handling only -dozens or a few hundred streams at once, then this event loop implementation -performs really well. - -If you want to use signal handling (see also [`addSignal()`](#addsignal) below), -this event loop implementation requires `ext-pcntl`. -This extension is only available for Unix-like platforms and does not support -Windows. -It is commonly installed as part of many PHP distributions. -If this extension is missing (or you're running on Windows), signal handling is -not supported and throws a `BadMethodCallException` instead. - -This event loop is known to rely on wall-clock time to schedule future timers -when using any version before PHP 7.3, because a monotonic time source is -only available as of PHP 7.3 (`hrtime()`). -While this does not affect many common use cases, this is an important -distinction for programs that rely on a high time precision or on systems -that are subject to discontinuous time adjustments (time jumps). -This means that if you schedule a timer to trigger in 30s on PHP < 7.3 and -then adjust your system time forward by 20s, the timer may trigger in 10s. -See also [`addTimer()`](#addtimer) for more details. - -#### ExtEventLoop - -An `ext-event` based event loop. - -This uses the [`event` PECL extension](https://pecl.php.net/package/event), -that provides an interface to `libevent` library. -`libevent` itself supports a number of system-specific backends (epoll, kqueue). - -This loop is known to work with PHP 5.4 through PHP 8+. - -#### ExtEvLoop - -An `ext-ev` based event loop. - -This loop uses the [`ev` PECL extension](https://pecl.php.net/package/ev), -that provides an interface to `libev` library. -`libev` itself supports a number of system-specific backends (epoll, kqueue). - - -This loop is known to work with PHP 5.4 through PHP 8+. - -#### ExtUvLoop - -An `ext-uv` based event loop. - -This loop uses the [`uv` PECL extension](https://pecl.php.net/package/uv), -that provides an interface to `libuv` library. -`libuv` itself supports a number of system-specific backends (epoll, kqueue). - -This loop is known to work with PHP 7+. - -#### ~~ExtLibeventLoop~~ - -> Deprecated since v1.2.0, use [`ExtEventLoop`](#exteventloop) instead. - -An `ext-libevent` based event loop. - -This uses the [`libevent` PECL extension](https://pecl.php.net/package/libevent), -that provides an interface to `libevent` library. -`libevent` itself supports a number of system-specific backends (epoll, kqueue). - -This event loop does only work with PHP 5. -An [unofficial update](https://github.com/php/pecl-event-libevent/pull/2) for -PHP 7 does exist, but it is known to cause regular crashes due to `SEGFAULT`s. -To reiterate: Using this event loop on PHP 7 is not recommended. -Accordingly, neither the [`Loop` class](#loop) nor the deprecated -[`Factory` class](#factory) will try to use this event loop on PHP 7. - -This event loop is known to trigger a readable listener only if -the stream *becomes* readable (edge-triggered) and may not trigger if the -stream has already been readable from the beginning. -This also implies that a stream may not be recognized as readable when data -is still left in PHP's internal stream buffers. -As such, it's recommended to use `stream_set_read_buffer($stream, 0);` -to disable PHP's internal read buffer in this case. -See also [`addReadStream()`](#addreadstream) for more details. - -#### ~~ExtLibevLoop~~ - -> Deprecated since v1.2.0, use [`ExtEvLoop`](#extevloop) instead. - -An `ext-libev` based event loop. - -This uses an [unofficial `libev` extension](https://github.com/m4rw3r/php-libev), -that provides an interface to `libev` library. -`libev` itself supports a number of system-specific backends (epoll, kqueue). - -This loop does only work with PHP 5. -An update for PHP 7 is [unlikely](https://github.com/m4rw3r/php-libev/issues/8) -to happen any time soon. - -### LoopInterface - -#### run() - -The `run(): void` method can be used to -run the event loop until there are no more tasks to perform. - -For many applications, this method is the only directly visible -invocation on the event loop. -As a rule of thumb, it is usually recommended to attach everything to the -same loop instance and then run the loop once at the bottom end of the -application. - -```php -$loop->run(); -``` - -This method will keep the loop running until there are no more tasks -to perform. In other words: This method will block until the last -timer, stream and/or signal has been removed. - -Likewise, it is imperative to ensure the application actually invokes -this method once. Adding listeners to the loop and missing to actually -run it will result in the application exiting without actually waiting -for any of the attached listeners. - -This method MUST NOT be called while the loop is already running. -This method MAY be called more than once after it has explicitly been -[`stop()`ped](#stop) or after it automatically stopped because it -previously did no longer have anything to do. - -#### stop() - -The `stop(): void` method can be used to -instruct a running event loop to stop. - -This method is considered advanced usage and should be used with care. -As a rule of thumb, it is usually recommended to let the loop stop -only automatically when it no longer has anything to do. - -This method can be used to explicitly instruct the event loop to stop: - -```php -$loop->addTimer(3.0, function () use ($loop) { - $loop->stop(); -}); -``` - -Calling this method on a loop instance that is not currently running or -on a loop instance that has already been stopped has no effect. - -#### addTimer() - -The `addTimer(float $interval, callable $callback): TimerInterface` method can be used to -enqueue a callback to be invoked once after the given interval. - -The second parameter MUST be a timer callback function that accepts -the timer instance as its only parameter. -If you don't use the timer instance inside your timer callback function -you MAY use a function which has no parameters at all. - -The timer callback function MUST NOT throw an `Exception`. -The return value of the timer callback function will be ignored and has -no effect, so for performance reasons you're recommended to not return -any excessive data structures. - -This method returns a timer instance. The same timer instance will also be -passed into the timer callback function as described above. -You can invoke [`cancelTimer`](#canceltimer) to cancel a pending timer. -Unlike [`addPeriodicTimer()`](#addperiodictimer), this method will ensure -the callback will be invoked only once after the given interval. - -```php -$loop->addTimer(0.8, function () { - echo 'world!' . PHP_EOL; -}); - -$loop->addTimer(0.3, function () { - echo 'hello '; -}); -``` - -See also [example #1](examples). - -If you want to access any variables within your callback function, you -can bind arbitrary data to a callback closure like this: - -```php -function hello($name, LoopInterface $loop) -{ - $loop->addTimer(1.0, function () use ($name) { - echo "hello $name\n"; - }); -} - -hello('Tester', $loop); -``` - -This interface does not enforce any particular timer resolution, so -special care may have to be taken if you rely on very high precision with -millisecond accuracy or below. Event loop implementations SHOULD work on -a best effort basis and SHOULD provide at least millisecond accuracy -unless otherwise noted. Many existing event loop implementations are -known to provide microsecond accuracy, but it's generally not recommended -to rely on this high precision. - -Similarly, the execution order of timers scheduled to execute at the -same time (within its possible accuracy) is not guaranteed. - -This interface suggests that event loop implementations SHOULD use a -monotonic time source if available. Given that a monotonic time source is -only available as of PHP 7.3 by default, event loop implementations MAY -fall back to using wall-clock time. -While this does not affect many common use cases, this is an important -distinction for programs that rely on a high time precision or on systems -that are subject to discontinuous time adjustments (time jumps). -This means that if you schedule a timer to trigger in 30s and then adjust -your system time forward by 20s, the timer SHOULD still trigger in 30s. -See also [event loop implementations](#loop-implementations) for more details. - -#### addPeriodicTimer() - -The `addPeriodicTimer(float $interval, callable $callback): TimerInterface` method can be used to -enqueue a callback to be invoked repeatedly after the given interval. - -The second parameter MUST be a timer callback function that accepts -the timer instance as its only parameter. -If you don't use the timer instance inside your timer callback function -you MAY use a function which has no parameters at all. - -The timer callback function MUST NOT throw an `Exception`. -The return value of the timer callback function will be ignored and has -no effect, so for performance reasons you're recommended to not return -any excessive data structures. - -This method returns a timer instance. The same timer instance will also be -passed into the timer callback function as described above. -Unlike [`addTimer()`](#addtimer), this method will ensure the callback -will be invoked infinitely after the given interval or until you invoke -[`cancelTimer`](#canceltimer). - -```php -$timer = $loop->addPeriodicTimer(0.1, function () { - echo 'tick!' . PHP_EOL; -}); - -$loop->addTimer(1.0, function () use ($loop, $timer) { - $loop->cancelTimer($timer); - echo 'Done' . PHP_EOL; -}); -``` - -See also [example #2](examples). - -If you want to limit the number of executions, you can bind -arbitrary data to a callback closure like this: - -```php -function hello($name, LoopInterface $loop) -{ - $n = 3; - $loop->addPeriodicTimer(1.0, function ($timer) use ($name, $loop, &$n) { - if ($n > 0) { - --$n; - echo "hello $name\n"; - } else { - $loop->cancelTimer($timer); - } - }); -} - -hello('Tester', $loop); -``` - -This interface does not enforce any particular timer resolution, so -special care may have to be taken if you rely on very high precision with -millisecond accuracy or below. Event loop implementations SHOULD work on -a best effort basis and SHOULD provide at least millisecond accuracy -unless otherwise noted. Many existing event loop implementations are -known to provide microsecond accuracy, but it's generally not recommended -to rely on this high precision. - -Similarly, the execution order of timers scheduled to execute at the -same time (within its possible accuracy) is not guaranteed. - -This interface suggests that event loop implementations SHOULD use a -monotonic time source if available. Given that a monotonic time source is -only available as of PHP 7.3 by default, event loop implementations MAY -fall back to using wall-clock time. -While this does not affect many common use cases, this is an important -distinction for programs that rely on a high time precision or on systems -that are subject to discontinuous time adjustments (time jumps). -This means that if you schedule a timer to trigger in 30s and then adjust -your system time forward by 20s, the timer SHOULD still trigger in 30s. -See also [event loop implementations](#loop-implementations) for more details. - -Additionally, periodic timers may be subject to timer drift due to -re-scheduling after each invocation. As such, it's generally not -recommended to rely on this for high precision intervals with millisecond -accuracy or below. - -#### cancelTimer() - -The `cancelTimer(TimerInterface $timer): void` method can be used to -cancel a pending timer. - -See also [`addPeriodicTimer()`](#addperiodictimer) and [example #2](examples). - -Calling this method on a timer instance that has not been added to this -loop instance or on a timer that has already been cancelled has no effect. - -#### futureTick() - -The `futureTick(callable $listener): void` method can be used to -schedule a callback to be invoked on a future tick of the event loop. - -This works very much similar to timers with an interval of zero seconds, -but does not require the overhead of scheduling a timer queue. - -The tick callback function MUST be able to accept zero parameters. - -The tick callback function MUST NOT throw an `Exception`. -The return value of the tick callback function will be ignored and has -no effect, so for performance reasons you're recommended to not return -any excessive data structures. - -If you want to access any variables within your callback function, you -can bind arbitrary data to a callback closure like this: - -```php -function hello($name, LoopInterface $loop) -{ - $loop->futureTick(function () use ($name) { - echo "hello $name\n"; - }); -} - -hello('Tester', $loop); -``` - -Unlike timers, tick callbacks are guaranteed to be executed in the order -they are enqueued. -Also, once a callback is enqueued, there's no way to cancel this operation. - -This is often used to break down bigger tasks into smaller steps (a form -of cooperative multitasking). - -```php -$loop->futureTick(function () { - echo 'b'; -}); -$loop->futureTick(function () { - echo 'c'; -}); -echo 'a'; -``` - -See also [example #3](examples). - -#### addSignal() - -The `addSignal(int $signal, callable $listener): void` method can be used to -register a listener to be notified when a signal has been caught by this process. - -This is useful to catch user interrupt signals or shutdown signals from -tools like `supervisor` or `systemd`. - -The second parameter MUST be a listener callback function that accepts -the signal as its only parameter. -If you don't use the signal inside your listener callback function -you MAY use a function which has no parameters at all. - -The listener callback function MUST NOT throw an `Exception`. -The return value of the listener callback function will be ignored and has -no effect, so for performance reasons you're recommended to not return -any excessive data structures. - -```php -$loop->addSignal(SIGINT, function (int $signal) { - echo 'Caught user interrupt signal' . PHP_EOL; -}); -``` - -See also [example #4](examples). - -Signaling is only available on Unix-like platforms, Windows isn't -supported due to operating system limitations. -This method may throw a `BadMethodCallException` if signals aren't -supported on this platform, for example when required extensions are -missing. - -**Note: A listener can only be added once to the same signal, any -attempts to add it more than once will be ignored.** - -#### removeSignal() - -The `removeSignal(int $signal, callable $listener): void` method can be used to -remove a previously added signal listener. - -```php -$loop->removeSignal(SIGINT, $listener); -``` - -Any attempts to remove listeners that aren't registered will be ignored. - -#### addReadStream() - -> Advanced! Note that this low-level API is considered advanced usage. - Most use cases should probably use the higher-level - [readable Stream API](https://github.com/reactphp/stream#readablestreaminterface) - instead. - -The `addReadStream(resource $stream, callable $callback): void` method can be used to -register a listener to be notified when a stream is ready to read. - -The first parameter MUST be a valid stream resource that supports -checking whether it is ready to read by this loop implementation. -A single stream resource MUST NOT be added more than once. -Instead, either call [`removeReadStream()`](#removereadstream) first or -react to this event with a single listener and then dispatch from this -listener. This method MAY throw an `Exception` if the given resource type -is not supported by this loop implementation. - -The second parameter MUST be a listener callback function that accepts -the stream resource as its only parameter. -If you don't use the stream resource inside your listener callback function -you MAY use a function which has no parameters at all. - -The listener callback function MUST NOT throw an `Exception`. -The return value of the listener callback function will be ignored and has -no effect, so for performance reasons you're recommended to not return -any excessive data structures. - -If you want to access any variables within your callback function, you -can bind arbitrary data to a callback closure like this: - -```php -$loop->addReadStream($stream, function ($stream) use ($name) { - echo $name . ' said: ' . fread($stream); -}); -``` - -See also [example #11](examples). - -You can invoke [`removeReadStream()`](#removereadstream) to remove the -read event listener for this stream. - -The execution order of listeners when multiple streams become ready at -the same time is not guaranteed. - -Some event loop implementations are known to only trigger the listener if -the stream *becomes* readable (edge-triggered) and may not trigger if the -stream has already been readable from the beginning. -This also implies that a stream may not be recognized as readable when data -is still left in PHP's internal stream buffers. -As such, it's recommended to use `stream_set_read_buffer($stream, 0);` -to disable PHP's internal read buffer in this case. - -#### addWriteStream() - -> Advanced! Note that this low-level API is considered advanced usage. - Most use cases should probably use the higher-level - [writable Stream API](https://github.com/reactphp/stream#writablestreaminterface) - instead. - -The `addWriteStream(resource $stream, callable $callback): void` method can be used to -register a listener to be notified when a stream is ready to write. - -The first parameter MUST be a valid stream resource that supports -checking whether it is ready to write by this loop implementation. -A single stream resource MUST NOT be added more than once. -Instead, either call [`removeWriteStream()`](#removewritestream) first or -react to this event with a single listener and then dispatch from this -listener. This method MAY throw an `Exception` if the given resource type -is not supported by this loop implementation. - -The second parameter MUST be a listener callback function that accepts -the stream resource as its only parameter. -If you don't use the stream resource inside your listener callback function -you MAY use a function which has no parameters at all. - -The listener callback function MUST NOT throw an `Exception`. -The return value of the listener callback function will be ignored and has -no effect, so for performance reasons you're recommended to not return -any excessive data structures. - -If you want to access any variables within your callback function, you -can bind arbitrary data to a callback closure like this: - -```php -$loop->addWriteStream($stream, function ($stream) use ($name) { - fwrite($stream, 'Hello ' . $name); -}); -``` - -See also [example #12](examples). - -You can invoke [`removeWriteStream()`](#removewritestream) to remove the -write event listener for this stream. - -The execution order of listeners when multiple streams become ready at -the same time is not guaranteed. - -#### removeReadStream() - -The `removeReadStream(resource $stream): void` method can be used to -remove the read event listener for the given stream. - -Removing a stream from the loop that has already been removed or trying -to remove a stream that was never added or is invalid has no effect. - -#### removeWriteStream() - -The `removeWriteStream(resource $stream): void` method can be used to -remove the write event listener for the given stream. - -Removing a stream from the loop that has already been removed or trying -to remove a stream that was never added or is invalid has no effect. - -## Install - -The recommended way to install this library is [through Composer](https://getcomposer.org/). -[New to Composer?](https://getcomposer.org/doc/00-intro.md) - -This project follows [SemVer](https://semver.org/). -This will install the latest supported version: - -```bash -composer require react/event-loop:^1.5 -``` - -See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades. - -This project aims to run on any platform and thus does not require any PHP -extensions and supports running on legacy PHP 5.3 through current PHP 8+ and -HHVM. -It's *highly recommended to use the latest supported PHP version* for this project. - -Installing any of the event loop extensions is suggested, but entirely optional. -See also [event loop implementations](#loop-implementations) for more details. - -## Tests - -To run the test suite, you first need to clone this repo and then install all -dependencies [through Composer](https://getcomposer.org/): - -```bash -composer install -``` - -To run the test suite, go to the project root and run: - -```bash -vendor/bin/phpunit -``` - -## License - -MIT, see [LICENSE file](LICENSE). - -## More - -* See our [Stream component](https://github.com/reactphp/stream) for more - information on how streams are used in real-world applications. -* See our [users wiki](https://github.com/reactphp/react/wiki/Users) and the - [dependents on Packagist](https://packagist.org/packages/react/event-loop/dependents) - for a list of packages that use the EventLoop in real-world applications. diff --git a/vendor/react/event-loop/composer.json b/vendor/react/event-loop/composer.json deleted file mode 100644 index 25a41fe..0000000 --- a/vendor/react/event-loop/composer.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "name": "react/event-loop", - "description": "ReactPHP's core reactor event loop that libraries can use for evented I/O.", - "keywords": ["event-loop", "asynchronous"], - "license": "MIT", - "authors": [ - { - "name": "Christian Lück", - "homepage": "https://clue.engineering/", - "email": "christian@clue.engineering" - }, - { - "name": "Cees-Jan Kiewiet", - "homepage": "https://wyrihaximus.net/", - "email": "reactphp@ceesjankiewiet.nl" - }, - { - "name": "Jan Sorgalla", - "homepage": "https://sorgalla.com/", - "email": "jsorgalla@gmail.com" - }, - { - "name": "Chris Boden", - "homepage": "https://cboden.dev/", - "email": "cboden@gmail.com" - } - ], - "require": { - "php": ">=5.3.0" - }, - "require-dev": { - "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36" - }, - "suggest": { - "ext-pcntl": "For signal handling support when using the StreamSelectLoop" - }, - "autoload": { - "psr-4": { - "React\\EventLoop\\": "src/" - } - }, - "autoload-dev": { - "psr-4": { - "React\\Tests\\EventLoop\\": "tests/" - } - } -} diff --git a/vendor/react/event-loop/src/ExtEvLoop.php b/vendor/react/event-loop/src/ExtEvLoop.php deleted file mode 100644 index a3fcec6..0000000 --- a/vendor/react/event-loop/src/ExtEvLoop.php +++ /dev/null @@ -1,253 +0,0 @@ -loop = new EvLoop(); - $this->futureTickQueue = new FutureTickQueue(); - $this->timers = new SplObjectStorage(); - $this->signals = new SignalsHandler(); - } - - public function addReadStream($stream, $listener) - { - $key = (int)$stream; - - if (isset($this->readStreams[$key])) { - return; - } - - $callback = $this->getStreamListenerClosure($stream, $listener); - $event = $this->loop->io($stream, Ev::READ, $callback); - $this->readStreams[$key] = $event; - } - - /** - * @param resource $stream - * @param callable $listener - * - * @return \Closure - */ - private function getStreamListenerClosure($stream, $listener) - { - return function () use ($stream, $listener) { - \call_user_func($listener, $stream); - }; - } - - public function addWriteStream($stream, $listener) - { - $key = (int)$stream; - - if (isset($this->writeStreams[$key])) { - return; - } - - $callback = $this->getStreamListenerClosure($stream, $listener); - $event = $this->loop->io($stream, Ev::WRITE, $callback); - $this->writeStreams[$key] = $event; - } - - public function removeReadStream($stream) - { - $key = (int)$stream; - - if (!isset($this->readStreams[$key])) { - return; - } - - $this->readStreams[$key]->stop(); - unset($this->readStreams[$key]); - } - - public function removeWriteStream($stream) - { - $key = (int)$stream; - - if (!isset($this->writeStreams[$key])) { - return; - } - - $this->writeStreams[$key]->stop(); - unset($this->writeStreams[$key]); - } - - public function addTimer($interval, $callback) - { - $timer = new Timer($interval, $callback, false); - - $that = $this; - $timers = $this->timers; - $callback = function () use ($timer, $timers, $that) { - \call_user_func($timer->getCallback(), $timer); - - if ($timers->contains($timer)) { - $that->cancelTimer($timer); - } - }; - - $event = $this->loop->timer($timer->getInterval(), 0.0, $callback); - $this->timers->attach($timer, $event); - - return $timer; - } - - public function addPeriodicTimer($interval, $callback) - { - $timer = new Timer($interval, $callback, true); - - $callback = function () use ($timer) { - \call_user_func($timer->getCallback(), $timer); - }; - - $event = $this->loop->timer($timer->getInterval(), $timer->getInterval(), $callback); - $this->timers->attach($timer, $event); - - return $timer; - } - - public function cancelTimer(TimerInterface $timer) - { - if (!isset($this->timers[$timer])) { - return; - } - - $event = $this->timers[$timer]; - $event->stop(); - $this->timers->detach($timer); - } - - public function futureTick($listener) - { - $this->futureTickQueue->add($listener); - } - - public function run() - { - $this->running = true; - - while ($this->running) { - $this->futureTickQueue->tick(); - - $hasPendingCallbacks = !$this->futureTickQueue->isEmpty(); - $wasJustStopped = !$this->running; - $nothingLeftToDo = !$this->readStreams - && !$this->writeStreams - && !$this->timers->count() - && $this->signals->isEmpty(); - - $flags = Ev::RUN_ONCE; - if ($wasJustStopped || $hasPendingCallbacks) { - $flags |= Ev::RUN_NOWAIT; - } elseif ($nothingLeftToDo) { - break; - } - - $this->loop->run($flags); - } - } - - public function stop() - { - $this->running = false; - } - - public function __destruct() - { - /** @var TimerInterface $timer */ - foreach ($this->timers as $timer) { - $this->cancelTimer($timer); - } - - foreach ($this->readStreams as $key => $stream) { - $this->removeReadStream($key); - } - - foreach ($this->writeStreams as $key => $stream) { - $this->removeWriteStream($key); - } - } - - public function addSignal($signal, $listener) - { - $this->signals->add($signal, $listener); - - if (!isset($this->signalEvents[$signal])) { - $this->signalEvents[$signal] = $this->loop->signal($signal, function() use ($signal) { - $this->signals->call($signal); - }); - } - } - - public function removeSignal($signal, $listener) - { - $this->signals->remove($signal, $listener); - - if (isset($this->signalEvents[$signal])) { - $this->signalEvents[$signal]->stop(); - unset($this->signalEvents[$signal]); - } - } -} diff --git a/vendor/react/event-loop/src/ExtEventLoop.php b/vendor/react/event-loop/src/ExtEventLoop.php deleted file mode 100644 index b162a40..0000000 --- a/vendor/react/event-loop/src/ExtEventLoop.php +++ /dev/null @@ -1,275 +0,0 @@ -requireFeatures(\EventConfig::FEATURE_FDS); - } - - $this->eventBase = new EventBase($config); - $this->futureTickQueue = new FutureTickQueue(); - $this->timerEvents = new SplObjectStorage(); - $this->signals = new SignalsHandler(); - - $this->createTimerCallback(); - $this->createStreamCallback(); - } - - public function __destruct() - { - // explicitly clear all references to Event objects to prevent SEGFAULTs on Windows - foreach ($this->timerEvents as $timer) { - $this->timerEvents->detach($timer); - } - - $this->readEvents = array(); - $this->writeEvents = array(); - } - - public function addReadStream($stream, $listener) - { - $key = (int) $stream; - if (isset($this->readListeners[$key])) { - return; - } - - $event = new Event($this->eventBase, $stream, Event::PERSIST | Event::READ, $this->streamCallback); - $event->add(); - $this->readEvents[$key] = $event; - $this->readListeners[$key] = $listener; - - // ext-event does not increase refcount on stream resources for PHP 7+ - // manually keep track of stream resource to prevent premature garbage collection - if (\PHP_VERSION_ID >= 70000) { - $this->readRefs[$key] = $stream; - } - } - - public function addWriteStream($stream, $listener) - { - $key = (int) $stream; - if (isset($this->writeListeners[$key])) { - return; - } - - $event = new Event($this->eventBase, $stream, Event::PERSIST | Event::WRITE, $this->streamCallback); - $event->add(); - $this->writeEvents[$key] = $event; - $this->writeListeners[$key] = $listener; - - // ext-event does not increase refcount on stream resources for PHP 7+ - // manually keep track of stream resource to prevent premature garbage collection - if (\PHP_VERSION_ID >= 70000) { - $this->writeRefs[$key] = $stream; - } - } - - public function removeReadStream($stream) - { - $key = (int) $stream; - - if (isset($this->readEvents[$key])) { - $this->readEvents[$key]->free(); - unset( - $this->readEvents[$key], - $this->readListeners[$key], - $this->readRefs[$key] - ); - } - } - - public function removeWriteStream($stream) - { - $key = (int) $stream; - - if (isset($this->writeEvents[$key])) { - $this->writeEvents[$key]->free(); - unset( - $this->writeEvents[$key], - $this->writeListeners[$key], - $this->writeRefs[$key] - ); - } - } - - public function addTimer($interval, $callback) - { - $timer = new Timer($interval, $callback, false); - - $this->scheduleTimer($timer); - - return $timer; - } - - public function addPeriodicTimer($interval, $callback) - { - $timer = new Timer($interval, $callback, true); - - $this->scheduleTimer($timer); - - return $timer; - } - - public function cancelTimer(TimerInterface $timer) - { - if ($this->timerEvents->contains($timer)) { - $this->timerEvents[$timer]->free(); - $this->timerEvents->detach($timer); - } - } - - public function futureTick($listener) - { - $this->futureTickQueue->add($listener); - } - - public function addSignal($signal, $listener) - { - $this->signals->add($signal, $listener); - - if (!isset($this->signalEvents[$signal])) { - $this->signalEvents[$signal] = Event::signal($this->eventBase, $signal, array($this->signals, 'call')); - $this->signalEvents[$signal]->add(); - } - } - - public function removeSignal($signal, $listener) - { - $this->signals->remove($signal, $listener); - - if (isset($this->signalEvents[$signal]) && $this->signals->count($signal) === 0) { - $this->signalEvents[$signal]->free(); - unset($this->signalEvents[$signal]); - } - } - - public function run() - { - $this->running = true; - - while ($this->running) { - $this->futureTickQueue->tick(); - - $flags = EventBase::LOOP_ONCE; - if (!$this->running || !$this->futureTickQueue->isEmpty()) { - $flags |= EventBase::LOOP_NONBLOCK; - } elseif (!$this->readEvents && !$this->writeEvents && !$this->timerEvents->count() && $this->signals->isEmpty()) { - break; - } - - $this->eventBase->loop($flags); - } - } - - public function stop() - { - $this->running = false; - } - - /** - * Schedule a timer for execution. - * - * @param TimerInterface $timer - */ - private function scheduleTimer(TimerInterface $timer) - { - $flags = Event::TIMEOUT; - - if ($timer->isPeriodic()) { - $flags |= Event::PERSIST; - } - - $event = new Event($this->eventBase, -1, $flags, $this->timerCallback, $timer); - $this->timerEvents[$timer] = $event; - - $event->add($timer->getInterval()); - } - - /** - * Create a callback used as the target of timer events. - * - * A reference is kept to the callback for the lifetime of the loop - * to prevent "Cannot destroy active lambda function" fatal error from - * the event extension. - */ - private function createTimerCallback() - { - $timers = $this->timerEvents; - $this->timerCallback = function ($_, $__, $timer) use ($timers) { - \call_user_func($timer->getCallback(), $timer); - - if (!$timer->isPeriodic() && $timers->contains($timer)) { - $this->cancelTimer($timer); - } - }; - } - - /** - * Create a callback used as the target of stream events. - * - * A reference is kept to the callback for the lifetime of the loop - * to prevent "Cannot destroy active lambda function" fatal error from - * the event extension. - */ - private function createStreamCallback() - { - $read =& $this->readListeners; - $write =& $this->writeListeners; - $this->streamCallback = function ($stream, $flags) use (&$read, &$write) { - $key = (int) $stream; - - if (Event::READ === (Event::READ & $flags) && isset($read[$key])) { - \call_user_func($read[$key], $stream); - } - - if (Event::WRITE === (Event::WRITE & $flags) && isset($write[$key])) { - \call_user_func($write[$key], $stream); - } - }; - } -} diff --git a/vendor/react/event-loop/src/ExtLibevLoop.php b/vendor/react/event-loop/src/ExtLibevLoop.php deleted file mode 100644 index c303fdd..0000000 --- a/vendor/react/event-loop/src/ExtLibevLoop.php +++ /dev/null @@ -1,201 +0,0 @@ -loop = new EventLoop(); - $this->futureTickQueue = new FutureTickQueue(); - $this->timerEvents = new SplObjectStorage(); - $this->signals = new SignalsHandler(); - } - - public function addReadStream($stream, $listener) - { - if (isset($this->readEvents[(int) $stream])) { - return; - } - - $callback = function () use ($stream, $listener) { - \call_user_func($listener, $stream); - }; - - $event = new IOEvent($callback, $stream, IOEvent::READ); - $this->loop->add($event); - - $this->readEvents[(int) $stream] = $event; - } - - public function addWriteStream($stream, $listener) - { - if (isset($this->writeEvents[(int) $stream])) { - return; - } - - $callback = function () use ($stream, $listener) { - \call_user_func($listener, $stream); - }; - - $event = new IOEvent($callback, $stream, IOEvent::WRITE); - $this->loop->add($event); - - $this->writeEvents[(int) $stream] = $event; - } - - public function removeReadStream($stream) - { - $key = (int) $stream; - - if (isset($this->readEvents[$key])) { - $this->readEvents[$key]->stop(); - $this->loop->remove($this->readEvents[$key]); - unset($this->readEvents[$key]); - } - } - - public function removeWriteStream($stream) - { - $key = (int) $stream; - - if (isset($this->writeEvents[$key])) { - $this->writeEvents[$key]->stop(); - $this->loop->remove($this->writeEvents[$key]); - unset($this->writeEvents[$key]); - } - } - - public function addTimer($interval, $callback) - { - $timer = new Timer( $interval, $callback, false); - - $that = $this; - $timers = $this->timerEvents; - $callback = function () use ($timer, $timers, $that) { - \call_user_func($timer->getCallback(), $timer); - - if ($timers->contains($timer)) { - $that->cancelTimer($timer); - } - }; - - $event = new TimerEvent($callback, $timer->getInterval()); - $this->timerEvents->attach($timer, $event); - $this->loop->add($event); - - return $timer; - } - - public function addPeriodicTimer($interval, $callback) - { - $timer = new Timer($interval, $callback, true); - - $callback = function () use ($timer) { - \call_user_func($timer->getCallback(), $timer); - }; - - $event = new TimerEvent($callback, $timer->getInterval(), $timer->getInterval()); - $this->timerEvents->attach($timer, $event); - $this->loop->add($event); - - return $timer; - } - - public function cancelTimer(TimerInterface $timer) - { - if (isset($this->timerEvents[$timer])) { - $this->loop->remove($this->timerEvents[$timer]); - $this->timerEvents->detach($timer); - } - } - - public function futureTick($listener) - { - $this->futureTickQueue->add($listener); - } - - public function addSignal($signal, $listener) - { - $this->signals->add($signal, $listener); - - if (!isset($this->signalEvents[$signal])) { - $signals = $this->signals; - $this->signalEvents[$signal] = new SignalEvent(function () use ($signals, $signal) { - $signals->call($signal); - }, $signal); - $this->loop->add($this->signalEvents[$signal]); - } - } - - public function removeSignal($signal, $listener) - { - $this->signals->remove($signal, $listener); - - if (isset($this->signalEvents[$signal]) && $this->signals->count($signal) === 0) { - $this->signalEvents[$signal]->stop(); - $this->loop->remove($this->signalEvents[$signal]); - unset($this->signalEvents[$signal]); - } - } - - public function run() - { - $this->running = true; - - while ($this->running) { - $this->futureTickQueue->tick(); - - $flags = EventLoop::RUN_ONCE; - if (!$this->running || !$this->futureTickQueue->isEmpty()) { - $flags |= EventLoop::RUN_NOWAIT; - } elseif (!$this->readEvents && !$this->writeEvents && !$this->timerEvents->count() && $this->signals->isEmpty()) { - break; - } - - $this->loop->run($flags); - } - } - - public function stop() - { - $this->running = false; - } -} diff --git a/vendor/react/event-loop/src/ExtLibeventLoop.php b/vendor/react/event-loop/src/ExtLibeventLoop.php deleted file mode 100644 index 099293a..0000000 --- a/vendor/react/event-loop/src/ExtLibeventLoop.php +++ /dev/null @@ -1,285 +0,0 @@ -eventBase = \event_base_new(); - $this->futureTickQueue = new FutureTickQueue(); - $this->timerEvents = new SplObjectStorage(); - $this->signals = new SignalsHandler(); - - $this->createTimerCallback(); - $this->createStreamCallback(); - } - - public function addReadStream($stream, $listener) - { - $key = (int) $stream; - if (isset($this->readListeners[$key])) { - return; - } - - $event = \event_new(); - \event_set($event, $stream, \EV_PERSIST | \EV_READ, $this->streamCallback); - \event_base_set($event, $this->eventBase); - \event_add($event); - - $this->readEvents[$key] = $event; - $this->readListeners[$key] = $listener; - } - - public function addWriteStream($stream, $listener) - { - $key = (int) $stream; - if (isset($this->writeListeners[$key])) { - return; - } - - $event = \event_new(); - \event_set($event, $stream, \EV_PERSIST | \EV_WRITE, $this->streamCallback); - \event_base_set($event, $this->eventBase); - \event_add($event); - - $this->writeEvents[$key] = $event; - $this->writeListeners[$key] = $listener; - } - - public function removeReadStream($stream) - { - $key = (int) $stream; - - if (isset($this->readListeners[$key])) { - $event = $this->readEvents[$key]; - \event_del($event); - \event_free($event); - - unset( - $this->readEvents[$key], - $this->readListeners[$key] - ); - } - } - - public function removeWriteStream($stream) - { - $key = (int) $stream; - - if (isset($this->writeListeners[$key])) { - $event = $this->writeEvents[$key]; - \event_del($event); - \event_free($event); - - unset( - $this->writeEvents[$key], - $this->writeListeners[$key] - ); - } - } - - public function addTimer($interval, $callback) - { - $timer = new Timer($interval, $callback, false); - - $this->scheduleTimer($timer); - - return $timer; - } - - public function addPeriodicTimer($interval, $callback) - { - $timer = new Timer($interval, $callback, true); - - $this->scheduleTimer($timer); - - return $timer; - } - - public function cancelTimer(TimerInterface $timer) - { - if ($this->timerEvents->contains($timer)) { - $event = $this->timerEvents[$timer]; - \event_del($event); - \event_free($event); - - $this->timerEvents->detach($timer); - } - } - - public function futureTick($listener) - { - $this->futureTickQueue->add($listener); - } - - public function addSignal($signal, $listener) - { - $this->signals->add($signal, $listener); - - if (!isset($this->signalEvents[$signal])) { - $this->signalEvents[$signal] = \event_new(); - \event_set($this->signalEvents[$signal], $signal, \EV_PERSIST | \EV_SIGNAL, array($this->signals, 'call')); - \event_base_set($this->signalEvents[$signal], $this->eventBase); - \event_add($this->signalEvents[$signal]); - } - } - - public function removeSignal($signal, $listener) - { - $this->signals->remove($signal, $listener); - - if (isset($this->signalEvents[$signal]) && $this->signals->count($signal) === 0) { - \event_del($this->signalEvents[$signal]); - \event_free($this->signalEvents[$signal]); - unset($this->signalEvents[$signal]); - } - } - - public function run() - { - $this->running = true; - - while ($this->running) { - $this->futureTickQueue->tick(); - - $flags = \EVLOOP_ONCE; - if (!$this->running || !$this->futureTickQueue->isEmpty()) { - $flags |= \EVLOOP_NONBLOCK; - } elseif (!$this->readEvents && !$this->writeEvents && !$this->timerEvents->count() && $this->signals->isEmpty()) { - break; - } - - \event_base_loop($this->eventBase, $flags); - } - } - - public function stop() - { - $this->running = false; - } - - /** - * Schedule a timer for execution. - * - * @param TimerInterface $timer - */ - private function scheduleTimer(TimerInterface $timer) - { - $this->timerEvents[$timer] = $event = \event_timer_new(); - - \event_timer_set($event, $this->timerCallback, $timer); - \event_base_set($event, $this->eventBase); - \event_add($event, $timer->getInterval() * self::MICROSECONDS_PER_SECOND); - } - - /** - * Create a callback used as the target of timer events. - * - * A reference is kept to the callback for the lifetime of the loop - * to prevent "Cannot destroy active lambda function" fatal error from - * the event extension. - */ - private function createTimerCallback() - { - $that = $this; - $timers = $this->timerEvents; - $this->timerCallback = function ($_, $__, $timer) use ($timers, $that) { - \call_user_func($timer->getCallback(), $timer); - - // Timer already cancelled ... - if (!$timers->contains($timer)) { - return; - } - - // Reschedule periodic timers ... - if ($timer->isPeriodic()) { - \event_add( - $timers[$timer], - $timer->getInterval() * ExtLibeventLoop::MICROSECONDS_PER_SECOND - ); - - // Clean-up one shot timers ... - } else { - $that->cancelTimer($timer); - } - }; - } - - /** - * Create a callback used as the target of stream events. - * - * A reference is kept to the callback for the lifetime of the loop - * to prevent "Cannot destroy active lambda function" fatal error from - * the event extension. - */ - private function createStreamCallback() - { - $read =& $this->readListeners; - $write =& $this->writeListeners; - $this->streamCallback = function ($stream, $flags) use (&$read, &$write) { - $key = (int) $stream; - - if (\EV_READ === (\EV_READ & $flags) && isset($read[$key])) { - \call_user_func($read[$key], $stream); - } - - if (\EV_WRITE === (\EV_WRITE & $flags) && isset($write[$key])) { - \call_user_func($write[$key], $stream); - } - }; - } -} diff --git a/vendor/react/event-loop/src/ExtUvLoop.php b/vendor/react/event-loop/src/ExtUvLoop.php deleted file mode 100644 index 4434720..0000000 --- a/vendor/react/event-loop/src/ExtUvLoop.php +++ /dev/null @@ -1,342 +0,0 @@ -uv = \uv_loop_new(); - $this->futureTickQueue = new FutureTickQueue(); - $this->timers = new SplObjectStorage(); - $this->streamListener = $this->createStreamListener(); - $this->signals = new SignalsHandler(); - } - - /** - * Returns the underlying ext-uv event loop. (Internal ReactPHP use only.) - * - * @internal - * - * @return resource - */ - public function getUvLoop() - { - return $this->uv; - } - - /** - * {@inheritdoc} - */ - public function addReadStream($stream, $listener) - { - if (isset($this->readStreams[(int) $stream])) { - return; - } - - $this->readStreams[(int) $stream] = $listener; - $this->addStream($stream); - } - - /** - * {@inheritdoc} - */ - public function addWriteStream($stream, $listener) - { - if (isset($this->writeStreams[(int) $stream])) { - return; - } - - $this->writeStreams[(int) $stream] = $listener; - $this->addStream($stream); - } - - /** - * {@inheritdoc} - */ - public function removeReadStream($stream) - { - if (!isset($this->streamEvents[(int) $stream])) { - return; - } - - unset($this->readStreams[(int) $stream]); - $this->removeStream($stream); - } - - /** - * {@inheritdoc} - */ - public function removeWriteStream($stream) - { - if (!isset($this->streamEvents[(int) $stream])) { - return; - } - - unset($this->writeStreams[(int) $stream]); - $this->removeStream($stream); - } - - /** - * {@inheritdoc} - */ - public function addTimer($interval, $callback) - { - $timer = new Timer($interval, $callback, false); - - $that = $this; - $timers = $this->timers; - $callback = function () use ($timer, $timers, $that) { - \call_user_func($timer->getCallback(), $timer); - - if ($timers->contains($timer)) { - $that->cancelTimer($timer); - } - }; - - $event = \uv_timer_init($this->uv); - $this->timers->attach($timer, $event); - \uv_timer_start( - $event, - $this->convertFloatSecondsToMilliseconds($interval), - 0, - $callback - ); - - return $timer; - } - - /** - * {@inheritdoc} - */ - public function addPeriodicTimer($interval, $callback) - { - $timer = new Timer($interval, $callback, true); - - $callback = function () use ($timer) { - \call_user_func($timer->getCallback(), $timer); - }; - - $interval = $this->convertFloatSecondsToMilliseconds($interval); - $event = \uv_timer_init($this->uv); - $this->timers->attach($timer, $event); - \uv_timer_start( - $event, - $interval, - (int) $interval === 0 ? 1 : $interval, - $callback - ); - - return $timer; - } - - /** - * {@inheritdoc} - */ - public function cancelTimer(TimerInterface $timer) - { - if (isset($this->timers[$timer])) { - @\uv_timer_stop($this->timers[$timer]); - $this->timers->detach($timer); - } - } - - /** - * {@inheritdoc} - */ - public function futureTick($listener) - { - $this->futureTickQueue->add($listener); - } - - public function addSignal($signal, $listener) - { - $this->signals->add($signal, $listener); - - if (!isset($this->signalEvents[$signal])) { - $signals = $this->signals; - $this->signalEvents[$signal] = \uv_signal_init($this->uv); - \uv_signal_start($this->signalEvents[$signal], function () use ($signals, $signal) { - $signals->call($signal); - }, $signal); - } - } - - public function removeSignal($signal, $listener) - { - $this->signals->remove($signal, $listener); - - if (isset($this->signalEvents[$signal]) && $this->signals->count($signal) === 0) { - \uv_signal_stop($this->signalEvents[$signal]); - unset($this->signalEvents[$signal]); - } - } - - /** - * {@inheritdoc} - */ - public function run() - { - $this->running = true; - - while ($this->running) { - $this->futureTickQueue->tick(); - - $hasPendingCallbacks = !$this->futureTickQueue->isEmpty(); - $wasJustStopped = !$this->running; - $nothingLeftToDo = !$this->readStreams - && !$this->writeStreams - && !$this->timers->count() - && $this->signals->isEmpty(); - - // Use UV::RUN_ONCE when there are only I/O events active in the loop and block until one of those triggers, - // otherwise use UV::RUN_NOWAIT. - // @link http://docs.libuv.org/en/v1.x/loop.html#c.uv_run - $flags = \UV::RUN_ONCE; - if ($wasJustStopped || $hasPendingCallbacks) { - $flags = \UV::RUN_NOWAIT; - } elseif ($nothingLeftToDo) { - break; - } - - \uv_run($this->uv, $flags); - } - } - - /** - * {@inheritdoc} - */ - public function stop() - { - $this->running = false; - } - - private function addStream($stream) - { - if (!isset($this->streamEvents[(int) $stream])) { - $this->streamEvents[(int)$stream] = \uv_poll_init_socket($this->uv, $stream); - } - - if ($this->streamEvents[(int) $stream] !== false) { - $this->pollStream($stream); - } - } - - private function removeStream($stream) - { - if (!isset($this->streamEvents[(int) $stream])) { - return; - } - - if (!isset($this->readStreams[(int) $stream]) - && !isset($this->writeStreams[(int) $stream])) { - \uv_poll_stop($this->streamEvents[(int) $stream]); - \uv_close($this->streamEvents[(int) $stream]); - unset($this->streamEvents[(int) $stream]); - return; - } - - $this->pollStream($stream); - } - - private function pollStream($stream) - { - if (!isset($this->streamEvents[(int) $stream])) { - return; - } - - $flags = 0; - if (isset($this->readStreams[(int) $stream])) { - $flags |= \UV::READABLE; - } - - if (isset($this->writeStreams[(int) $stream])) { - $flags |= \UV::WRITABLE; - } - - \uv_poll_start($this->streamEvents[(int) $stream], $flags, $this->streamListener); - } - - /** - * Create a stream listener - * - * @return callable Returns a callback - */ - private function createStreamListener() - { - $callback = function ($event, $status, $events, $stream) { - // libuv automatically stops polling on error, re-enable polling to match other loop implementations - if ($status !== 0) { - $this->pollStream($stream); - - // libuv may report no events on error, but this should still invoke stream listeners to report closed connections - // re-enable both readable and writable, correct listeners will be checked below anyway - if ($events === 0) { - $events = \UV::READABLE | \UV::WRITABLE; - } - } - - if (isset($this->readStreams[(int) $stream]) && ($events & \UV::READABLE)) { - \call_user_func($this->readStreams[(int) $stream], $stream); - } - - if (isset($this->writeStreams[(int) $stream]) && ($events & \UV::WRITABLE)) { - \call_user_func($this->writeStreams[(int) $stream], $stream); - } - }; - - return $callback; - } - - /** - * @param float $interval - * @return int - */ - private function convertFloatSecondsToMilliseconds($interval) - { - if ($interval < 0) { - return 0; - } - - $maxValue = (int) (\PHP_INT_MAX / 1000); - $intInterval = (int) $interval; - - if (($intInterval <= 0 && $interval > 1) || $intInterval >= $maxValue) { - throw new \InvalidArgumentException( - "Interval overflow, value must be lower than '{$maxValue}', but '{$interval}' passed." - ); - } - - return (int) \floor($interval * 1000); - } -} diff --git a/vendor/react/event-loop/src/Factory.php b/vendor/react/event-loop/src/Factory.php deleted file mode 100644 index 30bbfd7..0000000 --- a/vendor/react/event-loop/src/Factory.php +++ /dev/null @@ -1,75 +0,0 @@ -futureTick(function () use (&$hasRun) { - $hasRun = true; - }); - - $stopped =& self::$stopped; - register_shutdown_function(function () use ($loop, &$hasRun, &$stopped) { - // Don't run if we're coming from a fatal error (uncaught exception). - $error = error_get_last(); - if ((isset($error['type']) ? $error['type'] : 0) & (E_ERROR | E_CORE_ERROR | E_COMPILE_ERROR | E_USER_ERROR | E_RECOVERABLE_ERROR)) { - return; - } - - if (!$hasRun && !$stopped) { - $loop->run(); - } - }); - // @codeCoverageIgnoreEnd - - return self::$instance; - } - - /** - * Internal undocumented method, behavior might change or throw in the - * future. Use with caution and at your own risk. - * - * @internal - * @return void - */ - public static function set(LoopInterface $loop) - { - self::$instance = $loop; - } - - /** - * [Advanced] Register a listener to be notified when a stream is ready to read. - * - * @param resource $stream - * @param callable $listener - * @return void - * @throws \Exception - * @see LoopInterface::addReadStream() - */ - public static function addReadStream($stream, $listener) - { - // create loop instance on demand (legacy PHP < 7 doesn't like ternaries in method calls) - if (self::$instance === null) { - self::get(); - } - self::$instance->addReadStream($stream, $listener); - } - - /** - * [Advanced] Register a listener to be notified when a stream is ready to write. - * - * @param resource $stream - * @param callable $listener - * @return void - * @throws \Exception - * @see LoopInterface::addWriteStream() - */ - public static function addWriteStream($stream, $listener) - { - // create loop instance on demand (legacy PHP < 7 doesn't like ternaries in method calls) - if (self::$instance === null) { - self::get(); - } - self::$instance->addWriteStream($stream, $listener); - } - - /** - * Remove the read event listener for the given stream. - * - * @param resource $stream - * @return void - * @see LoopInterface::removeReadStream() - */ - public static function removeReadStream($stream) - { - if (self::$instance !== null) { - self::$instance->removeReadStream($stream); - } - } - - /** - * Remove the write event listener for the given stream. - * - * @param resource $stream - * @return void - * @see LoopInterface::removeWriteStream() - */ - public static function removeWriteStream($stream) - { - if (self::$instance !== null) { - self::$instance->removeWriteStream($stream); - } - } - - /** - * Enqueue a callback to be invoked once after the given interval. - * - * @param float $interval - * @param callable $callback - * @return TimerInterface - * @see LoopInterface::addTimer() - */ - public static function addTimer($interval, $callback) - { - // create loop instance on demand (legacy PHP < 7 doesn't like ternaries in method calls) - if (self::$instance === null) { - self::get(); - } - return self::$instance->addTimer($interval, $callback); - } - - /** - * Enqueue a callback to be invoked repeatedly after the given interval. - * - * @param float $interval - * @param callable $callback - * @return TimerInterface - * @see LoopInterface::addPeriodicTimer() - */ - public static function addPeriodicTimer($interval, $callback) - { - // create loop instance on demand (legacy PHP < 7 doesn't like ternaries in method calls) - if (self::$instance === null) { - self::get(); - } - return self::$instance->addPeriodicTimer($interval, $callback); - } - - /** - * Cancel a pending timer. - * - * @param TimerInterface $timer - * @return void - * @see LoopInterface::cancelTimer() - */ - public static function cancelTimer(TimerInterface $timer) - { - if (self::$instance !== null) { - self::$instance->cancelTimer($timer); - } - } - - /** - * Schedule a callback to be invoked on a future tick of the event loop. - * - * @param callable $listener - * @return void - * @see LoopInterface::futureTick() - */ - public static function futureTick($listener) - { - // create loop instance on demand (legacy PHP < 7 doesn't like ternaries in method calls) - if (self::$instance === null) { - self::get(); - } - - self::$instance->futureTick($listener); - } - - /** - * Register a listener to be notified when a signal has been caught by this process. - * - * @param int $signal - * @param callable $listener - * @return void - * @see LoopInterface::addSignal() - */ - public static function addSignal($signal, $listener) - { - // create loop instance on demand (legacy PHP < 7 doesn't like ternaries in method calls) - if (self::$instance === null) { - self::get(); - } - - self::$instance->addSignal($signal, $listener); - } - - /** - * Removes a previously added signal listener. - * - * @param int $signal - * @param callable $listener - * @return void - * @see LoopInterface::removeSignal() - */ - public static function removeSignal($signal, $listener) - { - if (self::$instance !== null) { - self::$instance->removeSignal($signal, $listener); - } - } - - /** - * Run the event loop until there are no more tasks to perform. - * - * @return void - * @see LoopInterface::run() - */ - public static function run() - { - // create loop instance on demand (legacy PHP < 7 doesn't like ternaries in method calls) - if (self::$instance === null) { - self::get(); - } - - self::$instance->run(); - } - - /** - * Instruct a running event loop to stop. - * - * @return void - * @see LoopInterface::stop() - */ - public static function stop() - { - self::$stopped = true; - if (self::$instance !== null) { - self::$instance->stop(); - } - } -} diff --git a/vendor/react/event-loop/src/LoopInterface.php b/vendor/react/event-loop/src/LoopInterface.php deleted file mode 100644 index 9266f71..0000000 --- a/vendor/react/event-loop/src/LoopInterface.php +++ /dev/null @@ -1,472 +0,0 @@ -addReadStream($stream, function ($stream) use ($name) { - * echo $name . ' said: ' . fread($stream); - * }); - * ``` - * - * See also [example #11](examples). - * - * You can invoke [`removeReadStream()`](#removereadstream) to remove the - * read event listener for this stream. - * - * The execution order of listeners when multiple streams become ready at - * the same time is not guaranteed. - * - * @param resource $stream The PHP stream resource to check. - * @param callable $listener Invoked when the stream is ready. - * @throws \Exception if the given resource type is not supported by this loop implementation - * @see self::removeReadStream() - */ - public function addReadStream($stream, $listener); - - /** - * [Advanced] Register a listener to be notified when a stream is ready to write. - * - * Note that this low-level API is considered advanced usage. - * Most use cases should probably use the higher-level - * [writable Stream API](https://github.com/reactphp/stream#writablestreaminterface) - * instead. - * - * The first parameter MUST be a valid stream resource that supports - * checking whether it is ready to write by this loop implementation. - * A single stream resource MUST NOT be added more than once. - * Instead, either call [`removeWriteStream()`](#removewritestream) first or - * react to this event with a single listener and then dispatch from this - * listener. This method MAY throw an `Exception` if the given resource type - * is not supported by this loop implementation. - * - * The second parameter MUST be a listener callback function that accepts - * the stream resource as its only parameter. - * If you don't use the stream resource inside your listener callback function - * you MAY use a function which has no parameters at all. - * - * The listener callback function MUST NOT throw an `Exception`. - * The return value of the listener callback function will be ignored and has - * no effect, so for performance reasons you're recommended to not return - * any excessive data structures. - * - * If you want to access any variables within your callback function, you - * can bind arbitrary data to a callback closure like this: - * - * ```php - * $loop->addWriteStream($stream, function ($stream) use ($name) { - * fwrite($stream, 'Hello ' . $name); - * }); - * ``` - * - * See also [example #12](examples). - * - * You can invoke [`removeWriteStream()`](#removewritestream) to remove the - * write event listener for this stream. - * - * The execution order of listeners when multiple streams become ready at - * the same time is not guaranteed. - * - * Some event loop implementations are known to only trigger the listener if - * the stream *becomes* readable (edge-triggered) and may not trigger if the - * stream has already been readable from the beginning. - * This also implies that a stream may not be recognized as readable when data - * is still left in PHP's internal stream buffers. - * As such, it's recommended to use `stream_set_read_buffer($stream, 0);` - * to disable PHP's internal read buffer in this case. - * - * @param resource $stream The PHP stream resource to check. - * @param callable $listener Invoked when the stream is ready. - * @throws \Exception if the given resource type is not supported by this loop implementation - * @see self::removeWriteStream() - */ - public function addWriteStream($stream, $listener); - - /** - * Remove the read event listener for the given stream. - * - * Removing a stream from the loop that has already been removed or trying - * to remove a stream that was never added or is invalid has no effect. - * - * @param resource $stream The PHP stream resource. - */ - public function removeReadStream($stream); - - /** - * Remove the write event listener for the given stream. - * - * Removing a stream from the loop that has already been removed or trying - * to remove a stream that was never added or is invalid has no effect. - * - * @param resource $stream The PHP stream resource. - */ - public function removeWriteStream($stream); - - /** - * Enqueue a callback to be invoked once after the given interval. - * - * The second parameter MUST be a timer callback function that accepts - * the timer instance as its only parameter. - * If you don't use the timer instance inside your timer callback function - * you MAY use a function which has no parameters at all. - * - * The timer callback function MUST NOT throw an `Exception`. - * The return value of the timer callback function will be ignored and has - * no effect, so for performance reasons you're recommended to not return - * any excessive data structures. - * - * This method returns a timer instance. The same timer instance will also be - * passed into the timer callback function as described above. - * You can invoke [`cancelTimer`](#canceltimer) to cancel a pending timer. - * Unlike [`addPeriodicTimer()`](#addperiodictimer), this method will ensure - * the callback will be invoked only once after the given interval. - * - * ```php - * $loop->addTimer(0.8, function () { - * echo 'world!' . PHP_EOL; - * }); - * - * $loop->addTimer(0.3, function () { - * echo 'hello '; - * }); - * ``` - * - * See also [example #1](examples). - * - * If you want to access any variables within your callback function, you - * can bind arbitrary data to a callback closure like this: - * - * ```php - * function hello($name, LoopInterface $loop) - * { - * $loop->addTimer(1.0, function () use ($name) { - * echo "hello $name\n"; - * }); - * } - * - * hello('Tester', $loop); - * ``` - * - * This interface does not enforce any particular timer resolution, so - * special care may have to be taken if you rely on very high precision with - * millisecond accuracy or below. Event loop implementations SHOULD work on - * a best effort basis and SHOULD provide at least millisecond accuracy - * unless otherwise noted. Many existing event loop implementations are - * known to provide microsecond accuracy, but it's generally not recommended - * to rely on this high precision. - * - * Similarly, the execution order of timers scheduled to execute at the - * same time (within its possible accuracy) is not guaranteed. - * - * This interface suggests that event loop implementations SHOULD use a - * monotonic time source if available. Given that a monotonic time source is - * only available as of PHP 7.3 by default, event loop implementations MAY - * fall back to using wall-clock time. - * While this does not affect many common use cases, this is an important - * distinction for programs that rely on a high time precision or on systems - * that are subject to discontinuous time adjustments (time jumps). - * This means that if you schedule a timer to trigger in 30s and then adjust - * your system time forward by 20s, the timer SHOULD still trigger in 30s. - * See also [event loop implementations](#loop-implementations) for more details. - * - * @param int|float $interval The number of seconds to wait before execution. - * @param callable $callback The callback to invoke. - * - * @return TimerInterface - */ - public function addTimer($interval, $callback); - - /** - * Enqueue a callback to be invoked repeatedly after the given interval. - * - * The second parameter MUST be a timer callback function that accepts - * the timer instance as its only parameter. - * If you don't use the timer instance inside your timer callback function - * you MAY use a function which has no parameters at all. - * - * The timer callback function MUST NOT throw an `Exception`. - * The return value of the timer callback function will be ignored and has - * no effect, so for performance reasons you're recommended to not return - * any excessive data structures. - * - * This method returns a timer instance. The same timer instance will also be - * passed into the timer callback function as described above. - * Unlike [`addTimer()`](#addtimer), this method will ensure the callback - * will be invoked infinitely after the given interval or until you invoke - * [`cancelTimer`](#canceltimer). - * - * ```php - * $timer = $loop->addPeriodicTimer(0.1, function () { - * echo 'tick!' . PHP_EOL; - * }); - * - * $loop->addTimer(1.0, function () use ($loop, $timer) { - * $loop->cancelTimer($timer); - * echo 'Done' . PHP_EOL; - * }); - * ``` - * - * See also [example #2](examples). - * - * If you want to limit the number of executions, you can bind - * arbitrary data to a callback closure like this: - * - * ```php - * function hello($name, LoopInterface $loop) - * { - * $n = 3; - * $loop->addPeriodicTimer(1.0, function ($timer) use ($name, $loop, &$n) { - * if ($n > 0) { - * --$n; - * echo "hello $name\n"; - * } else { - * $loop->cancelTimer($timer); - * } - * }); - * } - * - * hello('Tester', $loop); - * ``` - * - * This interface does not enforce any particular timer resolution, so - * special care may have to be taken if you rely on very high precision with - * millisecond accuracy or below. Event loop implementations SHOULD work on - * a best effort basis and SHOULD provide at least millisecond accuracy - * unless otherwise noted. Many existing event loop implementations are - * known to provide microsecond accuracy, but it's generally not recommended - * to rely on this high precision. - * - * Similarly, the execution order of timers scheduled to execute at the - * same time (within its possible accuracy) is not guaranteed. - * - * This interface suggests that event loop implementations SHOULD use a - * monotonic time source if available. Given that a monotonic time source is - * only available as of PHP 7.3 by default, event loop implementations MAY - * fall back to using wall-clock time. - * While this does not affect many common use cases, this is an important - * distinction for programs that rely on a high time precision or on systems - * that are subject to discontinuous time adjustments (time jumps). - * This means that if you schedule a timer to trigger in 30s and then adjust - * your system time forward by 20s, the timer SHOULD still trigger in 30s. - * See also [event loop implementations](#loop-implementations) for more details. - * - * Additionally, periodic timers may be subject to timer drift due to - * re-scheduling after each invocation. As such, it's generally not - * recommended to rely on this for high precision intervals with millisecond - * accuracy or below. - * - * @param int|float $interval The number of seconds to wait before execution. - * @param callable $callback The callback to invoke. - * - * @return TimerInterface - */ - public function addPeriodicTimer($interval, $callback); - - /** - * Cancel a pending timer. - * - * See also [`addPeriodicTimer()`](#addperiodictimer) and [example #2](examples). - * - * Calling this method on a timer instance that has not been added to this - * loop instance or on a timer that has already been cancelled has no effect. - * - * @param TimerInterface $timer The timer to cancel. - * - * @return void - */ - public function cancelTimer(TimerInterface $timer); - - /** - * Schedule a callback to be invoked on a future tick of the event loop. - * - * This works very much similar to timers with an interval of zero seconds, - * but does not require the overhead of scheduling a timer queue. - * - * The tick callback function MUST be able to accept zero parameters. - * - * The tick callback function MUST NOT throw an `Exception`. - * The return value of the tick callback function will be ignored and has - * no effect, so for performance reasons you're recommended to not return - * any excessive data structures. - * - * If you want to access any variables within your callback function, you - * can bind arbitrary data to a callback closure like this: - * - * ```php - * function hello($name, LoopInterface $loop) - * { - * $loop->futureTick(function () use ($name) { - * echo "hello $name\n"; - * }); - * } - * - * hello('Tester', $loop); - * ``` - * - * Unlike timers, tick callbacks are guaranteed to be executed in the order - * they are enqueued. - * Also, once a callback is enqueued, there's no way to cancel this operation. - * - * This is often used to break down bigger tasks into smaller steps (a form - * of cooperative multitasking). - * - * ```php - * $loop->futureTick(function () { - * echo 'b'; - * }); - * $loop->futureTick(function () { - * echo 'c'; - * }); - * echo 'a'; - * ``` - * - * See also [example #3](examples). - * - * @param callable $listener The callback to invoke. - * - * @return void - */ - public function futureTick($listener); - - /** - * Register a listener to be notified when a signal has been caught by this process. - * - * This is useful to catch user interrupt signals or shutdown signals from - * tools like `supervisor` or `systemd`. - * - * The second parameter MUST be a listener callback function that accepts - * the signal as its only parameter. - * If you don't use the signal inside your listener callback function - * you MAY use a function which has no parameters at all. - * - * The listener callback function MUST NOT throw an `Exception`. - * The return value of the listener callback function will be ignored and has - * no effect, so for performance reasons you're recommended to not return - * any excessive data structures. - * - * ```php - * $loop->addSignal(SIGINT, function (int $signal) { - * echo 'Caught user interrupt signal' . PHP_EOL; - * }); - * ``` - * - * See also [example #4](examples). - * - * Signaling is only available on Unix-like platforms, Windows isn't - * supported due to operating system limitations. - * This method may throw a `BadMethodCallException` if signals aren't - * supported on this platform, for example when required extensions are - * missing. - * - * **Note: A listener can only be added once to the same signal, any - * attempts to add it more than once will be ignored.** - * - * @param int $signal - * @param callable $listener - * - * @throws \BadMethodCallException when signals aren't supported on this - * platform, for example when required extensions are missing. - * - * @return void - */ - public function addSignal($signal, $listener); - - /** - * Removes a previously added signal listener. - * - * ```php - * $loop->removeSignal(SIGINT, $listener); - * ``` - * - * Any attempts to remove listeners that aren't registered will be ignored. - * - * @param int $signal - * @param callable $listener - * - * @return void - */ - public function removeSignal($signal, $listener); - - /** - * Run the event loop until there are no more tasks to perform. - * - * For many applications, this method is the only directly visible - * invocation on the event loop. - * As a rule of thumb, it is usually recommended to attach everything to the - * same loop instance and then run the loop once at the bottom end of the - * application. - * - * ```php - * $loop->run(); - * ``` - * - * This method will keep the loop running until there are no more tasks - * to perform. In other words: This method will block until the last - * timer, stream and/or signal has been removed. - * - * Likewise, it is imperative to ensure the application actually invokes - * this method once. Adding listeners to the loop and missing to actually - * run it will result in the application exiting without actually waiting - * for any of the attached listeners. - * - * This method MUST NOT be called while the loop is already running. - * This method MAY be called more than once after it has explicitly been - * [`stop()`ped](#stop) or after it automatically stopped because it - * previously did no longer have anything to do. - * - * @return void - */ - public function run(); - - /** - * Instruct a running event loop to stop. - * - * This method is considered advanced usage and should be used with care. - * As a rule of thumb, it is usually recommended to let the loop stop - * only automatically when it no longer has anything to do. - * - * This method can be used to explicitly instruct the event loop to stop: - * - * ```php - * $loop->addTimer(3.0, function () use ($loop) { - * $loop->stop(); - * }); - * ``` - * - * Calling this method on a loop instance that is not currently running or - * on a loop instance that has already been stopped has no effect. - * - * @return void - */ - public function stop(); -} diff --git a/vendor/react/event-loop/src/SignalsHandler.php b/vendor/react/event-loop/src/SignalsHandler.php deleted file mode 100644 index 10d125d..0000000 --- a/vendor/react/event-loop/src/SignalsHandler.php +++ /dev/null @@ -1,63 +0,0 @@ -signals[$signal])) { - $this->signals[$signal] = array(); - } - - if (\in_array($listener, $this->signals[$signal])) { - return; - } - - $this->signals[$signal][] = $listener; - } - - public function remove($signal, $listener) - { - if (!isset($this->signals[$signal])) { - return; - } - - $index = \array_search($listener, $this->signals[$signal], true); - unset($this->signals[$signal][$index]); - - if (isset($this->signals[$signal]) && \count($this->signals[$signal]) === 0) { - unset($this->signals[$signal]); - } - } - - public function call($signal) - { - if (!isset($this->signals[$signal])) { - return; - } - - foreach ($this->signals[$signal] as $listener) { - \call_user_func($listener, $signal); - } - } - - public function count($signal) - { - if (!isset($this->signals[$signal])) { - return 0; - } - - return \count($this->signals[$signal]); - } - - public function isEmpty() - { - return !$this->signals; - } -} diff --git a/vendor/react/event-loop/src/StreamSelectLoop.php b/vendor/react/event-loop/src/StreamSelectLoop.php deleted file mode 100644 index 1686fd7..0000000 --- a/vendor/react/event-loop/src/StreamSelectLoop.php +++ /dev/null @@ -1,330 +0,0 @@ -futureTickQueue = new FutureTickQueue(); - $this->timers = new Timers(); - $this->pcntl = \function_exists('pcntl_signal') && \function_exists('pcntl_signal_dispatch'); - $this->pcntlPoll = $this->pcntl && !\function_exists('pcntl_async_signals'); - $this->signals = new SignalsHandler(); - - // prefer async signals if available (PHP 7.1+) or fall back to dispatching on each tick - if ($this->pcntl && !$this->pcntlPoll) { - \pcntl_async_signals(true); - } - } - - public function addReadStream($stream, $listener) - { - $key = (int) $stream; - - if (!isset($this->readStreams[$key])) { - $this->readStreams[$key] = $stream; - $this->readListeners[$key] = $listener; - } - } - - public function addWriteStream($stream, $listener) - { - $key = (int) $stream; - - if (!isset($this->writeStreams[$key])) { - $this->writeStreams[$key] = $stream; - $this->writeListeners[$key] = $listener; - } - } - - public function removeReadStream($stream) - { - $key = (int) $stream; - - unset( - $this->readStreams[$key], - $this->readListeners[$key] - ); - } - - public function removeWriteStream($stream) - { - $key = (int) $stream; - - unset( - $this->writeStreams[$key], - $this->writeListeners[$key] - ); - } - - public function addTimer($interval, $callback) - { - $timer = new Timer($interval, $callback, false); - - $this->timers->add($timer); - - return $timer; - } - - public function addPeriodicTimer($interval, $callback) - { - $timer = new Timer($interval, $callback, true); - - $this->timers->add($timer); - - return $timer; - } - - public function cancelTimer(TimerInterface $timer) - { - $this->timers->cancel($timer); - } - - public function futureTick($listener) - { - $this->futureTickQueue->add($listener); - } - - public function addSignal($signal, $listener) - { - if ($this->pcntl === false) { - throw new \BadMethodCallException('Event loop feature "signals" isn\'t supported by the "StreamSelectLoop"'); - } - - $first = $this->signals->count($signal) === 0; - $this->signals->add($signal, $listener); - - if ($first) { - \pcntl_signal($signal, array($this->signals, 'call')); - } - } - - public function removeSignal($signal, $listener) - { - if (!$this->signals->count($signal)) { - return; - } - - $this->signals->remove($signal, $listener); - - if ($this->signals->count($signal) === 0) { - \pcntl_signal($signal, \SIG_DFL); - } - } - - public function run() - { - $this->running = true; - - while ($this->running) { - $this->futureTickQueue->tick(); - - $this->timers->tick(); - - // Future-tick queue has pending callbacks ... - if (!$this->running || !$this->futureTickQueue->isEmpty()) { - $timeout = 0; - - // There is a pending timer, only block until it is due ... - } elseif ($scheduledAt = $this->timers->getFirst()) { - $timeout = $scheduledAt - $this->timers->getTime(); - if ($timeout < 0) { - $timeout = 0; - } else { - // Convert float seconds to int microseconds. - // Ensure we do not exceed maximum integer size, which may - // cause the loop to tick once every ~35min on 32bit systems. - $timeout *= self::MICROSECONDS_PER_SECOND; - $timeout = $timeout > \PHP_INT_MAX ? \PHP_INT_MAX : (int)$timeout; - } - - // The only possible event is stream or signal activity, so wait forever ... - } elseif ($this->readStreams || $this->writeStreams || !$this->signals->isEmpty()) { - $timeout = null; - - // There's nothing left to do ... - } else { - break; - } - - $this->waitForStreamActivity($timeout); - } - } - - public function stop() - { - $this->running = false; - } - - /** - * Wait/check for stream activity, or until the next timer is due. - * - * @param integer|null $timeout Activity timeout in microseconds, or null to wait forever. - */ - private function waitForStreamActivity($timeout) - { - $read = $this->readStreams; - $write = $this->writeStreams; - - $available = $this->streamSelect($read, $write, $timeout); - if ($this->pcntlPoll) { - \pcntl_signal_dispatch(); - } - if (false === $available) { - // if a system call has been interrupted, - // we cannot rely on it's outcome - return; - } - - foreach ($read as $stream) { - $key = (int) $stream; - - if (isset($this->readListeners[$key])) { - \call_user_func($this->readListeners[$key], $stream); - } - } - - foreach ($write as $stream) { - $key = (int) $stream; - - if (isset($this->writeListeners[$key])) { - \call_user_func($this->writeListeners[$key], $stream); - } - } - } - - /** - * Emulate a stream_select() implementation that does not break when passed - * empty stream arrays. - * - * @param array $read An array of read streams to select upon. - * @param array $write An array of write streams to select upon. - * @param int|null $timeout Activity timeout in microseconds, or null to wait forever. - * - * @return int|false The total number of streams that are ready for read/write. - * Can return false if stream_select() is interrupted by a signal. - */ - private function streamSelect(array &$read, array &$write, $timeout) - { - if ($read || $write) { - // We do not usually use or expose the `exceptfds` parameter passed to the underlying `select`. - // However, Windows does not report failed connection attempts in `writefds` passed to `select` like most other platforms. - // Instead, it uses `writefds` only for successful connection attempts and `exceptfds` for failed connection attempts. - // We work around this by adding all sockets that look like a pending connection attempt to `exceptfds` automatically on Windows and merge it back later. - // This ensures the public API matches other loop implementations across all platforms (see also test suite or rather test matrix). - // Lacking better APIs, every write-only socket that has not yet read any data is assumed to be in a pending connection attempt state. - // @link https://docs.microsoft.com/de-de/windows/win32/api/winsock2/nf-winsock2-select - $except = null; - if (\DIRECTORY_SEPARATOR === '\\') { - $except = array(); - foreach ($write as $key => $socket) { - if (!isset($read[$key]) && @\ftell($socket) === 0) { - $except[$key] = $socket; - } - } - } - - /** @var ?callable $previous */ - $previous = \set_error_handler(function ($errno, $errstr) use (&$previous) { - // suppress warnings that occur when `stream_select()` is interrupted by a signal - // PHP defines `EINTR` through `ext-sockets` or `ext-pcntl`, otherwise use common default (Linux & Mac) - $eintr = \defined('SOCKET_EINTR') ? \SOCKET_EINTR : (\defined('PCNTL_EINTR') ? \PCNTL_EINTR : 4); - if ($errno === \E_WARNING && \strpos($errstr, '[' . $eintr .']: ') !== false) { - return; - } - - // forward any other error to registered error handler or print warning - return ($previous !== null) ? \call_user_func_array($previous, \func_get_args()) : false; - }); - - try { - $ret = \stream_select($read, $write, $except, $timeout === null ? null : 0, $timeout); - \restore_error_handler(); - } catch (\Throwable $e) { // @codeCoverageIgnoreStart - \restore_error_handler(); - throw $e; - } catch (\Exception $e) { - \restore_error_handler(); - throw $e; - } // @codeCoverageIgnoreEnd - - if ($except) { - $write = \array_merge($write, $except); - } - return $ret; - } - - if ($timeout > 0) { - \usleep($timeout); - } elseif ($timeout === null) { - // wait forever (we only reach this if we're only awaiting signals) - // this may be interrupted and return earlier when a signal is received - \sleep(PHP_INT_MAX); - } - - return 0; - } -} diff --git a/vendor/react/event-loop/src/Tick/FutureTickQueue.php b/vendor/react/event-loop/src/Tick/FutureTickQueue.php deleted file mode 100644 index efabcbc..0000000 --- a/vendor/react/event-loop/src/Tick/FutureTickQueue.php +++ /dev/null @@ -1,60 +0,0 @@ -queue = new SplQueue(); - } - - /** - * Add a callback to be invoked on a future tick of the event loop. - * - * Callbacks are guaranteed to be executed in the order they are enqueued. - * - * @param callable $listener The callback to invoke. - */ - public function add($listener) - { - $this->queue->enqueue($listener); - } - - /** - * Flush the callback queue. - */ - public function tick() - { - // Only invoke as many callbacks as were on the queue when tick() was called. - $count = $this->queue->count(); - - while ($count--) { - \call_user_func( - $this->queue->dequeue() - ); - } - } - - /** - * Check if the next tick queue is empty. - * - * @return boolean - */ - public function isEmpty() - { - return $this->queue->isEmpty(); - } -} diff --git a/vendor/react/event-loop/src/Timer/Timer.php b/vendor/react/event-loop/src/Timer/Timer.php deleted file mode 100644 index da3602a..0000000 --- a/vendor/react/event-loop/src/Timer/Timer.php +++ /dev/null @@ -1,55 +0,0 @@ -interval = (float) $interval; - $this->callback = $callback; - $this->periodic = (bool) $periodic; - } - - public function getInterval() - { - return $this->interval; - } - - public function getCallback() - { - return $this->callback; - } - - public function isPeriodic() - { - return $this->periodic; - } -} diff --git a/vendor/react/event-loop/src/Timer/Timers.php b/vendor/react/event-loop/src/Timer/Timers.php deleted file mode 100644 index 53c46d0..0000000 --- a/vendor/react/event-loop/src/Timer/Timers.php +++ /dev/null @@ -1,113 +0,0 @@ -useHighResolution = \function_exists('hrtime'); - } - - public function updateTime() - { - return $this->time = $this->useHighResolution ? \hrtime(true) * 1e-9 : \microtime(true); - } - - public function getTime() - { - return $this->time ?: $this->updateTime(); - } - - public function add(TimerInterface $timer) - { - $id = \PHP_VERSION_ID < 70200 ? \spl_object_hash($timer) : \spl_object_id($timer); - $this->timers[$id] = $timer; - $this->schedule[$id] = $timer->getInterval() + $this->updateTime(); - $this->sorted = false; - } - - public function contains(TimerInterface $timer) - { - $id = \PHP_VERSION_ID < 70200 ? \spl_object_hash($timer) : \spl_object_id($timer); - return isset($this->timers[$id]); - } - - public function cancel(TimerInterface $timer) - { - $id = \PHP_VERSION_ID < 70200 ? \spl_object_hash($timer) : \spl_object_id($timer); - unset($this->timers[$id], $this->schedule[$id]); - } - - public function getFirst() - { - // ensure timers are sorted to simply accessing next (first) one - if (!$this->sorted) { - $this->sorted = true; - \asort($this->schedule); - } - - return \reset($this->schedule); - } - - public function isEmpty() - { - return \count($this->timers) === 0; - } - - public function tick() - { - // hot path: skip timers if nothing is scheduled - if (!$this->schedule) { - return; - } - - // ensure timers are sorted so we can execute in order - if (!$this->sorted) { - $this->sorted = true; - \asort($this->schedule); - } - - $time = $this->updateTime(); - - foreach ($this->schedule as $id => $scheduled) { - // schedule is ordered, so loop until first timer that is not scheduled for execution now - if ($scheduled >= $time) { - break; - } - - // skip any timers that are removed while we process the current schedule - if (!isset($this->schedule[$id]) || $this->schedule[$id] !== $scheduled) { - continue; - } - - $timer = $this->timers[$id]; - \call_user_func($timer->getCallback(), $timer); - - // re-schedule if this is a periodic timer and it has not been cancelled explicitly already - if ($timer->isPeriodic() && isset($this->timers[$id])) { - $this->schedule[$id] = $timer->getInterval() + $time; - $this->sorted = false; - } else { - unset($this->timers[$id], $this->schedule[$id]); - } - } - } -} diff --git a/vendor/react/event-loop/src/TimerInterface.php b/vendor/react/event-loop/src/TimerInterface.php deleted file mode 100644 index cdcf773..0000000 --- a/vendor/react/event-loop/src/TimerInterface.php +++ /dev/null @@ -1,27 +0,0 @@ -get('https://httpbingo.org/redirect/6')); - assert($response instanceof Psr\Http\Message\ResponseInterface); - ``` - -* Feature: Add `Request` class to represent outgoing HTTP request message. - (#480 by @clue) - -* Feature: Preserve request method and body for `307 Temporary Redirect` and `308 Permanent Redirect`. - (#442 by @dinooo13) - -* Feature: Include buffer logic to avoid dependency on reactphp/promise-stream. - (#482 by @clue) - -* Improve test suite and project setup and report failed assertions. - (#478 by @clue, #487 and #491 by @WyriHaximus and #475 and #479 by @SimonFrings) - -## 1.8.0 (2022-09-29) - -* Feature: Support for default request headers. - (#461 by @51imyy) - - ```php - $browser = new React\Http\Browser(); - $browser = $browser->withHeader('User-Agent', 'ACME'); - - $browser->get($url)->then(…); - ``` - -* Feature: Forward compatibility with upcoming Promise v3. - (#460 by @clue) - -## 1.7.0 (2022-08-23) - -This is a **SECURITY** and feature release for the 1.x series of ReactPHP's HTTP component. - -* Security fix: This release fixes a medium severity security issue in ReactPHP's HTTP server component - that affects all versions between `v0.7.0` and `v1.6.0`. All users are encouraged to upgrade immediately. - Special thanks to Marco Squarcina (TU Wien) for reporting this and working with us to coordinate this release. - (CVE-2022-36032 reported by @lavish and fixed by @clue) - -* Feature: Improve HTTP server performance by ~20%, reuse syscall values for clock time and socket addresses. - (#457 and #467 by @clue) - -* Feature: Full PHP 8.2+ compatibility, refactor internal `Transaction` to avoid assigning dynamic properties. - (#459 by @clue and #466 by @WyriHaximus) - -* Feature / Fix: Allow explicit `Content-Length` response header on `HEAD` requests. - (#444 by @mrsimonbennett) - -* Minor documentation improvements. - (#452 by @clue, #458 by @nhedger, #448 by @jorrit and #446 by @SimonFrings) - -* Improve test suite, update to use new reactphp/async package instead of clue/reactphp-block, - skip memory tests when lowering memory limit fails and fix legacy HHVM build. - (#464 and #440 by @clue and #450 by @SimonFrings) - -## 1.6.0 (2022-02-03) - -* Feature: Add factory methods for common HTML/JSON/plaintext/XML response types. - (#439 by @clue) - - ```php - $response = React\Http\Response\html("

Hello wörld!

\n"); - $response = React\Http\Response\json(['message' => 'Hello wörld!']); - $response = React\Http\Response\plaintext("Hello wörld!\n"); - $response = React\Http\Response\xml("Hello wörld!\n"); - ``` - -* Feature: Expose all status code constants via `Response` class. - (#432 by @clue) - - ```php - $response = new React\Http\Message\Response( - React\Http\Message\Response::STATUS_OK, // 200 OK - … - ); - $response = new React\Http\Message\Response( - React\Http\Message\Response::STATUS_NOT_FOUND, // 404 Not Found - … - ); - ``` - -* Feature: Full support for PHP 8.1 release. - (#433 by @SimonFrings and #434 by @clue) - -* Feature / Fix: Improve protocol handling for HTTP responses with no body. - (#429 and #430 by @clue) - -* Internal refactoring and internal improvements for handling requests and responses. - (#422 by @WyriHaximus and #431 by @clue) - -* Improve documentation, update proxy examples, include error reporting in examples. - (#420, #424, #426, and #427 by @clue) - -* Update test suite to use default loop. - (#438 by @clue) - -## 1.5.0 (2021-08-04) - -* Feature: Update `Browser` signature to take optional `$connector` as first argument and - to match new Socket API without nullable loop arguments. - (#418 and #419 by @clue) - - ```php - // unchanged - $browser = new React\Http\Browser(); - - // deprecated - $browser = new React\Http\Browser(null, $connector); - $browser = new React\Http\Browser($loop, $connector); - - // new - $browser = new React\Http\Browser($connector); - $browser = new React\Http\Browser($connector, $loop); - ``` - -* Feature: Rename `Server` to `HttpServer` to avoid class name collisions and - to avoid any ambiguities with regards to the new `SocketServer` API. - (#417 and #419 by @clue) - - ```php - // deprecated - $server = new React\Http\Server($handler); - $server->listen(new React\Socket\Server(8080)); - - // new - $http = new React\Http\HttpServer($handler); - $http->listen(new React\Socket\SocketServer('127.0.0.1:8080')); - ``` - -## 1.4.0 (2021-07-11) - -A major new feature release, see [**release announcement**](https://clue.engineering/2021/announcing-reactphp-default-loop). - -* Feature: Simplify usage by supporting new [default loop](https://reactphp.org/event-loop/#loop). - (#410 by @clue) - - ```php - // old (still supported) - $browser = new React\Http\Browser($loop); - $server = new React\Http\Server($loop, $handler); - - // new (using default loop) - $browser = new React\Http\Browser(); - $server = new React\Http\Server($handler); - ``` - -## 1.3.0 (2021-04-11) - -* Feature: Support persistent connections (`Connection: keep-alive`). - (#405 by @clue) - - This shows a noticeable performance improvement especially when benchmarking - using persistent connections (which is the default pretty much everywhere). - Together with other changes in this release, this improves benchmarking - performance by around 100%. - -* Feature: Require `Host` request header for HTTP/1.1 requests. - (#404 by @clue) - -* Minor documentation improvements. - (#398 by @fritz-gerneth and #399 and #400 by @pavog) - -* Improve test suite, use GitHub actions for continuous integration (CI). - (#402 by @SimonFrings) - -## 1.2.0 (2020-12-04) - -* Feature: Keep request body in memory also after consuming request body. - (#395 by @clue) - - This means consumers can now always access the complete request body as - detailed in the documentation. This allows building custom parsers and more - advanced processing models without having to mess with the default parsers. - -## 1.1.0 (2020-09-11) - -* Feature: Support upcoming PHP 8 release, update to reactphp/socket v1.6 and adjust type checks for invalid chunk headers. - (#391 by @clue) - -* Feature: Consistently resolve base URL according to HTTP specs. - (#379 by @clue) - -* Feature / Fix: Expose `Transfer-Encoding: chunked` response header and fix chunked responses for `HEAD` requests. - (#381 by @clue) - -* Internal refactoring to remove unneeded `MessageFactory` and `Response` classes. - (#380 and #389 by @clue) - -* Minor documentation improvements and improve test suite, update to support PHPUnit 9.3. - (#385 by @clue and #393 by @SimonFrings) - -## 1.0.0 (2020-07-11) - -A major new feature release, see [**release announcement**](https://clue.engineering/2020/announcing-reactphp-http). - -* First stable LTS release, now following [SemVer](https://semver.org/). - We'd like to emphasize that this component is production ready and battle-tested. - We plan to support all long-term support (LTS) releases for at least 24 months, - so you have a rock-solid foundation to build on top of. - -This update involves some major new features and a number of BC breaks due to -some necessary API cleanup. We've tried hard to avoid BC breaks where possible -and minimize impact otherwise. We expect that most consumers of this package -will be affected by BC breaks, but updating should take no longer than a few -minutes. See below for more details: - -* Feature: Add async HTTP client implementation. - (#368 by @clue) - - ```php - $browser = new React\Http\Browser($loop); - $browser->get($url)->then(function (Psr\Http\Message\ResponseInterface $response) { - echo $response->getBody(); - }); - ``` - - The code has been imported as-is from [clue/reactphp-buzz v2.9.0](https://github.com/clue/reactphp-buzz), - with only minor changes to the namespace and we otherwise leave all the existing APIs unchanged. - Upgrading from [clue/reactphp-buzz v2.9.0](https://github.com/clue/reactphp-buzz) - to this release should be a matter of updating some namespace references only: - - ```php - // old - $browser = new Clue\React\Buzz\Browser($loop); - - // new - $browser = new React\Http\Browser($loop); - ``` - -* Feature / BC break: Add `LoopInterface` as required first constructor argument to `Server` and - change `Server` to accept variadic middleware handlers instead of `array`. - (#361 and #362 by @WyriHaximus) - - ```php - // old - $server = new React\Http\Server($handler); - $server = new React\Http\Server([$middleware, $handler]); - - // new - $server = new React\Http\Server($loop, $handler); - $server = new React\Http\Server($loop, $middleware, $handler); - ``` - -* Feature / BC break: Move `Response` class to `React\Http\Message\Response` and - expose `ServerRequest` class to `React\Http\Message\ServerRequest`. - (#370 by @clue) - - ```php - // old - $response = new React\Http\Response(200, [], 'Hello!'); - - // new - $response = new React\Http\Message\Response(200, [], 'Hello!'); - ``` - -* Feature / BC break: Add `StreamingRequestMiddleware` to stream incoming requests, mark `StreamingServer` as internal. - (#367 by @clue) - - ```php - // old: advanced StreamingServer is now internal only - $server = new React\Http\StreamingServer($handler); - - // new: use StreamingRequestMiddleware instead of StreamingServer - $server = new React\Http\Server( - $loop, - new React\Http\Middleware\StreamingRequestMiddleware(), - $handler - ); - ``` - -* Feature / BC break: Improve default concurrency to 1024 requests and cap default request buffer at 64K. - (#371 by @clue) - - This improves default concurrency to 1024 requests and caps the default request buffer at 64K. - The previous defaults resulted in just 4 concurrent requests with a request buffer of 8M. - See [`Server`](README.md#server) for details on how to override these defaults. - -* Feature: Expose ReactPHP in `User-Agent` client-side request header and in `Server` server-side response header. - (#374 by @clue) - -* Mark all classes as `final` to discourage inheriting from it. - (#373 by @WyriHaximus) - -* Improve documentation and use fully-qualified class names throughout the documentation and - add ReactPHP core team as authors to `composer.json` and license file. - (#366 and #369 by @WyriHaximus and #375 by @clue) - -* Improve test suite and support skipping all online tests with `--exclude-group internet`. - (#372 by @clue) - -## 0.8.7 (2020-07-05) - -* Fix: Fix parsing multipart request body with quoted header parameters (dot net). - (#363 by @ebimmel) - -* Fix: Fix calculating concurrency when `post_max_size` ini is unlimited. - (#365 by @clue) - -* Improve test suite to run tests on PHPUnit 9 and clean up test suite. - (#364 by @SimonFrings) - -## 0.8.6 (2020-01-12) - -* Fix: Fix parsing `Cookie` request header with comma in its values. - (#352 by @fiskie) - -* Fix: Avoid unneeded warning when decoding invalid data on PHP 7.4. - (#357 by @WyriHaximus) - -* Add .gitattributes to exclude dev files from exports. - (#353 by @reedy) - -## 0.8.5 (2019-10-29) - -* Internal refactorings and optimizations to improve request parsing performance. - Benchmarks suggest number of requests/s improved by ~30% for common `GET` requests. - (#345, #346, #349 and #350 by @clue) - -* Add documentation and example for JSON/XML request body and - improve documentation for concurrency and streaming requests and for error handling. - (#341 and #342 by @clue) - -## 0.8.4 (2019-01-16) - -* Improvement: Internal refactoring to simplify response header logic. - (#321 by @clue) - -* Improvement: Assign Content-Length response header automatically only when size is known. - (#329 by @clue) - -* Improvement: Import global functions for better performance. - (#330 by @WyriHaximus) - -## 0.8.3 (2018-04-11) - -* Feature: Do not pause connection stream to detect closed connections immediately. - (#315 by @clue) - -* Feature: Keep incoming `Transfer-Encoding: chunked` request header. - (#316 by @clue) - -* Feature: Reject invalid requests that contain both `Content-Length` and `Transfer-Encoding` request headers. - (#318 by @clue) - -* Minor internal refactoring to simplify connection close logic after sending response. - (#317 by @clue) - -## 0.8.2 (2018-04-06) - -* Fix: Do not pass `$next` handler to final request handler. - (#308 by @clue) - -* Fix: Fix awaiting queued handlers when cancelling a queued handler. - (#313 by @clue) - -* Fix: Fix Server to skip `SERVER_ADDR` params for Unix domain sockets (UDS). - (#307 by @clue) - -* Documentation for PSR-15 middleware and minor documentation improvements. - (#314 by @clue and #297, #298 and #310 by @seregazhuk) - -* Minor code improvements and micro optimizations. - (#301 by @seregazhuk and #305 by @kalessil) - -## 0.8.1 (2018-01-05) - -* Major request handler performance improvement. Benchmarks suggest number of - requests/s improved by more than 50% for common `GET` requests! - We now avoid queuing, buffering and wrapping incoming requests in promises - when we're below limits and instead can directly process common requests. - (#291, #292, #293, #294 and #296 by @clue) - -* Fix: Fix concurrent invoking next middleware request handlers - (#293 by @clue) - -* Small code improvements - (#286 by @seregazhuk) - -* Improve test suite to be less fragile when using `ext-event` and - fix test suite forward compatibility with upcoming EventLoop releases - (#288 and #290 by @clue) - -## 0.8.0 (2017-12-12) - -* Feature / BC break: Add new `Server` facade that buffers and parses incoming - HTTP requests. This provides full PSR-7 compatibility, including support for - form submissions with POST fields and file uploads. - The old `Server` has been renamed to `StreamingServer` for advanced usage - and is used internally. - (#266, #271, #281, #282, #283 and #284 by @WyriHaximus and @clue) - - ```php - // old: handle incomplete/streaming requests - $server = new Server($handler); - - // new: handle complete, buffered and parsed requests - // new: full PSR-7 support, including POST fields and file uploads - $server = new Server($handler); - - // new: handle incomplete/streaming requests - $server = new StreamingServer($handler); - ``` - - > While this is technically a small BC break, this should in fact not break - most consuming code. If you rely on the old request streaming, you can - explicitly use the advanced `StreamingServer` to restore old behavior. - -* Feature: Add support for middleware request handler arrays - (#215, #228, #229, #236, #237, #238, #246, #247, #277, #279 and #285 by @WyriHaximus, @clue and @jsor) - - ```php - // new: middleware request handler arrays - $server = new Server(array( - function (ServerRequestInterface $request, callable $next) { - $request = $request->withHeader('Processed', time()); - return $next($request); - }, - function (ServerRequestInterface $request) { - return new Response(); - } - )); - ``` - -* Feature: Add support for limiting how many next request handlers can be - executed concurrently (`LimitConcurrentRequestsMiddleware`) - (#272 by @clue and @WyriHaximus) - - ```php - // new: explicitly limit concurrency - $server = new Server(array( - new LimitConcurrentRequestsMiddleware(10), - $handler - )); - ``` - -* Feature: Add support for buffering the incoming request body - (`RequestBodyBufferMiddleware`). - This feature mimics PHP's default behavior and respects its `post_max_size` - ini setting by default and allows explicit configuration. - (#216, #224, #263, #276 and #278 by @WyriHaximus and #235 by @andig) - - ```php - // new: buffer up to 10 requests with 8 MiB each - $server = new StreamingServer(array( - new LimitConcurrentRequestsMiddleware(10), - new RequestBodyBufferMiddleware('8M'), - $handler - )); - ``` - -* Feature: Add support for parsing form submissions with POST fields and file - uploads (`RequestBodyParserMiddleware`). - This feature mimics PHP's default behavior and respects its ini settings and - `MAX_FILE_SIZE` POST fields by default and allows explicit configuration. - (#220, #226, #252, #261, #264, #265, #267, #268, #274 by @WyriHaximus and @clue) - - ```php - // new: buffer up to 10 requests with 8 MiB each - // and limit to 4 uploads with 2 MiB each - $server = new StreamingServer(array( - new LimitConcurrentRequestsMiddleware(10), - new RequestBodyBufferMiddleware('8M'), - new RequestBodyParserMiddleware('2M', 4) - $handler - )); - ``` - -* Feature: Update Socket to work around sending secure HTTPS responses with PHP < 7.1.4 - (#244 by @clue) - -* Feature: Support sending same response header multiple times (e.g. `Set-Cookie`) - (#248 by @clue) - -* Feature: Raise maximum request header size to 8k to match common implementations - (#253 by @clue) - -* Improve test suite by adding forward compatibility with PHPUnit 6, test - against PHP 7.1 and PHP 7.2 and refactor and remove risky and duplicate tests. - (#243, #269 and #270 by @carusogabriel and #249 by @clue) - -* Minor code refactoring to move internal classes to `React\Http\Io` namespace - and clean up minor code and documentation issues - (#251 by @clue, #227 by @kalessil, #240 by @christoph-kluge, #230 by @jsor and #280 by @andig) - -## 0.7.4 (2017-08-16) - -* Improvement: Target evenement 3.0 a long side 2.0 and 1.0 - (#212 by @WyriHaximus) - -## 0.7.3 (2017-08-14) - -* Feature: Support `Throwable` when setting previous exception from server callback - (#155 by @jsor) - -* Fix: Fixed URI parsing for origin-form requests that contain scheme separator - such as `/path?param=http://example.com`. - (#209 by @aaronbonneau) - -* Improve test suite by locking Travis distro so new defaults will not break the build - (#211 by @clue) - -## 0.7.2 (2017-07-04) - -* Fix: Stricter check for invalid request-line in HTTP requests - (#206 by @clue) - -* Refactor to use HTTP response reason phrases from response object - (#205 by @clue) - -## 0.7.1 (2017-06-17) - -* Fix: Fix parsing CONNECT request without `Host` header - (#201 by @clue) - -* Internal preparation for future PSR-7 `UploadedFileInterface` - (#199 by @WyriHaximus) - -## 0.7.0 (2017-05-29) - -* Feature / BC break: Use PSR-7 (http-message) standard and - `Request-In-Response-Out`-style request handler callback. - Pass standard PSR-7 `ServerRequestInterface` and expect any standard - PSR-7 `ResponseInterface` in return for the request handler callback. - (#146 and #152 and #170 by @legionth) - - ```php - // old - $app = function (Request $request, Response $response) { - $response->writeHead(200, array('Content-Type' => 'text/plain')); - $response->end("Hello world!\n"); - }; - - // new - $app = function (ServerRequestInterface $request) { - return new Response( - 200, - array('Content-Type' => 'text/plain'), - "Hello world!\n" - ); - }; - ``` - - A `Content-Length` header will automatically be included if the size can be - determined from the response body. - (#164 by @maciejmrozinski) - - The request handler callback will automatically make sure that responses to - HEAD requests and certain status codes, such as `204` (No Content), never - contain a response body. - (#156 by @clue) - - The intermediary `100 Continue` response will automatically be sent if - demanded by a HTTP/1.1 client. - (#144 by @legionth) - - The request handler callback can now return a standard `Promise` if - processing the request needs some time, such as when querying a database. - Similarly, the request handler may return a streaming response if the - response body comes from a `ReadableStreamInterface` or its size is - unknown in advance. - - ```php - // old - $app = function (Request $request, Response $response) use ($db) { - $db->query()->then(function ($result) use ($response) { - $response->writeHead(200, array('Content-Type' => 'text/plain')); - $response->end($result); - }); - }; - - // new - $app = function (ServerRequestInterface $request) use ($db) { - return $db->query()->then(function ($result) { - return new Response( - 200, - array('Content-Type' => 'text/plain'), - $result - ); - }); - }; - ``` - - Pending promies and response streams will automatically be canceled once the - client connection closes. - (#187 and #188 by @clue) - - The `ServerRequestInterface` contains the full effective request URI, - server-side parameters, query parameters and parsed cookies values as - defined in PSR-7. - (#167 by @clue and #174, #175 and #180 by @legionth) - - ```php - $app = function (ServerRequestInterface $request) { - return new Response( - 200, - array('Content-Type' => 'text/plain'), - $request->getUri()->getScheme() - ); - }; - ``` - - Advanced: Support duplex stream response for `Upgrade` requests such as - `Upgrade: WebSocket` or custom protocols and `CONNECT` requests - (#189 and #190 by @clue) - - > Note that the request body will currently not be buffered and parsed by - default, which depending on your particilar use-case, may limit - interoperability with the PSR-7 (http-message) ecosystem. - The provided streaming request body interfaces allow you to perform - buffering and parsing as needed in the request handler callback. - See also the README and examples for more details. - -* Feature / BC break: Replace `request` listener with callback function and - use `listen()` method to support multiple listening sockets - (#97 by @legionth and #193 by @clue) - - ```php - // old - $server = new Server($socket); - $server->on('request', $app); - - // new - $server = new Server($app); - $server->listen($socket); - ``` - -* Feature: Support the more advanced HTTP requests, such as - `OPTIONS * HTTP/1.1` (`OPTIONS` method in asterisk-form), - `GET http://example.com/path HTTP/1.1` (plain proxy requests in absolute-form), - `CONNECT example.com:443 HTTP/1.1` (`CONNECT` proxy requests in authority-form) - and sanitize `Host` header value across all requests. - (#157, #158, #161, #165, #169 and #173 by @clue) - -* Feature: Forward compatibility with Socket v1.0, v0.8, v0.7 and v0.6 and - forward compatibility with Stream v1.0 and v0.7 - (#154, #163, #183, #184 and #191 by @clue) - -* Feature: Simplify examples to ease getting started and - add benchmarking example - (#151 and #162 by @clue) - -* Improve test suite by adding tests for case insensitive chunked transfer - encoding and ignoring HHVM test failures until Travis tests work again. - (#150 by @legionth and #185 by @clue) - -## 0.6.0 (2017-03-09) - -* Feature / BC break: The `Request` and `Response` objects now follow strict - stream semantics and their respective methods and events. - (#116, #129, #133, #135, #136, #137, #138, #140, #141 by @legionth - and #122, #123, #130, #131, #132, #142 by @clue) - - This implies that the `Server` now supports proper detection of the request - message body stream, such as supporting decoding chunked transfer encoding, - delimiting requests with an explicit `Content-Length` header - and those with an empty request message body. - - These streaming semantics are compatible with previous Stream v0.5, future - compatible with v0.5 and upcoming v0.6 versions and can be used like this: - - ```php - $http->on('request', function (Request $request, Response $response) { - $contentLength = 0; - $request->on('data', function ($data) use (&$contentLength) { - $contentLength += strlen($data); - }); - - $request->on('end', function () use ($response, &$contentLength){ - $response->writeHead(200, array('Content-Type' => 'text/plain')); - $response->end("The length of the submitted request body is: " . $contentLength); - }); - - // an error occured - // e.g. on invalid chunked encoded data or an unexpected 'end' event - $request->on('error', function (\Exception $exception) use ($response, &$contentLength) { - $response->writeHead(400, array('Content-Type' => 'text/plain')); - $response->end("An error occured while reading at length: " . $contentLength); - }); - }); - ``` - - Similarly, the `Request` and `Response` now strictly follow the - `close()` method and `close` event semantics. - Closing the `Request` does not interrupt the underlying TCP/IP in - order to allow still sending back a valid response message. - Closing the `Response` does terminate the underlying TCP/IP - connection in order to clean up resources. - - You should make sure to always attach a `request` event listener - like above. The `Server` will not respond to an incoming HTTP - request otherwise and keep the TCP/IP connection pending until the - other side chooses to close the connection. - -* Feature: Support `HTTP/1.1` and `HTTP/1.0` for `Request` and `Response`. - (#124, #125, #126, #127, #128 by @clue and #139 by @legionth) - - The outgoing `Response` will automatically use the same HTTP version as the - incoming `Request` message and will only apply `HTTP/1.1` semantics if - applicable. This includes that the `Response` will automatically attach a - `Date` and `Connection: close` header if applicable. - - This implies that the `Server` now automatically responds with HTTP error - messages for invalid requests (status 400) and those exceeding internal - request header limits (status 431). - -## 0.5.0 (2017-02-16) - -* Feature / BC break: Change `Request` methods to be in line with PSR-7 - (#117 by @clue) - * Rename `getQuery()` to `getQueryParams()` - * Rename `getHttpVersion()` to `getProtocolVersion()` - * Change `getHeaders()` to always return an array of string values - for each header - -* Feature / BC break: Update Socket component to v0.5 and - add secure HTTPS server support - (#90 and #119 by @clue) - - ```php - // old plaintext HTTP server - $socket = new React\Socket\Server($loop); - $socket->listen(8080, '127.0.0.1'); - $http = new React\Http\Server($socket); - - // new plaintext HTTP server - $socket = new React\Socket\Server('127.0.0.1:8080', $loop); - $http = new React\Http\Server($socket); - - // new secure HTTPS server - $socket = new React\Socket\Server('127.0.0.1:8080', $loop); - $socket = new React\Socket\SecureServer($socket, $loop, array( - 'local_cert' => __DIR__ . '/localhost.pem' - )); - $http = new React\Http\Server($socket); - ``` - -* BC break: Mark internal APIs as internal or private and - remove unneeded `ServerInterface` - (#118 by @clue, #95 by @legionth) - -## 0.4.4 (2017-02-13) - -* Feature: Add request header accessors (à la PSR-7) - (#103 by @clue) - - ```php - // get value of host header - $host = $request->getHeaderLine('Host'); - - // get list of all cookie headers - $cookies = $request->getHeader('Cookie'); - ``` - -* Feature: Forward `pause()` and `resume()` from `Request` to underlying connection - (#110 by @clue) - - ```php - // support back-pressure when piping request into slower destination - $request->pipe($dest); - - // manually pause/resume request - $request->pause(); - $request->resume(); - ``` - -* Fix: Fix `100-continue` to be handled case-insensitive and ignore it for HTTP/1.0. - Similarly, outgoing response headers are now handled case-insensitive, e.g - we no longer apply chunked transfer encoding with mixed-case `Content-Length`. - (#107 by @clue) - - ```php - // now handled case-insensitive - $request->expectsContinue(); - - // now works just like properly-cased header - $response->writeHead($status, array('content-length' => 0)); - ``` - -* Fix: Do not emit empty `data` events and ignore empty writes in order to - not mess up chunked transfer encoding - (#108 and #112 by @clue) - -* Lock and test minimum required dependency versions and support PHPUnit v5 - (#113, #115 and #114 by @andig) - -## 0.4.3 (2017-02-10) - -* Fix: Do not take start of body into account when checking maximum header size - (#88 by @nopolabs) - -* Fix: Remove `data` listener if `HeaderParser` emits an error - (#83 by @nick4fake) - -* First class support for PHP 5.3 through PHP 7 and HHVM - (#101 and #102 by @clue, #66 by @WyriHaximus) - -* Improve test suite by adding PHPUnit to require-dev, - improving forward compatibility with newer PHPUnit versions - and replacing unneeded test stubs - (#92 and #93 by @nopolabs, #100 by @legionth) - -## 0.4.2 (2016-11-09) - -* Remove all listeners after emitting error in RequestHeaderParser #68 @WyriHaximus -* Catch Guzzle parse request errors #65 @WyriHaximus -* Remove branch-alias definition as per reactphp/react#343 #58 @WyriHaximus -* Add functional example to ease getting started #64 by @clue -* Naming, immutable array manipulation #37 @cboden - -## 0.4.1 (2015-05-21) - -* Replaced guzzle/parser with guzzlehttp/psr7 by @cboden -* FIX Continue Header by @iannsp -* Missing type hint by @marenzo - -## 0.4.0 (2014-02-02) - -* BC break: Bump minimum PHP version to PHP 5.4, remove 5.3 specific hacks -* BC break: Update to React/Promise 2.0 -* BC break: Update to Evenement 2.0 -* Dependency: Autoloading and filesystem structure now PSR-4 instead of PSR-0 -* Bump React dependencies to v0.4 - -## 0.3.0 (2013-04-14) - -* Bump React dependencies to v0.3 - -## 0.2.6 (2012-12-26) - -* Bug fix: Emit end event when Response closes (@beaucollins) - -## 0.2.3 (2012-11-14) - -* Bug fix: Forward drain events from HTTP response (@cs278) -* Dependency: Updated guzzle deps to `3.0.*` - -## 0.2.2 (2012-10-28) - -* Version bump - -## 0.2.1 (2012-10-14) - -* Feature: Support HTTP 1.1 continue - -## 0.2.0 (2012-09-10) - -* Bump React dependencies to v0.2 - -## 0.1.1 (2012-07-12) - -* Version bump - -## 0.1.0 (2012-07-11) - -* First tagged release diff --git a/vendor/react/http/LICENSE b/vendor/react/http/LICENSE deleted file mode 100644 index d6f8901..0000000 --- a/vendor/react/http/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2012 Christian Lück, Cees-Jan Kiewiet, Jan Sorgalla, Chris Boden, Igor Wiedler - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is furnished -to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/vendor/react/http/README.md b/vendor/react/http/README.md deleted file mode 100644 index fd9ba46..0000000 --- a/vendor/react/http/README.md +++ /dev/null @@ -1,3024 +0,0 @@ -# HTTP - -[![CI status](https://github.com/reactphp/http/actions/workflows/ci.yml/badge.svg)](https://github.com/reactphp/http/actions) -[![installs on Packagist](https://img.shields.io/packagist/dt/react/http?color=blue&label=installs%20on%20Packagist)](https://packagist.org/packages/react/http) - -Event-driven, streaming HTTP client and server implementation for [ReactPHP](https://reactphp.org/). - -This HTTP library provides re-usable implementations for an HTTP client and -server based on ReactPHP's [`Socket`](https://github.com/reactphp/socket) and -[`EventLoop`](https://github.com/reactphp/event-loop) components. -Its client component allows you to send any number of async HTTP/HTTPS requests -concurrently. -Its server component allows you to build plaintext HTTP and secure HTTPS servers -that accept incoming HTTP requests from HTTP clients (such as web browsers). -This library provides async, streaming means for all of this, so you can handle -multiple concurrent HTTP requests without blocking. - -**Table of contents** - -* [Quickstart example](#quickstart-example) -* [Client Usage](#client-usage) - * [Request methods](#request-methods) - * [Promises](#promises) - * [Cancellation](#cancellation) - * [Timeouts](#timeouts) - * [Authentication](#authentication) - * [Redirects](#redirects) - * [Blocking](#blocking) - * [Concurrency](#concurrency) - * [Streaming response](#streaming-response) - * [Streaming request](#streaming-request) - * [HTTP proxy](#http-proxy) - * [SOCKS proxy](#socks-proxy) - * [SSH proxy](#ssh-proxy) - * [Unix domain sockets](#unix-domain-sockets) -* [Server Usage](#server-usage) - * [HttpServer](#httpserver) - * [listen()](#listen) - * [Server Request](#server-request) - * [Request parameters](#request-parameters) - * [Query parameters](#query-parameters) - * [Request body](#request-body) - * [Streaming incoming request](#streaming-incoming-request) - * [Request method](#request-method) - * [Cookie parameters](#cookie-parameters) - * [Invalid request](#invalid-request) - * [Server Response](#server-response) - * [Deferred response](#deferred-response) - * [Streaming outgoing response](#streaming-outgoing-response) - * [Response length](#response-length) - * [Invalid response](#invalid-response) - * [Default response headers](#default-response-headers) - * [Middleware](#middleware) - * [Custom middleware](#custom-middleware) - * [Third-Party Middleware](#third-party-middleware) -* [API](#api) - * [Browser](#browser) - * [get()](#get) - * [post()](#post) - * [head()](#head) - * [patch()](#patch) - * [put()](#put) - * [delete()](#delete) - * [request()](#request) - * [requestStreaming()](#requeststreaming) - * [withTimeout()](#withtimeout) - * [withFollowRedirects()](#withfollowredirects) - * [withRejectErrorResponse()](#withrejecterrorresponse) - * [withBase()](#withbase) - * [withProtocolVersion()](#withprotocolversion) - * [withResponseBuffer()](#withresponsebuffer) - * [withHeader()](#withheader) - * [withoutHeader()](#withoutheader) - * [React\Http\Message](#reacthttpmessage) - * [Response](#response) - * [html()](#html) - * [json()](#json) - * [plaintext()](#plaintext) - * [xml()](#xml) - * [Request](#request-1) - * [ServerRequest](#serverrequest) - * [Uri](#uri) - * [ResponseException](#responseexception) - * [React\Http\Middleware](#reacthttpmiddleware) - * [StreamingRequestMiddleware](#streamingrequestmiddleware) - * [LimitConcurrentRequestsMiddleware](#limitconcurrentrequestsmiddleware) - * [RequestBodyBufferMiddleware](#requestbodybuffermiddleware) - * [RequestBodyParserMiddleware](#requestbodyparsermiddleware) -* [Install](#install) -* [Tests](#tests) -* [License](#license) - -## Quickstart example - -Once [installed](#install), you can use the following code to access an -HTTP web server and send some simple HTTP GET requests: - -```php -get('http://www.google.com/')->then(function (Psr\Http\Message\ResponseInterface $response) { - var_dump($response->getHeaders(), (string)$response->getBody()); -}, function (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; -}); -``` - -This is an HTTP server which responds with `Hello World!` to every request. - -```php -listen($socket); -``` - -See also the [examples](examples/). - -## Client Usage - -### Request methods - -Most importantly, this project provides a [`Browser`](#browser) object that -offers several methods that resemble the HTTP protocol methods: - -```php -$browser->get($url, array $headers = array()); -$browser->head($url, array $headers = array()); -$browser->post($url, array $headers = array(), string|ReadableStreamInterface $body = ''); -$browser->delete($url, array $headers = array(), string|ReadableStreamInterface $body = ''); -$browser->put($url, array $headers = array(), string|ReadableStreamInterface $body = ''); -$browser->patch($url, array $headers = array(), string|ReadableStreamInterface $body = ''); -``` - -Each of these methods requires a `$url` and some optional parameters to send an -HTTP request. Each of these method names matches the respective HTTP request -method, for example the [`get()`](#get) method sends an HTTP `GET` request. - -You can optionally pass an associative array of additional `$headers` that will be -sent with this HTTP request. Additionally, each method will automatically add a -matching `Content-Length` request header if an outgoing request body is given and its -size is known and non-empty. For an empty request body, if will only include a -`Content-Length: 0` request header if the request method usually expects a request -body (only applies to `POST`, `PUT` and `PATCH` HTTP request methods). - -If you're using a [streaming request body](#streaming-request), it will default -to using `Transfer-Encoding: chunked` unless you explicitly pass in a matching `Content-Length` -request header. See also [streaming request](#streaming-request) for more details. - -By default, all of the above methods default to sending requests using the -HTTP/1.1 protocol version. If you want to explicitly use the legacy HTTP/1.0 -protocol version, you can use the [`withProtocolVersion()`](#withprotocolversion) -method. If you want to use any other or even custom HTTP request method, you can -use the [`request()`](#request) method. - -Each of the above methods supports async operation and either *fulfills* with a -[PSR-7 `ResponseInterface`](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) -or *rejects* with an `Exception`. -Please see the following chapter about [promises](#promises) for more details. - -### Promises - -Sending requests is async (non-blocking), so you can actually send multiple -requests in parallel. -The `Browser` will respond to each request with a -[PSR-7 `ResponseInterface`](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) -message, the order is not guaranteed. -Sending requests uses a [Promise](https://github.com/reactphp/promise)-based -interface that makes it easy to react to when an HTTP request is completed -(i.e. either successfully fulfilled or rejected with an error): - -```php -$browser->get($url)->then( - function (Psr\Http\Message\ResponseInterface $response) { - var_dump('Response received', $response); - }, - function (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; - } -); -``` - -If this looks strange to you, you can also use the more traditional [blocking API](#blocking). - -Keep in mind that resolving the Promise with the full response message means the -whole response body has to be kept in memory. -This is easy to get started and works reasonably well for smaller responses -(such as common HTML pages or RESTful or JSON API requests). - -You may also want to look into the [streaming API](#streaming-response): - -* If you're dealing with lots of concurrent requests (100+) or -* If you want to process individual data chunks as they happen (without having to wait for the full response body) or -* If you're expecting a big response body size (1 MiB or more, for example when downloading binary files) or -* If you're unsure about the response body size (better be safe than sorry when accessing arbitrary remote HTTP endpoints and the response body size is unknown in advance). - -### Cancellation - -The returned Promise is implemented in such a way that it can be cancelled -when it is still pending. -Cancelling a pending promise will reject its value with an Exception and -clean up any underlying resources. - -```php -$promise = $browser->get($url); - -Loop::addTimer(2.0, function () use ($promise) { - $promise->cancel(); -}); -``` - -### Timeouts - -This library uses a very efficient HTTP implementation, so most HTTP requests -should usually be completed in mere milliseconds. However, when sending HTTP -requests over an unreliable network (the internet), there are a number of things -that can go wrong and may cause the request to fail after a time. As such, this -library respects PHP's `default_socket_timeout` setting (default 60s) as a timeout -for sending the outgoing HTTP request and waiting for a successful response and -will otherwise cancel the pending request and reject its value with an Exception. - -Note that this timeout value covers creating the underlying transport connection, -sending the HTTP request, receiving the HTTP response headers and its full -response body and following any eventual [redirects](#redirects). See also -[redirects](#redirects) below to configure the number of redirects to follow (or -disable following redirects altogether) and also [streaming](#streaming-response) -below to not take receiving large response bodies into account for this timeout. - -You can use the [`withTimeout()` method](#withtimeout) to pass a custom timeout -value in seconds like this: - -```php -$browser = $browser->withTimeout(10.0); - -$browser->get($url)->then(function (Psr\Http\Message\ResponseInterface $response) { - // response received within 10 seconds maximum - var_dump($response->getHeaders()); -}, function (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; -}); -``` - -Similarly, you can use a bool `false` to not apply a timeout at all -or use a bool `true` value to restore the default handling. -See [`withTimeout()`](#withtimeout) for more details. - -If you're using a [streaming response body](#streaming-response), the time it -takes to receive the response body stream will not be included in the timeout. -This allows you to keep this incoming stream open for a longer time, such as -when downloading a very large stream or when streaming data over a long-lived -connection. - -If you're using a [streaming request body](#streaming-request), the time it -takes to send the request body stream will not be included in the timeout. This -allows you to keep this outgoing stream open for a longer time, such as when -uploading a very large stream. - -Note that this timeout handling applies to the higher-level HTTP layer. Lower -layers such as socket and DNS may also apply (different) timeout values. In -particular, the underlying socket connection uses the same `default_socket_timeout` -setting to establish the underlying transport connection. To control this -connection timeout behavior, you can [inject a custom `Connector`](#browser) -like this: - -```php -$browser = new React\Http\Browser( - new React\Socket\Connector( - array( - 'timeout' => 5 - ) - ) -); -``` - -### Authentication - -This library supports [HTTP Basic Authentication](https://en.wikipedia.org/wiki/Basic_access_authentication) -using the `Authorization: Basic …` request header or allows you to set an explicit -`Authorization` request header. - -By default, this library does not include an outgoing `Authorization` request -header. If the server requires authentication, if may return a `401` (Unauthorized) -status code which will reject the request by default (see also the -[`withRejectErrorResponse()` method](#withrejecterrorresponse) below). - -In order to pass authentication details, you can simply pass the username and -password as part of the request URL like this: - -```php -$promise = $browser->get('https://user:pass@example.com/api'); -``` - -Note that special characters in the authentication details have to be -percent-encoded, see also [`rawurlencode()`](https://www.php.net/manual/en/function.rawurlencode.php). -This example will automatically pass the base64-encoded authentication details -using the outgoing `Authorization: Basic …` request header. If the HTTP endpoint -you're talking to requires any other authentication scheme, you can also pass -this header explicitly. This is common when using (RESTful) HTTP APIs that use -OAuth access tokens or JSON Web Tokens (JWT): - -```php -$token = 'abc123'; - -$promise = $browser->get( - 'https://example.com/api', - array( - 'Authorization' => 'Bearer ' . $token - ) -); -``` - -When following redirects, the `Authorization` request header will never be sent -to any remote hosts by default. When following a redirect where the `Location` -response header contains authentication details, these details will be sent for -following requests. See also [redirects](#redirects) below. - -### Redirects - -By default, this library follows any redirects and obeys `3xx` (Redirection) -status codes using the `Location` response header from the remote server. -The promise will be fulfilled with the last response from the chain of redirects. - -```php -$browser->get($url, $headers)->then(function (Psr\Http\Message\ResponseInterface $response) { - // the final response will end up here - var_dump($response->getHeaders()); -}, function (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; -}); -``` - -Any redirected requests will follow the semantics of the original request and -will include the same request headers as the original request except for those -listed below. -If the original request is a temporary (307) or a permanent (308) redirect, request -body and headers will be passed to the redirected request. Otherwise, the request -body will never be passed to the redirected request. Accordingly, each redirected -request will remove any `Content-Length` and `Content-Type` request headers. - -If the original request used HTTP authentication with an `Authorization` request -header, this request header will only be passed as part of the redirected -request if the redirected URL is using the same host. In other words, the -`Authorizaton` request header will not be forwarded to other foreign hosts due to -possible privacy/security concerns. When following a redirect where the `Location` -response header contains authentication details, these details will be sent for -following requests. - -You can use the [`withFollowRedirects()`](#withfollowredirects) method to -control the maximum number of redirects to follow or to return any redirect -responses as-is and apply custom redirection logic like this: - -```php -$browser = $browser->withFollowRedirects(false); - -$browser->get($url)->then(function (Psr\Http\Message\ResponseInterface $response) { - // any redirects will now end up here - var_dump($response->getHeaders()); -}, function (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; -}); -``` - -See also [`withFollowRedirects()`](#withfollowredirects) for more details. - -### Blocking - -As stated above, this library provides you a powerful, async API by default. - -You can also integrate this into your traditional, blocking environment by using -[reactphp/async](https://github.com/reactphp/async). This allows you to simply -await async HTTP requests like this: - -```php -use function React\Async\await; - -$browser = new React\Http\Browser(); - -$promise = $browser->get('http://example.com/'); - -try { - $response = await($promise); - // response successfully received -} catch (Exception $e) { - // an error occurred while performing the request -} -``` - -Similarly, you can also process multiple requests concurrently and await an array of `Response` objects: - -```php -use function React\Async\await; -use function React\Promise\all; - -$promises = array( - $browser->get('http://example.com/'), - $browser->get('http://www.example.org/'), -); - -$responses = await(all($promises)); -``` - -This is made possible thanks to fibers available in PHP 8.1+ and our -compatibility API that also works on all supported PHP versions. -Please refer to [reactphp/async](https://github.com/reactphp/async#readme) for more details. - -Keep in mind the above remark about buffering the whole response message in memory. -As an alternative, you may also see one of the following chapters for the -[streaming API](#streaming-response). - -### Concurrency - -As stated above, this library provides you a powerful, async API. Being able to -send a large number of requests at once is one of the core features of this -project. For instance, you can easily send 100 requests concurrently while -processing SQL queries at the same time. - -Remember, with great power comes great responsibility. Sending an excessive -number of requests may either take up all resources on your side or it may even -get you banned by the remote side if it sees an unreasonable number of requests -from your side. - -```php -// watch out if array contains many elements -foreach ($urls as $url) { - $browser->get($url)->then(function (Psr\Http\Message\ResponseInterface $response) { - var_dump($response->getHeaders()); - }, function (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; - }); -} -``` - -As a consequence, it's usually recommended to limit concurrency on the sending -side to a reasonable value. It's common to use a rather small limit, as doing -more than a dozen of things at once may easily overwhelm the receiving side. You -can use [clue/reactphp-mq](https://github.com/clue/reactphp-mq) as a lightweight -in-memory queue to concurrently do many (but not too many) things at once: - -```php -// wraps Browser in a Queue object that executes no more than 10 operations at once -$q = new Clue\React\Mq\Queue(10, null, function ($url) use ($browser) { - return $browser->get($url); -}); - -foreach ($urls as $url) { - $q($url)->then(function (Psr\Http\Message\ResponseInterface $response) { - var_dump($response->getHeaders()); - }, function (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; - }); -} -``` - -Additional requests that exceed the concurrency limit will automatically be -enqueued until one of the pending requests completes. This integrates nicely -with the existing [Promise-based API](#promises). Please refer to -[clue/reactphp-mq](https://github.com/clue/reactphp-mq) for more details. - -This in-memory approach works reasonably well for some thousand outstanding -requests. If you're processing a very large input list (think millions of rows -in a CSV or NDJSON file), you may want to look into using a streaming approach -instead. See [clue/reactphp-flux](https://github.com/clue/reactphp-flux) for -more details. - -### Streaming response - -All of the above examples assume you want to store the whole response body in memory. -This is easy to get started and works reasonably well for smaller responses. - -However, there are several situations where it's usually a better idea to use a -streaming approach, where only small chunks have to be kept in memory: - -* If you're dealing with lots of concurrent requests (100+) or -* If you want to process individual data chunks as they happen (without having to wait for the full response body) or -* If you're expecting a big response body size (1 MiB or more, for example when downloading binary files) or -* If you're unsure about the response body size (better be safe than sorry when accessing arbitrary remote HTTP endpoints and the response body size is unknown in advance). - -You can use the [`requestStreaming()`](#requeststreaming) method to send an -arbitrary HTTP request and receive a streaming response. It uses the same HTTP -message API, but does not buffer the response body in memory. It only processes -the response body in small chunks as data is received and forwards this data -through [ReactPHP's Stream API](https://github.com/reactphp/stream). This works -for (any number of) responses of arbitrary sizes. - -This means it resolves with a normal -[PSR-7 `ResponseInterface`](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface), -which can be used to access the response message parameters as usual. -You can access the message body as usual, however it now also -implements [ReactPHP's `ReadableStreamInterface`](https://github.com/reactphp/stream#readablestreaminterface) -as well as parts of the [PSR-7 `StreamInterface`](https://www.php-fig.org/psr/psr-7/#34-psrhttpmessagestreaminterface). - -```php -$browser->requestStreaming('GET', $url)->then(function (Psr\Http\Message\ResponseInterface $response) { - $body = $response->getBody(); - assert($body instanceof Psr\Http\Message\StreamInterface); - assert($body instanceof React\Stream\ReadableStreamInterface); - - $body->on('data', function ($chunk) { - echo $chunk; - }); - - $body->on('error', function (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; - }); - - $body->on('close', function () { - echo '[DONE]' . PHP_EOL; - }); -}, function (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; -}); -``` - -See also the [stream download benchmark example](examples/91-client-benchmark-download.php) and -the [stream forwarding example](examples/21-client-request-streaming-to-stdout.php). - -You can invoke the following methods on the message body: - -```php -$body->on($event, $callback); -$body->eof(); -$body->isReadable(); -$body->pipe(React\Stream\WritableStreamInterface $dest, array $options = array()); -$body->close(); -$body->pause(); -$body->resume(); -``` - -Because the message body is in a streaming state, invoking the following methods -doesn't make much sense: - -```php -$body->__toString(); // '' -$body->detach(); // throws BadMethodCallException -$body->getSize(); // null -$body->tell(); // throws BadMethodCallException -$body->isSeekable(); // false -$body->seek(); // throws BadMethodCallException -$body->rewind(); // throws BadMethodCallException -$body->isWritable(); // false -$body->write(); // throws BadMethodCallException -$body->read(); // throws BadMethodCallException -$body->getContents(); // throws BadMethodCallException -``` - -Note how [timeouts](#timeouts) apply slightly differently when using streaming. -In streaming mode, the timeout value covers creating the underlying transport -connection, sending the HTTP request, receiving the HTTP response headers and -following any eventual [redirects](#redirects). In particular, the timeout value -does not take receiving (possibly large) response bodies into account. - -If you want to integrate the streaming response into a higher level API, then -working with Promise objects that resolve with Stream objects is often inconvenient. -Consider looking into also using [react/promise-stream](https://github.com/reactphp/promise-stream). -The resulting streaming code could look something like this: - -```php -use React\Promise\Stream; - -function download(Browser $browser, string $url): React\Stream\ReadableStreamInterface { - return Stream\unwrapReadable( - $browser->requestStreaming('GET', $url)->then(function (Psr\Http\Message\ResponseInterface $response) { - return $response->getBody(); - }) - ); -} - -$stream = download($browser, $url); -$stream->on('data', function ($data) { - echo $data; -}); -$stream->on('error', function (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; -}); -``` - -See also the [`requestStreaming()`](#requeststreaming) method for more details. - -### Streaming request - -Besides streaming the response body, you can also stream the request body. -This can be useful if you want to send big POST requests (uploading files etc.) -or process many outgoing streams at once. -Instead of passing the body as a string, you can simply pass an instance -implementing [ReactPHP's `ReadableStreamInterface`](https://github.com/reactphp/stream#readablestreaminterface) -to the [request methods](#request-methods) like this: - -```php -$browser->post($url, array(), $stream)->then(function (Psr\Http\Message\ResponseInterface $response) { - echo 'Successfully sent.'; -}, function (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; -}); -``` - -If you're using a streaming request body (`React\Stream\ReadableStreamInterface`), it will -default to using `Transfer-Encoding: chunked` or you have to explicitly pass in a -matching `Content-Length` request header like so: - -```php -$body = new React\Stream\ThroughStream(); -Loop::addTimer(1.0, function () use ($body) { - $body->end("hello world"); -}); - -$browser->post($url, array('Content-Length' => '11'), $body); -``` - -If the streaming request body emits an `error` event or is explicitly closed -without emitting a successful `end` event first, the request will automatically -be closed and rejected. - -### HTTP proxy - -You can also establish your outgoing connections through an HTTP CONNECT proxy server -by adding a dependency to [clue/reactphp-http-proxy](https://github.com/clue/reactphp-http-proxy). - -HTTP CONNECT proxy servers (also commonly known as "HTTPS proxy" or "SSL proxy") -are commonly used to tunnel HTTPS traffic through an intermediary ("proxy"), to -conceal the origin address (anonymity) or to circumvent address blocking -(geoblocking). While many (public) HTTP CONNECT proxy servers often limit this -to HTTPS port `443` only, this can technically be used to tunnel any TCP/IP-based -protocol, such as plain HTTP and TLS-encrypted HTTPS. - -```php -$proxy = new Clue\React\HttpProxy\ProxyConnector('127.0.0.1:8080'); - -$connector = new React\Socket\Connector(array( - 'tcp' => $proxy, - 'dns' => false -)); - -$browser = new React\Http\Browser($connector); -``` - -See also the [HTTP proxy example](examples/11-client-http-proxy.php). - -### SOCKS proxy - -You can also establish your outgoing connections through a SOCKS proxy server -by adding a dependency to [clue/reactphp-socks](https://github.com/clue/reactphp-socks). - -The SOCKS proxy protocol family (SOCKS5, SOCKS4 and SOCKS4a) is commonly used to -tunnel HTTP(S) traffic through an intermediary ("proxy"), to conceal the origin -address (anonymity) or to circumvent address blocking (geoblocking). While many -(public) SOCKS proxy servers often limit this to HTTP(S) port `80` and `443` -only, this can technically be used to tunnel any TCP/IP-based protocol. - -```php -$proxy = new Clue\React\Socks\Client('127.0.0.1:1080'); - -$connector = new React\Socket\Connector(array( - 'tcp' => $proxy, - 'dns' => false -)); - -$browser = new React\Http\Browser($connector); -``` - -See also the [SOCKS proxy example](examples/12-client-socks-proxy.php). - -### SSH proxy - -You can also establish your outgoing connections through an SSH server -by adding a dependency to [clue/reactphp-ssh-proxy](https://github.com/clue/reactphp-ssh-proxy). - -[Secure Shell (SSH)](https://en.wikipedia.org/wiki/Secure_Shell) is a secure -network protocol that is most commonly used to access a login shell on a remote -server. Its architecture allows it to use multiple secure channels over a single -connection. Among others, this can also be used to create an "SSH tunnel", which -is commonly used to tunnel HTTP(S) traffic through an intermediary ("proxy"), to -conceal the origin address (anonymity) or to circumvent address blocking -(geoblocking). This can be used to tunnel any TCP/IP-based protocol (HTTP, SMTP, -IMAP etc.), allows you to access local services that are otherwise not accessible -from the outside (database behind firewall) and as such can also be used for -plain HTTP and TLS-encrypted HTTPS. - -```php -$proxy = new Clue\React\SshProxy\SshSocksConnector('alice@example.com'); - -$connector = new React\Socket\Connector(array( - 'tcp' => $proxy, - 'dns' => false -)); - -$browser = new React\Http\Browser($connector); -``` - -See also the [SSH proxy example](examples/13-client-ssh-proxy.php). - -### Unix domain sockets - -By default, this library supports transport over plaintext TCP/IP and secure -TLS connections for the `http://` and `https://` URL schemes respectively. -This library also supports Unix domain sockets (UDS) when explicitly configured. - -In order to use a UDS path, you have to explicitly configure the connector to -override the destination URL so that the hostname given in the request URL will -no longer be used to establish the connection: - -```php -$connector = new React\Socket\FixedUriConnector( - 'unix:///var/run/docker.sock', - new React\Socket\UnixConnector() -); - -$browser = new React\Http\Browser($connector); - -$client->get('http://localhost/info')->then(function (Psr\Http\Message\ResponseInterface $response) { - var_dump($response->getHeaders(), (string)$response->getBody()); -}, function (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; -}); -``` - -See also the [Unix Domain Sockets (UDS) example](examples/14-client-unix-domain-sockets.php). - - -## Server Usage - -### HttpServer - - - -The `React\Http\HttpServer` class is responsible for handling incoming connections and then -processing each incoming HTTP request. - -When a complete HTTP request has been received, it will invoke the given -request handler function. This request handler function needs to be passed to -the constructor and will be invoked with the respective [request](#server-request) -object and expects a [response](#server-response) object in return: - -```php -$http = new React\Http\HttpServer(function (Psr\Http\Message\ServerRequestInterface $request) { - return React\Http\Message\Response::plaintext( - "Hello World!\n" - ); -}); -``` - -Each incoming HTTP request message is always represented by the -[PSR-7 `ServerRequestInterface`](https://www.php-fig.org/psr/psr-7/#321-psrhttpmessageserverrequestinterface), -see also following [request](#server-request) chapter for more details. - -Each outgoing HTTP response message is always represented by the -[PSR-7 `ResponseInterface`](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface), -see also following [response](#server-response) chapter for more details. - -This class takes an optional `LoopInterface|null $loop` parameter that can be used to -pass the event loop instance to use for this object. You can use a `null` value -here in order to use the [default loop](https://github.com/reactphp/event-loop#loop). -This value SHOULD NOT be given unless you're sure you want to explicitly use a -given event loop instance. - -In order to start listening for any incoming connections, the `HttpServer` needs -to be attached to an instance of -[`React\Socket\ServerInterface`](https://github.com/reactphp/socket#serverinterface) -through the [`listen()`](#listen) method as described in the following -chapter. In its most simple form, you can attach this to a -[`React\Socket\SocketServer`](https://github.com/reactphp/socket#socketserver) -in order to start a plaintext HTTP server like this: - -```php -$http = new React\Http\HttpServer($handler); - -$socket = new React\Socket\SocketServer('0.0.0.0:8080'); -$http->listen($socket); -``` - -See also the [`listen()`](#listen) method and the -[hello world server example](examples/51-server-hello-world.php) -for more details. - -By default, the `HttpServer` buffers and parses the complete incoming HTTP -request in memory. It will invoke the given request handler function when the -complete request headers and request body has been received. This means the -[request](#server-request) object passed to your request handler function will be -fully compatible with PSR-7 (http-message). This provides sane defaults for -80% of the use cases and is the recommended way to use this library unless -you're sure you know what you're doing. - -On the other hand, buffering complete HTTP requests in memory until they can -be processed by your request handler function means that this class has to -employ a number of limits to avoid consuming too much memory. In order to -take the more advanced configuration out your hand, it respects setting from -your [`php.ini`](https://www.php.net/manual/en/ini.core.php) to apply its -default settings. This is a list of PHP settings this class respects with -their respective default values: - -``` -memory_limit 128M -post_max_size 8M // capped at 64K - -enable_post_data_reading 1 -max_input_nesting_level 64 -max_input_vars 1000 - -file_uploads 1 -upload_max_filesize 2M -max_file_uploads 20 -``` - -In particular, the `post_max_size` setting limits how much memory a single -HTTP request is allowed to consume while buffering its request body. This -needs to be limited because the server can process a large number of requests -concurrently, so the server may potentially consume a large amount of memory -otherwise. To support higher concurrency by default, this value is capped -at `64K`. If you assign a higher value, it will only allow `64K` by default. -If a request exceeds this limit, its request body will be ignored and it will -be processed like a request with no request body at all. See below for -explicit configuration to override this setting. - -By default, this class will try to avoid consuming more than half of your -`memory_limit` for buffering multiple concurrent HTTP requests. As such, with -the above default settings of `128M` max, it will try to consume no more than -`64M` for buffering multiple concurrent HTTP requests. As a consequence, it -will limit the concurrency to `1024` HTTP requests with the above defaults. - -It is imperative that you assign reasonable values to your PHP ini settings. -It is usually recommended to not support buffering incoming HTTP requests -with a large HTTP request body (e.g. large file uploads). If you want to -increase this buffer size, you will have to also increase the total memory -limit to allow for more concurrent requests (set `memory_limit 512M` or more) -or explicitly limit concurrency. - -In order to override the above buffering defaults, you can configure the -`HttpServer` explicitly. You can use the -[`LimitConcurrentRequestsMiddleware`](#limitconcurrentrequestsmiddleware) and -[`RequestBodyBufferMiddleware`](#requestbodybuffermiddleware) (see below) -to explicitly configure the total number of requests that can be handled at -once like this: - -```php -$http = new React\Http\HttpServer( - new React\Http\Middleware\StreamingRequestMiddleware(), - new React\Http\Middleware\LimitConcurrentRequestsMiddleware(100), // 100 concurrent buffering handlers - new React\Http\Middleware\RequestBodyBufferMiddleware(2 * 1024 * 1024), // 2 MiB per request - new React\Http\Middleware\RequestBodyParserMiddleware(), - $handler -); -``` - -In this example, we allow processing up to 100 concurrent requests at once -and each request can buffer up to `2M`. This means you may have to keep a -maximum of `200M` of memory for incoming request body buffers. Accordingly, -you need to adjust the `memory_limit` ini setting to allow for these buffers -plus your actual application logic memory requirements (think `512M` or more). - -> Internally, this class automatically assigns these middleware handlers - automatically when no [`StreamingRequestMiddleware`](#streamingrequestmiddleware) - is given. Accordingly, you can use this example to override all default - settings to implement custom limits. - -As an alternative to buffering the complete request body in memory, you can -also use a streaming approach where only small chunks of data have to be kept -in memory: - -```php -$http = new React\Http\HttpServer( - new React\Http\Middleware\StreamingRequestMiddleware(), - $handler -); -``` - -In this case, it will invoke the request handler function once the HTTP -request headers have been received, i.e. before receiving the potentially -much larger HTTP request body. This means the [request](#server-request) passed to -your request handler function may not be fully compatible with PSR-7. This is -specifically designed to help with more advanced use cases where you want to -have full control over consuming the incoming HTTP request body and -concurrency settings. See also [streaming incoming request](#streaming-incoming-request) -below for more details. - -> Changelog v1.5.0: This class has been renamed to `HttpServer` from the - previous `Server` class in order to avoid any ambiguities. - The previous name has been deprecated and should not be used anymore. - -### listen() - -The `listen(React\Socket\ServerInterface $socket): void` method can be used to -start listening for HTTP requests on the given socket server instance. - -The given [`React\Socket\ServerInterface`](https://github.com/reactphp/socket#serverinterface) -is responsible for emitting the underlying streaming connections. This -HTTP server needs to be attached to it in order to process any -connections and pase incoming streaming data as incoming HTTP request -messages. In its most common form, you can attach this to a -[`React\Socket\SocketServer`](https://github.com/reactphp/socket#socketserver) -in order to start a plaintext HTTP server like this: - -```php -$http = new React\Http\HttpServer($handler); - -$socket = new React\Socket\SocketServer('0.0.0.0:8080'); -$http->listen($socket); -``` - -See also [hello world server example](examples/51-server-hello-world.php) -for more details. - -This example will start listening for HTTP requests on the alternative -HTTP port `8080` on all interfaces (publicly). As an alternative, it is -very common to use a reverse proxy and let this HTTP server listen on the -localhost (loopback) interface only by using the listen address -`127.0.0.1:8080` instead. This way, you host your application(s) on the -default HTTP port `80` and only route specific requests to this HTTP -server. - -Likewise, it's usually recommended to use a reverse proxy setup to accept -secure HTTPS requests on default HTTPS port `443` (TLS termination) and -only route plaintext requests to this HTTP server. As an alternative, you -can also accept secure HTTPS requests with this HTTP server by attaching -this to a [`React\Socket\SocketServer`](https://github.com/reactphp/socket#socketserver) -using a secure TLS listen address, a certificate file and optional -`passphrase` like this: - -```php -$http = new React\Http\HttpServer($handler); - -$socket = new React\Socket\SocketServer('tls://0.0.0.0:8443', array( - 'tls' => array( - 'local_cert' => __DIR__ . '/localhost.pem' - ) -)); -$http->listen($socket); -``` - -See also [hello world HTTPS example](examples/61-server-hello-world-https.php) -for more details. - -### Server Request - -As seen above, the [`HttpServer`](#httpserver) class is responsible for handling -incoming connections and then processing each incoming HTTP request. - -The request object will be processed once the request has -been received by the client. -This request object implements the -[PSR-7 `ServerRequestInterface`](https://www.php-fig.org/psr/psr-7/#321-psrhttpmessageserverrequestinterface) -which in turn extends the -[PSR-7 `RequestInterface`](https://www.php-fig.org/psr/psr-7/#32-psrhttpmessagerequestinterface) -and will be passed to the callback function like this. - - ```php -$http = new React\Http\HttpServer(function (Psr\Http\Message\ServerRequestInterface $request) { - $body = "The method of the request is: " . $request->getMethod() . "\n"; - $body .= "The requested path is: " . $request->getUri()->getPath() . "\n"; - - return React\Http\Message\Response::plaintext( - $body - ); -}); -``` - -For more details about the request object, also check out the documentation of -[PSR-7 `ServerRequestInterface`](https://www.php-fig.org/psr/psr-7/#321-psrhttpmessageserverrequestinterface) -and -[PSR-7 `RequestInterface`](https://www.php-fig.org/psr/psr-7/#32-psrhttpmessagerequestinterface). - -#### Request parameters - -The `getServerParams(): mixed[]` method can be used to -get server-side parameters similar to the `$_SERVER` variable. -The following parameters are currently available: - -* `REMOTE_ADDR` - The IP address of the request sender -* `REMOTE_PORT` - Port of the request sender -* `SERVER_ADDR` - The IP address of the server -* `SERVER_PORT` - The port of the server -* `REQUEST_TIME` - Unix timestamp when the complete request header has been received, - as integer similar to `time()` -* `REQUEST_TIME_FLOAT` - Unix timestamp when the complete request header has been received, - as float similar to `microtime(true)` -* `HTTPS` - Set to 'on' if the request used HTTPS, otherwise it won't be set - -```php -$http = new React\Http\HttpServer(function (Psr\Http\Message\ServerRequestInterface $request) { - $body = "Your IP is: " . $request->getServerParams()['REMOTE_ADDR'] . "\n"; - - return React\Http\Message\Response::plaintext( - $body - ); -}); -``` - -See also [whatsmyip server example](examples/53-server-whatsmyip.php). - -> Advanced: Note that address parameters will not be set if you're listening on - a Unix domain socket (UDS) path as this protocol lacks the concept of - host/port. - -#### Query parameters - -The `getQueryParams(): array` method can be used to get the query parameters -similiar to the `$_GET` variable. - -```php -$http = new React\Http\HttpServer(function (Psr\Http\Message\ServerRequestInterface $request) { - $queryParams = $request->getQueryParams(); - - $body = 'The query parameter "foo" is not set. Click the following link '; - $body .= 'to use query parameter in your request'; - - if (isset($queryParams['foo'])) { - $body = 'The value of "foo" is: ' . htmlspecialchars($queryParams['foo']); - } - - return React\Http\Message\Response::html( - $body - ); -}); -``` - -The response in the above example will return a response body with a link. -The URL contains the query parameter `foo` with the value `bar`. -Use [`htmlentities`](https://www.php.net/manual/en/function.htmlentities.php) -like in this example to prevent -[Cross-Site Scripting (abbreviated as XSS)](https://en.wikipedia.org/wiki/Cross-site_scripting). - -See also [server query parameters example](examples/54-server-query-parameter.php). - -#### Request body - -By default, the [`Server`](#httpserver) will buffer and parse the full request body -in memory. This means the given request object includes the parsed request body -and any file uploads. - -> As an alternative to the default buffering logic, you can also use the - [`StreamingRequestMiddleware`](#streamingrequestmiddleware). Jump to the next - chapter to learn more about how to process a - [streaming incoming request](#streaming-incoming-request). - -As stated above, each incoming HTTP request is always represented by the -[PSR-7 `ServerRequestInterface`](https://www.php-fig.org/psr/psr-7/#321-psrhttpmessageserverrequestinterface). -This interface provides several methods that are useful when working with the -incoming request body as described below. - -The `getParsedBody(): null|array|object` method can be used to -get the parsed request body, similar to -[PHP's `$_POST` variable](https://www.php.net/manual/en/reserved.variables.post.php). -This method may return a (possibly nested) array structure with all body -parameters or a `null` value if the request body could not be parsed. -By default, this method will only return parsed data for requests using -`Content-Type: application/x-www-form-urlencoded` or `Content-Type: multipart/form-data` -request headers (commonly used for `POST` requests for HTML form submission data). - -```php -$http = new React\Http\HttpServer(function (Psr\Http\Message\ServerRequestInterface $request) { - $name = $request->getParsedBody()['name'] ?? 'anonymous'; - - return React\Http\Message\Response::plaintext( - "Hello $name!\n" - ); -}); -``` - -See also [form upload example](examples/62-server-form-upload.php) for more details. - -The `getBody(): StreamInterface` method can be used to -get the raw data from this request body, similar to -[PHP's `php://input` stream](https://www.php.net/manual/en/wrappers.php.php#wrappers.php.input). -This method returns an instance of the request body represented by the -[PSR-7 `StreamInterface`](https://www.php-fig.org/psr/psr-7/#34-psrhttpmessagestreaminterface). -This is particularly useful when using a custom request body that will not -otherwise be parsed by default, such as a JSON (`Content-Type: application/json`) or -an XML (`Content-Type: application/xml`) request body (which is commonly used for -`POST`, `PUT` or `PATCH` requests in JSON-based or RESTful/RESTish APIs). - -```php -$http = new React\Http\HttpServer(function (Psr\Http\Message\ServerRequestInterface $request) { - $data = json_decode((string)$request->getBody()); - $name = $data->name ?? 'anonymous'; - - return React\Http\Message\Response::json( - ['message' => "Hello $name!"] - ); -}); -``` - -See also [JSON API server example](examples/59-server-json-api.php) for more details. - -The `getUploadedFiles(): array` method can be used to -get the uploaded files in this request, similar to -[PHP's `$_FILES` variable](https://www.php.net/manual/en/reserved.variables.files.php). -This method returns a (possibly nested) array structure with all file uploads, each represented by the -[PSR-7 `UploadedFileInterface`](https://www.php-fig.org/psr/psr-7/#36-psrhttpmessageuploadedfileinterface). -This array will only be filled when using the `Content-Type: multipart/form-data` -request header (commonly used for `POST` requests for HTML file uploads). - -```php -$http = new React\Http\HttpServer(function (Psr\Http\Message\ServerRequestInterface $request) { - $files = $request->getUploadedFiles(); - $name = isset($files['avatar']) ? $files['avatar']->getClientFilename() : 'nothing'; - - return React\Http\Message\Response::plaintext( - "Uploaded $name\n" - ); -}); -``` - -See also [form upload server example](examples/62-server-form-upload.php) for more details. - -The `getSize(): ?int` method can be used to -get the size of the request body, similar to PHP's `$_SERVER['CONTENT_LENGTH']` variable. -This method returns the complete size of the request body measured in number -of bytes as defined by the message boundaries. -This value may be `0` if the request message does not contain a request body -(such as a simple `GET` request). -This method operates on the buffered request body, i.e. the request body size -is always known, even when the request does not specify a `Content-Length` request -header or when using `Transfer-Encoding: chunked` for HTTP/1.1 requests. - -> Note: The `HttpServer` automatically takes care of handling requests with the - additional `Expect: 100-continue` request header. When HTTP/1.1 clients want to - send a bigger request body, they MAY send only the request headers with an - additional `Expect: 100-continue` request header and wait before sending the actual - (large) message body. In this case the server will automatically send an - intermediary `HTTP/1.1 100 Continue` response to the client. This ensures you - will receive the request body without a delay as expected. - -#### Streaming incoming request - -If you're using the advanced [`StreamingRequestMiddleware`](#streamingrequestmiddleware), -the request object will be processed once the request headers have been received. -This means that this happens irrespective of (i.e. *before*) receiving the -(potentially much larger) request body. - -> Note that this is non-standard behavior considered advanced usage. Jump to the - previous chapter to learn more about how to process a buffered [request body](#request-body). - -While this may be uncommon in the PHP ecosystem, this is actually a very powerful -approach that gives you several advantages not otherwise possible: - -* React to requests *before* receiving a large request body, - such as rejecting an unauthenticated request or one that exceeds allowed - message lengths (file uploads). -* Start processing parts of the request body before the remainder of the request - body arrives or if the sender is slowly streaming data. -* Process a large request body without having to buffer anything in memory, - such as accepting a huge file upload or possibly unlimited request body stream. - -The `getBody(): StreamInterface` method can be used to -access the request body stream. -In the streaming mode, this method returns a stream instance that implements both the -[PSR-7 `StreamInterface`](https://www.php-fig.org/psr/psr-7/#34-psrhttpmessagestreaminterface) -and the [ReactPHP `ReadableStreamInterface`](https://github.com/reactphp/stream#readablestreaminterface). -However, most of the -[PSR-7 `StreamInterface`](https://www.php-fig.org/psr/psr-7/#34-psrhttpmessagestreaminterface) -methods have been designed under the assumption of being in control of a -synchronous request body. -Given that this does not apply to this server, the following -[PSR-7 `StreamInterface`](https://www.php-fig.org/psr/psr-7/#34-psrhttpmessagestreaminterface) -methods are not used and SHOULD NOT be called: -`tell()`, `eof()`, `seek()`, `rewind()`, `write()` and `read()`. -If this is an issue for your use case and/or you want to access uploaded files, -it's highly recommended to use a buffered [request body](#request-body) or use the -[`RequestBodyBufferMiddleware`](#requestbodybuffermiddleware) instead. -The [ReactPHP `ReadableStreamInterface`](https://github.com/reactphp/stream#readablestreaminterface) -gives you access to the incoming request body as the individual chunks arrive: - -```php -$http = new React\Http\HttpServer( - new React\Http\Middleware\StreamingRequestMiddleware(), - function (Psr\Http\Message\ServerRequestInterface $request) { - $body = $request->getBody(); - assert($body instanceof Psr\Http\Message\StreamInterface); - assert($body instanceof React\Stream\ReadableStreamInterface); - - return new React\Promise\Promise(function ($resolve, $reject) use ($body) { - $bytes = 0; - $body->on('data', function ($data) use (&$bytes) { - $bytes += strlen($data); - }); - - $body->on('end', function () use ($resolve, &$bytes){ - $resolve(React\Http\Message\Response::plaintext( - "Received $bytes bytes\n" - )); - }); - - // an error occures e.g. on invalid chunked encoded data or an unexpected 'end' event - $body->on('error', function (Exception $e) use ($resolve, &$bytes) { - $resolve(React\Http\Message\Response::plaintext( - "Encountered error after $bytes bytes: {$e->getMessage()}\n" - )->withStatus(React\Http\Message\Response::STATUS_BAD_REQUEST)); - }); - }); - } -); -``` - -The above example simply counts the number of bytes received in the request body. -This can be used as a skeleton for buffering or processing the request body. - -See also [streaming request server example](examples/63-server-streaming-request.php) for more details. - -The `data` event will be emitted whenever new data is available on the request -body stream. -The server also automatically takes care of decoding any incoming requests using -`Transfer-Encoding: chunked` and will only emit the actual payload as data. - -The `end` event will be emitted when the request body stream terminates -successfully, i.e. it was read until its expected end. - -The `error` event will be emitted in case the request stream contains invalid -data for `Transfer-Encoding: chunked` or when the connection closes before -the complete request stream has been received. -The server will automatically stop reading from the connection and discard all -incoming data instead of closing it. -A response message can still be sent (unless the connection is already closed). - -A `close` event will be emitted after an `error` or `end` event. - -For more details about the request body stream, check out the documentation of -[ReactPHP `ReadableStreamInterface`](https://github.com/reactphp/stream#readablestreaminterface). - -The `getSize(): ?int` method can be used to -get the size of the request body, similar to PHP's `$_SERVER['CONTENT_LENGTH']` variable. -This method returns the complete size of the request body measured in number -of bytes as defined by the message boundaries. -This value may be `0` if the request message does not contain a request body -(such as a simple `GET` request). -This method operates on the streaming request body, i.e. the request body size -may be unknown (`null`) when using `Transfer-Encoding: chunked` for HTTP/1.1 requests. - -```php -$http = new React\Http\HttpServer( - new React\Http\Middleware\StreamingRequestMiddleware(), - function (Psr\Http\Message\ServerRequestInterface $request) { - $size = $request->getBody()->getSize(); - if ($size === null) { - $body = "The request does not contain an explicit length. "; - $body .= "This example does not accept chunked transfer encoding.\n"; - - return React\Http\Message\Response::plaintext( - $body - )->withStatus(React\Http\Message\Response::STATUS_LENGTH_REQUIRED); - } - - return React\Http\Message\Response::plaintext( - "Request body size: " . $size . " bytes\n" - ); - } -); -``` - -> Note: The `HttpServer` automatically takes care of handling requests with the - additional `Expect: 100-continue` request header. When HTTP/1.1 clients want to - send a bigger request body, they MAY send only the request headers with an - additional `Expect: 100-continue` request header and wait before sending the actual - (large) message body. In this case the server will automatically send an - intermediary `HTTP/1.1 100 Continue` response to the client. This ensures you - will receive the streaming request body without a delay as expected. - -#### Request method - -Note that the server supports *any* request method (including custom and non- -standard ones) and all request-target formats defined in the HTTP specs for each -respective method, including *normal* `origin-form` requests as well as -proxy requests in `absolute-form` and `authority-form`. -The `getUri(): UriInterface` method can be used to get the effective request -URI which provides you access to individiual URI components. -Note that (depending on the given `request-target`) certain URI components may -or may not be present, for example the `getPath(): string` method will return -an empty string for requests in `asterisk-form` or `authority-form`. -Its `getHost(): string` method will return the host as determined by the -effective request URI, which defaults to the local socket address if an HTTP/1.0 -client did not specify one (i.e. no `Host` header). -Its `getScheme(): string` method will return `http` or `https` depending -on whether the request was made over a secure TLS connection to the target host. - -The `Host` header value will be sanitized to match this host component plus the -port component only if it is non-standard for this URI scheme. - -You can use `getMethod(): string` and `getRequestTarget(): string` to -check this is an accepted request and may want to reject other requests with -an appropriate error code, such as `400` (Bad Request) or `405` (Method Not -Allowed). - -> The `CONNECT` method is useful in a tunneling setup (HTTPS proxy) and not - something most HTTP servers would want to care about. - Note that if you want to handle this method, the client MAY send a different - request-target than the `Host` header value (such as removing default ports) - and the request-target MUST take precendence when forwarding. - -#### Cookie parameters - -The `getCookieParams(): string[]` method can be used to -get all cookies sent with the current request. - -```php -$http = new React\Http\HttpServer(function (Psr\Http\Message\ServerRequestInterface $request) { - $key = 'greeting'; - - if (isset($request->getCookieParams()[$key])) { - $body = "Your cookie value is: " . $request->getCookieParams()[$key] . "\n"; - - return React\Http\Message\Response::plaintext( - $body - ); - } - - return React\Http\Message\Response::plaintext( - "Your cookie has been set.\n" - )->withHeader('Set-Cookie', $key . '=' . urlencode('Hello world!')); -}); -``` - -The above example will try to set a cookie on first access and -will try to print the cookie value on all subsequent tries. -Note how the example uses the `urlencode()` function to encode -non-alphanumeric characters. -This encoding is also used internally when decoding the name and value of cookies -(which is in line with other implementations, such as PHP's cookie functions). - -See also [cookie server example](examples/55-server-cookie-handling.php) for more details. - -#### Invalid request - -The `HttpServer` class supports both HTTP/1.1 and HTTP/1.0 request messages. -If a client sends an invalid request message, uses an invalid HTTP -protocol version or sends an invalid `Transfer-Encoding` request header value, -the server will automatically send a `400` (Bad Request) HTTP error response -to the client and close the connection. -On top of this, it will emit an `error` event that can be used for logging -purposes like this: - -```php -$http->on('error', function (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; -}); -``` - -Note that the server will also emit an `error` event if you do not return a -valid response object from your request handler function. See also -[invalid response](#invalid-response) for more details. - -### Server Response - -The callback function passed to the constructor of the [`HttpServer`](#httpserver) is -responsible for processing the request and returning a response, which will be -delivered to the client. - -This function MUST return an instance implementing -[PSR-7 `ResponseInterface`](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) -object or a -[ReactPHP Promise](https://github.com/reactphp/promise) -which resolves with a [PSR-7 `ResponseInterface`](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) object. - -This projects ships a [`Response` class](#response) which implements the -[PSR-7 `ResponseInterface`](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface). -In its most simple form, you can use it like this: - -```php -$http = new React\Http\HttpServer(function (Psr\Http\Message\ServerRequestInterface $request) { - return React\Http\Message\Response::plaintext( - "Hello World!\n" - ); -}); -``` - -We use this [`Response` class](#response) throughout our project examples, but -feel free to use any other implementation of the -[PSR-7 `ResponseInterface`](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface). -See also the [`Response` class](#response) for more details. - -#### Deferred response - -The example above returns the response directly, because it needs -no time to be processed. -Using a database, the file system or long calculations -(in fact every action that will take >=1ms) to create your -response, will slow down the server. -To prevent this you SHOULD use a -[ReactPHP Promise](https://github.com/reactphp/promise#reactpromise). -This example shows how such a long-term action could look like: - -```php -$http = new React\Http\HttpServer(function (Psr\Http\Message\ServerRequestInterface $request) { - $promise = new Promise(function ($resolve, $reject) { - Loop::addTimer(1.5, function() use ($resolve) { - $resolve(); - }); - }); - - return $promise->then(function () { - return React\Http\Message\Response::plaintext( - "Hello World!" - ); - }); -}); -``` - -The above example will create a response after 1.5 second. -This example shows that you need a promise, -if your response needs time to created. -The `ReactPHP Promise` will resolve in a `Response` object when the request -body ends. -If the client closes the connection while the promise is still pending, the -promise will automatically be cancelled. -The promise cancellation handler can be used to clean up any pending resources -allocated in this case (if applicable). -If a promise is resolved after the client closes, it will simply be ignored. - -#### Streaming outgoing response - -The `Response` class in this project supports to add an instance which implements the -[ReactPHP `ReadableStreamInterface`](https://github.com/reactphp/stream#readablestreaminterface) -for the response body. -So you are able stream data directly into the response body. -Note that other implementations of the -[PSR-7 `ResponseInterface`](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) -may only support strings. - -```php -$http = new React\Http\HttpServer(function (Psr\Http\Message\ServerRequestInterface $request) { - $stream = new ThroughStream(); - - // send some data every once in a while with periodic timer - $timer = Loop::addPeriodicTimer(0.5, function () use ($stream) { - $stream->write(microtime(true) . PHP_EOL); - }); - - // end stream after a few seconds - $timeout = Loop::addTimer(5.0, function() use ($stream, $timer) { - Loop::cancelTimer($timer); - $stream->end(); - }); - - // stop timer if stream is closed (such as when connection is closed) - $stream->on('close', function () use ($timer, $timeout) { - Loop::cancelTimer($timer); - Loop::cancelTimer($timeout); - }); - - return new React\Http\Message\Response( - React\Http\Message\Response::STATUS_OK, - array( - 'Content-Type' => 'text/plain' - ), - $stream - ); -}); -``` - -The above example will emit every 0.5 seconds the current Unix timestamp -with microseconds as float to the client and will end after 5 seconds. -This is just a example you could use of the streaming, -you could also send a big amount of data via little chunks -or use it for body data that needs to calculated. - -If the request handler resolves with a response stream that is already closed, -it will simply send an empty response body. -If the client closes the connection while the stream is still open, the -response stream will automatically be closed. -If a promise is resolved with a streaming body after the client closes, the -response stream will automatically be closed. -The `close` event can be used to clean up any pending resources allocated -in this case (if applicable). - -> Note that special care has to be taken if you use a body stream instance that - implements ReactPHP's - [`DuplexStreamInterface`](https://github.com/reactphp/stream#duplexstreaminterface) - (such as the `ThroughStream` in the above example). -> -> For *most* cases, this will simply only consume its readable side and forward - (send) any data that is emitted by the stream, thus entirely ignoring the - writable side of the stream. - If however this is either a `101` (Switching Protocols) response or a `2xx` - (Successful) response to a `CONNECT` method, it will also *write* data to the - writable side of the stream. - This can be avoided by either rejecting all requests with the `CONNECT` - method (which is what most *normal* origin HTTP servers would likely do) or - or ensuring that only ever an instance of - [ReactPHP's `ReadableStreamInterface`](https://github.com/reactphp/stream#readablestreaminterface) - is used. -> -> The `101` (Switching Protocols) response code is useful for the more advanced - `Upgrade` requests, such as upgrading to the WebSocket protocol or - implementing custom protocol logic that is out of scope of the HTTP specs and - this HTTP library. - If you want to handle the `Upgrade: WebSocket` header, you will likely want - to look into using [Ratchet](http://socketo.me/) instead. - If you want to handle a custom protocol, you will likely want to look into the - [HTTP specs](https://tools.ietf.org/html/rfc7230#section-6.7) and also see - [examples #81 and #82](examples/) for more details. - In particular, the `101` (Switching Protocols) response code MUST NOT be used - unless you send an `Upgrade` response header value that is also present in - the corresponding HTTP/1.1 `Upgrade` request header value. - The server automatically takes care of sending a `Connection: upgrade` - header value in this case, so you don't have to. -> -> The `CONNECT` method is useful in a tunneling setup (HTTPS proxy) and not - something most origin HTTP servers would want to care about. - The HTTP specs define an opaque "tunneling mode" for this method and make no - use of the message body. - For consistency reasons, this library uses a `DuplexStreamInterface` in the - response body for tunneled application data. - This implies that that a `2xx` (Successful) response to a `CONNECT` request - can in fact use a streaming response body for the tunneled application data, - so that any raw data the client sends over the connection will be piped - through the writable stream for consumption. - Note that while the HTTP specs make no use of the request body for `CONNECT` - requests, one may still be present. Normal request body processing applies - here and the connection will only turn to "tunneling mode" after the request - body has been processed (which should be empty in most cases). - See also [HTTP CONNECT server example](examples/72-server-http-connect-proxy.php) for more details. - -#### Response length - -If the response body size is known, a `Content-Length` response header will be -added automatically. This is the most common use case, for example when using -a `string` response body like this: - -```php -$http = new React\Http\HttpServer(function (Psr\Http\Message\ServerRequestInterface $request) { - return React\Http\Message\Response::plaintext( - "Hello World!\n" - ); -}); -``` - -If the response body size is unknown, a `Content-Length` response header can not -be added automatically. When using a [streaming outgoing response](#streaming-outgoing-response) -without an explicit `Content-Length` response header, outgoing HTTP/1.1 response -messages will automatically use `Transfer-Encoding: chunked` while legacy HTTP/1.0 -response messages will contain the plain response body. If you know the length -of your streaming response body, you MAY want to specify it explicitly like this: - -```php -$http = new React\Http\HttpServer(function (Psr\Http\Message\ServerRequestInterface $request) { - $stream = new ThroughStream(); - - Loop::addTimer(2.0, function () use ($stream) { - $stream->end("Hello World!\n"); - }); - - return new React\Http\Message\Response( - React\Http\Message\Response::STATUS_OK, - array( - 'Content-Length' => '13', - 'Content-Type' => 'text/plain', - ), - $stream - ); -}); -``` - -Any response to a `HEAD` request and any response with a `1xx` (Informational), -`204` (No Content) or `304` (Not Modified) status code will *not* include a -message body as per the HTTP specs. -This means that your callback does not have to take special care of this and any -response body will simply be ignored. - -Similarly, any `2xx` (Successful) response to a `CONNECT` request, any response -with a `1xx` (Informational) or `204` (No Content) status code will *not* -include a `Content-Length` or `Transfer-Encoding` header as these do not apply -to these messages. -Note that a response to a `HEAD` request and any response with a `304` (Not -Modified) status code MAY include these headers even though -the message does not contain a response body, because these header would apply -to the message if the same request would have used an (unconditional) `GET`. - -#### Invalid response - -As stated above, each outgoing HTTP response is always represented by the -[PSR-7 `ResponseInterface`](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface). -If your request handler function returns an invalid value or throws an -unhandled `Exception` or `Throwable`, the server will automatically send a `500` -(Internal Server Error) HTTP error response to the client. -On top of this, it will emit an `error` event that can be used for logging -purposes like this: - -```php -$http->on('error', function (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; - if ($e->getPrevious() !== null) { - echo 'Previous: ' . $e->getPrevious()->getMessage() . PHP_EOL; - } -}); -``` - -Note that the server will also emit an `error` event if the client sends an -invalid HTTP request that never reaches your request handler function. See -also [invalid request](#invalid-request) for more details. -Additionally, a [streaming incoming request](#streaming-incoming-request) body -can also emit an `error` event on the request body. - -The server will only send a very generic `500` (Interval Server Error) HTTP -error response without any further details to the client if an unhandled -error occurs. While we understand this might make initial debugging harder, -it also means that the server does not leak any application details or stack -traces to the outside by default. It is usually recommended to catch any -`Exception` or `Throwable` within your request handler function or alternatively -use a [`middleware`](#middleware) to avoid this generic error handling and -create your own HTTP response message instead. - -#### Default response headers - -When a response is returned from the request handler function, it will be -processed by the [`HttpServer`](#httpserver) and then sent back to the client. - -A `Server: ReactPHP/1` response header will be added automatically. You can add -a custom `Server` response header like this: - -```php -$http = new React\Http\HttpServer(function (ServerRequestInterface $request) { - return new React\Http\Message\Response( - React\Http\Message\Response::STATUS_OK, - array( - 'Server' => 'PHP/3' - ) - ); -}); -``` - -If you do not want to send this `Sever` response header at all (such as when you -don't want to expose the underlying server software), you can use an empty -string value like this: - -```php -$http = new React\Http\HttpServer(function (ServerRequestInterface $request) { - return new React\Http\Message\Response( - React\Http\Message\Response::STATUS_OK, - array( - 'Server' => '' - ) - ); -}); -``` - -A `Date` response header will be added automatically with the current system -date and time if none is given. You can add a custom `Date` response header -like this: - -```php -$http = new React\Http\HttpServer(function (ServerRequestInterface $request) { - return new React\Http\Message\Response( - React\Http\Message\Response::STATUS_OK, - array( - 'Date' => gmdate('D, d M Y H:i:s \G\M\T') - ) - ); -}); -``` - -If you do not want to send this `Date` response header at all (such as when you -don't have an appropriate clock to rely on), you can use an empty string value -like this: - -```php -$http = new React\Http\HttpServer(function (ServerRequestInterface $request) { - return new React\Http\Message\Response( - React\Http\Message\Response::STATUS_OK, - array( - 'Date' => '' - ) - ); -}); -``` - -The `HttpServer` class will automatically add the protocol version of the request, -so you don't have to. For instance, if the client sends the request using the -HTTP/1.1 protocol version, the response message will also use the same protocol -version, no matter what version is returned from the request handler function. - -The server supports persistent connections. An appropriate `Connection: keep-alive` -or `Connection: close` response header will be added automatically, respecting the -matching request header value and HTTP default header values. The server is -responsible for handling the `Connection` response header, so you SHOULD NOT pass -this response header yourself, unless you explicitly want to override the user's -choice with a `Connection: close` response header. - -### Middleware - -As documented above, the [`HttpServer`](#httpserver) accepts a single request handler -argument that is responsible for processing an incoming HTTP request and then -creating and returning an outgoing HTTP response. - -Many common use cases involve validating, processing, manipulating the incoming -HTTP request before passing it to the final business logic request handler. -As such, this project supports the concept of middleware request handlers. - -#### Custom middleware - -A middleware request handler is expected to adhere the following rules: - -* It is a valid `callable`. -* It accepts an instance implementing - [PSR-7 `ServerRequestInterface`](https://www.php-fig.org/psr/psr-7/#321-psrhttpmessageserverrequestinterface) - as first argument and an optional `callable` as second argument. -* It returns either: - * An instance implementing - [PSR-7 `ResponseInterface`](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) - for direct consumption. - * Any promise which can be consumed by - [`Promise\resolve()`](https://reactphp.org/promise/#resolve) resolving to a - [PSR-7 `ResponseInterface`](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) - for deferred consumption. - * It MAY throw an `Exception` (or return a rejected promise) in order to - signal an error condition and abort the chain. -* It calls `$next($request)` to continue processing the next middleware - request handler or returns explicitly without calling `$next` to - abort the chain. - * The `$next` request handler (recursively) invokes the next request - handler from the chain with the same logic as above and returns (or throws) - as above. - * The `$request` may be modified prior to calling `$next($request)` to - change the incoming request the next middleware operates on. - * The `$next` return value may be consumed to modify the outgoing response. - * The `$next` request handler MAY be called more than once if you want to - implement custom "retry" logic etc. - -Note that this very simple definition allows you to use either anonymous -functions or any classes that use the magic `__invoke()` method. -This allows you to easily create custom middleware request handlers on the fly -or use a class based approach to ease using existing middleware implementations. - -While this project does provide the means to *use* middleware implementations, -it does not aim to *define* how middleware implementations should look like. -We realize that there's a vivid ecosystem of middleware implementations and -ongoing effort to standardize interfaces between these with -[PSR-15](https://www.php-fig.org/psr/psr-15/) (HTTP Server Request Handlers) -and support this goal. -As such, this project only bundles a few middleware implementations that are -required to match PHP's request behavior (see below) and otherwise actively -encourages [Third-Party Middleware](#third-party-middleware) implementations. - -In order to use middleware request handlers, simply pass a list of all -callables as defined above to the [`HttpServer`](#httpserver). -The following example adds a middleware request handler that adds the current time to the request as a -header (`Request-Time`) and a final request handler that always returns a `200 OK` status code without a body: - -```php -$http = new React\Http\HttpServer( - function (Psr\Http\Message\ServerRequestInterface $request, callable $next) { - $request = $request->withHeader('Request-Time', time()); - return $next($request); - }, - function (Psr\Http\Message\ServerRequestInterface $request) { - return new React\Http\Message\Response(React\Http\Message\Response::STATUS_OK); - } -); -``` - -> Note how the middleware request handler and the final request handler have a - very simple (and similar) interface. The only difference is that the final - request handler does not receive a `$next` handler. - -Similarly, you can use the result of the `$next` middleware request handler -function to modify the outgoing response. -Note that as per the above documentation, the `$next` middleware request handler may return a -[PSR-7 `ResponseInterface`](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) -directly or one wrapped in a promise for deferred resolution. -In order to simplify handling both paths, you can simply wrap this in a -[`Promise\resolve()`](https://reactphp.org/promise/#resolve) call like this: - -```php -$http = new React\Http\HttpServer( - function (Psr\Http\Message\ServerRequestInterface $request, callable $next) { - $promise = React\Promise\resolve($next($request)); - return $promise->then(function (ResponseInterface $response) { - return $response->withHeader('Content-Type', 'text/html'); - }); - }, - function (Psr\Http\Message\ServerRequestInterface $request) { - return new React\Http\Message\Response(React\Http\Message\Response::STATUS_OK); - } -); -``` - -Note that the `$next` middleware request handler may also throw an -`Exception` (or return a rejected promise) as described above. -The previous example does not catch any exceptions and would thus signal an -error condition to the `HttpServer`. -Alternatively, you can also catch any `Exception` to implement custom error -handling logic (or logging etc.) by wrapping this in a -[`Promise`](https://reactphp.org/promise/#promise) like this: - -```php -$http = new React\Http\HttpServer( - function (Psr\Http\Message\ServerRequestInterface $request, callable $next) { - $promise = new React\Promise\Promise(function ($resolve) use ($next, $request) { - $resolve($next($request)); - }); - return $promise->then(null, function (Exception $e) { - return React\Http\Message\Response::plaintext( - 'Internal error: ' . $e->getMessage() . "\n" - )->withStatus(React\Http\Message\Response::STATUS_INTERNAL_SERVER_ERROR); - }); - }, - function (Psr\Http\Message\ServerRequestInterface $request) { - if (mt_rand(0, 1) === 1) { - throw new RuntimeException('Database error'); - } - return new React\Http\Message\Response(React\Http\Message\Response::STATUS_OK); - } -); -``` - -#### Third-Party Middleware - -While this project does provide the means to *use* middleware implementations -(see above), it does not aim to *define* how middleware implementations should -look like. We realize that there's a vivid ecosystem of middleware -implementations and ongoing effort to standardize interfaces between these with -[PSR-15](https://www.php-fig.org/psr/psr-15/) (HTTP Server Request Handlers) -and support this goal. -As such, this project only bundles a few middleware implementations that are -required to match PHP's request behavior (see -[middleware implementations](#reacthttpmiddleware)) and otherwise actively -encourages third-party middleware implementations. - -While we would love to support PSR-15 directly in `react/http`, we understand -that this interface does not specifically target async APIs and as such does -not take advantage of promises for [deferred responses](#deferred-response). -The gist of this is that where PSR-15 enforces a -[PSR-7 `ResponseInterface`](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) -return value, we also accept a `PromiseInterface`. -As such, we suggest using the external -[PSR-15 middleware adapter](https://github.com/friends-of-reactphp/http-middleware-psr15-adapter) -that uses on the fly monkey patching of these return values which makes using -most PSR-15 middleware possible with this package without any changes required. - -Other than that, you can also use the above [middleware definition](#middleware) -to create custom middleware. A non-exhaustive list of third-party middleware can -be found at the [middleware wiki](https://github.com/reactphp/reactphp/wiki/Users#http-middleware). -If you build or know a custom middleware, make sure to let the world know and -feel free to add it to this list. - -## API - -### Browser - -The `React\Http\Browser` is responsible for sending HTTP requests to your HTTP server -and keeps track of pending incoming HTTP responses. - -```php -$browser = new React\Http\Browser(); -``` - -This class takes two optional arguments for more advanced usage: - -```php -// constructor signature as of v1.5.0 -$browser = new React\Http\Browser(?ConnectorInterface $connector = null, ?LoopInterface $loop = null); - -// legacy constructor signature before v1.5.0 -$browser = new React\Http\Browser(?LoopInterface $loop = null, ?ConnectorInterface $connector = null); -``` - -If you need custom connector settings (DNS resolution, TLS parameters, timeouts, -proxy servers etc.), you can explicitly pass a custom instance of the -[`ConnectorInterface`](https://github.com/reactphp/socket#connectorinterface): - -```php -$connector = new React\Socket\Connector(array( - 'dns' => '127.0.0.1', - 'tcp' => array( - 'bindto' => '192.168.10.1:0' - ), - 'tls' => array( - 'verify_peer' => false, - 'verify_peer_name' => false - ) -)); - -$browser = new React\Http\Browser($connector); -``` - -This class takes an optional `LoopInterface|null $loop` parameter that can be used to -pass the event loop instance to use for this object. You can use a `null` value -here in order to use the [default loop](https://github.com/reactphp/event-loop#loop). -This value SHOULD NOT be given unless you're sure you want to explicitly use a -given event loop instance. - -> Note that the browser class is final and shouldn't be extended, it is likely to be marked final in a future release. - -#### get() - -The `get(string $url, array $headers = array()): PromiseInterface` method can be used to -send an HTTP GET request. - -```php -$browser->get($url)->then(function (Psr\Http\Message\ResponseInterface $response) { - var_dump((string)$response->getBody()); -}, function (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; -}); -``` - -See also [GET request client example](examples/01-client-get-request.php). - -#### post() - -The `post(string $url, array $headers = array(), string|ReadableStreamInterface $body = ''): PromiseInterface` method can be used to -send an HTTP POST request. - -```php -$browser->post( - $url, - [ - 'Content-Type' => 'application/json' - ], - json_encode($data) -)->then(function (Psr\Http\Message\ResponseInterface $response) { - var_dump(json_decode((string)$response->getBody())); -}, function (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; -}); -``` - -See also [POST JSON client example](examples/04-client-post-json.php). - -This method is also commonly used to submit HTML form data: - -```php -$data = [ - 'user' => 'Alice', - 'password' => 'secret' -]; - -$browser->post( - $url, - [ - 'Content-Type' => 'application/x-www-form-urlencoded' - ], - http_build_query($data) -); -``` - -This method will automatically add a matching `Content-Length` request -header if the outgoing request body is a `string`. If you're using a -streaming request body (`ReadableStreamInterface`), it will default to -using `Transfer-Encoding: chunked` or you have to explicitly pass in a -matching `Content-Length` request header like so: - -```php -$body = new React\Stream\ThroughStream(); -Loop::addTimer(1.0, function () use ($body) { - $body->end("hello world"); -}); - -$browser->post($url, array('Content-Length' => '11'), $body); -``` - -#### head() - -The `head(string $url, array $headers = array()): PromiseInterface` method can be used to -send an HTTP HEAD request. - -```php -$browser->head($url)->then(function (Psr\Http\Message\ResponseInterface $response) { - var_dump($response->getHeaders()); -}, function (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; -}); -``` - -#### patch() - -The `patch(string $url, array $headers = array(), string|ReadableStreamInterface $body = ''): PromiseInterface` method can be used to -send an HTTP PATCH request. - -```php -$browser->patch( - $url, - [ - 'Content-Type' => 'application/json' - ], - json_encode($data) -)->then(function (Psr\Http\Message\ResponseInterface $response) { - var_dump(json_decode((string)$response->getBody())); -}, function (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; -}); -``` - -This method will automatically add a matching `Content-Length` request -header if the outgoing request body is a `string`. If you're using a -streaming request body (`ReadableStreamInterface`), it will default to -using `Transfer-Encoding: chunked` or you have to explicitly pass in a -matching `Content-Length` request header like so: - -```php -$body = new React\Stream\ThroughStream(); -Loop::addTimer(1.0, function () use ($body) { - $body->end("hello world"); -}); - -$browser->patch($url, array('Content-Length' => '11'), $body); -``` - -#### put() - -The `put(string $url, array $headers = array(), string|ReadableStreamInterface $body = ''): PromiseInterface` method can be used to -send an HTTP PUT request. - -```php -$browser->put( - $url, - [ - 'Content-Type' => 'text/xml' - ], - $xml->asXML() -)->then(function (Psr\Http\Message\ResponseInterface $response) { - var_dump((string)$response->getBody()); -}, function (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; -}); -``` - -See also [PUT XML client example](examples/05-client-put-xml.php). - -This method will automatically add a matching `Content-Length` request -header if the outgoing request body is a `string`. If you're using a -streaming request body (`ReadableStreamInterface`), it will default to -using `Transfer-Encoding: chunked` or you have to explicitly pass in a -matching `Content-Length` request header like so: - -```php -$body = new React\Stream\ThroughStream(); -Loop::addTimer(1.0, function () use ($body) { - $body->end("hello world"); -}); - -$browser->put($url, array('Content-Length' => '11'), $body); -``` - -#### delete() - -The `delete(string $url, array $headers = array(), string|ReadableStreamInterface $body = ''): PromiseInterface` method can be used to -send an HTTP DELETE request. - -```php -$browser->delete($url)->then(function (Psr\Http\Message\ResponseInterface $response) { - var_dump((string)$response->getBody()); -}, function (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; -}); -``` - -#### request() - -The `request(string $method, string $url, array $headers = array(), string|ReadableStreamInterface $body = ''): PromiseInterface` method can be used to -send an arbitrary HTTP request. - -The preferred way to send an HTTP request is by using the above -[request methods](#request-methods), for example the [`get()`](#get) -method to send an HTTP `GET` request. - -As an alternative, if you want to use a custom HTTP request method, you -can use this method: - -```php -$browser->request('OPTIONS', $url)->then(function (Psr\Http\Message\ResponseInterface $response) { - var_dump((string)$response->getBody()); -}, function (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; -}); -``` - -This method will automatically add a matching `Content-Length` request -header if the size of the outgoing request body is known and non-empty. -For an empty request body, if will only include a `Content-Length: 0` -request header if the request method usually expects a request body (only -applies to `POST`, `PUT` and `PATCH`). - -If you're using a streaming request body (`ReadableStreamInterface`), it -will default to using `Transfer-Encoding: chunked` or you have to -explicitly pass in a matching `Content-Length` request header like so: - -```php -$body = new React\Stream\ThroughStream(); -Loop::addTimer(1.0, function () use ($body) { - $body->end("hello world"); -}); - -$browser->request('POST', $url, array('Content-Length' => '11'), $body); -``` - -#### requestStreaming() - -The `requestStreaming(string $method, string $url, array $headers = array(), string|ReadableStreamInterface $body = ''): PromiseInterface` method can be used to -send an arbitrary HTTP request and receive a streaming response without buffering the response body. - -The preferred way to send an HTTP request is by using the above -[request methods](#request-methods), for example the [`get()`](#get) -method to send an HTTP `GET` request. Each of these methods will buffer -the whole response body in memory by default. This is easy to get started -and works reasonably well for smaller responses. - -In some situations, it's a better idea to use a streaming approach, where -only small chunks have to be kept in memory. You can use this method to -send an arbitrary HTTP request and receive a streaming response. It uses -the same HTTP message API, but does not buffer the response body in -memory. It only processes the response body in small chunks as data is -received and forwards this data through [ReactPHP's Stream API](https://github.com/reactphp/stream). -This works for (any number of) responses of arbitrary sizes. - -```php -$browser->requestStreaming('GET', $url)->then(function (Psr\Http\Message\ResponseInterface $response) { - $body = $response->getBody(); - assert($body instanceof Psr\Http\Message\StreamInterface); - assert($body instanceof React\Stream\ReadableStreamInterface); - - $body->on('data', function ($chunk) { - echo $chunk; - }); - - $body->on('error', function (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; - }); - - $body->on('close', function () { - echo '[DONE]' . PHP_EOL; - }); -}, function (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; -}); -``` - -See also [ReactPHP's `ReadableStreamInterface`](https://github.com/reactphp/stream#readablestreaminterface) -and the [streaming response](#streaming-response) for more details, -examples and possible use-cases. - -This method will automatically add a matching `Content-Length` request -header if the size of the outgoing request body is known and non-empty. -For an empty request body, if will only include a `Content-Length: 0` -request header if the request method usually expects a request body (only -applies to `POST`, `PUT` and `PATCH`). - -If you're using a streaming request body (`ReadableStreamInterface`), it -will default to using `Transfer-Encoding: chunked` or you have to -explicitly pass in a matching `Content-Length` request header like so: - -```php -$body = new React\Stream\ThroughStream(); -Loop::addTimer(1.0, function () use ($body) { - $body->end("hello world"); -}); - -$browser->requestStreaming('POST', $url, array('Content-Length' => '11'), $body); -``` - -#### withTimeout() - -The `withTimeout(bool|number $timeout): Browser` method can be used to -change the maximum timeout used for waiting for pending requests. - -You can pass in the number of seconds to use as a new timeout value: - -```php -$browser = $browser->withTimeout(10.0); -``` - -You can pass in a bool `false` to disable any timeouts. In this case, -requests can stay pending forever: - -```php -$browser = $browser->withTimeout(false); -``` - -You can pass in a bool `true` to re-enable default timeout handling. This -will respects PHP's `default_socket_timeout` setting (default 60s): - -```php -$browser = $browser->withTimeout(true); -``` - -See also [timeouts](#timeouts) for more details about timeout handling. - -Notice that the [`Browser`](#browser) is an immutable object, i.e. this -method actually returns a *new* [`Browser`](#browser) instance with the -given timeout value applied. - -#### withFollowRedirects() - -The `withFollowRedirects(bool|int $followRedirects): Browser` method can be used to -change how HTTP redirects will be followed. - -You can pass in the maximum number of redirects to follow: - -```php -$browser = $browser->withFollowRedirects(5); -``` - -The request will automatically be rejected when the number of redirects -is exceeded. You can pass in a `0` to reject the request for any -redirects encountered: - -```php -$browser = $browser->withFollowRedirects(0); - -$browser->get($url)->then(function (Psr\Http\Message\ResponseInterface $response) { - // only non-redirected responses will now end up here - var_dump($response->getHeaders()); -}, function (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; -}); -``` - -You can pass in a bool `false` to disable following any redirects. In -this case, requests will resolve with the redirection response instead -of following the `Location` response header: - -```php -$browser = $browser->withFollowRedirects(false); - -$browser->get($url)->then(function (Psr\Http\Message\ResponseInterface $response) { - // any redirects will now end up here - var_dump($response->getHeaderLine('Location')); -}, function (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; -}); -``` - -You can pass in a bool `true` to re-enable default redirect handling. -This defaults to following a maximum of 10 redirects: - -```php -$browser = $browser->withFollowRedirects(true); -``` - -See also [redirects](#redirects) for more details about redirect handling. - -Notice that the [`Browser`](#browser) is an immutable object, i.e. this -method actually returns a *new* [`Browser`](#browser) instance with the -given redirect setting applied. - -#### withRejectErrorResponse() - -The `withRejectErrorResponse(bool $obeySuccessCode): Browser` method can be used to -change whether non-successful HTTP response status codes (4xx and 5xx) will be rejected. - -You can pass in a bool `false` to disable rejecting incoming responses -that use a 4xx or 5xx response status code. In this case, requests will -resolve with the response message indicating an error condition: - -```php -$browser = $browser->withRejectErrorResponse(false); - -$browser->get($url)->then(function (Psr\Http\Message\ResponseInterface $response) { - // any HTTP response will now end up here - var_dump($response->getStatusCode(), $response->getReasonPhrase()); -}, function (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; -}); -``` - -You can pass in a bool `true` to re-enable default status code handling. -This defaults to rejecting any response status codes in the 4xx or 5xx -range with a [`ResponseException`](#responseexception): - -```php -$browser = $browser->withRejectErrorResponse(true); - -$browser->get($url)->then(function (Psr\Http\Message\ResponseInterface $response) { - // any successful HTTP response will now end up here - var_dump($response->getStatusCode(), $response->getReasonPhrase()); -}, function (Exception $e) { - if ($e instanceof React\Http\Message\ResponseException) { - // any HTTP response error message will now end up here - $response = $e->getResponse(); - var_dump($response->getStatusCode(), $response->getReasonPhrase()); - } else { - echo 'Error: ' . $e->getMessage() . PHP_EOL; - } -}); -``` - -Notice that the [`Browser`](#browser) is an immutable object, i.e. this -method actually returns a *new* [`Browser`](#browser) instance with the -given setting applied. - -#### withBase() - -The `withBase(string|null $baseUrl): Browser` method can be used to -change the base URL used to resolve relative URLs to. - -If you configure a base URL, any requests to relative URLs will be -processed by first resolving this relative to the given absolute base -URL. This supports resolving relative path references (like `../` etc.). -This is particularly useful for (RESTful) API calls where all endpoints -(URLs) are located under a common base URL. - -```php -$browser = $browser->withBase('http://api.example.com/v3/'); - -// will request http://api.example.com/v3/users -$browser->get('users')->then(…); -``` - -You can pass in a `null` base URL to return a new instance that does not -use a base URL: - -```php -$browser = $browser->withBase(null); -``` - -Accordingly, any requests using relative URLs to a browser that does not -use a base URL can not be completed and will be rejected without sending -a request. - -This method will throw an `InvalidArgumentException` if the given -`$baseUrl` argument is not a valid URL. - -Notice that the [`Browser`](#browser) is an immutable object, i.e. the `withBase()` method -actually returns a *new* [`Browser`](#browser) instance with the given base URL applied. - -#### withProtocolVersion() - -The `withProtocolVersion(string $protocolVersion): Browser` method can be used to -change the HTTP protocol version that will be used for all subsequent requests. - -All the above [request methods](#request-methods) default to sending -requests as HTTP/1.1. This is the preferred HTTP protocol version which -also provides decent backwards-compatibility with legacy HTTP/1.0 -servers. As such, there should rarely be a need to explicitly change this -protocol version. - -If you want to explicitly use the legacy HTTP/1.0 protocol version, you -can use this method: - -```php -$browser = $browser->withProtocolVersion('1.0'); - -$browser->get($url)->then(…); -``` - -Notice that the [`Browser`](#browser) is an immutable object, i.e. this -method actually returns a *new* [`Browser`](#browser) instance with the -new protocol version applied. - -#### withResponseBuffer() - -The `withResponseBuffer(int $maximumSize): Browser` method can be used to -change the maximum size for buffering a response body. - -The preferred way to send an HTTP request is by using the above -[request methods](#request-methods), for example the [`get()`](#get) -method to send an HTTP `GET` request. Each of these methods will buffer -the whole response body in memory by default. This is easy to get started -and works reasonably well for smaller responses. - -By default, the response body buffer will be limited to 16 MiB. If the -response body exceeds this maximum size, the request will be rejected. - -You can pass in the maximum number of bytes to buffer: - -```php -$browser = $browser->withResponseBuffer(1024 * 1024); - -$browser->get($url)->then(function (Psr\Http\Message\ResponseInterface $response) { - // response body will not exceed 1 MiB - var_dump($response->getHeaders(), (string) $response->getBody()); -}, function (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; -}); -``` - -Note that the response body buffer has to be kept in memory for each -pending request until its transfer is completed and it will only be freed -after a pending request is fulfilled. As such, increasing this maximum -buffer size to allow larger response bodies is usually not recommended. -Instead, you can use the [`requestStreaming()` method](#requeststreaming) -to receive responses with arbitrary sizes without buffering. Accordingly, -this maximum buffer size setting has no effect on streaming responses. - -Notice that the [`Browser`](#browser) is an immutable object, i.e. this -method actually returns a *new* [`Browser`](#browser) instance with the -given setting applied. - -#### withHeader() - -The `withHeader(string $header, string $value): Browser` method can be used to -add a request header for all following requests. - -```php -$browser = $browser->withHeader('User-Agent', 'ACME'); - -$browser->get($url)->then(…); -``` - -Note that the new header will overwrite any headers previously set with -the same name (case-insensitive). Following requests will use these headers -by default unless they are explicitly set for any requests. - -#### withoutHeader() - -The `withoutHeader(string $header): Browser` method can be used to -remove any default request headers previously set via -the [`withHeader()` method](#withheader). - -```php -$browser = $browser->withoutHeader('User-Agent'); - -$browser->get($url)->then(…); -``` - -Note that this method only affects the headers which were set with the -method `withHeader(string $header, string $value): Browser` - -### React\Http\Message - -#### Response - -The `React\Http\Message\Response` class can be used to -represent an outgoing server response message. - -```php -$response = new React\Http\Message\Response( - React\Http\Message\Response::STATUS_OK, - array( - 'Content-Type' => 'text/html' - ), - "Hello world!\n" -); -``` - -This class implements the -[PSR-7 `ResponseInterface`](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) -which in turn extends the -[PSR-7 `MessageInterface`](https://www.php-fig.org/psr/psr-7/#31-psrhttpmessagemessageinterface). - -On top of this, this class implements the -[PSR-7 Message Util `StatusCodeInterface`](https://github.com/php-fig/http-message-util/blob/master/src/StatusCodeInterface.php) -which means that most common HTTP status codes are available as class -constants with the `STATUS_*` prefix. For instance, the `200 OK` and -`404 Not Found` status codes can used as `Response::STATUS_OK` and -`Response::STATUS_NOT_FOUND` respectively. - -> Internally, this implementation builds on top of a base class which is - considered an implementation detail that may change in the future. - -##### html() - -The static `html(string $html): Response` method can be used to -create an HTML response. - -```php -$html = << - -Hello wörld! - - -HTML; - -$response = React\Http\Message\Response::html($html); -``` - -This is a convenient shortcut method that returns the equivalent of this: - -``` -$response = new React\Http\Message\Response( - React\Http\Message\Response::STATUS_OK, - [ - 'Content-Type' => 'text/html; charset=utf-8' - ], - $html -); -``` - -This method always returns a response with a `200 OK` status code and -the appropriate `Content-Type` response header for the given HTTP source -string encoded in UTF-8 (Unicode). It's generally recommended to end the -given plaintext string with a trailing newline. - -If you want to use a different status code or custom HTTP response -headers, you can manipulate the returned response object using the -provided PSR-7 methods or directly instantiate a custom HTTP response -object using the `Response` constructor: - -```php -$response = React\Http\Message\Response::html( - "

Error

\n

Invalid user name given.

\n" -)->withStatus(React\Http\Message\Response::STATUS_BAD_REQUEST); -``` - -##### json() - -The static `json(mixed $data): Response` method can be used to -create a JSON response. - -```php -$response = React\Http\Message\Response::json(['name' => 'Alice']); -``` - -This is a convenient shortcut method that returns the equivalent of this: - -``` -$response = new React\Http\Message\Response( - React\Http\Message\Response::STATUS_OK, - [ - 'Content-Type' => 'application/json' - ], - json_encode( - ['name' => 'Alice'], - JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_PRESERVE_ZERO_FRACTION - ) . "\n" -); -``` - -This method always returns a response with a `200 OK` status code and -the appropriate `Content-Type` response header for the given structured -data encoded as a JSON text. - -The given structured data will be encoded as a JSON text. Any `string` -values in the data must be encoded in UTF-8 (Unicode). If the encoding -fails, this method will throw an `InvalidArgumentException`. - -By default, the given structured data will be encoded with the flags as -shown above. This includes pretty printing (PHP 5.4+) and preserving -zero fractions for `float` values (PHP 5.6.6+) to ease debugging. It is -assumed any additional data overhead is usually compensated by using HTTP -response compression. - -If you want to use a different status code or custom HTTP response -headers, you can manipulate the returned response object using the -provided PSR-7 methods or directly instantiate a custom HTTP response -object using the `Response` constructor: - -```php -$response = React\Http\Message\Response::json( - ['error' => 'Invalid user name given'] -)->withStatus(React\Http\Message\Response::STATUS_BAD_REQUEST); -``` - -##### plaintext() - -The static `plaintext(string $text): Response` method can be used to -create a plaintext response. - -```php -$response = React\Http\Message\Response::plaintext("Hello wörld!\n"); -``` - -This is a convenient shortcut method that returns the equivalent of this: - -``` -$response = new React\Http\Message\Response( - React\Http\Message\Response::STATUS_OK, - [ - 'Content-Type' => 'text/plain; charset=utf-8' - ], - "Hello wörld!\n" -); -``` - -This method always returns a response with a `200 OK` status code and -the appropriate `Content-Type` response header for the given plaintext -string encoded in UTF-8 (Unicode). It's generally recommended to end the -given plaintext string with a trailing newline. - -If you want to use a different status code or custom HTTP response -headers, you can manipulate the returned response object using the -provided PSR-7 methods or directly instantiate a custom HTTP response -object using the `Response` constructor: - -```php -$response = React\Http\Message\Response::plaintext( - "Error: Invalid user name given.\n" -)->withStatus(React\Http\Message\Response::STATUS_BAD_REQUEST); -``` - -##### xml() - -The static `xml(string $xml): Response` method can be used to -create an XML response. - -```php -$xml = << - - Hello wörld! - - -XML; - -$response = React\Http\Message\Response::xml($xml); -``` - -This is a convenient shortcut method that returns the equivalent of this: - -``` -$response = new React\Http\Message\Response( - React\Http\Message\Response::STATUS_OK, - [ - 'Content-Type' => 'application/xml' - ], - $xml -); -``` - -This method always returns a response with a `200 OK` status code and -the appropriate `Content-Type` response header for the given XML source -string. It's generally recommended to use UTF-8 (Unicode) and specify -this as part of the leading XML declaration and to end the given XML -source string with a trailing newline. - -If you want to use a different status code or custom HTTP response -headers, you can manipulate the returned response object using the -provided PSR-7 methods or directly instantiate a custom HTTP response -object using the `Response` constructor: - -```php -$response = React\Http\Message\Response::xml( - "Invalid user name given.\n" -)->withStatus(React\Http\Message\Response::STATUS_BAD_REQUEST); -``` - -#### Request - -The `React\Http\Message\Request` class can be used to -respresent an outgoing HTTP request message. - -This class implements the -[PSR-7 `RequestInterface`](https://www.php-fig.org/psr/psr-7/#32-psrhttpmessagerequestinterface) -which extends the -[PSR-7 `MessageInterface`](https://www.php-fig.org/psr/psr-7/#31-psrhttpmessagemessageinterface). - -This is mostly used internally to represent each outgoing HTTP request -message for the HTTP client implementation. Likewise, you can also use this -class with other HTTP client implementations and for tests. - -> Internally, this implementation builds on top of a base class which is - considered an implementation detail that may change in the future. - -#### ServerRequest - -The `React\Http\Message\ServerRequest` class can be used to -respresent an incoming server request message. - -This class implements the -[PSR-7 `ServerRequestInterface`](https://www.php-fig.org/psr/psr-7/#321-psrhttpmessageserverrequestinterface) -which extends the -[PSR-7 `RequestInterface`](https://www.php-fig.org/psr/psr-7/#32-psrhttpmessagerequestinterface) -which in turn extends the -[PSR-7 `MessageInterface`](https://www.php-fig.org/psr/psr-7/#31-psrhttpmessagemessageinterface). - -This is mostly used internally to represent each incoming request message. -Likewise, you can also use this class in test cases to test how your web -application reacts to certain HTTP requests. - -> Internally, this implementation builds on top of a base class which is - considered an implementation detail that may change in the future. - -#### Uri - -The `React\Http\Message\Uri` class can be used to -respresent a URI (or URL). - -This class implements the -[PSR-7 `UriInterface`](https://www.php-fig.org/psr/psr-7/#35-psrhttpmessageuriinterface). - -This is mostly used internally to represent the URI of each HTTP request -message for our HTTP client and server implementations. Likewise, you may -also use this class with other HTTP implementations and for tests. - -#### ResponseException - -The `React\Http\Message\ResponseException` is an `Exception` sub-class that will be used to reject -a request promise if the remote server returns a non-success status code -(anything but 2xx or 3xx). -You can control this behavior via the [`withRejectErrorResponse()` method](#withrejecterrorresponse). - -The `getCode(): int` method can be used to -return the HTTP response status code. - -The `getResponse(): ResponseInterface` method can be used to -access its underlying response object. - -### React\Http\Middleware - -#### StreamingRequestMiddleware - -The `React\Http\Middleware\StreamingRequestMiddleware` can be used to -process incoming requests with a streaming request body (without buffering). - -This allows you to process requests of any size without buffering the request -body in memory. Instead, it will represent the request body as a -[`ReadableStreamInterface`](https://github.com/reactphp/stream#readablestreaminterface) -that emit chunks of incoming data as it is received: - -```php -$http = new React\Http\HttpServer( - new React\Http\Middleware\StreamingRequestMiddleware(), - function (Psr\Http\Message\ServerRequestInterface $request) { - $body = $request->getBody(); - assert($body instanceof Psr\Http\Message\StreamInterface); - assert($body instanceof React\Stream\ReadableStreamInterface); - - return new React\Promise\Promise(function ($resolve) use ($body) { - $bytes = 0; - $body->on('data', function ($chunk) use (&$bytes) { - $bytes += \count($chunk); - }); - $body->on('close', function () use (&$bytes, $resolve) { - $resolve(new React\Http\Message\Response( - React\Http\Message\Response::STATUS_OK, - [], - "Received $bytes bytes\n" - )); - }); - }); - } -); -``` - -See also [streaming incoming request](#streaming-incoming-request) -for more details. - -Additionally, this middleware can be used in combination with the -[`LimitConcurrentRequestsMiddleware`](#limitconcurrentrequestsmiddleware) and -[`RequestBodyBufferMiddleware`](#requestbodybuffermiddleware) (see below) -to explicitly configure the total number of requests that can be handled at -once: - -```php -$http = new React\Http\HttpServer( - new React\Http\Middleware\StreamingRequestMiddleware(), - new React\Http\Middleware\LimitConcurrentRequestsMiddleware(100), // 100 concurrent buffering handlers - new React\Http\Middleware\RequestBodyBufferMiddleware(2 * 1024 * 1024), // 2 MiB per request - new React\Http\Middleware\RequestBodyParserMiddleware(), - $handler -); -``` - -> Internally, this class is used as a "marker" to not trigger the default - request buffering behavior in the `HttpServer`. It does not implement any logic - on its own. - -#### LimitConcurrentRequestsMiddleware - -The `React\Http\Middleware\LimitConcurrentRequestsMiddleware` can be used to -limit how many next handlers can be executed concurrently. - -If this middleware is invoked, it will check if the number of pending -handlers is below the allowed limit and then simply invoke the next handler -and it will return whatever the next handler returns (or throws). - -If the number of pending handlers exceeds the allowed limit, the request will -be queued (and its streaming body will be paused) and it will return a pending -promise. -Once a pending handler returns (or throws), it will pick the oldest request -from this queue and invokes the next handler (and its streaming body will be -resumed). - -The following example shows how this middleware can be used to ensure no more -than 10 handlers will be invoked at once: - -```php -$http = new React\Http\HttpServer( - new React\Http\Middleware\LimitConcurrentRequestsMiddleware(10), - $handler -); -``` - -Similarly, this middleware is often used in combination with the -[`RequestBodyBufferMiddleware`](#requestbodybuffermiddleware) (see below) -to limit the total number of requests that can be buffered at once: - -```php -$http = new React\Http\HttpServer( - new React\Http\Middleware\StreamingRequestMiddleware(), - new React\Http\Middleware\LimitConcurrentRequestsMiddleware(100), // 100 concurrent buffering handlers - new React\Http\Middleware\RequestBodyBufferMiddleware(2 * 1024 * 1024), // 2 MiB per request - new React\Http\Middleware\RequestBodyParserMiddleware(), - $handler -); -``` - -More sophisticated examples include limiting the total number of requests -that can be buffered at once and then ensure the actual request handler only -processes one request after another without any concurrency: - -```php -$http = new React\Http\HttpServer( - new React\Http\Middleware\StreamingRequestMiddleware(), - new React\Http\Middleware\LimitConcurrentRequestsMiddleware(100), // 100 concurrent buffering handlers - new React\Http\Middleware\RequestBodyBufferMiddleware(2 * 1024 * 1024), // 2 MiB per request - new React\Http\Middleware\RequestBodyParserMiddleware(), - new React\Http\Middleware\LimitConcurrentRequestsMiddleware(1), // only execute 1 handler (no concurrency) - $handler -); -``` - -#### RequestBodyBufferMiddleware - -One of the built-in middleware is the `React\Http\Middleware\RequestBodyBufferMiddleware` which -can be used to buffer the whole incoming request body in memory. -This can be useful if full PSR-7 compatibility is needed for the request handler -and the default streaming request body handling is not needed. -The constructor accepts one optional argument, the maximum request body size. -When one isn't provided it will use `post_max_size` (default 8 MiB) from PHP's -configuration. -(Note that the value from your matching SAPI will be used, which is the CLI -configuration in most cases.) - -Any incoming request that has a request body that exceeds this limit will be -accepted, but its request body will be discarded (empty request body). -This is done in order to avoid having to keep an incoming request with an -excessive size (for example, think of a 2 GB file upload) in memory. -This allows the next middleware handler to still handle this request, but it -will see an empty request body. -This is similar to PHP's default behavior, where the body will not be parsed -if this limit is exceeded. However, unlike PHP's default behavior, the raw -request body is not available via `php://input`. - -The `RequestBodyBufferMiddleware` will buffer requests with bodies of known size -(i.e. with `Content-Length` header specified) as well as requests with bodies of -unknown size (i.e. with `Transfer-Encoding: chunked` header). - -All requests will be buffered in memory until the request body end has -been reached and then call the next middleware handler with the complete, -buffered request. -Similarly, this will immediately invoke the next middleware handler for requests -that have an empty request body (such as a simple `GET` request) and requests -that are already buffered (such as due to another middleware). - -Note that the given buffer size limit is applied to each request individually. -This means that if you allow a 2 MiB limit and then receive 1000 concurrent -requests, up to 2000 MiB may be allocated for these buffers alone. -As such, it's highly recommended to use this along with the -[`LimitConcurrentRequestsMiddleware`](#limitconcurrentrequestsmiddleware) (see above) to limit -the total number of concurrent requests. - -Usage: - -```php -$http = new React\Http\HttpServer( - new React\Http\Middleware\StreamingRequestMiddleware(), - new React\Http\Middleware\LimitConcurrentRequestsMiddleware(100), // 100 concurrent buffering handlers - new React\Http\Middleware\RequestBodyBufferMiddleware(16 * 1024 * 1024), // 16 MiB - function (Psr\Http\Message\ServerRequestInterface $request) { - // The body from $request->getBody() is now fully available without the need to stream it - return new React\Http\Message\Response(React\Http\Message\Response::STATUS_OK); - }, -); -``` - -#### RequestBodyParserMiddleware - -The `React\Http\Middleware\RequestBodyParserMiddleware` takes a fully buffered request body -(generally from [`RequestBodyBufferMiddleware`](#requestbodybuffermiddleware)), -and parses the form values and file uploads from the incoming HTTP request body. - -This middleware handler takes care of applying values from HTTP -requests that use `Content-Type: application/x-www-form-urlencoded` or -`Content-Type: multipart/form-data` to resemble PHP's default superglobals -`$_POST` and `$_FILES`. -Instead of relying on these superglobals, you can use the -`$request->getParsedBody()` and `$request->getUploadedFiles()` methods -as defined by PSR-7. - -Accordingly, each file upload will be represented as instance implementing the -[PSR-7 `UploadedFileInterface`](https://www.php-fig.org/psr/psr-7/#36-psrhttpmessageuploadedfileinterface). -Due to its blocking nature, the `moveTo()` method is not available and throws -a `RuntimeException` instead. -You can use `$contents = (string)$file->getStream();` to access the file -contents and persist this to your favorite data store. - -```php -$handler = function (Psr\Http\Message\ServerRequestInterface $request) { - // If any, parsed form fields are now available from $request->getParsedBody() - $body = $request->getParsedBody(); - $name = isset($body['name']) ? $body['name'] : 'unnamed'; - - $files = $request->getUploadedFiles(); - $avatar = isset($files['avatar']) ? $files['avatar'] : null; - if ($avatar instanceof Psr\Http\Message\UploadedFileInterface) { - if ($avatar->getError() === UPLOAD_ERR_OK) { - $uploaded = $avatar->getSize() . ' bytes'; - } elseif ($avatar->getError() === UPLOAD_ERR_INI_SIZE) { - $uploaded = 'file too large'; - } else { - $uploaded = 'with error'; - } - } else { - $uploaded = 'nothing'; - } - - return new React\Http\Message\Response( - React\Http\Message\Response::STATUS_OK, - array( - 'Content-Type' => 'text/plain' - ), - $name . ' uploaded ' . $uploaded - ); -}; - -$http = new React\Http\HttpServer( - new React\Http\Middleware\StreamingRequestMiddleware(), - new React\Http\Middleware\LimitConcurrentRequestsMiddleware(100), // 100 concurrent buffering handlers - new React\Http\Middleware\RequestBodyBufferMiddleware(16 * 1024 * 1024), // 16 MiB - new React\Http\Middleware\RequestBodyParserMiddleware(), - $handler -); -``` - -See also [form upload server example](examples/62-server-form-upload.php) for more details. - -By default, this middleware respects the -[`upload_max_filesize`](https://www.php.net/manual/en/ini.core.php#ini.upload-max-filesize) -(default `2M`) ini setting. -Files that exceed this limit will be rejected with an `UPLOAD_ERR_INI_SIZE` error. -You can control the maximum filesize for each individual file upload by -explicitly passing the maximum filesize in bytes as the first parameter to the -constructor like this: - -```php -new React\Http\Middleware\RequestBodyParserMiddleware(8 * 1024 * 1024); // 8 MiB limit per file -``` - -By default, this middleware respects the -[`file_uploads`](https://www.php.net/manual/en/ini.core.php#ini.file-uploads) -(default `1`) and -[`max_file_uploads`](https://www.php.net/manual/en/ini.core.php#ini.max-file-uploads) -(default `20`) ini settings. -These settings control if any and how many files can be uploaded in a single request. -If you upload more files in a single request, additional files will be ignored -and the `getUploadedFiles()` method returns a truncated array. -Note that upload fields left blank on submission do not count towards this limit. -You can control the maximum number of file uploads per request by explicitly -passing the second parameter to the constructor like this: - -```php -new React\Http\Middleware\RequestBodyParserMiddleware(10 * 1024, 100); // 100 files with 10 KiB each -``` - -> Note that this middleware handler simply parses everything that is already - buffered in the request body. - It is imperative that the request body is buffered by a prior middleware - handler as given in the example above. - This previous middleware handler is also responsible for rejecting incoming - requests that exceed allowed message sizes (such as big file uploads). - The [`RequestBodyBufferMiddleware`](#requestbodybuffermiddleware) used above - simply discards excessive request bodies, resulting in an empty body. - If you use this middleware without buffering first, it will try to parse an - empty (streaming) body and may thus assume an empty data structure. - See also [`RequestBodyBufferMiddleware`](#requestbodybuffermiddleware) for - more details. - -> PHP's `MAX_FILE_SIZE` hidden field is respected by this middleware. - Files that exceed this limit will be rejected with an `UPLOAD_ERR_FORM_SIZE` error. - -> This middleware respects the - [`max_input_vars`](https://www.php.net/manual/en/info.configuration.php#ini.max-input-vars) - (default `1000`) and - [`max_input_nesting_level`](https://www.php.net/manual/en/info.configuration.php#ini.max-input-nesting-level) - (default `64`) ini settings. - -> Note that this middleware ignores the - [`enable_post_data_reading`](https://www.php.net/manual/en/ini.core.php#ini.enable-post-data-reading) - (default `1`) ini setting because it makes little sense to respect here and - is left up to higher-level implementations. - If you want to respect this setting, you have to check its value and - effectively avoid using this middleware entirely. - -## Install - -The recommended way to install this library is [through Composer](https://getcomposer.org/). -[New to Composer?](https://getcomposer.org/doc/00-intro.md) - -This project follows [SemVer](https://semver.org/). -This will install the latest supported version: - -```bash -composer require react/http:^1.11 -``` - -See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades. - -This project aims to run on any platform and thus does not require any PHP -extensions and supports running on legacy PHP 5.3 through current PHP 8+ and -HHVM. -It's *highly recommended to use the latest supported PHP version* for this project. - -## Tests - -To run the test suite, you first need to clone this repo and then install all -dependencies [through Composer](https://getcomposer.org/): - -```bash -composer install -``` - -To run the test suite, go to the project root and run: - -```bash -vendor/bin/phpunit -``` - -The test suite also contains a number of functional integration tests that rely -on a stable internet connection. -If you do not want to run these, they can simply be skipped like this: - -```bash -vendor/bin/phpunit --exclude-group internet -``` - -## License - -MIT, see [LICENSE file](LICENSE). diff --git a/vendor/react/http/composer.json b/vendor/react/http/composer.json deleted file mode 100644 index 4234210..0000000 --- a/vendor/react/http/composer.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "name": "react/http", - "description": "Event-driven, streaming HTTP client and server implementation for ReactPHP", - "keywords": ["HTTP client", "HTTP server", "HTTP", "HTTPS", "event-driven", "streaming", "client", "server", "PSR-7", "async", "ReactPHP"], - "license": "MIT", - "authors": [ - { - "name": "Christian Lück", - "homepage": "https://clue.engineering/", - "email": "christian@clue.engineering" - }, - { - "name": "Cees-Jan Kiewiet", - "homepage": "https://wyrihaximus.net/", - "email": "reactphp@ceesjankiewiet.nl" - }, - { - "name": "Jan Sorgalla", - "homepage": "https://sorgalla.com/", - "email": "jsorgalla@gmail.com" - }, - { - "name": "Chris Boden", - "homepage": "https://cboden.dev/", - "email": "cboden@gmail.com" - } - ], - "require": { - "php": ">=5.3.0", - "evenement/evenement": "^3.0 || ^2.0 || ^1.0", - "fig/http-message-util": "^1.1", - "psr/http-message": "^1.0", - "react/event-loop": "^1.2", - "react/promise": "^3.2 || ^2.3 || ^1.2.1", - "react/socket": "^1.16", - "react/stream": "^1.4" - }, - "require-dev": { - "clue/http-proxy-react": "^1.8", - "clue/reactphp-ssh-proxy": "^1.4", - "clue/socks-react": "^1.4", - "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36", - "react/async": "^4.2 || ^3 || ^2", - "react/promise-stream": "^1.4", - "react/promise-timer": "^1.11" - }, - "autoload": { - "psr-4": { - "React\\Http\\": "src/" - } - }, - "autoload-dev": { - "psr-4": { - "React\\Tests\\Http\\": "tests/" - } - } -} diff --git a/vendor/react/http/src/Browser.php b/vendor/react/http/src/Browser.php deleted file mode 100644 index 9da0dca..0000000 --- a/vendor/react/http/src/Browser.php +++ /dev/null @@ -1,858 +0,0 @@ - 'ReactPHP/1' - ); - - /** - * The `Browser` is responsible for sending HTTP requests to your HTTP server - * and keeps track of pending incoming HTTP responses. - * - * ```php - * $browser = new React\Http\Browser(); - * ``` - * - * This class takes two optional arguments for more advanced usage: - * - * ```php - * // constructor signature as of v1.5.0 - * $browser = new React\Http\Browser(?ConnectorInterface $connector = null, ?LoopInterface $loop = null); - * - * // legacy constructor signature before v1.5.0 - * $browser = new React\Http\Browser(?LoopInterface $loop = null, ?ConnectorInterface $connector = null); - * ``` - * - * If you need custom connector settings (DNS resolution, TLS parameters, timeouts, - * proxy servers etc.), you can explicitly pass a custom instance of the - * [`ConnectorInterface`](https://github.com/reactphp/socket#connectorinterface): - * - * ```php - * $connector = new React\Socket\Connector(array( - * 'dns' => '127.0.0.1', - * 'tcp' => array( - * 'bindto' => '192.168.10.1:0' - * ), - * 'tls' => array( - * 'verify_peer' => false, - * 'verify_peer_name' => false - * ) - * )); - * - * $browser = new React\Http\Browser($connector); - * ``` - * - * This class takes an optional `LoopInterface|null $loop` parameter that can be used to - * pass the event loop instance to use for this object. You can use a `null` value - * here in order to use the [default loop](https://github.com/reactphp/event-loop#loop). - * This value SHOULD NOT be given unless you're sure you want to explicitly use a - * given event loop instance. - * - * @param null|ConnectorInterface|LoopInterface $connector - * @param null|LoopInterface|ConnectorInterface $loop - * @throws \InvalidArgumentException for invalid arguments - */ - public function __construct($connector = null, $loop = null) - { - // swap arguments for legacy constructor signature - if (($connector instanceof LoopInterface || $connector === null) && ($loop instanceof ConnectorInterface || $loop === null)) { - $swap = $loop; - $loop = $connector; - $connector = $swap; - } - - if (($connector !== null && !$connector instanceof ConnectorInterface) || ($loop !== null && !$loop instanceof LoopInterface)) { - throw new \InvalidArgumentException('Expected "?ConnectorInterface $connector" and "?LoopInterface $loop" arguments'); - } - - $loop = $loop ?: Loop::get(); - $this->transaction = new Transaction( - Sender::createFromLoop($loop, $connector ?: new Connector(array(), $loop)), - $loop - ); - } - - /** - * Sends an HTTP GET request - * - * ```php - * $browser->get($url)->then(function (Psr\Http\Message\ResponseInterface $response) { - * var_dump((string)$response->getBody()); - * }, function (Exception $e) { - * echo 'Error: ' . $e->getMessage() . PHP_EOL; - * }); - * ``` - * - * See also [GET request client example](../examples/01-client-get-request.php). - * - * @param string $url URL for the request. - * @param array $headers - * @return PromiseInterface - */ - public function get($url, array $headers = array()) - { - return $this->requestMayBeStreaming('GET', $url, $headers); - } - - /** - * Sends an HTTP POST request - * - * ```php - * $browser->post( - * $url, - * [ - * 'Content-Type' => 'application/json' - * ], - * json_encode($data) - * )->then(function (Psr\Http\Message\ResponseInterface $response) { - * var_dump(json_decode((string)$response->getBody())); - * }, function (Exception $e) { - * echo 'Error: ' . $e->getMessage() . PHP_EOL; - * }); - * ``` - * - * See also [POST JSON client example](../examples/04-client-post-json.php). - * - * This method is also commonly used to submit HTML form data: - * - * ```php - * $data = [ - * 'user' => 'Alice', - * 'password' => 'secret' - * ]; - * - * $browser->post( - * $url, - * [ - * 'Content-Type' => 'application/x-www-form-urlencoded' - * ], - * http_build_query($data) - * ); - * ``` - * - * This method will automatically add a matching `Content-Length` request - * header if the outgoing request body is a `string`. If you're using a - * streaming request body (`ReadableStreamInterface`), it will default to - * using `Transfer-Encoding: chunked` or you have to explicitly pass in a - * matching `Content-Length` request header like so: - * - * ```php - * $body = new React\Stream\ThroughStream(); - * Loop::addTimer(1.0, function () use ($body) { - * $body->end("hello world"); - * }); - * - * $browser->post($url, array('Content-Length' => '11'), $body); - * ``` - * - * @param string $url URL for the request. - * @param array $headers - * @param string|ReadableStreamInterface $body - * @return PromiseInterface - */ - public function post($url, array $headers = array(), $body = '') - { - return $this->requestMayBeStreaming('POST', $url, $headers, $body); - } - - /** - * Sends an HTTP HEAD request - * - * ```php - * $browser->head($url)->then(function (Psr\Http\Message\ResponseInterface $response) { - * var_dump($response->getHeaders()); - * }, function (Exception $e) { - * echo 'Error: ' . $e->getMessage() . PHP_EOL; - * }); - * ``` - * - * @param string $url URL for the request. - * @param array $headers - * @return PromiseInterface - */ - public function head($url, array $headers = array()) - { - return $this->requestMayBeStreaming('HEAD', $url, $headers); - } - - /** - * Sends an HTTP PATCH request - * - * ```php - * $browser->patch( - * $url, - * [ - * 'Content-Type' => 'application/json' - * ], - * json_encode($data) - * )->then(function (Psr\Http\Message\ResponseInterface $response) { - * var_dump(json_decode((string)$response->getBody())); - * }, function (Exception $e) { - * echo 'Error: ' . $e->getMessage() . PHP_EOL; - * }); - * ``` - * - * This method will automatically add a matching `Content-Length` request - * header if the outgoing request body is a `string`. If you're using a - * streaming request body (`ReadableStreamInterface`), it will default to - * using `Transfer-Encoding: chunked` or you have to explicitly pass in a - * matching `Content-Length` request header like so: - * - * ```php - * $body = new React\Stream\ThroughStream(); - * Loop::addTimer(1.0, function () use ($body) { - * $body->end("hello world"); - * }); - * - * $browser->patch($url, array('Content-Length' => '11'), $body); - * ``` - * - * @param string $url URL for the request. - * @param array $headers - * @param string|ReadableStreamInterface $body - * @return PromiseInterface - */ - public function patch($url, array $headers = array(), $body = '') - { - return $this->requestMayBeStreaming('PATCH', $url , $headers, $body); - } - - /** - * Sends an HTTP PUT request - * - * ```php - * $browser->put( - * $url, - * [ - * 'Content-Type' => 'text/xml' - * ], - * $xml->asXML() - * )->then(function (Psr\Http\Message\ResponseInterface $response) { - * var_dump((string)$response->getBody()); - * }, function (Exception $e) { - * echo 'Error: ' . $e->getMessage() . PHP_EOL; - * }); - * ``` - * - * See also [PUT XML client example](../examples/05-client-put-xml.php). - * - * This method will automatically add a matching `Content-Length` request - * header if the outgoing request body is a `string`. If you're using a - * streaming request body (`ReadableStreamInterface`), it will default to - * using `Transfer-Encoding: chunked` or you have to explicitly pass in a - * matching `Content-Length` request header like so: - * - * ```php - * $body = new React\Stream\ThroughStream(); - * Loop::addTimer(1.0, function () use ($body) { - * $body->end("hello world"); - * }); - * - * $browser->put($url, array('Content-Length' => '11'), $body); - * ``` - * - * @param string $url URL for the request. - * @param array $headers - * @param string|ReadableStreamInterface $body - * @return PromiseInterface - */ - public function put($url, array $headers = array(), $body = '') - { - return $this->requestMayBeStreaming('PUT', $url, $headers, $body); - } - - /** - * Sends an HTTP DELETE request - * - * ```php - * $browser->delete($url)->then(function (Psr\Http\Message\ResponseInterface $response) { - * var_dump((string)$response->getBody()); - * }, function (Exception $e) { - * echo 'Error: ' . $e->getMessage() . PHP_EOL; - * }); - * ``` - * - * @param string $url URL for the request. - * @param array $headers - * @param string|ReadableStreamInterface $body - * @return PromiseInterface - */ - public function delete($url, array $headers = array(), $body = '') - { - return $this->requestMayBeStreaming('DELETE', $url, $headers, $body); - } - - /** - * Sends an arbitrary HTTP request. - * - * The preferred way to send an HTTP request is by using the above - * [request methods](#request-methods), for example the [`get()`](#get) - * method to send an HTTP `GET` request. - * - * As an alternative, if you want to use a custom HTTP request method, you - * can use this method: - * - * ```php - * $browser->request('OPTIONS', $url)->then(function (Psr\Http\Message\ResponseInterface $response) { - * var_dump((string)$response->getBody()); - * }, function (Exception $e) { - * echo 'Error: ' . $e->getMessage() . PHP_EOL; - * }); - * ``` - * - * This method will automatically add a matching `Content-Length` request - * header if the size of the outgoing request body is known and non-empty. - * For an empty request body, if will only include a `Content-Length: 0` - * request header if the request method usually expects a request body (only - * applies to `POST`, `PUT` and `PATCH`). - * - * If you're using a streaming request body (`ReadableStreamInterface`), it - * will default to using `Transfer-Encoding: chunked` or you have to - * explicitly pass in a matching `Content-Length` request header like so: - * - * ```php - * $body = new React\Stream\ThroughStream(); - * Loop::addTimer(1.0, function () use ($body) { - * $body->end("hello world"); - * }); - * - * $browser->request('POST', $url, array('Content-Length' => '11'), $body); - * ``` - * - * @param string $method HTTP request method, e.g. GET/HEAD/POST etc. - * @param string $url URL for the request - * @param array $headers Additional request headers - * @param string|ReadableStreamInterface $body HTTP request body contents - * @return PromiseInterface - */ - public function request($method, $url, array $headers = array(), $body = '') - { - return $this->withOptions(array('streaming' => false))->requestMayBeStreaming($method, $url, $headers, $body); - } - - /** - * Sends an arbitrary HTTP request and receives a streaming response without buffering the response body. - * - * The preferred way to send an HTTP request is by using the above - * [request methods](#request-methods), for example the [`get()`](#get) - * method to send an HTTP `GET` request. Each of these methods will buffer - * the whole response body in memory by default. This is easy to get started - * and works reasonably well for smaller responses. - * - * In some situations, it's a better idea to use a streaming approach, where - * only small chunks have to be kept in memory. You can use this method to - * send an arbitrary HTTP request and receive a streaming response. It uses - * the same HTTP message API, but does not buffer the response body in - * memory. It only processes the response body in small chunks as data is - * received and forwards this data through [ReactPHP's Stream API](https://github.com/reactphp/stream). - * This works for (any number of) responses of arbitrary sizes. - * - * ```php - * $browser->requestStreaming('GET', $url)->then(function (Psr\Http\Message\ResponseInterface $response) { - * $body = $response->getBody(); - * assert($body instanceof Psr\Http\Message\StreamInterface); - * assert($body instanceof React\Stream\ReadableStreamInterface); - * - * $body->on('data', function ($chunk) { - * echo $chunk; - * }); - * - * $body->on('error', function (Exception $e) { - * echo 'Error: ' . $e->getMessage() . PHP_EOL; - * }); - * - * $body->on('close', function () { - * echo '[DONE]' . PHP_EOL; - * }); - * }, function (Exception $e) { - * echo 'Error: ' . $e->getMessage() . PHP_EOL; - * }); - * ``` - * - * See also [`ReadableStreamInterface`](https://github.com/reactphp/stream#readablestreaminterface) - * and the [streaming response](#streaming-response) for more details, - * examples and possible use-cases. - * - * This method will automatically add a matching `Content-Length` request - * header if the size of the outgoing request body is known and non-empty. - * For an empty request body, if will only include a `Content-Length: 0` - * request header if the request method usually expects a request body (only - * applies to `POST`, `PUT` and `PATCH`). - * - * If you're using a streaming request body (`ReadableStreamInterface`), it - * will default to using `Transfer-Encoding: chunked` or you have to - * explicitly pass in a matching `Content-Length` request header like so: - * - * ```php - * $body = new React\Stream\ThroughStream(); - * Loop::addTimer(1.0, function () use ($body) { - * $body->end("hello world"); - * }); - * - * $browser->requestStreaming('POST', $url, array('Content-Length' => '11'), $body); - * ``` - * - * @param string $method HTTP request method, e.g. GET/HEAD/POST etc. - * @param string $url URL for the request - * @param array $headers Additional request headers - * @param string|ReadableStreamInterface $body HTTP request body contents - * @return PromiseInterface - */ - public function requestStreaming($method, $url, $headers = array(), $body = '') - { - return $this->withOptions(array('streaming' => true))->requestMayBeStreaming($method, $url, $headers, $body); - } - - /** - * Changes the maximum timeout used for waiting for pending requests. - * - * You can pass in the number of seconds to use as a new timeout value: - * - * ```php - * $browser = $browser->withTimeout(10.0); - * ``` - * - * You can pass in a bool `false` to disable any timeouts. In this case, - * requests can stay pending forever: - * - * ```php - * $browser = $browser->withTimeout(false); - * ``` - * - * You can pass in a bool `true` to re-enable default timeout handling. This - * will respects PHP's `default_socket_timeout` setting (default 60s): - * - * ```php - * $browser = $browser->withTimeout(true); - * ``` - * - * See also [timeouts](#timeouts) for more details about timeout handling. - * - * Notice that the [`Browser`](#browser) is an immutable object, i.e. this - * method actually returns a *new* [`Browser`](#browser) instance with the - * given timeout value applied. - * - * @param bool|number $timeout - * @return self - */ - public function withTimeout($timeout) - { - if ($timeout === true) { - $timeout = null; - } elseif ($timeout === false) { - $timeout = -1; - } elseif ($timeout < 0) { - $timeout = 0; - } - - return $this->withOptions(array( - 'timeout' => $timeout, - )); - } - - /** - * Changes how HTTP redirects will be followed. - * - * You can pass in the maximum number of redirects to follow: - * - * ```php - * $browser = $browser->withFollowRedirects(5); - * ``` - * - * The request will automatically be rejected when the number of redirects - * is exceeded. You can pass in a `0` to reject the request for any - * redirects encountered: - * - * ```php - * $browser = $browser->withFollowRedirects(0); - * - * $browser->get($url)->then(function (Psr\Http\Message\ResponseInterface $response) { - * // only non-redirected responses will now end up here - * var_dump($response->getHeaders()); - * }, function (Exception $e) { - * echo 'Error: ' . $e->getMessage() . PHP_EOL; - * }); - * ``` - * - * You can pass in a bool `false` to disable following any redirects. In - * this case, requests will resolve with the redirection response instead - * of following the `Location` response header: - * - * ```php - * $browser = $browser->withFollowRedirects(false); - * - * $browser->get($url)->then(function (Psr\Http\Message\ResponseInterface $response) { - * // any redirects will now end up here - * var_dump($response->getHeaderLine('Location')); - * }, function (Exception $e) { - * echo 'Error: ' . $e->getMessage() . PHP_EOL; - * }); - * ``` - * - * You can pass in a bool `true` to re-enable default redirect handling. - * This defaults to following a maximum of 10 redirects: - * - * ```php - * $browser = $browser->withFollowRedirects(true); - * ``` - * - * See also [redirects](#redirects) for more details about redirect handling. - * - * Notice that the [`Browser`](#browser) is an immutable object, i.e. this - * method actually returns a *new* [`Browser`](#browser) instance with the - * given redirect setting applied. - * - * @param bool|int $followRedirects - * @return self - */ - public function withFollowRedirects($followRedirects) - { - return $this->withOptions(array( - 'followRedirects' => $followRedirects !== false, - 'maxRedirects' => \is_bool($followRedirects) ? null : $followRedirects - )); - } - - /** - * Changes whether non-successful HTTP response status codes (4xx and 5xx) will be rejected. - * - * You can pass in a bool `false` to disable rejecting incoming responses - * that use a 4xx or 5xx response status code. In this case, requests will - * resolve with the response message indicating an error condition: - * - * ```php - * $browser = $browser->withRejectErrorResponse(false); - * - * $browser->get($url)->then(function (Psr\Http\Message\ResponseInterface $response) { - * // any HTTP response will now end up here - * var_dump($response->getStatusCode(), $response->getReasonPhrase()); - * }, function (Exception $e) { - * echo 'Error: ' . $e->getMessage() . PHP_EOL; - * }); - * ``` - * - * You can pass in a bool `true` to re-enable default status code handling. - * This defaults to rejecting any response status codes in the 4xx or 5xx - * range: - * - * ```php - * $browser = $browser->withRejectErrorResponse(true); - * - * $browser->get($url)->then(function (Psr\Http\Message\ResponseInterface $response) { - * // any successful HTTP response will now end up here - * var_dump($response->getStatusCode(), $response->getReasonPhrase()); - * }, function (Exception $e) { - * if ($e instanceof React\Http\Message\ResponseException) { - * // any HTTP response error message will now end up here - * $response = $e->getResponse(); - * var_dump($response->getStatusCode(), $response->getReasonPhrase()); - * } else { - * echo 'Error: ' . $e->getMessage() . PHP_EOL; - * } - * }); - * ``` - * - * Notice that the [`Browser`](#browser) is an immutable object, i.e. this - * method actually returns a *new* [`Browser`](#browser) instance with the - * given setting applied. - * - * @param bool $obeySuccessCode - * @return self - */ - public function withRejectErrorResponse($obeySuccessCode) - { - return $this->withOptions(array( - 'obeySuccessCode' => $obeySuccessCode, - )); - } - - /** - * Changes the base URL used to resolve relative URLs to. - * - * If you configure a base URL, any requests to relative URLs will be - * processed by first resolving this relative to the given absolute base - * URL. This supports resolving relative path references (like `../` etc.). - * This is particularly useful for (RESTful) API calls where all endpoints - * (URLs) are located under a common base URL. - * - * ```php - * $browser = $browser->withBase('http://api.example.com/v3/'); - * - * // will request http://api.example.com/v3/users - * $browser->get('users')->then(…); - * ``` - * - * You can pass in a `null` base URL to return a new instance that does not - * use a base URL: - * - * ```php - * $browser = $browser->withBase(null); - * ``` - * - * Accordingly, any requests using relative URLs to a browser that does not - * use a base URL can not be completed and will be rejected without sending - * a request. - * - * This method will throw an `InvalidArgumentException` if the given - * `$baseUrl` argument is not a valid URL. - * - * Notice that the [`Browser`](#browser) is an immutable object, i.e. the `withBase()` method - * actually returns a *new* [`Browser`](#browser) instance with the given base URL applied. - * - * @param string|null $baseUrl absolute base URL - * @return self - * @throws InvalidArgumentException if the given $baseUrl is not a valid absolute URL - * @see self::withoutBase() - */ - public function withBase($baseUrl) - { - $browser = clone $this; - if ($baseUrl === null) { - $browser->baseUrl = null; - return $browser; - } - - $browser->baseUrl = new Uri($baseUrl); - if (!\in_array($browser->baseUrl->getScheme(), array('http', 'https')) || $browser->baseUrl->getHost() === '') { - throw new \InvalidArgumentException('Base URL must be absolute'); - } - - return $browser; - } - - /** - * Changes the HTTP protocol version that will be used for all subsequent requests. - * - * All the above [request methods](#request-methods) default to sending - * requests as HTTP/1.1. This is the preferred HTTP protocol version which - * also provides decent backwards-compatibility with legacy HTTP/1.0 - * servers. As such, there should rarely be a need to explicitly change this - * protocol version. - * - * If you want to explicitly use the legacy HTTP/1.0 protocol version, you - * can use this method: - * - * ```php - * $browser = $browser->withProtocolVersion('1.0'); - * - * $browser->get($url)->then(…); - * ``` - * - * Notice that the [`Browser`](#browser) is an immutable object, i.e. this - * method actually returns a *new* [`Browser`](#browser) instance with the - * new protocol version applied. - * - * @param string $protocolVersion HTTP protocol version to use, must be one of "1.1" or "1.0" - * @return self - * @throws InvalidArgumentException - */ - public function withProtocolVersion($protocolVersion) - { - if (!\in_array($protocolVersion, array('1.0', '1.1'), true)) { - throw new InvalidArgumentException('Invalid HTTP protocol version, must be one of "1.1" or "1.0"'); - } - - $browser = clone $this; - $browser->protocolVersion = (string) $protocolVersion; - - return $browser; - } - - /** - * Changes the maximum size for buffering a response body. - * - * The preferred way to send an HTTP request is by using the above - * [request methods](#request-methods), for example the [`get()`](#get) - * method to send an HTTP `GET` request. Each of these methods will buffer - * the whole response body in memory by default. This is easy to get started - * and works reasonably well for smaller responses. - * - * By default, the response body buffer will be limited to 16 MiB. If the - * response body exceeds this maximum size, the request will be rejected. - * - * You can pass in the maximum number of bytes to buffer: - * - * ```php - * $browser = $browser->withResponseBuffer(1024 * 1024); - * - * $browser->get($url)->then(function (Psr\Http\Message\ResponseInterface $response) { - * // response body will not exceed 1 MiB - * var_dump($response->getHeaders(), (string) $response->getBody()); - * }, function (Exception $e) { - * echo 'Error: ' . $e->getMessage() . PHP_EOL; - * }); - * ``` - * - * Note that the response body buffer has to be kept in memory for each - * pending request until its transfer is completed and it will only be freed - * after a pending request is fulfilled. As such, increasing this maximum - * buffer size to allow larger response bodies is usually not recommended. - * Instead, you can use the [`requestStreaming()` method](#requeststreaming) - * to receive responses with arbitrary sizes without buffering. Accordingly, - * this maximum buffer size setting has no effect on streaming responses. - * - * Notice that the [`Browser`](#browser) is an immutable object, i.e. this - * method actually returns a *new* [`Browser`](#browser) instance with the - * given setting applied. - * - * @param int $maximumSize - * @return self - * @see self::requestStreaming() - */ - public function withResponseBuffer($maximumSize) - { - return $this->withOptions(array( - 'maximumSize' => $maximumSize - )); - } - - /** - * Add a request header for all following requests. - * - * ```php - * $browser = $browser->withHeader('User-Agent', 'ACME'); - * - * $browser->get($url)->then(…); - * ``` - * - * Note that the new header will overwrite any headers previously set with - * the same name (case-insensitive). Following requests will use these headers - * by default unless they are explicitly set for any requests. - * - * @param string $header - * @param string $value - * @return Browser - */ - public function withHeader($header, $value) - { - $browser = $this->withoutHeader($header); - $browser->defaultHeaders[$header] = $value; - - return $browser; - } - - /** - * Remove any default request headers previously set via - * the [`withHeader()` method](#withheader). - * - * ```php - * $browser = $browser->withoutHeader('User-Agent'); - * - * $browser->get($url)->then(…); - * ``` - * - * Note that this method only affects the headers which were set with the - * method `withHeader(string $header, string $value): Browser` - * - * @param string $header - * @return Browser - */ - public function withoutHeader($header) - { - $browser = clone $this; - - /** @var string|int $key */ - foreach (\array_keys($browser->defaultHeaders) as $key) { - if (\strcasecmp($key, $header) === 0) { - unset($browser->defaultHeaders[$key]); - break; - } - } - - return $browser; - } - - /** - * Changes the [options](#options) to use: - * - * The [`Browser`](#browser) class exposes several options for the handling of - * HTTP transactions. These options resemble some of PHP's - * [HTTP context options](http://php.net/manual/en/context.http.php) and - * can be controlled via the following API (and their defaults): - * - * ```php - * // deprecated - * $newBrowser = $browser->withOptions(array( - * 'timeout' => null, // see withTimeout() instead - * 'followRedirects' => true, // see withFollowRedirects() instead - * 'maxRedirects' => 10, // see withFollowRedirects() instead - * 'obeySuccessCode' => true, // see withRejectErrorResponse() instead - * 'streaming' => false, // deprecated, see requestStreaming() instead - * )); - * ``` - * - * See also [timeouts](#timeouts), [redirects](#redirects) and - * [streaming](#streaming) for more details. - * - * Notice that the [`Browser`](#browser) is an immutable object, i.e. this - * method actually returns a *new* [`Browser`](#browser) instance with the - * options applied. - * - * @param array $options - * @return self - * @see self::withTimeout() - * @see self::withFollowRedirects() - * @see self::withRejectErrorResponse() - */ - private function withOptions(array $options) - { - $browser = clone $this; - $browser->transaction = $this->transaction->withOptions($options); - - return $browser; - } - - /** - * @param string $method - * @param string $url - * @param array $headers - * @param string|ReadableStreamInterface $body - * @return PromiseInterface - */ - private function requestMayBeStreaming($method, $url, array $headers = array(), $body = '') - { - if ($this->baseUrl !== null) { - // ensure we're actually below the base URL - $url = Uri::resolve($this->baseUrl, new Uri($url)); - } - - foreach ($this->defaultHeaders as $key => $value) { - $explicitHeaderExists = false; - foreach (\array_keys($headers) as $headerKey) { - if (\strcasecmp($headerKey, $key) === 0) { - $explicitHeaderExists = true; - break; - } - } - if (!$explicitHeaderExists) { - $headers[$key] = $value; - } - } - - return $this->transaction->send( - new Request($method, $url, $headers, $body, $this->protocolVersion) - ); - } -} diff --git a/vendor/react/http/src/Client/Client.php b/vendor/react/http/src/Client/Client.php deleted file mode 100644 index 7a5180a..0000000 --- a/vendor/react/http/src/Client/Client.php +++ /dev/null @@ -1,27 +0,0 @@ -connectionManager = $connectionManager; - } - - /** @return ClientRequestStream */ - public function request(RequestInterface $request) - { - return new ClientRequestStream($this->connectionManager, $request); - } -} diff --git a/vendor/react/http/src/HttpServer.php b/vendor/react/http/src/HttpServer.php deleted file mode 100644 index f233473..0000000 --- a/vendor/react/http/src/HttpServer.php +++ /dev/null @@ -1,351 +0,0 @@ - 'text/plain' - * ), - * "Hello World!\n" - * ); - * }); - * ``` - * - * Each incoming HTTP request message is always represented by the - * [PSR-7 `ServerRequestInterface`](https://www.php-fig.org/psr/psr-7/#321-psrhttpmessageserverrequestinterface), - * see also following [request](#server-request) chapter for more details. - * - * Each outgoing HTTP response message is always represented by the - * [PSR-7 `ResponseInterface`](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface), - * see also following [response](#server-response) chapter for more details. - * - * This class takes an optional `LoopInterface|null $loop` parameter that can be used to - * pass the event loop instance to use for this object. You can use a `null` value - * here in order to use the [default loop](https://github.com/reactphp/event-loop#loop). - * This value SHOULD NOT be given unless you're sure you want to explicitly use a - * given event loop instance. - * - * In order to start listening for any incoming connections, the `HttpServer` needs - * to be attached to an instance of - * [`React\Socket\ServerInterface`](https://github.com/reactphp/socket#serverinterface) - * through the [`listen()`](#listen) method as described in the following - * chapter. In its most simple form, you can attach this to a - * [`React\Socket\SocketServer`](https://github.com/reactphp/socket#socketserver) - * in order to start a plaintext HTTP server like this: - * - * ```php - * $http = new React\Http\HttpServer($handler); - * - * $socket = new React\Socket\SocketServer('0.0.0.0:8080'); - * $http->listen($socket); - * ``` - * - * See also the [`listen()`](#listen) method and - * [hello world server example](../examples/51-server-hello-world.php) - * for more details. - * - * By default, the `HttpServer` buffers and parses the complete incoming HTTP - * request in memory. It will invoke the given request handler function when the - * complete request headers and request body has been received. This means the - * [request](#server-request) object passed to your request handler function will be - * fully compatible with PSR-7 (http-message). This provides sane defaults for - * 80% of the use cases and is the recommended way to use this library unless - * you're sure you know what you're doing. - * - * On the other hand, buffering complete HTTP requests in memory until they can - * be processed by your request handler function means that this class has to - * employ a number of limits to avoid consuming too much memory. In order to - * take the more advanced configuration out your hand, it respects setting from - * your [`php.ini`](https://www.php.net/manual/en/ini.core.php) to apply its - * default settings. This is a list of PHP settings this class respects with - * their respective default values: - * - * ``` - * memory_limit 128M - * post_max_size 8M // capped at 64K - * - * enable_post_data_reading 1 - * max_input_nesting_level 64 - * max_input_vars 1000 - * - * file_uploads 1 - * upload_max_filesize 2M - * max_file_uploads 20 - * ``` - * - * In particular, the `post_max_size` setting limits how much memory a single - * HTTP request is allowed to consume while buffering its request body. This - * needs to be limited because the server can process a large number of requests - * concurrently, so the server may potentially consume a large amount of memory - * otherwise. To support higher concurrency by default, this value is capped - * at `64K`. If you assign a higher value, it will only allow `64K` by default. - * If a request exceeds this limit, its request body will be ignored and it will - * be processed like a request with no request body at all. See below for - * explicit configuration to override this setting. - * - * By default, this class will try to avoid consuming more than half of your - * `memory_limit` for buffering multiple concurrent HTTP requests. As such, with - * the above default settings of `128M` max, it will try to consume no more than - * `64M` for buffering multiple concurrent HTTP requests. As a consequence, it - * will limit the concurrency to `1024` HTTP requests with the above defaults. - * - * It is imperative that you assign reasonable values to your PHP ini settings. - * It is usually recommended to not support buffering incoming HTTP requests - * with a large HTTP request body (e.g. large file uploads). If you want to - * increase this buffer size, you will have to also increase the total memory - * limit to allow for more concurrent requests (set `memory_limit 512M` or more) - * or explicitly limit concurrency. - * - * In order to override the above buffering defaults, you can configure the - * `HttpServer` explicitly. You can use the - * [`LimitConcurrentRequestsMiddleware`](#limitconcurrentrequestsmiddleware) and - * [`RequestBodyBufferMiddleware`](#requestbodybuffermiddleware) (see below) - * to explicitly configure the total number of requests that can be handled at - * once like this: - * - * ```php - * $http = new React\Http\HttpServer( - * new React\Http\Middleware\StreamingRequestMiddleware(), - * new React\Http\Middleware\LimitConcurrentRequestsMiddleware(100), // 100 concurrent buffering handlers - * new React\Http\Middleware\RequestBodyBufferMiddleware(2 * 1024 * 1024), // 2 MiB per request - * new React\Http\Middleware\RequestBodyParserMiddleware(), - * $handler - * )); - * ``` - * - * In this example, we allow processing up to 100 concurrent requests at once - * and each request can buffer up to `2M`. This means you may have to keep a - * maximum of `200M` of memory for incoming request body buffers. Accordingly, - * you need to adjust the `memory_limit` ini setting to allow for these buffers - * plus your actual application logic memory requirements (think `512M` or more). - * - * > Internally, this class automatically assigns these middleware handlers - * automatically when no [`StreamingRequestMiddleware`](#streamingrequestmiddleware) - * is given. Accordingly, you can use this example to override all default - * settings to implement custom limits. - * - * As an alternative to buffering the complete request body in memory, you can - * also use a streaming approach where only small chunks of data have to be kept - * in memory: - * - * ```php - * $http = new React\Http\HttpServer( - * new React\Http\Middleware\StreamingRequestMiddleware(), - * $handler - * ); - * ``` - * - * In this case, it will invoke the request handler function once the HTTP - * request headers have been received, i.e. before receiving the potentially - * much larger HTTP request body. This means the [request](#server-request) passed to - * your request handler function may not be fully compatible with PSR-7. This is - * specifically designed to help with more advanced use cases where you want to - * have full control over consuming the incoming HTTP request body and - * concurrency settings. See also [streaming incoming request](#streaming-incoming-request) - * below for more details. - * - * > Changelog v1.5.0: This class has been renamed to `HttpServer` from the - * previous `Server` class in order to avoid any ambiguities. - * The previous name has been deprecated and should not be used anymore. - */ -final class HttpServer extends EventEmitter -{ - /** - * The maximum buffer size used for each request. - * - * This needs to be limited because the server can process a large number of - * requests concurrently, so the server may potentially consume a large - * amount of memory otherwise. - * - * See `RequestBodyBufferMiddleware` to override this setting. - * - * @internal - */ - const MAXIMUM_BUFFER_SIZE = 65536; // 64 KiB - - /** - * @var StreamingServer - */ - private $streamingServer; - - /** - * Creates an HTTP server that invokes the given callback for each incoming HTTP request - * - * In order to process any connections, the server needs to be attached to an - * instance of `React\Socket\ServerInterface` which emits underlying streaming - * connections in order to then parse incoming data as HTTP. - * See also [listen()](#listen) for more details. - * - * @param callable|LoopInterface $requestHandlerOrLoop - * @param callable[] ...$requestHandler - * @see self::listen() - */ - public function __construct($requestHandlerOrLoop) - { - $requestHandlers = \func_get_args(); - if (reset($requestHandlers) instanceof LoopInterface) { - $loop = \array_shift($requestHandlers); - } else { - $loop = Loop::get(); - } - - $requestHandlersCount = \count($requestHandlers); - if ($requestHandlersCount === 0 || \count(\array_filter($requestHandlers, 'is_callable')) < $requestHandlersCount) { - throw new \InvalidArgumentException('Invalid request handler given'); - } - - $streaming = false; - foreach ((array) $requestHandlers as $handler) { - if ($handler instanceof StreamingRequestMiddleware) { - $streaming = true; - break; - } - } - - $middleware = array(); - if (!$streaming) { - $maxSize = $this->getMaxRequestSize(); - $concurrency = $this->getConcurrentRequestsLimit(\ini_get('memory_limit'), $maxSize); - if ($concurrency !== null) { - $middleware[] = new LimitConcurrentRequestsMiddleware($concurrency); - } - $middleware[] = new RequestBodyBufferMiddleware($maxSize); - // Checking for an empty string because that is what a boolean - // false is returned as by ini_get depending on the PHP version. - // @link http://php.net/manual/en/ini.core.php#ini.enable-post-data-reading - // @link http://php.net/manual/en/function.ini-get.php#refsect1-function.ini-get-notes - // @link https://3v4l.org/qJtsa - $enablePostDataReading = \ini_get('enable_post_data_reading'); - if ($enablePostDataReading !== '') { - $middleware[] = new RequestBodyParserMiddleware(); - } - } - - $middleware = \array_merge($middleware, $requestHandlers); - - /** - * Filter out any configuration middleware, no need to run requests through something that isn't - * doing anything with the request. - */ - $middleware = \array_filter($middleware, function ($handler) { - return !($handler instanceof StreamingRequestMiddleware); - }); - - $this->streamingServer = new StreamingServer($loop, new MiddlewareRunner($middleware)); - - $that = $this; - $this->streamingServer->on('error', function ($error) use ($that) { - $that->emit('error', array($error)); - }); - } - - /** - * Starts listening for HTTP requests on the given socket server instance - * - * The given [`React\Socket\ServerInterface`](https://github.com/reactphp/socket#serverinterface) - * is responsible for emitting the underlying streaming connections. This - * HTTP server needs to be attached to it in order to process any - * connections and pase incoming streaming data as incoming HTTP request - * messages. In its most common form, you can attach this to a - * [`React\Socket\SocketServer`](https://github.com/reactphp/socket#socketserver) - * in order to start a plaintext HTTP server like this: - * - * ```php - * $http = new React\Http\HttpServer($handler); - * - * $socket = new React\Socket\SocketServer('0.0.0.0:8080'); - * $http->listen($socket); - * ``` - * - * See also [hello world server example](../examples/51-server-hello-world.php) - * for more details. - * - * This example will start listening for HTTP requests on the alternative - * HTTP port `8080` on all interfaces (publicly). As an alternative, it is - * very common to use a reverse proxy and let this HTTP server listen on the - * localhost (loopback) interface only by using the listen address - * `127.0.0.1:8080` instead. This way, you host your application(s) on the - * default HTTP port `80` and only route specific requests to this HTTP - * server. - * - * Likewise, it's usually recommended to use a reverse proxy setup to accept - * secure HTTPS requests on default HTTPS port `443` (TLS termination) and - * only route plaintext requests to this HTTP server. As an alternative, you - * can also accept secure HTTPS requests with this HTTP server by attaching - * this to a [`React\Socket\SocketServer`](https://github.com/reactphp/socket#socketserver) - * using a secure TLS listen address, a certificate file and optional - * `passphrase` like this: - * - * ```php - * $http = new React\Http\HttpServer($handler); - * - * $socket = new React\Socket\SocketServer('tls://0.0.0.0:8443', array( - * 'tls' => array( - * 'local_cert' => __DIR__ . '/localhost.pem' - * ) - * )); - * $http->listen($socket); - * ``` - * - * See also [hello world HTTPS example](../examples/61-server-hello-world-https.php) - * for more details. - * - * @param ServerInterface $socket - */ - public function listen(ServerInterface $socket) - { - $this->streamingServer->listen($socket); - } - - /** - * @param string $memory_limit - * @param string $post_max_size - * @return ?int - */ - private function getConcurrentRequestsLimit($memory_limit, $post_max_size) - { - if ($memory_limit == -1) { - return null; - } - - $availableMemory = IniUtil::iniSizeToBytes($memory_limit) / 2; - $concurrentRequests = (int) \ceil($availableMemory / IniUtil::iniSizeToBytes($post_max_size)); - - return $concurrentRequests; - } - - /** - * @param ?string $post_max_size - * @return int - */ - private function getMaxRequestSize($post_max_size = null) - { - $maxSize = IniUtil::iniSizeToBytes($post_max_size === null ? \ini_get('post_max_size') : $post_max_size); - - return ($maxSize === 0 || $maxSize >= self::MAXIMUM_BUFFER_SIZE) ? self::MAXIMUM_BUFFER_SIZE : $maxSize; - } -} diff --git a/vendor/react/http/src/Io/AbstractMessage.php b/vendor/react/http/src/Io/AbstractMessage.php deleted file mode 100644 index a0706bb..0000000 --- a/vendor/react/http/src/Io/AbstractMessage.php +++ /dev/null @@ -1,172 +0,0 @@ -@,;:\\\"\/\[\]?={}\x00-\x20\x7F]++):[\x20\x09]*+((?:[\x20\x09]*+[\x21-\x7E\x80-\xFF]++)*+)[\x20\x09]*+[\r]?+\n/m'; - - /** @var array */ - private $headers = array(); - - /** @var array */ - private $headerNamesLowerCase = array(); - - /** @var string */ - private $protocolVersion; - - /** @var StreamInterface */ - private $body; - - /** - * @param string $protocolVersion - * @param array $headers - * @param StreamInterface $body - */ - protected function __construct($protocolVersion, array $headers, StreamInterface $body) - { - foreach ($headers as $name => $value) { - if ($value !== array()) { - if (\is_array($value)) { - foreach ($value as &$one) { - $one = (string) $one; - } - } else { - $value = array((string) $value); - } - - $lower = \strtolower($name); - if (isset($this->headerNamesLowerCase[$lower])) { - $value = \array_merge($this->headers[$this->headerNamesLowerCase[$lower]], $value); - unset($this->headers[$this->headerNamesLowerCase[$lower]]); - } - - $this->headers[$name] = $value; - $this->headerNamesLowerCase[$lower] = $name; - } - } - - $this->protocolVersion = (string) $protocolVersion; - $this->body = $body; - } - - public function getProtocolVersion() - { - return $this->protocolVersion; - } - - public function withProtocolVersion($version) - { - if ((string) $version === $this->protocolVersion) { - return $this; - } - - $message = clone $this; - $message->protocolVersion = (string) $version; - - return $message; - } - - public function getHeaders() - { - return $this->headers; - } - - public function hasHeader($name) - { - return isset($this->headerNamesLowerCase[\strtolower($name)]); - } - - public function getHeader($name) - { - $lower = \strtolower($name); - return isset($this->headerNamesLowerCase[$lower]) ? $this->headers[$this->headerNamesLowerCase[$lower]] : array(); - } - - public function getHeaderLine($name) - { - return \implode(', ', $this->getHeader($name)); - } - - public function withHeader($name, $value) - { - if ($value === array()) { - return $this->withoutHeader($name); - } elseif (\is_array($value)) { - foreach ($value as &$one) { - $one = (string) $one; - } - } else { - $value = array((string) $value); - } - - $lower = \strtolower($name); - if (isset($this->headerNamesLowerCase[$lower]) && $this->headerNamesLowerCase[$lower] === (string) $name && $this->headers[$this->headerNamesLowerCase[$lower]] === $value) { - return $this; - } - - $message = clone $this; - if (isset($message->headerNamesLowerCase[$lower])) { - unset($message->headers[$message->headerNamesLowerCase[$lower]]); - } - - $message->headers[$name] = $value; - $message->headerNamesLowerCase[$lower] = $name; - - return $message; - } - - public function withAddedHeader($name, $value) - { - if ($value === array()) { - return $this; - } - - return $this->withHeader($name, \array_merge($this->getHeader($name), \is_array($value) ? $value : array($value))); - } - - public function withoutHeader($name) - { - $lower = \strtolower($name); - if (!isset($this->headerNamesLowerCase[$lower])) { - return $this; - } - - $message = clone $this; - unset($message->headers[$message->headerNamesLowerCase[$lower]], $message->headerNamesLowerCase[$lower]); - - return $message; - } - - public function getBody() - { - return $this->body; - } - - public function withBody(StreamInterface $body) - { - if ($body === $this->body) { - return $this; - } - - $message = clone $this; - $message->body = $body; - - return $message; - } -} diff --git a/vendor/react/http/src/Io/AbstractRequest.php b/vendor/react/http/src/Io/AbstractRequest.php deleted file mode 100644 index f32307f..0000000 --- a/vendor/react/http/src/Io/AbstractRequest.php +++ /dev/null @@ -1,156 +0,0 @@ - $headers - * @param StreamInterface $body - * @param string unknown $protocolVersion - */ - protected function __construct( - $method, - $uri, - array $headers, - StreamInterface $body, - $protocolVersion - ) { - if (\is_string($uri)) { - $uri = new Uri($uri); - } elseif (!$uri instanceof UriInterface) { - throw new \InvalidArgumentException( - 'Argument #2 ($uri) expected string|Psr\Http\Message\UriInterface' - ); - } - - // assign default `Host` request header from URI unless already given explicitly - $host = $uri->getHost(); - if ($host !== '') { - foreach ($headers as $name => $value) { - if (\strtolower($name) === 'host' && $value !== array()) { - $host = ''; - break; - } - } - if ($host !== '') { - $port = $uri->getPort(); - if ($port !== null && (!($port === 80 && $uri->getScheme() === 'http') || !($port === 443 && $uri->getScheme() === 'https'))) { - $host .= ':' . $port; - } - - $headers = array('Host' => $host) + $headers; - } - } - - parent::__construct($protocolVersion, $headers, $body); - - $this->method = $method; - $this->uri = $uri; - } - - public function getRequestTarget() - { - if ($this->requestTarget !== null) { - return $this->requestTarget; - } - - $target = $this->uri->getPath(); - if ($target === '') { - $target = '/'; - } - if (($query = $this->uri->getQuery()) !== '') { - $target .= '?' . $query; - } - - return $target; - } - - public function withRequestTarget($requestTarget) - { - if ((string) $requestTarget === $this->requestTarget) { - return $this; - } - - $request = clone $this; - $request->requestTarget = (string) $requestTarget; - - return $request; - } - - public function getMethod() - { - return $this->method; - } - - public function withMethod($method) - { - if ((string) $method === $this->method) { - return $this; - } - - $request = clone $this; - $request->method = (string) $method; - - return $request; - } - - public function getUri() - { - return $this->uri; - } - - public function withUri(UriInterface $uri, $preserveHost = false) - { - if ($uri === $this->uri) { - return $this; - } - - $request = clone $this; - $request->uri = $uri; - - $host = $uri->getHost(); - $port = $uri->getPort(); - if ($port !== null && $host !== '' && (!($port === 80 && $uri->getScheme() === 'http') || !($port === 443 && $uri->getScheme() === 'https'))) { - $host .= ':' . $port; - } - - // update `Host` request header if URI contains a new host and `$preserveHost` is false - if ($host !== '' && (!$preserveHost || $request->getHeaderLine('Host') === '')) { - // first remove all headers before assigning `Host` header to ensure it always comes first - foreach (\array_keys($request->getHeaders()) as $name) { - $request = $request->withoutHeader($name); - } - - // add `Host` header first, then all other original headers - $request = $request->withHeader('Host', $host); - foreach ($this->withoutHeader('Host')->getHeaders() as $name => $value) { - $request = $request->withHeader($name, $value); - } - } - - return $request; - } -} diff --git a/vendor/react/http/src/Io/BufferedBody.php b/vendor/react/http/src/Io/BufferedBody.php deleted file mode 100644 index 4a4d839..0000000 --- a/vendor/react/http/src/Io/BufferedBody.php +++ /dev/null @@ -1,179 +0,0 @@ -buffer = $buffer; - } - - public function __toString() - { - if ($this->closed) { - return ''; - } - - $this->seek(0); - - return $this->getContents(); - } - - public function close() - { - $this->buffer = ''; - $this->position = 0; - $this->closed = true; - } - - public function detach() - { - $this->close(); - - return null; - } - - public function getSize() - { - return $this->closed ? null : \strlen($this->buffer); - } - - public function tell() - { - if ($this->closed) { - throw new \RuntimeException('Unable to tell position of closed stream'); - } - - return $this->position; - } - - public function eof() - { - return $this->position >= \strlen($this->buffer); - } - - public function isSeekable() - { - return !$this->closed; - } - - public function seek($offset, $whence = \SEEK_SET) - { - if ($this->closed) { - throw new \RuntimeException('Unable to seek on closed stream'); - } - - $old = $this->position; - - if ($whence === \SEEK_SET) { - $this->position = $offset; - } elseif ($whence === \SEEK_CUR) { - $this->position += $offset; - } elseif ($whence === \SEEK_END) { - $this->position = \strlen($this->buffer) + $offset; - } else { - throw new \InvalidArgumentException('Invalid seek mode given'); - } - - if (!\is_int($this->position) || $this->position < 0) { - $this->position = $old; - throw new \RuntimeException('Unable to seek to position'); - } - } - - public function rewind() - { - $this->seek(0); - } - - public function isWritable() - { - return !$this->closed; - } - - public function write($string) - { - if ($this->closed) { - throw new \RuntimeException('Unable to write to closed stream'); - } - - if ($string === '') { - return 0; - } - - if ($this->position > 0 && !isset($this->buffer[$this->position - 1])) { - $this->buffer = \str_pad($this->buffer, $this->position, "\0"); - } - - $len = \strlen($string); - $this->buffer = \substr($this->buffer, 0, $this->position) . $string . \substr($this->buffer, $this->position + $len); - $this->position += $len; - - return $len; - } - - public function isReadable() - { - return !$this->closed; - } - - public function read($length) - { - if ($this->closed) { - throw new \RuntimeException('Unable to read from closed stream'); - } - - if ($length < 1) { - throw new \InvalidArgumentException('Invalid read length given'); - } - - if ($this->position + $length > \strlen($this->buffer)) { - $length = \strlen($this->buffer) - $this->position; - } - - if (!isset($this->buffer[$this->position])) { - return ''; - } - - $pos = $this->position; - $this->position += $length; - - return \substr($this->buffer, $pos, $length); - } - - public function getContents() - { - if ($this->closed) { - throw new \RuntimeException('Unable to read from closed stream'); - } - - if (!isset($this->buffer[$this->position])) { - return ''; - } - - $pos = $this->position; - $this->position = \strlen($this->buffer); - - return \substr($this->buffer, $pos); - } - - public function getMetadata($key = null) - { - return $key === null ? array() : null; - } -} diff --git a/vendor/react/http/src/Io/ChunkedDecoder.php b/vendor/react/http/src/Io/ChunkedDecoder.php deleted file mode 100644 index 2f58f42..0000000 --- a/vendor/react/http/src/Io/ChunkedDecoder.php +++ /dev/null @@ -1,175 +0,0 @@ -input = $input; - - $this->input->on('data', array($this, 'handleData')); - $this->input->on('end', array($this, 'handleEnd')); - $this->input->on('error', array($this, 'handleError')); - $this->input->on('close', array($this, 'close')); - } - - public function isReadable() - { - return !$this->closed && $this->input->isReadable(); - } - - public function pause() - { - $this->input->pause(); - } - - public function resume() - { - $this->input->resume(); - } - - public function pipe(WritableStreamInterface $dest, array $options = array()) - { - Util::pipe($this, $dest, $options); - - return $dest; - } - - public function close() - { - if ($this->closed) { - return; - } - - $this->buffer = ''; - - $this->closed = true; - - $this->input->close(); - - $this->emit('close'); - $this->removeAllListeners(); - } - - /** @internal */ - public function handleEnd() - { - if (!$this->closed) { - $this->handleError(new Exception('Unexpected end event')); - } - } - - /** @internal */ - public function handleError(Exception $e) - { - $this->emit('error', array($e)); - $this->close(); - } - - /** @internal */ - public function handleData($data) - { - $this->buffer .= $data; - - while ($this->buffer !== '') { - if (!$this->headerCompleted) { - $positionCrlf = \strpos($this->buffer, static::CRLF); - - if ($positionCrlf === false) { - // Header shouldn't be bigger than 1024 bytes - if (isset($this->buffer[static::MAX_CHUNK_HEADER_SIZE])) { - $this->handleError(new Exception('Chunk header size inclusive extension bigger than' . static::MAX_CHUNK_HEADER_SIZE. ' bytes')); - } - return; - } - - $header = \strtolower((string)\substr($this->buffer, 0, $positionCrlf)); - $hexValue = $header; - - if (\strpos($header, ';') !== false) { - $array = \explode(';', $header); - $hexValue = $array[0]; - } - - if ($hexValue !== '') { - $hexValue = \ltrim(\trim($hexValue), "0"); - if ($hexValue === '') { - $hexValue = "0"; - } - } - - $this->chunkSize = @\hexdec($hexValue); - if (!\is_int($this->chunkSize) || \dechex($this->chunkSize) !== $hexValue) { - $this->handleError(new Exception($hexValue . ' is not a valid hexadecimal number')); - return; - } - - $this->buffer = (string)\substr($this->buffer, $positionCrlf + 2); - $this->headerCompleted = true; - if ($this->buffer === '') { - return; - } - } - - $chunk = (string)\substr($this->buffer, 0, $this->chunkSize - $this->transferredSize); - - if ($chunk !== '') { - $this->transferredSize += \strlen($chunk); - $this->emit('data', array($chunk)); - $this->buffer = (string)\substr($this->buffer, \strlen($chunk)); - } - - $positionCrlf = \strpos($this->buffer, static::CRLF); - - if ($positionCrlf === 0) { - if ($this->chunkSize === 0) { - $this->emit('end'); - $this->close(); - return; - } - $this->chunkSize = 0; - $this->headerCompleted = false; - $this->transferredSize = 0; - $this->buffer = (string)\substr($this->buffer, 2); - } elseif ($this->chunkSize === 0) { - // end chunk received, skip all trailer data - $this->buffer = (string)\substr($this->buffer, $positionCrlf); - } - - if ($positionCrlf !== 0 && $this->chunkSize !== 0 && $this->chunkSize === $this->transferredSize && \strlen($this->buffer) > 2) { - // the first 2 characters are not CRLF, send error event - $this->handleError(new Exception('Chunk does not end with a CRLF')); - return; - } - - if ($positionCrlf !== 0 && \strlen($this->buffer) < 2) { - // No CRLF found, wait for additional data which could be a CRLF - return; - } - } - } -} diff --git a/vendor/react/http/src/Io/ChunkedEncoder.php b/vendor/react/http/src/Io/ChunkedEncoder.php deleted file mode 100644 index c84ef54..0000000 --- a/vendor/react/http/src/Io/ChunkedEncoder.php +++ /dev/null @@ -1,92 +0,0 @@ -input = $input; - - $this->input->on('data', array($this, 'handleData')); - $this->input->on('end', array($this, 'handleEnd')); - $this->input->on('error', array($this, 'handleError')); - $this->input->on('close', array($this, 'close')); - } - - public function isReadable() - { - return !$this->closed && $this->input->isReadable(); - } - - public function pause() - { - $this->input->pause(); - } - - public function resume() - { - $this->input->resume(); - } - - public function pipe(WritableStreamInterface $dest, array $options = array()) - { - return Util::pipe($this, $dest, $options); - } - - public function close() - { - if ($this->closed) { - return; - } - - $this->closed = true; - $this->input->close(); - - $this->emit('close'); - $this->removeAllListeners(); - } - - /** @internal */ - public function handleData($data) - { - if ($data !== '') { - $this->emit('data', array( - \dechex(\strlen($data)) . "\r\n" . $data . "\r\n" - )); - } - } - - /** @internal */ - public function handleError(\Exception $e) - { - $this->emit('error', array($e)); - $this->close(); - } - - /** @internal */ - public function handleEnd() - { - $this->emit('data', array("0\r\n\r\n")); - - if (!$this->closed) { - $this->emit('end'); - $this->close(); - } - } -} diff --git a/vendor/react/http/src/Io/ClientConnectionManager.php b/vendor/react/http/src/Io/ClientConnectionManager.php deleted file mode 100644 index faac98b..0000000 --- a/vendor/react/http/src/Io/ClientConnectionManager.php +++ /dev/null @@ -1,137 +0,0 @@ -connector = $connector; - $this->loop = $loop; - } - - /** - * @return PromiseInterface - */ - public function connect(UriInterface $uri) - { - $scheme = $uri->getScheme(); - if ($scheme !== 'https' && $scheme !== 'http') { - return \React\Promise\reject(new \InvalidArgumentException( - 'Invalid request URL given' - )); - } - - $port = $uri->getPort(); - if ($port === null) { - $port = $scheme === 'https' ? 443 : 80; - } - $uri = ($scheme === 'https' ? 'tls://' : '') . $uri->getHost() . ':' . $port; - - // Reuse idle connection for same URI if available - foreach ($this->idleConnections as $id => $connection) { - if ($this->idleUris[$id] === $uri) { - assert($this->idleStreamHandlers[$id] instanceof \Closure); - $connection->removeListener('close', $this->idleStreamHandlers[$id]); - $connection->removeListener('data', $this->idleStreamHandlers[$id]); - $connection->removeListener('error', $this->idleStreamHandlers[$id]); - - assert($this->idleTimers[$id] instanceof TimerInterface); - $this->loop->cancelTimer($this->idleTimers[$id]); - unset($this->idleUris[$id], $this->idleConnections[$id], $this->idleTimers[$id], $this->idleStreamHandlers[$id]); - - return \React\Promise\resolve($connection); - } - } - - // Create new connection if no idle connection to same URI is available - return $this->connector->connect($uri); - } - - /** - * Hands back an idle connection to the connection manager for possible future reuse. - * - * @return void - */ - public function keepAlive(UriInterface $uri, ConnectionInterface $connection) - { - $scheme = $uri->getScheme(); - assert($scheme === 'https' || $scheme === 'http'); - - $port = $uri->getPort(); - if ($port === null) { - $port = $scheme === 'https' ? 443 : 80; - } - - $this->idleUris[] = ($scheme === 'https' ? 'tls://' : '') . $uri->getHost() . ':' . $port; - $this->idleConnections[] = $connection; - - $that = $this; - $cleanUp = function () use ($connection, $that) { - // call public method to support legacy PHP 5.3 - $that->cleanUpConnection($connection); - }; - - // clean up and close connection when maximum time to keep-alive idle connection has passed - $this->idleTimers[] = $this->loop->addTimer($this->maximumTimeToKeepAliveIdleConnection, $cleanUp); - - // clean up and close connection when unexpected close/data/error event happens during idle time - $this->idleStreamHandlers[] = $cleanUp; - $connection->on('close', $cleanUp); - $connection->on('data', $cleanUp); - $connection->on('error', $cleanUp); - } - - /** - * @internal - * @return void - */ - public function cleanUpConnection(ConnectionInterface $connection) // private (PHP 5.4+) - { - $id = \array_search($connection, $this->idleConnections, true); - if ($id === false) { - return; - } - - assert(\is_int($id)); - assert($this->idleTimers[$id] instanceof TimerInterface); - $this->loop->cancelTimer($this->idleTimers[$id]); - unset($this->idleUris[$id], $this->idleConnections[$id], $this->idleTimers[$id], $this->idleStreamHandlers[$id]); - - $connection->close(); - } -} diff --git a/vendor/react/http/src/Io/ClientRequestState.php b/vendor/react/http/src/Io/ClientRequestState.php deleted file mode 100644 index 73a63a1..0000000 --- a/vendor/react/http/src/Io/ClientRequestState.php +++ /dev/null @@ -1,16 +0,0 @@ -connectionManager = $connectionManager; - $this->request = $request; - } - - public function isWritable() - { - return self::STATE_END > $this->state && !$this->ended; - } - - private function writeHead() - { - $this->state = self::STATE_WRITING_HEAD; - - $expected = 0; - $headers = "{$this->request->getMethod()} {$this->request->getRequestTarget()} HTTP/{$this->request->getProtocolVersion()}\r\n"; - foreach ($this->request->getHeaders() as $name => $values) { - if (\strpos($name, ':') !== false) { - $expected = -1; - break; - } - foreach ($values as $value) { - $headers .= "$name: $value\r\n"; - ++$expected; - } - } - - /** @var array $m legacy PHP 5.3 only */ - if (!\preg_match('#^\S+ \S+ HTTP/1\.[01]\r\n#m', $headers) || \substr_count($headers, "\n") !== ($expected + 1) || (\PHP_VERSION_ID >= 50400 ? \preg_match_all(AbstractMessage::REGEX_HEADERS, $headers) : \preg_match_all(AbstractMessage::REGEX_HEADERS, $headers, $m)) !== $expected) { - $this->closeError(new \InvalidArgumentException('Unable to send request with invalid request headers')); - return; - } - - $connectionRef = &$this->connection; - $stateRef = &$this->state; - $pendingWrites = &$this->pendingWrites; - $that = $this; - - $promise = $this->connectionManager->connect($this->request->getUri()); - $promise->then( - function (ConnectionInterface $connection) use ($headers, &$connectionRef, &$stateRef, &$pendingWrites, $that) { - $connectionRef = $connection; - assert($connectionRef instanceof ConnectionInterface); - - $connection->on('drain', array($that, 'handleDrain')); - $connection->on('data', array($that, 'handleData')); - $connection->on('end', array($that, 'handleEnd')); - $connection->on('error', array($that, 'handleError')); - $connection->on('close', array($that, 'close')); - - $more = $connection->write($headers . "\r\n" . $pendingWrites); - - assert($stateRef === ClientRequestStream::STATE_WRITING_HEAD); - $stateRef = ClientRequestStream::STATE_HEAD_WRITTEN; - - // clear pending writes if non-empty - if ($pendingWrites !== '') { - $pendingWrites = ''; - - if ($more) { - $that->emit('drain'); - } - } - }, - array($this, 'closeError') - ); - - $this->on('close', function() use ($promise) { - $promise->cancel(); - }); - } - - public function write($data) - { - if (!$this->isWritable()) { - return false; - } - - // write directly to connection stream if already available - if (self::STATE_HEAD_WRITTEN <= $this->state) { - return $this->connection->write($data); - } - - // otherwise buffer and try to establish connection - $this->pendingWrites .= $data; - if (self::STATE_WRITING_HEAD > $this->state) { - $this->writeHead(); - } - - return false; - } - - public function end($data = null) - { - if (!$this->isWritable()) { - return; - } - - if (null !== $data) { - $this->write($data); - } else if (self::STATE_WRITING_HEAD > $this->state) { - $this->writeHead(); - } - - $this->ended = true; - } - - /** @internal */ - public function handleDrain() - { - $this->emit('drain'); - } - - /** @internal */ - public function handleData($data) - { - $this->buffer .= $data; - - // buffer until double CRLF (or double LF for compatibility with legacy servers) - $eom = \strpos($this->buffer, "\r\n\r\n"); - $eomLegacy = \strpos($this->buffer, "\n\n"); - if ($eom !== false || $eomLegacy !== false) { - try { - if ($eom !== false && ($eomLegacy === false || $eom < $eomLegacy)) { - $response = Response::parseMessage(\substr($this->buffer, 0, $eom + 2)); - $bodyChunk = (string) \substr($this->buffer, $eom + 4); - } else { - $response = Response::parseMessage(\substr($this->buffer, 0, $eomLegacy + 1)); - $bodyChunk = (string) \substr($this->buffer, $eomLegacy + 2); - } - } catch (\InvalidArgumentException $exception) { - $this->closeError($exception); - return; - } - - // response headers successfully received => remove listeners for connection events - $connection = $this->connection; - assert($connection instanceof ConnectionInterface); - $connection->removeListener('drain', array($this, 'handleDrain')); - $connection->removeListener('data', array($this, 'handleData')); - $connection->removeListener('end', array($this, 'handleEnd')); - $connection->removeListener('error', array($this, 'handleError')); - $connection->removeListener('close', array($this, 'close')); - $this->connection = null; - $this->buffer = ''; - - // take control over connection handling and check if we can reuse the connection once response body closes - $that = $this; - $request = $this->request; - $connectionManager = $this->connectionManager; - $successfulEndReceived = false; - $input = $body = new CloseProtectionStream($connection); - $input->on('close', function () use ($connection, $that, $connectionManager, $request, $response, &$successfulEndReceived) { - // only reuse connection after successful response and both request and response allow keep alive - if ($successfulEndReceived && $connection->isReadable() && $that->hasMessageKeepAliveEnabled($response) && $that->hasMessageKeepAliveEnabled($request)) { - $connectionManager->keepAlive($request->getUri(), $connection); - } else { - $connection->close(); - } - - $that->close(); - }); - - // determine length of response body - $length = null; - $code = $response->getStatusCode(); - if ($this->request->getMethod() === 'HEAD' || ($code >= 100 && $code < 200) || $code == Response::STATUS_NO_CONTENT || $code == Response::STATUS_NOT_MODIFIED) { - $length = 0; - } elseif (\strtolower($response->getHeaderLine('Transfer-Encoding')) === 'chunked') { - $body = new ChunkedDecoder($body); - } elseif ($response->hasHeader('Content-Length')) { - $length = (int) $response->getHeaderLine('Content-Length'); - } - $response = $response->withBody($body = new ReadableBodyStream($body, $length)); - $body->on('end', function () use (&$successfulEndReceived) { - $successfulEndReceived = true; - }); - - // emit response with streaming response body (see `Sender`) - $this->emit('response', array($response, $body)); - - // re-emit HTTP response body to trigger body parsing if parts of it are buffered - if ($bodyChunk !== '') { - $input->handleData($bodyChunk); - } elseif ($length === 0) { - $input->handleEnd(); - } - } - } - - /** @internal */ - public function handleEnd() - { - $this->closeError(new \RuntimeException( - "Connection ended before receiving response" - )); - } - - /** @internal */ - public function handleError(\Exception $error) - { - $this->closeError(new \RuntimeException( - "An error occurred in the underlying stream", - 0, - $error - )); - } - - /** @internal */ - public function closeError(\Exception $error) - { - if (self::STATE_END <= $this->state) { - return; - } - $this->emit('error', array($error)); - $this->close(); - } - - public function close() - { - if (self::STATE_END <= $this->state) { - return; - } - - $this->state = self::STATE_END; - $this->pendingWrites = ''; - $this->buffer = ''; - - if ($this->connection instanceof ConnectionInterface) { - $this->connection->close(); - $this->connection = null; - } - - $this->emit('close'); - $this->removeAllListeners(); - } - - /** - * @internal - * @return bool - * @link https://www.rfc-editor.org/rfc/rfc9112#section-9.3 - * @link https://www.rfc-editor.org/rfc/rfc7230#section-6.1 - */ - public function hasMessageKeepAliveEnabled(MessageInterface $message) - { - // @link https://www.rfc-editor.org/rfc/rfc9110#section-7.6.1 - $connectionOptions = \array_map('trim', \explode(',', \strtolower($message->getHeaderLine('Connection')))); - - if (\in_array('close', $connectionOptions, true)) { - return false; - } - - if ($message->getProtocolVersion() === '1.1') { - return true; - } - - if (\in_array('keep-alive', $connectionOptions, true)) { - return true; - } - - return false; - } -} diff --git a/vendor/react/http/src/Io/Clock.php b/vendor/react/http/src/Io/Clock.php deleted file mode 100644 index 92c1cb0..0000000 --- a/vendor/react/http/src/Io/Clock.php +++ /dev/null @@ -1,54 +0,0 @@ -loop = $loop; - } - - /** @return float */ - public function now() - { - if ($this->now === null) { - $this->now = \microtime(true); - - // remember clock for current loop tick only and update on next tick - $now =& $this->now; - $this->loop->futureTick(function () use (&$now) { - assert($now !== null); - $now = null; - }); - } - - return $this->now; - } -} diff --git a/vendor/react/http/src/Io/CloseProtectionStream.php b/vendor/react/http/src/Io/CloseProtectionStream.php deleted file mode 100644 index 2e1ed6e..0000000 --- a/vendor/react/http/src/Io/CloseProtectionStream.php +++ /dev/null @@ -1,111 +0,0 @@ -input = $input; - - $this->input->on('data', array($this, 'handleData')); - $this->input->on('end', array($this, 'handleEnd')); - $this->input->on('error', array($this, 'handleError')); - $this->input->on('close', array($this, 'close')); - } - - public function isReadable() - { - return !$this->closed && $this->input->isReadable(); - } - - public function pause() - { - if ($this->closed) { - return; - } - - $this->paused = true; - $this->input->pause(); - } - - public function resume() - { - if ($this->closed) { - return; - } - - $this->paused = false; - $this->input->resume(); - } - - public function pipe(WritableStreamInterface $dest, array $options = array()) - { - Util::pipe($this, $dest, $options); - - return $dest; - } - - public function close() - { - if ($this->closed) { - return; - } - - $this->closed = true; - - // stop listening for incoming events - $this->input->removeListener('data', array($this, 'handleData')); - $this->input->removeListener('error', array($this, 'handleError')); - $this->input->removeListener('end', array($this, 'handleEnd')); - $this->input->removeListener('close', array($this, 'close')); - - // resume the stream to ensure we discard everything from incoming connection - if ($this->paused) { - $this->paused = false; - $this->input->resume(); - } - - $this->emit('close'); - $this->removeAllListeners(); - } - - /** @internal */ - public function handleData($data) - { - $this->emit('data', array($data)); - } - - /** @internal */ - public function handleEnd() - { - $this->emit('end'); - $this->close(); - } - - /** @internal */ - public function handleError(\Exception $e) - { - $this->emit('error', array($e)); - } -} diff --git a/vendor/react/http/src/Io/EmptyBodyStream.php b/vendor/react/http/src/Io/EmptyBodyStream.php deleted file mode 100644 index 5056219..0000000 --- a/vendor/react/http/src/Io/EmptyBodyStream.php +++ /dev/null @@ -1,142 +0,0 @@ -closed; - } - - public function pause() - { - // NOOP - } - - public function resume() - { - // NOOP - } - - public function pipe(WritableStreamInterface $dest, array $options = array()) - { - Util::pipe($this, $dest, $options); - - return $dest; - } - - public function close() - { - if ($this->closed) { - return; - } - - $this->closed = true; - - $this->emit('close'); - $this->removeAllListeners(); - } - - public function getSize() - { - return 0; - } - - /** @ignore */ - public function __toString() - { - return ''; - } - - /** @ignore */ - public function detach() - { - return null; - } - - /** @ignore */ - public function tell() - { - throw new \BadMethodCallException(); - } - - /** @ignore */ - public function eof() - { - throw new \BadMethodCallException(); - } - - /** @ignore */ - public function isSeekable() - { - return false; - } - - /** @ignore */ - public function seek($offset, $whence = SEEK_SET) - { - throw new \BadMethodCallException(); - } - - /** @ignore */ - public function rewind() - { - throw new \BadMethodCallException(); - } - - /** @ignore */ - public function isWritable() - { - return false; - } - - /** @ignore */ - public function write($string) - { - throw new \BadMethodCallException(); - } - - /** @ignore */ - public function read($length) - { - throw new \BadMethodCallException(); - } - - /** @ignore */ - public function getContents() - { - return ''; - } - - /** @ignore */ - public function getMetadata($key = null) - { - return ($key === null) ? array() : null; - } -} diff --git a/vendor/react/http/src/Io/HttpBodyStream.php b/vendor/react/http/src/Io/HttpBodyStream.php deleted file mode 100644 index 25d15a1..0000000 --- a/vendor/react/http/src/Io/HttpBodyStream.php +++ /dev/null @@ -1,182 +0,0 @@ -input = $input; - $this->size = $size; - - $this->input->on('data', array($this, 'handleData')); - $this->input->on('end', array($this, 'handleEnd')); - $this->input->on('error', array($this, 'handleError')); - $this->input->on('close', array($this, 'close')); - } - - public function isReadable() - { - return !$this->closed && $this->input->isReadable(); - } - - public function pause() - { - $this->input->pause(); - } - - public function resume() - { - $this->input->resume(); - } - - public function pipe(WritableStreamInterface $dest, array $options = array()) - { - Util::pipe($this, $dest, $options); - - return $dest; - } - - public function close() - { - if ($this->closed) { - return; - } - - $this->closed = true; - - $this->input->close(); - - $this->emit('close'); - $this->removeAllListeners(); - } - - public function getSize() - { - return $this->size; - } - - /** @ignore */ - public function __toString() - { - return ''; - } - - /** @ignore */ - public function detach() - { - return null; - } - - /** @ignore */ - public function tell() - { - throw new \BadMethodCallException(); - } - - /** @ignore */ - public function eof() - { - throw new \BadMethodCallException(); - } - - /** @ignore */ - public function isSeekable() - { - return false; - } - - /** @ignore */ - public function seek($offset, $whence = SEEK_SET) - { - throw new \BadMethodCallException(); - } - - /** @ignore */ - public function rewind() - { - throw new \BadMethodCallException(); - } - - /** @ignore */ - public function isWritable() - { - return false; - } - - /** @ignore */ - public function write($string) - { - throw new \BadMethodCallException(); - } - - /** @ignore */ - public function read($length) - { - throw new \BadMethodCallException(); - } - - /** @ignore */ - public function getContents() - { - return ''; - } - - /** @ignore */ - public function getMetadata($key = null) - { - return null; - } - - /** @internal */ - public function handleData($data) - { - $this->emit('data', array($data)); - } - - /** @internal */ - public function handleError(\Exception $e) - { - $this->emit('error', array($e)); - $this->close(); - } - - /** @internal */ - public function handleEnd() - { - if (!$this->closed) { - $this->emit('end'); - $this->close(); - } - } -} diff --git a/vendor/react/http/src/Io/IniUtil.php b/vendor/react/http/src/Io/IniUtil.php deleted file mode 100644 index 612aae2..0000000 --- a/vendor/react/http/src/Io/IniUtil.php +++ /dev/null @@ -1,48 +0,0 @@ -stream = $stream; - $this->maxLength = $maxLength; - - $this->stream->on('data', array($this, 'handleData')); - $this->stream->on('end', array($this, 'handleEnd')); - $this->stream->on('error', array($this, 'handleError')); - $this->stream->on('close', array($this, 'close')); - } - - public function isReadable() - { - return !$this->closed && $this->stream->isReadable(); - } - - public function pause() - { - $this->stream->pause(); - } - - public function resume() - { - $this->stream->resume(); - } - - public function pipe(WritableStreamInterface $dest, array $options = array()) - { - Util::pipe($this, $dest, $options); - - return $dest; - } - - public function close() - { - if ($this->closed) { - return; - } - - $this->closed = true; - - $this->stream->close(); - - $this->emit('close'); - $this->removeAllListeners(); - } - - /** @internal */ - public function handleData($data) - { - if (($this->transferredLength + \strlen($data)) > $this->maxLength) { - // Only emit data until the value of 'Content-Length' is reached, the rest will be ignored - $data = (string)\substr($data, 0, $this->maxLength - $this->transferredLength); - } - - if ($data !== '') { - $this->transferredLength += \strlen($data); - $this->emit('data', array($data)); - } - - if ($this->transferredLength === $this->maxLength) { - // 'Content-Length' reached, stream will end - $this->emit('end'); - $this->close(); - $this->stream->removeListener('data', array($this, 'handleData')); - } - } - - /** @internal */ - public function handleError(\Exception $e) - { - $this->emit('error', array($e)); - $this->close(); - } - - /** @internal */ - public function handleEnd() - { - if (!$this->closed) { - $this->handleError(new \Exception('Unexpected end event')); - } - } - -} diff --git a/vendor/react/http/src/Io/MiddlewareRunner.php b/vendor/react/http/src/Io/MiddlewareRunner.php deleted file mode 100644 index dedf6ff..0000000 --- a/vendor/react/http/src/Io/MiddlewareRunner.php +++ /dev/null @@ -1,61 +0,0 @@ -middleware = \array_values($middleware); - } - - /** - * @param ServerRequestInterface $request - * @return ResponseInterface|PromiseInterface - * @throws \Exception - */ - public function __invoke(ServerRequestInterface $request) - { - if (empty($this->middleware)) { - throw new \RuntimeException('No middleware to run'); - } - - return $this->call($request, 0); - } - - /** @internal */ - public function call(ServerRequestInterface $request, $position) - { - // final request handler will be invoked without a next handler - if (!isset($this->middleware[$position + 1])) { - $handler = $this->middleware[$position]; - return $handler($request); - } - - $that = $this; - $next = function (ServerRequestInterface $request) use ($that, $position) { - return $that->call($request, $position + 1); - }; - - // invoke middleware request handler with next handler - $handler = $this->middleware[$position]; - return $handler($request, $next); - } -} diff --git a/vendor/react/http/src/Io/MultipartParser.php b/vendor/react/http/src/Io/MultipartParser.php deleted file mode 100644 index 539107a..0000000 --- a/vendor/react/http/src/Io/MultipartParser.php +++ /dev/null @@ -1,345 +0,0 @@ -maxInputVars = (int)$var; - } - $var = \ini_get('max_input_nesting_level'); - if ($var !== false) { - $this->maxInputNestingLevel = (int)$var; - } - - if ($uploadMaxFilesize === null) { - $uploadMaxFilesize = \ini_get('upload_max_filesize'); - } - - $this->uploadMaxFilesize = IniUtil::iniSizeToBytes($uploadMaxFilesize); - $this->maxFileUploads = $maxFileUploads === null ? (\ini_get('file_uploads') === '' ? 0 : (int)\ini_get('max_file_uploads')) : (int)$maxFileUploads; - - $this->maxMultipartBodyParts = $this->maxInputVars + $this->maxFileUploads; - } - - public function parse(ServerRequestInterface $request) - { - $contentType = $request->getHeaderLine('content-type'); - if(!\preg_match('/boundary="?(.*?)"?$/', $contentType, $matches)) { - return $request; - } - - $this->request = $request; - $this->parseBody('--' . $matches[1], (string)$request->getBody()); - - $request = $this->request; - $this->request = null; - $this->multipartBodyPartCount = 0; - $this->cursor = 0; - $this->postCount = 0; - $this->filesCount = 0; - $this->emptyCount = 0; - $this->maxFileSize = null; - - return $request; - } - - private function parseBody($boundary, $buffer) - { - $len = \strlen($boundary); - - // ignore everything before initial boundary (SHOULD be empty) - $this->cursor = \strpos($buffer, $boundary . "\r\n"); - - while ($this->cursor !== false) { - // search following boundary (preceded by newline) - // ignore last if not followed by boundary (SHOULD end with "--") - $this->cursor += $len + 2; - $end = \strpos($buffer, "\r\n" . $boundary, $this->cursor); - if ($end === false) { - break; - } - - // parse one part and continue searching for next - $this->parsePart(\substr($buffer, $this->cursor, $end - $this->cursor)); - $this->cursor = $end; - - if (++$this->multipartBodyPartCount > $this->maxMultipartBodyParts) { - break; - } - } - } - - private function parsePart($chunk) - { - $pos = \strpos($chunk, "\r\n\r\n"); - if ($pos === false) { - return; - } - - $headers = $this->parseHeaders((string)substr($chunk, 0, $pos)); - $body = (string)\substr($chunk, $pos + 4); - - if (!isset($headers['content-disposition'])) { - return; - } - - $name = $this->getParameterFromHeader($headers['content-disposition'], 'name'); - if ($name === null) { - return; - } - - $filename = $this->getParameterFromHeader($headers['content-disposition'], 'filename'); - if ($filename !== null) { - $this->parseFile( - $name, - $filename, - isset($headers['content-type'][0]) ? $headers['content-type'][0] : null, - $body - ); - } else { - $this->parsePost($name, $body); - } - } - - private function parseFile($name, $filename, $contentType, $contents) - { - $file = $this->parseUploadedFile($filename, $contentType, $contents); - if ($file === null) { - return; - } - - $this->request = $this->request->withUploadedFiles($this->extractPost( - $this->request->getUploadedFiles(), - $name, - $file - )); - } - - private function parseUploadedFile($filename, $contentType, $contents) - { - $size = \strlen($contents); - - // no file selected (zero size and empty filename) - if ($size === 0 && $filename === '') { - // ignore excessive number of empty file uploads - if (++$this->emptyCount + $this->filesCount > $this->maxInputVars) { - return; - } - - return new UploadedFile( - new BufferedBody(''), - $size, - \UPLOAD_ERR_NO_FILE, - $filename, - $contentType - ); - } - - // ignore excessive number of file uploads - if (++$this->filesCount > $this->maxFileUploads) { - return; - } - - // file exceeds "upload_max_filesize" ini setting - if ($size > $this->uploadMaxFilesize) { - return new UploadedFile( - new BufferedBody(''), - $size, - \UPLOAD_ERR_INI_SIZE, - $filename, - $contentType - ); - } - - // file exceeds MAX_FILE_SIZE value - if ($this->maxFileSize !== null && $size > $this->maxFileSize) { - return new UploadedFile( - new BufferedBody(''), - $size, - \UPLOAD_ERR_FORM_SIZE, - $filename, - $contentType - ); - } - - return new UploadedFile( - new BufferedBody($contents), - $size, - \UPLOAD_ERR_OK, - $filename, - $contentType - ); - } - - private function parsePost($name, $value) - { - // ignore excessive number of post fields - if (++$this->postCount > $this->maxInputVars) { - return; - } - - $this->request = $this->request->withParsedBody($this->extractPost( - $this->request->getParsedBody(), - $name, - $value - )); - - if (\strtoupper($name) === 'MAX_FILE_SIZE') { - $this->maxFileSize = (int)$value; - - if ($this->maxFileSize === 0) { - $this->maxFileSize = null; - } - } - } - - private function parseHeaders($header) - { - $headers = array(); - - foreach (\explode("\r\n", \trim($header)) as $line) { - $parts = \explode(':', $line, 2); - if (!isset($parts[1])) { - continue; - } - - $key = \strtolower(trim($parts[0])); - $values = \explode(';', $parts[1]); - $values = \array_map('trim', $values); - $headers[$key] = $values; - } - - return $headers; - } - - private function getParameterFromHeader(array $header, $parameter) - { - foreach ($header as $part) { - if (\preg_match('/' . $parameter . '="?(.*?)"?$/', $part, $matches)) { - return $matches[1]; - } - } - - return null; - } - - private function extractPost($postFields, $key, $value) - { - $chunks = \explode('[', $key); - if (\count($chunks) == 1) { - $postFields[$key] = $value; - return $postFields; - } - - // ignore this key if maximum nesting level is exceeded - if (isset($chunks[$this->maxInputNestingLevel])) { - return $postFields; - } - - $chunkKey = \rtrim($chunks[0], ']'); - $parent = &$postFields; - for ($i = 1; isset($chunks[$i]); $i++) { - $previousChunkKey = $chunkKey; - - if ($previousChunkKey === '') { - $parent[] = array(); - \end($parent); - $parent = &$parent[\key($parent)]; - } else { - if (!isset($parent[$previousChunkKey]) || !\is_array($parent[$previousChunkKey])) { - $parent[$previousChunkKey] = array(); - } - $parent = &$parent[$previousChunkKey]; - } - - $chunkKey = \rtrim($chunks[$i], ']'); - } - - if ($chunkKey === '') { - $parent[] = $value; - } else { - $parent[$chunkKey] = $value; - } - - return $postFields; - } -} diff --git a/vendor/react/http/src/Io/PauseBufferStream.php b/vendor/react/http/src/Io/PauseBufferStream.php deleted file mode 100644 index fb5ed45..0000000 --- a/vendor/react/http/src/Io/PauseBufferStream.php +++ /dev/null @@ -1,188 +0,0 @@ -input = $input; - - $this->input->on('data', array($this, 'handleData')); - $this->input->on('end', array($this, 'handleEnd')); - $this->input->on('error', array($this, 'handleError')); - $this->input->on('close', array($this, 'handleClose')); - } - - /** - * pause and remember this was not explicitly from user control - * - * @internal - */ - public function pauseImplicit() - { - $this->pause(); - $this->implicit = true; - } - - /** - * resume only if this was previously paused implicitly and not explicitly from user control - * - * @internal - */ - public function resumeImplicit() - { - if ($this->implicit) { - $this->resume(); - } - } - - public function isReadable() - { - return !$this->closed; - } - - public function pause() - { - if ($this->closed) { - return; - } - - $this->input->pause(); - $this->paused = true; - $this->implicit = false; - } - - public function resume() - { - if ($this->closed) { - return; - } - - $this->paused = false; - $this->implicit = false; - - if ($this->dataPaused !== '') { - $this->emit('data', array($this->dataPaused)); - $this->dataPaused = ''; - } - - if ($this->errorPaused) { - $this->emit('error', array($this->errorPaused)); - return $this->close(); - } - - if ($this->endPaused) { - $this->endPaused = false; - $this->emit('end'); - return $this->close(); - } - - if ($this->closePaused) { - $this->closePaused = false; - return $this->close(); - } - - $this->input->resume(); - } - - public function pipe(WritableStreamInterface $dest, array $options = array()) - { - Util::pipe($this, $dest, $options); - - return $dest; - } - - public function close() - { - if ($this->closed) { - return; - } - - $this->closed = true; - $this->dataPaused = ''; - $this->endPaused = $this->closePaused = false; - $this->errorPaused = null; - - $this->input->close(); - - $this->emit('close'); - $this->removeAllListeners(); - } - - /** @internal */ - public function handleData($data) - { - if ($this->paused) { - $this->dataPaused .= $data; - return; - } - - $this->emit('data', array($data)); - } - - /** @internal */ - public function handleError(\Exception $e) - { - if ($this->paused) { - $this->errorPaused = $e; - return; - } - - $this->emit('error', array($e)); - $this->close(); - } - - /** @internal */ - public function handleEnd() - { - if ($this->paused) { - $this->endPaused = true; - return; - } - - if (!$this->closed) { - $this->emit('end'); - $this->close(); - } - } - - /** @internal */ - public function handleClose() - { - if ($this->paused) { - $this->closePaused = true; - return; - } - - $this->close(); - } -} diff --git a/vendor/react/http/src/Io/ReadableBodyStream.php b/vendor/react/http/src/Io/ReadableBodyStream.php deleted file mode 100644 index daef45f..0000000 --- a/vendor/react/http/src/Io/ReadableBodyStream.php +++ /dev/null @@ -1,153 +0,0 @@ -input = $input; - $this->size = $size; - - $that = $this; - $pos =& $this->position; - $input->on('data', function ($data) use ($that, &$pos, $size) { - $that->emit('data', array($data)); - - $pos += \strlen($data); - if ($size !== null && $pos >= $size) { - $that->handleEnd(); - } - }); - $input->on('error', function ($error) use ($that) { - $that->emit('error', array($error)); - $that->close(); - }); - $input->on('end', array($that, 'handleEnd')); - $input->on('close', array($that, 'close')); - } - - public function close() - { - if (!$this->closed) { - $this->closed = true; - $this->input->close(); - - $this->emit('close'); - $this->removeAllListeners(); - } - } - - public function isReadable() - { - return $this->input->isReadable(); - } - - public function pause() - { - $this->input->pause(); - } - - public function resume() - { - $this->input->resume(); - } - - public function pipe(WritableStreamInterface $dest, array $options = array()) - { - Util::pipe($this, $dest, $options); - - return $dest; - } - - public function eof() - { - return !$this->isReadable(); - } - - public function __toString() - { - return ''; - } - - public function detach() - { - throw new \BadMethodCallException(); - } - - public function getSize() - { - return $this->size; - } - - public function tell() - { - throw new \BadMethodCallException(); - } - - public function isSeekable() - { - return false; - } - - public function seek($offset, $whence = SEEK_SET) - { - throw new \BadMethodCallException(); - } - - public function rewind() - { - throw new \BadMethodCallException(); - } - - public function isWritable() - { - return false; - } - - public function write($string) - { - throw new \BadMethodCallException(); - } - - public function read($length) - { - throw new \BadMethodCallException(); - } - - public function getContents() - { - throw new \BadMethodCallException(); - } - - public function getMetadata($key = null) - { - return ($key === null) ? array() : null; - } - - /** @internal */ - public function handleEnd() - { - if ($this->position !== $this->size && $this->size !== null) { - $this->emit('error', array(new \UnderflowException('Unexpected end of response body after ' . $this->position . '/' . $this->size . ' bytes'))); - } else { - $this->emit('end'); - } - - $this->close(); - } -} diff --git a/vendor/react/http/src/Io/RequestHeaderParser.php b/vendor/react/http/src/Io/RequestHeaderParser.php deleted file mode 100644 index 8975ce5..0000000 --- a/vendor/react/http/src/Io/RequestHeaderParser.php +++ /dev/null @@ -1,179 +0,0 @@ -> */ - private $connectionParams = array(); - - public function __construct(Clock $clock) - { - $this->clock = $clock; - } - - public function handle(ConnectionInterface $conn) - { - $buffer = ''; - $maxSize = $this->maxSize; - $that = $this; - $conn->on('data', $fn = function ($data) use (&$buffer, &$fn, $conn, $maxSize, $that) { - // append chunk of data to buffer and look for end of request headers - $buffer .= $data; - $endOfHeader = \strpos($buffer, "\r\n\r\n"); - - // reject request if buffer size is exceeded - if ($endOfHeader > $maxSize || ($endOfHeader === false && isset($buffer[$maxSize]))) { - $conn->removeListener('data', $fn); - $fn = null; - - $that->emit('error', array( - new \OverflowException("Maximum header size of {$maxSize} exceeded.", Response::STATUS_REQUEST_HEADER_FIELDS_TOO_LARGE), - $conn - )); - return; - } - - // ignore incomplete requests - if ($endOfHeader === false) { - return; - } - - // request headers received => try to parse request - $conn->removeListener('data', $fn); - $fn = null; - - try { - $request = $that->parseRequest( - (string)\substr($buffer, 0, $endOfHeader + 2), - $conn - ); - } catch (Exception $exception) { - $buffer = ''; - $that->emit('error', array( - $exception, - $conn - )); - return; - } - - $contentLength = 0; - if ($request->hasHeader('Transfer-Encoding')) { - $contentLength = null; - } elseif ($request->hasHeader('Content-Length')) { - $contentLength = (int)$request->getHeaderLine('Content-Length'); - } - - if ($contentLength === 0) { - // happy path: request body is known to be empty - $stream = new EmptyBodyStream(); - $request = $request->withBody($stream); - } else { - // otherwise body is present => delimit using Content-Length or ChunkedDecoder - $stream = new CloseProtectionStream($conn); - if ($contentLength !== null) { - $stream = new LengthLimitedStream($stream, $contentLength); - } else { - $stream = new ChunkedDecoder($stream); - } - - $request = $request->withBody(new HttpBodyStream($stream, $contentLength)); - } - - $bodyBuffer = isset($buffer[$endOfHeader + 4]) ? \substr($buffer, $endOfHeader + 4) : ''; - $buffer = ''; - $that->emit('headers', array($request, $conn)); - - if ($bodyBuffer !== '') { - $conn->emit('data', array($bodyBuffer)); - } - - // happy path: request body is known to be empty => immediately end stream - if ($contentLength === 0) { - $stream->emit('end'); - $stream->close(); - } - }); - } - - /** - * @param string $headers buffer string containing request headers only - * @param ConnectionInterface $connection - * @return ServerRequestInterface - * @throws \InvalidArgumentException - * @internal - */ - public function parseRequest($headers, ConnectionInterface $connection) - { - // reuse same connection params for all server params for this connection - $cid = \PHP_VERSION_ID < 70200 ? \spl_object_hash($connection) : \spl_object_id($connection); - if (isset($this->connectionParams[$cid])) { - $serverParams = $this->connectionParams[$cid]; - } else { - // assign new server params for new connection - $serverParams = array(); - - // scheme is `http` unless TLS is used - $localSocketUri = $connection->getLocalAddress(); - $localParts = $localSocketUri === null ? array() : \parse_url($localSocketUri); - if (isset($localParts['scheme']) && $localParts['scheme'] === 'tls') { - $serverParams['HTTPS'] = 'on'; - } - - // apply SERVER_ADDR and SERVER_PORT if server address is known - // address should always be known, even for Unix domain sockets (UDS) - // but skip UDS as it doesn't have a concept of host/port. - if ($localSocketUri !== null && isset($localParts['host'], $localParts['port'])) { - $serverParams['SERVER_ADDR'] = $localParts['host']; - $serverParams['SERVER_PORT'] = $localParts['port']; - } - - // apply REMOTE_ADDR and REMOTE_PORT if source address is known - // address should always be known, unless this is over Unix domain sockets (UDS) - $remoteSocketUri = $connection->getRemoteAddress(); - if ($remoteSocketUri !== null) { - $remoteAddress = \parse_url($remoteSocketUri); - $serverParams['REMOTE_ADDR'] = $remoteAddress['host']; - $serverParams['REMOTE_PORT'] = $remoteAddress['port']; - } - - // remember server params for all requests from this connection, reset on connection close - $this->connectionParams[$cid] = $serverParams; - $params =& $this->connectionParams; - $connection->on('close', function () use (&$params, $cid) { - assert(\is_array($params)); - unset($params[$cid]); - }); - } - - // create new obj implementing ServerRequestInterface by preserving all - // previous properties and restoring original request-target - $serverParams['REQUEST_TIME'] = (int) ($now = $this->clock->now()); - $serverParams['REQUEST_TIME_FLOAT'] = $now; - - return ServerRequest::parseMessage($headers, $serverParams); - } -} diff --git a/vendor/react/http/src/Io/Sender.php b/vendor/react/http/src/Io/Sender.php deleted file mode 100644 index 5f456b2..0000000 --- a/vendor/react/http/src/Io/Sender.php +++ /dev/null @@ -1,152 +0,0 @@ -http = $http; - } - - /** - * - * @internal - * @param RequestInterface $request - * @return PromiseInterface Promise - */ - public function send(RequestInterface $request) - { - // support HTTP/1.1 and HTTP/1.0 only, ensured by `Browser` already - assert(\in_array($request->getProtocolVersion(), array('1.0', '1.1'), true)); - - $body = $request->getBody(); - $size = $body->getSize(); - - if ($size !== null && $size !== 0) { - // automatically assign a "Content-Length" request header if the body size is known and non-empty - $request = $request->withHeader('Content-Length', (string)$size); - } elseif ($size === 0 && \in_array($request->getMethod(), array('POST', 'PUT', 'PATCH'))) { - // only assign a "Content-Length: 0" request header if the body is expected for certain methods - $request = $request->withHeader('Content-Length', '0'); - } elseif ($body instanceof ReadableStreamInterface && $size !== 0 && $body->isReadable() && !$request->hasHeader('Content-Length')) { - // use "Transfer-Encoding: chunked" when this is a streaming body and body size is unknown - $request = $request->withHeader('Transfer-Encoding', 'chunked'); - } else { - // do not use chunked encoding if size is known or if this is an empty request body - $size = 0; - } - - // automatically add `Authorization: Basic …` request header if URL includes `user:pass@host` - if ($request->getUri()->getUserInfo() !== '' && !$request->hasHeader('Authorization')) { - $request = $request->withHeader('Authorization', 'Basic ' . \base64_encode($request->getUri()->getUserInfo())); - } - - $requestStream = $this->http->request($request); - - $deferred = new Deferred(function ($_, $reject) use ($requestStream) { - // close request stream if request is cancelled - $reject(new \RuntimeException('Request cancelled')); - $requestStream->close(); - }); - - $requestStream->on('error', function($error) use ($deferred) { - $deferred->reject($error); - }); - - $requestStream->on('response', function (ResponseInterface $response) use ($deferred, $request) { - $deferred->resolve($response); - }); - - if ($body instanceof ReadableStreamInterface) { - if ($body->isReadable()) { - // length unknown => apply chunked transfer-encoding - if ($size === null) { - $body = new ChunkedEncoder($body); - } - - // pipe body into request stream - // add dummy write to immediately start request even if body does not emit any data yet - $body->pipe($requestStream); - $requestStream->write(''); - - $body->on('close', $close = function () use ($deferred, $requestStream) { - $deferred->reject(new \RuntimeException('Request failed because request body closed unexpectedly')); - $requestStream->close(); - }); - $body->on('error', function ($e) use ($deferred, $requestStream, $close, $body) { - $body->removeListener('close', $close); - $deferred->reject(new \RuntimeException('Request failed because request body reported an error', 0, $e)); - $requestStream->close(); - }); - $body->on('end', function () use ($close, $body) { - $body->removeListener('close', $close); - }); - } else { - // stream is not readable => end request without body - $requestStream->end(); - } - } else { - // body is fully buffered => write as one chunk - $requestStream->end((string)$body); - } - - return $deferred->promise(); - } -} diff --git a/vendor/react/http/src/Io/StreamingServer.php b/vendor/react/http/src/Io/StreamingServer.php deleted file mode 100644 index 143edaa..0000000 --- a/vendor/react/http/src/Io/StreamingServer.php +++ /dev/null @@ -1,405 +0,0 @@ - 'text/plain' - * ), - * "Hello World!\n" - * ); - * }); - * ``` - * - * Each incoming HTTP request message is always represented by the - * [PSR-7 `ServerRequestInterface`](https://www.php-fig.org/psr/psr-7/#321-psrhttpmessageserverrequestinterface), - * see also following [request](#request) chapter for more details. - * Each outgoing HTTP response message is always represented by the - * [PSR-7 `ResponseInterface`](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface), - * see also following [response](#response) chapter for more details. - * - * In order to process any connections, the server needs to be attached to an - * instance of `React\Socket\ServerInterface` through the [`listen()`](#listen) method - * as described in the following chapter. In its most simple form, you can attach - * this to a [`React\Socket\SocketServer`](https://github.com/reactphp/socket#socketserver) - * in order to start a plaintext HTTP server like this: - * - * ```php - * $server = new StreamingServer($loop, $handler); - * - * $socket = new React\Socket\SocketServer('0.0.0.0:8080', array(), $loop); - * $server->listen($socket); - * ``` - * - * See also the [`listen()`](#listen) method and the [first example](examples) for more details. - * - * The `StreamingServer` class is considered advanced usage and unless you know - * what you're doing, you're recommended to use the [`HttpServer`](#httpserver) class - * instead. The `StreamingServer` class is specifically designed to help with - * more advanced use cases where you want to have full control over consuming - * the incoming HTTP request body and concurrency settings. - * - * In particular, this class does not buffer and parse the incoming HTTP request - * in memory. It will invoke the request handler function once the HTTP request - * headers have been received, i.e. before receiving the potentially much larger - * HTTP request body. This means the [request](#request) passed to your request - * handler function may not be fully compatible with PSR-7. See also - * [streaming request](#streaming-request) below for more details. - * - * @see \React\Http\HttpServer - * @see \React\Http\Message\Response - * @see self::listen() - * @internal - */ -final class StreamingServer extends EventEmitter -{ - private $callback; - private $parser; - - /** @var Clock */ - private $clock; - - /** - * Creates an HTTP server that invokes the given callback for each incoming HTTP request - * - * In order to process any connections, the server needs to be attached to an - * instance of `React\Socket\ServerInterface` which emits underlying streaming - * connections in order to then parse incoming data as HTTP. - * See also [listen()](#listen) for more details. - * - * @param LoopInterface $loop - * @param callable $requestHandler - * @see self::listen() - */ - public function __construct(LoopInterface $loop, $requestHandler) - { - if (!\is_callable($requestHandler)) { - throw new \InvalidArgumentException('Invalid request handler given'); - } - - $this->callback = $requestHandler; - $this->clock = new Clock($loop); - $this->parser = new RequestHeaderParser($this->clock); - - $that = $this; - $this->parser->on('headers', function (ServerRequestInterface $request, ConnectionInterface $conn) use ($that) { - $that->handleRequest($conn, $request); - }); - - $this->parser->on('error', function(\Exception $e, ConnectionInterface $conn) use ($that) { - $that->emit('error', array($e)); - - // parsing failed => assume dummy request and send appropriate error - $that->writeError( - $conn, - $e->getCode() !== 0 ? $e->getCode() : Response::STATUS_BAD_REQUEST, - new ServerRequest('GET', '/') - ); - }); - } - - /** - * Starts listening for HTTP requests on the given socket server instance - * - * @param ServerInterface $socket - * @see \React\Http\HttpServer::listen() - */ - public function listen(ServerInterface $socket) - { - $socket->on('connection', array($this->parser, 'handle')); - } - - /** @internal */ - public function handleRequest(ConnectionInterface $conn, ServerRequestInterface $request) - { - if ($request->getProtocolVersion() !== '1.0' && '100-continue' === \strtolower($request->getHeaderLine('Expect'))) { - $conn->write("HTTP/1.1 100 Continue\r\n\r\n"); - } - - // execute request handler callback - $callback = $this->callback; - try { - $response = $callback($request); - } catch (\Exception $error) { - // request handler callback throws an Exception - $response = Promise\reject($error); - } catch (\Throwable $error) { // @codeCoverageIgnoreStart - // request handler callback throws a PHP7+ Error - $response = Promise\reject($error); // @codeCoverageIgnoreEnd - } - - // cancel pending promise once connection closes - $connectionOnCloseResponseCancelerHandler = function () {}; - if ($response instanceof PromiseInterface && \method_exists($response, 'cancel')) { - $connectionOnCloseResponseCanceler = function () use ($response) { - $response->cancel(); - }; - $connectionOnCloseResponseCancelerHandler = function () use ($connectionOnCloseResponseCanceler, $conn) { - if ($connectionOnCloseResponseCanceler !== null) { - $conn->removeListener('close', $connectionOnCloseResponseCanceler); - } - }; - $conn->on('close', $connectionOnCloseResponseCanceler); - } - - // happy path: response returned, handle and return immediately - if ($response instanceof ResponseInterface) { - return $this->handleResponse($conn, $request, $response); - } - - // did not return a promise? this is an error, convert into one for rejection below. - if (!$response instanceof PromiseInterface) { - $response = Promise\resolve($response); - } - - $that = $this; - $response->then( - function ($response) use ($that, $conn, $request) { - if (!$response instanceof ResponseInterface) { - $message = 'The response callback is expected to resolve with an object implementing Psr\Http\Message\ResponseInterface, but resolved with "%s" instead.'; - $message = \sprintf($message, \is_object($response) ? \get_class($response) : \gettype($response)); - $exception = new \RuntimeException($message); - - $that->emit('error', array($exception)); - return $that->writeError($conn, Response::STATUS_INTERNAL_SERVER_ERROR, $request); - } - $that->handleResponse($conn, $request, $response); - }, - function ($error) use ($that, $conn, $request) { - $message = 'The response callback is expected to resolve with an object implementing Psr\Http\Message\ResponseInterface, but rejected with "%s" instead.'; - $message = \sprintf($message, \is_object($error) ? \get_class($error) : \gettype($error)); - - $previous = null; - - if ($error instanceof \Throwable || $error instanceof \Exception) { - $previous = $error; - } - - $exception = new \RuntimeException($message, 0, $previous); - - $that->emit('error', array($exception)); - return $that->writeError($conn, Response::STATUS_INTERNAL_SERVER_ERROR, $request); - } - )->then($connectionOnCloseResponseCancelerHandler, $connectionOnCloseResponseCancelerHandler); - } - - /** @internal */ - public function writeError(ConnectionInterface $conn, $code, ServerRequestInterface $request) - { - $response = new Response( - $code, - array( - 'Content-Type' => 'text/plain', - 'Connection' => 'close' // we do not want to keep the connection open after an error - ), - 'Error ' . $code - ); - - // append reason phrase to response body if known - $reason = $response->getReasonPhrase(); - if ($reason !== '') { - $body = $response->getBody(); - $body->seek(0, SEEK_END); - $body->write(': ' . $reason); - } - - $this->handleResponse($conn, $request, $response); - } - - - /** @internal */ - public function handleResponse(ConnectionInterface $connection, ServerRequestInterface $request, ResponseInterface $response) - { - // return early and close response body if connection is already closed - $body = $response->getBody(); - if (!$connection->isWritable()) { - $body->close(); - return; - } - - $code = $response->getStatusCode(); - $method = $request->getMethod(); - - // assign HTTP protocol version from request automatically - $version = $request->getProtocolVersion(); - $response = $response->withProtocolVersion($version); - - // assign default "Server" header automatically - if (!$response->hasHeader('Server')) { - $response = $response->withHeader('Server', 'ReactPHP/1'); - } elseif ($response->getHeaderLine('Server') === ''){ - $response = $response->withoutHeader('Server'); - } - - // assign default "Date" header from current time automatically - if (!$response->hasHeader('Date')) { - // IMF-fixdate = day-name "," SP date1 SP time-of-day SP GMT - $response = $response->withHeader('Date', gmdate('D, d M Y H:i:s', (int) $this->clock->now()) . ' GMT'); - } elseif ($response->getHeaderLine('Date') === ''){ - $response = $response->withoutHeader('Date'); - } - - // assign "Content-Length" header automatically - $chunked = false; - if (($method === 'CONNECT' && $code >= 200 && $code < 300) || ($code >= 100 && $code < 200) || $code === Response::STATUS_NO_CONTENT) { - // 2xx response to CONNECT and 1xx and 204 MUST NOT include Content-Length or Transfer-Encoding header - $response = $response->withoutHeader('Content-Length'); - } elseif ($method === 'HEAD' && $response->hasHeader('Content-Length')) { - // HEAD Request: preserve explicit Content-Length - } elseif ($code === Response::STATUS_NOT_MODIFIED && ($response->hasHeader('Content-Length') || $body->getSize() === 0)) { - // 304 Not Modified: preserve explicit Content-Length and preserve missing header if body is empty - } elseif ($body->getSize() !== null) { - // assign Content-Length header when using a "normal" buffered body string - $response = $response->withHeader('Content-Length', (string)$body->getSize()); - } elseif (!$response->hasHeader('Content-Length') && $version === '1.1') { - // assign chunked transfer-encoding if no 'content-length' is given for HTTP/1.1 responses - $chunked = true; - } - - // assign "Transfer-Encoding" header automatically - if ($chunked) { - $response = $response->withHeader('Transfer-Encoding', 'chunked'); - } else { - // remove any Transfer-Encoding headers unless automatically enabled above - $response = $response->withoutHeader('Transfer-Encoding'); - } - - // assign "Connection" header automatically - $persist = false; - if ($code === Response::STATUS_SWITCHING_PROTOCOLS) { - // 101 (Switching Protocols) response uses Connection: upgrade header - // This implies that this stream now uses another protocol and we - // may not persist this connection for additional requests. - $response = $response->withHeader('Connection', 'upgrade'); - } elseif (\strtolower($request->getHeaderLine('Connection')) === 'close' || \strtolower($response->getHeaderLine('Connection')) === 'close') { - // obey explicit "Connection: close" request header or response header if present - $response = $response->withHeader('Connection', 'close'); - } elseif ($version === '1.1') { - // HTTP/1.1 assumes persistent connection support by default, so we don't need to inform client - $persist = true; - } elseif (strtolower($request->getHeaderLine('Connection')) === 'keep-alive') { - // obey explicit "Connection: keep-alive" request header and inform client - $persist = true; - $response = $response->withHeader('Connection', 'keep-alive'); - } else { - // remove any Connection headers unless automatically enabled above - $response = $response->withoutHeader('Connection'); - } - - // 101 (Switching Protocols) response (for Upgrade request) forwards upgraded data through duplex stream - // 2xx (Successful) response to CONNECT forwards tunneled application data through duplex stream - if (($code === Response::STATUS_SWITCHING_PROTOCOLS || ($method === 'CONNECT' && $code >= 200 && $code < 300)) && $body instanceof HttpBodyStream && $body->input instanceof WritableStreamInterface) { - if ($request->getBody()->isReadable()) { - // request is still streaming => wait for request close before forwarding following data from connection - $request->getBody()->on('close', function () use ($connection, $body) { - if ($body->input->isWritable()) { - $connection->pipe($body->input); - $connection->resume(); - } - }); - } elseif ($body->input->isWritable()) { - // request already closed => forward following data from connection - $connection->pipe($body->input); - $connection->resume(); - } - } - - // build HTTP response header by appending status line and header fields - $expected = 0; - $headers = "HTTP/" . $version . " " . $code . " " . $response->getReasonPhrase() . "\r\n"; - foreach ($response->getHeaders() as $name => $values) { - if (\strpos($name, ':') !== false) { - $expected = -1; - break; - } - foreach ($values as $value) { - $headers .= $name . ": " . $value . "\r\n"; - ++$expected; - } - } - - /** @var array $m legacy PHP 5.3 only */ - if ($code < 100 || $code > 999 || \substr_count($headers, "\n") !== ($expected + 1) || (\PHP_VERSION_ID >= 50400 ? \preg_match_all(AbstractMessage::REGEX_HEADERS, $headers) : \preg_match_all(AbstractMessage::REGEX_HEADERS, $headers, $m)) !== $expected) { - $this->emit('error', array(new \InvalidArgumentException('Unable to send response with invalid response headers'))); - $this->writeError($connection, Response::STATUS_INTERNAL_SERVER_ERROR, $request); - return; - } - - // response to HEAD and 1xx, 204 and 304 responses MUST NOT include a body - // exclude status 101 (Switching Protocols) here for Upgrade request handling above - if ($method === 'HEAD' || ($code >= 100 && $code < 200 && $code !== Response::STATUS_SWITCHING_PROTOCOLS) || $code === Response::STATUS_NO_CONTENT || $code === Response::STATUS_NOT_MODIFIED) { - $body->close(); - $body = ''; - } - - // this is a non-streaming response body or the body stream already closed? - if (!$body instanceof ReadableStreamInterface || !$body->isReadable()) { - // add final chunk if a streaming body is already closed and uses `Transfer-Encoding: chunked` - if ($body instanceof ReadableStreamInterface && $chunked) { - $body = "0\r\n\r\n"; - } - - // write response headers and body - $connection->write($headers . "\r\n" . $body); - - // either wait for next request over persistent connection or end connection - if ($persist) { - $this->parser->handle($connection); - } else { - $connection->end(); - } - return; - } - - $connection->write($headers . "\r\n"); - - if ($chunked) { - $body = new ChunkedEncoder($body); - } - - // Close response stream once connection closes. - // Note that this TCP/IP close detection may take some time, - // in particular this may only fire on a later read/write attempt. - $connection->on('close', array($body, 'close')); - - // write streaming body and then wait for next request over persistent connection - if ($persist) { - $body->pipe($connection, array('end' => false)); - $parser = $this->parser; - $body->on('end', function () use ($connection, $parser, $body) { - $connection->removeListener('close', array($body, 'close')); - $parser->handle($connection); - }); - } else { - $body->pipe($connection); - } - } -} diff --git a/vendor/react/http/src/Io/Transaction.php b/vendor/react/http/src/Io/Transaction.php deleted file mode 100644 index 64738f5..0000000 --- a/vendor/react/http/src/Io/Transaction.php +++ /dev/null @@ -1,330 +0,0 @@ -sender = $sender; - $this->loop = $loop; - } - - /** - * @param array $options - * @return self returns new instance, without modifying existing instance - */ - public function withOptions(array $options) - { - $transaction = clone $this; - foreach ($options as $name => $value) { - if (property_exists($transaction, $name)) { - // restore default value if null is given - if ($value === null) { - $default = new self($this->sender, $this->loop); - $value = $default->$name; - } - - $transaction->$name = $value; - } - } - - return $transaction; - } - - public function send(RequestInterface $request) - { - $state = new ClientRequestState(); - $deferred = new Deferred(function () use ($state) { - if ($state->pending !== null) { - $state->pending->cancel(); - $state->pending = null; - } - }); - - // use timeout from options or default to PHP's default_socket_timeout (60) - $timeout = (float)($this->timeout !== null ? $this->timeout : ini_get("default_socket_timeout")); - - $loop = $this->loop; - $this->next($request, $deferred, $state)->then( - function (ResponseInterface $response) use ($state, $deferred, $loop, &$timeout) { - if ($state->timeout !== null) { - $loop->cancelTimer($state->timeout); - $state->timeout = null; - } - $timeout = -1; - $deferred->resolve($response); - }, - function ($e) use ($state, $deferred, $loop, &$timeout) { - if ($state->timeout !== null) { - $loop->cancelTimer($state->timeout); - $state->timeout = null; - } - $timeout = -1; - $deferred->reject($e); - } - ); - - if ($timeout < 0) { - return $deferred->promise(); - } - - $body = $request->getBody(); - if ($body instanceof ReadableStreamInterface && $body->isReadable()) { - $that = $this; - $body->on('close', function () use ($that, $deferred, $state, &$timeout) { - if ($timeout >= 0) { - $that->applyTimeout($deferred, $state, $timeout); - } - }); - } else { - $this->applyTimeout($deferred, $state, $timeout); - } - - return $deferred->promise(); - } - - /** - * @internal - * @param number $timeout - * @return void - */ - public function applyTimeout(Deferred $deferred, ClientRequestState $state, $timeout) - { - $state->timeout = $this->loop->addTimer($timeout, function () use ($timeout, $deferred, $state) { - $deferred->reject(new \RuntimeException( - 'Request timed out after ' . $timeout . ' seconds' - )); - if ($state->pending !== null) { - $state->pending->cancel(); - $state->pending = null; - } - }); - } - - private function next(RequestInterface $request, Deferred $deferred, ClientRequestState $state) - { - $this->progress('request', array($request)); - - $that = $this; - ++$state->numRequests; - - $promise = $this->sender->send($request); - - if (!$this->streaming) { - $promise = $promise->then(function ($response) use ($deferred, $state, $that) { - return $that->bufferResponse($response, $deferred, $state); - }); - } - - $state->pending = $promise; - - return $promise->then( - function (ResponseInterface $response) use ($request, $that, $deferred, $state) { - return $that->onResponse($response, $request, $deferred, $state); - } - ); - } - - /** - * @internal - * @return PromiseInterface Promise - */ - public function bufferResponse(ResponseInterface $response, Deferred $deferred, ClientRequestState $state) - { - $body = $response->getBody(); - $size = $body->getSize(); - - if ($size !== null && $size > $this->maximumSize) { - $body->close(); - return \React\Promise\reject(new \OverflowException( - 'Response body size of ' . $size . ' bytes exceeds maximum of ' . $this->maximumSize . ' bytes', - \defined('SOCKET_EMSGSIZE') ? \SOCKET_EMSGSIZE : 90 - )); - } - - // body is not streaming => already buffered - if (!$body instanceof ReadableStreamInterface) { - return \React\Promise\resolve($response); - } - - /** @var ?\Closure $closer */ - $closer = null; - $maximumSize = $this->maximumSize; - - return $state->pending = new Promise(function ($resolve, $reject) use ($body, $maximumSize, $response, &$closer) { - // resolve with current buffer when stream closes successfully - $buffer = ''; - $body->on('close', $closer = function () use (&$buffer, $response, $maximumSize, $resolve, $reject) { - $resolve($response->withBody(new BufferedBody($buffer))); - }); - - // buffer response body data in memory - $body->on('data', function ($data) use (&$buffer, $maximumSize, $body, $closer, $reject) { - $buffer .= $data; - - // close stream and reject promise if limit is exceeded - if (isset($buffer[$maximumSize])) { - $buffer = ''; - assert($closer instanceof \Closure); - $body->removeListener('close', $closer); - $body->close(); - - $reject(new \OverflowException( - 'Response body size exceeds maximum of ' . $maximumSize . ' bytes', - \defined('SOCKET_EMSGSIZE') ? \SOCKET_EMSGSIZE : 90 - )); - } - }); - - // reject buffering if body emits error - $body->on('error', function (\Exception $e) use ($reject) { - $reject(new \RuntimeException( - 'Error while buffering response body: ' . $e->getMessage(), - $e->getCode(), - $e - )); - }); - }, function () use ($body, &$closer) { - // cancelled buffering: remove close handler to avoid resolving, then close and reject - assert($closer instanceof \Closure); - $body->removeListener('close', $closer); - $body->close(); - - throw new \RuntimeException('Cancelled buffering response body'); - }); - } - - /** - * @internal - * @throws ResponseException - * @return ResponseInterface|PromiseInterface - */ - public function onResponse(ResponseInterface $response, RequestInterface $request, Deferred $deferred, ClientRequestState $state) - { - $this->progress('response', array($response, $request)); - - // follow 3xx (Redirection) response status codes if Location header is present and not explicitly disabled - // @link https://tools.ietf.org/html/rfc7231#section-6.4 - if ($this->followRedirects && ($response->getStatusCode() >= 300 && $response->getStatusCode() < 400) && $response->hasHeader('Location')) { - return $this->onResponseRedirect($response, $request, $deferred, $state); - } - - // only status codes 200-399 are considered to be valid, reject otherwise - if ($this->obeySuccessCode && ($response->getStatusCode() < 200 || $response->getStatusCode() >= 400)) { - throw new ResponseException($response); - } - - // resolve our initial promise - return $response; - } - - /** - * @param ResponseInterface $response - * @param RequestInterface $request - * @param Deferred $deferred - * @param ClientRequestState $state - * @return PromiseInterface - * @throws \RuntimeException - */ - private function onResponseRedirect(ResponseInterface $response, RequestInterface $request, Deferred $deferred, ClientRequestState $state) - { - // resolve location relative to last request URI - $location = Uri::resolve($request->getUri(), new Uri($response->getHeaderLine('Location'))); - - $request = $this->makeRedirectRequest($request, $location, $response->getStatusCode()); - $this->progress('redirect', array($request)); - - if ($state->numRequests >= $this->maxRedirects) { - throw new \RuntimeException('Maximum number of redirects (' . $this->maxRedirects . ') exceeded'); - } - - return $this->next($request, $deferred, $state); - } - - /** - * @param RequestInterface $request - * @param UriInterface $location - * @param int $statusCode - * @return RequestInterface - * @throws \RuntimeException - */ - private function makeRedirectRequest(RequestInterface $request, UriInterface $location, $statusCode) - { - // Remove authorization if changing hostnames (but not if just changing ports or protocols). - $originalHost = $request->getUri()->getHost(); - if ($location->getHost() !== $originalHost) { - $request = $request->withoutHeader('Authorization'); - } - - $request = $request->withoutHeader('Host')->withUri($location); - - if ($statusCode === Response::STATUS_TEMPORARY_REDIRECT || $statusCode === Response::STATUS_PERMANENT_REDIRECT) { - if ($request->getBody() instanceof ReadableStreamInterface) { - throw new \RuntimeException('Unable to redirect request with streaming body'); - } - } else { - $request = $request - ->withMethod($request->getMethod() === 'HEAD' ? 'HEAD' : 'GET') - ->withoutHeader('Content-Type') - ->withoutHeader('Content-Length') - ->withBody(new BufferedBody('')); - } - - return $request; - } - - private function progress($name, array $args = array()) - { - return; - - echo $name; - - foreach ($args as $arg) { - echo ' '; - if ($arg instanceof ResponseInterface) { - echo 'HTTP/' . $arg->getProtocolVersion() . ' ' . $arg->getStatusCode() . ' ' . $arg->getReasonPhrase(); - } elseif ($arg instanceof RequestInterface) { - echo $arg->getMethod() . ' ' . $arg->getRequestTarget() . ' HTTP/' . $arg->getProtocolVersion(); - } else { - echo $arg; - } - } - - echo PHP_EOL; - } -} diff --git a/vendor/react/http/src/Io/UploadedFile.php b/vendor/react/http/src/Io/UploadedFile.php deleted file mode 100644 index f2a6c9e..0000000 --- a/vendor/react/http/src/Io/UploadedFile.php +++ /dev/null @@ -1,130 +0,0 @@ -stream = $stream; - $this->size = $size; - - if (!\is_int($error) || !\in_array($error, array( - \UPLOAD_ERR_OK, - \UPLOAD_ERR_INI_SIZE, - \UPLOAD_ERR_FORM_SIZE, - \UPLOAD_ERR_PARTIAL, - \UPLOAD_ERR_NO_FILE, - \UPLOAD_ERR_NO_TMP_DIR, - \UPLOAD_ERR_CANT_WRITE, - \UPLOAD_ERR_EXTENSION, - ))) { - throw new InvalidArgumentException( - 'Invalid error code, must be an UPLOAD_ERR_* constant' - ); - } - $this->error = $error; - $this->filename = $filename; - $this->mediaType = $mediaType; - } - - /** - * {@inheritdoc} - */ - public function getStream() - { - if ($this->error !== \UPLOAD_ERR_OK) { - throw new RuntimeException('Cannot retrieve stream due to upload error'); - } - - return $this->stream; - } - - /** - * {@inheritdoc} - */ - public function moveTo($targetPath) - { - throw new RuntimeException('Not implemented'); - } - - /** - * {@inheritdoc} - */ - public function getSize() - { - return $this->size; - } - - /** - * {@inheritdoc} - */ - public function getError() - { - return $this->error; - } - - /** - * {@inheritdoc} - */ - public function getClientFilename() - { - return $this->filename; - } - - /** - * {@inheritdoc} - */ - public function getClientMediaType() - { - return $this->mediaType; - } -} diff --git a/vendor/react/http/src/Message/Request.php b/vendor/react/http/src/Message/Request.php deleted file mode 100644 index 3de8c1b..0000000 --- a/vendor/react/http/src/Message/Request.php +++ /dev/null @@ -1,57 +0,0 @@ - Internally, this implementation builds on top of a base class which is - * considered an implementation detail that may change in the future. - * - * @see RequestInterface - */ -final class Request extends AbstractRequest implements RequestInterface -{ - /** - * @param string $method HTTP method for the request. - * @param string|UriInterface $url URL for the request. - * @param array $headers Headers for the message. - * @param string|ReadableStreamInterface|StreamInterface $body Message body. - * @param string $version HTTP protocol version. - * @throws \InvalidArgumentException for an invalid URL or body - */ - public function __construct( - $method, - $url, - array $headers = array(), - $body = '', - $version = '1.1' - ) { - if (\is_string($body)) { - $body = new BufferedBody($body); - } elseif ($body instanceof ReadableStreamInterface && !$body instanceof StreamInterface) { - $body = new ReadableBodyStream($body); - } elseif (!$body instanceof StreamInterface) { - throw new \InvalidArgumentException('Invalid request body given'); - } - - parent::__construct($method, $url, $headers, $body, $version); - } -} diff --git a/vendor/react/http/src/Message/Response.php b/vendor/react/http/src/Message/Response.php deleted file mode 100644 index fa6366e..0000000 --- a/vendor/react/http/src/Message/Response.php +++ /dev/null @@ -1,414 +0,0 @@ - 'text/html' - * ), - * "Hello world!\n" - * ); - * ``` - * - * This class implements the - * [PSR-7 `ResponseInterface`](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) - * which in turn extends the - * [PSR-7 `MessageInterface`](https://www.php-fig.org/psr/psr-7/#31-psrhttpmessagemessageinterface). - * - * On top of this, this class implements the - * [PSR-7 Message Util `StatusCodeInterface`](https://github.com/php-fig/http-message-util/blob/master/src/StatusCodeInterface.php) - * which means that most common HTTP status codes are available as class - * constants with the `STATUS_*` prefix. For instance, the `200 OK` and - * `404 Not Found` status codes can used as `Response::STATUS_OK` and - * `Response::STATUS_NOT_FOUND` respectively. - * - * > Internally, this implementation builds on top a base class which is - * considered an implementation detail that may change in the future. - * - * @see \Psr\Http\Message\ResponseInterface - */ -final class Response extends AbstractMessage implements ResponseInterface, StatusCodeInterface -{ - /** - * Create an HTML response - * - * ```php - * $html = << - * - * Hello wörld! - * - * - * HTML; - * - * $response = React\Http\Message\Response::html($html); - * ``` - * - * This is a convenient shortcut method that returns the equivalent of this: - * - * ``` - * $response = new React\Http\Message\Response( - * React\Http\Message\Response::STATUS_OK, - * [ - * 'Content-Type' => 'text/html; charset=utf-8' - * ], - * $html - * ); - * ``` - * - * This method always returns a response with a `200 OK` status code and - * the appropriate `Content-Type` response header for the given HTTP source - * string encoded in UTF-8 (Unicode). It's generally recommended to end the - * given plaintext string with a trailing newline. - * - * If you want to use a different status code or custom HTTP response - * headers, you can manipulate the returned response object using the - * provided PSR-7 methods or directly instantiate a custom HTTP response - * object using the `Response` constructor: - * - * ```php - * $response = React\Http\Message\Response::html( - * "

Error

\n

Invalid user name given.

\n" - * )->withStatus(React\Http\Message\Response::STATUS_BAD_REQUEST); - * ``` - * - * @param string $html - * @return self - */ - public static function html($html) - { - return new self(self::STATUS_OK, array('Content-Type' => 'text/html; charset=utf-8'), $html); - } - - /** - * Create a JSON response - * - * ```php - * $response = React\Http\Message\Response::json(['name' => 'Alice']); - * ``` - * - * This is a convenient shortcut method that returns the equivalent of this: - * - * ``` - * $response = new React\Http\Message\Response( - * React\Http\Message\Response::STATUS_OK, - * [ - * 'Content-Type' => 'application/json' - * ], - * json_encode( - * ['name' => 'Alice'], - * JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_PRESERVE_ZERO_FRACTION - * ) . "\n" - * ); - * ``` - * - * This method always returns a response with a `200 OK` status code and - * the appropriate `Content-Type` response header for the given structured - * data encoded as a JSON text. - * - * The given structured data will be encoded as a JSON text. Any `string` - * values in the data must be encoded in UTF-8 (Unicode). If the encoding - * fails, this method will throw an `InvalidArgumentException`. - * - * By default, the given structured data will be encoded with the flags as - * shown above. This includes pretty printing (PHP 5.4+) and preserving - * zero fractions for `float` values (PHP 5.6.6+) to ease debugging. It is - * assumed any additional data overhead is usually compensated by using HTTP - * response compression. - * - * If you want to use a different status code or custom HTTP response - * headers, you can manipulate the returned response object using the - * provided PSR-7 methods or directly instantiate a custom HTTP response - * object using the `Response` constructor: - * - * ```php - * $response = React\Http\Message\Response::json( - * ['error' => 'Invalid user name given'] - * )->withStatus(React\Http\Message\Response::STATUS_BAD_REQUEST); - * ``` - * - * @param mixed $data - * @return self - * @throws \InvalidArgumentException when encoding fails - */ - public static function json($data) - { - $json = @\json_encode( - $data, - (\defined('JSON_PRETTY_PRINT') ? \JSON_PRETTY_PRINT | \JSON_UNESCAPED_SLASHES | \JSON_UNESCAPED_UNICODE : 0) | (\defined('JSON_PRESERVE_ZERO_FRACTION') ? \JSON_PRESERVE_ZERO_FRACTION : 0) - ); - - // throw on error, now `false` but used to be `(string) "null"` before PHP 5.5 - if ($json === false || (\PHP_VERSION_ID < 50500 && \json_last_error() !== \JSON_ERROR_NONE)) { - throw new \InvalidArgumentException( - 'Unable to encode given data as JSON' . (\function_exists('json_last_error_msg') ? ': ' . \json_last_error_msg() : ''), - \json_last_error() - ); - } - - return new self(self::STATUS_OK, array('Content-Type' => 'application/json'), $json . "\n"); - } - - /** - * Create a plaintext response - * - * ```php - * $response = React\Http\Message\Response::plaintext("Hello wörld!\n"); - * ``` - * - * This is a convenient shortcut method that returns the equivalent of this: - * - * ``` - * $response = new React\Http\Message\Response( - * React\Http\Message\Response::STATUS_OK, - * [ - * 'Content-Type' => 'text/plain; charset=utf-8' - * ], - * "Hello wörld!\n" - * ); - * ``` - * - * This method always returns a response with a `200 OK` status code and - * the appropriate `Content-Type` response header for the given plaintext - * string encoded in UTF-8 (Unicode). It's generally recommended to end the - * given plaintext string with a trailing newline. - * - * If you want to use a different status code or custom HTTP response - * headers, you can manipulate the returned response object using the - * provided PSR-7 methods or directly instantiate a custom HTTP response - * object using the `Response` constructor: - * - * ```php - * $response = React\Http\Message\Response::plaintext( - * "Error: Invalid user name given.\n" - * )->withStatus(React\Http\Message\Response::STATUS_BAD_REQUEST); - * ``` - * - * @param string $text - * @return self - */ - public static function plaintext($text) - { - return new self(self::STATUS_OK, array('Content-Type' => 'text/plain; charset=utf-8'), $text); - } - - /** - * Create an XML response - * - * ```php - * $xml = << - * - * Hello wörld! - * - * - * XML; - * - * $response = React\Http\Message\Response::xml($xml); - * ``` - * - * This is a convenient shortcut method that returns the equivalent of this: - * - * ``` - * $response = new React\Http\Message\Response( - * React\Http\Message\Response::STATUS_OK, - * [ - * 'Content-Type' => 'application/xml' - * ], - * $xml - * ); - * ``` - * - * This method always returns a response with a `200 OK` status code and - * the appropriate `Content-Type` response header for the given XML source - * string. It's generally recommended to use UTF-8 (Unicode) and specify - * this as part of the leading XML declaration and to end the given XML - * source string with a trailing newline. - * - * If you want to use a different status code or custom HTTP response - * headers, you can manipulate the returned response object using the - * provided PSR-7 methods or directly instantiate a custom HTTP response - * object using the `Response` constructor: - * - * ```php - * $response = React\Http\Message\Response::xml( - * "Invalid user name given.\n" - * )->withStatus(React\Http\Message\Response::STATUS_BAD_REQUEST); - * ``` - * - * @param string $xml - * @return self - */ - public static function xml($xml) - { - return new self(self::STATUS_OK, array('Content-Type' => 'application/xml'), $xml); - } - - /** - * @var bool - * @see self::$phrasesMap - */ - private static $phrasesInitialized = false; - - /** - * Map of standard HTTP status codes to standard reason phrases. - * - * This map will be fully populated with all standard reason phrases on - * first access. By default, it only contains a subset of HTTP status codes - * that have a custom mapping to reason phrases (such as those with dashes - * and all caps words). See `self::STATUS_*` for all possible status code - * constants. - * - * @var array - * @see self::STATUS_* - * @see self::getReasonPhraseForStatusCode() - */ - private static $phrasesMap = array( - 200 => 'OK', - 203 => 'Non-Authoritative Information', - 207 => 'Multi-Status', - 226 => 'IM Used', - 414 => 'URI Too Large', - 418 => 'I\'m a teapot', - 505 => 'HTTP Version Not Supported' - ); - - /** @var int */ - private $statusCode; - - /** @var string */ - private $reasonPhrase; - - /** - * @param int $status HTTP status code (e.g. 200/404), see `self::STATUS_*` constants - * @param array $headers additional response headers - * @param string|ReadableStreamInterface|StreamInterface $body response body - * @param string $version HTTP protocol version (e.g. 1.1/1.0) - * @param ?string $reason custom HTTP response phrase - * @throws \InvalidArgumentException for an invalid body - */ - public function __construct( - $status = self::STATUS_OK, - array $headers = array(), - $body = '', - $version = '1.1', - $reason = null - ) { - if (\is_string($body)) { - $body = new BufferedBody($body); - } elseif ($body instanceof ReadableStreamInterface && !$body instanceof StreamInterface) { - $body = new HttpBodyStream($body, null); - } elseif (!$body instanceof StreamInterface) { - throw new \InvalidArgumentException('Invalid response body given'); - } - - parent::__construct($version, $headers, $body); - - $this->statusCode = (int) $status; - $this->reasonPhrase = ($reason !== '' && $reason !== null) ? (string) $reason : self::getReasonPhraseForStatusCode($status); - } - - public function getStatusCode() - { - return $this->statusCode; - } - - public function withStatus($code, $reasonPhrase = '') - { - if ((string) $reasonPhrase === '') { - $reasonPhrase = self::getReasonPhraseForStatusCode($code); - } - - if ($this->statusCode === (int) $code && $this->reasonPhrase === (string) $reasonPhrase) { - return $this; - } - - $response = clone $this; - $response->statusCode = (int) $code; - $response->reasonPhrase = (string) $reasonPhrase; - - return $response; - } - - public function getReasonPhrase() - { - return $this->reasonPhrase; - } - - /** - * @param int $code - * @return string default reason phrase for given status code or empty string if unknown - */ - private static function getReasonPhraseForStatusCode($code) - { - if (!self::$phrasesInitialized) { - self::$phrasesInitialized = true; - - // map all `self::STATUS_` constants from status code to reason phrase - // e.g. `self::STATUS_NOT_FOUND = 404` will be mapped to `404 Not Found` - $ref = new \ReflectionClass(__CLASS__); - foreach ($ref->getConstants() as $name => $value) { - if (!isset(self::$phrasesMap[$value]) && \strpos($name, 'STATUS_') === 0) { - self::$phrasesMap[$value] = \ucwords(\strtolower(\str_replace('_', ' ', \substr($name, 7)))); - } - } - } - - return isset(self::$phrasesMap[$code]) ? self::$phrasesMap[$code] : ''; - } - - /** - * [Internal] Parse incoming HTTP protocol message - * - * @internal - * @param string $message - * @return self - * @throws \InvalidArgumentException if given $message is not a valid HTTP response message - */ - public static function parseMessage($message) - { - $start = array(); - if (!\preg_match('#^HTTP/(?\d\.\d) (?\d{3})(?: (?[^\r\n]*+))?[\r]?+\n#m', $message, $start)) { - throw new \InvalidArgumentException('Unable to parse invalid status-line'); - } - - // only support HTTP/1.1 and HTTP/1.0 requests - if ($start['version'] !== '1.1' && $start['version'] !== '1.0') { - throw new \InvalidArgumentException('Received response with invalid protocol version'); - } - - // check number of valid header fields matches number of lines + status line - $matches = array(); - $n = \preg_match_all(self::REGEX_HEADERS, $message, $matches, \PREG_SET_ORDER); - if (\substr_count($message, "\n") !== $n + 1) { - throw new \InvalidArgumentException('Unable to parse invalid response header fields'); - } - - // format all header fields into associative array - $headers = array(); - foreach ($matches as $match) { - $headers[$match[1]][] = $match[2]; - } - - return new self( - (int) $start['status'], - $headers, - '', - $start['version'], - isset($start['reason']) ? $start['reason'] : '' - ); - } -} diff --git a/vendor/react/http/src/Message/ResponseException.php b/vendor/react/http/src/Message/ResponseException.php deleted file mode 100644 index f4912c9..0000000 --- a/vendor/react/http/src/Message/ResponseException.php +++ /dev/null @@ -1,43 +0,0 @@ -getStatusCode() . ' (' . $response->getReasonPhrase() . ')'; - } - if ($code === null) { - $code = $response->getStatusCode(); - } - parent::__construct($message, $code, $previous); - - $this->response = $response; - } - - /** - * Access its underlying response object. - * - * @return ResponseInterface - */ - public function getResponse() - { - return $this->response; - } -} diff --git a/vendor/react/http/src/Message/ServerRequest.php b/vendor/react/http/src/Message/ServerRequest.php deleted file mode 100644 index 32a0f62..0000000 --- a/vendor/react/http/src/Message/ServerRequest.php +++ /dev/null @@ -1,331 +0,0 @@ - Internally, this implementation builds on top of a base class which is - * considered an implementation detail that may change in the future. - * - * @see ServerRequestInterface - */ -final class ServerRequest extends AbstractRequest implements ServerRequestInterface -{ - private $attributes = array(); - - private $serverParams; - private $fileParams = array(); - private $cookies = array(); - private $queryParams = array(); - private $parsedBody; - - /** - * @param string $method HTTP method for the request. - * @param string|UriInterface $url URL for the request. - * @param array $headers Headers for the message. - * @param string|ReadableStreamInterface|StreamInterface $body Message body. - * @param string $version HTTP protocol version. - * @param array $serverParams server-side parameters - * @throws \InvalidArgumentException for an invalid URL or body - */ - public function __construct( - $method, - $url, - array $headers = array(), - $body = '', - $version = '1.1', - $serverParams = array() - ) { - if (\is_string($body)) { - $body = new BufferedBody($body); - } elseif ($body instanceof ReadableStreamInterface && !$body instanceof StreamInterface) { - $temp = new self($method, '', $headers); - $size = (int) $temp->getHeaderLine('Content-Length'); - if (\strtolower($temp->getHeaderLine('Transfer-Encoding')) === 'chunked') { - $size = null; - } - $body = new HttpBodyStream($body, $size); - } elseif (!$body instanceof StreamInterface) { - throw new \InvalidArgumentException('Invalid server request body given'); - } - - parent::__construct($method, $url, $headers, $body, $version); - - $this->serverParams = $serverParams; - - $query = $this->getUri()->getQuery(); - if ($query !== '') { - \parse_str($query, $this->queryParams); - } - - // Multiple cookie headers are not allowed according - // to https://tools.ietf.org/html/rfc6265#section-5.4 - $cookieHeaders = $this->getHeader("Cookie"); - - if (count($cookieHeaders) === 1) { - $this->cookies = $this->parseCookie($cookieHeaders[0]); - } - } - - public function getServerParams() - { - return $this->serverParams; - } - - public function getCookieParams() - { - return $this->cookies; - } - - public function withCookieParams(array $cookies) - { - $new = clone $this; - $new->cookies = $cookies; - return $new; - } - - public function getQueryParams() - { - return $this->queryParams; - } - - public function withQueryParams(array $query) - { - $new = clone $this; - $new->queryParams = $query; - return $new; - } - - public function getUploadedFiles() - { - return $this->fileParams; - } - - public function withUploadedFiles(array $uploadedFiles) - { - $new = clone $this; - $new->fileParams = $uploadedFiles; - return $new; - } - - public function getParsedBody() - { - return $this->parsedBody; - } - - public function withParsedBody($data) - { - $new = clone $this; - $new->parsedBody = $data; - return $new; - } - - public function getAttributes() - { - return $this->attributes; - } - - public function getAttribute($name, $default = null) - { - if (!\array_key_exists($name, $this->attributes)) { - return $default; - } - return $this->attributes[$name]; - } - - public function withAttribute($name, $value) - { - $new = clone $this; - $new->attributes[$name] = $value; - return $new; - } - - public function withoutAttribute($name) - { - $new = clone $this; - unset($new->attributes[$name]); - return $new; - } - - /** - * @param string $cookie - * @return array - */ - private function parseCookie($cookie) - { - $cookieArray = \explode(';', $cookie); - $result = array(); - - foreach ($cookieArray as $pair) { - $pair = \trim($pair); - $nameValuePair = \explode('=', $pair, 2); - - if (\count($nameValuePair) === 2) { - $key = $nameValuePair[0]; - $value = \urldecode($nameValuePair[1]); - $result[$key] = $value; - } - } - - return $result; - } - - /** - * [Internal] Parse incoming HTTP protocol message - * - * @internal - * @param string $message - * @param array $serverParams - * @return self - * @throws \InvalidArgumentException if given $message is not a valid HTTP request message - */ - public static function parseMessage($message, array $serverParams) - { - // parse request line like "GET /path HTTP/1.1" - $start = array(); - if (!\preg_match('#^(?[^ ]+) (?[^ ]+) HTTP/(?\d\.\d)#m', $message, $start)) { - throw new \InvalidArgumentException('Unable to parse invalid request-line'); - } - - // only support HTTP/1.1 and HTTP/1.0 requests - if ($start['version'] !== '1.1' && $start['version'] !== '1.0') { - throw new \InvalidArgumentException('Received request with invalid protocol version', Response::STATUS_VERSION_NOT_SUPPORTED); - } - - // check number of valid header fields matches number of lines + request line - $matches = array(); - $n = \preg_match_all(self::REGEX_HEADERS, $message, $matches, \PREG_SET_ORDER); - if (\substr_count($message, "\n") !== $n + 1) { - throw new \InvalidArgumentException('Unable to parse invalid request header fields'); - } - - // format all header fields into associative array - $host = null; - $headers = array(); - foreach ($matches as $match) { - $headers[$match[1]][] = $match[2]; - - // match `Host` request header - if ($host === null && \strtolower($match[1]) === 'host') { - $host = $match[2]; - } - } - - // scheme is `http` unless TLS is used - $scheme = isset($serverParams['HTTPS']) ? 'https://' : 'http://'; - - // default host if unset comes from local socket address or defaults to localhost - $hasHost = $host !== null; - if ($host === null) { - $host = isset($serverParams['SERVER_ADDR'], $serverParams['SERVER_PORT']) ? $serverParams['SERVER_ADDR'] . ':' . $serverParams['SERVER_PORT'] : '127.0.0.1'; - } - - if ($start['method'] === 'OPTIONS' && $start['target'] === '*') { - // support asterisk-form for `OPTIONS *` request line only - $uri = $scheme . $host; - } elseif ($start['method'] === 'CONNECT') { - $parts = \parse_url('tcp://' . $start['target']); - - // check this is a valid authority-form request-target (host:port) - if (!isset($parts['scheme'], $parts['host'], $parts['port']) || \count($parts) !== 3) { - throw new \InvalidArgumentException('CONNECT method MUST use authority-form request target'); - } - $uri = $scheme . $start['target']; - } else { - // support absolute-form or origin-form for proxy requests - if ($start['target'][0] === '/') { - $uri = $scheme . $host . $start['target']; - } else { - // ensure absolute-form request-target contains a valid URI - $parts = \parse_url($start['target']); - - // make sure value contains valid host component (IP or hostname), but no fragment - if (!isset($parts['scheme'], $parts['host']) || $parts['scheme'] !== 'http' || isset($parts['fragment'])) { - throw new \InvalidArgumentException('Invalid absolute-form request-target'); - } - - $uri = $start['target']; - } - } - - $request = new self( - $start['method'], - $uri, - $headers, - '', - $start['version'], - $serverParams - ); - - // only assign request target if it is not in origin-form (happy path for most normal requests) - if ($start['target'][0] !== '/') { - $request = $request->withRequestTarget($start['target']); - } - - if ($hasHost) { - // Optional Host request header value MUST be valid (host and optional port) - $parts = \parse_url('http://' . $request->getHeaderLine('Host')); - - // make sure value contains valid host component (IP or hostname) - if (!$parts || !isset($parts['scheme'], $parts['host'])) { - $parts = false; - } - - // make sure value does not contain any other URI component - if (\is_array($parts)) { - unset($parts['scheme'], $parts['host'], $parts['port']); - } - if ($parts === false || $parts) { - throw new \InvalidArgumentException('Invalid Host header value'); - } - } elseif (!$hasHost && $start['version'] === '1.1' && $start['method'] !== 'CONNECT') { - // require Host request header for HTTP/1.1 (except for CONNECT method) - throw new \InvalidArgumentException('Missing required Host request header'); - } elseif (!$hasHost) { - // remove default Host request header for HTTP/1.0 when not explicitly given - $request = $request->withoutHeader('Host'); - } - - // ensure message boundaries are valid according to Content-Length and Transfer-Encoding request headers - if ($request->hasHeader('Transfer-Encoding')) { - if (\strtolower($request->getHeaderLine('Transfer-Encoding')) !== 'chunked') { - throw new \InvalidArgumentException('Only chunked-encoding is allowed for Transfer-Encoding', Response::STATUS_NOT_IMPLEMENTED); - } - - // Transfer-Encoding: chunked and Content-Length header MUST NOT be used at the same time - // as per https://tools.ietf.org/html/rfc7230#section-3.3.3 - if ($request->hasHeader('Content-Length')) { - throw new \InvalidArgumentException('Using both `Transfer-Encoding: chunked` and `Content-Length` is not allowed', Response::STATUS_BAD_REQUEST); - } - } elseif ($request->hasHeader('Content-Length')) { - $string = $request->getHeaderLine('Content-Length'); - - if ((string)(int)$string !== $string) { - // Content-Length value is not an integer or not a single integer - throw new \InvalidArgumentException('The value of `Content-Length` is not valid', Response::STATUS_BAD_REQUEST); - } - } - - return $request; - } -} diff --git a/vendor/react/http/src/Message/Uri.php b/vendor/react/http/src/Message/Uri.php deleted file mode 100644 index 1eaf24f..0000000 --- a/vendor/react/http/src/Message/Uri.php +++ /dev/null @@ -1,356 +0,0 @@ -scheme = \strtolower($parts['scheme']); - } - - if (isset($parts['user']) || isset($parts['pass'])) { - $this->userInfo = $this->encode(isset($parts['user']) ? $parts['user'] : '', \PHP_URL_USER) . (isset($parts['pass']) ? ':' . $this->encode($parts['pass'], \PHP_URL_PASS) : ''); - } - - if (isset($parts['host'])) { - $this->host = \strtolower($parts['host']); - } - - if (isset($parts['port']) && !(($parts['port'] === 80 && $this->scheme === 'http') || ($parts['port'] === 443 && $this->scheme === 'https'))) { - $this->port = $parts['port']; - } - - if (isset($parts['path'])) { - $this->path = $this->encode($parts['path'], \PHP_URL_PATH); - } - - if (isset($parts['query'])) { - $this->query = $this->encode($parts['query'], \PHP_URL_QUERY); - } - - if (isset($parts['fragment'])) { - $this->fragment = $this->encode($parts['fragment'], \PHP_URL_FRAGMENT); - } - } - - public function getScheme() - { - return $this->scheme; - } - - public function getAuthority() - { - if ($this->host === '') { - return ''; - } - - return ($this->userInfo !== '' ? $this->userInfo . '@' : '') . $this->host . ($this->port !== null ? ':' . $this->port : ''); - } - - public function getUserInfo() - { - return $this->userInfo; - } - - public function getHost() - { - return $this->host; - } - - public function getPort() - { - return $this->port; - } - - public function getPath() - { - return $this->path; - } - - public function getQuery() - { - return $this->query; - } - - public function getFragment() - { - return $this->fragment; - } - - public function withScheme($scheme) - { - $scheme = \strtolower($scheme); - if ($scheme === $this->scheme) { - return $this; - } - - if (!\preg_match('#^[a-z]*$#', $scheme)) { - throw new \InvalidArgumentException('Invalid URI scheme given'); - } - - $new = clone $this; - $new->scheme = $scheme; - - if (($this->port === 80 && $scheme === 'http') || ($this->port === 443 && $scheme === 'https')) { - $new->port = null; - } - - return $new; - } - - public function withUserInfo($user, $password = null) - { - $userInfo = $this->encode($user, \PHP_URL_USER) . ($password !== null ? ':' . $this->encode($password, \PHP_URL_PASS) : ''); - if ($userInfo === $this->userInfo) { - return $this; - } - - $new = clone $this; - $new->userInfo = $userInfo; - - return $new; - } - - public function withHost($host) - { - $host = \strtolower($host); - if ($host === $this->host) { - return $this; - } - - if (\preg_match('#[\s%+]#', $host) || ($host !== '' && \parse_url('http://' . $host, \PHP_URL_HOST) !== $host)) { - throw new \InvalidArgumentException('Invalid URI host given'); - } - - $new = clone $this; - $new->host = $host; - - return $new; - } - - public function withPort($port) - { - $port = $port === null ? null : (int) $port; - if (($port === 80 && $this->scheme === 'http') || ($port === 443 && $this->scheme === 'https')) { - $port = null; - } - - if ($port === $this->port) { - return $this; - } - - if ($port !== null && ($port < 1 || $port > 0xffff)) { - throw new \InvalidArgumentException('Invalid URI port given'); - } - - $new = clone $this; - $new->port = $port; - - return $new; - } - - public function withPath($path) - { - $path = $this->encode($path, \PHP_URL_PATH); - if ($path === $this->path) { - return $this; - } - - $new = clone $this; - $new->path = $path; - - return $new; - } - - public function withQuery($query) - { - $query = $this->encode($query, \PHP_URL_QUERY); - if ($query === $this->query) { - return $this; - } - - $new = clone $this; - $new->query = $query; - - return $new; - } - - public function withFragment($fragment) - { - $fragment = $this->encode($fragment, \PHP_URL_FRAGMENT); - if ($fragment === $this->fragment) { - return $this; - } - - $new = clone $this; - $new->fragment = $fragment; - - return $new; - } - - public function __toString() - { - $uri = ''; - if ($this->scheme !== '') { - $uri .= $this->scheme . ':'; - } - - $authority = $this->getAuthority(); - if ($authority !== '') { - $uri .= '//' . $authority; - } - - if ($authority !== '' && isset($this->path[0]) && $this->path[0] !== '/') { - $uri .= '/' . $this->path; - } elseif ($authority === '' && isset($this->path[0]) && $this->path[0] === '/') { - $uri .= '/' . \ltrim($this->path, '/'); - } else { - $uri .= $this->path; - } - - if ($this->query !== '') { - $uri .= '?' . $this->query; - } - - if ($this->fragment !== '') { - $uri .= '#' . $this->fragment; - } - - return $uri; - } - - /** - * @param string $part - * @param int $component - * @return string - */ - private function encode($part, $component) - { - return \preg_replace_callback( - '/(?:[^a-z0-9_\-\.~!\$&\'\(\)\*\+,;=' . ($component === \PHP_URL_PATH ? ':@\/' : ($component === \PHP_URL_QUERY || $component === \PHP_URL_FRAGMENT ? ':@\/\?' : '')) . '%]++|%(?![a-f0-9]{2}))/i', - function (array $match) { - return \rawurlencode($match[0]); - }, - $part - ); - } - - /** - * [Internal] Resolve URI relative to base URI and return new absolute URI - * - * @internal - * @param UriInterface $base - * @param UriInterface $rel - * @return UriInterface - * @throws void - */ - public static function resolve(UriInterface $base, UriInterface $rel) - { - if ($rel->getScheme() !== '') { - return $rel->getPath() === '' ? $rel : $rel->withPath(self::removeDotSegments($rel->getPath())); - } - - $reset = false; - $new = $base; - if ($rel->getAuthority() !== '') { - $reset = true; - $userInfo = \explode(':', $rel->getUserInfo(), 2); - $new = $base->withUserInfo($userInfo[0], isset($userInfo[1]) ? $userInfo[1]: null)->withHost($rel->getHost())->withPort($rel->getPort()); - } - - if ($reset && $rel->getPath() === '') { - $new = $new->withPath(''); - } elseif (($path = $rel->getPath()) !== '') { - $start = ''; - if ($path === '' || $path[0] !== '/') { - $start = $base->getPath(); - if (\substr($start, -1) !== '/') { - $start .= '/../'; - } - } - $reset = true; - $new = $new->withPath(self::removeDotSegments($start . $path)); - } - if ($reset || $rel->getQuery() !== '') { - $reset = true; - $new = $new->withQuery($rel->getQuery()); - } - if ($reset || $rel->getFragment() !== '') { - $new = $new->withFragment($rel->getFragment()); - } - - return $new; - } - - /** - * @param string $path - * @return string - */ - private static function removeDotSegments($path) - { - $segments = array(); - foreach (\explode('/', $path) as $segment) { - if ($segment === '..') { - \array_pop($segments); - } elseif ($segment !== '.' && $segment !== '') { - $segments[] = $segment; - } - } - return '/' . \implode('/', $segments) . ($path !== '/' && \substr($path, -1) === '/' ? '/' : ''); - } -} diff --git a/vendor/react/http/src/Middleware/LimitConcurrentRequestsMiddleware.php b/vendor/react/http/src/Middleware/LimitConcurrentRequestsMiddleware.php deleted file mode 100644 index b1c00da..0000000 --- a/vendor/react/http/src/Middleware/LimitConcurrentRequestsMiddleware.php +++ /dev/null @@ -1,211 +0,0 @@ -limit = $limit; - } - - public function __invoke(ServerRequestInterface $request, $next) - { - // happy path: simply invoke next request handler if we're below limit - if ($this->pending < $this->limit) { - ++$this->pending; - - try { - $response = $next($request); - } catch (\Exception $e) { - $this->processQueue(); - throw $e; - } catch (\Throwable $e) { // @codeCoverageIgnoreStart - // handle Errors just like Exceptions (PHP 7+ only) - $this->processQueue(); - throw $e; // @codeCoverageIgnoreEnd - } - - // happy path: if next request handler returned immediately, - // we can simply try to invoke the next queued request - if ($response instanceof ResponseInterface) { - $this->processQueue(); - return $response; - } - - // if the next handler returns a pending promise, we have to - // await its resolution before invoking next queued request - return $this->await(Promise\resolve($response)); - } - - // if we reach this point, then this request will need to be queued - // check if the body is streaming, in which case we need to buffer everything - $body = $request->getBody(); - if ($body instanceof ReadableStreamInterface) { - // pause actual body to stop emitting data until the handler is called - $size = $body->getSize(); - $body = new PauseBufferStream($body); - $body->pauseImplicit(); - - // replace with buffering body to ensure any readable events will be buffered - $request = $request->withBody(new HttpBodyStream( - $body, - $size - )); - } - - // get next queue position - $queue =& $this->queue; - $queue[] = null; - \end($queue); - $id = \key($queue); - - $deferred = new Deferred(function ($_, $reject) use (&$queue, $id) { - // queued promise cancelled before its next handler is invoked - // remove from queue and reject explicitly - unset($queue[$id]); - $reject(new \RuntimeException('Cancelled queued next handler')); - }); - - // queue request and process queue if pending does not exceed limit - $queue[$id] = $deferred; - - $pending = &$this->pending; - $that = $this; - return $deferred->promise()->then(function () use ($request, $next, $body, &$pending, $that) { - // invoke next request handler - ++$pending; - - try { - $response = $next($request); - } catch (\Exception $e) { - $that->processQueue(); - throw $e; - } catch (\Throwable $e) { // @codeCoverageIgnoreStart - // handle Errors just like Exceptions (PHP 7+ only) - $that->processQueue(); - throw $e; // @codeCoverageIgnoreEnd - } - - // resume readable stream and replay buffered events - if ($body instanceof PauseBufferStream) { - $body->resumeImplicit(); - } - - // if the next handler returns a pending promise, we have to - // await its resolution before invoking next queued request - return $that->await(Promise\resolve($response)); - }); - } - - /** - * @internal - * @param PromiseInterface $promise - * @return PromiseInterface - */ - public function await(PromiseInterface $promise) - { - $that = $this; - - return $promise->then(function ($response) use ($that) { - $that->processQueue(); - - return $response; - }, function ($error) use ($that) { - $that->processQueue(); - - return Promise\reject($error); - }); - } - - /** - * @internal - */ - public function processQueue() - { - // skip if we're still above concurrency limit or there's no queued request waiting - if (--$this->pending >= $this->limit || !$this->queue) { - return; - } - - $first = \reset($this->queue); - unset($this->queue[key($this->queue)]); - - $first->resolve(null); - } -} diff --git a/vendor/react/http/src/Middleware/RequestBodyBufferMiddleware.php b/vendor/react/http/src/Middleware/RequestBodyBufferMiddleware.php deleted file mode 100644 index ddb39f5..0000000 --- a/vendor/react/http/src/Middleware/RequestBodyBufferMiddleware.php +++ /dev/null @@ -1,109 +0,0 @@ -sizeLimit = IniUtil::iniSizeToBytes($sizeLimit); - } - - public function __invoke(ServerRequestInterface $request, $next) - { - $body = $request->getBody(); - $size = $body->getSize(); - - // happy path: skip if body is known to be empty (or is already buffered) - if ($size === 0 || !$body instanceof ReadableStreamInterface || !$body->isReadable()) { - // replace with empty body if body is streaming (or buffered size exceeds limit) - if ($body instanceof ReadableStreamInterface || $size > $this->sizeLimit) { - $request = $request->withBody(new BufferedBody('')); - } - - return $next($request); - } - - // request body of known size exceeding limit - $sizeLimit = $this->sizeLimit; - if ($size > $this->sizeLimit) { - $sizeLimit = 0; - } - - /** @var ?\Closure $closer */ - $closer = null; - - return new Promise(function ($resolve, $reject) use ($body, &$closer, $sizeLimit, $request, $next) { - // buffer request body data in memory, discard but keep buffering if limit is reached - $buffer = ''; - $bufferer = null; - $body->on('data', $bufferer = function ($data) use (&$buffer, $sizeLimit, $body, &$bufferer) { - $buffer .= $data; - - // On buffer overflow keep the request body stream in, - // but ignore the contents and wait for the close event - // before passing the request on to the next middleware. - if (isset($buffer[$sizeLimit])) { - assert($bufferer instanceof \Closure); - $body->removeListener('data', $bufferer); - $bufferer = null; - $buffer = ''; - } - }); - - // call $next with current buffer and resolve or reject with its results - $body->on('close', $closer = function () use (&$buffer, $request, $resolve, $reject, $next) { - try { - // resolve with result of next handler - $resolve($next($request->withBody(new BufferedBody($buffer)))); - } catch (\Exception $e) { - $reject($e); - } catch (\Throwable $e) { // @codeCoverageIgnoreStart - // reject Errors just like Exceptions (PHP 7+) - $reject($e); // @codeCoverageIgnoreEnd - } - }); - - // reject buffering if body emits error - $body->on('error', function (\Exception $e) use ($reject, $body, $closer) { - // remove close handler to avoid resolving, then close and reject - assert($closer instanceof \Closure); - $body->removeListener('close', $closer); - $body->close(); - - $reject(new \RuntimeException( - 'Error while buffering request body: ' . $e->getMessage(), - $e->getCode(), - $e - )); - }); - }, function () use ($body, &$closer) { - // cancelled buffering: remove close handler to avoid resolving, then close and reject - assert($closer instanceof \Closure); - $body->removeListener('close', $closer); - $body->close(); - - throw new \RuntimeException('Cancelled buffering request body'); - }); - } -} diff --git a/vendor/react/http/src/Middleware/RequestBodyParserMiddleware.php b/vendor/react/http/src/Middleware/RequestBodyParserMiddleware.php deleted file mode 100644 index be5ba16..0000000 --- a/vendor/react/http/src/Middleware/RequestBodyParserMiddleware.php +++ /dev/null @@ -1,46 +0,0 @@ -multipart = new MultipartParser($uploadMaxFilesize, $maxFileUploads); - } - - public function __invoke(ServerRequestInterface $request, $next) - { - $type = \strtolower($request->getHeaderLine('Content-Type')); - list ($type) = \explode(';', $type); - - if ($type === 'application/x-www-form-urlencoded') { - return $next($this->parseFormUrlencoded($request)); - } - - if ($type === 'multipart/form-data') { - return $next($this->multipart->parse($request)); - } - - return $next($request); - } - - private function parseFormUrlencoded(ServerRequestInterface $request) - { - // parse string into array structure - // ignore warnings due to excessive data structures (max_input_vars and max_input_nesting_level) - $ret = array(); - @\parse_str((string)$request->getBody(), $ret); - - return $request->withParsedBody($ret); - } -} diff --git a/vendor/react/http/src/Middleware/StreamingRequestMiddleware.php b/vendor/react/http/src/Middleware/StreamingRequestMiddleware.php deleted file mode 100644 index 6ab74b7..0000000 --- a/vendor/react/http/src/Middleware/StreamingRequestMiddleware.php +++ /dev/null @@ -1,69 +0,0 @@ -getBody(); - * assert($body instanceof Psr\Http\Message\StreamInterface); - * assert($body instanceof React\Stream\ReadableStreamInterface); - * - * return new React\Promise\Promise(function ($resolve) use ($body) { - * $bytes = 0; - * $body->on('data', function ($chunk) use (&$bytes) { - * $bytes += \count($chunk); - * }); - * $body->on('close', function () use (&$bytes, $resolve) { - * $resolve(new React\Http\Response( - * 200, - * [], - * "Received $bytes bytes\n" - * )); - * }); - * }); - * } - * ); - * ``` - * - * See also [streaming incoming request](../../README.md#streaming-incoming-request) - * for more details. - * - * Additionally, this middleware can be used in combination with the - * [`LimitConcurrentRequestsMiddleware`](#limitconcurrentrequestsmiddleware) and - * [`RequestBodyBufferMiddleware`](#requestbodybuffermiddleware) (see below) - * to explicitly configure the total number of requests that can be handled at - * once: - * - * ```php - * $http = new React\Http\HttpServer( - * new React\Http\Middleware\StreamingRequestMiddleware(), - * new React\Http\Middleware\LimitConcurrentRequestsMiddleware(100), // 100 concurrent buffering handlers - * new React\Http\Middleware\RequestBodyBufferMiddleware(2 * 1024 * 1024), // 2 MiB per request - * new React\Http\Middleware\RequestBodyParserMiddleware(), - * $handler - * ); - * ``` - * - * > Internally, this class is used as a "marker" to not trigger the default - * request buffering behavior in the `HttpServer`. It does not implement any logic - * on its own. - */ -final class StreamingRequestMiddleware -{ - public function __invoke(ServerRequestInterface $request, $next) - { - return $next($request); - } -} diff --git a/vendor/react/http/src/Server.php b/vendor/react/http/src/Server.php deleted file mode 100644 index 9bb9cf7..0000000 --- a/vendor/react/http/src/Server.php +++ /dev/null @@ -1,18 +0,0 @@ -` and `reject(Throwable $reason): PromiseInterface`. - It is no longer possible to resolve a promise without a value (use `null` instead) or reject a promise without a reason (use `Throwable` instead). - (#93, #141 and #142 by @jsor, #138, #149 and #247 by @WyriHaximus and #213 and #246 by @clue) - - ```php - // old (arguments used to be optional) - $promise = resolve(); - $promise = reject(); - - // new (already supported before) - $promise = resolve(null); - $promise = reject(new RuntimeException()); - ``` - -* Feature / BC break: Report all unhandled rejections by default and remove ~~`done()`~~ method. - Add new `set_rejection_handler()` function to set the global rejection handler for unhandled promise rejections. - (#248, #249 and #224 by @clue) - - ```php - // Unhandled promise rejection with RuntimeException: Unhandled in example.php:2 - reject(new RuntimeException('Unhandled')); - ``` - -* BC break: Remove all deprecated APIs and reduce API surface. - Remove ~~`some()`~~, ~~`map()`~~, ~~`reduce()`~~ functions, use `any()` and `all()` functions instead. - Remove internal ~~`FulfilledPromise`~~ and ~~`RejectedPromise`~~ classes, use `resolve()` and `reject()` functions instead. - Remove legacy promise progress API (deprecated third argument to `then()` method) and deprecated ~~`LazyPromise`~~ class. - (#32 and #98 by @jsor and #164, #219 and #220 by @clue) - -* BC break: Make all classes final to encourage composition over inheritance. - (#80 by @jsor) - -* Feature / BC break: Require `array` (or `iterable`) type for `all()` + `race()` + `any()` functions and bring in line with ES6 specification. - These functions now require a single argument with a variable number of promises or values as input. - (#225 by @clue and #35 by @jsor) - -* Fix / BC break: Fix `race()` to return a forever pending promise when called with an empty `array` (or `iterable`) and bring in line with ES6 specification. - (#83 by @jsor and #225 by @clue) - -* Minor performance improvements by initializing `Deferred` in the constructor and avoiding `call_user_func()` calls. - (#151 by @WyriHaximus and #171 by @Kubo2) - -* Minor documentation improvements. - (#110 by @seregazhuk, #132 by @CharlotteDunois, #145 by @danielecr, #178 by @WyriHaximus, #189 by @srdante, #212 by @clue, #214, #239 and #243 by @SimonFrings and #231 by @nhedger) - -The following changes had to be ported to this release due to our branching -strategy, but also appeared in the [`2.x` branch](https://github.com/reactphp/promise/tree/2.x): - -* Feature: Support union types and address deprecation of `ReflectionType::getClass()` (PHP 8+). - (#197 by @cdosoftei and @SimonFrings) - -* Feature: Support intersection types (PHP 8.1+). - (#209 by @bzikarsky) - -* Feature: Support DNS types (PHP 8.2+). - (#236 by @nhedger) - -* Feature: Port all memory improvements from `2.x` to `3.x`. - (#150 by @clue and @WyriHaximus) - -* Fix: Fix checking whether cancellable promise is an object and avoid possible warning. - (#161 by @smscr) - -* Improve performance by prefixing all global functions calls with \ to skip the look up and resolve process and go straight to the global function. - (#134 by @WyriHaximus) - -* Improve test suite, update PHPUnit and PHP versions and add `.gitattributes` to exclude dev files from exports. - (#107 by @carusogabriel, #148 and #234 by @WyriHaximus, #153 by @reedy, #162, #230 and #240 by @clue, #173, #177, #185 and #199 by @SimonFrings, #193 by @woodongwong and #210 by @bzikarsky) - -The following changes were originally planned for this release but later reverted -and are not part of the final release: - -* Add iterative callback queue handler to avoid recursion (later removed to improve Fiber support). - (#28, #82 and #86 by @jsor, #158 by @WyriHaximus and #229 and #238 by @clue) - -* Trigger an `E_USER_ERROR` instead of throwing an exception from `done()` (later removed entire `done()` method to globally report unhandled rejections). - (#97 by @jsor and #224 and #248 by @clue) - -* Add type declarations for `some()` (later removed entire `some()` function). - (#172 by @WyriHaximus and #219 by @clue) - -## 2.0.0 (2013-12-10) - -See [`2.x` CHANGELOG](https://github.com/reactphp/promise/blob/2.x/CHANGELOG.md) for more details. - -## 1.0.0 (2012-11-07) - -See [`1.x` CHANGELOG](https://github.com/reactphp/promise/blob/1.x/CHANGELOG.md) for more details. diff --git a/vendor/react/promise/LICENSE b/vendor/react/promise/LICENSE deleted file mode 100644 index 21c1357..0000000 --- a/vendor/react/promise/LICENSE +++ /dev/null @@ -1,24 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2012 Jan Sorgalla, Christian Lück, Cees-Jan Kiewiet, Chris Boden - -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. diff --git a/vendor/react/promise/README.md b/vendor/react/promise/README.md deleted file mode 100644 index 2108d98..0000000 --- a/vendor/react/promise/README.md +++ /dev/null @@ -1,722 +0,0 @@ -Promise -======= - -A lightweight implementation of -[CommonJS Promises/A](http://wiki.commonjs.org/wiki/Promises/A) for PHP. - -[![CI status](https://github.com/reactphp/promise/workflows/CI/badge.svg)](https://github.com/reactphp/promise/actions) -[![installs on Packagist](https://img.shields.io/packagist/dt/react/promise?color=blue&label=installs%20on%20Packagist)](https://packagist.org/packages/react/promise) - -Table of Contents ------------------ - -1. [Introduction](#introduction) -2. [Concepts](#concepts) - * [Deferred](#deferred) - * [Promise](#promise-1) -3. [API](#api) - * [Deferred](#deferred-1) - * [Deferred::promise()](#deferredpromise) - * [Deferred::resolve()](#deferredresolve) - * [Deferred::reject()](#deferredreject) - * [PromiseInterface](#promiseinterface) - * [PromiseInterface::then()](#promiseinterfacethen) - * [PromiseInterface::catch()](#promiseinterfacecatch) - * [PromiseInterface::finally()](#promiseinterfacefinally) - * [PromiseInterface::cancel()](#promiseinterfacecancel) - * [~~PromiseInterface::otherwise()~~](#promiseinterfaceotherwise) - * [~~PromiseInterface::always()~~](#promiseinterfacealways) - * [Promise](#promise-2) - * [Functions](#functions) - * [resolve()](#resolve) - * [reject()](#reject) - * [all()](#all) - * [race()](#race) - * [any()](#any) - * [set_rejection_handler()](#set_rejection_handler) -4. [Examples](#examples) - * [How to use Deferred](#how-to-use-deferred) - * [How promise forwarding works](#how-promise-forwarding-works) - * [Resolution forwarding](#resolution-forwarding) - * [Rejection forwarding](#rejection-forwarding) - * [Mixed resolution and rejection forwarding](#mixed-resolution-and-rejection-forwarding) -5. [Install](#install) -6. [Tests](#tests) -7. [Credits](#credits) -8. [License](#license) - -Introduction ------------- - -Promise is a library implementing -[CommonJS Promises/A](http://wiki.commonjs.org/wiki/Promises/A) for PHP. - -It also provides several other useful promise-related concepts, such as joining -multiple promises and mapping and reducing collections of promises. - -If you've never heard about promises before, -[read this first](https://gist.github.com/domenic/3889970). - -Concepts --------- - -### Deferred - -A **Deferred** represents a computation or unit of work that may not have -completed yet. Typically (but not always), that computation will be something -that executes asynchronously and completes at some point in the future. - -### Promise - -While a deferred represents the computation itself, a **Promise** represents -the result of that computation. Thus, each deferred has a promise that acts as -a placeholder for its actual result. - -API ---- - -### Deferred - -A deferred represents an operation whose resolution is pending. It has separate -promise and resolver parts. - -```php -$deferred = new React\Promise\Deferred(); - -$promise = $deferred->promise(); - -$deferred->resolve(mixed $value); -$deferred->reject(\Throwable $reason); -``` - -The `promise` method returns the promise of the deferred. - -The `resolve` and `reject` methods control the state of the deferred. - -The constructor of the `Deferred` accepts an optional `$canceller` argument. -See [Promise](#promise-2) for more information. - -#### Deferred::promise() - -```php -$promise = $deferred->promise(); -``` - -Returns the promise of the deferred, which you can hand out to others while -keeping the authority to modify its state to yourself. - -#### Deferred::resolve() - -```php -$deferred->resolve(mixed $value); -``` - -Resolves the promise returned by `promise()`. All consumers are notified by -having `$onFulfilled` (which they registered via `$promise->then()`) called with -`$value`. - -If `$value` itself is a promise, the promise will transition to the state of -this promise once it is resolved. - -See also the [`resolve()` function](#resolve). - -#### Deferred::reject() - -```php -$deferred->reject(\Throwable $reason); -``` - -Rejects the promise returned by `promise()`, signalling that the deferred's -computation failed. -All consumers are notified by having `$onRejected` (which they registered via -`$promise->then()`) called with `$reason`. - -See also the [`reject()` function](#reject). - -### PromiseInterface - -The promise interface provides the common interface for all promise -implementations. -See [Promise](#promise-2) for the only public implementation exposed by this -package. - -A promise represents an eventual outcome, which is either fulfillment (success) -and an associated value, or rejection (failure) and an associated reason. - -Once in the fulfilled or rejected state, a promise becomes immutable. -Neither its state nor its result (or error) can be modified. - -#### PromiseInterface::then() - -```php -$transformedPromise = $promise->then(callable $onFulfilled = null, callable $onRejected = null); -``` - -Transforms a promise's value by applying a function to the promise's fulfillment -or rejection value. Returns a new promise for the transformed result. - -The `then()` method registers new fulfilled and rejection handlers with a promise -(all parameters are optional): - - * `$onFulfilled` will be invoked once the promise is fulfilled and passed - the result as the first argument. - * `$onRejected` will be invoked once the promise is rejected and passed the - reason as the first argument. - -It returns a new promise that will fulfill with the return value of either -`$onFulfilled` or `$onRejected`, whichever is called, or will reject with -the thrown exception if either throws. - -A promise makes the following guarantees about handlers registered in -the same call to `then()`: - - 1. Only one of `$onFulfilled` or `$onRejected` will be called, - never both. - 2. `$onFulfilled` and `$onRejected` will never be called more - than once. - -#### See also - -* [resolve()](#resolve) - Creating a resolved promise -* [reject()](#reject) - Creating a rejected promise - -#### PromiseInterface::catch() - -```php -$promise->catch(callable $onRejected); -``` - -Registers a rejection handler for promise. It is a shortcut for: - -```php -$promise->then(null, $onRejected); -``` - -Additionally, you can type hint the `$reason` argument of `$onRejected` to catch -only specific errors. - -```php -$promise - ->catch(function (\RuntimeException $reason) { - // Only catch \RuntimeException instances - // All other types of errors will propagate automatically - }) - ->catch(function (\Throwable $reason) { - // Catch other errors - }); -``` - -#### PromiseInterface::finally() - -```php -$newPromise = $promise->finally(callable $onFulfilledOrRejected); -``` - -Allows you to execute "cleanup" type tasks in a promise chain. - -It arranges for `$onFulfilledOrRejected` to be called, with no arguments, -when the promise is either fulfilled or rejected. - -* If `$promise` fulfills, and `$onFulfilledOrRejected` returns successfully, - `$newPromise` will fulfill with the same value as `$promise`. -* If `$promise` fulfills, and `$onFulfilledOrRejected` throws or returns a - rejected promise, `$newPromise` will reject with the thrown exception or - rejected promise's reason. -* If `$promise` rejects, and `$onFulfilledOrRejected` returns successfully, - `$newPromise` will reject with the same reason as `$promise`. -* If `$promise` rejects, and `$onFulfilledOrRejected` throws or returns a - rejected promise, `$newPromise` will reject with the thrown exception or - rejected promise's reason. - -`finally()` behaves similarly to the synchronous finally statement. When combined -with `catch()`, `finally()` allows you to write code that is similar to the familiar -synchronous catch/finally pair. - -Consider the following synchronous code: - -```php -try { - return doSomething(); -} catch (\Throwable $e) { - return handleError($e); -} finally { - cleanup(); -} -``` - -Similar asynchronous code (with `doSomething()` that returns a promise) can be -written: - -```php -return doSomething() - ->catch('handleError') - ->finally('cleanup'); -``` - -#### PromiseInterface::cancel() - -``` php -$promise->cancel(); -``` - -The `cancel()` method notifies the creator of the promise that there is no -further interest in the results of the operation. - -Once a promise is settled (either fulfilled or rejected), calling `cancel()` on -a promise has no effect. - -#### ~~PromiseInterface::otherwise()~~ - -> Deprecated since v3.0.0, see [`catch()`](#promiseinterfacecatch) instead. - -The `otherwise()` method registers a rejection handler for a promise. - -This method continues to exist only for BC reasons and to ease upgrading -between versions. It is an alias for: - -```php -$promise->catch($onRejected); -``` - -#### ~~PromiseInterface::always()~~ - -> Deprecated since v3.0.0, see [`finally()`](#promiseinterfacefinally) instead. - -The `always()` method allows you to execute "cleanup" type tasks in a promise chain. - -This method continues to exist only for BC reasons and to ease upgrading -between versions. It is an alias for: - -```php -$promise->finally($onFulfilledOrRejected); -``` - -### Promise - -Creates a promise whose state is controlled by the functions passed to -`$resolver`. - -```php -$resolver = function (callable $resolve, callable $reject) { - // Do some work, possibly asynchronously, and then - // resolve or reject. - - $resolve($awesomeResult); - // or throw new Exception('Promise rejected'); - // or $resolve($anotherPromise); - // or $reject($nastyError); -}; - -$canceller = function () { - // Cancel/abort any running operations like network connections, streams etc. - - // Reject promise by throwing an exception - throw new Exception('Promise cancelled'); -}; - -$promise = new React\Promise\Promise($resolver, $canceller); -``` - -The promise constructor receives a resolver function and an optional canceller -function which both will be called with two arguments: - - * `$resolve($value)` - Primary function that seals the fate of the - returned promise. Accepts either a non-promise value, or another promise. - When called with a non-promise value, fulfills promise with that value. - When called with another promise, e.g. `$resolve($otherPromise)`, promise's - fate will be equivalent to that of `$otherPromise`. - * `$reject($reason)` - Function that rejects the promise. It is recommended to - just throw an exception instead of using `$reject()`. - -If the resolver or canceller throw an exception, the promise will be rejected -with that thrown exception as the rejection reason. - -The resolver function will be called immediately, the canceller function only -once all consumers called the `cancel()` method of the promise. - -### Functions - -Useful functions for creating and joining collections of promises. - -All functions working on promise collections (like `all()`, `race()`, -etc.) support cancellation. This means, if you call `cancel()` on the returned -promise, all promises in the collection are cancelled. - -#### resolve() - -```php -$promise = React\Promise\resolve(mixed $promiseOrValue); -``` - -Creates a promise for the supplied `$promiseOrValue`. - -If `$promiseOrValue` is a value, it will be the resolution value of the -returned promise. - -If `$promiseOrValue` is a thenable (any object that provides a `then()` method), -a trusted promise that follows the state of the thenable is returned. - -If `$promiseOrValue` is a promise, it will be returned as is. - -The resulting `$promise` implements the [`PromiseInterface`](#promiseinterface) -and can be consumed like any other promise: - -```php -$promise = React\Promise\resolve(42); - -$promise->then(function (int $result): void { - var_dump($result); -}, function (\Throwable $e): void { - echo 'Error: ' . $e->getMessage() . PHP_EOL; -}); -``` - -#### reject() - -```php -$promise = React\Promise\reject(\Throwable $reason); -``` - -Creates a rejected promise for the supplied `$reason`. - -Note that the [`\Throwable`](https://www.php.net/manual/en/class.throwable.php) interface introduced in PHP 7 covers -both user land [`\Exception`](https://www.php.net/manual/en/class.exception.php)'s and -[`\Error`](https://www.php.net/manual/en/class.error.php) internal PHP errors. By enforcing `\Throwable` as reason to -reject a promise, any language error or user land exception can be used to reject a promise. - -The resulting `$promise` implements the [`PromiseInterface`](#promiseinterface) -and can be consumed like any other promise: - -```php -$promise = React\Promise\reject(new RuntimeException('Request failed')); - -$promise->then(function (int $result): void { - var_dump($result); -}, function (\Throwable $e): void { - echo 'Error: ' . $e->getMessage() . PHP_EOL; -}); -``` - -Note that rejected promises should always be handled similar to how any -exceptions should always be caught in a `try` + `catch` block. If you remove the -last reference to a rejected promise that has not been handled, it will -report an unhandled promise rejection: - -```php -function incorrect(): int -{ - $promise = React\Promise\reject(new RuntimeException('Request failed')); - - // Commented out: No rejection handler registered here. - // $promise->then(null, function (\Throwable $e): void { /* ignore */ }); - - // Returning from a function will remove all local variable references, hence why - // this will report an unhandled promise rejection here. - return 42; -} - -// Calling this function will log an error message plus its stack trace: -// Unhandled promise rejection with RuntimeException: Request failed in example.php:10 -incorrect(); -``` - -A rejected promise will be considered "handled" if you catch the rejection -reason with either the [`then()` method](#promiseinterfacethen), the -[`catch()` method](#promiseinterfacecatch), or the -[`finally()` method](#promiseinterfacefinally). Note that each of these methods -return a new promise that may again be rejected if you re-throw an exception. - -A rejected promise will also be considered "handled" if you abort the operation -with the [`cancel()` method](#promiseinterfacecancel) (which in turn would -usually reject the promise if it is still pending). - -See also the [`set_rejection_handler()` function](#set_rejection_handler). - -#### all() - -```php -$promise = React\Promise\all(iterable $promisesOrValues); -``` - -Returns a promise that will resolve only once all the items in -`$promisesOrValues` have resolved. The resolution value of the returned promise -will be an array containing the resolution values of each of the items in -`$promisesOrValues`. - -#### race() - -```php -$promise = React\Promise\race(iterable $promisesOrValues); -``` - -Initiates a competitive race that allows one winner. Returns a promise which is -resolved in the same way the first settled promise resolves. - -The returned promise will become **infinitely pending** if `$promisesOrValues` -contains 0 items. - -#### any() - -```php -$promise = React\Promise\any(iterable $promisesOrValues); -``` - -Returns a promise that will resolve when any one of the items in -`$promisesOrValues` resolves. The resolution value of the returned promise -will be the resolution value of the triggering item. - -The returned promise will only reject if *all* items in `$promisesOrValues` are -rejected. The rejection value will be a `React\Promise\Exception\CompositeException` -which holds all rejection reasons. The rejection reasons can be obtained with -`CompositeException::getThrowables()`. - -The returned promise will also reject with a `React\Promise\Exception\LengthException` -if `$promisesOrValues` contains 0 items. - -#### set_rejection_handler() - -```php -React\Promise\set_rejection_handler(?callable $callback): ?callable; -``` - -Sets the global rejection handler for unhandled promise rejections. - -Note that rejected promises should always be handled similar to how any -exceptions should always be caught in a `try` + `catch` block. If you remove -the last reference to a rejected promise that has not been handled, it will -report an unhandled promise rejection. See also the [`reject()` function](#reject) -for more details. - -The `?callable $callback` argument MUST be a valid callback function that -accepts a single `Throwable` argument or a `null` value to restore the -default promise rejection handler. The return value of the callback function -will be ignored and has no effect, so you SHOULD return a `void` value. The -callback function MUST NOT throw or the program will be terminated with a -fatal error. - -The function returns the previous rejection handler or `null` if using the -default promise rejection handler. - -The default promise rejection handler will log an error message plus its stack -trace: - -```php -// Unhandled promise rejection with RuntimeException: Unhandled in example.php:2 -React\Promise\reject(new RuntimeException('Unhandled')); -``` - -The promise rejection handler may be used to use customize the log message or -write to custom log targets. As a rule of thumb, this function should only be -used as a last resort and promise rejections are best handled with either the -[`then()` method](#promiseinterfacethen), the -[`catch()` method](#promiseinterfacecatch), or the -[`finally()` method](#promiseinterfacefinally). -See also the [`reject()` function](#reject) for more details. - -Examples --------- - -### How to use Deferred - -```php -function getAwesomeResultPromise() -{ - $deferred = new React\Promise\Deferred(); - - // Execute a Node.js-style function using the callback pattern - computeAwesomeResultAsynchronously(function (\Throwable $error, $result) use ($deferred) { - if ($error) { - $deferred->reject($error); - } else { - $deferred->resolve($result); - } - }); - - // Return the promise - return $deferred->promise(); -} - -getAwesomeResultPromise() - ->then( - function ($value) { - // Deferred resolved, do something with $value - }, - function (\Throwable $reason) { - // Deferred rejected, do something with $reason - } - ); -``` - -### How promise forwarding works - -A few simple examples to show how the mechanics of Promises/A forwarding works. -These examples are contrived, of course, and in real usage, promise chains will -typically be spread across several function calls, or even several levels of -your application architecture. - -#### Resolution forwarding - -Resolved promises forward resolution values to the next promise. -The first promise, `$deferred->promise()`, will resolve with the value passed -to `$deferred->resolve()` below. - -Each call to `then()` returns a new promise that will resolve with the return -value of the previous handler. This creates a promise "pipeline". - -```php -$deferred = new React\Promise\Deferred(); - -$deferred->promise() - ->then(function ($x) { - // $x will be the value passed to $deferred->resolve() below - // and returns a *new promise* for $x + 1 - return $x + 1; - }) - ->then(function ($x) { - // $x === 2 - // This handler receives the return value of the - // previous handler. - return $x + 1; - }) - ->then(function ($x) { - // $x === 3 - // This handler receives the return value of the - // previous handler. - return $x + 1; - }) - ->then(function ($x) { - // $x === 4 - // This handler receives the return value of the - // previous handler. - echo 'Resolve ' . $x; - }); - -$deferred->resolve(1); // Prints "Resolve 4" -``` - -#### Rejection forwarding - -Rejected promises behave similarly, and also work similarly to try/catch: -When you catch an exception, you must rethrow for it to propagate. - -Similarly, when you handle a rejected promise, to propagate the rejection, -"rethrow" it by either returning a rejected promise, or actually throwing -(since promise translates thrown exceptions into rejections) - -```php -$deferred = new React\Promise\Deferred(); - -$deferred->promise() - ->then(function ($x) { - throw new \Exception($x + 1); - }) - ->catch(function (\Exception $x) { - // Propagate the rejection - throw $x; - }) - ->catch(function (\Exception $x) { - // Can also propagate by returning another rejection - return React\Promise\reject( - new \Exception($x->getMessage() + 1) - ); - }) - ->catch(function ($x) { - echo 'Reject ' . $x->getMessage(); // 3 - }); - -$deferred->resolve(1); // Prints "Reject 3" -``` - -#### Mixed resolution and rejection forwarding - -Just like try/catch, you can choose to propagate or not. Mixing resolutions and -rejections will still forward handler results in a predictable way. - -```php -$deferred = new React\Promise\Deferred(); - -$deferred->promise() - ->then(function ($x) { - return $x + 1; - }) - ->then(function ($x) { - throw new \Exception($x + 1); - }) - ->catch(function (\Exception $x) { - // Handle the rejection, and don't propagate. - // This is like catch without a rethrow - return $x->getMessage() + 1; - }) - ->then(function ($x) { - echo 'Mixed ' . $x; // 4 - }); - -$deferred->resolve(1); // Prints "Mixed 4" -``` - -Install -------- - -The recommended way to install this library is [through Composer](https://getcomposer.org/). -[New to Composer?](https://getcomposer.org/doc/00-intro.md) - -This project follows [SemVer](https://semver.org/). -This will install the latest supported version from this branch: - -```bash -composer require react/promise:^3.2 -``` - -See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades. - -This project aims to run on any platform and thus does not require any PHP -extensions and supports running on PHP 7.1 through current PHP 8+. -It's *highly recommended to use the latest supported PHP version* for this project. - -We're committed to providing long-term support (LTS) options and to provide a -smooth upgrade path. If you're using an older PHP version, you may use the -[`2.x` branch](https://github.com/reactphp/promise/tree/2.x) (PHP 5.4+) or -[`1.x` branch](https://github.com/reactphp/promise/tree/1.x) (PHP 5.3+) which both -provide a compatible API but do not take advantage of newer language features. -You may target multiple versions at the same time to support a wider range of -PHP versions like this: - -```bash -composer require "react/promise:^3 || ^2 || ^1" -``` - -## Tests - -To run the test suite, you first need to clone this repo and then install all -dependencies [through Composer](https://getcomposer.org/): - -```bash -composer install -``` - -To run the test suite, go to the project root and run: - -```bash -vendor/bin/phpunit -``` - -On top of this, we use PHPStan on max level to ensure type safety across the project: - -```bash -vendor/bin/phpstan -``` - -Credits -------- - -Promise is a port of [when.js](https://github.com/cujojs/when) -by [Brian Cavalier](https://github.com/briancavalier). - -Also, large parts of the documentation have been ported from the when.js -[Wiki](https://github.com/cujojs/when/wiki) and the -[API docs](https://github.com/cujojs/when/blob/master/docs/api.md). - -License -------- - -Released under the [MIT](LICENSE) license. diff --git a/vendor/react/promise/composer.json b/vendor/react/promise/composer.json deleted file mode 100644 index 5d1e277..0000000 --- a/vendor/react/promise/composer.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "name": "react/promise", - "description": "A lightweight implementation of CommonJS Promises/A for PHP", - "license": "MIT", - "authors": [ - { - "name": "Jan Sorgalla", - "homepage": "https://sorgalla.com/", - "email": "jsorgalla@gmail.com" - }, - { - "name": "Christian Lück", - "homepage": "https://clue.engineering/", - "email": "christian@clue.engineering" - }, - { - "name": "Cees-Jan Kiewiet", - "homepage": "https://wyrihaximus.net/", - "email": "reactphp@ceesjankiewiet.nl" - }, - { - "name": "Chris Boden", - "homepage": "https://cboden.dev/", - "email": "cboden@gmail.com" - } - ], - "require": { - "php": ">=7.1.0" - }, - "require-dev": { - "phpstan/phpstan": "1.10.39 || 1.4.10", - "phpunit/phpunit": "^9.6 || ^7.5" - }, - "autoload": { - "psr-4": { - "React\\Promise\\": "src/" - }, - "files": [ - "src/functions_include.php" - ] - }, - "autoload-dev": { - "psr-4": { - "React\\Promise\\": [ - "tests/fixtures/", - "tests/" - ] - }, - "files": [ - "tests/Fiber.php" - ] - }, - "keywords": [ - "promise", - "promises" - ] -} diff --git a/vendor/react/promise/src/Deferred.php b/vendor/react/promise/src/Deferred.php deleted file mode 100644 index 80b8fcf..0000000 --- a/vendor/react/promise/src/Deferred.php +++ /dev/null @@ -1,52 +0,0 @@ - - */ - private $promise; - - /** @var callable(T):void */ - private $resolveCallback; - - /** @var callable(\Throwable):void */ - private $rejectCallback; - - /** - * @param (callable(callable(T):void,callable(\Throwable):void):void)|null $canceller - */ - public function __construct(?callable $canceller = null) - { - $this->promise = new Promise(function ($resolve, $reject): void { - $this->resolveCallback = $resolve; - $this->rejectCallback = $reject; - }, $canceller); - } - - /** - * @return PromiseInterface - */ - public function promise(): PromiseInterface - { - return $this->promise; - } - - /** - * @param T $value - */ - public function resolve($value): void - { - ($this->resolveCallback)($value); - } - - public function reject(\Throwable $reason): void - { - ($this->rejectCallback)($reason); - } -} diff --git a/vendor/react/promise/src/Exception/CompositeException.php b/vendor/react/promise/src/Exception/CompositeException.php deleted file mode 100644 index 2e672a0..0000000 --- a/vendor/react/promise/src/Exception/CompositeException.php +++ /dev/null @@ -1,32 +0,0 @@ -throwables = $throwables; - } - - /** - * @return \Throwable[] - */ - public function getThrowables(): array - { - return $this->throwables; - } -} diff --git a/vendor/react/promise/src/Exception/LengthException.php b/vendor/react/promise/src/Exception/LengthException.php deleted file mode 100644 index 775c48d..0000000 --- a/vendor/react/promise/src/Exception/LengthException.php +++ /dev/null @@ -1,7 +0,0 @@ -started) { - return; - } - - $this->started = true; - $this->drain(); - } - - /** - * @param mixed $cancellable - */ - public function enqueue($cancellable): void - { - if (!\is_object($cancellable) || !\method_exists($cancellable, 'then') || !\method_exists($cancellable, 'cancel')) { - return; - } - - $length = \array_push($this->queue, $cancellable); - - if ($this->started && 1 === $length) { - $this->drain(); - } - } - - private function drain(): void - { - for ($i = \key($this->queue); isset($this->queue[$i]); $i++) { - $cancellable = $this->queue[$i]; - assert(\method_exists($cancellable, 'cancel')); - - $exception = null; - - try { - $cancellable->cancel(); - } catch (\Throwable $exception) { - } - - unset($this->queue[$i]); - - if ($exception) { - throw $exception; - } - } - - $this->queue = []; - } -} diff --git a/vendor/react/promise/src/Internal/FulfilledPromise.php b/vendor/react/promise/src/Internal/FulfilledPromise.php deleted file mode 100644 index 8664ffd..0000000 --- a/vendor/react/promise/src/Internal/FulfilledPromise.php +++ /dev/null @@ -1,89 +0,0 @@ - - */ -final class FulfilledPromise implements PromiseInterface -{ - /** @var T */ - private $value; - - /** - * @param T $value - * @throws \InvalidArgumentException - */ - public function __construct($value = null) - { - if ($value instanceof PromiseInterface) { - throw new \InvalidArgumentException('You cannot create React\Promise\FulfilledPromise with a promise. Use React\Promise\resolve($promiseOrValue) instead.'); - } - - $this->value = $value; - } - - /** - * @template TFulfilled - * @param ?(callable((T is void ? null : T)): (PromiseInterface|TFulfilled)) $onFulfilled - * @return PromiseInterface<($onFulfilled is null ? T : TFulfilled)> - */ - public function then(?callable $onFulfilled = null, ?callable $onRejected = null): PromiseInterface - { - if (null === $onFulfilled) { - return $this; - } - - try { - /** - * @var PromiseInterface|T $result - */ - $result = $onFulfilled($this->value); - return resolve($result); - } catch (\Throwable $exception) { - return new RejectedPromise($exception); - } - } - - public function catch(callable $onRejected): PromiseInterface - { - return $this; - } - - public function finally(callable $onFulfilledOrRejected): PromiseInterface - { - return $this->then(function ($value) use ($onFulfilledOrRejected): PromiseInterface { - return resolve($onFulfilledOrRejected())->then(function () use ($value) { - return $value; - }); - }); - } - - public function cancel(): void - { - } - - /** - * @deprecated 3.0.0 Use `catch()` instead - * @see self::catch() - */ - public function otherwise(callable $onRejected): PromiseInterface - { - return $this->catch($onRejected); - } - - /** - * @deprecated 3.0.0 Use `finally()` instead - * @see self::finally() - */ - public function always(callable $onFulfilledOrRejected): PromiseInterface - { - return $this->finally($onFulfilledOrRejected); - } -} diff --git a/vendor/react/promise/src/Internal/RejectedPromise.php b/vendor/react/promise/src/Internal/RejectedPromise.php deleted file mode 100644 index aa1dff3..0000000 --- a/vendor/react/promise/src/Internal/RejectedPromise.php +++ /dev/null @@ -1,128 +0,0 @@ - - */ -final class RejectedPromise implements PromiseInterface -{ - /** @var \Throwable */ - private $reason; - - /** @var bool */ - private $handled = false; - - /** - * @param \Throwable $reason - */ - public function __construct(\Throwable $reason) - { - $this->reason = $reason; - } - - /** @throws void */ - public function __destruct() - { - if ($this->handled) { - return; - } - - $handler = set_rejection_handler(null); - if ($handler === null) { - $message = 'Unhandled promise rejection with ' . $this->reason; - - \error_log($message); - return; - } - - try { - $handler($this->reason); - } catch (\Throwable $e) { - \preg_match('/^([^:\s]++)(.*+)$/sm', (string) $e, $match); - \assert(isset($match[1], $match[2])); - $message = 'Fatal error: Uncaught ' . $match[1] . ' from unhandled promise rejection handler' . $match[2]; - - \error_log($message); - exit(255); - } - } - - /** - * @template TRejected - * @param ?callable $onFulfilled - * @param ?(callable(\Throwable): (PromiseInterface|TRejected)) $onRejected - * @return PromiseInterface<($onRejected is null ? never : TRejected)> - */ - public function then(?callable $onFulfilled = null, ?callable $onRejected = null): PromiseInterface - { - if (null === $onRejected) { - return $this; - } - - $this->handled = true; - - try { - return resolve($onRejected($this->reason)); - } catch (\Throwable $exception) { - return new RejectedPromise($exception); - } - } - - /** - * @template TThrowable of \Throwable - * @template TRejected - * @param callable(TThrowable): (PromiseInterface|TRejected) $onRejected - * @return PromiseInterface - */ - public function catch(callable $onRejected): PromiseInterface - { - if (!_checkTypehint($onRejected, $this->reason)) { - return $this; - } - - /** - * @var callable(\Throwable):(PromiseInterface|TRejected) $onRejected - */ - return $this->then(null, $onRejected); - } - - public function finally(callable $onFulfilledOrRejected): PromiseInterface - { - return $this->then(null, function (\Throwable $reason) use ($onFulfilledOrRejected): PromiseInterface { - return resolve($onFulfilledOrRejected())->then(function () use ($reason): PromiseInterface { - return new RejectedPromise($reason); - }); - }); - } - - public function cancel(): void - { - $this->handled = true; - } - - /** - * @deprecated 3.0.0 Use `catch()` instead - * @see self::catch() - */ - public function otherwise(callable $onRejected): PromiseInterface - { - return $this->catch($onRejected); - } - - /** - * @deprecated 3.0.0 Use `always()` instead - * @see self::always() - */ - public function always(callable $onFulfilledOrRejected): PromiseInterface - { - return $this->finally($onFulfilledOrRejected); - } -} diff --git a/vendor/react/promise/src/Promise.php b/vendor/react/promise/src/Promise.php deleted file mode 100644 index 4ac2700..0000000 --- a/vendor/react/promise/src/Promise.php +++ /dev/null @@ -1,303 +0,0 @@ - - */ -final class Promise implements PromiseInterface -{ - /** @var (callable(callable(T):void,callable(\Throwable):void):void)|null */ - private $canceller; - - /** @var ?PromiseInterface */ - private $result; - - /** @var list):void> */ - private $handlers = []; - - /** @var int */ - private $requiredCancelRequests = 0; - - /** @var bool */ - private $cancelled = false; - - /** - * @param callable(callable(T):void,callable(\Throwable):void):void $resolver - * @param (callable(callable(T):void,callable(\Throwable):void):void)|null $canceller - */ - public function __construct(callable $resolver, ?callable $canceller = null) - { - $this->canceller = $canceller; - - // Explicitly overwrite arguments with null values before invoking - // resolver function. This ensure that these arguments do not show up - // in the stack trace in PHP 7+ only. - $cb = $resolver; - $resolver = $canceller = null; - $this->call($cb); - } - - public function then(?callable $onFulfilled = null, ?callable $onRejected = null): PromiseInterface - { - if (null !== $this->result) { - return $this->result->then($onFulfilled, $onRejected); - } - - if (null === $this->canceller) { - return new static($this->resolver($onFulfilled, $onRejected)); - } - - // This promise has a canceller, so we create a new child promise which - // has a canceller that invokes the parent canceller if all other - // followers are also cancelled. We keep a reference to this promise - // instance for the static canceller function and clear this to avoid - // keeping a cyclic reference between parent and follower. - $parent = $this; - ++$parent->requiredCancelRequests; - - return new static( - $this->resolver($onFulfilled, $onRejected), - static function () use (&$parent): void { - assert($parent instanceof self); - --$parent->requiredCancelRequests; - - if ($parent->requiredCancelRequests <= 0) { - $parent->cancel(); - } - - $parent = null; - } - ); - } - - /** - * @template TThrowable of \Throwable - * @template TRejected - * @param callable(TThrowable): (PromiseInterface|TRejected) $onRejected - * @return PromiseInterface - */ - public function catch(callable $onRejected): PromiseInterface - { - return $this->then(null, static function (\Throwable $reason) use ($onRejected) { - if (!_checkTypehint($onRejected, $reason)) { - return new RejectedPromise($reason); - } - - /** - * @var callable(\Throwable):(PromiseInterface|TRejected) $onRejected - */ - return $onRejected($reason); - }); - } - - public function finally(callable $onFulfilledOrRejected): PromiseInterface - { - return $this->then(static function ($value) use ($onFulfilledOrRejected): PromiseInterface { - return resolve($onFulfilledOrRejected())->then(function () use ($value) { - return $value; - }); - }, static function (\Throwable $reason) use ($onFulfilledOrRejected): PromiseInterface { - return resolve($onFulfilledOrRejected())->then(function () use ($reason): RejectedPromise { - return new RejectedPromise($reason); - }); - }); - } - - public function cancel(): void - { - $this->cancelled = true; - $canceller = $this->canceller; - $this->canceller = null; - - $parentCanceller = null; - - if (null !== $this->result) { - // Forward cancellation to rejected promise to avoid reporting unhandled rejection - if ($this->result instanceof RejectedPromise) { - $this->result->cancel(); - } - - // Go up the promise chain and reach the top most promise which is - // itself not following another promise - $root = $this->unwrap($this->result); - - // Return if the root promise is already resolved or a - // FulfilledPromise or RejectedPromise - if (!$root instanceof self || null !== $root->result) { - return; - } - - $root->requiredCancelRequests--; - - if ($root->requiredCancelRequests <= 0) { - $parentCanceller = [$root, 'cancel']; - } - } - - if (null !== $canceller) { - $this->call($canceller); - } - - // For BC, we call the parent canceller after our own canceller - if ($parentCanceller) { - $parentCanceller(); - } - } - - /** - * @deprecated 3.0.0 Use `catch()` instead - * @see self::catch() - */ - public function otherwise(callable $onRejected): PromiseInterface - { - return $this->catch($onRejected); - } - - /** - * @deprecated 3.0.0 Use `finally()` instead - * @see self::finally() - */ - public function always(callable $onFulfilledOrRejected): PromiseInterface - { - return $this->finally($onFulfilledOrRejected); - } - - private function resolver(?callable $onFulfilled = null, ?callable $onRejected = null): callable - { - return function (callable $resolve, callable $reject) use ($onFulfilled, $onRejected): void { - $this->handlers[] = static function (PromiseInterface $promise) use ($onFulfilled, $onRejected, $resolve, $reject): void { - $promise = $promise->then($onFulfilled, $onRejected); - - if ($promise instanceof self && $promise->result === null) { - $promise->handlers[] = static function (PromiseInterface $promise) use ($resolve, $reject): void { - $promise->then($resolve, $reject); - }; - } else { - $promise->then($resolve, $reject); - } - }; - }; - } - - private function reject(\Throwable $reason): void - { - if (null !== $this->result) { - return; - } - - $this->settle(reject($reason)); - } - - /** - * @param PromiseInterface $result - */ - private function settle(PromiseInterface $result): void - { - $result = $this->unwrap($result); - - if ($result === $this) { - $result = new RejectedPromise( - new \LogicException('Cannot resolve a promise with itself.') - ); - } - - if ($result instanceof self) { - $result->requiredCancelRequests++; - } else { - // Unset canceller only when not following a pending promise - $this->canceller = null; - } - - $handlers = $this->handlers; - - $this->handlers = []; - $this->result = $result; - - foreach ($handlers as $handler) { - $handler($result); - } - - // Forward cancellation to rejected promise to avoid reporting unhandled rejection - if ($this->cancelled && $result instanceof RejectedPromise) { - $result->cancel(); - } - } - - /** - * @param PromiseInterface $promise - * @return PromiseInterface - */ - private function unwrap(PromiseInterface $promise): PromiseInterface - { - while ($promise instanceof self && null !== $promise->result) { - /** @var PromiseInterface $promise */ - $promise = $promise->result; - } - - return $promise; - } - - /** - * @param callable(callable(mixed):void,callable(\Throwable):void):void $cb - */ - private function call(callable $cb): void - { - // Explicitly overwrite argument with null value. This ensure that this - // argument does not show up in the stack trace in PHP 7+ only. - $callback = $cb; - $cb = null; - - // Use reflection to inspect number of arguments expected by this callback. - // We did some careful benchmarking here: Using reflection to avoid unneeded - // function arguments is actually faster than blindly passing them. - // Also, this helps avoiding unnecessary function arguments in the call stack - // if the callback creates an Exception (creating garbage cycles). - if (\is_array($callback)) { - $ref = new \ReflectionMethod($callback[0], $callback[1]); - } elseif (\is_object($callback) && !$callback instanceof \Closure) { - $ref = new \ReflectionMethod($callback, '__invoke'); - } else { - assert($callback instanceof \Closure || \is_string($callback)); - $ref = new \ReflectionFunction($callback); - } - $args = $ref->getNumberOfParameters(); - - try { - if ($args === 0) { - $callback(); - } else { - // Keep references to this promise instance for the static resolve/reject functions. - // By using static callbacks that are not bound to this instance - // and passing the target promise instance by reference, we can - // still execute its resolving logic and still clear this - // reference when settling the promise. This helps avoiding - // garbage cycles if any callback creates an Exception. - // These assumptions are covered by the test suite, so if you ever feel like - // refactoring this, go ahead, any alternative suggestions are welcome! - $target =& $this; - - $callback( - static function ($value) use (&$target): void { - if ($target !== null) { - $target->settle(resolve($value)); - $target = null; - } - }, - static function (\Throwable $reason) use (&$target): void { - if ($target !== null) { - $target->reject($reason); - $target = null; - } - } - ); - } - } catch (\Throwable $e) { - $target = null; - $this->reject($e); - } - } -} diff --git a/vendor/react/promise/src/PromiseInterface.php b/vendor/react/promise/src/PromiseInterface.php deleted file mode 100644 index 5869f76..0000000 --- a/vendor/react/promise/src/PromiseInterface.php +++ /dev/null @@ -1,152 +0,0 @@ -|TFulfilled)) $onFulfilled - * @param ?(callable(\Throwable): (PromiseInterface|TRejected)) $onRejected - * @return PromiseInterface<($onRejected is null ? ($onFulfilled is null ? T : TFulfilled) : ($onFulfilled is null ? T|TRejected : TFulfilled|TRejected))> - */ - public function then(?callable $onFulfilled = null, ?callable $onRejected = null): PromiseInterface; - - /** - * Registers a rejection handler for promise. It is a shortcut for: - * - * ```php - * $promise->then(null, $onRejected); - * ``` - * - * Additionally, you can type hint the `$reason` argument of `$onRejected` to catch - * only specific errors. - * - * @template TThrowable of \Throwable - * @template TRejected - * @param callable(TThrowable): (PromiseInterface|TRejected) $onRejected - * @return PromiseInterface - */ - public function catch(callable $onRejected): PromiseInterface; - - /** - * Allows you to execute "cleanup" type tasks in a promise chain. - * - * It arranges for `$onFulfilledOrRejected` to be called, with no arguments, - * when the promise is either fulfilled or rejected. - * - * * If `$promise` fulfills, and `$onFulfilledOrRejected` returns successfully, - * `$newPromise` will fulfill with the same value as `$promise`. - * * If `$promise` fulfills, and `$onFulfilledOrRejected` throws or returns a - * rejected promise, `$newPromise` will reject with the thrown exception or - * rejected promise's reason. - * * If `$promise` rejects, and `$onFulfilledOrRejected` returns successfully, - * `$newPromise` will reject with the same reason as `$promise`. - * * If `$promise` rejects, and `$onFulfilledOrRejected` throws or returns a - * rejected promise, `$newPromise` will reject with the thrown exception or - * rejected promise's reason. - * - * `finally()` behaves similarly to the synchronous finally statement. When combined - * with `catch()`, `finally()` allows you to write code that is similar to the familiar - * synchronous catch/finally pair. - * - * Consider the following synchronous code: - * - * ```php - * try { - * return doSomething(); - * } catch(\Exception $e) { - * return handleError($e); - * } finally { - * cleanup(); - * } - * ``` - * - * Similar asynchronous code (with `doSomething()` that returns a promise) can be - * written: - * - * ```php - * return doSomething() - * ->catch('handleError') - * ->finally('cleanup'); - * ``` - * - * @param callable(): (void|PromiseInterface) $onFulfilledOrRejected - * @return PromiseInterface - */ - public function finally(callable $onFulfilledOrRejected): PromiseInterface; - - /** - * The `cancel()` method notifies the creator of the promise that there is no - * further interest in the results of the operation. - * - * Once a promise is settled (either fulfilled or rejected), calling `cancel()` on - * a promise has no effect. - * - * @return void - */ - public function cancel(): void; - - /** - * [Deprecated] Registers a rejection handler for a promise. - * - * This method continues to exist only for BC reasons and to ease upgrading - * between versions. It is an alias for: - * - * ```php - * $promise->catch($onRejected); - * ``` - * - * @template TThrowable of \Throwable - * @template TRejected - * @param callable(TThrowable): (PromiseInterface|TRejected) $onRejected - * @return PromiseInterface - * @deprecated 3.0.0 Use catch() instead - * @see self::catch() - */ - public function otherwise(callable $onRejected): PromiseInterface; - - /** - * [Deprecated] Allows you to execute "cleanup" type tasks in a promise chain. - * - * This method continues to exist only for BC reasons and to ease upgrading - * between versions. It is an alias for: - * - * ```php - * $promise->finally($onFulfilledOrRejected); - * ``` - * - * @param callable(): (void|PromiseInterface) $onFulfilledOrRejected - * @return PromiseInterface - * @deprecated 3.0.0 Use finally() instead - * @see self::finally() - */ - public function always(callable $onFulfilledOrRejected): PromiseInterface; -} diff --git a/vendor/react/promise/src/functions.php b/vendor/react/promise/src/functions.php deleted file mode 100644 index 2aab877..0000000 --- a/vendor/react/promise/src/functions.php +++ /dev/null @@ -1,345 +0,0 @@ -|T $promiseOrValue - * @return PromiseInterface - */ -function resolve($promiseOrValue): PromiseInterface -{ - if ($promiseOrValue instanceof PromiseInterface) { - return $promiseOrValue; - } - - if (\is_object($promiseOrValue) && \method_exists($promiseOrValue, 'then')) { - $canceller = null; - - if (\method_exists($promiseOrValue, 'cancel')) { - $canceller = [$promiseOrValue, 'cancel']; - assert(\is_callable($canceller)); - } - - /** @var Promise */ - return new Promise(function (callable $resolve, callable $reject) use ($promiseOrValue): void { - $promiseOrValue->then($resolve, $reject); - }, $canceller); - } - - return new FulfilledPromise($promiseOrValue); -} - -/** - * Creates a rejected promise for the supplied `$reason`. - * - * If `$reason` is a value, it will be the rejection value of the - * returned promise. - * - * If `$reason` is a promise, its completion value will be the rejected - * value of the returned promise. - * - * This can be useful in situations where you need to reject a promise without - * throwing an exception. For example, it allows you to propagate a rejection with - * the value of another promise. - * - * @return PromiseInterface - */ -function reject(\Throwable $reason): PromiseInterface -{ - return new RejectedPromise($reason); -} - -/** - * Returns a promise that will resolve only once all the items in - * `$promisesOrValues` have resolved. The resolution value of the returned promise - * will be an array containing the resolution values of each of the items in - * `$promisesOrValues`. - * - * @template T - * @param iterable|T> $promisesOrValues - * @return PromiseInterface> - */ -function all(iterable $promisesOrValues): PromiseInterface -{ - $cancellationQueue = new Internal\CancellationQueue(); - - /** @var Promise> */ - return new Promise(function (callable $resolve, callable $reject) use ($promisesOrValues, $cancellationQueue): void { - $toResolve = 0; - /** @var bool */ - $continue = true; - $values = []; - - foreach ($promisesOrValues as $i => $promiseOrValue) { - $cancellationQueue->enqueue($promiseOrValue); - $values[$i] = null; - ++$toResolve; - - resolve($promiseOrValue)->then( - function ($value) use ($i, &$values, &$toResolve, &$continue, $resolve): void { - $values[$i] = $value; - - if (0 === --$toResolve && !$continue) { - $resolve($values); - } - }, - function (\Throwable $reason) use (&$continue, $reject): void { - $continue = false; - $reject($reason); - } - ); - - if (!$continue && !\is_array($promisesOrValues)) { - break; - } - } - - $continue = false; - if ($toResolve === 0) { - $resolve($values); - } - }, $cancellationQueue); -} - -/** - * Initiates a competitive race that allows one winner. Returns a promise which is - * resolved in the same way the first settled promise resolves. - * - * The returned promise will become **infinitely pending** if `$promisesOrValues` - * contains 0 items. - * - * @template T - * @param iterable|T> $promisesOrValues - * @return PromiseInterface - */ -function race(iterable $promisesOrValues): PromiseInterface -{ - $cancellationQueue = new Internal\CancellationQueue(); - - /** @var Promise */ - return new Promise(function (callable $resolve, callable $reject) use ($promisesOrValues, $cancellationQueue): void { - $continue = true; - - foreach ($promisesOrValues as $promiseOrValue) { - $cancellationQueue->enqueue($promiseOrValue); - - resolve($promiseOrValue)->then($resolve, $reject)->finally(function () use (&$continue): void { - $continue = false; - }); - - if (!$continue && !\is_array($promisesOrValues)) { - break; - } - } - }, $cancellationQueue); -} - -/** - * Returns a promise that will resolve when any one of the items in - * `$promisesOrValues` resolves. The resolution value of the returned promise - * will be the resolution value of the triggering item. - * - * The returned promise will only reject if *all* items in `$promisesOrValues` are - * rejected. The rejection value will be an array of all rejection reasons. - * - * The returned promise will also reject with a `React\Promise\Exception\LengthException` - * if `$promisesOrValues` contains 0 items. - * - * @template T - * @param iterable|T> $promisesOrValues - * @return PromiseInterface - */ -function any(iterable $promisesOrValues): PromiseInterface -{ - $cancellationQueue = new Internal\CancellationQueue(); - - /** @var Promise */ - return new Promise(function (callable $resolve, callable $reject) use ($promisesOrValues, $cancellationQueue): void { - $toReject = 0; - $continue = true; - $reasons = []; - - foreach ($promisesOrValues as $i => $promiseOrValue) { - $cancellationQueue->enqueue($promiseOrValue); - ++$toReject; - - resolve($promiseOrValue)->then( - function ($value) use ($resolve, &$continue): void { - $continue = false; - $resolve($value); - }, - function (\Throwable $reason) use ($i, &$reasons, &$toReject, $reject, &$continue): void { - $reasons[$i] = $reason; - - if (0 === --$toReject && !$continue) { - $reject(new CompositeException( - $reasons, - 'All promises rejected.' - )); - } - } - ); - - if (!$continue && !\is_array($promisesOrValues)) { - break; - } - } - - $continue = false; - if ($toReject === 0 && !$reasons) { - $reject(new Exception\LengthException( - 'Must contain at least 1 item but contains only 0 items.' - )); - } elseif ($toReject === 0) { - $reject(new CompositeException( - $reasons, - 'All promises rejected.' - )); - } - }, $cancellationQueue); -} - -/** - * Sets the global rejection handler for unhandled promise rejections. - * - * Note that rejected promises should always be handled similar to how any - * exceptions should always be caught in a `try` + `catch` block. If you remove - * the last reference to a rejected promise that has not been handled, it will - * report an unhandled promise rejection. See also the [`reject()` function](#reject) - * for more details. - * - * The `?callable $callback` argument MUST be a valid callback function that - * accepts a single `Throwable` argument or a `null` value to restore the - * default promise rejection handler. The return value of the callback function - * will be ignored and has no effect, so you SHOULD return a `void` value. The - * callback function MUST NOT throw or the program will be terminated with a - * fatal error. - * - * The function returns the previous rejection handler or `null` if using the - * default promise rejection handler. - * - * The default promise rejection handler will log an error message plus its - * stack trace: - * - * ```php - * // Unhandled promise rejection with RuntimeException: Unhandled in example.php:2 - * React\Promise\reject(new RuntimeException('Unhandled')); - * ``` - * - * The promise rejection handler may be used to use customize the log message or - * write to custom log targets. As a rule of thumb, this function should only be - * used as a last resort and promise rejections are best handled with either the - * [`then()` method](#promiseinterfacethen), the - * [`catch()` method](#promiseinterfacecatch), or the - * [`finally()` method](#promiseinterfacefinally). - * See also the [`reject()` function](#reject) for more details. - * - * @param callable(\Throwable):void|null $callback - * @return callable(\Throwable):void|null - */ -function set_rejection_handler(?callable $callback): ?callable -{ - static $current = null; - $previous = $current; - $current = $callback; - - return $previous; -} - -/** - * @internal - */ -function _checkTypehint(callable $callback, \Throwable $reason): bool -{ - if (\is_array($callback)) { - $callbackReflection = new \ReflectionMethod($callback[0], $callback[1]); - } elseif (\is_object($callback) && !$callback instanceof \Closure) { - $callbackReflection = new \ReflectionMethod($callback, '__invoke'); - } else { - assert($callback instanceof \Closure || \is_string($callback)); - $callbackReflection = new \ReflectionFunction($callback); - } - - $parameters = $callbackReflection->getParameters(); - - if (!isset($parameters[0])) { - return true; - } - - $expectedException = $parameters[0]; - - // Extract the type of the argument and handle different possibilities - $type = $expectedException->getType(); - - $isTypeUnion = true; - $types = []; - - switch (true) { - case $type === null: - break; - case $type instanceof \ReflectionNamedType: - $types = [$type]; - break; - case $type instanceof \ReflectionIntersectionType: - $isTypeUnion = false; - case $type instanceof \ReflectionUnionType; - $types = $type->getTypes(); - break; - default: - throw new \LogicException('Unexpected return value of ReflectionParameter::getType'); - } - - // If there is no type restriction, it matches - if (empty($types)) { - return true; - } - - foreach ($types as $type) { - - if ($type instanceof \ReflectionIntersectionType) { - foreach ($type->getTypes() as $typeToMatch) { - assert($typeToMatch instanceof \ReflectionNamedType); - $name = $typeToMatch->getName(); - if (!($matches = (!$typeToMatch->isBuiltin() && $reason instanceof $name))) { - break; - } - } - assert(isset($matches)); - } else { - assert($type instanceof \ReflectionNamedType); - $name = $type->getName(); - $matches = !$type->isBuiltin() && $reason instanceof $name; - } - - // If we look for a single match (union), we can return early on match - // If we look for a full match (intersection), we can return early on mismatch - if ($matches) { - if ($isTypeUnion) { - return true; - } - } else { - if (!$isTypeUnion) { - return false; - } - } - } - - // If we look for a single match (union) and did not return early, we matched no type and are false - // If we look for a full match (intersection) and did not return early, we matched all types and are true - return $isTypeUnion ? false : true; -} diff --git a/vendor/react/promise/src/functions_include.php b/vendor/react/promise/src/functions_include.php deleted file mode 100644 index bd0c54f..0000000 --- a/vendor/react/promise/src/functions_include.php +++ /dev/null @@ -1,5 +0,0 @@ -connect($uri)->then(function (React\Socket\ConnectionInterface $conn) { - // … - }, function (Exception $e) { - echo 'Error:' . $e->getMessage() . PHP_EOL; - }); - ``` - -* Improve test suite, test against PHP 8.1 release. - (#274 by @SimonFrings) - -## 1.9.0 (2021-08-03) - -* Feature: Add new `SocketServer` and deprecate `Server` to avoid class name collisions. - (#263 by @clue) - - The new `SocketServer` class has been added with an improved constructor signature - as a replacement for the previous `Server` class in order to avoid any ambiguities. - The previous name has been deprecated and should not be used anymore. - In its most basic form, the deprecated `Server` can now be considered an alias for new `SocketServer`. - - ```php - // deprecated - $socket = new React\Socket\Server(0); - $socket = new React\Socket\Server('127.0.0.1:8000'); - $socket = new React\Socket\Server('127.0.0.1:8000', null, $context); - $socket = new React\Socket\Server('127.0.0.1:8000', $loop, $context); - - // new - $socket = new React\Socket\SocketServer('127.0.0.1:0'); - $socket = new React\Socket\SocketServer('127.0.0.1:8000'); - $socket = new React\Socket\SocketServer('127.0.0.1:8000', $context); - $socket = new React\Socket\SocketServer('127.0.0.1:8000', $context, $loop); - ``` - -* Feature: Update `Connector` signature to take optional `$context` as first argument. - (#264 by @clue) - - The new signature has been added to match the new `SocketServer` and - consistently move the now commonly unneeded loop argument to the last argument. - The previous signature has been deprecated and should not be used anymore. - In its most basic form, both signatures are compatible. - - ```php - // deprecated - $connector = new React\Socket\Connector(null, $context); - $connector = new React\Socket\Connector($loop, $context); - - // new - $connector = new React\Socket\Connector($context); - $connector = new React\Socket\Connector($context, $loop); - ``` - -## 1.8.0 (2021-07-11) - -A major new feature release, see [**release announcement**](https://clue.engineering/2021/announcing-reactphp-default-loop). - -* Feature: Simplify usage by supporting new [default loop](https://reactphp.org/event-loop/#loop). - (#260 by @clue) - - ```php - // old (still supported) - $socket = new React\Socket\Server('127.0.0.1:8080', $loop); - $connector = new React\Socket\Connector($loop); - - // new (using default loop) - $socket = new React\Socket\Server('127.0.0.1:8080'); - $connector = new React\Socket\Connector(); - ``` - -## 1.7.0 (2021-06-25) - -* Feature: Support falling back to multiple DNS servers from DNS config. - (#257 by @clue) - - If you're using the default `Connector`, it will now use all DNS servers - configured on your system. If you have multiple DNS servers configured and - connectivity to the primary DNS server is broken, it will now fall back to - your other DNS servers, thus providing improved connectivity and redundancy - for broken DNS configurations. - -* Feature: Use round robin for happy eyeballs DNS responses (load balancing). - (#247 by @clue) - - If you're using the default `Connector`, it will now randomize the order of - the IP addresses resolved via DNS when connecting. This allows the load to - be distributed more evenly across all returned IP addresses. This can be - used as a very basic DNS load balancing mechanism. - -* Internal improvement to avoid unhandled rejection for future Promise API. - (#258 by @clue) - -* Improve test suite, use GitHub actions for continuous integration (CI). - (#254 by @SimonFrings) - -## 1.6.0 (2020-08-28) - -* Feature: Support upcoming PHP 8 release. - (#246 by @clue) - -* Feature: Change default socket backlog size to 511. - (#242 by @clue) - -* Fix: Fix closing connection when cancelling during TLS handshake. - (#241 by @clue) - -* Fix: Fix blocking during possible `accept()` race condition - when multiple socket servers listen on same socket address. - (#244 by @clue) - -* Improve test suite, update PHPUnit config and add full core team to the license. - (#243 by @SimonFrings and #245 by @WyriHaximus) - -## 1.5.0 (2020-07-01) - -* Feature / Fix: Improve error handling and reporting for happy eyeballs and - immediately try next connection when one connection attempt fails. - (#230, #231, #232 and #233 by @clue) - - Error messages for failed connection attempts now include more details to - ease debugging. Additionally, the happy eyeballs algorithm has been improved - to avoid having to wait for some timers to expire which significantly - improves connection setup times (in particular when IPv6 isn't available). - -* Improve test suite, minor code cleanup and improve code coverage to 100%. - Update to PHPUnit 9 and skip legacy TLS 1.0 / TLS 1.1 tests if disabled by - system. Run tests on Windows and simplify Travis CI test matrix for Mac OS X - setup and skip all TLS tests on legacy HHVM. - (#229, #235, #236 and #238 by @clue and #239 by @SimonFrings) - -## 1.4.0 (2020-03-12) - -A major new feature release, see [**release announcement**](https://clue.engineering/2020/introducing-ipv6-for-reactphp). - -* Feature: Add IPv6 support to `Connector` (implement "Happy Eyeballs" algorithm to support IPv6 probing). - IPv6 support is turned on by default, use new `happy_eyeballs` option in `Connector` to toggle behavior. - (#196, #224 and #225 by @WyriHaximus and @clue) - -* Feature: Default to using DNS cache (with max 256 entries) for `Connector`. - (#226 by @clue) - -* Add `.gitattributes` to exclude dev files from exports and some minor code style fixes. - (#219 by @reedy and #218 by @mmoreram) - -* Improve test suite to fix failing test cases when using new DNS component, - significantly improve test performance by awaiting events instead of sleeping, - exclude TLS 1.3 test on PHP 7.3, run tests on PHP 7.4 and simplify test matrix. - (#208, #209, #210, #217 and #223 by @clue) - -## 1.3.0 (2019-07-10) - -* Feature: Forward compatibility with upcoming stable DNS component. - (#206 by @clue) - -## 1.2.1 (2019-06-03) - -* Avoid uneeded fragmented TLS work around for PHP 7.3.3+ and - work around failing test case detecting EOF on TLS 1.3 socket streams. - (#201 and #202 by @clue) - -* Improve TLS certificate/passphrase example. - (#190 by @jsor) - -## 1.2.0 (2019-01-07) - -* Feature / Fix: Improve TLS 1.3 support. - (#186 by @clue) - - TLS 1.3 is now an official standard as of August 2018! :tada: - The protocol has major improvements in the areas of security, performance, and privacy. - TLS 1.3 is supported by default as of [OpenSSL 1.1.1](https://www.openssl.org/blog/blog/2018/09/11/release111/). - For example, this version ships with Ubuntu 18.10 (and newer) by default, meaning that recent installations support TLS 1.3 out of the box :shipit: - -* Fix: Avoid possibility of missing remote address when TLS handshake fails. - (#188 by @clue) - -* Improve performance by prefixing all global functions calls with `\` to skip the look up and resolve process and go straight to the global function. - (#183 by @WyriHaximus) - -* Update documentation to use full class names with namespaces. - (#187 by @clue) - -* Improve test suite to avoid some possible race conditions, - test against PHP 7.3 on Travis and - use dedicated `assertInstanceOf()` assertions. - (#185 by @clue, #178 by @WyriHaximus and #181 by @carusogabriel) - -## 1.1.0 (2018-10-01) - -* Feature: Improve error reporting for failed connection attempts and improve - cancellation forwarding during DNS lookup, TCP/IP connection or TLS handshake. - (#168, #169, #170, #171, #176 and #177 by @clue) - - All error messages now always contain a reference to the remote URI to give - more details which connection actually failed and the reason for this error. - Accordingly, failures during DNS lookup will now mention both the remote URI - as well as the DNS error reason. TCP/IP connection issues and errors during - a secure TLS handshake will both mention the remote URI as well as the - underlying socket error. Similarly, lost/dropped connections during a TLS - handshake will now report a lost connection instead of an empty error reason. - - For most common use cases this means that simply reporting the `Exception` - message should give the most relevant details for any connection issues: - - ```php - $promise = $connector->connect('tls://example.com:443'); - $promise->then(function (ConnectionInterface $conn) use ($loop) { - // … - }, function (Exception $e) { - echo $e->getMessage(); - }); - ``` - -## 1.0.0 (2018-07-11) - -* First stable LTS release, now following [SemVer](https://semver.org/). - We'd like to emphasize that this component is production ready and battle-tested. - We plan to support all long-term support (LTS) releases for at least 24 months, - so you have a rock-solid foundation to build on top of. - -> Contains no other changes, so it's actually fully compatible with the v0.8.12 release. - -## 0.8.12 (2018-06-11) - -* Feature: Improve memory consumption for failed and cancelled connection attempts. - (#161 by @clue) - -* Improve test suite to fix Travis config to test against legacy PHP 5.3 again. - (#162 by @clue) - -## 0.8.11 (2018-04-24) - -* Feature: Improve memory consumption for cancelled connection attempts and - simplify skipping DNS lookup when connecting to IP addresses. - (#159 and #160 by @clue) - -## 0.8.10 (2018-02-28) - -* Feature: Update DNS dependency to support loading system default DNS - nameserver config on all supported platforms - (`/etc/resolv.conf` on Unix/Linux/Mac/Docker/WSL and WMIC on Windows) - (#152 by @clue) - - This means that connecting to hosts that are managed by a local DNS server, - such as a corporate DNS server or when using Docker containers, will now - work as expected across all platforms with no changes required: - - ```php - $connector = new Connector($loop); - $connector->connect('intranet.example:80')->then(function ($connection) { - // … - }); - ``` - -## 0.8.9 (2018-01-18) - -* Feature: Support explicitly choosing TLS version to negotiate with remote side - by respecting `crypto_method` context parameter for all classes. - (#149 by @clue) - - By default, all connector and server classes support TLSv1.0+ and exclude - support for legacy SSLv2/SSLv3. As of PHP 5.6+ you can also explicitly - choose the TLS version you want to negotiate with the remote side: - - ```php - // new: now supports 'crypto_method` context parameter for all classes - $connector = new Connector($loop, array( - 'tls' => array( - 'crypto_method' => STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT - ) - )); - ``` - -* Minor internal clean up to unify class imports - (#148 by @clue) - -## 0.8.8 (2018-01-06) - -* Improve test suite by adding test group to skip integration tests relying on - internet connection and fix minor documentation typo. - (#146 by @clue and #145 by @cn007b) - -## 0.8.7 (2017-12-24) - -* Fix: Fix closing socket resource before removing from loop - (#141 by @clue) - - This fixes the root cause of an uncaught `Exception` that only manifested - itself after the recent Stream v0.7.4 component update and only if you're - using `ext-event` (`ExtEventLoop`). - -* Improve test suite by testing against PHP 7.2 - (#140 by @carusogabriel) - -## 0.8.6 (2017-11-18) - -* Feature: Add Unix domain socket (UDS) support to `Server` with `unix://` URI scheme - and add advanced `UnixServer` class. - (#120 by @andig) - - ```php - // new: Server now supports "unix://" scheme - $server = new Server('unix:///tmp/server.sock', $loop); - - // new: advanced usage - $server = new UnixServer('/tmp/server.sock', $loop); - ``` - -* Restructure examples to ease getting started - (#136 by @clue) - -* Improve test suite by adding forward compatibility with PHPUnit 6 and - ignore Mac OS X test failures for now until Travis tests work again - (#133 by @gabriel-caruso and #134 by @clue) - -## 0.8.5 (2017-10-23) - -* Fix: Work around PHP bug with Unix domain socket (UDS) paths for Mac OS X - (#123 by @andig) - -* Fix: Fix `SecureServer` to return `null` URI if server socket is already closed - (#129 by @clue) - -* Improve test suite by adding forward compatibility with PHPUnit v5 and - forward compatibility with upcoming EventLoop releases in tests and - test Mac OS X on Travis - (#122 by @andig and #125, #127 and #130 by @clue) - -* Readme improvements - (#118 by @jsor) - -## 0.8.4 (2017-09-16) - -* Feature: Add `FixedUriConnector` decorator to use fixed, preconfigured URI instead - (#117 by @clue) - - This can be useful for consumers that do not support certain URIs, such as - when you want to explicitly connect to a Unix domain socket (UDS) path - instead of connecting to a default address assumed by an higher-level API: - - ```php - $connector = new FixedUriConnector( - 'unix:///var/run/docker.sock', - new UnixConnector($loop) - ); - - // destination will be ignored, actually connects to Unix domain socket - $promise = $connector->connect('localhost:80'); - ``` - -## 0.8.3 (2017-09-08) - -* Feature: Reduce memory consumption for failed connections - (#113 by @valga) - -* Fix: Work around write chunk size for TLS streams for PHP < 7.1.14 - (#114 by @clue) - -## 0.8.2 (2017-08-25) - -* Feature: Update DNS dependency to support hosts file on all platforms - (#112 by @clue) - - This means that connecting to hosts such as `localhost` will now work as - expected across all platforms with no changes required: - - ```php - $connector = new Connector($loop); - $connector->connect('localhost:8080')->then(function ($connection) { - // … - }); - ``` - -## 0.8.1 (2017-08-15) - -* Feature: Forward compatibility with upcoming EventLoop v1.0 and v0.5 and - target evenement 3.0 a long side 2.0 and 1.0 - (#104 by @clue and #111 by @WyriHaximus) - -* Improve test suite by locking Travis distro so new defaults will not break the build and - fix HHVM build for now again and ignore future HHVM build errors - (#109 and #110 by @clue) - -* Minor documentation fixes - (#103 by @christiaan and #108 by @hansott) - -## 0.8.0 (2017-05-09) - -* Feature: New `Server` class now acts as a facade for existing server classes - and renamed old `Server` to `TcpServer` for advanced usage. - (#96 and #97 by @clue) - - The `Server` class is now the main class in this package that implements the - `ServerInterface` and allows you to accept incoming streaming connections, - such as plaintext TCP/IP or secure TLS connection streams. - - > This is not a BC break and consumer code does not have to be updated. - -* Feature / BC break: All addresses are now URIs that include the URI scheme - (#98 by @clue) - - ```diff - - $parts = parse_url('tcp://' . $conn->getRemoteAddress()); - + $parts = parse_url($conn->getRemoteAddress()); - ``` - -* Fix: Fix `unix://` addresses for Unix domain socket (UDS) paths - (#100 by @clue) - -* Feature: Forward compatibility with Stream v1.0 and v0.7 - (#99 by @clue) - -## 0.7.2 (2017-04-24) - -* Fix: Work around latest PHP 7.0.18 and 7.1.4 no longer accepting full URIs - (#94 by @clue) - -## 0.7.1 (2017-04-10) - -* Fix: Ignore HHVM errors when closing connection that is already closing - (#91 by @clue) - -## 0.7.0 (2017-04-10) - -* Feature: Merge SocketClient component into this component - (#87 by @clue) - - This means that this package now provides async, streaming plaintext TCP/IP - and secure TLS socket server and client connections for ReactPHP. - - ``` - $connector = new React\Socket\Connector($loop); - $connector->connect('google.com:80')->then(function (ConnectionInterface $conn) { - $connection->write('…'); - }); - ``` - - Accordingly, the `ConnectionInterface` is now used to represent both incoming - server side connections as well as outgoing client side connections. - - If you've previously used the SocketClient component to establish outgoing - client connections, upgrading should take no longer than a few minutes. - All classes have been merged as-is from the latest `v0.7.0` release with no - other changes, so you can simply update your code to use the updated namespace - like this: - - ```php - // old from SocketClient component and namespace - $connector = new React\SocketClient\Connector($loop); - $connector->connect('google.com:80')->then(function (ConnectionInterface $conn) { - $connection->write('…'); - }); - - // new - $connector = new React\Socket\Connector($loop); - $connector->connect('google.com:80')->then(function (ConnectionInterface $conn) { - $connection->write('…'); - }); - ``` - -## 0.6.0 (2017-04-04) - -* Feature: Add `LimitingServer` to limit and keep track of open connections - (#86 by @clue) - - ```php - $server = new Server(0, $loop); - $server = new LimitingServer($server, 100); - - $server->on('connection', function (ConnectionInterface $connection) { - $connection->write('hello there!' . PHP_EOL); - … - }); - ``` - -* Feature / BC break: Add `pause()` and `resume()` methods to limit active - connections - (#84 by @clue) - - ```php - $server = new Server(0, $loop); - $server->pause(); - - $loop->addTimer(1.0, function() use ($server) { - $server->resume(); - }); - ``` - -## 0.5.1 (2017-03-09) - -* Feature: Forward compatibility with Stream v0.5 and upcoming v0.6 - (#79 by @clue) - -## 0.5.0 (2017-02-14) - -* Feature / BC break: Replace `listen()` call with URIs passed to constructor - and reject listening on hostnames with `InvalidArgumentException` - and replace `ConnectionException` with `RuntimeException` for consistency - (#61, #66 and #72 by @clue) - - ```php - // old - $server = new Server($loop); - $server->listen(8080); - - // new - $server = new Server(8080, $loop); - ``` - - Similarly, you can now pass a full listening URI to the constructor to change - the listening host: - - ```php - // old - $server = new Server($loop); - $server->listen(8080, '127.0.0.1'); - - // new - $server = new Server('127.0.0.1:8080', $loop); - ``` - - Trying to start listening on (DNS) host names will now throw an - `InvalidArgumentException`, use IP addresses instead: - - ```php - // old - $server = new Server($loop); - $server->listen(8080, 'localhost'); - - // new - $server = new Server('127.0.0.1:8080', $loop); - ``` - - If trying to listen fails (such as if port is already in use or port below - 1024 may require root access etc.), it will now throw a `RuntimeException`, - the `ConnectionException` class has been removed: - - ```php - // old: throws React\Socket\ConnectionException - $server = new Server($loop); - $server->listen(80); - - // new: throws RuntimeException - $server = new Server(80, $loop); - ``` - -* Feature / BC break: Rename `shutdown()` to `close()` for consistency throughout React - (#62 by @clue) - - ```php - // old - $server->shutdown(); - - // new - $server->close(); - ``` - -* Feature / BC break: Replace `getPort()` with `getAddress()` - (#67 by @clue) - - ```php - // old - echo $server->getPort(); // 8080 - - // new - echo $server->getAddress(); // 127.0.0.1:8080 - ``` - -* Feature / BC break: `getRemoteAddress()` returns full address instead of only IP - (#65 by @clue) - - ```php - // old - echo $connection->getRemoteAddress(); // 192.168.0.1 - - // new - echo $connection->getRemoteAddress(); // 192.168.0.1:51743 - ``` - -* Feature / BC break: Add `getLocalAddress()` method - (#68 by @clue) - - ```php - echo $connection->getLocalAddress(); // 127.0.0.1:8080 - ``` - -* BC break: The `Server` and `SecureServer` class are now marked `final` - and you can no longer `extend` them - (which was never documented or recommended anyway). - Public properties and event handlers are now internal only. - Please use composition instead of extension. - (#71, #70 and #69 by @clue) - -## 0.4.6 (2017-01-26) - -* Feature: Support socket context options passed to `Server` - (#64 by @clue) - -* Fix: Properly return `null` for unknown addresses - (#63 by @clue) - -* Improve documentation for `ServerInterface` and lock test suite requirements - (#60 by @clue, #57 by @shaunbramley) - -## 0.4.5 (2017-01-08) - -* Feature: Add `SecureServer` for secure TLS connections - (#55 by @clue) - -* Add functional integration tests - (#54 by @clue) - -## 0.4.4 (2016-12-19) - -* Feature / Fix: `ConnectionInterface` should extend `DuplexStreamInterface` + documentation - (#50 by @clue) - -* Feature / Fix: Improve test suite and switch to normal stream handler - (#51 by @clue) - -* Feature: Add examples - (#49 by @clue) - -## 0.4.3 (2016-03-01) - -* Bug fix: Suppress errors on stream_socket_accept to prevent PHP from crashing -* Support for PHP7 and HHVM -* Support PHP 5.3 again - -## 0.4.2 (2014-05-25) - -* Verify stream is a valid resource in Connection - -## 0.4.1 (2014-04-13) - -* Bug fix: Check read buffer for data before shutdown signal and end emit (@ArtyDev) -* Bug fix: v0.3.4 changes merged for v0.4.1 - -## 0.3.4 (2014-03-30) - -* Bug fix: Reset socket to non-blocking after shutting down (PHP bug) - -## 0.4.0 (2014-02-02) - -* BC break: Bump minimum PHP version to PHP 5.4, remove 5.3 specific hacks -* BC break: Update to React/Promise 2.0 -* BC break: Update to Evenement 2.0 -* Dependency: Autoloading and filesystem structure now PSR-4 instead of PSR-0 -* Bump React dependencies to v0.4 - -## 0.3.3 (2013-07-08) - -* Version bump - -## 0.3.2 (2013-05-10) - -* Version bump - -## 0.3.1 (2013-04-21) - -* Feature: Support binding to IPv6 addresses (@clue) - -## 0.3.0 (2013-04-14) - -* Bump React dependencies to v0.3 - -## 0.2.6 (2012-12-26) - -* Version bump - -## 0.2.3 (2012-11-14) - -* Version bump - -## 0.2.0 (2012-09-10) - -* Bump React dependencies to v0.2 - -## 0.1.1 (2012-07-12) - -* Version bump - -## 0.1.0 (2012-07-11) - -* First tagged release diff --git a/vendor/react/socket/LICENSE b/vendor/react/socket/LICENSE deleted file mode 100644 index d6f8901..0000000 --- a/vendor/react/socket/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2012 Christian Lück, Cees-Jan Kiewiet, Jan Sorgalla, Chris Boden, Igor Wiedler - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is furnished -to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/vendor/react/socket/README.md b/vendor/react/socket/README.md deleted file mode 100644 index e77e676..0000000 --- a/vendor/react/socket/README.md +++ /dev/null @@ -1,1564 +0,0 @@ -# Socket - -[![CI status](https://github.com/reactphp/socket/workflows/CI/badge.svg)](https://github.com/reactphp/socket/actions) -[![installs on Packagist](https://img.shields.io/packagist/dt/react/socket?color=blue&label=installs%20on%20Packagist)](https://packagist.org/packages/react/socket) - -Async, streaming plaintext TCP/IP and secure TLS socket server and client -connections for [ReactPHP](https://reactphp.org/). - -The socket library provides re-usable interfaces for a socket-layer -server and client based on the [`EventLoop`](https://github.com/reactphp/event-loop) -and [`Stream`](https://github.com/reactphp/stream) components. -Its server component allows you to build networking servers that accept incoming -connections from networking clients (such as an HTTP server). -Its client component allows you to build networking clients that establish -outgoing connections to networking servers (such as an HTTP or database client). -This library provides async, streaming means for all of this, so you can -handle multiple concurrent connections without blocking. - -**Table of Contents** - -* [Quickstart example](#quickstart-example) -* [Connection usage](#connection-usage) - * [ConnectionInterface](#connectioninterface) - * [getRemoteAddress()](#getremoteaddress) - * [getLocalAddress()](#getlocaladdress) -* [Server usage](#server-usage) - * [ServerInterface](#serverinterface) - * [connection event](#connection-event) - * [error event](#error-event) - * [getAddress()](#getaddress) - * [pause()](#pause) - * [resume()](#resume) - * [close()](#close) - * [SocketServer](#socketserver) - * [Advanced server usage](#advanced-server-usage) - * [TcpServer](#tcpserver) - * [SecureServer](#secureserver) - * [UnixServer](#unixserver) - * [LimitingServer](#limitingserver) - * [getConnections()](#getconnections) -* [Client usage](#client-usage) - * [ConnectorInterface](#connectorinterface) - * [connect()](#connect) - * [Connector](#connector) - * [Advanced client usage](#advanced-client-usage) - * [TcpConnector](#tcpconnector) - * [HappyEyeBallsConnector](#happyeyeballsconnector) - * [DnsConnector](#dnsconnector) - * [SecureConnector](#secureconnector) - * [TimeoutConnector](#timeoutconnector) - * [UnixConnector](#unixconnector) - * [FixUriConnector](#fixeduriconnector) -* [Install](#install) -* [Tests](#tests) -* [License](#license) - -## Quickstart example - -Here is a server that closes the connection if you send it anything: - -```php -$socket = new React\Socket\SocketServer('127.0.0.1:8080'); - -$socket->on('connection', function (React\Socket\ConnectionInterface $connection) { - $connection->write("Hello " . $connection->getRemoteAddress() . "!\n"); - $connection->write("Welcome to this amazing server!\n"); - $connection->write("Here's a tip: don't say anything.\n"); - - $connection->on('data', function ($data) use ($connection) { - $connection->close(); - }); -}); -``` - -See also the [examples](examples). - -Here's a client that outputs the output of said server and then attempts to -send it a string: - -```php -$connector = new React\Socket\Connector(); - -$connector->connect('127.0.0.1:8080')->then(function (React\Socket\ConnectionInterface $connection) { - $connection->pipe(new React\Stream\WritableResourceStream(STDOUT)); - $connection->write("Hello World!\n"); -}, function (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; -}); -``` - -## Connection usage - -### ConnectionInterface - -The `ConnectionInterface` is used to represent any incoming and outgoing -connection, such as a normal TCP/IP connection. - -An incoming or outgoing connection is a duplex stream (both readable and -writable) that implements React's -[`DuplexStreamInterface`](https://github.com/reactphp/stream#duplexstreaminterface). -It contains additional properties for the local and remote address (client IP) -where this connection has been established to/from. - -Most commonly, instances implementing this `ConnectionInterface` are emitted -by all classes implementing the [`ServerInterface`](#serverinterface) and -used by all classes implementing the [`ConnectorInterface`](#connectorinterface). - -Because the `ConnectionInterface` implements the underlying -[`DuplexStreamInterface`](https://github.com/reactphp/stream#duplexstreaminterface) -you can use any of its events and methods as usual: - -```php -$connection->on('data', function ($chunk) { - echo $chunk; -}); - -$connection->on('end', function () { - echo 'ended'; -}); - -$connection->on('error', function (Exception $e) { - echo 'error: ' . $e->getMessage(); -}); - -$connection->on('close', function () { - echo 'closed'; -}); - -$connection->write($data); -$connection->end($data = null); -$connection->close(); -// … -``` - -For more details, see the -[`DuplexStreamInterface`](https://github.com/reactphp/stream#duplexstreaminterface). - -#### getRemoteAddress() - -The `getRemoteAddress(): ?string` method returns the full remote address -(URI) where this connection has been established with. - -```php -$address = $connection->getRemoteAddress(); -echo 'Connection with ' . $address . PHP_EOL; -``` - -If the remote address can not be determined or is unknown at this time (such as -after the connection has been closed), it MAY return a `NULL` value instead. - -Otherwise, it will return the full address (URI) as a string value, such -as `tcp://127.0.0.1:8080`, `tcp://[::1]:80`, `tls://127.0.0.1:443`, -`unix://example.sock` or `unix:///path/to/example.sock`. -Note that individual URI components are application specific and depend -on the underlying transport protocol. - -If this is a TCP/IP based connection and you only want the remote IP, you may -use something like this: - -```php -$address = $connection->getRemoteAddress(); -$ip = trim(parse_url($address, PHP_URL_HOST), '[]'); -echo 'Connection with ' . $ip . PHP_EOL; -``` - -#### getLocalAddress() - -The `getLocalAddress(): ?string` method returns the full local address -(URI) where this connection has been established with. - -```php -$address = $connection->getLocalAddress(); -echo 'Connection with ' . $address . PHP_EOL; -``` - -If the local address can not be determined or is unknown at this time (such as -after the connection has been closed), it MAY return a `NULL` value instead. - -Otherwise, it will return the full address (URI) as a string value, such -as `tcp://127.0.0.1:8080`, `tcp://[::1]:80`, `tls://127.0.0.1:443`, -`unix://example.sock` or `unix:///path/to/example.sock`. -Note that individual URI components are application specific and depend -on the underlying transport protocol. - -This method complements the [`getRemoteAddress()`](#getremoteaddress) method, -so they should not be confused. - -If your `TcpServer` instance is listening on multiple interfaces (e.g. using -the address `0.0.0.0`), you can use this method to find out which interface -actually accepted this connection (such as a public or local interface). - -If your system has multiple interfaces (e.g. a WAN and a LAN interface), -you can use this method to find out which interface was actually -used for this connection. - -## Server usage - -### ServerInterface - -The `ServerInterface` is responsible for providing an interface for accepting -incoming streaming connections, such as a normal TCP/IP connection. - -Most higher-level components (such as a HTTP server) accept an instance -implementing this interface to accept incoming streaming connections. -This is usually done via dependency injection, so it's fairly simple to actually -swap this implementation against any other implementation of this interface. -This means that you SHOULD typehint against this interface instead of a concrete -implementation of this interface. - -Besides defining a few methods, this interface also implements the -[`EventEmitterInterface`](https://github.com/igorw/evenement) -which allows you to react to certain events. - -#### connection event - -The `connection` event will be emitted whenever a new connection has been -established, i.e. a new client connects to this server socket: - -```php -$socket->on('connection', function (React\Socket\ConnectionInterface $connection) { - echo 'new connection' . PHP_EOL; -}); -``` - -See also the [`ConnectionInterface`](#connectioninterface) for more details -about handling the incoming connection. - -#### error event - -The `error` event will be emitted whenever there's an error accepting a new -connection from a client. - -```php -$socket->on('error', function (Exception $e) { - echo 'error: ' . $e->getMessage() . PHP_EOL; -}); -``` - -Note that this is not a fatal error event, i.e. the server keeps listening for -new connections even after this event. - -#### getAddress() - -The `getAddress(): ?string` method can be used to -return the full address (URI) this server is currently listening on. - -```php -$address = $socket->getAddress(); -echo 'Server listening on ' . $address . PHP_EOL; -``` - -If the address can not be determined or is unknown at this time (such as -after the socket has been closed), it MAY return a `NULL` value instead. - -Otherwise, it will return the full address (URI) as a string value, such -as `tcp://127.0.0.1:8080`, `tcp://[::1]:80`, `tls://127.0.0.1:443` -`unix://example.sock` or `unix:///path/to/example.sock`. -Note that individual URI components are application specific and depend -on the underlying transport protocol. - -If this is a TCP/IP based server and you only want the local port, you may -use something like this: - -```php -$address = $socket->getAddress(); -$port = parse_url($address, PHP_URL_PORT); -echo 'Server listening on port ' . $port . PHP_EOL; -``` - -#### pause() - -The `pause(): void` method can be used to -pause accepting new incoming connections. - -Removes the socket resource from the EventLoop and thus stop accepting -new connections. Note that the listening socket stays active and is not -closed. - -This means that new incoming connections will stay pending in the -operating system backlog until its configurable backlog is filled. -Once the backlog is filled, the operating system may reject further -incoming connections until the backlog is drained again by resuming -to accept new connections. - -Once the server is paused, no futher `connection` events SHOULD -be emitted. - -```php -$socket->pause(); - -$socket->on('connection', assertShouldNeverCalled()); -``` - -This method is advisory-only, though generally not recommended, the -server MAY continue emitting `connection` events. - -Unless otherwise noted, a successfully opened server SHOULD NOT start -in paused state. - -You can continue processing events by calling `resume()` again. - -Note that both methods can be called any number of times, in particular -calling `pause()` more than once SHOULD NOT have any effect. -Similarly, calling this after `close()` is a NO-OP. - -#### resume() - -The `resume(): void` method can be used to -resume accepting new incoming connections. - -Re-attach the socket resource to the EventLoop after a previous `pause()`. - -```php -$socket->pause(); - -Loop::addTimer(1.0, function () use ($socket) { - $socket->resume(); -}); -``` - -Note that both methods can be called any number of times, in particular -calling `resume()` without a prior `pause()` SHOULD NOT have any effect. -Similarly, calling this after `close()` is a NO-OP. - -#### close() - -The `close(): void` method can be used to -shut down this listening socket. - -This will stop listening for new incoming connections on this socket. - -```php -echo 'Shutting down server socket' . PHP_EOL; -$socket->close(); -``` - -Calling this method more than once on the same instance is a NO-OP. - -### SocketServer - - - -The `SocketServer` class is the main class in this package that implements the -[`ServerInterface`](#serverinterface) and allows you to accept incoming -streaming connections, such as plaintext TCP/IP or secure TLS connection streams. - -In order to accept plaintext TCP/IP connections, you can simply pass a host -and port combination like this: - -```php -$socket = new React\Socket\SocketServer('127.0.0.1:8080'); -``` - -Listening on the localhost address `127.0.0.1` means it will not be reachable from -outside of this system. -In order to change the host the socket is listening on, you can provide an IP -address of an interface or use the special `0.0.0.0` address to listen on all -interfaces: - -```php -$socket = new React\Socket\SocketServer('0.0.0.0:8080'); -``` - -If you want to listen on an IPv6 address, you MUST enclose the host in square -brackets: - -```php -$socket = new React\Socket\SocketServer('[::1]:8080'); -``` - -In order to use a random port assignment, you can use the port `0`: - -```php -$socket = new React\Socket\SocketServer('127.0.0.1:0'); -$address = $socket->getAddress(); -``` - -To listen on a Unix domain socket (UDS) path, you MUST prefix the URI with the -`unix://` scheme: - -```php -$socket = new React\Socket\SocketServer('unix:///tmp/server.sock'); -``` - -In order to listen on an existing file descriptor (FD) number, you MUST prefix -the URI with `php://fd/` like this: - -```php -$socket = new React\Socket\SocketServer('php://fd/3'); -``` - -If the given URI is invalid, does not contain a port, any other scheme or if it -contains a hostname, it will throw an `InvalidArgumentException`: - -```php -// throws InvalidArgumentException due to missing port -$socket = new React\Socket\SocketServer('127.0.0.1'); -``` - -If the given URI appears to be valid, but listening on it fails (such as if port -is already in use or port below 1024 may require root access etc.), it will -throw a `RuntimeException`: - -```php -$first = new React\Socket\SocketServer('127.0.0.1:8080'); - -// throws RuntimeException because port is already in use -$second = new React\Socket\SocketServer('127.0.0.1:8080'); -``` - -> Note that these error conditions may vary depending on your system and/or - configuration. - See the exception message and code for more details about the actual error - condition. - -Optionally, you can specify [TCP socket context options](https://www.php.net/manual/en/context.socket.php) -for the underlying stream socket resource like this: - -```php -$socket = new React\Socket\SocketServer('[::1]:8080', array( - 'tcp' => array( - 'backlog' => 200, - 'so_reuseport' => true, - 'ipv6_v6only' => true - ) -)); -``` - -> Note that available [socket context options](https://www.php.net/manual/en/context.socket.php), - their defaults and effects of changing these may vary depending on your system - and/or PHP version. - Passing unknown context options has no effect. - The `backlog` context option defaults to `511` unless given explicitly. - -You can start a secure TLS (formerly known as SSL) server by simply prepending -the `tls://` URI scheme. -Internally, it will wait for plaintext TCP/IP connections and then performs a -TLS handshake for each connection. -It thus requires valid [TLS context options](https://www.php.net/manual/en/context.ssl.php), -which in its most basic form may look something like this if you're using a -PEM encoded certificate file: - -```php -$socket = new React\Socket\SocketServer('tls://127.0.0.1:8080', array( - 'tls' => array( - 'local_cert' => 'server.pem' - ) -)); -``` - -> Note that the certificate file will not be loaded on instantiation but when an - incoming connection initializes its TLS context. - This implies that any invalid certificate file paths or contents will only cause - an `error` event at a later time. - -If your private key is encrypted with a passphrase, you have to specify it -like this: - -```php -$socket = new React\Socket\SocketServer('tls://127.0.0.1:8000', array( - 'tls' => array( - 'local_cert' => 'server.pem', - 'passphrase' => 'secret' - ) -)); -``` - -By default, this server supports TLSv1.0+ and excludes support for legacy -SSLv2/SSLv3. As of PHP 5.6+ you can also explicitly choose the TLS version you -want to negotiate with the remote side: - -```php -$socket = new React\Socket\SocketServer('tls://127.0.0.1:8000', array( - 'tls' => array( - 'local_cert' => 'server.pem', - 'crypto_method' => STREAM_CRYPTO_METHOD_TLSv1_2_SERVER - ) -)); -``` - -> Note that available [TLS context options](https://www.php.net/manual/en/context.ssl.php), - their defaults and effects of changing these may vary depending on your system - and/or PHP version. - The outer context array allows you to also use `tcp` (and possibly more) - context options at the same time. - Passing unknown context options has no effect. - If you do not use the `tls://` scheme, then passing `tls` context options - has no effect. - -Whenever a client connects, it will emit a `connection` event with a connection -instance implementing [`ConnectionInterface`](#connectioninterface): - -```php -$socket->on('connection', function (React\Socket\ConnectionInterface $connection) { - echo 'Plaintext connection from ' . $connection->getRemoteAddress() . PHP_EOL; - - $connection->write('hello there!' . PHP_EOL); - … -}); -``` - -See also the [`ServerInterface`](#serverinterface) for more details. - -This class takes an optional `LoopInterface|null $loop` parameter that can be used to -pass the event loop instance to use for this object. You can use a `null` value -here in order to use the [default loop](https://github.com/reactphp/event-loop#loop). -This value SHOULD NOT be given unless you're sure you want to explicitly use a -given event loop instance. - -> Note that the `SocketServer` class is a concrete implementation for TCP/IP sockets. - If you want to typehint in your higher-level protocol implementation, you SHOULD - use the generic [`ServerInterface`](#serverinterface) instead. - -> Changelog v1.9.0: This class has been added with an improved constructor signature - as a replacement for the previous `Server` class in order to avoid any ambiguities. - The previous name has been deprecated and should not be used anymore. - -### Advanced server usage - -#### TcpServer - -The `TcpServer` class implements the [`ServerInterface`](#serverinterface) and -is responsible for accepting plaintext TCP/IP connections. - -```php -$server = new React\Socket\TcpServer(8080); -``` - -As above, the `$uri` parameter can consist of only a port, in which case the -server will default to listening on the localhost address `127.0.0.1`, -which means it will not be reachable from outside of this system. - -In order to use a random port assignment, you can use the port `0`: - -```php -$server = new React\Socket\TcpServer(0); -$address = $server->getAddress(); -``` - -In order to change the host the socket is listening on, you can provide an IP -address through the first parameter provided to the constructor, optionally -preceded by the `tcp://` scheme: - -```php -$server = new React\Socket\TcpServer('192.168.0.1:8080'); -``` - -If you want to listen on an IPv6 address, you MUST enclose the host in square -brackets: - -```php -$server = new React\Socket\TcpServer('[::1]:8080'); -``` - -If the given URI is invalid, does not contain a port, any other scheme or if it -contains a hostname, it will throw an `InvalidArgumentException`: - -```php -// throws InvalidArgumentException due to missing port -$server = new React\Socket\TcpServer('127.0.0.1'); -``` - -If the given URI appears to be valid, but listening on it fails (such as if port -is already in use or port below 1024 may require root access etc.), it will -throw a `RuntimeException`: - -```php -$first = new React\Socket\TcpServer(8080); - -// throws RuntimeException because port is already in use -$second = new React\Socket\TcpServer(8080); -``` - -> Note that these error conditions may vary depending on your system and/or -configuration. -See the exception message and code for more details about the actual error -condition. - -This class takes an optional `LoopInterface|null $loop` parameter that can be used to -pass the event loop instance to use for this object. You can use a `null` value -here in order to use the [default loop](https://github.com/reactphp/event-loop#loop). -This value SHOULD NOT be given unless you're sure you want to explicitly use a -given event loop instance. - -Optionally, you can specify [socket context options](https://www.php.net/manual/en/context.socket.php) -for the underlying stream socket resource like this: - -```php -$server = new React\Socket\TcpServer('[::1]:8080', null, array( - 'backlog' => 200, - 'so_reuseport' => true, - 'ipv6_v6only' => true -)); -``` - -> Note that available [socket context options](https://www.php.net/manual/en/context.socket.php), -their defaults and effects of changing these may vary depending on your system -and/or PHP version. -Passing unknown context options has no effect. -The `backlog` context option defaults to `511` unless given explicitly. - -Whenever a client connects, it will emit a `connection` event with a connection -instance implementing [`ConnectionInterface`](#connectioninterface): - -```php -$server->on('connection', function (React\Socket\ConnectionInterface $connection) { - echo 'Plaintext connection from ' . $connection->getRemoteAddress() . PHP_EOL; - - $connection->write('hello there!' . PHP_EOL); - … -}); -``` - -See also the [`ServerInterface`](#serverinterface) for more details. - -#### SecureServer - -The `SecureServer` class implements the [`ServerInterface`](#serverinterface) -and is responsible for providing a secure TLS (formerly known as SSL) server. - -It does so by wrapping a [`TcpServer`](#tcpserver) instance which waits for plaintext -TCP/IP connections and then performs a TLS handshake for each connection. -It thus requires valid [TLS context options](https://www.php.net/manual/en/context.ssl.php), -which in its most basic form may look something like this if you're using a -PEM encoded certificate file: - -```php -$server = new React\Socket\TcpServer(8000); -$server = new React\Socket\SecureServer($server, null, array( - 'local_cert' => 'server.pem' -)); -``` - -> Note that the certificate file will not be loaded on instantiation but when an -incoming connection initializes its TLS context. -This implies that any invalid certificate file paths or contents will only cause -an `error` event at a later time. - -If your private key is encrypted with a passphrase, you have to specify it -like this: - -```php -$server = new React\Socket\TcpServer(8000); -$server = new React\Socket\SecureServer($server, null, array( - 'local_cert' => 'server.pem', - 'passphrase' => 'secret' -)); -``` - -By default, this server supports TLSv1.0+ and excludes support for legacy -SSLv2/SSLv3. As of PHP 5.6+ you can also explicitly choose the TLS version you -want to negotiate with the remote side: - -```php -$server = new React\Socket\TcpServer(8000); -$server = new React\Socket\SecureServer($server, null, array( - 'local_cert' => 'server.pem', - 'crypto_method' => STREAM_CRYPTO_METHOD_TLSv1_2_SERVER -)); -``` - -> Note that available [TLS context options](https://www.php.net/manual/en/context.ssl.php), -their defaults and effects of changing these may vary depending on your system -and/or PHP version. -Passing unknown context options has no effect. - -Whenever a client completes the TLS handshake, it will emit a `connection` event -with a connection instance implementing [`ConnectionInterface`](#connectioninterface): - -```php -$server->on('connection', function (React\Socket\ConnectionInterface $connection) { - echo 'Secure connection from' . $connection->getRemoteAddress() . PHP_EOL; - - $connection->write('hello there!' . PHP_EOL); - … -}); -``` - -Whenever a client fails to perform a successful TLS handshake, it will emit an -`error` event and then close the underlying TCP/IP connection: - -```php -$server->on('error', function (Exception $e) { - echo 'Error' . $e->getMessage() . PHP_EOL; -}); -``` - -See also the [`ServerInterface`](#serverinterface) for more details. - -Note that the `SecureServer` class is a concrete implementation for TLS sockets. -If you want to typehint in your higher-level protocol implementation, you SHOULD -use the generic [`ServerInterface`](#serverinterface) instead. - -This class takes an optional `LoopInterface|null $loop` parameter that can be used to -pass the event loop instance to use for this object. You can use a `null` value -here in order to use the [default loop](https://github.com/reactphp/event-loop#loop). -This value SHOULD NOT be given unless you're sure you want to explicitly use a -given event loop instance. - -> Advanced usage: Despite allowing any `ServerInterface` as first parameter, -you SHOULD pass a `TcpServer` instance as first parameter, unless you -know what you're doing. -Internally, the `SecureServer` has to set the required TLS context options on -the underlying stream resources. -These resources are not exposed through any of the interfaces defined in this -package, but only through the internal `Connection` class. -The `TcpServer` class is guaranteed to emit connections that implement -the `ConnectionInterface` and uses the internal `Connection` class in order to -expose these underlying resources. -If you use a custom `ServerInterface` and its `connection` event does not -meet this requirement, the `SecureServer` will emit an `error` event and -then close the underlying connection. - -#### UnixServer - -The `UnixServer` class implements the [`ServerInterface`](#serverinterface) and -is responsible for accepting connections on Unix domain sockets (UDS). - -```php -$server = new React\Socket\UnixServer('/tmp/server.sock'); -``` - -As above, the `$uri` parameter can consist of only a socket path or socket path -prefixed by the `unix://` scheme. - -If the given URI appears to be valid, but listening on it fails (such as if the -socket is already in use or the file not accessible etc.), it will throw a -`RuntimeException`: - -```php -$first = new React\Socket\UnixServer('/tmp/same.sock'); - -// throws RuntimeException because socket is already in use -$second = new React\Socket\UnixServer('/tmp/same.sock'); -``` - -> Note that these error conditions may vary depending on your system and/or - configuration. - In particular, Zend PHP does only report "Unknown error" when the UDS path - already exists and can not be bound. You may want to check `is_file()` on the - given UDS path to report a more user-friendly error message in this case. - See the exception message and code for more details about the actual error - condition. - -This class takes an optional `LoopInterface|null $loop` parameter that can be used to -pass the event loop instance to use for this object. You can use a `null` value -here in order to use the [default loop](https://github.com/reactphp/event-loop#loop). -This value SHOULD NOT be given unless you're sure you want to explicitly use a -given event loop instance. - -Whenever a client connects, it will emit a `connection` event with a connection -instance implementing [`ConnectionInterface`](#connectioninterface): - -```php -$server->on('connection', function (React\Socket\ConnectionInterface $connection) { - echo 'New connection' . PHP_EOL; - - $connection->write('hello there!' . PHP_EOL); - … -}); -``` - -See also the [`ServerInterface`](#serverinterface) for more details. - -#### LimitingServer - -The `LimitingServer` decorator wraps a given `ServerInterface` and is responsible -for limiting and keeping track of open connections to this server instance. - -Whenever the underlying server emits a `connection` event, it will check its -limits and then either - - keep track of this connection by adding it to the list of - open connections and then forward the `connection` event - - or reject (close) the connection when its limits are exceeded and will - forward an `error` event instead. - -Whenever a connection closes, it will remove this connection from the list of -open connections. - -```php -$server = new React\Socket\LimitingServer($server, 100); -$server->on('connection', function (React\Socket\ConnectionInterface $connection) { - $connection->write('hello there!' . PHP_EOL); - … -}); -``` - -See also the [second example](examples) for more details. - -You have to pass a maximum number of open connections to ensure -the server will automatically reject (close) connections once this limit -is exceeded. In this case, it will emit an `error` event to inform about -this and no `connection` event will be emitted. - -```php -$server = new React\Socket\LimitingServer($server, 100); -$server->on('connection', function (React\Socket\ConnectionInterface $connection) { - $connection->write('hello there!' . PHP_EOL); - … -}); -``` - -You MAY pass a `null` limit in order to put no limit on the number of -open connections and keep accepting new connection until you run out of -operating system resources (such as open file handles). This may be -useful if you do not want to take care of applying a limit but still want -to use the `getConnections()` method. - -You can optionally configure the server to pause accepting new -connections once the connection limit is reached. In this case, it will -pause the underlying server and no longer process any new connections at -all, thus also no longer closing any excessive connections. -The underlying operating system is responsible for keeping a backlog of -pending connections until its limit is reached, at which point it will -start rejecting further connections. -Once the server is below the connection limit, it will continue consuming -connections from the backlog and will process any outstanding data on -each connection. -This mode may be useful for some protocols that are designed to wait for -a response message (such as HTTP), but may be less useful for other -protocols that demand immediate responses (such as a "welcome" message in -an interactive chat). - -```php -$server = new React\Socket\LimitingServer($server, 100, true); -$server->on('connection', function (React\Socket\ConnectionInterface $connection) { - $connection->write('hello there!' . PHP_EOL); - … -}); -``` - -##### getConnections() - -The `getConnections(): ConnectionInterface[]` method can be used to -return an array with all currently active connections. - -```php -foreach ($server->getConnection() as $connection) { - $connection->write('Hi!'); -} -``` - -## Client usage - -### ConnectorInterface - -The `ConnectorInterface` is responsible for providing an interface for -establishing streaming connections, such as a normal TCP/IP connection. - -This is the main interface defined in this package and it is used throughout -React's vast ecosystem. - -Most higher-level components (such as HTTP, database or other networking -service clients) accept an instance implementing this interface to create their -TCP/IP connection to the underlying networking service. -This is usually done via dependency injection, so it's fairly simple to actually -swap this implementation against any other implementation of this interface. - -The interface only offers a single method: - -#### connect() - -The `connect(string $uri): PromiseInterface` method can be used to -create a streaming connection to the given remote address. - -It returns a [Promise](https://github.com/reactphp/promise) which either -fulfills with a stream implementing [`ConnectionInterface`](#connectioninterface) -on success or rejects with an `Exception` if the connection is not successful: - -```php -$connector->connect('google.com:443')->then( - function (React\Socket\ConnectionInterface $connection) { - // connection successfully established - }, - function (Exception $error) { - // failed to connect due to $error - } -); -``` - -See also [`ConnectionInterface`](#connectioninterface) for more details. - -The returned Promise MUST be implemented in such a way that it can be -cancelled when it is still pending. Cancelling a pending promise MUST -reject its value with an `Exception`. It SHOULD clean up any underlying -resources and references as applicable: - -```php -$promise = $connector->connect($uri); - -$promise->cancel(); -``` - -### Connector - -The `Connector` class is the main class in this package that implements the -[`ConnectorInterface`](#connectorinterface) and allows you to create streaming connections. - -You can use this connector to create any kind of streaming connections, such -as plaintext TCP/IP, secure TLS or local Unix connection streams. - -It binds to the main event loop and can be used like this: - -```php -$connector = new React\Socket\Connector(); - -$connector->connect($uri)->then(function (React\Socket\ConnectionInterface $connection) { - $connection->write('...'); - $connection->end(); -}, function (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; -}); -``` - -In order to create a plaintext TCP/IP connection, you can simply pass a host -and port combination like this: - -```php -$connector->connect('www.google.com:80')->then(function (React\Socket\ConnectionInterface $connection) { - $connection->write('...'); - $connection->end(); -}); -``` - -> If you do no specify a URI scheme in the destination URI, it will assume - `tcp://` as a default and establish a plaintext TCP/IP connection. - Note that TCP/IP connections require a host and port part in the destination - URI like above, all other URI components are optional. - -In order to create a secure TLS connection, you can use the `tls://` URI scheme -like this: - -```php -$connector->connect('tls://www.google.com:443')->then(function (React\Socket\ConnectionInterface $connection) { - $connection->write('...'); - $connection->end(); -}); -``` - -In order to create a local Unix domain socket connection, you can use the -`unix://` URI scheme like this: - -```php -$connector->connect('unix:///tmp/demo.sock')->then(function (React\Socket\ConnectionInterface $connection) { - $connection->write('...'); - $connection->end(); -}); -``` - -> The [`getRemoteAddress()`](#getremoteaddress) method will return the target - Unix domain socket (UDS) path as given to the `connect()` method, including - the `unix://` scheme, for example `unix:///tmp/demo.sock`. - The [`getLocalAddress()`](#getlocaladdress) method will most likely return a - `null` value as this value is not applicable to UDS connections here. - -Under the hood, the `Connector` is implemented as a *higher-level facade* -for the lower-level connectors implemented in this package. This means it -also shares all of their features and implementation details. -If you want to typehint in your higher-level protocol implementation, you SHOULD -use the generic [`ConnectorInterface`](#connectorinterface) instead. - -As of `v1.4.0`, the `Connector` class defaults to using the -[happy eyeballs algorithm](https://en.wikipedia.org/wiki/Happy_Eyeballs) to -automatically connect over IPv4 or IPv6 when a hostname is given. -This automatically attempts to connect using both IPv4 and IPv6 at the same time -(preferring IPv6), thus avoiding the usual problems faced by users with imperfect -IPv6 connections or setups. -If you want to revert to the old behavior of only doing an IPv4 lookup and -only attempt a single IPv4 connection, you can set up the `Connector` like this: - -```php -$connector = new React\Socket\Connector(array( - 'happy_eyeballs' => false -)); -``` - -Similarly, you can also affect the default DNS behavior as follows. -The `Connector` class will try to detect your system DNS settings (and uses -Google's public DNS server `8.8.8.8` as a fallback if unable to determine your -system settings) to resolve all public hostnames into underlying IP addresses by -default. -If you explicitly want to use a custom DNS server (such as a local DNS relay or -a company wide DNS server), you can set up the `Connector` like this: - -```php -$connector = new React\Socket\Connector(array( - 'dns' => '127.0.1.1' -)); - -$connector->connect('localhost:80')->then(function (React\Socket\ConnectionInterface $connection) { - $connection->write('...'); - $connection->end(); -}); -``` - -If you do not want to use a DNS resolver at all and want to connect to IP -addresses only, you can also set up your `Connector` like this: - -```php -$connector = new React\Socket\Connector(array( - 'dns' => false -)); - -$connector->connect('127.0.0.1:80')->then(function (React\Socket\ConnectionInterface $connection) { - $connection->write('...'); - $connection->end(); -}); -``` - -Advanced: If you need a custom DNS `React\Dns\Resolver\ResolverInterface` instance, you -can also set up your `Connector` like this: - -```php -$dnsResolverFactory = new React\Dns\Resolver\Factory(); -$resolver = $dnsResolverFactory->createCached('127.0.1.1'); - -$connector = new React\Socket\Connector(array( - 'dns' => $resolver -)); - -$connector->connect('localhost:80')->then(function (React\Socket\ConnectionInterface $connection) { - $connection->write('...'); - $connection->end(); -}); -``` - -By default, the `tcp://` and `tls://` URI schemes will use timeout value that -respects your `default_socket_timeout` ini setting (which defaults to 60s). -If you want a custom timeout value, you can simply pass this like this: - -```php -$connector = new React\Socket\Connector(array( - 'timeout' => 10.0 -)); -``` - -Similarly, if you do not want to apply a timeout at all and let the operating -system handle this, you can pass a boolean flag like this: - -```php -$connector = new React\Socket\Connector(array( - 'timeout' => false -)); -``` - -By default, the `Connector` supports the `tcp://`, `tls://` and `unix://` -URI schemes. If you want to explicitly prohibit any of these, you can simply -pass boolean flags like this: - -```php -// only allow secure TLS connections -$connector = new React\Socket\Connector(array( - 'tcp' => false, - 'tls' => true, - 'unix' => false, -)); - -$connector->connect('tls://google.com:443')->then(function (React\Socket\ConnectionInterface $connection) { - $connection->write('...'); - $connection->end(); -}); -``` - -The `tcp://` and `tls://` also accept additional context options passed to -the underlying connectors. -If you want to explicitly pass additional context options, you can simply -pass arrays of context options like this: - -```php -// allow insecure TLS connections -$connector = new React\Socket\Connector(array( - 'tcp' => array( - 'bindto' => '192.168.0.1:0' - ), - 'tls' => array( - 'verify_peer' => false, - 'verify_peer_name' => false - ), -)); - -$connector->connect('tls://localhost:443')->then(function (React\Socket\ConnectionInterface $connection) { - $connection->write('...'); - $connection->end(); -}); -``` - -By default, this connector supports TLSv1.0+ and excludes support for legacy -SSLv2/SSLv3. As of PHP 5.6+ you can also explicitly choose the TLS version you -want to negotiate with the remote side: - -```php -$connector = new React\Socket\Connector(array( - 'tls' => array( - 'crypto_method' => STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT - ) -)); -``` - -> For more details about context options, please refer to the PHP documentation - about [socket context options](https://www.php.net/manual/en/context.socket.php) - and [SSL context options](https://www.php.net/manual/en/context.ssl.php). - -Advanced: By default, the `Connector` supports the `tcp://`, `tls://` and -`unix://` URI schemes. -For this, it sets up the required connector classes automatically. -If you want to explicitly pass custom connectors for any of these, you can simply -pass an instance implementing the `ConnectorInterface` like this: - -```php -$dnsResolverFactory = new React\Dns\Resolver\Factory(); -$resolver = $dnsResolverFactory->createCached('127.0.1.1'); -$tcp = new React\Socket\HappyEyeBallsConnector(null, new React\Socket\TcpConnector(), $resolver); - -$tls = new React\Socket\SecureConnector($tcp); - -$unix = new React\Socket\UnixConnector(); - -$connector = new React\Socket\Connector(array( - 'tcp' => $tcp, - 'tls' => $tls, - 'unix' => $unix, - - 'dns' => false, - 'timeout' => false, -)); - -$connector->connect('google.com:80')->then(function (React\Socket\ConnectionInterface $connection) { - $connection->write('...'); - $connection->end(); -}); -``` - -> Internally, the `tcp://` connector will always be wrapped by the DNS resolver, - unless you disable DNS like in the above example. In this case, the `tcp://` - connector receives the actual hostname instead of only the resolved IP address - and is thus responsible for performing the lookup. - Internally, the automatically created `tls://` connector will always wrap the - underlying `tcp://` connector for establishing the underlying plaintext - TCP/IP connection before enabling secure TLS mode. If you want to use a custom - underlying `tcp://` connector for secure TLS connections only, you may - explicitly pass a `tls://` connector like above instead. - Internally, the `tcp://` and `tls://` connectors will always be wrapped by - `TimeoutConnector`, unless you disable timeouts like in the above example. - -This class takes an optional `LoopInterface|null $loop` parameter that can be used to -pass the event loop instance to use for this object. You can use a `null` value -here in order to use the [default loop](https://github.com/reactphp/event-loop#loop). -This value SHOULD NOT be given unless you're sure you want to explicitly use a -given event loop instance. - -> Changelog v1.9.0: The constructur signature has been updated to take the -> optional `$context` as the first parameter and the optional `$loop` as a second -> argument. The previous signature has been deprecated and should not be used anymore. -> -> ```php -> // constructor signature as of v1.9.0 -> $connector = new React\Socket\Connector(array $context = [], ?LoopInterface $loop = null); -> -> // legacy constructor signature before v1.9.0 -> $connector = new React\Socket\Connector(?LoopInterface $loop = null, array $context = []); -> ``` - -### Advanced client usage - -#### TcpConnector - -The `TcpConnector` class implements the -[`ConnectorInterface`](#connectorinterface) and allows you to create plaintext -TCP/IP connections to any IP-port-combination: - -```php -$tcpConnector = new React\Socket\TcpConnector(); - -$tcpConnector->connect('127.0.0.1:80')->then(function (React\Socket\ConnectionInterface $connection) { - $connection->write('...'); - $connection->end(); -}); -``` - -See also the [examples](examples). - -Pending connection attempts can be cancelled by cancelling its pending promise like so: - -```php -$promise = $tcpConnector->connect('127.0.0.1:80'); - -$promise->cancel(); -``` - -Calling `cancel()` on a pending promise will close the underlying socket -resource, thus cancelling the pending TCP/IP connection, and reject the -resulting promise. - -This class takes an optional `LoopInterface|null $loop` parameter that can be used to -pass the event loop instance to use for this object. You can use a `null` value -here in order to use the [default loop](https://github.com/reactphp/event-loop#loop). -This value SHOULD NOT be given unless you're sure you want to explicitly use a -given event loop instance. - -You can optionally pass additional -[socket context options](https://www.php.net/manual/en/context.socket.php) -to the constructor like this: - -```php -$tcpConnector = new React\Socket\TcpConnector(null, array( - 'bindto' => '192.168.0.1:0' -)); -``` - -Note that this class only allows you to connect to IP-port-combinations. -If the given URI is invalid, does not contain a valid IP address and port -or contains any other scheme, it will reject with an -`InvalidArgumentException`: - -If the given URI appears to be valid, but connecting to it fails (such as if -the remote host rejects the connection etc.), it will reject with a -`RuntimeException`. - -If you want to connect to hostname-port-combinations, see also the following chapter. - -> Advanced usage: Internally, the `TcpConnector` allocates an empty *context* -resource for each stream resource. -If the destination URI contains a `hostname` query parameter, its value will -be used to set up the TLS peer name. -This is used by the `SecureConnector` and `DnsConnector` to verify the peer -name and can also be used if you want a custom TLS peer name. - -#### HappyEyeBallsConnector - -The `HappyEyeBallsConnector` class implements the -[`ConnectorInterface`](#connectorinterface) and allows you to create plaintext -TCP/IP connections to any hostname-port-combination. Internally it implements the -happy eyeballs algorithm from [`RFC6555`](https://tools.ietf.org/html/rfc6555) and -[`RFC8305`](https://tools.ietf.org/html/rfc8305) to support IPv6 and IPv4 hostnames. - -It does so by decorating a given `TcpConnector` instance so that it first -looks up the given domain name via DNS (if applicable) and then establishes the -underlying TCP/IP connection to the resolved target IP address. - -Make sure to set up your DNS resolver and underlying TCP connector like this: - -```php -$dnsResolverFactory = new React\Dns\Resolver\Factory(); -$dns = $dnsResolverFactory->createCached('8.8.8.8'); - -$dnsConnector = new React\Socket\HappyEyeBallsConnector(null, $tcpConnector, $dns); - -$dnsConnector->connect('www.google.com:80')->then(function (React\Socket\ConnectionInterface $connection) { - $connection->write('...'); - $connection->end(); -}); -``` - -See also the [examples](examples). - -Pending connection attempts can be cancelled by cancelling its pending promise like so: - -```php -$promise = $dnsConnector->connect('www.google.com:80'); - -$promise->cancel(); -``` - -Calling `cancel()` on a pending promise will cancel the underlying DNS lookups -and/or the underlying TCP/IP connection(s) and reject the resulting promise. - -This class takes an optional `LoopInterface|null $loop` parameter that can be used to -pass the event loop instance to use for this object. You can use a `null` value -here in order to use the [default loop](https://github.com/reactphp/event-loop#loop). -This value SHOULD NOT be given unless you're sure you want to explicitly use a -given event loop instance. - -> Advanced usage: Internally, the `HappyEyeBallsConnector` relies on a `Resolver` to -look up the IP addresses for the given hostname. -It will then replace the hostname in the destination URI with this IP's and -append a `hostname` query parameter and pass this updated URI to the underlying -connector. -The Happy Eye Balls algorithm describes looking the IPv6 and IPv4 address for -the given hostname so this connector sends out two DNS lookups for the A and -AAAA records. It then uses all IP addresses (both v6 and v4) and tries to -connect to all of them with a 50ms interval in between. Alterating between IPv6 -and IPv4 addresses. When a connection is established all the other DNS lookups -and connection attempts are cancelled. - -#### DnsConnector - -The `DnsConnector` class implements the -[`ConnectorInterface`](#connectorinterface) and allows you to create plaintext -TCP/IP connections to any hostname-port-combination. - -It does so by decorating a given `TcpConnector` instance so that it first -looks up the given domain name via DNS (if applicable) and then establishes the -underlying TCP/IP connection to the resolved target IP address. - -Make sure to set up your DNS resolver and underlying TCP connector like this: - -```php -$dnsResolverFactory = new React\Dns\Resolver\Factory(); -$dns = $dnsResolverFactory->createCached('8.8.8.8'); - -$dnsConnector = new React\Socket\DnsConnector($tcpConnector, $dns); - -$dnsConnector->connect('www.google.com:80')->then(function (React\Socket\ConnectionInterface $connection) { - $connection->write('...'); - $connection->end(); -}); -``` - -See also the [examples](examples). - -Pending connection attempts can be cancelled by cancelling its pending promise like so: - -```php -$promise = $dnsConnector->connect('www.google.com:80'); - -$promise->cancel(); -``` - -Calling `cancel()` on a pending promise will cancel the underlying DNS lookup -and/or the underlying TCP/IP connection and reject the resulting promise. - -> Advanced usage: Internally, the `DnsConnector` relies on a `React\Dns\Resolver\ResolverInterface` -to look up the IP address for the given hostname. -It will then replace the hostname in the destination URI with this IP and -append a `hostname` query parameter and pass this updated URI to the underlying -connector. -The underlying connector is thus responsible for creating a connection to the -target IP address, while this query parameter can be used to check the original -hostname and is used by the `TcpConnector` to set up the TLS peer name. -If a `hostname` is given explicitly, this query parameter will not be modified, -which can be useful if you want a custom TLS peer name. - -#### SecureConnector - -The `SecureConnector` class implements the -[`ConnectorInterface`](#connectorinterface) and allows you to create secure -TLS (formerly known as SSL) connections to any hostname-port-combination. - -It does so by decorating a given `DnsConnector` instance so that it first -creates a plaintext TCP/IP connection and then enables TLS encryption on this -stream. - -```php -$secureConnector = new React\Socket\SecureConnector($dnsConnector); - -$secureConnector->connect('www.google.com:443')->then(function (React\Socket\ConnectionInterface $connection) { - $connection->write("GET / HTTP/1.0\r\nHost: www.google.com\r\n\r\n"); - ... -}); -``` - -See also the [examples](examples). - -Pending connection attempts can be cancelled by cancelling its pending promise like so: - -```php -$promise = $secureConnector->connect('www.google.com:443'); - -$promise->cancel(); -``` - -Calling `cancel()` on a pending promise will cancel the underlying TCP/IP -connection and/or the SSL/TLS negotiation and reject the resulting promise. - -This class takes an optional `LoopInterface|null $loop` parameter that can be used to -pass the event loop instance to use for this object. You can use a `null` value -here in order to use the [default loop](https://github.com/reactphp/event-loop#loop). -This value SHOULD NOT be given unless you're sure you want to explicitly use a -given event loop instance. - -You can optionally pass additional -[SSL context options](https://www.php.net/manual/en/context.ssl.php) -to the constructor like this: - -```php -$secureConnector = new React\Socket\SecureConnector($dnsConnector, null, array( - 'verify_peer' => false, - 'verify_peer_name' => false -)); -``` - -By default, this connector supports TLSv1.0+ and excludes support for legacy -SSLv2/SSLv3. As of PHP 5.6+ you can also explicitly choose the TLS version you -want to negotiate with the remote side: - -```php -$secureConnector = new React\Socket\SecureConnector($dnsConnector, null, array( - 'crypto_method' => STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT -)); -``` - -> Advanced usage: Internally, the `SecureConnector` relies on setting up the -required *context options* on the underlying stream resource. -It should therefor be used with a `TcpConnector` somewhere in the connector -stack so that it can allocate an empty *context* resource for each stream -resource and verify the peer name. -Failing to do so may result in a TLS peer name mismatch error or some hard to -trace race conditions, because all stream resources will use a single, shared -*default context* resource otherwise. - -#### TimeoutConnector - -The `TimeoutConnector` class implements the -[`ConnectorInterface`](#connectorinterface) and allows you to add timeout -handling to any existing connector instance. - -It does so by decorating any given [`ConnectorInterface`](#connectorinterface) -instance and starting a timer that will automatically reject and abort any -underlying connection attempt if it takes too long. - -```php -$timeoutConnector = new React\Socket\TimeoutConnector($connector, 3.0); - -$timeoutConnector->connect('google.com:80')->then(function (React\Socket\ConnectionInterface $connection) { - // connection succeeded within 3.0 seconds -}); -``` - -See also any of the [examples](examples). - -This class takes an optional `LoopInterface|null $loop` parameter that can be used to -pass the event loop instance to use for this object. You can use a `null` value -here in order to use the [default loop](https://github.com/reactphp/event-loop#loop). -This value SHOULD NOT be given unless you're sure you want to explicitly use a -given event loop instance. - -Pending connection attempts can be cancelled by cancelling its pending promise like so: - -```php -$promise = $timeoutConnector->connect('google.com:80'); - -$promise->cancel(); -``` - -Calling `cancel()` on a pending promise will cancel the underlying connection -attempt, abort the timer and reject the resulting promise. - -#### UnixConnector - -The `UnixConnector` class implements the -[`ConnectorInterface`](#connectorinterface) and allows you to connect to -Unix domain socket (UDS) paths like this: - -```php -$connector = new React\Socket\UnixConnector(); - -$connector->connect('/tmp/demo.sock')->then(function (React\Socket\ConnectionInterface $connection) { - $connection->write("HELLO\n"); -}); -``` - -Connecting to Unix domain sockets is an atomic operation, i.e. its promise will -settle (either resolve or reject) immediately. -As such, calling `cancel()` on the resulting promise has no effect. - -> The [`getRemoteAddress()`](#getremoteaddress) method will return the target - Unix domain socket (UDS) path as given to the `connect()` method, prepended - with the `unix://` scheme, for example `unix:///tmp/demo.sock`. - The [`getLocalAddress()`](#getlocaladdress) method will most likely return a - `null` value as this value is not applicable to UDS connections here. - -This class takes an optional `LoopInterface|null $loop` parameter that can be used to -pass the event loop instance to use for this object. You can use a `null` value -here in order to use the [default loop](https://github.com/reactphp/event-loop#loop). -This value SHOULD NOT be given unless you're sure you want to explicitly use a -given event loop instance. - -#### FixedUriConnector - -The `FixedUriConnector` class implements the -[`ConnectorInterface`](#connectorinterface) and decorates an existing Connector -to always use a fixed, preconfigured URI. - -This can be useful for consumers that do not support certain URIs, such as -when you want to explicitly connect to a Unix domain socket (UDS) path -instead of connecting to a default address assumed by an higher-level API: - -```php -$connector = new React\Socket\FixedUriConnector( - 'unix:///var/run/docker.sock', - new React\Socket\UnixConnector() -); - -// destination will be ignored, actually connects to Unix domain socket -$promise = $connector->connect('localhost:80'); -``` - -## Install - -The recommended way to install this library is [through Composer](https://getcomposer.org/). -[New to Composer?](https://getcomposer.org/doc/00-intro.md) - -This project follows [SemVer](https://semver.org/). -This will install the latest supported version: - -```bash -composer require react/socket:^1.16 -``` - -See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades. - -This project aims to run on any platform and thus does not require any PHP -extensions and supports running on legacy PHP 5.3 through current PHP 8+ and HHVM. -It's *highly recommended to use the latest supported PHP version* for this project, -partly due to its vast performance improvements and partly because legacy PHP -versions require several workarounds as described below. - -Secure TLS connections received some major upgrades starting with PHP 5.6, with -the defaults now being more secure, while older versions required explicit -context options. -This library does not take responsibility over these context options, so it's -up to consumers of this library to take care of setting appropriate context -options as described above. - -PHP < 7.3.3 (and PHP < 7.2.15) suffers from a bug where feof() might -block with 100% CPU usage on fragmented TLS records. -We try to work around this by always consuming the complete receive -buffer at once to avoid stale data in TLS buffers. This is known to -work around high CPU usage for well-behaving peers, but this may -cause very large data chunks for high throughput scenarios. The buggy -behavior can still be triggered due to network I/O buffers or -malicious peers on affected versions, upgrading is highly recommended. - -PHP < 7.1.4 (and PHP < 7.0.18) suffers from a bug when writing big -chunks of data over TLS streams at once. -We try to work around this by limiting the write chunk size to 8192 -bytes for older PHP versions only. -This is only a work-around and has a noticable performance penalty on -affected versions. - -This project also supports running on HHVM. -Note that really old HHVM < 3.8 does not support secure TLS connections, as it -lacks the required `stream_socket_enable_crypto()` function. -As such, trying to create a secure TLS connections on affected versions will -return a rejected promise instead. -This issue is also covered by our test suite, which will skip related tests -on affected versions. - -## Tests - -To run the test suite, you first need to clone this repo and then install all -dependencies [through Composer](https://getcomposer.org/): - -```bash -composer install -``` - -To run the test suite, go to the project root and run: - -```bash -vendor/bin/phpunit -``` - -The test suite also contains a number of functional integration tests that rely -on a stable internet connection. -If you do not want to run these, they can simply be skipped like this: - -```bash -vendor/bin/phpunit --exclude-group internet -``` - -## License - -MIT, see [LICENSE file](LICENSE). diff --git a/vendor/react/socket/composer.json b/vendor/react/socket/composer.json deleted file mode 100644 index b1e1d25..0000000 --- a/vendor/react/socket/composer.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "name": "react/socket", - "description": "Async, streaming plaintext TCP/IP and secure TLS socket server and client connections for ReactPHP", - "keywords": ["async", "socket", "stream", "connection", "ReactPHP"], - "license": "MIT", - "authors": [ - { - "name": "Christian Lück", - "homepage": "https://clue.engineering/", - "email": "christian@clue.engineering" - }, - { - "name": "Cees-Jan Kiewiet", - "homepage": "https://wyrihaximus.net/", - "email": "reactphp@ceesjankiewiet.nl" - }, - { - "name": "Jan Sorgalla", - "homepage": "https://sorgalla.com/", - "email": "jsorgalla@gmail.com" - }, - { - "name": "Chris Boden", - "homepage": "https://cboden.dev/", - "email": "cboden@gmail.com" - } - ], - "require": { - "php": ">=5.3.0", - "evenement/evenement": "^3.0 || ^2.0 || ^1.0", - "react/dns": "^1.13", - "react/event-loop": "^1.2", - "react/promise": "^3.2 || ^2.6 || ^1.2.1", - "react/stream": "^1.4" - }, - "require-dev": { - "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36", - "react/async": "^4.3 || ^3.3 || ^2", - "react/promise-stream": "^1.4", - "react/promise-timer": "^1.11" - }, - "autoload": { - "psr-4": { - "React\\Socket\\": "src/" - } - }, - "autoload-dev": { - "psr-4": { - "React\\Tests\\Socket\\": "tests/" - } - } -} diff --git a/vendor/react/socket/src/Connection.php b/vendor/react/socket/src/Connection.php deleted file mode 100644 index 65ae26b..0000000 --- a/vendor/react/socket/src/Connection.php +++ /dev/null @@ -1,183 +0,0 @@ -= 70300 && \PHP_VERSION_ID < 70303); - - // PHP < 7.1.4 (and PHP < 7.0.18) suffers from a bug when writing big - // chunks of data over TLS streams at once. - // We try to work around this by limiting the write chunk size to 8192 - // bytes for older PHP versions only. - // This is only a work-around and has a noticable performance penalty on - // affected versions. Please update your PHP version. - // This applies to all streams because TLS may be enabled later on. - // See https://github.com/reactphp/socket/issues/105 - $limitWriteChunks = (\PHP_VERSION_ID < 70018 || (\PHP_VERSION_ID >= 70100 && \PHP_VERSION_ID < 70104)); - - $this->input = new DuplexResourceStream( - $resource, - $loop, - $clearCompleteBuffer ? -1 : null, - new WritableResourceStream($resource, $loop, null, $limitWriteChunks ? 8192 : null) - ); - - $this->stream = $resource; - - Util::forwardEvents($this->input, $this, array('data', 'end', 'error', 'close', 'pipe', 'drain')); - - $this->input->on('close', array($this, 'close')); - } - - public function isReadable() - { - return $this->input->isReadable(); - } - - public function isWritable() - { - return $this->input->isWritable(); - } - - public function pause() - { - $this->input->pause(); - } - - public function resume() - { - $this->input->resume(); - } - - public function pipe(WritableStreamInterface $dest, array $options = array()) - { - return $this->input->pipe($dest, $options); - } - - public function write($data) - { - return $this->input->write($data); - } - - public function end($data = null) - { - $this->input->end($data); - } - - public function close() - { - $this->input->close(); - $this->handleClose(); - $this->removeAllListeners(); - } - - public function handleClose() - { - if (!\is_resource($this->stream)) { - return; - } - - // Try to cleanly shut down socket and ignore any errors in case other - // side already closed. Underlying Stream implementation will take care - // of closing stream resource, so we otherwise keep this open here. - @\stream_socket_shutdown($this->stream, \STREAM_SHUT_RDWR); - } - - public function getRemoteAddress() - { - if (!\is_resource($this->stream)) { - return null; - } - - return $this->parseAddress(\stream_socket_get_name($this->stream, true)); - } - - public function getLocalAddress() - { - if (!\is_resource($this->stream)) { - return null; - } - - return $this->parseAddress(\stream_socket_get_name($this->stream, false)); - } - - private function parseAddress($address) - { - if ($address === false) { - return null; - } - - if ($this->unix) { - // remove trailing colon from address for HHVM < 3.19: https://3v4l.org/5C1lo - // note that technically ":" is a valid address, so keep this in place otherwise - if (\substr($address, -1) === ':' && \defined('HHVM_VERSION_ID') && \HHVM_VERSION_ID < 31900) { - $address = (string)\substr($address, 0, -1); // @codeCoverageIgnore - } - - // work around unknown addresses should return null value: https://3v4l.org/5C1lo and https://bugs.php.net/bug.php?id=74556 - // PHP uses "\0" string and HHVM uses empty string (colon removed above) - if ($address === '' || $address[0] === "\x00" ) { - return null; // @codeCoverageIgnore - } - - return 'unix://' . $address; - } - - // check if this is an IPv6 address which includes multiple colons but no square brackets - $pos = \strrpos($address, ':'); - if ($pos !== false && \strpos($address, ':') < $pos && \substr($address, 0, 1) !== '[') { - $address = '[' . \substr($address, 0, $pos) . ']:' . \substr($address, $pos + 1); // @codeCoverageIgnore - } - - return ($this->encryptionEnabled ? 'tls' : 'tcp') . '://' . $address; - } -} diff --git a/vendor/react/socket/src/ConnectionInterface.php b/vendor/react/socket/src/ConnectionInterface.php deleted file mode 100644 index 64613b5..0000000 --- a/vendor/react/socket/src/ConnectionInterface.php +++ /dev/null @@ -1,119 +0,0 @@ -on('data', function ($chunk) { - * echo $chunk; - * }); - * - * $connection->on('end', function () { - * echo 'ended'; - * }); - * - * $connection->on('error', function (Exception $e) { - * echo 'error: ' . $e->getMessage(); - * }); - * - * $connection->on('close', function () { - * echo 'closed'; - * }); - * - * $connection->write($data); - * $connection->end($data = null); - * $connection->close(); - * // … - * ``` - * - * For more details, see the - * [`DuplexStreamInterface`](https://github.com/reactphp/stream#duplexstreaminterface). - * - * @see DuplexStreamInterface - * @see ServerInterface - * @see ConnectorInterface - */ -interface ConnectionInterface extends DuplexStreamInterface -{ - /** - * Returns the full remote address (URI) where this connection has been established with - * - * ```php - * $address = $connection->getRemoteAddress(); - * echo 'Connection with ' . $address . PHP_EOL; - * ``` - * - * If the remote address can not be determined or is unknown at this time (such as - * after the connection has been closed), it MAY return a `NULL` value instead. - * - * Otherwise, it will return the full address (URI) as a string value, such - * as `tcp://127.0.0.1:8080`, `tcp://[::1]:80`, `tls://127.0.0.1:443`, - * `unix://example.sock` or `unix:///path/to/example.sock`. - * Note that individual URI components are application specific and depend - * on the underlying transport protocol. - * - * If this is a TCP/IP based connection and you only want the remote IP, you may - * use something like this: - * - * ```php - * $address = $connection->getRemoteAddress(); - * $ip = trim(parse_url($address, PHP_URL_HOST), '[]'); - * echo 'Connection with ' . $ip . PHP_EOL; - * ``` - * - * @return ?string remote address (URI) or null if unknown - */ - public function getRemoteAddress(); - - /** - * Returns the full local address (full URI with scheme, IP and port) where this connection has been established with - * - * ```php - * $address = $connection->getLocalAddress(); - * echo 'Connection with ' . $address . PHP_EOL; - * ``` - * - * If the local address can not be determined or is unknown at this time (such as - * after the connection has been closed), it MAY return a `NULL` value instead. - * - * Otherwise, it will return the full address (URI) as a string value, such - * as `tcp://127.0.0.1:8080`, `tcp://[::1]:80`, `tls://127.0.0.1:443`, - * `unix://example.sock` or `unix:///path/to/example.sock`. - * Note that individual URI components are application specific and depend - * on the underlying transport protocol. - * - * This method complements the [`getRemoteAddress()`](#getremoteaddress) method, - * so they should not be confused. - * - * If your `TcpServer` instance is listening on multiple interfaces (e.g. using - * the address `0.0.0.0`), you can use this method to find out which interface - * actually accepted this connection (such as a public or local interface). - * - * If your system has multiple interfaces (e.g. a WAN and a LAN interface), - * you can use this method to find out which interface was actually - * used for this connection. - * - * @return ?string local address (URI) or null if unknown - * @see self::getRemoteAddress() - */ - public function getLocalAddress(); -} diff --git a/vendor/react/socket/src/Connector.php b/vendor/react/socket/src/Connector.php deleted file mode 100644 index 15faa46..0000000 --- a/vendor/react/socket/src/Connector.php +++ /dev/null @@ -1,236 +0,0 @@ - true, - 'tls' => true, - 'unix' => true, - - 'dns' => true, - 'timeout' => true, - 'happy_eyeballs' => true, - ); - - if ($context['timeout'] === true) { - $context['timeout'] = (float)\ini_get("default_socket_timeout"); - } - - if ($context['tcp'] instanceof ConnectorInterface) { - $tcp = $context['tcp']; - } else { - $tcp = new TcpConnector( - $loop, - \is_array($context['tcp']) ? $context['tcp'] : array() - ); - } - - if ($context['dns'] !== false) { - if ($context['dns'] instanceof ResolverInterface) { - $resolver = $context['dns']; - } else { - if ($context['dns'] !== true) { - $config = $context['dns']; - } else { - // try to load nameservers from system config or default to Google's public DNS - $config = DnsConfig::loadSystemConfigBlocking(); - if (!$config->nameservers) { - $config->nameservers[] = '8.8.8.8'; // @codeCoverageIgnore - } - } - - $factory = new DnsFactory(); - $resolver = $factory->createCached( - $config, - $loop - ); - } - - if ($context['happy_eyeballs'] === true) { - $tcp = new HappyEyeBallsConnector($loop, $tcp, $resolver); - } else { - $tcp = new DnsConnector($tcp, $resolver); - } - } - - if ($context['tcp'] !== false) { - $context['tcp'] = $tcp; - - if ($context['timeout'] !== false) { - $context['tcp'] = new TimeoutConnector( - $context['tcp'], - $context['timeout'], - $loop - ); - } - - $this->connectors['tcp'] = $context['tcp']; - } - - if ($context['tls'] !== false) { - if (!$context['tls'] instanceof ConnectorInterface) { - $context['tls'] = new SecureConnector( - $tcp, - $loop, - \is_array($context['tls']) ? $context['tls'] : array() - ); - } - - if ($context['timeout'] !== false) { - $context['tls'] = new TimeoutConnector( - $context['tls'], - $context['timeout'], - $loop - ); - } - - $this->connectors['tls'] = $context['tls']; - } - - if ($context['unix'] !== false) { - if (!$context['unix'] instanceof ConnectorInterface) { - $context['unix'] = new UnixConnector($loop); - } - $this->connectors['unix'] = $context['unix']; - } - } - - public function connect($uri) - { - $scheme = 'tcp'; - if (\strpos($uri, '://') !== false) { - $scheme = (string)\substr($uri, 0, \strpos($uri, '://')); - } - - if (!isset($this->connectors[$scheme])) { - return \React\Promise\reject(new \RuntimeException( - 'No connector available for URI scheme "' . $scheme . '" (EINVAL)', - \defined('SOCKET_EINVAL') ? \SOCKET_EINVAL : (\defined('PCNTL_EINVAL') ? \PCNTL_EINVAL : 22) - )); - } - - return $this->connectors[$scheme]->connect($uri); - } - - - /** - * [internal] Builds on URI from the given URI parts and ip address with original hostname as query - * - * @param array $parts - * @param string $host - * @param string $ip - * @return string - * @internal - */ - public static function uri(array $parts, $host, $ip) - { - $uri = ''; - - // prepend original scheme if known - if (isset($parts['scheme'])) { - $uri .= $parts['scheme'] . '://'; - } - - if (\strpos($ip, ':') !== false) { - // enclose IPv6 addresses in square brackets before appending port - $uri .= '[' . $ip . ']'; - } else { - $uri .= $ip; - } - - // append original port if known - if (isset($parts['port'])) { - $uri .= ':' . $parts['port']; - } - - // append orignal path if known - if (isset($parts['path'])) { - $uri .= $parts['path']; - } - - // append original query if known - if (isset($parts['query'])) { - $uri .= '?' . $parts['query']; - } - - // append original hostname as query if resolved via DNS and if - // destination URI does not contain "hostname" query param already - $args = array(); - \parse_str(isset($parts['query']) ? $parts['query'] : '', $args); - if ($host !== $ip && !isset($args['hostname'])) { - $uri .= (isset($parts['query']) ? '&' : '?') . 'hostname=' . \rawurlencode($host); - } - - // append original fragment if known - if (isset($parts['fragment'])) { - $uri .= '#' . $parts['fragment']; - } - - return $uri; - } -} diff --git a/vendor/react/socket/src/ConnectorInterface.php b/vendor/react/socket/src/ConnectorInterface.php deleted file mode 100644 index 1f07b75..0000000 --- a/vendor/react/socket/src/ConnectorInterface.php +++ /dev/null @@ -1,59 +0,0 @@ -connect('google.com:443')->then( - * function (React\Socket\ConnectionInterface $connection) { - * // connection successfully established - * }, - * function (Exception $error) { - * // failed to connect due to $error - * } - * ); - * ``` - * - * The returned Promise MUST be implemented in such a way that it can be - * cancelled when it is still pending. Cancelling a pending promise MUST - * reject its value with an Exception. It SHOULD clean up any underlying - * resources and references as applicable. - * - * ```php - * $promise = $connector->connect($uri); - * - * $promise->cancel(); - * ``` - * - * @param string $uri - * @return \React\Promise\PromiseInterface - * Resolves with a `ConnectionInterface` on success or rejects with an `Exception` on error. - * @see ConnectionInterface - */ - public function connect($uri); -} diff --git a/vendor/react/socket/src/DnsConnector.php b/vendor/react/socket/src/DnsConnector.php deleted file mode 100644 index d2fb2c7..0000000 --- a/vendor/react/socket/src/DnsConnector.php +++ /dev/null @@ -1,117 +0,0 @@ -connector = $connector; - $this->resolver = $resolver; - } - - public function connect($uri) - { - $original = $uri; - if (\strpos($uri, '://') === false) { - $uri = 'tcp://' . $uri; - $parts = \parse_url($uri); - if (isset($parts['scheme'])) { - unset($parts['scheme']); - } - } else { - $parts = \parse_url($uri); - } - - if (!$parts || !isset($parts['host'])) { - return Promise\reject(new \InvalidArgumentException( - 'Given URI "' . $original . '" is invalid (EINVAL)', - \defined('SOCKET_EINVAL') ? \SOCKET_EINVAL : (\defined('PCNTL_EINVAL') ? \PCNTL_EINVAL : 22) - )); - } - - $host = \trim($parts['host'], '[]'); - $connector = $this->connector; - - // skip DNS lookup / URI manipulation if this URI already contains an IP - if (@\inet_pton($host) !== false) { - return $connector->connect($original); - } - - $promise = $this->resolver->resolve($host); - $resolved = null; - - return new Promise\Promise( - function ($resolve, $reject) use (&$promise, &$resolved, $uri, $connector, $host, $parts) { - // resolve/reject with result of DNS lookup - $promise->then(function ($ip) use (&$promise, &$resolved, $uri, $connector, $host, $parts) { - $resolved = $ip; - - return $promise = $connector->connect( - Connector::uri($parts, $host, $ip) - )->then(null, function (\Exception $e) use ($uri) { - if ($e instanceof \RuntimeException) { - $message = \preg_replace('/^(Connection to [^ ]+)[&?]hostname=[^ &]+/', '$1', $e->getMessage()); - $e = new \RuntimeException( - 'Connection to ' . $uri . ' failed: ' . $message, - $e->getCode(), - $e - ); - - // avoid garbage references by replacing all closures in call stack. - // what a lovely piece of code! - $r = new \ReflectionProperty('Exception', 'trace'); - $r->setAccessible(true); - $trace = $r->getValue($e); - - // Exception trace arguments are not available on some PHP 7.4 installs - // @codeCoverageIgnoreStart - foreach ($trace as $ti => $one) { - if (isset($one['args'])) { - foreach ($one['args'] as $ai => $arg) { - if ($arg instanceof \Closure) { - $trace[$ti]['args'][$ai] = 'Object(' . \get_class($arg) . ')'; - } - } - } - } - // @codeCoverageIgnoreEnd - $r->setValue($e, $trace); - } - - throw $e; - }); - }, function ($e) use ($uri, $reject) { - $reject(new \RuntimeException('Connection to ' . $uri .' failed during DNS lookup: ' . $e->getMessage(), 0, $e)); - })->then($resolve, $reject); - }, - function ($_, $reject) use (&$promise, &$resolved, $uri) { - // cancellation should reject connection attempt - // reject DNS resolution with custom reason, otherwise rely on connection cancellation below - if ($resolved === null) { - $reject(new \RuntimeException( - 'Connection to ' . $uri . ' cancelled during DNS lookup (ECONNABORTED)', - \defined('SOCKET_ECONNABORTED') ? \SOCKET_ECONNABORTED : 103 - )); - } - - // (try to) cancel pending DNS lookup / connection attempt - if ($promise instanceof PromiseInterface && \method_exists($promise, 'cancel')) { - // overwrite callback arguments for PHP7+ only, so they do not show - // up in the Exception trace and do not cause a possible cyclic reference. - $_ = $reject = null; - - $promise->cancel(); - $promise = null; - } - } - ); - } -} diff --git a/vendor/react/socket/src/FdServer.php b/vendor/react/socket/src/FdServer.php deleted file mode 100644 index 8e46719..0000000 --- a/vendor/react/socket/src/FdServer.php +++ /dev/null @@ -1,222 +0,0 @@ -on('connection', function (ConnectionInterface $connection) { - * echo 'Plaintext connection from ' . $connection->getRemoteAddress() . PHP_EOL; - * $connection->write('hello there!' . PHP_EOL); - * … - * }); - * ``` - * - * See also the `ServerInterface` for more details. - * - * @see ServerInterface - * @see ConnectionInterface - * @internal - */ -final class FdServer extends EventEmitter implements ServerInterface -{ - private $master; - private $loop; - private $unix = false; - private $listening = false; - - /** - * Creates a socket server and starts listening on the given file descriptor - * - * This starts accepting new incoming connections on the given file descriptor. - * See also the `connection event` documented in the `ServerInterface` - * for more details. - * - * ```php - * $socket = new React\Socket\FdServer(3); - * ``` - * - * If the given FD is invalid or out of range, it will throw an `InvalidArgumentException`: - * - * ```php - * // throws InvalidArgumentException - * $socket = new React\Socket\FdServer(-1); - * ``` - * - * If the given FD appears to be valid, but listening on it fails (such as - * if the FD does not exist or does not refer to a socket server), it will - * throw a `RuntimeException`: - * - * ```php - * // throws RuntimeException because FD does not reference a socket server - * $socket = new React\Socket\FdServer(0, $loop); - * ``` - * - * Note that these error conditions may vary depending on your system and/or - * configuration. - * See the exception message and code for more details about the actual error - * condition. - * - * @param int|string $fd FD number such as `3` or as URL in the form of `php://fd/3` - * @param ?LoopInterface $loop - * @throws \InvalidArgumentException if the listening address is invalid - * @throws \RuntimeException if listening on this address fails (already in use etc.) - */ - public function __construct($fd, $loop = null) - { - if (\preg_match('#^php://fd/(\d+)$#', $fd, $m)) { - $fd = (int) $m[1]; - } - if (!\is_int($fd) || $fd < 0 || $fd >= \PHP_INT_MAX) { - throw new \InvalidArgumentException( - 'Invalid FD number given (EINVAL)', - \defined('SOCKET_EINVAL') ? \SOCKET_EINVAL : (\defined('PCNTL_EINVAL') ? \PCNTL_EINVAL : 22) - ); - } - - if ($loop !== null && !$loop instanceof LoopInterface) { // manual type check to support legacy PHP < 7.1 - throw new \InvalidArgumentException('Argument #2 ($loop) expected null|React\EventLoop\LoopInterface'); - } - - $this->loop = $loop ?: Loop::get(); - - $errno = 0; - $errstr = ''; - \set_error_handler(function ($_, $error) use (&$errno, &$errstr) { - // Match errstr from PHP's warning message. - // fopen(php://fd/3): Failed to open stream: Error duping file descriptor 3; possibly it doesn't exist: [9]: Bad file descriptor - \preg_match('/\[(\d+)\]: (.*)/', $error, $m); - $errno = isset($m[1]) ? (int) $m[1] : 0; - $errstr = isset($m[2]) ? $m[2] : $error; - }); - - $this->master = \fopen('php://fd/' . $fd, 'r+'); - - \restore_error_handler(); - - if (false === $this->master) { - throw new \RuntimeException( - 'Failed to listen on FD ' . $fd . ': ' . $errstr . SocketServer::errconst($errno), - $errno - ); - } - - $meta = \stream_get_meta_data($this->master); - if (!isset($meta['stream_type']) || $meta['stream_type'] !== 'tcp_socket') { - \fclose($this->master); - - $errno = \defined('SOCKET_ENOTSOCK') ? \SOCKET_ENOTSOCK : 88; - $errstr = \function_exists('socket_strerror') ? \socket_strerror($errno) : 'Not a socket'; - - throw new \RuntimeException( - 'Failed to listen on FD ' . $fd . ': ' . $errstr . ' (ENOTSOCK)', - $errno - ); - } - - // Socket should not have a peer address if this is a listening socket. - // Looks like this work-around is the closest we can get because PHP doesn't expose SO_ACCEPTCONN even with ext-sockets. - if (\stream_socket_get_name($this->master, true) !== false) { - \fclose($this->master); - - $errno = \defined('SOCKET_EISCONN') ? \SOCKET_EISCONN : 106; - $errstr = \function_exists('socket_strerror') ? \socket_strerror($errno) : 'Socket is connected'; - - throw new \RuntimeException( - 'Failed to listen on FD ' . $fd . ': ' . $errstr . ' (EISCONN)', - $errno - ); - } - - // Assume this is a Unix domain socket (UDS) when its listening address doesn't parse as a valid URL with a port. - // Looks like this work-around is the closest we can get because PHP doesn't expose SO_DOMAIN even with ext-sockets. - $this->unix = \parse_url($this->getAddress(), \PHP_URL_PORT) === false; - - \stream_set_blocking($this->master, false); - - $this->resume(); - } - - public function getAddress() - { - if (!\is_resource($this->master)) { - return null; - } - - $address = \stream_socket_get_name($this->master, false); - - if ($this->unix === true) { - return 'unix://' . $address; - } - - // check if this is an IPv6 address which includes multiple colons but no square brackets - $pos = \strrpos($address, ':'); - if ($pos !== false && \strpos($address, ':') < $pos && \substr($address, 0, 1) !== '[') { - $address = '[' . \substr($address, 0, $pos) . ']:' . \substr($address, $pos + 1); // @codeCoverageIgnore - } - - return 'tcp://' . $address; - } - - public function pause() - { - if (!$this->listening) { - return; - } - - $this->loop->removeReadStream($this->master); - $this->listening = false; - } - - public function resume() - { - if ($this->listening || !\is_resource($this->master)) { - return; - } - - $that = $this; - $this->loop->addReadStream($this->master, function ($master) use ($that) { - try { - $newSocket = SocketServer::accept($master); - } catch (\RuntimeException $e) { - $that->emit('error', array($e)); - return; - } - $that->handleConnection($newSocket); - }); - $this->listening = true; - } - - public function close() - { - if (!\is_resource($this->master)) { - return; - } - - $this->pause(); - \fclose($this->master); - $this->removeAllListeners(); - } - - /** @internal */ - public function handleConnection($socket) - { - $connection = new Connection($socket, $this->loop); - $connection->unix = $this->unix; - - $this->emit('connection', array($connection)); - } -} diff --git a/vendor/react/socket/src/FixedUriConnector.php b/vendor/react/socket/src/FixedUriConnector.php deleted file mode 100644 index f83241d..0000000 --- a/vendor/react/socket/src/FixedUriConnector.php +++ /dev/null @@ -1,41 +0,0 @@ -connect('localhost:80'); - * ``` - */ -class FixedUriConnector implements ConnectorInterface -{ - private $uri; - private $connector; - - /** - * @param string $uri - * @param ConnectorInterface $connector - */ - public function __construct($uri, ConnectorInterface $connector) - { - $this->uri = $uri; - $this->connector = $connector; - } - - public function connect($_) - { - return $this->connector->connect($this->uri); - } -} diff --git a/vendor/react/socket/src/HappyEyeBallsConnectionBuilder.php b/vendor/react/socket/src/HappyEyeBallsConnectionBuilder.php deleted file mode 100644 index d4f05e8..0000000 --- a/vendor/react/socket/src/HappyEyeBallsConnectionBuilder.php +++ /dev/null @@ -1,334 +0,0 @@ - false, - Message::TYPE_AAAA => false, - ); - public $resolverPromises = array(); - public $connectionPromises = array(); - public $connectQueue = array(); - public $nextAttemptTimer; - public $parts; - public $ipsCount = 0; - public $failureCount = 0; - public $resolve; - public $reject; - - public $lastErrorFamily; - public $lastError6; - public $lastError4; - - public function __construct(LoopInterface $loop, ConnectorInterface $connector, ResolverInterface $resolver, $uri, $host, $parts) - { - $this->loop = $loop; - $this->connector = $connector; - $this->resolver = $resolver; - $this->uri = $uri; - $this->host = $host; - $this->parts = $parts; - } - - public function connect() - { - $that = $this; - return new Promise\Promise(function ($resolve, $reject) use ($that) { - $lookupResolve = function ($type) use ($that, $resolve, $reject) { - return function (array $ips) use ($that, $type, $resolve, $reject) { - unset($that->resolverPromises[$type]); - $that->resolved[$type] = true; - - $that->mixIpsIntoConnectQueue($ips); - - // start next connection attempt if not already awaiting next - if ($that->nextAttemptTimer === null && $that->connectQueue) { - $that->check($resolve, $reject); - } - }; - }; - - $that->resolverPromises[Message::TYPE_AAAA] = $that->resolve(Message::TYPE_AAAA, $reject)->then($lookupResolve(Message::TYPE_AAAA)); - $that->resolverPromises[Message::TYPE_A] = $that->resolve(Message::TYPE_A, $reject)->then(function (array $ips) use ($that) { - // happy path: IPv6 has resolved already (or could not resolve), continue with IPv4 addresses - if ($that->resolved[Message::TYPE_AAAA] === true || !$ips) { - return $ips; - } - - // Otherwise delay processing IPv4 lookup until short timer passes or IPv6 resolves in the meantime - $deferred = new Promise\Deferred(function () use (&$ips) { - // discard all IPv4 addresses if cancelled - $ips = array(); - }); - $timer = $that->loop->addTimer($that::RESOLUTION_DELAY, function () use ($deferred, $ips) { - $deferred->resolve($ips); - }); - - $that->resolverPromises[Message::TYPE_AAAA]->then(function () use ($that, $timer, $deferred, &$ips) { - $that->loop->cancelTimer($timer); - $deferred->resolve($ips); - }); - - return $deferred->promise(); - })->then($lookupResolve(Message::TYPE_A)); - }, function ($_, $reject) use ($that) { - $reject(new \RuntimeException( - 'Connection to ' . $that->uri . ' cancelled' . (!$that->connectionPromises ? ' during DNS lookup' : '') . ' (ECONNABORTED)', - \defined('SOCKET_ECONNABORTED') ? \SOCKET_ECONNABORTED : 103 - )); - $_ = $reject = null; - - $that->cleanUp(); - }); - } - - /** - * @internal - * @param int $type DNS query type - * @param callable $reject - * @return \React\Promise\PromiseInterface Returns a promise that - * always resolves with a list of IP addresses on success or an empty - * list on error. - */ - public function resolve($type, $reject) - { - $that = $this; - return $that->resolver->resolveAll($that->host, $type)->then(null, function (\Exception $e) use ($type, $reject, $that) { - unset($that->resolverPromises[$type]); - $that->resolved[$type] = true; - - if ($type === Message::TYPE_A) { - $that->lastError4 = $e->getMessage(); - $that->lastErrorFamily = 4; - } else { - $that->lastError6 = $e->getMessage(); - $that->lastErrorFamily = 6; - } - - // cancel next attempt timer when there are no more IPs to connect to anymore - if ($that->nextAttemptTimer !== null && !$that->connectQueue) { - $that->loop->cancelTimer($that->nextAttemptTimer); - $that->nextAttemptTimer = null; - } - - if ($that->hasBeenResolved() && $that->ipsCount === 0) { - $reject(new \RuntimeException( - $that->error(), - 0, - $e - )); - } - - // Exception already handled above, so don't throw an unhandled rejection here - return array(); - }); - } - - /** - * @internal - */ - public function check($resolve, $reject) - { - $ip = \array_shift($this->connectQueue); - - // start connection attempt and remember array position to later unset again - $this->connectionPromises[] = $this->attemptConnection($ip); - \end($this->connectionPromises); - $index = \key($this->connectionPromises); - - $that = $this; - $that->connectionPromises[$index]->then(function ($connection) use ($that, $index, $resolve) { - unset($that->connectionPromises[$index]); - - $that->cleanUp(); - - $resolve($connection); - }, function (\Exception $e) use ($that, $index, $ip, $resolve, $reject) { - unset($that->connectionPromises[$index]); - - $that->failureCount++; - - $message = \preg_replace('/^(Connection to [^ ]+)[&?]hostname=[^ &]+/', '$1', $e->getMessage()); - if (\strpos($ip, ':') === false) { - $that->lastError4 = $message; - $that->lastErrorFamily = 4; - } else { - $that->lastError6 = $message; - $that->lastErrorFamily = 6; - } - - // start next connection attempt immediately on error - if ($that->connectQueue) { - if ($that->nextAttemptTimer !== null) { - $that->loop->cancelTimer($that->nextAttemptTimer); - $that->nextAttemptTimer = null; - } - - $that->check($resolve, $reject); - } - - if ($that->hasBeenResolved() === false) { - return; - } - - if ($that->ipsCount === $that->failureCount) { - $that->cleanUp(); - - $reject(new \RuntimeException( - $that->error(), - $e->getCode(), - $e - )); - } - }); - - // Allow next connection attempt in 100ms: https://tools.ietf.org/html/rfc8305#section-5 - // Only start timer when more IPs are queued or when DNS query is still pending (might add more IPs) - if ($this->nextAttemptTimer === null && (\count($this->connectQueue) > 0 || $this->resolved[Message::TYPE_A] === false || $this->resolved[Message::TYPE_AAAA] === false)) { - $this->nextAttemptTimer = $this->loop->addTimer(self::CONNECTION_ATTEMPT_DELAY, function () use ($that, $resolve, $reject) { - $that->nextAttemptTimer = null; - - if ($that->connectQueue) { - $that->check($resolve, $reject); - } - }); - } - } - - /** - * @internal - */ - public function attemptConnection($ip) - { - $uri = Connector::uri($this->parts, $this->host, $ip); - - return $this->connector->connect($uri); - } - - /** - * @internal - */ - public function cleanUp() - { - // clear list of outstanding IPs to avoid creating new connections - $this->connectQueue = array(); - - // cancel pending connection attempts - foreach ($this->connectionPromises as $connectionPromise) { - if ($connectionPromise instanceof PromiseInterface && \method_exists($connectionPromise, 'cancel')) { - $connectionPromise->cancel(); - } - } - - // cancel pending DNS resolution (cancel IPv4 first in case it is awaiting IPv6 resolution delay) - foreach (\array_reverse($this->resolverPromises) as $resolverPromise) { - if ($resolverPromise instanceof PromiseInterface && \method_exists($resolverPromise, 'cancel')) { - $resolverPromise->cancel(); - } - } - - if ($this->nextAttemptTimer instanceof TimerInterface) { - $this->loop->cancelTimer($this->nextAttemptTimer); - $this->nextAttemptTimer = null; - } - } - - /** - * @internal - */ - public function hasBeenResolved() - { - foreach ($this->resolved as $typeHasBeenResolved) { - if ($typeHasBeenResolved === false) { - return false; - } - } - - return true; - } - - /** - * Mixes an array of IP addresses into the connect queue in such a way they alternate when attempting to connect. - * The goal behind it is first attempt to connect to IPv6, then to IPv4, then to IPv6 again until one of those - * attempts succeeds. - * - * @link https://tools.ietf.org/html/rfc8305#section-4 - * - * @internal - */ - public function mixIpsIntoConnectQueue(array $ips) - { - \shuffle($ips); - $this->ipsCount += \count($ips); - $connectQueueStash = $this->connectQueue; - $this->connectQueue = array(); - while (\count($connectQueueStash) > 0 || \count($ips) > 0) { - if (\count($ips) > 0) { - $this->connectQueue[] = \array_shift($ips); - } - if (\count($connectQueueStash) > 0) { - $this->connectQueue[] = \array_shift($connectQueueStash); - } - } - } - - /** - * @internal - * @return string - */ - public function error() - { - if ($this->lastError4 === $this->lastError6) { - $message = $this->lastError6; - } elseif ($this->lastErrorFamily === 6) { - $message = 'Last error for IPv6: ' . $this->lastError6 . '. Previous error for IPv4: ' . $this->lastError4; - } else { - $message = 'Last error for IPv4: ' . $this->lastError4 . '. Previous error for IPv6: ' . $this->lastError6; - } - - if ($this->hasBeenResolved() && $this->ipsCount === 0) { - if ($this->lastError6 === $this->lastError4) { - $message = ' during DNS lookup: ' . $this->lastError6; - } else { - $message = ' during DNS lookup. ' . $message; - } - } else { - $message = ': ' . $message; - } - - return 'Connection to ' . $this->uri . ' failed' . $message; - } -} diff --git a/vendor/react/socket/src/HappyEyeBallsConnector.php b/vendor/react/socket/src/HappyEyeBallsConnector.php deleted file mode 100644 index a5511ac..0000000 --- a/vendor/react/socket/src/HappyEyeBallsConnector.php +++ /dev/null @@ -1,80 +0,0 @@ -loop = $loop ?: Loop::get(); - $this->connector = $connector; - $this->resolver = $resolver; - } - - public function connect($uri) - { - $original = $uri; - if (\strpos($uri, '://') === false) { - $uri = 'tcp://' . $uri; - $parts = \parse_url($uri); - if (isset($parts['scheme'])) { - unset($parts['scheme']); - } - } else { - $parts = \parse_url($uri); - } - - if (!$parts || !isset($parts['host'])) { - return Promise\reject(new \InvalidArgumentException( - 'Given URI "' . $original . '" is invalid (EINVAL)', - \defined('SOCKET_EINVAL') ? \SOCKET_EINVAL : (\defined('PCNTL_EINVAL') ? \PCNTL_EINVAL : 22) - )); - } - - $host = \trim($parts['host'], '[]'); - - // skip DNS lookup / URI manipulation if this URI already contains an IP - if (@\inet_pton($host) !== false) { - return $this->connector->connect($original); - } - - $builder = new HappyEyeBallsConnectionBuilder( - $this->loop, - $this->connector, - $this->resolver, - $uri, - $host, - $parts - ); - return $builder->connect(); - } -} diff --git a/vendor/react/socket/src/LimitingServer.php b/vendor/react/socket/src/LimitingServer.php deleted file mode 100644 index d19000b..0000000 --- a/vendor/react/socket/src/LimitingServer.php +++ /dev/null @@ -1,203 +0,0 @@ -on('connection', function (React\Socket\ConnectionInterface $connection) { - * $connection->write('hello there!' . PHP_EOL); - * … - * }); - * ``` - * - * See also the `ServerInterface` for more details. - * - * @see ServerInterface - * @see ConnectionInterface - */ -class LimitingServer extends EventEmitter implements ServerInterface -{ - private $connections = array(); - private $server; - private $limit; - - private $pauseOnLimit = false; - private $autoPaused = false; - private $manuPaused = false; - - /** - * Instantiates a new LimitingServer. - * - * You have to pass a maximum number of open connections to ensure - * the server will automatically reject (close) connections once this limit - * is exceeded. In this case, it will emit an `error` event to inform about - * this and no `connection` event will be emitted. - * - * ```php - * $server = new React\Socket\LimitingServer($server, 100); - * $server->on('connection', function (React\Socket\ConnectionInterface $connection) { - * $connection->write('hello there!' . PHP_EOL); - * … - * }); - * ``` - * - * You MAY pass a `null` limit in order to put no limit on the number of - * open connections and keep accepting new connection until you run out of - * operating system resources (such as open file handles). This may be - * useful if you do not want to take care of applying a limit but still want - * to use the `getConnections()` method. - * - * You can optionally configure the server to pause accepting new - * connections once the connection limit is reached. In this case, it will - * pause the underlying server and no longer process any new connections at - * all, thus also no longer closing any excessive connections. - * The underlying operating system is responsible for keeping a backlog of - * pending connections until its limit is reached, at which point it will - * start rejecting further connections. - * Once the server is below the connection limit, it will continue consuming - * connections from the backlog and will process any outstanding data on - * each connection. - * This mode may be useful for some protocols that are designed to wait for - * a response message (such as HTTP), but may be less useful for other - * protocols that demand immediate responses (such as a "welcome" message in - * an interactive chat). - * - * ```php - * $server = new React\Socket\LimitingServer($server, 100, true); - * $server->on('connection', function (React\Socket\ConnectionInterface $connection) { - * $connection->write('hello there!' . PHP_EOL); - * … - * }); - * ``` - * - * @param ServerInterface $server - * @param int|null $connectionLimit - * @param bool $pauseOnLimit - */ - public function __construct(ServerInterface $server, $connectionLimit, $pauseOnLimit = false) - { - $this->server = $server; - $this->limit = $connectionLimit; - if ($connectionLimit !== null) { - $this->pauseOnLimit = $pauseOnLimit; - } - - $this->server->on('connection', array($this, 'handleConnection')); - $this->server->on('error', array($this, 'handleError')); - } - - /** - * Returns an array with all currently active connections - * - * ```php - * foreach ($server->getConnection() as $connection) { - * $connection->write('Hi!'); - * } - * ``` - * - * @return ConnectionInterface[] - */ - public function getConnections() - { - return $this->connections; - } - - public function getAddress() - { - return $this->server->getAddress(); - } - - public function pause() - { - if (!$this->manuPaused) { - $this->manuPaused = true; - - if (!$this->autoPaused) { - $this->server->pause(); - } - } - } - - public function resume() - { - if ($this->manuPaused) { - $this->manuPaused = false; - - if (!$this->autoPaused) { - $this->server->resume(); - } - } - } - - public function close() - { - $this->server->close(); - } - - /** @internal */ - public function handleConnection(ConnectionInterface $connection) - { - // close connection if limit exceeded - if ($this->limit !== null && \count($this->connections) >= $this->limit) { - $this->handleError(new \OverflowException('Connection closed because server reached connection limit')); - $connection->close(); - return; - } - - $this->connections[] = $connection; - $that = $this; - $connection->on('close', function () use ($that, $connection) { - $that->handleDisconnection($connection); - }); - - // pause accepting new connections if limit exceeded - if ($this->pauseOnLimit && !$this->autoPaused && \count($this->connections) >= $this->limit) { - $this->autoPaused = true; - - if (!$this->manuPaused) { - $this->server->pause(); - } - } - - $this->emit('connection', array($connection)); - } - - /** @internal */ - public function handleDisconnection(ConnectionInterface $connection) - { - unset($this->connections[\array_search($connection, $this->connections)]); - - // continue accepting new connection if below limit - if ($this->autoPaused && \count($this->connections) < $this->limit) { - $this->autoPaused = false; - - if (!$this->manuPaused) { - $this->server->resume(); - } - } - } - - /** @internal */ - public function handleError(\Exception $error) - { - $this->emit('error', array($error)); - } -} diff --git a/vendor/react/socket/src/SecureConnector.php b/vendor/react/socket/src/SecureConnector.php deleted file mode 100644 index 08255ac..0000000 --- a/vendor/react/socket/src/SecureConnector.php +++ /dev/null @@ -1,132 +0,0 @@ -connector = $connector; - $this->streamEncryption = new StreamEncryption($loop ?: Loop::get(), false); - $this->context = $context; - } - - public function connect($uri) - { - if (!\function_exists('stream_socket_enable_crypto')) { - return Promise\reject(new \BadMethodCallException('Encryption not supported on your platform (HHVM < 3.8?)')); // @codeCoverageIgnore - } - - if (\strpos($uri, '://') === false) { - $uri = 'tls://' . $uri; - } - - $parts = \parse_url($uri); - if (!$parts || !isset($parts['scheme']) || $parts['scheme'] !== 'tls') { - return Promise\reject(new \InvalidArgumentException( - 'Given URI "' . $uri . '" is invalid (EINVAL)', - \defined('SOCKET_EINVAL') ? \SOCKET_EINVAL : (\defined('PCNTL_EINVAL') ? \PCNTL_EINVAL : 22) - )); - } - - $context = $this->context; - $encryption = $this->streamEncryption; - $connected = false; - /** @var \React\Promise\PromiseInterface $promise */ - $promise = $this->connector->connect( - \str_replace('tls://', '', $uri) - )->then(function (ConnectionInterface $connection) use ($context, $encryption, $uri, &$promise, &$connected) { - // (unencrypted) TCP/IP connection succeeded - $connected = true; - - if (!$connection instanceof Connection) { - $connection->close(); - throw new \UnexpectedValueException('Base connector does not use internal Connection class exposing stream resource'); - } - - // set required SSL/TLS context options - foreach ($context as $name => $value) { - \stream_context_set_option($connection->stream, 'ssl', $name, $value); - } - - // try to enable encryption - return $promise = $encryption->enable($connection)->then(null, function ($error) use ($connection, $uri) { - // establishing encryption failed => close invalid connection and return error - $connection->close(); - - throw new \RuntimeException( - 'Connection to ' . $uri . ' failed during TLS handshake: ' . $error->getMessage(), - $error->getCode() - ); - }); - }, function (\Exception $e) use ($uri) { - if ($e instanceof \RuntimeException) { - $message = \preg_replace('/^Connection to [^ ]+/', '', $e->getMessage()); - $e = new \RuntimeException( - 'Connection to ' . $uri . $message, - $e->getCode(), - $e - ); - - // avoid garbage references by replacing all closures in call stack. - // what a lovely piece of code! - $r = new \ReflectionProperty('Exception', 'trace'); - $r->setAccessible(true); - $trace = $r->getValue($e); - - // Exception trace arguments are not available on some PHP 7.4 installs - // @codeCoverageIgnoreStart - foreach ($trace as $ti => $one) { - if (isset($one['args'])) { - foreach ($one['args'] as $ai => $arg) { - if ($arg instanceof \Closure) { - $trace[$ti]['args'][$ai] = 'Object(' . \get_class($arg) . ')'; - } - } - } - } - // @codeCoverageIgnoreEnd - $r->setValue($e, $trace); - } - - throw $e; - }); - - return new \React\Promise\Promise( - function ($resolve, $reject) use ($promise) { - $promise->then($resolve, $reject); - }, - function ($_, $reject) use (&$promise, $uri, &$connected) { - if ($connected) { - $reject(new \RuntimeException( - 'Connection to ' . $uri . ' cancelled during TLS handshake (ECONNABORTED)', - \defined('SOCKET_ECONNABORTED') ? \SOCKET_ECONNABORTED : 103 - )); - } - - $promise->cancel(); - $promise = null; - } - ); - } -} diff --git a/vendor/react/socket/src/SecureServer.php b/vendor/react/socket/src/SecureServer.php deleted file mode 100644 index 5a202d2..0000000 --- a/vendor/react/socket/src/SecureServer.php +++ /dev/null @@ -1,210 +0,0 @@ -on('connection', function (React\Socket\ConnectionInterface $connection) { - * echo 'Secure connection from' . $connection->getRemoteAddress() . PHP_EOL; - * - * $connection->write('hello there!' . PHP_EOL); - * … - * }); - * ``` - * - * Whenever a client fails to perform a successful TLS handshake, it will emit an - * `error` event and then close the underlying TCP/IP connection: - * - * ```php - * $server->on('error', function (Exception $e) { - * echo 'Error' . $e->getMessage() . PHP_EOL; - * }); - * ``` - * - * See also the `ServerInterface` for more details. - * - * Note that the `SecureServer` class is a concrete implementation for TLS sockets. - * If you want to typehint in your higher-level protocol implementation, you SHOULD - * use the generic `ServerInterface` instead. - * - * @see ServerInterface - * @see ConnectionInterface - */ -final class SecureServer extends EventEmitter implements ServerInterface -{ - private $tcp; - private $encryption; - private $context; - - /** - * Creates a secure TLS server and starts waiting for incoming connections - * - * It does so by wrapping a `TcpServer` instance which waits for plaintext - * TCP/IP connections and then performs a TLS handshake for each connection. - * It thus requires valid [TLS context options], - * which in its most basic form may look something like this if you're using a - * PEM encoded certificate file: - * - * ```php - * $server = new React\Socket\TcpServer(8000); - * $server = new React\Socket\SecureServer($server, null, array( - * 'local_cert' => 'server.pem' - * )); - * ``` - * - * Note that the certificate file will not be loaded on instantiation but when an - * incoming connection initializes its TLS context. - * This implies that any invalid certificate file paths or contents will only cause - * an `error` event at a later time. - * - * If your private key is encrypted with a passphrase, you have to specify it - * like this: - * - * ```php - * $server = new React\Socket\TcpServer(8000); - * $server = new React\Socket\SecureServer($server, null, array( - * 'local_cert' => 'server.pem', - * 'passphrase' => 'secret' - * )); - * ``` - * - * Note that available [TLS context options], - * their defaults and effects of changing these may vary depending on your system - * and/or PHP version. - * Passing unknown context options has no effect. - * - * This class takes an optional `LoopInterface|null $loop` parameter that can be used to - * pass the event loop instance to use for this object. You can use a `null` value - * here in order to use the [default loop](https://github.com/reactphp/event-loop#loop). - * This value SHOULD NOT be given unless you're sure you want to explicitly use a - * given event loop instance. - * - * Advanced usage: Despite allowing any `ServerInterface` as first parameter, - * you SHOULD pass a `TcpServer` instance as first parameter, unless you - * know what you're doing. - * Internally, the `SecureServer` has to set the required TLS context options on - * the underlying stream resources. - * These resources are not exposed through any of the interfaces defined in this - * package, but only through the internal `Connection` class. - * The `TcpServer` class is guaranteed to emit connections that implement - * the `ConnectionInterface` and uses the internal `Connection` class in order to - * expose these underlying resources. - * If you use a custom `ServerInterface` and its `connection` event does not - * meet this requirement, the `SecureServer` will emit an `error` event and - * then close the underlying connection. - * - * @param ServerInterface|TcpServer $tcp - * @param ?LoopInterface $loop - * @param array $context - * @throws BadMethodCallException for legacy HHVM < 3.8 due to lack of support - * @see TcpServer - * @link https://www.php.net/manual/en/context.ssl.php for TLS context options - */ - public function __construct(ServerInterface $tcp, $loop = null, array $context = array()) - { - if ($loop !== null && !$loop instanceof LoopInterface) { // manual type check to support legacy PHP < 7.1 - throw new \InvalidArgumentException('Argument #2 ($loop) expected null|React\EventLoop\LoopInterface'); - } - - if (!\function_exists('stream_socket_enable_crypto')) { - throw new \BadMethodCallException('Encryption not supported on your platform (HHVM < 3.8?)'); // @codeCoverageIgnore - } - - // default to empty passphrase to suppress blocking passphrase prompt - $context += array( - 'passphrase' => '' - ); - - $this->tcp = $tcp; - $this->encryption = new StreamEncryption($loop ?: Loop::get()); - $this->context = $context; - - $that = $this; - $this->tcp->on('connection', function ($connection) use ($that) { - $that->handleConnection($connection); - }); - $this->tcp->on('error', function ($error) use ($that) { - $that->emit('error', array($error)); - }); - } - - public function getAddress() - { - $address = $this->tcp->getAddress(); - if ($address === null) { - return null; - } - - return \str_replace('tcp://' , 'tls://', $address); - } - - public function pause() - { - $this->tcp->pause(); - } - - public function resume() - { - $this->tcp->resume(); - } - - public function close() - { - return $this->tcp->close(); - } - - /** @internal */ - public function handleConnection(ConnectionInterface $connection) - { - if (!$connection instanceof Connection) { - $this->emit('error', array(new \UnexpectedValueException('Base server does not use internal Connection class exposing stream resource'))); - $connection->close(); - return; - } - - foreach ($this->context as $name => $value) { - \stream_context_set_option($connection->stream, 'ssl', $name, $value); - } - - // get remote address before starting TLS handshake in case connection closes during handshake - $remote = $connection->getRemoteAddress(); - $that = $this; - - $this->encryption->enable($connection)->then( - function ($conn) use ($that) { - $that->emit('connection', array($conn)); - }, - function ($error) use ($that, $connection, $remote) { - $error = new \RuntimeException( - 'Connection from ' . $remote . ' failed during TLS handshake: ' . $error->getMessage(), - $error->getCode() - ); - - $that->emit('error', array($error)); - $connection->close(); - } - ); - } -} diff --git a/vendor/react/socket/src/Server.php b/vendor/react/socket/src/Server.php deleted file mode 100644 index b24c556..0000000 --- a/vendor/react/socket/src/Server.php +++ /dev/null @@ -1,118 +0,0 @@ - $context); - } - - // apply default options if not explicitly given - $context += array( - 'tcp' => array(), - 'tls' => array(), - 'unix' => array() - ); - - $scheme = 'tcp'; - $pos = \strpos($uri, '://'); - if ($pos !== false) { - $scheme = \substr($uri, 0, $pos); - } - - if ($scheme === 'unix') { - $server = new UnixServer($uri, $loop, $context['unix']); - } else { - $server = new TcpServer(str_replace('tls://', '', $uri), $loop, $context['tcp']); - - if ($scheme === 'tls') { - $server = new SecureServer($server, $loop, $context['tls']); - } - } - - $this->server = $server; - - $that = $this; - $server->on('connection', function (ConnectionInterface $conn) use ($that) { - $that->emit('connection', array($conn)); - }); - $server->on('error', function (Exception $error) use ($that) { - $that->emit('error', array($error)); - }); - } - - public function getAddress() - { - return $this->server->getAddress(); - } - - public function pause() - { - $this->server->pause(); - } - - public function resume() - { - $this->server->resume(); - } - - public function close() - { - $this->server->close(); - } -} diff --git a/vendor/react/socket/src/ServerInterface.php b/vendor/react/socket/src/ServerInterface.php deleted file mode 100644 index aa79fa1..0000000 --- a/vendor/react/socket/src/ServerInterface.php +++ /dev/null @@ -1,151 +0,0 @@ -on('connection', function (React\Socket\ConnectionInterface $connection) { - * echo 'new connection' . PHP_EOL; - * }); - * ``` - * - * See also the `ConnectionInterface` for more details about handling the - * incoming connection. - * - * error event: - * The `error` event will be emitted whenever there's an error accepting a new - * connection from a client. - * - * ```php - * $socket->on('error', function (Exception $e) { - * echo 'error: ' . $e->getMessage() . PHP_EOL; - * }); - * ``` - * - * Note that this is not a fatal error event, i.e. the server keeps listening for - * new connections even after this event. - * - * @see ConnectionInterface - */ -interface ServerInterface extends EventEmitterInterface -{ - /** - * Returns the full address (URI) this server is currently listening on - * - * ```php - * $address = $socket->getAddress(); - * echo 'Server listening on ' . $address . PHP_EOL; - * ``` - * - * If the address can not be determined or is unknown at this time (such as - * after the socket has been closed), it MAY return a `NULL` value instead. - * - * Otherwise, it will return the full address (URI) as a string value, such - * as `tcp://127.0.0.1:8080`, `tcp://[::1]:80` or `tls://127.0.0.1:443`. - * Note that individual URI components are application specific and depend - * on the underlying transport protocol. - * - * If this is a TCP/IP based server and you only want the local port, you may - * use something like this: - * - * ```php - * $address = $socket->getAddress(); - * $port = parse_url($address, PHP_URL_PORT); - * echo 'Server listening on port ' . $port . PHP_EOL; - * ``` - * - * @return ?string the full listening address (URI) or NULL if it is unknown (not applicable to this server socket or already closed) - */ - public function getAddress(); - - /** - * Pauses accepting new incoming connections. - * - * Removes the socket resource from the EventLoop and thus stop accepting - * new connections. Note that the listening socket stays active and is not - * closed. - * - * This means that new incoming connections will stay pending in the - * operating system backlog until its configurable backlog is filled. - * Once the backlog is filled, the operating system may reject further - * incoming connections until the backlog is drained again by resuming - * to accept new connections. - * - * Once the server is paused, no futher `connection` events SHOULD - * be emitted. - * - * ```php - * $socket->pause(); - * - * $socket->on('connection', assertShouldNeverCalled()); - * ``` - * - * This method is advisory-only, though generally not recommended, the - * server MAY continue emitting `connection` events. - * - * Unless otherwise noted, a successfully opened server SHOULD NOT start - * in paused state. - * - * You can continue processing events by calling `resume()` again. - * - * Note that both methods can be called any number of times, in particular - * calling `pause()` more than once SHOULD NOT have any effect. - * Similarly, calling this after `close()` is a NO-OP. - * - * @see self::resume() - * @return void - */ - public function pause(); - - /** - * Resumes accepting new incoming connections. - * - * Re-attach the socket resource to the EventLoop after a previous `pause()`. - * - * ```php - * $socket->pause(); - * - * Loop::addTimer(1.0, function () use ($socket) { - * $socket->resume(); - * }); - * ``` - * - * Note that both methods can be called any number of times, in particular - * calling `resume()` without a prior `pause()` SHOULD NOT have any effect. - * Similarly, calling this after `close()` is a NO-OP. - * - * @see self::pause() - * @return void - */ - public function resume(); - - /** - * Shuts down this listening socket - * - * This will stop listening for new incoming connections on this socket. - * - * Calling this method more than once on the same instance is a NO-OP. - * - * @return void - */ - public function close(); -} diff --git a/vendor/react/socket/src/SocketServer.php b/vendor/react/socket/src/SocketServer.php deleted file mode 100644 index e987f5f..0000000 --- a/vendor/react/socket/src/SocketServer.php +++ /dev/null @@ -1,215 +0,0 @@ - array(), - 'tls' => array(), - 'unix' => array() - ); - - $scheme = 'tcp'; - $pos = \strpos($uri, '://'); - if ($pos !== false) { - $scheme = \substr($uri, 0, $pos); - } - - if ($scheme === 'unix') { - $server = new UnixServer($uri, $loop, $context['unix']); - } elseif ($scheme === 'php') { - $server = new FdServer($uri, $loop); - } else { - if (preg_match('#^(?:\w+://)?\d+$#', $uri)) { - throw new \InvalidArgumentException( - 'Invalid URI given (EINVAL)', - \defined('SOCKET_EINVAL') ? \SOCKET_EINVAL : (\defined('PCNTL_EINVAL') ? \PCNTL_EINVAL : 22) - ); - } - - $server = new TcpServer(str_replace('tls://', '', $uri), $loop, $context['tcp']); - - if ($scheme === 'tls') { - $server = new SecureServer($server, $loop, $context['tls']); - } - } - - $this->server = $server; - - $that = $this; - $server->on('connection', function (ConnectionInterface $conn) use ($that) { - $that->emit('connection', array($conn)); - }); - $server->on('error', function (\Exception $error) use ($that) { - $that->emit('error', array($error)); - }); - } - - public function getAddress() - { - return $this->server->getAddress(); - } - - public function pause() - { - $this->server->pause(); - } - - public function resume() - { - $this->server->resume(); - } - - public function close() - { - $this->server->close(); - } - - /** - * [internal] Internal helper method to accept new connection from given server socket - * - * @param resource $socket server socket to accept connection from - * @return resource new client socket if any - * @throws \RuntimeException if accepting fails - * @internal - */ - public static function accept($socket) - { - $errno = 0; - $errstr = ''; - \set_error_handler(function ($_, $error) use (&$errno, &$errstr) { - // Match errstr from PHP's warning message. - // stream_socket_accept(): accept failed: Connection timed out - $errstr = \preg_replace('#.*: #', '', $error); - $errno = SocketServer::errno($errstr); - }); - - $newSocket = \stream_socket_accept($socket, 0); - - \restore_error_handler(); - - if (false === $newSocket) { - throw new \RuntimeException( - 'Unable to accept new connection: ' . $errstr . self::errconst($errno), - $errno - ); - } - - return $newSocket; - } - - /** - * [Internal] Returns errno value for given errstr - * - * The errno and errstr values describes the type of error that has been - * encountered. This method tries to look up the given errstr and find a - * matching errno value which can be useful to provide more context to error - * messages. It goes through the list of known errno constants when either - * `ext-sockets`, `ext-posix` or `ext-pcntl` is available to find an errno - * matching the given errstr. - * - * @param string $errstr - * @return int errno value (e.g. value of `SOCKET_ECONNREFUSED`) or 0 if not found - * @internal - * @copyright Copyright (c) 2023 Christian Lück, taken from https://github.com/clue/errno with permission - * @codeCoverageIgnore - */ - public static function errno($errstr) - { - // PHP defines the required `strerror()` function through either `ext-sockets`, `ext-posix` or `ext-pcntl` - $strerror = \function_exists('socket_strerror') ? 'socket_strerror' : (\function_exists('posix_strerror') ? 'posix_strerror' : (\function_exists('pcntl_strerror') ? 'pcntl_strerror' : null)); - if ($strerror !== null) { - assert(\is_string($strerror) && \is_callable($strerror)); - - // PHP defines most useful errno constants like `ECONNREFUSED` through constants in `ext-sockets` like `SOCKET_ECONNREFUSED` - // PHP also defines a hand full of errno constants like `EMFILE` through constants in `ext-pcntl` like `PCNTL_EMFILE` - // go through list of all defined constants like `SOCKET_E*` and `PCNTL_E*` and see if they match the given `$errstr` - foreach (\get_defined_constants(false) as $name => $value) { - if (\is_int($value) && (\strpos($name, 'SOCKET_E') === 0 || \strpos($name, 'PCNTL_E') === 0) && $strerror($value) === $errstr) { - return $value; - } - } - - // if we reach this, no matching errno constant could be found (unlikely when `ext-sockets` is available) - // go through list of all possible errno values from 1 to `MAX_ERRNO` and see if they match the given `$errstr` - for ($errno = 1, $max = \defined('MAX_ERRNO') ? \MAX_ERRNO : 4095; $errno <= $max; ++$errno) { - if ($strerror($errno) === $errstr) { - return $errno; - } - } - } - - // if we reach this, no matching errno value could be found (unlikely when either `ext-sockets`, `ext-posix` or `ext-pcntl` is available) - return 0; - } - - /** - * [Internal] Returns errno constant name for given errno value - * - * The errno value describes the type of error that has been encountered. - * This method tries to look up the given errno value and find a matching - * errno constant name which can be useful to provide more context and more - * descriptive error messages. It goes through the list of known errno - * constants when either `ext-sockets` or `ext-pcntl` is available to find - * the matching errno constant name. - * - * Because this method is used to append more context to error messages, the - * constant name will be prefixed with a space and put between parenthesis - * when found. - * - * @param int $errno - * @return string e.g. ` (ECONNREFUSED)` or empty string if no matching const for the given errno could be found - * @internal - * @copyright Copyright (c) 2023 Christian Lück, taken from https://github.com/clue/errno with permission - * @codeCoverageIgnore - */ - public static function errconst($errno) - { - // PHP defines most useful errno constants like `ECONNREFUSED` through constants in `ext-sockets` like `SOCKET_ECONNREFUSED` - // PHP also defines a hand full of errno constants like `EMFILE` through constants in `ext-pcntl` like `PCNTL_EMFILE` - // go through list of all defined constants like `SOCKET_E*` and `PCNTL_E*` and see if they match the given `$errno` - foreach (\get_defined_constants(false) as $name => $value) { - if ($value === $errno && (\strpos($name, 'SOCKET_E') === 0 || \strpos($name, 'PCNTL_E') === 0)) { - return ' (' . \substr($name, \strpos($name, '_') + 1) . ')'; - } - } - - // if we reach this, no matching errno constant could be found (unlikely when `ext-sockets` is available) - return ''; - } -} diff --git a/vendor/react/socket/src/StreamEncryption.php b/vendor/react/socket/src/StreamEncryption.php deleted file mode 100644 index f91a359..0000000 --- a/vendor/react/socket/src/StreamEncryption.php +++ /dev/null @@ -1,158 +0,0 @@ -loop = $loop; - $this->server = $server; - - // support TLSv1.0+ by default and exclude legacy SSLv2/SSLv3. - // As of PHP 7.2+ the main crypto method constant includes all TLS versions. - // As of PHP 5.6+ the crypto method is a bitmask, so we explicitly include all TLS versions. - // For legacy PHP < 5.6 the crypto method is a single value only and this constant includes all TLS versions. - // @link https://3v4l.org/9PSST - if ($server) { - $this->method = \STREAM_CRYPTO_METHOD_TLS_SERVER; - - if (\PHP_VERSION_ID < 70200 && \PHP_VERSION_ID >= 50600) { - $this->method |= \STREAM_CRYPTO_METHOD_TLSv1_0_SERVER | \STREAM_CRYPTO_METHOD_TLSv1_1_SERVER | \STREAM_CRYPTO_METHOD_TLSv1_2_SERVER; // @codeCoverageIgnore - } - } else { - $this->method = \STREAM_CRYPTO_METHOD_TLS_CLIENT; - - if (\PHP_VERSION_ID < 70200 && \PHP_VERSION_ID >= 50600) { - $this->method |= \STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT | \STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT | \STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT; // @codeCoverageIgnore - } - } - } - - /** - * @param Connection $stream - * @return \React\Promise\PromiseInterface - */ - public function enable(Connection $stream) - { - return $this->toggle($stream, true); - } - - /** - * @param Connection $stream - * @param bool $toggle - * @return \React\Promise\PromiseInterface - */ - public function toggle(Connection $stream, $toggle) - { - // pause actual stream instance to continue operation on raw stream socket - $stream->pause(); - - // TODO: add write() event to make sure we're not sending any excessive data - - // cancelling this leaves this stream in an inconsistent state… - $deferred = new Deferred(function () { - throw new \RuntimeException(); - }); - - // get actual stream socket from stream instance - $socket = $stream->stream; - - // get crypto method from context options or use global setting from constructor - $method = $this->method; - $context = \stream_context_get_options($socket); - if (isset($context['ssl']['crypto_method'])) { - $method = $context['ssl']['crypto_method']; - } - - $that = $this; - $toggleCrypto = function () use ($socket, $deferred, $toggle, $method, $that) { - $that->toggleCrypto($socket, $deferred, $toggle, $method); - }; - - $this->loop->addReadStream($socket, $toggleCrypto); - - if (!$this->server) { - $toggleCrypto(); - } - - $loop = $this->loop; - - return $deferred->promise()->then(function () use ($stream, $socket, $loop, $toggle) { - $loop->removeReadStream($socket); - - $stream->encryptionEnabled = $toggle; - $stream->resume(); - - return $stream; - }, function($error) use ($stream, $socket, $loop) { - $loop->removeReadStream($socket); - $stream->resume(); - throw $error; - }); - } - - /** - * @internal - * @param resource $socket - * @param Deferred $deferred - * @param bool $toggle - * @param int $method - * @return void - */ - public function toggleCrypto($socket, Deferred $deferred, $toggle, $method) - { - $error = null; - \set_error_handler(function ($_, $errstr) use (&$error) { - $error = \str_replace(array("\r", "\n"), ' ', $errstr); - - // remove useless function name from error message - if (($pos = \strpos($error, "): ")) !== false) { - $error = \substr($error, $pos + 3); - } - }); - - $result = \stream_socket_enable_crypto($socket, $toggle, $method); - - \restore_error_handler(); - - if (true === $result) { - $deferred->resolve(null); - } else if (false === $result) { - // overwrite callback arguments for PHP7+ only, so they do not show - // up in the Exception trace and do not cause a possible cyclic reference. - $d = $deferred; - $deferred = null; - - if (\feof($socket) || $error === null) { - // EOF or failed without error => connection closed during handshake - $d->reject(new \UnexpectedValueException( - 'Connection lost during TLS handshake (ECONNRESET)', - \defined('SOCKET_ECONNRESET') ? \SOCKET_ECONNRESET : 104 - )); - } else { - // handshake failed with error message - $d->reject(new \UnexpectedValueException( - $error - )); - } - } else { - // need more data, will retry - } - } -} diff --git a/vendor/react/socket/src/TcpConnector.php b/vendor/react/socket/src/TcpConnector.php deleted file mode 100644 index 9d2599e..0000000 --- a/vendor/react/socket/src/TcpConnector.php +++ /dev/null @@ -1,173 +0,0 @@ -loop = $loop ?: Loop::get(); - $this->context = $context; - } - - public function connect($uri) - { - if (\strpos($uri, '://') === false) { - $uri = 'tcp://' . $uri; - } - - $parts = \parse_url($uri); - if (!$parts || !isset($parts['scheme'], $parts['host'], $parts['port']) || $parts['scheme'] !== 'tcp') { - return Promise\reject(new \InvalidArgumentException( - 'Given URI "' . $uri . '" is invalid (EINVAL)', - \defined('SOCKET_EINVAL') ? \SOCKET_EINVAL : (\defined('PCNTL_EINVAL') ? \PCNTL_EINVAL : 22) - )); - } - - $ip = \trim($parts['host'], '[]'); - if (@\inet_pton($ip) === false) { - return Promise\reject(new \InvalidArgumentException( - 'Given URI "' . $uri . '" does not contain a valid host IP (EINVAL)', - \defined('SOCKET_EINVAL') ? \SOCKET_EINVAL : (\defined('PCNTL_EINVAL') ? \PCNTL_EINVAL : 22) - )); - } - - // use context given in constructor - $context = array( - 'socket' => $this->context - ); - - // parse arguments from query component of URI - $args = array(); - if (isset($parts['query'])) { - \parse_str($parts['query'], $args); - } - - // If an original hostname has been given, use this for TLS setup. - // This can happen due to layers of nested connectors, such as a - // DnsConnector reporting its original hostname. - // These context options are here in case TLS is enabled later on this stream. - // If TLS is not enabled later, this doesn't hurt either. - if (isset($args['hostname'])) { - $context['ssl'] = array( - 'SNI_enabled' => true, - 'peer_name' => $args['hostname'] - ); - - // Legacy PHP < 5.6 ignores peer_name and requires legacy context options instead. - // The SNI_server_name context option has to be set here during construction, - // as legacy PHP ignores any values set later. - // @codeCoverageIgnoreStart - if (\PHP_VERSION_ID < 50600) { - $context['ssl'] += array( - 'SNI_server_name' => $args['hostname'], - 'CN_match' => $args['hostname'] - ); - } - // @codeCoverageIgnoreEnd - } - - // latest versions of PHP no longer accept any other URI components and - // HHVM fails to parse URIs with a query but no path, so let's simplify our URI here - $remote = 'tcp://' . $parts['host'] . ':' . $parts['port']; - - $stream = @\stream_socket_client( - $remote, - $errno, - $errstr, - 0, - \STREAM_CLIENT_CONNECT | \STREAM_CLIENT_ASYNC_CONNECT, - \stream_context_create($context) - ); - - if (false === $stream) { - return Promise\reject(new \RuntimeException( - 'Connection to ' . $uri . ' failed: ' . $errstr . SocketServer::errconst($errno), - $errno - )); - } - - // wait for connection - $loop = $this->loop; - return new Promise\Promise(function ($resolve, $reject) use ($loop, $stream, $uri) { - $loop->addWriteStream($stream, function ($stream) use ($loop, $resolve, $reject, $uri) { - $loop->removeWriteStream($stream); - - // The following hack looks like the only way to - // detect connection refused errors with PHP's stream sockets. - if (false === \stream_socket_get_name($stream, true)) { - // If we reach this point, we know the connection is dead, but we don't know the underlying error condition. - // @codeCoverageIgnoreStart - if (\function_exists('socket_import_stream')) { - // actual socket errno and errstr can be retrieved with ext-sockets on PHP 5.4+ - $socket = \socket_import_stream($stream); - $errno = \socket_get_option($socket, \SOL_SOCKET, \SO_ERROR); - $errstr = \socket_strerror($errno); - } elseif (\PHP_OS === 'Linux') { - // Linux reports socket errno and errstr again when trying to write to the dead socket. - // Suppress error reporting to get error message below and close dead socket before rejecting. - // This is only known to work on Linux, Mac and Windows are known to not support this. - $errno = 0; - $errstr = ''; - \set_error_handler(function ($_, $error) use (&$errno, &$errstr) { - // Match errstr from PHP's warning message. - // fwrite(): send of 1 bytes failed with errno=111 Connection refused - \preg_match('/errno=(\d+) (.+)/', $error, $m); - $errno = isset($m[1]) ? (int) $m[1] : 0; - $errstr = isset($m[2]) ? $m[2] : $error; - }); - - \fwrite($stream, \PHP_EOL); - - \restore_error_handler(); - } else { - // Not on Linux and ext-sockets not available? Too bad. - $errno = \defined('SOCKET_ECONNREFUSED') ? \SOCKET_ECONNREFUSED : 111; - $errstr = 'Connection refused?'; - } - // @codeCoverageIgnoreEnd - - \fclose($stream); - $reject(new \RuntimeException( - 'Connection to ' . $uri . ' failed: ' . $errstr . SocketServer::errconst($errno), - $errno - )); - } else { - $resolve(new Connection($stream, $loop)); - } - }); - }, function () use ($loop, $stream, $uri) { - $loop->removeWriteStream($stream); - \fclose($stream); - - // @codeCoverageIgnoreStart - // legacy PHP 5.3 sometimes requires a second close call (see tests) - if (\PHP_VERSION_ID < 50400 && \is_resource($stream)) { - \fclose($stream); - } - // @codeCoverageIgnoreEnd - - throw new \RuntimeException( - 'Connection to ' . $uri . ' cancelled during TCP/IP handshake (ECONNABORTED)', - \defined('SOCKET_ECONNABORTED') ? \SOCKET_ECONNABORTED : 103 - ); - }); - } -} diff --git a/vendor/react/socket/src/TcpServer.php b/vendor/react/socket/src/TcpServer.php deleted file mode 100644 index 01b2b46..0000000 --- a/vendor/react/socket/src/TcpServer.php +++ /dev/null @@ -1,262 +0,0 @@ -on('connection', function (React\Socket\ConnectionInterface $connection) { - * echo 'Plaintext connection from ' . $connection->getRemoteAddress() . PHP_EOL; - * $connection->write('hello there!' . PHP_EOL); - * … - * }); - * ``` - * - * See also the `ServerInterface` for more details. - * - * @see ServerInterface - * @see ConnectionInterface - */ -final class TcpServer extends EventEmitter implements ServerInterface -{ - private $master; - private $loop; - private $listening = false; - - /** - * Creates a plaintext TCP/IP socket server and starts listening on the given address - * - * This starts accepting new incoming connections on the given address. - * See also the `connection event` documented in the `ServerInterface` - * for more details. - * - * ```php - * $server = new React\Socket\TcpServer(8080); - * ``` - * - * As above, the `$uri` parameter can consist of only a port, in which case the - * server will default to listening on the localhost address `127.0.0.1`, - * which means it will not be reachable from outside of this system. - * - * In order to use a random port assignment, you can use the port `0`: - * - * ```php - * $server = new React\Socket\TcpServer(0); - * $address = $server->getAddress(); - * ``` - * - * In order to change the host the socket is listening on, you can provide an IP - * address through the first parameter provided to the constructor, optionally - * preceded by the `tcp://` scheme: - * - * ```php - * $server = new React\Socket\TcpServer('192.168.0.1:8080'); - * ``` - * - * If you want to listen on an IPv6 address, you MUST enclose the host in square - * brackets: - * - * ```php - * $server = new React\Socket\TcpServer('[::1]:8080'); - * ``` - * - * If the given URI is invalid, does not contain a port, any other scheme or if it - * contains a hostname, it will throw an `InvalidArgumentException`: - * - * ```php - * // throws InvalidArgumentException due to missing port - * $server = new React\Socket\TcpServer('127.0.0.1'); - * ``` - * - * If the given URI appears to be valid, but listening on it fails (such as if port - * is already in use or port below 1024 may require root access etc.), it will - * throw a `RuntimeException`: - * - * ```php - * $first = new React\Socket\TcpServer(8080); - * - * // throws RuntimeException because port is already in use - * $second = new React\Socket\TcpServer(8080); - * ``` - * - * Note that these error conditions may vary depending on your system and/or - * configuration. - * See the exception message and code for more details about the actual error - * condition. - * - * This class takes an optional `LoopInterface|null $loop` parameter that can be used to - * pass the event loop instance to use for this object. You can use a `null` value - * here in order to use the [default loop](https://github.com/reactphp/event-loop#loop). - * This value SHOULD NOT be given unless you're sure you want to explicitly use a - * given event loop instance. - * - * Optionally, you can specify [socket context options](https://www.php.net/manual/en/context.socket.php) - * for the underlying stream socket resource like this: - * - * ```php - * $server = new React\Socket\TcpServer('[::1]:8080', null, array( - * 'backlog' => 200, - * 'so_reuseport' => true, - * 'ipv6_v6only' => true - * )); - * ``` - * - * Note that available [socket context options](https://www.php.net/manual/en/context.socket.php), - * their defaults and effects of changing these may vary depending on your system - * and/or PHP version. - * Passing unknown context options has no effect. - * The `backlog` context option defaults to `511` unless given explicitly. - * - * @param string|int $uri - * @param ?LoopInterface $loop - * @param array $context - * @throws InvalidArgumentException if the listening address is invalid - * @throws RuntimeException if listening on this address fails (already in use etc.) - */ - public function __construct($uri, $loop = null, array $context = array()) - { - if ($loop !== null && !$loop instanceof LoopInterface) { // manual type check to support legacy PHP < 7.1 - throw new \InvalidArgumentException('Argument #2 ($loop) expected null|React\EventLoop\LoopInterface'); - } - - $this->loop = $loop ?: Loop::get(); - - // a single port has been given => assume localhost - if ((string)(int)$uri === (string)$uri) { - $uri = '127.0.0.1:' . $uri; - } - - // assume default scheme if none has been given - if (\strpos($uri, '://') === false) { - $uri = 'tcp://' . $uri; - } - - // parse_url() does not accept null ports (random port assignment) => manually remove - if (\substr($uri, -2) === ':0') { - $parts = \parse_url(\substr($uri, 0, -2)); - if ($parts) { - $parts['port'] = 0; - } - } else { - $parts = \parse_url($uri); - } - - // ensure URI contains TCP scheme, host and port - if (!$parts || !isset($parts['scheme'], $parts['host'], $parts['port']) || $parts['scheme'] !== 'tcp') { - throw new \InvalidArgumentException( - 'Invalid URI "' . $uri . '" given (EINVAL)', - \defined('SOCKET_EINVAL') ? \SOCKET_EINVAL : (\defined('PCNTL_EINVAL') ? \PCNTL_EINVAL : 22) - ); - } - - if (@\inet_pton(\trim($parts['host'], '[]')) === false) { - throw new \InvalidArgumentException( - 'Given URI "' . $uri . '" does not contain a valid host IP (EINVAL)', - \defined('SOCKET_EINVAL') ? \SOCKET_EINVAL : (\defined('PCNTL_EINVAL') ? \PCNTL_EINVAL : 22) - ); - } - - $this->master = @\stream_socket_server( - $uri, - $errno, - $errstr, - \STREAM_SERVER_BIND | \STREAM_SERVER_LISTEN, - \stream_context_create(array('socket' => $context + array('backlog' => 511))) - ); - if (false === $this->master) { - if ($errno === 0) { - // PHP does not seem to report errno, so match errno from errstr - // @link https://3v4l.org/3qOBl - $errno = SocketServer::errno($errstr); - } - - throw new \RuntimeException( - 'Failed to listen on "' . $uri . '": ' . $errstr . SocketServer::errconst($errno), - $errno - ); - } - \stream_set_blocking($this->master, false); - - $this->resume(); - } - - public function getAddress() - { - if (!\is_resource($this->master)) { - return null; - } - - $address = \stream_socket_get_name($this->master, false); - - // check if this is an IPv6 address which includes multiple colons but no square brackets - $pos = \strrpos($address, ':'); - if ($pos !== false && \strpos($address, ':') < $pos && \substr($address, 0, 1) !== '[') { - $address = '[' . \substr($address, 0, $pos) . ']:' . \substr($address, $pos + 1); // @codeCoverageIgnore - } - - return 'tcp://' . $address; - } - - public function pause() - { - if (!$this->listening) { - return; - } - - $this->loop->removeReadStream($this->master); - $this->listening = false; - } - - public function resume() - { - if ($this->listening || !\is_resource($this->master)) { - return; - } - - $that = $this; - $this->loop->addReadStream($this->master, function ($master) use ($that) { - try { - $newSocket = SocketServer::accept($master); - } catch (\RuntimeException $e) { - $that->emit('error', array($e)); - return; - } - $that->handleConnection($newSocket); - }); - $this->listening = true; - } - - public function close() - { - if (!\is_resource($this->master)) { - return; - } - - $this->pause(); - \fclose($this->master); - $this->removeAllListeners(); - } - - /** @internal */ - public function handleConnection($socket) - { - $this->emit('connection', array( - new Connection($socket, $this->loop) - )); - } -} diff --git a/vendor/react/socket/src/TimeoutConnector.php b/vendor/react/socket/src/TimeoutConnector.php deleted file mode 100644 index 9ef252f..0000000 --- a/vendor/react/socket/src/TimeoutConnector.php +++ /dev/null @@ -1,79 +0,0 @@ -connector = $connector; - $this->timeout = $timeout; - $this->loop = $loop ?: Loop::get(); - } - - public function connect($uri) - { - $promise = $this->connector->connect($uri); - - $loop = $this->loop; - $time = $this->timeout; - return new Promise(function ($resolve, $reject) use ($loop, $time, $promise, $uri) { - $timer = null; - $promise = $promise->then(function ($v) use (&$timer, $loop, $resolve) { - if ($timer) { - $loop->cancelTimer($timer); - } - $timer = false; - $resolve($v); - }, function ($v) use (&$timer, $loop, $reject) { - if ($timer) { - $loop->cancelTimer($timer); - } - $timer = false; - $reject($v); - }); - - // promise already resolved => no need to start timer - if ($timer === false) { - return; - } - - // start timeout timer which will cancel the pending promise - $timer = $loop->addTimer($time, function () use ($time, &$promise, $reject, $uri) { - $reject(new \RuntimeException( - 'Connection to ' . $uri . ' timed out after ' . $time . ' seconds (ETIMEDOUT)', - \defined('SOCKET_ETIMEDOUT') ? \SOCKET_ETIMEDOUT : 110 - )); - - // Cancel pending connection to clean up any underlying resources and references. - // Avoid garbage references in call stack by passing pending promise by reference. - assert(\method_exists($promise, 'cancel')); - $promise->cancel(); - $promise = null; - }); - }, function () use (&$promise) { - // Cancelling this promise will cancel the pending connection, thus triggering the rejection logic above. - // Avoid garbage references in call stack by passing pending promise by reference. - assert(\method_exists($promise, 'cancel')); - $promise->cancel(); - $promise = null; - }); - } -} diff --git a/vendor/react/socket/src/UnixConnector.php b/vendor/react/socket/src/UnixConnector.php deleted file mode 100644 index 95f932c..0000000 --- a/vendor/react/socket/src/UnixConnector.php +++ /dev/null @@ -1,58 +0,0 @@ -loop = $loop ?: Loop::get(); - } - - public function connect($path) - { - if (\strpos($path, '://') === false) { - $path = 'unix://' . $path; - } elseif (\substr($path, 0, 7) !== 'unix://') { - return Promise\reject(new \InvalidArgumentException( - 'Given URI "' . $path . '" is invalid (EINVAL)', - \defined('SOCKET_EINVAL') ? \SOCKET_EINVAL : (\defined('PCNTL_EINVAL') ? \PCNTL_EINVAL : 22) - )); - } - - $resource = @\stream_socket_client($path, $errno, $errstr, 1.0); - - if (!$resource) { - return Promise\reject(new \RuntimeException( - 'Unable to connect to unix domain socket "' . $path . '": ' . $errstr . SocketServer::errconst($errno), - $errno - )); - } - - $connection = new Connection($resource, $this->loop); - $connection->unix = true; - - return Promise\resolve($connection); - } -} diff --git a/vendor/react/socket/src/UnixServer.php b/vendor/react/socket/src/UnixServer.php deleted file mode 100644 index 27b014d..0000000 --- a/vendor/react/socket/src/UnixServer.php +++ /dev/null @@ -1,162 +0,0 @@ -loop = $loop ?: Loop::get(); - - if (\strpos($path, '://') === false) { - $path = 'unix://' . $path; - } elseif (\substr($path, 0, 7) !== 'unix://') { - throw new \InvalidArgumentException( - 'Given URI "' . $path . '" is invalid (EINVAL)', - \defined('SOCKET_EINVAL') ? \SOCKET_EINVAL : (\defined('PCNTL_EINVAL') ? \PCNTL_EINVAL : 22) - ); - } - - $errno = 0; - $errstr = ''; - \set_error_handler(function ($_, $error) use (&$errno, &$errstr) { - // PHP does not seem to report errno/errstr for Unix domain sockets (UDS) right now. - // This only applies to UDS server sockets, see also https://3v4l.org/NAhpr. - // Parse PHP warning message containing unknown error, HHVM reports proper info at least. - if (\preg_match('/\(([^\)]+)\)|\[(\d+)\]: (.*)/', $error, $match)) { - $errstr = isset($match[3]) ? $match['3'] : $match[1]; - $errno = isset($match[2]) ? (int)$match[2] : 0; - } - }); - - $this->master = \stream_socket_server( - $path, - $errno, - $errstr, - \STREAM_SERVER_BIND | \STREAM_SERVER_LISTEN, - \stream_context_create(array('socket' => $context)) - ); - - \restore_error_handler(); - - if (false === $this->master) { - throw new \RuntimeException( - 'Failed to listen on Unix domain socket "' . $path . '": ' . $errstr . SocketServer::errconst($errno), - $errno - ); - } - \stream_set_blocking($this->master, 0); - - $this->resume(); - } - - public function getAddress() - { - if (!\is_resource($this->master)) { - return null; - } - - return 'unix://' . \stream_socket_get_name($this->master, false); - } - - public function pause() - { - if (!$this->listening) { - return; - } - - $this->loop->removeReadStream($this->master); - $this->listening = false; - } - - public function resume() - { - if ($this->listening || !is_resource($this->master)) { - return; - } - - $that = $this; - $this->loop->addReadStream($this->master, function ($master) use ($that) { - try { - $newSocket = SocketServer::accept($master); - } catch (\RuntimeException $e) { - $that->emit('error', array($e)); - return; - } - $that->handleConnection($newSocket); - }); - $this->listening = true; - } - - public function close() - { - if (!\is_resource($this->master)) { - return; - } - - $this->pause(); - \fclose($this->master); - $this->removeAllListeners(); - } - - /** @internal */ - public function handleConnection($socket) - { - $connection = new Connection($socket, $this->loop); - $connection->unix = true; - - $this->emit('connection', array( - $connection - )); - } -} diff --git a/vendor/react/stream/CHANGELOG.md b/vendor/react/stream/CHANGELOG.md deleted file mode 100644 index 639db65..0000000 --- a/vendor/react/stream/CHANGELOG.md +++ /dev/null @@ -1,460 +0,0 @@ -# Changelog - -## 1.4.0 (2024-06-11) - -* Feature: Improve PHP 8.4+ support by avoiding implicitly nullable type declarations. - (#179 by @clue) - -* Feature: Full PHP 8.3 compatibility. - (#172 by @clue) - -* Fix: Fix `drain` event of `ThroughStream` to handle potential race condition. - (#171 by @clue) - -## 1.3.0 (2023-06-16) - -* Feature: Full PHP 8.1 and PHP 8.2 compatibility. - (#160 by @SimonFrings, #165 by @clue and #169 by @WyriHaximus) - -* Feature: Avoid unneeded syscall when creating non-blocking `DuplexResourceStream`. - (#164 by @clue) - -* Minor documentation improvements. - (#161 by @mrsimonbennett, #162 by @SimonFrings and #166 by @nhedger) - -* Improve test suite and project setup and report failed assertions. - (#168 and #170 by @clue and #163 by @SimonFrings) - -## 1.2.0 (2021-07-11) - -A major new feature release, see [**release announcement**](https://clue.engineering/2021/announcing-reactphp-default-loop). - -* Feature: Simplify usage by supporting new [default loop](https://reactphp.org/event-loop/#loop). - (#159 by @clue) - - ```php - // old (still supported) - $stream = new ReadableResourceStream($resource, $loop); - $stream = new WritabeResourceStream($resource, $loop); - $stream = new DuplexResourceStream($resource, $loop); - - // new (using default loop) - $stream = new ReadableResourceStream($resource); - $stream = new WritabeResourceStream($resource); - $stream = new DuplexResourceStream($resource); - ``` - -* Improve test suite, use GitHub actions for continuous integration (CI), - update PHPUnit config, run tests on PHP 8 and add full core team to the license. - (#153, #156 and #157 by @SimonFrings and #154 by @WyriHaximus) - -## 1.1.1 (2020-05-04) - -* Fix: Fix faulty write buffer behavior when sending large data chunks over TLS (Mac OS X only). - (#150 by @clue) - -* Minor code style improvements to fix phpstan analysis warnings and - add `.gitattributes` to exclude dev files from exports. - (#140 by @flow-control and #144 by @reedy) - -* Improve test suite to run tests on PHP 7.4 and simplify test matrix. - (#147 by @clue) - -## 1.1.0 (2019-01-01) - -* Improvement: Increase performance by optimizing global function and constant look ups. - (#137 by @WyriHaximus) - -* Travis: Test against PHP 7.3. - (#138 by @WyriHaximus) - -* Fix: Ignore empty reads. - (#139 by @WyriHaximus) - -## 1.0.0 (2018-07-11) - -* First stable LTS release, now following [SemVer](https://semver.org/). - We'd like to emphasize that this component is production ready and battle-tested. - We plan to support all long-term support (LTS) releases for at least 24 months, - so you have a rock-solid foundation to build on top of. - -> Contains no other changes, so it's actually fully compatible with the v0.7.7 release. - -## 0.7.7 (2018-01-19) - -* Improve test suite by fixing forward compatibility with upcoming EventLoop - releases, avoid risky tests and add test group to skip integration tests - relying on internet connection and apply appropriate test timeouts. - (#128, #131 and #132 by @clue) - -## 0.7.6 (2017-12-21) - -* Fix: Work around reading from unbuffered pipe stream in legacy PHP < 5.4.28 and PHP < 5.5.12 - (#126 by @clue) - -* Improve test suite by simplifying test bootstrapping logic via Composer and - test against PHP 7.2 - (#127 by @clue and #124 by @carusogabriel) - -## 0.7.5 (2017-11-20) - -* Fix: Igore excessive `fopen()` mode flags for `WritableResourceStream` - (#119 by @clue) - -* Fix: Fix forward compatibility with upcoming EventLoop releases - (#121 by @clue) - -* Restructure examples to ease getting started - (#123 by @clue) - -* Improve test suite by adding forward compatibility with PHPUnit 6 and - ignore Mac OS X test failures for now until Travis tests work again - (#122 by @gabriel-caruso and #120 by @clue) - -## 0.7.4 (2017-10-11) - -* Fix: Remove event listeners from `CompositeStream` once closed and - remove undocumented left-over `close` event argument - (#116 by @clue) - -* Minor documentation improvements: Fix wrong class name in example, - fix typos in README and - fix forward compatibility with upcoming EventLoop releases in example - (#113 by @docteurklein and #114 and #115 by @clue) - -* Improve test suite by running against Mac OS X on Travis - (#112 by @clue) - -## 0.7.3 (2017-08-05) - -* Improvement: Support Événement 3.0 a long side 2.0 and 1.0 - (#108 by @WyriHaximus) - -* Readme: Corrected loop initialization in usage example - (#109 by @pulyavin) - -* Travis: Lock linux distribution preventing future builds from breaking - (#110 by @clue) - -## 0.7.2 (2017-06-15) - -* Bug fix: WritableResourceStream: Close the underlying stream when closing the stream. - (#107 by @WyriHaximus) - -## 0.7.1 (2017-05-20) - -* Feature: Add optional `$writeChunkSize` parameter to limit maximum number of - bytes to write at once. - (#105 by @clue) - - ```php - $stream = new WritableResourceStream(STDOUT, $loop, null, 8192); - ``` - -* Ignore HHVM test failures for now until Travis tests work again - (#106 by @clue) - -## 0.7.0 (2017-05-04) - -* Removed / BC break: Remove deprecated and unneeded functionality - (#45, #87, #90, #91 and #93 by @clue) - - * Remove deprecated `Stream` class, use `DuplexResourceStream` instead - (#87 by @clue) - - * Remove public `$buffer` property, use new constructor parameters instead - (#91 by @clue) - - * Remove public `$stream` property from all resource streams - (#90 by @clue) - - * Remove undocumented and now unused `ReadableStream` and `WritableStream` - (#93 by @clue) - - * Remove `BufferedSink` - (#45 by @clue) - -* Feature / BC break: Simplify `ThroughStream` by using data callback instead of - inheritance. It is now a direct implementation of `DuplexStreamInterface`. - (#88 and #89 by @clue) - - ```php - $through = new ThroughStream(function ($data) { - return json_encode($data) . PHP_EOL; - }); - $through->on('data', $this->expectCallableOnceWith("[2, true]\n")); - - $through->write(array(2, true)); - ``` - -* Feature / BC break: The `CompositeStream` starts closed if either side is - already closed and forwards pause to pipe source on first write attempt. - (#96 and #103 by @clue) - - If either side of the composite stream closes, it will also close the other - side. We now also ensure that if either side is already closed during - instantiation, it will also close the other side. - -* BC break: Mark all classes as `final` and - mark internal API as `private` to discourage inheritance - (#95 and #99 by @clue) - -* Feature / BC break: Only emit `error` event for fatal errors - (#92 by @clue) - - > The `error` event was previously also allowed to be emitted for non-fatal - errors, but our implementations actually only ever emitted this as a fatal - error and then closed the stream. - -* Feature: Explicitly allow custom events and exclude any semantics - (#97 by @clue) - -* Strict definition for event callback functions - (#101 by @clue) - -* Support legacy PHP 5.3 through PHP 7.1 and HHVM and improve usage documentation - (#100 and #102 by @clue) - -* Actually require all dependencies so this is self-contained and improve - forward compatibility with EventLoop v1.0 and v0.5 - (#94 and #98 by @clue) - -## 0.6.0 (2017-03-26) - -* Feature / Fix / BC break: Add `DuplexResourceStream` and deprecate `Stream` - (#85 by @clue) - - ```php - // old (does still work for BC reasons) - $stream = new Stream($connection, $loop); - - // new - $stream = new DuplexResourceStream($connection, $loop); - ``` - - Note that the `DuplexResourceStream` now rejects read-only or write-only - streams, so this may affect BC. If you want a read-only or write-only - resource, use `ReadableResourceStream` or `WritableResourceStream` instead of - `DuplexResourceStream`. - - > BC note: This class was previously called `Stream`. The `Stream` class still - exists for BC reasons and will be removed in future versions of this package. - -* Feature / BC break: Add `WritableResourceStream` (previously called `Buffer`) - (#84 by @clue) - - ```php - // old - $stream = new Buffer(STDOUT, $loop); - - // new - $stream = new WritableResourceStream(STDOUT, $loop); - ``` - -* Feature: Add `ReadableResourceStream` - (#83 by @clue) - - ```php - $stream = new ReadableResourceStream(STDIN, $loop); - ``` - -* Fix / BC Break: Enforce using non-blocking I/O - (#46 by @clue) - - > BC note: This is known to affect process pipes on Windows which do not - support non-blocking I/O and could thus block the whole EventLoop previously. - -* Feature / Fix / BC break: Consistent semantics for - `DuplexStreamInterface::end()` to ensure it SHOULD also end readable side - (#86 by @clue) - -* Fix: Do not use unbuffered reads on pipe streams for legacy PHP < 5.4 - (#80 by @clue) - -## 0.5.0 (2017-03-08) - -* Feature / BC break: Consistent `end` event semantics (EOF) - (#70 by @clue) - - The `end` event will now only be emitted for a *successful* end, not if the - stream closes due to an unrecoverable `error` event or if you call `close()` - explicitly. - If you want to detect when the stream closes (terminates), use the `close` - event instead. - -* BC break: Remove custom (undocumented) `full-drain` event from `Buffer` - (#63 and #68 by @clue) - - > The `full-drain` event was undocumented and mostly used internally. - Relying on this event has attracted some low-quality code in the past, so - we've removed this from the public API in order to work out a better - solution instead. - If you want to detect when the buffer finishes flushing data to the stream, - you may want to look into its `end()` method or the `close` event instead. - -* Feature / BC break: Consistent event semantics and documentation, - explicitly state *when* events will be emitted and *which* arguments they - receive. - (#73 and #69 by @clue) - - The documentation now explicitly defines each event and its arguments. - Custom events and event arguments are still supported. - Most notably, all defined events only receive inherently required event - arguments and no longer transmit the instance they are emitted on for - consistency and performance reasons. - - ```php - // old (inconsistent and not supported by all implementations) - $stream->on('data', function ($data, $stream) { - // process $data - }); - - // new (consistent throughout the whole ecosystem) - $stream->on('data', function ($data) use ($stream) { - // process $data - }); - ``` - - > This mostly adds documentation (and thus some stricter, consistent - definitions) for the existing behavior, it does NOT define any major - changes otherwise. - Most existing code should be compatible with these changes, unless - it relied on some undocumented/unintended semantics. - -* Feature / BC break: Consistent method semantics and documentation - (#72 by @clue) - - > This mostly adds documentation (and thus some stricter, consistent - definitions) for the existing behavior, it does NOT define any major - changes otherwise. - Most existing code should be compatible with these changes, unless - it relied on some undocumented/unintended semantics. - -* Feature: Consistent `pipe()` semantics for closed and closing streams - (#71 from @clue) - - The source stream will now always be paused via `pause()` when the - destination stream closes. Also, properly stop piping if the source - stream closes and remove all event forwarding. - -* Improve test suite by adding PHPUnit to `require-dev` and improving coverage. - (#74 and #75 by @clue, #66 by @nawarian) - -## 0.4.6 (2017-01-25) - -* Feature: The `Buffer` can now be injected into the `Stream` (or be used standalone) - (#62 by @clue) - -* Fix: Forward `close` event only once for `CompositeStream` and `ThroughStream` - (#60 by @clue) - -* Fix: Consistent `close` event behavior for `Buffer` - (#61 by @clue) - -## 0.4.5 (2016-11-13) - -* Feature: Support setting read buffer size to `null` (infinite) - (#42 by @clue) - -* Fix: Do not emit `full-drain` event if `Buffer` is closed during `drain` event - (#55 by @clue) - -* Vastly improved performance by factor of 10x to 20x. - Raise default buffer sizes to 64 KiB and simplify and improve error handling - and unneeded function calls. - (#53, #55, #56 by @clue) - -## 0.4.4 (2016-08-22) - -* Bug fix: Emit `error` event and close `Stream` when accessing the underlying - stream resource fails with a permanent error. - (#52 and #40 by @clue, #25 by @lysenkobv) - -* Bug fix: Do not emit empty `data` event if nothing has been read (stream reached EOF) - (#39 by @clue) - -* Bug fix: Ignore empty writes to `Buffer` - (#51 by @clue) - -* Add benchmarking script to measure throughput in CI - (#41 by @clue) - -## 0.4.3 (2015-10-07) - -* Bug fix: Read buffer to 0 fixes error with libevent and large quantity of I/O (@mbonneau) -* Bug fix: No double-write during drain call (@arnaud-lb) -* Bug fix: Support HHVM (@clue) -* Adjust compatibility to 5.3 (@clue) - -## 0.4.2 (2014-09-09) - -* Added DuplexStreamInterface -* Stream sets stream resources to non-blocking -* Fixed potential race condition in pipe - -## 0.4.1 (2014-04-13) - -* Bug fix: v0.3.4 changes merged for v0.4.1 - -## 0.3.4 (2014-03-30) - -* Bug fix: [Stream] Fixed 100% CPU spike from non-empty write buffer on closed stream - -## 0.4.0 (2014-02-02) - -* BC break: Bump minimum PHP version to PHP 5.4, remove 5.3 specific hacks -* BC break: Update to Evenement 2.0 -* Dependency: Autoloading and filesystem structure now PSR-4 instead of PSR-0 - -## 0.3.3 (2013-07-08) - -* Bug fix: [Stream] Correctly detect closed connections - -## 0.3.2 (2013-05-10) - -* Bug fix: [Stream] Make sure CompositeStream is closed properly - -## 0.3.1 (2013-04-21) - -* Bug fix: [Stream] Allow any `ReadableStreamInterface` on `BufferedSink::createPromise()` - -## 0.3.0 (2013-04-14) - -* Feature: [Stream] Factory method for BufferedSink - -## 0.2.6 (2012-12-26) - -* Version bump - -## 0.2.5 (2012-11-26) - -* Feature: Make BufferedSink trigger progress events on the promise (@jsor) - -## 0.2.4 (2012-11-18) - -* Feature: Added ThroughStream, CompositeStream, ReadableStream and WritableStream -* Feature: Added BufferedSink - -## 0.2.3 (2012-11-14) - -* Version bump - -## 0.2.2 (2012-10-28) - -* Version bump - -## 0.2.1 (2012-10-14) - -* Bug fix: Check for EOF in `Buffer::write()` - -## 0.2.0 (2012-09-10) - -* Version bump - -## 0.1.1 (2012-07-12) - -* Bug fix: Testing and functional against PHP >= 5.3.3 and <= 5.3.8 - -## 0.1.0 (2012-07-11) - -* First tagged release diff --git a/vendor/react/stream/LICENSE b/vendor/react/stream/LICENSE deleted file mode 100644 index d6f8901..0000000 --- a/vendor/react/stream/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2012 Christian Lück, Cees-Jan Kiewiet, Jan Sorgalla, Chris Boden, Igor Wiedler - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is furnished -to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/vendor/react/stream/README.md b/vendor/react/stream/README.md deleted file mode 100644 index 9c0468a..0000000 --- a/vendor/react/stream/README.md +++ /dev/null @@ -1,1249 +0,0 @@ -# Stream - -[![CI status](https://github.com/reactphp/stream/actions/workflows/ci.yml/badge.svg)](https://github.com/reactphp/stream/actions) -[![installs on Packagist](https://img.shields.io/packagist/dt/react/stream?color=blue&label=installs%20on%20Packagist)](https://packagist.org/packages/react/stream) - -Event-driven readable and writable streams for non-blocking I/O in [ReactPHP](https://reactphp.org/). - -In order to make the [EventLoop](https://github.com/reactphp/event-loop) -easier to use, this component introduces the powerful concept of "streams". -Streams allow you to efficiently process huge amounts of data (such as a multi -Gigabyte file download) in small chunks without having to store everything in -memory at once. -They are very similar to the streams found in PHP itself, -but have an interface more suited for async, non-blocking I/O. - -**Table of contents** - -* [Stream usage](#stream-usage) - * [ReadableStreamInterface](#readablestreaminterface) - * [data event](#data-event) - * [end event](#end-event) - * [error event](#error-event) - * [close event](#close-event) - * [isReadable()](#isreadable) - * [pause()](#pause) - * [resume()](#resume) - * [pipe()](#pipe) - * [close()](#close) - * [WritableStreamInterface](#writablestreaminterface) - * [drain event](#drain-event) - * [pipe event](#pipe-event) - * [error event](#error-event-1) - * [close event](#close-event-1) - * [isWritable()](#iswritable) - * [write()](#write) - * [end()](#end) - * [close()](#close-1) - * [DuplexStreamInterface](#duplexstreaminterface) -* [Creating streams](#creating-streams) - * [ReadableResourceStream](#readableresourcestream) - * [WritableResourceStream](#writableresourcestream) - * [DuplexResourceStream](#duplexresourcestream) - * [ThroughStream](#throughstream) - * [CompositeStream](#compositestream) -* [Usage](#usage) -* [Install](#install) -* [Tests](#tests) -* [License](#license) -* [More](#more) - -## Stream usage - -ReactPHP uses the concept of "streams" throughout its ecosystem to provide a -consistent higher-level abstraction for processing streams of arbitrary data -contents and size. -While a stream itself is a quite low-level concept, it can be used as a powerful -abstraction to build higher-level components and protocols on top. - -If you're new to this concept, it helps to think of them as a water pipe: -You can consume water from a source or you can produce water and forward (pipe) -it to any destination (sink). - -Similarly, streams can either be - -* readable (such as `STDIN` terminal input) or -* writable (such as `STDOUT` terminal output) or -* duplex (both readable *and* writable, such as a TCP/IP connection) - -Accordingly, this package defines the following three interfaces - -* [`ReadableStreamInterface`](#readablestreaminterface) -* [`WritableStreamInterface`](#writablestreaminterface) -* [`DuplexStreamInterface`](#duplexstreaminterface) - -### ReadableStreamInterface - -The `ReadableStreamInterface` is responsible for providing an interface for -read-only streams and the readable side of duplex streams. - -Besides defining a few methods, this interface also implements the -`EventEmitterInterface` which allows you to react to certain events. - -The event callback functions MUST be a valid `callable` that obeys strict -parameter definitions and MUST accept event parameters exactly as documented. -The event callback functions MUST NOT throw an `Exception`. -The return value of the event callback functions will be ignored and has no -effect, so for performance reasons you're recommended to not return any -excessive data structures. - -Every implementation of this interface MUST follow these event semantics in -order to be considered a well-behaving stream. - -> Note that higher-level implementations of this interface may choose to - define additional events with dedicated semantics not defined as part of - this low-level stream specification. Conformance with these event semantics - is out of scope for this interface, so you may also have to refer to the - documentation of such a higher-level implementation. - -#### data event - -The `data` event will be emitted whenever some data was read/received -from this source stream. -The event receives a single mixed argument for incoming data. - -```php -$stream->on('data', function ($data) { - echo $data; -}); -``` - -This event MAY be emitted any number of times, which may be zero times if -this stream does not send any data at all. -It SHOULD not be emitted after an `end` or `close` event. - -The given `$data` argument may be of mixed type, but it's usually -recommended it SHOULD be a `string` value or MAY use a type that allows -representation as a `string` for maximum compatibility. - -Many common streams (such as a TCP/IP connection or a file-based stream) -will emit the raw (binary) payload data that is received over the wire as -chunks of `string` values. - -Due to the stream-based nature of this, the sender may send any number -of chunks with varying sizes. There are no guarantees that these chunks -will be received with the exact same framing the sender intended to send. -In other words, many lower-level protocols (such as TCP/IP) transfer the -data in chunks that may be anywhere between single-byte values to several -dozens of kilobytes. You may want to apply a higher-level protocol to -these low-level data chunks in order to achieve proper message framing. - -#### end event - -The `end` event will be emitted once the source stream has successfully -reached the end of the stream (EOF). - -```php -$stream->on('end', function () { - echo 'END'; -}); -``` - -This event SHOULD be emitted once or never at all, depending on whether -a successful end was detected. -It SHOULD NOT be emitted after a previous `end` or `close` event. -It MUST NOT be emitted if the stream closes due to a non-successful -end, such as after a previous `error` event. - -After the stream is ended, it MUST switch to non-readable mode, -see also `isReadable()`. - -This event will only be emitted if the *end* was reached successfully, -not if the stream was interrupted by an unrecoverable error or explicitly -closed. Not all streams know this concept of a "successful end". -Many use-cases involve detecting when the stream closes (terminates) -instead, in this case you should use the `close` event. -After the stream emits an `end` event, it SHOULD usually be followed by a -`close` event. - -Many common streams (such as a TCP/IP connection or a file-based stream) -will emit this event if either the remote side closes the connection or -a file handle was successfully read until reaching its end (EOF). - -Note that this event should not be confused with the `end()` method. -This event defines a successful end *reading* from a source stream, while -the `end()` method defines *writing* a successful end to a destination -stream. - -#### error event - -The `error` event will be emitted once a fatal error occurs, usually while -trying to read from this stream. -The event receives a single `Exception` argument for the error instance. - -```php -$server->on('error', function (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; -}); -``` - -This event SHOULD be emitted once the stream detects a fatal error, such -as a fatal transmission error or after an unexpected `data` or premature -`end` event. -It SHOULD NOT be emitted after a previous `error`, `end` or `close` event. -It MUST NOT be emitted if this is not a fatal error condition, such as -a temporary network issue that did not cause any data to be lost. - -After the stream errors, it MUST close the stream and SHOULD thus be -followed by a `close` event and then switch to non-readable mode, see -also `close()` and `isReadable()`. - -Many common streams (such as a TCP/IP connection or a file-based stream) -only deal with data transmission and do not make assumption about data -boundaries (such as unexpected `data` or premature `end` events). -In other words, many lower-level protocols (such as TCP/IP) may choose -to only emit this for a fatal transmission error once and will then -close (terminate) the stream in response. - -If this stream is a `DuplexStreamInterface`, you should also notice -how the writable side of the stream also implements an `error` event. -In other words, an error may occur while either reading or writing the -stream which should result in the same error processing. - -#### close event - -The `close` event will be emitted once the stream closes (terminates). - -```php -$stream->on('close', function () { - echo 'CLOSED'; -}); -``` - -This event SHOULD be emitted once or never at all, depending on whether -the stream ever terminates. -It SHOULD NOT be emitted after a previous `close` event. - -After the stream is closed, it MUST switch to non-readable mode, -see also `isReadable()`. - -Unlike the `end` event, this event SHOULD be emitted whenever the stream -closes, irrespective of whether this happens implicitly due to an -unrecoverable error or explicitly when either side closes the stream. -If you only want to detect a *successful* end, you should use the `end` -event instead. - -Many common streams (such as a TCP/IP connection or a file-based stream) -will likely choose to emit this event after reading a *successful* `end` -event or after a fatal transmission `error` event. - -If this stream is a `DuplexStreamInterface`, you should also notice -how the writable side of the stream also implements a `close` event. -In other words, after receiving this event, the stream MUST switch into -non-writable AND non-readable mode, see also `isWritable()`. -Note that this event should not be confused with the `end` event. - -#### isReadable() - -The `isReadable(): bool` method can be used to -check whether this stream is in a readable state (not closed already). - -This method can be used to check if the stream still accepts incoming -data events or if it is ended or closed already. -Once the stream is non-readable, no further `data` or `end` events SHOULD -be emitted. - -```php -assert($stream->isReadable() === false); - -$stream->on('data', assertNeverCalled()); -$stream->on('end', assertNeverCalled()); -``` - -A successfully opened stream always MUST start in readable mode. - -Once the stream ends or closes, it MUST switch to non-readable mode. -This can happen any time, explicitly through `close()` or -implicitly due to a remote close or an unrecoverable transmission error. -Once a stream has switched to non-readable mode, it MUST NOT transition -back to readable mode. - -If this stream is a `DuplexStreamInterface`, you should also notice -how the writable side of the stream also implements an `isWritable()` -method. Unless this is a half-open duplex stream, they SHOULD usually -have the same return value. - -#### pause() - -The `pause(): void` method can be used to -pause reading incoming data events. - -Removes the data source file descriptor from the event loop. This -allows you to throttle incoming data. - -Unless otherwise noted, a successfully opened stream SHOULD NOT start -in paused state. - -Once the stream is paused, no futher `data` or `end` events SHOULD -be emitted. - -```php -$stream->pause(); - -$stream->on('data', assertShouldNeverCalled()); -$stream->on('end', assertShouldNeverCalled()); -``` - -This method is advisory-only, though generally not recommended, the -stream MAY continue emitting `data` events. - -You can continue processing events by calling `resume()` again. - -Note that both methods can be called any number of times, in particular -calling `pause()` more than once SHOULD NOT have any effect. - -See also `resume()`. - -#### resume() - -The `resume(): void` method can be used to -resume reading incoming data events. - -Re-attach the data source after a previous `pause()`. - -```php -$stream->pause(); - -Loop::addTimer(1.0, function () use ($stream) { - $stream->resume(); -}); -``` - -Note that both methods can be called any number of times, in particular -calling `resume()` without a prior `pause()` SHOULD NOT have any effect. - -See also `pause()`. - -#### pipe() - -The `pipe(WritableStreamInterface $dest, array $options = [])` method can be used to -pipe all the data from this readable source into the given writable destination. - -Automatically sends all incoming data to the destination. -Automatically throttles the source based on what the destination can handle. - -```php -$source->pipe($dest); -``` - -Similarly, you can also pipe an instance implementing `DuplexStreamInterface` -into itself in order to write back all the data that is received. -This may be a useful feature for a TCP/IP echo service: - -```php -$connection->pipe($connection); -``` - -This method returns the destination stream as-is, which can be used to -set up chains of piped streams: - -```php -$source->pipe($decodeGzip)->pipe($filterBadWords)->pipe($dest); -``` - -By default, this will call `end()` on the destination stream once the -source stream emits an `end` event. This can be disabled like this: - -```php -$source->pipe($dest, array('end' => false)); -``` - -Note that this only applies to the `end` event. -If an `error` or explicit `close` event happens on the source stream, -you'll have to manually close the destination stream: - -```php -$source->pipe($dest); -$source->on('close', function () use ($dest) { - $dest->end('BYE!'); -}); -``` - -If the source stream is not readable (closed state), then this is a NO-OP. - -```php -$source->close(); -$source->pipe($dest); // NO-OP -``` - -If the destinantion stream is not writable (closed state), then this will simply -throttle (pause) the source stream: - -```php -$dest->close(); -$source->pipe($dest); // calls $source->pause() -``` - -Similarly, if the destination stream is closed while the pipe is still -active, it will also throttle (pause) the source stream: - -```php -$source->pipe($dest); -$dest->close(); // calls $source->pause() -``` - -Once the pipe is set up successfully, the destination stream MUST emit -a `pipe` event with this source stream an event argument. - -#### close() - -The `close(): void` method can be used to -close the stream (forcefully). - -This method can be used to (forcefully) close the stream. - -```php -$stream->close(); -``` - -Once the stream is closed, it SHOULD emit a `close` event. -Note that this event SHOULD NOT be emitted more than once, in particular -if this method is called multiple times. - -After calling this method, the stream MUST switch into a non-readable -mode, see also `isReadable()`. -This means that no further `data` or `end` events SHOULD be emitted. - -```php -$stream->close(); -assert($stream->isReadable() === false); - -$stream->on('data', assertNeverCalled()); -$stream->on('end', assertNeverCalled()); -``` - -If this stream is a `DuplexStreamInterface`, you should also notice -how the writable side of the stream also implements a `close()` method. -In other words, after calling this method, the stream MUST switch into -non-writable AND non-readable mode, see also `isWritable()`. -Note that this method should not be confused with the `end()` method. - -### WritableStreamInterface - -The `WritableStreamInterface` is responsible for providing an interface for -write-only streams and the writable side of duplex streams. - -Besides defining a few methods, this interface also implements the -`EventEmitterInterface` which allows you to react to certain events. - -The event callback functions MUST be a valid `callable` that obeys strict -parameter definitions and MUST accept event parameters exactly as documented. -The event callback functions MUST NOT throw an `Exception`. -The return value of the event callback functions will be ignored and has no -effect, so for performance reasons you're recommended to not return any -excessive data structures. - -Every implementation of this interface MUST follow these event semantics in -order to be considered a well-behaving stream. - -> Note that higher-level implementations of this interface may choose to - define additional events with dedicated semantics not defined as part of - this low-level stream specification. Conformance with these event semantics - is out of scope for this interface, so you may also have to refer to the - documentation of such a higher-level implementation. - -#### drain event - -The `drain` event will be emitted whenever the write buffer became full -previously and is now ready to accept more data. - -```php -$stream->on('drain', function () use ($stream) { - echo 'Stream is now ready to accept more data'; -}); -``` - -This event SHOULD be emitted once every time the buffer became full -previously and is now ready to accept more data. -In other words, this event MAY be emitted any number of times, which may -be zero times if the buffer never became full in the first place. -This event SHOULD NOT be emitted if the buffer has not become full -previously. - -This event is mostly used internally, see also `write()` for more details. - -#### pipe event - -The `pipe` event will be emitted whenever a readable stream is `pipe()`d -into this stream. -The event receives a single `ReadableStreamInterface` argument for the -source stream. - -```php -$stream->on('pipe', function (ReadableStreamInterface $source) use ($stream) { - echo 'Now receiving piped data'; - - // explicitly close target if source emits an error - $source->on('error', function () use ($stream) { - $stream->close(); - }); -}); - -$source->pipe($stream); -``` - -This event MUST be emitted once for each readable stream that is -successfully piped into this destination stream. -In other words, this event MAY be emitted any number of times, which may -be zero times if no stream is ever piped into this stream. -This event MUST NOT be emitted if either the source is not readable -(closed already) or this destination is not writable (closed already). - -This event is mostly used internally, see also `pipe()` for more details. - -#### error event - -The `error` event will be emitted once a fatal error occurs, usually while -trying to write to this stream. -The event receives a single `Exception` argument for the error instance. - -```php -$stream->on('error', function (Exception $e) { - echo 'Error: ' . $e->getMessage() . PHP_EOL; -}); -``` - -This event SHOULD be emitted once the stream detects a fatal error, such -as a fatal transmission error. -It SHOULD NOT be emitted after a previous `error` or `close` event. -It MUST NOT be emitted if this is not a fatal error condition, such as -a temporary network issue that did not cause any data to be lost. - -After the stream errors, it MUST close the stream and SHOULD thus be -followed by a `close` event and then switch to non-writable mode, see -also `close()` and `isWritable()`. - -Many common streams (such as a TCP/IP connection or a file-based stream) -only deal with data transmission and may choose -to only emit this for a fatal transmission error once and will then -close (terminate) the stream in response. - -If this stream is a `DuplexStreamInterface`, you should also notice -how the readable side of the stream also implements an `error` event. -In other words, an error may occur while either reading or writing the -stream which should result in the same error processing. - -#### close event - -The `close` event will be emitted once the stream closes (terminates). - -```php -$stream->on('close', function () { - echo 'CLOSED'; -}); -``` - -This event SHOULD be emitted once or never at all, depending on whether -the stream ever terminates. -It SHOULD NOT be emitted after a previous `close` event. - -After the stream is closed, it MUST switch to non-writable mode, -see also `isWritable()`. - -This event SHOULD be emitted whenever the stream closes, irrespective of -whether this happens implicitly due to an unrecoverable error or -explicitly when either side closes the stream. - -Many common streams (such as a TCP/IP connection or a file-based stream) -will likely choose to emit this event after flushing the buffer from -the `end()` method, after receiving a *successful* `end` event or after -a fatal transmission `error` event. - -If this stream is a `DuplexStreamInterface`, you should also notice -how the readable side of the stream also implements a `close` event. -In other words, after receiving this event, the stream MUST switch into -non-writable AND non-readable mode, see also `isReadable()`. -Note that this event should not be confused with the `end` event. - -#### isWritable() - -The `isWritable(): bool` method can be used to -check whether this stream is in a writable state (not closed already). - -This method can be used to check if the stream still accepts writing -any data or if it is ended or closed already. -Writing any data to a non-writable stream is a NO-OP: - -```php -assert($stream->isWritable() === false); - -$stream->write('end'); // NO-OP -$stream->end('end'); // NO-OP -``` - -A successfully opened stream always MUST start in writable mode. - -Once the stream ends or closes, it MUST switch to non-writable mode. -This can happen any time, explicitly through `end()` or `close()` or -implicitly due to a remote close or an unrecoverable transmission error. -Once a stream has switched to non-writable mode, it MUST NOT transition -back to writable mode. - -If this stream is a `DuplexStreamInterface`, you should also notice -how the readable side of the stream also implements an `isReadable()` -method. Unless this is a half-open duplex stream, they SHOULD usually -have the same return value. - -#### write() - -The `write(mixed $data): bool` method can be used to -write some data into the stream. - -A successful write MUST be confirmed with a boolean `true`, which means -that either the data was written (flushed) immediately or is buffered and -scheduled for a future write. Note that this interface gives you no -control over explicitly flushing the buffered data, as finding the -appropriate time for this is beyond the scope of this interface and left -up to the implementation of this interface. - -Many common streams (such as a TCP/IP connection or file-based stream) -may choose to buffer all given data and schedule a future flush by using -an underlying EventLoop to check when the resource is actually writable. - -If a stream cannot handle writing (or flushing) the data, it SHOULD emit -an `error` event and MAY `close()` the stream if it can not recover from -this error. - -If the internal buffer is full after adding `$data`, then `write()` -SHOULD return `false`, indicating that the caller should stop sending -data until the buffer drains. -The stream SHOULD send a `drain` event once the buffer is ready to accept -more data. - -Similarly, if the stream is not writable (already in a closed state) -it MUST NOT process the given `$data` and SHOULD return `false`, -indicating that the caller should stop sending data. - -The given `$data` argument MAY be of mixed type, but it's usually -recommended it SHOULD be a `string` value or MAY use a type that allows -representation as a `string` for maximum compatibility. - -Many common streams (such as a TCP/IP connection or a file-based stream) -will only accept the raw (binary) payload data that is transferred over -the wire as chunks of `string` values. - -Due to the stream-based nature of this, the sender may send any number -of chunks with varying sizes. There are no guarantees that these chunks -will be received with the exact same framing the sender intended to send. -In other words, many lower-level protocols (such as TCP/IP) transfer the -data in chunks that may be anywhere between single-byte values to several -dozens of kilobytes. You may want to apply a higher-level protocol to -these low-level data chunks in order to achieve proper message framing. - -#### end() - -The `end(mixed $data = null): void` method can be used to -successfully end the stream (after optionally sending some final data). - -This method can be used to successfully end the stream, i.e. close -the stream after sending out all data that is currently buffered. - -```php -$stream->write('hello'); -$stream->write('world'); -$stream->end(); -``` - -If there's no data currently buffered and nothing to be flushed, then -this method MAY `close()` the stream immediately. - -If there's still data in the buffer that needs to be flushed first, then -this method SHOULD try to write out this data and only then `close()` -the stream. -Once the stream is closed, it SHOULD emit a `close` event. - -Note that this interface gives you no control over explicitly flushing -the buffered data, as finding the appropriate time for this is beyond the -scope of this interface and left up to the implementation of this -interface. - -Many common streams (such as a TCP/IP connection or file-based stream) -may choose to buffer all given data and schedule a future flush by using -an underlying EventLoop to check when the resource is actually writable. - -You can optionally pass some final data that is written to the stream -before ending the stream. If a non-`null` value is given as `$data`, then -this method will behave just like calling `write($data)` before ending -with no data. - -```php -// shorter version -$stream->end('bye'); - -// same as longer version -$stream->write('bye'); -$stream->end(); -``` - -After calling this method, the stream MUST switch into a non-writable -mode, see also `isWritable()`. -This means that no further writes are possible, so any additional -`write()` or `end()` calls have no effect. - -```php -$stream->end(); -assert($stream->isWritable() === false); - -$stream->write('nope'); // NO-OP -$stream->end(); // NO-OP -``` - -If this stream is a `DuplexStreamInterface`, calling this method SHOULD -also end its readable side, unless the stream supports half-open mode. -In other words, after calling this method, these streams SHOULD switch -into non-writable AND non-readable mode, see also `isReadable()`. -This implies that in this case, the stream SHOULD NOT emit any `data` -or `end` events anymore. -Streams MAY choose to use the `pause()` method logic for this, but -special care may have to be taken to ensure a following call to the -`resume()` method SHOULD NOT continue emitting readable events. - -Note that this method should not be confused with the `close()` method. - -#### close() - -The `close(): void` method can be used to -close the stream (forcefully). - -This method can be used to forcefully close the stream, i.e. close -the stream without waiting for any buffered data to be flushed. -If there's still data in the buffer, this data SHOULD be discarded. - -```php -$stream->close(); -``` - -Once the stream is closed, it SHOULD emit a `close` event. -Note that this event SHOULD NOT be emitted more than once, in particular -if this method is called multiple times. - -After calling this method, the stream MUST switch into a non-writable -mode, see also `isWritable()`. -This means that no further writes are possible, so any additional -`write()` or `end()` calls have no effect. - -```php -$stream->close(); -assert($stream->isWritable() === false); - -$stream->write('nope'); // NO-OP -$stream->end(); // NO-OP -``` - -Note that this method should not be confused with the `end()` method. -Unlike the `end()` method, this method does not take care of any existing -buffers and simply discards any buffer contents. -Likewise, this method may also be called after calling `end()` on a -stream in order to stop waiting for the stream to flush its final data. - -```php -$stream->end(); -Loop::addTimer(1.0, function () use ($stream) { - $stream->close(); -}); -``` - -If this stream is a `DuplexStreamInterface`, you should also notice -how the readable side of the stream also implements a `close()` method. -In other words, after calling this method, the stream MUST switch into -non-writable AND non-readable mode, see also `isReadable()`. - -### DuplexStreamInterface - -The `DuplexStreamInterface` is responsible for providing an interface for -duplex streams (both readable and writable). - -It builds on top of the existing interfaces for readable and writable streams -and follows the exact same method and event semantics. -If you're new to this concept, you should look into the -`ReadableStreamInterface` and `WritableStreamInterface` first. - -Besides defining a few methods, this interface also implements the -`EventEmitterInterface` which allows you to react to the same events defined -on the `ReadbleStreamInterface` and `WritableStreamInterface`. - -The event callback functions MUST be a valid `callable` that obeys strict -parameter definitions and MUST accept event parameters exactly as documented. -The event callback functions MUST NOT throw an `Exception`. -The return value of the event callback functions will be ignored and has no -effect, so for performance reasons you're recommended to not return any -excessive data structures. - -Every implementation of this interface MUST follow these event semantics in -order to be considered a well-behaving stream. - -> Note that higher-level implementations of this interface may choose to - define additional events with dedicated semantics not defined as part of - this low-level stream specification. Conformance with these event semantics - is out of scope for this interface, so you may also have to refer to the - documentation of such a higher-level implementation. - -See also [`ReadableStreamInterface`](#readablestreaminterface) and -[`WritableStreamInterface`](#writablestreaminterface) for more details. - -## Creating streams - -ReactPHP uses the concept of "streams" throughout its ecosystem, so that -many higher-level consumers of this package only deal with -[stream usage](#stream-usage). -This implies that stream instances are most often created within some -higher-level components and many consumers never actually have to deal with -creating a stream instance. - -* Use [react/socket](https://github.com/reactphp/socket) - if you want to accept incoming or establish outgoing plaintext TCP/IP or - secure TLS socket connection streams. -* Use [react/http](https://github.com/reactphp/http) - if you want to receive an incoming HTTP request body streams. -* Use [react/child-process](https://github.com/reactphp/child-process) - if you want to communicate with child processes via process pipes such as - STDIN, STDOUT, STDERR etc. -* Use experimental [react/filesystem](https://github.com/reactphp/filesystem) - if you want to read from / write to the filesystem. -* See also the last chapter for [more real-world applications](#more). - -However, if you are writing a lower-level component or want to create a stream -instance from a stream resource, then the following chapter is for you. - -> Note that the following examples use `fopen()` and `stream_socket_client()` - for illustration purposes only. - These functions SHOULD NOT be used in a truly async program because each call - may take several seconds to complete and would block the EventLoop otherwise. - Additionally, the `fopen()` call will return a file handle on some platforms - which may or may not be supported by all EventLoop implementations. - As an alternative, you may want to use higher-level libraries listed above. - -### ReadableResourceStream - -The `ReadableResourceStream` is a concrete implementation of the -[`ReadableStreamInterface`](#readablestreaminterface) for PHP's stream resources. - -This can be used to represent a read-only resource like a file stream opened in -readable mode or a stream such as `STDIN`: - -```php -$stream = new ReadableResourceStream(STDIN); -$stream->on('data', function ($chunk) { - echo $chunk; -}); -$stream->on('end', function () { - echo 'END'; -}); -``` - -See also [`ReadableStreamInterface`](#readablestreaminterface) for more details. - -The first parameter given to the constructor MUST be a valid stream resource -that is opened in reading mode (e.g. `fopen()` mode `r`). -Otherwise, it will throw an `InvalidArgumentException`: - -```php -// throws InvalidArgumentException -$stream = new ReadableResourceStream(false); -``` - -See also the [`DuplexResourceStream`](#readableresourcestream) for read-and-write -stream resources otherwise. - -Internally, this class tries to enable non-blocking mode on the stream resource -which may not be supported for all stream resources. -Most notably, this is not supported by pipes on Windows (STDIN etc.). -If this fails, it will throw a `RuntimeException`: - -```php -// throws RuntimeException on Windows -$stream = new ReadableResourceStream(STDIN); -``` - -Once the constructor is called with a valid stream resource, this class will -take care of the underlying stream resource. -You SHOULD only use its public API and SHOULD NOT interfere with the underlying -stream resource manually. - -This class takes an optional `LoopInterface|null $loop` parameter that can be used to -pass the event loop instance to use for this object. You can use a `null` value -here in order to use the [default loop](https://github.com/reactphp/event-loop#loop). -This value SHOULD NOT be given unless you're sure you want to explicitly use a -given event loop instance. - -This class takes an optional `int|null $readChunkSize` parameter that controls -the maximum buffer size in bytes to read at once from the stream. -You can use a `null` value here in order to apply its default value. -This value SHOULD NOT be changed unless you know what you're doing. -This can be a positive number which means that up to X bytes will be read -at once from the underlying stream resource. Note that the actual number -of bytes read may be lower if the stream resource has less than X bytes -currently available. -This can be `-1` which means "read everything available" from the -underlying stream resource. -This should read until the stream resource is not readable anymore -(i.e. underlying buffer drained), note that this does not neccessarily -mean it reached EOF. - -```php -$stream = new ReadableResourceStream(STDIN, null, 8192); -``` - -> PHP bug warning: If the PHP process has explicitly been started without a - `STDIN` stream, then trying to read from `STDIN` may return data from - another stream resource. This does not happen if you start this with an empty - stream like `php test.php < /dev/null` instead of `php test.php <&-`. - See [#81](https://github.com/reactphp/stream/issues/81) for more details. - -> Changelog: As of v1.2.0 the `$loop` parameter can be omitted (or skipped with a - `null` value) to use the [default loop](https://github.com/reactphp/event-loop#loop). - -### WritableResourceStream - -The `WritableResourceStream` is a concrete implementation of the -[`WritableStreamInterface`](#writablestreaminterface) for PHP's stream resources. - -This can be used to represent a write-only resource like a file stream opened in -writable mode or a stream such as `STDOUT` or `STDERR`: - -```php -$stream = new WritableResourceStream(STDOUT); -$stream->write('hello!'); -$stream->end(); -``` - -See also [`WritableStreamInterface`](#writablestreaminterface) for more details. - -The first parameter given to the constructor MUST be a valid stream resource -that is opened for writing. -Otherwise, it will throw an `InvalidArgumentException`: - -```php -// throws InvalidArgumentException -$stream = new WritableResourceStream(false); -``` - -See also the [`DuplexResourceStream`](#readableresourcestream) for read-and-write -stream resources otherwise. - -Internally, this class tries to enable non-blocking mode on the stream resource -which may not be supported for all stream resources. -Most notably, this is not supported by pipes on Windows (STDOUT, STDERR etc.). -If this fails, it will throw a `RuntimeException`: - -```php -// throws RuntimeException on Windows -$stream = new WritableResourceStream(STDOUT); -``` - -Once the constructor is called with a valid stream resource, this class will -take care of the underlying stream resource. -You SHOULD only use its public API and SHOULD NOT interfere with the underlying -stream resource manually. - -Any `write()` calls to this class will not be performed instantly, but will -be performed asynchronously, once the EventLoop reports the stream resource is -ready to accept data. -For this, it uses an in-memory buffer string to collect all outstanding writes. -This buffer has a soft-limit applied which defines how much data it is willing -to accept before the caller SHOULD stop sending further data. - -This class takes an optional `LoopInterface|null $loop` parameter that can be used to -pass the event loop instance to use for this object. You can use a `null` value -here in order to use the [default loop](https://github.com/reactphp/event-loop#loop). -This value SHOULD NOT be given unless you're sure you want to explicitly use a -given event loop instance. - -This class takes an optional `int|null $writeBufferSoftLimit` parameter that controls -this maximum buffer size in bytes. -You can use a `null` value here in order to apply its default value. -This value SHOULD NOT be changed unless you know what you're doing. - -```php -$stream = new WritableResourceStream(STDOUT, null, 8192); -``` - -This class takes an optional `int|null $writeChunkSize` parameter that controls -this maximum buffer size in bytes to write at once to the stream. -You can use a `null` value here in order to apply its default value. -This value SHOULD NOT be changed unless you know what you're doing. -This can be a positive number which means that up to X bytes will be written -at once to the underlying stream resource. Note that the actual number -of bytes written may be lower if the stream resource has less than X bytes -currently available. -This can be `-1` which means "write everything available" to the -underlying stream resource. - -```php -$stream = new WritableResourceStream(STDOUT, null, null, 8192); -``` - -See also [`write()`](#write) for more details. - -> Changelog: As of v1.2.0 the `$loop` parameter can be omitted (or skipped with a - `null` value) to use the [default loop](https://github.com/reactphp/event-loop#loop). - -### DuplexResourceStream - -The `DuplexResourceStream` is a concrete implementation of the -[`DuplexStreamInterface`](#duplexstreaminterface) for PHP's stream resources. - -This can be used to represent a read-and-write resource like a file stream opened -in read and write mode mode or a stream such as a TCP/IP connection: - -```php -$conn = stream_socket_client('tcp://google.com:80'); -$stream = new DuplexResourceStream($conn); -$stream->write('hello!'); -$stream->end(); -``` - -See also [`DuplexStreamInterface`](#duplexstreaminterface) for more details. - -The first parameter given to the constructor MUST be a valid stream resource -that is opened for reading *and* writing. -Otherwise, it will throw an `InvalidArgumentException`: - -```php -// throws InvalidArgumentException -$stream = new DuplexResourceStream(false); -``` - -See also the [`ReadableResourceStream`](#readableresourcestream) for read-only -and the [`WritableResourceStream`](#writableresourcestream) for write-only -stream resources otherwise. - -Internally, this class tries to enable non-blocking mode on the stream resource -which may not be supported for all stream resources. -Most notably, this is not supported by pipes on Windows (STDOUT, STDERR etc.). -If this fails, it will throw a `RuntimeException`: - -```php -// throws RuntimeException on Windows -$stream = new DuplexResourceStream(STDOUT); -``` - -Once the constructor is called with a valid stream resource, this class will -take care of the underlying stream resource. -You SHOULD only use its public API and SHOULD NOT interfere with the underlying -stream resource manually. - -This class takes an optional `LoopInterface|null $loop` parameter that can be used to -pass the event loop instance to use for this object. You can use a `null` value -here in order to use the [default loop](https://github.com/reactphp/event-loop#loop). -This value SHOULD NOT be given unless you're sure you want to explicitly use a -given event loop instance. - -This class takes an optional `int|null $readChunkSize` parameter that controls -the maximum buffer size in bytes to read at once from the stream. -You can use a `null` value here in order to apply its default value. -This value SHOULD NOT be changed unless you know what you're doing. -This can be a positive number which means that up to X bytes will be read -at once from the underlying stream resource. Note that the actual number -of bytes read may be lower if the stream resource has less than X bytes -currently available. -This can be `-1` which means "read everything available" from the -underlying stream resource. -This should read until the stream resource is not readable anymore -(i.e. underlying buffer drained), note that this does not neccessarily -mean it reached EOF. - -```php -$conn = stream_socket_client('tcp://google.com:80'); -$stream = new DuplexResourceStream($conn, null, 8192); -``` - -Any `write()` calls to this class will not be performed instantly, but will -be performed asynchronously, once the EventLoop reports the stream resource is -ready to accept data. -For this, it uses an in-memory buffer string to collect all outstanding writes. -This buffer has a soft-limit applied which defines how much data it is willing -to accept before the caller SHOULD stop sending further data. - -This class takes another optional `WritableStreamInterface|null $buffer` parameter -that controls this write behavior of this stream. -You can use a `null` value here in order to apply its default value. -This value SHOULD NOT be changed unless you know what you're doing. - -If you want to change the write buffer soft limit, you can pass an instance of -[`WritableResourceStream`](#writableresourcestream) like this: - -```php -$conn = stream_socket_client('tcp://google.com:80'); -$buffer = new WritableResourceStream($conn, null, 8192); -$stream = new DuplexResourceStream($conn, null, null, $buffer); -``` - -See also [`WritableResourceStream`](#writableresourcestream) for more details. - -> Changelog: As of v1.2.0 the `$loop` parameter can be omitted (or skipped with a - `null` value) to use the [default loop](https://github.com/reactphp/event-loop#loop). - -### ThroughStream - -The `ThroughStream` implements the -[`DuplexStreamInterface`](#duplexstreaminterface) and will simply pass any data -you write to it through to its readable end. - -```php -$through = new ThroughStream(); -$through->on('data', $this->expectCallableOnceWith('hello')); - -$through->write('hello'); -``` - -Similarly, the [`end()` method](#end) will end the stream and emit an -[`end` event](#end-event) and then [`close()`](#close-1) the stream. -The [`close()` method](#close-1) will close the stream and emit a -[`close` event](#close-event). -Accordingly, this is can also be used in a [`pipe()`](#pipe) context like this: - -```php -$through = new ThroughStream(); -$source->pipe($through)->pipe($dest); -``` - -Optionally, its constructor accepts any callable function which will then be -used to *filter* any data written to it. This function receives a single data -argument as passed to the writable side and must return the data as it will be -passed to its readable end: - -```php -$through = new ThroughStream('strtoupper'); -$source->pipe($through)->pipe($dest); -``` - -Note that this class makes no assumptions about any data types. This can be -used to convert data, for example for transforming any structured data into -a newline-delimited JSON (NDJSON) stream like this: - -```php -$through = new ThroughStream(function ($data) { - return json_encode($data) . PHP_EOL; -}); -$through->on('data', $this->expectCallableOnceWith("[2, true]\n")); - -$through->write(array(2, true)); -``` - -The callback function is allowed to throw an `Exception`. In this case, -the stream will emit an `error` event and then [`close()`](#close-1) the stream. - -```php -$through = new ThroughStream(function ($data) { - if (!is_string($data)) { - throw new \UnexpectedValueException('Only strings allowed'); - } - return $data; -}); -$through->on('error', $this->expectCallableOnce())); -$through->on('close', $this->expectCallableOnce())); -$through->on('data', $this->expectCallableNever())); - -$through->write(2); -``` - -### CompositeStream - -The `CompositeStream` implements the -[`DuplexStreamInterface`](#duplexstreaminterface) and can be used to create a -single duplex stream from two individual streams implementing -[`ReadableStreamInterface`](#readablestreaminterface) and -[`WritableStreamInterface`](#writablestreaminterface) respectively. - -This is useful for some APIs which may require a single -[`DuplexStreamInterface`](#duplexstreaminterface) or simply because it's often -more convenient to work with a single stream instance like this: - -```php -$stdin = new ReadableResourceStream(STDIN); -$stdout = new WritableResourceStream(STDOUT); - -$stdio = new CompositeStream($stdin, $stdout); - -$stdio->on('data', function ($chunk) use ($stdio) { - $stdio->write('You said: ' . $chunk); -}); -``` - -This is a well-behaving stream which forwards all stream events from the -underlying streams and forwards all streams calls to the underlying streams. - -If you `write()` to the duplex stream, it will simply `write()` to the -writable side and return its status. - -If you `end()` the duplex stream, it will `end()` the writable side and will -`pause()` the readable side. - -If you `close()` the duplex stream, both input streams will be closed. -If either of the two input streams emits a `close` event, the duplex stream -will also close. -If either of the two input streams is already closed while constructing the -duplex stream, it will `close()` the other side and return a closed stream. - -## Usage - -The following example can be used to pipe the contents of a source file into -a destination file without having to ever read the whole file into memory: - -```php -$source = new React\Stream\ReadableResourceStream(fopen('source.txt', 'r')); -$dest = new React\Stream\WritableResourceStream(fopen('destination.txt', 'w')); - -$source->pipe($dest); -``` - -> Note that this example uses `fopen()` for illustration purposes only. - This should not be used in a truly async program because the filesystem is - inherently blocking and each call could potentially take several seconds. - See also [creating streams](#creating-streams) for more sophisticated - examples. - -## Install - -The recommended way to install this library is [through Composer](https://getcomposer.org). -[New to Composer?](https://getcomposer.org/doc/00-intro.md) - -This project follows [SemVer](https://semver.org/). -This will install the latest supported version: - -```bash -composer require react/stream:^1.4 -``` - -See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades. - -This project aims to run on any platform and thus does not require any PHP -extensions and supports running on legacy PHP 5.3 through current PHP 8+ and HHVM. -It's *highly recommended to use PHP 7+* for this project due to its vast -performance improvements. - -## Tests - -To run the test suite, you first need to clone this repo and then install all -dependencies [through Composer](https://getcomposer.org): - -```bash -composer install -``` - -To run the test suite, go to the project root and run: - -```bash -vendor/bin/phpunit -``` - -The test suite also contains a number of functional integration tests that rely -on a stable internet connection. -If you do not want to run these, they can simply be skipped like this: - -```bash -vendor/bin/phpunit --exclude-group internet -``` - -## License - -MIT, see [LICENSE file](LICENSE). - -## More - -* See [creating streams](#creating-streams) for more information on how streams - are created in real-world applications. -* See our [users wiki](https://github.com/reactphp/react/wiki/Users) and the - [dependents on Packagist](https://packagist.org/packages/react/stream/dependents) - for a list of packages that use streams in real-world applications. diff --git a/vendor/react/stream/composer.json b/vendor/react/stream/composer.json deleted file mode 100644 index 09d8b71..0000000 --- a/vendor/react/stream/composer.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "name": "react/stream", - "description": "Event-driven readable and writable streams for non-blocking I/O in ReactPHP", - "keywords": ["event-driven", "readable", "writable", "stream", "non-blocking", "io", "pipe", "ReactPHP"], - "license": "MIT", - "authors": [ - { - "name": "Christian Lück", - "homepage": "https://clue.engineering/", - "email": "christian@clue.engineering" - }, - { - "name": "Cees-Jan Kiewiet", - "homepage": "https://wyrihaximus.net/", - "email": "reactphp@ceesjankiewiet.nl" - }, - { - "name": "Jan Sorgalla", - "homepage": "https://sorgalla.com/", - "email": "jsorgalla@gmail.com" - }, - { - "name": "Chris Boden", - "homepage": "https://cboden.dev/", - "email": "cboden@gmail.com" - } - ], - "require": { - "php": ">=5.3.8", - "react/event-loop": "^1.2", - "evenement/evenement": "^3.0 || ^2.0 || ^1.0" - }, - "require-dev": { - "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36", - "clue/stream-filter": "~1.2" - }, - "autoload": { - "psr-4": { - "React\\Stream\\": "src/" - } - }, - "autoload-dev": { - "psr-4": { - "React\\Tests\\Stream\\": "tests/" - } - } -} diff --git a/vendor/react/stream/src/CompositeStream.php b/vendor/react/stream/src/CompositeStream.php deleted file mode 100644 index dde091d..0000000 --- a/vendor/react/stream/src/CompositeStream.php +++ /dev/null @@ -1,83 +0,0 @@ -readable = $readable; - $this->writable = $writable; - - if (!$readable->isReadable() || !$writable->isWritable()) { - $this->close(); - return; - } - - Util::forwardEvents($this->readable, $this, array('data', 'end', 'error')); - Util::forwardEvents($this->writable, $this, array('drain', 'error', 'pipe')); - - $this->readable->on('close', array($this, 'close')); - $this->writable->on('close', array($this, 'close')); - } - - public function isReadable() - { - return $this->readable->isReadable(); - } - - public function pause() - { - $this->readable->pause(); - } - - public function resume() - { - if (!$this->writable->isWritable()) { - return; - } - - $this->readable->resume(); - } - - public function pipe(WritableStreamInterface $dest, array $options = array()) - { - return Util::pipe($this, $dest, $options); - } - - public function isWritable() - { - return $this->writable->isWritable(); - } - - public function write($data) - { - return $this->writable->write($data); - } - - public function end($data = null) - { - $this->readable->pause(); - $this->writable->end($data); - } - - public function close() - { - if ($this->closed) { - return; - } - - $this->closed = true; - $this->readable->close(); - $this->writable->close(); - - $this->emit('close'); - $this->removeAllListeners(); - } -} diff --git a/vendor/react/stream/src/DuplexResourceStream.php b/vendor/react/stream/src/DuplexResourceStream.php deleted file mode 100644 index d6de55c..0000000 --- a/vendor/react/stream/src/DuplexResourceStream.php +++ /dev/null @@ -1,240 +0,0 @@ -isLegacyPipe($stream)) { - \stream_set_read_buffer($stream, 0); - } - - if ($buffer === null) { - $buffer = new WritableResourceStream($stream, $loop); - } - - $this->stream = $stream; - $this->loop = $loop ?: Loop::get(); - $this->bufferSize = ($readChunkSize === null) ? 65536 : (int)$readChunkSize; - $this->buffer = $buffer; - - $that = $this; - - $this->buffer->on('error', function ($error) use ($that) { - $that->emit('error', array($error)); - }); - - $this->buffer->on('close', array($this, 'close')); - - $this->buffer->on('drain', function () use ($that) { - $that->emit('drain'); - }); - - $this->resume(); - } - - public function isReadable() - { - return $this->readable; - } - - public function isWritable() - { - return $this->writable; - } - - public function pause() - { - if ($this->listening) { - $this->loop->removeReadStream($this->stream); - $this->listening = false; - } - } - - public function resume() - { - if (!$this->listening && $this->readable) { - $this->loop->addReadStream($this->stream, array($this, 'handleData')); - $this->listening = true; - } - } - - public function write($data) - { - if (!$this->writable) { - return false; - } - - return $this->buffer->write($data); - } - - public function close() - { - if (!$this->writable && !$this->closing) { - return; - } - - $this->closing = false; - - $this->readable = false; - $this->writable = false; - - $this->emit('close'); - $this->pause(); - $this->buffer->close(); - $this->removeAllListeners(); - - if (\is_resource($this->stream)) { - \fclose($this->stream); - } - } - - public function end($data = null) - { - if (!$this->writable) { - return; - } - - $this->closing = true; - - $this->readable = false; - $this->writable = false; - $this->pause(); - - $this->buffer->end($data); - } - - public function pipe(WritableStreamInterface $dest, array $options = array()) - { - return Util::pipe($this, $dest, $options); - } - - /** @internal */ - public function handleData($stream) - { - $error = null; - \set_error_handler(function ($errno, $errstr, $errfile, $errline) use (&$error) { - $error = new \ErrorException( - $errstr, - 0, - $errno, - $errfile, - $errline - ); - }); - - $data = \stream_get_contents($stream, $this->bufferSize); - - \restore_error_handler(); - - if ($error !== null) { - $this->emit('error', array(new \RuntimeException('Unable to read from stream: ' . $error->getMessage(), 0, $error))); - $this->close(); - return; - } - - if ($data !== '') { - $this->emit('data', array($data)); - } elseif (\feof($this->stream)) { - // no data read => we reached the end and close the stream - $this->emit('end'); - $this->close(); - } - } - - /** - * Returns whether this is a pipe resource in a legacy environment - * - * This works around a legacy PHP bug (#61019) that was fixed in PHP 5.4.28+ - * and PHP 5.5.12+ and newer. - * - * @param resource $resource - * @return bool - * @link https://github.com/reactphp/child-process/issues/40 - * - * @codeCoverageIgnore - */ - private function isLegacyPipe($resource) - { - if (\PHP_VERSION_ID < 50428 || (\PHP_VERSION_ID >= 50500 && \PHP_VERSION_ID < 50512)) { - $meta = \stream_get_meta_data($resource); - - if (isset($meta['stream_type']) && $meta['stream_type'] === 'STDIO') { - return true; - } - } - return false; - } -} diff --git a/vendor/react/stream/src/DuplexStreamInterface.php b/vendor/react/stream/src/DuplexStreamInterface.php deleted file mode 100644 index 631ce31..0000000 --- a/vendor/react/stream/src/DuplexStreamInterface.php +++ /dev/null @@ -1,39 +0,0 @@ - Note that higher-level implementations of this interface may choose to - * define additional events with dedicated semantics not defined as part of - * this low-level stream specification. Conformance with these event semantics - * is out of scope for this interface, so you may also have to refer to the - * documentation of such a higher-level implementation. - * - * @see ReadableStreamInterface - * @see WritableStreamInterface - */ -interface DuplexStreamInterface extends ReadableStreamInterface, WritableStreamInterface -{ -} diff --git a/vendor/react/stream/src/ReadableResourceStream.php b/vendor/react/stream/src/ReadableResourceStream.php deleted file mode 100644 index 823360a..0000000 --- a/vendor/react/stream/src/ReadableResourceStream.php +++ /dev/null @@ -1,188 +0,0 @@ -isLegacyPipe($stream)) { - \stream_set_read_buffer($stream, 0); - } - - $this->stream = $stream; - $this->loop = $loop ?: Loop::get(); - $this->bufferSize = ($readChunkSize === null) ? 65536 : (int)$readChunkSize; - - $this->resume(); - } - - public function isReadable() - { - return !$this->closed; - } - - public function pause() - { - if ($this->listening) { - $this->loop->removeReadStream($this->stream); - $this->listening = false; - } - } - - public function resume() - { - if (!$this->listening && !$this->closed) { - $this->loop->addReadStream($this->stream, array($this, 'handleData')); - $this->listening = true; - } - } - - public function pipe(WritableStreamInterface $dest, array $options = array()) - { - return Util::pipe($this, $dest, $options); - } - - public function close() - { - if ($this->closed) { - return; - } - - $this->closed = true; - - $this->emit('close'); - $this->pause(); - $this->removeAllListeners(); - - if (\is_resource($this->stream)) { - \fclose($this->stream); - } - } - - /** @internal */ - public function handleData() - { - $error = null; - \set_error_handler(function ($errno, $errstr, $errfile, $errline) use (&$error) { - $error = new \ErrorException( - $errstr, - 0, - $errno, - $errfile, - $errline - ); - }); - - $data = \stream_get_contents($this->stream, $this->bufferSize); - - \restore_error_handler(); - - if ($error !== null) { - $this->emit('error', array(new \RuntimeException('Unable to read from stream: ' . $error->getMessage(), 0, $error))); - $this->close(); - return; - } - - if ($data !== '') { - $this->emit('data', array($data)); - } elseif (\feof($this->stream)) { - // no data read => we reached the end and close the stream - $this->emit('end'); - $this->close(); - } - } - - /** - * Returns whether this is a pipe resource in a legacy environment - * - * This works around a legacy PHP bug (#61019) that was fixed in PHP 5.4.28+ - * and PHP 5.5.12+ and newer. - * - * @param resource $resource - * @return bool - * @link https://github.com/reactphp/child-process/issues/40 - * - * @codeCoverageIgnore - */ - private function isLegacyPipe($resource) - { - if (\PHP_VERSION_ID < 50428 || (\PHP_VERSION_ID >= 50500 && \PHP_VERSION_ID < 50512)) { - $meta = \stream_get_meta_data($resource); - - if (isset($meta['stream_type']) && $meta['stream_type'] === 'STDIO') { - return true; - } - } - return false; - } -} diff --git a/vendor/react/stream/src/ReadableStreamInterface.php b/vendor/react/stream/src/ReadableStreamInterface.php deleted file mode 100644 index fa3d59c..0000000 --- a/vendor/react/stream/src/ReadableStreamInterface.php +++ /dev/null @@ -1,362 +0,0 @@ -on('data', function ($data) { - * echo $data; - * }); - * ``` - * - * This event MAY be emitted any number of times, which may be zero times if - * this stream does not send any data at all. - * It SHOULD not be emitted after an `end` or `close` event. - * - * The given `$data` argument may be of mixed type, but it's usually - * recommended it SHOULD be a `string` value or MAY use a type that allows - * representation as a `string` for maximum compatibility. - * - * Many common streams (such as a TCP/IP connection or a file-based stream) - * will emit the raw (binary) payload data that is received over the wire as - * chunks of `string` values. - * - * Due to the stream-based nature of this, the sender may send any number - * of chunks with varying sizes. There are no guarantees that these chunks - * will be received with the exact same framing the sender intended to send. - * In other words, many lower-level protocols (such as TCP/IP) transfer the - * data in chunks that may be anywhere between single-byte values to several - * dozens of kilobytes. You may want to apply a higher-level protocol to - * these low-level data chunks in order to achieve proper message framing. - * - * end event: - * The `end` event will be emitted once the source stream has successfully - * reached the end of the stream (EOF). - * - * ```php - * $stream->on('end', function () { - * echo 'END'; - * }); - * ``` - * - * This event SHOULD be emitted once or never at all, depending on whether - * a successful end was detected. - * It SHOULD NOT be emitted after a previous `end` or `close` event. - * It MUST NOT be emitted if the stream closes due to a non-successful - * end, such as after a previous `error` event. - * - * After the stream is ended, it MUST switch to non-readable mode, - * see also `isReadable()`. - * - * This event will only be emitted if the *end* was reached successfully, - * not if the stream was interrupted by an unrecoverable error or explicitly - * closed. Not all streams know this concept of a "successful end". - * Many use-cases involve detecting when the stream closes (terminates) - * instead, in this case you should use the `close` event. - * After the stream emits an `end` event, it SHOULD usually be followed by a - * `close` event. - * - * Many common streams (such as a TCP/IP connection or a file-based stream) - * will emit this event if either the remote side closes the connection or - * a file handle was successfully read until reaching its end (EOF). - * - * Note that this event should not be confused with the `end()` method. - * This event defines a successful end *reading* from a source stream, while - * the `end()` method defines *writing* a successful end to a destination - * stream. - * - * error event: - * The `error` event will be emitted once a fatal error occurs, usually while - * trying to read from this stream. - * The event receives a single `Exception` argument for the error instance. - * - * ```php - * $stream->on('error', function (Exception $e) { - * echo 'Error: ' . $e->getMessage() . PHP_EOL; - * }); - * ``` - * - * This event SHOULD be emitted once the stream detects a fatal error, such - * as a fatal transmission error or after an unexpected `data` or premature - * `end` event. - * It SHOULD NOT be emitted after a previous `error`, `end` or `close` event. - * It MUST NOT be emitted if this is not a fatal error condition, such as - * a temporary network issue that did not cause any data to be lost. - * - * After the stream errors, it MUST close the stream and SHOULD thus be - * followed by a `close` event and then switch to non-readable mode, see - * also `close()` and `isReadable()`. - * - * Many common streams (such as a TCP/IP connection or a file-based stream) - * only deal with data transmission and do not make assumption about data - * boundaries (such as unexpected `data` or premature `end` events). - * In other words, many lower-level protocols (such as TCP/IP) may choose - * to only emit this for a fatal transmission error once and will then - * close (terminate) the stream in response. - * - * If this stream is a `DuplexStreamInterface`, you should also notice - * how the writable side of the stream also implements an `error` event. - * In other words, an error may occur while either reading or writing the - * stream which should result in the same error processing. - * - * close event: - * The `close` event will be emitted once the stream closes (terminates). - * - * ```php - * $stream->on('close', function () { - * echo 'CLOSED'; - * }); - * ``` - * - * This event SHOULD be emitted once or never at all, depending on whether - * the stream ever terminates. - * It SHOULD NOT be emitted after a previous `close` event. - * - * After the stream is closed, it MUST switch to non-readable mode, - * see also `isReadable()`. - * - * Unlike the `end` event, this event SHOULD be emitted whenever the stream - * closes, irrespective of whether this happens implicitly due to an - * unrecoverable error or explicitly when either side closes the stream. - * If you only want to detect a *successful* end, you should use the `end` - * event instead. - * - * Many common streams (such as a TCP/IP connection or a file-based stream) - * will likely choose to emit this event after reading a *successful* `end` - * event or after a fatal transmission `error` event. - * - * If this stream is a `DuplexStreamInterface`, you should also notice - * how the writable side of the stream also implements a `close` event. - * In other words, after receiving this event, the stream MUST switch into - * non-writable AND non-readable mode, see also `isWritable()`. - * Note that this event should not be confused with the `end` event. - * - * The event callback functions MUST be a valid `callable` that obeys strict - * parameter definitions and MUST accept event parameters exactly as documented. - * The event callback functions MUST NOT throw an `Exception`. - * The return value of the event callback functions will be ignored and has no - * effect, so for performance reasons you're recommended to not return any - * excessive data structures. - * - * Every implementation of this interface MUST follow these event semantics in - * order to be considered a well-behaving stream. - * - * > Note that higher-level implementations of this interface may choose to - * define additional events with dedicated semantics not defined as part of - * this low-level stream specification. Conformance with these event semantics - * is out of scope for this interface, so you may also have to refer to the - * documentation of such a higher-level implementation. - * - * @see EventEmitterInterface - */ -interface ReadableStreamInterface extends EventEmitterInterface -{ - /** - * Checks whether this stream is in a readable state (not closed already). - * - * This method can be used to check if the stream still accepts incoming - * data events or if it is ended or closed already. - * Once the stream is non-readable, no further `data` or `end` events SHOULD - * be emitted. - * - * ```php - * assert($stream->isReadable() === false); - * - * $stream->on('data', assertNeverCalled()); - * $stream->on('end', assertNeverCalled()); - * ``` - * - * A successfully opened stream always MUST start in readable mode. - * - * Once the stream ends or closes, it MUST switch to non-readable mode. - * This can happen any time, explicitly through `close()` or - * implicitly due to a remote close or an unrecoverable transmission error. - * Once a stream has switched to non-readable mode, it MUST NOT transition - * back to readable mode. - * - * If this stream is a `DuplexStreamInterface`, you should also notice - * how the writable side of the stream also implements an `isWritable()` - * method. Unless this is a half-open duplex stream, they SHOULD usually - * have the same return value. - * - * @return bool - */ - public function isReadable(); - - /** - * Pauses reading incoming data events. - * - * Removes the data source file descriptor from the event loop. This - * allows you to throttle incoming data. - * - * Unless otherwise noted, a successfully opened stream SHOULD NOT start - * in paused state. - * - * Once the stream is paused, no futher `data` or `end` events SHOULD - * be emitted. - * - * ```php - * $stream->pause(); - * - * $stream->on('data', assertShouldNeverCalled()); - * $stream->on('end', assertShouldNeverCalled()); - * ``` - * - * This method is advisory-only, though generally not recommended, the - * stream MAY continue emitting `data` events. - * - * You can continue processing events by calling `resume()` again. - * - * Note that both methods can be called any number of times, in particular - * calling `pause()` more than once SHOULD NOT have any effect. - * - * @see self::resume() - * @return void - */ - public function pause(); - - /** - * Resumes reading incoming data events. - * - * Re-attach the data source after a previous `pause()`. - * - * ```php - * $stream->pause(); - * - * Loop::addTimer(1.0, function () use ($stream) { - * $stream->resume(); - * }); - * ``` - * - * Note that both methods can be called any number of times, in particular - * calling `resume()` without a prior `pause()` SHOULD NOT have any effect. - * - * @see self::pause() - * @return void - */ - public function resume(); - - /** - * Pipes all the data from this readable source into the given writable destination. - * - * Automatically sends all incoming data to the destination. - * Automatically throttles the source based on what the destination can handle. - * - * ```php - * $source->pipe($dest); - * ``` - * - * Similarly, you can also pipe an instance implementing `DuplexStreamInterface` - * into itself in order to write back all the data that is received. - * This may be a useful feature for a TCP/IP echo service: - * - * ```php - * $connection->pipe($connection); - * ``` - * - * This method returns the destination stream as-is, which can be used to - * set up chains of piped streams: - * - * ```php - * $source->pipe($decodeGzip)->pipe($filterBadWords)->pipe($dest); - * ``` - * - * By default, this will call `end()` on the destination stream once the - * source stream emits an `end` event. This can be disabled like this: - * - * ```php - * $source->pipe($dest, array('end' => false)); - * ``` - * - * Note that this only applies to the `end` event. - * If an `error` or explicit `close` event happens on the source stream, - * you'll have to manually close the destination stream: - * - * ```php - * $source->pipe($dest); - * $source->on('close', function () use ($dest) { - * $dest->end('BYE!'); - * }); - * ``` - * - * If the source stream is not readable (closed state), then this is a NO-OP. - * - * ```php - * $source->close(); - * $source->pipe($dest); // NO-OP - * ``` - * - * If the destinantion stream is not writable (closed state), then this will simply - * throttle (pause) the source stream: - * - * ```php - * $dest->close(); - * $source->pipe($dest); // calls $source->pause() - * ``` - * - * Similarly, if the destination stream is closed while the pipe is still - * active, it will also throttle (pause) the source stream: - * - * ```php - * $source->pipe($dest); - * $dest->close(); // calls $source->pause() - * ``` - * - * Once the pipe is set up successfully, the destination stream MUST emit - * a `pipe` event with this source stream an event argument. - * - * @param WritableStreamInterface $dest - * @param array $options - * @return WritableStreamInterface $dest stream as-is - */ - public function pipe(WritableStreamInterface $dest, array $options = array()); - - /** - * Closes the stream (forcefully). - * - * This method can be used to (forcefully) close the stream. - * - * ```php - * $stream->close(); - * ``` - * - * Once the stream is closed, it SHOULD emit a `close` event. - * Note that this event SHOULD NOT be emitted more than once, in particular - * if this method is called multiple times. - * - * After calling this method, the stream MUST switch into a non-readable - * mode, see also `isReadable()`. - * This means that no further `data` or `end` events SHOULD be emitted. - * - * ```php - * $stream->close(); - * assert($stream->isReadable() === false); - * - * $stream->on('data', assertNeverCalled()); - * $stream->on('end', assertNeverCalled()); - * ``` - * - * If this stream is a `DuplexStreamInterface`, you should also notice - * how the writable side of the stream also implements a `close()` method. - * In other words, after calling this method, the stream MUST switch into - * non-writable AND non-readable mode, see also `isWritable()`. - * Note that this method should not be confused with the `end()` method. - * - * @return void - * @see WritableStreamInterface::close() - */ - public function close(); -} diff --git a/vendor/react/stream/src/ThroughStream.php b/vendor/react/stream/src/ThroughStream.php deleted file mode 100644 index 3b4fbb7..0000000 --- a/vendor/react/stream/src/ThroughStream.php +++ /dev/null @@ -1,195 +0,0 @@ -on('data', $this->expectCallableOnceWith('hello')); - * - * $through->write('hello'); - * ``` - * - * Similarly, the [`end()` method](#end) will end the stream and emit an - * [`end` event](#end-event) and then [`close()`](#close-1) the stream. - * The [`close()` method](#close-1) will close the stream and emit a - * [`close` event](#close-event). - * Accordingly, this is can also be used in a [`pipe()`](#pipe) context like this: - * - * ```php - * $through = new ThroughStream(); - * $source->pipe($through)->pipe($dest); - * ``` - * - * Optionally, its constructor accepts any callable function which will then be - * used to *filter* any data written to it. This function receives a single data - * argument as passed to the writable side and must return the data as it will be - * passed to its readable end: - * - * ```php - * $through = new ThroughStream('strtoupper'); - * $source->pipe($through)->pipe($dest); - * ``` - * - * Note that this class makes no assumptions about any data types. This can be - * used to convert data, for example for transforming any structured data into - * a newline-delimited JSON (NDJSON) stream like this: - * - * ```php - * $through = new ThroughStream(function ($data) { - * return json_encode($data) . PHP_EOL; - * }); - * $through->on('data', $this->expectCallableOnceWith("[2, true]\n")); - * - * $through->write(array(2, true)); - * ``` - * - * The callback function is allowed to throw an `Exception`. In this case, - * the stream will emit an `error` event and then [`close()`](#close-1) the stream. - * - * ```php - * $through = new ThroughStream(function ($data) { - * if (!is_string($data)) { - * throw new \UnexpectedValueException('Only strings allowed'); - * } - * return $data; - * }); - * $through->on('error', $this->expectCallableOnce())); - * $through->on('close', $this->expectCallableOnce())); - * $through->on('data', $this->expectCallableNever())); - * - * $through->write(2); - * ``` - * - * @see WritableStreamInterface::write() - * @see WritableStreamInterface::end() - * @see DuplexStreamInterface::close() - * @see WritableStreamInterface::pipe() - */ -final class ThroughStream extends EventEmitter implements DuplexStreamInterface -{ - private $readable = true; - private $writable = true; - private $closed = false; - private $paused = false; - private $drain = false; - private $callback; - - public function __construct($callback = null) - { - if ($callback !== null && !\is_callable($callback)) { - throw new InvalidArgumentException('Invalid transformation callback given'); - } - - $this->callback = $callback; - } - - public function pause() - { - // only allow pause if still readable, false otherwise - $this->paused = $this->readable; - } - - public function resume() - { - $this->paused = false; - - // emit drain event if previous write was paused (throttled) - if ($this->drain) { - $this->drain = false; - $this->emit('drain'); - } - } - - public function pipe(WritableStreamInterface $dest, array $options = array()) - { - return Util::pipe($this, $dest, $options); - } - - public function isReadable() - { - return $this->readable; - } - - public function isWritable() - { - return $this->writable; - } - - public function write($data) - { - if (!$this->writable) { - return false; - } - - if ($this->callback !== null) { - try { - $data = \call_user_func($this->callback, $data); - } catch (\Exception $e) { - $this->emit('error', array($e)); - $this->close(); - - return false; - } - } - - $this->emit('data', array($data)); - - // emit drain event on next resume if currently paused (throttled) - if ($this->paused) { - $this->drain = true; - } - - // continue writing if still writable and not paused (throttled), false otherwise - return $this->writable && !$this->paused; - } - - public function end($data = null) - { - if (!$this->writable) { - return; - } - - if (null !== $data) { - $this->write($data); - - // return if write() already caused the stream to close - if (!$this->writable) { - return; - } - } - - $this->readable = false; - $this->writable = false; - $this->paused = false; - $this->drain = false; - - $this->emit('end'); - $this->close(); - } - - public function close() - { - if ($this->closed) { - return; - } - - $this->readable = false; - $this->writable = false; - $this->paused = false; - $this->drain = false; - - $this->closed = true; - $this->callback = null; - - $this->emit('close'); - $this->removeAllListeners(); - } -} diff --git a/vendor/react/stream/src/Util.php b/vendor/react/stream/src/Util.php deleted file mode 100644 index 056b037..0000000 --- a/vendor/react/stream/src/Util.php +++ /dev/null @@ -1,75 +0,0 @@ - NO-OP - if (!$source->isReadable()) { - return $dest; - } - - // destination not writable => just pause() source - if (!$dest->isWritable()) { - $source->pause(); - - return $dest; - } - - $dest->emit('pipe', array($source)); - - // forward all source data events as $dest->write() - $source->on('data', $dataer = function ($data) use ($source, $dest) { - $feedMore = $dest->write($data); - - if (false === $feedMore) { - $source->pause(); - } - }); - $dest->on('close', function () use ($source, $dataer) { - $source->removeListener('data', $dataer); - $source->pause(); - }); - - // forward destination drain as $source->resume() - $dest->on('drain', $drainer = function () use ($source) { - $source->resume(); - }); - $source->on('close', function () use ($dest, $drainer) { - $dest->removeListener('drain', $drainer); - }); - - // forward end event from source as $dest->end() - $end = isset($options['end']) ? $options['end'] : true; - if ($end) { - $source->on('end', $ender = function () use ($dest) { - $dest->end(); - }); - $dest->on('close', function () use ($source, $ender) { - $source->removeListener('end', $ender); - }); - } - - return $dest; - } - - public static function forwardEvents($source, $target, array $events) - { - foreach ($events as $event) { - $source->on($event, function () use ($event, $target) { - $target->emit($event, \func_get_args()); - }); - } - } -} diff --git a/vendor/react/stream/src/WritableResourceStream.php b/vendor/react/stream/src/WritableResourceStream.php deleted file mode 100644 index e3a7e74..0000000 --- a/vendor/react/stream/src/WritableResourceStream.php +++ /dev/null @@ -1,178 +0,0 @@ -stream = $stream; - $this->loop = $loop ?: Loop::get(); - $this->softLimit = ($writeBufferSoftLimit === null) ? 65536 : (int)$writeBufferSoftLimit; - $this->writeChunkSize = ($writeChunkSize === null) ? -1 : (int)$writeChunkSize; - } - - public function isWritable() - { - return $this->writable; - } - - public function write($data) - { - if (!$this->writable) { - return false; - } - - $this->data .= $data; - - if (!$this->listening && $this->data !== '') { - $this->listening = true; - - $this->loop->addWriteStream($this->stream, array($this, 'handleWrite')); - } - - return !isset($this->data[$this->softLimit - 1]); - } - - public function end($data = null) - { - if (null !== $data) { - $this->write($data); - } - - $this->writable = false; - - // close immediately if buffer is already empty - // otherwise wait for buffer to flush first - if ($this->data === '') { - $this->close(); - } - } - - public function close() - { - if ($this->closed) { - return; - } - - if ($this->listening) { - $this->listening = false; - $this->loop->removeWriteStream($this->stream); - } - - $this->closed = true; - $this->writable = false; - $this->data = ''; - - $this->emit('close'); - $this->removeAllListeners(); - - if (\is_resource($this->stream)) { - \fclose($this->stream); - } - } - - /** @internal */ - public function handleWrite() - { - $error = null; - \set_error_handler(function ($_, $errstr) use (&$error) { - $error = $errstr; - }); - - if ($this->writeChunkSize === -1) { - $sent = \fwrite($this->stream, $this->data); - } else { - $sent = \fwrite($this->stream, $this->data, $this->writeChunkSize); - } - - \restore_error_handler(); - - // Only report errors if *nothing* could be sent and an error has been raised. - // Ignore non-fatal warnings if *some* data could be sent. - // Any hard (permanent) error will fail to send any data at all. - // Sending excessive amounts of data will only flush *some* data and then - // report a temporary error (EAGAIN) which we do not raise here in order - // to keep the stream open for further tries to write. - // Should this turn out to be a permanent error later, it will eventually - // send *nothing* and we can detect this. - if (($sent === 0 || $sent === false) && $error !== null) { - $this->emit('error', array(new \RuntimeException('Unable to write to stream: ' . $error))); - $this->close(); - - return; - } - - $exceeded = isset($this->data[$this->softLimit - 1]); - $this->data = (string) \substr($this->data, $sent); - - // buffer has been above limit and is now below limit - if ($exceeded && !isset($this->data[$this->softLimit - 1])) { - $this->emit('drain'); - } - - // buffer is now completely empty => stop trying to write - if ($this->data === '') { - // stop waiting for resource to be writable - if ($this->listening) { - $this->loop->removeWriteStream($this->stream); - $this->listening = false; - } - - // buffer is end()ing and now completely empty => close buffer - if (!$this->writable) { - $this->close(); - } - } - } -} diff --git a/vendor/react/stream/src/WritableStreamInterface.php b/vendor/react/stream/src/WritableStreamInterface.php deleted file mode 100644 index e262592..0000000 --- a/vendor/react/stream/src/WritableStreamInterface.php +++ /dev/null @@ -1,347 +0,0 @@ -on('drain', function () use ($stream) { - * echo 'Stream is now ready to accept more data'; - * }); - * ``` - * - * This event SHOULD be emitted once every time the buffer became full - * previously and is now ready to accept more data. - * In other words, this event MAY be emitted any number of times, which may - * be zero times if the buffer never became full in the first place. - * This event SHOULD NOT be emitted if the buffer has not become full - * previously. - * - * This event is mostly used internally, see also `write()` for more details. - * - * pipe event: - * The `pipe` event will be emitted whenever a readable stream is `pipe()`d - * into this stream. - * The event receives a single `ReadableStreamInterface` argument for the - * source stream. - * - * ```php - * $stream->on('pipe', function (ReadableStreamInterface $source) use ($stream) { - * echo 'Now receiving piped data'; - * - * // explicitly close target if source emits an error - * $source->on('error', function () use ($stream) { - * $stream->close(); - * }); - * }); - * - * $source->pipe($stream); - * ``` - * - * This event MUST be emitted once for each readable stream that is - * successfully piped into this destination stream. - * In other words, this event MAY be emitted any number of times, which may - * be zero times if no stream is ever piped into this stream. - * This event MUST NOT be emitted if either the source is not readable - * (closed already) or this destination is not writable (closed already). - * - * This event is mostly used internally, see also `pipe()` for more details. - * - * error event: - * The `error` event will be emitted once a fatal error occurs, usually while - * trying to write to this stream. - * The event receives a single `Exception` argument for the error instance. - * - * ```php - * $stream->on('error', function (Exception $e) { - * echo 'Error: ' . $e->getMessage() . PHP_EOL; - * }); - * ``` - * - * This event SHOULD be emitted once the stream detects a fatal error, such - * as a fatal transmission error. - * It SHOULD NOT be emitted after a previous `error` or `close` event. - * It MUST NOT be emitted if this is not a fatal error condition, such as - * a temporary network issue that did not cause any data to be lost. - * - * After the stream errors, it MUST close the stream and SHOULD thus be - * followed by a `close` event and then switch to non-writable mode, see - * also `close()` and `isWritable()`. - * - * Many common streams (such as a TCP/IP connection or a file-based stream) - * only deal with data transmission and may choose - * to only emit this for a fatal transmission error once and will then - * close (terminate) the stream in response. - * - * If this stream is a `DuplexStreamInterface`, you should also notice - * how the readable side of the stream also implements an `error` event. - * In other words, an error may occur while either reading or writing the - * stream which should result in the same error processing. - * - * close event: - * The `close` event will be emitted once the stream closes (terminates). - * - * ```php - * $stream->on('close', function () { - * echo 'CLOSED'; - * }); - * ``` - * - * This event SHOULD be emitted once or never at all, depending on whether - * the stream ever terminates. - * It SHOULD NOT be emitted after a previous `close` event. - * - * After the stream is closed, it MUST switch to non-writable mode, - * see also `isWritable()`. - * - * This event SHOULD be emitted whenever the stream closes, irrespective of - * whether this happens implicitly due to an unrecoverable error or - * explicitly when either side closes the stream. - * - * Many common streams (such as a TCP/IP connection or a file-based stream) - * will likely choose to emit this event after flushing the buffer from - * the `end()` method, after receiving a *successful* `end` event or after - * a fatal transmission `error` event. - * - * If this stream is a `DuplexStreamInterface`, you should also notice - * how the readable side of the stream also implements a `close` event. - * In other words, after receiving this event, the stream MUST switch into - * non-writable AND non-readable mode, see also `isReadable()`. - * Note that this event should not be confused with the `end` event. - * - * The event callback functions MUST be a valid `callable` that obeys strict - * parameter definitions and MUST accept event parameters exactly as documented. - * The event callback functions MUST NOT throw an `Exception`. - * The return value of the event callback functions will be ignored and has no - * effect, so for performance reasons you're recommended to not return any - * excessive data structures. - * - * Every implementation of this interface MUST follow these event semantics in - * order to be considered a well-behaving stream. - * - * > Note that higher-level implementations of this interface may choose to - * define additional events with dedicated semantics not defined as part of - * this low-level stream specification. Conformance with these event semantics - * is out of scope for this interface, so you may also have to refer to the - * documentation of such a higher-level implementation. - * - * @see EventEmitterInterface - * @see DuplexStreamInterface - */ -interface WritableStreamInterface extends EventEmitterInterface -{ - /** - * Checks whether this stream is in a writable state (not closed already). - * - * This method can be used to check if the stream still accepts writing - * any data or if it is ended or closed already. - * Writing any data to a non-writable stream is a NO-OP: - * - * ```php - * assert($stream->isWritable() === false); - * - * $stream->write('end'); // NO-OP - * $stream->end('end'); // NO-OP - * ``` - * - * A successfully opened stream always MUST start in writable mode. - * - * Once the stream ends or closes, it MUST switch to non-writable mode. - * This can happen any time, explicitly through `end()` or `close()` or - * implicitly due to a remote close or an unrecoverable transmission error. - * Once a stream has switched to non-writable mode, it MUST NOT transition - * back to writable mode. - * - * If this stream is a `DuplexStreamInterface`, you should also notice - * how the readable side of the stream also implements an `isReadable()` - * method. Unless this is a half-open duplex stream, they SHOULD usually - * have the same return value. - * - * @return bool - */ - public function isWritable(); - - /** - * Write some data into the stream. - * - * A successful write MUST be confirmed with a boolean `true`, which means - * that either the data was written (flushed) immediately or is buffered and - * scheduled for a future write. Note that this interface gives you no - * control over explicitly flushing the buffered data, as finding the - * appropriate time for this is beyond the scope of this interface and left - * up to the implementation of this interface. - * - * Many common streams (such as a TCP/IP connection or file-based stream) - * may choose to buffer all given data and schedule a future flush by using - * an underlying EventLoop to check when the resource is actually writable. - * - * If a stream cannot handle writing (or flushing) the data, it SHOULD emit - * an `error` event and MAY `close()` the stream if it can not recover from - * this error. - * - * If the internal buffer is full after adding `$data`, then `write()` - * SHOULD return `false`, indicating that the caller should stop sending - * data until the buffer drains. - * The stream SHOULD send a `drain` event once the buffer is ready to accept - * more data. - * - * Similarly, if the stream is not writable (already in a closed state) - * it MUST NOT process the given `$data` and SHOULD return `false`, - * indicating that the caller should stop sending data. - * - * The given `$data` argument MAY be of mixed type, but it's usually - * recommended it SHOULD be a `string` value or MAY use a type that allows - * representation as a `string` for maximum compatibility. - * - * Many common streams (such as a TCP/IP connection or a file-based stream) - * will only accept the raw (binary) payload data that is transferred over - * the wire as chunks of `string` values. - * - * Due to the stream-based nature of this, the sender may send any number - * of chunks with varying sizes. There are no guarantees that these chunks - * will be received with the exact same framing the sender intended to send. - * In other words, many lower-level protocols (such as TCP/IP) transfer the - * data in chunks that may be anywhere between single-byte values to several - * dozens of kilobytes. You may want to apply a higher-level protocol to - * these low-level data chunks in order to achieve proper message framing. - * - * @param mixed|string $data - * @return bool - */ - public function write($data); - - /** - * Successfully ends the stream (after optionally sending some final data). - * - * This method can be used to successfully end the stream, i.e. close - * the stream after sending out all data that is currently buffered. - * - * ```php - * $stream->write('hello'); - * $stream->write('world'); - * $stream->end(); - * ``` - * - * If there's no data currently buffered and nothing to be flushed, then - * this method MAY `close()` the stream immediately. - * - * If there's still data in the buffer that needs to be flushed first, then - * this method SHOULD try to write out this data and only then `close()` - * the stream. - * Once the stream is closed, it SHOULD emit a `close` event. - * - * Note that this interface gives you no control over explicitly flushing - * the buffered data, as finding the appropriate time for this is beyond the - * scope of this interface and left up to the implementation of this - * interface. - * - * Many common streams (such as a TCP/IP connection or file-based stream) - * may choose to buffer all given data and schedule a future flush by using - * an underlying EventLoop to check when the resource is actually writable. - * - * You can optionally pass some final data that is written to the stream - * before ending the stream. If a non-`null` value is given as `$data`, then - * this method will behave just like calling `write($data)` before ending - * with no data. - * - * ```php - * // shorter version - * $stream->end('bye'); - * - * // same as longer version - * $stream->write('bye'); - * $stream->end(); - * ``` - * - * After calling this method, the stream MUST switch into a non-writable - * mode, see also `isWritable()`. - * This means that no further writes are possible, so any additional - * `write()` or `end()` calls have no effect. - * - * ```php - * $stream->end(); - * assert($stream->isWritable() === false); - * - * $stream->write('nope'); // NO-OP - * $stream->end(); // NO-OP - * ``` - * - * If this stream is a `DuplexStreamInterface`, calling this method SHOULD - * also end its readable side, unless the stream supports half-open mode. - * In other words, after calling this method, these streams SHOULD switch - * into non-writable AND non-readable mode, see also `isReadable()`. - * This implies that in this case, the stream SHOULD NOT emit any `data` - * or `end` events anymore. - * Streams MAY choose to use the `pause()` method logic for this, but - * special care may have to be taken to ensure a following call to the - * `resume()` method SHOULD NOT continue emitting readable events. - * - * Note that this method should not be confused with the `close()` method. - * - * @param mixed|string|null $data - * @return void - */ - public function end($data = null); - - /** - * Closes the stream (forcefully). - * - * This method can be used to forcefully close the stream, i.e. close - * the stream without waiting for any buffered data to be flushed. - * If there's still data in the buffer, this data SHOULD be discarded. - * - * ```php - * $stream->close(); - * ``` - * - * Once the stream is closed, it SHOULD emit a `close` event. - * Note that this event SHOULD NOT be emitted more than once, in particular - * if this method is called multiple times. - * - * After calling this method, the stream MUST switch into a non-writable - * mode, see also `isWritable()`. - * This means that no further writes are possible, so any additional - * `write()` or `end()` calls have no effect. - * - * ```php - * $stream->close(); - * assert($stream->isWritable() === false); - * - * $stream->write('nope'); // NO-OP - * $stream->end(); // NO-OP - * ``` - * - * Note that this method should not be confused with the `end()` method. - * Unlike the `end()` method, this method does not take care of any existing - * buffers and simply discards any buffer contents. - * Likewise, this method may also be called after calling `end()` on a - * stream in order to stop waiting for the stream to flush its final data. - * - * ```php - * $stream->end(); - * Loop::addTimer(1.0, function () use ($stream) { - * $stream->close(); - * }); - * ``` - * - * If this stream is a `DuplexStreamInterface`, you should also notice - * how the readable side of the stream also implements a `close()` method. - * In other words, after calling this method, the stream MUST switch into - * non-writable AND non-readable mode, see also `isReadable()`. - * - * @return void - * @see ReadableStreamInterface::close() - */ - public function close(); -} diff --git a/vendor/symfony/clock/CHANGELOG.md b/vendor/symfony/clock/CHANGELOG.md deleted file mode 100644 index c71cb5c..0000000 --- a/vendor/symfony/clock/CHANGELOG.md +++ /dev/null @@ -1,25 +0,0 @@ -CHANGELOG -========= - -7.1 ---- - - * Add `DatePoint::getMicrosecond()` and `DatePoint::setMicrosecond()` - -6.4 ---- - - * Add `DatePoint`: an immutable DateTime implementation with stricter error handling and return types - * Throw `DateMalformedStringException`/`DateInvalidTimeZoneException` when appropriate - * Add `$modifier` argument to the `now()` helper - -6.3 ---- - - * Add `ClockAwareTrait` to help write time-sensitive classes - * Add `Clock` class and `now()` function - -6.2 ---- - - * Add the component diff --git a/vendor/symfony/clock/Clock.php b/vendor/symfony/clock/Clock.php deleted file mode 100644 index 311e8fc..0000000 --- a/vendor/symfony/clock/Clock.php +++ /dev/null @@ -1,89 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Clock; - -use Psr\Clock\ClockInterface as PsrClockInterface; - -/** - * A global clock. - * - * @author Nicolas Grekas - */ -final class Clock implements ClockInterface -{ - private static ClockInterface $globalClock; - - public function __construct( - private readonly ?PsrClockInterface $clock = null, - private ?\DateTimeZone $timezone = null, - ) { - } - - /** - * Returns the current global clock. - * - * Note that you should prefer injecting a ClockInterface or using - * ClockAwareTrait when possible instead of using this method. - */ - public static function get(): ClockInterface - { - return self::$globalClock ??= new NativeClock(); - } - - public static function set(PsrClockInterface $clock): void - { - self::$globalClock = $clock instanceof ClockInterface ? $clock : new self($clock); - } - - public function now(): DatePoint - { - $now = ($this->clock ?? self::get())->now(); - - if (!$now instanceof DatePoint) { - $now = DatePoint::createFromInterface($now); - } - - return isset($this->timezone) ? $now->setTimezone($this->timezone) : $now; - } - - public function sleep(float|int $seconds): void - { - $clock = $this->clock ?? self::get(); - - if ($clock instanceof ClockInterface) { - $clock->sleep($seconds); - } else { - (new NativeClock())->sleep($seconds); - } - } - - /** - * @throws \DateInvalidTimeZoneException When $timezone is invalid - */ - public function withTimeZone(\DateTimeZone|string $timezone): static - { - if (\PHP_VERSION_ID >= 80300 && \is_string($timezone)) { - $timezone = new \DateTimeZone($timezone); - } elseif (\is_string($timezone)) { - try { - $timezone = new \DateTimeZone($timezone); - } catch (\Exception $e) { - throw new \DateInvalidTimeZoneException($e->getMessage(), $e->getCode(), $e); - } - } - - $clone = clone $this; - $clone->timezone = $timezone; - - return $clone; - } -} diff --git a/vendor/symfony/clock/ClockAwareTrait.php b/vendor/symfony/clock/ClockAwareTrait.php deleted file mode 100644 index e723d7f..0000000 --- a/vendor/symfony/clock/ClockAwareTrait.php +++ /dev/null @@ -1,38 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Clock; - -use Psr\Clock\ClockInterface; -use Symfony\Contracts\Service\Attribute\Required; - -/** - * A trait to help write time-sensitive classes. - * - * @author Nicolas Grekas - */ -trait ClockAwareTrait -{ - private readonly ClockInterface $clock; - - #[Required] - public function setClock(ClockInterface $clock): void - { - $this->clock = $clock; - } - - protected function now(): DatePoint - { - $now = ($this->clock ??= new Clock())->now(); - - return $now instanceof DatePoint ? $now : DatePoint::createFromInterface($now); - } -} diff --git a/vendor/symfony/clock/ClockInterface.php b/vendor/symfony/clock/ClockInterface.php deleted file mode 100644 index 435775a..0000000 --- a/vendor/symfony/clock/ClockInterface.php +++ /dev/null @@ -1,24 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Clock; - -use Psr\Clock\ClockInterface as PsrClockInterface; - -/** - * @author Nicolas Grekas - */ -interface ClockInterface extends PsrClockInterface -{ - public function sleep(float|int $seconds): void; - - public function withTimeZone(\DateTimeZone|string $timezone): static; -} diff --git a/vendor/symfony/clock/DatePoint.php b/vendor/symfony/clock/DatePoint.php deleted file mode 100644 index 4df35fe..0000000 --- a/vendor/symfony/clock/DatePoint.php +++ /dev/null @@ -1,169 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Clock; - -/** - * An immmutable DateTime with stricter error handling and return types than the native one. - * - * @author Nicolas Grekas - */ -final class DatePoint extends \DateTimeImmutable -{ - /** - * @throws \DateMalformedStringException When $datetime is invalid - */ - public function __construct(string $datetime = 'now', ?\DateTimeZone $timezone = null, ?parent $reference = null) - { - $now = $reference ?? Clock::get()->now(); - - if ('now' !== $datetime) { - if (!$now instanceof static) { - $now = static::createFromInterface($now); - } - - if (\PHP_VERSION_ID < 80300) { - try { - $builtInDate = new parent($datetime, $timezone ?? $now->getTimezone()); - $timezone = $builtInDate->getTimezone(); - } catch (\Exception $e) { - throw new \DateMalformedStringException($e->getMessage(), $e->getCode(), $e); - } - } else { - $builtInDate = new parent($datetime, $timezone ?? $now->getTimezone()); - $timezone = $builtInDate->getTimezone(); - } - - $now = $now->setTimezone($timezone)->modify($datetime); - - if ('00:00:00.000000' === $builtInDate->format('H:i:s.u')) { - $now = $now->setTime(0, 0); - } - } elseif (null !== $timezone) { - $now = $now->setTimezone($timezone); - } - - $this->__unserialize((array) $now); - } - - /** - * @throws \DateMalformedStringException When $format or $datetime are invalid - */ - public static function createFromFormat(string $format, string $datetime, ?\DateTimeZone $timezone = null): static - { - return parent::createFromFormat($format, $datetime, $timezone) ?: throw new \DateMalformedStringException(static::getLastErrors()['errors'][0] ?? 'Invalid date string or format.'); - } - - public static function createFromInterface(\DateTimeInterface $object): static - { - return parent::createFromInterface($object); - } - - public static function createFromMutable(\DateTime $object): static - { - return parent::createFromMutable($object); - } - - public static function createFromTimestamp(int|float $timestamp): static - { - if (\PHP_VERSION_ID >= 80400) { - return parent::createFromTimestamp($timestamp); - } - - if (\is_int($timestamp) || !$ms = (int) $timestamp - $timestamp) { - return static::createFromFormat('U', (string) $timestamp); - } - - if (!is_finite($timestamp) || \PHP_INT_MAX + 1.0 <= $timestamp || \PHP_INT_MIN > $timestamp) { - throw new \DateRangeError(\sprintf('DateTimeImmutable::createFromTimestamp(): Argument #1 ($timestamp) must be a finite number between %s and %s.999999, %s given', \PHP_INT_MIN, \PHP_INT_MAX, $timestamp)); - } - - if ($timestamp < 0) { - $timestamp = (int) $timestamp - 2.0 + $ms; - } - - return static::createFromFormat('U.u', \sprintf('%.6F', $timestamp)); - } - - public function add(\DateInterval $interval): static - { - return parent::add($interval); - } - - public function sub(\DateInterval $interval): static - { - return parent::sub($interval); - } - - /** - * @throws \DateMalformedStringException When $modifier is invalid - */ - public function modify(string $modifier): static - { - if (\PHP_VERSION_ID < 80300) { - return @parent::modify($modifier) ?: throw new \DateMalformedStringException(error_get_last()['message'] ?? \sprintf('Invalid modifier: "%s".', $modifier)); - } - - return parent::modify($modifier); - } - - public function setTimestamp(int $value): static - { - return parent::setTimestamp($value); - } - - public function setDate(int $year, int $month, int $day): static - { - return parent::setDate($year, $month, $day); - } - - public function setISODate(int $year, int $week, int $day = 1): static - { - return parent::setISODate($year, $week, $day); - } - - public function setTime(int $hour, int $minute, int $second = 0, int $microsecond = 0): static - { - return parent::setTime($hour, $minute, $second, $microsecond); - } - - public function setTimezone(\DateTimeZone $timezone): static - { - return parent::setTimezone($timezone); - } - - public function getTimezone(): \DateTimeZone - { - return parent::getTimezone() ?: throw new \DateInvalidTimeZoneException('The DatePoint object has no timezone.'); - } - - public function setMicrosecond(int $microsecond): static - { - if ($microsecond < 0 || $microsecond > 999999) { - throw new \DateRangeError('DatePoint::setMicrosecond(): Argument #1 ($microsecond) must be between 0 and 999999, '.$microsecond.' given'); - } - - if (\PHP_VERSION_ID < 80400) { - return $this->setTime(...explode('.', $this->format('H.i.s.'.$microsecond))); - } - - return parent::setMicrosecond($microsecond); - } - - public function getMicrosecond(): int - { - if (\PHP_VERSION_ID >= 80400) { - return parent::getMicrosecond(); - } - - return $this->format('u'); - } -} diff --git a/vendor/symfony/clock/LICENSE b/vendor/symfony/clock/LICENSE deleted file mode 100644 index 733c826..0000000 --- a/vendor/symfony/clock/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2022-present Fabien Potencier - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is furnished -to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/vendor/symfony/clock/MockClock.php b/vendor/symfony/clock/MockClock.php deleted file mode 100644 index 9ba2726..0000000 --- a/vendor/symfony/clock/MockClock.php +++ /dev/null @@ -1,98 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Clock; - -/** - * A clock that always returns the same date, suitable for testing time-sensitive logic. - * - * Consider using ClockSensitiveTrait in your test cases instead of using this class directly. - * - * @author Nicolas Grekas - */ -final class MockClock implements ClockInterface -{ - private DatePoint $now; - - /** - * @throws \DateMalformedStringException When $now is invalid - * @throws \DateInvalidTimeZoneException When $timezone is invalid - */ - public function __construct(\DateTimeImmutable|string $now = 'now', \DateTimeZone|string|null $timezone = null) - { - if (\PHP_VERSION_ID >= 80300 && \is_string($timezone)) { - $timezone = new \DateTimeZone($timezone); - } elseif (\is_string($timezone)) { - try { - $timezone = new \DateTimeZone($timezone); - } catch (\Exception $e) { - throw new \DateInvalidTimeZoneException($e->getMessage(), $e->getCode(), $e); - } - } - - if (\is_string($now)) { - $now = new DatePoint($now, $timezone ?? new \DateTimeZone('UTC')); - } elseif (!$now instanceof DatePoint) { - $now = DatePoint::createFromInterface($now); - } - - $this->now = null !== $timezone ? $now->setTimezone($timezone) : $now; - } - - public function now(): DatePoint - { - return clone $this->now; - } - - public function sleep(float|int $seconds): void - { - $now = (float) $this->now->format('Uu') + $seconds * 1e6; - $now = substr_replace(\sprintf('@%07.0F', $now), '.', -6, 0); - $timezone = $this->now->getTimezone(); - - $this->now = DatePoint::createFromInterface(new \DateTimeImmutable($now, $timezone))->setTimezone($timezone); - } - - /** - * @throws \DateMalformedStringException When $modifier is invalid - */ - public function modify(string $modifier): void - { - if (\PHP_VERSION_ID < 80300) { - $this->now = @$this->now->modify($modifier) ?: throw new \DateMalformedStringException(error_get_last()['message'] ?? \sprintf('Invalid modifier: "%s". Could not modify MockClock.', $modifier)); - - return; - } - - $this->now = $this->now->modify($modifier); - } - - /** - * @throws \DateInvalidTimeZoneException When the timezone name is invalid - */ - public function withTimeZone(\DateTimeZone|string $timezone): static - { - if (\PHP_VERSION_ID >= 80300 && \is_string($timezone)) { - $timezone = new \DateTimeZone($timezone); - } elseif (\is_string($timezone)) { - try { - $timezone = new \DateTimeZone($timezone); - } catch (\Exception $e) { - throw new \DateInvalidTimeZoneException($e->getMessage(), $e->getCode(), $e); - } - } - - $clone = clone $this; - $clone->now = $clone->now->setTimezone($timezone); - - return $clone; - } -} diff --git a/vendor/symfony/clock/MonotonicClock.php b/vendor/symfony/clock/MonotonicClock.php deleted file mode 100644 index d27bf9c..0000000 --- a/vendor/symfony/clock/MonotonicClock.php +++ /dev/null @@ -1,93 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Clock; - -/** - * A monotonic clock suitable for performance profiling. - * - * @author Nicolas Grekas - */ -final class MonotonicClock implements ClockInterface -{ - private int $sOffset; - private int $usOffset; - private \DateTimeZone $timezone; - - /** - * @throws \DateInvalidTimeZoneException When $timezone is invalid - */ - public function __construct(\DateTimeZone|string|null $timezone = null) - { - if (false === $offset = hrtime()) { - throw new \RuntimeException('hrtime() returned false: the runtime environment does not provide access to a monotonic timer.'); - } - - $time = explode(' ', microtime(), 2); - $this->sOffset = $time[1] - $offset[0]; - $this->usOffset = (int) ($time[0] * 1000000) - (int) ($offset[1] / 1000); - - $this->timezone = \is_string($timezone ??= date_default_timezone_get()) ? $this->withTimeZone($timezone)->timezone : $timezone; - } - - public function now(): DatePoint - { - [$s, $us] = hrtime(); - - if (1000000 <= $us = (int) ($us / 1000) + $this->usOffset) { - ++$s; - $us -= 1000000; - } elseif (0 > $us) { - --$s; - $us += 1000000; - } - - if (6 !== \strlen($now = (string) $us)) { - $now = str_pad($now, 6, '0', \STR_PAD_LEFT); - } - - $now = '@'.($s + $this->sOffset).'.'.$now; - - return DatePoint::createFromInterface(new \DateTimeImmutable($now, $this->timezone))->setTimezone($this->timezone); - } - - public function sleep(float|int $seconds): void - { - if (0 < $s = (int) $seconds) { - sleep($s); - } - - if (0 < $us = $seconds - $s) { - usleep((int) ($us * 1E6)); - } - } - - /** - * @throws \DateInvalidTimeZoneException When $timezone is invalid - */ - public function withTimeZone(\DateTimeZone|string $timezone): static - { - if (\PHP_VERSION_ID >= 80300 && \is_string($timezone)) { - $timezone = new \DateTimeZone($timezone); - } elseif (\is_string($timezone)) { - try { - $timezone = new \DateTimeZone($timezone); - } catch (\Exception $e) { - throw new \DateInvalidTimeZoneException($e->getMessage(), $e->getCode(), $e); - } - } - - $clone = clone $this; - $clone->timezone = $timezone; - - return $clone; - } -} diff --git a/vendor/symfony/clock/NativeClock.php b/vendor/symfony/clock/NativeClock.php deleted file mode 100644 index b580a88..0000000 --- a/vendor/symfony/clock/NativeClock.php +++ /dev/null @@ -1,67 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Clock; - -/** - * A clock that relies the system time. - * - * @author Nicolas Grekas - */ -final class NativeClock implements ClockInterface -{ - private \DateTimeZone $timezone; - - /** - * @throws \DateInvalidTimeZoneException When $timezone is invalid - */ - public function __construct(\DateTimeZone|string|null $timezone = null) - { - $this->timezone = \is_string($timezone ??= date_default_timezone_get()) ? $this->withTimeZone($timezone)->timezone : $timezone; - } - - public function now(): DatePoint - { - return DatePoint::createFromInterface(new \DateTimeImmutable('now', $this->timezone)); - } - - public function sleep(float|int $seconds): void - { - if (0 < $s = (int) $seconds) { - sleep($s); - } - - if (0 < $us = $seconds - $s) { - usleep((int) ($us * 1E6)); - } - } - - /** - * @throws \DateInvalidTimeZoneException When $timezone is invalid - */ - public function withTimeZone(\DateTimeZone|string $timezone): static - { - if (\PHP_VERSION_ID >= 80300 && \is_string($timezone)) { - $timezone = new \DateTimeZone($timezone); - } elseif (\is_string($timezone)) { - try { - $timezone = new \DateTimeZone($timezone); - } catch (\Exception $e) { - throw new \DateInvalidTimeZoneException($e->getMessage(), $e->getCode(), $e); - } - } - - $clone = clone $this; - $clone->timezone = $timezone; - - return $clone; - } -} diff --git a/vendor/symfony/clock/README.md b/vendor/symfony/clock/README.md deleted file mode 100644 index e80b5d3..0000000 --- a/vendor/symfony/clock/README.md +++ /dev/null @@ -1,47 +0,0 @@ -Clock Component -=============== - -Symfony Clock decouples applications from the system clock. - -Getting Started ---------------- - -```bash -composer require symfony/clock -``` - -```php -use Symfony\Component\Clock\NativeClock; -use Symfony\Component\Clock\ClockInterface; - -class MyClockSensitiveClass -{ - public function __construct( - private ClockInterface $clock, - ) { - // Only if you need to force a timezone: - //$this->clock = $clock->withTimeZone('UTC'); - } - - public function doSomething() - { - $now = $this->clock->now(); - // [...] do something with $now, which is a \DateTimeImmutable object - - $this->clock->sleep(2.5); // Pause execution for 2.5 seconds - } -} - -$clock = new NativeClock(); -$service = new MyClockSensitiveClass($clock); -$service->doSomething(); -``` - -Resources ---------- - - * [Documentation](https://symfony.com/doc/current/components/clock.html) - * [Contributing](https://symfony.com/doc/current/contributing/index.html) - * [Report issues](https://github.com/symfony/symfony/issues) and - [send Pull Requests](https://github.com/symfony/symfony/pulls) - in the [main Symfony repository](https://github.com/symfony/symfony) diff --git a/vendor/symfony/clock/Resources/now.php b/vendor/symfony/clock/Resources/now.php deleted file mode 100644 index 47d086c..0000000 --- a/vendor/symfony/clock/Resources/now.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Clock; - -if (!\function_exists(now::class)) { - /** - * @throws \DateMalformedStringException When the modifier is invalid - */ - function now(string $modifier = 'now'): DatePoint - { - if ('now' !== $modifier) { - return new DatePoint($modifier); - } - - $now = Clock::get()->now(); - - return $now instanceof DatePoint ? $now : DatePoint::createFromInterface($now); - } -} diff --git a/vendor/symfony/clock/Test/ClockSensitiveTrait.php b/vendor/symfony/clock/Test/ClockSensitiveTrait.php deleted file mode 100644 index f71f3a1..0000000 --- a/vendor/symfony/clock/Test/ClockSensitiveTrait.php +++ /dev/null @@ -1,77 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Clock\Test; - -use PHPUnit\Framework\Attributes\After; -use PHPUnit\Framework\Attributes\Before; -use PHPUnit\Framework\Attributes\BeforeClass; -use Symfony\Component\Clock\Clock; -use Symfony\Component\Clock\ClockInterface; -use Symfony\Component\Clock\MockClock; - -use function Symfony\Component\Clock\now; - -/** - * Helps with mocking the time in your test cases. - * - * This trait provides one self::mockTime() method that freezes the time. - * It restores the global clock after each test case. - * self::mockTime() accepts either a string (eg '+1 days' or '2022-12-22'), - * a DateTimeImmutable, or a boolean (to freeze/restore the global clock). - * - * @author Nicolas Grekas - */ -trait ClockSensitiveTrait -{ - public static function mockTime(string|\DateTimeImmutable|bool $when = true): ClockInterface - { - Clock::set(match (true) { - false === $when => self::saveClockBeforeTest(false), - true === $when => new MockClock(), - $when instanceof \DateTimeImmutable => new MockClock($when), - default => new MockClock(now($when)), - }); - - return Clock::get(); - } - - /** - * @beforeClass - * - * @before - * - * @internal - */ - #[Before] - #[BeforeClass] - public static function saveClockBeforeTest(bool $save = true): ClockInterface - { - static $originalClock; - - if ($save && $originalClock) { - self::restoreClockAfterTest(); - } - - return $save ? $originalClock = Clock::get() : $originalClock; - } - - /** - * @after - * - * @internal - */ - #[After] - protected static function restoreClockAfterTest(): void - { - Clock::set(self::saveClockBeforeTest(false)); - } -} diff --git a/vendor/symfony/clock/composer.json b/vendor/symfony/clock/composer.json deleted file mode 100644 index 491215f..0000000 --- a/vendor/symfony/clock/composer.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "symfony/clock", - "type": "library", - "description": "Decouples applications from the system clock", - "keywords": ["clock", "time", "psr20"], - "homepage": "https://symfony.com", - "license": "MIT", - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "provide": { - "psr/clock-implementation": "1.0" - }, - "require": { - "php": ">=8.2", - "psr/clock": "^1.0", - "symfony/polyfill-php83": "^1.28" - }, - "autoload": { - "files": [ "Resources/now.php" ], - "psr-4": { "Symfony\\Component\\Clock\\": "" }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "minimum-stability": "dev" -} diff --git a/vendor/symfony/deprecation-contracts/CHANGELOG.md b/vendor/symfony/deprecation-contracts/CHANGELOG.md deleted file mode 100644 index 7932e26..0000000 --- a/vendor/symfony/deprecation-contracts/CHANGELOG.md +++ /dev/null @@ -1,5 +0,0 @@ -CHANGELOG -========= - -The changelog is maintained for all Symfony contracts at the following URL: -https://github.com/symfony/contracts/blob/main/CHANGELOG.md diff --git a/vendor/symfony/deprecation-contracts/LICENSE b/vendor/symfony/deprecation-contracts/LICENSE deleted file mode 100644 index 0ed3a24..0000000 --- a/vendor/symfony/deprecation-contracts/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2020-present Fabien Potencier - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is furnished -to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/vendor/symfony/deprecation-contracts/README.md b/vendor/symfony/deprecation-contracts/README.md deleted file mode 100644 index 9814864..0000000 --- a/vendor/symfony/deprecation-contracts/README.md +++ /dev/null @@ -1,26 +0,0 @@ -Symfony Deprecation Contracts -============================= - -A generic function and convention to trigger deprecation notices. - -This package provides a single global function named `trigger_deprecation()` that triggers silenced deprecation notices. - -By using a custom PHP error handler such as the one provided by the Symfony ErrorHandler component, -the triggered deprecations can be caught and logged for later discovery, both on dev and prod environments. - -The function requires at least 3 arguments: - - the name of the Composer package that is triggering the deprecation - - the version of the package that introduced the deprecation - - the message of the deprecation - - more arguments can be provided: they will be inserted in the message using `printf()` formatting - -Example: -```php -trigger_deprecation('symfony/blockchain', '8.9', 'Using "%s" is deprecated, use "%s" instead.', 'bitcoin', 'fabcoin'); -``` - -This will generate the following message: -`Since symfony/blockchain 8.9: Using "bitcoin" is deprecated, use "fabcoin" instead.` - -While not recommended, the deprecation notices can be completely ignored by declaring an empty -`function trigger_deprecation() {}` in your application. diff --git a/vendor/symfony/deprecation-contracts/composer.json b/vendor/symfony/deprecation-contracts/composer.json deleted file mode 100644 index ceb6c07..0000000 --- a/vendor/symfony/deprecation-contracts/composer.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "symfony/deprecation-contracts", - "type": "library", - "description": "A generic function and convention to trigger deprecation notices", - "homepage": "https://symfony.com", - "license": "MIT", - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "require": { - "php": ">=8.1" - }, - "autoload": { - "files": [ - "function.php" - ] - }, - "minimum-stability": "dev", - "extra": { - "branch-alias": { - "dev-main": "3.5-dev" - }, - "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" - } - } -} diff --git a/vendor/symfony/deprecation-contracts/function.php b/vendor/symfony/deprecation-contracts/function.php deleted file mode 100644 index 2d56512..0000000 --- a/vendor/symfony/deprecation-contracts/function.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -if (!function_exists('trigger_deprecation')) { - /** - * Triggers a silenced deprecation notice. - * - * @param string $package The name of the Composer package that is triggering the deprecation - * @param string $version The version of the package that introduced the deprecation - * @param string $message The message of the deprecation - * @param mixed ...$args Values to insert in the message using printf() formatting - * - * @author Nicolas Grekas - */ - function trigger_deprecation(string $package, string $version, string $message, mixed ...$args): void - { - @trigger_error(($package || $version ? "Since $package $version: " : '').($args ? vsprintf($message, $args) : $message), \E_USER_DEPRECATED); - } -} diff --git a/vendor/symfony/options-resolver/CHANGELOG.md b/vendor/symfony/options-resolver/CHANGELOG.md deleted file mode 100644 index f4de6d0..0000000 --- a/vendor/symfony/options-resolver/CHANGELOG.md +++ /dev/null @@ -1,96 +0,0 @@ -CHANGELOG -========= - -6.4 ---- - -* Improve message with full path on invalid type in nested option - -6.3 ---- - - * Add `OptionsResolver::setIgnoreUndefined()` and `OptionConfigurator::ignoreUndefined()` to ignore not defined options while resolving - -6.0 ---- - - * Remove `OptionsResolverIntrospector::getDeprecationMessage()` - -5.3 ---- - - * Add prototype definition for nested options - -5.1.0 ------ - - * added fluent configuration of options using `OptionResolver::define()` - * added `setInfo()` and `getInfo()` methods - * updated the signature of method `OptionsResolver::setDeprecated()` to `OptionsResolver::setDeprecation(string $option, string $package, string $version, $message)` - * deprecated `OptionsResolverIntrospector::getDeprecationMessage()`, use `OptionsResolverIntrospector::getDeprecation()` instead - -5.0.0 ------ - - * added argument `$triggerDeprecation` to `OptionsResolver::offsetGet()` - -4.3.0 ------ - - * added `OptionsResolver::addNormalizer` method - -4.2.0 ------ - - * added support for nested options definition - * added `setDeprecated` and `isDeprecated` methods - -3.4.0 ------ - - * added `OptionsResolverIntrospector` to inspect options definitions inside an `OptionsResolver` instance - * added array of types support in allowed types (e.g int[]) - -2.6.0 ------ - - * deprecated OptionsResolverInterface - * [BC BREAK] removed "array" type hint from OptionsResolverInterface methods - setRequired(), setAllowedValues(), addAllowedValues(), setAllowedTypes() and - addAllowedTypes() - * added OptionsResolver::setDefault() - * added OptionsResolver::hasDefault() - * added OptionsResolver::setNormalizer() - * added OptionsResolver::isRequired() - * added OptionsResolver::getRequiredOptions() - * added OptionsResolver::isMissing() - * added OptionsResolver::getMissingOptions() - * added OptionsResolver::setDefined() - * added OptionsResolver::isDefined() - * added OptionsResolver::getDefinedOptions() - * added OptionsResolver::remove() - * added OptionsResolver::clear() - * deprecated OptionsResolver::replaceDefaults() - * deprecated OptionsResolver::setOptional() in favor of setDefined() - * deprecated OptionsResolver::isKnown() in favor of isDefined() - * [BC BREAK] OptionsResolver::isRequired() returns true now if a required - option has a default value set - * [BC BREAK] merged Options into OptionsResolver and turned Options into an - interface - * deprecated Options::overload() (now in OptionsResolver) - * deprecated Options::set() (now in OptionsResolver) - * deprecated Options::get() (now in OptionsResolver) - * deprecated Options::has() (now in OptionsResolver) - * deprecated Options::replace() (now in OptionsResolver) - * [BC BREAK] Options::get() (now in OptionsResolver) can only be used within - lazy option/normalizer closures now - * [BC BREAK] removed Traversable interface from Options since using within - lazy option/normalizer closures resulted in exceptions - * [BC BREAK] removed Options::all() since using within lazy option/normalizer - closures resulted in exceptions - * [BC BREAK] OptionDefinitionException now extends LogicException instead of - RuntimeException - * [BC BREAK] normalizers are not executed anymore for unset options - * normalizers are executed after validating the options now - * [BC BREAK] an UndefinedOptionsException is now thrown instead of an - InvalidOptionsException when non-existing options are passed diff --git a/vendor/symfony/options-resolver/Debug/OptionsResolverIntrospector.php b/vendor/symfony/options-resolver/Debug/OptionsResolverIntrospector.php deleted file mode 100644 index dab741b..0000000 --- a/vendor/symfony/options-resolver/Debug/OptionsResolverIntrospector.php +++ /dev/null @@ -1,104 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\OptionsResolver\Debug; - -use Symfony\Component\OptionsResolver\Exception\NoConfigurationException; -use Symfony\Component\OptionsResolver\Exception\UndefinedOptionsException; -use Symfony\Component\OptionsResolver\OptionsResolver; - -/** - * @author Maxime Steinhausser - * - * @final - */ -class OptionsResolverIntrospector -{ - private \Closure $get; - - public function __construct(OptionsResolver $optionsResolver) - { - $this->get = \Closure::bind(function ($property, $option, $message) { - /** @var OptionsResolver $this */ - if (!$this->isDefined($option)) { - throw new UndefinedOptionsException(\sprintf('The option "%s" does not exist.', $option)); - } - - if (!\array_key_exists($option, $this->{$property})) { - throw new NoConfigurationException($message); - } - - return $this->{$property}[$option]; - }, $optionsResolver, $optionsResolver); - } - - /** - * @throws NoConfigurationException on no configured value - */ - public function getDefault(string $option): mixed - { - return ($this->get)('defaults', $option, \sprintf('No default value was set for the "%s" option.', $option)); - } - - /** - * @return \Closure[] - * - * @throws NoConfigurationException on no configured closures - */ - public function getLazyClosures(string $option): array - { - return ($this->get)('lazy', $option, \sprintf('No lazy closures were set for the "%s" option.', $option)); - } - - /** - * @return string[] - * - * @throws NoConfigurationException on no configured types - */ - public function getAllowedTypes(string $option): array - { - return ($this->get)('allowedTypes', $option, \sprintf('No allowed types were set for the "%s" option.', $option)); - } - - /** - * @return mixed[] - * - * @throws NoConfigurationException on no configured values - */ - public function getAllowedValues(string $option): array - { - return ($this->get)('allowedValues', $option, \sprintf('No allowed values were set for the "%s" option.', $option)); - } - - /** - * @throws NoConfigurationException on no configured normalizer - */ - public function getNormalizer(string $option): \Closure - { - return current($this->getNormalizers($option)); - } - - /** - * @throws NoConfigurationException when no normalizer is configured - */ - public function getNormalizers(string $option): array - { - return ($this->get)('normalizers', $option, \sprintf('No normalizer was set for the "%s" option.', $option)); - } - - /** - * @throws NoConfigurationException on no configured deprecation - */ - public function getDeprecation(string $option): array - { - return ($this->get)('deprecated', $option, \sprintf('No deprecation was set for the "%s" option.', $option)); - } -} diff --git a/vendor/symfony/options-resolver/Exception/AccessException.php b/vendor/symfony/options-resolver/Exception/AccessException.php deleted file mode 100644 index c12b680..0000000 --- a/vendor/symfony/options-resolver/Exception/AccessException.php +++ /dev/null @@ -1,22 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\OptionsResolver\Exception; - -/** - * Thrown when trying to read an option outside of or write it inside of - * {@link \Symfony\Component\OptionsResolver\Options::resolve()}. - * - * @author Bernhard Schussek - */ -class AccessException extends \LogicException implements ExceptionInterface -{ -} diff --git a/vendor/symfony/options-resolver/Exception/ExceptionInterface.php b/vendor/symfony/options-resolver/Exception/ExceptionInterface.php deleted file mode 100644 index ea99d05..0000000 --- a/vendor/symfony/options-resolver/Exception/ExceptionInterface.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\OptionsResolver\Exception; - -/** - * Marker interface for all exceptions thrown by the OptionsResolver component. - * - * @author Bernhard Schussek - */ -interface ExceptionInterface extends \Throwable -{ -} diff --git a/vendor/symfony/options-resolver/Exception/InvalidArgumentException.php b/vendor/symfony/options-resolver/Exception/InvalidArgumentException.php deleted file mode 100644 index 6d421d6..0000000 --- a/vendor/symfony/options-resolver/Exception/InvalidArgumentException.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\OptionsResolver\Exception; - -/** - * Thrown when an argument is invalid. - * - * @author Bernhard Schussek - */ -class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface -{ -} diff --git a/vendor/symfony/options-resolver/Exception/InvalidOptionsException.php b/vendor/symfony/options-resolver/Exception/InvalidOptionsException.php deleted file mode 100644 index 6fd4f12..0000000 --- a/vendor/symfony/options-resolver/Exception/InvalidOptionsException.php +++ /dev/null @@ -1,23 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\OptionsResolver\Exception; - -/** - * Thrown when the value of an option does not match its validation rules. - * - * You should make sure a valid value is passed to the option. - * - * @author Bernhard Schussek - */ -class InvalidOptionsException extends InvalidArgumentException -{ -} diff --git a/vendor/symfony/options-resolver/Exception/MissingOptionsException.php b/vendor/symfony/options-resolver/Exception/MissingOptionsException.php deleted file mode 100644 index faa487f..0000000 --- a/vendor/symfony/options-resolver/Exception/MissingOptionsException.php +++ /dev/null @@ -1,23 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\OptionsResolver\Exception; - -/** - * Exception thrown when a required option is missing. - * - * Add the option to the passed options array. - * - * @author Bernhard Schussek - */ -class MissingOptionsException extends InvalidArgumentException -{ -} diff --git a/vendor/symfony/options-resolver/Exception/NoConfigurationException.php b/vendor/symfony/options-resolver/Exception/NoConfigurationException.php deleted file mode 100644 index 6693ec1..0000000 --- a/vendor/symfony/options-resolver/Exception/NoConfigurationException.php +++ /dev/null @@ -1,26 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\OptionsResolver\Exception; - -use Symfony\Component\OptionsResolver\Debug\OptionsResolverIntrospector; - -/** - * Thrown when trying to introspect an option definition property - * for which no value was configured inside the OptionsResolver instance. - * - * @see OptionsResolverIntrospector - * - * @author Maxime Steinhausser - */ -class NoConfigurationException extends \RuntimeException implements ExceptionInterface -{ -} diff --git a/vendor/symfony/options-resolver/Exception/NoSuchOptionException.php b/vendor/symfony/options-resolver/Exception/NoSuchOptionException.php deleted file mode 100644 index 4c3280f..0000000 --- a/vendor/symfony/options-resolver/Exception/NoSuchOptionException.php +++ /dev/null @@ -1,26 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\OptionsResolver\Exception; - -/** - * Thrown when trying to read an option that has no value set. - * - * When accessing optional options from within a lazy option or normalizer you should first - * check whether the optional option is set. You can do this with `isset($options['optional'])`. - * In contrast to the {@link UndefinedOptionsException}, this is a runtime exception that can - * occur when evaluating lazy options. - * - * @author Tobias Schultze - */ -class NoSuchOptionException extends \OutOfBoundsException implements ExceptionInterface -{ -} diff --git a/vendor/symfony/options-resolver/Exception/OptionDefinitionException.php b/vendor/symfony/options-resolver/Exception/OptionDefinitionException.php deleted file mode 100644 index e8e339d..0000000 --- a/vendor/symfony/options-resolver/Exception/OptionDefinitionException.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\OptionsResolver\Exception; - -/** - * Thrown when two lazy options have a cyclic dependency. - * - * @author Bernhard Schussek - */ -class OptionDefinitionException extends \LogicException implements ExceptionInterface -{ -} diff --git a/vendor/symfony/options-resolver/Exception/UndefinedOptionsException.php b/vendor/symfony/options-resolver/Exception/UndefinedOptionsException.php deleted file mode 100644 index 6ca3fce..0000000 --- a/vendor/symfony/options-resolver/Exception/UndefinedOptionsException.php +++ /dev/null @@ -1,24 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\OptionsResolver\Exception; - -/** - * Exception thrown when an undefined option is passed. - * - * You should remove the options in question from your code or define them - * beforehand. - * - * @author Bernhard Schussek - */ -class UndefinedOptionsException extends InvalidArgumentException -{ -} diff --git a/vendor/symfony/options-resolver/LICENSE b/vendor/symfony/options-resolver/LICENSE deleted file mode 100644 index 0138f8f..0000000 --- a/vendor/symfony/options-resolver/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2004-present Fabien Potencier - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is furnished -to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/vendor/symfony/options-resolver/OptionConfigurator.php b/vendor/symfony/options-resolver/OptionConfigurator.php deleted file mode 100644 index e708c2c..0000000 --- a/vendor/symfony/options-resolver/OptionConfigurator.php +++ /dev/null @@ -1,146 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\OptionsResolver; - -use Symfony\Component\OptionsResolver\Exception\AccessException; - -final class OptionConfigurator -{ - public function __construct( - private string $name, - private OptionsResolver $resolver, - ) { - $this->resolver->setDefined($name); - } - - /** - * Adds allowed types for this option. - * - * @return $this - * - * @throws AccessException If called from a lazy option or normalizer - */ - public function allowedTypes(string ...$types): static - { - $this->resolver->setAllowedTypes($this->name, $types); - - return $this; - } - - /** - * Sets allowed values for this option. - * - * @param mixed ...$values One or more acceptable values/closures - * - * @return $this - * - * @throws AccessException If called from a lazy option or normalizer - */ - public function allowedValues(mixed ...$values): static - { - $this->resolver->setAllowedValues($this->name, $values); - - return $this; - } - - /** - * Sets the default value for this option. - * - * @return $this - * - * @throws AccessException If called from a lazy option or normalizer - */ - public function default(mixed $value): static - { - $this->resolver->setDefault($this->name, $value); - - return $this; - } - - /** - * Defines an option configurator with the given name. - */ - public function define(string $option): self - { - return $this->resolver->define($option); - } - - /** - * Marks this option as deprecated. - * - * @param string $package The name of the composer package that is triggering the deprecation - * @param string $version The version of the package that introduced the deprecation - * @param string|\Closure $message The deprecation message to use - * - * @return $this - */ - public function deprecated(string $package, string $version, string|\Closure $message = 'The option "%name%" is deprecated.'): static - { - $this->resolver->setDeprecated($this->name, $package, $version, $message); - - return $this; - } - - /** - * Sets the normalizer for this option. - * - * @return $this - * - * @throws AccessException If called from a lazy option or normalizer - */ - public function normalize(\Closure $normalizer): static - { - $this->resolver->setNormalizer($this->name, $normalizer); - - return $this; - } - - /** - * Marks this option as required. - * - * @return $this - * - * @throws AccessException If called from a lazy option or normalizer - */ - public function required(): static - { - $this->resolver->setRequired($this->name); - - return $this; - } - - /** - * Sets an info message for an option. - * - * @return $this - * - * @throws AccessException If called from a lazy option or normalizer - */ - public function info(string $info): static - { - $this->resolver->setInfo($this->name, $info); - - return $this; - } - - /** - * Sets whether ignore undefined options. - * - * @return $this - */ - public function ignoreUndefined(bool $ignore = true): static - { - $this->resolver->setIgnoreUndefined($ignore); - - return $this; - } -} diff --git a/vendor/symfony/options-resolver/Options.php b/vendor/symfony/options-resolver/Options.php deleted file mode 100644 index d444ec4..0000000 --- a/vendor/symfony/options-resolver/Options.php +++ /dev/null @@ -1,22 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\OptionsResolver; - -/** - * Contains resolved option values. - * - * @author Bernhard Schussek - * @author Tobias Schultze - */ -interface Options extends \ArrayAccess, \Countable -{ -} diff --git a/vendor/symfony/options-resolver/OptionsResolver.php b/vendor/symfony/options-resolver/OptionsResolver.php deleted file mode 100644 index 8d1d8f7..0000000 --- a/vendor/symfony/options-resolver/OptionsResolver.php +++ /dev/null @@ -1,1317 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\OptionsResolver; - -use Symfony\Component\OptionsResolver\Exception\AccessException; -use Symfony\Component\OptionsResolver\Exception\InvalidArgumentException; -use Symfony\Component\OptionsResolver\Exception\InvalidOptionsException; -use Symfony\Component\OptionsResolver\Exception\MissingOptionsException; -use Symfony\Component\OptionsResolver\Exception\NoSuchOptionException; -use Symfony\Component\OptionsResolver\Exception\OptionDefinitionException; -use Symfony\Component\OptionsResolver\Exception\UndefinedOptionsException; - -/** - * Validates options and merges them with default values. - * - * @author Bernhard Schussek - * @author Tobias Schultze - */ -class OptionsResolver implements Options -{ - private const VALIDATION_FUNCTIONS = [ - 'bool' => 'is_bool', - 'boolean' => 'is_bool', - 'int' => 'is_int', - 'integer' => 'is_int', - 'long' => 'is_int', - 'float' => 'is_float', - 'double' => 'is_float', - 'real' => 'is_float', - 'numeric' => 'is_numeric', - 'string' => 'is_string', - 'scalar' => 'is_scalar', - 'array' => 'is_array', - 'iterable' => 'is_iterable', - 'countable' => 'is_countable', - 'callable' => 'is_callable', - 'object' => 'is_object', - 'resource' => 'is_resource', - ]; - - /** - * The names of all defined options. - */ - private array $defined = []; - - /** - * The default option values. - */ - private array $defaults = []; - - /** - * A list of closure for nested options. - * - * @var \Closure[][] - */ - private array $nested = []; - - /** - * The names of required options. - */ - private array $required = []; - - /** - * The resolved option values. - */ - private array $resolved = []; - - /** - * A list of normalizer closures. - * - * @var \Closure[][] - */ - private array $normalizers = []; - - /** - * A list of accepted values for each option. - */ - private array $allowedValues = []; - - /** - * A list of accepted types for each option. - */ - private array $allowedTypes = []; - - /** - * A list of info messages for each option. - */ - private array $info = []; - - /** - * A list of closures for evaluating lazy options. - */ - private array $lazy = []; - - /** - * A list of lazy options whose closure is currently being called. - * - * This list helps detecting circular dependencies between lazy options. - */ - private array $calling = []; - - /** - * A list of deprecated options. - */ - private array $deprecated = []; - - /** - * The list of options provided by the user. - */ - private array $given = []; - - /** - * Whether the instance is locked for reading. - * - * Once locked, the options cannot be changed anymore. This is - * necessary in order to avoid inconsistencies during the resolving - * process. If any option is changed after being read, all evaluated - * lazy options that depend on this option would become invalid. - */ - private bool $locked = false; - - private array $parentsOptions = []; - - /** - * Whether the whole options definition is marked as array prototype. - */ - private ?bool $prototype = null; - - /** - * The prototype array's index that is being read. - */ - private int|string|null $prototypeIndex = null; - - /** - * Whether to ignore undefined options. - */ - private bool $ignoreUndefined = false; - - /** - * Sets the default value of a given option. - * - * If the default value should be set based on other options, you can pass - * a closure with the following signature: - * - * function (Options $options) { - * // ... - * } - * - * The closure will be evaluated when {@link resolve()} is called. The - * closure has access to the resolved values of other options through the - * passed {@link Options} instance: - * - * function (Options $options) { - * if (isset($options['port'])) { - * // ... - * } - * } - * - * If you want to access the previously set default value, add a second - * argument to the closure's signature: - * - * $options->setDefault('name', 'Default Name'); - * - * $options->setDefault('name', function (Options $options, $previousValue) { - * // 'Default Name' === $previousValue - * }); - * - * This is mostly useful if the configuration of the {@link Options} object - * is spread across different locations of your code, such as base and - * sub-classes. - * - * If you want to define nested options, you can pass a closure with the - * following signature: - * - * $options->setDefault('database', function (OptionsResolver $resolver) { - * $resolver->setDefined(['dbname', 'host', 'port', 'user', 'pass']); - * } - * - * To get access to the parent options, add a second argument to the closure's - * signature: - * - * function (OptionsResolver $resolver, Options $parent) { - * // 'default' === $parent['connection'] - * } - * - * @return $this - * - * @throws AccessException If called from a lazy option or normalizer - */ - public function setDefault(string $option, mixed $value): static - { - // Setting is not possible once resolving starts, because then lazy - // options could manipulate the state of the object, leading to - // inconsistent results. - if ($this->locked) { - throw new AccessException('Default values cannot be set from a lazy option or normalizer.'); - } - - // If an option is a closure that should be evaluated lazily, store it - // in the "lazy" property. - if ($value instanceof \Closure) { - $reflClosure = new \ReflectionFunction($value); - $params = $reflClosure->getParameters(); - - if (isset($params[0]) && Options::class === $this->getParameterClassName($params[0])) { - // Initialize the option if no previous value exists - if (!isset($this->defaults[$option])) { - $this->defaults[$option] = null; - } - - // Ignore previous lazy options if the closure has no second parameter - if (!isset($this->lazy[$option]) || !isset($params[1])) { - $this->lazy[$option] = []; - } - - // Store closure for later evaluation - $this->lazy[$option][] = $value; - $this->defined[$option] = true; - - // Make sure the option is processed and is not nested anymore - unset($this->resolved[$option], $this->nested[$option]); - - return $this; - } - - if (isset($params[0]) && ($type = $params[0]->getType()) instanceof \ReflectionNamedType && self::class === $type->getName() && (!isset($params[1]) || (($type = $params[1]->getType()) instanceof \ReflectionNamedType && Options::class === $type->getName()))) { - // Store closure for later evaluation - $this->nested[$option][] = $value; - $this->defaults[$option] = []; - $this->defined[$option] = true; - - // Make sure the option is processed and is not lazy anymore - unset($this->resolved[$option], $this->lazy[$option]); - - return $this; - } - } - - // This option is not lazy nor nested anymore - unset($this->lazy[$option], $this->nested[$option]); - - // Yet undefined options can be marked as resolved, because we only need - // to resolve options with lazy closures, normalizers or validation - // rules, none of which can exist for undefined options - // If the option was resolved before, update the resolved value - if (!isset($this->defined[$option]) || \array_key_exists($option, $this->resolved)) { - $this->resolved[$option] = $value; - } - - $this->defaults[$option] = $value; - $this->defined[$option] = true; - - return $this; - } - - /** - * @return $this - * - * @throws AccessException If called from a lazy option or normalizer - */ - public function setDefaults(array $defaults): static - { - foreach ($defaults as $option => $value) { - $this->setDefault($option, $value); - } - - return $this; - } - - /** - * Returns whether a default value is set for an option. - * - * Returns true if {@link setDefault()} was called for this option. - * An option is also considered set if it was set to null. - */ - public function hasDefault(string $option): bool - { - return \array_key_exists($option, $this->defaults); - } - - /** - * Marks one or more options as required. - * - * @param string|string[] $optionNames One or more option names - * - * @return $this - * - * @throws AccessException If called from a lazy option or normalizer - */ - public function setRequired(string|array $optionNames): static - { - if ($this->locked) { - throw new AccessException('Options cannot be made required from a lazy option or normalizer.'); - } - - foreach ((array) $optionNames as $option) { - $this->defined[$option] = true; - $this->required[$option] = true; - } - - return $this; - } - - /** - * Returns whether an option is required. - * - * An option is required if it was passed to {@link setRequired()}. - */ - public function isRequired(string $option): bool - { - return isset($this->required[$option]); - } - - /** - * Returns the names of all required options. - * - * @return string[] - * - * @see isRequired() - */ - public function getRequiredOptions(): array - { - return array_keys($this->required); - } - - /** - * Returns whether an option is missing a default value. - * - * An option is missing if it was passed to {@link setRequired()}, but not - * to {@link setDefault()}. This option must be passed explicitly to - * {@link resolve()}, otherwise an exception will be thrown. - */ - public function isMissing(string $option): bool - { - return isset($this->required[$option]) && !\array_key_exists($option, $this->defaults); - } - - /** - * Returns the names of all options missing a default value. - * - * @return string[] - */ - public function getMissingOptions(): array - { - return array_keys(array_diff_key($this->required, $this->defaults)); - } - - /** - * Defines a valid option name. - * - * Defines an option name without setting a default value. The option will - * be accepted when passed to {@link resolve()}. When not passed, the - * option will not be included in the resolved options. - * - * @param string|string[] $optionNames One or more option names - * - * @return $this - * - * @throws AccessException If called from a lazy option or normalizer - */ - public function setDefined(string|array $optionNames): static - { - if ($this->locked) { - throw new AccessException('Options cannot be defined from a lazy option or normalizer.'); - } - - foreach ((array) $optionNames as $option) { - $this->defined[$option] = true; - } - - return $this; - } - - /** - * Returns whether an option is defined. - * - * Returns true for any option passed to {@link setDefault()}, - * {@link setRequired()} or {@link setDefined()}. - */ - public function isDefined(string $option): bool - { - return isset($this->defined[$option]); - } - - /** - * Returns the names of all defined options. - * - * @return string[] - * - * @see isDefined() - */ - public function getDefinedOptions(): array - { - return array_keys($this->defined); - } - - public function isNested(string $option): bool - { - return isset($this->nested[$option]); - } - - /** - * Deprecates an option, allowed types or values. - * - * Instead of passing the message, you may also pass a closure with the - * following signature: - * - * function (Options $options, $value): string { - * // ... - * } - * - * The closure receives the value as argument and should return a string. - * Return an empty string to ignore the option deprecation. - * - * The closure is invoked when {@link resolve()} is called. The parameter - * passed to the closure is the value of the option after validating it - * and before normalizing it. - * - * @param string $package The name of the composer package that is triggering the deprecation - * @param string $version The version of the package that introduced the deprecation - * @param string|\Closure $message The deprecation message to use - * - * @return $this - */ - public function setDeprecated(string $option, string $package, string $version, string|\Closure $message = 'The option "%name%" is deprecated.'): static - { - if ($this->locked) { - throw new AccessException('Options cannot be deprecated from a lazy option or normalizer.'); - } - - if (!isset($this->defined[$option])) { - throw new UndefinedOptionsException(\sprintf('The option "%s" does not exist, defined options are: "%s".', $this->formatOptions([$option]), implode('", "', array_keys($this->defined)))); - } - - if (!\is_string($message) && !$message instanceof \Closure) { - throw new InvalidArgumentException(\sprintf('Invalid type for deprecation message argument, expected string or \Closure, but got "%s".', get_debug_type($message))); - } - - // ignore if empty string - if ('' === $message) { - return $this; - } - - $this->deprecated[$option] = [ - 'package' => $package, - 'version' => $version, - 'message' => $message, - ]; - - // Make sure the option is processed - unset($this->resolved[$option]); - - return $this; - } - - public function isDeprecated(string $option): bool - { - return isset($this->deprecated[$option]); - } - - /** - * Sets the normalizer for an option. - * - * The normalizer should be a closure with the following signature: - * - * function (Options $options, $value) { - * // ... - * } - * - * The closure is invoked when {@link resolve()} is called. The closure - * has access to the resolved values of other options through the passed - * {@link Options} instance. - * - * The second parameter passed to the closure is the value of - * the option. - * - * The resolved option value is set to the return value of the closure. - * - * @return $this - * - * @throws UndefinedOptionsException If the option is undefined - * @throws AccessException If called from a lazy option or normalizer - */ - public function setNormalizer(string $option, \Closure $normalizer): static - { - if ($this->locked) { - throw new AccessException('Normalizers cannot be set from a lazy option or normalizer.'); - } - - if (!isset($this->defined[$option])) { - throw new UndefinedOptionsException(\sprintf('The option "%s" does not exist. Defined options are: "%s".', $this->formatOptions([$option]), implode('", "', array_keys($this->defined)))); - } - - $this->normalizers[$option] = [$normalizer]; - - // Make sure the option is processed - unset($this->resolved[$option]); - - return $this; - } - - /** - * Adds a normalizer for an option. - * - * The normalizer should be a closure with the following signature: - * - * function (Options $options, $value): mixed { - * // ... - * } - * - * The closure is invoked when {@link resolve()} is called. The closure - * has access to the resolved values of other options through the passed - * {@link Options} instance. - * - * The second parameter passed to the closure is the value of - * the option. - * - * The resolved option value is set to the return value of the closure. - * - * @return $this - * - * @throws UndefinedOptionsException If the option is undefined - * @throws AccessException If called from a lazy option or normalizer - */ - public function addNormalizer(string $option, \Closure $normalizer, bool $forcePrepend = false): static - { - if ($this->locked) { - throw new AccessException('Normalizers cannot be set from a lazy option or normalizer.'); - } - - if (!isset($this->defined[$option])) { - throw new UndefinedOptionsException(\sprintf('The option "%s" does not exist. Defined options are: "%s".', $this->formatOptions([$option]), implode('", "', array_keys($this->defined)))); - } - - if ($forcePrepend) { - $this->normalizers[$option] ??= []; - array_unshift($this->normalizers[$option], $normalizer); - } else { - $this->normalizers[$option][] = $normalizer; - } - - // Make sure the option is processed - unset($this->resolved[$option]); - - return $this; - } - - /** - * Sets allowed values for an option. - * - * Instead of passing values, you may also pass a closures with the - * following signature: - * - * function ($value) { - * // return true or false - * } - * - * The closure receives the value as argument and should return true to - * accept the value and false to reject the value. - * - * @param mixed $allowedValues One or more acceptable values/closures - * - * @return $this - * - * @throws UndefinedOptionsException If the option is undefined - * @throws AccessException If called from a lazy option or normalizer - */ - public function setAllowedValues(string $option, mixed $allowedValues): static - { - if ($this->locked) { - throw new AccessException('Allowed values cannot be set from a lazy option or normalizer.'); - } - - if (!isset($this->defined[$option])) { - throw new UndefinedOptionsException(\sprintf('The option "%s" does not exist. Defined options are: "%s".', $this->formatOptions([$option]), implode('", "', array_keys($this->defined)))); - } - - $this->allowedValues[$option] = \is_array($allowedValues) ? $allowedValues : [$allowedValues]; - - // Make sure the option is processed - unset($this->resolved[$option]); - - return $this; - } - - /** - * Adds allowed values for an option. - * - * The values are merged with the allowed values defined previously. - * - * Instead of passing values, you may also pass a closures with the - * following signature: - * - * function ($value) { - * // return true or false - * } - * - * The closure receives the value as argument and should return true to - * accept the value and false to reject the value. - * - * @param mixed $allowedValues One or more acceptable values/closures - * - * @return $this - * - * @throws UndefinedOptionsException If the option is undefined - * @throws AccessException If called from a lazy option or normalizer - */ - public function addAllowedValues(string $option, mixed $allowedValues): static - { - if ($this->locked) { - throw new AccessException('Allowed values cannot be added from a lazy option or normalizer.'); - } - - if (!isset($this->defined[$option])) { - throw new UndefinedOptionsException(\sprintf('The option "%s" does not exist. Defined options are: "%s".', $this->formatOptions([$option]), implode('", "', array_keys($this->defined)))); - } - - if (!\is_array($allowedValues)) { - $allowedValues = [$allowedValues]; - } - - if (!isset($this->allowedValues[$option])) { - $this->allowedValues[$option] = $allowedValues; - } else { - $this->allowedValues[$option] = array_merge($this->allowedValues[$option], $allowedValues); - } - - // Make sure the option is processed - unset($this->resolved[$option]); - - return $this; - } - - /** - * Sets allowed types for an option. - * - * Any type for which a corresponding is_() function exists is - * acceptable. Additionally, fully-qualified class or interface names may - * be passed. - * - * @param string|string[] $allowedTypes One or more accepted types - * - * @return $this - * - * @throws UndefinedOptionsException If the option is undefined - * @throws AccessException If called from a lazy option or normalizer - */ - public function setAllowedTypes(string $option, string|array $allowedTypes): static - { - if ($this->locked) { - throw new AccessException('Allowed types cannot be set from a lazy option or normalizer.'); - } - - if (!isset($this->defined[$option])) { - throw new UndefinedOptionsException(\sprintf('The option "%s" does not exist. Defined options are: "%s".', $this->formatOptions([$option]), implode('", "', array_keys($this->defined)))); - } - - $this->allowedTypes[$option] = (array) $allowedTypes; - - // Make sure the option is processed - unset($this->resolved[$option]); - - return $this; - } - - /** - * Adds allowed types for an option. - * - * The types are merged with the allowed types defined previously. - * - * Any type for which a corresponding is_() function exists is - * acceptable. Additionally, fully-qualified class or interface names may - * be passed. - * - * @param string|string[] $allowedTypes One or more accepted types - * - * @return $this - * - * @throws UndefinedOptionsException If the option is undefined - * @throws AccessException If called from a lazy option or normalizer - */ - public function addAllowedTypes(string $option, string|array $allowedTypes): static - { - if ($this->locked) { - throw new AccessException('Allowed types cannot be added from a lazy option or normalizer.'); - } - - if (!isset($this->defined[$option])) { - throw new UndefinedOptionsException(\sprintf('The option "%s" does not exist. Defined options are: "%s".', $this->formatOptions([$option]), implode('", "', array_keys($this->defined)))); - } - - if (!isset($this->allowedTypes[$option])) { - $this->allowedTypes[$option] = (array) $allowedTypes; - } else { - $this->allowedTypes[$option] = array_merge($this->allowedTypes[$option], (array) $allowedTypes); - } - - // Make sure the option is processed - unset($this->resolved[$option]); - - return $this; - } - - /** - * Defines an option configurator with the given name. - */ - public function define(string $option): OptionConfigurator - { - if (isset($this->defined[$option])) { - throw new OptionDefinitionException(\sprintf('The option "%s" is already defined.', $option)); - } - - return new OptionConfigurator($option, $this); - } - - /** - * Sets an info message for an option. - * - * @return $this - * - * @throws UndefinedOptionsException If the option is undefined - * @throws AccessException If called from a lazy option or normalizer - */ - public function setInfo(string $option, string $info): static - { - if ($this->locked) { - throw new AccessException('The Info message cannot be set from a lazy option or normalizer.'); - } - - if (!isset($this->defined[$option])) { - throw new UndefinedOptionsException(\sprintf('The option "%s" does not exist. Defined options are: "%s".', $this->formatOptions([$option]), implode('", "', array_keys($this->defined)))); - } - - $this->info[$option] = $info; - - return $this; - } - - /** - * Gets the info message for an option. - */ - public function getInfo(string $option): ?string - { - if (!isset($this->defined[$option])) { - throw new UndefinedOptionsException(\sprintf('The option "%s" does not exist. Defined options are: "%s".', $this->formatOptions([$option]), implode('", "', array_keys($this->defined)))); - } - - return $this->info[$option] ?? null; - } - - /** - * Marks the whole options definition as array prototype. - * - * @return $this - * - * @throws AccessException If called from a lazy option, a normalizer or a root definition - */ - public function setPrototype(bool $prototype): static - { - if ($this->locked) { - throw new AccessException('The prototype property cannot be set from a lazy option or normalizer.'); - } - - if (null === $this->prototype && $prototype) { - throw new AccessException('The prototype property cannot be set from a root definition.'); - } - - $this->prototype = $prototype; - - return $this; - } - - public function isPrototype(): bool - { - return $this->prototype ?? false; - } - - /** - * Removes the option with the given name. - * - * Undefined options are ignored. - * - * @param string|string[] $optionNames One or more option names - * - * @return $this - * - * @throws AccessException If called from a lazy option or normalizer - */ - public function remove(string|array $optionNames): static - { - if ($this->locked) { - throw new AccessException('Options cannot be removed from a lazy option or normalizer.'); - } - - foreach ((array) $optionNames as $option) { - unset($this->defined[$option], $this->defaults[$option], $this->required[$option], $this->resolved[$option]); - unset($this->lazy[$option], $this->normalizers[$option], $this->allowedTypes[$option], $this->allowedValues[$option], $this->info[$option]); - } - - return $this; - } - - /** - * Removes all options. - * - * @return $this - * - * @throws AccessException If called from a lazy option or normalizer - */ - public function clear(): static - { - if ($this->locked) { - throw new AccessException('Options cannot be cleared from a lazy option or normalizer.'); - } - - $this->defined = []; - $this->defaults = []; - $this->nested = []; - $this->required = []; - $this->resolved = []; - $this->lazy = []; - $this->normalizers = []; - $this->allowedTypes = []; - $this->allowedValues = []; - $this->deprecated = []; - $this->info = []; - - return $this; - } - - /** - * Merges options with the default values stored in the container and - * validates them. - * - * Exceptions are thrown if: - * - * - Undefined options are passed; - * - Required options are missing; - * - Options have invalid types; - * - Options have invalid values. - * - * @throws UndefinedOptionsException If an option name is undefined - * @throws InvalidOptionsException If an option doesn't fulfill the - * specified validation rules - * @throws MissingOptionsException If a required option is missing - * @throws OptionDefinitionException If there is a cyclic dependency between - * lazy options and/or normalizers - * @throws NoSuchOptionException If a lazy option reads an unavailable option - * @throws AccessException If called from a lazy option or normalizer - */ - public function resolve(array $options = []): array - { - if ($this->locked) { - throw new AccessException('Options cannot be resolved from a lazy option or normalizer.'); - } - - // Allow this method to be called multiple times - $clone = clone $this; - - // Make sure that no unknown options are passed - $diff = $this->ignoreUndefined ? [] : array_diff_key($options, $clone->defined); - - if (\count($diff) > 0) { - ksort($clone->defined); - ksort($diff); - - throw new UndefinedOptionsException(\sprintf((\count($diff) > 1 ? 'The options "%s" do not exist.' : 'The option "%s" does not exist.').' Defined options are: "%s".', $this->formatOptions(array_keys($diff)), implode('", "', array_keys($clone->defined)))); - } - - // Override options set by the user - foreach ($options as $option => $value) { - if ($this->ignoreUndefined && !isset($clone->defined[$option])) { - continue; - } - - $clone->given[$option] = true; - $clone->defaults[$option] = $value; - unset($clone->resolved[$option], $clone->lazy[$option]); - } - - // Check whether any required option is missing - $diff = array_diff_key($clone->required, $clone->defaults); - - if (\count($diff) > 0) { - ksort($diff); - - throw new MissingOptionsException(\sprintf(\count($diff) > 1 ? 'The required options "%s" are missing.' : 'The required option "%s" is missing.', $this->formatOptions(array_keys($diff)))); - } - - // Lock the container - $clone->locked = true; - - // Now process the individual options. Use offsetGet(), which resolves - // the option itself and any options that the option depends on - foreach ($clone->defaults as $option => $_) { - $clone->offsetGet($option); - } - - return $clone->resolved; - } - - /** - * Returns the resolved value of an option. - * - * @param bool $triggerDeprecation Whether to trigger the deprecation or not (true by default) - * - * @throws AccessException If accessing this method outside of - * {@link resolve()} - * @throws NoSuchOptionException If the option is not set - * @throws InvalidOptionsException If the option doesn't fulfill the - * specified validation rules - * @throws OptionDefinitionException If there is a cyclic dependency between - * lazy options and/or normalizers - */ - public function offsetGet(mixed $option, bool $triggerDeprecation = true): mixed - { - if (!$this->locked) { - throw new AccessException('Array access is only supported within closures of lazy options and normalizers.'); - } - - // Shortcut for resolved options - if (isset($this->resolved[$option]) || \array_key_exists($option, $this->resolved)) { - if ($triggerDeprecation && isset($this->deprecated[$option]) && (isset($this->given[$option]) || $this->calling) && \is_string($this->deprecated[$option]['message'])) { - trigger_deprecation($this->deprecated[$option]['package'], $this->deprecated[$option]['version'], strtr($this->deprecated[$option]['message'], ['%name%' => $option])); - } - - return $this->resolved[$option]; - } - - // Check whether the option is set at all - if (!isset($this->defaults[$option]) && !\array_key_exists($option, $this->defaults)) { - if (!isset($this->defined[$option])) { - throw new NoSuchOptionException(\sprintf('The option "%s" does not exist. Defined options are: "%s".', $this->formatOptions([$option]), implode('", "', array_keys($this->defined)))); - } - - throw new NoSuchOptionException(\sprintf('The optional option "%s" has no value set. You should make sure it is set with "isset" before reading it.', $this->formatOptions([$option]))); - } - - $value = $this->defaults[$option]; - - // Resolve the option if it is a nested definition - if (isset($this->nested[$option])) { - // If the closure is already being called, we have a cyclic dependency - if (isset($this->calling[$option])) { - throw new OptionDefinitionException(\sprintf('The options "%s" have a cyclic dependency.', $this->formatOptions(array_keys($this->calling)))); - } - - if (!\is_array($value)) { - throw new InvalidOptionsException(\sprintf('The nested option "%s" with value %s is expected to be of type array, but is of type "%s".', $this->formatOptions([$option]), $this->formatValue($value), get_debug_type($value))); - } - - // The following section must be protected from cyclic calls. - $this->calling[$option] = true; - try { - $resolver = new self(); - $resolver->prototype = false; - $resolver->parentsOptions = $this->parentsOptions; - $resolver->parentsOptions[] = $option; - foreach ($this->nested[$option] as $closure) { - $closure($resolver, $this); - } - - if ($resolver->prototype) { - $values = []; - foreach ($value as $index => $prototypeValue) { - if (!\is_array($prototypeValue)) { - throw new InvalidOptionsException(\sprintf('The value of the option "%s" is expected to be of type array of array, but is of type array of "%s".', $this->formatOptions([$option]), get_debug_type($prototypeValue))); - } - - $resolver->prototypeIndex = $index; - $values[$index] = $resolver->resolve($prototypeValue); - } - $value = $values; - } else { - $value = $resolver->resolve($value); - } - } finally { - $resolver->prototypeIndex = null; - unset($this->calling[$option]); - } - } - - // Resolve the option if the default value is lazily evaluated - if (isset($this->lazy[$option])) { - // If the closure is already being called, we have a cyclic - // dependency - if (isset($this->calling[$option])) { - throw new OptionDefinitionException(\sprintf('The options "%s" have a cyclic dependency.', $this->formatOptions(array_keys($this->calling)))); - } - - // The following section must be protected from cyclic - // calls. Set $calling for the current $option to detect a cyclic - // dependency - // BEGIN - $this->calling[$option] = true; - try { - foreach ($this->lazy[$option] as $closure) { - $value = $closure($this, $value); - } - } finally { - unset($this->calling[$option]); - } - // END - } - - // Validate the type of the resolved option - if (isset($this->allowedTypes[$option])) { - $valid = true; - $invalidTypes = []; - - foreach ($this->allowedTypes[$option] as $type) { - if ($valid = $this->verifyTypes($type, $value, $invalidTypes)) { - break; - } - } - - if (!$valid) { - $fmtActualValue = $this->formatValue($value); - $fmtAllowedTypes = implode('" or "', $this->allowedTypes[$option]); - $fmtProvidedTypes = implode('|', array_keys($invalidTypes)); - $allowedContainsArrayType = \count(array_filter($this->allowedTypes[$option], static fn ($item) => str_ends_with($item, '[]'))) > 0; - - if (\is_array($value) && $allowedContainsArrayType) { - throw new InvalidOptionsException(\sprintf('The option "%s" with value %s is expected to be of type "%s", but one of the elements is of type "%s".', $this->formatOptions([$option]), $fmtActualValue, $fmtAllowedTypes, $fmtProvidedTypes)); - } - - throw new InvalidOptionsException(\sprintf('The option "%s" with value %s is expected to be of type "%s", but is of type "%s".', $this->formatOptions([$option]), $fmtActualValue, $fmtAllowedTypes, $fmtProvidedTypes)); - } - } - - // Validate the value of the resolved option - if (isset($this->allowedValues[$option])) { - $success = false; - $printableAllowedValues = []; - - foreach ($this->allowedValues[$option] as $allowedValue) { - if ($allowedValue instanceof \Closure) { - if ($allowedValue($value)) { - $success = true; - break; - } - - // Don't include closures in the exception message - continue; - } - - if ($value === $allowedValue) { - $success = true; - break; - } - - $printableAllowedValues[] = $allowedValue; - } - - if (!$success) { - $message = \sprintf( - 'The option "%s" with value %s is invalid.', - $this->formatOptions([$option]), - $this->formatValue($value) - ); - - if (\count($printableAllowedValues) > 0) { - $message .= \sprintf( - ' Accepted values are: %s.', - $this->formatValues($printableAllowedValues) - ); - } - - if (isset($this->info[$option])) { - $message .= \sprintf(' Info: %s.', $this->info[$option]); - } - - throw new InvalidOptionsException($message); - } - } - - // Check whether the option is deprecated - // and it is provided by the user or is being called from a lazy evaluation - if ($triggerDeprecation && isset($this->deprecated[$option]) && (isset($this->given[$option]) || ($this->calling && \is_string($this->deprecated[$option]['message'])))) { - $deprecation = $this->deprecated[$option]; - $message = $this->deprecated[$option]['message']; - - if ($message instanceof \Closure) { - // If the closure is already being called, we have a cyclic dependency - if (isset($this->calling[$option])) { - throw new OptionDefinitionException(\sprintf('The options "%s" have a cyclic dependency.', $this->formatOptions(array_keys($this->calling)))); - } - - $this->calling[$option] = true; - try { - if (!\is_string($message = $message($this, $value))) { - throw new InvalidOptionsException(\sprintf('Invalid type for deprecation message, expected string but got "%s", return an empty string to ignore.', get_debug_type($message))); - } - } finally { - unset($this->calling[$option]); - } - } - - if ('' !== $message) { - trigger_deprecation($deprecation['package'], $deprecation['version'], strtr($message, ['%name%' => $option])); - } - } - - // Normalize the validated option - if (isset($this->normalizers[$option])) { - // If the closure is already being called, we have a cyclic - // dependency - if (isset($this->calling[$option])) { - throw new OptionDefinitionException(\sprintf('The options "%s" have a cyclic dependency.', $this->formatOptions(array_keys($this->calling)))); - } - - // The following section must be protected from cyclic - // calls. Set $calling for the current $option to detect a cyclic - // dependency - // BEGIN - $this->calling[$option] = true; - try { - foreach ($this->normalizers[$option] as $normalizer) { - $value = $normalizer($this, $value); - } - } finally { - unset($this->calling[$option]); - } - // END - } - - // Mark as resolved - $this->resolved[$option] = $value; - - return $value; - } - - private function verifyTypes(string $type, mixed $value, array &$invalidTypes, int $level = 0): bool - { - if (\is_array($value) && str_ends_with($type, '[]')) { - $type = substr($type, 0, -2); - $valid = true; - - foreach ($value as $val) { - if (!$this->verifyTypes($type, $val, $invalidTypes, $level + 1)) { - $valid = false; - } - } - - return $valid; - } - - if (('null' === $type && null === $value) || (isset(self::VALIDATION_FUNCTIONS[$type]) ? self::VALIDATION_FUNCTIONS[$type]($value) : $value instanceof $type)) { - return true; - } - - if (!$invalidTypes || $level > 0) { - $invalidTypes[get_debug_type($value)] = true; - } - - return false; - } - - /** - * Returns whether a resolved option with the given name exists. - * - * @throws AccessException If accessing this method outside of {@link resolve()} - * - * @see \ArrayAccess::offsetExists() - */ - public function offsetExists(mixed $option): bool - { - if (!$this->locked) { - throw new AccessException('Array access is only supported within closures of lazy options and normalizers.'); - } - - return \array_key_exists($option, $this->defaults); - } - - /** - * Not supported. - * - * @throws AccessException - */ - public function offsetSet(mixed $option, mixed $value): void - { - throw new AccessException('Setting options via array access is not supported. Use setDefault() instead.'); - } - - /** - * Not supported. - * - * @throws AccessException - */ - public function offsetUnset(mixed $option): void - { - throw new AccessException('Removing options via array access is not supported. Use remove() instead.'); - } - - /** - * Returns the number of set options. - * - * This may be only a subset of the defined options. - * - * @throws AccessException If accessing this method outside of {@link resolve()} - * - * @see \Countable::count() - */ - public function count(): int - { - if (!$this->locked) { - throw new AccessException('Counting is only supported within closures of lazy options and normalizers.'); - } - - return \count($this->defaults); - } - - /** - * Sets whether ignore undefined options. - * - * @return $this - */ - public function setIgnoreUndefined(bool $ignore = true): static - { - $this->ignoreUndefined = $ignore; - - return $this; - } - - /** - * Returns a string representation of the value. - * - * This method returns the equivalent PHP tokens for most scalar types - * (i.e. "false" for false, "1" for 1 etc.). Strings are always wrapped - * in double quotes ("). - */ - private function formatValue(mixed $value): string - { - if (\is_object($value)) { - return $value::class; - } - - if (\is_array($value)) { - return 'array'; - } - - if (\is_string($value)) { - return '"'.$value.'"'; - } - - if (\is_resource($value)) { - return 'resource'; - } - - if (null === $value) { - return 'null'; - } - - if (false === $value) { - return 'false'; - } - - if (true === $value) { - return 'true'; - } - - return (string) $value; - } - - /** - * Returns a string representation of a list of values. - * - * Each of the values is converted to a string using - * {@link formatValue()}. The values are then concatenated with commas. - * - * @see formatValue() - */ - private function formatValues(array $values): string - { - foreach ($values as $key => $value) { - $values[$key] = $this->formatValue($value); - } - - return implode(', ', $values); - } - - private function formatOptions(array $options): string - { - if ($this->parentsOptions) { - $prefix = array_shift($this->parentsOptions); - if ($this->parentsOptions) { - $prefix .= \sprintf('[%s]', implode('][', $this->parentsOptions)); - } - - if ($this->prototype && null !== $this->prototypeIndex) { - $prefix .= \sprintf('[%s]', $this->prototypeIndex); - } - - $options = array_map(static fn (string $option): string => \sprintf('%s[%s]', $prefix, $option), $options); - } - - return implode('", "', $options); - } - - private function getParameterClassName(\ReflectionParameter $parameter): ?string - { - if (!($type = $parameter->getType()) instanceof \ReflectionNamedType || $type->isBuiltin()) { - return null; - } - - return $type->getName(); - } -} diff --git a/vendor/symfony/options-resolver/README.md b/vendor/symfony/options-resolver/README.md deleted file mode 100644 index c63b900..0000000 --- a/vendor/symfony/options-resolver/README.md +++ /dev/null @@ -1,15 +0,0 @@ -OptionsResolver Component -========================= - -The OptionsResolver component is `array_replace` on steroids. It allows you to -create an options system with required options, defaults, validation (type, -value), normalization and more. - -Resources ---------- - - * [Documentation](https://symfony.com/doc/current/components/options_resolver.html) - * [Contributing](https://symfony.com/doc/current/contributing/index.html) - * [Report issues](https://github.com/symfony/symfony/issues) and - [send Pull Requests](https://github.com/symfony/symfony/pulls) - in the [main Symfony repository](https://github.com/symfony/symfony) diff --git a/vendor/symfony/options-resolver/composer.json b/vendor/symfony/options-resolver/composer.json deleted file mode 100644 index e70640d..0000000 --- a/vendor/symfony/options-resolver/composer.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "name": "symfony/options-resolver", - "type": "library", - "description": "Provides an improved replacement for the array_replace PHP function", - "keywords": ["options", "config", "configuration"], - "homepage": "https://symfony.com", - "license": "MIT", - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "require": { - "php": ">=8.2", - "symfony/deprecation-contracts": "^2.5|^3" - }, - "autoload": { - "psr-4": { "Symfony\\Component\\OptionsResolver\\": "" }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "minimum-stability": "dev" -} diff --git a/vendor/symfony/polyfill-mbstring/LICENSE b/vendor/symfony/polyfill-mbstring/LICENSE deleted file mode 100644 index 6e3afce..0000000 --- a/vendor/symfony/polyfill-mbstring/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2015-present Fabien Potencier - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is furnished -to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/vendor/symfony/polyfill-mbstring/Mbstring.php b/vendor/symfony/polyfill-mbstring/Mbstring.php deleted file mode 100644 index 3d45c9d..0000000 --- a/vendor/symfony/polyfill-mbstring/Mbstring.php +++ /dev/null @@ -1,1045 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Polyfill\Mbstring; - -/** - * Partial mbstring implementation in PHP, iconv based, UTF-8 centric. - * - * Implemented: - * - mb_chr - Returns a specific character from its Unicode code point - * - mb_convert_encoding - Convert character encoding - * - mb_convert_variables - Convert character code in variable(s) - * - mb_decode_mimeheader - Decode string in MIME header field - * - mb_encode_mimeheader - Encode string for MIME header XXX NATIVE IMPLEMENTATION IS REALLY BUGGED - * - mb_decode_numericentity - Decode HTML numeric string reference to character - * - mb_encode_numericentity - Encode character to HTML numeric string reference - * - mb_convert_case - Perform case folding on a string - * - mb_detect_encoding - Detect character encoding - * - mb_get_info - Get internal settings of mbstring - * - mb_http_input - Detect HTTP input character encoding - * - mb_http_output - Set/Get HTTP output character encoding - * - mb_internal_encoding - Set/Get internal character encoding - * - mb_list_encodings - Returns an array of all supported encodings - * - mb_ord - Returns the Unicode code point of a character - * - mb_output_handler - Callback function converts character encoding in output buffer - * - mb_scrub - Replaces ill-formed byte sequences with substitute characters - * - mb_strlen - Get string length - * - mb_strpos - Find position of first occurrence of string in a string - * - mb_strrpos - Find position of last occurrence of a string in a string - * - mb_str_split - Convert a string to an array - * - mb_strtolower - Make a string lowercase - * - mb_strtoupper - Make a string uppercase - * - mb_substitute_character - Set/Get substitution character - * - mb_substr - Get part of string - * - mb_stripos - Finds position of first occurrence of a string within another, case insensitive - * - mb_stristr - Finds first occurrence of a string within another, case insensitive - * - mb_strrchr - Finds the last occurrence of a character in a string within another - * - mb_strrichr - Finds the last occurrence of a character in a string within another, case insensitive - * - mb_strripos - Finds position of last occurrence of a string within another, case insensitive - * - mb_strstr - Finds first occurrence of a string within another - * - mb_strwidth - Return width of string - * - mb_substr_count - Count the number of substring occurrences - * - mb_ucfirst - Make a string's first character uppercase - * - mb_lcfirst - Make a string's first character lowercase - * - mb_trim - Strip whitespace (or other characters) from the beginning and end of a string - * - mb_ltrim - Strip whitespace (or other characters) from the beginning of a string - * - mb_rtrim - Strip whitespace (or other characters) from the end of a string - * - * Not implemented: - * - mb_convert_kana - Convert "kana" one from another ("zen-kaku", "han-kaku" and more) - * - mb_ereg_* - Regular expression with multibyte support - * - mb_parse_str - Parse GET/POST/COOKIE data and set global variable - * - mb_preferred_mime_name - Get MIME charset string - * - mb_regex_encoding - Returns current encoding for multibyte regex as string - * - mb_regex_set_options - Set/Get the default options for mbregex functions - * - mb_send_mail - Send encoded mail - * - mb_split - Split multibyte string using regular expression - * - mb_strcut - Get part of string - * - mb_strimwidth - Get truncated string with specified width - * - * @author Nicolas Grekas - * - * @internal - */ -final class Mbstring -{ - public const MB_CASE_FOLD = \PHP_INT_MAX; - - private const SIMPLE_CASE_FOLD = [ - ['µ', 'ſ', "\xCD\x85", 'ς', "\xCF\x90", "\xCF\x91", "\xCF\x95", "\xCF\x96", "\xCF\xB0", "\xCF\xB1", "\xCF\xB5", "\xE1\xBA\x9B", "\xE1\xBE\xBE"], - ['μ', 's', 'ι', 'σ', 'β', 'θ', 'φ', 'π', 'κ', 'ρ', 'ε', "\xE1\xB9\xA1", 'ι'], - ]; - - private static $encodingList = ['ASCII', 'UTF-8']; - private static $language = 'neutral'; - private static $internalEncoding = 'UTF-8'; - - public static function mb_convert_encoding($s, $toEncoding, $fromEncoding = null) - { - if (\is_array($s)) { - $r = []; - foreach ($s as $str) { - $r[] = self::mb_convert_encoding($str, $toEncoding, $fromEncoding); - } - - return $r; - } - - if (\is_array($fromEncoding) || (null !== $fromEncoding && false !== strpos($fromEncoding, ','))) { - $fromEncoding = self::mb_detect_encoding($s, $fromEncoding); - } else { - $fromEncoding = self::getEncoding($fromEncoding); - } - - $toEncoding = self::getEncoding($toEncoding); - - if ('BASE64' === $fromEncoding) { - $s = base64_decode($s); - $fromEncoding = $toEncoding; - } - - if ('BASE64' === $toEncoding) { - return base64_encode($s); - } - - if ('HTML-ENTITIES' === $toEncoding || 'HTML' === $toEncoding) { - if ('HTML-ENTITIES' === $fromEncoding || 'HTML' === $fromEncoding) { - $fromEncoding = 'Windows-1252'; - } - if ('UTF-8' !== $fromEncoding) { - $s = iconv($fromEncoding, 'UTF-8//IGNORE', $s); - } - - return preg_replace_callback('/[\x80-\xFF]+/', [__CLASS__, 'html_encoding_callback'], $s); - } - - if ('HTML-ENTITIES' === $fromEncoding) { - $s = html_entity_decode($s, \ENT_COMPAT, 'UTF-8'); - $fromEncoding = 'UTF-8'; - } - - return iconv($fromEncoding, $toEncoding.'//IGNORE', $s); - } - - public static function mb_convert_variables($toEncoding, $fromEncoding, &...$vars) - { - $ok = true; - array_walk_recursive($vars, function (&$v) use (&$ok, $toEncoding, $fromEncoding) { - if (false === $v = self::mb_convert_encoding($v, $toEncoding, $fromEncoding)) { - $ok = false; - } - }); - - return $ok ? $fromEncoding : false; - } - - public static function mb_decode_mimeheader($s) - { - return iconv_mime_decode($s, 2, self::$internalEncoding); - } - - public static function mb_encode_mimeheader($s, $charset = null, $transferEncoding = null, $linefeed = null, $indent = null) - { - trigger_error('mb_encode_mimeheader() is bugged. Please use iconv_mime_encode() instead', \E_USER_WARNING); - } - - public static function mb_decode_numericentity($s, $convmap, $encoding = null) - { - if (null !== $s && !\is_scalar($s) && !(\is_object($s) && method_exists($s, '__toString'))) { - trigger_error('mb_decode_numericentity() expects parameter 1 to be string, '.\gettype($s).' given', \E_USER_WARNING); - - return null; - } - - if (!\is_array($convmap) || (80000 > \PHP_VERSION_ID && !$convmap)) { - return false; - } - - if (null !== $encoding && !\is_scalar($encoding)) { - trigger_error('mb_decode_numericentity() expects parameter 3 to be string, '.\gettype($s).' given', \E_USER_WARNING); - - return ''; // Instead of null (cf. mb_encode_numericentity). - } - - $s = (string) $s; - if ('' === $s) { - return ''; - } - - $encoding = self::getEncoding($encoding); - - if ('UTF-8' === $encoding) { - $encoding = null; - if (!preg_match('//u', $s)) { - $s = @iconv('UTF-8', 'UTF-8//IGNORE', $s); - } - } else { - $s = iconv($encoding, 'UTF-8//IGNORE', $s); - } - - $cnt = floor(\count($convmap) / 4) * 4; - - for ($i = 0; $i < $cnt; $i += 4) { - // collector_decode_htmlnumericentity ignores $convmap[$i + 3] - $convmap[$i] += $convmap[$i + 2]; - $convmap[$i + 1] += $convmap[$i + 2]; - } - - $s = preg_replace_callback('/&#(?:0*([0-9]+)|x0*([0-9a-fA-F]+))(?!&);?/', function (array $m) use ($cnt, $convmap) { - $c = isset($m[2]) ? (int) hexdec($m[2]) : $m[1]; - for ($i = 0; $i < $cnt; $i += 4) { - if ($c >= $convmap[$i] && $c <= $convmap[$i + 1]) { - return self::mb_chr($c - $convmap[$i + 2]); - } - } - - return $m[0]; - }, $s); - - if (null === $encoding) { - return $s; - } - - return iconv('UTF-8', $encoding.'//IGNORE', $s); - } - - public static function mb_encode_numericentity($s, $convmap, $encoding = null, $is_hex = false) - { - if (null !== $s && !\is_scalar($s) && !(\is_object($s) && method_exists($s, '__toString'))) { - trigger_error('mb_encode_numericentity() expects parameter 1 to be string, '.\gettype($s).' given', \E_USER_WARNING); - - return null; - } - - if (!\is_array($convmap) || (80000 > \PHP_VERSION_ID && !$convmap)) { - return false; - } - - if (null !== $encoding && !\is_scalar($encoding)) { - trigger_error('mb_encode_numericentity() expects parameter 3 to be string, '.\gettype($s).' given', \E_USER_WARNING); - - return null; // Instead of '' (cf. mb_decode_numericentity). - } - - if (null !== $is_hex && !\is_scalar($is_hex)) { - trigger_error('mb_encode_numericentity() expects parameter 4 to be boolean, '.\gettype($s).' given', \E_USER_WARNING); - - return null; - } - - $s = (string) $s; - if ('' === $s) { - return ''; - } - - $encoding = self::getEncoding($encoding); - - if ('UTF-8' === $encoding) { - $encoding = null; - if (!preg_match('//u', $s)) { - $s = @iconv('UTF-8', 'UTF-8//IGNORE', $s); - } - } else { - $s = iconv($encoding, 'UTF-8//IGNORE', $s); - } - - static $ulenMask = ["\xC0" => 2, "\xD0" => 2, "\xE0" => 3, "\xF0" => 4]; - - $cnt = floor(\count($convmap) / 4) * 4; - $i = 0; - $len = \strlen($s); - $result = ''; - - while ($i < $len) { - $ulen = $s[$i] < "\x80" ? 1 : $ulenMask[$s[$i] & "\xF0"]; - $uchr = substr($s, $i, $ulen); - $i += $ulen; - $c = self::mb_ord($uchr); - - for ($j = 0; $j < $cnt; $j += 4) { - if ($c >= $convmap[$j] && $c <= $convmap[$j + 1]) { - $cOffset = ($c + $convmap[$j + 2]) & $convmap[$j + 3]; - $result .= $is_hex ? sprintf('&#x%X;', $cOffset) : '&#'.$cOffset.';'; - continue 2; - } - } - $result .= $uchr; - } - - if (null === $encoding) { - return $result; - } - - return iconv('UTF-8', $encoding.'//IGNORE', $result); - } - - public static function mb_convert_case($s, $mode, $encoding = null) - { - $s = (string) $s; - if ('' === $s) { - return ''; - } - - $encoding = self::getEncoding($encoding); - - if ('UTF-8' === $encoding) { - $encoding = null; - if (!preg_match('//u', $s)) { - $s = @iconv('UTF-8', 'UTF-8//IGNORE', $s); - } - } else { - $s = iconv($encoding, 'UTF-8//IGNORE', $s); - } - - if (\MB_CASE_TITLE == $mode) { - static $titleRegexp = null; - if (null === $titleRegexp) { - $titleRegexp = self::getData('titleCaseRegexp'); - } - $s = preg_replace_callback($titleRegexp, [__CLASS__, 'title_case'], $s); - } else { - if (\MB_CASE_UPPER == $mode) { - static $upper = null; - if (null === $upper) { - $upper = self::getData('upperCase'); - } - $map = $upper; - } else { - if (self::MB_CASE_FOLD === $mode) { - static $caseFolding = null; - if (null === $caseFolding) { - $caseFolding = self::getData('caseFolding'); - } - $s = strtr($s, $caseFolding); - } - - static $lower = null; - if (null === $lower) { - $lower = self::getData('lowerCase'); - } - $map = $lower; - } - - static $ulenMask = ["\xC0" => 2, "\xD0" => 2, "\xE0" => 3, "\xF0" => 4]; - - $i = 0; - $len = \strlen($s); - - while ($i < $len) { - $ulen = $s[$i] < "\x80" ? 1 : $ulenMask[$s[$i] & "\xF0"]; - $uchr = substr($s, $i, $ulen); - $i += $ulen; - - if (isset($map[$uchr])) { - $uchr = $map[$uchr]; - $nlen = \strlen($uchr); - - if ($nlen == $ulen) { - $nlen = $i; - do { - $s[--$nlen] = $uchr[--$ulen]; - } while ($ulen); - } else { - $s = substr_replace($s, $uchr, $i - $ulen, $ulen); - $len += $nlen - $ulen; - $i += $nlen - $ulen; - } - } - } - } - - if (null === $encoding) { - return $s; - } - - return iconv('UTF-8', $encoding.'//IGNORE', $s); - } - - public static function mb_internal_encoding($encoding = null) - { - if (null === $encoding) { - return self::$internalEncoding; - } - - $normalizedEncoding = self::getEncoding($encoding); - - if ('UTF-8' === $normalizedEncoding || false !== @iconv($normalizedEncoding, $normalizedEncoding, ' ')) { - self::$internalEncoding = $normalizedEncoding; - - return true; - } - - if (80000 > \PHP_VERSION_ID) { - return false; - } - - throw new \ValueError(sprintf('Argument #1 ($encoding) must be a valid encoding, "%s" given', $encoding)); - } - - public static function mb_language($lang = null) - { - if (null === $lang) { - return self::$language; - } - - switch ($normalizedLang = strtolower($lang)) { - case 'uni': - case 'neutral': - self::$language = $normalizedLang; - - return true; - } - - if (80000 > \PHP_VERSION_ID) { - return false; - } - - throw new \ValueError(sprintf('Argument #1 ($language) must be a valid language, "%s" given', $lang)); - } - - public static function mb_list_encodings() - { - return ['UTF-8']; - } - - public static function mb_encoding_aliases($encoding) - { - switch (strtoupper($encoding)) { - case 'UTF8': - case 'UTF-8': - return ['utf8']; - } - - return false; - } - - public static function mb_check_encoding($var = null, $encoding = null) - { - if (null === $encoding) { - if (null === $var) { - return false; - } - $encoding = self::$internalEncoding; - } - - if (!\is_array($var)) { - return self::mb_detect_encoding($var, [$encoding]) || false !== @iconv($encoding, $encoding, $var); - } - - foreach ($var as $key => $value) { - if (!self::mb_check_encoding($key, $encoding)) { - return false; - } - if (!self::mb_check_encoding($value, $encoding)) { - return false; - } - } - - return true; - } - - public static function mb_detect_encoding($str, $encodingList = null, $strict = false) - { - if (null === $encodingList) { - $encodingList = self::$encodingList; - } else { - if (!\is_array($encodingList)) { - $encodingList = array_map('trim', explode(',', $encodingList)); - } - $encodingList = array_map('strtoupper', $encodingList); - } - - foreach ($encodingList as $enc) { - switch ($enc) { - case 'ASCII': - if (!preg_match('/[\x80-\xFF]/', $str)) { - return $enc; - } - break; - - case 'UTF8': - case 'UTF-8': - if (preg_match('//u', $str)) { - return 'UTF-8'; - } - break; - - default: - if (0 === strncmp($enc, 'ISO-8859-', 9)) { - return $enc; - } - } - } - - return false; - } - - public static function mb_detect_order($encodingList = null) - { - if (null === $encodingList) { - return self::$encodingList; - } - - if (!\is_array($encodingList)) { - $encodingList = array_map('trim', explode(',', $encodingList)); - } - $encodingList = array_map('strtoupper', $encodingList); - - foreach ($encodingList as $enc) { - switch ($enc) { - default: - if (strncmp($enc, 'ISO-8859-', 9)) { - return false; - } - // no break - case 'ASCII': - case 'UTF8': - case 'UTF-8': - } - } - - self::$encodingList = $encodingList; - - return true; - } - - public static function mb_strlen($s, $encoding = null) - { - $encoding = self::getEncoding($encoding); - if ('CP850' === $encoding || 'ASCII' === $encoding) { - return \strlen($s); - } - - return @iconv_strlen($s, $encoding); - } - - public static function mb_strpos($haystack, $needle, $offset = 0, $encoding = null) - { - $encoding = self::getEncoding($encoding); - if ('CP850' === $encoding || 'ASCII' === $encoding) { - return strpos($haystack, $needle, $offset); - } - - $needle = (string) $needle; - if ('' === $needle) { - if (80000 > \PHP_VERSION_ID) { - trigger_error(__METHOD__.': Empty delimiter', \E_USER_WARNING); - - return false; - } - - return 0; - } - - return iconv_strpos($haystack, $needle, $offset, $encoding); - } - - public static function mb_strrpos($haystack, $needle, $offset = 0, $encoding = null) - { - $encoding = self::getEncoding($encoding); - if ('CP850' === $encoding || 'ASCII' === $encoding) { - return strrpos($haystack, $needle, $offset); - } - - if ($offset != (int) $offset) { - $offset = 0; - } elseif ($offset = (int) $offset) { - if ($offset < 0) { - if (0 > $offset += self::mb_strlen($needle)) { - $haystack = self::mb_substr($haystack, 0, $offset, $encoding); - } - $offset = 0; - } else { - $haystack = self::mb_substr($haystack, $offset, 2147483647, $encoding); - } - } - - $pos = '' !== $needle || 80000 > \PHP_VERSION_ID - ? iconv_strrpos($haystack, $needle, $encoding) - : self::mb_strlen($haystack, $encoding); - - return false !== $pos ? $offset + $pos : false; - } - - public static function mb_str_split($string, $split_length = 1, $encoding = null) - { - if (null !== $string && !\is_scalar($string) && !(\is_object($string) && method_exists($string, '__toString'))) { - trigger_error('mb_str_split() expects parameter 1 to be string, '.\gettype($string).' given', \E_USER_WARNING); - - return null; - } - - if (1 > $split_length = (int) $split_length) { - if (80000 > \PHP_VERSION_ID) { - trigger_error('The length of each segment must be greater than zero', \E_USER_WARNING); - - return false; - } - - throw new \ValueError('Argument #2 ($length) must be greater than 0'); - } - - if (null === $encoding) { - $encoding = mb_internal_encoding(); - } - - if ('UTF-8' === $encoding = self::getEncoding($encoding)) { - $rx = '/('; - while (65535 < $split_length) { - $rx .= '.{65535}'; - $split_length -= 65535; - } - $rx .= '.{'.$split_length.'})/us'; - - return preg_split($rx, $string, -1, \PREG_SPLIT_DELIM_CAPTURE | \PREG_SPLIT_NO_EMPTY); - } - - $result = []; - $length = mb_strlen($string, $encoding); - - for ($i = 0; $i < $length; $i += $split_length) { - $result[] = mb_substr($string, $i, $split_length, $encoding); - } - - return $result; - } - - public static function mb_strtolower($s, $encoding = null) - { - return self::mb_convert_case($s, \MB_CASE_LOWER, $encoding); - } - - public static function mb_strtoupper($s, $encoding = null) - { - return self::mb_convert_case($s, \MB_CASE_UPPER, $encoding); - } - - public static function mb_substitute_character($c = null) - { - if (null === $c) { - return 'none'; - } - if (0 === strcasecmp($c, 'none')) { - return true; - } - if (80000 > \PHP_VERSION_ID) { - return false; - } - if (\is_int($c) || 'long' === $c || 'entity' === $c) { - return false; - } - - throw new \ValueError('Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint'); - } - - public static function mb_substr($s, $start, $length = null, $encoding = null) - { - $encoding = self::getEncoding($encoding); - if ('CP850' === $encoding || 'ASCII' === $encoding) { - return (string) substr($s, $start, null === $length ? 2147483647 : $length); - } - - if ($start < 0) { - $start = iconv_strlen($s, $encoding) + $start; - if ($start < 0) { - $start = 0; - } - } - - if (null === $length) { - $length = 2147483647; - } elseif ($length < 0) { - $length = iconv_strlen($s, $encoding) + $length - $start; - if ($length < 0) { - return ''; - } - } - - return (string) iconv_substr($s, $start, $length, $encoding); - } - - public static function mb_stripos($haystack, $needle, $offset = 0, $encoding = null) - { - [$haystack, $needle] = str_replace(self::SIMPLE_CASE_FOLD[0], self::SIMPLE_CASE_FOLD[1], [ - self::mb_convert_case($haystack, \MB_CASE_LOWER, $encoding), - self::mb_convert_case($needle, \MB_CASE_LOWER, $encoding), - ]); - - return self::mb_strpos($haystack, $needle, $offset, $encoding); - } - - public static function mb_stristr($haystack, $needle, $part = false, $encoding = null) - { - $pos = self::mb_stripos($haystack, $needle, 0, $encoding); - - return self::getSubpart($pos, $part, $haystack, $encoding); - } - - public static function mb_strrchr($haystack, $needle, $part = false, $encoding = null) - { - $encoding = self::getEncoding($encoding); - if ('CP850' === $encoding || 'ASCII' === $encoding) { - $pos = strrpos($haystack, $needle); - } else { - $needle = self::mb_substr($needle, 0, 1, $encoding); - $pos = iconv_strrpos($haystack, $needle, $encoding); - } - - return self::getSubpart($pos, $part, $haystack, $encoding); - } - - public static function mb_strrichr($haystack, $needle, $part = false, $encoding = null) - { - $needle = self::mb_substr($needle, 0, 1, $encoding); - $pos = self::mb_strripos($haystack, $needle, $encoding); - - return self::getSubpart($pos, $part, $haystack, $encoding); - } - - public static function mb_strripos($haystack, $needle, $offset = 0, $encoding = null) - { - $haystack = self::mb_convert_case($haystack, \MB_CASE_LOWER, $encoding); - $needle = self::mb_convert_case($needle, \MB_CASE_LOWER, $encoding); - - $haystack = str_replace(self::SIMPLE_CASE_FOLD[0], self::SIMPLE_CASE_FOLD[1], $haystack); - $needle = str_replace(self::SIMPLE_CASE_FOLD[0], self::SIMPLE_CASE_FOLD[1], $needle); - - return self::mb_strrpos($haystack, $needle, $offset, $encoding); - } - - public static function mb_strstr($haystack, $needle, $part = false, $encoding = null) - { - $pos = strpos($haystack, $needle); - if (false === $pos) { - return false; - } - if ($part) { - return substr($haystack, 0, $pos); - } - - return substr($haystack, $pos); - } - - public static function mb_get_info($type = 'all') - { - $info = [ - 'internal_encoding' => self::$internalEncoding, - 'http_output' => 'pass', - 'http_output_conv_mimetypes' => '^(text/|application/xhtml\+xml)', - 'func_overload' => 0, - 'func_overload_list' => 'no overload', - 'mail_charset' => 'UTF-8', - 'mail_header_encoding' => 'BASE64', - 'mail_body_encoding' => 'BASE64', - 'illegal_chars' => 0, - 'encoding_translation' => 'Off', - 'language' => self::$language, - 'detect_order' => self::$encodingList, - 'substitute_character' => 'none', - 'strict_detection' => 'Off', - ]; - - if ('all' === $type) { - return $info; - } - if (isset($info[$type])) { - return $info[$type]; - } - - return false; - } - - public static function mb_http_input($type = '') - { - return false; - } - - public static function mb_http_output($encoding = null) - { - return null !== $encoding ? 'pass' === $encoding : 'pass'; - } - - public static function mb_strwidth($s, $encoding = null) - { - $encoding = self::getEncoding($encoding); - - if ('UTF-8' !== $encoding) { - $s = iconv($encoding, 'UTF-8//IGNORE', $s); - } - - $s = preg_replace('/[\x{1100}-\x{115F}\x{2329}\x{232A}\x{2E80}-\x{303E}\x{3040}-\x{A4CF}\x{AC00}-\x{D7A3}\x{F900}-\x{FAFF}\x{FE10}-\x{FE19}\x{FE30}-\x{FE6F}\x{FF00}-\x{FF60}\x{FFE0}-\x{FFE6}\x{20000}-\x{2FFFD}\x{30000}-\x{3FFFD}]/u', '', $s, -1, $wide); - - return ($wide << 1) + iconv_strlen($s, 'UTF-8'); - } - - public static function mb_substr_count($haystack, $needle, $encoding = null) - { - return substr_count($haystack, $needle); - } - - public static function mb_output_handler($contents, $status) - { - return $contents; - } - - public static function mb_chr($code, $encoding = null) - { - if (0x80 > $code %= 0x200000) { - $s = \chr($code); - } elseif (0x800 > $code) { - $s = \chr(0xC0 | $code >> 6).\chr(0x80 | $code & 0x3F); - } elseif (0x10000 > $code) { - $s = \chr(0xE0 | $code >> 12).\chr(0x80 | $code >> 6 & 0x3F).\chr(0x80 | $code & 0x3F); - } else { - $s = \chr(0xF0 | $code >> 18).\chr(0x80 | $code >> 12 & 0x3F).\chr(0x80 | $code >> 6 & 0x3F).\chr(0x80 | $code & 0x3F); - } - - if ('UTF-8' !== $encoding = self::getEncoding($encoding)) { - $s = mb_convert_encoding($s, $encoding, 'UTF-8'); - } - - return $s; - } - - public static function mb_ord($s, $encoding = null) - { - if ('UTF-8' !== $encoding = self::getEncoding($encoding)) { - $s = mb_convert_encoding($s, 'UTF-8', $encoding); - } - - if (1 === \strlen($s)) { - return \ord($s); - } - - $code = ($s = unpack('C*', substr($s, 0, 4))) ? $s[1] : 0; - if (0xF0 <= $code) { - return (($code - 0xF0) << 18) + (($s[2] - 0x80) << 12) + (($s[3] - 0x80) << 6) + $s[4] - 0x80; - } - if (0xE0 <= $code) { - return (($code - 0xE0) << 12) + (($s[2] - 0x80) << 6) + $s[3] - 0x80; - } - if (0xC0 <= $code) { - return (($code - 0xC0) << 6) + $s[2] - 0x80; - } - - return $code; - } - - public static function mb_str_pad(string $string, int $length, string $pad_string = ' ', int $pad_type = \STR_PAD_RIGHT, ?string $encoding = null): string - { - if (!\in_array($pad_type, [\STR_PAD_RIGHT, \STR_PAD_LEFT, \STR_PAD_BOTH], true)) { - throw new \ValueError('mb_str_pad(): Argument #4 ($pad_type) must be STR_PAD_LEFT, STR_PAD_RIGHT, or STR_PAD_BOTH'); - } - - if (null === $encoding) { - $encoding = self::mb_internal_encoding(); - } else { - self::assertEncoding($encoding, 'mb_str_pad(): Argument #5 ($encoding) must be a valid encoding, "%s" given'); - } - - if (self::mb_strlen($pad_string, $encoding) <= 0) { - throw new \ValueError('mb_str_pad(): Argument #3 ($pad_string) must be a non-empty string'); - } - - $paddingRequired = $length - self::mb_strlen($string, $encoding); - - if ($paddingRequired < 1) { - return $string; - } - - switch ($pad_type) { - case \STR_PAD_LEFT: - return self::mb_substr(str_repeat($pad_string, $paddingRequired), 0, $paddingRequired, $encoding).$string; - case \STR_PAD_RIGHT: - return $string.self::mb_substr(str_repeat($pad_string, $paddingRequired), 0, $paddingRequired, $encoding); - default: - $leftPaddingLength = floor($paddingRequired / 2); - $rightPaddingLength = $paddingRequired - $leftPaddingLength; - - return self::mb_substr(str_repeat($pad_string, $leftPaddingLength), 0, $leftPaddingLength, $encoding).$string.self::mb_substr(str_repeat($pad_string, $rightPaddingLength), 0, $rightPaddingLength, $encoding); - } - } - - public static function mb_ucfirst(string $string, ?string $encoding = null): string - { - if (null === $encoding) { - $encoding = self::mb_internal_encoding(); - } else { - self::assertEncoding($encoding, 'mb_ucfirst(): Argument #2 ($encoding) must be a valid encoding, "%s" given'); - } - - $firstChar = mb_substr($string, 0, 1, $encoding); - $firstChar = mb_convert_case($firstChar, \MB_CASE_TITLE, $encoding); - - return $firstChar.mb_substr($string, 1, null, $encoding); - } - - public static function mb_lcfirst(string $string, ?string $encoding = null): string - { - if (null === $encoding) { - $encoding = self::mb_internal_encoding(); - } else { - self::assertEncoding($encoding, 'mb_lcfirst(): Argument #2 ($encoding) must be a valid encoding, "%s" given'); - } - - $firstChar = mb_substr($string, 0, 1, $encoding); - $firstChar = mb_convert_case($firstChar, \MB_CASE_LOWER, $encoding); - - return $firstChar.mb_substr($string, 1, null, $encoding); - } - - private static function getSubpart($pos, $part, $haystack, $encoding) - { - if (false === $pos) { - return false; - } - if ($part) { - return self::mb_substr($haystack, 0, $pos, $encoding); - } - - return self::mb_substr($haystack, $pos, null, $encoding); - } - - private static function html_encoding_callback(array $m) - { - $i = 1; - $entities = ''; - $m = unpack('C*', htmlentities($m[0], \ENT_COMPAT, 'UTF-8')); - - while (isset($m[$i])) { - if (0x80 > $m[$i]) { - $entities .= \chr($m[$i++]); - continue; - } - if (0xF0 <= $m[$i]) { - $c = (($m[$i++] - 0xF0) << 18) + (($m[$i++] - 0x80) << 12) + (($m[$i++] - 0x80) << 6) + $m[$i++] - 0x80; - } elseif (0xE0 <= $m[$i]) { - $c = (($m[$i++] - 0xE0) << 12) + (($m[$i++] - 0x80) << 6) + $m[$i++] - 0x80; - } else { - $c = (($m[$i++] - 0xC0) << 6) + $m[$i++] - 0x80; - } - - $entities .= '&#'.$c.';'; - } - - return $entities; - } - - private static function title_case(array $s) - { - return self::mb_convert_case($s[1], \MB_CASE_UPPER, 'UTF-8').self::mb_convert_case($s[2], \MB_CASE_LOWER, 'UTF-8'); - } - - private static function getData($file) - { - if (file_exists($file = __DIR__.'/Resources/unidata/'.$file.'.php')) { - return require $file; - } - - return false; - } - - private static function getEncoding($encoding) - { - if (null === $encoding) { - return self::$internalEncoding; - } - - if ('UTF-8' === $encoding) { - return 'UTF-8'; - } - - $encoding = strtoupper($encoding); - - if ('8BIT' === $encoding || 'BINARY' === $encoding) { - return 'CP850'; - } - - if ('UTF8' === $encoding) { - return 'UTF-8'; - } - - return $encoding; - } - - public static function mb_trim(string $string, ?string $characters = null, ?string $encoding = null): string - { - return self::mb_internal_trim('{^[%s]+|[%1$s]+$}Du', $string, $characters, $encoding, __FUNCTION__); - } - - public static function mb_ltrim(string $string, ?string $characters = null, ?string $encoding = null): string - { - return self::mb_internal_trim('{^[%s]+}Du', $string, $characters, $encoding, __FUNCTION__); - } - - public static function mb_rtrim(string $string, ?string $characters = null, ?string $encoding = null): string - { - return self::mb_internal_trim('{[%s]+$}D', $string, $characters, $encoding, __FUNCTION__); - } - - private static function mb_internal_trim(string $regex, string $string, ?string $characters, ?string $encoding, string $function): string - { - if (null === $encoding) { - $encoding = self::mb_internal_encoding(); - } else { - self::assertEncoding($encoding, $function.'(): Argument #3 ($encoding) must be a valid encoding, "%s" given'); - } - - if ('' === $characters) { - return null === $encoding ? $string : self::mb_convert_encoding($string, $encoding); - } - - if ('UTF-8' === $encoding) { - $encoding = null; - if (!preg_match('//u', $string)) { - $string = @iconv('UTF-8', 'UTF-8//IGNORE', $string); - } - if (null !== $characters && !preg_match('//u', $characters)) { - $characters = @iconv('UTF-8', 'UTF-8//IGNORE', $characters); - } - } else { - $string = iconv($encoding, 'UTF-8//IGNORE', $string); - - if (null !== $characters) { - $characters = iconv($encoding, 'UTF-8//IGNORE', $characters); - } - } - - if (null === $characters) { - $characters = "\\0 \f\n\r\t\v\u{00A0}\u{1680}\u{2000}\u{2001}\u{2002}\u{2003}\u{2004}\u{2005}\u{2006}\u{2007}\u{2008}\u{2009}\u{200A}\u{2028}\u{2029}\u{202F}\u{205F}\u{3000}\u{0085}\u{180E}"; - } else { - $characters = preg_quote($characters); - } - - $string = preg_replace(sprintf($regex, $characters), '', $string); - - if (null === $encoding) { - return $string; - } - - return iconv('UTF-8', $encoding.'//IGNORE', $string); - } - - private static function assertEncoding(string $encoding, string $errorFormat): void - { - try { - $validEncoding = @self::mb_check_encoding('', $encoding); - } catch (\ValueError $e) { - throw new \ValueError(sprintf($errorFormat, $encoding)); - } - - // BC for PHP 7.3 and lower - if (!$validEncoding) { - throw new \ValueError(sprintf($errorFormat, $encoding)); - } - } -} diff --git a/vendor/symfony/polyfill-mbstring/README.md b/vendor/symfony/polyfill-mbstring/README.md deleted file mode 100644 index 478b40d..0000000 --- a/vendor/symfony/polyfill-mbstring/README.md +++ /dev/null @@ -1,13 +0,0 @@ -Symfony Polyfill / Mbstring -=========================== - -This component provides a partial, native PHP implementation for the -[Mbstring](https://php.net/mbstring) extension. - -More information can be found in the -[main Polyfill README](https://github.com/symfony/polyfill/blob/main/README.md). - -License -======= - -This library is released under the [MIT license](LICENSE). diff --git a/vendor/symfony/polyfill-mbstring/Resources/unidata/caseFolding.php b/vendor/symfony/polyfill-mbstring/Resources/unidata/caseFolding.php deleted file mode 100644 index 512bba0..0000000 --- a/vendor/symfony/polyfill-mbstring/Resources/unidata/caseFolding.php +++ /dev/null @@ -1,119 +0,0 @@ - 'i̇', - 'µ' => 'μ', - 'ſ' => 's', - 'ͅ' => 'ι', - 'ς' => 'σ', - 'ϐ' => 'β', - 'ϑ' => 'θ', - 'ϕ' => 'φ', - 'ϖ' => 'π', - 'ϰ' => 'κ', - 'ϱ' => 'ρ', - 'ϵ' => 'ε', - 'ẛ' => 'ṡ', - 'ι' => 'ι', - 'ß' => 'ss', - 'ʼn' => 'ʼn', - 'ǰ' => 'ǰ', - 'ΐ' => 'ΐ', - 'ΰ' => 'ΰ', - 'և' => 'եւ', - 'ẖ' => 'ẖ', - 'ẗ' => 'ẗ', - 'ẘ' => 'ẘ', - 'ẙ' => 'ẙ', - 'ẚ' => 'aʾ', - 'ẞ' => 'ss', - 'ὐ' => 'ὐ', - 'ὒ' => 'ὒ', - 'ὔ' => 'ὔ', - 'ὖ' => 'ὖ', - 'ᾀ' => 'ἀι', - 'ᾁ' => 'ἁι', - 'ᾂ' => 'ἂι', - 'ᾃ' => 'ἃι', - 'ᾄ' => 'ἄι', - 'ᾅ' => 'ἅι', - 'ᾆ' => 'ἆι', - 'ᾇ' => 'ἇι', - 'ᾈ' => 'ἀι', - 'ᾉ' => 'ἁι', - 'ᾊ' => 'ἂι', - 'ᾋ' => 'ἃι', - 'ᾌ' => 'ἄι', - 'ᾍ' => 'ἅι', - 'ᾎ' => 'ἆι', - 'ᾏ' => 'ἇι', - 'ᾐ' => 'ἠι', - 'ᾑ' => 'ἡι', - 'ᾒ' => 'ἢι', - 'ᾓ' => 'ἣι', - 'ᾔ' => 'ἤι', - 'ᾕ' => 'ἥι', - 'ᾖ' => 'ἦι', - 'ᾗ' => 'ἧι', - 'ᾘ' => 'ἠι', - 'ᾙ' => 'ἡι', - 'ᾚ' => 'ἢι', - 'ᾛ' => 'ἣι', - 'ᾜ' => 'ἤι', - 'ᾝ' => 'ἥι', - 'ᾞ' => 'ἦι', - 'ᾟ' => 'ἧι', - 'ᾠ' => 'ὠι', - 'ᾡ' => 'ὡι', - 'ᾢ' => 'ὢι', - 'ᾣ' => 'ὣι', - 'ᾤ' => 'ὤι', - 'ᾥ' => 'ὥι', - 'ᾦ' => 'ὦι', - 'ᾧ' => 'ὧι', - 'ᾨ' => 'ὠι', - 'ᾩ' => 'ὡι', - 'ᾪ' => 'ὢι', - 'ᾫ' => 'ὣι', - 'ᾬ' => 'ὤι', - 'ᾭ' => 'ὥι', - 'ᾮ' => 'ὦι', - 'ᾯ' => 'ὧι', - 'ᾲ' => 'ὰι', - 'ᾳ' => 'αι', - 'ᾴ' => 'άι', - 'ᾶ' => 'ᾶ', - 'ᾷ' => 'ᾶι', - 'ᾼ' => 'αι', - 'ῂ' => 'ὴι', - 'ῃ' => 'ηι', - 'ῄ' => 'ήι', - 'ῆ' => 'ῆ', - 'ῇ' => 'ῆι', - 'ῌ' => 'ηι', - 'ῒ' => 'ῒ', - 'ῖ' => 'ῖ', - 'ῗ' => 'ῗ', - 'ῢ' => 'ῢ', - 'ῤ' => 'ῤ', - 'ῦ' => 'ῦ', - 'ῧ' => 'ῧ', - 'ῲ' => 'ὼι', - 'ῳ' => 'ωι', - 'ῴ' => 'ώι', - 'ῶ' => 'ῶ', - 'ῷ' => 'ῶι', - 'ῼ' => 'ωι', - 'ff' => 'ff', - 'fi' => 'fi', - 'fl' => 'fl', - 'ffi' => 'ffi', - 'ffl' => 'ffl', - 'ſt' => 'st', - 'st' => 'st', - 'ﬓ' => 'մն', - 'ﬔ' => 'մե', - 'ﬕ' => 'մի', - 'ﬖ' => 'վն', - 'ﬗ' => 'մխ', -]; diff --git a/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php b/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php deleted file mode 100644 index fac60b0..0000000 --- a/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php +++ /dev/null @@ -1,1397 +0,0 @@ - 'a', - 'B' => 'b', - 'C' => 'c', - 'D' => 'd', - 'E' => 'e', - 'F' => 'f', - 'G' => 'g', - 'H' => 'h', - 'I' => 'i', - 'J' => 'j', - 'K' => 'k', - 'L' => 'l', - 'M' => 'm', - 'N' => 'n', - 'O' => 'o', - 'P' => 'p', - 'Q' => 'q', - 'R' => 'r', - 'S' => 's', - 'T' => 't', - 'U' => 'u', - 'V' => 'v', - 'W' => 'w', - 'X' => 'x', - 'Y' => 'y', - 'Z' => 'z', - 'À' => 'à', - 'Á' => 'á', - 'Â' => 'â', - 'Ã' => 'ã', - 'Ä' => 'ä', - 'Å' => 'å', - 'Æ' => 'æ', - 'Ç' => 'ç', - 'È' => 'è', - 'É' => 'é', - 'Ê' => 'ê', - 'Ë' => 'ë', - 'Ì' => 'ì', - 'Í' => 'í', - 'Î' => 'î', - 'Ï' => 'ï', - 'Ð' => 'ð', - 'Ñ' => 'ñ', - 'Ò' => 'ò', - 'Ó' => 'ó', - 'Ô' => 'ô', - 'Õ' => 'õ', - 'Ö' => 'ö', - 'Ø' => 'ø', - 'Ù' => 'ù', - 'Ú' => 'ú', - 'Û' => 'û', - 'Ü' => 'ü', - 'Ý' => 'ý', - 'Þ' => 'þ', - 'Ā' => 'ā', - 'Ă' => 'ă', - 'Ą' => 'ą', - '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 'φ', - 'Χ' => 'χ', - 'Ψ' => 'ψ', - 'Ω' => 'ω', - 'Ϊ' => 'ϊ', - 'Ϋ' => 'ϋ', - 'Ϗ' => 'ϗ', - 'Ϙ' => 'ϙ', - 'Ϛ' => 'ϛ', - 'Ϝ' => 'ϝ', - 'Ϟ' => 'ϟ', - 'Ϡ' => 'ϡ', - 'Ϣ' => 'ϣ', - 'Ϥ' => 'ϥ', - 'Ϧ' => 'ϧ', - 'Ϩ' => 'ϩ', - 'Ϫ' => 'ϫ', - 'Ϭ' => 'ϭ', - 'Ϯ' => 'ϯ', - 'ϴ' => 'θ', - 'Ϸ' => 'ϸ', - 'Ϲ' => 'ϲ', - 'Ϻ' => 'ϻ', - 'Ͻ' => 'ͻ', - 'Ͼ' => 'ͼ', - 'Ͽ' => 'ͽ', - 'Ѐ' => 'ѐ', - 'Ё' => 'ё', - 'Ђ' => 'ђ', - 'Ѓ' => 'ѓ', - 'Є' => 'є', - 'Ѕ' => 'ѕ', - 'І' => 'і', - 'Ї' => 'ї', - 'Ј' => 'ј', - 'Љ' => 'љ', - 'Њ' => 'њ', - 'Ћ' => 'ћ', - 'Ќ' => 'ќ', - 'Ѝ' => 'ѝ', - 'Ў' => 'ў', - 'Џ' => 'џ', - 'А' => 'а', - 'Б' => 'б', - 'В' => 'в', - 'Г' => 'г', - 'Д' => 'д', - 'Е' => 'е', - 'Ж' => 'ж', - 'З' => 'з', - 'И' => 'и', - 'Й' => 'й', - 'К' => 'к', - 'Л' => 'л', - 'М' => 'м', - 'Н' => 'н', - 'О' => 'о', - 'П' => 'п', - 'Р' => 'р', - 'С' => 'с', - 'Т' => 'т', - 'У' => 'у', - 'Ф' => 'ф', - 'Х' => 'х', - 'Ц' => 'ц', - 'Ч' => 'ч', - 'Ш' => 'ш', - 'Щ' => 'щ', - 'Ъ' => 'ъ', - 'Ы' => 'ы', - 'Ь' => 'ь', - 'Э' => 'э', - 'Ю' => 'ю', - 'Я' => 'я', - 'Ѡ' => 'ѡ', -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', - 'Տ' => 'տ', - 'Ր' => 'ր', - 'Ց' => 'ց', - 'Ւ' => 'ւ', - 'Փ' => 'փ', - 'Ք' => 'ք', - 'Օ' => 'օ', - 'Ֆ' => 'ֆ', - 'Ⴀ' => 'ⴀ', - 'Ⴁ' => 'ⴁ', - 'Ⴂ' => 'ⴂ', - 'Ⴃ' => 'ⴃ', - 'Ⴄ' => 'ⴄ', - 'Ⴅ' => 'ⴅ', - 'Ⴆ' => 'ⴆ', - 'Ⴇ' => 'ⴇ', - 'Ⴈ' => 'ⴈ', - 'Ⴉ' => 'ⴉ', - 'Ⴊ' => 'ⴊ', - 'Ⴋ' => 'ⴋ', - 'Ⴌ' => 'ⴌ', - 'Ⴍ' => 'ⴍ', - 'Ⴎ' => 'ⴎ', - 'Ⴏ' => 'ⴏ', - 'Ⴐ' => 'ⴐ', - 'Ⴑ' => 'ⴑ', - 'Ⴒ' => 'ⴒ', - 'Ⴓ' => 'ⴓ', - 'Ⴔ' => 'ⴔ', - 'Ⴕ' => 'ⴕ', - 'Ⴖ' => 'ⴖ', - 'Ⴗ' => 'ⴗ', - 'Ⴘ' => 'ⴘ', - 'Ⴙ' => 'ⴙ', - 'Ⴚ' => 'ⴚ', - 'Ⴛ' => 'ⴛ', - 'Ⴜ' => 'ⴜ', - 'Ⴝ' => 'ⴝ', - 'Ⴞ' => 'ⴞ', - 'Ⴟ' => 'ⴟ', - 'Ⴠ' => 'ⴠ', - 'Ⴡ' => 'ⴡ', - 'Ⴢ' => 'ⴢ', - 'Ⴣ' => 'ⴣ', - 'Ⴤ' => 'ⴤ', - 'Ⴥ' => 'ⴥ', - 'Ⴧ' => 'ⴧ', - 'Ⴭ' => 'ⴭ', - 'Ꭰ' => 'ꭰ', - 'Ꭱ' => 'ꭱ', - 'Ꭲ' => 'ꭲ', - 'Ꭳ' => 'ꭳ', - 'Ꭴ' => 'ꭴ', - 'Ꭵ' => 'ꭵ', - 'Ꭶ' => 'ꭶ', - 'Ꭷ' => 'ꭷ', - 'Ꭸ' => 'ꭸ', - 'Ꭹ' => 'ꭹ', - 'Ꭺ' => 'ꭺ', - 'Ꭻ' => 'ꭻ', - 'Ꭼ' => 'ꭼ', - 'Ꭽ' => 'ꭽ', - 'Ꭾ' => 'ꭾ', - 'Ꭿ' => 'ꭿ', - 'Ꮀ' => 'ꮀ', - 'Ꮁ' => 'ꮁ', - 'Ꮂ' => 'ꮂ', - 'Ꮃ' => 'ꮃ', - 'Ꮄ' => 'ꮄ', - 'Ꮅ' => 'ꮅ', - 'Ꮆ' => 'ꮆ', - 'Ꮇ' => 'ꮇ', - 'Ꮈ' => 'ꮈ', - 'Ꮉ' => 'ꮉ', - 'Ꮊ' => 'ꮊ', - 'Ꮋ' => 'ꮋ', - 'Ꮌ' => 'ꮌ', - 'Ꮍ' => 'ꮍ', - 'Ꮎ' => 'ꮎ', - 'Ꮏ' => 'ꮏ', - 'Ꮐ' => 'ꮐ', - 'Ꮑ' => 'ꮑ', - 'Ꮒ' => 'ꮒ', - 'Ꮓ' => 'ꮓ', - 'Ꮔ' => 'ꮔ', - 'Ꮕ' => 'ꮕ', - 'Ꮖ' => 'ꮖ', - 'Ꮗ' => 'ꮗ', - 'Ꮘ' => 'ꮘ', - 'Ꮙ' => 'ꮙ', - 'Ꮚ' => 'ꮚ', - 'Ꮛ' => 'ꮛ', - 'Ꮜ' => 'ꮜ', - 'Ꮝ' => 'ꮝ', - 'Ꮞ' => 'ꮞ', - 'Ꮟ' => 'ꮟ', - 'Ꮠ' => 'ꮠ', - 'Ꮡ' => 'ꮡ', - 'Ꮢ' => 'ꮢ', - 'Ꮣ' => 'ꮣ', - 'Ꮤ' => 'ꮤ', - 'Ꮥ' => 'ꮥ', - 'Ꮦ' => 'ꮦ', - 'Ꮧ' => 'ꮧ', - 'Ꮨ' => 'ꮨ', - 'Ꮩ' => 'ꮩ', - 'Ꮪ' => 'ꮪ', - 'Ꮫ' => 'ꮫ', - 'Ꮬ' => 'ꮬ', - 'Ꮭ' => 'ꮭ', - 'Ꮮ' => 'ꮮ', - 'Ꮯ' => 'ꮯ', - 'Ꮰ' => 'ꮰ', - 'Ꮱ' => 'ꮱ', - 'Ꮲ' => 'ꮲ', - 'Ꮳ' => 'ꮳ', - 'Ꮴ' => 'ꮴ', - 'Ꮵ' => 'ꮵ', - 'Ꮶ' => 'ꮶ', - 'Ꮷ' => 'ꮷ', - 'Ꮸ' => 'ꮸ', - 'Ꮹ' => 'ꮹ', - 'Ꮺ' => 'ꮺ', - 'Ꮻ' => 'ꮻ', - 'Ꮼ' => 'ꮼ', - 'Ꮽ' => 'ꮽ', - 'Ꮾ' => 'ꮾ', - 'Ꮿ' => 'ꮿ', - 'Ᏸ' => 'ᏸ', - 'Ᏹ' => 'ᏹ', - 'Ᏺ' => 'ᏺ', - 'Ᏻ' => 'ᏻ', - 'Ᏼ' => 'ᏼ', - 'Ᏽ' => 'ᏽ', - 'Ა' => 'ა', - 'Ბ' => 'ბ', - 'Გ' => 'გ', - 'Დ' => 'დ', - 'Ე' => 'ე', - 'Ვ' => 'ვ', - 'Ზ' => 'ზ', - 'Თ' => 'თ', - 'Ი' => 'ი', - 'Კ' => 'კ', - 'Ლ' => 'ლ', - 'Მ' => 'მ', - 'Ნ' => 'ნ', - 'Ო' => 'ო', - 'Პ' => 'პ', - 'Ჟ' => 'ჟ', - 'Რ' => 'რ', - 'Ს' => 'ს', - 'Ტ' => 'ტ', - 'Უ' => 'უ', - 'Ფ' => 'ფ', - 'Ქ' => 'ქ', - 'Ღ' => 'ღ', - 'Ყ' => 'ყ', - 'Შ' => 'შ', - 'Ჩ' => 'ჩ', - 'Ც' => 'ც', - 'Ძ' => 'ძ', - 'Წ' => 'წ', - 'Ჭ' => 'ჭ', - 'Ხ' => 'ხ', - 'Ჯ' => 'ჯ', - 'Ჰ' => 'ჰ', - 'Ჱ' => 'ჱ', - 'Ჲ' => 'ჲ', - 'Ჳ' => 'ჳ', - 'Ჴ' => 'ჴ', - 'Ჵ' => 'ჵ', - 'Ჶ' => 'ჶ', - 'Ჷ' => 'ჷ', - 'Ჸ' => 'ჸ', - 'Ჹ' => 'ჹ', - 'Ჺ' => 'ჺ', - 'Ჽ' => 'ჽ', - 'Ჾ' => 'ჾ', - 'Ჿ' => 'ჿ', - 'Ḁ' => 'ḁ', - 'Ḃ' => 'ḃ', - 'Ḅ' => 'ḅ', - 'Ḇ' => 'ḇ', - 'Ḉ' => 'ḉ', - 'Ḋ' => 'ḋ', - 'Ḍ' => 'ḍ', - 'Ḏ' => 'ḏ', - 'Ḑ' => 'ḑ', - 'Ḓ' => 'ḓ', - 'Ḕ' => 'ḕ', - 'Ḗ' => 'ḗ', - 'Ḙ' => 'ḙ', - 'Ḛ' => 'ḛ', - 'Ḝ' => 'ḝ', - 'Ḟ' => 'ḟ', - 'Ḡ' => 'ḡ', - 'Ḣ' => 'ḣ', - 'Ḥ' => 'ḥ', - 'Ḧ' => 'ḧ', - 'Ḩ' => 'ḩ', - 'Ḫ' => 'ḫ', - 'Ḭ' => 'ḭ', - 'Ḯ' => 'ḯ', - 'Ḱ' => 'ḱ', - 'Ḳ' => 'ḳ', - 'Ḵ' => 'ḵ', - 'Ḷ' => 'ḷ', - 'Ḹ' => 'ḹ', - 'Ḻ' => 'ḻ', - 'Ḽ' => 'ḽ', - 'Ḿ' => 'ḿ', - 'Ṁ' => 'ṁ', - 'Ṃ' => 'ṃ', - 'Ṅ' => 'ṅ', - 'Ṇ' => 'ṇ', - 'Ṉ' => 'ṉ', - 'Ṋ' => 'ṋ', - 'Ṍ' => 'ṍ', - 'Ṏ' => 'ṏ', - 'Ṑ' => 'ṑ', - 'Ṓ' => 'ṓ', - 'Ṕ' => 'ṕ', - 'Ṗ' => 'ṗ', - 'Ṙ' => 'ṙ', - 'Ṛ' => 'ṛ', - 'Ṝ' => 'ṝ', - 'Ṟ' => 'ṟ', - 'Ṡ' => 'ṡ', - 'Ṣ' => 'ṣ', - 'Ṥ' => 'ṥ', - 'Ṧ' => 'ṧ', - 'Ṩ' => 'ṩ', - 'Ṫ' => 'ṫ', - 'Ṭ' => 'ṭ', - 'Ṯ' => 'ṯ', - 'Ṱ' => 'ṱ', - 'Ṳ' => 'ṳ', - 'Ṵ' => 'ṵ', - 'Ṷ' => 'ṷ', - 'Ṹ' => 'ṹ', - 'Ṻ' => 'ṻ', - 'Ṽ' => 'ṽ', - 'Ṿ' => 'ṿ', - 'Ẁ' => 'ẁ', - 'Ẃ' => 'ẃ', - 'Ẅ' => 'ẅ', - 'Ẇ' => 'ẇ', - 'Ẉ' => 'ẉ', - 'Ẋ' => 'ẋ', - 'Ẍ' => 'ẍ', - 'Ẏ' => 'ẏ', - 'Ẑ' => 'ẑ', - 'Ẓ' => 'ẓ', - 'Ẕ' => 'ẕ', - 'ẞ' => 'ß', - 'Ạ' => 'ạ', - 'Ả' => 'ả', - 'Ấ' => 'ấ', - 'Ầ' => 'ầ', - 'Ẩ' => 'ẩ', - 'Ẫ' => 'ẫ', - 'Ậ' => 'ậ', - 'Ắ' => 'ắ', - 'Ằ' => 'ằ', - 'Ẳ' => 'ẳ', - 'Ẵ' => 'ẵ', - 'Ặ' => 'ặ', - 'Ẹ' => 'ẹ', - 'Ẻ' => 'ẻ', - 'Ẽ' => 'ẽ', - 'Ế' => 'ế', - 'Ề' => 'ề', - 'Ể' => 'ể', - 'Ễ' => 'ễ', - 'Ệ' => 'ệ', - 'Ỉ' => 'ỉ', - 'Ị' => 'ị', - 'Ọ' => 'ọ', - 'Ỏ' => 'ỏ', - 'Ố' => 'ố', - 'Ồ' => 'ồ', - 'Ổ' => 'ổ', - 'Ỗ' => 'ỗ', - 'Ộ' => 'ộ', - 'Ớ' => 'ớ', - 'Ờ' => 'ờ', - 'Ở' => 'ở', - 'Ỡ' => 'ỡ', - 'Ợ' => 'ợ', - 'Ụ' => 'ụ', - 'Ủ' => 'ủ', - 'Ứ' => 'ứ', - 'Ừ' => 'ừ', - 'Ử' => 'ử', - 'Ữ' => 'ữ', - 'Ự' => 'ự', - 'Ỳ' => 'ỳ', - 'Ỵ' => 'ỵ', - 'Ỷ' => 'ỷ', - 'Ỹ' => 'ỹ', - 'Ỻ' => 'ỻ', - 'Ỽ' => 'ỽ', - 'Ỿ' => 'ỿ', - 'Ἀ' => 'ἀ', - 'Ἁ' => 'ἁ', - 'Ἂ' => 'ἂ', - 'Ἃ' => 'ἃ', - 'Ἄ' => 'ἄ', - 'Ἅ' => 'ἅ', - 'Ἆ' => 'ἆ', - 'Ἇ' => 'ἇ', - 'Ἐ' => 'ἐ', - 'Ἑ' => 'ἑ', - 'Ἒ' => 'ἒ', - 'Ἓ' => 'ἓ', - 'Ἔ' => 'ἔ', - 'Ἕ' => 'ἕ', - 'Ἠ' => 'ἠ', - 'Ἡ' => 'ἡ', - 'Ἢ' => 'ἢ', - 'Ἣ' => 'ἣ', - 'Ἤ' => 'ἤ', - 'Ἥ' => 'ἥ', - 'Ἦ' => 'ἦ', - 'Ἧ' => 'ἧ', - 'Ἰ' => 'ἰ', - 'Ἱ' => 'ἱ', - 'Ἲ' => 'ἲ', - 'Ἳ' => 'ἳ', - 'Ἴ' => 'ἴ', - 'Ἵ' => 'ἵ', - 'Ἶ' => 'ἶ', - 'Ἷ' => 'ἷ', - 'Ὀ' => 'ὀ', - 'Ὁ' => 'ὁ', - 'Ὂ' => 'ὂ', - 'Ὃ' => 'ὃ', - 'Ὄ' => 'ὄ', - 'Ὅ' => 'ὅ', - 'Ὑ' => 'ὑ', - 'Ὓ' => 'ὓ', - 'Ὕ' => 'ὕ', - 'Ὗ' => 'ὗ', - 'Ὠ' => 'ὠ', - 'Ὡ' => 'ὡ', - 'Ὢ' => 'ὢ', - 'Ὣ' => 'ὣ', - 'Ὤ' => 'ὤ', - 'Ὥ' => 'ὥ', - 'Ὦ' => 'ὦ', - 'Ὧ' => 'ὧ', - 'ᾈ' => 'ᾀ', - 'ᾉ' => 'ᾁ', - 'ᾊ' => 'ᾂ', - 'ᾋ' => 'ᾃ', - 'ᾌ' => 'ᾄ', - 'ᾍ' => 'ᾅ', - 'ᾎ' => 'ᾆ', - 'ᾏ' => 'ᾇ', - 'ᾘ' => 'ᾐ', - 'ᾙ' => 'ᾑ', - 'ᾚ' => 'ᾒ', - 'ᾛ' => 'ᾓ', - 'ᾜ' => 'ᾔ', - 'ᾝ' => 'ᾕ', - 'ᾞ' => 'ᾖ', - 'ᾟ' => 'ᾗ', - 'ᾨ' => 'ᾠ', - 'ᾩ' => 'ᾡ', - 'ᾪ' => 'ᾢ', - 'ᾫ' => 'ᾣ', - 'ᾬ' => 'ᾤ', - 'ᾭ' => 'ᾥ', - 'ᾮ' => 'ᾦ', - 'ᾯ' => 'ᾧ', - 'Ᾰ' => 'ᾰ', - 'Ᾱ' => 'ᾱ', - 'Ὰ' => 'ὰ', - 'Ά' => 'ά', - 'ᾼ' => 'ᾳ', - 'Ὲ' => 'ὲ', - 'Έ' => 'έ', - 'Ὴ' => 'ὴ', - 'Ή' => 'ή', - 'ῌ' => 'ῃ', - 'Ῐ' => 'ῐ', - 'Ῑ' => 'ῑ', - 'Ὶ' => 'ὶ', - 'Ί' => 'ί', - 'Ῠ' => 'ῠ', - 'Ῡ' => 'ῡ', - 'Ὺ' => 'ὺ', - 'Ύ' => 'ύ', - 'Ῥ' => 'ῥ', - 'Ὸ' => 'ὸ', - 'Ό' => 'ό', - 'Ὼ' => 'ὼ', - 'Ώ' => 'ώ', - 'ῼ' => 'ῳ', - 'Ω' => 'ω', - 'K' => 'k', - 'Å' => 'å', - 'Ⅎ' => 'ⅎ', - 'Ⅰ' => 'ⅰ', - 'Ⅱ' => 'ⅱ', - 'Ⅲ' => 'ⅲ', - 'Ⅳ' => 'ⅳ', - 'Ⅴ' => 'ⅴ', - 'Ⅵ' => 'ⅵ', - 'Ⅶ' => 'ⅶ', - 'Ⅷ' => 'ⅷ', - 'Ⅸ' => 'ⅸ', - 'Ⅹ' => 'ⅹ', - 'Ⅺ' => 'ⅺ', - 'Ⅻ' => 'ⅻ', - 'Ⅼ' => 'ⅼ', - 'Ⅽ' => 'ⅽ', - 'Ⅾ' => 'ⅾ', - 'Ⅿ' => 'ⅿ', - 'Ↄ' => 'ↄ', - 'Ⓐ' => 'ⓐ', - 'Ⓑ' => 'ⓑ', - 'Ⓒ' => 'ⓒ', - 'Ⓓ' => 'ⓓ', - 'Ⓔ' => 'ⓔ', - 'Ⓕ' => 'ⓕ', - 'Ⓖ' => 'ⓖ', - 'Ⓗ' => 'ⓗ', - 'Ⓘ' => 'ⓘ', - 'Ⓙ' => 'ⓙ', - 'Ⓚ' => 'ⓚ', - 'Ⓛ' => 'ⓛ', - 'Ⓜ' => 'ⓜ', - 'Ⓝ' => 'ⓝ', - 'Ⓞ' => 'ⓞ', - 'Ⓟ' => 'ⓟ', - 'Ⓠ' => 'ⓠ', - 'Ⓡ' => 'ⓡ', - 'Ⓢ' => 'ⓢ', - 'Ⓣ' => 'ⓣ', - 'Ⓤ' => 'ⓤ', - 'Ⓥ' => 'ⓥ', - 'Ⓦ' => 'ⓦ', - 'Ⓧ' => 'ⓧ', - 'Ⓨ' => 'ⓨ', - 'Ⓩ' => 'ⓩ', - 'Ⰰ' => 'ⰰ', - 'Ⰱ' => 'ⰱ', - 'Ⰲ' => 'ⰲ', - 'Ⰳ' => 'ⰳ', - 'Ⰴ' => 'ⰴ', - 'Ⰵ' => 'ⰵ', - 'Ⰶ' => 'ⰶ', - 'Ⰷ' => 'ⰷ', - 'Ⰸ' => 'ⰸ', - 'Ⰹ' => 'ⰹ', - 'Ⰺ' => 'ⰺ', - 'Ⰻ' => 'ⰻ', - 'Ⰼ' => 'ⰼ', - 'Ⰽ' => 'ⰽ', - 'Ⰾ' => 'ⰾ', - 'Ⰿ' => 'ⰿ', - 'Ⱀ' => 'ⱀ', - 'Ⱁ' => 'ⱁ', - 'Ⱂ' => 'ⱂ', - 'Ⱃ' => 'ⱃ', - 'Ⱄ' => 'ⱄ', - 'Ⱅ' => 'ⱅ', - 'Ⱆ' => 'ⱆ', - 'Ⱇ' => 'ⱇ', - 'Ⱈ' => 'ⱈ', - 'Ⱉ' => 'ⱉ', - 'Ⱊ' => 'ⱊ', - 'Ⱋ' => 'ⱋ', - 'Ⱌ' => 'ⱌ', - 'Ⱍ' => 'ⱍ', - 'Ⱎ' => 'ⱎ', - 'Ⱏ' => 'ⱏ', - 'Ⱐ' => 'ⱐ', - 'Ⱑ' => 'ⱑ', - 'Ⱒ' => 'ⱒ', - 'Ⱓ' => 'ⱓ', - 'Ⱔ' => 'ⱔ', - 'Ⱕ' => 'ⱕ', - 'Ⱖ' => 'ⱖ', - 'Ⱗ' => 'ⱗ', - 'Ⱘ' => 'ⱘ', - 'Ⱙ' => 'ⱙ', - 'Ⱚ' => 'ⱚ', - 'Ⱛ' => 'ⱛ', - 'Ⱜ' => 'ⱜ', - 'Ⱝ' => 'ⱝ', - 'Ⱞ' => 'ⱞ', - 'Ⱡ' => 'ⱡ', - 'Ɫ' => 'ɫ', - 'Ᵽ' => 'ᵽ', - 'Ɽ' => 'ɽ', - 'Ⱨ' => 'ⱨ', - 'Ⱪ' => 'ⱪ', - 'Ⱬ' => 'ⱬ', - 'Ɑ' => 'ɑ', - 'Ɱ' => 'ɱ', - 'Ɐ' => 'ɐ', - 'Ɒ' => 'ɒ', - 'Ⱳ' => 'ⱳ', - 'Ⱶ' => 'ⱶ', - 'Ȿ' => 'ȿ', - 'Ɀ' => 'ɀ', - 'Ⲁ' => 'ⲁ', - 'Ⲃ' => 'ⲃ', - 'Ⲅ' => 'ⲅ', - 'Ⲇ' => 'ⲇ', - 'Ⲉ' => 'ⲉ', - 'Ⲋ' => 'ⲋ', - 'Ⲍ' => 'ⲍ', - 'Ⲏ' => 'ⲏ', - 'Ⲑ' => 'ⲑ', - 'Ⲓ' => 'ⲓ', - 'Ⲕ' => 'ⲕ', - 'Ⲗ' => 'ⲗ', - 'Ⲙ' => 'ⲙ', - 'Ⲛ' => 'ⲛ', - 'Ⲝ' => 'ⲝ', - 'Ⲟ' => 'ⲟ', - 'Ⲡ' => 'ⲡ', - 'Ⲣ' => 'ⲣ', - 'Ⲥ' => 'ⲥ', - 'Ⲧ' => 'ⲧ', - 'Ⲩ' => 'ⲩ', - 'Ⲫ' => 'ⲫ', - 'Ⲭ' => 'ⲭ', - 'Ⲯ' => 'ⲯ', - 'Ⲱ' => 'ⲱ', - 'Ⲳ' => 'ⲳ', - 'Ⲵ' => 'ⲵ', - 'Ⲷ' => 'ⲷ', - 'Ⲹ' => 'ⲹ', - 'Ⲻ' => 'ⲻ', - 'Ⲽ' => 'ⲽ', - 'Ⲿ' => 'ⲿ', - 'Ⳁ' => 'ⳁ', - 'Ⳃ' => 'ⳃ', - 'Ⳅ' => 'ⳅ', - 'Ⳇ' => 'ⳇ', - 'Ⳉ' => 'ⳉ', - 'Ⳋ' => 'ⳋ', - 'Ⳍ' => 'ⳍ', - 'Ⳏ' => 'ⳏ', - 'Ⳑ' => 'ⳑ', - 'Ⳓ' => 'ⳓ', - 'Ⳕ' => 'ⳕ', - 'Ⳗ' => 'ⳗ', - 'Ⳙ' => 'ⳙ', - 'Ⳛ' => 'ⳛ', - 'Ⳝ' => 'ⳝ', - 'Ⳟ' => 'ⳟ', - 'Ⳡ' => 'ⳡ', - 'Ⳣ' => 'ⳣ', - 'Ⳬ' => 'ⳬ', - 'Ⳮ' => 'ⳮ', - 'Ⳳ' => 'ⳳ', - 'Ꙁ' => 'ꙁ', - 'Ꙃ' => 'ꙃ', - 'Ꙅ' => 'ꙅ', - 'Ꙇ' => 'ꙇ', - 'Ꙉ' => 'ꙉ', - 'Ꙋ' => 'ꙋ', - 'Ꙍ' => 'ꙍ', - 'Ꙏ' => 'ꙏ', - 'Ꙑ' => 'ꙑ', - 'Ꙓ' => 'ꙓ', - 'Ꙕ' => 'ꙕ', - 'Ꙗ' => 'ꙗ', - 'Ꙙ' => 'ꙙ', - 'Ꙛ' => 'ꙛ', - 'Ꙝ' => 'ꙝ', - 'Ꙟ' => 'ꙟ', - 'Ꙡ' => 'ꙡ', - 'Ꙣ' => 'ꙣ', - 'Ꙥ' => 'ꙥ', - 'Ꙧ' => 'ꙧ', - 'Ꙩ' => 'ꙩ', - 'Ꙫ' => 'ꙫ', - 'Ꙭ' => 'ꙭ', - 'Ꚁ' => 'ꚁ', - 'Ꚃ' => 'ꚃ', - 'Ꚅ' => 'ꚅ', - 'Ꚇ' => 'ꚇ', - 'Ꚉ' => 'ꚉ', - 'Ꚋ' => 'ꚋ', - 'Ꚍ' => 'ꚍ', - 'Ꚏ' => 'ꚏ', - 'Ꚑ' => 'ꚑ', - 'Ꚓ' => 'ꚓ', - 'Ꚕ' => 'ꚕ', - 'Ꚗ' => 'ꚗ', - 'Ꚙ' => 'ꚙ', - 'Ꚛ' => 'ꚛ', - 'Ꜣ' => 'ꜣ', - 'Ꜥ' => 'ꜥ', - 'Ꜧ' => 'ꜧ', - 'Ꜩ' => 'ꜩ', - 'Ꜫ' => 'ꜫ', - 'Ꜭ' => 'ꜭ', - 'Ꜯ' => 'ꜯ', - 'Ꜳ' => 'ꜳ', - 'Ꜵ' => 'ꜵ', - 'Ꜷ' => 'ꜷ', - 'Ꜹ' => 'ꜹ', - 'Ꜻ' => 'ꜻ', - 'Ꜽ' => 'ꜽ', - 'Ꜿ' => 'ꜿ', - 'Ꝁ' => 'ꝁ', - 'Ꝃ' => 'ꝃ', - 'Ꝅ' => 'ꝅ', - 'Ꝇ' => 'ꝇ', - 'Ꝉ' => 'ꝉ', - 'Ꝋ' => 'ꝋ', - 'Ꝍ' => 'ꝍ', - 'Ꝏ' => 'ꝏ', - 'Ꝑ' => 'ꝑ', - 'Ꝓ' => 'ꝓ', - 'Ꝕ' => 'ꝕ', - 'Ꝗ' => 'ꝗ', - 'Ꝙ' => 'ꝙ', - 'Ꝛ' => 'ꝛ', - 'Ꝝ' => 'ꝝ', - 'Ꝟ' => 'ꝟ', - 'Ꝡ' => 'ꝡ', - 'Ꝣ' => 'ꝣ', - 'Ꝥ' => 'ꝥ', - 'Ꝧ' => 'ꝧ', - 'Ꝩ' => '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o', - 'P' => 'p', - 'Q' => 'q', - 'R' => 'r', - 'S' => 's', - 'T' => 't', - 'U' => 'u', - 'V' => 'v', - 'W' => 'w', - 'X' => 'x', - 'Y' => 'y', - 'Z' => 'z', - '𐐀' => '𐐨', - '𐐁' => '𐐩', - '𐐂' => '𐐪', - '𐐃' => '𐐫', - '𐐄' => '𐐬', - '𐐅' => '𐐭', - '𐐆' => '𐐮', - '𐐇' => '𐐯', - '𐐈' => '𐐰', - '𐐉' => '𐐱', - '𐐊' => '𐐲', - '𐐋' => '𐐳', - '𐐌' => '𐐴', - '𐐍' => '𐐵', - '𐐎' => '𐐶', - '𐐏' => '𐐷', - '𐐐' => '𐐸', - '𐐑' => '𐐹', - '𐐒' => '𐐺', - '𐐓' => '𐐻', - '𐐔' => '𐐼', - '𐐕' => '𐐽', - '𐐖' => '𐐾', - '𐐗' => '𐐿', - '𐐘' => '𐑀', - '𐐙' => '𐑁', - '𐐚' => '𐑂', - '𐐛' => '𐑃', - '𐐜' => '𐑄', - '𐐝' => '𐑅', - '𐐞' => '𐑆', - '𐐟' => '𐑇', - '𐐠' => '𐑈', - '𐐡' => '𐑉', - '𐐢' => '𐑊', - '𐐣' => '𐑋', - '𐐤' => '𐑌', - '𐐥' => '𐑍', - '𐐦' => '𐑎', - '𐐧' => '𐑏', - '𐒰' => '𐓘', - '𐒱' => '𐓙', - '𐒲' => '𐓚', - '𐒳' => '𐓛', - '𐒴' => '𐓜', - '𐒵' => '𐓝', - '𐒶' => '𐓞', - '𐒷' => '𐓟', - '𐒸' => '𐓠', - '𐒹' => '𐓡', - '𐒺' => '𐓢', - '𐒻' => '𐓣', - '𐒼' => '𐓤', - '𐒽' => '𐓥', - '𐒾' => '𐓦', - '𐒿' => '𐓧', - '𐓀' => '𐓨', - '𐓁' => '𐓩', - '𐓂' => '𐓪', - '𐓃' => '𐓫', - '𐓄' => '𐓬', - '𐓅' => '𐓭', - '𐓆' => '𐓮', - '𐓇' => '𐓯', - '𐓈' => '𐓰', - '𐓉' => '𐓱', - '𐓊' => '𐓲', - '𐓋' => '𐓳', - '𐓌' => '𐓴', - '𐓍' => '𐓵', - '𐓎' => '𐓶', - '𐓏' => '𐓷', - '𐓐' => '𐓸', - '𐓑' => '𐓹', - '𐓒' => '𐓺', - '𐓓' => '𐓻', - '𐲀' => '𐳀', - '𐲁' => '𐳁', - '𐲂' => '𐳂', - '𐲃' => '𐳃', - '𐲄' => '𐳄', - '𐲅' => '𐳅', - '𐲆' => '𐳆', - '𐲇' => '𐳇', - '𐲈' => '𐳈', - '𐲉' => '𐳉', - '𐲊' => '𐳊', - '𐲋' => '𐳋', - '𐲌' => '𐳌', - '𐲍' => '𐳍', - '𐲎' => '𐳎', - '𐲏' => '𐳏', - '𐲐' => '𐳐', - '𐲑' => '𐳑', - '𐲒' => '𐳒', - '𐲓' => '𐳓', - '𐲔' => '𐳔', - '𐲕' => '𐳕', - '𐲖' => '𐳖', - '𐲗' => '𐳗', - '𐲘' => '𐳘', - '𐲙' => '𐳙', - '𐲚' => '𐳚', - '𐲛' => '𐳛', - '𐲜' => '𐳜', - '𐲝' => '𐳝', - '𐲞' => '𐳞', - '𐲟' => '𐳟', - '𐲠' => '𐳠', - '𐲡' => '𐳡', - '𐲢' => '𐳢', - '𐲣' => '𐳣', - '𐲤' => '𐳤', - '𐲥' => '𐳥', - '𐲦' => '𐳦', - '𐲧' => '𐳧', - '𐲨' => '𐳨', - '𐲩' => '𐳩', - '𐲪' => '𐳪', - '𐲫' => '𐳫', - '𐲬' => '𐳬', - '𐲭' => '𐳭', - '𐲮' => '𐳮', - '𐲯' => '𐳯', - '𐲰' => '𐳰', - '𐲱' => '𐳱', - '𐲲' => '𐳲', - '𑢠' => '𑣀', - '𑢡' => '𑣁', - '𑢢' => '𑣂', - '𑢣' => '𑣃', - '𑢤' => '𑣄', - '𑢥' => '𑣅', - '𑢦' => '𑣆', - '𑢧' => '𑣇', - '𑢨' => '𑣈', - '𑢩' => '𑣉', - '𑢪' => '𑣊', - '𑢫' => '𑣋', - '𑢬' => '𑣌', - '𑢭' => '𑣍', - '𑢮' => '𑣎', - '𑢯' => '𑣏', - '𑢰' => '𑣐', - '𑢱' => '𑣑', - '𑢲' => '𑣒', - '𑢳' => '𑣓', - '𑢴' => '𑣔', - '𑢵' => '𑣕', - '𑢶' => '𑣖', - '𑢷' => '𑣗', - '𑢸' => '𑣘', - '𑢹' => '𑣙', - '𑢺' => '𑣚', - '𑢻' => '𑣛', - '𑢼' => '𑣜', - '𑢽' => '𑣝', - '𑢾' => '𑣞', - '𑢿' => '𑣟', - '𖹀' => '𖹠', - '𖹁' => '𖹡', - '𖹂' => '𖹢', - '𖹃' => '𖹣', - '𖹄' => '𖹤', - '𖹅' => '𖹥', - '𖹆' => '𖹦', - '𖹇' => '𖹧', - '𖹈' => '𖹨', - '𖹉' => '𖹩', - '𖹊' => '𖹪', - '𖹋' => '𖹫', - '𖹌' => '𖹬', - '𖹍' => '𖹭', - '𖹎' => '𖹮', - '𖹏' => '𖹯', - '𖹐' => '𖹰', - '𖹑' => '𖹱', - '𖹒' => '𖹲', - '𖹓' => '𖹳', - '𖹔' => '𖹴', - '𖹕' => '𖹵', - '𖹖' => '𖹶', - '𖹗' => '𖹷', - '𖹘' => '𖹸', - '𖹙' => '𖹹', - '𖹚' => '𖹺', - '𖹛' => '𖹻', - '𖹜' => '𖹼', - '𖹝' => '𖹽', - '𖹞' => '𖹾', - '𖹟' => '𖹿', - '𞤀' => '𞤢', - '𞤁' => '𞤣', - '𞤂' => '𞤤', - '𞤃' => '𞤥', - '𞤄' => '𞤦', - '𞤅' => '𞤧', - '𞤆' => '𞤨', - '𞤇' => '𞤩', - '𞤈' => '𞤪', - '𞤉' => '𞤫', - '𞤊' => '𞤬', - '𞤋' => '𞤭', - '𞤌' => '𞤮', - '𞤍' => '𞤯', - '𞤎' => '𞤰', - '𞤏' => '𞤱', - '𞤐' => '𞤲', - '𞤑' => '𞤳', - '𞤒' => '𞤴', - '𞤓' => '𞤵', - '𞤔' => '𞤶', - '𞤕' => '𞤷', - '𞤖' => '𞤸', - '𞤗' => '𞤹', - '𞤘' => '𞤺', - '𞤙' => '𞤻', - '𞤚' => '𞤼', - '𞤛' => '𞤽', - '𞤜' => '𞤾', - '𞤝' => '𞤿', - '𞤞' => '𞥀', - '𞤟' => '𞥁', - '𞤠' => '𞥂', - '𞤡' => '𞥃', -); diff --git a/vendor/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php b/vendor/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php deleted file mode 100644 index 2a8f6e7..0000000 --- a/vendor/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php +++ /dev/null @@ -1,5 +0,0 @@ - 'A', - 'b' => 'B', - 'c' => 'C', - 'd' => 'D', - 'e' => 'E', - 'f' => 'F', - 'g' => 'G', - 'h' => 'H', - 'i' => 'I', - 'j' => 'J', - 'k' => 'K', - 'l' => 'L', - 'm' => 'M', - 'n' => 'N', - 'o' => 'O', - 'p' => 'P', - 'q' => 'Q', - 'r' => 'R', - 's' => 'S', - 't' => 'T', - 'u' => 'U', - 'v' => 'V', - 'w' => 'W', - 'x' => 'X', - 'y' => 'Y', - 'z' => 'Z', - 'µ' => 'Μ', - 'à' => 'À', - 'á' => 'Á', - 'â' => 'Â', - 'ã' => 'Ã', - 'ä' => 'Ä', - 'å' => 'Å', - 'æ' => 'Æ', - 'ç' => 'Ç', - 'è' => 'È', - 'é' => 'É', - 'ê' => 'Ê', - 'ë' => 'Ë', - 'ì' => 'Ì', - 'í' => 'Í', - 'î' => 'Î', - 'ï' => 'Ï', - 'ð' => 'Ð', - 'ñ' => 'Ñ', - 'ò' => 'Ò', - 'ó' => 'Ó', - 'ô' => 'Ô', - 'õ' => 'Õ', - 'ö' => 'Ö', - 'ø' => 'Ø', - 'ù' => 'Ù', - 'ú' => 'Ú', - 'û' => 'Û', - 'ü' => 'Ü', - 'ý' => 'Ý', - 'þ' => 'Þ', - 'ÿ' => 'Ÿ', - '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 'Ά', - 'έ' => 'Έ', - 'ή' => 'Ή', - 'ί' => 'Ί', - 'α' => 'Α', - 'β' => 'Β', - 'γ' => 'Γ', - 'δ' => 'Δ', - 'ε' => 'Ε', - 'ζ' => 'Ζ', - 'η' => 'Η', - 'θ' => 'Θ', - 'ι' => 'Ι', - 'κ' => 'Κ', - 'λ' => 'Λ', - 'μ' => 'Μ', - 'ν' => 'Ν', - 'ξ' => 'Ξ', - 'ο' => 'Ο', - 'π' => 'Π', - 'ρ' => 'Ρ', - 'ς' => 'Σ', - 'σ' => 'Σ', - 'τ' => 'Τ', - 'υ' => 'Υ', - 'φ' => 'Φ', - 'χ' => 'Χ', - 'ψ' => 'Ψ', - 'ω' => 'Ω', - 'ϊ' => 'Ϊ', - 'ϋ' => 'Ϋ', - 'ό' => 'Ό', - 'ύ' => 'Ύ', - 'ώ' => 'Ώ', - 'ϐ' => 'Β', - 'ϑ' => 'Θ', - 'ϕ' => 'Φ', - 'ϖ' => 'Π', - 'ϗ' => 'Ϗ', - 'ϙ' => 'Ϙ', - 'ϛ' => 'Ϛ', - 'ϝ' => 'Ϝ', - 'ϟ' => 'Ϟ', - 'ϡ' => 'Ϡ', - 'ϣ' => 'Ϣ', - 'ϥ' => 'Ϥ', - 'ϧ' => 'Ϧ', - 'ϩ' => 'Ϩ', - 'ϫ' => 'Ϫ', - 'ϭ' => 'Ϭ', - 'ϯ' => 'Ϯ', - 'ϰ' => 'Κ', - 'ϱ' => 'Ρ', - 'ϲ' => 'Ϲ', - 'ϳ' => 'Ϳ', - 'ϵ' => 'Ε', - 'ϸ' => 'Ϸ', - 'ϻ' => 'Ϻ', - 'а' => 'А', - 'б' => 'Б', - 'в' => 'В', - 'г' => 'Г', - 'д' => 'Д', - 'е' => 'Е', - 'ж' => 'Ж', - 'з' => 'З', - 'и' => 'И', - 'й' => 'Й', - 'к' => 'К', - 'л' => 'Л', - 'м' => 'М', - 'н' => 'Н', - 'о' => 'О', - 'п' => 'П', - 'р' => 'Р', - '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Ԭ', - 'ԯ' => 'Ԯ', - 'ա' => 'Ա', - 'բ' => 'Բ', - 'գ' => 'Գ', - 'դ' => 'Դ', - 'ե' => 'Ե', - 'զ' => 'Զ', - 'է' => 'Է', - 'ը' => 'Ը', - 'թ' => 'Թ', - 'ժ' => 'Ժ', - 'ի' => 'Ի', - 'լ' => 'Լ', - 'խ' => 'Խ', - 'ծ' => 'Ծ', - 'կ' => 'Կ', - 'հ' => 'Հ', - 'ձ' => 'Ձ', - 'ղ' => 'Ղ', - 'ճ' => 'Ճ', - 'մ' => 'Մ', - 'յ' => 'Յ', - 'ն' => 'Ն', - 'շ' => 'Շ', - 'ո' => 'Ո', - 'չ' => 'Չ', - 'պ' => 'Պ', - 'ջ' => 'Ջ', - 'ռ' => 'Ռ', - 'ս' => 'Ս', - 'վ' => 'Վ', - 'տ' => 'Տ', - 'ր' => 'Ր', - 'ց' => 'Ց', - 'ւ' => 'Ւ', - 'փ' => 'Փ', - 'ք' => 'Ք', - 'օ' => 'Օ', - 'ֆ' => 'Ֆ', - 'ა' => 'Ა', - 'ბ' => 'Ბ', - 'გ' => 'Გ', - 'დ' => 'Დ', - 'ე' => 'Ე', - 'ვ' => 'Ვ', - 'ზ' => 'Ზ', - 'თ' => 'Თ', - 'ი' => 'Ი', - 'კ' => 'Კ', - 'ლ' => 'Ლ', - 'მ' => 'Მ', - 'ნ' => 'Ნ', - 'ო' => 'Ო', - 'პ' => 'Პ', - 'ჟ' => 'Ჟ', - 'რ' => 'Რ', - 'ს' => 'Ს', - 'ტ' => 'Ტ', - 'უ' => 'Უ', - 'ფ' => 'Ფ', - 'ქ' => 'Ქ', - 'ღ' => 'Ღ', - 'ყ' => 'Ყ', - 'შ' => 'Შ', - 'ჩ' => 'Ჩ', - 'ც' => 'Ც', - 'ძ' => 'Ძ', - 'წ' => 'Წ', - 'ჭ' => 'Ჭ', - 'ხ' => 'Ხ', - 'ჯ' => 'Ჯ', - 'ჰ' => 'Ჰ', - 'ჱ' => 'Ჱ', - 'ჲ' => 'Ჲ', - 'ჳ' => 'Ჳ', - 'ჴ' => 'Ჴ', - 'ჵ' => 'Ჵ', - 'ჶ' => 'Ჶ', - 'ჷ' => 'Ჷ', - 'ჸ' => 'Ჸ', - 'ჹ' => 'Ჹ', - 'ჺ' => 'Ჺ', - 'ჽ' => 'Ჽ', - 'ჾ' => 'Ჾ', - 'ჿ' => 'Ჿ', - 'ᏸ' => 'Ᏸ', - 'ᏹ' => 'Ᏹ', - 'ᏺ' => 'Ᏺ', - 'ᏻ' => 'Ᏻ', - 'ᏼ' => 'Ᏼ', - 'ᏽ' => 'Ᏽ', - 'ᲀ' => 'В', - 'ᲁ' => 'Д', - 'ᲂ' => 'О', - 'ᲃ' => 'С', - 'ᲄ' => 'Т', - 'ᲅ' => 'Т', - 'ᲆ' => 'Ъ', - 'ᲇ' => 'Ѣ', - 'ᲈ' => 'Ꙋ', - 'ᵹ' => 'Ᵹ', - 'ᵽ' => 'Ᵽ', - 'ᶎ' => 'Ᶎ', - 'ḁ' => 'Ḁ', - 'ḃ' => 'Ḃ', - 'ḅ' => 'Ḅ', - 'ḇ' => 'Ḇ', - 'ḉ' => 'Ḉ', - 'ḋ' => 'Ḋ', - 'ḍ' => 'Ḍ', - 'ḏ' => 'Ḏ', - 'ḑ' => 'Ḑ', - 'ḓ' => 'Ḓ', - 'ḕ' => 'Ḕ', - 'ḗ' => 'Ḗ', - 'ḙ' => 'Ḙ', - 'ḛ' => 'Ḛ', - 'ḝ' => 'Ḝ', - 'ḟ' => 'Ḟ', - 'ḡ' => 'Ḡ', - 'ḣ' => 'Ḣ', - 'ḥ' => 'Ḥ', - 'ḧ' => 'Ḧ', - 'ḩ' => 'Ḩ', - 'ḫ' => 'Ḫ', - 'ḭ' => 'Ḭ', - 'ḯ' => 'Ḯ', - 'ḱ' => 'Ḱ', - 'ḳ' => 'Ḳ', - 'ḵ' => 'Ḵ', - 'ḷ' => 'Ḷ', - 'ḹ' => 'Ḹ', - 'ḻ' => 'Ḻ', - 'ḽ' => 'Ḽ', - 'ḿ' => 'Ḿ', - 'ṁ' => 'Ṁ', - 'ṃ' => 'Ṃ', - 'ṅ' => 'Ṅ', - 'ṇ' => 'Ṇ', - 'ṉ' => 'Ṉ', - 'ṋ' => 'Ṋ', - 'ṍ' => 'Ṍ', - 'ṏ' => 'Ṏ', - 'ṑ' => 'Ṑ', - 'ṓ' => 'Ṓ', - 'ṕ' => 'Ṕ', - 'ṗ' => 'Ṗ', - 'ṙ' => 'Ṙ', - 'ṛ' => 'Ṛ', - 'ṝ' => 'Ṝ', - 'ṟ' => 'Ṟ', - 'ṡ' => 'Ṡ', - 'ṣ' => 'Ṣ', - 'ṥ' => 'Ṥ', - 'ṧ' => 'Ṧ', - 'ṩ' => 'Ṩ', - 'ṫ' => 'Ṫ', - 'ṭ' => 'Ṭ', - 'ṯ' => 'Ṯ', - 'ṱ' => 'Ṱ', - 'ṳ' => 'Ṳ', - 'ṵ' => 'Ṵ', - 'ṷ' => 'Ṷ', - 'ṹ' => 'Ṹ', - 'ṻ' => 'Ṻ', - 'ṽ' => 'Ṽ', - 'ṿ' => 'Ṿ', - 'ẁ' => 'Ẁ', - 'ẃ' => 'Ẃ', - 'ẅ' => 'Ẅ', - 'ẇ' => 'Ẇ', - 'ẉ' => 'Ẉ', - 'ẋ' => 'Ẋ', - 'ẍ' => 'Ẍ', - 'ẏ' => 'Ẏ', - 'ẑ' => 'Ẑ', - 'ẓ' => 'Ẓ', - 'ẕ' => 'Ẕ', - 'ẛ' => 'Ṡ', - 'ạ' => 'Ạ', - 'ả' => 'Ả', - 'ấ' => 'Ấ', - 'ầ' => 'Ầ', - 'ẩ' => 'Ẩ', - 'ẫ' => 'Ẫ', - 'ậ' => 'Ậ', - 'ắ' => 'Ắ', - 'ằ' => 'Ằ', - 'ẳ' => 'Ẳ', - 'ẵ' => 'Ẵ', - 'ặ' => 'Ặ', - 'ẹ' => 'Ẹ', - 'ẻ' => 'Ẻ', - 'ẽ' => 'Ẽ', - 'ế' => 'Ế', - 'ề' => 'Ề', - 'ể' => 'Ể', - 'ễ' => 'Ễ', - 'ệ' => 'Ệ', - 'ỉ' => 'Ỉ', - 'ị' => 'Ị', - 'ọ' => 'Ọ', - 'ỏ' => 'Ỏ', - 'ố' => 'Ố', - 'ồ' => 'Ồ', - 'ổ' => 'Ổ', - 'ỗ' => 'Ỗ', - 'ộ' => 'Ộ', - 'ớ' => 'Ớ', - 'ờ' => 'Ờ', - 'ở' => 'Ở', - 'ỡ' => 'Ỡ', - 'ợ' => 'Ợ', - 'ụ' => 'Ụ', - 'ủ' => 'Ủ', - 'ứ' => 'Ứ', - 'ừ' => 'Ừ', - 'ử' => 'Ử', - 'ữ' => 'Ữ', - 'ự' => 'Ự', - 'ỳ' => 'Ỳ', - 'ỵ' => 'Ỵ', - 'ỷ' => 'Ỷ', - 'ỹ' => 'Ỹ', - 'ỻ' => 'Ỻ', - 'ỽ' => 'Ỽ', - 'ỿ' => 'Ỿ', - 'ἀ' => 'Ἀ', - 'ἁ' => 'Ἁ', - 'ἂ' => 'Ἂ', - 'ἃ' => 'Ἃ', - 'ἄ' => 'Ἄ', - 'ἅ' => 'Ἅ', - 'ἆ' => 'Ἆ', - 'ἇ' => 'Ἇ', - 'ἐ' => 'Ἐ', - 'ἑ' => 'Ἑ', - 'ἒ' => 'Ἒ', - 'ἓ' => 'Ἓ', - 'ἔ' => 'Ἔ', - 'ἕ' => 'Ἕ', - 'ἠ' => 'Ἠ', - 'ἡ' => 'Ἡ', - 'ἢ' => 'Ἢ', - 'ἣ' => 'Ἣ', - 'ἤ' => 'Ἤ', - 'ἥ' => 'Ἥ', - 'ἦ' => 'Ἦ', - 'ἧ' => 'Ἧ', - 'ἰ' => 'Ἰ', - 'ἱ' => 'Ἱ', - 'ἲ' => 'Ἲ', - 'ἳ' => 'Ἳ', - 'ἴ' => 'Ἴ', - 'ἵ' => 'Ἵ', - 'ἶ' => 'Ἶ', - 'ἷ' => 'Ἷ', - 'ὀ' => 'Ὀ', - 'ὁ' => 'Ὁ', - 'ὂ' => 'Ὂ', - 'ὃ' => 'Ὃ', - 'ὄ' => 'Ὄ', - 'ὅ' => 'Ὅ', - 'ὑ' => 'Ὑ', - 'ὓ' => 'Ὓ', - 'ὕ' => 'Ὕ', - 'ὗ' => 'Ὗ', - 'ὠ' => 'Ὠ', - 'ὡ' => 'Ὡ', - 'ὢ' => 'Ὢ', - 'ὣ' => 'Ὣ', - 'ὤ' => 'Ὤ', - 'ὥ' => 'Ὥ', - 'ὦ' => 'Ὦ', - 'ὧ' => 'Ὧ', - 'ὰ' => 'Ὰ', - 'ά' => 'Ά', - 'ὲ' => 'Ὲ', - 'έ' => 'Έ', - 'ὴ' => 'Ὴ', - 'ή' => 'Ή', - 'ὶ' => 'Ὶ', - 'ί' => 'Ί', - 'ὸ' => 'Ὸ', - 'ό' => 'Ό', - 'ὺ' => 'Ὺ', - 'ύ' => 'Ύ', - 'ὼ' => 'Ὼ', - 'ώ' => 'Ώ', - 'ᾀ' => 'ἈΙ', - 'ᾁ' => 'ἉΙ', - 'ᾂ' => 'ἊΙ', - 'ᾃ' => 'ἋΙ', - 'ᾄ' => 'ἌΙ', - 'ᾅ' => 'ἍΙ', - 'ᾆ' => 'ἎΙ', - 'ᾇ' => 'ἏΙ', - 'ᾐ' => 'ἨΙ', - 'ᾑ' => 'ἩΙ', - 'ᾒ' => 'ἪΙ', - 'ᾓ' => 'ἫΙ', - 'ᾔ' => 'ἬΙ', - 'ᾕ' => 'ἭΙ', - 'ᾖ' => 'ἮΙ', - 'ᾗ' => 'ἯΙ', - 'ᾠ' => 'ὨΙ', - 'ᾡ' => 'ὩΙ', - 'ᾢ' => 'ὪΙ', - 'ᾣ' => 'ὫΙ', - 'ᾤ' => 'ὬΙ', - 'ᾥ' => 'ὭΙ', - 'ᾦ' => 'ὮΙ', - 'ᾧ' => 'ὯΙ', - 'ᾰ' => 'Ᾰ', - 'ᾱ' => 'Ᾱ', - 'ᾳ' => 'ΑΙ', - 'ι' => 'Ι', - 'ῃ' => 'ΗΙ', - 'ῐ' => 'Ῐ', - 'ῑ' => 'Ῑ', - 'ῠ' => 'Ῠ', - 'ῡ' => 'Ῡ', - 'ῥ' => 'Ῥ', - 'ῳ' => 'ΩΙ', - 'ⅎ' => 'Ⅎ', - 'ⅰ' => 'Ⅰ', - 'ⅱ' => 'Ⅱ', - 'ⅲ' => 'Ⅲ', - 'ⅳ' => 'Ⅳ', - 'ⅴ' => 'Ⅴ', - 'ⅵ' => 'Ⅵ', - 'ⅶ' => 'Ⅶ', - 'ⅷ' => 'Ⅷ', - 'ⅸ' => 'Ⅸ', - 'ⅹ' => 'Ⅹ', - 'ⅺ' => 'Ⅺ', - 'ⅻ' => 'Ⅻ', - 'ⅼ' => 'Ⅼ', - 'ⅽ' => 'Ⅽ', - 'ⅾ' => 'Ⅾ', - 'ⅿ' => 'Ⅿ', - 'ↄ' => 'Ↄ', - 'ⓐ' => 'Ⓐ', - 'ⓑ' => 'Ⓑ', - 'ⓒ' => 'Ⓒ', - 'ⓓ' => 'Ⓓ', - 'ⓔ' => 'Ⓔ', - 'ⓕ' => 'Ⓕ', - 'ⓖ' => 'Ⓖ', - 'ⓗ' => 'Ⓗ', - 'ⓘ' => 'Ⓘ', - 'ⓙ' => 'Ⓙ', - 'ⓚ' => 'Ⓚ', - 'ⓛ' => 'Ⓛ', - 'ⓜ' => 'Ⓜ', - 'ⓝ' => 'Ⓝ', - 'ⓞ' => 'Ⓞ', - 'ⓟ' => 'Ⓟ', - 'ⓠ' => 'Ⓠ', - 'ⓡ' => 'Ⓡ', - 'ⓢ' => 'Ⓢ', - 'ⓣ' => 'Ⓣ', - 'ⓤ' => 'Ⓤ', - 'ⓥ' => 'Ⓥ', - 'ⓦ' => 'Ⓦ', - 'ⓧ' => 'Ⓧ', - 'ⓨ' => 'Ⓨ', - 'ⓩ' => 'Ⓩ', - 'ⰰ' => 'Ⰰ', - 'ⰱ' => 'Ⰱ', - 'ⰲ' => 'Ⰲ', - 'ⰳ' => 'Ⰳ', - 'ⰴ' => 'Ⰴ', - 'ⰵ' => 'Ⰵ', - 'ⰶ' => 'Ⰶ', - 'ⰷ' => 'Ⰷ', - 'ⰸ' => 'Ⰸ', - 'ⰹ' => 'Ⰹ', - 'ⰺ' => 'Ⰺ', - 'ⰻ' => 'Ⰻ', - 'ⰼ' => 'Ⰼ', - 'ⰽ' => 'Ⰽ', - 'ⰾ' => 'Ⰾ', - 'ⰿ' => 'Ⰿ', - 'ⱀ' => 'Ⱀ', - 'ⱁ' => 'Ⱁ', - 'ⱂ' => 'Ⱂ', - 'ⱃ' => 'Ⱃ', - 'ⱄ' => 'Ⱄ', - 'ⱅ' => 'Ⱅ', - 'ⱆ' => 'Ⱆ', - 'ⱇ' => 'Ⱇ', - 'ⱈ' => 'Ⱈ', - 'ⱉ' => 'Ⱉ', - 'ⱊ' => 'Ⱊ', - 'ⱋ' => 'Ⱋ', - 'ⱌ' => 'Ⱌ', - 'ⱍ' => 'Ⱍ', - 'ⱎ' => 'Ⱎ', - 'ⱏ' => 'Ⱏ', - 'ⱐ' => 'Ⱐ', - 'ⱑ' => 'Ⱑ', - 'ⱒ' => 'Ⱒ', - 'ⱓ' => 'Ⱓ', - 'ⱔ' => 'Ⱔ', - 'ⱕ' => 'Ⱕ', - 'ⱖ' => 'Ⱖ', - 'ⱗ' => 'Ⱗ', - 'ⱘ' => 'Ⱘ', - 'ⱙ' => 'Ⱙ', - 'ⱚ' => 'Ⱚ', - 'ⱛ' => 'Ⱛ', - 'ⱜ' => 'Ⱜ', - 'ⱝ' => 'Ⱝ', - 'ⱞ' => 'Ⱞ', - 'ⱡ' => 'Ⱡ', - 'ⱥ' => 'Ⱥ', - 'ⱦ' => 'Ⱦ', - 'ⱨ' => 'Ⱨ', - 'ⱪ' => 'Ⱪ', - 'ⱬ' => 'Ⱬ', - 'ⱳ' => 'Ⱳ', - 'ⱶ' => 'Ⱶ', - 'ⲁ' => 'Ⲁ', - 'ⲃ' => 'Ⲃ', - 'ⲅ' => 'Ⲅ', - 'ⲇ' => 'Ⲇ', - 'ⲉ' => 'Ⲉ', - 'ⲋ' => 'Ⲋ', - 'ⲍ' => 'Ⲍ', - 'ⲏ' => 'Ⲏ', - 'ⲑ' => 'Ⲑ', - 'ⲓ' => 'Ⲓ', - 'ⲕ' => 'Ⲕ', - 'ⲗ' => 'Ⲗ', - 'ⲙ' => 'Ⲙ', - 'ⲛ' => 'Ⲛ', - 'ⲝ' => 'Ⲝ', - 'ⲟ' => 'Ⲟ', - 'ⲡ' => 'Ⲡ', - 'ⲣ' => 'Ⲣ', - 'ⲥ' => 'Ⲥ', - 'ⲧ' => 'Ⲧ', - 'ⲩ' => 'Ⲩ', - 'ⲫ' => 'Ⲫ', - 'ⲭ' => 'Ⲭ', - 'ⲯ' => 'Ⲯ', - 'ⲱ' => 'Ⲱ', - 'ⲳ' => 'Ⲳ', - 'ⲵ' => 'Ⲵ', - 'ⲷ' => 'Ⲷ', - 'ⲹ' => 'Ⲹ', - 'ⲻ' => 'Ⲻ', - 'ⲽ' => 'Ⲽ', - 'ⲿ' => 'Ⲿ', - 'ⳁ' => 'Ⳁ', - 'ⳃ' => 'Ⳃ', - 'ⳅ' => 'Ⳅ', - 'ⳇ' => 'Ⳇ', - 'ⳉ' => 'Ⳉ', - 'ⳋ' => 'Ⳋ', - 'ⳍ' => 'Ⳍ', - 'ⳏ' => 'Ⳏ', - 'ⳑ' => 'Ⳑ', - 'ⳓ' => 'Ⳓ', - 'ⳕ' => 'Ⳕ', - 'ⳗ' => 'Ⳗ', - 'ⳙ' => 'Ⳙ', - 'ⳛ' => 'Ⳛ', - 'ⳝ' => 'Ⳝ', - 'ⳟ' => 'Ⳟ', - 'ⳡ' => 'Ⳡ', - 'ⳣ' => 'Ⳣ', - 'ⳬ' => 'Ⳬ', - 'ⳮ' => 'Ⳮ', - 'ⳳ' => 'Ⳳ', - 'ⴀ' => 'Ⴀ', - 'ⴁ' => 'Ⴁ', - 'ⴂ' => 'Ⴂ', - 'ⴃ' => 'Ⴃ', - 'ⴄ' => 'Ⴄ', - 'ⴅ' => 'Ⴅ', - 'ⴆ' => 'Ⴆ', - 'ⴇ' => 'Ⴇ', - 'ⴈ' => 'Ⴈ', - 'ⴉ' => 'Ⴉ', - 'ⴊ' => 'Ⴊ', - 'ⴋ' => 'Ⴋ', - 'ⴌ' => 'Ⴌ', - 'ⴍ' => 'Ⴍ', - 'ⴎ' => 'Ⴎ', - 'ⴏ' => 'Ⴏ', - 'ⴐ' => 'Ⴐ', - 'ⴑ' => 'Ⴑ', - 'ⴒ' => 'Ⴒ', - 'ⴓ' => 'Ⴓ', - 'ⴔ' => 'Ⴔ', - 'ⴕ' => 'Ⴕ', - 'ⴖ' => 'Ⴖ', - 'ⴗ' => 'Ⴗ', - 'ⴘ' => 'Ⴘ', - 'ⴙ' => 'Ⴙ', - 'ⴚ' => 'Ⴚ', - 'ⴛ' => 'Ⴛ', - 'ⴜ' => 'Ⴜ', - 'ⴝ' => 'Ⴝ', - 'ⴞ' => 'Ⴞ', - 'ⴟ' => 'Ⴟ', - 'ⴠ' => 'Ⴠ', - 'ⴡ' => 'Ⴡ', - 'ⴢ' => 'Ⴢ', - 'ⴣ' => 'Ⴣ', - 'ⴤ' => 'Ⴤ', - 'ⴥ' => 'Ⴥ', - 'ⴧ' => 'Ⴧ', - 'ⴭ' => 'Ⴭ', - 'ꙁ' => 'Ꙁ', - 'ꙃ' => 'Ꙃ', - 'ꙅ' => 'Ꙅ', - 'ꙇ' => 'Ꙇ', - 'ꙉ' => 'Ꙉ', - 'ꙋ' => 'Ꙋ', - 'ꙍ' => 'Ꙍ', - 'ꙏ' => 'Ꙏ', - 'ꙑ' => 'Ꙑ', - 'ꙓ' => 'Ꙓ', - 'ꙕ' => 'Ꙕ', - 'ꙗ' => 'Ꙗ', - 'ꙙ' => 'Ꙙ', - 'ꙛ' => 'Ꙛ', - 'ꙝ' => 'Ꙝ', - 'ꙟ' => 'Ꙟ', - 'ꙡ' => 'Ꙡ', - 'ꙣ' => 'Ꙣ', - 'ꙥ' => 'Ꙥ', - 'ꙧ' => 'Ꙧ', - 'ꙩ' => 'Ꙩ', - 'ꙫ' => 'Ꙫ', - 'ꙭ' => 'Ꙭ', - 'ꚁ' => 'Ꚁ', - 'ꚃ' => 'Ꚃ', - 'ꚅ' => 'Ꚅ', - 'ꚇ' => 'Ꚇ', - 'ꚉ' => 'Ꚉ', - 'ꚋ' => 'Ꚋ', - 'ꚍ' => 'Ꚍ', - 'ꚏ' => 'Ꚏ', - 'ꚑ' => 'Ꚑ', - 'ꚓ' => 'Ꚓ', - 'ꚕ' => 'Ꚕ', - 'ꚗ' => 'Ꚗ', - 'ꚙ' => 'Ꚙ', - 'ꚛ' => 'Ꚛ', - 'ꜣ' => 'Ꜣ', - 'ꜥ' => 'Ꜥ', - 'ꜧ' => 'Ꜧ', - 'ꜩ' => 'Ꜩ', - 'ꜫ' => 'Ꜫ', - 'ꜭ' => 'Ꜭ', - 'ꜯ' => 'Ꜯ', - 'ꜳ' => 'Ꜳ', - 'ꜵ' => 'Ꜵ', - 'ꜷ' => 'Ꜷ', - 'ꜹ' => 'Ꜹ', - 'ꜻ' => 'Ꜻ', - 'ꜽ' => 'Ꜽ', - 'ꜿ' => 'Ꜿ', - 'ꝁ' => 'Ꝁ', - 'ꝃ' => 'Ꝃ', - 'ꝅ' => 'Ꝅ', - 'ꝇ' => 'Ꝇ', - 'ꝉ' => 'Ꝉ', - 'ꝋ' => 'Ꝋ', - 'ꝍ' => 'Ꝍ', - 'ꝏ' => 'Ꝏ', - 'ꝑ' => 'Ꝑ', - 'ꝓ' => 'Ꝓ', - 'ꝕ' => 'Ꝕ', - 'ꝗ' => 'Ꝗ', - 'ꝙ' => 'Ꝙ', - 'ꝛ' => 'Ꝛ', - 'ꝝ' => 'Ꝝ', - 'ꝟ' => 'Ꝟ', - 'ꝡ' => 'Ꝡ', - 'ꝣ' => 'Ꝣ', - 'ꝥ' => 'Ꝥ', - 'ꝧ' => 'Ꝧ', - 'ꝩ' => 'Ꝩ', - 'ꝫ' => 'Ꝫ', - 'ꝭ' => 'Ꝭ', - 'ꝯ' => 'Ꝯ', - 'ꝺ' => 'Ꝺ', - 'ꝼ' => 'Ꝼ', - 'ꝿ' => 'Ꝿ', - 'ꞁ' => 'Ꞁ', - 'ꞃ' => 'Ꞃ', - 'ꞅ' => 'Ꞅ', - 'ꞇ' => 'Ꞇ', - 'ꞌ' => 'Ꞌ', - 'ꞑ' => 'Ꞑ', - 'ꞓ' => 'Ꞓ', - 'ꞔ' => 'Ꞔ', - 'ꞗ' => 'Ꞗ', - 'ꞙ' => 'Ꞙ', - 'ꞛ' => 'Ꞛ', - 'ꞝ' => 'Ꞝ', - 'ꞟ' => 'Ꞟ', - 'ꞡ' => 'Ꞡ', - 'ꞣ' => 'Ꞣ', - 'ꞥ' => 'Ꞥ', - 'ꞧ' => 'Ꞧ', - 'ꞩ' => 'Ꞩ', - 'ꞵ' => 'Ꞵ', - 'ꞷ' => 'Ꞷ', - 'ꞹ' => 'Ꞹ', - 'ꞻ' => 'Ꞻ', - 'ꞽ' => 'Ꞽ', - 'ꞿ' => 'Ꞿ', - 'ꟃ' => 'Ꟃ', - 'ꟈ' => 'Ꟈ', - 'ꟊ' => 'Ꟊ', - 'ꟶ' => 'Ꟶ', - 'ꭓ' => 'Ꭓ', - 'ꭰ' => 'Ꭰ', - 'ꭱ' => 'Ꭱ', - 'ꭲ' => 'Ꭲ', - 'ꭳ' => 'Ꭳ', - 'ꭴ' => 'Ꭴ', - 'ꭵ' => 'Ꭵ', - 'ꭶ' => 'Ꭶ', - 'ꭷ' => 'Ꭷ', - 'ꭸ' => 'Ꭸ', - 'ꭹ' => 'Ꭹ', - 'ꭺ' => 'Ꭺ', - 'ꭻ' => 'Ꭻ', - 'ꭼ' => 'Ꭼ', - 'ꭽ' => 'Ꭽ', - 'ꭾ' => 'Ꭾ', - 'ꭿ' => 'Ꭿ', - 'ꮀ' => 'Ꮀ', - 'ꮁ' => 'Ꮁ', - 'ꮂ' => 'Ꮂ', - 'ꮃ' => 'Ꮃ', - 'ꮄ' => 'Ꮄ', - 'ꮅ' => 'Ꮅ', - 'ꮆ' => 'Ꮆ', - 'ꮇ' => 'Ꮇ', - 'ꮈ' => 'Ꮈ', - 'ꮉ' => 'Ꮉ', - 'ꮊ' => 'Ꮊ', - 'ꮋ' => 'Ꮋ', - 'ꮌ' => 'Ꮌ', - 'ꮍ' => 'Ꮍ', - 'ꮎ' => 'Ꮎ', - 'ꮏ' => 'Ꮏ', - 'ꮐ' => 'Ꮐ', - 'ꮑ' => 'Ꮑ', - 'ꮒ' => 'Ꮒ', - 'ꮓ' => 'Ꮓ', - 'ꮔ' => 'Ꮔ', - 'ꮕ' => 'Ꮕ', - 'ꮖ' => 'Ꮖ', - 'ꮗ' => 'Ꮗ', - 'ꮘ' => 'Ꮘ', - 'ꮙ' => 'Ꮙ', - 'ꮚ' => 'Ꮚ', - 'ꮛ' => 'Ꮛ', - 'ꮜ' => 'Ꮜ', - 'ꮝ' => 'Ꮝ', - 'ꮞ' => 'Ꮞ', - 'ꮟ' => 'Ꮟ', - 'ꮠ' => 'Ꮠ', - 'ꮡ' => 'Ꮡ', - 'ꮢ' => 'Ꮢ', - 'ꮣ' => 'Ꮣ', - 'ꮤ' => 'Ꮤ', - 'ꮥ' => 'Ꮥ', - 'ꮦ' => 'Ꮦ', - 'ꮧ' => 'Ꮧ', - 'ꮨ' => 'Ꮨ', - 'ꮩ' => 'Ꮩ', - 'ꮪ' => 'Ꮪ', - 'ꮫ' => 'Ꮫ', - 'ꮬ' => 'Ꮬ', - 'ꮭ' => 'Ꮭ', - 'ꮮ' => 'Ꮮ', - 'ꮯ' => 'Ꮯ', - 'ꮰ' => 'Ꮰ', - 'ꮱ' => 'Ꮱ', - 'ꮲ' => 'Ꮲ', - 'ꮳ' => 'Ꮳ', - 'ꮴ' => 'Ꮴ', - 'ꮵ' => 'Ꮵ', - 'ꮶ' => 'Ꮶ', - 'ꮷ' => 'Ꮷ', - 'ꮸ' => 'Ꮸ', - 'ꮹ' => 'Ꮹ', - 'ꮺ' => 'Ꮺ', - 'ꮻ' => 'Ꮻ', - 'ꮼ' => 'Ꮼ', - 'ꮽ' => 'Ꮽ', - 'ꮾ' => 'Ꮾ', - 'ꮿ' => 'Ꮿ', - 'a' => 'A', - 'b' => 'B', - 'c' => 'C', - 'd' => 'D', - 'e' => 'E', - 'f' => 'F', - 'g' => 'G', - 'h' => 'H', - 'i' => 'I', - 'j' => 'J', - 'k' => 'K', - 'l' => 'L', - 'm' => 'M', - 'n' => 'N', - 'o' => 'O', - 'p' => 'P', - 'q' => 'Q', - 'r' => 'R', - 's' => 'S', - 't' => 'T', - 'u' => 'U', - 'v' => 'V', - 'w' => 'W', - 'x' => 'X', - 'y' => 'Y', - 'z' => 'Z', - '𐐨' => '𐐀', - '𐐩' => '𐐁', - '𐐪' => '𐐂', - '𐐫' => '𐐃', - '𐐬' => '𐐄', - '𐐭' => '𐐅', - '𐐮' => '𐐆', - '𐐯' => '𐐇', - '𐐰' => '𐐈', - '𐐱' => '𐐉', - '𐐲' => '𐐊', - '𐐳' => '𐐋', - '𐐴' => '𐐌', - '𐐵' => '𐐍', - '𐐶' => '𐐎', - '𐐷' => '𐐏', - '𐐸' => '𐐐', - '𐐹' => '𐐑', - '𐐺' => '𐐒', - '𐐻' => '𐐓', - '𐐼' => '𐐔', - '𐐽' => '𐐕', - '𐐾' => '𐐖', - '𐐿' => '𐐗', - '𐑀' => '𐐘', - '𐑁' => '𐐙', - '𐑂' => '𐐚', - '𐑃' => '𐐛', - '𐑄' => '𐐜', - '𐑅' => '𐐝', - '𐑆' => '𐐞', - '𐑇' => '𐐟', - '𐑈' => '𐐠', - '𐑉' => '𐐡', - '𐑊' => '𐐢', - '𐑋' => '𐐣', - '𐑌' => '𐐤', - '𐑍' => '𐐥', - '𐑎' => '𐐦', - '𐑏' => '𐐧', - '𐓘' => '𐒰', - '𐓙' => '𐒱', - '𐓚' => '𐒲', - '𐓛' => '𐒳', - '𐓜' => '𐒴', - '𐓝' => '𐒵', - '𐓞' => '𐒶', - '𐓟' => '𐒷', - '𐓠' => '𐒸', - '𐓡' => '𐒹', - '𐓢' => '𐒺', - '𐓣' => '𐒻', - '𐓤' => '𐒼', - '𐓥' => '𐒽', - '𐓦' => '𐒾', - '𐓧' => '𐒿', - '𐓨' => '𐓀', - '𐓩' => '𐓁', - '𐓪' => '𐓂', - '𐓫' => '𐓃', - '𐓬' => '𐓄', - '𐓭' => '𐓅', - '𐓮' => '𐓆', - '𐓯' => '𐓇', - '𐓰' => '𐓈', - '𐓱' => '𐓉', - '𐓲' => '𐓊', - '𐓳' => '𐓋', - '𐓴' => '𐓌', - '𐓵' => '𐓍', - '𐓶' => '𐓎', - '𐓷' => '𐓏', - '𐓸' => '𐓐', - '𐓹' => '𐓑', - '𐓺' => '𐓒', - '𐓻' => '𐓓', - '𐳀' => '𐲀', - '𐳁' => '𐲁', - '𐳂' => '𐲂', - '𐳃' => '𐲃', - '𐳄' => '𐲄', - '𐳅' => '𐲅', - '𐳆' => '𐲆', - '𐳇' => '𐲇', - '𐳈' => '𐲈', - '𐳉' => '𐲉', - '𐳊' => '𐲊', - '𐳋' => '𐲋', - '𐳌' => '𐲌', - '𐳍' => '𐲍', - '𐳎' => '𐲎', - '𐳏' => '𐲏', - '𐳐' => '𐲐', - '𐳑' => '𐲑', - '𐳒' => '𐲒', - '𐳓' => '𐲓', - '𐳔' => '𐲔', - '𐳕' => '𐲕', - '𐳖' => '𐲖', - '𐳗' => '𐲗', - '𐳘' => '𐲘', - '𐳙' => '𐲙', - '𐳚' => '𐲚', - '𐳛' => '𐲛', - '𐳜' => '𐲜', - '𐳝' => '𐲝', - '𐳞' => '𐲞', - '𐳟' => '𐲟', - '𐳠' => '𐲠', - '𐳡' => '𐲡', - '𐳢' => '𐲢', - '𐳣' => '𐲣', - '𐳤' => '𐲤', - '𐳥' => '𐲥', - '𐳦' => '𐲦', - '𐳧' => '𐲧', - '𐳨' => '𐲨', - '𐳩' => '𐲩', - '𐳪' => '𐲪', - '𐳫' => '𐲫', - '𐳬' => '𐲬', - '𐳭' => '𐲭', - '𐳮' => '𐲮', - '𐳯' => '𐲯', - '𐳰' => '𐲰', - '𐳱' => '𐲱', - '𐳲' => '𐲲', - '𑣀' => '𑢠', - '𑣁' => '𑢡', - '𑣂' => '𑢢', - '𑣃' => '𑢣', - '𑣄' => '𑢤', - '𑣅' => '𑢥', - '𑣆' => '𑢦', - '𑣇' => '𑢧', - '𑣈' => '𑢨', - '𑣉' => '𑢩', - '𑣊' => '𑢪', - '𑣋' => '𑢫', - '𑣌' => '𑢬', - '𑣍' => '𑢭', - '𑣎' => '𑢮', - '𑣏' => '𑢯', - '𑣐' => '𑢰', - '𑣑' => '𑢱', - '𑣒' => '𑢲', - '𑣓' => '𑢳', - '𑣔' => '𑢴', - '𑣕' => '𑢵', - '𑣖' => '𑢶', - '𑣗' => '𑢷', - '𑣘' => '𑢸', - '𑣙' => '𑢹', - '𑣚' => '𑢺', - '𑣛' => '𑢻', - '𑣜' => '𑢼', - '𑣝' => '𑢽', - '𑣞' => '𑢾', - '𑣟' => '𑢿', - '𖹠' => '𖹀', - '𖹡' => '𖹁', - '𖹢' => '𖹂', - '𖹣' => '𖹃', - '𖹤' => '𖹄', - '𖹥' => '𖹅', - '𖹦' => '𖹆', - '𖹧' => '𖹇', - '𖹨' => '𖹈', - '𖹩' => '𖹉', - '𖹪' => '𖹊', - '𖹫' => '𖹋', - '𖹬' => '𖹌', - '𖹭' => '𖹍', - '𖹮' => '𖹎', - '𖹯' => '𖹏', - '𖹰' => '𖹐', - '𖹱' => '𖹑', - '𖹲' => '𖹒', - '𖹳' => '𖹓', - '𖹴' => '𖹔', - '𖹵' => '𖹕', - '𖹶' => '𖹖', - '𖹷' => '𖹗', - '𖹸' => '𖹘', - '𖹹' => '𖹙', - '𖹺' => '𖹚', - '𖹻' => '𖹛', - '𖹼' => '𖹜', - '𖹽' => '𖹝', - '𖹾' => '𖹞', - '𖹿' => '𖹟', - '𞤢' => '𞤀', - '𞤣' => '𞤁', - '𞤤' => '𞤂', - '𞤥' => '𞤃', - '𞤦' => '𞤄', - '𞤧' => '𞤅', - '𞤨' => '𞤆', - '𞤩' => '𞤇', - '𞤪' => '𞤈', - '𞤫' => '𞤉', - '𞤬' => '𞤊', - '𞤭' => '𞤋', - '𞤮' => '𞤌', - '𞤯' => '𞤍', - '𞤰' => '𞤎', - '𞤱' => '𞤏', - '𞤲' => '𞤐', - '𞤳' => '𞤑', - '𞤴' => '𞤒', - '𞤵' => '𞤓', - '𞤶' => '𞤔', - '𞤷' => '𞤕', - '𞤸' => '𞤖', - '𞤹' => '𞤗', - '𞤺' => '𞤘', - '𞤻' => '𞤙', - '𞤼' => '𞤚', - '𞤽' => '𞤛', - '𞤾' => '𞤜', - '𞤿' => '𞤝', - '𞥀' => '𞤞', - '𞥁' => '𞤟', - '𞥂' => '𞤠', - '𞥃' => '𞤡', - 'ß' => 'SS', - 'ff' => 'FF', - 'fi' => 'FI', - 'fl' => 'FL', - 'ffi' => 'FFI', - 'ffl' => 'FFL', - 'ſt' => 'ST', - 'st' => 'ST', - 'և' => 'ԵՒ', - 'ﬓ' => 'ՄՆ', - 'ﬔ' => 'ՄԵ', - 'ﬕ' => 'ՄԻ', - 'ﬖ' => 'ՎՆ', - 'ﬗ' => 'ՄԽ', - 'ʼn' => 'ʼN', - 'ΐ' => 'Ϊ́', - 'ΰ' => 'Ϋ́', - 'ǰ' => 'J̌', - 'ẖ' => 'H̱', - 'ẗ' => 'T̈', - 'ẘ' => 'W̊', - 'ẙ' => 'Y̊', - 'ẚ' => 'Aʾ', - 'ὐ' => 'Υ̓', - 'ὒ' => 'Υ̓̀', - 'ὔ' => 'Υ̓́', - 'ὖ' => 'Υ̓͂', - 'ᾶ' => 'Α͂', - 'ῆ' => 'Η͂', - 'ῒ' => 'Ϊ̀', - 'ΐ' => 'Ϊ́', - 'ῖ' => 'Ι͂', - 'ῗ' => 'Ϊ͂', - 'ῢ' => 'Ϋ̀', - 'ΰ' => 'Ϋ́', - 'ῤ' => 'Ρ̓', - 'ῦ' => 'Υ͂', - 'ῧ' => 'Ϋ͂', - 'ῶ' => 'Ω͂', - 'ᾈ' => 'ἈΙ', - 'ᾉ' => 'ἉΙ', - 'ᾊ' => 'ἊΙ', - 'ᾋ' => 'ἋΙ', - 'ᾌ' => 'ἌΙ', - 'ᾍ' => 'ἍΙ', - 'ᾎ' => 'ἎΙ', - 'ᾏ' => 'ἏΙ', - 'ᾘ' => 'ἨΙ', - 'ᾙ' => 'ἩΙ', - 'ᾚ' => 'ἪΙ', - 'ᾛ' => 'ἫΙ', - 'ᾜ' => 'ἬΙ', - 'ᾝ' => 'ἭΙ', - 'ᾞ' => 'ἮΙ', - 'ᾟ' => 'ἯΙ', - 'ᾨ' => 'ὨΙ', - 'ᾩ' => 'ὩΙ', - 'ᾪ' => 'ὪΙ', - 'ᾫ' => 'ὫΙ', - 'ᾬ' => 'ὬΙ', - 'ᾭ' => 'ὭΙ', - 'ᾮ' => 'ὮΙ', - 'ᾯ' => 'ὯΙ', - 'ᾼ' => 'ΑΙ', - 'ῌ' => 'ΗΙ', - 'ῼ' => 'ΩΙ', - 'ᾲ' => 'ᾺΙ', - 'ᾴ' => 'ΆΙ', - 'ῂ' => 'ῊΙ', - 'ῄ' => 'ΉΙ', - 'ῲ' => 'ῺΙ', - 'ῴ' => 'ΏΙ', - 'ᾷ' => 'Α͂Ι', - 'ῇ' => 'Η͂Ι', - 'ῷ' => 'Ω͂Ι', -); diff --git a/vendor/symfony/polyfill-mbstring/bootstrap.php b/vendor/symfony/polyfill-mbstring/bootstrap.php deleted file mode 100644 index ff51ae0..0000000 --- a/vendor/symfony/polyfill-mbstring/bootstrap.php +++ /dev/null @@ -1,172 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -use Symfony\Polyfill\Mbstring as p; - -if (\PHP_VERSION_ID >= 80000) { - return require __DIR__.'/bootstrap80.php'; -} - -if (!function_exists('mb_convert_encoding')) { - function mb_convert_encoding($string, $to_encoding, $from_encoding = null) { return p\Mbstring::mb_convert_encoding($string, $to_encoding, $from_encoding); } -} -if (!function_exists('mb_decode_mimeheader')) { - function mb_decode_mimeheader($string) { return p\Mbstring::mb_decode_mimeheader($string); } -} -if (!function_exists('mb_encode_mimeheader')) { - function mb_encode_mimeheader($string, $charset = null, $transfer_encoding = null, $newline = "\r\n", $indent = 0) { return p\Mbstring::mb_encode_mimeheader($string, $charset, $transfer_encoding, $newline, $indent); } -} -if (!function_exists('mb_decode_numericentity')) { - function mb_decode_numericentity($string, $map, $encoding = null) { return p\Mbstring::mb_decode_numericentity($string, $map, $encoding); } -} -if (!function_exists('mb_encode_numericentity')) { - function mb_encode_numericentity($string, $map, $encoding = null, $hex = false) { return p\Mbstring::mb_encode_numericentity($string, $map, $encoding, $hex); } -} -if (!function_exists('mb_convert_case')) { - function mb_convert_case($string, $mode, $encoding = null) { return p\Mbstring::mb_convert_case($string, $mode, $encoding); } -} -if (!function_exists('mb_internal_encoding')) { - function mb_internal_encoding($encoding = null) { return p\Mbstring::mb_internal_encoding($encoding); } -} -if (!function_exists('mb_language')) { - function mb_language($language = null) { return p\Mbstring::mb_language($language); } -} -if (!function_exists('mb_list_encodings')) { - function mb_list_encodings() { return p\Mbstring::mb_list_encodings(); } -} -if (!function_exists('mb_encoding_aliases')) { - function mb_encoding_aliases($encoding) { return p\Mbstring::mb_encoding_aliases($encoding); } -} -if (!function_exists('mb_check_encoding')) { - function mb_check_encoding($value = null, $encoding = null) { return p\Mbstring::mb_check_encoding($value, $encoding); } -} -if (!function_exists('mb_detect_encoding')) { - function mb_detect_encoding($string, $encodings = null, $strict = false) { return p\Mbstring::mb_detect_encoding($string, $encodings, $strict); } -} -if (!function_exists('mb_detect_order')) { - function mb_detect_order($encoding = null) { return p\Mbstring::mb_detect_order($encoding); } -} -if (!function_exists('mb_parse_str')) { - function mb_parse_str($string, &$result = []) { parse_str($string, $result); return (bool) $result; } -} -if (!function_exists('mb_strlen')) { - function mb_strlen($string, $encoding = null) { return p\Mbstring::mb_strlen($string, $encoding); } -} -if (!function_exists('mb_strpos')) { - function mb_strpos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_strpos($haystack, $needle, $offset, $encoding); } -} -if (!function_exists('mb_strtolower')) { - function mb_strtolower($string, $encoding = null) { return p\Mbstring::mb_strtolower($string, $encoding); } -} -if (!function_exists('mb_strtoupper')) { - function mb_strtoupper($string, $encoding = null) { return p\Mbstring::mb_strtoupper($string, $encoding); } -} -if (!function_exists('mb_substitute_character')) { - function mb_substitute_character($substitute_character = null) { return p\Mbstring::mb_substitute_character($substitute_character); } -} -if (!function_exists('mb_substr')) { - function mb_substr($string, $start, $length = 2147483647, $encoding = null) { return p\Mbstring::mb_substr($string, $start, $length, $encoding); } -} -if (!function_exists('mb_stripos')) { - function mb_stripos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_stripos($haystack, $needle, $offset, $encoding); } -} -if (!function_exists('mb_stristr')) { - function mb_stristr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstring::mb_stristr($haystack, $needle, $before_needle, $encoding); } -} -if (!function_exists('mb_strrchr')) { - function mb_strrchr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstring::mb_strrchr($haystack, $needle, $before_needle, $encoding); } -} -if (!function_exists('mb_strrichr')) { - function mb_strrichr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstring::mb_strrichr($haystack, $needle, $before_needle, $encoding); } -} -if (!function_exists('mb_strripos')) { - function mb_strripos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_strripos($haystack, $needle, $offset, $encoding); } -} -if (!function_exists('mb_strrpos')) { - function mb_strrpos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_strrpos($haystack, $needle, $offset, $encoding); } -} -if (!function_exists('mb_strstr')) { - function mb_strstr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstring::mb_strstr($haystack, $needle, $before_needle, $encoding); } -} -if (!function_exists('mb_get_info')) { - function mb_get_info($type = 'all') { return p\Mbstring::mb_get_info($type); } -} -if (!function_exists('mb_http_output')) { - function mb_http_output($encoding = null) { return p\Mbstring::mb_http_output($encoding); } -} -if (!function_exists('mb_strwidth')) { - function mb_strwidth($string, $encoding = null) { return p\Mbstring::mb_strwidth($string, $encoding); } -} -if (!function_exists('mb_substr_count')) { - function mb_substr_count($haystack, $needle, $encoding = null) { return p\Mbstring::mb_substr_count($haystack, $needle, $encoding); } -} -if (!function_exists('mb_output_handler')) { - function mb_output_handler($string, $status) { return p\Mbstring::mb_output_handler($string, $status); } -} -if (!function_exists('mb_http_input')) { - function mb_http_input($type = null) { return p\Mbstring::mb_http_input($type); } -} - -if (!function_exists('mb_convert_variables')) { - function mb_convert_variables($to_encoding, $from_encoding, &...$vars) { return p\Mbstring::mb_convert_variables($to_encoding, $from_encoding, ...$vars); } -} - -if (!function_exists('mb_ord')) { - function mb_ord($string, $encoding = null) { return p\Mbstring::mb_ord($string, $encoding); } -} -if (!function_exists('mb_chr')) { - function mb_chr($codepoint, $encoding = null) { return p\Mbstring::mb_chr($codepoint, $encoding); } -} -if (!function_exists('mb_scrub')) { - function mb_scrub($string, $encoding = null) { $encoding = null === $encoding ? mb_internal_encoding() : $encoding; return mb_convert_encoding($string, $encoding, $encoding); } -} -if (!function_exists('mb_str_split')) { - function mb_str_split($string, $length = 1, $encoding = null) { return p\Mbstring::mb_str_split($string, $length, $encoding); } -} - -if (!function_exists('mb_str_pad')) { - function mb_str_pad(string $string, int $length, string $pad_string = ' ', int $pad_type = STR_PAD_RIGHT, ?string $encoding = null): string { return p\Mbstring::mb_str_pad($string, $length, $pad_string, $pad_type, $encoding); } -} - -if (!function_exists('mb_ucfirst')) { - function mb_ucfirst(string $string, ?string $encoding = null): string { return p\Mbstring::mb_ucfirst($string, $encoding); } -} - -if (!function_exists('mb_lcfirst')) { - function mb_lcfirst(string $string, ?string $encoding = null): string { return p\Mbstring::mb_lcfirst($string, $encoding); } -} - -if (!function_exists('mb_trim')) { - function mb_trim(string $string, ?string $characters = null, ?string $encoding = null): string { return p\Mbstring::mb_trim($string, $characters, $encoding); } -} - -if (!function_exists('mb_ltrim')) { - function mb_ltrim(string $string, ?string $characters = null, ?string $encoding = null): string { return p\Mbstring::mb_ltrim($string, $characters, $encoding); } -} - -if (!function_exists('mb_rtrim')) { - function mb_rtrim(string $string, ?string $characters = null, ?string $encoding = null): string { return p\Mbstring::mb_rtrim($string, $characters, $encoding); } -} - - -if (extension_loaded('mbstring')) { - return; -} - -if (!defined('MB_CASE_UPPER')) { - define('MB_CASE_UPPER', 0); -} -if (!defined('MB_CASE_LOWER')) { - define('MB_CASE_LOWER', 1); -} -if (!defined('MB_CASE_TITLE')) { - define('MB_CASE_TITLE', 2); -} diff --git a/vendor/symfony/polyfill-mbstring/bootstrap80.php b/vendor/symfony/polyfill-mbstring/bootstrap80.php deleted file mode 100644 index 5be7d20..0000000 --- a/vendor/symfony/polyfill-mbstring/bootstrap80.php +++ /dev/null @@ -1,167 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -use Symfony\Polyfill\Mbstring as p; - -if (!function_exists('mb_convert_encoding')) { - function mb_convert_encoding(array|string|null $string, ?string $to_encoding, array|string|null $from_encoding = null): array|string|false { return p\Mbstring::mb_convert_encoding($string ?? '', (string) $to_encoding, $from_encoding); } -} -if (!function_exists('mb_decode_mimeheader')) { - function mb_decode_mimeheader(?string $string): string { return p\Mbstring::mb_decode_mimeheader((string) $string); } -} -if (!function_exists('mb_encode_mimeheader')) { - function mb_encode_mimeheader(?string $string, ?string $charset = null, ?string $transfer_encoding = null, ?string $newline = "\r\n", ?int $indent = 0): string { return p\Mbstring::mb_encode_mimeheader((string) $string, $charset, $transfer_encoding, (string) $newline, (int) $indent); } -} -if (!function_exists('mb_decode_numericentity')) { - function mb_decode_numericentity(?string $string, array $map, ?string $encoding = null): string { return p\Mbstring::mb_decode_numericentity((string) $string, $map, $encoding); } -} -if (!function_exists('mb_encode_numericentity')) { - function mb_encode_numericentity(?string $string, array $map, ?string $encoding = null, ?bool $hex = false): string { return p\Mbstring::mb_encode_numericentity((string) $string, $map, $encoding, (bool) $hex); } -} -if (!function_exists('mb_convert_case')) { - function mb_convert_case(?string $string, ?int $mode, ?string $encoding = null): string { return p\Mbstring::mb_convert_case((string) $string, (int) $mode, $encoding); } -} -if (!function_exists('mb_internal_encoding')) { - function mb_internal_encoding(?string $encoding = null): string|bool { return p\Mbstring::mb_internal_encoding($encoding); } -} -if (!function_exists('mb_language')) { - function mb_language(?string $language = null): string|bool { return p\Mbstring::mb_language($language); } -} -if (!function_exists('mb_list_encodings')) { - function mb_list_encodings(): array { return p\Mbstring::mb_list_encodings(); } -} -if (!function_exists('mb_encoding_aliases')) { - function mb_encoding_aliases(?string $encoding): array { return p\Mbstring::mb_encoding_aliases((string) $encoding); } -} -if (!function_exists('mb_check_encoding')) { - function mb_check_encoding(array|string|null $value = null, ?string $encoding = null): bool { return p\Mbstring::mb_check_encoding($value, $encoding); } -} -if (!function_exists('mb_detect_encoding')) { - function mb_detect_encoding(?string $string, array|string|null $encodings = null, ?bool $strict = false): string|false { return p\Mbstring::mb_detect_encoding((string) $string, $encodings, (bool) $strict); } -} -if (!function_exists('mb_detect_order')) { - function mb_detect_order(array|string|null $encoding = null): array|bool { return p\Mbstring::mb_detect_order($encoding); } -} -if (!function_exists('mb_parse_str')) { - function mb_parse_str(?string $string, &$result = []): bool { parse_str((string) $string, $result); return (bool) $result; } -} -if (!function_exists('mb_strlen')) { - function mb_strlen(?string $string, ?string $encoding = null): int { return p\Mbstring::mb_strlen((string) $string, $encoding); } -} -if (!function_exists('mb_strpos')) { - function mb_strpos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null): int|false { return p\Mbstring::mb_strpos((string) $haystack, (string) $needle, (int) $offset, $encoding); } -} -if (!function_exists('mb_strtolower')) { - function mb_strtolower(?string $string, ?string $encoding = null): string { return p\Mbstring::mb_strtolower((string) $string, $encoding); } -} -if (!function_exists('mb_strtoupper')) { - function mb_strtoupper(?string $string, ?string $encoding = null): string { return p\Mbstring::mb_strtoupper((string) $string, $encoding); } -} -if (!function_exists('mb_substitute_character')) { - function mb_substitute_character(string|int|null $substitute_character = null): string|int|bool { return p\Mbstring::mb_substitute_character($substitute_character); } -} -if (!function_exists('mb_substr')) { - function mb_substr(?string $string, ?int $start, ?int $length = null, ?string $encoding = null): string { return p\Mbstring::mb_substr((string) $string, (int) $start, $length, $encoding); } -} -if (!function_exists('mb_stripos')) { - function mb_stripos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null): int|false { return p\Mbstring::mb_stripos((string) $haystack, (string) $needle, (int) $offset, $encoding); } -} -if (!function_exists('mb_stristr')) { - function mb_stristr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null): string|false { return p\Mbstring::mb_stristr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); } -} -if (!function_exists('mb_strrchr')) { - function mb_strrchr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null): string|false { return p\Mbstring::mb_strrchr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); } -} -if (!function_exists('mb_strrichr')) { - function mb_strrichr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null): string|false { return p\Mbstring::mb_strrichr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); } -} -if (!function_exists('mb_strripos')) { - function mb_strripos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null): int|false { return p\Mbstring::mb_strripos((string) $haystack, (string) $needle, (int) $offset, $encoding); } -} -if (!function_exists('mb_strrpos')) { - function mb_strrpos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null): int|false { return p\Mbstring::mb_strrpos((string) $haystack, (string) $needle, (int) $offset, $encoding); } -} -if (!function_exists('mb_strstr')) { - function mb_strstr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null): string|false { return p\Mbstring::mb_strstr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); } -} -if (!function_exists('mb_get_info')) { - function mb_get_info(?string $type = 'all'): array|string|int|false|null { return p\Mbstring::mb_get_info((string) $type); } -} -if (!function_exists('mb_http_output')) { - function mb_http_output(?string $encoding = null): string|bool { return p\Mbstring::mb_http_output($encoding); } -} -if (!function_exists('mb_strwidth')) { - function mb_strwidth(?string $string, ?string $encoding = null): int { return p\Mbstring::mb_strwidth((string) $string, $encoding); } -} -if (!function_exists('mb_substr_count')) { - function mb_substr_count(?string $haystack, ?string $needle, ?string $encoding = null): int { return p\Mbstring::mb_substr_count((string) $haystack, (string) $needle, $encoding); } -} -if (!function_exists('mb_output_handler')) { - function mb_output_handler(?string $string, ?int $status): string { return p\Mbstring::mb_output_handler((string) $string, (int) $status); } -} -if (!function_exists('mb_http_input')) { - function mb_http_input(?string $type = null): array|string|false { return p\Mbstring::mb_http_input($type); } -} - -if (!function_exists('mb_convert_variables')) { - function mb_convert_variables(?string $to_encoding, array|string|null $from_encoding, mixed &$var, mixed &...$vars): string|false { return p\Mbstring::mb_convert_variables((string) $to_encoding, $from_encoding ?? '', $var, ...$vars); } -} - -if (!function_exists('mb_ord')) { - function mb_ord(?string $string, ?string $encoding = null): int|false { return p\Mbstring::mb_ord((string) $string, $encoding); } -} -if (!function_exists('mb_chr')) { - function mb_chr(?int $codepoint, ?string $encoding = null): string|false { return p\Mbstring::mb_chr((int) $codepoint, $encoding); } -} -if (!function_exists('mb_scrub')) { - function mb_scrub(?string $string, ?string $encoding = null): string { $encoding ??= mb_internal_encoding(); return mb_convert_encoding((string) $string, $encoding, $encoding); } -} -if (!function_exists('mb_str_split')) { - function mb_str_split(?string $string, ?int $length = 1, ?string $encoding = null): array { return p\Mbstring::mb_str_split((string) $string, (int) $length, $encoding); } -} - -if (!function_exists('mb_str_pad')) { - function mb_str_pad(string $string, int $length, string $pad_string = ' ', int $pad_type = STR_PAD_RIGHT, ?string $encoding = null): string { return p\Mbstring::mb_str_pad($string, $length, $pad_string, $pad_type, $encoding); } -} - -if (!function_exists('mb_ucfirst')) { - function mb_ucfirst($string, ?string $encoding = null): string { return p\Mbstring::mb_ucfirst($string, $encoding); } -} - -if (!function_exists('mb_lcfirst')) { - function mb_lcfirst($string, ?string $encoding = null): string { return p\Mbstring::mb_lcfirst($string, $encoding); } -} - -if (!function_exists('mb_trim')) { - function mb_trim(string $string, ?string $characters = null, ?string $encoding = null): string { return p\Mbstring::mb_trim($string, $characters, $encoding); } -} - -if (!function_exists('mb_ltrim')) { - function mb_ltrim(string $string, ?string $characters = null, ?string $encoding = null): string { return p\Mbstring::mb_ltrim($string, $characters, $encoding); } -} - -if (!function_exists('mb_rtrim')) { - function mb_rtrim(string $string, ?string $characters = null, ?string $encoding = null): string { return p\Mbstring::mb_rtrim($string, $characters, $encoding); } -} - -if (extension_loaded('mbstring')) { - return; -} - -if (!defined('MB_CASE_UPPER')) { - define('MB_CASE_UPPER', 0); -} -if (!defined('MB_CASE_LOWER')) { - define('MB_CASE_LOWER', 1); -} -if (!defined('MB_CASE_TITLE')) { - define('MB_CASE_TITLE', 2); -} diff --git a/vendor/symfony/polyfill-mbstring/composer.json b/vendor/symfony/polyfill-mbstring/composer.json deleted file mode 100644 index 4ed241a..0000000 --- a/vendor/symfony/polyfill-mbstring/composer.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "symfony/polyfill-mbstring", - "type": "library", - "description": "Symfony polyfill for the Mbstring extension", - "keywords": ["polyfill", "shim", "compatibility", "portable", "mbstring"], - "homepage": "https://symfony.com", - "license": "MIT", - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "require": { - "php": ">=7.2" - }, - "provide": { - "ext-mbstring": "*" - }, - "autoload": { - "psr-4": { "Symfony\\Polyfill\\Mbstring\\": "" }, - "files": [ "bootstrap.php" ] - }, - "suggest": { - "ext-mbstring": "For best performance" - }, - "minimum-stability": "dev", - "extra": { - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } - } -} diff --git a/vendor/symfony/polyfill-php83/LICENSE b/vendor/symfony/polyfill-php83/LICENSE deleted file mode 100644 index 733c826..0000000 --- a/vendor/symfony/polyfill-php83/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2022-present Fabien Potencier - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is furnished -to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/vendor/symfony/polyfill-php83/Php83.php b/vendor/symfony/polyfill-php83/Php83.php deleted file mode 100644 index 3d94b6c..0000000 --- a/vendor/symfony/polyfill-php83/Php83.php +++ /dev/null @@ -1,197 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Polyfill\Php83; - -/** - * @author Ion Bazan - * @author Pierre Ambroise - * - * @internal - */ -final class Php83 -{ - private const JSON_MAX_DEPTH = 0x7FFFFFFF; // see https://www.php.net/manual/en/function.json-decode.php - - public static function json_validate(string $json, int $depth = 512, int $flags = 0): bool - { - if (0 !== $flags && \defined('JSON_INVALID_UTF8_IGNORE') && \JSON_INVALID_UTF8_IGNORE !== $flags) { - throw new \ValueError('json_validate(): Argument #3 ($flags) must be a valid flag (allowed flags: JSON_INVALID_UTF8_IGNORE)'); - } - - if ($depth <= 0) { - throw new \ValueError('json_validate(): Argument #2 ($depth) must be greater than 0'); - } - - if ($depth > self::JSON_MAX_DEPTH) { - throw new \ValueError(sprintf('json_validate(): Argument #2 ($depth) must be less than %d', self::JSON_MAX_DEPTH)); - } - - json_decode($json, null, $depth, $flags); - - return \JSON_ERROR_NONE === json_last_error(); - } - - public static function mb_str_pad(string $string, int $length, string $pad_string = ' ', int $pad_type = \STR_PAD_RIGHT, ?string $encoding = null): string - { - if (!\in_array($pad_type, [\STR_PAD_RIGHT, \STR_PAD_LEFT, \STR_PAD_BOTH], true)) { - throw new \ValueError('mb_str_pad(): Argument #4 ($pad_type) must be STR_PAD_LEFT, STR_PAD_RIGHT, or STR_PAD_BOTH'); - } - - if (null === $encoding) { - $encoding = mb_internal_encoding(); - } - - try { - $validEncoding = @mb_check_encoding('', $encoding); - } catch (\ValueError $e) { - throw new \ValueError(sprintf('mb_str_pad(): Argument #5 ($encoding) must be a valid encoding, "%s" given', $encoding)); - } - - // BC for PHP 7.3 and lower - if (!$validEncoding) { - throw new \ValueError(sprintf('mb_str_pad(): Argument #5 ($encoding) must be a valid encoding, "%s" given', $encoding)); - } - - if (mb_strlen($pad_string, $encoding) <= 0) { - throw new \ValueError('mb_str_pad(): Argument #3 ($pad_string) must be a non-empty string'); - } - - $paddingRequired = $length - mb_strlen($string, $encoding); - - if ($paddingRequired < 1) { - return $string; - } - - switch ($pad_type) { - case \STR_PAD_LEFT: - return mb_substr(str_repeat($pad_string, $paddingRequired), 0, $paddingRequired, $encoding).$string; - case \STR_PAD_RIGHT: - return $string.mb_substr(str_repeat($pad_string, $paddingRequired), 0, $paddingRequired, $encoding); - default: - $leftPaddingLength = floor($paddingRequired / 2); - $rightPaddingLength = $paddingRequired - $leftPaddingLength; - - return mb_substr(str_repeat($pad_string, $leftPaddingLength), 0, $leftPaddingLength, $encoding).$string.mb_substr(str_repeat($pad_string, $rightPaddingLength), 0, $rightPaddingLength, $encoding); - } - } - - public static function str_increment(string $string): string - { - if ('' === $string) { - throw new \ValueError('str_increment(): Argument #1 ($string) cannot be empty'); - } - - if (!preg_match('/^[a-zA-Z0-9]+$/', $string)) { - throw new \ValueError('str_increment(): Argument #1 ($string) must be composed only of alphanumeric ASCII characters'); - } - - if (is_numeric($string)) { - $offset = stripos($string, 'e'); - if (false !== $offset) { - $char = $string[$offset]; - ++$char; - $string[$offset] = $char; - ++$string; - - switch ($string[$offset]) { - case 'f': - $string[$offset] = 'e'; - break; - case 'F': - $string[$offset] = 'E'; - break; - case 'g': - $string[$offset] = 'f'; - break; - case 'G': - $string[$offset] = 'F'; - break; - } - - return $string; - } - } - - return ++$string; - } - - public static function str_decrement(string $string): string - { - if ('' === $string) { - throw new \ValueError('str_decrement(): Argument #1 ($string) cannot be empty'); - } - - if (!preg_match('/^[a-zA-Z0-9]+$/', $string)) { - throw new \ValueError('str_decrement(): Argument #1 ($string) must be composed only of alphanumeric ASCII characters'); - } - - if (preg_match('/\A(?:0[aA0]?|[aA])\z/', $string)) { - throw new \ValueError(sprintf('str_decrement(): Argument #1 ($string) "%s" is out of decrement range', $string)); - } - - if (!\in_array(substr($string, -1), ['A', 'a', '0'], true)) { - return implode('', \array_slice(str_split($string), 0, -1)).\chr(\ord(substr($string, -1)) - 1); - } - - $carry = ''; - $decremented = ''; - - for ($i = \strlen($string) - 1; $i >= 0; --$i) { - $char = $string[$i]; - - switch ($char) { - case 'A': - if ('' !== $carry) { - $decremented = $carry.$decremented; - $carry = ''; - } - $carry = 'Z'; - - break; - case 'a': - if ('' !== $carry) { - $decremented = $carry.$decremented; - $carry = ''; - } - $carry = 'z'; - - break; - case '0': - if ('' !== $carry) { - $decremented = $carry.$decremented; - $carry = ''; - } - $carry = '9'; - - break; - case '1': - if ('' !== $carry) { - $decremented = $carry.$decremented; - $carry = ''; - } - - break; - default: - if ('' !== $carry) { - $decremented = $carry.$decremented; - $carry = ''; - } - - if (!\in_array($char, ['A', 'a', '0'], true)) { - $decremented = \chr(\ord($char) - 1).$decremented; - } - } - } - - return $decremented; - } -} diff --git a/vendor/symfony/polyfill-php83/README.md b/vendor/symfony/polyfill-php83/README.md deleted file mode 100644 index f298776..0000000 --- a/vendor/symfony/polyfill-php83/README.md +++ /dev/null @@ -1,22 +0,0 @@ -Symfony Polyfill / Php83 -======================== - -This component provides features added to PHP 8.3 core: - -- [`json_validate`](https://wiki.php.net/rfc/json_validate) -- [`Override`](https://wiki.php.net/rfc/marking_overriden_methods) -- [`mb_str_pad`](https://wiki.php.net/rfc/mb_str_pad) -- [`ldap_exop_sync`](https://wiki.php.net/rfc/deprecate_functions_with_overloaded_signatures) -- [`ldap_connect_wallet`](https://wiki.php.net/rfc/deprecate_functions_with_overloaded_signatures) -- [`stream_context_set_options`](https://wiki.php.net/rfc/deprecate_functions_with_overloaded_signatures) -- [`str_increment` and `str_decrement`](https://wiki.php.net/rfc/saner-inc-dec-operators) -- [`Date*Exception/Error classes`](https://wiki.php.net/rfc/datetime-exceptions) -- [`SQLite3Exception`](https://wiki.php.net/rfc/sqlite3_exceptions) - -More information can be found in the -[main Polyfill README](https://github.com/symfony/polyfill/blob/main/README.md). - -License -======= - -This library is released under the [MIT license](LICENSE). diff --git a/vendor/symfony/polyfill-php83/Resources/stubs/DateError.php b/vendor/symfony/polyfill-php83/Resources/stubs/DateError.php deleted file mode 100644 index 6e7ed8c..0000000 --- a/vendor/symfony/polyfill-php83/Resources/stubs/DateError.php +++ /dev/null @@ -1,16 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -if (\PHP_VERSION_ID < 80300) { - class DateError extends Error - { - } -} diff --git a/vendor/symfony/polyfill-php83/Resources/stubs/DateException.php b/vendor/symfony/polyfill-php83/Resources/stubs/DateException.php deleted file mode 100644 index 041710a..0000000 --- a/vendor/symfony/polyfill-php83/Resources/stubs/DateException.php +++ /dev/null @@ -1,16 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -if (\PHP_VERSION_ID < 80300) { - class DateException extends Exception - { - } -} diff --git a/vendor/symfony/polyfill-php83/Resources/stubs/DateInvalidOperationException.php b/vendor/symfony/polyfill-php83/Resources/stubs/DateInvalidOperationException.php deleted file mode 100644 index e2e9dfc..0000000 --- a/vendor/symfony/polyfill-php83/Resources/stubs/DateInvalidOperationException.php +++ /dev/null @@ -1,16 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -if (\PHP_VERSION_ID < 80300) { - class DateInvalidOperationException extends DateException - { - } -} diff --git a/vendor/symfony/polyfill-php83/Resources/stubs/DateInvalidTimeZoneException.php b/vendor/symfony/polyfill-php83/Resources/stubs/DateInvalidTimeZoneException.php deleted file mode 100644 index 75bcd26..0000000 --- a/vendor/symfony/polyfill-php83/Resources/stubs/DateInvalidTimeZoneException.php +++ /dev/null @@ -1,16 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -if (\PHP_VERSION_ID < 80300) { - class DateInvalidTimeZoneException extends DateException - { - } -} diff --git a/vendor/symfony/polyfill-php83/Resources/stubs/DateMalformedIntervalStringException.php b/vendor/symfony/polyfill-php83/Resources/stubs/DateMalformedIntervalStringException.php deleted file mode 100644 index af91b8e..0000000 --- a/vendor/symfony/polyfill-php83/Resources/stubs/DateMalformedIntervalStringException.php +++ /dev/null @@ -1,16 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -if (\PHP_VERSION_ID < 80300) { - class DateMalformedIntervalStringException extends DateException - { - } -} diff --git a/vendor/symfony/polyfill-php83/Resources/stubs/DateMalformedPeriodStringException.php b/vendor/symfony/polyfill-php83/Resources/stubs/DateMalformedPeriodStringException.php deleted file mode 100644 index 9b6d276..0000000 --- a/vendor/symfony/polyfill-php83/Resources/stubs/DateMalformedPeriodStringException.php +++ /dev/null @@ -1,16 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -if (\PHP_VERSION_ID < 80300) { - class DateMalformedPeriodStringException extends DateException - { - } -} diff --git a/vendor/symfony/polyfill-php83/Resources/stubs/DateMalformedStringException.php b/vendor/symfony/polyfill-php83/Resources/stubs/DateMalformedStringException.php deleted file mode 100644 index 7ad0484..0000000 --- a/vendor/symfony/polyfill-php83/Resources/stubs/DateMalformedStringException.php +++ /dev/null @@ -1,16 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -if (\PHP_VERSION_ID < 80300) { - class DateMalformedStringException extends DateException - { - } -} diff --git a/vendor/symfony/polyfill-php83/Resources/stubs/DateObjectError.php b/vendor/symfony/polyfill-php83/Resources/stubs/DateObjectError.php deleted file mode 100644 index 11f0edc..0000000 --- a/vendor/symfony/polyfill-php83/Resources/stubs/DateObjectError.php +++ /dev/null @@ -1,16 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -if (\PHP_VERSION_ID < 80300) { - class DateObjectError extends DateError - { - } -} diff --git a/vendor/symfony/polyfill-php83/Resources/stubs/DateRangeError.php b/vendor/symfony/polyfill-php83/Resources/stubs/DateRangeError.php deleted file mode 100644 index 98e6703..0000000 --- a/vendor/symfony/polyfill-php83/Resources/stubs/DateRangeError.php +++ /dev/null @@ -1,16 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -if (\PHP_VERSION_ID < 80300) { - class DateRangeError extends DateError - { - } -} diff --git a/vendor/symfony/polyfill-php83/Resources/stubs/Override.php b/vendor/symfony/polyfill-php83/Resources/stubs/Override.php deleted file mode 100644 index d3e6b3e..0000000 --- a/vendor/symfony/polyfill-php83/Resources/stubs/Override.php +++ /dev/null @@ -1,20 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -if (\PHP_VERSION_ID < 80300) { - #[Attribute(Attribute::TARGET_METHOD)] - final class Override - { - public function __construct() - { - } - } -} diff --git a/vendor/symfony/polyfill-php83/Resources/stubs/SQLite3Exception.php b/vendor/symfony/polyfill-php83/Resources/stubs/SQLite3Exception.php deleted file mode 100644 index ecb7c98..0000000 --- a/vendor/symfony/polyfill-php83/Resources/stubs/SQLite3Exception.php +++ /dev/null @@ -1,16 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -if (\PHP_VERSION_ID < 80300) { - class SQLite3Exception extends Exception - { - } -} diff --git a/vendor/symfony/polyfill-php83/bootstrap.php b/vendor/symfony/polyfill-php83/bootstrap.php deleted file mode 100644 index a92799c..0000000 --- a/vendor/symfony/polyfill-php83/bootstrap.php +++ /dev/null @@ -1,50 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -use Symfony\Polyfill\Php83 as p; - -if (\PHP_VERSION_ID >= 80300) { - return; -} - -if (!function_exists('json_validate')) { - function json_validate(string $json, int $depth = 512, int $flags = 0): bool { return p\Php83::json_validate($json, $depth, $flags); } -} - -if (extension_loaded('mbstring')) { - if (!function_exists('mb_str_pad')) { - function mb_str_pad(string $string, int $length, string $pad_string = ' ', int $pad_type = STR_PAD_RIGHT, ?string $encoding = null): string { return p\Php83::mb_str_pad($string, $length, $pad_string, $pad_type, $encoding); } - } -} - -if (!function_exists('stream_context_set_options')) { - function stream_context_set_options($context, array $options): bool { return stream_context_set_option($context, $options); } -} - -if (!function_exists('str_increment')) { - function str_increment(string $string): string { return p\Php83::str_increment($string); } -} - -if (!function_exists('str_decrement')) { - function str_decrement(string $string): string { return p\Php83::str_decrement($string); } -} - -if (\PHP_VERSION_ID >= 80100) { - return require __DIR__.'/bootstrap81.php'; -} - -if (!function_exists('ldap_exop_sync') && function_exists('ldap_exop')) { - function ldap_exop_sync($ldap, string $request_oid, ?string $request_data = null, ?array $controls = null, &$response_data = null, &$response_oid = null): bool { return ldap_exop($ldap, $request_oid, $request_data, $controls, $response_data, $response_oid); } -} - -if (!function_exists('ldap_connect_wallet') && function_exists('ldap_connect')) { - function ldap_connect_wallet(?string $uri, string $wallet, string $password, int $auth_mode = \GSLC_SSL_NO_AUTH) { return ldap_connect($uri, $wallet, $password, $auth_mode); } -} diff --git a/vendor/symfony/polyfill-php83/bootstrap81.php b/vendor/symfony/polyfill-php83/bootstrap81.php deleted file mode 100644 index 68395b4..0000000 --- a/vendor/symfony/polyfill-php83/bootstrap81.php +++ /dev/null @@ -1,22 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -if (\PHP_VERSION_ID >= 80300) { - return; -} - -if (!function_exists('ldap_exop_sync') && function_exists('ldap_exop')) { - function ldap_exop_sync(\LDAP\Connection $ldap, string $request_oid, ?string $request_data = null, ?array $controls = null, &$response_data = null, &$response_oid = null): bool { return ldap_exop($ldap, $request_oid, $request_data, $controls, $response_data, $response_oid); } -} - -if (!function_exists('ldap_connect_wallet') && function_exists('ldap_connect')) { - function ldap_connect_wallet(?string $uri, string $wallet, #[\SensitiveParameter] string $password, int $auth_mode = \GSLC_SSL_NO_AUTH): \LDAP\Connection|false { return ldap_connect($uri, $wallet, $password, $auth_mode); } -} diff --git a/vendor/symfony/polyfill-php83/composer.json b/vendor/symfony/polyfill-php83/composer.json deleted file mode 100644 index a8b8ba7..0000000 --- a/vendor/symfony/polyfill-php83/composer.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "name": "symfony/polyfill-php83", - "type": "library", - "description": "Symfony polyfill backporting some PHP 8.3+ features to lower PHP versions", - "keywords": ["polyfill", "shim", "compatibility", "portable"], - "homepage": "https://symfony.com", - "license": "MIT", - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "require": { - "php": ">=7.2" - }, - "autoload": { - "psr-4": { "Symfony\\Polyfill\\Php83\\": "" }, - "files": [ "bootstrap.php" ], - "classmap": [ "Resources/stubs" ] - }, - "minimum-stability": "dev", - "extra": { - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } - } -} diff --git a/vendor/symfony/translation-contracts/CHANGELOG.md b/vendor/symfony/translation-contracts/CHANGELOG.md deleted file mode 100644 index 7932e26..0000000 --- a/vendor/symfony/translation-contracts/CHANGELOG.md +++ /dev/null @@ -1,5 +0,0 @@ -CHANGELOG -========= - -The changelog is maintained for all Symfony contracts at the following URL: -https://github.com/symfony/contracts/blob/main/CHANGELOG.md diff --git a/vendor/symfony/translation-contracts/LICENSE b/vendor/symfony/translation-contracts/LICENSE deleted file mode 100644 index 7536cae..0000000 --- a/vendor/symfony/translation-contracts/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2018-present Fabien Potencier - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is furnished -to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/vendor/symfony/translation-contracts/LocaleAwareInterface.php b/vendor/symfony/translation-contracts/LocaleAwareInterface.php deleted file mode 100644 index db40ba1..0000000 --- a/vendor/symfony/translation-contracts/LocaleAwareInterface.php +++ /dev/null @@ -1,29 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Contracts\Translation; - -interface LocaleAwareInterface -{ - /** - * Sets the current locale. - * - * @return void - * - * @throws \InvalidArgumentException If the locale contains invalid characters - */ - public function setLocale(string $locale); - - /** - * Returns the current locale. - */ - public function getLocale(): string; -} diff --git a/vendor/symfony/translation-contracts/README.md b/vendor/symfony/translation-contracts/README.md deleted file mode 100644 index b211d58..0000000 --- a/vendor/symfony/translation-contracts/README.md +++ /dev/null @@ -1,9 +0,0 @@ -Symfony Translation Contracts -============================= - -A set of abstractions extracted out of the Symfony components. - -Can be used to build on semantics that the Symfony components proved useful and -that already have battle tested implementations. - -See https://github.com/symfony/contracts/blob/main/README.md for more information. diff --git a/vendor/symfony/translation-contracts/Test/TranslatorTest.php b/vendor/symfony/translation-contracts/Test/TranslatorTest.php deleted file mode 100644 index 756228a..0000000 --- a/vendor/symfony/translation-contracts/Test/TranslatorTest.php +++ /dev/null @@ -1,385 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Contracts\Translation\Test; - -use PHPUnit\Framework\TestCase; -use Symfony\Contracts\Translation\TranslatorInterface; -use Symfony\Contracts\Translation\TranslatorTrait; - -/** - * Test should cover all languages mentioned on http://translate.sourceforge.net/wiki/l10n/pluralforms - * and Plural forms mentioned on http://www.gnu.org/software/gettext/manual/gettext.html#Plural-forms. - * - * See also https://developer.mozilla.org/en/Localization_and_Plurals which mentions 15 rules having a maximum of 6 forms. - * The mozilla code is also interesting to check for. - * - * As mentioned by chx http://drupal.org/node/1273968 we can cover all by testing number from 0 to 199 - * - * The goal to cover all languages is to far fetched so this test case is smaller. - * - * @author Clemens Tolboom clemens@build2be.nl - */ -class TranslatorTest extends TestCase -{ - private string $defaultLocale; - - protected function setUp(): void - { - $this->defaultLocale = \Locale::getDefault(); - \Locale::setDefault('en'); - } - - protected function tearDown(): void - { - \Locale::setDefault($this->defaultLocale); - } - - public function getTranslator(): TranslatorInterface - { - return new class() implements TranslatorInterface { - use TranslatorTrait; - }; - } - - /** - * @dataProvider getTransTests - */ - public function testTrans($expected, $id, $parameters) - { - $translator = $this->getTranslator(); - - $this->assertEquals($expected, $translator->trans($id, $parameters)); - } - - /** - * @dataProvider getTransChoiceTests - */ - public function testTransChoiceWithExplicitLocale($expected, $id, $number) - { - $translator = $this->getTranslator(); - - $this->assertEquals($expected, $translator->trans($id, ['%count%' => $number])); - } - - /** - * @requires extension intl - * - * @dataProvider getTransChoiceTests - */ - public function testTransChoiceWithDefaultLocale($expected, $id, $number) - { - $translator = $this->getTranslator(); - - $this->assertEquals($expected, $translator->trans($id, ['%count%' => $number])); - } - - /** - * @dataProvider getTransChoiceTests - */ - public function testTransChoiceWithEnUsPosix($expected, $id, $number) - { - $translator = $this->getTranslator(); - $translator->setLocale('en_US_POSIX'); - - $this->assertEquals($expected, $translator->trans($id, ['%count%' => $number])); - } - - public function testGetSetLocale() - { - $translator = $this->getTranslator(); - - $this->assertEquals('en', $translator->getLocale()); - } - - /** - * @requires extension intl - */ - public function testGetLocaleReturnsDefaultLocaleIfNotSet() - { - $translator = $this->getTranslator(); - - \Locale::setDefault('pt_BR'); - $this->assertEquals('pt_BR', $translator->getLocale()); - - \Locale::setDefault('en'); - $this->assertEquals('en', $translator->getLocale()); - } - - public static function getTransTests() - { - return [ - ['Symfony is great!', 'Symfony is great!', []], - ['Symfony is awesome!', 'Symfony is %what%!', ['%what%' => 'awesome']], - ]; - } - - public static function getTransChoiceTests() - { - return [ - ['There are no apples', '{0} There are no apples|{1} There is one apple|]1,Inf] There are %count% apples', 0], - ['There is one apple', '{0} There are no apples|{1} There is one apple|]1,Inf] There are %count% apples', 1], - ['There are 10 apples', '{0} There are no apples|{1} There is one apple|]1,Inf] There are %count% apples', 10], - ['There are 0 apples', 'There is 1 apple|There are %count% apples', 0], - ['There is 1 apple', 'There is 1 apple|There are %count% apples', 1], - ['There are 10 apples', 'There is 1 apple|There are %count% apples', 10], - // custom validation messages may be coded with a fixed value - ['There are 2 apples', 'There are 2 apples', 2], - ]; - } - - /** - * @dataProvider getInterval - */ - public function testInterval($expected, $number, $interval) - { - $translator = $this->getTranslator(); - - $this->assertEquals($expected, $translator->trans($interval.' foo|[1,Inf[ bar', ['%count%' => $number])); - } - - public static function getInterval() - { - return [ - ['foo', 3, '{1,2, 3 ,4}'], - ['bar', 10, '{1,2, 3 ,4}'], - ['bar', 3, '[1,2]'], - ['foo', 1, '[1,2]'], - ['foo', 2, '[1,2]'], - ['bar', 1, ']1,2['], - ['bar', 2, ']1,2['], - ['foo', log(0), '[-Inf,2['], - ['foo', -log(0), '[-2,+Inf]'], - ]; - } - - /** - * @dataProvider getChooseTests - */ - public function testChoose($expected, $id, $number, $locale = null) - { - $translator = $this->getTranslator(); - - $this->assertEquals($expected, $translator->trans($id, ['%count%' => $number], null, $locale)); - } - - public function testReturnMessageIfExactlyOneStandardRuleIsGiven() - { - $translator = $this->getTranslator(); - - $this->assertEquals('There are two apples', $translator->trans('There are two apples', ['%count%' => 2])); - } - - /** - * @dataProvider getNonMatchingMessages - */ - public function testThrowExceptionIfMatchingMessageCannotBeFound($id, $number) - { - $translator = $this->getTranslator(); - - $this->expectException(\InvalidArgumentException::class); - - $translator->trans($id, ['%count%' => $number]); - } - - public static function getNonMatchingMessages() - { - return [ - ['{0} There are no apples|{1} There is one apple', 2], - ['{1} There is one apple|]1,Inf] There are %count% apples', 0], - ['{1} There is one apple|]2,Inf] There are %count% apples', 2], - ['{0} There are no apples|There is one apple', 2], - ]; - } - - public static function getChooseTests() - { - return [ - ['There are no apples', '{0} There are no apples|{1} There is one apple|]1,Inf] There are %count% apples', 0], - ['There are no apples', '{0} There are no apples|{1} There is one apple|]1,Inf] There are %count% apples', 0], - ['There are no apples', '{0}There are no apples|{1} There is one apple|]1,Inf] There are %count% apples', 0], - - ['There is one apple', '{0} There are no apples|{1} There is one apple|]1,Inf] There are %count% apples', 1], - - ['There are 10 apples', '{0} There are no apples|{1} There is one apple|]1,Inf] There are %count% apples', 10], - ['There are 10 apples', '{0} There are no apples|{1} There is one apple|]1,Inf]There are %count% apples', 10], - ['There are 10 apples', '{0} There are no apples|{1} There is one apple|]1,Inf] There are %count% apples', 10], - - ['There are 0 apples', 'There is one apple|There are %count% apples', 0], - ['There is one apple', 'There is one apple|There are %count% apples', 1], - ['There are 10 apples', 'There is one apple|There are %count% apples', 10], - - ['There are 0 apples', 'one: There is one apple|more: There are %count% apples', 0], - ['There is one apple', 'one: There is one apple|more: There are %count% apples', 1], - ['There are 10 apples', 'one: There is one apple|more: There are %count% apples', 10], - - ['There are no apples', '{0} There are no apples|one: There is one apple|more: There are %count% apples', 0], - ['There is one apple', '{0} There are no apples|one: There is one apple|more: There are %count% apples', 1], - ['There are 10 apples', '{0} There are no apples|one: There is one apple|more: There are %count% apples', 10], - - ['', '{0}|{1} There is one apple|]1,Inf] There are %count% apples', 0], - ['', '{0} There are no apples|{1}|]1,Inf] There are %count% apples', 1], - - // Indexed only tests which are Gettext PoFile* compatible strings. - ['There are 0 apples', 'There is one apple|There are %count% apples', 0], - ['There is one apple', 'There is one apple|There are %count% apples', 1], - ['There are 2 apples', 'There is one apple|There are %count% apples', 2], - - // Tests for float numbers - ['There is almost one apple', '{0} There are no apples|]0,1[ There is almost one apple|{1} There is one apple|[1,Inf] There is more than one apple', 0.7], - ['There is one apple', '{0} There are no apples|]0,1[There are %count% apples|{1} There is one apple|[1,Inf] There is more than one apple', 1], - ['There is more than one apple', '{0} There are no apples|]0,1[There are %count% apples|{1} There is one apple|[1,Inf] There is more than one apple', 1.7], - ['There are no apples', '{0} There are no apples|]0,1[There are %count% apples|{1} There is one apple|[1,Inf] There is more than one apple', 0], - ['There are no apples', '{0} There are no apples|]0,1[There are %count% apples|{1} There is one apple|[1,Inf] There is more than one apple', 0.0], - ['There are no apples', '{0.0} There are no apples|]0,1[There are %count% apples|{1} There is one apple|[1,Inf] There is more than one apple', 0], - - // Test texts with new-lines - // with double-quotes and \n in id & double-quotes and actual newlines in text - ["This is a text with a\n new-line in it. Selector = 0.", '{0}This is a text with a - new-line in it. Selector = 0.|{1}This is a text with a - new-line in it. Selector = 1.|[1,Inf]This is a text with a - new-line in it. Selector > 1.', 0], - // with double-quotes and \n in id and single-quotes and actual newlines in text - ["This is a text with a\n new-line in it. Selector = 1.", '{0}This is a text with a - new-line in it. Selector = 0.|{1}This is a text with a - new-line in it. Selector = 1.|[1,Inf]This is a text with a - new-line in it. Selector > 1.', 1], - ["This is a text with a\n new-line in it. Selector > 1.", '{0}This is a text with a - new-line in it. Selector = 0.|{1}This is a text with a - new-line in it. Selector = 1.|[1,Inf]This is a text with a - new-line in it. Selector > 1.', 5], - // with double-quotes and id split across lines - ['This is a text with a - new-line in it. Selector = 1.', '{0}This is a text with a - new-line in it. Selector = 0.|{1}This is a text with a - new-line in it. Selector = 1.|[1,Inf]This is a text with a - new-line in it. Selector > 1.', 1], - // with single-quotes and id split across lines - ['This is a text with a - new-line in it. Selector > 1.', '{0}This is a text with a - new-line in it. Selector = 0.|{1}This is a text with a - new-line in it. Selector = 1.|[1,Inf]This is a text with a - new-line in it. Selector > 1.', 5], - // with single-quotes and \n in text - ['This is a text with a\nnew-line in it. Selector = 0.', '{0}This is a text with a\nnew-line in it. Selector = 0.|{1}This is a text with a\nnew-line in it. Selector = 1.|[1,Inf]This is a text with a\nnew-line in it. Selector > 1.', 0], - // with double-quotes and id split across lines - ["This is a text with a\nnew-line in it. Selector = 1.", "{0}This is a text with a\nnew-line in it. Selector = 0.|{1}This is a text with a\nnew-line in it. Selector = 1.|[1,Inf]This is a text with a\nnew-line in it. Selector > 1.", 1], - // escape pipe - ['This is a text with | in it. Selector = 0.', '{0}This is a text with || in it. Selector = 0.|{1}This is a text with || in it. Selector = 1.', 0], - // Empty plural set (2 plural forms) from a .PO file - ['', '|', 1], - // Empty plural set (3 plural forms) from a .PO file - ['', '||', 1], - - // Floating values - ['1.5 liters', '%count% liter|%count% liters', 1.5], - ['1.5 litre', '%count% litre|%count% litres', 1.5, 'fr'], - - // Negative values - ['-1 degree', '%count% degree|%count% degrees', -1], - ['-1 degré', '%count% degré|%count% degrés', -1], - ['-1.5 degrees', '%count% degree|%count% degrees', -1.5], - ['-1.5 degré', '%count% degré|%count% degrés', -1.5, 'fr'], - ['-2 degrees', '%count% degree|%count% degrees', -2], - ['-2 degrés', '%count% degré|%count% degrés', -2], - ]; - } - - /** - * @dataProvider failingLangcodes - */ - public function testFailedLangcodes($nplural, $langCodes) - { - $matrix = $this->generateTestData($langCodes); - $this->validateMatrix($nplural, $matrix, false); - } - - /** - * @dataProvider successLangcodes - */ - public function testLangcodes($nplural, $langCodes) - { - $matrix = $this->generateTestData($langCodes); - $this->validateMatrix($nplural, $matrix); - } - - /** - * This array should contain all currently known langcodes. - * - * As it is impossible to have this ever complete we should try as hard as possible to have it almost complete. - */ - public static function successLangcodes(): array - { - return [ - ['1', ['ay', 'bo', 'cgg', 'dz', 'id', 'ja', 'jbo', 'ka', 'kk', 'km', 'ko', 'ky']], - ['2', ['nl', 'fr', 'en', 'de', 'de_GE', 'hy', 'hy_AM', 'en_US_POSIX']], - ['3', ['be', 'bs', 'cs', 'hr']], - ['4', ['cy', 'mt', 'sl']], - ['6', ['ar']], - ]; - } - - /** - * This array should be at least empty within the near future. - * - * This both depends on a complete list trying to add above as understanding - * the plural rules of the current failing languages. - * - * @return array with nplural together with langcodes - */ - public static function failingLangcodes(): array - { - return [ - ['1', ['fa']], - ['2', ['jbo']], - ['3', ['cbs']], - ['4', ['gd', 'kw']], - ['5', ['ga']], - ]; - } - - /** - * We validate only on the plural coverage. Thus the real rules is not tested. - * - * @param string $nplural Plural expected - * @param array $matrix Containing langcodes and their plural index values - */ - protected function validateMatrix(string $nplural, array $matrix, bool $expectSuccess = true) - { - foreach ($matrix as $langCode => $data) { - $indexes = array_flip($data); - if ($expectSuccess) { - $this->assertCount($nplural, $indexes, "Langcode '$langCode' has '$nplural' plural forms."); - } else { - $this->assertNotEquals((int) $nplural, \count($indexes), "Langcode '$langCode' has '$nplural' plural forms."); - } - } - } - - protected function generateTestData($langCodes) - { - $translator = new class() { - use TranslatorTrait { - getPluralizationRule as public; - } - }; - - $matrix = []; - foreach ($langCodes as $langCode) { - for ($count = 0; $count < 200; ++$count) { - $plural = $translator->getPluralizationRule($count, $langCode); - $matrix[$langCode][$count] = $plural; - } - } - - return $matrix; - } -} diff --git a/vendor/symfony/translation-contracts/TranslatableInterface.php b/vendor/symfony/translation-contracts/TranslatableInterface.php deleted file mode 100644 index 8554697..0000000 --- a/vendor/symfony/translation-contracts/TranslatableInterface.php +++ /dev/null @@ -1,20 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Contracts\Translation; - -/** - * @author Nicolas Grekas - */ -interface TranslatableInterface -{ - public function trans(TranslatorInterface $translator, ?string $locale = null): string; -} diff --git a/vendor/symfony/translation-contracts/TranslatorInterface.php b/vendor/symfony/translation-contracts/TranslatorInterface.php deleted file mode 100644 index 7fa6987..0000000 --- a/vendor/symfony/translation-contracts/TranslatorInterface.php +++ /dev/null @@ -1,68 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Contracts\Translation; - -/** - * @author Fabien Potencier - */ -interface TranslatorInterface -{ - /** - * Translates the given message. - * - * When a number is provided as a parameter named "%count%", the message is parsed for plural - * forms and a translation is chosen according to this number using the following rules: - * - * Given a message with different plural translations separated by a - * pipe (|), this method returns the correct portion of the message based - * on the given number, locale and the pluralization rules in the message - * itself. - * - * The message supports two different types of pluralization rules: - * - * interval: {0} There are no apples|{1} There is one apple|]1,Inf] There are %count% apples - * indexed: There is one apple|There are %count% apples - * - * The indexed solution can also contain labels (e.g. one: There is one apple). - * This is purely for making the translations more clear - it does not - * affect the functionality. - * - * The two methods can also be mixed: - * {0} There are no apples|one: There is one apple|more: There are %count% apples - * - * An interval can represent a finite set of numbers: - * {1,2,3,4} - * - * An interval can represent numbers between two numbers: - * [1, +Inf] - * ]-1,2[ - * - * The left delimiter can be [ (inclusive) or ] (exclusive). - * The right delimiter can be [ (exclusive) or ] (inclusive). - * Beside numbers, you can use -Inf and +Inf for the infinite. - * - * @see https://en.wikipedia.org/wiki/ISO_31-11 - * - * @param string $id The message id (may also be an object that can be cast to string) - * @param array $parameters An array of parameters for the message - * @param string|null $domain The domain for the message or null to use the default - * @param string|null $locale The locale or null to use the default - * - * @throws \InvalidArgumentException If the locale contains invalid characters - */ - public function trans(string $id, array $parameters = [], ?string $domain = null, ?string $locale = null): string; - - /** - * Returns the default locale. - */ - public function getLocale(): string; -} diff --git a/vendor/symfony/translation-contracts/TranslatorTrait.php b/vendor/symfony/translation-contracts/TranslatorTrait.php deleted file mode 100644 index 63f6fb3..0000000 --- a/vendor/symfony/translation-contracts/TranslatorTrait.php +++ /dev/null @@ -1,225 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Contracts\Translation; - -use Symfony\Component\Translation\Exception\InvalidArgumentException; - -/** - * A trait to help implement TranslatorInterface and LocaleAwareInterface. - * - * @author Fabien Potencier - */ -trait TranslatorTrait -{ - private ?string $locale = null; - - /** - * @return void - */ - public function setLocale(string $locale) - { - $this->locale = $locale; - } - - public function getLocale(): string - { - return $this->locale ?: (class_exists(\Locale::class) ? \Locale::getDefault() : 'en'); - } - - public function trans(?string $id, array $parameters = [], ?string $domain = null, ?string $locale = null): string - { - if (null === $id || '' === $id) { - return ''; - } - - if (!isset($parameters['%count%']) || !is_numeric($parameters['%count%'])) { - return strtr($id, $parameters); - } - - $number = (float) $parameters['%count%']; - $locale = $locale ?: $this->getLocale(); - - $parts = []; - if (preg_match('/^\|++$/', $id)) { - $parts = explode('|', $id); - } elseif (preg_match_all('/(?:\|\||[^\|])++/', $id, $matches)) { - $parts = $matches[0]; - } - - $intervalRegexp = <<<'EOF' -/^(?P - ({\s* - (\-?\d+(\.\d+)?[\s*,\s*\-?\d+(\.\d+)?]*) - \s*}) - - | - - (?P[\[\]]) - \s* - (?P-Inf|\-?\d+(\.\d+)?) - \s*,\s* - (?P\+?Inf|\-?\d+(\.\d+)?) - \s* - (?P[\[\]]) -)\s*(?P.*?)$/xs -EOF; - - $standardRules = []; - foreach ($parts as $part) { - $part = trim(str_replace('||', '|', $part)); - - // try to match an explicit rule, then fallback to the standard ones - if (preg_match($intervalRegexp, $part, $matches)) { - if ($matches[2]) { - foreach (explode(',', $matches[3]) as $n) { - if ($number == $n) { - return strtr($matches['message'], $parameters); - } - } - } else { - $leftNumber = '-Inf' === $matches['left'] ? -\INF : (float) $matches['left']; - $rightNumber = is_numeric($matches['right']) ? (float) $matches['right'] : \INF; - - if (('[' === $matches['left_delimiter'] ? $number >= $leftNumber : $number > $leftNumber) - && (']' === $matches['right_delimiter'] ? $number <= $rightNumber : $number < $rightNumber) - ) { - return strtr($matches['message'], $parameters); - } - } - } elseif (preg_match('/^\w+\:\s*(.*?)$/', $part, $matches)) { - $standardRules[] = $matches[1]; - } else { - $standardRules[] = $part; - } - } - - $position = $this->getPluralizationRule($number, $locale); - - if (!isset($standardRules[$position])) { - // when there's exactly one rule given, and that rule is a standard - // rule, use this rule - if (1 === \count($parts) && isset($standardRules[0])) { - return strtr($standardRules[0], $parameters); - } - - $message = sprintf('Unable to choose a translation for "%s" with locale "%s" for value "%d". Double check that this translation has the correct plural options (e.g. "There is one apple|There are %%count%% apples").', $id, $locale, $number); - - if (class_exists(InvalidArgumentException::class)) { - throw new InvalidArgumentException($message); - } - - throw new \InvalidArgumentException($message); - } - - return strtr($standardRules[$position], $parameters); - } - - /** - * Returns the plural position to use for the given locale and number. - * - * The plural rules are derived from code of the Zend Framework (2010-09-25), - * which is subject to the new BSD license (http://framework.zend.com/license/new-bsd). - * Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) - */ - private function getPluralizationRule(float $number, string $locale): int - { - $number = abs($number); - - return match ('pt_BR' !== $locale && 'en_US_POSIX' !== $locale && \strlen($locale) > 3 ? substr($locale, 0, strrpos($locale, '_')) : $locale) { - 'af', - 'bn', - 'bg', - 'ca', - 'da', - 'de', - 'el', - 'en', - 'en_US_POSIX', - 'eo', - 'es', - 'et', - 'eu', - 'fa', - 'fi', - 'fo', - 'fur', - 'fy', - 'gl', - 'gu', - 'ha', - 'he', - 'hu', - 'is', - 'it', - 'ku', - 'lb', - 'ml', - 'mn', - 'mr', - 'nah', - 'nb', - 'ne', - 'nl', - 'nn', - 'no', - 'oc', - 'om', - 'or', - 'pa', - 'pap', - 'ps', - 'pt', - 'so', - 'sq', - 'sv', - 'sw', - 'ta', - 'te', - 'tk', - 'ur', - 'zu' => (1 == $number) ? 0 : 1, - 'am', - 'bh', - 'fil', - 'fr', - 'gun', - 'hi', - 'hy', - 'ln', - 'mg', - 'nso', - 'pt_BR', - 'ti', - 'wa' => ($number < 2) ? 0 : 1, - 'be', - 'bs', - 'hr', - 'ru', - 'sh', - 'sr', - 'uk' => ((1 == $number % 10) && (11 != $number % 100)) ? 0 : ((($number % 10 >= 2) && ($number % 10 <= 4) && (($number % 100 < 10) || ($number % 100 >= 20))) ? 1 : 2), - 'cs', - 'sk' => (1 == $number) ? 0 : ((($number >= 2) && ($number <= 4)) ? 1 : 2), - 'ga' => (1 == $number) ? 0 : ((2 == $number) ? 1 : 2), - 'lt' => ((1 == $number % 10) && (11 != $number % 100)) ? 0 : ((($number % 10 >= 2) && (($number % 100 < 10) || ($number % 100 >= 20))) ? 1 : 2), - 'sl' => (1 == $number % 100) ? 0 : ((2 == $number % 100) ? 1 : (((3 == $number % 100) || (4 == $number % 100)) ? 2 : 3)), - 'mk' => (1 == $number % 10) ? 0 : 1, - 'mt' => (1 == $number) ? 0 : (((0 == $number) || (($number % 100 > 1) && ($number % 100 < 11))) ? 1 : ((($number % 100 > 10) && ($number % 100 < 20)) ? 2 : 3)), - 'lv' => (0 == $number) ? 0 : (((1 == $number % 10) && (11 != $number % 100)) ? 1 : 2), - 'pl' => (1 == $number) ? 0 : ((($number % 10 >= 2) && ($number % 10 <= 4) && (($number % 100 < 12) || ($number % 100 > 14))) ? 1 : 2), - 'cy' => (1 == $number) ? 0 : ((2 == $number) ? 1 : (((8 == $number) || (11 == $number)) ? 2 : 3)), - 'ro' => (1 == $number) ? 0 : (((0 == $number) || (($number % 100 > 0) && ($number % 100 < 20))) ? 1 : 2), - 'ar' => (0 == $number) ? 0 : ((1 == $number) ? 1 : ((2 == $number) ? 2 : ((($number % 100 >= 3) && ($number % 100 <= 10)) ? 3 : ((($number % 100 >= 11) && ($number % 100 <= 99)) ? 4 : 5)))), - default => 0, - }; - } -} diff --git a/vendor/symfony/translation-contracts/composer.json b/vendor/symfony/translation-contracts/composer.json deleted file mode 100644 index 181651e..0000000 --- a/vendor/symfony/translation-contracts/composer.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "symfony/translation-contracts", - "type": "library", - "description": "Generic abstractions related to translation", - "keywords": ["abstractions", "contracts", "decoupling", "interfaces", "interoperability", "standards"], - "homepage": "https://symfony.com", - "license": "MIT", - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "require": { - "php": ">=8.1" - }, - "autoload": { - "psr-4": { "Symfony\\Contracts\\Translation\\": "" }, - "exclude-from-classmap": [ - "/Test/" - ] - }, - "minimum-stability": "dev", - "extra": { - "branch-alias": { - "dev-main": "3.5-dev" - }, - "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" - } - } -} diff --git a/vendor/symfony/translation/CHANGELOG.md b/vendor/symfony/translation/CHANGELOG.md deleted file mode 100644 index 622c7f7..0000000 --- a/vendor/symfony/translation/CHANGELOG.md +++ /dev/null @@ -1,230 +0,0 @@ -CHANGELOG -========= - -7.2 ---- - - * Deprecate `ProviderFactoryTestCase`, extend `AbstractProviderFactoryTestCase` instead - - The `testIncompleteDsnException()` test is no longer provided by default. If you make use of it by implementing the `incompleteDsnProvider()` data providers, - you now need to use the `IncompleteDsnTestTrait`. - - * Make `ProviderFactoryTestCase` and `ProviderTestCase` compatible with PHPUnit 10+ - * Add `lint:translations` command - * Deprecate passing an escape character to `CsvFileLoader::setCsvControl()` - * Make Xliff 2.0 attributes in segment element available as `segment-attributes` - metadata returned by `XliffFileLoader` and make `XliffFileDumper` write them to the file - -7.1 ---- - - * Mark class `DataCollectorTranslator` as `final` - -7.0 ---- - - * Remove `PhpStringTokenParser` - * Remove `PhpExtractor` in favor of `PhpAstExtractor` - -6.4 ---- - - * Give current locale to `LocaleSwitcher::runWithLocale()`'s callback - * Add `--as-tree` option to `translation:pull` command to write YAML messages as a tree-like structure - * [BC BREAK] Add argument `$buildDir` to `DataCollectorTranslator::warmUp()` - * Add `DataCollectorTranslatorPass` and `LoggingTranslatorPass` (moved from `FrameworkBundle`) - * Add `PhraseTranslationProvider` - -6.2.7 ------ - - * [BC BREAK] The following data providers for `ProviderFactoryTestCase` are now static: - `supportsProvider()`, `createProvider()`, `unsupportedSchemeProvider()`and `incompleteDsnProvider()` - * [BC BREAK] `ProviderTestCase::toStringProvider()` is now static - -6.2 ---- - - * Deprecate `PhpStringTokenParser` - * Deprecate `PhpExtractor` in favor of `PhpAstExtractor` - * Add `PhpAstExtractor` (requires [nikic/php-parser](https://github.com/nikic/php-parser) to be installed) - -6.1 ---- - - * Parameters implementing `TranslatableInterface` are processed - * Add the file extension to the `XliffFileDumper` constructor - -5.4 ---- - - * Add `github` format & autodetection to render errors as annotations when - running the XLIFF linter command in a Github Actions environment. - * Translation providers are not experimental anymore - -5.3 ---- - - * Add `translation:pull` and `translation:push` commands to manage translations with third-party providers - * Add `TranslatorBagInterface::getCatalogues` method - * Add support to load XLIFF string in `XliffFileLoader` - -5.2.0 ------ - - * added support for calling `trans` with ICU formatted messages - * added `PseudoLocalizationTranslator` - * added `TranslatableMessage` objects that represent a message that can be translated - * added the `t()` function to easily create `TranslatableMessage` objects - * Added support for extracting messages from `TranslatableMessage` objects - -5.1.0 ------ - - * added support for `name` attribute on `unit` element from xliff2 to be used as a translation key instead of always the `source` element - -5.0.0 ------ - - * removed support for using `null` as the locale in `Translator` - * removed `TranslatorInterface` - * removed `MessageSelector` - * removed `ChoiceMessageFormatterInterface` - * removed `PluralizationRule` - * removed `Interval` - * removed `transChoice()` methods, use the trans() method instead with a %count% parameter - * removed `FileDumper::setBackup()` and `TranslationWriter::disableBackup()` - * removed `MessageFormatter::choiceFormat()` - * added argument `$filename` to `PhpExtractor::parseTokens()` - * removed support for implicit STDIN usage in the `lint:xliff` command, use `lint:xliff -` (append a dash) instead to make it explicit. - -4.4.0 ------ - - * deprecated support for using `null` as the locale in `Translator` - * deprecated accepting STDIN implicitly when using the `lint:xliff` command, use `lint:xliff -` (append a dash) instead to make it explicit. - * Marked the `TranslationDataCollector` class as `@final`. - -4.3.0 ------ - - * Improved Xliff 1.2 loader to load the original file's metadata - * Added `TranslatorPathsPass` - -4.2.0 ------ - - * Started using ICU parent locales as fallback locales. - * allow using the ICU message format using domains with the "+intl-icu" suffix - * deprecated `Translator::transChoice()` in favor of using `Translator::trans()` with a `%count%` parameter - * deprecated `TranslatorInterface` in favor of `Symfony\Contracts\Translation\TranslatorInterface` - * deprecated `MessageSelector`, `Interval` and `PluralizationRules`; use `IdentityTranslator` instead - * Added `IntlFormatter` and `IntlFormatterInterface` - * added support for multiple files and directories in `XliffLintCommand` - * Marked `Translator::getFallbackLocales()` and `TranslationDataCollector::getFallbackLocales()` as internal - -4.1.0 ------ - - * The `FileDumper::setBackup()` method is deprecated. - * The `TranslationWriter::disableBackup()` method is deprecated. - * The `XliffFileDumper` will write "name" on the "unit" node when dumping XLIFF 2.0. - -4.0.0 ------ - - * removed the backup feature of the `FileDumper` class - * removed `TranslationWriter::writeTranslations()` method - * removed support for passing `MessageSelector` instances to the constructor of the `Translator` class - -3.4.0 ------ - - * Added `TranslationDumperPass` - * Added `TranslationExtractorPass` - * Added `TranslatorPass` - * Added `TranslationReader` and `TranslationReaderInterface` - * Added `` section to the Xliff 2.0 dumper. - * Improved Xliff 2.0 loader to load `` section. - * Added `TranslationWriterInterface` - * Deprecated `TranslationWriter::writeTranslations` in favor of `TranslationWriter::write` - * added support for adding custom message formatter and decoupling the default one. - * Added `PhpExtractor` - * Added `PhpStringTokenParser` - -3.2.0 ------ - - * Added support for escaping `|` in plural translations with double pipe. - -3.1.0 ------ - - * Deprecated the backup feature of the file dumper classes. - -3.0.0 ------ - - * removed `FileDumper::format()` method. - * Changed the visibility of the locale property in `Translator` from protected to private. - -2.8.0 ------ - - * deprecated FileDumper::format(), overwrite FileDumper::formatCatalogue() instead. - * deprecated Translator::getMessages(), rely on TranslatorBagInterface::getCatalogue() instead. - * added `FileDumper::formatCatalogue` which allows format the catalogue without dumping it into file. - * added option `json_encoding` to JsonFileDumper - * added options `as_tree`, `inline` to YamlFileDumper - * added support for XLIFF 2.0. - * added support for XLIFF target and tool attributes. - * added message parameters to DataCollectorTranslator. - * [DEPRECATION] The `DiffOperation` class has been deprecated and - will be removed in Symfony 3.0, since its operation has nothing to do with 'diff', - so the class name is misleading. The `TargetOperation` class should be used for - this use-case instead. - -2.7.0 ------ - - * added DataCollectorTranslator for collecting the translated messages. - -2.6.0 ------ - - * added possibility to cache catalogues - * added TranslatorBagInterface - * added LoggingTranslator - * added Translator::getMessages() for retrieving the message catalogue as an array - -2.5.0 ------ - - * added relative file path template to the file dumpers - * added optional backup to the file dumpers - * changed IcuResFileDumper to extend FileDumper - -2.3.0 ------ - - * added classes to make operations on catalogues (like making a diff or a merge on 2 catalogues) - * added Translator::getFallbackLocales() - * deprecated Translator::setFallbackLocale() in favor of the new Translator::setFallbackLocales() method - -2.2.0 ------ - - * QtTranslationsLoader class renamed to QtFileLoader. QtTranslationsLoader is deprecated and will be removed in 2.3. - * [BC BREAK] uniformized the exception thrown by the load() method when an error occurs. The load() method now - throws Symfony\Component\Translation\Exception\NotFoundResourceException when a resource cannot be found - and Symfony\Component\Translation\Exception\InvalidResourceException when a resource is invalid. - * changed the exception class thrown by some load() methods from \RuntimeException to \InvalidArgumentException - (IcuDatFileLoader, IcuResFileLoader and QtFileLoader) - -2.1.0 ------ - - * added support for more than one fallback locale - * added support for extracting translation messages from templates (Twig and PHP) - * added dumpers for translation catalogs - * added support for QT, gettext, and ResourceBundles diff --git a/vendor/symfony/translation/Catalogue/AbstractOperation.php b/vendor/symfony/translation/Catalogue/AbstractOperation.php deleted file mode 100644 index 4e825a2..0000000 --- a/vendor/symfony/translation/Catalogue/AbstractOperation.php +++ /dev/null @@ -1,183 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Catalogue; - -use Symfony\Component\Translation\Exception\InvalidArgumentException; -use Symfony\Component\Translation\Exception\LogicException; -use Symfony\Component\Translation\MessageCatalogue; -use Symfony\Component\Translation\MessageCatalogueInterface; - -/** - * Base catalogues binary operation class. - * - * A catalogue binary operation performs operation on - * source (the left argument) and target (the right argument) catalogues. - * - * @author Jean-François Simon - */ -abstract class AbstractOperation implements OperationInterface -{ - public const OBSOLETE_BATCH = 'obsolete'; - public const NEW_BATCH = 'new'; - public const ALL_BATCH = 'all'; - - protected MessageCatalogue $result; - - /** - * This array stores 'all', 'new' and 'obsolete' messages for all valid domains. - * - * The data structure of this array is as follows: - * - * [ - * 'domain 1' => [ - * 'all' => [...], - * 'new' => [...], - * 'obsolete' => [...] - * ], - * 'domain 2' => [ - * 'all' => [...], - * 'new' => [...], - * 'obsolete' => [...] - * ], - * ... - * ] - * - * @var array The array that stores 'all', 'new' and 'obsolete' messages - */ - protected array $messages; - - private array $domains; - - /** - * @throws LogicException - */ - public function __construct( - protected MessageCatalogueInterface $source, - protected MessageCatalogueInterface $target, - ) { - if ($source->getLocale() !== $target->getLocale()) { - throw new LogicException('Operated catalogues must belong to the same locale.'); - } - - $this->result = new MessageCatalogue($source->getLocale()); - $this->messages = []; - } - - public function getDomains(): array - { - if (!isset($this->domains)) { - $domains = []; - foreach ([$this->source, $this->target] as $catalogue) { - foreach ($catalogue->getDomains() as $domain) { - $domains[$domain] = $domain; - - if ($catalogue->all($domainIcu = $domain.MessageCatalogueInterface::INTL_DOMAIN_SUFFIX)) { - $domains[$domainIcu] = $domainIcu; - } - } - } - - $this->domains = array_values($domains); - } - - return $this->domains; - } - - public function getMessages(string $domain): array - { - if (!\in_array($domain, $this->getDomains(), true)) { - throw new InvalidArgumentException(\sprintf('Invalid domain: "%s".', $domain)); - } - - if (!isset($this->messages[$domain][self::ALL_BATCH])) { - $this->processDomain($domain); - } - - return $this->messages[$domain][self::ALL_BATCH]; - } - - public function getNewMessages(string $domain): array - { - if (!\in_array($domain, $this->getDomains(), true)) { - throw new InvalidArgumentException(\sprintf('Invalid domain: "%s".', $domain)); - } - - if (!isset($this->messages[$domain][self::NEW_BATCH])) { - $this->processDomain($domain); - } - - return $this->messages[$domain][self::NEW_BATCH]; - } - - public function getObsoleteMessages(string $domain): array - { - if (!\in_array($domain, $this->getDomains(), true)) { - throw new InvalidArgumentException(\sprintf('Invalid domain: "%s".', $domain)); - } - - if (!isset($this->messages[$domain][self::OBSOLETE_BATCH])) { - $this->processDomain($domain); - } - - return $this->messages[$domain][self::OBSOLETE_BATCH]; - } - - public function getResult(): MessageCatalogueInterface - { - foreach ($this->getDomains() as $domain) { - if (!isset($this->messages[$domain])) { - $this->processDomain($domain); - } - } - - return $this->result; - } - - /** - * @param self::*_BATCH $batch - */ - public function moveMessagesToIntlDomainsIfPossible(string $batch = self::ALL_BATCH): void - { - // If MessageFormatter class does not exists, intl domains are not supported. - if (!class_exists(\MessageFormatter::class)) { - return; - } - - foreach ($this->getDomains() as $domain) { - $intlDomain = $domain.MessageCatalogueInterface::INTL_DOMAIN_SUFFIX; - $messages = match ($batch) { - self::OBSOLETE_BATCH => $this->getObsoleteMessages($domain), - self::NEW_BATCH => $this->getNewMessages($domain), - self::ALL_BATCH => $this->getMessages($domain), - default => throw new \InvalidArgumentException(\sprintf('$batch argument must be one of ["%s", "%s", "%s"].', self::ALL_BATCH, self::NEW_BATCH, self::OBSOLETE_BATCH)), - }; - - if (!$messages || (!$this->source->all($intlDomain) && $this->source->all($domain))) { - continue; - } - - $result = $this->getResult(); - $allIntlMessages = $result->all($intlDomain); - $currentMessages = array_diff_key($messages, $result->all($domain)); - $result->replace($currentMessages, $domain); - $result->replace($allIntlMessages + $messages, $intlDomain); - } - } - - /** - * Performs operation on source and target catalogues for the given domain and - * stores the results. - * - * @param string $domain The domain which the operation will be performed for - */ - abstract protected function processDomain(string $domain): void; -} diff --git a/vendor/symfony/translation/Catalogue/MergeOperation.php b/vendor/symfony/translation/Catalogue/MergeOperation.php deleted file mode 100644 index e242dbe..0000000 --- a/vendor/symfony/translation/Catalogue/MergeOperation.php +++ /dev/null @@ -1,69 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Catalogue; - -use Symfony\Component\Translation\MessageCatalogueInterface; - -/** - * Merge operation between two catalogues as follows: - * all = source ∪ target = {x: x ∈ source ∨ x ∈ target} - * new = all ∖ source = {x: x ∈ target ∧ x ∉ source} - * obsolete = source ∖ all = {x: x ∈ source ∧ x ∉ source ∧ x ∉ target} = ∅ - * Basically, the result contains messages from both catalogues. - * - * @author Jean-François Simon - */ -class MergeOperation extends AbstractOperation -{ - protected function processDomain(string $domain): void - { - $this->messages[$domain] = [ - 'all' => [], - 'new' => [], - 'obsolete' => [], - ]; - $intlDomain = $domain.MessageCatalogueInterface::INTL_DOMAIN_SUFFIX; - - foreach ($this->target->getCatalogueMetadata('', $domain) ?? [] as $key => $value) { - if (null === $this->result->getCatalogueMetadata($key, $domain)) { - $this->result->setCatalogueMetadata($key, $value, $domain); - } - } - - foreach ($this->target->getCatalogueMetadata('', $intlDomain) ?? [] as $key => $value) { - if (null === $this->result->getCatalogueMetadata($key, $intlDomain)) { - $this->result->setCatalogueMetadata($key, $value, $intlDomain); - } - } - - foreach ($this->source->all($domain) as $id => $message) { - $this->messages[$domain]['all'][$id] = $message; - $d = $this->source->defines($id, $intlDomain) ? $intlDomain : $domain; - $this->result->add([$id => $message], $d); - if (null !== $keyMetadata = $this->source->getMetadata($id, $d)) { - $this->result->setMetadata($id, $keyMetadata, $d); - } - } - - foreach ($this->target->all($domain) as $id => $message) { - if (!$this->source->has($id, $domain)) { - $this->messages[$domain]['all'][$id] = $message; - $this->messages[$domain]['new'][$id] = $message; - $d = $this->target->defines($id, $intlDomain) ? $intlDomain : $domain; - $this->result->add([$id => $message], $d); - if (null !== $keyMetadata = $this->target->getMetadata($id, $d)) { - $this->result->setMetadata($id, $keyMetadata, $d); - } - } - } - } -} diff --git a/vendor/symfony/translation/Catalogue/OperationInterface.php b/vendor/symfony/translation/Catalogue/OperationInterface.php deleted file mode 100644 index 1fe9534..0000000 --- a/vendor/symfony/translation/Catalogue/OperationInterface.php +++ /dev/null @@ -1,61 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Catalogue; - -use Symfony\Component\Translation\MessageCatalogueInterface; - -/** - * Represents an operation on catalogue(s). - * - * An instance of this interface performs an operation on one or more catalogues and - * stores intermediate and final results of the operation. - * - * The first catalogue in its argument(s) is called the 'source catalogue' or 'source' and - * the following results are stored: - * - * Messages: also called 'all', are valid messages for the given domain after the operation is performed. - * - * New Messages: also called 'new' (new = all ∖ source = {x: x ∈ all ∧ x ∉ source}). - * - * Obsolete Messages: also called 'obsolete' (obsolete = source ∖ all = {x: x ∈ source ∧ x ∉ all}). - * - * Result: also called 'result', is the resulting catalogue for the given domain that holds the same messages as 'all'. - * - * @author Jean-François Simon - */ -interface OperationInterface -{ - /** - * Returns domains affected by operation. - */ - public function getDomains(): array; - - /** - * Returns all valid messages ('all') after operation. - */ - public function getMessages(string $domain): array; - - /** - * Returns new messages ('new') after operation. - */ - public function getNewMessages(string $domain): array; - - /** - * Returns obsolete messages ('obsolete') after operation. - */ - public function getObsoleteMessages(string $domain): array; - - /** - * Returns resulting catalogue ('result'). - */ - public function getResult(): MessageCatalogueInterface; -} diff --git a/vendor/symfony/translation/Catalogue/TargetOperation.php b/vendor/symfony/translation/Catalogue/TargetOperation.php deleted file mode 100644 index e3e0878..0000000 --- a/vendor/symfony/translation/Catalogue/TargetOperation.php +++ /dev/null @@ -1,83 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Catalogue; - -use Symfony\Component\Translation\MessageCatalogueInterface; - -/** - * Target operation between two catalogues: - * intersection = source ∩ target = {x: x ∈ source ∧ x ∈ target} - * all = intersection ∪ (target ∖ intersection) = target - * new = all ∖ source = {x: x ∈ target ∧ x ∉ source} - * obsolete = source ∖ all = source ∖ target = {x: x ∈ source ∧ x ∉ target} - * Basically, the result contains messages from the target catalogue. - * - * @author Michael Lee - */ -class TargetOperation extends AbstractOperation -{ - protected function processDomain(string $domain): void - { - $this->messages[$domain] = [ - 'all' => [], - 'new' => [], - 'obsolete' => [], - ]; - $intlDomain = $domain.MessageCatalogueInterface::INTL_DOMAIN_SUFFIX; - - foreach ($this->target->getCatalogueMetadata('', $domain) ?? [] as $key => $value) { - if (null === $this->result->getCatalogueMetadata($key, $domain)) { - $this->result->setCatalogueMetadata($key, $value, $domain); - } - } - - foreach ($this->target->getCatalogueMetadata('', $intlDomain) ?? [] as $key => $value) { - if (null === $this->result->getCatalogueMetadata($key, $intlDomain)) { - $this->result->setCatalogueMetadata($key, $value, $intlDomain); - } - } - - // For 'all' messages, the code can't be simplified as ``$this->messages[$domain]['all'] = $target->all($domain);``, - // because doing so will drop messages like {x: x ∈ source ∧ x ∉ target.all ∧ x ∈ target.fallback} - // - // For 'new' messages, the code can't be simplified as ``array_diff_assoc($this->target->all($domain), $this->source->all($domain));`` - // because doing so will not exclude messages like {x: x ∈ target ∧ x ∉ source.all ∧ x ∈ source.fallback} - // - // For 'obsolete' messages, the code can't be simplified as ``array_diff_assoc($this->source->all($domain), $this->target->all($domain))`` - // because doing so will not exclude messages like {x: x ∈ source ∧ x ∉ target.all ∧ x ∈ target.fallback} - - foreach ($this->source->all($domain) as $id => $message) { - if ($this->target->has($id, $domain)) { - $this->messages[$domain]['all'][$id] = $message; - $d = $this->source->defines($id, $intlDomain) ? $intlDomain : $domain; - $this->result->add([$id => $message], $d); - if (null !== $keyMetadata = $this->source->getMetadata($id, $d)) { - $this->result->setMetadata($id, $keyMetadata, $d); - } - } else { - $this->messages[$domain]['obsolete'][$id] = $message; - } - } - - foreach ($this->target->all($domain) as $id => $message) { - if (!$this->source->has($id, $domain)) { - $this->messages[$domain]['all'][$id] = $message; - $this->messages[$domain]['new'][$id] = $message; - $d = $this->target->defines($id, $intlDomain) ? $intlDomain : $domain; - $this->result->add([$id => $message], $d); - if (null !== $keyMetadata = $this->target->getMetadata($id, $d)) { - $this->result->setMetadata($id, $keyMetadata, $d); - } - } - } - } -} diff --git a/vendor/symfony/translation/CatalogueMetadataAwareInterface.php b/vendor/symfony/translation/CatalogueMetadataAwareInterface.php deleted file mode 100644 index 19965ea..0000000 --- a/vendor/symfony/translation/CatalogueMetadataAwareInterface.php +++ /dev/null @@ -1,44 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation; - -/** - * This interface is used to get, set, and delete metadata about the Catalogue. - * - * @author Hugo Alliaume - */ -interface CatalogueMetadataAwareInterface -{ - /** - * Gets catalogue metadata for the given domain and key. - * - * Passing an empty domain will return an array with all catalogue metadata indexed by - * domain and then by key. Passing an empty key will return an array with all - * catalogue metadata for the given domain. - * - * @return mixed The value that was set or an array with the domains/keys or null - */ - public function getCatalogueMetadata(string $key = '', string $domain = 'messages'): mixed; - - /** - * Adds catalogue metadata to a message domain. - */ - public function setCatalogueMetadata(string $key, mixed $value, string $domain = 'messages'): void; - - /** - * Deletes catalogue metadata for the given key and domain. - * - * Passing an empty domain will delete all catalogue metadata. Passing an empty key will - * delete all metadata for the given domain. - */ - public function deleteCatalogueMetadata(string $key = '', string $domain = 'messages'): void; -} diff --git a/vendor/symfony/translation/Command/TranslationLintCommand.php b/vendor/symfony/translation/Command/TranslationLintCommand.php deleted file mode 100644 index e525fc0..0000000 --- a/vendor/symfony/translation/Command/TranslationLintCommand.php +++ /dev/null @@ -1,129 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Command; - -use Symfony\Component\Console\Attribute\AsCommand; -use Symfony\Component\Console\Command\Command; -use Symfony\Component\Console\Completion\CompletionInput; -use Symfony\Component\Console\Completion\CompletionSuggestions; -use Symfony\Component\Console\Input\InputInterface; -use Symfony\Component\Console\Input\InputOption; -use Symfony\Component\Console\Output\OutputInterface; -use Symfony\Component\Console\Style\SymfonyStyle; -use Symfony\Component\Translation\Exception\ExceptionInterface; -use Symfony\Component\Translation\TranslatorBagInterface; -use Symfony\Contracts\Translation\TranslatorInterface; - -/** - * Lint translations files syntax and outputs encountered errors. - * - * @author Hugo Alliaume - */ -#[AsCommand(name: 'lint:translations', description: 'Lint translations files syntax and outputs encountered errors')] -class TranslationLintCommand extends Command -{ - private SymfonyStyle $io; - - public function __construct( - private TranslatorInterface&TranslatorBagInterface $translator, - private array $enabledLocales = [], - ) { - parent::__construct(); - } - - public function complete(CompletionInput $input, CompletionSuggestions $suggestions): void - { - if ($input->mustSuggestOptionValuesFor('locale')) { - $suggestions->suggestValues($this->enabledLocales); - } - } - - protected function configure(): void - { - $this - ->setDefinition([ - new InputOption('locale', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Specify the locales to lint.', $this->enabledLocales), - ]) - ->setHelp(<<<'EOF' -The %command.name% command lint translations. - - php %command.full_name% -EOF - ); - } - - protected function initialize(InputInterface $input, OutputInterface $output): void - { - $this->io = new SymfonyStyle($input, $output); - } - - protected function execute(InputInterface $input, OutputInterface $output): int - { - $locales = $input->getOption('locale'); - - /** @var array> $errors */ - $errors = []; - $domainsByLocales = []; - - foreach ($locales as $locale) { - $messageCatalogue = $this->translator->getCatalogue($locale); - - foreach ($domainsByLocales[$locale] = $messageCatalogue->getDomains() as $domain) { - foreach ($messageCatalogue->all($domain) as $id => $translation) { - try { - $this->translator->trans($id, [], $domain, $messageCatalogue->getLocale()); - } catch (ExceptionInterface $e) { - $errors[$locale][$domain][$id] = $e; - } - } - } - } - - if (!$domainsByLocales) { - $this->io->error('No translation files were found.'); - - return Command::SUCCESS; - } - - $this->io->table( - ['Locale', 'Domains', 'Valid?'], - array_map( - static fn (string $locale, array $domains) => [ - $locale, - implode(', ', $domains), - !\array_key_exists($locale, $errors) ? 'Yes' : 'No', - ], - array_keys($domainsByLocales), - $domainsByLocales - ), - ); - - if ($errors) { - foreach ($errors as $locale => $domains) { - foreach ($domains as $domain => $domainsErrors) { - $this->io->section(\sprintf('Errors for locale "%s" and domain "%s"', $locale, $domain)); - - foreach ($domainsErrors as $id => $error) { - $this->io->text(\sprintf('Translation key "%s" is invalid:', $id)); - $this->io->error($error->getMessage()); - } - } - } - - return Command::FAILURE; - } - - $this->io->success('All translations are valid.'); - - return Command::SUCCESS; - } -} diff --git a/vendor/symfony/translation/Command/TranslationPullCommand.php b/vendor/symfony/translation/Command/TranslationPullCommand.php deleted file mode 100644 index ad42716..0000000 --- a/vendor/symfony/translation/Command/TranslationPullCommand.php +++ /dev/null @@ -1,176 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Command; - -use Symfony\Component\Console\Attribute\AsCommand; -use Symfony\Component\Console\Command\Command; -use Symfony\Component\Console\Completion\CompletionInput; -use Symfony\Component\Console\Completion\CompletionSuggestions; -use Symfony\Component\Console\Input\InputArgument; -use Symfony\Component\Console\Input\InputInterface; -use Symfony\Component\Console\Input\InputOption; -use Symfony\Component\Console\Output\OutputInterface; -use Symfony\Component\Console\Style\SymfonyStyle; -use Symfony\Component\Translation\Catalogue\TargetOperation; -use Symfony\Component\Translation\MessageCatalogue; -use Symfony\Component\Translation\Provider\TranslationProviderCollection; -use Symfony\Component\Translation\Reader\TranslationReaderInterface; -use Symfony\Component\Translation\Writer\TranslationWriterInterface; - -/** - * @author Mathieu Santostefano - */ -#[AsCommand(name: 'translation:pull', description: 'Pull translations from a given provider.')] -final class TranslationPullCommand extends Command -{ - use TranslationTrait; - - public function __construct( - private TranslationProviderCollection $providerCollection, - private TranslationWriterInterface $writer, - private TranslationReaderInterface $reader, - private string $defaultLocale, - private array $transPaths = [], - private array $enabledLocales = [], - ) { - parent::__construct(); - } - - public function complete(CompletionInput $input, CompletionSuggestions $suggestions): void - { - if ($input->mustSuggestArgumentValuesFor('provider')) { - $suggestions->suggestValues($this->providerCollection->keys()); - - return; - } - - if ($input->mustSuggestOptionValuesFor('domains')) { - $provider = $this->providerCollection->get($input->getArgument('provider')); - - if (method_exists($provider, 'getDomains')) { - $suggestions->suggestValues($provider->getDomains()); - } - - return; - } - - if ($input->mustSuggestOptionValuesFor('locales')) { - $suggestions->suggestValues($this->enabledLocales); - - return; - } - - if ($input->mustSuggestOptionValuesFor('format')) { - $suggestions->suggestValues(['php', 'xlf', 'xlf12', 'xlf20', 'po', 'mo', 'yml', 'yaml', 'ts', 'csv', 'json', 'ini', 'res']); - } - } - - protected function configure(): void - { - $keys = $this->providerCollection->keys(); - $defaultProvider = 1 === \count($keys) ? $keys[0] : null; - - $this - ->setDefinition([ - new InputArgument('provider', null !== $defaultProvider ? InputArgument::OPTIONAL : InputArgument::REQUIRED, 'The provider to pull translations from.', $defaultProvider), - new InputOption('force', null, InputOption::VALUE_NONE, 'Override existing translations with provider ones (it will delete not synchronized messages).'), - new InputOption('intl-icu', null, InputOption::VALUE_NONE, 'Associated to --force option, it will write messages in "%domain%+intl-icu.%locale%.xlf" files.'), - new InputOption('domains', null, InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY, 'Specify the domains to pull.'), - new InputOption('locales', null, InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY, 'Specify the locales to pull.'), - new InputOption('format', null, InputOption::VALUE_OPTIONAL, 'Override the default output format.', 'xlf12'), - new InputOption('as-tree', null, InputOption::VALUE_OPTIONAL, 'Write messages as a tree-like structure. Needs --format=yaml. The given value defines the level where to switch to inline YAML'), - ]) - ->setHelp(<<<'EOF' -The %command.name% command pulls translations from the given provider. Only -new translations are pulled, existing ones are not overwritten. - -You can overwrite existing translations (and remove the missing ones on local side) by using the --force flag: - - php %command.full_name% --force provider - -Full example: - - php %command.full_name% provider --force --domains=messages --domains=validators --locales=en - -This command pulls all translations associated with the messages and validators domains for the en locale. -Local translations for the specified domains and locale are deleted if they're not present on the provider and overwritten if it's the case. -Local translations for others domains and locales are ignored. -EOF - ) - ; - } - - protected function execute(InputInterface $input, OutputInterface $output): int - { - $io = new SymfonyStyle($input, $output); - - $provider = $this->providerCollection->get($input->getArgument('provider')); - $force = $input->getOption('force'); - $intlIcu = $input->getOption('intl-icu'); - $locales = $input->getOption('locales') ?: $this->enabledLocales; - $domains = $input->getOption('domains'); - $format = $input->getOption('format'); - $asTree = (int) $input->getOption('as-tree'); - $xliffVersion = '1.2'; - - if ($intlIcu && !$force) { - $io->note('--intl-icu option only has an effect when used with --force. Here, it will be ignored.'); - } - - switch ($format) { - case 'xlf20': $xliffVersion = '2.0'; - // no break - case 'xlf12': $format = 'xlf'; - } - - $writeOptions = [ - 'path' => end($this->transPaths), - 'xliff_version' => $xliffVersion, - 'default_locale' => $this->defaultLocale, - 'as_tree' => (bool) $asTree, - 'inline' => $asTree, - ]; - - if (!$domains) { - $domains = $provider->getDomains(); - } - - $providerTranslations = $provider->read($domains, $locales); - - if ($force) { - foreach ($providerTranslations->getCatalogues() as $catalogue) { - $operation = new TargetOperation(new MessageCatalogue($catalogue->getLocale()), $catalogue); - if ($intlIcu) { - $operation->moveMessagesToIntlDomainsIfPossible(); - } - $this->writer->write($operation->getResult(), $format, $writeOptions); - } - - $io->success(\sprintf('Local translations has been updated from "%s" (for "%s" locale(s), and "%s" domain(s)).', parse_url($provider, \PHP_URL_SCHEME), implode(', ', $locales), implode(', ', $domains))); - - return 0; - } - - $localTranslations = $this->readLocalTranslations($locales, $domains, $this->transPaths); - - // Append pulled translations to local ones. - $localTranslations->addBag($providerTranslations->diff($localTranslations)); - - foreach ($localTranslations->getCatalogues() as $catalogue) { - $this->writer->write($catalogue, $format, $writeOptions); - } - - $io->success(\sprintf('New translations from "%s" has been written locally (for "%s" locale(s), and "%s" domain(s)).', parse_url($provider, \PHP_URL_SCHEME), implode(', ', $locales), implode(', ', $domains))); - - return 0; - } -} diff --git a/vendor/symfony/translation/Command/TranslationPushCommand.php b/vendor/symfony/translation/Command/TranslationPushCommand.php deleted file mode 100644 index b1cdc5f..0000000 --- a/vendor/symfony/translation/Command/TranslationPushCommand.php +++ /dev/null @@ -1,176 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Command; - -use Symfony\Component\Console\Attribute\AsCommand; -use Symfony\Component\Console\Command\Command; -use Symfony\Component\Console\Completion\CompletionInput; -use Symfony\Component\Console\Completion\CompletionSuggestions; -use Symfony\Component\Console\Exception\InvalidArgumentException; -use Symfony\Component\Console\Input\InputArgument; -use Symfony\Component\Console\Input\InputInterface; -use Symfony\Component\Console\Input\InputOption; -use Symfony\Component\Console\Output\OutputInterface; -use Symfony\Component\Console\Style\SymfonyStyle; -use Symfony\Component\Translation\Provider\FilteringProvider; -use Symfony\Component\Translation\Provider\TranslationProviderCollection; -use Symfony\Component\Translation\Reader\TranslationReaderInterface; -use Symfony\Component\Translation\TranslatorBag; - -/** - * @author Mathieu Santostefano - */ -#[AsCommand(name: 'translation:push', description: 'Push translations to a given provider.')] -final class TranslationPushCommand extends Command -{ - use TranslationTrait; - - public function __construct( - private TranslationProviderCollection $providers, - private TranslationReaderInterface $reader, - private array $transPaths = [], - private array $enabledLocales = [], - ) { - parent::__construct(); - } - - public function complete(CompletionInput $input, CompletionSuggestions $suggestions): void - { - if ($input->mustSuggestArgumentValuesFor('provider')) { - $suggestions->suggestValues($this->providers->keys()); - - return; - } - - if ($input->mustSuggestOptionValuesFor('domains')) { - $provider = $this->providers->get($input->getArgument('provider')); - - if (method_exists($provider, 'getDomains')) { - $domains = $provider->getDomains(); - $suggestions->suggestValues($domains); - } - - return; - } - - if ($input->mustSuggestOptionValuesFor('locales')) { - $suggestions->suggestValues($this->enabledLocales); - } - } - - protected function configure(): void - { - $keys = $this->providers->keys(); - $defaultProvider = 1 === \count($keys) ? $keys[0] : null; - - $this - ->setDefinition([ - new InputArgument('provider', null !== $defaultProvider ? InputArgument::OPTIONAL : InputArgument::REQUIRED, 'The provider to push translations to.', $defaultProvider), - new InputOption('force', null, InputOption::VALUE_NONE, 'Override existing translations with local ones (it will delete not synchronized messages).'), - new InputOption('delete-missing', null, InputOption::VALUE_NONE, 'Delete translations available on provider but not locally.'), - new InputOption('domains', null, InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY, 'Specify the domains to push.'), - new InputOption('locales', null, InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY, 'Specify the locales to push.', $this->enabledLocales), - ]) - ->setHelp(<<<'EOF' -The %command.name% command pushes translations to the given provider. Only new -translations are pushed, existing ones are not overwritten. - -You can overwrite existing translations by using the --force flag: - - php %command.full_name% --force provider - -You can delete provider translations which are not present locally by using the --delete-missing flag: - - php %command.full_name% --delete-missing provider - -Full example: - - php %command.full_name% provider --force --delete-missing --domains=messages --domains=validators --locales=en - -This command pushes all translations associated with the messages and validators domains for the en locale. -Provider translations for the specified domains and locale are deleted if they're not present locally and overwritten if it's the case. -Provider translations for others domains and locales are ignored. -EOF - ) - ; - } - - protected function execute(InputInterface $input, OutputInterface $output): int - { - $provider = $this->providers->get($input->getArgument('provider')); - - if (!$this->enabledLocales) { - throw new InvalidArgumentException(\sprintf('You must define "framework.enabled_locales" or "framework.translator.providers.%s.locales" config key in order to work with translation providers.', parse_url($provider, \PHP_URL_SCHEME))); - } - - $io = new SymfonyStyle($input, $output); - $domains = $input->getOption('domains'); - $locales = $input->getOption('locales'); - $force = $input->getOption('force'); - $deleteMissing = $input->getOption('delete-missing'); - - if (!$domains && $provider instanceof FilteringProvider) { - $domains = $provider->getDomains(); - } - - // Reading local translations must be done after retrieving the domains from the provider - // in order to manage only translations from configured domains - $localTranslations = $this->readLocalTranslations($locales, $domains, $this->transPaths); - - if (!$domains) { - $domains = $this->getDomainsFromTranslatorBag($localTranslations); - } - - if (!$deleteMissing && $force) { - $provider->write($localTranslations); - - $io->success(\sprintf('All local translations has been sent to "%s" (for "%s" locale(s), and "%s" domain(s)).', parse_url($provider, \PHP_URL_SCHEME), implode(', ', $locales), implode(', ', $domains))); - - return 0; - } - - $providerTranslations = $provider->read($domains, $locales); - - if ($deleteMissing) { - $provider->delete($providerTranslations->diff($localTranslations)); - - $io->success(\sprintf('Missing translations on "%s" has been deleted (for "%s" locale(s), and "%s" domain(s)).', parse_url($provider, \PHP_URL_SCHEME), implode(', ', $locales), implode(', ', $domains))); - - // Read provider translations again, after missing translations deletion, - // to avoid push freshly deleted translations. - $providerTranslations = $provider->read($domains, $locales); - } - - $translationsToWrite = $localTranslations->diff($providerTranslations); - - if ($force) { - $translationsToWrite->addBag($localTranslations->intersect($providerTranslations)); - } - - $provider->write($translationsToWrite); - - $io->success(\sprintf('%s local translations has been sent to "%s" (for "%s" locale(s), and "%s" domain(s)).', $force ? 'All' : 'New', parse_url($provider, \PHP_URL_SCHEME), implode(', ', $locales), implode(', ', $domains))); - - return 0; - } - - private function getDomainsFromTranslatorBag(TranslatorBag $translatorBag): array - { - $domains = []; - - foreach ($translatorBag->getCatalogues() as $catalogue) { - $domains += $catalogue->getDomains(); - } - - return array_unique($domains); - } -} diff --git a/vendor/symfony/translation/Command/TranslationTrait.php b/vendor/symfony/translation/Command/TranslationTrait.php deleted file mode 100644 index eafaffd..0000000 --- a/vendor/symfony/translation/Command/TranslationTrait.php +++ /dev/null @@ -1,77 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Command; - -use Symfony\Component\Translation\MessageCatalogue; -use Symfony\Component\Translation\MessageCatalogueInterface; -use Symfony\Component\Translation\TranslatorBag; - -/** - * @internal - */ -trait TranslationTrait -{ - private function readLocalTranslations(array $locales, array $domains, array $transPaths): TranslatorBag - { - $bag = new TranslatorBag(); - - foreach ($locales as $locale) { - $catalogue = new MessageCatalogue($locale); - foreach ($transPaths as $path) { - $this->reader->read($path, $catalogue); - } - - if ($domains) { - foreach ($domains as $domain) { - $bag->addCatalogue($this->filterCatalogue($catalogue, $domain)); - } - } else { - $bag->addCatalogue($catalogue); - } - } - - return $bag; - } - - private function filterCatalogue(MessageCatalogue $catalogue, string $domain): MessageCatalogue - { - $filteredCatalogue = new MessageCatalogue($catalogue->getLocale()); - - // extract intl-icu messages only - $intlDomain = $domain.MessageCatalogueInterface::INTL_DOMAIN_SUFFIX; - if ($intlMessages = $catalogue->all($intlDomain)) { - $filteredCatalogue->add($intlMessages, $intlDomain); - } - - // extract all messages and subtract intl-icu messages - if ($messages = array_diff($catalogue->all($domain), $intlMessages)) { - $filteredCatalogue->add($messages, $domain); - } - foreach ($catalogue->getResources() as $resource) { - $filteredCatalogue->addResource($resource); - } - - if ($metadata = $catalogue->getMetadata('', $intlDomain)) { - foreach ($metadata as $k => $v) { - $filteredCatalogue->setMetadata($k, $v, $intlDomain); - } - } - - if ($metadata = $catalogue->getMetadata('', $domain)) { - foreach ($metadata as $k => $v) { - $filteredCatalogue->setMetadata($k, $v, $domain); - } - } - - return $filteredCatalogue; - } -} diff --git a/vendor/symfony/translation/Command/XliffLintCommand.php b/vendor/symfony/translation/Command/XliffLintCommand.php deleted file mode 100644 index 82a9571..0000000 --- a/vendor/symfony/translation/Command/XliffLintCommand.php +++ /dev/null @@ -1,288 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Command; - -use Symfony\Component\Console\Attribute\AsCommand; -use Symfony\Component\Console\CI\GithubActionReporter; -use Symfony\Component\Console\Command\Command; -use Symfony\Component\Console\Completion\CompletionInput; -use Symfony\Component\Console\Completion\CompletionSuggestions; -use Symfony\Component\Console\Exception\RuntimeException; -use Symfony\Component\Console\Input\InputArgument; -use Symfony\Component\Console\Input\InputInterface; -use Symfony\Component\Console\Input\InputOption; -use Symfony\Component\Console\Output\OutputInterface; -use Symfony\Component\Console\Style\SymfonyStyle; -use Symfony\Component\Translation\Exception\InvalidArgumentException; -use Symfony\Component\Translation\Util\XliffUtils; - -/** - * Validates XLIFF files syntax and outputs encountered errors. - * - * @author Grégoire Pineau - * @author Robin Chalas - * @author Javier Eguiluz - */ -#[AsCommand(name: 'lint:xliff', description: 'Lint an XLIFF file and outputs encountered errors')] -class XliffLintCommand extends Command -{ - private string $format; - private bool $displayCorrectFiles; - private ?\Closure $directoryIteratorProvider; - private ?\Closure $isReadableProvider; - - public function __construct( - ?string $name = null, - ?callable $directoryIteratorProvider = null, - ?callable $isReadableProvider = null, - private bool $requireStrictFileNames = true, - ) { - parent::__construct($name); - - $this->directoryIteratorProvider = null === $directoryIteratorProvider ? null : $directoryIteratorProvider(...); - $this->isReadableProvider = null === $isReadableProvider ? null : $isReadableProvider(...); - } - - protected function configure(): void - { - $this - ->addArgument('filename', InputArgument::IS_ARRAY, 'A file, a directory or "-" for reading from STDIN') - ->addOption('format', null, InputOption::VALUE_REQUIRED, \sprintf('The output format ("%s")', implode('", "', $this->getAvailableFormatOptions()))) - ->setHelp(<<%command.name% command lints an XLIFF file and outputs to STDOUT -the first encountered syntax error. - -You can validates XLIFF contents passed from STDIN: - - cat filename | php %command.full_name% - - -You can also validate the syntax of a file: - - php %command.full_name% filename - -Or of a whole directory: - - php %command.full_name% dirname - -The --format option specifies the format of the command output: - - php %command.full_name% dirname --format=json - -EOF - ) - ; - } - - protected function execute(InputInterface $input, OutputInterface $output): int - { - $io = new SymfonyStyle($input, $output); - $filenames = (array) $input->getArgument('filename'); - $this->format = $input->getOption('format') ?? (GithubActionReporter::isGithubActionEnvironment() ? 'github' : 'txt'); - $this->displayCorrectFiles = $output->isVerbose(); - - if (['-'] === $filenames) { - return $this->display($io, [$this->validate(file_get_contents('php://stdin'))]); - } - - if (!$filenames) { - throw new RuntimeException('Please provide a filename or pipe file content to STDIN.'); - } - - $filesInfo = []; - foreach ($filenames as $filename) { - if (!$this->isReadable($filename)) { - throw new RuntimeException(\sprintf('File or directory "%s" is not readable.', $filename)); - } - - foreach ($this->getFiles($filename) as $file) { - $filesInfo[] = $this->validate(file_get_contents($file), $file); - } - } - - return $this->display($io, $filesInfo); - } - - private function validate(string $content, ?string $file = null): array - { - $errors = []; - - // Avoid: Warning DOMDocument::loadXML(): Empty string supplied as input - if ('' === trim($content)) { - return ['file' => $file, 'valid' => true]; - } - - $internal = libxml_use_internal_errors(true); - - $document = new \DOMDocument(); - $document->loadXML($content); - - if (null !== $targetLanguage = $this->getTargetLanguageFromFile($document)) { - $normalizedLocalePattern = \sprintf('(%s|%s)', preg_quote($targetLanguage, '/'), preg_quote(str_replace('-', '_', $targetLanguage), '/')); - // strict file names require translation files to be named '____.locale.xlf' - // otherwise, both '____.locale.xlf' and 'locale.____.xlf' are allowed - // also, the regexp matching must be case-insensitive, as defined for 'target-language' values - // http://docs.oasis-open.org/xliff/v1.2/os/xliff-core.html#target-language - $expectedFilenamePattern = $this->requireStrictFileNames ? \sprintf('/^.*\.(?i:%s)\.(?:xlf|xliff)/', $normalizedLocalePattern) : \sprintf('/^(?:.*\.(?i:%s)|(?i:%s)\..*)\.(?:xlf|xliff)/', $normalizedLocalePattern, $normalizedLocalePattern); - - if (0 === preg_match($expectedFilenamePattern, basename($file))) { - $errors[] = [ - 'line' => -1, - 'column' => -1, - 'message' => \sprintf('There is a mismatch between the language included in the file name ("%s") and the "%s" value used in the "target-language" attribute of the file.', basename($file), $targetLanguage), - ]; - } - } - - foreach (XliffUtils::validateSchema($document) as $xmlError) { - $errors[] = [ - 'line' => $xmlError['line'], - 'column' => $xmlError['column'], - 'message' => $xmlError['message'], - ]; - } - - libxml_clear_errors(); - libxml_use_internal_errors($internal); - - return ['file' => $file, 'valid' => 0 === \count($errors), 'messages' => $errors]; - } - - private function display(SymfonyStyle $io, array $files): int - { - return match ($this->format) { - 'txt' => $this->displayTxt($io, $files), - 'json' => $this->displayJson($io, $files), - 'github' => $this->displayTxt($io, $files, true), - default => throw new InvalidArgumentException(\sprintf('Supported formats are "%s".', implode('", "', $this->getAvailableFormatOptions()))), - }; - } - - private function displayTxt(SymfonyStyle $io, array $filesInfo, bool $errorAsGithubAnnotations = false): int - { - $countFiles = \count($filesInfo); - $erroredFiles = 0; - $githubReporter = $errorAsGithubAnnotations ? new GithubActionReporter($io) : null; - - foreach ($filesInfo as $info) { - if ($info['valid'] && $this->displayCorrectFiles) { - $io->comment('OK'.($info['file'] ? \sprintf(' in %s', $info['file']) : '')); - } elseif (!$info['valid']) { - ++$erroredFiles; - $io->text(' ERROR '.($info['file'] ? \sprintf(' in %s', $info['file']) : '')); - $io->listing(array_map(function ($error) use ($info, $githubReporter) { - // general document errors have a '-1' line number - $line = -1 === $error['line'] ? null : $error['line']; - - $githubReporter?->error($error['message'], $info['file'], $line, null !== $line ? $error['column'] : null); - - return null === $line ? $error['message'] : \sprintf('Line %d, Column %d: %s', $line, $error['column'], $error['message']); - }, $info['messages'])); - } - } - - if (0 === $erroredFiles) { - $io->success(\sprintf('All %d XLIFF files contain valid syntax.', $countFiles)); - } else { - $io->warning(\sprintf('%d XLIFF files have valid syntax and %d contain errors.', $countFiles - $erroredFiles, $erroredFiles)); - } - - return min($erroredFiles, 1); - } - - private function displayJson(SymfonyStyle $io, array $filesInfo): int - { - $errors = 0; - - array_walk($filesInfo, function (&$v) use (&$errors) { - $v['file'] = (string) $v['file']; - if (!$v['valid']) { - ++$errors; - } - }); - - $io->writeln(json_encode($filesInfo, \JSON_PRETTY_PRINT | \JSON_UNESCAPED_SLASHES)); - - return min($errors, 1); - } - - /** - * @return iterable<\SplFileInfo> - */ - private function getFiles(string $fileOrDirectory): iterable - { - if (is_file($fileOrDirectory)) { - yield new \SplFileInfo($fileOrDirectory); - - return; - } - - foreach ($this->getDirectoryIterator($fileOrDirectory) as $file) { - if (!\in_array($file->getExtension(), ['xlf', 'xliff'])) { - continue; - } - - yield $file; - } - } - - /** - * @return iterable<\SplFileInfo> - */ - private function getDirectoryIterator(string $directory): iterable - { - $default = fn ($directory) => new \RecursiveIteratorIterator( - new \RecursiveDirectoryIterator($directory, \FilesystemIterator::SKIP_DOTS | \FilesystemIterator::FOLLOW_SYMLINKS), - \RecursiveIteratorIterator::LEAVES_ONLY - ); - - if (null !== $this->directoryIteratorProvider) { - return ($this->directoryIteratorProvider)($directory, $default); - } - - return $default($directory); - } - - private function isReadable(string $fileOrDirectory): bool - { - $default = fn ($fileOrDirectory) => is_readable($fileOrDirectory); - - if (null !== $this->isReadableProvider) { - return ($this->isReadableProvider)($fileOrDirectory, $default); - } - - return $default($fileOrDirectory); - } - - private function getTargetLanguageFromFile(\DOMDocument $xliffContents): ?string - { - foreach ($xliffContents->getElementsByTagName('file')[0]->attributes ?? [] as $attribute) { - if ('target-language' === $attribute->nodeName) { - return $attribute->nodeValue; - } - } - - return null; - } - - public function complete(CompletionInput $input, CompletionSuggestions $suggestions): void - { - if ($input->mustSuggestOptionValuesFor('format')) { - $suggestions->suggestValues($this->getAvailableFormatOptions()); - } - } - - /** @return string[] */ - private function getAvailableFormatOptions(): array - { - return ['txt', 'json', 'github']; - } -} diff --git a/vendor/symfony/translation/DataCollector/TranslationDataCollector.php b/vendor/symfony/translation/DataCollector/TranslationDataCollector.php deleted file mode 100644 index e6bd619..0000000 --- a/vendor/symfony/translation/DataCollector/TranslationDataCollector.php +++ /dev/null @@ -1,146 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\DataCollector; - -use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\DataCollector\DataCollector; -use Symfony\Component\HttpKernel\DataCollector\LateDataCollectorInterface; -use Symfony\Component\Translation\DataCollectorTranslator; -use Symfony\Component\VarDumper\Cloner\Data; - -/** - * @author Abdellatif Ait boudad - * - * @final - */ -class TranslationDataCollector extends DataCollector implements LateDataCollectorInterface -{ - public function __construct( - private DataCollectorTranslator $translator, - ) { - } - - public function lateCollect(): void - { - $messages = $this->sanitizeCollectedMessages($this->translator->getCollectedMessages()); - - $this->data += $this->computeCount($messages); - $this->data['messages'] = $messages; - - $this->data = $this->cloneVar($this->data); - } - - public function collect(Request $request, Response $response, ?\Throwable $exception = null): void - { - $this->data['locale'] = $this->translator->getLocale(); - $this->data['fallback_locales'] = $this->translator->getFallbackLocales(); - } - - public function reset(): void - { - $this->data = []; - } - - public function getMessages(): array|Data - { - return $this->data['messages'] ?? []; - } - - public function getCountMissings(): int - { - return $this->data[DataCollectorTranslator::MESSAGE_MISSING] ?? 0; - } - - public function getCountFallbacks(): int - { - return $this->data[DataCollectorTranslator::MESSAGE_EQUALS_FALLBACK] ?? 0; - } - - public function getCountDefines(): int - { - return $this->data[DataCollectorTranslator::MESSAGE_DEFINED] ?? 0; - } - - public function getLocale(): ?string - { - return !empty($this->data['locale']) ? $this->data['locale'] : null; - } - - /** - * @internal - */ - public function getFallbackLocales(): Data|array - { - return (isset($this->data['fallback_locales']) && \count($this->data['fallback_locales']) > 0) ? $this->data['fallback_locales'] : []; - } - - public function getName(): string - { - return 'translation'; - } - - private function sanitizeCollectedMessages(array $messages): array - { - $result = []; - foreach ($messages as $key => $message) { - $messageId = $message['locale'].$message['domain'].$message['id']; - - if (!isset($result[$messageId])) { - $message['count'] = 1; - $message['parameters'] = !empty($message['parameters']) ? [$message['parameters']] : []; - $messages[$key]['translation'] = $this->sanitizeString($message['translation']); - $result[$messageId] = $message; - } else { - if (!empty($message['parameters'])) { - $result[$messageId]['parameters'][] = $message['parameters']; - } - - ++$result[$messageId]['count']; - } - - unset($messages[$key]); - } - - return $result; - } - - private function computeCount(array $messages): array - { - $count = [ - DataCollectorTranslator::MESSAGE_DEFINED => 0, - DataCollectorTranslator::MESSAGE_MISSING => 0, - DataCollectorTranslator::MESSAGE_EQUALS_FALLBACK => 0, - ]; - - foreach ($messages as $message) { - ++$count[$message['state']]; - } - - return $count; - } - - private function sanitizeString(string $string, int $length = 80): string - { - $string = trim(preg_replace('/\s+/', ' ', $string)); - - if (false !== $encoding = mb_detect_encoding($string, null, true)) { - if (mb_strlen($string, $encoding) > $length) { - return mb_substr($string, 0, $length - 3, $encoding).'...'; - } - } elseif (\strlen($string) > $length) { - return substr($string, 0, $length - 3).'...'; - } - - return $string; - } -} diff --git a/vendor/symfony/translation/DataCollectorTranslator.php b/vendor/symfony/translation/DataCollectorTranslator.php deleted file mode 100644 index dcabede..0000000 --- a/vendor/symfony/translation/DataCollectorTranslator.php +++ /dev/null @@ -1,130 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation; - -use Symfony\Component\HttpKernel\CacheWarmer\WarmableInterface; -use Symfony\Contracts\Translation\LocaleAwareInterface; -use Symfony\Contracts\Translation\TranslatorInterface; - -/** - * @author Abdellatif Ait boudad - * - * @final since Symfony 7.1 - */ -class DataCollectorTranslator implements TranslatorInterface, TranslatorBagInterface, LocaleAwareInterface, WarmableInterface -{ - public const MESSAGE_DEFINED = 0; - public const MESSAGE_MISSING = 1; - public const MESSAGE_EQUALS_FALLBACK = 2; - - private array $messages = []; - - public function __construct( - private TranslatorInterface&TranslatorBagInterface&LocaleAwareInterface $translator, - ) { - } - - public function trans(?string $id, array $parameters = [], ?string $domain = null, ?string $locale = null): string - { - $trans = $this->translator->trans($id = (string) $id, $parameters, $domain, $locale); - $this->collectMessage($locale, $domain, $id, $trans, $parameters); - - return $trans; - } - - public function setLocale(string $locale): void - { - $this->translator->setLocale($locale); - } - - public function getLocale(): string - { - return $this->translator->getLocale(); - } - - public function getCatalogue(?string $locale = null): MessageCatalogueInterface - { - return $this->translator->getCatalogue($locale); - } - - public function getCatalogues(): array - { - return $this->translator->getCatalogues(); - } - - public function warmUp(string $cacheDir, ?string $buildDir = null): array - { - if ($this->translator instanceof WarmableInterface) { - return $this->translator->warmUp($cacheDir, $buildDir); - } - - return []; - } - - /** - * Gets the fallback locales. - */ - public function getFallbackLocales(): array - { - if ($this->translator instanceof Translator || method_exists($this->translator, 'getFallbackLocales')) { - return $this->translator->getFallbackLocales(); - } - - return []; - } - - public function __call(string $method, array $args): mixed - { - return $this->translator->{$method}(...$args); - } - - public function getCollectedMessages(): array - { - return $this->messages; - } - - private function collectMessage(?string $locale, ?string $domain, string $id, string $translation, ?array $parameters = []): void - { - $domain ??= 'messages'; - - $catalogue = $this->translator->getCatalogue($locale); - $locale = $catalogue->getLocale(); - $fallbackLocale = null; - if ($catalogue->defines($id, $domain)) { - $state = self::MESSAGE_DEFINED; - } elseif ($catalogue->has($id, $domain)) { - $state = self::MESSAGE_EQUALS_FALLBACK; - - $fallbackCatalogue = $catalogue->getFallbackCatalogue(); - while ($fallbackCatalogue) { - if ($fallbackCatalogue->defines($id, $domain)) { - $fallbackLocale = $fallbackCatalogue->getLocale(); - break; - } - $fallbackCatalogue = $fallbackCatalogue->getFallbackCatalogue(); - } - } else { - $state = self::MESSAGE_MISSING; - } - - $this->messages[] = [ - 'locale' => $locale, - 'fallbackLocale' => $fallbackLocale, - 'domain' => $domain, - 'id' => $id, - 'translation' => $translation, - 'parameters' => $parameters, - 'state' => $state, - 'transChoiceNumber' => isset($parameters['%count%']) && is_numeric($parameters['%count%']) ? $parameters['%count%'] : null, - ]; - } -} diff --git a/vendor/symfony/translation/DependencyInjection/DataCollectorTranslatorPass.php b/vendor/symfony/translation/DependencyInjection/DataCollectorTranslatorPass.php deleted file mode 100644 index cdf63be..0000000 --- a/vendor/symfony/translation/DependencyInjection/DataCollectorTranslatorPass.php +++ /dev/null @@ -1,36 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\DependencyInjection; - -use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; -use Symfony\Component\DependencyInjection\ContainerBuilder; -use Symfony\Component\Translation\TranslatorBagInterface; - -/** - * @author Christian Flothmann - */ -class DataCollectorTranslatorPass implements CompilerPassInterface -{ - public function process(ContainerBuilder $container): void - { - if (!$container->has('translator')) { - return; - } - - $translatorClass = $container->getParameterBag()->resolveValue($container->findDefinition('translator')->getClass()); - - if (!is_subclass_of($translatorClass, TranslatorBagInterface::class)) { - $container->removeDefinition('translator.data_collector'); - $container->removeDefinition('data_collector.translation'); - } - } -} diff --git a/vendor/symfony/translation/DependencyInjection/LoggingTranslatorPass.php b/vendor/symfony/translation/DependencyInjection/LoggingTranslatorPass.php deleted file mode 100644 index fba8698..0000000 --- a/vendor/symfony/translation/DependencyInjection/LoggingTranslatorPass.php +++ /dev/null @@ -1,59 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\DependencyInjection; - -use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; -use Symfony\Component\DependencyInjection\ContainerBuilder; -use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException; -use Symfony\Component\Translation\TranslatorBagInterface; -use Symfony\Contracts\Translation\TranslatorInterface; - -/** - * @author Abdellatif Ait boudad - */ -class LoggingTranslatorPass implements CompilerPassInterface -{ - public function process(ContainerBuilder $container): void - { - if (!$container->hasAlias('logger') || !$container->hasAlias('translator')) { - return; - } - - if (!$container->hasParameter('translator.logging') || !$container->getParameter('translator.logging')) { - return; - } - - $translatorAlias = $container->getAlias('translator'); - $definition = $container->getDefinition((string) $translatorAlias); - $class = $container->getParameterBag()->resolveValue($definition->getClass()); - - if (!$r = $container->getReflectionClass($class)) { - throw new InvalidArgumentException(\sprintf('Class "%s" used for service "%s" cannot be found.', $class, $translatorAlias)); - } - - if (!$r->isSubclassOf(TranslatorInterface::class) || !$r->isSubclassOf(TranslatorBagInterface::class)) { - return; - } - - $container->getDefinition('translator.logging')->setDecoratedService('translator'); - $warmer = $container->getDefinition('translation.warmer'); - $subscriberAttributes = $warmer->getTag('container.service_subscriber'); - $warmer->clearTag('container.service_subscriber'); - - foreach ($subscriberAttributes as $k => $v) { - if ((!isset($v['id']) || 'translator' !== $v['id']) && (!isset($v['key']) || 'translator' !== $v['key'])) { - $warmer->addTag('container.service_subscriber', $v); - } - } - $warmer->addTag('container.service_subscriber', ['key' => 'translator', 'id' => 'translator.logging.inner']); - } -} diff --git a/vendor/symfony/translation/DependencyInjection/TranslationDumperPass.php b/vendor/symfony/translation/DependencyInjection/TranslationDumperPass.php deleted file mode 100644 index 0331ef5..0000000 --- a/vendor/symfony/translation/DependencyInjection/TranslationDumperPass.php +++ /dev/null @@ -1,35 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\DependencyInjection; - -use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; -use Symfony\Component\DependencyInjection\ContainerBuilder; -use Symfony\Component\DependencyInjection\Reference; - -/** - * Adds tagged translation.formatter services to translation writer. - */ -class TranslationDumperPass implements CompilerPassInterface -{ - public function process(ContainerBuilder $container): void - { - if (!$container->hasDefinition('translation.writer')) { - return; - } - - $definition = $container->getDefinition('translation.writer'); - - foreach ($container->findTaggedServiceIds('translation.dumper', true) as $id => $attributes) { - $definition->addMethodCall('addDumper', [$attributes[0]['alias'], new Reference($id)]); - } - } -} diff --git a/vendor/symfony/translation/DependencyInjection/TranslationExtractorPass.php b/vendor/symfony/translation/DependencyInjection/TranslationExtractorPass.php deleted file mode 100644 index 864a121..0000000 --- a/vendor/symfony/translation/DependencyInjection/TranslationExtractorPass.php +++ /dev/null @@ -1,40 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\DependencyInjection; - -use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; -use Symfony\Component\DependencyInjection\ContainerBuilder; -use Symfony\Component\DependencyInjection\Exception\RuntimeException; -use Symfony\Component\DependencyInjection\Reference; - -/** - * Adds tagged translation.extractor services to translation extractor. - */ -class TranslationExtractorPass implements CompilerPassInterface -{ - public function process(ContainerBuilder $container): void - { - if (!$container->hasDefinition('translation.extractor')) { - return; - } - - $definition = $container->getDefinition('translation.extractor'); - - foreach ($container->findTaggedServiceIds('translation.extractor', true) as $id => $attributes) { - if (!isset($attributes[0]['alias'])) { - throw new RuntimeException(\sprintf('The alias for the tag "translation.extractor" of service "%s" must be set.', $id)); - } - - $definition->addMethodCall('addExtractor', [$attributes[0]['alias'], new Reference($id)]); - } - } -} diff --git a/vendor/symfony/translation/DependencyInjection/TranslatorPass.php b/vendor/symfony/translation/DependencyInjection/TranslatorPass.php deleted file mode 100644 index 948f378..0000000 --- a/vendor/symfony/translation/DependencyInjection/TranslatorPass.php +++ /dev/null @@ -1,91 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\DependencyInjection; - -use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; -use Symfony\Component\DependencyInjection\Compiler\ServiceLocatorTagPass; -use Symfony\Component\DependencyInjection\ContainerBuilder; -use Symfony\Component\DependencyInjection\Reference; - -class TranslatorPass implements CompilerPassInterface -{ - public function process(ContainerBuilder $container): void - { - if (!$container->hasDefinition('translator.default')) { - return; - } - - $loaders = []; - $loaderRefs = []; - foreach ($container->findTaggedServiceIds('translation.loader', true) as $id => $attributes) { - $loaderRefs[$id] = new Reference($id); - $loaders[$id][] = $attributes[0]['alias']; - if (isset($attributes[0]['legacy-alias'])) { - $loaders[$id][] = $attributes[0]['legacy-alias']; - } - } - - if ($container->hasDefinition('translation.reader')) { - $definition = $container->getDefinition('translation.reader'); - foreach ($loaders as $id => $formats) { - foreach ($formats as $format) { - $definition->addMethodCall('addLoader', [$format, $loaderRefs[$id]]); - } - } - } - - $container - ->findDefinition('translator.default') - ->replaceArgument(0, ServiceLocatorTagPass::register($container, $loaderRefs)) - ->replaceArgument(3, $loaders) - ; - - if ($container->hasDefinition('validator') && $container->hasDefinition('translation.extractor.visitor.constraint')) { - $constraintVisitorDefinition = $container->getDefinition('translation.extractor.visitor.constraint'); - $constraintClassNames = []; - - foreach ($container->getDefinitions() as $definition) { - if (!$definition->hasTag('validator.constraint_validator')) { - continue; - } - // Resolve constraint validator FQCN even if defined as %foo.validator.class% parameter - $className = $container->getParameterBag()->resolveValue($definition->getClass()); - // Extraction of the constraint class name from the Constraint Validator FQCN - $constraintClassNames[] = str_replace('Validator', '', substr(strrchr($className, '\\'), 1)); - } - - $constraintVisitorDefinition->setArgument(0, $constraintClassNames); - } - - if (!$container->hasParameter('twig.default_path')) { - return; - } - - $paths = array_keys($container->getDefinition('twig.template_iterator')->getArgument(1)); - if ($container->hasDefinition('console.command.translation_debug')) { - $definition = $container->getDefinition('console.command.translation_debug'); - $definition->replaceArgument(4, $container->getParameter('twig.default_path')); - - if (\count($definition->getArguments()) > 6) { - $definition->replaceArgument(6, $paths); - } - } - if ($container->hasDefinition('console.command.translation_extract')) { - $definition = $container->getDefinition('console.command.translation_extract'); - $definition->replaceArgument(5, $container->getParameter('twig.default_path')); - - if (\count($definition->getArguments()) > 7) { - $definition->replaceArgument(7, $paths); - } - } - } -} diff --git a/vendor/symfony/translation/DependencyInjection/TranslatorPathsPass.php b/vendor/symfony/translation/DependencyInjection/TranslatorPathsPass.php deleted file mode 100644 index 4f5fc2d..0000000 --- a/vendor/symfony/translation/DependencyInjection/TranslatorPathsPass.php +++ /dev/null @@ -1,142 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\DependencyInjection; - -use Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass; -use Symfony\Component\DependencyInjection\ContainerBuilder; -use Symfony\Component\DependencyInjection\Definition; -use Symfony\Component\DependencyInjection\Reference; -use Symfony\Component\DependencyInjection\ServiceLocator; -use Symfony\Component\HttpKernel\Controller\ArgumentResolver\TraceableValueResolver; - -/** - * @author Yonel Ceruto - */ -class TranslatorPathsPass extends AbstractRecursivePass -{ - protected bool $skipScalars = true; - - private int $level = 0; - - /** - * @var array - */ - private array $paths = []; - - /** - * @var array - */ - private array $definitions = []; - - /** - * @var array> - */ - private array $controllers = []; - - public function process(ContainerBuilder $container): void - { - if (!$container->hasDefinition('translator')) { - return; - } - - foreach ($this->findControllerArguments($container) as $controller => $argument) { - $id = substr($controller, 0, strpos($controller, ':') ?: \strlen($controller)); - if ($container->hasDefinition($id)) { - [$locatorRef] = $argument->getValues(); - $this->controllers[(string) $locatorRef][$container->getDefinition($id)->getClass()] = true; - } - } - - try { - parent::process($container); - - $paths = []; - foreach ($this->paths as $class => $_) { - if (($r = $container->getReflectionClass($class)) && !$r->isInterface()) { - $paths[] = $r->getFileName(); - foreach ($r->getTraits() as $trait) { - $paths[] = $trait->getFileName(); - } - } - } - if ($paths) { - if ($container->hasDefinition('console.command.translation_debug')) { - $definition = $container->getDefinition('console.command.translation_debug'); - $definition->replaceArgument(6, array_merge($definition->getArgument(6), $paths)); - } - if ($container->hasDefinition('console.command.translation_extract')) { - $definition = $container->getDefinition('console.command.translation_extract'); - $definition->replaceArgument(7, array_merge($definition->getArgument(7), $paths)); - } - } - } finally { - $this->level = 0; - $this->paths = []; - $this->definitions = []; - } - } - - protected function processValue(mixed $value, bool $isRoot = false): mixed - { - if ($value instanceof Reference) { - if ('translator' === (string) $value) { - for ($i = $this->level - 1; $i >= 0; --$i) { - $class = $this->definitions[$i]->getClass(); - - if (ServiceLocator::class === $class) { - if (!isset($this->controllers[$this->currentId])) { - continue; - } - foreach ($this->controllers[$this->currentId] as $class => $_) { - $this->paths[$class] = true; - } - } else { - $this->paths[$class] = true; - } - - break; - } - } - - return $value; - } - - if ($value instanceof Definition) { - $this->definitions[$this->level++] = $value; - $value = parent::processValue($value, $isRoot); - unset($this->definitions[--$this->level]); - - return $value; - } - - return parent::processValue($value, $isRoot); - } - - private function findControllerArguments(ContainerBuilder $container): array - { - if (!$container->has('argument_resolver.service')) { - return []; - } - $resolverDef = $container->findDefinition('argument_resolver.service'); - - if (TraceableValueResolver::class === $resolverDef->getClass()) { - $resolverDef = $container->getDefinition($resolverDef->getArgument(0)); - } - - $argument = $resolverDef->getArgument(0); - if ($argument instanceof Reference) { - $argument = $container->getDefinition($argument); - } - - return $argument->getArgument(0); - } -} diff --git a/vendor/symfony/translation/Dumper/CsvFileDumper.php b/vendor/symfony/translation/Dumper/CsvFileDumper.php deleted file mode 100644 index 7dfbba4..0000000 --- a/vendor/symfony/translation/Dumper/CsvFileDumper.php +++ /dev/null @@ -1,54 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Dumper; - -use Symfony\Component\Translation\MessageCatalogue; - -/** - * CsvFileDumper generates a csv formatted string representation of a message catalogue. - * - * @author Stealth35 - */ -class CsvFileDumper extends FileDumper -{ - private string $delimiter = ';'; - private string $enclosure = '"'; - - public function formatCatalogue(MessageCatalogue $messages, string $domain, array $options = []): string - { - $handle = fopen('php://memory', 'r+'); - - foreach ($messages->all($domain) as $source => $target) { - fputcsv($handle, [$source, $target], $this->delimiter, $this->enclosure, '\\'); - } - - rewind($handle); - $output = stream_get_contents($handle); - fclose($handle); - - return $output; - } - - /** - * Sets the delimiter and escape character for CSV. - */ - public function setCsvControl(string $delimiter = ';', string $enclosure = '"'): void - { - $this->delimiter = $delimiter; - $this->enclosure = $enclosure; - } - - protected function getExtension(): string - { - return 'csv'; - } -} diff --git a/vendor/symfony/translation/Dumper/DumperInterface.php b/vendor/symfony/translation/Dumper/DumperInterface.php deleted file mode 100644 index c151de0..0000000 --- a/vendor/symfony/translation/Dumper/DumperInterface.php +++ /dev/null @@ -1,30 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Dumper; - -use Symfony\Component\Translation\MessageCatalogue; - -/** - * DumperInterface is the interface implemented by all translation dumpers. - * There is no common option. - * - * @author Michel Salib - */ -interface DumperInterface -{ - /** - * Dumps the message catalogue. - * - * @param array $options Options that are used by the dumper - */ - public function dump(MessageCatalogue $messages, array $options = []): void; -} diff --git a/vendor/symfony/translation/Dumper/FileDumper.php b/vendor/symfony/translation/Dumper/FileDumper.php deleted file mode 100644 index 2e1880f..0000000 --- a/vendor/symfony/translation/Dumper/FileDumper.php +++ /dev/null @@ -1,101 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Dumper; - -use Symfony\Component\Translation\Exception\InvalidArgumentException; -use Symfony\Component\Translation\Exception\RuntimeException; -use Symfony\Component\Translation\MessageCatalogue; - -/** - * FileDumper is an implementation of DumperInterface that dump a message catalogue to file(s). - * - * Options: - * - path (mandatory): the directory where the files should be saved - * - * @author Michel Salib - */ -abstract class FileDumper implements DumperInterface -{ - /** - * A template for the relative paths to files. - */ - protected string $relativePathTemplate = '%domain%.%locale%.%extension%'; - - /** - * Sets the template for the relative paths to files. - */ - public function setRelativePathTemplate(string $relativePathTemplate): void - { - $this->relativePathTemplate = $relativePathTemplate; - } - - public function dump(MessageCatalogue $messages, array $options = []): void - { - if (!\array_key_exists('path', $options)) { - throw new InvalidArgumentException('The file dumper needs a path option.'); - } - - // save a file for each domain - foreach ($messages->getDomains() as $domain) { - $fullpath = $options['path'].'/'.$this->getRelativePath($domain, $messages->getLocale()); - if (!file_exists($fullpath)) { - $directory = \dirname($fullpath); - if (!file_exists($directory) && !@mkdir($directory, 0777, true)) { - throw new RuntimeException(\sprintf('Unable to create directory "%s".', $directory)); - } - } - - $intlDomain = $domain.MessageCatalogue::INTL_DOMAIN_SUFFIX; - $intlMessages = $messages->all($intlDomain); - - if ($intlMessages) { - $intlPath = $options['path'].'/'.$this->getRelativePath($intlDomain, $messages->getLocale()); - file_put_contents($intlPath, $this->formatCatalogue($messages, $intlDomain, $options)); - - $messages->replace([], $intlDomain); - - try { - if ($messages->all($domain)) { - file_put_contents($fullpath, $this->formatCatalogue($messages, $domain, $options)); - } - continue; - } finally { - $messages->replace($intlMessages, $intlDomain); - } - } - - file_put_contents($fullpath, $this->formatCatalogue($messages, $domain, $options)); - } - } - - /** - * Transforms a domain of a message catalogue to its string representation. - */ - abstract public function formatCatalogue(MessageCatalogue $messages, string $domain, array $options = []): string; - - /** - * Gets the file extension of the dumper. - */ - abstract protected function getExtension(): string; - - /** - * Gets the relative file path using the template. - */ - private function getRelativePath(string $domain, string $locale): string - { - return strtr($this->relativePathTemplate, [ - '%domain%' => $domain, - '%locale%' => $locale, - '%extension%' => $this->getExtension(), - ]); - } -} diff --git a/vendor/symfony/translation/Dumper/IcuResFileDumper.php b/vendor/symfony/translation/Dumper/IcuResFileDumper.php deleted file mode 100644 index e603ee8..0000000 --- a/vendor/symfony/translation/Dumper/IcuResFileDumper.php +++ /dev/null @@ -1,95 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Dumper; - -use Symfony\Component\Translation\MessageCatalogue; - -/** - * IcuResDumper generates an ICU ResourceBundle formatted string representation of a message catalogue. - * - * @author Stealth35 - */ -class IcuResFileDumper extends FileDumper -{ - protected string $relativePathTemplate = '%domain%/%locale%.%extension%'; - - public function formatCatalogue(MessageCatalogue $messages, string $domain, array $options = []): string - { - $data = $indexes = $resources = ''; - - foreach ($messages->all($domain) as $source => $target) { - $indexes .= pack('v', \strlen($data) + 28); - $data .= $source."\0"; - } - - $data .= $this->writePadding($data); - - $keyTop = $this->getPosition($data); - - foreach ($messages->all($domain) as $source => $target) { - $resources .= pack('V', $this->getPosition($data)); - - $data .= pack('V', \strlen($target)) - .mb_convert_encoding($target."\0", 'UTF-16LE', 'UTF-8') - .$this->writePadding($data) - ; - } - - $resOffset = $this->getPosition($data); - - $data .= pack('v', \count($messages->all($domain))) - .$indexes - .$this->writePadding($data) - .$resources - ; - - $bundleTop = $this->getPosition($data); - - $root = pack('V7', - $resOffset + (2 << 28), // Resource Offset + Resource Type - 6, // Index length - $keyTop, // Index keys top - $bundleTop, // Index resources top - $bundleTop, // Index bundle top - \count($messages->all($domain)), // Index max table length - 0 // Index attributes - ); - - $header = pack('vC2v4C12@32', - 32, // Header size - 0xDA, 0x27, // Magic number 1 and 2 - 20, 0, 0, 2, // Rest of the header, ..., Size of a char - 0x52, 0x65, 0x73, 0x42, // Data format identifier - 1, 2, 0, 0, // Data version - 1, 4, 0, 0 // Unicode version - ); - - return $header.$root.$data; - } - - private function writePadding(string $data): ?string - { - $padding = \strlen($data) % 4; - - return $padding ? str_repeat("\xAA", 4 - $padding) : null; - } - - private function getPosition(string $data): float|int - { - return (\strlen($data) + 28) / 4; - } - - protected function getExtension(): string - { - return 'res'; - } -} diff --git a/vendor/symfony/translation/Dumper/IniFileDumper.php b/vendor/symfony/translation/Dumper/IniFileDumper.php deleted file mode 100644 index 6cbdef6..0000000 --- a/vendor/symfony/translation/Dumper/IniFileDumper.php +++ /dev/null @@ -1,39 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Dumper; - -use Symfony\Component\Translation\MessageCatalogue; - -/** - * IniFileDumper generates an ini formatted string representation of a message catalogue. - * - * @author Stealth35 - */ -class IniFileDumper extends FileDumper -{ - public function formatCatalogue(MessageCatalogue $messages, string $domain, array $options = []): string - { - $output = ''; - - foreach ($messages->all($domain) as $source => $target) { - $escapeTarget = str_replace('"', '\"', $target); - $output .= $source.'="'.$escapeTarget."\"\n"; - } - - return $output; - } - - protected function getExtension(): string - { - return 'ini'; - } -} diff --git a/vendor/symfony/translation/Dumper/JsonFileDumper.php b/vendor/symfony/translation/Dumper/JsonFileDumper.php deleted file mode 100644 index e503539..0000000 --- a/vendor/symfony/translation/Dumper/JsonFileDumper.php +++ /dev/null @@ -1,34 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Dumper; - -use Symfony\Component\Translation\MessageCatalogue; - -/** - * JsonFileDumper generates an json formatted string representation of a message catalogue. - * - * @author singles - */ -class JsonFileDumper extends FileDumper -{ - public function formatCatalogue(MessageCatalogue $messages, string $domain, array $options = []): string - { - $flags = $options['json_encoding'] ?? \JSON_PRETTY_PRINT; - - return json_encode($messages->all($domain), $flags); - } - - protected function getExtension(): string - { - return 'json'; - } -} diff --git a/vendor/symfony/translation/Dumper/MoFileDumper.php b/vendor/symfony/translation/Dumper/MoFileDumper.php deleted file mode 100644 index a7b4b33..0000000 --- a/vendor/symfony/translation/Dumper/MoFileDumper.php +++ /dev/null @@ -1,73 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Dumper; - -use Symfony\Component\Translation\Loader\MoFileLoader; -use Symfony\Component\Translation\MessageCatalogue; - -/** - * MoFileDumper generates a gettext formatted string representation of a message catalogue. - * - * @author Stealth35 - */ -class MoFileDumper extends FileDumper -{ - public function formatCatalogue(MessageCatalogue $messages, string $domain, array $options = []): string - { - $sources = $targets = $sourceOffsets = $targetOffsets = ''; - $offsets = []; - $size = 0; - - foreach ($messages->all($domain) as $source => $target) { - $offsets[] = array_map('strlen', [$sources, $source, $targets, $target]); - $sources .= "\0".$source; - $targets .= "\0".$target; - ++$size; - } - - $header = [ - 'magicNumber' => MoFileLoader::MO_LITTLE_ENDIAN_MAGIC, - 'formatRevision' => 0, - 'count' => $size, - 'offsetId' => MoFileLoader::MO_HEADER_SIZE, - 'offsetTranslated' => MoFileLoader::MO_HEADER_SIZE + (8 * $size), - 'sizeHashes' => 0, - 'offsetHashes' => MoFileLoader::MO_HEADER_SIZE + (16 * $size), - ]; - - $sourcesSize = \strlen($sources); - $sourcesStart = $header['offsetHashes'] + 1; - - foreach ($offsets as $offset) { - $sourceOffsets .= $this->writeLong($offset[1]) - .$this->writeLong($offset[0] + $sourcesStart); - $targetOffsets .= $this->writeLong($offset[3]) - .$this->writeLong($offset[2] + $sourcesStart + $sourcesSize); - } - - return implode('', array_map($this->writeLong(...), $header)) - .$sourceOffsets - .$targetOffsets - .$sources - .$targets; - } - - protected function getExtension(): string - { - return 'mo'; - } - - private function writeLong(mixed $str): string - { - return pack('V*', $str); - } -} diff --git a/vendor/symfony/translation/Dumper/PhpFileDumper.php b/vendor/symfony/translation/Dumper/PhpFileDumper.php deleted file mode 100644 index 51e9066..0000000 --- a/vendor/symfony/translation/Dumper/PhpFileDumper.php +++ /dev/null @@ -1,32 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Dumper; - -use Symfony\Component\Translation\MessageCatalogue; - -/** - * PhpFileDumper generates PHP files from a message catalogue. - * - * @author Michel Salib - */ -class PhpFileDumper extends FileDumper -{ - public function formatCatalogue(MessageCatalogue $messages, string $domain, array $options = []): string - { - return "all($domain), true).";\n"; - } - - protected function getExtension(): string - { - return 'php'; - } -} diff --git a/vendor/symfony/translation/Dumper/PoFileDumper.php b/vendor/symfony/translation/Dumper/PoFileDumper.php deleted file mode 100644 index 8f55b8a..0000000 --- a/vendor/symfony/translation/Dumper/PoFileDumper.php +++ /dev/null @@ -1,131 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Dumper; - -use Symfony\Component\Translation\MessageCatalogue; - -/** - * PoFileDumper generates a gettext formatted string representation of a message catalogue. - * - * @author Stealth35 - */ -class PoFileDumper extends FileDumper -{ - public function formatCatalogue(MessageCatalogue $messages, string $domain, array $options = []): string - { - $output = 'msgid ""'."\n"; - $output .= 'msgstr ""'."\n"; - $output .= '"Content-Type: text/plain; charset=UTF-8\n"'."\n"; - $output .= '"Content-Transfer-Encoding: 8bit\n"'."\n"; - $output .= '"Language: '.$messages->getLocale().'\n"'."\n"; - $output .= "\n"; - - $newLine = false; - foreach ($messages->all($domain) as $source => $target) { - if ($newLine) { - $output .= "\n"; - } else { - $newLine = true; - } - $metadata = $messages->getMetadata($source, $domain); - - if (isset($metadata['comments'])) { - $output .= $this->formatComments($metadata['comments']); - } - if (isset($metadata['flags'])) { - $output .= $this->formatComments(implode(',', (array) $metadata['flags']), ','); - } - if (isset($metadata['sources'])) { - $output .= $this->formatComments(implode(' ', (array) $metadata['sources']), ':'); - } - - $sourceRules = $this->getStandardRules($source); - $targetRules = $this->getStandardRules($target); - if (2 == \count($sourceRules) && [] !== $targetRules) { - $output .= \sprintf('msgid "%s"'."\n", $this->escape($sourceRules[0])); - $output .= \sprintf('msgid_plural "%s"'."\n", $this->escape($sourceRules[1])); - foreach ($targetRules as $i => $targetRule) { - $output .= \sprintf('msgstr[%d] "%s"'."\n", $i, $this->escape($targetRule)); - } - } else { - $output .= \sprintf('msgid "%s"'."\n", $this->escape($source)); - $output .= \sprintf('msgstr "%s"'."\n", $this->escape($target)); - } - } - - return $output; - } - - private function getStandardRules(string $id): array - { - // Partly copied from TranslatorTrait::trans. - $parts = []; - if (preg_match('/^\|++$/', $id)) { - $parts = explode('|', $id); - } elseif (preg_match_all('/(?:\|\||[^\|])++/', $id, $matches)) { - $parts = $matches[0]; - } - - $intervalRegexp = <<<'EOF' -/^(?P - ({\s* - (\-?\d+(\.\d+)?[\s*,\s*\-?\d+(\.\d+)?]*) - \s*}) - - | - - (?P[\[\]]) - \s* - (?P-Inf|\-?\d+(\.\d+)?) - \s*,\s* - (?P\+?Inf|\-?\d+(\.\d+)?) - \s* - (?P[\[\]]) -)\s*(?P.*?)$/xs -EOF; - - $standardRules = []; - foreach ($parts as $part) { - $part = trim(str_replace('||', '|', $part)); - - if (preg_match($intervalRegexp, $part)) { - // Explicit rule is not a standard rule. - return []; - } - - $standardRules[] = $part; - } - - return $standardRules; - } - - protected function getExtension(): string - { - return 'po'; - } - - private function escape(string $str): string - { - return addcslashes($str, "\0..\37\42\134"); - } - - private function formatComments(string|array $comments, string $prefix = ''): ?string - { - $output = null; - - foreach ((array) $comments as $comment) { - $output .= \sprintf('#%s %s'."\n", $prefix, $comment); - } - - return $output; - } -} diff --git a/vendor/symfony/translation/Dumper/QtFileDumper.php b/vendor/symfony/translation/Dumper/QtFileDumper.php deleted file mode 100644 index 0373e9c..0000000 --- a/vendor/symfony/translation/Dumper/QtFileDumper.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Dumper; - -use Symfony\Component\Translation\MessageCatalogue; - -/** - * QtFileDumper generates ts files from a message catalogue. - * - * @author Benjamin Eberlei - */ -class QtFileDumper extends FileDumper -{ - public function formatCatalogue(MessageCatalogue $messages, string $domain, array $options = []): string - { - $dom = new \DOMDocument('1.0', 'utf-8'); - $dom->formatOutput = true; - $ts = $dom->appendChild($dom->createElement('TS')); - $context = $ts->appendChild($dom->createElement('context')); - $context->appendChild($dom->createElement('name', $domain)); - - foreach ($messages->all($domain) as $source => $target) { - $message = $context->appendChild($dom->createElement('message')); - $metadata = $messages->getMetadata($source, $domain); - if (isset($metadata['sources'])) { - foreach ((array) $metadata['sources'] as $location) { - $loc = explode(':', $location, 2); - $location = $message->appendChild($dom->createElement('location')); - $location->setAttribute('filename', $loc[0]); - if (isset($loc[1])) { - $location->setAttribute('line', $loc[1]); - } - } - } - $message->appendChild($dom->createElement('source', $source)); - $message->appendChild($dom->createElement('translation', $target)); - } - - return $dom->saveXML(); - } - - protected function getExtension(): string - { - return 'ts'; - } -} diff --git a/vendor/symfony/translation/Dumper/XliffFileDumper.php b/vendor/symfony/translation/Dumper/XliffFileDumper.php deleted file mode 100644 index b41394c..0000000 --- a/vendor/symfony/translation/Dumper/XliffFileDumper.php +++ /dev/null @@ -1,227 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Dumper; - -use Symfony\Component\Translation\Exception\InvalidArgumentException; -use Symfony\Component\Translation\MessageCatalogue; - -/** - * XliffFileDumper generates xliff files from a message catalogue. - * - * @author Michel Salib - */ -class XliffFileDumper extends FileDumper -{ - public function __construct( - private string $extension = 'xlf', - ) { - } - - public function formatCatalogue(MessageCatalogue $messages, string $domain, array $options = []): string - { - $xliffVersion = '1.2'; - if (\array_key_exists('xliff_version', $options)) { - $xliffVersion = $options['xliff_version']; - } - - if (\array_key_exists('default_locale', $options)) { - $defaultLocale = $options['default_locale']; - } else { - $defaultLocale = \Locale::getDefault(); - } - - if ('1.2' === $xliffVersion) { - return $this->dumpXliff1($defaultLocale, $messages, $domain, $options); - } - if ('2.0' === $xliffVersion) { - return $this->dumpXliff2($defaultLocale, $messages, $domain); - } - - throw new InvalidArgumentException(\sprintf('No support implemented for dumping XLIFF version "%s".', $xliffVersion)); - } - - protected function getExtension(): string - { - return $this->extension; - } - - private function dumpXliff1(string $defaultLocale, MessageCatalogue $messages, ?string $domain, array $options = []): string - { - $toolInfo = ['tool-id' => 'symfony', 'tool-name' => 'Symfony']; - if (\array_key_exists('tool_info', $options)) { - $toolInfo = array_merge($toolInfo, $options['tool_info']); - } - - $dom = new \DOMDocument('1.0', 'utf-8'); - $dom->formatOutput = true; - - $xliff = $dom->appendChild($dom->createElement('xliff')); - $xliff->setAttribute('version', '1.2'); - $xliff->setAttribute('xmlns', 'urn:oasis:names:tc:xliff:document:1.2'); - - $xliffFile = $xliff->appendChild($dom->createElement('file')); - $xliffFile->setAttribute('source-language', str_replace('_', '-', $defaultLocale)); - $xliffFile->setAttribute('target-language', str_replace('_', '-', $messages->getLocale())); - $xliffFile->setAttribute('datatype', 'plaintext'); - $xliffFile->setAttribute('original', 'file.ext'); - - $xliffHead = $xliffFile->appendChild($dom->createElement('header')); - $xliffTool = $xliffHead->appendChild($dom->createElement('tool')); - foreach ($toolInfo as $id => $value) { - $xliffTool->setAttribute($id, $value); - } - - if ($catalogueMetadata = $messages->getCatalogueMetadata('', $domain) ?? []) { - $xliffPropGroup = $xliffHead->appendChild($dom->createElement('prop-group')); - foreach ($catalogueMetadata as $key => $value) { - $xliffProp = $xliffPropGroup->appendChild($dom->createElement('prop')); - $xliffProp->setAttribute('prop-type', $key); - $xliffProp->appendChild($dom->createTextNode($value)); - } - } - - $xliffBody = $xliffFile->appendChild($dom->createElement('body')); - foreach ($messages->all($domain) as $source => $target) { - $translation = $dom->createElement('trans-unit'); - - $translation->setAttribute('id', strtr(substr(base64_encode(hash('xxh128', $source, true)), 0, 7), '/+', '._')); - $translation->setAttribute('resname', $source); - - $s = $translation->appendChild($dom->createElement('source')); - $s->appendChild($dom->createTextNode($source)); - - // Does the target contain characters requiring a CDATA section? - $text = 1 === preg_match('/[&<>]/', $target) ? $dom->createCDATASection($target) : $dom->createTextNode($target); - - $targetElement = $dom->createElement('target'); - $metadata = $messages->getMetadata($source, $domain); - if ($this->hasMetadataArrayInfo('target-attributes', $metadata)) { - foreach ($metadata['target-attributes'] as $name => $value) { - $targetElement->setAttribute($name, $value); - } - } - $t = $translation->appendChild($targetElement); - $t->appendChild($text); - - if ($this->hasMetadataArrayInfo('notes', $metadata)) { - foreach ($metadata['notes'] as $note) { - if (!isset($note['content'])) { - continue; - } - - $n = $translation->appendChild($dom->createElement('note')); - $n->appendChild($dom->createTextNode($note['content'])); - - if (isset($note['priority'])) { - $n->setAttribute('priority', $note['priority']); - } - - if (isset($note['from'])) { - $n->setAttribute('from', $note['from']); - } - } - } - - $xliffBody->appendChild($translation); - } - - return $dom->saveXML(); - } - - private function dumpXliff2(string $defaultLocale, MessageCatalogue $messages, ?string $domain): string - { - $dom = new \DOMDocument('1.0', 'utf-8'); - $dom->formatOutput = true; - - $xliff = $dom->appendChild($dom->createElement('xliff')); - $xliff->setAttribute('xmlns', 'urn:oasis:names:tc:xliff:document:2.0'); - $xliff->setAttribute('version', '2.0'); - $xliff->setAttribute('srcLang', str_replace('_', '-', $defaultLocale)); - $xliff->setAttribute('trgLang', str_replace('_', '-', $messages->getLocale())); - - $xliffFile = $xliff->appendChild($dom->createElement('file')); - if (str_ends_with($domain, MessageCatalogue::INTL_DOMAIN_SUFFIX)) { - $xliffFile->setAttribute('id', substr($domain, 0, -\strlen(MessageCatalogue::INTL_DOMAIN_SUFFIX)).'.'.$messages->getLocale()); - } else { - $xliffFile->setAttribute('id', $domain.'.'.$messages->getLocale()); - } - - if ($catalogueMetadata = $messages->getCatalogueMetadata('', $domain) ?? []) { - $xliff->setAttribute('xmlns:m', 'urn:oasis:names:tc:xliff:metadata:2.0'); - $xliffMetadata = $xliffFile->appendChild($dom->createElement('m:metadata')); - foreach ($catalogueMetadata as $key => $value) { - $xliffMeta = $xliffMetadata->appendChild($dom->createElement('prop')); - $xliffMeta->setAttribute('type', $key); - $xliffMeta->appendChild($dom->createTextNode($value)); - } - } - - foreach ($messages->all($domain) as $source => $target) { - $translation = $dom->createElement('unit'); - $translation->setAttribute('id', strtr(substr(base64_encode(hash('xxh128', $source, true)), 0, 7), '/+', '._')); - - if (\strlen($source) <= 80) { - $translation->setAttribute('name', $source); - } - - $metadata = $messages->getMetadata($source, $domain); - - // Add notes section - if ($this->hasMetadataArrayInfo('notes', $metadata)) { - $notesElement = $dom->createElement('notes'); - foreach ($metadata['notes'] as $note) { - $n = $dom->createElement('note'); - $n->appendChild($dom->createTextNode($note['content'] ?? '')); - unset($note['content']); - - foreach ($note as $name => $value) { - $n->setAttribute($name, $value); - } - $notesElement->appendChild($n); - } - $translation->appendChild($notesElement); - } - - $segment = $translation->appendChild($dom->createElement('segment')); - - if ($this->hasMetadataArrayInfo('segment-attributes', $metadata)) { - foreach ($metadata['segment-attributes'] as $name => $value) { - $segment->setAttribute($name, $value); - } - } - - $s = $segment->appendChild($dom->createElement('source')); - $s->appendChild($dom->createTextNode($source)); - - // Does the target contain characters requiring a CDATA section? - $text = 1 === preg_match('/[&<>]/', $target) ? $dom->createCDATASection($target) : $dom->createTextNode($target); - - $targetElement = $dom->createElement('target'); - if ($this->hasMetadataArrayInfo('target-attributes', $metadata)) { - foreach ($metadata['target-attributes'] as $name => $value) { - $targetElement->setAttribute($name, $value); - } - } - $t = $segment->appendChild($targetElement); - $t->appendChild($text); - - $xliffFile->appendChild($translation); - } - - return $dom->saveXML(); - } - - private function hasMetadataArrayInfo(string $key, ?array $metadata = null): bool - { - return is_iterable($metadata[$key] ?? null); - } -} diff --git a/vendor/symfony/translation/Dumper/YamlFileDumper.php b/vendor/symfony/translation/Dumper/YamlFileDumper.php deleted file mode 100644 index a30eaa3..0000000 --- a/vendor/symfony/translation/Dumper/YamlFileDumper.php +++ /dev/null @@ -1,54 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Dumper; - -use Symfony\Component\Translation\Exception\LogicException; -use Symfony\Component\Translation\MessageCatalogue; -use Symfony\Component\Translation\Util\ArrayConverter; -use Symfony\Component\Yaml\Yaml; - -/** - * YamlFileDumper generates yaml files from a message catalogue. - * - * @author Michel Salib - */ -class YamlFileDumper extends FileDumper -{ - public function __construct( - private string $extension = 'yml', - ) { - } - - public function formatCatalogue(MessageCatalogue $messages, string $domain, array $options = []): string - { - if (!class_exists(Yaml::class)) { - throw new LogicException('Dumping translations in the YAML format requires the Symfony Yaml component.'); - } - - $data = $messages->all($domain); - - if (isset($options['as_tree']) && $options['as_tree']) { - $data = ArrayConverter::expandToTree($data); - } - - if (isset($options['inline']) && ($inline = (int) $options['inline']) > 0) { - return Yaml::dump($data, $inline); - } - - return Yaml::dump($data); - } - - protected function getExtension(): string - { - return $this->extension; - } -} diff --git a/vendor/symfony/translation/Exception/ExceptionInterface.php b/vendor/symfony/translation/Exception/ExceptionInterface.php deleted file mode 100644 index 8f9c54e..0000000 --- a/vendor/symfony/translation/Exception/ExceptionInterface.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Exception; - -/** - * Exception interface for all exceptions thrown by the component. - * - * @author Fabien Potencier - */ -interface ExceptionInterface extends \Throwable -{ -} diff --git a/vendor/symfony/translation/Exception/IncompleteDsnException.php b/vendor/symfony/translation/Exception/IncompleteDsnException.php deleted file mode 100644 index 6c9247f..0000000 --- a/vendor/symfony/translation/Exception/IncompleteDsnException.php +++ /dev/null @@ -1,24 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Exception; - -class IncompleteDsnException extends InvalidArgumentException -{ - public function __construct(string $message, ?string $dsn = null, ?\Throwable $previous = null) - { - if ($dsn) { - $message = \sprintf('Invalid "%s" provider DSN: ', $dsn).$message; - } - - parent::__construct($message, 0, $previous); - } -} diff --git a/vendor/symfony/translation/Exception/InvalidArgumentException.php b/vendor/symfony/translation/Exception/InvalidArgumentException.php deleted file mode 100644 index 90d0669..0000000 --- a/vendor/symfony/translation/Exception/InvalidArgumentException.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Exception; - -/** - * Base InvalidArgumentException for the Translation component. - * - * @author Abdellatif Ait boudad - */ -class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface -{ -} diff --git a/vendor/symfony/translation/Exception/InvalidResourceException.php b/vendor/symfony/translation/Exception/InvalidResourceException.php deleted file mode 100644 index cf07943..0000000 --- a/vendor/symfony/translation/Exception/InvalidResourceException.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Exception; - -/** - * Thrown when a resource cannot be loaded. - * - * @author Fabien Potencier - */ -class InvalidResourceException extends \InvalidArgumentException implements ExceptionInterface -{ -} diff --git a/vendor/symfony/translation/Exception/LogicException.php b/vendor/symfony/translation/Exception/LogicException.php deleted file mode 100644 index 9019c7e..0000000 --- a/vendor/symfony/translation/Exception/LogicException.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Exception; - -/** - * Base LogicException for Translation component. - * - * @author Abdellatif Ait boudad - */ -class LogicException extends \LogicException implements ExceptionInterface -{ -} diff --git a/vendor/symfony/translation/Exception/MissingRequiredOptionException.php b/vendor/symfony/translation/Exception/MissingRequiredOptionException.php deleted file mode 100644 index 8cef03a..0000000 --- a/vendor/symfony/translation/Exception/MissingRequiredOptionException.php +++ /dev/null @@ -1,25 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Exception; - -/** - * @author Oskar Stark - */ -class MissingRequiredOptionException extends IncompleteDsnException -{ - public function __construct(string $option, ?string $dsn = null, ?\Throwable $previous = null) - { - $message = \sprintf('The option "%s" is required but missing.', $option); - - parent::__construct($message, $dsn, $previous); - } -} diff --git a/vendor/symfony/translation/Exception/NotFoundResourceException.php b/vendor/symfony/translation/Exception/NotFoundResourceException.php deleted file mode 100644 index cff73ae..0000000 --- a/vendor/symfony/translation/Exception/NotFoundResourceException.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Exception; - -/** - * Thrown when a resource does not exist. - * - * @author Fabien Potencier - */ -class NotFoundResourceException extends \InvalidArgumentException implements ExceptionInterface -{ -} diff --git a/vendor/symfony/translation/Exception/ProviderException.php b/vendor/symfony/translation/Exception/ProviderException.php deleted file mode 100644 index 70e93fc..0000000 --- a/vendor/symfony/translation/Exception/ProviderException.php +++ /dev/null @@ -1,43 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Exception; - -use Symfony\Contracts\HttpClient\ResponseInterface; - -/** - * @author Fabien Potencier - */ -class ProviderException extends RuntimeException implements ProviderExceptionInterface -{ - private string $debug; - - public function __construct( - string $message, - private ResponseInterface $response, - int $code = 0, - ?\Exception $previous = null, - ) { - $this->debug = $response->getInfo('debug') ?? ''; - - parent::__construct($message, $code, $previous); - } - - public function getResponse(): ResponseInterface - { - return $this->response; - } - - public function getDebug(): string - { - return $this->debug; - } -} diff --git a/vendor/symfony/translation/Exception/ProviderExceptionInterface.php b/vendor/symfony/translation/Exception/ProviderExceptionInterface.php deleted file mode 100644 index 922e827..0000000 --- a/vendor/symfony/translation/Exception/ProviderExceptionInterface.php +++ /dev/null @@ -1,23 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Exception; - -/** - * @author Fabien Potencier - */ -interface ProviderExceptionInterface extends ExceptionInterface -{ - /* - * Returns debug info coming from the Symfony\Contracts\HttpClient\ResponseInterface - */ - public function getDebug(): string; -} diff --git a/vendor/symfony/translation/Exception/RuntimeException.php b/vendor/symfony/translation/Exception/RuntimeException.php deleted file mode 100644 index dcd7940..0000000 --- a/vendor/symfony/translation/Exception/RuntimeException.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Exception; - -/** - * Base RuntimeException for the Translation component. - * - * @author Abdellatif Ait boudad - */ -class RuntimeException extends \RuntimeException implements ExceptionInterface -{ -} diff --git a/vendor/symfony/translation/Exception/UnsupportedSchemeException.php b/vendor/symfony/translation/Exception/UnsupportedSchemeException.php deleted file mode 100644 index ca18444..0000000 --- a/vendor/symfony/translation/Exception/UnsupportedSchemeException.php +++ /dev/null @@ -1,58 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Exception; - -use Symfony\Component\Translation\Bridge; -use Symfony\Component\Translation\Provider\Dsn; - -class UnsupportedSchemeException extends LogicException -{ - private const SCHEME_TO_PACKAGE_MAP = [ - 'crowdin' => [ - 'class' => Bridge\Crowdin\CrowdinProviderFactory::class, - 'package' => 'symfony/crowdin-translation-provider', - ], - 'loco' => [ - 'class' => Bridge\Loco\LocoProviderFactory::class, - 'package' => 'symfony/loco-translation-provider', - ], - 'lokalise' => [ - 'class' => Bridge\Lokalise\LokaliseProviderFactory::class, - 'package' => 'symfony/lokalise-translation-provider', - ], - 'phrase' => [ - 'class' => Bridge\Phrase\PhraseProviderFactory::class, - 'package' => 'symfony/phrase-translation-provider', - ], - ]; - - public function __construct(Dsn $dsn, ?string $name = null, array $supported = []) - { - $provider = $dsn->getScheme(); - if (false !== $pos = strpos($provider, '+')) { - $provider = substr($provider, 0, $pos); - } - $package = self::SCHEME_TO_PACKAGE_MAP[$provider] ?? null; - if ($package && !class_exists($package['class'])) { - parent::__construct(\sprintf('Unable to synchronize translations via "%s" as the provider is not installed. Try running "composer require %s".', $provider, $package['package'])); - - return; - } - - $message = \sprintf('The "%s" scheme is not supported', $dsn->getScheme()); - if ($name && $supported) { - $message .= \sprintf('; supported schemes for translation provider "%s" are: "%s"', $name, implode('", "', $supported)); - } - - parent::__construct($message.'.'); - } -} diff --git a/vendor/symfony/translation/Extractor/AbstractFileExtractor.php b/vendor/symfony/translation/Extractor/AbstractFileExtractor.php deleted file mode 100644 index da4a929..0000000 --- a/vendor/symfony/translation/Extractor/AbstractFileExtractor.php +++ /dev/null @@ -1,61 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Extractor; - -use Symfony\Component\Translation\Exception\InvalidArgumentException; - -/** - * Base class used by classes that extract translation messages from files. - * - * @author Marcos D. Sánchez - */ -abstract class AbstractFileExtractor -{ - protected function extractFiles(string|iterable $resource): iterable - { - if (is_iterable($resource)) { - $files = []; - foreach ($resource as $file) { - if ($this->canBeExtracted($file)) { - $files[] = $this->toSplFileInfo($file); - } - } - } elseif (is_file($resource)) { - $files = $this->canBeExtracted($resource) ? [$this->toSplFileInfo($resource)] : []; - } else { - $files = $this->extractFromDirectory($resource); - } - - return $files; - } - - private function toSplFileInfo(string $file): \SplFileInfo - { - return new \SplFileInfo($file); - } - - /** - * @throws InvalidArgumentException - */ - protected function isFile(string $file): bool - { - if (!is_file($file)) { - throw new InvalidArgumentException(\sprintf('The "%s" file does not exist.', $file)); - } - - return true; - } - - abstract protected function canBeExtracted(string $file): bool; - - abstract protected function extractFromDirectory(string|array $resource): iterable; -} diff --git a/vendor/symfony/translation/Extractor/ChainExtractor.php b/vendor/symfony/translation/Extractor/ChainExtractor.php deleted file mode 100644 index ec9982d..0000000 --- a/vendor/symfony/translation/Extractor/ChainExtractor.php +++ /dev/null @@ -1,51 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Extractor; - -use Symfony\Component\Translation\MessageCatalogue; - -/** - * ChainExtractor extracts translation messages from template files. - * - * @author Michel Salib - */ -class ChainExtractor implements ExtractorInterface -{ - /** - * The extractors. - * - * @var ExtractorInterface[] - */ - private array $extractors = []; - - /** - * Adds a loader to the translation extractor. - */ - public function addExtractor(string $format, ExtractorInterface $extractor): void - { - $this->extractors[$format] = $extractor; - } - - public function setPrefix(string $prefix): void - { - foreach ($this->extractors as $extractor) { - $extractor->setPrefix($prefix); - } - } - - public function extract(string|iterable $directory, MessageCatalogue $catalogue): void - { - foreach ($this->extractors as $extractor) { - $extractor->extract($directory, $catalogue); - } - } -} diff --git a/vendor/symfony/translation/Extractor/ExtractorInterface.php b/vendor/symfony/translation/Extractor/ExtractorInterface.php deleted file mode 100644 index 642130a..0000000 --- a/vendor/symfony/translation/Extractor/ExtractorInterface.php +++ /dev/null @@ -1,39 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Extractor; - -use Symfony\Component\Translation\MessageCatalogue; - -/** - * Extracts translation messages from a directory or files to the catalogue. - * New found messages are injected to the catalogue using the prefix. - * - * @author Michel Salib - */ -interface ExtractorInterface -{ - /** - * Extracts translation messages from files, a file or a directory to the catalogue. - * - * @param string|iterable $resource Files, a file or a directory - * - * @return void - */ - public function extract(string|iterable $resource, MessageCatalogue $catalogue); - - /** - * Sets the prefix that should be used for new found messages. - * - * @return void - */ - public function setPrefix(string $prefix); -} diff --git a/vendor/symfony/translation/Extractor/PhpAstExtractor.php b/vendor/symfony/translation/Extractor/PhpAstExtractor.php deleted file mode 100644 index a5375f4..0000000 --- a/vendor/symfony/translation/Extractor/PhpAstExtractor.php +++ /dev/null @@ -1,85 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Extractor; - -use PhpParser\NodeTraverser; -use PhpParser\NodeVisitor; -use PhpParser\Parser; -use PhpParser\ParserFactory; -use Symfony\Component\Finder\Finder; -use Symfony\Component\Translation\Extractor\Visitor\AbstractVisitor; -use Symfony\Component\Translation\MessageCatalogue; - -/** - * PhpAstExtractor extracts translation messages from a PHP AST. - * - * @author Mathieu Santostefano - */ -final class PhpAstExtractor extends AbstractFileExtractor implements ExtractorInterface -{ - private Parser $parser; - - public function __construct( - /** - * @param iterable $visitors - */ - private readonly iterable $visitors, - private string $prefix = '', - ) { - if (!class_exists(ParserFactory::class)) { - throw new \LogicException(\sprintf('You cannot use "%s" as the "nikic/php-parser" package is not installed. Try running "composer require nikic/php-parser".', static::class)); - } - - $this->parser = (new ParserFactory())->createForHostVersion(); - } - - public function extract(iterable|string $resource, MessageCatalogue $catalogue): void - { - foreach ($this->extractFiles($resource) as $file) { - $traverser = new NodeTraverser(); - - // This is needed to resolve namespaces in class methods/constants. - $nameResolver = new NodeVisitor\NameResolver(); - $traverser->addVisitor($nameResolver); - - /** @var AbstractVisitor&NodeVisitor $visitor */ - foreach ($this->visitors as $visitor) { - $visitor->initialize($catalogue, $file, $this->prefix); - $traverser->addVisitor($visitor); - } - - $nodes = $this->parser->parse(file_get_contents($file)); - $traverser->traverse($nodes); - } - } - - public function setPrefix(string $prefix): void - { - $this->prefix = $prefix; - } - - protected function canBeExtracted(string $file): bool - { - return 'php' === pathinfo($file, \PATHINFO_EXTENSION) - && $this->isFile($file) - && preg_match('/\bt\(|->trans\(|TranslatableMessage|Symfony\\\\Component\\\\Validator\\\\Constraints/i', file_get_contents($file)); - } - - protected function extractFromDirectory(array|string $resource): iterable|Finder - { - if (!class_exists(Finder::class)) { - throw new \LogicException(\sprintf('You cannot use "%s" as the "symfony/finder" package is not installed. Try running "composer require symfony/finder".', static::class)); - } - - return (new Finder())->files()->name('*.php')->in($resource); - } -} diff --git a/vendor/symfony/translation/Extractor/Visitor/AbstractVisitor.php b/vendor/symfony/translation/Extractor/Visitor/AbstractVisitor.php deleted file mode 100644 index c336896..0000000 --- a/vendor/symfony/translation/Extractor/Visitor/AbstractVisitor.php +++ /dev/null @@ -1,135 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Extractor\Visitor; - -use PhpParser\Node; -use Symfony\Component\Translation\MessageCatalogue; - -/** - * @author Mathieu Santostefano - */ -abstract class AbstractVisitor -{ - private MessageCatalogue $catalogue; - private \SplFileInfo $file; - private string $messagePrefix; - - public function initialize(MessageCatalogue $catalogue, \SplFileInfo $file, string $messagePrefix): void - { - $this->catalogue = $catalogue; - $this->file = $file; - $this->messagePrefix = $messagePrefix; - } - - protected function addMessageToCatalogue(string $message, ?string $domain, int $line): void - { - $domain ??= 'messages'; - $this->catalogue->set($message, $this->messagePrefix.$message, $domain); - $metadata = $this->catalogue->getMetadata($message, $domain) ?? []; - $normalizedFilename = preg_replace('{[\\\\/]+}', '/', $this->file); - $metadata['sources'][] = $normalizedFilename.':'.$line; - $this->catalogue->setMetadata($message, $metadata, $domain); - } - - protected function getStringArguments(Node\Expr\CallLike|Node\Attribute|Node\Expr\New_ $node, int|string $index, bool $indexIsRegex = false): array - { - if (\is_string($index)) { - return $this->getStringNamedArguments($node, $index, $indexIsRegex); - } - - $args = $node instanceof Node\Expr\CallLike ? $node->getRawArgs() : $node->args; - - if (!($arg = $args[$index] ?? null) instanceof Node\Arg) { - return []; - } - - return (array) $this->getStringValue($arg->value); - } - - protected function hasNodeNamedArguments(Node\Expr\CallLike|Node\Attribute|Node\Expr\New_ $node): bool - { - $args = $node instanceof Node\Expr\CallLike ? $node->getRawArgs() : $node->args; - - foreach ($args as $arg) { - if ($arg instanceof Node\Arg && null !== $arg->name) { - return true; - } - } - - return false; - } - - protected function nodeFirstNamedArgumentIndex(Node\Expr\CallLike|Node\Attribute|Node\Expr\New_ $node): int - { - $args = $node instanceof Node\Expr\CallLike ? $node->getRawArgs() : $node->args; - - foreach ($args as $i => $arg) { - if ($arg instanceof Node\Arg && null !== $arg->name) { - return $i; - } - } - - return \PHP_INT_MAX; - } - - private function getStringNamedArguments(Node\Expr\CallLike|Node\Attribute $node, ?string $argumentName = null, bool $isArgumentNamePattern = false): array - { - $args = $node instanceof Node\Expr\CallLike ? $node->getArgs() : $node->args; - $argumentValues = []; - - foreach ($args as $arg) { - if (!$isArgumentNamePattern && $arg->name?->toString() === $argumentName) { - $argumentValues[] = $this->getStringValue($arg->value); - } elseif ($isArgumentNamePattern && preg_match($argumentName, $arg->name?->toString() ?? '') > 0) { - $argumentValues[] = $this->getStringValue($arg->value); - } - } - - return array_filter($argumentValues); - } - - private function getStringValue(Node $node): ?string - { - if ($node instanceof Node\Scalar\String_) { - return $node->value; - } - - if ($node instanceof Node\Expr\BinaryOp\Concat) { - if (null === $left = $this->getStringValue($node->left)) { - return null; - } - - if (null === $right = $this->getStringValue($node->right)) { - return null; - } - - return $left.$right; - } - - if ($node instanceof Node\Expr\Assign && $node->expr instanceof Node\Scalar\String_) { - return $node->expr->value; - } - - if ($node instanceof Node\Expr\ClassConstFetch) { - try { - $reflection = new \ReflectionClass($node->class->toString()); - $constant = $reflection->getReflectionConstant($node->name->toString()); - if (false !== $constant && \is_string($constant->getValue())) { - return $constant->getValue(); - } - } catch (\ReflectionException) { - } - } - - return null; - } -} diff --git a/vendor/symfony/translation/Extractor/Visitor/ConstraintVisitor.php b/vendor/symfony/translation/Extractor/Visitor/ConstraintVisitor.php deleted file mode 100644 index 45cae35..0000000 --- a/vendor/symfony/translation/Extractor/Visitor/ConstraintVisitor.php +++ /dev/null @@ -1,112 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Extractor\Visitor; - -use PhpParser\Node; -use PhpParser\NodeVisitor; - -/** - * @author Mathieu Santostefano - * - * Code mostly comes from https://github.com/php-translation/extractor/blob/master/src/Visitor/Php/Symfony/Constraint.php - */ -final class ConstraintVisitor extends AbstractVisitor implements NodeVisitor -{ - public function __construct( - private readonly array $constraintClassNames = [], - ) { - } - - public function beforeTraverse(array $nodes): ?Node - { - return null; - } - - public function enterNode(Node $node): ?Node - { - return null; - } - - public function leaveNode(Node $node): ?Node - { - if (!$node instanceof Node\Expr\New_ && !$node instanceof Node\Attribute) { - return null; - } - - $className = $node instanceof Node\Attribute ? $node->name : $node->class; - if (!$className instanceof Node\Name) { - return null; - } - - $parts = $className->getParts(); - $isConstraintClass = false; - - foreach ($parts as $part) { - if (\in_array($part, $this->constraintClassNames, true)) { - $isConstraintClass = true; - - break; - } - } - - if (!$isConstraintClass) { - return null; - } - - $arg = $node->args[0] ?? null; - if (!$arg instanceof Node\Arg) { - return null; - } - - if ($this->hasNodeNamedArguments($node)) { - $messages = $this->getStringArguments($node, '/message/i', true); - } else { - if (!$arg->value instanceof Node\Expr\Array_) { - // There is no way to guess which argument is a message to be translated. - return null; - } - - $messages = []; - $options = $arg->value; - - /** @var Node\Expr\ArrayItem $item */ - foreach ($options->items as $item) { - if (!$item->key instanceof Node\Scalar\String_) { - continue; - } - - if (false === stripos($item->key->value ?? '', 'message')) { - continue; - } - - if (!$item->value instanceof Node\Scalar\String_) { - continue; - } - - $messages[] = $item->value->value; - - break; - } - } - - foreach ($messages as $message) { - $this->addMessageToCatalogue($message, 'validators', $node->getStartLine()); - } - - return null; - } - - public function afterTraverse(array $nodes): ?Node - { - return null; - } -} diff --git a/vendor/symfony/translation/Extractor/Visitor/TransMethodVisitor.php b/vendor/symfony/translation/Extractor/Visitor/TransMethodVisitor.php deleted file mode 100644 index a3dcd6d..0000000 --- a/vendor/symfony/translation/Extractor/Visitor/TransMethodVisitor.php +++ /dev/null @@ -1,65 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Extractor\Visitor; - -use PhpParser\Node; -use PhpParser\NodeVisitor; - -/** - * @author Mathieu Santostefano - */ -final class TransMethodVisitor extends AbstractVisitor implements NodeVisitor -{ - public function beforeTraverse(array $nodes): ?Node - { - return null; - } - - public function enterNode(Node $node): ?Node - { - return null; - } - - public function leaveNode(Node $node): ?Node - { - if (!$node instanceof Node\Expr\MethodCall && !$node instanceof Node\Expr\FuncCall) { - return null; - } - - if (!\is_string($node->name) && !$node->name instanceof Node\Identifier && !$node->name instanceof Node\Name) { - return null; - } - - $name = $node->name instanceof Node\Name ? $node->name->getLast() : (string) $node->name; - - if ('trans' === $name || 't' === $name) { - $firstNamedArgumentIndex = $this->nodeFirstNamedArgumentIndex($node); - - if (!$messages = $this->getStringArguments($node, 0 < $firstNamedArgumentIndex ? 0 : 'id')) { - return null; - } - - $domain = $this->getStringArguments($node, 2 < $firstNamedArgumentIndex ? 2 : 'domain')[0] ?? null; - - foreach ($messages as $message) { - $this->addMessageToCatalogue($message, $domain, $node->getStartLine()); - } - } - - return null; - } - - public function afterTraverse(array $nodes): ?Node - { - return null; - } -} diff --git a/vendor/symfony/translation/Extractor/Visitor/TranslatableMessageVisitor.php b/vendor/symfony/translation/Extractor/Visitor/TranslatableMessageVisitor.php deleted file mode 100644 index 6bd8bb0..0000000 --- a/vendor/symfony/translation/Extractor/Visitor/TranslatableMessageVisitor.php +++ /dev/null @@ -1,65 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Extractor\Visitor; - -use PhpParser\Node; -use PhpParser\NodeVisitor; - -/** - * @author Mathieu Santostefano - */ -final class TranslatableMessageVisitor extends AbstractVisitor implements NodeVisitor -{ - public function beforeTraverse(array $nodes): ?Node - { - return null; - } - - public function enterNode(Node $node): ?Node - { - return null; - } - - public function leaveNode(Node $node): ?Node - { - if (!$node instanceof Node\Expr\New_) { - return null; - } - - if (!($className = $node->class) instanceof Node\Name) { - return null; - } - - if (!\in_array('TranslatableMessage', $className->getParts(), true)) { - return null; - } - - $firstNamedArgumentIndex = $this->nodeFirstNamedArgumentIndex($node); - - if (!$messages = $this->getStringArguments($node, 0 < $firstNamedArgumentIndex ? 0 : 'message')) { - return null; - } - - $domain = $this->getStringArguments($node, 2 < $firstNamedArgumentIndex ? 2 : 'domain')[0] ?? null; - - foreach ($messages as $message) { - $this->addMessageToCatalogue($message, $domain, $node->getStartLine()); - } - - return null; - } - - public function afterTraverse(array $nodes): ?Node - { - return null; - } -} diff --git a/vendor/symfony/translation/Formatter/IntlFormatter.php b/vendor/symfony/translation/Formatter/IntlFormatter.php deleted file mode 100644 index 87cb007..0000000 --- a/vendor/symfony/translation/Formatter/IntlFormatter.php +++ /dev/null @@ -1,57 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Formatter; - -use Symfony\Component\Translation\Exception\InvalidArgumentException; -use Symfony\Component\Translation\Exception\LogicException; - -/** - * @author Guilherme Blanco - * @author Abdellatif Ait boudad - */ -class IntlFormatter implements IntlFormatterInterface -{ - private bool $hasMessageFormatter; - private array $cache = []; - - public function formatIntl(string $message, string $locale, array $parameters = []): string - { - // MessageFormatter constructor throws an exception if the message is empty - if ('' === $message) { - return ''; - } - - if (!$formatter = $this->cache[$locale][$message] ?? null) { - if (!$this->hasMessageFormatter ??= class_exists(\MessageFormatter::class)) { - throw new LogicException('Cannot parse message translation: please install the "intl" PHP extension or the "symfony/polyfill-intl-messageformatter" package.'); - } - try { - $this->cache[$locale][$message] = $formatter = new \MessageFormatter($locale, $message); - } catch (\IntlException $e) { - throw new InvalidArgumentException(\sprintf('Invalid message format (error #%d): ', intl_get_error_code()).intl_get_error_message(), 0, $e); - } - } - - foreach ($parameters as $key => $value) { - if (\in_array($key[0] ?? null, ['%', '{'], true)) { - unset($parameters[$key]); - $parameters[trim($key, '%{ }')] = $value; - } - } - - if (false === $message = $formatter->format($parameters)) { - throw new InvalidArgumentException(\sprintf('Unable to format message (error #%s): ', $formatter->getErrorCode()).$formatter->getErrorMessage()); - } - - return $message; - } -} diff --git a/vendor/symfony/translation/Formatter/IntlFormatterInterface.php b/vendor/symfony/translation/Formatter/IntlFormatterInterface.php deleted file mode 100644 index 02fc6ac..0000000 --- a/vendor/symfony/translation/Formatter/IntlFormatterInterface.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Formatter; - -/** - * Formats ICU message patterns. - * - * @author Nicolas Grekas - */ -interface IntlFormatterInterface -{ - /** - * Formats a localized message using rules defined by ICU MessageFormat. - * - * @see http://icu-project.org/apiref/icu4c/classMessageFormat.html#details - */ - public function formatIntl(string $message, string $locale, array $parameters = []): string; -} diff --git a/vendor/symfony/translation/Formatter/MessageFormatter.php b/vendor/symfony/translation/Formatter/MessageFormatter.php deleted file mode 100644 index d5255bd..0000000 --- a/vendor/symfony/translation/Formatter/MessageFormatter.php +++ /dev/null @@ -1,46 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Formatter; - -use Symfony\Component\Translation\IdentityTranslator; -use Symfony\Contracts\Translation\TranslatorInterface; - -// Help opcache.preload discover always-needed symbols -class_exists(IntlFormatter::class); - -/** - * @author Abdellatif Ait boudad - */ -class MessageFormatter implements MessageFormatterInterface, IntlFormatterInterface -{ - private TranslatorInterface $translator; - private IntlFormatterInterface $intlFormatter; - - /** - * @param TranslatorInterface|null $translator An identity translator to use as selector for pluralization - */ - public function __construct(?TranslatorInterface $translator = null, ?IntlFormatterInterface $intlFormatter = null) - { - $this->translator = $translator ?? new IdentityTranslator(); - $this->intlFormatter = $intlFormatter ?? new IntlFormatter(); - } - - public function format(string $message, string $locale, array $parameters = []): string - { - return $this->translator->trans($message, $parameters, null, $locale); - } - - public function formatIntl(string $message, string $locale, array $parameters = []): string - { - return $this->intlFormatter->formatIntl($message, $locale, $parameters); - } -} diff --git a/vendor/symfony/translation/Formatter/MessageFormatterInterface.php b/vendor/symfony/translation/Formatter/MessageFormatterInterface.php deleted file mode 100644 index d5c41c1..0000000 --- a/vendor/symfony/translation/Formatter/MessageFormatterInterface.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Formatter; - -/** - * @author Guilherme Blanco - * @author Abdellatif Ait boudad - */ -interface MessageFormatterInterface -{ - /** - * Formats a localized message pattern with given arguments. - * - * @param string $message The message (may also be an object that can be cast to string) - * @param string $locale The message locale - * @param array $parameters An array of parameters for the message - */ - public function format(string $message, string $locale, array $parameters = []): string; -} diff --git a/vendor/symfony/translation/IdentityTranslator.php b/vendor/symfony/translation/IdentityTranslator.php deleted file mode 100644 index 46875ed..0000000 --- a/vendor/symfony/translation/IdentityTranslator.php +++ /dev/null @@ -1,26 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation; - -use Symfony\Contracts\Translation\LocaleAwareInterface; -use Symfony\Contracts\Translation\TranslatorInterface; -use Symfony\Contracts\Translation\TranslatorTrait; - -/** - * IdentityTranslator does not translate anything. - * - * @author Fabien Potencier - */ -class IdentityTranslator implements TranslatorInterface, LocaleAwareInterface -{ - use TranslatorTrait; -} diff --git a/vendor/symfony/translation/LICENSE b/vendor/symfony/translation/LICENSE deleted file mode 100644 index 0138f8f..0000000 --- a/vendor/symfony/translation/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2004-present Fabien Potencier - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is furnished -to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/vendor/symfony/translation/Loader/ArrayLoader.php b/vendor/symfony/translation/Loader/ArrayLoader.php deleted file mode 100644 index e63a7d0..0000000 --- a/vendor/symfony/translation/Loader/ArrayLoader.php +++ /dev/null @@ -1,57 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Loader; - -use Symfony\Component\Translation\MessageCatalogue; - -/** - * ArrayLoader loads translations from a PHP array. - * - * @author Fabien Potencier - */ -class ArrayLoader implements LoaderInterface -{ - public function load(mixed $resource, string $locale, string $domain = 'messages'): MessageCatalogue - { - $resource = $this->flatten($resource); - $catalogue = new MessageCatalogue($locale); - $catalogue->add($resource, $domain); - - return $catalogue; - } - - /** - * Flattens an nested array of translations. - * - * The scheme used is: - * 'key' => ['key2' => ['key3' => 'value']] - * Becomes: - * 'key.key2.key3' => 'value' - */ - private function flatten(array $messages): array - { - $result = []; - foreach ($messages as $key => $value) { - if (\is_array($value)) { - foreach ($this->flatten($value) as $k => $v) { - if (null !== $v) { - $result[$key.'.'.$k] = $v; - } - } - } elseif (null !== $value) { - $result[$key] = $value; - } - } - - return $result; - } -} diff --git a/vendor/symfony/translation/Loader/CsvFileLoader.php b/vendor/symfony/translation/Loader/CsvFileLoader.php deleted file mode 100644 index 9b610f6..0000000 --- a/vendor/symfony/translation/Loader/CsvFileLoader.php +++ /dev/null @@ -1,69 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Loader; - -use Symfony\Component\Translation\Exception\NotFoundResourceException; - -/** - * CsvFileLoader loads translations from CSV files. - * - * @author Saša Stamenković - */ -class CsvFileLoader extends FileLoader -{ - private string $delimiter = ';'; - private string $enclosure = '"'; - /** - * @deprecated since Symfony 7.2, to be removed in 8.0 - */ - private string $escape = ''; - - protected function loadResource(string $resource): array - { - $messages = []; - - try { - $file = new \SplFileObject($resource, 'rb'); - } catch (\RuntimeException $e) { - throw new NotFoundResourceException(\sprintf('Error opening file "%s".', $resource), 0, $e); - } - - $file->setFlags(\SplFileObject::READ_CSV | \SplFileObject::SKIP_EMPTY); - $file->setCsvControl($this->delimiter, $this->enclosure, $this->escape); - - foreach ($file as $data) { - if (false === $data) { - continue; - } - - if (!str_starts_with($data[0], '#') && isset($data[1]) && 2 === \count($data)) { - $messages[$data[0]] = $data[1]; - } - } - - return $messages; - } - - /** - * Sets the delimiter, enclosure, and escape character for CSV. - */ - public function setCsvControl(string $delimiter = ';', string $enclosure = '"', string $escape = ''): void - { - $this->delimiter = $delimiter; - $this->enclosure = $enclosure; - if ('' !== $escape) { - trigger_deprecation('symfony/translation', '7.2', 'The "escape" parameter of the "%s" method is deprecated. It will be removed in 8.0.', __METHOD__); - } - - $this->escape = $escape; - } -} diff --git a/vendor/symfony/translation/Loader/FileLoader.php b/vendor/symfony/translation/Loader/FileLoader.php deleted file mode 100644 index 94f6e20..0000000 --- a/vendor/symfony/translation/Loader/FileLoader.php +++ /dev/null @@ -1,57 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Loader; - -use Symfony\Component\Config\Resource\FileResource; -use Symfony\Component\Translation\Exception\InvalidResourceException; -use Symfony\Component\Translation\Exception\NotFoundResourceException; -use Symfony\Component\Translation\MessageCatalogue; - -/** - * @author Abdellatif Ait boudad - */ -abstract class FileLoader extends ArrayLoader -{ - public function load(mixed $resource, string $locale, string $domain = 'messages'): MessageCatalogue - { - if (!stream_is_local($resource)) { - throw new InvalidResourceException(\sprintf('This is not a local file "%s".', $resource)); - } - - if (!file_exists($resource)) { - throw new NotFoundResourceException(\sprintf('File "%s" not found.', $resource)); - } - - $messages = $this->loadResource($resource); - - // empty resource - $messages ??= []; - - // not an array - if (!\is_array($messages)) { - throw new InvalidResourceException(\sprintf('Unable to load file "%s".', $resource)); - } - - $catalogue = parent::load($messages, $locale, $domain); - - if (class_exists(FileResource::class)) { - $catalogue->addResource(new FileResource($resource)); - } - - return $catalogue; - } - - /** - * @throws InvalidResourceException if stream content has an invalid format - */ - abstract protected function loadResource(string $resource): array; -} diff --git a/vendor/symfony/translation/Loader/IcuDatFileLoader.php b/vendor/symfony/translation/Loader/IcuDatFileLoader.php deleted file mode 100644 index 1af8643..0000000 --- a/vendor/symfony/translation/Loader/IcuDatFileLoader.php +++ /dev/null @@ -1,58 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Loader; - -use Symfony\Component\Config\Resource\FileResource; -use Symfony\Component\Translation\Exception\InvalidResourceException; -use Symfony\Component\Translation\Exception\NotFoundResourceException; -use Symfony\Component\Translation\MessageCatalogue; - -/** - * IcuResFileLoader loads translations from a resource bundle. - * - * @author stealth35 - */ -class IcuDatFileLoader extends IcuResFileLoader -{ - public function load(mixed $resource, string $locale, string $domain = 'messages'): MessageCatalogue - { - if (!stream_is_local($resource.'.dat')) { - throw new InvalidResourceException(\sprintf('This is not a local file "%s".', $resource)); - } - - if (!file_exists($resource.'.dat')) { - throw new NotFoundResourceException(\sprintf('File "%s" not found.', $resource)); - } - - try { - $rb = new \ResourceBundle($locale, $resource); - } catch (\Exception) { - $rb = null; - } - - if (!$rb) { - throw new InvalidResourceException(\sprintf('Cannot load resource "%s".', $resource)); - } elseif (intl_is_failure($rb->getErrorCode())) { - throw new InvalidResourceException($rb->getErrorMessage(), $rb->getErrorCode()); - } - - $messages = $this->flatten($rb); - $catalogue = new MessageCatalogue($locale); - $catalogue->add($messages, $domain); - - if (class_exists(FileResource::class)) { - $catalogue->addResource(new FileResource($resource.'.dat')); - } - - return $catalogue; - } -} diff --git a/vendor/symfony/translation/Loader/IcuResFileLoader.php b/vendor/symfony/translation/Loader/IcuResFileLoader.php deleted file mode 100644 index 8ada43d..0000000 --- a/vendor/symfony/translation/Loader/IcuResFileLoader.php +++ /dev/null @@ -1,86 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Loader; - -use Symfony\Component\Config\Resource\DirectoryResource; -use Symfony\Component\Translation\Exception\InvalidResourceException; -use Symfony\Component\Translation\Exception\NotFoundResourceException; -use Symfony\Component\Translation\MessageCatalogue; - -/** - * IcuResFileLoader loads translations from a resource bundle. - * - * @author stealth35 - */ -class IcuResFileLoader implements LoaderInterface -{ - public function load(mixed $resource, string $locale, string $domain = 'messages'): MessageCatalogue - { - if (!stream_is_local($resource)) { - throw new InvalidResourceException(\sprintf('This is not a local file "%s".', $resource)); - } - - if (!is_dir($resource)) { - throw new NotFoundResourceException(\sprintf('File "%s" not found.', $resource)); - } - - try { - $rb = new \ResourceBundle($locale, $resource); - } catch (\Exception) { - $rb = null; - } - - if (!$rb) { - throw new InvalidResourceException(\sprintf('Cannot load resource "%s".', $resource)); - } elseif (intl_is_failure($rb->getErrorCode())) { - throw new InvalidResourceException($rb->getErrorMessage(), $rb->getErrorCode()); - } - - $messages = $this->flatten($rb); - $catalogue = new MessageCatalogue($locale); - $catalogue->add($messages, $domain); - - if (class_exists(DirectoryResource::class)) { - $catalogue->addResource(new DirectoryResource($resource)); - } - - return $catalogue; - } - - /** - * Flattens an ResourceBundle. - * - * The scheme used is: - * key { key2 { key3 { "value" } } } - * Becomes: - * 'key.key2.key3' => 'value' - * - * This function takes an array by reference and will modify it - * - * @param \ResourceBundle $rb The ResourceBundle that will be flattened - * @param array $messages Used internally for recursive calls - * @param string|null $path Current path being parsed, used internally for recursive calls - */ - protected function flatten(\ResourceBundle $rb, array &$messages = [], ?string $path = null): array - { - foreach ($rb as $key => $value) { - $nodePath = $path ? $path.'.'.$key : $key; - if ($value instanceof \ResourceBundle) { - $this->flatten($value, $messages, $nodePath); - } else { - $messages[$nodePath] = $value; - } - } - - return $messages; - } -} diff --git a/vendor/symfony/translation/Loader/IniFileLoader.php b/vendor/symfony/translation/Loader/IniFileLoader.php deleted file mode 100644 index 3126896..0000000 --- a/vendor/symfony/translation/Loader/IniFileLoader.php +++ /dev/null @@ -1,25 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Loader; - -/** - * IniFileLoader loads translations from an ini file. - * - * @author stealth35 - */ -class IniFileLoader extends FileLoader -{ - protected function loadResource(string $resource): array - { - return parse_ini_file($resource, true); - } -} diff --git a/vendor/symfony/translation/Loader/JsonFileLoader.php b/vendor/symfony/translation/Loader/JsonFileLoader.php deleted file mode 100644 index 385553e..0000000 --- a/vendor/symfony/translation/Loader/JsonFileLoader.php +++ /dev/null @@ -1,51 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Loader; - -use Symfony\Component\Translation\Exception\InvalidResourceException; - -/** - * JsonFileLoader loads translations from an json file. - * - * @author singles - */ -class JsonFileLoader extends FileLoader -{ - protected function loadResource(string $resource): array - { - $messages = []; - if ($data = file_get_contents($resource)) { - $messages = json_decode($data, true); - - if (0 < $errorCode = json_last_error()) { - throw new InvalidResourceException('Error parsing JSON: '.$this->getJSONErrorMessage($errorCode)); - } - } - - return $messages; - } - - /** - * Translates JSON_ERROR_* constant into meaningful message. - */ - private function getJSONErrorMessage(int $errorCode): string - { - return match ($errorCode) { - \JSON_ERROR_DEPTH => 'Maximum stack depth exceeded', - \JSON_ERROR_STATE_MISMATCH => 'Underflow or the modes mismatch', - \JSON_ERROR_CTRL_CHAR => 'Unexpected control character found', - \JSON_ERROR_SYNTAX => 'Syntax error, malformed JSON', - \JSON_ERROR_UTF8 => 'Malformed UTF-8 characters, possibly incorrectly encoded', - default => 'Unknown error', - }; - } -} diff --git a/vendor/symfony/translation/Loader/LoaderInterface.php b/vendor/symfony/translation/Loader/LoaderInterface.php deleted file mode 100644 index 29d5560..0000000 --- a/vendor/symfony/translation/Loader/LoaderInterface.php +++ /dev/null @@ -1,32 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Loader; - -use Symfony\Component\Translation\Exception\InvalidResourceException; -use Symfony\Component\Translation\Exception\NotFoundResourceException; -use Symfony\Component\Translation\MessageCatalogue; - -/** - * LoaderInterface is the interface implemented by all translation loaders. - * - * @author Fabien Potencier - */ -interface LoaderInterface -{ - /** - * Loads a locale. - * - * @throws NotFoundResourceException when the resource cannot be found - * @throws InvalidResourceException when the resource cannot be loaded - */ - public function load(mixed $resource, string $locale, string $domain = 'messages'): MessageCatalogue; -} diff --git a/vendor/symfony/translation/Loader/MoFileLoader.php b/vendor/symfony/translation/Loader/MoFileLoader.php deleted file mode 100644 index 8427c39..0000000 --- a/vendor/symfony/translation/Loader/MoFileLoader.php +++ /dev/null @@ -1,138 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Loader; - -use Symfony\Component\Translation\Exception\InvalidResourceException; - -/** - * @copyright Copyright (c) 2010, Union of RAD http://union-of-rad.org (http://lithify.me/) - */ -class MoFileLoader extends FileLoader -{ - /** - * Magic used for validating the format of an MO file as well as - * detecting if the machine used to create that file was little endian. - */ - public const MO_LITTLE_ENDIAN_MAGIC = 0x950412DE; - - /** - * Magic used for validating the format of an MO file as well as - * detecting if the machine used to create that file was big endian. - */ - public const MO_BIG_ENDIAN_MAGIC = 0xDE120495; - - /** - * The size of the header of an MO file in bytes. - */ - public const MO_HEADER_SIZE = 28; - - /** - * Parses machine object (MO) format, independent of the machine's endian it - * was created on. Both 32bit and 64bit systems are supported. - */ - protected function loadResource(string $resource): array - { - $stream = fopen($resource, 'r'); - - $stat = fstat($stream); - - if ($stat['size'] < self::MO_HEADER_SIZE) { - throw new InvalidResourceException('MO stream content has an invalid format.'); - } - $magic = unpack('V1', fread($stream, 4)); - $magic = hexdec(substr(dechex(current($magic)), -8)); - - if (self::MO_LITTLE_ENDIAN_MAGIC == $magic) { - $isBigEndian = false; - } elseif (self::MO_BIG_ENDIAN_MAGIC == $magic) { - $isBigEndian = true; - } else { - throw new InvalidResourceException('MO stream content has an invalid format.'); - } - - // formatRevision - $this->readLong($stream, $isBigEndian); - $count = $this->readLong($stream, $isBigEndian); - $offsetId = $this->readLong($stream, $isBigEndian); - $offsetTranslated = $this->readLong($stream, $isBigEndian); - // sizeHashes - $this->readLong($stream, $isBigEndian); - // offsetHashes - $this->readLong($stream, $isBigEndian); - - $messages = []; - - for ($i = 0; $i < $count; ++$i) { - $pluralId = null; - $translated = null; - - fseek($stream, $offsetId + $i * 8); - - $length = $this->readLong($stream, $isBigEndian); - $offset = $this->readLong($stream, $isBigEndian); - - if ($length < 1) { - continue; - } - - fseek($stream, $offset); - $singularId = fread($stream, $length); - - if (str_contains($singularId, "\000")) { - [$singularId, $pluralId] = explode("\000", $singularId); - } - - fseek($stream, $offsetTranslated + $i * 8); - $length = $this->readLong($stream, $isBigEndian); - $offset = $this->readLong($stream, $isBigEndian); - - if ($length < 1) { - continue; - } - - fseek($stream, $offset); - $translated = fread($stream, $length); - - if (str_contains($translated, "\000")) { - $translated = explode("\000", $translated); - } - - $ids = ['singular' => $singularId, 'plural' => $pluralId]; - $item = compact('ids', 'translated'); - - if (!empty($item['ids']['singular'])) { - $id = $item['ids']['singular']; - if (isset($item['ids']['plural'])) { - $id .= '|'.$item['ids']['plural']; - } - $messages[$id] = stripcslashes(implode('|', (array) $item['translated'])); - } - } - - fclose($stream); - - return array_filter($messages); - } - - /** - * Reads an unsigned long from stream respecting endianness. - * - * @param resource $stream - */ - private function readLong($stream, bool $isBigEndian): int - { - $result = unpack($isBigEndian ? 'N1' : 'V1', fread($stream, 4)); - $result = current($result); - - return (int) substr($result, -8); - } -} diff --git a/vendor/symfony/translation/Loader/PhpFileLoader.php b/vendor/symfony/translation/Loader/PhpFileLoader.php deleted file mode 100644 index 541b6c8..0000000 --- a/vendor/symfony/translation/Loader/PhpFileLoader.php +++ /dev/null @@ -1,35 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Loader; - -/** - * PhpFileLoader loads translations from PHP files returning an array of translations. - * - * @author Fabien Potencier - */ -class PhpFileLoader extends FileLoader -{ - private static ?array $cache = []; - - protected function loadResource(string $resource): array - { - if ([] === self::$cache && \function_exists('opcache_invalidate') && filter_var(\ini_get('opcache.enable'), \FILTER_VALIDATE_BOOL) && (!\in_array(\PHP_SAPI, ['cli', 'phpdbg', 'embed'], true) || filter_var(\ini_get('opcache.enable_cli'), \FILTER_VALIDATE_BOOL))) { - self::$cache = null; - } - - if (null === self::$cache) { - return require $resource; - } - - return self::$cache[$resource] ??= require $resource; - } -} diff --git a/vendor/symfony/translation/Loader/PoFileLoader.php b/vendor/symfony/translation/Loader/PoFileLoader.php deleted file mode 100644 index 4f8aeb2..0000000 --- a/vendor/symfony/translation/Loader/PoFileLoader.php +++ /dev/null @@ -1,147 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Loader; - -/** - * @copyright Copyright (c) 2010, Union of RAD https://github.com/UnionOfRAD/lithium - * @copyright Copyright (c) 2012, Clemens Tolboom - */ -class PoFileLoader extends FileLoader -{ - /** - * Parses portable object (PO) format. - * - * From https://www.gnu.org/software/gettext/manual/gettext.html#PO-Files - * we should be able to parse files having: - * - * white-space - * # translator-comments - * #. extracted-comments - * #: reference... - * #, flag... - * #| msgid previous-untranslated-string - * msgid untranslated-string - * msgstr translated-string - * - * extra or different lines are: - * - * #| msgctxt previous-context - * #| msgid previous-untranslated-string - * msgctxt context - * - * #| msgid previous-untranslated-string-singular - * #| msgid_plural previous-untranslated-string-plural - * msgid untranslated-string-singular - * msgid_plural untranslated-string-plural - * msgstr[0] translated-string-case-0 - * ... - * msgstr[N] translated-string-case-n - * - * The definition states: - * - white-space and comments are optional. - * - msgid "" that an empty singleline defines a header. - * - * This parser sacrifices some features of the reference implementation the - * differences to that implementation are as follows. - * - No support for comments spanning multiple lines. - * - Translator and extracted comments are treated as being the same type. - * - Message IDs are allowed to have other encodings as just US-ASCII. - * - * Items with an empty id are ignored. - */ - protected function loadResource(string $resource): array - { - $stream = fopen($resource, 'r'); - - $defaults = [ - 'ids' => [], - 'translated' => null, - ]; - - $messages = []; - $item = $defaults; - $flags = []; - - while ($line = fgets($stream)) { - $line = trim($line); - - if ('' === $line) { - // Whitespace indicated current item is done - if (!\in_array('fuzzy', $flags, true)) { - $this->addMessage($messages, $item); - } - $item = $defaults; - $flags = []; - } elseif (str_starts_with($line, '#,')) { - $flags = array_map('trim', explode(',', substr($line, 2))); - } elseif (str_starts_with($line, 'msgid "')) { - // We start a new msg so save previous - // TODO: this fails when comments or contexts are added - $this->addMessage($messages, $item); - $item = $defaults; - $item['ids']['singular'] = substr($line, 7, -1); - } elseif (str_starts_with($line, 'msgstr "')) { - $item['translated'] = substr($line, 8, -1); - } elseif ('"' === $line[0]) { - $continues = isset($item['translated']) ? 'translated' : 'ids'; - - if (\is_array($item[$continues])) { - end($item[$continues]); - $item[$continues][key($item[$continues])] .= substr($line, 1, -1); - } else { - $item[$continues] .= substr($line, 1, -1); - } - } elseif (str_starts_with($line, 'msgid_plural "')) { - $item['ids']['plural'] = substr($line, 14, -1); - } elseif (str_starts_with($line, 'msgstr[')) { - $size = strpos($line, ']'); - $item['translated'][(int) substr($line, 7, 1)] = substr($line, $size + 3, -1); - } - } - // save last item - if (!\in_array('fuzzy', $flags, true)) { - $this->addMessage($messages, $item); - } - fclose($stream); - - return $messages; - } - - /** - * Save a translation item to the messages. - * - * A .po file could contain by error missing plural indexes. We need to - * fix these before saving them. - */ - private function addMessage(array &$messages, array $item): void - { - if (!empty($item['ids']['singular'])) { - $id = stripcslashes($item['ids']['singular']); - if (isset($item['ids']['plural'])) { - $id .= '|'.stripcslashes($item['ids']['plural']); - } - - $translated = (array) $item['translated']; - // PO are by definition indexed so sort by index. - ksort($translated); - // Make sure every index is filled. - end($translated); - $count = key($translated); - // Fill missing spots with '-'. - $empties = array_fill(0, $count + 1, '-'); - $translated += $empties; - ksort($translated); - - $messages[$id] = stripcslashes(implode('|', $translated)); - } - } -} diff --git a/vendor/symfony/translation/Loader/QtFileLoader.php b/vendor/symfony/translation/Loader/QtFileLoader.php deleted file mode 100644 index c9554bf..0000000 --- a/vendor/symfony/translation/Loader/QtFileLoader.php +++ /dev/null @@ -1,78 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Loader; - -use Symfony\Component\Config\Resource\FileResource; -use Symfony\Component\Config\Util\XmlUtils; -use Symfony\Component\Translation\Exception\InvalidResourceException; -use Symfony\Component\Translation\Exception\NotFoundResourceException; -use Symfony\Component\Translation\Exception\RuntimeException; -use Symfony\Component\Translation\MessageCatalogue; - -/** - * QtFileLoader loads translations from QT Translations XML files. - * - * @author Benjamin Eberlei - */ -class QtFileLoader implements LoaderInterface -{ - public function load(mixed $resource, string $locale, string $domain = 'messages'): MessageCatalogue - { - if (!class_exists(XmlUtils::class)) { - throw new RuntimeException('Loading translations from the QT format requires the Symfony Config component.'); - } - - if (!stream_is_local($resource)) { - throw new InvalidResourceException(\sprintf('This is not a local file "%s".', $resource)); - } - - if (!file_exists($resource)) { - throw new NotFoundResourceException(\sprintf('File "%s" not found.', $resource)); - } - - try { - $dom = XmlUtils::loadFile($resource); - } catch (\InvalidArgumentException $e) { - throw new InvalidResourceException(\sprintf('Unable to load "%s".', $resource), $e->getCode(), $e); - } - - $internalErrors = libxml_use_internal_errors(true); - libxml_clear_errors(); - - $xpath = new \DOMXPath($dom); - $nodes = $xpath->evaluate('//TS/context/name[text()="'.$domain.'"]'); - - $catalogue = new MessageCatalogue($locale); - if (1 == $nodes->length) { - $translations = $nodes->item(0)->nextSibling->parentNode->parentNode->getElementsByTagName('message'); - foreach ($translations as $translation) { - $translationValue = (string) $translation->getElementsByTagName('translation')->item(0)->nodeValue; - - if ($translationValue) { - $catalogue->set( - (string) $translation->getElementsByTagName('source')->item(0)->nodeValue, - $translationValue, - $domain - ); - } - } - - if (class_exists(FileResource::class)) { - $catalogue->addResource(new FileResource($resource)); - } - } - - libxml_use_internal_errors($internalErrors); - - return $catalogue; - } -} diff --git a/vendor/symfony/translation/Loader/XliffFileLoader.php b/vendor/symfony/translation/Loader/XliffFileLoader.php deleted file mode 100644 index e76245d..0000000 --- a/vendor/symfony/translation/Loader/XliffFileLoader.php +++ /dev/null @@ -1,248 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Loader; - -use Symfony\Component\Config\Resource\FileResource; -use Symfony\Component\Config\Util\Exception\InvalidXmlException; -use Symfony\Component\Config\Util\Exception\XmlParsingException; -use Symfony\Component\Config\Util\XmlUtils; -use Symfony\Component\Translation\Exception\InvalidResourceException; -use Symfony\Component\Translation\Exception\NotFoundResourceException; -use Symfony\Component\Translation\Exception\RuntimeException; -use Symfony\Component\Translation\MessageCatalogue; -use Symfony\Component\Translation\Util\XliffUtils; - -/** - * XliffFileLoader loads translations from XLIFF files. - * - * @author Fabien Potencier - */ -class XliffFileLoader implements LoaderInterface -{ - public function load(mixed $resource, string $locale, string $domain = 'messages'): MessageCatalogue - { - if (!class_exists(XmlUtils::class)) { - throw new RuntimeException('Loading translations from the Xliff format requires the Symfony Config component.'); - } - - if (!$this->isXmlString($resource)) { - if (!stream_is_local($resource)) { - throw new InvalidResourceException(\sprintf('This is not a local file "%s".', $resource)); - } - - if (!file_exists($resource)) { - throw new NotFoundResourceException(\sprintf('File "%s" not found.', $resource)); - } - - if (!is_file($resource)) { - throw new InvalidResourceException(\sprintf('This is neither a file nor an XLIFF string "%s".', $resource)); - } - } - - try { - if ($this->isXmlString($resource)) { - $dom = XmlUtils::parse($resource); - } else { - $dom = XmlUtils::loadFile($resource); - } - } catch (\InvalidArgumentException|XmlParsingException|InvalidXmlException $e) { - throw new InvalidResourceException(\sprintf('Unable to load "%s": ', $resource).$e->getMessage(), $e->getCode(), $e); - } - - if ($errors = XliffUtils::validateSchema($dom)) { - throw new InvalidResourceException(\sprintf('Invalid resource provided: "%s"; Errors: ', $resource).XliffUtils::getErrorsAsString($errors)); - } - - $catalogue = new MessageCatalogue($locale); - $this->extract($dom, $catalogue, $domain); - - if (is_file($resource) && class_exists(FileResource::class)) { - $catalogue->addResource(new FileResource($resource)); - } - - return $catalogue; - } - - private function extract(\DOMDocument $dom, MessageCatalogue $catalogue, string $domain): void - { - $xliffVersion = XliffUtils::getVersionNumber($dom); - - if ('1.2' === $xliffVersion) { - $this->extractXliff1($dom, $catalogue, $domain); - } - - if ('2.0' === $xliffVersion) { - $this->extractXliff2($dom, $catalogue, $domain); - } - } - - /** - * Extract messages and metadata from DOMDocument into a MessageCatalogue. - */ - private function extractXliff1(\DOMDocument $dom, MessageCatalogue $catalogue, string $domain): void - { - $xml = simplexml_import_dom($dom); - $encoding = $dom->encoding ? strtoupper($dom->encoding) : null; - - $namespace = 'urn:oasis:names:tc:xliff:document:1.2'; - $xml->registerXPathNamespace('xliff', $namespace); - - foreach ($xml->xpath('//xliff:file') as $file) { - $fileAttributes = $file->attributes(); - - $file->registerXPathNamespace('xliff', $namespace); - - foreach ($file->xpath('.//xliff:prop') as $prop) { - $catalogue->setCatalogueMetadata($prop->attributes()['prop-type'], (string) $prop, $domain); - } - - foreach ($file->xpath('.//xliff:trans-unit') as $translation) { - $attributes = $translation->attributes(); - - if (!(isset($attributes['resname']) || isset($translation->source))) { - continue; - } - - $source = (string) (isset($attributes['resname']) && $attributes['resname'] ? $attributes['resname'] : $translation->source); - - if (isset($translation->target) - && 'needs-translation' === (string) $translation->target->attributes()['state'] - && \in_array((string) $translation->target, [$source, (string) $translation->source], true) - ) { - continue; - } - - // If the xlf file has another encoding specified, try to convert it because - // simple_xml will always return utf-8 encoded values - $target = $this->utf8ToCharset((string) ($translation->target ?? $translation->source), $encoding); - - $catalogue->set($source, $target, $domain); - - $metadata = [ - 'source' => (string) $translation->source, - 'file' => [ - 'original' => (string) $fileAttributes['original'], - ], - ]; - if ($notes = $this->parseNotesMetadata($translation->note, $encoding)) { - $metadata['notes'] = $notes; - } - - if (isset($translation->target) && $translation->target->attributes()) { - $metadata['target-attributes'] = []; - foreach ($translation->target->attributes() as $key => $value) { - $metadata['target-attributes'][$key] = (string) $value; - } - } - - if (isset($attributes['id'])) { - $metadata['id'] = (string) $attributes['id']; - } - - $catalogue->setMetadata($source, $metadata, $domain); - } - } - } - - private function extractXliff2(\DOMDocument $dom, MessageCatalogue $catalogue, string $domain): void - { - $xml = simplexml_import_dom($dom); - $encoding = $dom->encoding ? strtoupper($dom->encoding) : null; - - $xml->registerXPathNamespace('xliff', 'urn:oasis:names:tc:xliff:document:2.0'); - - foreach ($xml->xpath('//xliff:unit') as $unit) { - foreach ($unit->segment as $segment) { - $attributes = $unit->attributes(); - $source = $attributes['name'] ?? $segment->source; - - // If the xlf file has another encoding specified, try to convert it because - // simple_xml will always return utf-8 encoded values - $target = $this->utf8ToCharset((string) ($segment->target ?? $segment->source), $encoding); - - $catalogue->set((string) $source, $target, $domain); - - $metadata = []; - if ($segment->attributes()) { - $metadata['segment-attributes'] = []; - foreach ($segment->attributes() as $key => $value) { - $metadata['segment-attributes'][$key] = (string) $value; - } - } - - if (isset($segment->target) && $segment->target->attributes()) { - $metadata['target-attributes'] = []; - foreach ($segment->target->attributes() as $key => $value) { - $metadata['target-attributes'][$key] = (string) $value; - } - } - - if (isset($unit->notes)) { - $metadata['notes'] = []; - foreach ($unit->notes->note as $noteNode) { - $note = []; - foreach ($noteNode->attributes() as $key => $value) { - $note[$key] = (string) $value; - } - $note['content'] = (string) $noteNode; - $metadata['notes'][] = $note; - } - } - - $catalogue->setMetadata((string) $source, $metadata, $domain); - } - } - } - - /** - * Convert a UTF8 string to the specified encoding. - */ - private function utf8ToCharset(string $content, ?string $encoding = null): string - { - if ('UTF-8' !== $encoding && $encoding) { - return mb_convert_encoding($content, $encoding, 'UTF-8'); - } - - return $content; - } - - private function parseNotesMetadata(?\SimpleXMLElement $noteElement = null, ?string $encoding = null): array - { - $notes = []; - - if (null === $noteElement) { - return $notes; - } - - /** @var \SimpleXMLElement $xmlNote */ - foreach ($noteElement as $xmlNote) { - $noteAttributes = $xmlNote->attributes(); - $note = ['content' => $this->utf8ToCharset((string) $xmlNote, $encoding)]; - if (isset($noteAttributes['priority'])) { - $note['priority'] = (int) $noteAttributes['priority']; - } - - if (isset($noteAttributes['from'])) { - $note['from'] = (string) $noteAttributes['from']; - } - - $notes[] = $note; - } - - return $notes; - } - - private function isXmlString(string $resource): bool - { - return str_starts_with($resource, ' - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Loader; - -use Symfony\Component\Translation\Exception\InvalidResourceException; -use Symfony\Component\Translation\Exception\LogicException; -use Symfony\Component\Yaml\Exception\ParseException; -use Symfony\Component\Yaml\Parser as YamlParser; -use Symfony\Component\Yaml\Yaml; - -/** - * YamlFileLoader loads translations from Yaml files. - * - * @author Fabien Potencier - */ -class YamlFileLoader extends FileLoader -{ - private YamlParser $yamlParser; - - protected function loadResource(string $resource): array - { - if (!isset($this->yamlParser)) { - if (!class_exists(YamlParser::class)) { - throw new LogicException('Loading translations from the YAML format requires the Symfony Yaml component.'); - } - - $this->yamlParser = new YamlParser(); - } - - try { - $messages = $this->yamlParser->parseFile($resource, Yaml::PARSE_CONSTANT); - } catch (ParseException $e) { - throw new InvalidResourceException(\sprintf('The file "%s" does not contain valid YAML: ', $resource).$e->getMessage(), 0, $e); - } - - if (null !== $messages && !\is_array($messages)) { - throw new InvalidResourceException(\sprintf('Unable to load file "%s".', $resource)); - } - - return $messages ?: []; - } -} diff --git a/vendor/symfony/translation/LocaleSwitcher.php b/vendor/symfony/translation/LocaleSwitcher.php deleted file mode 100644 index 4950a56..0000000 --- a/vendor/symfony/translation/LocaleSwitcher.php +++ /dev/null @@ -1,83 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation; - -use Symfony\Component\Routing\RequestContext; -use Symfony\Contracts\Translation\LocaleAwareInterface; - -/** - * @author Kevin Bond - */ -class LocaleSwitcher implements LocaleAwareInterface -{ - private string $defaultLocale; - - /** - * @param LocaleAwareInterface[] $localeAwareServices - */ - public function __construct( - private string $locale, - private iterable $localeAwareServices, - private ?RequestContext $requestContext = null, - ) { - $this->defaultLocale = $locale; - } - - public function setLocale(string $locale): void - { - // Silently ignore if the intl extension is not loaded - try { - if (class_exists(\Locale::class, false)) { - \Locale::setDefault($locale); - } - } catch (\Exception) { - } - - $this->locale = $locale; - $this->requestContext?->setParameter('_locale', $locale); - - foreach ($this->localeAwareServices as $service) { - $service->setLocale($locale); - } - } - - public function getLocale(): string - { - return $this->locale; - } - - /** - * Switch to a new locale, execute a callback, then switch back to the original. - * - * @template T - * - * @param callable(string $locale):T $callback - * - * @return T - */ - public function runWithLocale(string $locale, callable $callback): mixed - { - $original = $this->getLocale(); - $this->setLocale($locale); - - try { - return $callback($locale); - } finally { - $this->setLocale($original); - } - } - - public function reset(): void - { - $this->setLocale($this->defaultLocale); - } -} diff --git a/vendor/symfony/translation/LoggingTranslator.php b/vendor/symfony/translation/LoggingTranslator.php deleted file mode 100644 index 84020d8..0000000 --- a/vendor/symfony/translation/LoggingTranslator.php +++ /dev/null @@ -1,98 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation; - -use Psr\Log\LoggerInterface; -use Symfony\Contracts\Translation\LocaleAwareInterface; -use Symfony\Contracts\Translation\TranslatorInterface; - -/** - * @author Abdellatif Ait boudad - */ -class LoggingTranslator implements TranslatorInterface, TranslatorBagInterface, LocaleAwareInterface -{ - public function __construct( - private TranslatorInterface&TranslatorBagInterface&LocaleAwareInterface $translator, - private LoggerInterface $logger, - ) { - } - - public function trans(?string $id, array $parameters = [], ?string $domain = null, ?string $locale = null): string - { - $trans = $this->translator->trans($id = (string) $id, $parameters, $domain, $locale); - $this->log($id, $domain, $locale); - - return $trans; - } - - public function setLocale(string $locale): void - { - $prev = $this->translator->getLocale(); - $this->translator->setLocale($locale); - if ($prev === $locale) { - return; - } - - $this->logger->debug(\sprintf('The locale of the translator has changed from "%s" to "%s".', $prev, $locale)); - } - - public function getLocale(): string - { - return $this->translator->getLocale(); - } - - public function getCatalogue(?string $locale = null): MessageCatalogueInterface - { - return $this->translator->getCatalogue($locale); - } - - public function getCatalogues(): array - { - return $this->translator->getCatalogues(); - } - - /** - * Gets the fallback locales. - */ - public function getFallbackLocales(): array - { - if ($this->translator instanceof Translator || method_exists($this->translator, 'getFallbackLocales')) { - return $this->translator->getFallbackLocales(); - } - - return []; - } - - public function __call(string $method, array $args): mixed - { - return $this->translator->{$method}(...$args); - } - - /** - * Logs for missing translations. - */ - private function log(string $id, ?string $domain, ?string $locale): void - { - $domain ??= 'messages'; - - $catalogue = $this->translator->getCatalogue($locale); - if ($catalogue->defines($id, $domain)) { - return; - } - - if ($catalogue->has($id, $domain)) { - $this->logger->debug('Translation use fallback catalogue.', ['id' => $id, 'domain' => $domain, 'locale' => $catalogue->getLocale()]); - } else { - $this->logger->warning('Translation not found.', ['id' => $id, 'domain' => $domain, 'locale' => $catalogue->getLocale()]); - } - } -} diff --git a/vendor/symfony/translation/MessageCatalogue.php b/vendor/symfony/translation/MessageCatalogue.php deleted file mode 100644 index 2d229f2..0000000 --- a/vendor/symfony/translation/MessageCatalogue.php +++ /dev/null @@ -1,306 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation; - -use Symfony\Component\Config\Resource\ResourceInterface; -use Symfony\Component\Translation\Exception\LogicException; - -/** - * @author Fabien Potencier - */ -class MessageCatalogue implements MessageCatalogueInterface, MetadataAwareInterface, CatalogueMetadataAwareInterface -{ - private array $metadata = []; - private array $catalogueMetadata = []; - private array $resources = []; - private ?MessageCatalogueInterface $fallbackCatalogue = null; - private ?self $parent = null; - - /** - * @param array $messages An array of messages classified by domain - */ - public function __construct( - private string $locale, - private array $messages = [], - ) { - } - - public function getLocale(): string - { - return $this->locale; - } - - public function getDomains(): array - { - $domains = []; - - foreach ($this->messages as $domain => $messages) { - if (str_ends_with($domain, self::INTL_DOMAIN_SUFFIX)) { - $domain = substr($domain, 0, -\strlen(self::INTL_DOMAIN_SUFFIX)); - } - $domains[$domain] = $domain; - } - - return array_values($domains); - } - - public function all(?string $domain = null): array - { - if (null !== $domain) { - // skip messages merge if intl-icu requested explicitly - if (str_ends_with($domain, self::INTL_DOMAIN_SUFFIX)) { - return $this->messages[$domain] ?? []; - } - - return ($this->messages[$domain.self::INTL_DOMAIN_SUFFIX] ?? []) + ($this->messages[$domain] ?? []); - } - - $allMessages = []; - - foreach ($this->messages as $domain => $messages) { - if (str_ends_with($domain, self::INTL_DOMAIN_SUFFIX)) { - $domain = substr($domain, 0, -\strlen(self::INTL_DOMAIN_SUFFIX)); - $allMessages[$domain] = $messages + ($allMessages[$domain] ?? []); - } else { - $allMessages[$domain] = ($allMessages[$domain] ?? []) + $messages; - } - } - - return $allMessages; - } - - public function set(string $id, string $translation, string $domain = 'messages'): void - { - $this->add([$id => $translation], $domain); - } - - public function has(string $id, string $domain = 'messages'): bool - { - if (isset($this->messages[$domain][$id]) || isset($this->messages[$domain.self::INTL_DOMAIN_SUFFIX][$id])) { - return true; - } - - if (null !== $this->fallbackCatalogue) { - return $this->fallbackCatalogue->has($id, $domain); - } - - return false; - } - - public function defines(string $id, string $domain = 'messages'): bool - { - return isset($this->messages[$domain][$id]) || isset($this->messages[$domain.self::INTL_DOMAIN_SUFFIX][$id]); - } - - public function get(string $id, string $domain = 'messages'): string - { - if (isset($this->messages[$domain.self::INTL_DOMAIN_SUFFIX][$id])) { - return $this->messages[$domain.self::INTL_DOMAIN_SUFFIX][$id]; - } - - if (isset($this->messages[$domain][$id])) { - return $this->messages[$domain][$id]; - } - - if (null !== $this->fallbackCatalogue) { - return $this->fallbackCatalogue->get($id, $domain); - } - - return $id; - } - - public function replace(array $messages, string $domain = 'messages'): void - { - unset($this->messages[$domain], $this->messages[$domain.self::INTL_DOMAIN_SUFFIX]); - - $this->add($messages, $domain); - } - - public function add(array $messages, string $domain = 'messages'): void - { - $altDomain = str_ends_with($domain, self::INTL_DOMAIN_SUFFIX) ? substr($domain, 0, -\strlen(self::INTL_DOMAIN_SUFFIX)) : $domain.self::INTL_DOMAIN_SUFFIX; - foreach ($messages as $id => $message) { - unset($this->messages[$altDomain][$id]); - $this->messages[$domain][$id] = $message; - } - - if ([] === ($this->messages[$altDomain] ?? null)) { - unset($this->messages[$altDomain]); - } - } - - public function addCatalogue(MessageCatalogueInterface $catalogue): void - { - if ($catalogue->getLocale() !== $this->locale) { - throw new LogicException(\sprintf('Cannot add a catalogue for locale "%s" as the current locale for this catalogue is "%s".', $catalogue->getLocale(), $this->locale)); - } - - foreach ($catalogue->all() as $domain => $messages) { - if ($intlMessages = $catalogue->all($domain.self::INTL_DOMAIN_SUFFIX)) { - $this->add($intlMessages, $domain.self::INTL_DOMAIN_SUFFIX); - $messages = array_diff_key($messages, $intlMessages); - } - $this->add($messages, $domain); - } - - foreach ($catalogue->getResources() as $resource) { - $this->addResource($resource); - } - - if ($catalogue instanceof MetadataAwareInterface) { - $metadata = $catalogue->getMetadata('', ''); - $this->addMetadata($metadata); - } - - if ($catalogue instanceof CatalogueMetadataAwareInterface) { - $catalogueMetadata = $catalogue->getCatalogueMetadata('', ''); - $this->addCatalogueMetadata($catalogueMetadata); - } - } - - public function addFallbackCatalogue(MessageCatalogueInterface $catalogue): void - { - // detect circular references - $c = $catalogue; - while ($c = $c->getFallbackCatalogue()) { - if ($c->getLocale() === $this->getLocale()) { - throw new LogicException(\sprintf('Circular reference detected when adding a fallback catalogue for locale "%s".', $catalogue->getLocale())); - } - } - - $c = $this; - do { - if ($c->getLocale() === $catalogue->getLocale()) { - throw new LogicException(\sprintf('Circular reference detected when adding a fallback catalogue for locale "%s".', $catalogue->getLocale())); - } - - foreach ($catalogue->getResources() as $resource) { - $c->addResource($resource); - } - } while ($c = $c->parent); - - $catalogue->parent = $this; - $this->fallbackCatalogue = $catalogue; - - foreach ($catalogue->getResources() as $resource) { - $this->addResource($resource); - } - } - - public function getFallbackCatalogue(): ?MessageCatalogueInterface - { - return $this->fallbackCatalogue; - } - - public function getResources(): array - { - return array_values($this->resources); - } - - public function addResource(ResourceInterface $resource): void - { - $this->resources[$resource->__toString()] = $resource; - } - - public function getMetadata(string $key = '', string $domain = 'messages'): mixed - { - if ('' == $domain) { - return $this->metadata; - } - - if (isset($this->metadata[$domain])) { - if ('' == $key) { - return $this->metadata[$domain]; - } - - if (isset($this->metadata[$domain][$key])) { - return $this->metadata[$domain][$key]; - } - } - - return null; - } - - public function setMetadata(string $key, mixed $value, string $domain = 'messages'): void - { - $this->metadata[$domain][$key] = $value; - } - - public function deleteMetadata(string $key = '', string $domain = 'messages'): void - { - if ('' == $domain) { - $this->metadata = []; - } elseif ('' == $key) { - unset($this->metadata[$domain]); - } else { - unset($this->metadata[$domain][$key]); - } - } - - public function getCatalogueMetadata(string $key = '', string $domain = 'messages'): mixed - { - if (!$domain) { - return $this->catalogueMetadata; - } - - if (isset($this->catalogueMetadata[$domain])) { - if (!$key) { - return $this->catalogueMetadata[$domain]; - } - - if (isset($this->catalogueMetadata[$domain][$key])) { - return $this->catalogueMetadata[$domain][$key]; - } - } - - return null; - } - - public function setCatalogueMetadata(string $key, mixed $value, string $domain = 'messages'): void - { - $this->catalogueMetadata[$domain][$key] = $value; - } - - public function deleteCatalogueMetadata(string $key = '', string $domain = 'messages'): void - { - if (!$domain) { - $this->catalogueMetadata = []; - } elseif (!$key) { - unset($this->catalogueMetadata[$domain]); - } else { - unset($this->catalogueMetadata[$domain][$key]); - } - } - - /** - * Adds current values with the new values. - * - * @param array $values Values to add - */ - private function addMetadata(array $values): void - { - foreach ($values as $domain => $keys) { - foreach ($keys as $key => $value) { - $this->setMetadata($key, $value, $domain); - } - } - } - - private function addCatalogueMetadata(array $values): void - { - foreach ($values as $domain => $keys) { - foreach ($keys as $key => $value) { - $this->setCatalogueMetadata($key, $value, $domain); - } - } - } -} diff --git a/vendor/symfony/translation/MessageCatalogueInterface.php b/vendor/symfony/translation/MessageCatalogueInterface.php deleted file mode 100644 index 5d63560..0000000 --- a/vendor/symfony/translation/MessageCatalogueInterface.php +++ /dev/null @@ -1,122 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation; - -use Symfony\Component\Config\Resource\ResourceInterface; - -/** - * MessageCatalogueInterface. - * - * @author Fabien Potencier - */ -interface MessageCatalogueInterface -{ - public const INTL_DOMAIN_SUFFIX = '+intl-icu'; - - /** - * Gets the catalogue locale. - */ - public function getLocale(): string; - - /** - * Gets the domains. - */ - public function getDomains(): array; - - /** - * Gets the messages within a given domain. - * - * If $domain is null, it returns all messages. - */ - public function all(?string $domain = null): array; - - /** - * Sets a message translation. - * - * @param string $id The message id - * @param string $translation The messages translation - * @param string $domain The domain name - */ - public function set(string $id, string $translation, string $domain = 'messages'): void; - - /** - * Checks if a message has a translation. - * - * @param string $id The message id - * @param string $domain The domain name - */ - public function has(string $id, string $domain = 'messages'): bool; - - /** - * Checks if a message has a translation (it does not take into account the fallback mechanism). - * - * @param string $id The message id - * @param string $domain The domain name - */ - public function defines(string $id, string $domain = 'messages'): bool; - - /** - * Gets a message translation. - * - * @param string $id The message id - * @param string $domain The domain name - */ - public function get(string $id, string $domain = 'messages'): string; - - /** - * Sets translations for a given domain. - * - * @param array $messages An array of translations - * @param string $domain The domain name - */ - public function replace(array $messages, string $domain = 'messages'): void; - - /** - * Adds translations for a given domain. - * - * @param array $messages An array of translations - * @param string $domain The domain name - */ - public function add(array $messages, string $domain = 'messages'): void; - - /** - * Merges translations from the given Catalogue into the current one. - * - * The two catalogues must have the same locale. - */ - public function addCatalogue(self $catalogue): void; - - /** - * Merges translations from the given Catalogue into the current one - * only when the translation does not exist. - * - * This is used to provide default translations when they do not exist for the current locale. - */ - public function addFallbackCatalogue(self $catalogue): void; - - /** - * Gets the fallback catalogue. - */ - public function getFallbackCatalogue(): ?self; - - /** - * Returns an array of resources loaded to build this collection. - * - * @return ResourceInterface[] - */ - public function getResources(): array; - - /** - * Adds a resource for this collection. - */ - public function addResource(ResourceInterface $resource): void; -} diff --git a/vendor/symfony/translation/MetadataAwareInterface.php b/vendor/symfony/translation/MetadataAwareInterface.php deleted file mode 100644 index 12e4f33..0000000 --- a/vendor/symfony/translation/MetadataAwareInterface.php +++ /dev/null @@ -1,44 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation; - -/** - * This interface is used to get, set, and delete metadata about the translation messages. - * - * @author Fabien Potencier - */ -interface MetadataAwareInterface -{ - /** - * Gets metadata for the given domain and key. - * - * Passing an empty domain will return an array with all metadata indexed by - * domain and then by key. Passing an empty key will return an array with all - * metadata for the given domain. - * - * @return mixed The value that was set or an array with the domains/keys or null - */ - public function getMetadata(string $key = '', string $domain = 'messages'): mixed; - - /** - * Adds metadata to a message domain. - */ - public function setMetadata(string $key, mixed $value, string $domain = 'messages'): void; - - /** - * Deletes metadata for the given key and domain. - * - * Passing an empty domain will delete all metadata. Passing an empty key will - * delete all metadata for the given domain. - */ - public function deleteMetadata(string $key = '', string $domain = 'messages'): void; -} diff --git a/vendor/symfony/translation/Provider/AbstractProviderFactory.php b/vendor/symfony/translation/Provider/AbstractProviderFactory.php deleted file mode 100644 index f0c11d8..0000000 --- a/vendor/symfony/translation/Provider/AbstractProviderFactory.php +++ /dev/null @@ -1,37 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Provider; - -use Symfony\Component\Translation\Exception\IncompleteDsnException; - -abstract class AbstractProviderFactory implements ProviderFactoryInterface -{ - public function supports(Dsn $dsn): bool - { - return \in_array($dsn->getScheme(), $this->getSupportedSchemes(), true); - } - - /** - * @return string[] - */ - abstract protected function getSupportedSchemes(): array; - - protected function getUser(Dsn $dsn): string - { - return $dsn->getUser() ?? throw new IncompleteDsnException('User is not set.', $dsn->getScheme().'://'.$dsn->getHost()); - } - - protected function getPassword(Dsn $dsn): string - { - return $dsn->getPassword() ?? throw new IncompleteDsnException('Password is not set.', $dsn->getOriginalDsn()); - } -} diff --git a/vendor/symfony/translation/Provider/Dsn.php b/vendor/symfony/translation/Provider/Dsn.php deleted file mode 100644 index 1d90e27..0000000 --- a/vendor/symfony/translation/Provider/Dsn.php +++ /dev/null @@ -1,110 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Provider; - -use Symfony\Component\Translation\Exception\InvalidArgumentException; -use Symfony\Component\Translation\Exception\MissingRequiredOptionException; - -/** - * @author Fabien Potencier - * @author Oskar Stark - */ -final class Dsn -{ - private ?string $scheme; - private ?string $host; - private ?string $user; - private ?string $password; - private ?int $port; - private ?string $path; - private array $options = []; - private string $originalDsn; - - public function __construct(#[\SensitiveParameter] string $dsn) - { - $this->originalDsn = $dsn; - - if (false === $params = parse_url($dsn)) { - throw new InvalidArgumentException('The translation provider DSN is invalid.'); - } - - if (!isset($params['scheme'])) { - throw new InvalidArgumentException('The translation provider DSN must contain a scheme.'); - } - $this->scheme = $params['scheme']; - - if (!isset($params['host'])) { - throw new InvalidArgumentException('The translation provider DSN must contain a host (use "default" by default).'); - } - $this->host = $params['host']; - - $this->user = '' !== ($params['user'] ?? '') ? rawurldecode($params['user']) : null; - $this->password = '' !== ($params['pass'] ?? '') ? rawurldecode($params['pass']) : null; - $this->port = $params['port'] ?? null; - $this->path = $params['path'] ?? null; - parse_str($params['query'] ?? '', $this->options); - } - - public function getScheme(): string - { - return $this->scheme; - } - - public function getHost(): string - { - return $this->host; - } - - public function getUser(): ?string - { - return $this->user; - } - - public function getPassword(): ?string - { - return $this->password; - } - - public function getPort(?int $default = null): ?int - { - return $this->port ?? $default; - } - - public function getOption(string $key, mixed $default = null): mixed - { - return $this->options[$key] ?? $default; - } - - public function getRequiredOption(string $key): mixed - { - if (!\array_key_exists($key, $this->options) || '' === trim($this->options[$key])) { - throw new MissingRequiredOptionException($key); - } - - return $this->options[$key]; - } - - public function getOptions(): array - { - return $this->options; - } - - public function getPath(): ?string - { - return $this->path; - } - - public function getOriginalDsn(): string - { - return $this->originalDsn; - } -} diff --git a/vendor/symfony/translation/Provider/FilteringProvider.php b/vendor/symfony/translation/Provider/FilteringProvider.php deleted file mode 100644 index cc11dc3..0000000 --- a/vendor/symfony/translation/Provider/FilteringProvider.php +++ /dev/null @@ -1,58 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Provider; - -use Symfony\Component\Translation\TranslatorBag; -use Symfony\Component\Translation\TranslatorBagInterface; - -/** - * Filters domains and locales between the Translator config values and those specific to each provider. - * - * @author Mathieu Santostefano - */ -class FilteringProvider implements ProviderInterface -{ - public function __construct( - private ProviderInterface $provider, - private array $locales, - private array $domains = [], - ) { - } - - public function __toString(): string - { - return (string) $this->provider; - } - - public function write(TranslatorBagInterface $translatorBag): void - { - $this->provider->write($translatorBag); - } - - public function read(array $domains, array $locales): TranslatorBag - { - $domains = !$this->domains ? $domains : array_intersect($this->domains, $domains); - $locales = array_intersect($this->locales, $locales); - - return $this->provider->read($domains, $locales); - } - - public function delete(TranslatorBagInterface $translatorBag): void - { - $this->provider->delete($translatorBag); - } - - public function getDomains(): array - { - return $this->domains; - } -} diff --git a/vendor/symfony/translation/Provider/NullProvider.php b/vendor/symfony/translation/Provider/NullProvider.php deleted file mode 100644 index f00392e..0000000 --- a/vendor/symfony/translation/Provider/NullProvider.php +++ /dev/null @@ -1,39 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Provider; - -use Symfony\Component\Translation\TranslatorBag; -use Symfony\Component\Translation\TranslatorBagInterface; - -/** - * @author Mathieu Santostefano - */ -class NullProvider implements ProviderInterface -{ - public function __toString(): string - { - return 'null'; - } - - public function write(TranslatorBagInterface $translatorBag, bool $override = false): void - { - } - - public function read(array $domains, array $locales): TranslatorBag - { - return new TranslatorBag(); - } - - public function delete(TranslatorBagInterface $translatorBag): void - { - } -} diff --git a/vendor/symfony/translation/Provider/NullProviderFactory.php b/vendor/symfony/translation/Provider/NullProviderFactory.php deleted file mode 100644 index f350f16..0000000 --- a/vendor/symfony/translation/Provider/NullProviderFactory.php +++ /dev/null @@ -1,34 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Provider; - -use Symfony\Component\Translation\Exception\UnsupportedSchemeException; - -/** - * @author Mathieu Santostefano - */ -final class NullProviderFactory extends AbstractProviderFactory -{ - public function create(Dsn $dsn): ProviderInterface - { - if ('null' === $dsn->getScheme()) { - return new NullProvider(); - } - - throw new UnsupportedSchemeException($dsn, 'null', $this->getSupportedSchemes()); - } - - protected function getSupportedSchemes(): array - { - return ['null']; - } -} diff --git a/vendor/symfony/translation/Provider/ProviderFactoryInterface.php b/vendor/symfony/translation/Provider/ProviderFactoryInterface.php deleted file mode 100644 index 3fd4494..0000000 --- a/vendor/symfony/translation/Provider/ProviderFactoryInterface.php +++ /dev/null @@ -1,26 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Provider; - -use Symfony\Component\Translation\Exception\IncompleteDsnException; -use Symfony\Component\Translation\Exception\UnsupportedSchemeException; - -interface ProviderFactoryInterface -{ - /** - * @throws UnsupportedSchemeException - * @throws IncompleteDsnException - */ - public function create(Dsn $dsn): ProviderInterface; - - public function supports(Dsn $dsn): bool; -} diff --git a/vendor/symfony/translation/Provider/ProviderInterface.php b/vendor/symfony/translation/Provider/ProviderInterface.php deleted file mode 100644 index 0e47083..0000000 --- a/vendor/symfony/translation/Provider/ProviderInterface.php +++ /dev/null @@ -1,30 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Provider; - -use Symfony\Component\Translation\TranslatorBag; -use Symfony\Component\Translation\TranslatorBagInterface; - -interface ProviderInterface extends \Stringable -{ - /** - * Translations available in the TranslatorBag only must be created. - * Translations available in both the TranslatorBag and on the provider - * must be overwritten. - * Translations available on the provider only must be kept. - */ - public function write(TranslatorBagInterface $translatorBag): void; - - public function read(array $domains, array $locales): TranslatorBag; - - public function delete(TranslatorBagInterface $translatorBag): void; -} diff --git a/vendor/symfony/translation/Provider/TranslationProviderCollection.php b/vendor/symfony/translation/Provider/TranslationProviderCollection.php deleted file mode 100644 index 878998f..0000000 --- a/vendor/symfony/translation/Provider/TranslationProviderCollection.php +++ /dev/null @@ -1,57 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Provider; - -use Symfony\Component\Translation\Exception\InvalidArgumentException; - -/** - * @author Mathieu Santostefano - */ -final class TranslationProviderCollection -{ - /** - * @var array - */ - private array $providers; - - /** - * @param array $providers - */ - public function __construct(iterable $providers) - { - $this->providers = \is_array($providers) ? $providers : iterator_to_array($providers); - } - - public function __toString(): string - { - return '['.implode(',', array_keys($this->providers)).']'; - } - - public function has(string $name): bool - { - return isset($this->providers[$name]); - } - - public function get(string $name): ProviderInterface - { - if (!$this->has($name)) { - throw new InvalidArgumentException(\sprintf('Provider "%s" not found. Available: "%s".', $name, (string) $this)); - } - - return $this->providers[$name]; - } - - public function keys(): array - { - return array_keys($this->providers); - } -} diff --git a/vendor/symfony/translation/Provider/TranslationProviderCollectionFactory.php b/vendor/symfony/translation/Provider/TranslationProviderCollectionFactory.php deleted file mode 100644 index 2c8c551..0000000 --- a/vendor/symfony/translation/Provider/TranslationProviderCollectionFactory.php +++ /dev/null @@ -1,54 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Provider; - -use Symfony\Component\Translation\Exception\UnsupportedSchemeException; - -/** - * @author Mathieu Santostefano - */ -class TranslationProviderCollectionFactory -{ - /** - * @param iterable $factories - */ - public function __construct( - private iterable $factories, - private array $enabledLocales, - ) { - } - - public function fromConfig(array $config): TranslationProviderCollection - { - $providers = []; - foreach ($config as $name => $currentConfig) { - $providers[$name] = $this->fromDsnObject( - new Dsn($currentConfig['dsn']), - !$currentConfig['locales'] ? $this->enabledLocales : $currentConfig['locales'], - !$currentConfig['domains'] ? [] : $currentConfig['domains'] - ); - } - - return new TranslationProviderCollection($providers); - } - - public function fromDsnObject(Dsn $dsn, array $locales, array $domains = []): ProviderInterface - { - foreach ($this->factories as $factory) { - if ($factory->supports($dsn)) { - return new FilteringProvider($factory->create($dsn), $locales, $domains); - } - } - - throw new UnsupportedSchemeException($dsn); - } -} diff --git a/vendor/symfony/translation/PseudoLocalizationTranslator.php b/vendor/symfony/translation/PseudoLocalizationTranslator.php deleted file mode 100644 index fe5b0ad..0000000 --- a/vendor/symfony/translation/PseudoLocalizationTranslator.php +++ /dev/null @@ -1,385 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation; - -use Symfony\Component\Translation\Exception\LogicException; -use Symfony\Contracts\Translation\TranslatorInterface; - -/** - * This translator should only be used in a development environment. - */ -final class PseudoLocalizationTranslator implements TranslatorInterface, TranslatorBagInterface -{ - private const EXPANSION_CHARACTER = '~'; - - private bool $accents; - private float $expansionFactor; - private bool $brackets; - private bool $parseHTML; - - /** - * @var string[] - */ - private array $localizableHTMLAttributes; - - /** - * Available options: - * * accents: - * type: boolean - * default: true - * description: replace ASCII characters of the translated string with accented versions or similar characters - * example: if true, "foo" => "ƒöö". - * - * * expansion_factor: - * type: float - * default: 1 - * validation: it must be greater than or equal to 1 - * description: expand the translated string by the given factor with spaces and tildes - * example: if 2, "foo" => "~foo ~" - * - * * brackets: - * type: boolean - * default: true - * description: wrap the translated string with brackets - * example: if true, "foo" => "[foo]" - * - * * parse_html: - * type: boolean - * default: false - * description: parse the translated string as HTML - looking for HTML tags has a performance impact but allows to preserve them from alterations - it also allows to compute the visible translated string length which is useful to correctly expand ot when it contains HTML - * warning: unclosed tags are unsupported, they will be fixed (closed) by the parser - eg, "foo
bar" => "foo
bar
" - * - * * localizable_html_attributes: - * type: string[] - * default: [] - * description: the list of HTML attributes whose values can be altered - it is only useful when the "parse_html" option is set to true - * example: if ["title"], and with the "accents" option set to true, "Profile" => "Þŕöƒîļé" - if "title" was not in the "localizable_html_attributes" list, the title attribute data would be left unchanged. - */ - public function __construct( - private TranslatorInterface $translator, - array $options = [], - ) { - $this->translator = $translator; - $this->accents = $options['accents'] ?? true; - - if (1.0 > ($this->expansionFactor = $options['expansion_factor'] ?? 1.0)) { - throw new \InvalidArgumentException('The expansion factor must be greater than or equal to 1.'); - } - - $this->brackets = $options['brackets'] ?? true; - - $this->parseHTML = $options['parse_html'] ?? false; - if ($this->parseHTML && !$this->accents && 1.0 === $this->expansionFactor) { - $this->parseHTML = false; - } - - $this->localizableHTMLAttributes = $options['localizable_html_attributes'] ?? []; - } - - public function trans(string $id, array $parameters = [], ?string $domain = null, ?string $locale = null): string - { - $trans = ''; - $visibleText = ''; - - foreach ($this->getParts($this->translator->trans($id, $parameters, $domain, $locale)) as [$visible, $localizable, $text]) { - if ($visible) { - $visibleText .= $text; - } - - if (!$localizable) { - $trans .= $text; - - continue; - } - - $this->addAccents($trans, $text); - } - - $this->expand($trans, $visibleText); - - $this->addBrackets($trans); - - return $trans; - } - - public function getLocale(): string - { - return $this->translator->getLocale(); - } - - public function getCatalogue(?string $locale = null): MessageCatalogueInterface - { - if (!$this->translator instanceof TranslatorBagInterface) { - throw new LogicException(\sprintf('The "%s()" method cannot be called as the wrapped translator class "%s" does not implement the "%s".', __METHOD__, $this->translator::class, TranslatorBagInterface::class)); - } - - return $this->translator->getCatalogue($locale); - } - - public function getCatalogues(): array - { - if (!$this->translator instanceof TranslatorBagInterface) { - throw new LogicException(\sprintf('The "%s()" method cannot be called as the wrapped translator class "%s" does not implement the "%s".', __METHOD__, $this->translator::class, TranslatorBagInterface::class)); - } - - return $this->translator->getCatalogues(); - } - - private function getParts(string $originalTrans): array - { - if (!$this->parseHTML) { - return [[true, true, $originalTrans]]; - } - - $html = mb_encode_numericentity($originalTrans, [0x80, 0x10FFFF, 0, 0x1FFFFF], mb_detect_encoding($originalTrans, null, true) ?: 'UTF-8'); - - $useInternalErrors = libxml_use_internal_errors(true); - - $dom = new \DOMDocument(); - $dom->loadHTML(''.$html.''); - - libxml_clear_errors(); - libxml_use_internal_errors($useInternalErrors); - - return $this->parseNode($dom->childNodes->item(1)->childNodes->item(0)->childNodes->item(0)); - } - - private function parseNode(\DOMNode $node): array - { - $parts = []; - - foreach ($node->childNodes as $childNode) { - if (!$childNode instanceof \DOMElement) { - $parts[] = [true, true, $childNode->nodeValue]; - - continue; - } - - $parts[] = [false, false, '<'.$childNode->tagName]; - - /** @var \DOMAttr $attribute */ - foreach ($childNode->attributes as $attribute) { - $parts[] = [false, false, ' '.$attribute->nodeName.'="']; - - $localizableAttribute = \in_array($attribute->nodeName, $this->localizableHTMLAttributes, true); - foreach (preg_split('/(&(?:amp|quot|#039|lt|gt);+)/', htmlspecialchars($attribute->nodeValue, \ENT_QUOTES, 'UTF-8'), -1, \PREG_SPLIT_DELIM_CAPTURE) as $i => $match) { - if ('' === $match) { - continue; - } - - $parts[] = [false, $localizableAttribute && 0 === $i % 2, $match]; - } - - $parts[] = [false, false, '"']; - } - - $parts[] = [false, false, '>']; - - $parts = array_merge($parts, $this->parseNode($childNode, $parts)); - - $parts[] = [false, false, 'tagName.'>']; - } - - return $parts; - } - - private function addAccents(string &$trans, string $text): void - { - $trans .= $this->accents ? strtr($text, [ - ' ' => ' ', - '!' => '¡', - '"' => '″', - '#' => '♯', - '$' => '€', - '%' => '‰', - '&' => '⅋', - '\'' => '´', - '(' => '{', - ')' => '}', - '*' => '⁎', - '+' => '⁺', - ',' => '،', - '-' => '‐', - '.' => '·', - '/' => '⁄', - '0' => '⓪', - '1' => '①', - '2' => '②', - '3' => '③', - '4' => '④', - '5' => '⑤', - '6' => '⑥', - '7' => '⑦', - '8' => '⑧', - '9' => '⑨', - ':' => '∶', - ';' => '⁏', - '<' => '≤', - '=' => '≂', - '>' => '≥', - '?' => '¿', - '@' => '՞', - 'A' => 'Å', - 'B' => 'Ɓ', - 'C' => 'Ç', - 'D' => 'Ð', - 'E' => 'É', - 'F' => 'Ƒ', - 'G' => 'Ĝ', - 'H' => 'Ĥ', - 'I' => 'Î', - 'J' => 'Ĵ', - 'K' => 'Ķ', - 'L' => 'Ļ', - 'M' => 'Ṁ', - 'N' => 'Ñ', - 'O' => 'Ö', - 'P' => 'Þ', - 'Q' => 'Ǫ', - 'R' => 'Ŕ', - 'S' => 'Š', - 'T' => 'Ţ', - 'U' => 'Û', - 'V' => 'Ṽ', - 'W' => 'Ŵ', - 'X' => 'Ẋ', - 'Y' => 'Ý', - 'Z' => 'Ž', - '[' => '⁅', - '\\' => '∖', - ']' => '⁆', - '^' => '˄', - '_' => '‿', - '`' => '‵', - 'a' => 'å', - 'b' => 'ƀ', - 'c' => 'ç', - 'd' => 'ð', - 'e' => 'é', - 'f' => 'ƒ', - 'g' => 'ĝ', - 'h' => 'ĥ', - 'i' => 'î', - 'j' => 'ĵ', - 'k' => 'ķ', - 'l' => 'ļ', - 'm' => 'ɱ', - 'n' => 'ñ', - 'o' => 'ö', - 'p' => 'þ', - 'q' => 'ǫ', - 'r' => 'ŕ', - 's' => 'š', - 't' => 'ţ', - 'u' => 'û', - 'v' => 'ṽ', - 'w' => 'ŵ', - 'x' => 'ẋ', - 'y' => 'ý', - 'z' => 'ž', - '{' => '(', - '|' => '¦', - '}' => ')', - '~' => '˞', - ]) : $text; - } - - private function expand(string &$trans, string $visibleText): void - { - if (1.0 >= $this->expansionFactor) { - return; - } - - $visibleLength = $this->strlen($visibleText); - $missingLength = (int) ceil($visibleLength * $this->expansionFactor) - $visibleLength; - if ($this->brackets) { - $missingLength -= 2; - } - - if (0 >= $missingLength) { - return; - } - - $words = []; - $wordsCount = 0; - foreach (preg_split('/ +/', $visibleText, -1, \PREG_SPLIT_NO_EMPTY) as $word) { - $wordLength = $this->strlen($word); - - if ($wordLength >= $missingLength) { - continue; - } - - if (!isset($words[$wordLength])) { - $words[$wordLength] = 0; - } - - ++$words[$wordLength]; - ++$wordsCount; - } - - if (!$words) { - $trans .= 1 === $missingLength ? self::EXPANSION_CHARACTER : ' '.str_repeat(self::EXPANSION_CHARACTER, $missingLength - 1); - - return; - } - - arsort($words, \SORT_NUMERIC); - - $longestWordLength = max(array_keys($words)); - - while (true) { - $r = mt_rand(1, $wordsCount); - - foreach ($words as $length => $count) { - $r -= $count; - if ($r <= 0) { - break; - } - } - - $trans .= ' '.str_repeat(self::EXPANSION_CHARACTER, $length); - - $missingLength -= $length + 1; - - if (0 === $missingLength) { - return; - } - - while ($longestWordLength >= $missingLength) { - $wordsCount -= $words[$longestWordLength]; - unset($words[$longestWordLength]); - - if (!$words) { - $trans .= 1 === $missingLength ? self::EXPANSION_CHARACTER : ' '.str_repeat(self::EXPANSION_CHARACTER, $missingLength - 1); - - return; - } - - $longestWordLength = max(array_keys($words)); - } - } - } - - private function addBrackets(string &$trans): void - { - if (!$this->brackets) { - return; - } - - $trans = '['.$trans.']'; - } - - private function strlen(string $s): int - { - return false === ($encoding = mb_detect_encoding($s, null, true)) ? \strlen($s) : mb_strlen($s, $encoding); - } -} diff --git a/vendor/symfony/translation/README.md b/vendor/symfony/translation/README.md deleted file mode 100644 index e9174ec..0000000 --- a/vendor/symfony/translation/README.md +++ /dev/null @@ -1,46 +0,0 @@ -Translation Component -===================== - -The Translation component provides tools to internationalize your application. - -Getting Started ---------------- - -```bash -composer require symfony/translation -``` - -```php -use Symfony\Component\Translation\Translator; -use Symfony\Component\Translation\Loader\ArrayLoader; - -$translator = new Translator('fr_FR'); -$translator->addLoader('array', new ArrayLoader()); -$translator->addResource('array', [ - 'Hello World!' => 'Bonjour !', -], 'fr_FR'); - -echo $translator->trans('Hello World!'); // outputs « Bonjour ! » -``` - -Sponsor -------- - -The Translation component for Symfony 7.1 is [backed][1] by: - - * [Crowdin][2], a cloud-based localization management software helping teams to go global and stay agile. - -Help Symfony by [sponsoring][3] its development! - -Resources ---------- - - * [Documentation](https://symfony.com/doc/current/translation.html) - * [Contributing](https://symfony.com/doc/current/contributing/index.html) - * [Report issues](https://github.com/symfony/symfony/issues) and - [send Pull Requests](https://github.com/symfony/symfony/pulls) - in the [main Symfony repository](https://github.com/symfony/symfony) - -[1]: https://symfony.com/backers -[2]: https://crowdin.com -[3]: https://symfony.com/sponsor diff --git a/vendor/symfony/translation/Reader/TranslationReader.php b/vendor/symfony/translation/Reader/TranslationReader.php deleted file mode 100644 index 928e2c5..0000000 --- a/vendor/symfony/translation/Reader/TranslationReader.php +++ /dev/null @@ -1,59 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Reader; - -use Symfony\Component\Finder\Finder; -use Symfony\Component\Translation\Loader\LoaderInterface; -use Symfony\Component\Translation\MessageCatalogue; - -/** - * TranslationReader reads translation messages from translation files. - * - * @author Michel Salib - */ -class TranslationReader implements TranslationReaderInterface -{ - /** - * Loaders used for import. - * - * @var array - */ - private array $loaders = []; - - /** - * Adds a loader to the translation extractor. - * - * @param string $format The format of the loader - */ - public function addLoader(string $format, LoaderInterface $loader): void - { - $this->loaders[$format] = $loader; - } - - public function read(string $directory, MessageCatalogue $catalogue): void - { - if (!is_dir($directory)) { - return; - } - - foreach ($this->loaders as $format => $loader) { - // load any existing translation files - $finder = new Finder(); - $extension = $catalogue->getLocale().'.'.$format; - $files = $finder->files()->name('*.'.$extension)->in($directory); - foreach ($files as $file) { - $domain = substr($file->getFilename(), 0, -1 * \strlen($extension) - 1); - $catalogue->addCatalogue($loader->load($file->getPathname(), $catalogue->getLocale(), $domain)); - } - } - } -} diff --git a/vendor/symfony/translation/Reader/TranslationReaderInterface.php b/vendor/symfony/translation/Reader/TranslationReaderInterface.php deleted file mode 100644 index bab6e59..0000000 --- a/vendor/symfony/translation/Reader/TranslationReaderInterface.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Reader; - -use Symfony\Component\Translation\MessageCatalogue; - -/** - * TranslationReader reads translation messages from translation files. - * - * @author Tobias Nyholm - */ -interface TranslationReaderInterface -{ - /** - * Reads translation messages from a directory to the catalogue. - */ - public function read(string $directory, MessageCatalogue $catalogue): void; -} diff --git a/vendor/symfony/translation/Resources/bin/translation-status.php b/vendor/symfony/translation/Resources/bin/translation-status.php deleted file mode 100644 index 42fa1c6..0000000 --- a/vendor/symfony/translation/Resources/bin/translation-status.php +++ /dev/null @@ -1,274 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -if ('cli' !== \PHP_SAPI) { - throw new Exception('This script must be run from the command line.'); -} - -$usageInstructions = << false, - // NULL = analyze all locales - 'locale_to_analyze' => null, - // append --incomplete to only show incomplete languages - 'include_completed_languages' => true, - // the reference files all the other translations are compared to - 'original_files' => [ - 'src/Symfony/Component/Form/Resources/translations/validators.en.xlf', - 'src/Symfony/Component/Security/Core/Resources/translations/security.en.xlf', - 'src/Symfony/Component/Validator/Resources/translations/validators.en.xlf', - ], -]; - -$argc = $_SERVER['argc']; -$argv = $_SERVER['argv']; - -if ($argc > 4) { - echo str_replace('translation-status.php', $argv[0], $usageInstructions); - exit(1); -} - -foreach (array_slice($argv, 1) as $argumentOrOption) { - if ('--incomplete' === $argumentOrOption) { - $config['include_completed_languages'] = false; - continue; - } - - if (str_starts_with($argumentOrOption, '-')) { - $config['verbose_output'] = true; - } else { - $config['locale_to_analyze'] = $argumentOrOption; - } -} - -foreach ($config['original_files'] as $originalFilePath) { - if (!file_exists($originalFilePath)) { - echo sprintf('The following file does not exist. Make sure that you execute this command at the root dir of the Symfony code repository.%s %s', \PHP_EOL, $originalFilePath); - exit(1); - } -} - -$totalMissingTranslations = 0; -$totalTranslationMismatches = 0; - -foreach ($config['original_files'] as $originalFilePath) { - $translationFilePaths = findTranslationFiles($originalFilePath, $config['locale_to_analyze']); - $translationStatus = calculateTranslationStatus($originalFilePath, $translationFilePaths); - - $totalMissingTranslations += array_sum(array_map(fn ($translation) => count($translation['missingKeys']), array_values($translationStatus))); - $totalTranslationMismatches += array_sum(array_map(fn ($translation) => count($translation['mismatches']), array_values($translationStatus))); - - printTranslationStatus($originalFilePath, $translationStatus, $config['verbose_output'], $config['include_completed_languages']); -} - -exit($totalTranslationMismatches > 0 ? 1 : 0); - -function findTranslationFiles($originalFilePath, $localeToAnalyze): array -{ - $translations = []; - - $translationsDir = dirname($originalFilePath); - $originalFileName = basename($originalFilePath); - $translationFileNamePattern = str_replace('.en.', '.*.', $originalFileName); - - $translationFiles = glob($translationsDir.'/'.$translationFileNamePattern, \GLOB_NOSORT); - sort($translationFiles); - foreach ($translationFiles as $filePath) { - $locale = extractLocaleFromFilePath($filePath); - - if (null !== $localeToAnalyze && $locale !== $localeToAnalyze) { - continue; - } - - $translations[$locale] = $filePath; - } - - return $translations; -} - -function calculateTranslationStatus($originalFilePath, $translationFilePaths): array -{ - $translationStatus = []; - $allTranslationKeys = extractTranslationKeys($originalFilePath); - - foreach ($translationFilePaths as $locale => $translationPath) { - $translatedKeys = extractTranslationKeys($translationPath); - $missingKeys = array_diff_key($allTranslationKeys, $translatedKeys); - $mismatches = findTransUnitMismatches($allTranslationKeys, $translatedKeys); - - $translationStatus[$locale] = [ - 'total' => count($allTranslationKeys), - 'translated' => count($translatedKeys), - 'missingKeys' => $missingKeys, - 'mismatches' => $mismatches, - ]; - $translationStatus[$locale]['is_completed'] = isTranslationCompleted($translationStatus[$locale]); - } - - return $translationStatus; -} - -function isTranslationCompleted(array $translationStatus): bool -{ - return $translationStatus['total'] === $translationStatus['translated'] && 0 === count($translationStatus['mismatches']); -} - -function printTranslationStatus($originalFilePath, $translationStatus, $verboseOutput, $includeCompletedLanguages) -{ - printTitle($originalFilePath); - printTable($translationStatus, $verboseOutput, $includeCompletedLanguages); - echo \PHP_EOL.\PHP_EOL; -} - -function extractLocaleFromFilePath($filePath) -{ - $parts = explode('.', $filePath); - - return $parts[count($parts) - 2]; -} - -function extractTranslationKeys($filePath): array -{ - $translationKeys = []; - $contents = new SimpleXMLElement(file_get_contents($filePath)); - - foreach ($contents->file->body->{'trans-unit'} as $translationKey) { - $translationId = (string) $translationKey['id']; - $translationKey = (string) ($translationKey['resname'] ?? $translationKey->source); - - $translationKeys[$translationId] = $translationKey; - } - - return $translationKeys; -} - -/** - * Check whether the trans-unit id and source match with the base translation. - */ -function findTransUnitMismatches(array $baseTranslationKeys, array $translatedKeys): array -{ - $mismatches = []; - - foreach ($baseTranslationKeys as $translationId => $translationKey) { - if (!isset($translatedKeys[$translationId])) { - continue; - } - if ($translatedKeys[$translationId] !== $translationKey) { - $mismatches[$translationId] = [ - 'found' => $translatedKeys[$translationId], - 'expected' => $translationKey, - ]; - } - } - - return $mismatches; -} - -function printTitle($title) -{ - echo $title.\PHP_EOL; - echo str_repeat('=', strlen($title)).\PHP_EOL.\PHP_EOL; -} - -function printTable($translations, $verboseOutput, bool $includeCompletedLanguages) -{ - if (0 === count($translations)) { - echo 'No translations found'; - - return; - } - $longestLocaleNameLength = max(array_map('strlen', array_keys($translations))); - - foreach ($translations as $locale => $translation) { - if (!$includeCompletedLanguages && $translation['is_completed']) { - continue; - } - - if ($translation['translated'] > $translation['total']) { - textColorRed(); - } elseif (count($translation['mismatches']) > 0) { - textColorRed(); - } elseif ($translation['is_completed']) { - textColorGreen(); - } - - echo sprintf( - '| Locale: %-'.$longestLocaleNameLength.'s | Translated: %2d/%2d | Mismatches: %d |', - $locale, - $translation['translated'], - $translation['total'], - count($translation['mismatches']) - ).\PHP_EOL; - - textColorNormal(); - - $shouldBeClosed = false; - if (true === $verboseOutput && count($translation['missingKeys']) > 0) { - echo '| Missing Translations:'.\PHP_EOL; - - foreach ($translation['missingKeys'] as $id => $content) { - echo sprintf('| (id=%s) %s', $id, $content).\PHP_EOL; - } - $shouldBeClosed = true; - } - if (true === $verboseOutput && count($translation['mismatches']) > 0) { - echo '| Mismatches between trans-unit id and source:'.\PHP_EOL; - - foreach ($translation['mismatches'] as $id => $content) { - echo sprintf('| (id=%s) Expected: %s', $id, $content['expected']).\PHP_EOL; - echo sprintf('| Found: %s', $content['found']).\PHP_EOL; - } - $shouldBeClosed = true; - } - if ($shouldBeClosed) { - echo str_repeat('-', 80).\PHP_EOL; - } - } -} - -function textColorGreen() -{ - echo "\033[32m"; -} - -function textColorRed() -{ - echo "\033[31m"; -} - -function textColorNormal() -{ - echo "\033[0m"; -} diff --git a/vendor/symfony/translation/Resources/data/parents.json b/vendor/symfony/translation/Resources/data/parents.json deleted file mode 100644 index 24d4d11..0000000 --- a/vendor/symfony/translation/Resources/data/parents.json +++ /dev/null @@ -1,142 +0,0 @@ -{ - "az_Cyrl": "root", - "bs_Cyrl": "root", - "en_150": "en_001", - "en_AG": "en_001", - "en_AI": "en_001", - "en_AT": "en_150", - "en_AU": "en_001", - "en_BB": "en_001", - "en_BE": "en_150", - "en_BM": "en_001", - "en_BS": "en_001", - "en_BW": "en_001", - "en_BZ": "en_001", - "en_CC": "en_001", - "en_CH": "en_150", - "en_CK": "en_001", - "en_CM": "en_001", - "en_CX": "en_001", - "en_CY": "en_001", - "en_DE": "en_150", - "en_DG": "en_001", - "en_DK": "en_150", - "en_DM": "en_001", - "en_ER": "en_001", - "en_FI": "en_150", - "en_FJ": "en_001", - "en_FK": "en_001", - "en_FM": "en_001", - "en_GB": "en_001", - "en_GD": "en_001", - "en_GG": "en_001", - "en_GH": "en_001", - "en_GI": "en_001", - "en_GM": "en_001", - "en_GY": "en_001", - "en_HK": "en_001", - "en_ID": "en_001", - "en_IE": "en_001", - "en_IL": "en_001", - "en_IM": "en_001", - "en_IN": "en_001", - "en_IO": "en_001", - "en_JE": "en_001", - "en_JM": "en_001", - "en_KE": "en_001", - "en_KI": "en_001", - "en_KN": "en_001", - "en_KY": "en_001", - "en_LC": "en_001", - "en_LR": "en_001", - "en_LS": "en_001", - "en_MG": "en_001", - "en_MO": "en_001", - "en_MS": "en_001", - "en_MT": "en_001", - "en_MU": "en_001", - "en_MV": "en_001", - "en_MW": "en_001", - "en_MY": "en_001", - "en_NA": "en_001", - "en_NF": "en_001", - "en_NG": "en_001", - "en_NL": "en_150", - "en_NR": "en_001", - "en_NU": "en_001", - "en_NZ": "en_001", - "en_PG": "en_001", - "en_PK": "en_001", - "en_PN": "en_001", - "en_PW": "en_001", - "en_RW": "en_001", - "en_SB": "en_001", - "en_SC": "en_001", - "en_SD": "en_001", - "en_SE": "en_150", - "en_SG": "en_001", - "en_SH": "en_001", - "en_SI": "en_150", - "en_SL": "en_001", - "en_SS": "en_001", - "en_SX": "en_001", - "en_SZ": "en_001", - "en_TC": "en_001", - "en_TK": "en_001", - "en_TO": "en_001", - "en_TT": "en_001", - "en_TV": "en_001", - "en_TZ": "en_001", - "en_UG": "en_001", - "en_VC": "en_001", - "en_VG": "en_001", - "en_VU": "en_001", - "en_WS": "en_001", - "en_ZA": "en_001", - "en_ZM": "en_001", - "en_ZW": "en_001", - "es_AR": "es_419", - "es_BO": "es_419", - "es_BR": "es_419", - "es_BZ": "es_419", - "es_CL": "es_419", - "es_CO": "es_419", - "es_CR": "es_419", - "es_CU": "es_419", - "es_DO": "es_419", - "es_EC": "es_419", - "es_GT": "es_419", - "es_HN": "es_419", - "es_MX": "es_419", - "es_NI": "es_419", - "es_PA": "es_419", - "es_PE": "es_419", - "es_PR": "es_419", - "es_PY": "es_419", - "es_SV": "es_419", - "es_US": "es_419", - "es_UY": "es_419", - "es_VE": "es_419", - "ff_Adlm": "root", - "hi_Latn": "en_IN", - "ks_Deva": "root", - "nb": "no", - "nn": "no", - "pa_Arab": "root", - "pt_AO": "pt_PT", - "pt_CH": "pt_PT", - "pt_CV": "pt_PT", - "pt_GQ": "pt_PT", - "pt_GW": "pt_PT", - "pt_LU": "pt_PT", - "pt_MO": "pt_PT", - "pt_MZ": "pt_PT", - "pt_ST": "pt_PT", - "pt_TL": "pt_PT", - "sd_Deva": "root", - "sr_Latn": "root", - "uz_Arab": "root", - "uz_Cyrl": "root", - "zh_Hant": "root", - "zh_Hant_MO": "zh_Hant_HK" -} diff --git a/vendor/symfony/translation/Resources/functions.php b/vendor/symfony/translation/Resources/functions.php deleted file mode 100644 index 0d2a037..0000000 --- a/vendor/symfony/translation/Resources/functions.php +++ /dev/null @@ -1,22 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation; - -if (!\function_exists(t::class)) { - /** - * @author Nate Wiebe - */ - function t(string $message, array $parameters = [], ?string $domain = null): TranslatableMessage - { - return new TranslatableMessage($message, $parameters, $domain); - } -} diff --git a/vendor/symfony/translation/Resources/schemas/xliff-core-1.2-transitional.xsd b/vendor/symfony/translation/Resources/schemas/xliff-core-1.2-transitional.xsd deleted file mode 100644 index 1f38de7..0000000 --- a/vendor/symfony/translation/Resources/schemas/xliff-core-1.2-transitional.xsd +++ /dev/null @@ -1,2261 +0,0 @@ - - - - - - - - - - - - - - Values for the attribute 'context-type'. - - - - - Indicates a database content. - - - - - Indicates the content of an element within an XML document. - - - - - Indicates the name of an element within an XML document. - - - - - Indicates the line number from the sourcefile (see context-type="sourcefile") where the <source> is found. - - - - - Indicates a the number of parameters contained within the <source>. - - - - - Indicates notes pertaining to the parameters in the <source>. - - - - - Indicates the content of a record within a database. - - - - - Indicates the name of a record within a database. - - - - - Indicates the original source file in the case that multiple files are merged to form the original file from which the XLIFF file is created. This differs from the original <file> attribute in that this sourcefile is one of many that make up that file. - - - - - - - Values for the attribute 'count-type'. - - - - - Indicates the count units are items that are used X times in a certain context; example: this is a reusable text unit which is used 42 times in other texts. - - - - - Indicates the count units are translation units existing already in the same document. - - - - - Indicates a total count. - - - - - - - Values for the attribute 'ctype' when used other elements than <ph> or <x>. - - - - - Indicates a run of bolded text. - - - - - Indicates a run of text in italics. - - - - - Indicates a run of underlined text. - - - - - Indicates a run of hyper-text. - - - - - - - Values for the attribute 'ctype' when used with <ph> or <x>. - - - - - Indicates a inline image. - - - - - Indicates a page break. - - - - - Indicates a line break. - - - - - - - - - - - - Values for the attribute 'datatype'. - - - - - Indicates Active Server Page data. - - - - - Indicates C source file data. - - - - - Indicates Channel Definition Format (CDF) data. - - - - - Indicates ColdFusion data. - - - - - Indicates C++ source file data. - - - - - Indicates C-Sharp data. - - - - - Indicates strings from C, ASM, and driver files data. - - - - - Indicates comma-separated values data. - - - - - Indicates database data. - - - - - Indicates portions of document that follows data and contains metadata. - - - - - Indicates portions of document that precedes data and contains metadata. - - - - - Indicates data from standard UI file operations dialogs (e.g., Open, Save, Save As, Export, Import). - - - - - Indicates standard user input screen data. - - - - - Indicates HyperText Markup Language (HTML) data - document instance. - - - - - Indicates content within an HTML document’s <body> element. - - - - - Indicates Windows INI file data. - - - - - Indicates Interleaf data. - - - - - Indicates Java source file data (extension '.java'). - - - - - Indicates Java property resource bundle data. - - - - - Indicates Java list resource bundle data. - - - - - Indicates JavaScript source file data. - - - - - Indicates JScript source file data. - - - - - Indicates information relating to formatting. - - - - - Indicates LISP source file data. - - - - - Indicates information relating to margin formats. - - - - - Indicates a file containing menu. - - - - - Indicates numerically identified string table. - - - - - Indicates Maker Interchange Format (MIF) data. - - - - - Indicates that the datatype attribute value is a MIME Type value and is defined in the mime-type attribute. - - - - - Indicates GNU Machine Object data. - - - - - Indicates Message Librarian strings created by Novell's Message Librarian Tool. - - - - - Indicates information to be displayed at the bottom of each page of a document. - - - - - Indicates information to be displayed at the top of each page of a document. - - - - - Indicates a list of property values (e.g., settings within INI files or preferences dialog). - - - - - Indicates Pascal source file data. - - - - - Indicates Hypertext Preprocessor data. - - - - - Indicates plain text file (no formatting other than, possibly, wrapping). - - - - - Indicates GNU Portable Object file. - - - - - Indicates dynamically generated user defined document. e.g. Oracle Report, Crystal Report, etc. - - - - - Indicates Windows .NET binary resources. - - - - - Indicates Windows .NET Resources. - - - - - Indicates Rich Text Format (RTF) data. - - - - - Indicates Standard Generalized Markup Language (SGML) data - document instance. - - - - - Indicates Standard Generalized Markup Language (SGML) data - Document Type Definition (DTD). - - - - - Indicates Scalable Vector Graphic (SVG) data. - - - - - Indicates VisualBasic Script source file. - - - - - Indicates warning message. - - - - - Indicates Windows (Win32) resources (i.e. resources extracted from an RC script, a message file, or a compiled file). - - - - - Indicates Extensible HyperText Markup Language (XHTML) data - document instance. - - - - - Indicates Extensible Markup Language (XML) data - document instance. - - - - - Indicates Extensible Markup Language (XML) data - Document Type Definition (DTD). - - - - - Indicates Extensible Stylesheet Language (XSL) data. - - - - - Indicates XUL elements. - - - - - - - Values for the attribute 'mtype'. - - - - - Indicates the marked text is an abbreviation. - - - - - ISO-12620 2.1.8: A term resulting from the omission of any part of the full term while designating the same concept. - - - - - ISO-12620 2.1.8.1: An abbreviated form of a simple term resulting from the omission of some of its letters (e.g. 'adj.' for 'adjective'). - - - - - ISO-12620 2.1.8.4: An abbreviated form of a term made up of letters from the full form of a multiword term strung together into a sequence pronounced only syllabically (e.g. 'radar' for 'radio detecting and ranging'). - - - - - ISO-12620: A proper-name term, such as the name of an agency or other proper entity. - - - - - ISO-12620 2.1.18.1: A recurrent word combination characterized by cohesion in that the components of the collocation must co-occur within an utterance or series of utterances, even though they do not necessarily have to maintain immediate proximity to one another. - - - - - ISO-12620 2.1.5: A synonym for an international scientific term that is used in general discourse in a given language. - - - - - Indicates the marked text is a date and/or time. - - - - - ISO-12620 2.1.15: An expression used to represent a concept based on a statement that two mathematical expressions are, for instance, equal as identified by the equal sign (=), or assigned to one another by a similar sign. - - - - - ISO-12620 2.1.7: The complete representation of a term for which there is an abbreviated form. - - - - - ISO-12620 2.1.14: Figures, symbols or the like used to express a concept briefly, such as a mathematical or chemical formula. - - - - - ISO-12620 2.1.1: The concept designation that has been chosen to head a terminological record. - - - - - ISO-12620 2.1.8.3: An abbreviated form of a term consisting of some of the initial letters of the words making up a multiword term or the term elements making up a compound term when these letters are pronounced individually (e.g. 'BSE' for 'bovine spongiform encephalopathy'). - - - - - ISO-12620 2.1.4: A term that is part of an international scientific nomenclature as adopted by an appropriate scientific body. - - - - - ISO-12620 2.1.6: A term that has the same or nearly identical orthographic or phonemic form in many languages. - - - - - ISO-12620 2.1.16: An expression used to represent a concept based on mathematical or logical relations, such as statements of inequality, set relationships, Boolean operations, and the like. - - - - - ISO-12620 2.1.17: A unit to track object. - - - - - Indicates the marked text is a name. - - - - - ISO-12620 2.1.3: A term that represents the same or a very similar concept as another term in the same language, but for which interchangeability is limited to some contexts and inapplicable in others. - - - - - ISO-12620 2.1.17.2: A unique alphanumeric designation assigned to an object in a manufacturing system. - - - - - Indicates the marked text is a phrase. - - - - - ISO-12620 2.1.18: Any group of two or more words that form a unit, the meaning of which frequently cannot be deduced based on the combined sense of the words making up the phrase. - - - - - Indicates the marked text should not be translated. - - - - - ISO-12620 2.1.12: A form of a term resulting from an operation whereby non-Latin writing systems are converted to the Latin alphabet. - - - - - Indicates that the marked text represents a segment. - - - - - ISO-12620 2.1.18.2: A fixed, lexicalized phrase. - - - - - ISO-12620 2.1.8.2: A variant of a multiword term that includes fewer words than the full form of the term (e.g. 'Group of Twenty-four' for 'Intergovernmental Group of Twenty-four on International Monetary Affairs'). - - - - - ISO-12620 2.1.17.1: Stock keeping unit, an inventory item identified by a unique alphanumeric designation assigned to an object in an inventory control system. - - - - - ISO-12620 2.1.19: A fixed chunk of recurring text. - - - - - ISO-12620 2.1.13: A designation of a concept by letters, numerals, pictograms or any combination thereof. - - - - - ISO-12620 2.1.2: Any term that represents the same or a very similar concept as the main entry term in a term entry. - - - - - ISO-12620 2.1.18.3: Phraseological unit in a language that expresses the same semantic content as another phrase in that same language. - - - - - Indicates the marked text is a term. - - - - - ISO-12620 2.1.11: A form of a term resulting from an operation whereby the characters of one writing system are represented by characters from another writing system, taking into account the pronunciation of the characters converted. - - - - - ISO-12620 2.1.10: A form of a term resulting from an operation whereby the characters of an alphabetic writing system are represented by characters from another alphabetic writing system. - - - - - ISO-12620 2.1.8.5: An abbreviated form of a term resulting from the omission of one or more term elements or syllables (e.g. 'flu' for 'influenza'). - - - - - ISO-12620 2.1.9: One of the alternate forms of a term. - - - - - - - Values for the attribute 'restype'. - - - - - Indicates a Windows RC AUTO3STATE control. - - - - - Indicates a Windows RC AUTOCHECKBOX control. - - - - - Indicates a Windows RC AUTORADIOBUTTON control. - - - - - Indicates a Windows RC BEDIT control. - - - - - Indicates a bitmap, for example a BITMAP resource in Windows. - - - - - Indicates a button object, for example a BUTTON control Windows. - - - - - Indicates a caption, such as the caption of a dialog box. - - - - - Indicates the cell in a table, for example the content of the <td> element in HTML. - - - - - Indicates check box object, for example a CHECKBOX control in Windows. - - - - - Indicates a menu item with an associated checkbox. - - - - - Indicates a list box, but with a check-box for each item. - - - - - Indicates a color selection dialog. - - - - - Indicates a combination of edit box and listbox object, for example a COMBOBOX control in Windows. - - - - - Indicates an initialization entry of an extended combobox DLGINIT resource block. (code 0x1234). - - - - - Indicates an initialization entry of a combobox DLGINIT resource block (code 0x0403). - - - - - Indicates a UI base class element that cannot be represented by any other element. - - - - - Indicates a context menu. - - - - - Indicates a Windows RC CTEXT control. - - - - - Indicates a cursor, for example a CURSOR resource in Windows. - - - - - Indicates a date/time picker. - - - - - Indicates a Windows RC DEFPUSHBUTTON control. - - - - - Indicates a dialog box. - - - - - Indicates a Windows RC DLGINIT resource block. - - - - - Indicates an edit box object, for example an EDIT control in Windows. - - - - - Indicates a filename. - - - - - Indicates a file dialog. - - - - - Indicates a footnote. - - - - - Indicates a font name. - - - - - Indicates a footer. - - - - - Indicates a frame object. - - - - - Indicates a XUL grid element. - - - - - Indicates a groupbox object, for example a GROUPBOX control in Windows. - - - - - Indicates a header item. - - - - - Indicates a heading, such has the content of <h1>, <h2>, etc. in HTML. - - - - - Indicates a Windows RC HEDIT control. - - - - - Indicates a horizontal scrollbar. - - - - - Indicates an icon, for example an ICON resource in Windows. - - - - - Indicates a Windows RC IEDIT control. - - - - - Indicates keyword list, such as the content of the Keywords meta-data in HTML, or a K footnote in WinHelp RTF. - - - - - Indicates a label object. - - - - - Indicates a label that is also a HTML link (not necessarily a URL). - - - - - Indicates a list (a group of list-items, for example an <ol> or <ul> element in HTML). - - - - - Indicates a listbox object, for example an LISTBOX control in Windows. - - - - - Indicates an list item (an entry in a list). - - - - - Indicates a Windows RC LTEXT control. - - - - - Indicates a menu (a group of menu-items). - - - - - Indicates a toolbar containing one or more tope level menus. - - - - - Indicates a menu item (an entry in a menu). - - - - - Indicates a XUL menuseparator element. - - - - - Indicates a message, for example an entry in a MESSAGETABLE resource in Windows. - - - - - Indicates a calendar control. - - - - - Indicates an edit box beside a spin control. - - - - - Indicates a catch all for rectangular areas. - - - - - Indicates a standalone menu not necessarily associated with a menubar. - - - - - Indicates a pushbox object, for example a PUSHBOX control in Windows. - - - - - Indicates a Windows RC PUSHBUTTON control. - - - - - Indicates a radio button object. - - - - - Indicates a menuitem with associated radio button. - - - - - Indicates raw data resources for an application. - - - - - Indicates a row in a table. - - - - - Indicates a Windows RC RTEXT control. - - - - - Indicates a user navigable container used to show a portion of a document. - - - - - Indicates a generic divider object (e.g. menu group separator). - - - - - Windows accelerators, shortcuts in resource or property files. - - - - - Indicates a UI control to indicate process activity but not progress. - - - - - Indicates a splitter bar. - - - - - Indicates a Windows RC STATE3 control. - - - - - Indicates a window for providing feedback to the users, like 'read-only', etc. - - - - - Indicates a string, for example an entry in a STRINGTABLE resource in Windows. - - - - - Indicates a layers of controls with a tab to select layers. - - - - - Indicates a display and edits regular two-dimensional tables of cells. - - - - - Indicates a XUL textbox element. - - - - - Indicates a UI button that can be toggled to on or off state. - - - - - Indicates an array of controls, usually buttons. - - - - - Indicates a pop up tool tip text. - - - - - Indicates a bar with a pointer indicating a position within a certain range. - - - - - Indicates a control that displays a set of hierarchical data. - - - - - Indicates a URI (URN or URL). - - - - - Indicates a Windows RC USERBUTTON control. - - - - - Indicates a user-defined control like CONTROL control in Windows. - - - - - Indicates the text of a variable. - - - - - Indicates version information about a resource like VERSIONINFO in Windows. - - - - - Indicates a vertical scrollbar. - - - - - Indicates a graphical window. - - - - - - - Values for the attribute 'size-unit'. - - - - - Indicates a size in 8-bit bytes. - - - - - Indicates a size in Unicode characters. - - - - - Indicates a size in columns. Used for HTML text area. - - - - - Indicates a size in centimeters. - - - - - Indicates a size in dialog units, as defined in Windows resources. - - - - - Indicates a size in 'font-size' units (as defined in CSS). - - - - - Indicates a size in 'x-height' units (as defined in CSS). - - - - - Indicates a size in glyphs. A glyph is considered to be one or more combined Unicode characters that represent a single displayable text character. Sometimes referred to as a 'grapheme cluster' - - - - - Indicates a size in inches. - - - - - Indicates a size in millimeters. - - - - - Indicates a size in percentage. - - - - - Indicates a size in pixels. - - - - - Indicates a size in point. - - - - - Indicates a size in rows. Used for HTML text area. - - - - - - - Values for the attribute 'state'. - - - - - Indicates the terminating state. - - - - - Indicates only non-textual information needs adaptation. - - - - - Indicates both text and non-textual information needs adaptation. - - - - - Indicates only non-textual information needs review. - - - - - Indicates both text and non-textual information needs review. - - - - - Indicates that only the text of the item needs to be reviewed. - - - - - Indicates that the item needs to be translated. - - - - - Indicates that the item is new. For example, translation units that were not in a previous version of the document. - - - - - Indicates that changes are reviewed and approved. - - - - - Indicates that the item has been translated. - - - - - - - Values for the attribute 'state-qualifier'. - - - - - Indicates an exact match. An exact match occurs when a source text of a segment is exactly the same as the source text of a segment that was translated previously. - - - - - Indicates a fuzzy match. A fuzzy match occurs when a source text of a segment is very similar to the source text of a segment that was translated previously (e.g. when the difference is casing, a few changed words, white-space discripancy, etc.). - - - - - Indicates a match based on matching IDs (in addition to matching text). - - - - - Indicates a translation derived from a glossary. - - - - - Indicates a translation derived from existing translation. - - - - - Indicates a translation derived from machine translation. - - - - - Indicates a translation derived from a translation repository. - - - - - Indicates a translation derived from a translation memory. - - - - - Indicates the translation is suggested by machine translation. - - - - - Indicates that the item has been rejected because of incorrect grammar. - - - - - Indicates that the item has been rejected because it is incorrect. - - - - - Indicates that the item has been rejected because it is too long or too short. - - - - - Indicates that the item has been rejected because of incorrect spelling. - - - - - Indicates the translation is suggested by translation memory. - - - - - - - Values for the attribute 'unit'. - - - - - Refers to words. - - - - - Refers to pages. - - - - - Refers to <trans-unit> elements. - - - - - Refers to <bin-unit> elements. - - - - - Refers to glyphs. - - - - - Refers to <trans-unit> and/or <bin-unit> elements. - - - - - Refers to the occurrences of instances defined by the count-type value. - - - - - Refers to characters. - - - - - Refers to lines. - - - - - Refers to sentences. - - - - - Refers to paragraphs. - - - - - Refers to segments. - - - - - Refers to placeables (inline elements). - - - - - - - Values for the attribute 'priority'. - - - - - Highest priority. - - - - - High priority. - - - - - High priority, but not as important as 2. - - - - - High priority, but not as important as 3. - - - - - Medium priority, but more important than 6. - - - - - Medium priority, but less important than 5. - - - - - Low priority, but more important than 8. - - - - - Low priority, but more important than 9. - - - - - Low priority. - - - - - Lowest priority. - - - - - - - - - This value indicates that all properties can be reformatted. This value must be used alone. - - - - - This value indicates that no properties should be reformatted. This value must be used alone. - - - - - - - - - - - - - This value indicates that all information in the coord attribute can be modified. - - - - - This value indicates that the x information in the coord attribute can be modified. - - - - - This value indicates that the y information in the coord attribute can be modified. - - - - - This value indicates that the cx information in the coord attribute can be modified. - - - - - This value indicates that the cy information in the coord attribute can be modified. - - - - - This value indicates that all the information in the font attribute can be modified. - - - - - This value indicates that the name information in the font attribute can be modified. - - - - - This value indicates that the size information in the font attribute can be modified. - - - - - This value indicates that the weight information in the font attribute can be modified. - - - - - This value indicates that the information in the css-style attribute can be modified. - - - - - This value indicates that the information in the style attribute can be modified. - - - - - This value indicates that the information in the exstyle attribute can be modified. - - - - - - - - - - - - - Indicates that the context is informational in nature, specifying for example, how a term should be translated. Thus, should be displayed to anyone editing the XLIFF document. - - - - - Indicates that the context-group is used to specify where the term was found in the translatable source. Thus, it is not displayed. - - - - - Indicates that the context information should be used during translation memory lookups. Thus, it is not displayed. - - - - - - - - - Represents a translation proposal from a translation memory or other resource. - - - - - Represents a previous version of the target element. - - - - - Represents a rejected version of the target element. - - - - - Represents a translation to be used for reference purposes only, for example from a related product or a different language. - - - - - Represents a proposed translation that was used for the translation of the trans-unit, possibly modified. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Values for the attribute 'coord'. - - - - - - - - Version values: 1.0 and 1.1 are allowed for backward compatibility. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/symfony/translation/Resources/schemas/xliff-core-2.0.xsd b/vendor/symfony/translation/Resources/schemas/xliff-core-2.0.xsd deleted file mode 100644 index 963232f..0000000 --- a/vendor/symfony/translation/Resources/schemas/xliff-core-2.0.xsd +++ /dev/null @@ -1,411 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/symfony/translation/Resources/schemas/xml.xsd b/vendor/symfony/translation/Resources/schemas/xml.xsd deleted file mode 100644 index a46162a..0000000 --- a/vendor/symfony/translation/Resources/schemas/xml.xsd +++ /dev/null @@ -1,309 +0,0 @@ - - - - - - -
-

About the XML namespace

- -
-

- - This schema document describes the XML namespace, in a form - suitable for import by other schema documents. -

-

- See - http://www.w3.org/XML/1998/namespace.html and - - http://www.w3.org/TR/REC-xml for information - about this namespace. -

- -

- Note that local names in this namespace are intended to be - defined only by the World Wide Web Consortium or its subgroups. - The names currently defined in this namespace are listed below. - They should not be used with conflicting semantics by any Working - Group, specification, or document instance. -

-

- See further below in this document for more information about how to refer to this schema document from your own - XSD schema documents and about the - namespace-versioning policy governing this schema document. -

-
-
- -
-
- - - - -
- -

lang (as an attribute name)

-

- - denotes an attribute whose value - is a language code for the natural language of the content of - any element; its value is inherited. This name is reserved - by virtue of its definition in the XML specification.

- -
-
-

Notes

-

- Attempting to install the relevant ISO 2- and 3-letter - codes as the enumerated possible values is probably never - going to be a realistic possibility. -

-

- - See BCP 47 at - http://www.rfc-editor.org/rfc/bcp/bcp47.txt - and the IANA language subtag registry at - - http://www.iana.org/assignments/language-subtag-registry - for further information. -

-

- - The union allows for the 'un-declaration' of xml:lang with - the empty string. -

-
-
-
- - - - - - - - - - -
- - - - - -
- -

space (as an attribute name)

-

- denotes an attribute whose - value is a keyword indicating what whitespace processing - discipline is intended for the content of the element; its - value is inherited. This name is reserved by virtue of its - definition in the XML specification.

- -
-
-
- - - - - - - -
- - - - -
- -

base (as an attribute name)

-

- denotes an attribute whose value - provides a URI to be used as the base for interpreting any - relative URIs in the scope of the element on which it - appears; its value is inherited. This name is reserved - by virtue of its definition in the XML Base specification.

- -

- See http://www.w3.org/TR/xmlbase/ - for information about this attribute. -

- -
-
-
-
- - - - -
- -

id (as an attribute name)

-

- - denotes an attribute whose value - should be interpreted as if declared to be of type ID. - This name is reserved by virtue of its definition in the - xml:id specification.

- -

- See http://www.w3.org/TR/xml-id/ - for information about this attribute. -

-
-
-
- -
- - - - - - - - - - - -
- -

Father (in any context at all)

- -
-

- denotes Jon Bosak, the chair of - the original XML Working Group. This name is reserved by - the following decision of the W3C XML Plenary and - XML Coordination groups: -

-
-

- - In appreciation for his vision, leadership and - dedication the W3C XML Plenary on this 10th day of - February, 2000, reserves for Jon Bosak in perpetuity - the XML name "xml:Father". -

-
-
-
-
-
- - - - -
-

About this schema document

- -
-

- This schema defines attributes and an attribute group suitable - for use by schemas wishing to allow xml:base, - xml:lang, xml:space or - xml:id attributes on elements they define. -

- -

- To enable this, such a schema must import this schema for - the XML namespace, e.g. as follows: -

-
-          <schema.. .>
-          .. .
-           <import namespace="http://www.w3.org/XML/1998/namespace"
-                      schemaLocation="http://www.w3.org/2001/xml.xsd"/>
-     
-

- or -

-
-
-           <import namespace="http://www.w3.org/XML/1998/namespace"
-                      schemaLocation="http://www.w3.org/2009/01/xml.xsd"/>
-     
-

- Subsequently, qualified reference to any of the attributes or the - group defined below will have the desired effect, e.g. -

-
-          <type.. .>
-          .. .
-           <attributeGroup ref="xml:specialAttrs"/>
-     
-

- will define a type which will schema-validate an instance element - with any of those attributes. -

- -
-
-
-
- - - -
-

Versioning policy for this schema document

- -
-

- In keeping with the XML Schema WG's standard versioning - policy, this schema document will persist at - - http://www.w3.org/2009/01/xml.xsd. -

-

- At the date of issue it can also be found at - - http://www.w3.org/2001/xml.xsd. -

- -

- The schema document at that URI may however change in the future, - in order to remain compatible with the latest version of XML - Schema itself, or with the XML namespace itself. In other words, - if the XML Schema or XML namespaces change, the version of this - document at - http://www.w3.org/2001/xml.xsd - - will change accordingly; the version at - - http://www.w3.org/2009/01/xml.xsd - - will not change. -

-

- - Previous dated (and unchanging) versions of this schema - document are at: -

- -
-
-
-
- -
diff --git a/vendor/symfony/translation/Test/AbstractProviderFactoryTestCase.php b/vendor/symfony/translation/Test/AbstractProviderFactoryTestCase.php deleted file mode 100644 index 75e7dd2..0000000 --- a/vendor/symfony/translation/Test/AbstractProviderFactoryTestCase.php +++ /dev/null @@ -1,79 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Test; - -use PHPUnit\Framework\Attributes\DataProvider; -use PHPUnit\Framework\TestCase; -use Symfony\Component\Translation\Exception\UnsupportedSchemeException; -use Symfony\Component\Translation\Provider\Dsn; -use Symfony\Component\Translation\Provider\ProviderFactoryInterface; - -abstract class AbstractProviderFactoryTestCase extends TestCase -{ - abstract public function createFactory(): ProviderFactoryInterface; - - /** - * @return iterable - */ - abstract public static function supportsProvider(): iterable; - - /** - * @return iterable - */ - abstract public static function createProvider(): iterable; - - /** - * @return iterable - */ - abstract public static function unsupportedSchemeProvider(): iterable; - - /** - * @dataProvider supportsProvider - */ - #[DataProvider('supportsProvider')] - public function testSupports(bool $expected, string $dsn) - { - $factory = $this->createFactory(); - - $this->assertSame($expected, $factory->supports(new Dsn($dsn))); - } - - /** - * @dataProvider createProvider - */ - #[DataProvider('createProvider')] - public function testCreate(string $expected, string $dsn) - { - $factory = $this->createFactory(); - $provider = $factory->create(new Dsn($dsn)); - - $this->assertSame($expected, (string) $provider); - } - - /** - * @dataProvider unsupportedSchemeProvider - */ - #[DataProvider('unsupportedSchemeProvider')] - public function testUnsupportedSchemeException(string $dsn, ?string $message = null) - { - $factory = $this->createFactory(); - - $dsn = new Dsn($dsn); - - $this->expectException(UnsupportedSchemeException::class); - if (null !== $message) { - $this->expectExceptionMessage($message); - } - - $factory->create($dsn); - } -} diff --git a/vendor/symfony/translation/Test/IncompleteDsnTestTrait.php b/vendor/symfony/translation/Test/IncompleteDsnTestTrait.php deleted file mode 100644 index 892f6bf..0000000 --- a/vendor/symfony/translation/Test/IncompleteDsnTestTrait.php +++ /dev/null @@ -1,42 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Test; - -use PHPUnit\Framework\Attributes\DataProvider; -use Symfony\Component\Translation\Exception\IncompleteDsnException; -use Symfony\Component\Translation\Provider\Dsn; - -trait IncompleteDsnTestTrait -{ - /** - * @return iterable - */ - abstract public static function incompleteDsnProvider(): iterable; - - /** - * @dataProvider incompleteDsnProvider - */ - #[DataProvider('incompleteDsnProvider')] - public function testIncompleteDsnException(string $dsn, ?string $message = null) - { - $factory = $this->createFactory(); - - $dsn = new Dsn($dsn); - - $this->expectException(IncompleteDsnException::class); - if (null !== $message) { - $this->expectExceptionMessage($message); - } - - $factory->create($dsn); - } -} diff --git a/vendor/symfony/translation/Test/ProviderFactoryTestCase.php b/vendor/symfony/translation/Test/ProviderFactoryTestCase.php deleted file mode 100644 index e82f329..0000000 --- a/vendor/symfony/translation/Test/ProviderFactoryTestCase.php +++ /dev/null @@ -1,85 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Test; - -use PHPUnit\Framework\MockObject\MockObject; -use Psr\Log\LoggerInterface; -use Symfony\Component\HttpClient\MockHttpClient; -use Symfony\Component\Translation\Dumper\XliffFileDumper; -use Symfony\Component\Translation\Loader\LoaderInterface; -use Symfony\Component\Translation\TranslatorBagInterface; -use Symfony\Contracts\HttpClient\HttpClientInterface; - -/** - * A test case to ease testing a translation provider factory. - * - * @author Mathieu Santostefano - * - * @deprecated since Symfony 7.2, use AbstractProviderFactoryTestCase instead - */ -abstract class ProviderFactoryTestCase extends AbstractProviderFactoryTestCase -{ - use IncompleteDsnTestTrait; - - protected HttpClientInterface $client; - protected LoggerInterface|MockObject $logger; - protected string $defaultLocale; - protected LoaderInterface|MockObject $loader; - protected XliffFileDumper|MockObject $xliffFileDumper; - protected TranslatorBagInterface|MockObject $translatorBag; - - /** - * @return iterable - */ - public static function unsupportedSchemeProvider(): iterable - { - return []; - } - - /** - * @return iterable - */ - public static function incompleteDsnProvider(): iterable - { - return []; - } - - protected function getClient(): HttpClientInterface - { - return $this->client ??= new MockHttpClient(); - } - - protected function getLogger(): LoggerInterface - { - return $this->logger ??= $this->createMock(LoggerInterface::class); - } - - protected function getDefaultLocale(): string - { - return $this->defaultLocale ??= 'en'; - } - - protected function getLoader(): LoaderInterface - { - return $this->loader ??= $this->createMock(LoaderInterface::class); - } - - protected function getXliffFileDumper(): XliffFileDumper - { - return $this->xliffFileDumper ??= $this->createMock(XliffFileDumper::class); - } - - protected function getTranslatorBag(): TranslatorBagInterface - { - return $this->translatorBag ??= $this->createMock(TranslatorBagInterface::class); - } -} diff --git a/vendor/symfony/translation/Test/ProviderTestCase.php b/vendor/symfony/translation/Test/ProviderTestCase.php deleted file mode 100644 index 7907986..0000000 --- a/vendor/symfony/translation/Test/ProviderTestCase.php +++ /dev/null @@ -1,84 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Test; - -use PHPUnit\Framework\Attributes\DataProvider; -use PHPUnit\Framework\MockObject\MockObject; -use PHPUnit\Framework\TestCase; -use Psr\Log\LoggerInterface; -use Symfony\Component\HttpClient\MockHttpClient; -use Symfony\Component\Translation\Dumper\XliffFileDumper; -use Symfony\Component\Translation\Loader\LoaderInterface; -use Symfony\Component\Translation\Provider\ProviderInterface; -use Symfony\Component\Translation\TranslatorBagInterface; -use Symfony\Contracts\HttpClient\HttpClientInterface; - -/** - * A test case to ease testing a translation provider. - * - * @author Mathieu Santostefano - */ -abstract class ProviderTestCase extends TestCase -{ - protected HttpClientInterface $client; - protected LoggerInterface|MockObject $logger; - protected string $defaultLocale; - protected LoaderInterface|MockObject $loader; - protected XliffFileDumper|MockObject $xliffFileDumper; - protected TranslatorBagInterface|MockObject $translatorBag; - - abstract public static function createProvider(HttpClientInterface $client, LoaderInterface $loader, LoggerInterface $logger, string $defaultLocale, string $endpoint): ProviderInterface; - - /** - * @return iterable - */ - abstract public static function toStringProvider(): iterable; - - /** - * @dataProvider toStringProvider - */ - #[DataProvider('toStringProvider')] - public function testToString(ProviderInterface $provider, string $expected) - { - $this->assertSame($expected, (string) $provider); - } - - protected function getClient(): MockHttpClient - { - return $this->client ??= new MockHttpClient(); - } - - protected function getLoader(): LoaderInterface - { - return $this->loader ??= $this->createMock(LoaderInterface::class); - } - - protected function getLogger(): LoggerInterface - { - return $this->logger ??= $this->createMock(LoggerInterface::class); - } - - protected function getDefaultLocale(): string - { - return $this->defaultLocale ??= 'en'; - } - - protected function getXliffFileDumper(): XliffFileDumper - { - return $this->xliffFileDumper ??= $this->createMock(XliffFileDumper::class); - } - - protected function getTranslatorBag(): TranslatorBagInterface - { - return $this->translatorBag ??= $this->createMock(TranslatorBagInterface::class); - } -} diff --git a/vendor/symfony/translation/TranslatableMessage.php b/vendor/symfony/translation/TranslatableMessage.php deleted file mode 100644 index 74b77f6..0000000 --- a/vendor/symfony/translation/TranslatableMessage.php +++ /dev/null @@ -1,56 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation; - -use Symfony\Contracts\Translation\TranslatableInterface; -use Symfony\Contracts\Translation\TranslatorInterface; - -/** - * @author Nate Wiebe - */ -class TranslatableMessage implements TranslatableInterface -{ - public function __construct( - private string $message, - private array $parameters = [], - private ?string $domain = null, - ) { - } - - public function __toString(): string - { - return $this->getMessage(); - } - - public function getMessage(): string - { - return $this->message; - } - - public function getParameters(): array - { - return $this->parameters; - } - - public function getDomain(): ?string - { - return $this->domain; - } - - public function trans(TranslatorInterface $translator, ?string $locale = null): string - { - return $translator->trans($this->getMessage(), array_map( - static fn ($parameter) => $parameter instanceof TranslatableInterface ? $parameter->trans($translator, $locale) : $parameter, - $this->getParameters() - ), $this->getDomain(), $locale); - } -} diff --git a/vendor/symfony/translation/Translator.php b/vendor/symfony/translation/Translator.php deleted file mode 100644 index 7c0a458..0000000 --- a/vendor/symfony/translation/Translator.php +++ /dev/null @@ -1,445 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation; - -use Symfony\Component\Config\ConfigCacheFactory; -use Symfony\Component\Config\ConfigCacheFactoryInterface; -use Symfony\Component\Config\ConfigCacheInterface; -use Symfony\Component\Translation\Exception\InvalidArgumentException; -use Symfony\Component\Translation\Exception\NotFoundResourceException; -use Symfony\Component\Translation\Exception\RuntimeException; -use Symfony\Component\Translation\Formatter\IntlFormatterInterface; -use Symfony\Component\Translation\Formatter\MessageFormatter; -use Symfony\Component\Translation\Formatter\MessageFormatterInterface; -use Symfony\Component\Translation\Loader\LoaderInterface; -use Symfony\Contracts\Translation\LocaleAwareInterface; -use Symfony\Contracts\Translation\TranslatableInterface; -use Symfony\Contracts\Translation\TranslatorInterface; - -// Help opcache.preload discover always-needed symbols -class_exists(MessageCatalogue::class); - -/** - * @author Fabien Potencier - */ -class Translator implements TranslatorInterface, TranslatorBagInterface, LocaleAwareInterface -{ - /** - * @var MessageCatalogueInterface[] - */ - protected array $catalogues = []; - - private string $locale; - - /** - * @var string[] - */ - private array $fallbackLocales = []; - - /** - * @var LoaderInterface[] - */ - private array $loaders = []; - - private array $resources = []; - - private MessageFormatterInterface $formatter; - - private ?ConfigCacheFactoryInterface $configCacheFactory; - - private array $parentLocales; - - private bool $hasIntlFormatter; - - /** - * @throws InvalidArgumentException If a locale contains invalid characters - */ - public function __construct( - string $locale, - ?MessageFormatterInterface $formatter = null, - private ?string $cacheDir = null, - private bool $debug = false, - private array $cacheVary = [], - ) { - $this->setLocale($locale); - - $this->formatter = $formatter ??= new MessageFormatter(); - $this->hasIntlFormatter = $formatter instanceof IntlFormatterInterface; - } - - public function setConfigCacheFactory(ConfigCacheFactoryInterface $configCacheFactory): void - { - $this->configCacheFactory = $configCacheFactory; - } - - /** - * Adds a Loader. - * - * @param string $format The name of the loader (@see addResource()) - */ - public function addLoader(string $format, LoaderInterface $loader): void - { - $this->loaders[$format] = $loader; - } - - /** - * Adds a Resource. - * - * @param string $format The name of the loader (@see addLoader()) - * @param mixed $resource The resource name - * - * @throws InvalidArgumentException If the locale contains invalid characters - */ - public function addResource(string $format, mixed $resource, string $locale, ?string $domain = null): void - { - $domain ??= 'messages'; - - $this->assertValidLocale($locale); - $locale ?: $locale = class_exists(\Locale::class) ? \Locale::getDefault() : 'en'; - - $this->resources[$locale][] = [$format, $resource, $domain]; - - if (\in_array($locale, $this->fallbackLocales, true)) { - $this->catalogues = []; - } else { - unset($this->catalogues[$locale]); - } - } - - public function setLocale(string $locale): void - { - $this->assertValidLocale($locale); - $this->locale = $locale; - } - - public function getLocale(): string - { - return $this->locale ?: (class_exists(\Locale::class) ? \Locale::getDefault() : 'en'); - } - - /** - * Sets the fallback locales. - * - * @param string[] $locales - * - * @throws InvalidArgumentException If a locale contains invalid characters - */ - public function setFallbackLocales(array $locales): void - { - // needed as the fallback locales are linked to the already loaded catalogues - $this->catalogues = []; - - foreach ($locales as $locale) { - $this->assertValidLocale($locale); - } - - $this->fallbackLocales = $this->cacheVary['fallback_locales'] = $locales; - } - - /** - * Gets the fallback locales. - * - * @internal - */ - public function getFallbackLocales(): array - { - return $this->fallbackLocales; - } - - public function trans(?string $id, array $parameters = [], ?string $domain = null, ?string $locale = null): string - { - if (null === $id || '' === $id) { - return ''; - } - - $domain ??= 'messages'; - - $catalogue = $this->getCatalogue($locale); - $locale = $catalogue->getLocale(); - while (!$catalogue->defines($id, $domain)) { - if ($cat = $catalogue->getFallbackCatalogue()) { - $catalogue = $cat; - $locale = $catalogue->getLocale(); - } else { - break; - } - } - - $parameters = array_map(fn ($parameter) => $parameter instanceof TranslatableInterface ? $parameter->trans($this, $locale) : $parameter, $parameters); - - $len = \strlen(MessageCatalogue::INTL_DOMAIN_SUFFIX); - if ($this->hasIntlFormatter - && ($catalogue->defines($id, $domain.MessageCatalogue::INTL_DOMAIN_SUFFIX) - || (\strlen($domain) > $len && 0 === substr_compare($domain, MessageCatalogue::INTL_DOMAIN_SUFFIX, -$len, $len))) - ) { - return $this->formatter->formatIntl($catalogue->get($id, $domain), $locale, $parameters); - } - - return $this->formatter->format($catalogue->get($id, $domain), $locale, $parameters); - } - - public function getCatalogue(?string $locale = null): MessageCatalogueInterface - { - if (!$locale) { - $locale = $this->getLocale(); - } else { - $this->assertValidLocale($locale); - } - - if (!isset($this->catalogues[$locale])) { - $this->loadCatalogue($locale); - } - - return $this->catalogues[$locale]; - } - - public function getCatalogues(): array - { - return array_values($this->catalogues); - } - - /** - * Gets the loaders. - * - * @return LoaderInterface[] - */ - protected function getLoaders(): array - { - return $this->loaders; - } - - protected function loadCatalogue(string $locale): void - { - if (null === $this->cacheDir) { - $this->initializeCatalogue($locale); - } else { - $this->initializeCacheCatalogue($locale); - } - } - - protected function initializeCatalogue(string $locale): void - { - $this->assertValidLocale($locale); - - try { - $this->doLoadCatalogue($locale); - } catch (NotFoundResourceException $e) { - if (!$this->computeFallbackLocales($locale)) { - throw $e; - } - } - $this->loadFallbackCatalogues($locale); - } - - private function initializeCacheCatalogue(string $locale): void - { - if (isset($this->catalogues[$locale])) { - /* Catalogue already initialized. */ - return; - } - - $this->assertValidLocale($locale); - $cache = $this->getConfigCacheFactory()->cache($this->getCatalogueCachePath($locale), - function (ConfigCacheInterface $cache) use ($locale) { - $this->dumpCatalogue($locale, $cache); - } - ); - - if (isset($this->catalogues[$locale])) { - /* Catalogue has been initialized as it was written out to cache. */ - return; - } - - /* Read catalogue from cache. */ - $this->catalogues[$locale] = include $cache->getPath(); - } - - private function dumpCatalogue(string $locale, ConfigCacheInterface $cache): void - { - $this->initializeCatalogue($locale); - $fallbackContent = $this->getFallbackContent($this->catalogues[$locale]); - - $content = \sprintf(<<getAllMessages($this->catalogues[$locale]), true), - $fallbackContent - ); - - $cache->write($content, $this->catalogues[$locale]->getResources()); - } - - private function getFallbackContent(MessageCatalogue $catalogue): string - { - $fallbackContent = ''; - $current = ''; - $replacementPattern = '/[^a-z0-9_]/i'; - $fallbackCatalogue = $catalogue->getFallbackCatalogue(); - while ($fallbackCatalogue) { - $fallback = $fallbackCatalogue->getLocale(); - $fallbackSuffix = ucfirst(preg_replace($replacementPattern, '_', $fallback)); - $currentSuffix = ucfirst(preg_replace($replacementPattern, '_', $current)); - - $fallbackContent .= \sprintf(<<<'EOF' -$catalogue%s = new MessageCatalogue('%s', %s); -$catalogue%s->addFallbackCatalogue($catalogue%s); - -EOF - , - $fallbackSuffix, - $fallback, - var_export($this->getAllMessages($fallbackCatalogue), true), - $currentSuffix, - $fallbackSuffix - ); - $current = $fallbackCatalogue->getLocale(); - $fallbackCatalogue = $fallbackCatalogue->getFallbackCatalogue(); - } - - return $fallbackContent; - } - - private function getCatalogueCachePath(string $locale): string - { - return $this->cacheDir.'/catalogue.'.$locale.'.'.strtr(substr(base64_encode(hash('xxh128', serialize($this->cacheVary), true)), 0, 7), '/', '_').'.php'; - } - - /** - * @internal - */ - protected function doLoadCatalogue(string $locale): void - { - $this->catalogues[$locale] = new MessageCatalogue($locale); - - if (isset($this->resources[$locale])) { - foreach ($this->resources[$locale] as $resource) { - if (!isset($this->loaders[$resource[0]])) { - if (\is_string($resource[1])) { - throw new RuntimeException(\sprintf('No loader is registered for the "%s" format when loading the "%s" resource.', $resource[0], $resource[1])); - } - - throw new RuntimeException(\sprintf('No loader is registered for the "%s" format.', $resource[0])); - } - $this->catalogues[$locale]->addCatalogue($this->loaders[$resource[0]]->load($resource[1], $locale, $resource[2])); - } - } - } - - private function loadFallbackCatalogues(string $locale): void - { - $current = $this->catalogues[$locale]; - - foreach ($this->computeFallbackLocales($locale) as $fallback) { - if (!isset($this->catalogues[$fallback])) { - $this->initializeCatalogue($fallback); - } - - $fallbackCatalogue = new MessageCatalogue($fallback, $this->getAllMessages($this->catalogues[$fallback])); - foreach ($this->catalogues[$fallback]->getResources() as $resource) { - $fallbackCatalogue->addResource($resource); - } - $current->addFallbackCatalogue($fallbackCatalogue); - $current = $fallbackCatalogue; - } - } - - protected function computeFallbackLocales(string $locale): array - { - $this->parentLocales ??= json_decode(file_get_contents(__DIR__.'/Resources/data/parents.json'), true); - - $originLocale = $locale; - $locales = []; - - while ($locale) { - $parent = $this->parentLocales[$locale] ?? null; - - if ($parent) { - $locale = 'root' !== $parent ? $parent : null; - } elseif (\function_exists('locale_parse')) { - $localeSubTags = locale_parse($locale); - $locale = null; - if (1 < \count($localeSubTags)) { - array_pop($localeSubTags); - $locale = locale_compose($localeSubTags) ?: null; - } - } elseif ($i = strrpos($locale, '_') ?: strrpos($locale, '-')) { - $locale = substr($locale, 0, $i); - } else { - $locale = null; - } - - if (null !== $locale) { - $locales[] = $locale; - } - } - - foreach ($this->fallbackLocales as $fallback) { - if ($fallback === $originLocale) { - continue; - } - - $locales[] = $fallback; - } - - return array_unique($locales); - } - - /** - * Asserts that the locale is valid, throws an Exception if not. - * - * @throws InvalidArgumentException If the locale contains invalid characters - */ - protected function assertValidLocale(string $locale): void - { - if (!preg_match('/^[a-z0-9@_\\.\\-]*$/i', $locale)) { - throw new InvalidArgumentException(\sprintf('Invalid "%s" locale.', $locale)); - } - } - - /** - * Provides the ConfigCache factory implementation, falling back to a - * default implementation if necessary. - */ - private function getConfigCacheFactory(): ConfigCacheFactoryInterface - { - $this->configCacheFactory ??= new ConfigCacheFactory($this->debug); - - return $this->configCacheFactory; - } - - private function getAllMessages(MessageCatalogueInterface $catalogue): array - { - $allMessages = []; - - foreach ($catalogue->all() as $domain => $messages) { - if ($intlMessages = $catalogue->all($domain.MessageCatalogue::INTL_DOMAIN_SUFFIX)) { - $allMessages[$domain.MessageCatalogue::INTL_DOMAIN_SUFFIX] = $intlMessages; - $messages = array_diff_key($messages, $intlMessages); - } - if ($messages) { - $allMessages[$domain] = $messages; - } - } - - return $allMessages; - } -} diff --git a/vendor/symfony/translation/TranslatorBag.php b/vendor/symfony/translation/TranslatorBag.php deleted file mode 100644 index 3b47aec..0000000 --- a/vendor/symfony/translation/TranslatorBag.php +++ /dev/null @@ -1,102 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation; - -use Symfony\Component\Translation\Catalogue\AbstractOperation; -use Symfony\Component\Translation\Catalogue\TargetOperation; - -final class TranslatorBag implements TranslatorBagInterface -{ - /** @var MessageCatalogue[] */ - private array $catalogues = []; - - public function addCatalogue(MessageCatalogue $catalogue): void - { - if (null !== $existingCatalogue = $this->getCatalogue($catalogue->getLocale())) { - $catalogue->addCatalogue($existingCatalogue); - } - - $this->catalogues[$catalogue->getLocale()] = $catalogue; - } - - public function addBag(TranslatorBagInterface $bag): void - { - foreach ($bag->getCatalogues() as $catalogue) { - $this->addCatalogue($catalogue); - } - } - - public function getCatalogue(?string $locale = null): MessageCatalogueInterface - { - if (null === $locale || !isset($this->catalogues[$locale])) { - $this->catalogues[$locale] = new MessageCatalogue($locale); - } - - return $this->catalogues[$locale]; - } - - public function getCatalogues(): array - { - return array_values($this->catalogues); - } - - public function diff(TranslatorBagInterface $diffBag): self - { - $diff = new self(); - - foreach ($this->catalogues as $locale => $catalogue) { - if (null === $diffCatalogue = $diffBag->getCatalogue($locale)) { - $diff->addCatalogue($catalogue); - - continue; - } - - $operation = new TargetOperation($diffCatalogue, $catalogue); - $operation->moveMessagesToIntlDomainsIfPossible(AbstractOperation::NEW_BATCH); - $newCatalogue = new MessageCatalogue($locale); - - foreach ($catalogue->getDomains() as $domain) { - $newCatalogue->add($operation->getNewMessages($domain), $domain); - } - - $diff->addCatalogue($newCatalogue); - } - - return $diff; - } - - public function intersect(TranslatorBagInterface $intersectBag): self - { - $diff = new self(); - - foreach ($this->catalogues as $locale => $catalogue) { - if (null === $intersectCatalogue = $intersectBag->getCatalogue($locale)) { - continue; - } - - $operation = new TargetOperation($catalogue, $intersectCatalogue); - $operation->moveMessagesToIntlDomainsIfPossible(AbstractOperation::OBSOLETE_BATCH); - $obsoleteCatalogue = new MessageCatalogue($locale); - - foreach ($operation->getDomains() as $domain) { - $obsoleteCatalogue->add( - array_diff($operation->getMessages($domain), $operation->getNewMessages($domain)), - $domain - ); - } - - $diff->addCatalogue($obsoleteCatalogue); - } - - return $diff; - } -} diff --git a/vendor/symfony/translation/TranslatorBagInterface.php b/vendor/symfony/translation/TranslatorBagInterface.php deleted file mode 100644 index 365d1f1..0000000 --- a/vendor/symfony/translation/TranslatorBagInterface.php +++ /dev/null @@ -1,36 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation; - -use Symfony\Component\Translation\Exception\InvalidArgumentException; - -/** - * @author Abdellatif Ait boudad - */ -interface TranslatorBagInterface -{ - /** - * Gets the catalogue by locale. - * - * @param string|null $locale The locale or null to use the default - * - * @throws InvalidArgumentException If the locale contains invalid characters - */ - public function getCatalogue(?string $locale = null): MessageCatalogueInterface; - - /** - * Returns all catalogues of the instance. - * - * @return MessageCatalogueInterface[] - */ - public function getCatalogues(): array; -} diff --git a/vendor/symfony/translation/Util/ArrayConverter.php b/vendor/symfony/translation/Util/ArrayConverter.php deleted file mode 100644 index 2fc666d..0000000 --- a/vendor/symfony/translation/Util/ArrayConverter.php +++ /dev/null @@ -1,142 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Util; - -/** - * ArrayConverter generates tree like structure from a message catalogue. - * e.g. this - * 'foo.bar1' => 'test1', - * 'foo.bar2' => 'test2' - * converts to follows: - * foo: - * bar1: test1 - * bar2: test2. - * - * @author Gennady Telegin - */ -class ArrayConverter -{ - /** - * Converts linear messages array to tree-like array. - * For example: ['foo.bar' => 'value'] will be converted to ['foo' => ['bar' => 'value']]. - * - * @param array $messages Linear messages array - */ - public static function expandToTree(array $messages): array - { - $tree = []; - - foreach ($messages as $id => $value) { - $referenceToElement = &self::getElementByPath($tree, self::getKeyParts($id)); - - $referenceToElement = $value; - - unset($referenceToElement); - } - - return $tree; - } - - private static function &getElementByPath(array &$tree, array $parts): mixed - { - $elem = &$tree; - $parentOfElem = null; - - foreach ($parts as $i => $part) { - if (isset($elem[$part]) && \is_string($elem[$part])) { - /* Process next case: - * 'foo': 'test1', - * 'foo.bar': 'test2' - * - * $tree['foo'] was string before we found array {bar: test2}. - * Treat new element as string too, e.g. add $tree['foo.bar'] = 'test2'; - */ - $elem = &$elem[implode('.', \array_slice($parts, $i))]; - break; - } - - $parentOfElem = &$elem; - $elem = &$elem[$part]; - } - - if ($elem && \is_array($elem) && $parentOfElem) { - /* Process next case: - * 'foo.bar': 'test1' - * 'foo': 'test2' - * - * $tree['foo'] was array = {bar: 'test1'} before we found string constant `foo`. - * Cancel treating $tree['foo'] as array and cancel back it expansion, - * e.g. make it $tree['foo.bar'] = 'test1' again. - */ - self::cancelExpand($parentOfElem, $part, $elem); - } - - return $elem; - } - - private static function cancelExpand(array &$tree, string $prefix, array $node): void - { - $prefix .= '.'; - - foreach ($node as $id => $value) { - if (\is_string($value)) { - $tree[$prefix.$id] = $value; - } else { - self::cancelExpand($tree, $prefix.$id, $value); - } - } - } - - /** - * @return string[] - */ - private static function getKeyParts(string $key): array - { - $parts = explode('.', $key); - $partsCount = \count($parts); - - $result = []; - $buffer = ''; - - foreach ($parts as $index => $part) { - if (0 === $index && '' === $part) { - $buffer = '.'; - - continue; - } - - if ($index === $partsCount - 1 && '' === $part) { - $buffer .= '.'; - $result[] = $buffer; - - continue; - } - - if (isset($parts[$index + 1]) && '' === $parts[$index + 1]) { - $buffer .= $part; - - continue; - } - - if ($buffer) { - $result[] = $buffer.$part; - $buffer = ''; - - continue; - } - - $result[] = $part; - } - - return $result; - } -} diff --git a/vendor/symfony/translation/Util/XliffUtils.php b/vendor/symfony/translation/Util/XliffUtils.php deleted file mode 100644 index e76e122..0000000 --- a/vendor/symfony/translation/Util/XliffUtils.php +++ /dev/null @@ -1,191 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Util; - -use Symfony\Component\Translation\Exception\InvalidArgumentException; -use Symfony\Component\Translation\Exception\InvalidResourceException; - -/** - * Provides some utility methods for XLIFF translation files, such as validating - * their contents according to the XSD schema. - * - * @author Fabien Potencier - */ -class XliffUtils -{ - /** - * Gets xliff file version based on the root "version" attribute. - * - * Defaults to 1.2 for backwards compatibility. - * - * @throws InvalidArgumentException - */ - public static function getVersionNumber(\DOMDocument $dom): string - { - /** @var \DOMNode $xliff */ - foreach ($dom->getElementsByTagName('xliff') as $xliff) { - $version = $xliff->attributes->getNamedItem('version'); - if ($version) { - return $version->nodeValue; - } - - $namespace = $xliff->attributes->getNamedItem('xmlns'); - if ($namespace) { - if (0 !== substr_compare('urn:oasis:names:tc:xliff:document:', $namespace->nodeValue, 0, 34)) { - throw new InvalidArgumentException(\sprintf('Not a valid XLIFF namespace "%s".', $namespace)); - } - - return substr($namespace, 34); - } - } - - // Falls back to v1.2 - return '1.2'; - } - - /** - * Validates and parses the given file into a DOMDocument. - * - * @throws InvalidResourceException - */ - public static function validateSchema(\DOMDocument $dom): array - { - $xliffVersion = static::getVersionNumber($dom); - $internalErrors = libxml_use_internal_errors(true); - if ($shouldEnable = self::shouldEnableEntityLoader()) { - $disableEntities = libxml_disable_entity_loader(false); - } - try { - $isValid = @$dom->schemaValidateSource(self::getSchema($xliffVersion)); - if (!$isValid) { - return self::getXmlErrors($internalErrors); - } - } finally { - if ($shouldEnable) { - libxml_disable_entity_loader($disableEntities); - } - } - - $dom->normalizeDocument(); - - libxml_clear_errors(); - libxml_use_internal_errors($internalErrors); - - return []; - } - - private static function shouldEnableEntityLoader(): bool - { - static $dom, $schema; - if (null === $dom) { - $dom = new \DOMDocument(); - $dom->loadXML(''); - - $tmpfile = tempnam(sys_get_temp_dir(), 'symfony'); - register_shutdown_function(static function () use ($tmpfile) { - @unlink($tmpfile); - }); - $schema = ' - - -'; - file_put_contents($tmpfile, ' - - - -'); - } - - return !@$dom->schemaValidateSource($schema); - } - - public static function getErrorsAsString(array $xmlErrors): string - { - $errorsAsString = ''; - - foreach ($xmlErrors as $error) { - $errorsAsString .= \sprintf("[%s %s] %s (in %s - line %d, column %d)\n", - \LIBXML_ERR_WARNING === $error['level'] ? 'WARNING' : 'ERROR', - $error['code'], - $error['message'], - $error['file'], - $error['line'], - $error['column'] - ); - } - - return $errorsAsString; - } - - private static function getSchema(string $xliffVersion): string - { - if ('1.2' === $xliffVersion) { - $schemaSource = file_get_contents(__DIR__.'/../Resources/schemas/xliff-core-1.2-transitional.xsd'); - $xmlUri = 'http://www.w3.org/2001/xml.xsd'; - } elseif ('2.0' === $xliffVersion) { - $schemaSource = file_get_contents(__DIR__.'/../Resources/schemas/xliff-core-2.0.xsd'); - $xmlUri = 'informativeCopiesOf3rdPartySchemas/w3c/xml.xsd'; - } else { - throw new InvalidArgumentException(\sprintf('No support implemented for loading XLIFF version "%s".', $xliffVersion)); - } - - return self::fixXmlLocation($schemaSource, $xmlUri); - } - - /** - * Internally changes the URI of a dependent xsd to be loaded locally. - */ - private static function fixXmlLocation(string $schemaSource, string $xmlUri): string - { - $newPath = str_replace('\\', '/', __DIR__).'/../Resources/schemas/xml.xsd'; - $parts = explode('/', $newPath); - $locationstart = 'file:///'; - if (0 === stripos($newPath, 'phar://')) { - $tmpfile = tempnam(sys_get_temp_dir(), 'symfony'); - if ($tmpfile) { - copy($newPath, $tmpfile); - $parts = explode('/', str_replace('\\', '/', $tmpfile)); - } else { - array_shift($parts); - $locationstart = 'phar:///'; - } - } - - $drive = '\\' === \DIRECTORY_SEPARATOR ? array_shift($parts).'/' : ''; - $newPath = $locationstart.$drive.implode('/', array_map('rawurlencode', $parts)); - - return str_replace($xmlUri, $newPath, $schemaSource); - } - - /** - * Returns the XML errors of the internal XML parser. - */ - private static function getXmlErrors(bool $internalErrors): array - { - $errors = []; - foreach (libxml_get_errors() as $error) { - $errors[] = [ - 'level' => \LIBXML_ERR_WARNING == $error->level ? 'WARNING' : 'ERROR', - 'code' => $error->code, - 'message' => trim($error->message), - 'file' => $error->file ?: 'n/a', - 'line' => $error->line, - 'column' => $error->column, - ]; - } - - libxml_clear_errors(); - libxml_use_internal_errors($internalErrors); - - return $errors; - } -} diff --git a/vendor/symfony/translation/Writer/TranslationWriter.php b/vendor/symfony/translation/Writer/TranslationWriter.php deleted file mode 100644 index be3f6bf..0000000 --- a/vendor/symfony/translation/Writer/TranslationWriter.php +++ /dev/null @@ -1,71 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Writer; - -use Symfony\Component\Translation\Dumper\DumperInterface; -use Symfony\Component\Translation\Exception\InvalidArgumentException; -use Symfony\Component\Translation\Exception\RuntimeException; -use Symfony\Component\Translation\MessageCatalogue; - -/** - * TranslationWriter writes translation messages. - * - * @author Michel Salib - */ -class TranslationWriter implements TranslationWriterInterface -{ - /** - * @var array - */ - private array $dumpers = []; - - /** - * Adds a dumper to the writer. - */ - public function addDumper(string $format, DumperInterface $dumper): void - { - $this->dumpers[$format] = $dumper; - } - - /** - * Obtains the list of supported formats. - */ - public function getFormats(): array - { - return array_keys($this->dumpers); - } - - /** - * Writes translation from the catalogue according to the selected format. - * - * @param string $format The format to use to dump the messages - * @param array $options Options that are passed to the dumper - * - * @throws InvalidArgumentException - */ - public function write(MessageCatalogue $catalogue, string $format, array $options = []): void - { - if (!isset($this->dumpers[$format])) { - throw new InvalidArgumentException(\sprintf('There is no dumper associated with format "%s".', $format)); - } - - // get the right dumper - $dumper = $this->dumpers[$format]; - - if (isset($options['path']) && !is_dir($options['path']) && !@mkdir($options['path'], 0777, true) && !is_dir($options['path'])) { - throw new RuntimeException(\sprintf('Translation Writer was not able to create directory "%s".', $options['path'])); - } - - // save - $dumper->dump($catalogue, $options); - } -} diff --git a/vendor/symfony/translation/Writer/TranslationWriterInterface.php b/vendor/symfony/translation/Writer/TranslationWriterInterface.php deleted file mode 100644 index b306282..0000000 --- a/vendor/symfony/translation/Writer/TranslationWriterInterface.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Translation\Writer; - -use Symfony\Component\Translation\Exception\InvalidArgumentException; -use Symfony\Component\Translation\MessageCatalogue; - -/** - * TranslationWriter writes translation messages. - * - * @author Michel Salib - */ -interface TranslationWriterInterface -{ - /** - * Writes translation from the catalogue according to the selected format. - * - * @param string $format The format to use to dump the messages - * @param array $options Options that are passed to the dumper - * - * @throws InvalidArgumentException - */ - public function write(MessageCatalogue $catalogue, string $format, array $options = []): void; -} diff --git a/vendor/symfony/translation/composer.json b/vendor/symfony/translation/composer.json deleted file mode 100644 index 1db1621..0000000 --- a/vendor/symfony/translation/composer.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "name": "symfony/translation", - "type": "library", - "description": "Provides tools to internationalize your application", - "keywords": [], - "homepage": "https://symfony.com", - "license": "MIT", - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "require": { - "php": ">=8.2", - "symfony/polyfill-mbstring": "~1.0", - "symfony/translation-contracts": "^2.5|^3.0", - "symfony/deprecation-contracts": "^2.5|^3" - }, - "require-dev": { - "nikic/php-parser": "^4.18|^5.0", - "symfony/config": "^6.4|^7.0", - "symfony/console": "^6.4|^7.0", - "symfony/dependency-injection": "^6.4|^7.0", - "symfony/http-client-contracts": "^2.5|^3.0", - "symfony/http-kernel": "^6.4|^7.0", - "symfony/intl": "^6.4|^7.0", - "symfony/polyfill-intl-icu": "^1.21", - "symfony/routing": "^6.4|^7.0", - "symfony/service-contracts": "^2.5|^3", - "symfony/yaml": "^6.4|^7.0", - "symfony/finder": "^6.4|^7.0", - "psr/log": "^1|^2|^3" - }, - "conflict": { - "symfony/config": "<6.4", - "symfony/dependency-injection": "<6.4", - "symfony/http-client-contracts": "<2.5", - "symfony/http-kernel": "<6.4", - "symfony/service-contracts": "<2.5", - "symfony/twig-bundle": "<6.4", - "symfony/yaml": "<6.4", - "symfony/console": "<6.4" - }, - "provide": { - "symfony/translation-implementation": "2.3|3.0" - }, - "autoload": { - "files": [ "Resources/functions.php" ], - "psr-4": { "Symfony\\Component\\Translation\\": "" }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "minimum-stability": "dev" -} diff --git a/vendor/team-reflex/discord-php/.editorconfig b/vendor/team-reflex/discord-php/.editorconfig deleted file mode 100644 index 00708e9..0000000 --- a/vendor/team-reflex/discord-php/.editorconfig +++ /dev/null @@ -1,15 +0,0 @@ -root = true - -[*] -charset = utf-8 -end_of_line = lf -insert_final_newline = true -indent_style = space -indent_size = 4 -trim_trailing_whitespace = true - -[*.yml] -indent_size = 2 - -[*.js] -indent_size = 2 diff --git a/vendor/team-reflex/discord-php/.github/FUNDING.yml b/vendor/team-reflex/discord-php/.github/FUNDING.yml deleted file mode 100644 index c4e3cba..0000000 --- a/vendor/team-reflex/discord-php/.github/FUNDING.yml +++ /dev/null @@ -1,2 +0,0 @@ -github: [valzargaming, Log1x] -patreon: DiscordPHP diff --git a/vendor/team-reflex/discord-php/.github/ISSUE_TEMPLATE/bug_report.md b/vendor/team-reflex/discord-php/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 3f6c38f..0000000 --- a/vendor/team-reflex/discord-php/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,39 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve -title: '' -labels: bug - ---- - - - - - - - -**Environment** -- PHP Version: - - x.x.x -- DiscordPHP Version: - - x.x.x - -**Describe the bug** -A clear and concise description of what the bug is. - -**To Reproduce** -Steps to reproduce the behavior: -```php -$discord->on(..., function () { - // ... -}); -``` - -**Expected behavior** -A clear and concise description of what you expected to happen. - -**Screenshots** -If applicable, add screenshots to help explain your problem. - -**Additional context** -Add any other context about the problem here. diff --git a/vendor/team-reflex/discord-php/.github/ISSUE_TEMPLATE/config.yml b/vendor/team-reflex/discord-php/.github/ISSUE_TEMPLATE/config.yml deleted file mode 100644 index aa1df25..0000000 --- a/vendor/team-reflex/discord-php/.github/ISSUE_TEMPLATE/config.yml +++ /dev/null @@ -1,4 +0,0 @@ -contact_links: - - name: Question and Answers - url: https://github.com/discord-php/DiscordPHP/discussions/categories/q-a - about: If you have question about how to use this Library and have not find any solution in documentation or wiki, please do not make issues, instead go find or create one in Discussions section. diff --git a/vendor/team-reflex/discord-php/.github/ISSUE_TEMPLATE/feature_request.md b/vendor/team-reflex/discord-php/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index 8552ba0..0000000 --- a/vendor/team-reflex/discord-php/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -name: Feature request -about: Suggest an idea for this project -title: '' -labels: features - ---- - - - - -**Is your feature request related to a problem? Please describe.** -A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] - -**Describe the solution you'd like** -A clear and concise description of what you want to happen. - -**Describe alternatives you've considered** -A clear and concise description of any alternative solutions or features you've considered. - -**Additional context** -Add any other context or screenshots about the feature request here. diff --git a/vendor/team-reflex/discord-php/.github/dependabot.yml b/vendor/team-reflex/discord-php/.github/dependabot.yml deleted file mode 100644 index a51bb0b..0000000 --- a/vendor/team-reflex/discord-php/.github/dependabot.yml +++ /dev/null @@ -1,11 +0,0 @@ -# To get started with Dependabot version updates, you'll need to specify which -# package ecosystems to update and where the package manifests are located. -# Please see the documentation for all configuration options: -# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates - -version: 2 -updates: - - package-ecosystem: "composer" # See documentation for possible values - directory: "/" # Location of package manifests - schedule: - interval: "daily" diff --git a/vendor/team-reflex/discord-php/.github/workflows/docs.yml b/vendor/team-reflex/discord-php/.github/workflows/docs.yml deleted file mode 100644 index c89460c..0000000 --- a/vendor/team-reflex/discord-php/.github/workflows/docs.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Build Docs -on: - push: - release: - types: [published] - -jobs: - docs: - runs-on: ubuntu-latest - if: github.event_name == 'release' || contains(github.event.head_commit.message, 'build docs') - steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: '8.0' - extensions: iconv - tools: phive - - name: Install phpDocumentor - run: phive install phpDocumentor --trust-gpg-keys 67F861C3D889C656,6DA3ACC4991FFAE5 - - name: Build class reference - run: ./tools/phpDocumentor - - name: Build documentation - run: | - cd ./docs - yarn install - yarn build - sudo mv public/* ../build - - name: Publish docs - uses: JamesIves/github-pages-deploy-action@3.7.1 - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - BRANCH: gh-pages - FOLDER: build - CLEAN: true diff --git a/vendor/team-reflex/discord-php/.github/workflows/unit.yml b/vendor/team-reflex/discord-php/.github/workflows/unit.yml deleted file mode 100644 index 6551c3e..0000000 --- a/vendor/team-reflex/discord-php/.github/workflows/unit.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: Unit Tests -on: - workflow_dispatch: - -env: - DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }} - TEST_CHANNEL: ${{ secrets.TEST_CHANNEL }} - TEST_CHANNEL_NAME: ${{ secrets.TEST_CHANNEL_NAME }} - -jobs: - unit-lint: - name: PHPUnit and Lint - runs-on: ubuntu-latest - if: "!contains(github.event.head_commit.message, 'no test')" - concurrency: phpunit - strategy: - matrix: - php: - - '8.2' - - '8.1' - - '8.0' - steps: - - name: Checkout code - uses: actions/checkout@v2 - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php }} - extensions: uv, zlib, mbstring - tools: phpunit, phplint - - name: Install dependencies - run: composer install - - name: Redis Server in GitHub Actions - uses: supercharge/redis-github-action@1.4.0 - # - name: Memcached Service - # uses: niden/actions-memcached@v7 - - name: Run PHPUnit - run: phpunit - - name: Run PHPLint - run: phplint - diff --git a/vendor/team-reflex/discord-php/.gitignore b/vendor/team-reflex/discord-php/.gitignore deleted file mode 100644 index e198e89..0000000 --- a/vendor/team-reflex/discord-php/.gitignore +++ /dev/null @@ -1,31 +0,0 @@ -# general -.env -.DS_Store -test*.php -.idea -.phplint-cache -dump.html -.vscode - -# phive -/tools -.phive - -# composer -/vendor -composer.lock - -# docs -/build -.phpdoc - -# php-cs-fixer -.php_cs.cache -.php_cs -.php-cs-fixer.php -.php-cs-fixer.cache - -# phpunit -phpunit.log -/.phpunit* -/coverage diff --git a/vendor/team-reflex/discord-php/.php-cs-fixer.dist.php b/vendor/team-reflex/discord-php/.php-cs-fixer.dist.php deleted file mode 100644 index bff656c..0000000 --- a/vendor/team-reflex/discord-php/.php-cs-fixer.dist.php +++ /dev/null @@ -1,102 +0,0 @@ - - -This file is subject to the MIT license that is bundled -with this source code in the LICENSE.md file. -EOF; - -$fixers = [ - 'blank_line_after_namespace', - 'braces', - 'class_definition', - 'elseif', - 'encoding', - 'full_opening_tag', - 'function_declaration', - 'lowercase_keywords', - 'method_argument_space', - 'no_closing_tag', - 'no_spaces_after_function_name', - 'no_spaces_inside_parenthesis', - 'no_trailing_whitespace', - 'no_trailing_whitespace_in_comment', - 'single_blank_line_at_eof', - 'single_class_element_per_statement', - 'single_import_per_statement', - 'single_line_after_imports', - 'switch_case_semicolon_to_colon', - 'switch_case_space', - 'visibility_required', - 'blank_line_after_opening_tag', - 'no_multiline_whitespace_around_double_arrow', - 'no_empty_statement', - 'include', - 'no_trailing_comma_in_list_call', - 'not_operator_with_successor_space', - 'no_leading_namespace_whitespace', - 'no_blank_lines_after_class_opening', - 'no_blank_lines_after_phpdoc', - 'object_operator_without_whitespace', - 'binary_operator_spaces', - 'phpdoc_indent', - 'general_phpdoc_tag_rename', - 'phpdoc_inline_tag_normalizer', - 'phpdoc_tag_type', - 'phpdoc_no_access', - 'phpdoc_no_package', - 'phpdoc_scalar', - 'phpdoc_summary', - 'phpdoc_trim', - 'phpdoc_var_without_name', - 'no_leading_import_slash', - 'no_trailing_comma_in_singleline_array', - 'single_blank_line_before_namespace', - 'single_quote', - 'no_singleline_whitespace_before_semicolons', - 'cast_spaces', - 'standardize_not_equals', - 'ternary_operator_spaces', - 'trim_array_spaces', - 'unary_operator_spaces', - 'no_unused_imports', - 'no_useless_else', - 'no_useless_return', - 'phpdoc_no_empty_return', - 'no_extra_blank_lines', - 'multiline_whitespace_before_semicolons', -]; - -$rules = [ - 'concat_space' => ['spacing' => 'none'], - 'phpdoc_no_alias_tag' => ['replacements' => ['type' => 'var']], - 'array_syntax' => ['syntax' => 'short'], - 'binary_operator_spaces' => ['align_double_arrow' => true, 'align_equals' => true], - 'header_comment' => ['header' => $header], - 'indentation_type' => true, - 'phpdoc_align' => [ - 'align' => 'vertical', - 'tags' => ['param', 'property', 'property-read', 'property-write', 'return', 'throws', 'type', 'var', 'method'], - ], - 'blank_line_before_statement' => ['statements' => ['return']], - 'constant_case' => ['case' => 'lower'], - 'echo_tag_syntax' => ['format' => 'long'], - 'trailing_comma_in_multiline' => ['elements' => ['arrays']], -]; - -foreach ($fixers as $fix) { - $rules[$fix] = true; -} - -$config = new PhpCsFixer\Config(); - -return $config - ->setRules($rules) - ->setFinder( - PhpCsFixer\Finder::create() - ->exclude('examples') - ->in(__DIR__) - ); diff --git a/vendor/team-reflex/discord-php/.phplint.yml b/vendor/team-reflex/discord-php/.phplint.yml deleted file mode 100644 index 8f3512b..0000000 --- a/vendor/team-reflex/discord-php/.phplint.yml +++ /dev/null @@ -1,7 +0,0 @@ -path: ./ -jobs: 10 -extensions: - - php -exclude: - - vendor -warning: false diff --git a/vendor/team-reflex/discord-php/CHANGELOG.md b/vendor/team-reflex/discord-php/CHANGELOG.md deleted file mode 100644 index cf1cc3d..0000000 --- a/vendor/team-reflex/discord-php/CHANGELOG.md +++ /dev/null @@ -1,384 +0,0 @@ -# Changelog - -## Version 7.0.0 - -This release contains breaking changes regarding messages. - -- Read the [conversion guide](V7_CONVERSION.md) for a guide on how to upgrade from v6.x to v7. - - If you are coming from v5.x, also read the [v6.x conversion guide](V6_CONVERSION.md). - -- Upgraded to Discord API v9. -- Added `MessagBuilder`. - - See the conversion guide for more information - most functions that send messages now take message builders instead of seperate parameters. -- Added support for [Discord Threads](https://discord.com/developers/docs/topics/threads). - - `$message->channel` will now return a `Channel` or `Thread` object. -- Added [guild feature flags](https://github.com/discord-php/DiscordPHP/blob/28d741c47e81f9957a3b0d92c2f187d81d26c9c8/src/Discord/Parts/Guild/Guild.php#L75-L95). -- Removed `premium_since` attribute from the `PresenceUpdate` object. - - This would have been null since v6 anyway. -- `$message->author` is now only return an `User` object and no longer return a `Member` object. `$message->user` is removed in favour of `$message->author` -- `Message::stickers` is now `Message::sticker_items` -- Deprecated old permission names: (#661) - - `use_slash_commands` is now `use_application_commands` - - `use_public_threads` is now `create_public_threads` - - `use_private_threads` is now `create_private_threads` - - `manage_emojis` is now `manage_emojis_and_stickers` -- `Guild::region` is deprecated and may be removed in future release -- Sticker `use Discord\Parts\Channel\Sticker` is now `use Discord\Parts\Guild\Sticker` -- Invite `use Discord\Parts\Guild\Invite` is now `use Discord\Parts\Channel\Invite` -- Some event handler arguments have been updated, check out the documentation. - -## Version 6.0.2 - -- Added `link` attribute to `Message` - [#526] -- Added `filter` function to `Collection`. -- Fixed voice client error when using PHP 7.4 -- Added 'Discord Certified Moderator' flag to `Member`. -- Fixed `member` attribute on `MessageReaction` returning the wrong type. -- Add `sendMessage` to `Member` object - [#538] -- Fixed command client mention prefix when mentioning nickname. -- Use `Embed` inside command client - [#546] -- Add `pending` flag to `Member` object - [#550] -- Add `updateRolePositions` to `Guild` to change position of roles. -- Added buttons to `Activity` - [#561] -- Allow bulk updating of permission overwrites through `Channel`. -- Fix emoji deletion on macOS. -- Add `__toString()` function to `Channel` for channel mention - [#575] -- Add function to escape Discord markdown - [#586] - -Thank you to the following for contributions to this release: - -- @valzargaming -- @Max2408 -- @MohsinEngineer -- @rachids -- @key2peace -- @SQKo -- @davidcole1340 - -[#526]: https://github.com/discord-php/DiscordPHP/pull/526 -[#538]: https://github.com/discord-php/DiscordPHP/pull/538 -[#546]: https://github.com/discord-php/DiscordPHP/pull/546 -[#550]: https://github.com/discord-php/DiscordPHP/pull/550 -[#561]: https://github.com/discord-php/DiscordPHP/pull/561 -[#575]: https://github.com/discord-php/DiscordPHP/pull/575 -[#586]: https://github.com/discord-php/DiscordPHP/pull/586 - -## Version 6.0.1 - -- Fixed `Message::member` attribute returning a `User` - #523 @davidcole1340 -- Added `loggerLevel` changes to changelog and conversion guide - c11af7c646c18b0e124b2b1fa349daeced76ad78 -- Updated documentation to reflect missed changes in 6.0.0 - #520 #521 @hemberger - -## Version 6.0.0 - -This version has also been known as `v5.2.0`, however, breaking changes caused the version to be increased. - -- Discord Gateway and REST API versions changed to Version 8. -- Removed unnecessary deferred promises from various parts and repositories. -- `Message::reply()` now creates a "Discord reply" rather than the old way which was simply a mention with the content afterwards. -- Tidied up and removed any unessacary deferred promises and promise binds. -- Added `Message::delayedDelete(int $ms)` to delete a message after a delay. -- Fixed member chunking not working when the guild is not considered 'large'. - -## Breaking Changes - -- PHP 7.4 is now the lowest supported version of PHP. - - Versions as low as PHP 7.2 may still work, however, no support will be provided. - - PHP 8.0 is now recommended, and CI is run on PHP 7.4 and 8.0. -- With the update to gateway version 8, the `GUILD_MEMBER` and `PRESENCE_UPDATE` intents are not enabled by default. - - You must first enable these in your Discord developer portal before enabling them in DiscordPHP. See the documentation for an example. - - The `loadAllMembers` option requires the `GUILD_MEMBER` intent to be enabled. -- The `logging`, `httpLogger` and `loggerLevel` options have been removed. - - All HTTP logging information is now redirected to the `logger` that you have passed, or the default logger. - - For people that disabled logging by setting `logging` to false, you can create a logger with a [`NullHandler`](https://github.com/Seldaek/monolog/blob/main/src/Monolog/Handler/NullHandler.php). -- For voice client users, see the section below for breaking changes. - -### HTTP Client - -- HTTP client has been moved to a seperate package: [DiscordPHP-Http](https://github.com/discord-api/DiscordPHP-Http) -- Improved rate limits by grouping requests by major parameters. - -### Voice Client - -- The voice client now requires at least PHP 7.4 to operate. It will not attempt to start on any version lower. -- The voice client can now run on Windows, thanks to the introduction of socker pair descriptors in PHP 8.0 (see reactphp/child-process#85). As such, PHP 8.0 is required to run the voice client on Windows. -- DCA has been rebuilt and refactored for better use with DiscordPHP. Note that the binaries have only been rebuilt for the `amd64` architecture. The following platforms are now supported: - - Windows AMD64 - - macOS AMD64 - - Linux AMD64 - - I'm happy to support DCA for other platforms if requested. Please ensure that your platform is supported by the Go compiler, see the supported list [here](https://golang.org/doc/install/source#introduction). -- The following functions no longer return promises, rather they throw exceptions and will return void. This is because none of these functions actually did any async work, therefore promises were redundant in this situation. - - `setSpeaking()` - - `switchChannel()` - - `setFrameSize()` - - `setBitrate()` - - `setVolume()` - - `setAudioApplication()` - - `setMuteDeaf()` - - `pause()` - - `unpause()` - - `stop()` - - `close()` - - `getRecieveStream()` -- Expect a voice client refactor in a future release. - -## Version 5.1.3 - -- Added the `recipient_id` property to `Channel` - 8b3eb0e667b39d906b3962a55d1469f5184b63ff -- Fixed private channel caching bug - 8b3eb0e667b39d906b3962a55d1469f5184b63ff -- Fixed guild member chunking not working on some bot accounts - 96f1ce30236ec7b18b70216e7e4f73317f242073 - -## Version 5.1.2 - -- Fixed bug where websocket connection would fail and wouldn't reconnect. -- Expanded on documentation. -- Updated documentation `marked` version to `^2.0.0` due to security concern. -- Disabled happy eyeballs connector as Discord does not use IPv6, and this causes an error when using a debugger. -- Added options resolver for creating an invite. -- Added the option to delete all reactions of a certain emoji from a message. -- Fixed getting emoji ID for unicode emojis. -- Fixed audit log query not accepting an `Entry` object. - -## Version 5.1.1 - -- Added permission checking before executing requests for channels. -- Fixed issue where global rate limits would delay too long. -- Added option to pass through `react/socket` connector options through `socket_options`. -- Fixed issue with case-insensitive commands in the command client. -- Fixed issue where users would not update in the user repository on an `GUILD_MEMBER_*` event. -- Repository is now hosted under the `discord-php` organisation on GitHub. This will not change anything unless you have the repository cloned. -- Fixed an issue where guild repositories would empty on `GUILD_UPDATE`. -- Fixed issue where buckets would deadlock when there is a global rate limit and a non-global rate limit at the same time. -- Token is now stripped from any text output. -- `TYPE_STREAMING` and `TYPE_COMPETING` is now allowed for bots. -- Fixed an issue where a bucket queue would be blocked when a request throws an exception. - -## Version 5.1.0 - -- Refactored and rebuilt the HTTP client. - - Implemented the concept of "buckets" - to be worked on as at the moment requests are grouped by the exact endpoint only. -- Fixed guild member chunking with the gateway changes. -- Fixed `Channel::deleteMessages()` not working for 0 or 1 messages. -- Added the `allowed_mentions` option to `Channel::sendMessage()`. -- Converted message reactions to a repository. -- Changed `Message::mention_channels` to use a regular expression to find actual mentioned channels rather than relying on Discord to send them (which they don't). -- Fixed varius errors where the attribute does not exist. -- Added the `Reaction::getUsers()` method to retrieve users that have reacted with that reaction. -- Implemented audit logs - see the class reference and Discord developer docs for more information. -- Added new attributes to Guilds. -- Fixed permissions not calculating correctly. -- Fixed various errors with the voice client. -- Added an option to skip FFmpeg/DCA checks when starting the voice client (for Windows compatibility). -- Implemented `MESSAGE_REACTION_*` events. -- Added `\Discord\imageToBase64()` to convert an image to base 64 to be uploaded to Discord. -- Started documentation and tests. - -### Command Client - -- Added the `caseInsensitiveCommands` option to change whether commands should be case sensitive. -- Added sub-commands to the various help menus. - -## Version 5.0.12 - -- Converted `PromiseInterface` to `ExtendedPromiseInterface` to allow `->done()` typehinting. -- Converted most `->then()` to `->done()` for better error handling. -- Fixed issue with member chunking not working correctly due to changes in Discord's gateway. -- Implemented gateway payload rate-limiting. -- Removed `illuminate/support` dependency. -- Fixed errors in HTTP going into the response handler function and causing errors. -- Added `Channel::limitDelete(n)` to delete the last n messages. -- Added setter functions to embeds. Now much easier to set, and more reliable. -- Added `$guild->leave()` as a shortcut to `$discord->guilds->leave($guild)`. -- Parts are now constructable without factory: - -Old: -```php -$message = $discord->factory(Message::class); -``` - -New: -```php -$message = new Message($message); -``` - -Both methods are still valid. - -- `AbstractRepository` now extends `Collection` rather than having magic functions to handle calls. -- Added `WebhookRepository::get()`. -- Added support functions: - - `getColor(int $color);` - - `contains(string $key, array $matches);` - - `studly(string $string)` - - `poly_strlen(string $string)` - -## Version 5.0.11 - -- Added dependabot to update composer dependencies. -- Upgraded `react/partial` to `^3.0`. -- `Discord` will now emit `reconnected` when the client reconnects via identify OR resume. -- Fixed issue with resumes not working due to closing with opcode `1000`. -- Client will now attempt to resume after an invalid session if it is still resumable. -- Exceptions inside the `ready` handler will now be caught, emitted via `exception` and logged. - - Temporary fix until `react/promise ^3.0` is released, as any uncaught exceptions inside promises are dismissed. -- Added `Discord::getChannel(id)` which searches through all guilds and private channels to find a channel. -- `Channel::deleteMessages()` now works for private channels by looping through all messages and deleting. -- Added `Channel::editMessage()`. -- Added new activity types `Activity::TYPE_WATCHING` and `Activity::TYPE_COMPETING`. -- Fixed issue with `MESSAGE_DELETE` events not working correctly. -- Fixed issie with `VOICE_STATE_UPDATE` where members were not removed from their old channels. - -## Version 5.0.10 - -- The PHP composer dependency has been updated to PHP 7.2. The library was not working on anything less in previous versions so I'm not deeming this a breaking change, just a formality. -- Added PHP 7.2 typehinting to functions. -- Added `Collection::first()` to get the first element of the collection. -- Added the ability to call `AbstractRepository::delete()` with a string ID instead of solely a part. -- Any custom logger now may be passed to the Discord client as long as it implementes `LoggerInterface` from PSR. -- Fixed phpdocs for collections, typehinting will now work when accessing it as an array. -- Fixed bug with `Collection::get()` when not searching by discriminator. -- Added `Webhook::execute()`. -- Added support for `illuminate/support` 8.0. -- `Channel::deleteMessages()` will no longer fail if 0 or 1 messages is given. The promise will instantly resolve when given 0, and will delete the one message then resolve for 1 message. -- Fixed error when handling message deletes. -- Websocket will no longer close when an error is seen, as Pawl's errors do not always cause closure of the websocket. -- Fixed bug with rate limiting after changing to `react/http`. -- Fixed bug with sending files after changing to `react/http`. - -## Version 5.0.3 - -- Development of the library will now continue on the `master` branch. The `develop` branch will be removed and you should checkout the latest tag for the most stable version. -- Removed dependency of decepreated package `wyrihaximus/react-guzzle-psr7`, replaced with `react/http`. - - Rewrote HTTP client to remove dependency of Guzzle. -- Client will prevent updating presence with an invalid activity type. -- Collections: - - Added `Collection::set($offset, $value)`. - - Added `Collection::isset($offset)`. -- Added `Message::sendEmbed(Embed $embed)` as a shortcut to sending embeds. -- Fixed an issue on Windows where emoticons were not URL encoded. -- Added `Embed::addField(Field $field)` to add fields to an embed. -- Added user activity statuses constants to `Activity`. -- `Member::addRole(Role $role)` and `Member::removeRole(Role $role)` now modifies the member on Discord's end. - - You no longer need to run `$guild->members->save($member)`. - - The function now returns a promise. -- Added `Member::getPermissions(Channel? $channel)` to get the total permissions of the member for a guild or channel. -- The avatar attribute of a user will return their default avatar when it is null. - -## Version 5.0.2 - -- Fixed updating and creating parts. -- Fixed repository saving. -- Removed debugging statement. -- Removed `bind_right` statement that was left over. -- Fixed setting overwrites. - -## Version 5.0.1 - -- Removed option for `bot = false`. This option wouldn't have worked anyway so I am not classing it as a breaking change. -- Converted all getter and setter functions in parts to protected. Again, shouldn't be a breaking change as these function aren't meant to be used outside of the library. -- Webhooks: - - Added phpdoc to webhook part. - - Added webhook type constants -- Guilds: - - Added [new guild attributes.](https://github.com/discord-php/DiscordPHP/compare/develop#diff-4a22d1c34b22f50e90b71244aac252cdR43-R64) -- Removed unused attributes cache from part. -- Removed `password` attribute from `Client`. -- Added [new user attributes](https://github.com/discord-php/DiscordPHP/compare/develop#diff-3d3aea0229e2bfd3b386726702468115R29-R36) and flags. -- Voice client now handles websocket closes better. -- Client will now load online users regardless of `loadAllMembers` option. This option will now cause the client to initiate guild member chunking offline members. - - -## Version 5.0.0 - -First release for many years. Contains many bug fixes and stability patches so this is the most important update since. - -### Breaking Changes - -- PHP 7.0 is now required. PHP 5.x is no longer supported. -- Package versions: - - illuminate/support: now supports Laravel 6.x and 7.x - - nesbot/carbon: was ^1.18, now ^2.38 - - symfony/options-resolver: was ^3.0, now ^5.1.3 - - monolog/monolog: was ^1.19, now ^2.1 -- Cache adapters such as apc, memcache and redis are no longer supported. There is no longer a `cachePool` option. -- ext-libevent is no longer supported as it only applies for PHP 5.x. -- The `Collection` class no longer extends Laravel collections. - - As such, some functions are no longer present. - - Feel free to add an issue if you would like to see a function added. -- Channels: - - `Channel::setPermissions()` function now takes a role or member as well as two arrays: one array of allow permissions and one array of deny permissions. - - `Channel::createInvite()` now takes an array of options. See the [Discord developer docs](https://discord.com/developers/docs/resources/channel#create-channel-invite) for a list of valid options. - - Messages can no longer be created using the message repository as part of the channel. Use `Channel::sendMessage()` instead. -- Overwrites: - - The `allow` and `deny` parameters of an overwrite are an instance of `ChannelPermission` instead of `int`. -- Guilds: - - Removed [old region constants](https://github.com/discord-php/DiscordPHP/blob/ca05832fa0d5700d96f5ecee2fe32a3aa6125f41/src/Discord/Parts/Guild/Guild.php). Added the `Guild::getVoiceRegions()` function to get an array of valid regions. - - `Guild::validateRegion()` now has to perform an async HTTP request to validate the region. Only use this if nessasary. -- Removed the `Game` class. Renamed to `Activity` and new attributes added. -- `Discord::updatePresence()` now takes an `Activity` object as well as options `idle`, `status` and `afk`. - -### Features - -- Added `getLoop()` and `getLogger()` functions to the `Discord` client. -- Collectors: - - Channels now have message collectors. See the phpdoc of `Channel::createMessageColletor()` for more information. - - Messages now have reaction collectors. See the phpdoc of `Message::createReactionCollector()` for more information. -- Added the [`Reaction`](https://github.com/discord-php/DiscordPHP/blob/ca05832fa0d5700d96f5ecee2fe32a3aa6125f41/src/Discord/Parts/Channel/Reaction.php) class. -- Added the [`Webhook`](https://github.com/discord-php/DiscordPHP/blob/ca05832fa0d5700d96f5ecee2fe32a3aa6125f41/src/Discord/Parts/Channel/Webhook.php) class. -- Implemented gateway intents: - - See the [`Intents` class](https://github.com/discord-php/DiscordPHP/blob/ca05832fa0d5700d96f5ecee2fe32a3aa6125f41/src/Discord/WebSockets/Intents.php) for constants. - - User can specify an `intents` field in the options array, containing either an array of intents or an integer corresponding to the intents. - -### Changes - -- WebSocket: - - Added new events: `GUILD_INTEGRATIONS_UPDATE`, `INVITE_CREATE`, `INVITE_DELETE`, `MESSAGE_REACTION_REMOVE_EMOJI`. - - Client will not retrieve guild bans by default anymore. Set `retrieveBans` to `true` in options to retrieve on guild availability. -- Command client: - - Help command now prints a rich embed (#305 thanks @oliverschloebe) - - Commands have a short and long description. - - Commands have a cooldown option. -- Factory now has a `part()` and `repository()` function to bypass `strpos` functions. -- Channels: - - [Added new attributes](https://github.com/discord-php/DiscordPHP/pull/309/files#diff-d1f173f4572644420fb9cd5d0b540c59R51-R58). - - [Added new channel types](https://github.com/discord-php/DiscordPHP/pull/309/files#diff-d1f173f4572644420fb9cd5d0b540c59R66-R72). - - Added webhook classes and repositories. - - `Channel::setOverwrite()` has been added to perform the action of `setPermissions()` from the previous version. -- Messages: - - [Added new attributes](https://github.com/discord-php/DiscordPHP/pull/309/files#diff-dcdab880a1ed5dbd0b65000834e4955cR44-R55). - - [Added new message types](https://github.com/discord-php/DiscordPHP/pull/309/files#diff-dcdab880a1ed5dbd0b65000834e4955cR59-R78). - - Added `Message::delayedReply()` to perform a reply after a specified duration. - - `Message::react()` and `Message::deleteReaction()` now takes an `Emoji` object or a string emoji. - - Added `Message::delete()` to delete a message without using the repository. - - Added `Message::addEmbed()` to add an embed to the message. - - Added the [`MessageReaction` class](https://github.com/discord-php/DiscordPHP/blob/ca05832fa0d5700d96f5ecee2fe32a3aa6125f41/src/Discord/Parts/WebSockets/MessageReaction.php) to represent a reaction to a message. -- Embeds: - - Added the `type` parameter. -- Emojis: - - Added the `animated` parameter. - - Added the `Emoji::toReactionString()` function to convert to a format to put in a `Reaction` object. - - Added the `Emoji::__toString()` object for sending emojis in messages. -- Guilds: - - Guild region is no longer checked before saving. Make sure to handle any exceptions from Discord servers and do not spam. - - Roles can now update their `mentionable` attribute. -- Permissions: - - [Added new permissions.](https://github.com/discord-php/DiscordPHP/pull/309/files#diff-60e83a1d96a4957061230b770a056001R5-R35) -- Members: - - [Added new attributes.](https://github.com/discord-php/DiscordPHP/pull/309/files#diff-8f236f99fe6eec45c56cff1be0ba0f90R40-R42) - - The `game` attribute now returns an `Activity` part. -- Presence updates: - - [Added new attributes.](https://github.com/discord-php/DiscordPHP/pull/309/files#diff-d6e13d509fb506d128c564d3ea4217adR25-R32) -- Typing updates: - - [Added new attributes.](https://github.com/discord-php/DiscordPHP/pull/309/files#diff-bc4d0e1ce4e436c29b922dd26266df68R26-R32) -- Voice state updates: - - [Added new attributes.](https://github.com/discord-php/DiscordPHP/pull/309/files#diff-4aa18d683d39063927ff9ff28149698fR21-R35) - -### Bug Fixes - -- Improved memory usage by removing `resolve` and `reject` functions from `Part`s. - - Memory leak has been improved but is still preset. -- `AbstractRepository::freshen()` now actually freshens the part, rather than being cached. -- Voice client has been updated to use the correct UDP server given by the web socket. -- Events *should* update their corresponding repositories more consistently. -- Improved the processing speed of `GUILD_CREATE` and `GUILD_MEMBERS_CHUNK` events. -- Added new gateway operation and close codes. -- Client will not attempt to reconnect to Discord servers if it receives a "critical" opcode (one that cannot be resolved by the bot). diff --git a/vendor/team-reflex/discord-php/CONTRIBUTING.md b/vendor/team-reflex/discord-php/CONTRIBUTING.md deleted file mode 100644 index 7d0a50d..0000000 --- a/vendor/team-reflex/discord-php/CONTRIBUTING.md +++ /dev/null @@ -1,3 +0,0 @@ -We are open to contributions. However, please make sure you follow our coding standards (PSR-4 autoloading and custom styling). Please run php-cs-fixer before opening a pull request by running ``composer run-script cs.`` - -Please only use the issue tracker for submitting issues with the code. If you have questions about how to use DiscordPHP, hop over to our discord at [![PHP Discorders](https://discord.com/api/guilds/115233111977099271/widget.png?style=banner1)](https://discord.gg/dphp) diff --git a/vendor/team-reflex/discord-php/LICENSE.md b/vendor/team-reflex/discord-php/LICENSE.md deleted file mode 100644 index 52ab769..0000000 --- a/vendor/team-reflex/discord-php/LICENSE.md +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2022 David Cole and all contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/vendor/team-reflex/discord-php/README.md b/vendor/team-reflex/discord-php/README.md deleted file mode 100644 index f5e637c..0000000 --- a/vendor/team-reflex/discord-php/README.md +++ /dev/null @@ -1,106 +0,0 @@ -DiscordPHP -==== -[![Latest Stable Version](https://poser.pugx.org/team-reflex/discord-php/v)](https://packagist.org/packages/team-reflex/discord-php) [![Latest Unstable Version](https://poser.pugx.org/team-reflex/discord-php/v/unstable)](https://packagist.org/packages/team-reflex/discord-php) [![Total Downloads](https://poser.pugx.org/team-reflex/discord-php/downloads)](https://packagist.org/packages/team-reflex/discord-php) [![PHP Version Require](https://poser.pugx.org/team-reflex/discord-php/require/php)](https://packagist.org/packages/team-reflex/discord-php) - -[![PHP Discorders](https://discord.com/api/guilds/115233111977099271/widget.png?style=banner1)](https://discord.gg/dphp) - -A wrapper for the official [Discord](https://discordapp.com) REST, gateway and voice APIs. Documentation is [available here](http://discord-php.github.io/DiscordPHP), albeit limited at the moment, as well as a class reference. Feel free to ask questions in the Discord server above. - -For testing and stability it would be greatly appreciated if you were able to add our test bot to your server. We don't store any data - the bot simply idles and does not interact with anyone and is used to test stability with large numbers of guilds. You can invite the bot [here.](https://discord.com/oauth2/authorize?client_id=157746770539970560&scope=bot) - -## Cache Interface (experimental) -> **Warning** -> This branch contains an experimental feature, do not use it in production! See [the wiki page for more information](https://github.com/discord-php/DiscordPHP/wiki/Cache-Interface) on how to set it up. - -## FAQ - -1. Can I run DiscordPHP on a webserver (e.g. Apache, nginx)? - - No, DiscordPHP will only run in CLI. If you want to have an interface for your bot you can integrate [react/http](https://github.com/ReactPHP/http) with your bot and run it through CLI. -2. PHP is running out of memory? - - Try unlimit your PHP memory using `ini_set('memory_limit', '-1');`. - -## Getting Started - -Before you start using this Library, you **need** to know how PHP works, you need to know how Event Loops and Promises work. This is a fundamental requirement before you start. Without this knowledge, you will only suffer. - -### Requirements - -- [PHP 8.0](https://php.net) or higher (latest version recommended) - - x86 (32-bit) PHP requires [`ext-gmp`](https://www.php.net/manual/en/book.gmp.php) enabled. -- [`ext-json`](https://www.php.net/manual/en/book.json.php) -- [`ext-zlib`](https://www.php.net/manual/en/book.zlib.php) - -#### Recommended Extensions - -- One of [`ext-uv`](https://github.com/amphp/ext-uv) (recommended), `ext-ev` or `ext-event` for a faster, and more performant event loop. -- [`ext-mbstring`](https://www.php.net/manual/en/book.mbstring.php) if handling non-latin characters. - -#### Voice Requirements - -- 64-bit PHP -- [`ext-sodium`](https://www.php.net/manual/en/book.sodium.php) -- [FFmpeg](https://ffmpeg.org/) - -### Windows and SSL - -Unfortunately PHP on Windows does not have access to the Windows Certificate Store. This is an issue because TLS gets used and as such certificate verification gets applied (turning this off is **not** an option). - -You will notice this issue by your script exiting immediately after one loop turn without any errors. - -As such users of this library need to download a [Certificate Authority extract](https://curl.haxx.se/docs/caextract.html) from the cURL website.
-The path to the caextract must be set in the [`php.ini`](https://secure.php.net/manual/en/openssl.configuration.php) for `openssl.cafile`. - -### Installing DiscordPHP - -DiscordPHP is installed using [Composer](https://getcomposer.org). - -1. Run `composer require team-reflex/discord-php`. This will install the latest stable release. - - If you would like, you can also install the development branch by running `composer require team-reflex/discord-php dev-master`. -2. Include the Composer autoload file at the top of your main file: - - `include __DIR__.'/vendor/autoload.php';` -3. Make a bot! - -### Basic Example - -```php - 'bot-token', - 'intents' => Intents::getDefaultIntents() -// | Intents::MESSAGE_CONTENT, // Note: MESSAGE_CONTENT is privileged, see https://dis.gd/mcfaq -]); - -$discord->on('ready', function (Discord $discord) { - echo "Bot is ready!", PHP_EOL; - - // Listen for messages. - $discord->on(Event::MESSAGE_CREATE, function (Message $message, Discord $discord) { - echo "{$message->author->username}: {$message->content}", PHP_EOL; - // Note: MESSAGE_CONTENT intent must be enabled to get the content if the bot is not mentioned/DMed. - }); -}); - -$discord->run(); -``` - -See [examples folder](examples) for more. - -## Documentation - -Documentation for the latest version can be found [here](//discord-php.github.io/DiscordPHP/guide). Community contributed tutorials can be found on the [wiki](//github.com/discord-php/DiscordPHP/wiki). - -## Contributing - -We are open to contributions. However, please make sure you follow our coding standards (PSR-4 autoloading and custom styling). Please run php-cs-fixer before opening a pull request by running `composer run-script cs`. - -## License - -MIT License, © David Cole and other contributers 2016-present. diff --git a/vendor/team-reflex/discord-php/V6_CONVERSION.md b/vendor/team-reflex/discord-php/V6_CONVERSION.md deleted file mode 100644 index 4b560b0..0000000 --- a/vendor/team-reflex/discord-php/V6_CONVERSION.md +++ /dev/null @@ -1,110 +0,0 @@ -# Version 5.x to 6.0 Conversion Guide - -## PHP Version - -PHP 7.4 is now required. Please update to _at least_ PHP 7.4, but we recommend PHP 8.x for the best performance. - -## Options removal - -The `logging`, `httpLogger` and `loggerLevel` options have been removed. Any logs that went to the HTTP logger are now sent to the default `logger`. - -If you were using the `logging` option to disable logging, you can do the same by creating a null logger: - -```php -pushHandler(new NullHandler()); - -$discord = new Discord([ - // ... - 'logger' => $logger, -]); -``` - -If you were using the `loggerLevel` option to change the logger level, you can do the same by creating a logger and changing the level of the handler: - -```php -pushHandler(new StreamHandler('php://stdout'), Logger::DEBUG); // Change the second parameter of this function call. -$discord = new Discord([ - // ... - 'logger' => $logger, -]); -``` - -## Loading all members - -Alongside the `loadAllMembers` option, you now must enable the `GUILD_MEMBERS` intent. You can do this by specifying the `intents` option in the options array: - -```php - Intents::getDefaultIntents() | Intents::GUILD_MEMBERS, -]); -``` - -Note that your bot will not be able to connect to the gateway if you have not enabled this intent in the Discord developer portal. - -## Presence Updates - -If you use the `PRESENCE_UPDATE` event, you must enable the intent in your Discord options array: - -```php - Intents::getDefaultIntents() | Intents::GUILD_PRESENCES, -]); -``` - -Note that your bot will not be able to connect to the gateway if you have not enabled this intent in the Discord developer portal. - -## Message Replies - -If you were using the `$message->reply()` function, this now returns a Discord reply rather than a 'quote'. If you want to keep the old functionality, use `$message->channel->sendMessage()`. - -## Voice Client - -Copied from the changelog: - -- The voice client now requires at least PHP 7.4 to operate. It will not attempt to start on any version lower. -- The voice client can now run on Windows, thanks to the introduction of socker pair descriptors in PHP 8.0 (see reactphp/child-process#85). As such, PHP 8.0 is required to run the voice client on Windows. -- DCA has been rebuilt and refactored for better use with DiscordPHP. Note that the binaries have only been rebuilt for the `amd64` architecture. The following platforms are now supported: - - Windows AMD64 - - macOS AMD64 - - Linux AMD64 - - I'm happy to support DCA for other platforms if requested. Please ensure that your platform is supported by the Go compiler, see the supported list [here](https://golang.org/doc/install/source#introduction). -- The following functions no longer return promises, rather they throw exceptions and will return void. This is because none of these functions actually did any async work, therefore promises were redundant in this situation. - - `setSpeaking()` - - `switchChannel()` - - `setFrameSize()` - - `setBitrate()` - - `setVolume()` - - `setAudioApplication()` - - `setMuteDeaf()` - - `pause()` - - `unpause()` - - `stop()` - - `close()` - - `getRecieveStream()` -- Expect a voice client refactor in a future release. diff --git a/vendor/team-reflex/discord-php/V7_CONVERSION.md b/vendor/team-reflex/discord-php/V7_CONVERSION.md deleted file mode 100644 index 0ae39e3..0000000 --- a/vendor/team-reflex/discord-php/V7_CONVERSION.md +++ /dev/null @@ -1,100 +0,0 @@ -# Version 6.x to 7.x Conversion Guide - -Another breaking change unfourtunately, due to various factors including the addition of thread support as well -as future proofing for message components (buttons). - -## Sending messages - -Sending messages is now done through the [`MessageBuilder`](src/Discord/Builders/MessageBuilder.php) class. -See the [documentation](http://discord-php.github.io/DiscordPHP/) section on the message builder for usage. - -This has been added to support a few features: - -- Sending multiple embeds in a message. -- Sending multiple files in a message. -- Sending file attachments alongside embeds (e.g. images). -- Unifying `sendMessage` and `sendFile` functions. -- Adding message components. - -The following functions have been changed, alongside their new signature: - -- `Channel::sendMessage(MessageBuilder $message)` -- `Member::sendMessage(MessageBuilder $message)` -- `User::sendMessage(MessageBuilder $message)` - -```php -// Old -$message->channel->sendMessage('hello, world!'); - -// New -$message->channel->sendMessage(MessageBuilder::new() - ->setContent('hello, world!')); -``` - -The following functions have been added: - -- `Message::edit(MessageBuilder $builder)` - -The following functions have been deprecated: - -- `Channel::editMessage(Message $message, MessageBuilder $builder)` - deprecated in favour of `Message::edit(MessageBuilder $builder)`. -- `Channel::sendFile()` - deprecated in favour of `Channel::sendMessage(MessageBuilder $builder)`. -- `Channel::getMessage(string $id)` - deprecated in favour of `Channel::messages::fetch(string $id)`. - -## `Message::channel` now return `Channel|Thread` - -With the addition of threads, messages can now be sent in text channels OR threads. These are not the same part. - -If you depend on a function or property which is only present on `Channel`, you should check the type of `$message->channel`: - -```php -$discord->on('message', function (Message $message) { - if ($message->channel instanceof Channel) { - // is channel... - } else { - // is thread... - } -}); -``` - -## Message components - -Message components (buttons, select menus) are now availabe! See the [documentation](https://discord-php.github.io/DiscordPHP/) on how to use implement these into your bot. - -## Slash Commands - -If you previously linked [DiscordPHP-Slash](https://github.com/discord-php/DiscordPHP-Slash), you can remove the package and change your code: - -### Register Client - -| |DiscordPHP-Slash|DiscordPHP| -|-----|-----|-----| -|Register Client|`$client = new RegisterClient('your-bot-token-here');`|*Removed*, the `$discord` can deal with commands from REST API, requires `application.commands` scope| -|Get list of all Global Commands|`$commands = $client->getCommands();`|`$discord->application->commands->freshen()->done(function ($commands) { /* ... */ });`| -|Get list of all Guild Commands|`$guildCommands = $client->getCommands('guild_id_here');`|`$discord->guilds['guild_id_here']->commands->freshen()->done(function ($commands) { /* ... */ });`| -|Get a specific Global Command|`$command = $client->getCommand('command_id');`|`$discord->application->commands->fetch('command_id')->done(function ($command) { /* ... */ });`| -|Get a specific Guild Commands|`$command = $client->getCommand('command_id', 'guild_id');`|`$discord->guilds['guild_id']->commands->fetch('command_id')->done(function ($command) { /* ... */ });`| -|Create a Global Command|`$command = $client->createGlobalCommand('command_name', 'command_description', [ /* optional array of options */ ]);`|`$command = new Command($discord, ['name' => 'command_name', 'description' => 'command_description', /* optional array of options */]);`
`$discord->application->commands->save($command)`| -|Create a Guild Command|`$command = $client->createGuildSpecificCommand('guild_id', 'command_name', 'command_description', [ /* optional array of options */ ]);`|`$command = new Command($discord, ['name' => 'command_name', 'description' => 'command_description', /* optional array of options */]);`
`$discord->guilds['guild_id']->commands->save($command)`| -|Updating a Global command|`$command->name = 'newcommandname';`
`$client->updateCommand($command);`|`$command->name = 'newcommandname';`
`$discord->application->commands->save($command);`| -|Updating a Guild command|`$command->name = 'newcommandname';`
`$client->updateCommand($command);`|`$command->name = 'newcommandname';`
`$discord->guilds['guild_id']->commands->save($command);`| -|Deleting a Global command|`$client->deleteCommand($command);`|`$discord->application->commands->delete($command);`| -|Deleting a Guild command|`$client->deleteCommand($command);`|`$discord->guilds['guild_id']->commands->delete($command);`| - -### Slash Client - -| |DiscordPHP-Slash|DiscordPHP| -|-----|-----|-----| -|Client|`$client = new Client([ /* options */ ]);`|*Removed*, all options are present when constructing `$discord`| -|Link|`$client->linkDiscord($discord, false);`|*Removed*, this is already the `$discord`| -|Register a Command|`$client->registerCommand('hello', function (Interaction $interaction, Choices $choices) {`|`$discord->listenCommand('hello', function (Interaction $interaction) {`
Choices are inside `$interaction->data->options`| -|Acknowledge|`$interaction->acknowledge();`|*Same as below*| -|Acknowledge with source|`$interaction->acknowledge(true);`|`$interaction->acknowledgeWithResponse();`| -|Reply|`$interaction->reply('Hello world!');`|*Same as below*| -|Reply with source|`$interaction->replyWithSource('Hello world!');`|`$interaction->respondWithMessage(MessageBuilder::new()->setContent('Hello world!'));`| -|Update initial response|`$interaction->updateInitialResponse('text');`|`$interaction->updateOriginalResponse(MessageBuilder::new()->setContent('text'));`| -|Delete initial response|`$interaction->deleteInitialResponse();`|`$interaction->deleteOriginalResponse();`| -|Send a follow up message|`$interaction->sendFollowUpMessage('text');`|`$interaction->sendFollowUpMessage(MessageBuilder::new()->setContent('text'));`| -|Update follow up message|`$interaction->updateFollowUpMessage('message_id', 'text');`|`$interaction->updateFollowUpMessage('message_id', MessageBuilder::new()->setContent('text'));`| -|Delete follow up message|`$interaction->deleteFollowUpMessage('message_id');`|`$interaction->deleteFollowUpMessage('message_id');`| -|ApplicationCommandOptionType|`ApplicationCommandOptionType::x`
`ApplicationCommandOptionType::SUB_COMMAND`|`Option::x`
`Option::SUB_COMMAND`| diff --git a/vendor/team-reflex/discord-php/composer.json b/vendor/team-reflex/discord-php/composer.json deleted file mode 100644 index faf8244..0000000 --- a/vendor/team-reflex/discord-php/composer.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "name": "team-reflex/discord-php", - "description": "An unofficial API to interact with the voice and text service Discord.", - "license": "MIT", - "authors": [ - { - "name": "David Cole", - "email": "david.cole1340@gmail.com" - } - ], - "support": { - "issues": "https://github.com/discord-php/DiscordPHP/issues", - "wiki": "https://github.com/discord-php/DiscordPHP/wiki", - "docs": "https://discord-php.github.io/DiscordPHP/", - "chat": "https://discord.gg/dphp" - }, - "require": { - "php": "^8.0", - "nesbot/carbon": "^2.38 || ^3.0", - "ratchet/pawl": "^0.4.1", - "react/datagram": "^1.8", - "symfony/options-resolver": "^5.1.11 || ^6.0 || ^7.0", - "trafficcophp/bytebuffer": "^0.3", - "monolog/monolog": "^2.1.1 || ^3.0", - "react/event-loop": "^1.2", - "ext-json": "*", - "ext-zlib": "*", - "discord-php/http": "^10.1.7", - "react/child-process": "^0.6.3", - "discord/interactions": "^2.2", - "react/async": "^4.0 || ^3.0", - "react/cache": "^0.5 || ^0.6 || ^1.0", - "react/promise": "^3.0.0", - "psr/simple-cache": "^1.0 || ^2.0 || ^3.0" - }, - "require-dev": { - "symfony/var-dumper": "*", - "friendsofphp/php-cs-fixer": "^3", - "phpunit/phpunit": "^9.4.4", - "davidcole1340/reactsh": "dev-master", - "wyrihaximus/react-cache-redis": "^4.5", - "symfony/cache": "^5.4" - }, - "autoload": { - "files": [ - "src/Discord/functions.php" - ], - "psr-4": { - "Discord\\": "src/Discord" - } - }, - "suggest": { - "ext-gmp": "For 64 bit calculations on x86 (32 bit) PHP.", - "ext-uv": "For a faster, and more performant loop. Preferred.", - "ext-ev": "For a faster, and more performant loop.", - "ext-event": "For a faster, and more performant loop.", - "ext-mbstring": "For accurate calculations of string length when handling non-english characters.", - "ext-fileinfo": "For function mime_content_type()." - }, - "scripts": { - "cs": ["./vendor/bin/php-cs-fixer fix"], - "unit": ["./vendor/bin/phpunit --testdox"], - "coverage": ["XDEBUG_MODE=coverage ./vendor/bin/phpunit --coverage-html coverage --testdox"] - } -} diff --git a/vendor/team-reflex/discord-php/docs/.gitignore b/vendor/team-reflex/discord-php/docs/.gitignore deleted file mode 100644 index 0a57152..0000000 --- a/vendor/team-reflex/discord-php/docs/.gitignore +++ /dev/null @@ -1,6 +0,0 @@ -# gatsby files -.cache/ -node_modules -public -package-lock.json -yarn.lock diff --git a/vendor/team-reflex/discord-php/docs/README.md b/vendor/team-reflex/discord-php/docs/README.md deleted file mode 100644 index 2d9869a..0000000 --- a/vendor/team-reflex/discord-php/docs/README.md +++ /dev/null @@ -1,17 +0,0 @@ -# DiscordPHP Documentation - -Static documentation website, built with [Gatsby](https://www.gatsbyjs.org/). -Special thanks to the amazing guys over at [@octokit/rest.js](https://octokit.github.io/rest.js/) for the amazing template! - -## License - -Original template is licensed under the MIT license from [@octokit/rest.js](https://github.com/octokit/rest.js/blob/master/LICENSE). -Any changes are licensed under the MIT license from [DiscordPHP](https://github.com/discord-php/DiscordPHP/blob/master/LICENSE.md). - -## Local Development - -``` -cd ./docs -yarn install -yarn develop -``` diff --git a/vendor/team-reflex/discord-php/docs/gatsby-browser.js b/vendor/team-reflex/discord-php/docs/gatsby-browser.js deleted file mode 100644 index 84f49a8..0000000 --- a/vendor/team-reflex/discord-php/docs/gatsby-browser.js +++ /dev/null @@ -1 +0,0 @@ -require("prismjs/themes/prism-okaidia.css"); diff --git a/vendor/team-reflex/discord-php/docs/gatsby-config.js b/vendor/team-reflex/discord-php/docs/gatsby-config.js deleted file mode 100644 index 9c92f97..0000000 --- a/vendor/team-reflex/discord-php/docs/gatsby-config.js +++ /dev/null @@ -1,89 +0,0 @@ -module.exports = { - // https://www.gatsbyjs.org/docs/how-gatsby-works-with-github-pages/ - pathPrefix: "/DiscordPHP", - siteMetadata: { - title: `DiscordPHP`, - }, - plugins: [ - `gatsby-plugin-react-helmet`, - { - resolve: `gatsby-source-filesystem`, - options: { - name: `api`, - path: `${__dirname}/src/pages/api`, - }, - }, - { - resolve: `gatsby-transformer-remark`, - options: { - plugins: [ - { - resolve: `gatsby-remark-prismjs`, - options: { - // Class prefix for
 tags containing syntax highlighting;
-              // defaults to 'language-' (eg 
).
-              // If your site loads Prism into the browser at runtime,
-              // (eg for use with libraries like react-live),
-              // you may use this to prevent Prism from re-processing syntax.
-              // This is an uncommon use-case though;
-              // If you're unsure, it's best to use the default value.
-              classPrefix: "language-",
-              // This is used to allow setting a language for inline code
-              // (i.e. single backticks) by creating a separator.
-              // This separator is a string and will do no white-space
-              // stripping.
-              // A suggested value for English speakers is the non-ascii
-              // character '›'.
-              inlineCodeMarker: null,
-              // This lets you set up language aliases.  For example,
-              // setting this to '{ sh: "bash" }' will let you use
-              // the language "sh" which will highlight using the
-              // bash highlighter.
-              aliases: {},
-              // This toggles the display of line numbers globally alongside the code.
-              // To use it, add the following line in src/layouts/index.js
-              // right after importing the prism color scheme:
-              //  `require("prismjs/plugins/line-numbers/prism-line-numbers.css");`
-              // Defaults to false.
-              // If you wish to only show line numbers on certain code blocks,
-              // leave false and use the {numberLines: true} syntax below
-              showLineNumbers: false,
-              // If setting this to true, the parser won't handle and highlight inline
-              // code used in markdown i.e. single backtick code like `this`.
-              noInlineHighlight: false,
-            },
-          },
-        ],
-      },
-    },
-    {
-      resolve: `gatsby-plugin-typography`,
-      options: {
-        pathToConfigModule: `src/utils/typography`,
-      },
-    },
-    {
-      resolve: `@gatsby-contrib/gatsby-plugin-elasticlunr-search`,
-      options: {
-        // Fields to index
-        fields: [`title`, `name`, `scope`, `route`, `method`],
-        // How to resolve each field`s value for a supported node type
-        resolvers: {
-          // For any node of type MarkdownRemark, list how to resolve the fields` values
-          MarkdownRemark: {
-            title: (node) => node.frontmatter.title,
-            name: (node) => node.frontmatter.name,
-            slug: (node) =>
-              `#${node.frontmatter.scope ? node.frontmatter.scope + "-" : ""}${
-                node.fields.idName
-              }`,
-            route: (node) => `${node.frontmatter.route}`,
-            method: (node) => `${node.frontmatter.example}`,
-            type: (node) => node.frontmatter.type || "API",
-            version: (node) => node.fields.version,
-          },
-        },
-      },
-    },
-  ],
-};
diff --git a/vendor/team-reflex/discord-php/docs/gatsby-node.js b/vendor/team-reflex/discord-php/docs/gatsby-node.js
deleted file mode 100644
index 71a692a..0000000
--- a/vendor/team-reflex/discord-php/docs/gatsby-node.js
+++ /dev/null
@@ -1,55 +0,0 @@
-const path = require(`path`);
-
-const _ = require("lodash");
-const { createFilePath } = require(`gatsby-source-filesystem`);
-
-exports.onCreateNode = ({ node, getNode, actions }, pluginOptions) => {
-  const { createNodeField } = actions;
-
-  if (node.internal.type === `MarkdownRemark`) {
-    const slug = createFilePath({ node, getNode, basePath: `pages` });
-    const parent = getNode(node.parent);
-    const idName = _.kebabCase(node.frontmatter.title || parent.name);
-
-    createNodeField({
-      node,
-      name: `slug`,
-      value: slug
-    });
-
-    createNodeField({
-      node,
-      name: `idName`,
-      value: idName
-    });
-
-    // save the file's directory so it can be used by the Template
-    // component to group data in a GraphQL query
-    createNodeField({
-      node,
-      name: `parentRelativeDirectory`,
-      value: parent.relativeDirectory
-    });
-
-    // set a version field on pages so they can be queried
-    // appropriately in the Template component
-    let version = pluginOptions.currentVersion;
-    if (parent.gitRemote___NODE) {
-      const { sourceInstanceName } = getNode(parent.gitRemote___NODE);
-      version = sourceInstanceName;
-    }
-
-    createNodeField({
-      node,
-      name: `version`,
-      value: version
-    });
-  }
-};
-
-exports.createPages = async ({ actions, graphql }, pluginOptions) => {
-  actions.createPage({
-    path: `/`,
-    component: path.resolve(`./src/components/template.js`)
-  });
-};
diff --git a/vendor/team-reflex/discord-php/docs/package.json b/vendor/team-reflex/discord-php/docs/package.json
deleted file mode 100644
index f0b5382..0000000
--- a/vendor/team-reflex/discord-php/docs/package.json
+++ /dev/null
@@ -1,33 +0,0 @@
-{
-  "name": "discordphp-docs",
-  "description": "Documentation site for DiscordPHP",
-  "license": "MIT",
-  "scripts": {
-    "develop": "gatsby develop",
-    "start": "npm run develop",
-    "build": "gatsby build",
-    "serve": "gatsby serve"
-  },
-  "devDependencies": {
-    "@gatsby-contrib/gatsby-plugin-elasticlunr-search": "^2.2.1",
-    "gatsby": "^2.19.12",
-    "gatsby-plugin-react-helmet": "^3.0.12",
-    "gatsby-plugin-typography": "^2.2.6",
-    "gatsby-remark-prismjs": "^3.2.6",
-    "gatsby-source-filesystem": "^2.0.28",
-    "gatsby-source-git": "^1.0.2",
-    "gatsby-transformer-remark": "^2.3.8",
-    "html-react-parser": "^0.10.1",
-    "lodash": "^4.17.15",
-    "marked": "^4.0.10",
-    "prismjs": "^1.16.0",
-    "react": "^16.8.6",
-    "react-debounce-render": "^6.0.0",
-    "react-dom": "^16.8.6",
-    "react-helmet": "^5.2.0",
-    "react-typography": "^0.16.18",
-    "title-case": "^3.0.2",
-    "typography": "^0.16.18",
-    "typography-theme-github": "^0.16.19"
-  }
-}
diff --git a/vendor/team-reflex/discord-php/docs/src/components/NodeList.js b/vendor/team-reflex/discord-php/docs/src/components/NodeList.js
deleted file mode 100644
index 13bc690..0000000
--- a/vendor/team-reflex/discord-php/docs/src/components/NodeList.js
+++ /dev/null
@@ -1,45 +0,0 @@
-import React from 'react';
-import apiStyles from "./api.module.css";
-
-export default class NodeList extends React.Component {
-  constructor(props) {
-    super(props);
-
-    this.titleNode = this.props.nodes.shift();
-  }
-
-  isActive() {
-    return this.props.getCurrentTitle() === this.titleNode.fields.idName;
-  }
-
-  onTitleClick() {
-    this.props.onTitleClick(this.titleNode);
-  }
-
-  createMenuItemName(node) {
-    return `${this.titleNode.fields.idName}/${node.fields.idName}`;
-  }
-
-  render() {
-    return (
-      
  • - - {this.titleNode.frontmatter.title} - -
      - {this.props.nodes.map(node => ( -
    1. - - {node.frontmatter.title} - -
    2. - ))} -
    -
  • - ); - } -} diff --git a/vendor/team-reflex/discord-php/docs/src/components/api.js b/vendor/team-reflex/discord-php/docs/src/components/api.js deleted file mode 100644 index cd2c519..0000000 --- a/vendor/team-reflex/discord-php/docs/src/components/api.js +++ /dev/null @@ -1,114 +0,0 @@ -import React, { Component } from "react"; -import apiStyles from "./api.module.css"; -import _ from 'lodash'; -import NodeList from "./NodeList"; - -export default class Api extends Component { - constructor(props) { - super(props); - - this.state = { - activeSubMenu: null, - activeMenuItem: null, - }; - this.setActiveSubMenu = this.setActiveSubMenu.bind(this); - this.isActiveSubMenu = this.isActiveSubMenu.bind(this); - this.getActiveMenuItem = this.getActiveMenuItem.bind(this); - this.onVisibleEndPoint = this.onVisibleEndPoint.bind(this); - this.onVisibleEndPointGroup = this.onVisibleEndPointGroup.bind(this); - - this.subMenus = []; - } - - setActiveSubMenu(id) { - this.setState({ - activeSubMenu: id, - }); - } - - setActiveMenuItem(id) { - this.setState({ - activeMenuItem: id, - }); - } - - getActiveMenuItem() { - return this.state.activeMenuItem; - } - - isActiveSubMenu(id) { - return this.state.activeSubMenu === id; - } - - hasActiveApiMenu() { - return this.state.activeMenuItem || this.state.activeSubMenu; - } - - onVisibleEndPointGroup(id) { - this.setActiveSubMenu(id); - this.setActiveMenuItem(id); - } - - onVisibleEndPoint(id) { - this.setActiveMenuItem(id); - } - - getNavigation() { - return _.groupBy(this.props.data.staticMethods.edges, ({ node }) => { - const slugs = node.fields.slug.slice(1, -1).split('/'); - - return slugs[0]; - }); - } - - renderNavigation([ head, nodes ]) { - if (nodes.length > 1) { - return ( - node)} - onTitleClick={(title) => this.setState({ - activeSubMenu: title.fields.idName - })} - getCurrentTitle={() => this.state.activeSubMenu} - /> - ); - } else { - return (({ node }) => ( -
  • - this.setState({ activeSubMenu: undefined })} - > - {node.frontmatter.title} - -
  • - ))(nodes[0]); - } - } - - render() { - return ( - - -
    -

    DiscordPHP

    - {this.props.data.staticMethods.edges.map(({ node }) => { - return ( - -

    {node.frontmatter.title}

    -
    - - ); - })} -
    -
    - ); - } -} diff --git a/vendor/team-reflex/discord-php/docs/src/components/api.module.css b/vendor/team-reflex/discord-php/docs/src/components/api.module.css deleted file mode 100644 index f356a39..0000000 --- a/vendor/team-reflex/discord-php/docs/src/components/api.module.css +++ /dev/null @@ -1,164 +0,0 @@ -.container { - --description-background-color: white; - --code-background-color: #191a18; - --code-foreground-color: white; - - padding: 1.25rem 1rem; -} - -.table { - max-width: 100%; - overflow-x: auto; -} - -main *[id]:before { - display: block; - content: " "; - margin-top: -5rem; - height: 5rem; - visibility: hidden; -} - -main h2:first-child { - margin-top: 0; -} - -.container pre { - background-color: var(--code-background-color); - color: var(--code-foreground-color); - padding: calc(1.45em / 2) 1.45em; - width: 100%; - overflow-x: auto; -} - -@media (min-width: 55em) { - .container { - padding: 0; - } - - main { - --description-background-color: white; - --code-background-color: #0a0b09; - --code-foreground-color: white; - background-image: linear-gradient( - 90deg, - var(--description-background-color) 0%, - var(--description-background-color) 50%, - var(--code-background-color) 50%, - var(--code-background-color) 100% - ); - } - - .section { - display: grid; - grid-template-columns: 1fr 1fr; - grid-column-gap: 2.9em; - } - .section > :not([data-language]) { - max-width: 100%; - overflow-x: auto; - overflow-y: hidden; - grid-column: 1/2; - padding-bottom: 0.11rem; - } - - .section > [data-language] { - overflow-x: auto; - grid-column: 2/3; - background-color: var(--code-background-color); - color: var(--code-foreground-color); - } - - .section > [data-language] pre { - margin: 0; - padding: 0; - } -} - -.nav { - position: sticky; - top: 0rem; - background-color: #eee; - padding: 0; - - /* Give the navigation a maximum height, so the “stickyness” will have an effect. */ - max-height: calc(100vh); - overflow-y: auto; - - /* TBD: Would it better to limit the navigation height so that all of the items - are visible when scrolled to the top of the page? - max-height: calc(100vh - var(--header-height-in-ems)); */ - - /* TBD: Is it useful to use em units here? (so that it will scale with the font size) - Are there other places where we’re using pixel values that make this moot? - --header-height-in-ems: calc(var(--header-height) / var(--font-size) * 1em); */ - - /* TBD: Should these value come from a custom property instead? - --header-height: 102.5; - --font-size: 20; */ -} - -.nav h1 { - display: inline; -} - -.nav button { - display: block; - margin-bottom: 0.75em; -} - -.nav a:not(:hover):not(:active):not(:focus) { - color: inherit; -} -.nav a { - text-shadow: none; - background-image: none; - text-decoration: none; - display: block; -} - -.nav > ol { - padding: 1rem !important; -} - -.nav ol, -.nav li { - list-style: none; - margin-left: 0; - padding-left: 0; -} -.nav li li { - /* padding-left: 1.45rem; */ - font-size: 0.875em; -} - -.subhidden { - display: none !important; -} - -.activelink { - position: sticky; - top: 0; - display: block; - background-color: white; - border-bottom: 1px solid hsla(0, 0%, 0%, 0.12); /* Copied from the table style in the main content area */ -} - -.activemenuitem { - font-weight: bold; -} - -.deprecated { - background-color: #ffe7e8; - padding: 1.25rem; - border-radius: 0.25rem; - margin-bottom: 1rem; -} - -/* Hide the navigation on small screens, until the toggle button is pressed */ -@media (max-width: 55em) { - /* --wide-enough-for-two-columns */ - .hidden { - display: none !important; - } -} diff --git a/vendor/team-reflex/discord-php/docs/src/components/index-page.js b/vendor/team-reflex/discord-php/docs/src/components/index-page.js deleted file mode 100644 index 0dfcd0d..0000000 --- a/vendor/team-reflex/discord-php/docs/src/components/index-page.js +++ /dev/null @@ -1,40 +0,0 @@ -import React, { Component } from "react"; - -import layoutStyles from "../components/layout.module.css"; -import "../components/layout.css"; - -import Api from "../components/api"; - -export default class IndexPage extends Component { - constructor(props) { - super(props); - this.state = { - menuActive: false, - }; - this.onToggleMenu = this.onToggleMenu.bind(this); - this.isMenuActive = this.isMenuActive.bind(this); - } - - onToggleMenu() { - this.setState({ - menuActive: !this.state.menuActive, - }); - } - - isMenuActive() { - return this.state.menuActive; - } - - render() { - return ( -
    -
    - -
    -
    - ); - } -} diff --git a/vendor/team-reflex/discord-php/docs/src/components/layout.css b/vendor/team-reflex/discord-php/docs/src/components/layout.css deleted file mode 100644 index 7c64c4b..0000000 --- a/vendor/team-reflex/discord-php/docs/src/components/layout.css +++ /dev/null @@ -1,167 +0,0 @@ -header { - --header-background-color: #fff; - --input-background-color: #eee; - - display: flex; - background-color: var(--header-background-color); - color: white; - position: sticky; - z-index: 1; - top: 0; - border-bottom: 3px solid #fff; -} - -header h1 { - grid-column: 2/3; - grid-row: 1/2; - color: inherit; - - margin: 0; - font-size: 1.125rem; - align-self: center; - text-align: right; -} - -@media (min-width: 55em) { - /* The breakpoint when the navigation is in the left column */ - header { - grid-template-columns: calc(1.45em * 9) auto max-content; /* The width of the left column */ - grid-column-gap: 2.9em; - } - header h1 { - text-align: left; - } -} - -header > .search { - display: grid; - grid-template-rows: auto 1fr; - max-height: 100vh; - grid-column: 1/3; - grid-row: 1/2; - --whitespace: 1.25rem; - width: 100%; - position: relative; - z-index: 1; -} - -header > .search .input { - background-color: var(--header-background-color); - color: #fff; - display: grid; -} - -header > .search .input input { - display: block; - box-sizing: border-box; - width: 100%; - border: 0; - outline: none; - background: var(--input-background-color); - padding: 0.1rem var(--whitespace); - grid-row: 1/-1; - grid-column: 1/-1; -} - -header .icon-search { - fill: currentColor; - grid-row: 1/-1; - grid-column: 1/-1; - align-self: center; - margin-left: 0.3rem; - width: 1em; - height: 1em; - font-size: 0.6em; - color: #000; - position: relative; - z-index: 1; -} - -header > .search .input input::placeholder { - color: #000; -} - -header > .search .results { - overflow-y: auto; - margin: 0; - background: white; - color: black; - list-style: none; - padding: 0 var(--whitespace); - width: 100%; -} - -header > .search .results li:first-child { - padding-top: var(--whitespace); -} -header > .search .results li:last-child { - padding-bottom: var(--whitespace); - margin-bottom: 0; -} - -header > .search .results li:last-child { - border-bottom: 3px solid #eee; -} - -header > .search a { - color: inherit; - background: none; - display: block; -} - -header > .search a:hover, -header > .search a:focus { - text-decoration: underline; -} - -header > button { - grid-row: 1/2; - grid-column: -2/-1; - background: transparent; - color: #ddd; - border: 0; - padding: 0 1rem; - cursor: pointer; - height: 2rem; -} - -header > button:hover, -header > button:active, -header > button:focus { - color: #1ca086; -} - -/* Set table-layout: fixed for small screens where table contents can break out of their container */ -table { - table-layout: fixed; -} - -/* Hide the navigation toggle button on big screens, since it’s not needed */ -@media (min-width: 55em) { - /* --wide-enough-for-two-columns */ - header > .search { - grid-column: 1/-1; - } - - header button { - display: none !important; - } -} - -header > button > svg { - fill: currentColor; - vertical-align: middle; -} - -/* override prism default css */ -main :not(pre) > code[class*="language-"] { - color: #000; - padding: 0.2em 0.4em; - border-radius: 3px; - white-space: normal; - background: #1b1f230d; - text-shadow: none; - font-size: 85%; - overflow-wrap: break-word; - word-break: break-word; -} diff --git a/vendor/team-reflex/discord-php/docs/src/components/layout.module.css b/vendor/team-reflex/discord-php/docs/src/components/layout.module.css deleted file mode 100644 index 328b232..0000000 --- a/vendor/team-reflex/discord-php/docs/src/components/layout.module.css +++ /dev/null @@ -1,29 +0,0 @@ -.container > header { - margin-bottom: 1.5rem; -} - -.hidden { - opacity: 0; -} - -@media (min-width: 55em) { - /* --wide-enough-for-two-columns */ - .container { - display: grid; - grid-column-gap: 2.9em; - grid-template-columns: calc(1.45em * 9) 2fr; - } - - .container > nav { - grid-column: 1/2; - } - - .container > main { - grid-column: 2/3; - } -} - -.versionDropdown { - display: flex; - align-items: flex-start; -} diff --git a/vendor/team-reflex/discord-php/docs/src/components/template.js b/vendor/team-reflex/discord-php/docs/src/components/template.js deleted file mode 100644 index 400f983..0000000 --- a/vendor/team-reflex/discord-php/docs/src/components/template.js +++ /dev/null @@ -1,41 +0,0 @@ -import React, { Fragment } from "react"; -import { Helmet } from "react-helmet"; - -import { graphql } from "gatsby"; - -import IndexPage from "./index-page"; - -export default ({ data }) => { - return ( - - - - DiscordPHP - - - - ); -}; - -export const query = graphql` - query { - # staticMethods are pages sourced from this repo - staticMethods: allMarkdownRemark( - sort: { fields: fields___slug } - ) { - edges { - node { - id - frontmatter { - title - } - html - fields { - idName - slug - } - } - } - } - } -`; diff --git a/vendor/team-reflex/discord-php/docs/src/pages/api/00_intro.md b/vendor/team-reflex/discord-php/docs/src/pages/api/00_intro.md deleted file mode 100644 index 1c75c74..0000000 --- a/vendor/team-reflex/discord-php/docs/src/pages/api/00_intro.md +++ /dev/null @@ -1,75 +0,0 @@ ---- -title: "Intro" ---- - -DiscordPHP is a wrapper for the Discord REST, WebSocket and Voice APIs. Built on top of [ReactPHP](https://reactphp.org/) components. This documentation is based off the latest release. - -This documentation page will be moved to class reference. You can now access it [here](http://discord-php.github.io/DiscordPHP/guide/). - -### Requirements - -- PHP 8.0 CLI - - Will not run on a webserver (FPM, CGI), you must run through CLI. A bot is a long-running process. - - x86 (32-bit) PHP requires ext-gmp extension enabled for handling new Permission values. -- `ext-json` for JSON parsing. -- `ext-zlib` for gateway packet compression. - -#### Recommended Extensions - -- One of `ext-uv`, `ext-libev` or `evt-event` (in order of preference) for a faster, and more performant event loop. -- `ext-mbstring` if you may handle non-english characters. -- `ext-gmp` if running 32-bit PHP. - -#### Voice Requirements - -- x86_64 Windows, Linux or Darwin based OS. - - If you are running on Windows, you must be using PHP 8.0. -- `ext-sodium` for voice encryption. -- FFmpeg - -### Development Environment Recommendations - -We recommend using an editor with support for the [Language Server Protocol](https://microsoft.github.io/language-server-protocol/). -A list of supported editors can be found [here](https://microsoft.github.io/language-server-protocol/implementors/servers/). -Here are some commonly used editors: - -- Visual Studio Code (built-in LSP support) -- Vim/Neovim (with the [coc.nvim](https://github.com/neoclide/coc.nvim) plugin for LSP support) -- PHPStorm (built-in PHP support) - -We recommend installing [PHP Intelephense](https://intelephense.com/) alongside your LSP-equipped editor for code completion alongside other helpful features. There is no need to pay for the premium features, the free version will suffice. - -### Installation - -Installation requries [Composer](https://getcomposer.org). - -To install the latest release: - -```shell -> composer require team-reflex/discord-php -``` - -If you would like to run on the latest `master` branch: - -```shell -> composer require team-reflex/discord-php dev-master -``` - -`master` can be substituted for any other branch name to install that branch. - -### Key Tips - -As Discord is a real-time application, events come frequently and it is vital that your code does not block the ReactPHP event loop. -Most, if not all, functions return promises, therefore it is vital that you understand the concept of asynchronous programming with promises. -You can learn more about ReactPHP promises [here](https://reactphp.org/promise/). - -### Help - -If you need any help, feel free to join the [PHP Discorders](https://discord.gg/dphp) Discord and someone should be able to give you a hand. We are a small community so please be patient if someone can't help you straight away. - -### Contributing - -All contributions are welcome through pull requests in our GitHub repository. At the moment we would love contributions towards: - -- Unit testing -- Documentation diff --git a/vendor/team-reflex/discord-php/docs/src/pages/api/01_faq.md b/vendor/team-reflex/discord-php/docs/src/pages/api/01_faq.md deleted file mode 100644 index cdfc25a..0000000 --- a/vendor/team-reflex/discord-php/docs/src/pages/api/01_faq.md +++ /dev/null @@ -1,39 +0,0 @@ ---- -title: "FAQ" ---- - -### `Class 'X' not found` - -You most likely haven't imported the class that you are trying to use. Please check the [class reference](http://discord-php.github.io/DiscordPHP/guide/) and search for the class that you are trying to use. Add an import statement at the top of the file like shown on the right. - -```php - '...', - 'loadAllMembers' => true, // Enable this option -]); -``` - -If you are using DiscordPHP Version 6 or greater, you need to enable the `GUILD_MEMBERS` intent as well as the `loadAllMembers` option. The shown code will enable all intents minus the `GUILD_PRESENCES` intent (which is also priviliged). - -```php - -$discord = new Discord([ - 'token' => '...', - 'loadAllMembers' => true, - 'intents' => Intents::getDefaultIntents() | Intents::GUILD_MEMBERS // Enable the `GUILD_MEMBERS` intent -]) -``` diff --git a/vendor/team-reflex/discord-php/docs/src/pages/api/02_basics.md b/vendor/team-reflex/discord-php/docs/src/pages/api/02_basics.md deleted file mode 100644 index e69b72e..0000000 --- a/vendor/team-reflex/discord-php/docs/src/pages/api/02_basics.md +++ /dev/null @@ -1,156 +0,0 @@ ---- -title: "Basics" ---- - -First step is to include the Composer autoload file and [import](https://www.php.net/manual/en/language.namespaces.importing.php) any required classes. - -```php - - -The Discord instance can be set up with an array of options. All are optional except for token: - -```php -$discord = new Discord([ -``` - -`token` is your Discord token. **Required**. - -```php - 'token' => 'Your-Token-Here', -``` - -`intents` can be an array of valid intents _or_ an integer representing the intents. Default is all intents minus any privileged intents. -At the moment this means all intents minus `GUILD_MEMBERS`, `GUILD_PRESENCES`, and `MESSAGE_CONTENT`. To enable these intents you must first enable them in your -Discord developer portal. - -```php - 'intents' => [ - Intents::GUILDS, Intents::GUILD_BANS, // ... - ], - // or - 'intents' => 12345, - // or - 'intents' => Intents::getDefaultIntents() | Intents::GUILD_MEMBERS, // default intents as well as guild members -``` - -`loadAllMembers` is a boolean whether all members should be fetched and stored on bot start. -Loading members takes a while to retrieve from Discord and store, so default is false. -This requires the `GUILD_MEMBERS` intent to be enabled in DiscordPHP. See above for more details. - -```php - 'loadAllMembers' => false, -``` - -`storeMessages` is a boolean whether messages received and sent should be stored. Default is false. - -```php - 'storeMessages' => false, -``` - -`retrieveBans` is a boolean whether bans should be retrieved on bot load. Default is false. - -```php - 'retrieveBans' => false, -``` - -`disabledEvents` is an array of events that will be disabled. By default all events are enabled. - -```php - 'disabledEvents' => [ - Event::MESSAGE_CREATE, Event::MESSAGE_DELETE, // ... - ], -``` - -`loop` is an instance of a ReactPHP event loop that can be provided to the client rather than creating a new loop. -Useful if you want to use other React components. By default, a new loop is created. - -```php - 'loop' => \React\EventLoop\Factory::create(), -``` - -`logger` is an instance of a logger that implements `LoggerInterface`. By default, a new Monolog logger with log level DEBUG is created to print to stdout. - -```php - 'logger' => new \Monolog\Logger('New logger'), -``` - -`dnsConfig` is an instace of `Config` or a string of name server address. By default system setting is used and fall back to 8.8.8.8 when system configuration is not found. Currently only used for VoiceClient. - -```php - 'dnsConfig' => '1.1.1.1', -``` - - -
    - -The following options should only be used by large bots that require sharding. If you plan to use sharding, [read up](https://discord.com/developers/docs/topics/gateway#sharding) on how Discord implements it. - -`shardId` is the ID of the bot shard. - -```php - 'shardId' => 0, -``` - -`shardCount` is the number of shards that you are using. - -```php - 'shardCount' => 5, -``` - -``` -]); -``` - -
    - -Gateway events should be registered inside the `ready` event, which is emitted once when the bot first starts and has connected to the gateway. - -```php -$discord->on('ready', function (Discord $discord) { -``` - -To register an event we use the `$discord->on(...)` function, which registers a handler. -A list of events is available [here](https://github.com/discord-php/DiscordPHP/blob/master/src/Discord/WebSockets/Event.php#L30-L75). They are described in more detail in further sections of the documentation. -All events take a callback which is called when the event is triggered, and the callback is called with an object representing the content of the event and an instance of the `Discord` client. - -```php - $discord->on(Event::MESSAGE_CREATE, function (Message $message, Discord $discord) { - // ... handle message sent - }); -``` - -``` -}); -``` - -
    - -Finally, the event loop needs to be started. Treat this as an infinite loop. - -```php -$discord->run(); -``` - -
    -If you want to stop the bot you can run: - -```php -$discord->close(); -``` - -If you want to stop the bot without stopping the event loop, the close function takes a boolean: - -```php -$discord->close(false); -``` - -
    diff --git a/vendor/team-reflex/discord-php/docs/src/pages/api/03_events/00_events.md b/vendor/team-reflex/discord-php/docs/src/pages/api/03_events/00_events.md deleted file mode 100644 index bc80d56..0000000 --- a/vendor/team-reflex/discord-php/docs/src/pages/api/03_events/00_events.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -title: "Events" ---- - -Events are payloads sent over the socket to a client that correspond to events in Discord. - -All gateway events are enabled by default and can be individually disabled using `disabledEvents` options. -Most events also requires the respective Intents enabled (as well privileged ones enabled from [Developers Portal](https://discord.com/developers/applications)) regardless the enabled event setting. - -To listen on gateway events, use the event emitter callback and `Event` name constants. -Some events are internally handled by the library and may not be registered a listener: - -- `Event::READY` -- `Event::RESUMED` -- `Event::GUILD_MEMBERS_CHUNK` - -If you are an advanced user, you may listen to those events before internally handled with the library by parsing the 'raw' dispatch event data. diff --git a/vendor/team-reflex/discord-php/docs/src/pages/api/03_events/01_application_commands.md b/vendor/team-reflex/discord-php/docs/src/pages/api/03_events/01_application_commands.md deleted file mode 100644 index 94cab19..0000000 --- a/vendor/team-reflex/discord-php/docs/src/pages/api/03_events/01_application_commands.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -title: "Application Commands" ---- - -### Application Command Permissions Update - -Called with an `CommandPermissions` object when an application command's permissions are updated. - -```php -$discord->on(Event::APPLICATION_COMMAND_PERMISSIONS_UPDATE, function (CommandPermissions $commandPermission, Discord $discord, ?CommandPermissions $oldCommandPermission) { - // ... -}); -``` diff --git a/vendor/team-reflex/discord-php/docs/src/pages/api/03_events/02_auto_moderations.md b/vendor/team-reflex/discord-php/docs/src/pages/api/03_events/02_auto_moderations.md deleted file mode 100644 index b569b7a..0000000 --- a/vendor/team-reflex/discord-php/docs/src/pages/api/03_events/02_auto_moderations.md +++ /dev/null @@ -1,53 +0,0 @@ ---- -title: "Auto Moderations" ---- - -All auto moderation related events are currently only sent to bot users which have the `MANAGE_GUILD` permission. - -### Auto Moderation Rule Create - -Called with a `Rule` object when an auto moderation rule is created. - -```php -$discord->on(Event::AUTO_MODERATION_RULE_CREATE, function (Rule $rule, Discord $discord) { - // ... -}); -``` - -Requires the `Intents::AUTO_MODERATION_CONFIGURATION` intent. - -### Auto Moderation Rule Update - -Called with a `Rule` object when an auto moderation rule is updated. - -```php -$discord->on(Event::AUTO_MODERATION_RULE_UPDATE, function (Rule $rule, Discord $discord, ?Rule $oldRule) { - // ... -}); -``` - -### Auto Moderation Rule Delete - -Called with a `Rule` object when an auto moderation rule is deleted. - -```php -$discord->on(Event::AUTO_MODERATION_RULE_DELETE, function (Rule $rule, Discord $discord) { - // ... -}); -``` - -Requires the `Intents::AUTO_MODERATION_CONFIGURATION` intent. - -### Auto Moderation Action Execution - -Called with an `AutoModerationActionExecution` object when an auto moderation rule is triggered and an action is executed (e.g. when a message is blocked). - -```php -// use `Discord\Parts\WebSockets\AutoModerationActionExecution`; - -$discord->on(Event::AUTO_MODERATION_ACTION_EXECUTION, function (AutoModerationActionExecution $actionExecution, Discord $discord) { - // ... -}); -``` - -Requires the `Intents::AUTO_MODERATION_EXECUTION` intent. diff --git a/vendor/team-reflex/discord-php/docs/src/pages/api/03_events/03_channels.md b/vendor/team-reflex/discord-php/docs/src/pages/api/03_events/03_channels.md deleted file mode 100644 index 27c325b..0000000 --- a/vendor/team-reflex/discord-php/docs/src/pages/api/03_events/03_channels.md +++ /dev/null @@ -1,128 +0,0 @@ ---- -title: "Channels" ---- - -Requires the `Intents::GUILDS` intent. - -### Channel Create - -Called with a `Channel` object when a new channel is created, relevant to the Bot. - -```php -$discord->on(Event::CHANNEL_CREATE, function (Channel $channel, Discord $discord) { - // ... -}); -``` - -### Channel Update - -Called with two `Channel` objects when a channel is updated. - -```php -$discord->on(Event::CHANNEL_UPDATE, function (Channel $channel, Discord $discord, ?Channel $oldChannel) { - // ... -}); -``` - -### Channel Delete - -Called with a `Channel` object when a channel relevant to the Bot is deleted. - -```php -$discord->on(Event::CHANNEL_DELETE, function (Channel $channel, Discord $discord) { - // ... -}); -``` - -### Channel Pins Update - -Called with an object when a message is pinned or unpinned in a text channel. This is not sent when a pinned message is deleted. - -```php -$discord->on(Event::CHANNEL_PINS_UPDATE, function ($pins, Discord $discord) { - // { - // "guild_id": "", - // "channel_id": "", - // "last_pin_timestamp": "" - // } -}); -``` - -> For direct messages, it only requires the `Intents::DIRECT_MESSAGES` intent. - -## Threads - -Requires the `Intents::GUILDS` intent. - -### Thread Create - -Called with a `Thread` object when a thread is created, relevant to the Bot. - -```php -$discord->on(Event::THREAD_CREATE, function (Thread $thread, Discord $discord) { - // ... -}); -``` - -### Thread Update - -Called with a `Thread` object when a thread is updated. - -```php -$discord->on(Event::THREAD_UPDATE, function (Thread $thread, Discord $discord, ?Thread $oldThread) { - // ... -}); -``` - -### Thread Delete - -Called with an old `Thread` object when a thread relevant to the Bot is deleted. - -```php -$discord->on(Event::THREAD_DELETE, function (object $thread, Discord $discord) { - if ($thread instanceof Thread) { - // $thread was cached - } - // $thread was not in cache: - else { - // { - // "type": 0, - // "id": "", - // "guild_id": "", - // "parent_id": "" - // } - } -}); -``` - -### Thread List Sync - -Called when list of threads are synced. - -```php -$discord->on(Event::THREAD_LIST_SYNC, function (Collection $threads, Discord $discord) { - // ... -}); -``` - -### Thread Member Update - -Called with a Thread `Member` object when the thread member for the current Bot is updated. - -```php -// use Discord\Parts\Thread\Member; - -$discord->on(Event::THREAD_MEMBER_UPDATE, function (Member $threadMember, Discord $discord) { - // ... -}); -``` - -### Thread Members Update - -Called with a `Thread` object when anyone is added to or removed from a thread. If the Bot does not have the `Intents::GUILD_MEMBERS`, then this event will only be called if the Bot was added to or removed from the thread. - -```php -$discord->on(Event::THREAD_MEMBERS_UPDATE, function (Thread $thread, Discord $discord) { - // ... -}); -``` diff --git a/vendor/team-reflex/discord-php/docs/src/pages/api/03_events/04_guilds.md b/vendor/team-reflex/discord-php/docs/src/pages/api/03_events/04_guilds.md deleted file mode 100644 index 36dd3e7..0000000 --- a/vendor/team-reflex/discord-php/docs/src/pages/api/03_events/04_guilds.md +++ /dev/null @@ -1,312 +0,0 @@ ---- -title: "Guilds" ---- - -Requires the `Intents::GUILDS` intent. - -### Guild Create - -Called with a `Guild` object in one of the following situations: - -1. When the Bot is first starting and the guilds are becoming available. (unless the listener is put inside after 'ready' event) -2. When a guild was unavailable and is now available due to an outage. -3. When the Bot joins a new guild. - -```php -$discord->on(Event::GUILD_CREATE, function (object $guild, Discord $discord) { - if (! ($guild instanceof Guild)) { - // the guild is unavailable due to an outage, $guild is a stdClass - // { - // "id": "", - // "unavailable": true, - // } - return; - } - - // the Bot has joined the guild -}); -``` - -### Guild Update - -Called with two `Guild` objects when a guild is updated. - -```php -$discord->on(Event::GUILD_UPDATE, function (Guild $guild, Discord $discord, ?Guild $oldGuild) { - // ... -}); -``` - -### Guild Delete - -Called with a `Guild` object in one of the following situations: - -1. The Bot was removed from a guild. -2. The guild is unavailable due to an outage. - -```php -$discord->on(Event::GUILD_DELETE, function (object $guild, Discord $discord, bool $unavailable) { - // ... - if ($unavailable) { - // the guild is unavailabe due to an outage, $guild is a stdClass - // { - // "guild_id": "", - // "unavailable": "", - // } - } else { - // the Bot has been kicked from the guild - } -}); -``` - -## Guild Moderation - -Requires the `Intents::GUILD_MODERATION` intent and `ban_members` or `view_audit_log` permission. - -### Guild Audit Log Entry Create - -Called with an `Audit Log Entry` object when an audit log entry is created. Requires the `view_audit_log` permission. - -```php -$discord->on(Event::GUILD_AUDIT_LOG_ENTRY_CREATE, function (Entry $entry, Discord $discord) { - // ... -}); -``` - -### Guild Ban Add - -Called with a `Ban` object when a member is banned from a guild. Requires the `ban_members` permission. - -```php -$discord->on(Event::GUILD_BAN_ADD, function (Ban $ban, Discord $discord) { - // ... -}); -``` - -### Guild Ban Remove - -Called with a `Ban` object when a user is unbanned from a guild. Requires the `ban_members` permission. - -```php -$discord->on(Event::GUILD_BAN_REMOVE, function (Ban $ban, Discord $discord) { - // ... -}); -``` - -## Guild Emojis and Stickers - -Requires the `Intents::GUILD_EMOJIS_AND_STICKERS` intent. - -### Guild Emojis Update - -Called with two Collections of `Emoji` objects when a guild's emojis have been added/updated/deleted. `$oldEmojis` _may_ be empty if it was not cached or there were previously no emojis. - - -```php -$discord->on(Event::GUILD_EMOJIS_UPDATE, function (Collection $emojis, Discord $discord, Collection $oldEmojis) { - // ... -}); -``` - -### Guild Stickers Update - -Called with two Collections of `Sticker` objects when a guild's stickers have been added/updated/deleted. `$oldStickers` _may_ be empty if it was not cached or there were previously no stickers. - -```php -$discord->on(Event::GUILD_STICKERS_UPDATE, function (Collection $stickers, Discord $discord, Collection $oldStickers) { - // ... -}); -``` - -## Guild Members - -Requires the `Intents::GUILD_MEMBERS` intent. This intent is a priviliged intent, it must be enabled in your Discord Bot developer settings. - -### Guild Member Add - -Called with a `Member` object when a new user joins a guild. - -```php -$discord->on(Event::GUILD_MEMBER_ADD, function (Member $member, Discord $discord) { - // ... -}); -``` - -### Guild Member Remove - -Called with a `Member` object when a member is removed from a guild (leave/kick/ban). Note that the member _may_ only have `User` data if `loadAllMembers` is disabled. - -```php -$discord->on(Event::GUILD_MEMBER_REMOVE, function (Member $member, Discord $discord) { - // ... -}); -``` - -### Guild Member Update - -Called with two `Member` objects when a member is updated in a guild. Note that the old member _may_ be `null` if `loadAllMembers` is disabled. - -```php -$discord->on(Event::GUILD_MEMBER_UPDATE, function (Member $member, Discord $discord, ?Member $oldMember) { - // ... -}); -``` - -## Guild Roles - -Requires the `Intents::GUILDS` intent. - -### Guild Role Create - -Called with a `Role` object when a role is created in a guild. - -```php -$discord->on(Event::GUILD_ROLE_CREATE, function (Role $role, Discord $discord) { - // ... -}); -``` - -### Guild Role Update - -Called with two `Role` objects when a role is updated in a guild. - -```php -$discord->on(Event::GUILD_ROLE_UPDATE, function (Role $role, Discord $discord, ?Role $oldRole) { - // ... -}); -``` - -### Guild Role Delete - -Called with a `Role` object when a role is deleted in a guild. `$role` may return `Role` object if it was cached. - -```php -$discord->on(Event::GUILD_ROLE_DELETE, function (object $role, Discord $discord) { - if ($role instanceof Role) { - // $role was cached - } - // $role was not in cache: - else { - // { - // "guild_id": "" // role guild ID - // "role_id": "", // role ID, - // } - } -}); -``` - -## Guild Scheduled Events - -Requires the `Intents::GUILD_SCHEDULED_EVENTS` intent. - -### Guild Scheduled Event Create - -Called with a `ScheduledEvent` object when a scheduled event is created in a guild. - -```php -$discord->on(Event::GUILD_SCHEDULED_EVENT_CREATE, function (ScheduledEvent $scheduledEvent, Discord $discord) { - // ... -}); -``` - -### Guild Scheduled Event Update - -Called with a `ScheduledEvent` object when a scheduled event is updated in a guild. - -```php -$discord->on(Event::GUILD_SCHEDULED_EVENT_UPDATE, function (ScheduledEvent $scheduledEvent, Discord $discord, ?ScheduledEvent $oldScheduledEvent) { - // ... -}); -``` - -### Guild Scheduled Event Delete - -Called with a `ScheduledEvent` object when a scheduled event is deleted in a guild. - -```php -$discord->on(Event::GUILD_SCHEDULED_EVENT_DELETE, function (ScheduledEvent $scheduledEvent, Discord $discord) { - // ... -}); -``` - -### Guild Scheduled Event User Add - -Called when a user has subscribed to a scheduled event in a guild. - -```php -$discord->on(Event::GUILD_SCHEDULED_EVENT_USER_ADD, function ($data, Discord $discord) { - // ... -}); -``` - -### Guild Scheduled Event User Remove - -Called when a user has unsubscribed from a scheduled event in a guild. - -```php -$discord->on(Event::GUILD_SCHEDULED_EVENT_USER_REMOVE, function ($data, Discord $discord) { - // ... -}); -``` - -## Integrations - -Requires the `Intents::GUILD_INTEGRATIONS` intent. - -### Guild Integrations Update - -Called with a cached `Guild` object when a guild integration is updated. - -```php -$discord->on(Event::GUILD_INTEGRATIONS_UPDATE, function (object $guild, Discord $discord) { - if ($guild instanceof Guild) { - // $guild was cached - } - // $guild was not in cache: - else { - // { - // "guild_id": "", - // } - } -}); -``` - -### Integration Create - -Called with an `Integration` object when an integration is created in a guild. - -```php -$discord->on(Event::INTEGRATION_CREATE, function (Integration $integration, Discord $discord) { - // ... -}); -``` - -### Integration Update - -Called with an `Integration` object when a integration is updated in a guild. - -```php -$discord->on(Event::INTEGRATION_UPDATE, function (Integration $integration, Discord $discord, ?Integration $oldIntegration) { - // ... -}); -``` - -### Integration Delete - -Called with an old `Integration` object when a integration is deleted from a guild. - -```php -$discord->on(Event::INTEGRATION_DELETE, function (object $integration, Discord $discord) { - if ($integration instanceof Integration) { - // $integration was cached - } - // $integration was not in cache: - else { - // { - // "id": "", - // "guild_id": "", - // "application_id": "" - // } - } -}); -``` diff --git a/vendor/team-reflex/discord-php/docs/src/pages/api/03_events/05_invites.md b/vendor/team-reflex/discord-php/docs/src/pages/api/03_events/05_invites.md deleted file mode 100644 index 26315e3..0000000 --- a/vendor/team-reflex/discord-php/docs/src/pages/api/03_events/05_invites.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -title: "Invites" ---- - -Requires the `Intents::GUILD_INVITES` intent and `manage_channels` permission. - -### Invite Create - -Called with an `Invite` object when a new invite to a channel is created. - -```php -$discord->on(Event::INVITE_CREATE, function (Invite $invite, Discord $discord) { - // ... -}); -``` - -### Invite Delete - -Called with an object when an invite is created. - -```php -$discord->on(Event::INVITE_DELETE, function (object $invite, Discord $discord) { - if ($invite instanceof Invite) { - // $invite was cached - } - // If $invite was not in cache: - else { - // { - // "channel_id": "", - // "guild_id": "", - // "code": "" // the unique invite code - // } - } -}); -``` diff --git a/vendor/team-reflex/discord-php/docs/src/pages/api/03_events/06_interactions.md b/vendor/team-reflex/discord-php/docs/src/pages/api/03_events/06_interactions.md deleted file mode 100644 index 4e9e948..0000000 --- a/vendor/team-reflex/discord-php/docs/src/pages/api/03_events/06_interactions.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -title: "Interactions" ---- - -### Interaction Create - -Called with an `Interaction` object when an interaction is created. - -```php -// use Discord\Parts\Interactions\Interaction; - -$discord->on(Event::INTERACTION_CREATE, function (Interaction $interaction, Discord $discord) { - // ... -}); -``` - -Application Command & Message component listeners are processed before this event is called. -Useful if you want to create a customized callback or have interaction response persists after Bot restart. diff --git a/vendor/team-reflex/discord-php/docs/src/pages/api/03_events/07_messages.md b/vendor/team-reflex/discord-php/docs/src/pages/api/03_events/07_messages.md deleted file mode 100644 index 35d3c3d..0000000 --- a/vendor/team-reflex/discord-php/docs/src/pages/api/03_events/07_messages.md +++ /dev/null @@ -1,124 +0,0 @@ ---- -title: "Messages" ---- - -> Unlike persistent messages, ephemeral messages are sent directly to the user and the Bot who sent the message rather than through the guild channel. Because of this, ephemeral messages are tied to the `Intents::DIRECT_MESSAGES`, and the message object won't include `guild_id` or `member`. - -Requires the `Intents::GUILD_MESSAGES` intent for guild or `Intents::DIRECT_MESSAGES` for direct messages. - -### Message Create - -Called with a `Message` object when a message is sent in a guild or private channel. - -```php -$discord->on(Event::MESSAGE_CREATE, function (Message $message, Discord $discord) { - // ... -}); -``` - -### Message Update - -Called with `Message` or `stdClass` objects when a message is updated in a guild or private channel. -The `$message` may be an instance of `stdClass` if it was partial, otherwise a `Message`. -The old message may be null if `storeMessages` is not enabled _or_ the message was sent before the Bot was started. -Discord does not provide a way to get message update history. - -```php -$discord->on(Event::MESSAGE_UPDATE, function (object $message, Discord $discord, ?Message $oldMessage) { - if ($message instanceof Message) { // Check for non partial message - // ... - } -}); -``` - -### Message Delete - -Called with an old `Message` object _or_ the raw payload when a message is deleted. -The `Message` object may be the raw payload if `storeMessages` is not enabled _or_ the message was sent before the Bot was started. -Discord does not provide a way to get deleted messages. - -```php -$discord->on(Event::MESSAGE_DELETE, function (object $message, Discord $discord) { - if ($message instanceof Message) { - // $message was cached - } - // $message was not in cache: - else { - // { - // "id": "", // deleted message ID, - // "channel_id": "", // message channel ID, - // "guild_id": "" // channel guild ID - // } - } -}); -``` - -### Message Delete Bulk - -Called with a `Collection` of old `Message` objects _or_ the raw payload when bulk messages are deleted. -The `Message` object may be the raw payload if `storeMessages` is not enabled _or_ the message was sent before the Bot was started. -Discord does not provide a way to get deleted messages. - -```php -$discord->on(Event::MESSAGE_DELETE_BULK, function (Collection $messages, Discord $discord) { - foreach ($messages as $message) { - if ($message instanceof Message) { - // $message was cached - } - // $message was not in cache: - else { - // { - // "id": "", // deleted message ID, - // "channel_id": "", // message channel ID, - // "guild_id": "" // channel guild ID - // } - } - } -}); -``` - -## Message Reactions - -Requires the `Intents::GUILD_MESSAGE_REACTIONS` intent for guild or `Intents::DIRECT_MESSAGE_REACTIONS` for direct messages. - -### Message Reaction Add - -Called with a `MessageReaction` object when a user added a reaction to a message. - -```php -$discord->on(Event::MESSAGE_REACTION_ADD, function (MessageReaction $reaction, Discord $discord) { - // ... -}); -``` - -### Message Reaction Remove - -Called with a `MessageReaction` object when a user removes a reaction from a message. - -```php -$discord->on(Event::MESSAGE_REACTION_REMOVE, function (MessageReaction $reaction, Discord $discord) { - // ... -}); -``` - -### Message Reaction Remove All - -Called with a `MessageReaction` object when all reactions are removed from a message. -Note that only the fields relating to the message, channel and guild will be filled. - -```php -$discord->on(Event::MESSAGE_REACTION_REMOVE_ALL, function (MessageReaction $reaction, Discord $discord) { - // ... -}); -``` - -### Message Reaction Remove Emoji - -Called with an object when all reactions of an emoji are removed from a message. -Unlike Message Reaction Remove, this event contains no users or members. - -```php -$discord->on(Event::MESSAGE_REACTION_REMOVE_EMOJI, function (MessageReaction $reaction, Discord $discord) { - // ... -}); -``` diff --git a/vendor/team-reflex/discord-php/docs/src/pages/api/03_events/08_presences.md b/vendor/team-reflex/discord-php/docs/src/pages/api/03_events/08_presences.md deleted file mode 100644 index 8393c1b..0000000 --- a/vendor/team-reflex/discord-php/docs/src/pages/api/03_events/08_presences.md +++ /dev/null @@ -1,39 +0,0 @@ ---- -title: "Presences" ---- - -### Presence Update - -Called with a `PresenceUpdate` object when a member's presence is updated. - -```php -$discord->on(Event::PRESENCE_UPDATE, function (PresenceUpdate $presence, Discord $discord) { - // ... -}); -``` - -Requires the `Intents::GUILD_PRESENCES` intent. This intent is a priviliged intent, it must be enabled in your Discord Bot developer settings. - -### Typing Start - -Called with a `TypingStart` object when a user starts typing in a channel. - -```php -// use Discord\Parts\WebSockets\TypingStart; - -$discord->on(Event::TYPING_START, function (TypingStart $typing, Discord $discord) { - // ... -}); -``` - -Requires the `Intents::GUILD_MESSAGE_TYPING` intent. - -### User Update - -Called with a `User` object when the Bot's user properties change. - -```php -$discord->on(Event::USER_UPDATE, function (User $user, Discord $discord, ?User $oldUser) { - // ... -}); -``` diff --git a/vendor/team-reflex/discord-php/docs/src/pages/api/03_events/09_stage_instances.md b/vendor/team-reflex/discord-php/docs/src/pages/api/03_events/09_stage_instances.md deleted file mode 100644 index 171e1b3..0000000 --- a/vendor/team-reflex/discord-php/docs/src/pages/api/03_events/09_stage_instances.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -title: "Stage Instances" ---- - -Requires the `Intents::GUILDS` intent. - -### Stage Instance Create - -Called with a `StageInstance` object when a stage instance is created (i.e. the Stage is now "live"). - -```php -$discord->on(Event::STAGE_INSTANCE_CREATE, function (StageInstance $stageInstance, Discord $discord) { - // ... -}); -``` - -### Stage Instance Update - -Called with a `StageInstance` objects when a stage instance has been updated. - -```php -$discord->on(Event::STAGE_INSTANCE_UPDATE, function (StageInstance $stageInstance, Discord $discord, ?StageInstance $oldStageInstance) { - // ... -}); -``` - -### Stage Instance Delete - -Called with a `StageInstance` object when a stage instance has been deleted (i.e. the Stage has been closed). - -```php -$discord->on(Event::STAGE_INSTANCE_DELETE, function (StageInstance $stageInstance, Discord $discord) { - // ... -}); -``` diff --git a/vendor/team-reflex/discord-php/docs/src/pages/api/03_events/10_voices.md b/vendor/team-reflex/discord-php/docs/src/pages/api/03_events/10_voices.md deleted file mode 100644 index 2c7ee5b..0000000 --- a/vendor/team-reflex/discord-php/docs/src/pages/api/03_events/10_voices.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -title: "Voices" ---- - -### Voice State Update - -Called with a `VoiceStateUpdate` object when a member joins, leaves or moves between voice channels. - -```php -// use Discord\Parts\WebSockets\VoiceStateUpdate; - -$discord->on(Event::VOICE_STATE_UPDATE, function (VoiceStateUpdate $state, Discord $discord, $oldstate) { - // ... -}); -``` - -Requires the `Intents::GUILD_VOICE_STATES` intent. - -### Voice Server Update - -Called with a `VoiceServerUpdate` object when a voice server is updated in a guild. - -```php -// use Discord\Parts\WebSockets\VoiceServerUpdate; - -$discord->on(Event::VOICE_SERVER_UPDATE, function (VoiceServerUpdate $guild, Discord $discord) { - // ... -}); -``` diff --git a/vendor/team-reflex/discord-php/docs/src/pages/api/03_events/11_webhooks.md b/vendor/team-reflex/discord-php/docs/src/pages/api/03_events/11_webhooks.md deleted file mode 100644 index c995dc9..0000000 --- a/vendor/team-reflex/discord-php/docs/src/pages/api/03_events/11_webhooks.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -title: "Webhooks" ---- - -### Webhooks Update - -Called with a `Guild` and `Channel` object when a guild channel's webhooks are is created, updated, or deleted. - -```php -$discord->on(Event::WEBHOOKS_UPDATE, function (object $guild, Discord $discord, ?object $channel) { - if ($guild instanceof Guild && $channel instanceof Channel) { - // $guild and $channel was cached - } - // $guild and/or $channel was not in cache: - else { - // "guild" { - // "id": "" // webhook guild ID - // }, - // "channel": { - id": "", // webhook channel ID - } - } -}); -``` - -Requires the `Intents::GUILD_WEBHOOKS` intent. diff --git a/vendor/team-reflex/discord-php/docs/src/pages/api/04_repositories.md b/vendor/team-reflex/discord-php/docs/src/pages/api/04_repositories.md deleted file mode 100644 index cd6104b..0000000 --- a/vendor/team-reflex/discord-php/docs/src/pages/api/04_repositories.md +++ /dev/null @@ -1,90 +0,0 @@ ---- -title: "Repositories" ---- - -Repositories are containers for parts. They provide the functions to get, save and delete parts from the Discord servers. Different parts have many repositories. - -An example is the `Channel` part. It has 4 repositories: `members`, `messages`, `overwrites` and `webhooks`. Each of these repositories contain parts that relate to the `Channel` part, such as messages sent in the channel (`messages` repository), or if it is a voice channel the members currently in the channel (`members` repository). - -A full list of repositories is provided below in the parts section, per part. - -Repositories extend the [Collection](#collection) class. See the documentation on collections for extra methods. - -Examples provided below are based on the `guilds` repository in the Discord client. - -### Methods - -All repositories extend the `AbstractRepository` class, and share a set of core methods. - -#### Freshening the repository data - -Clears the repository and fills it with new data from Discord. It takes no parameters and returns the repository in a promise. - -```php -$discord->guilds->freshen()->then(function (GuildRepository $guilds) { - // ... -})->done(); -``` - -#### Creating a part - -Creates a repository part from an array of attributes and returns the part. Does not create the part in Discord servers, you must use the `->save()` function later. - -| name | type | description | -| ---------- | ----- | ------------------------------------------------- | -| attributes | array | Array of attributes to fill in the part. Optional | - -```php -$guild = $discord->guilds->create([ - 'name' => 'My new guild name', -]); -// to save -$discord->guilds->save($guild)->then(...)->done(); -``` - -#### Saving a part - -Creates or updates a repository part in the Discord servers. Takes a part and returns the same part in a promise. - -| name | type | description | -| ---- | ---- | ---------------------------- | -| part | Part | The part to create or update | - -```php -$discord->guilds->save($guild)->then(function (Guild $guild) { - // ... -})->done(); -``` - -#### Deleting a part - -Deletes a repository part from the Discord servers. Takes a part and returns the old part in a promise. - -| name | type | description | -| ---- | ---- | ------------------ | -| part | Part | The part to delete | - -```php -$discord->guilds->delete($guild)->then(function (Guild $guild) { - // ... -})->done(); -``` - -#### Fetch a part - -Fetches/freshens a part from the repository. If the part is present in the cache, it returns the cached version, otherwise it retrieves the part from Discord servers. Takes a part ID and returns the part in a promise. - -| name | type | description | -| ----- | ------ | -------------------------------------------------------------- | -| id | string | Part ID | -| fresh | bool | Forces the method to skip checking the cache. Default is false | - -```php -$discord->guilds->fetch('guild_id')->then(function (Guild $guild) { - // ... -})->done(); -// or, if you don't want to check the cache -$discord->guilds->fetch('guild_id', true)->then(function (Guild $guild) { - // ... -})->done(); -``` diff --git a/vendor/team-reflex/discord-php/docs/src/pages/api/05_parts/00_parts.md b/vendor/team-reflex/discord-php/docs/src/pages/api/05_parts/00_parts.md deleted file mode 100644 index 07f6f58..0000000 --- a/vendor/team-reflex/discord-php/docs/src/pages/api/05_parts/00_parts.md +++ /dev/null @@ -1,54 +0,0 @@ ---- -title: "Parts" ---- - -Parts is the term used for the data structures inside Discord. -All parts share a common set of attributes and methods. - -Parts have a set list of fillable fields. If you attempt to set a field that is not accessible, it will not warn you. - -To create a part object, you can use the `new` syntax or the `factory` method. For example, creating a `Message` part: - -```php -$message = new Message($discord); -// or -$message = $discord->factory->create(Message::class); -``` -
    - -Part attributes can be accessed similar to an object or like an array: - -```php -$message->content = 'hello!'; -// or -$message['content'] = 'hello!'; - -echo $message->content; -// or -echo $message['content']; -``` - -### Filling a part with data - -The `->fill(array $attributes)` function takes an array of attributes to fill the part. If a field is found that is not 'fillable', it is skipped. - -```php -$message->fill([ - 'content' => 'hello!', -]); -``` - -### Getting the raw attributes of a part - -The `->getRawAttributes()` function returns the array representation of the part. - -```php -$attributes = $message->getRawAttributes(); -/** - * [ - * "id" => "", - * "content" => "", - * // ... - * ] - */ -``` diff --git a/vendor/team-reflex/discord-php/docs/src/pages/api/05_parts/01_guild.md b/vendor/team-reflex/discord-php/docs/src/pages/api/05_parts/01_guild.md deleted file mode 100644 index 81884ec..0000000 --- a/vendor/team-reflex/discord-php/docs/src/pages/api/05_parts/01_guild.md +++ /dev/null @@ -1,131 +0,0 @@ ---- -title: "Guild" ---- - -Guilds represent Discord 'servers'. - -### Repositories - -| name | type | notes | -| ---------------------- | ---------------------------------- | --------------------------------------------------------------------------- | -| roles | [Role](#role) | | -| emojis | [Emoji](#emoji) | | -| members | [Member](#member) | May not contain offline members, see the [`loadAllMembers` option](#basics) | -| channels | [Channel](#channel) | | -| stage_instances | [StageInstance](#stage_instance) | | -| guild_scheduled_events | [ScheduledEvent](#scheduled_event) | | -| stickers | [Sticker](#sticker) | | -| invites | [Invite](#invite) | Not initially loaded | -| bans | [Ban](#ban) | Not initially loaded without [`retrieveBans` option](#basics) | -| commands | [Command](#command) | Not initially loaded | -| templates | [GuildTemplate](#guild_template) | Not initially loaded | -| integrations | [Integration](#integration) | Not initially loaded | - -### Creating a role - -Shortcut for `$guild->roles->save($role);`. Takes an array of parameters for a role and returns a role part in a promise. - -#### Parameters - -| name | type | description | default | -| ------------- | ------- | ---------------------------- | --------------------- | -| name | string | Role name | new role | -| permissions | string | Bitwise value of permissions | @everyone permissions | -| color | integer | RGB color value | 0 | -| hoist | bool | Hoisted role? | false | -| icon | string | image data for Role icon | null | -| unicode_emoji | string | unicode emoji for Role icon | null | -| mentionable | bool | Mentionable role? | false | - -```php -$guild->createRole([ - 'name' => 'New Role', - // ... -])->then(function (Role $role) { - // ... -})->done(); -``` - -### Transferring ownership of guild - -Transfers the ownership of the guild to another member. The bot must own the guild to be able to transfer ownership. Takes a member object or a member ID and returns nothing in a promise. - -#### Parameters - -| name | type | description | -| ------ | ------------------- | --------------------------- | -| member | Member or member ID | The member to get ownership | -| reason | string | Reason for Audit Log | - -```php -$guild->transferOwnership($member)->then(...)->done(); -// or -$guild->transferOwnership('member_id')->then(...)->done(); -``` - -### Unbanning a member with a User or user ID - -Unbans a member when passed a `User` object or a user ID. If you have the ban object, you can do `$guild->bans->delete($ban);`. Returns nothing in a promise. - -#### Parameters - -| name | type | description | -| ------- | ----------------- | ----------------- | -| user_id | `User` or user ID | The user to unban | - -```php -$guild->unban($user)->then(...)->done(); -// or -$guild->unban('user_id')->then(...)->done(); -``` - -### Querying the Guild audit log - -Takes an array of parameters to query the audit log for the guild. Returns an Audit Log object inside a promise. - -#### Parameters - -| name | type | description | -| ----------- | ----------------------------- | ------------------------------------------------------ | -| user_id | string, int, `Member`, `User` | Filters audit log by who performed the action | -| action_type | `Entry` constants | Filters audit log by the type of action | -| before | string, int, `Entry` | Retrieves audit logs before the given audit log object | -| limit | int between 1 and 100 | Limits the amount of audit log entries to return | - -```php -$guild->getAuditLog([ - 'user_id' => '123456', - 'action_type' => Entry::CHANNEL_CREATE, - 'before' => $anotherEntry, - 'limit' => 12, -])->then(function (AuditLog $auditLog) { - foreach ($auditLog->audit_log_entries as $entry) { - // $entry->... - } -})->done(); -``` - -### Creating an Emoji - -Takes an array of parameters for an emoji and returns an emoji part in a promise. -Use the second parameter to specify local file path instead. - -#### Parameters - -| name | type | description | default | -| ----- | ------ | ---------------------------------------------------------------- | ---------- | -| name | string | Emoji name | _required_ | -| image | string | image data with base64 format, ignored if file path is specified | | -| roles | array | Role IDs that are allowed to use the emoji | [] | - -```php -$guild->createEmoji([ - 'name' => 'elephpant', - // ... -], -'/path/to/file.jpg', -'audit-log reason' -)->then(function (Emoji $emoji) { - // ... -})->done(); -``` \ No newline at end of file diff --git a/vendor/team-reflex/discord-php/docs/src/pages/api/05_parts/02_channel.md b/vendor/team-reflex/discord-php/docs/src/pages/api/05_parts/02_channel.md deleted file mode 100644 index 7d97b6d..0000000 --- a/vendor/team-reflex/discord-php/docs/src/pages/api/05_parts/02_channel.md +++ /dev/null @@ -1,363 +0,0 @@ ---- -title: "Channel" ---- - -Channels represent a Discord channel, whether it be a direct message channel, group channel, voice channel, text channel etc. - -### Properties - -| name | type | description | -| ------------------- | ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -| id | string | id of the channel | -| name | string | name of the channel | -| type | int | type of the channel, see Channel constants | -| topic | string | topic of the channel | -| guild_id | string or null | id of the guild the channel belongs to, null if direct message | -| guild | Guild or null | guild the channel belongs to, null if direct message | -| position | int | position of the channel in the Discord client | -| is_private | bool | whether the message is a private direct message channel | -| last_message_id | string | id of the last message sent in the channel | -| bitrate | int | bitrate of the voice channel | -| recipient | [User](#user) | recipient of the direct message, only for direct message channel | -| recipients | Collection of [Users](#user) | recipients of the group direct message, only for group dm channels | -| nsfw | bool | whether the channel is set as NSFW | -| user_limit | int | user limit of the channel for voice channels | -| rate_limit_per_user | int | amount of time in seconds a user has to wait between messages | -| icon | string | channel icon hash | -| owner_id | string | owner of the group DM | -| application_id | string | id of the group dm creator if it was via an oauth application | -| parent_id | string | id of the parent of the channel if it is in a group | -| last_pin_timestamp | `Carbon` timestamp | when the last message was pinned in the channel | -| rtc_region | string | Voice region id for the voice channel, automatic when set to null. | -| video_quality_mode | int | The camera video quality mode of the voice channel, 1 when not present. | -| default_auto_archive_duration | int | Default duration for newly created threads, in minutes, to automatically archive the thread after recent activity, can be set to: 60, 1440, 4320, 10080. | - -### Repositories - -| name | type | notes | -| ---------- | ----------------------- | ----------------------------------------------- | -| overwrites | [Overwrite](#overwrite) | Contains permission overwrites | -| members | VoiceStateUpdate | Only for voice channels. Contains voice members | -| messages | [Message](#message) | | -| webhooks | [Webhook](#webhook) | Only available in text channels | -| threads | [Thread](#thread) | Only available in text channels | -| invites | [Invite](#invite) | - -### Set permissions of a member or role - -Sets the permissions of a member or role. Takes two arrays of permissions - one for allow and one for deny. See [Channel Permissions](#permissions) for a valid list of permissions. Returns nothing in a promise. - -#### Parameters - -| name | type | description | default | -| ----- | ---------------------------------- | -------------------------------------- | -------- | -| part | [Member](#member) or [Role](#role) | The part to apply the permissions to | required | -| allow | array | Array of permissions to allow the part | [] | -| deny | array | Array of permissions to deny the part | [] | - -```php -// Member can send messages and attach files, -// but can't add reactions to message. -$channel->setPermissions($member, [ - 'send_messages', - 'attach_files', -], [ - 'add_reactions', -])->then(function () { - // ... -})->done(); -``` - -### Set permissions of a member or role with an Overwrite - -Sets the permissions of a member or role, but takes an `Overwrite` part instead of two arrays. Returns nothing in a promise. - -#### Parameters - -| name | type | description | default | -| --------- | ---------------------------------- | ------------------------------------ | -------- | -| part | [Member](#member) or [Role](#role) | The part to apply the permissions to | required | -| overwrite | `Overwrite` part | The overwrite to apply | required | - -```php -$allow = new ChannelPermission($discord, [ - 'send_messages' => true, - 'attach_files' => true, -]); - -$deny = new ChannelPermission($discord, [ - 'add_reactions' => true, -]); - -$overwrite = $channel->overwrites->create([ - 'allow' => $allow, - 'deny' => $deny, -]); - -// Member can send messages and attach files, -// but can't add reactions to message. -$channel->setOverwrite($member, $overwrite)->then(function () { - // ... -})->done(); -``` - -### Move member to voice channel - -Moves a member to a voice channel if the member is already in one. Takes a [Member](#member) object or member ID and returns nothing in a promise. - -#### Parameters - -| name | type | description | default | -| ------ | --------------------------- | ------------------ | -------- | -| member | [Member](#member) or string | The member to move | required | - -```php -$channel->moveMember($member)->then(function () { - // ... -})->done(); - -// or - -$channel->moveMember('123213123123213')->then(function () { - // ... -})->done(); -``` - -### Muting and unmuting member in voice channel - -Mutes or unmutes a member in the voice channel. Takes a [Member](#member) object or member ID and returns nothing in a promise. - -#### Parameters - -| name | type | description | default | -| ------ | --------------------------- | ------------------------- | -------- | -| member | [Member](#member) or string | The member to mute/unmute | required | - -```php -// muting a member with a member object -$channel->muteMember($member)->then(function () { - // ... -})->done(); - -// unmuting a member with a member ID -$channel->unmuteMember('123213123123213')->then(function () { - // ... -})->done(); -``` - -### Creating an invite - -Creates an invite for a channel. Takes an array of options and returns the new invite in a promise. - -#### Parameters - -Parameters are in an array. - -| name | type | description | default | -| --------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------- | -| max_age | int | Maximum age of the invite in seconds | 24 hours | -| max_uses | int | Maximum uses of the invite | unlimited | -| temporary | bool | Whether the invite grants temporary membership | false | -| unique | bool | Whether the invite should be unique | false | -| target_type | int | The type of target for this voice channel invite | | -| target_user_id | string | The id of the user whose stream to display for this invite, required if target_type is `Invite::TARGET_TYPE_STREAM`, the user must be streaming in the channel | | -| target_application_id | string | The id of the embedded application to open for this invite, required if target_type is `Invite::TARGET_TYPE_EMBEDDED_APPLICATION`, the application must have the EMBEDDED flag | | - -```php -$channel->createInvite([ - 'max_age' => 60, // 1 minute - 'max_uses' => 5, // 5 uses -])->then(function (Invite $invite) { - // ... -})->done(); -``` - -### Bulk deleting messages - -Deletes many messages at once. Takes an array of messages and/or message IDs and returns nothing in a promise. - -#### Parameters - -| name | type | description | default | -| -------- | -------------------------------------------------- | ---------------------- | ------- | -| messages | array or collection of messages and/or message IDs | The messages to delete | default | -| reason | string | Reason for Audit Log | | - -```php -$channel->deleteMessages([ - $message1, - $message2, - $message3, - 'my_message4_id', - 'my_message5_id', -])->then(function () { - // ... -})->done(); -``` - -### Getting message history - -Retrieves message history with an array of options. Returns a collection of messages in a promise. - -#### Parameters - -| name | type | description | default | -| ------ | --------------------------------- | -------------------------------------------- | ------- | -| before | [Message](#message) or message ID | Get messages before this message | | -| after | [Message](#message) or message ID | Get messages after this message | | -| around | [Message](#message) or message ID | Get messages around this message | | -| limit | int | Number of messages to get, between 1 and 100 | 100 | - -```php -$channel->getMessageHistory([ - 'limit' => 5, -])->then(function (Collection $messages) { - foreach ($messages as $message) { - // ... - } -})->done(); -``` - -### Limit delete messages - -Deletes a number of messages, in order from the last one sent. Takes an integer of messages to delete and returns an empty promise. - -#### Parameters - -| name | type | description | default | -| ------ | ------ | ------------------------------------------------ | -------- | -| value | int | number of messages to delete, in the range 1-100 | required | -| reason | string | Reason for Audit Log | | - - -```php -// deletes the last 15 messages -$channel->limitDelete(15)->then(function () { - // ... -})->done(); -``` - -### Pin or unpin a message - -Pins or unpins a message from the channel pinboard. Takes a message object and returns the same message in a promise. - -#### Parameters - -| name | type | description | default | -| ------- | ------------------- | ------------------------ | -------- | -| message | [Message](#message) | The message to pin/unpin | required | -| reason | string | Reason for Audit Log | | - -```php -// to pin -$channel->pinMessage($message)->then(function (Message $message) { - // ... -})->done(); - -// to unpin -$channel->unpinMessage($message)->then(function (Message $message) { - // ... -})->done(); -``` - -### Get invites - -Gets the channels invites. Returns a collection of invites in a promise. - -```php -$channel->getInvites()->then(function (Collection $invites) { - foreach ($invites as $invite) { - // ... - } -})->done(); -``` - -### Send a message - -Sends a message to the channel. Takes a message builder. Returns the message in a promise. - -#### Parameters - -| name | type | description | default | -| ------- | ------------------------------ | -------------------------- | -------- | -| message | MessageBuilder | Message content | required | - -```php -$message = MessageBuilder::new() - ->setContent('Hello, world!') - ->addEmbed($embed) - ->setTts(true); - -$channel->sendMessage($message)->then(function (Message $message) { - // ... -})->done(); -``` - -### Send an embed - -Sends an embed to the channel. Takes an embed and returns the sent message in a promise. - -#### Parameters - -| name | type | description | default | -| ----- | --------------- | ----------------- | -------- | -| embed | [Embed](#embed) | The embed to send | required | - -```php -$channel->sendEmbed($embed)->then(function (Message $message) { - // ... -})->done(); -``` - -### Broadcast typing - -Broadcasts to the channel that the bot is typing. Genreally, bots should _not_ use this route, but if a bot takes a while to process a request it could be useful. Returns nothing in a promise. - -```php -$channel->broadcastTyping()->then(function () { - // ... -})->done(); -``` - -### Create a message collector - -Creates a message collector, which calls a filter function on each message received and inserts it into a collection if the function returns `true`. The collector is resolved after a specified time or limit, whichever is given or whichever happens first. Takes a callback, an array of options and returns a collection of messages in a promise. - -#### Parameters - -| name | type | description | default | -| ------- | -------- | ------------------------------------- | -------- | -| filter | callable | The callback to call on every message | required | -| options | array | Array of options | [] | - -```php -// Collects 5 messages containing hello -$channel->createMessageCollector(fn ($message) => strpos($message->content, 'hello') !== false, [ - 'limit' => 5, -])->then(function (Collection $messages) { - foreach ($messages as $message) { - // ... - } -})->done(); -``` - -#### Options - -One of `time` or `limit` is required, or the collector will not resolve. - -| name | type | description | -| ----- | ---- | ---------------------------------------------------------------- | -| time | int | The time after which the collector will resolve, in milliseconds | -| limit | int | The number of messages to be collected | - -### Get pinned messages - -Returns the messages pinned in the channel. Only applicable for text channels. Returns a collection of messages in a promise. - -```php -$channel->getPinnedMessages()->then(function (Collection $messages) { - foreach ($messages as $message) { - // $message->... - } -})->done(); -``` diff --git a/vendor/team-reflex/discord-php/docs/src/pages/api/05_parts/03_member.md b/vendor/team-reflex/discord-php/docs/src/pages/api/05_parts/03_member.md deleted file mode 100644 index 60b84ff..0000000 --- a/vendor/team-reflex/discord-php/docs/src/pages/api/05_parts/03_member.md +++ /dev/null @@ -1,199 +0,0 @@ ---- -title: "Member" ---- - -Members represent a user in a guild. There is a member object for every guild-user relationship, meaning that there will be multiple member objects in the Discord client with the same user ID, but they will belong to different guilds. - -A member object can also be serialised into a mention string. For example: - -```php -$discord->on(Event::MESSAGE_CREATE, function (Message $message) { - // Hello <@member_id>! - // Note: `$message->member` will be `null` if the message originated from - // a private message, or if the member object was not cached. - $message->channel->sendMessage('Hello '.$message->member.'!'); -}); -``` - -### Properties - -| name | type | description | -| ---------------------------- | ------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -| user | [User](#user) | the user part of the member | -| nick | string | the nickname of the member | -| avatar | ?string | The guild avatar URL of the member | -| avatar_hash | ?string | The guild avatar hash of the member | -| roles | Collection of [Roles](#role) | roles the member is a part of | -| joined_at | `Carbon` timestamp | when the member joined the guild | -| deaf | bool | whether the member is deafened | -| mute | bool | whether the member is muted | -| pending | ?string | whether the user has not yet passed the guild's Membership Screening requirements | -| communication_disabled_until | `?Carbon` | when the user's timeout will expire and the user will be able to communicate in the guild again, null or a time in the past if the user is not timed out | -| id | string | the user ID of the member | -| username | string | the username of the member | -| discriminator | string | the four digit discriminator of the member | -| displayname | string | nick/username#discriminator | -| guild | [Guild](#guild) | the guild the member is a part of | -| guild_id | string | the id of the guild the member is a part of | -| string | status | the status of the member | -| game | [Activity](#activity) | the current activity of the member | -| premium_since | `Carbon` timestamp | when the member started boosting the guild | -| activities | Collection of [Activities](#activity) | the current activities of the member | - -### Ban the member - -Bans the member from the guild. Returns a [Ban](#ban) part in a promise. - -#### Parameters - -| name | type | description | -| ------------ | ------ | ---------------------------------------------------- | -| daysToDelete | int | number of days back to delete messages, default none | -| reason | string | reason for the ban | - -```php -$member->ban(5, 'bad person')->then(function (Ban $ban) { - // ... -})->done(); -``` - -### Set the nickname of the member - -Sets the nickname of the member. Requires the `MANAGE_NICKNAMES` permission or `CHANGE_NICKNAME` if changing self nickname. Returns nothing in a promise. - -#### Parameters - -| name | type | description | -| ---- | ------ | --------------------------------------------------- | -| nick | string | nickname of the member, null to clear, default null | - -```php -$member->setNickname('newnick')->then(function () { - // ... -})->done(); -``` - -### Move member to channel - -Moves the member to another voice channel. Member must already be in a voice channel. Takes a channel or channel ID and returns nothing in a promise. - -#### Parameters - -| name | type | description | -| ------- | ----------------------------- | --------------------------------- | -| channel | [Channel](#channel) or string | the channel to move the member to | - -```php -$member->moveMember($channel)->then(function () { - // ... -})->done(); - -// or - -$member->moveMember('123451231231')->then(function () { - // ... -})->done(); -``` - -### Add member to role - -Adds the member to a role. Takes a role or role ID and returns nothing in a promise. - -#### Parameters - -| name | type | description | -| ---- | ----------------------- | ----------------------------- | -| role | [Role](#role) or string | the role to add the member to | - -```php -$member->addRole($role)->then(function () { - // ... -})->done(); - -// or - -$member->addRole('1231231231')->then(function () { - // ... -})->done(); -``` - -### Remove member from role - -Removes the member from a role. Takes a role or role ID and returns nothing in a promise. - -#### Parameters - -| name | type | description | -| ---- | ----------------------- | ----------------------------- | -| role | [Role](#role) or string | the role to remove the member from | - -```php -$member->removeRole($role)->then(function () { - // ... -})->done(); - -// or - -$member->removeRole('1231231231')->then(function () { - // ... -})->done(); -``` - -### Timeout member - -Times out the member in the server. Takes a carbon or null to remove. Returns nothing in a promise. - -#### Parameters - -| name | type | description | -| ---------------------------- | ------------------ | -------------------------------- | -| communication_disabled_until | `Carbon` or `null` | the time for timeout to lasts on | - -```php -$member->timeoutMember(new Carbon('6 hours'))->then(function () { - // ... -})->done(); - -// to remove -$member->timeoutMember()->then(function () { - // ... -})->done(); -``` - -### Get permissions of member - -Gets the effective permissions of the member: -- When given a channel, returns the effective permissions of a member in a channel. -- Otherwise, returns the effective permissions of a member in a guild. - -Returns a [role permission](#permissions). - -#### Parameters - -| name | type | description | -| ------- | --------------------------- | ------------------------------------------------ | -| channel | [Channel](#channel) or null | the channel to get the effective permissions for | - -```php -$permissions = $member->getPermissions($channel); - -// or - -$permissions = $member->getPermissions(); -``` - -### Get guild specific avatar URL - -Gets the server-specific avatar URL for the member. Only call this function if you need to change the format or size of the image, otherwise use `$member->avatar`. Returns a string. - -#### Parameters - -| name | type | description | -| ------ | ------ | ------------------------------------------------------------------------------ | -| format | string | format of the image, one of png, jpg or webp, default webp and gif if animated | -| size | int | size of the image, default 1024 | - -```php -$url = $member->getAvatarAttribute('png', 2048); -echo $url; // https://cdn.discordapp.com/guilds/:guild_id/users/:id/avatars/:avatar_hash.png?size=2048 -``` diff --git a/vendor/team-reflex/discord-php/docs/src/pages/api/05_parts/04_message.md b/vendor/team-reflex/discord-php/docs/src/pages/api/05_parts/04_message.md deleted file mode 100644 index b90e3f7..0000000 --- a/vendor/team-reflex/discord-php/docs/src/pages/api/05_parts/04_message.md +++ /dev/null @@ -1,235 +0,0 @@ ---- -title: "Message" ---- - -Messages are present in channels and can be anything from a cross post to a reply and a regular message. - -### Properties - -| name | type | description | -| -------------------------------------- | ---------------------------------------- | -------------------------------------------------------------------------------------------------- | -| id | string | id of the message | -| channel_id | string | id of the channel the message was sent in | -| channel | [Channel](#channel) | channel the message was sent in | -| guild_id | string or null | the unique identifier of the guild that the channel the message was sent in belongs to | -| guild | [Guild](#guild) or null | the guild that the message was sent in | -| content | string | content of the message | -| type | int, [Message](#message) constants | type of the message | -| mentions | Collection of [Users](#user) | users mentioned in the message | -| author | [User](#user) | the author of the message | -| user_id | string | id of the user that sent the message | -| member | [Member](#member) | the member that sent this message, or null if it was in a private message | -| mention_everyone | bool | whether @everyone was mentioned | -| timestamp | `Carbon` timestamp | the time the message was sent | -| edited_timestamp | `Carbon` timestamp or null | the time the message was edited or null if it hasn't been edited | -| tts | bool | whether text to speech was set when the message was sent | -| attachments | Collection of [Attachments](#attachment) | array of attachments | -| embeds | Collection of [Embeds](#embed) | embeds contained in the message | -| nonce | string | randomly generated string for client | -| mention_roles | Collection of [Roles](#role) | any roles that were mentioned in the message | -| mention_channels | Collection of [Channels](#channel) | any channels that were mentioned in the message | -| pinned | bool | whether the message is pinned | -| reactions | reaction repository | any reactions on the message | -| webhook_id | string | id of the webhook that sent the message | -| activity | object | current message activity, requires rich present | -| application | object | application of the message, requires rich presence | -| application_id | string | if the message is a response to an Interaction, this is the id of the interaction's application | -| message_reference | object | message that is referenced by the message | -| referenced_message | [Message](#message) | the message that is referenced in a reply | -| interaction | object | the interaction which triggered the message (application commands) | -| thread | [Thread](#thread) | the thread that the message was sent in | -| components | [Component](#component) | sent if the message contains components like buttons, action rows, or other interactive components | -| sticker_items | [Sticker](#sticker) | stickers attached to the message | -| flags | int | message flags, see below 5 properties | -| crossposted | bool | whether the message has been crossposted | -| is_crosspost | bool | whether the message is a crosspost | -| suppress_emeds | bool | whether embeds have been supressed | -| source_message_deleted | bool | whether the source message has been deleted e.g. crosspost | -| urgent | bool | whether message is urgent | -| has_thread | bool | whether this message has an associated thread, with the same id as the message | -| ephemeral | bool | whether this message is only visible to the user who invoked the Interaction | -| loading | bool | whether this message is an Interaction Response and the bot is "thinking" | -| failed_to_mention_some_roles_in_thread | bool | this message failed to mention some roles and add their members to the thread | - -### Reply to a message - -Sends a "reply" to the message. Returns the new message in a promise. - -#### Parameters - -| name | type | description | -| ---- | ------ | --------------------------- | -| text | string | text to send in the message | - -```php -$message->reply('hello!')->then(function (Message $message) { - // ... -})->done(); -``` - -### Crosspost a message - -Crossposts a message to any channels that are following the channel the message was sent in. Returns the crossposted message in a promise. - -```php -$message->crosspost()->then(function (Message $message) { - // ... -})->done(); -``` - -### Reply to a message after a delay - -Similar to replying to a message, also takes a `delay` parameter in which the reply will be sent after. Returns the new message in a promise. - -#### Parameters - -| name | type | description | -| ----- | ------ | -------------------------------------------------------- | -| text | string | text to send in the message | -| delay | int | time in milliseconds to delay before sending the message | - -```php -// <@message_author_id>, hello! after 1.5 seconds -$message->delayedReply('hello!', 1500)->then(function (Message $message) { - // ... -})->done(); -``` - -### React to a message - -Adds a reaction to a message. Takes an [Emoji](#emoji) object, a custom emoji string or a unicode emoji. Returns nothing in a promise. - -#### Parameters - -| name | type | description | -| -------- | ------------------------- | ----------------------- | -| emoticon | [Emoji](#emoji) or string | the emoji to react with | - -```php -$message->react($emoji)->then(function () { - // ... -})->done(); - -// or - -$message->react(':michael:251127796439449631')->then(function () { - // ... -})->done(); - -// or - -$message->react('😀')->then(function () { - // ... -})->done(); -``` - -### Delete reaction(s) from a message - -Deletes reaction(s) from a message. Has four methods of operation, described below. Returns nothing in a promise. - -#### Parameters - -| name | type | description | -| -------- | ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ | -| type | int | type of deletion, one of `Message::REACT_DELETE_ALL, Message::REACT_DELETE_ME, Message:REACT_DELETE_ID, Message::REACT_DELETE_EMOJI` | -| emoticon | [Emoji](#emoji), string, null | emoji to delete, require if using `DELETE_ID`, `DELETE_ME` or `DELETE_EMOJI` | -| id | string, null | id of the user to delete reactions for, required by `DELETE_ID` | - -#### Delete all reactions - -```php -$message->deleteReaction(Message::REACT_DELETE_ALL)->then(function () { - // ... -})->done(); -``` - -#### Delete reaction by current user - -```php -$message->deleteReaction(Message::REACT_DELETE_ME, $emoji)->then(function () { - // ... -})->done(); -``` - -#### Delete reaction by another user - -```php -$message->deleteReaction(Message::REACT_DELETE_ID, $emoji, 'member_id')->then(function () { - // ... -})->done(); -``` - -#### Delete all reactions of one emoji - -```php -$message->deleteReaction(Message::REACT_DELETE_EMOJI, $emoji)->then(function () { - // ... -})->done(); -``` - -### Delete the message - -Deletes the message. Returns nothing in a promise. - -```php -$message->delete()->then(function () { - // ... -})->done(); -``` - -### Edit the message - -Updates the message. Takes a message builder. Returns the updated message in a promise. - -```php -$message->edit(MessageBuilder::new() - ->setContent('new content'))->then(function (Message $message) { - // ... - })->done(); -``` - -Note fields not set in the builder will not be updated, and will retain their previous value. - -### Create reaction collector - -Creates a reaction collector. Works similar to [Channel](#channel)'s reaction collector. Takes a callback and an array of options. Returns a collection of reactions in a promise. - -#### Options - -At least one of `time` or `limit` must be specified. - -| name | type | description | -| ----- | ------------ | ---------------------------------------------------------------- | -| time | int or false | time in milliseconds until the collector finishes | -| limit | int or false | amount of reactions to be collected until the collector finishes | - -```php -$message->createReactionCollector(function (MessageReaction $reaction) { - // return true or false depending on whether you want the reaction to be collected. - return $reaction->user_id == '123123123123'; -}, [ - // will resolve after 1.5 seconds or 2 reactions - 'time' => 1500, - 'limit' => 2, -])->then(function (Collection $reactions) { - foreach ($reactions as $reaction) { - // ... - } -})->done(); -``` - -### Add embed to message - -Adds an embed to a message. Takes an embed object. Will overwrite the old embed (if there is one). Returns the updated message in a promise. - -#### Parameters - -| name | type | description | -| ----- | --------------- | ---------------- | -| embed | [Embed](#embed) | the embed to add | - -```php -$message->addEmbed($embed)->then(function (Message $message) { - // ... -})->done(); -``` diff --git a/vendor/team-reflex/discord-php/docs/src/pages/api/05_parts/05_user.md b/vendor/team-reflex/discord-php/docs/src/pages/api/05_parts/05_user.md deleted file mode 100644 index e01ef7b..0000000 --- a/vendor/team-reflex/discord-php/docs/src/pages/api/05_parts/05_user.md +++ /dev/null @@ -1,89 +0,0 @@ ---- -title: "User" ---- - -User represents a user of Discord. The bot can "see" any users that to a guild that they also belong to. - -### Properties - -| name | type | description | -| ------------- | ------- | ---------------------------------------------------------------------- | -| id | string | id of the user | -| username | string | username of the user | -| discriminator | string | four-digit discriminator of the user | -| displayname | string | username#discriminator | -| avatar | string | avatar URL of the user | -| avatar_hash | string | avatar hash of the user | -| bot | bool | whether the user is a bot | -| system | bool | whetehr the user is a system user e.g. Clyde | -| mfa_enabled | bool | whether the user has multifactor authentication enabled | -| banner | ?string | the banner URL of the user. | -| banner_hash | ?string | the banner URL of the user. | -| accent_color | ?int | the user's banner color encoded as an integer representation | -| locale | ?string | locale of the user | -| verified | bool | whether the user is verified | -| email | ?string | email of the user | -| flags | ?int | user flags, see the `User` classes constants. use bit masks to compare | -| premium_type | ?int | type of nitro, see the `User` classes constants | -| public_flags | ?int | see flags above | - -### Get private channel for user - -Gets the private direct message channel for the user. Returns a [Channel](#channel) in a promise. - -```php -$user->getPrivateChannel()->then(function (Channel $channel) { - // ... -})->done(); -``` - -### Send user a message - -Sends a private direct message to the user. Note that your bot account can be suspended for doing this, consult Discord documentation for more information. Returns the message in a promise. - -#### Parameters - -| name | type | description | -| ------- | ------ | --------------------------------------------- | -| message | string | content to send | -| tts | bool | whether to send the message as text to speech | -| embed | Embed | embed to send in the message | - -```php -$user->sendMessage('Hello, world!', false, $embed)->then(function (Message $message) { - // ... -})->done(); -``` - -### Get avatar URL - -Gets the avatar URL for the user. Only call this function if you need to change the format or size of the image, otherwise use `$user->avatar`. Returns a string. - -#### Parameters - -| name | type | description | -| ------ | ------ | ----------------------------------------------------------------------------- | -| format | string | format of the image, one of png, jpg or webp, default webp or gif if animated | -| size | int | size of the image, default 1024 | - -```php -$url = $user->getAvatarAttribute('png', 2048); -echo $url; // https://cdn.discordapp.com/avatars/:user_id/:avatar_hash.png?size=2048 -``` - -### Get banner URL - -Gets the banner URL for the user. Only call this function if you need to change the format or size of the image, otherwise use `$user->banner`. -Returns a string or `null` if user has no banner image set. - -#### Parameters - -| name | type | description | -| ------ | ------ | ---------------------------------------------------------------------------- | -| format | string | format of the image, one of png, jpg or webp, default png or gif if animated | -| size | int | size of the image, default 600 | - -```php -$url = $user->getBannerAttribute('png', 1024); -echo $url; // https://cdn.discordapp.com/banners/:user_id/:banner_hash.png?size=1024 -``` diff --git a/vendor/team-reflex/discord-php/docs/src/pages/api/06_collection.md b/vendor/team-reflex/discord-php/docs/src/pages/api/06_collection.md deleted file mode 100644 index 80839e7..0000000 --- a/vendor/team-reflex/discord-php/docs/src/pages/api/06_collection.md +++ /dev/null @@ -1,233 +0,0 @@ ---- -title: "Collection" ---- - -Collections are exactly what they sound like - collections of items. In DiscordPHP collections are based around the idea of parts, but they can be used for any type of item. - -
    -Collections implement interfaces allowing them to be accessed like arrays, such as: - -```php -// square bracket index access -$collec[123] = 'asdf'; -echo $collec[123]; // asdf - -// foreach loops -foreach ($collec as $item) { - // ... -} - -// json serialization -json_encode($collec); - -// array serialization -$collecArray = (array) $collec; - -// string serialization -$jsonCollec = (string) $collec; // same as json_encode($collec) -``` -
    - -#### Creating a collection - -| name | type | description | -| ------- | -------------- | ------------------------------------------------------------------ | -| items | array | Array of items for the collection. Default is empty collection | -| discrim | string or null | The discriminator used to discriminate between parts. Default 'id' | -| class | string or null | The type of class contained in the collection. Default null | - -```php -// Creates an empty collection with discriminator of 'id' and no class type. -// Any item can be inserted into this collection. -$collec = new Collection(); - -// Creates an empty collection with no discriminator and no class type. -// Similar to a laravel collection. -$collec = new Collection([], null, null); -``` - -#### Getting an item - -Gets an item from the collection, with a key and value. - -| name | type | description | -| ----- | ---- | ----------------------------------- | -| key | any | The key to search with | -| value | any | The value that the key should match | - -```php -// Collection with 3 items, discriminator is 'id', no class type -$collec = new Collection([ - [ - 'id' => 1, - 'text' => 'My ID is 1.' - ], - [ - 'id' => 2, - 'text' => 'My ID is 2.' - ], - [ - 'id' => 3, - 'text' => 'My ID is 3.' - ] -]); - -// [ -// 'id' => 1, -// 'text' => 'My ID is 1.' -// ] -$item = $collec->get('id', 1); - -// [ -// 'id' => 1, -// 'text' => 'My ID is 1.' -// ] -$item = $collec->get('text', 'My ID is 1.'); -``` - -#### Adding an item - -Adds an item to the collection. Note that if `class` is set in the constructor and the class of the item inserted is not the same, it will not insert. - -| name | type | description | -| ----- | ---- | ------------------ | -| $item | any | The item to insert | - -```php -// empty, no discrim, no class -$collec = new Collection([], null, null); - -$collec->push(1); -$collec->push('asdf'); -$collec->push(true); - -// --- - -class X -{ - public $y; - - public function __construct($y) - { - $this->y = $y; - } -} - -// empty, discrim 'y', class X -$collec = new Collection([], 'y', X::class); -$collec->push(new X(123)); -$collec->push(123); // won't insert - -// new X(123) -$collec->get('y', 123); -``` - -#### Pulling an item - -Removes an item from the collection and returns it. - -| name | type | description | -| ------- | ---- | ----------------------------------------- | -| key | any | The key to look for | -| default | any | Default if key is not found. Default null | - -```php -$collec = new Collection([], null, null); -$collec->push(1); -$collec->push(2); -$collec->push(3); - -$collec->pull(1); // returns at 1 index - which is actually 2 -$collec->pull(100); // returns null -$collec->pull(100, 123); // returns 123 -``` - -#### Filling the collection - -Fills the collection with an array of items. - -```php -$collec = new Collection([], null, null); -$collec->fill([ - 1, 2, 3, 4, -]); -``` - -#### Number of items - -Returns the number of items in the collection. - -```php -$collec = new Collection([ - 1, 2, 3 -], null, null); - -echo $collec->count(); // 3 -``` - -#### Getting the first item - -Gets the first item of the collection. - -```php -$collec = new Collection([ - 1, 2, 3 -], null, null); - -echo $collec->first(); // 1 -``` - -#### Filtering a collection - -Filters the collection with a given callback function. The callback function is called for every item and is called with the item. If the callback returns true, the item is added to the new collection. Returns a new collection. - -| name | type | description | -| -------- | -------- | --------------------------------- | -| callback | callable | The callback called on every item | - - -```php -$collec = new Collection([ - 1, 2, 3, 100, 101, 102 -], null, null); - -// [ 101, 102 ] -$newCollec = $collec->filter(function ($item) { - return $item > 100; -}); -``` - -#### Clearing a collection - -Clears the collection. - -```php -$collec->clear(); // $collec = [] -``` - -#### Mapping a collection - -A given callback function is called on each item in the collection, and the result is inserted into a new collection. - -| name | type | description | -| -------- | -------- | --------------------------------- | -| callback | callable | The callback called on every item | - -```php -$collec = new Collection([ - 1, 2, 3, 100, 101, 102 -], null, null); - -// [ 100, 200, 300, 10000, 10100, 10200 ] -$newCollec = $collec->map(function ($item) { - return $item * 100; -}); -``` - -#### Converting to array - -Converts a collection to an array. - -```php -$arr = $collec->toArray(); -``` diff --git a/vendor/team-reflex/discord-php/docs/src/pages/api/07_permissions.md b/vendor/team-reflex/discord-php/docs/src/pages/api/07_permissions.md deleted file mode 100644 index b2cd5d6..0000000 --- a/vendor/team-reflex/discord-php/docs/src/pages/api/07_permissions.md +++ /dev/null @@ -1,111 +0,0 @@ ---- -title: "Permissions" ---- - -There are two types of permissions - channel permissions and role permissions. They are represented by their individual classes, but both extend the same abstract permission class. - -### Properties - -| name | type | description | -| ----------------------- | ---- | ---------------------- | -| bitwise | int | bitwise representation | -| create\_instant\_invite | bool | | -| manage\_channels | bool | | -| view\_channel | bool | | -| manage\_roles | bool | | - -The rest of the properties are listed under each permission type, all are type of `bool`. - -### Methods - -#### Get all valid permissions - -Returns a list of valid permissions, in key value form. Static method. - -```php -var_dump(ChannelPermission::getPermissions()); -// [ -// 'priority_speaker' => 8, -// // ... -// ] -``` - -### Channel Permission - -Represents permissions for text, voice, and stage instance channels. - -#### Text Channel Permissions - -- `create_instant_invite` -- `manage_channels` -- `view_channel` -- `manage_roles` -- `add_reactions` -- `send_messages` -- `send_tts_messages` -- `manage_messages` -- `embed_links` -- `attach_files` -- `read_message_history` -- `mention_everyone` -- `use_external_emojis` -- `manage_webhooks` -- `use_application_commands` -- `manage_threads` -- `create_public_threads` -- `create_private_threads` -- `use_external_stickers` -- `send_messages_in_threads` - -#### Voice Channel Permissions - -- `create_instant_invite` -- `manage_channels` -- `view_channel` -- `manage_roles` -- `priority_speaker` -- `stream` -- `connect` -- `speak` -- `mute_members` -- `deafen_members` -- `move_members` -- `use_vad` -- `manage_events` -- `create_events` -- `use_embedded_activities` was `start_embedded_activities` - -#### Stage Instance Channel Permissions - -- `create_instant_invite` -- `manage_channels` -- `view_channel` -- `manage_roles` -- `connect` -- `mute_members` -- `deafen_members` -- `move_members` -- `request_to_speak` -- `manage_events` -- `create_events` - -### Role Permissions - -Represents permissions for roles. - -#### Permissions - -- `create_instant_invite` -- `manage_channels` -- `view_channel` -- `manage_roles` -- `kick_members` -- `ban_members` -- `administrator` -- `manage_guild` -- `view_audit_log` -- `view_guild_insights` -- `change_nickname` -- `manage_nicknames` -- `manage_emojis_and_stickers` -- `moderate_members` diff --git a/vendor/team-reflex/discord-php/docs/src/pages/api/08_message_builder.md b/vendor/team-reflex/discord-php/docs/src/pages/api/08_message_builder.md deleted file mode 100644 index 7d4a34e..0000000 --- a/vendor/team-reflex/discord-php/docs/src/pages/api/08_message_builder.md +++ /dev/null @@ -1,118 +0,0 @@ ---- -title: "Message Builder" ---- - -The `MessageBuilder` class is used to describe the contents of a new (or to be updated) message. - -A new message builder can be created with the `new` function: - -```php -$builder = MessageBuilder::new(); -``` - -Most builder functions return itself, so you can easily chain function calls together for a clean API, -an example is shown on the right. - -```php -$channel->sendMessage(MessageBuilder::new() - ->setContent('Hello, world!') - ->addEmbed($embed) - ->addFile('/path/to/file')); -``` - -#### Setting content - -Sets the text content of the message. Throws an `LengthException` if the content is greater than 2000 characters. - -```php -$builder->setContent('Hello, world!'); -``` - -#### Setting TTS value - -Sets the TTS value of the message. - -```php -$builder->setTts(true); -``` - -#### Adding embeds - -You can add up to 10 embeds to a message. The embed functions takes `Embed` objects or associative arrays: - -```php -$builder->addEmbed($embed); -``` - -You can also set the embeds from another array of embeds. Note this will remove the current embeds from the message. - -```php -$embeds = [...]; -$builder->setEmbeds($embeds); -``` - -#### Replying to a message - -Sets the message as replying to another message. Takes a `Message` object. - -```php -$discord->on(Event::MESSAGE_CREATE, function (Message $message) use ($builder) { - $builder->setReplyTo($message); -}); -``` - -#### Adding files to the message - -You can add multiple files to a message. The `addFile` function takes a path to a file, as well as an optional filename. - -If the filename parameter is ommited, it will take the filename from the path. Throws an exception if the path -does not exist. - -```php -$builder->addFile('/path/to/file', 'file.png'); -``` - -You can also add files to messages with the content as a string: - -```php -$builder->addFileFromContent('file.txt', 'contents of my file!'); -``` - -You can also remove all files from a builder: - -```php -$builder->clearFiles(); -``` - -There is no limit on the number of files you can upload, but the whole request must be less than 8MB (including headers and JSON payload). - -#### Adding sticker - -You can add up to 3 stickers to a message. The function takes `Sticker` object. - -```php -$builder->addSticker($sticker); -``` - -To remove a sticker: -```php -$builder->removeSticker($sticker); -``` - -You can also set the stickers from another array of stickers. Note this will remove the current stickers from the message. - -```php -$stickers = [...]; -$builder->setStickers($stickers); -``` - -#### Adding message components - -Adds a message component to the message. You can only add `ActionRow` and `SelectMenu` objects. To add buttons, wrap the button in an `ActionRow` object. -Throws an `InvalidArgumentException` if the given component is not an `ActionRow` or `SelectMenu` -Throws an `OverflowException` if you already have 5 components in the message. - -```php -$component = SelectMenu::new(); -$builder->addComponent($component); -``` \ No newline at end of file diff --git a/vendor/team-reflex/discord-php/docs/src/pages/api/09_components.md b/vendor/team-reflex/discord-php/docs/src/pages/api/09_components.md deleted file mode 100644 index 0453c6d..0000000 --- a/vendor/team-reflex/discord-php/docs/src/pages/api/09_components.md +++ /dev/null @@ -1,167 +0,0 @@ ---- -title: "Message Components" ---- - -Message components are new components you can add to messages, such as buttons and select menus. -There are currently four different types of message components: - -## `ActionRow` - -Represents a row of buttons on a message. -You can add up to 5 buttons to the row, which can then be added to the message. -You can only add buttons to action rows. - -```php -$row = ActionRow::new() - ->addComponent(Button::new(Button::STYLE_SUCCESS)); -``` - -### Functions - -| name | description | -| ------------------------------ | ----------------------------------------------------------- | -| `addComponent($component)` | adds a component to action row. must be a button component. | -| `removeComponent($component)` | removes the given component from the action row. | -| `getComponents(): Component[]` | returns all the action row components in an array. | - -## `Button` - -Represents a button attached to a message. -You cannot directly attach a button to a message, it must be contained inside an `ActionRow`. - -```php -$button = Button::new(Button::STYLE_SUCCESS) - ->setLabel('push me!'); -``` - -There are 5 different button styles: - -| name | constant | colour | -| --------- | ------------------------- | ------- | -| primary | `Button::STYLE_PRIMARY` | blurple | -| secondary | `Button::STYLE_SECONDARY` | grey | -| success | `Button::STYLE_SUCCESS` | green | -| danger | `Button::STYLE_DANGER` | red | -| link | `Button::STYLE_LINK` | grey | - -![Discord button styles](https://discord.com/assets/7bb017ce52cfd6575e21c058feb3883b.png) - -### Functions - -| name | description | -| ---------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | -| `setStyle($style)` | sets the style of the button. must be one of the above constants. | -| `setLabel($label)` | sets the label of the button. maximum 80 characters. | -| `setEmoji($emoji)` | sets the emoji for the button. must be an `Emoji` object. | -| `setCustomId($custom_id)` | sets the custom ID of the button. maximum 100 characters. will be automatically generated if left null. not applicable for link buttons. | -| `setUrl($url)` | sets the url of the button. only for buttons with the `Button::STYLE_LINK` style. | -| `setDisabled($disabled)` | sets whether the button is disabled or not. | -| `setListener($listener, $discord)` | sets the listener for the button. see below for more information. not applicable for link buttons. | -| `removeListener()` | removes the listener from the button. | - - -### Adding a button listener - -If you add a button you probably want to listen for when it is clicked. -This is done through the `setListener(callable $listener, Discord $discord)` function. - -The `callable $listener` will be a function which is called with the `Interaction` object that triggered the button press. -You must also pass the function the `$discord` client. - -```php -$button->setListener(function (Interaction $interaction) { - $interaction->respondWithMessage(MessageBuilder::new() - ->setContent('why\'d u push me?')); -}, $discord); -``` - -If the interaction is not responded to after the function is called, the interaction will be automatically acknowledged with -no response. If you are going to acknowledge the interaction after a delay (e.g. HTTP request, arbitrary timeout) you should -return a promise from the listener to prevent the automatic acknowledgement: - -```php -$button->setListener(function (Interaction $interaction) use ($discord) { - return someFunctionWhichWillReturnAPromise()->then(function ($returnValueFromFunction) use ($interaction) { - $interaction->respondWithMessage(MessageBuilder::new() - ->setContent($returnValueFromFunction)); - }); -}, $discord); -``` - -## `SelectMenu` - -Select menus are a dropdown which can be attached to a message. They operate similar to buttons. They do not need to be attached -to an `ActionRow`. You may have up to 25 `Option`s attached to a select menu. - -```php -$select = SelectMenu::new() - ->addOption(Option::new('me?')) - ->addOption(Option::new('or me?')); -``` - -### Functions - -| name | description | -| ---------------------------------- | ------------------------------------------------------------------------------------------------------ | -| `addOption($option)` | adds an option to the select menu. maximum 25 options per menu. options must have unique values. | -| `removeOption($option)` | removes an option from the select menu. | -| `setPlaceholder($placeholder)` | sets a placeholder string to be displayed when nothing is selected. null to clear. max 150 characters. | -| `setMinValues($min_values)` | the number of values which must be selected to submit the menu. between 0 and 25, default 1. | -| `setMaxValues($max_values)` | the maximum number of values which can be selected. maximum 25, default 1. | -| `setDisabled($disabled)` | sets whether the menu is disabled or not. | -| `setListener($listener, $discord)` | sets the listener for the select menu. see below for more information. | -| `removeListener()` | removes the listener from the select menu. | - -### `Option` functions - -| name | description | -| ------------------------------ | ------------------------------------------------------------------------------------------------------------------------- | -| `new($label, ?$value)` | creates a new option. requires a label to display, and optionally an internal value (leave as null to auto-generate one). | -| `setDescription($description)` | sets the description of the option. null to clear. maximum 100 characters. | -| `setEmoji($emoji)` | sets the emoji of the option. null to clear. must be an emoji object. | -| `setDefault($default)` | sets whether the option is the default option. | -| `getValue()` | gets the internal developer value of the option. | - -### Adding a select menu listener - -Select menu listeners operate similar to the button listeners, so please read the above section first. The callback function will -be called with the `Interaction` object as well as a collection of selected `Option`s. - -```php -$select->setListener(function (Interaction $interaction, Collection $options) { - foreach ($options as $option) { - echo $option->getValue().PHP_EOL; - } - - $interaction->respondWithMessage(MessageBuilder::new()->setContent('thanks!')); -}, $discord); -``` - -## `TextInput` - -Text inputs are an interactive component that render on modals. - -```php -$textInput = TextInput::new('Label', TextInput::TYPE_SHORT, 'custom id') - ->setRequired(true); -``` - -They can be used to collect short-form or long-form text: - -| style | constant | -| ---------------------- | ---------------------------- | -| Short (single line) | `TextInput::STYLE_SHORT` | -| Paragraph (multi line) | `TextInput::STYLE_PARAGRAPH` | - -### Functions - -| name | description | -| ------------------------------ | ----------------------------------------------------------------------------------------------------------- | -| `setCustomId($custom_id)` | sets the custom ID of the text input. maximum 100 characters. will be automatically generated if left null. | -| `setStyle($style)` | sets the style of the text input. must be one of the above constants. | -| `setLabel($label)` | sets the label of the button. maximum 80 characters. | -| `setMinLength($min_length)` | the minimum length of value. between 0 and 4000, default 0. | -| `setMaxLength($max_length)` | the maximum length of value. between 1 and 4000, default 4000. | -| `setValue($value)` | sets a pre-filled value for the text input. maximum 4000 characters. | -| `setPlaceholder($placeholder)` | sets a placeholder string to be displayed when text input is empty. max 100 characters. | -| `setRequired($required)` | sets whether the text input is required or not. | diff --git a/vendor/team-reflex/discord-php/docs/src/pages/api/10_interactions.md b/vendor/team-reflex/discord-php/docs/src/pages/api/10_interactions.md deleted file mode 100644 index 0ce031e..0000000 --- a/vendor/team-reflex/discord-php/docs/src/pages/api/10_interactions.md +++ /dev/null @@ -1,54 +0,0 @@ ---- -title: "Interactions" ---- - -Interactions are utilized in message components and slash commands. - -### Attributes - -| name | type | description | -| -------------- | ------------------ | ---------------------------------------------------- | -| id | string | id of the interaction. | -| application_id | string | id of the application associated to the interaction. | -| int | type | type of interaction. | -| data | `?InteractionData` | data associated with the interaction. | -| guild | `?Guild` | guild interaction was triggered from, null if DM. | -| channel | `?Channel` | channel interaction was triggered from. | -| member | `?Member` | member that triggered interaction. | -| user | `User` | user that triggered interaction. | -| token | string | internal token for responding to interaction. | -| version | int | version of interaction. | -| message | `?Message` | message that triggered interaction. | -| locale | ?string | The selected language of the invoking user. | -| guild_locale | ?string | The guild's preferred locale, if invoked in a guild. | - -The locale list can be seen on [Discord API reference](https://discord.com/developers/docs/reference#locales). - -### Functions on interaction create - -The following functions are used to respond an interaction after being created `Event::INTERACTION_CREATE`, -responding interaction with wrong type throws a `LogicException` - -| name | description | valid for interaction type | -| ------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------- | ---------------------------------------------------------- | -| `acknowledgeWithResponse(?bool $ephemeral)` | acknowledges the interaction, creating a placeholder response to be updated | `APPLICATION_COMMAND`, `MESSAGE_COMPONENT`, `MODAL_SUBMIT` | -| `acknowledge()` | defer the interaction | `MESSAGE_COMPONENT`, `MODAL_SUBMIT` | -| `respondWithMessage(MessageBuilder $builder, ?bool $ephemeral)` | responds to the interaction with a message. ephemeral is default false | `APPLICATION_COMMAND`, `MESSAGE_COMPONENT`, `MODAL_SUBMIT` | -| `autoCompleteResult(array $choices)` | responds a suggestion to options with auto complete | `APPLICATION_COMMAND_AUTOCOMPLETE` | -| `showModal(string $title, string $custom_id, array $components, ?callable $submit = null)` | responds to the interaction with a popup modal | other than `PING` and `MODAL_SUBMIT` | - -### Functions after interaction response - -The following functions can be only used after interaction respond above, -otherwise throws a `RuntimeException` "Interaction has not been responded to." - -| name | description | return | -| -------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ------------------ | -| `updateMessage(MessageBuilder $message)` | updates the message the interaction was triggered from. only for message component interaction | `Promise` | -| `getOriginalResponse()` | gets the original interaction response | `Promise` | -| `updateOriginalResponse(MessageBuilder $message)` | updates the original interaction response | `Promise` | -| `deleteOriginalResponse()` | deletes the original interaction response | `Promise` | -| `sendFollowUpMessage(MessageBuilder $builder, ?bool $ephemeral)` | sends a follow up message to the interaction. ephemeral is defalt false | `Promise` | -| `getFollowUpMessage(string $message_id)` | gets a non ephemeral follow up message from the interaction | `Promise` | -| `updateFollowUpMessage(string $message_id, MessageBuilder $builder)` | updates the follow up message of the interaction | `Promise` | -| `deleteFollowUpMessage(string $message_id)` | deletes a follow up message from the interaction | `Promise` | diff --git a/vendor/team-reflex/discord-php/docs/src/utils/index.js b/vendor/team-reflex/discord-php/docs/src/utils/index.js deleted file mode 100644 index eae38c1..0000000 --- a/vendor/team-reflex/discord-php/docs/src/utils/index.js +++ /dev/null @@ -1,5 +0,0 @@ -import kebabCase from "lodash/kebabCase"; - -export function createGroupIdName({ fieldValue }) { - return kebabCase(fieldValue.slice("docs/".length)); -} diff --git a/vendor/team-reflex/discord-php/docs/src/utils/typography.js b/vendor/team-reflex/discord-php/docs/src/utils/typography.js deleted file mode 100644 index 68666ca..0000000 --- a/vendor/team-reflex/discord-php/docs/src/utils/typography.js +++ /dev/null @@ -1,6 +0,0 @@ -import Typography from "typography"; -import githubTheme from "typography-theme-github"; - -const typography = new Typography(githubTheme); - -export default typography; diff --git a/vendor/team-reflex/discord-php/docs/static/favicon.ico b/vendor/team-reflex/discord-php/docs/static/favicon.ico deleted file mode 100644 index 13a681ccab4cb4274e847b2a906a724a1ac3bbb6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1150 zcmaJ=Sx{3~7(OXh)Xu0xja{hV0)j(*uzjHFw6&eS&_QcOa2e_NQf!BTDiRn3iHJ~# zHW1dBgb*QwMIfl8f)3P40MU>{qJb0)geIwmMeQ=S9V>sod;6dr+ul3h`R_gd`TqSd zCcwLNDZ?7d4$Wgs#2AYJu!Wt!_aPXA?*E?fut-iFkeQjaFDE-!T`DUZlgY|PC6c__ zoSfVPOBM^~ZHSEePZO^PhcY5!#l^A`g+lp6E?3M!&Q+__Ps&Qm&wwacAHLyV`C(z} znP|n!g1BAruZYE&W%XJeb#`{qrAwWp)z(w`(Tro$)6*>YwUFod^XCV$#)c-AoSgC@ zq@$z5@UY{eVXmd6m71H+0WE(P7M_k%Dpk*MLqpcGx>_yE$vz%|vsR7ftQGkh>+5xd zxJjj~CT$)3r)LyIMno;l5NG|v2FK@e1}CAiQhvo?_|{@FntpaT95gm|ha8S!$T2dR zdLJ2$rVDv_`I}~DX4%38FY$K34_+=@DNIZ}7~R;|Wbyl_$YQaQ*XyOp$w``+m>|F3 zPd2L!a*Eno_4cICKHsuTC|V9~2=JCLXhn3fv_u0R;Q2^hT|+9wZnN3Q3f@^wEh)|@ z$>;l#`g;2ay=Yh#B#H+2P2dFt5`ehX{eAu9bbe1gJ>QXD-wxky9v9AEI?D6W z6CF4&f-3;{{99Ywq=SPN8W|Zu+&_@Z<)YcySsq;eZucZ~PBNPZIonlS%{cDr&~*$m z#w59UTg+zj%<%9Cc|2aeW?Z}+IG)GjAt&UG8|DWmPo8>TsZgmvTeoii z%K5)(yGi~1*B-lE(AFna!-U~#tfKQ z+0iudJD9aneOr4Q?$3MiyZ4Bo+o@L9e6oMvft5u?-)u(Rn$>EJJS{E#U7fDsH2Qia zHRbTen3&jC^YaU;ONwRUPZJLYeO)Bwb9;8lK6ae#N!Ys>bCOzc>Z`gP+jp+|GWEzC g50^0ZJK)B(;&2t;R|B7A;y>UiB!Z{9KsRH50qNx+c>n+a diff --git a/vendor/team-reflex/discord-php/docs/static/reference/index.html b/vendor/team-reflex/discord-php/docs/static/reference/index.html deleted file mode 100644 index bea469f..0000000 --- a/vendor/team-reflex/discord-php/docs/static/reference/index.html +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/vendor/team-reflex/discord-php/examples/browser.php b/vendor/team-reflex/discord-php/examples/browser.php deleted file mode 100644 index 34d43bd..0000000 --- a/vendor/team-reflex/discord-php/examples/browser.php +++ /dev/null @@ -1,66 +0,0 @@ - '', // Put your Bot token here from https://discord.com/developers/applications/ -]); - -// Create a $browser with same loop as $discord -$browser = new Browser(null, $discord->getLoop()); - -$discord->registerCommand('discordstatus', function (Message $message, $params) use ($browser) { - coroutine(function (Message $message, $params) use ($browser) { - // Ignore messages from any Bots - if ($message->author->bot) return; - - try { - // Make GET request to API of discordstatus.com - $response = yield $browser->get('https://discordstatus.com/api/v2/status.json'); - - assert($response instanceof ResponseInterface); // Check if request succeed - - // Get response body - $result = (string) $response->getBody(); - - // Uncomment to debug result - //var_dump($result); - - // Parse JSON - $discordstatus = json_decode($result); - - // Send reply about the discord status - $message->reply('Discord status: ' . $discordstatus->status->description); - } catch (Exception $e) { // Request failed - // Uncomment to debug exceptions - //var_dump($e); - - // Send reply about the discord status - $message->reply('Unable to acesss the Discord status API :('); - } - }, $message, $params); -}); - -// Start the Bot (must be at the bottom) -$discord->run(); diff --git a/vendor/team-reflex/discord-php/examples/ping.php b/vendor/team-reflex/discord-php/examples/ping.php deleted file mode 100644 index 53f438e..0000000 --- a/vendor/team-reflex/discord-php/examples/ping.php +++ /dev/null @@ -1,51 +0,0 @@ - '', // Put your Bot token here from https://discord.com/developers/applications/ - 'intents' => Intents::getDefaultIntents() | Intents::MESSAGE_CONTENT // Required to get message content, enable it on https://discord.com/developers/applications/ -]); - -// When the Bot is ready -$discord->on('init', function (Discord $discord) { - - // Listen for messages - $discord->on('message', function (Message $message, Discord $discord) { - - // If message is from a bot - if ($message->author->bot) { - // Do nothing - return; - } - - // If message is "ping" - if ($message->content == 'ping') { - // Reply with "pong" - $message->reply('pong'); - } - - }); - -}); - -// Start the Bot (must be at the bottom) -$discord->run(); diff --git a/vendor/team-reflex/discord-php/guide/basics.rst b/vendor/team-reflex/discord-php/guide/basics.rst deleted file mode 100644 index 53b581b..0000000 --- a/vendor/team-reflex/discord-php/guide/basics.rst +++ /dev/null @@ -1,105 +0,0 @@ -====== -Basics -====== - -First step is to include the Composer autoload file and `import `_ any required classes. - -.. code:: php - - 'Your-Token-Here', - 'intents' => [ - Intents::GUILDS, Intents::GUILD_BANS, // ... - ], - // or - 'intents' => 12345, - // or - 'intents' => Intents::getDefaultIntents() | Intents::GUILD_MEMBERS, // default intents as well as guild members - 'loadAllMembers' => false, - 'storeMessages' => false, - 'retrieveBans' => false, - 'pmChannels' => false, - 'disabledEvents' => [ - Event::MESSAGE_CREATE, Event::MESSAGE_DELETE, // ... - ], - 'loop' => \React\EventLoop\Factory::create(), - 'logger' => new \Monolog\Logger('New logger'), - 'dnsConfig' => '1.1.1.1', - 'shardId' => 0, - 'shardCount' => 5, - ]); - -``token`` is your Discord token. **Required**. - -``intents`` can be an array of valid intents *or* an integer representing the intents. Default is all intents minus any privileged intents. At the moment this means all intents minus ``GUILD_MEMBERS`` and ``GUILD_PRESENCES``. To enable these intents you must first enable them in your Discord developer portal. - -``loadAllMembers`` is a boolean whether all members should be fetched and stored on bot start. Loading members takes a while to retrieve from Discord and store, so default is false. This requires the ``GUILD_MEMBERS`` intent to be enabled in DiscordPHP. See above for more details. - -``storeMessages`` is a boolean whether messages received and sent should be stored. Default is false. - -``retrieveBans`` is a boolean whether bans should be retrieved on bot load. Default is false. - -``pmChannels`` is a boolean whether PM channels should be stored on bot load. Default is false. - -``disabledEvents`` is an array of events that will be disabled. By default all events are enabled. - -``loop`` is an instance of a ReactPHP event loop that can be provided to the client rather than creating a new loop. Useful if you want to use other React components. By default, a new loop is created. - -``logger`` is an instance of a logger that implements ``LoggerInterface``. By default, a new Monolog logger with log level DEBUG is created to print to stdout. - -``dnsConfig`` is an instace of ``Config`` or a string of name server address. By default system setting is used and fall back to 8.8.8.8 when system configuration is not found. Currently only used for VoiceClient. - ----- - -The following options should only be used by large bots that require sharding. If you plan to use sharding, `read up `_ on how Discord implements it. - -``shardId`` is the ID of the bot shard. - -``shardCount`` is the number of shards that you are using. - ----- - -Gateway events should be registered inside the ``init`` event, which is emitted once when the bot first starts and has connected to the gateway. - -To register an event we use the ``$discord->on(...)`` function, which registers a handler. A list of events is available `here `_. They are described in more detail in further sections of the documentation. All events take a callback which is called when the event is triggered, and the callback is called with an object representing the content of the event and an instance of the ``Discord`` client. - -.. code:: php - - $discord->on('init', function (Discord $discord) { - - $discord->on(Event::MESSAGE_CREATE, function (Message $message, Discord $discord) { - // ... handle message sent - }); - - }); - - -Finally, the event loop needs to be started. Treat this as an infinite loop. - -.. code:: php - - $discord->run(); - -If you want to stop the bot you can run: - -.. code:: php - - $discord->close(); - -If you want to stop the bot without stopping the event loop, the close function takes a boolean: - -.. code:: php - - $discord->close(false); diff --git a/vendor/team-reflex/discord-php/guide/collection.rst b/vendor/team-reflex/discord-php/guide/collection.rst deleted file mode 100644 index 2439535..0000000 --- a/vendor/team-reflex/discord-php/guide/collection.rst +++ /dev/null @@ -1,258 +0,0 @@ -========== -Collection -========== - - -Collections are exactly what they sound like - collections of items. In DiscordPHP collections are based around the idea of parts, but they can be used for any type of item. - -.. container:: - - Collections implement interfaces allowing them to be accessed like arrays, such as: - - .. code:: php - - // square bracket index access - $collec[123] = 'asdf'; - echo $collec[123]; // asdf - - // foreach loops - foreach ($collec as $item) { - // ... - } - - // json serialization - json_encode($collec); - - // array serialization - $collecArray = (array) $collec; - - // string serialization - $jsonCollec = (string) $collec; // same as json_encode($collec) - -Creating a collection -===================== - -+---------+----------------+--------------------------------------------------------------------+ -| name | type | description | -+=========+================+====================================================================+ -| items | array | Array of items for the collection. Default is empty collection | -+---------+----------------+--------------------------------------------------------------------+ -| discrim | string or null | The discriminator used to discriminate between parts. Default ‘id’ | -+---------+----------------+--------------------------------------------------------------------+ -| class | string or null | The type of class contained in the collection. Default null | -+---------+----------------+--------------------------------------------------------------------+ - -.. code:: php - - // Creates an empty collection with discriminator of 'id' and no class type. - // Any item can be inserted into this collection. - $collec = new Collection(); - - // Creates an empty collection with no discriminator and no class type. - // Similar to a laravel collection. - $collec = new Collection([], null, null); - -Getting an item -=============== - -Gets an item from the collection, with a key and value. - -===== ==== =================================== -name type description -===== ==== =================================== -key any The key to search with -value any The value that the key should match -===== ==== =================================== - -.. code:: php - - // Collection with 3 items, discriminator is 'id', no class type - $collec = new Collection([ - [ - 'id' => 1, - 'text' => 'My ID is 1.' - ], - [ - 'id' => 2, - 'text' => 'My ID is 2.' - ], - [ - 'id' => 3, - 'text' => 'My ID is 3.' - ] - ]); - - // [ - // 'id' => 1, - // 'text' => 'My ID is 1.' - // ] - $item = $collec->get('id', 1); - - // [ - // 'id' => 1, - // 'text' => 'My ID is 1.' - // ] - $item = $collec->get('text', 'My ID is 1.'); - -Adding an item -============== - -Adds an item to the collection. Note that if ``class`` is set in the constructor and the class of the item inserted is not the same, it will not insert. - -===== ==== ================== -name type description -===== ==== ================== -$item any The item to insert -===== ==== ================== - -.. code:: php - - // empty, no discrim, no class - $collec = new Collection([], null, null); - - $collec->push(1); - $collec->push('asdf'); - $collec->push(true); - - // --- - - class X - { - public $y; - - public function __construct($y) - { - $this->y = $y; - } - } - - // empty, discrim 'y', class X - $collec = new Collection([], 'y', X::class); - $collec->push(new X(123)); - $collec->push(123); // won't insert - - // new X(123) - $collec->get('y', 123); - -Pulling an item -=============== - -Removes an item from the collection and returns it. - -======= ==== ========================================= -name type description -======= ==== ========================================= -key any The key to look for -default any Default if key is not found. Default null -======= ==== ========================================= - -.. code:: php - - $collec = new Collection([], null, null); - $collec->push(1); - $collec->push(2); - $collec->push(3); - - $collec->pull(1); // returns at 1 index - which is actually 2 - $collec->pull(100); // returns null - $collec->pull(100, 123); // returns 123 - -Filling the collection -====================== - -Fills the collection with an array of items. - -.. code:: php - - $collec = new Collection([], null, null); - $collec->fill([ - 1, 2, 3, 4, - ]); - -Number of items -=============== - -Returns the number of items in the collection. - -.. code:: php - - $collec = new Collection([ - 1, 2, 3 - ], null, null); - - echo $collec->count(); // 3 - -Getting the first item -====================== - -Gets the first item of the collection. - -.. code:: php - - $collec = new Collection([ - 1, 2, 3 - ], null, null); - - echo $collec->first(); // 1 - -Filtering a collection -====================== - -Filters the collection with a given callback function. The callback function is called for every item and is called with the item. If the callback returns true, the item is added to the new collection. Returns a new collection. - -======== ======== ================================= -name type description -======== ======== ================================= -callback callable The callback called on every item -======== ======== ================================= - -.. code:: php - - $collec = new Collection([ - 1, 2, 3, 100, 101, 102 - ], null, null); - - // [ 101, 102 ] - $newCollec = $collec->filter(function ($item) { - return $item > 100; - }); - -Clearing a collection -===================== - -Clears the collection. - -.. code:: php - - $collec->clear(); // $collec = [] - -Mapping a collection -==================== - -A given callback function is called on each item in the collection, and the result is inserted into a new collection. - -======== ======== ================================= -name type description -======== ======== ================================= -callback callable The callback called on every item -======== ======== ================================= - -.. code:: php - - $collec = new Collection([ - 1, 2, 3, 100, 101, 102 - ], null, null); - - // [ 100, 200, 300, 10000, 10100, 10200 ] - $newCollec = $collec->map(function ($item) { - return $item * 100; - }); - -Converting to array -=================== - -Converts a collection to an array. - -.. code:: php - - $arr = $collec->toArray(); \ No newline at end of file diff --git a/vendor/team-reflex/discord-php/guide/components.rst b/vendor/team-reflex/discord-php/guide/components.rst deleted file mode 100644 index fa86156..0000000 --- a/vendor/team-reflex/discord-php/guide/components.rst +++ /dev/null @@ -1,218 +0,0 @@ -================== -Message Components -================== - - -Message components are new components you can add to messages, such as buttons and select menus. There are currently four different types of message components: - -``ActionRow`` -============= - -Represents a row of buttons on a message. You can add up to 5 buttons to the row, which can then be added to the message. You can only add buttons to action rows. - -.. code:: php - - $row = ActionRow::new() - ->addComponent(Button::new(Button::STYLE_SUCCESS)); - -Functions ---------- - -+----------------------------------+-------------------------------------------------------------+ -| name | description | -+==================================+=============================================================+ -| ``addComponent($component)`` | adds a component to action row. must be a button component. | -+----------------------------------+-------------------------------------------------------------+ -| ``removeComponent($component)`` | removes the given component from the action row. | -+----------------------------------+-------------------------------------------------------------+ -| ``getComponents(): Component[]`` | returns all the action row components in an array. | -+----------------------------------+-------------------------------------------------------------+ - -``Button`` -========== - -Represents a button attached to a message. You cannot directly attach a button to a message, it must be contained inside an ``ActionRow``. - -.. code:: php - - $button = Button::new(Button::STYLE_SUCCESS) - ->setLabel('push me!'); - -There are 5 different button styles: - -========= =========================== ======= -name constant colour -========= =========================== ======= -primary ``Button::STYLE_PRIMARY`` blurple -secondary ``Button::STYLE_SECONDARY`` grey -success ``Button::STYLE_SUCCESS`` green -danger ``Button::STYLE_DANGER`` red -link ``Button::STYLE_LINK`` grey -========= =========================== ======= - -.. image:: https://discord.com/assets/7bb017ce52cfd6575e21c058feb3883b.png - :alt: Discord button styles - - Discord button styles - -.. _functions-1: - -Functions ---------- - -+--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+ -| name | description | -+======================================+==========================================================================================================================================+ -| ``setStyle($style)`` | sets the style of the button. must be one of the above constants. | -+--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+ -| ``setLabel($label)`` | sets the label of the button. maximum 80 characters. | -+--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+ -| ``setEmoji($emoji)`` | sets the emoji for the button. must be an ``Emoji`` object. | -+--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+ -| ``setCustomId($custom_id)`` | sets the custom ID of the button. maximum 100 characters. will be automatically generated if left null. not applicable for link buttons. | -+--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+ -| ``setUrl($url)`` | sets the url of the button. only for buttons with the ``Button::STYLE_LINK`` style. | -+--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+ -| ``setDisabled($disabled)`` | sets whether the button is disabled or not. | -+--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+ -| ``setListener($listener, $discord)`` | sets the listener for the button. see below for more information. not applicable for link buttons. | -+--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+ -| ``removeListener()`` | removes the listener from the button. | -+--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+ - -Adding a button listener ------------------------- - -If you add a button you probably want to listen for when it is clicked. This is done through the ``setListener(callable $listener, Discord $discord)`` function. - -The ``callable $listener`` will be a function which is called with the ``Interaction`` object that triggered the button press. You must also pass the function the ``$discord`` client. - -.. code:: php - - $button->setListener(function (Interaction $interaction) { - $interaction->respondWithMessage(MessageBuilder::new() - ->setContent('why\'d u push me?')); - }, $discord); - -If the interaction is not responded to after the function is called, the interaction will be automatically acknowledged with no response. If you are going to acknowledge the interaction after a delay (e.g. HTTP request, arbitrary timeout) you should return a promise from the listener to prevent the automatic acknowledgement: - -.. code:: php - - $button->setListener(function (Interaction $interaction) use ($discord) { - return someFunctionWhichWillReturnAPromise()->then(function ($returnValueFromFunction) use ($interaction) { - $interaction->respondWithMessage(MessageBuilder::new() - ->setContent($returnValueFromFunction)); - }); - }, $discord); - -``SelectMenu`` -============== - -Select menus are a dropdown which can be attached to a message. They operate similar to buttons. They do not need to be attached to an ``ActionRow``. You may have up to 25 ``Option``\ s attached to a select menu. - -.. code:: php - - $select = SelectMenu::new() - ->addOption(Option::new('me?')) - ->addOption(Option::new('or me?')); - -.. _functions-2: - -Functions ---------- - -+--------------------------------------+--------------------------------------------------------------------------------------------------------+ -| name | description | -+======================================+========================================================================================================+ -| ``addOption($option)`` | adds an option to the select menu. maximum 25 options per menu. options must have unique values. | -+--------------------------------------+--------------------------------------------------------------------------------------------------------+ -| ``removeOption($option)`` | removes an option from the select menu. | -+--------------------------------------+--------------------------------------------------------------------------------------------------------+ -| ``setPlaceholder($placeholder)`` | sets a placeholder string to be displayed when nothing is selected. null to clear. max 150 characters. | -+--------------------------------------+--------------------------------------------------------------------------------------------------------+ -| ``setMinValues($min_values)`` | the number of values which must be selected to submit the menu. between 0 and 25, default 1. | -+--------------------------------------+--------------------------------------------------------------------------------------------------------+ -| ``setMaxValues($max_values)`` | the maximum number of values which can be selected. maximum 25, default 1. | -+--------------------------------------+--------------------------------------------------------------------------------------------------------+ -| ``setDisabled($disabled)`` | sets whether the menu is disabled or not. | -+--------------------------------------+--------------------------------------------------------------------------------------------------------+ -| ``setListener($listener, $discord)`` | sets the listener for the select menu. see below for more information. | -+--------------------------------------+--------------------------------------------------------------------------------------------------------+ -| ``removeListener()`` | removes the listener from the select menu. | -+--------------------------------------+--------------------------------------------------------------------------------------------------------+ - -``Option`` functions --------------------- - -+----------------------------------+---------------------------------------------------------------------------------------------------------------------------+ -| name | description | -+==================================+===========================================================================================================================+ -| ``new($label, ?$value)`` | creates a new option. requires a label to display, and optionally an internal value (leave as null to auto-generate one). | -+----------------------------------+---------------------------------------------------------------------------------------------------------------------------+ -| ``setDescription($description)`` | sets the description of the option. null to clear. maximum 100 characters. | -+----------------------------------+---------------------------------------------------------------------------------------------------------------------------+ -| ``setEmoji($emoji)`` | sets the emoji of the option. null to clear. must be an emoji object. | -+----------------------------------+---------------------------------------------------------------------------------------------------------------------------+ -| ``setDefault($default)`` | sets whether the option is the default option. | -+----------------------------------+---------------------------------------------------------------------------------------------------------------------------+ -| ``getValue()`` | gets the internal developer value of the option. | -+----------------------------------+---------------------------------------------------------------------------------------------------------------------------+ - -Adding a select menu listener ------------------------------ - -Select menu listeners operate similar to the button listeners, so please read the above section first. The callback function will be called with the ``Interaction`` object as well as a collection of selected ``Option``\ s. - -.. code:: php - - $select->setListener(function (Interaction $interaction, Collection $options) { - foreach ($options as $option) { - echo $option->getValue().PHP_EOL; - } - - $interaction->respondWithMessage(MessageBuilder::new()->setContent('thanks!')); - }, $discord); - -``TextInput`` -============= - -Text inputs are an interactive component that render on modals. - -.. code:: php - - $textInput = TextInput::new('Label', TextInput::TYPE_SHORT, 'custom id') - ->setRequired(true); - -They can be used to collect short-form or long-form text: - -====================== ============================== -style constant -====================== ============================== -Short (single line) ``TextInput::STYLE_SHORT`` -Paragraph (multi line) ``TextInput::STYLE_PARAGRAPH`` -====================== ============================== - -.. _functions-3: - -Functions ---------- - -+----------------------------------+-------------------------------------------------------------------------------------------------------------+ -| name | description | -+==================================+=============================================================================================================+ -| ``setCustomId($custom_id)`` | sets the custom ID of the text input. maximum 100 characters. will be automatically generated if left null. | -+----------------------------------+-------------------------------------------------------------------------------------------------------------+ -| ``setStyle($style)`` | sets the style of the text input. must be one of the above constants. | -+----------------------------------+-------------------------------------------------------------------------------------------------------------+ -| ``setLabel($label)`` | sets the label of the button. maximum 80 characters. | -+----------------------------------+-------------------------------------------------------------------------------------------------------------+ -| ``setMinLength($min_length)`` | the minimum length of value. between 0 and 4000, default 0. | -+----------------------------------+-------------------------------------------------------------------------------------------------------------+ -| ``setMaxLength($max_length)`` | the maximum length of value. between 1 and 4000, default 4000. | -+----------------------------------+-------------------------------------------------------------------------------------------------------------+ -| ``setValue($value)`` | sets a pre-filled value for the text input. maximum 4000 characters. | -+----------------------------------+-------------------------------------------------------------------------------------------------------------+ -| ``setPlaceholder($placeholder)`` | sets a placeholder string to be displayed when text input is empty. max 100 characters. | -+----------------------------------+-------------------------------------------------------------------------------------------------------------+ -| ``setRequired($required)`` | sets whether the text input is required or not. | -+----------------------------------+-------------------------------------------------------------------------------------------------------------+ \ No newline at end of file diff --git a/vendor/team-reflex/discord-php/guide/events/application_commands.rst b/vendor/team-reflex/discord-php/guide/events/application_commands.rst deleted file mode 100644 index a4f4662..0000000 --- a/vendor/team-reflex/discord-php/guide/events/application_commands.rst +++ /dev/null @@ -1,15 +0,0 @@ -==================== -Application Commands -==================== - - -Application Command Permissions Update -====================================== - -Called with an ``CommandPermissions`` object when an application command’s permissions are updated. - -.. code:: php - - $discord->on(Event::APPLICATION_COMMAND_PERMISSIONS_UPDATE, function (CommandPermissions $commandPermission, Discord $discord, ?CommandPermissions $oldCommandPermission) { - // ... - }); diff --git a/vendor/team-reflex/discord-php/guide/events/auto_moderations.rst b/vendor/team-reflex/discord-php/guide/events/auto_moderations.rst deleted file mode 100644 index 1c843bd..0000000 --- a/vendor/team-reflex/discord-php/guide/events/auto_moderations.rst +++ /dev/null @@ -1,59 +0,0 @@ -================ -Auto Moderations -================ - - -All auto moderation related events are currently only sent to bot users which have the ``MANAGE_GUILD`` permission. - -Auto Moderation Rule Create -=========================== - -Called with a ``Rule`` object when an auto moderation rule is created. - -.. code:: php - - $discord->on(Event::AUTO_MODERATION_RULE_CREATE, function (Rule $rule, Discord $discord) { - // ... - }); - -Requires the ``Intents::AUTO_MODERATION_CONFIGURATION`` intent. - -Auto Moderation Rule Update -=========================== - -Called with a ``Rule`` object when an auto moderation rule is updated. - -.. code:: php - - $discord->on(Event::AUTO_MODERATION_RULE_UPDATE, function (Rule $rule, Discord $discord, ?Rule $oldRule) { - // ... - }); - -Auto Moderation Rule Delete -=========================== - -Called with a ``Rule`` object when an auto moderation rule is deleted. - -.. code:: php - - $discord->on(Event::AUTO_MODERATION_RULE_DELETE, function (Rule $rule, Discord $discord) { - // ... - }); - -Requires the ``Intents::AUTO_MODERATION_CONFIGURATION`` intent. - -Auto Moderation Action Execution -================================ - -Called with an ``AutoModerationActionExecution`` object when an auto moderation rule is triggered and an action is executed (e.g. when a message is blocked). - -.. code:: php - - // use `Discord\Parts\WebSockets\AutoModerationActionExecution`; - - $discord->on(Event::AUTO_MODERATION_ACTION_EXECUTION, function (AutoModerationActionExecution $actionExecution, Discord $discord) { - // ... - }); - -Requires the ``Intents::AUTO_MODERATION_EXECUTION`` intent. - diff --git a/vendor/team-reflex/discord-php/guide/events/channels.rst b/vendor/team-reflex/discord-php/guide/events/channels.rst deleted file mode 100644 index 5a844e2..0000000 --- a/vendor/team-reflex/discord-php/guide/events/channels.rst +++ /dev/null @@ -1,143 +0,0 @@ -======== -Channels -======== - - -Requires the ``Intents::GUILDS`` intent. - -Channel Create -============== - -Called with a ``Channel`` object when a new channel is created, relevant to the Bot. - -.. code:: php - - $discord->on(Event::CHANNEL_CREATE, function (Channel $channel, Discord $discord) { - // ... - }); - -Channel Update -============== - -Called with two ``Channel`` objects when a channel is updated. - -.. code:: php - - $discord->on(Event::CHANNEL_UPDATE, function (Channel $channel, Discord $discord, ?Channel $oldChannel) { - // ... - }); - -Channel Delete -============== - -Called with a ``Channel`` object when a channel relevant to the Bot is deleted. - -.. code:: php - - $discord->on(Event::CHANNEL_DELETE, function (Channel $channel, Discord $discord) { - // ... - }); - -Channel Pins Update -=================== - -Called with an object when a message is pinned or unpinned in a text channel. This is not sent when a pinned message is deleted. - -.. code:: php - - $discord->on(Event::CHANNEL_PINS_UPDATE, function ($pins, Discord $discord) { - // { - // "guild_id": "", - // "channel_id": "", - // "last_pin_timestamp": "" - // } - }); - -.. - - For direct messages, it only requires the ``Intents::DIRECT_MESSAGES`` intent. - -Threads -======= - -Requires the ``Intents::GUILDS`` intent. - -Thread Create -------------- - -Called with a ``Thread`` object when a thread is created, relevant to the Bot. - -.. code:: php - - $discord->on(Event::THREAD_CREATE, function (Thread $thread, Discord $discord) { - // ... - }); - -Thread Update -------------- - -Called with a ``Thread`` object when a thread is updated. - -.. code:: php - - $discord->on(Event::THREAD_UPDATE, function (Thread $thread, Discord $discord, ?Thread $oldThread) { - // ... - }); - -Thread Delete -------------- - -Called with an old ``Thread`` object when a thread relevant to the Bot is deleted. - -.. code:: php - - $discord->on(Event::THREAD_DELETE, function (object $thread, Discord $discord) { - if ($thread instanceof Thread) { - // $thread was cached - } - // $thread was not in cache: - else { - // { - // "type": 0, - // "id": "", - // "guild_id": "", - // "parent_id": "" - // } - } - }); - -Thread List Sync ----------------- - -Called when list of threads are synced. - -.. code:: php - - $discord->on(Event::THREAD_LIST_SYNC, function (Collection $threads, Discord $discord) { - // ... - }); - -Thread Member Update --------------------- - -Called with a Thread ``Member`` object when the thread member for the current Bot is updated. - -.. code:: php - - // use Discord\Parts\Thread\Member; - - $discord->on(Event::THREAD_MEMBER_UPDATE, function (Member $threadMember, Discord $discord) { - // ... - }); - -Thread Members Update ---------------------- - -Called with a ``Thread`` object when anyone is added to or removed from a thread. If the Bot does not have the ``Intents::GUILD_MEMBERS``, then this event will only be called if the Bot was added to or removed from the thread. - -.. code:: php - - $discord->on(Event::THREAD_MEMBERS_UPDATE, function (Thread $thread, Discord $discord) { - // ... - }); - diff --git a/vendor/team-reflex/discord-php/guide/events/guilds.rst b/vendor/team-reflex/discord-php/guide/events/guilds.rst deleted file mode 100644 index 98de025..0000000 --- a/vendor/team-reflex/discord-php/guide/events/guilds.rst +++ /dev/null @@ -1,331 +0,0 @@ -====== -Guilds -====== - - -Requires the ``Intents::GUILDS`` intent. - -Guild Create -============ - -Called with a ``Guild`` object in one of the following situations: - -1. When the Bot is first starting and the guilds are becoming available. (unless the listener is put inside after ‘init’ event) -2. When a guild was unavailable and is now available due to an outage. -3. When the Bot joins a new guild. - -.. code:: php - - $discord->on(Event::GUILD_CREATE, function (object $guild, Discord $discord) { - if (! ($guild instanceof Guild)) { - // the guild is unavailable due to an outage, $guild is a stdClass - // { - // "id": "", - // "unavailable": true, - // } - return; - } - - // the Bot has joined the guild - }); - -Guild Update -============ - -Called with two ``Guild`` objects when a guild is updated. - -.. code:: php - - $discord->on(Event::GUILD_UPDATE, function (Guild $guild, Discord $discord, ?Guild $oldGuild) { - // ... - }); - -Guild Delete -============ - -Called with a ``Guild`` object in one of the following situations: - -1. The Bot was removed from a guild. -2. The guild is unavailable due to an outage. - -.. code:: php - - $discord->on(Event::GUILD_DELETE, function (object $guild, Discord $discord, bool $unavailable) { - // ... - if ($unavailable) { - // the guild is unavailabe due to an outage, $guild is a stdClass - // { - // "guild_id": "", - // "unavailable": "", - // } - } else { - // the Bot has been kicked from the guild - } - }); - -Guild Bans -========== - -Requires the ``Intents::GUILD_BANS`` intent and ``ban_members`` permission. - -Guild Ban Add -------------- - -Called with a ``Ban`` object when a member is banned from a guild. - -.. code:: php - - $discord->on(Event::GUILD_BAN_ADD, function (Ban $ban, Discord $discord) { - // ... - }); - -Guild Ban Remove ----------------- - -Called with a ``Ban`` object when a user is unbanned from a guild. - -.. code:: php - - $discord->on(Event::GUILD_BAN_REMOVE, function (Ban $ban, Discord $discord) { - // ... - }); - -Guild Emojis and Stickers -========================= - -Requires the ``Intents::GUILD_EMOJIS_AND_STICKERS`` intent. - -Guild Emojis Update -------------------- - -Called with two Collections of ``Emoji`` objects when a guild’s emojis have been added/updated/deleted. ``$oldEmojis`` *may* be empty if it was not cached or there were previously no emojis. - -.. code:: php - - $discord->on(Event::GUILD_EMOJIS_UPDATE, function (Collection $emojis, Discord $discord, Collection $oldEmojis) { - // ... - }); - -Guild Stickers Update ---------------------- - -Called with two Collections of ``Sticker`` objects when a guild’s stickers have been added/updated/deleted. ``$oldStickers`` *may* be empty if it was not cached or there were previously no stickers. - -.. code:: php - - $discord->on(Event::GUILD_STICKERS_UPDATE, function (Collection $stickers, Discord $discord, Collection $oldStickers) { - // ... - }); - -Guild Members -============= - -Requires the ``Intents::GUILD_MEMBERS`` intent. This intent is a priviliged intent, it must be enabled in your Discord Bot developer settings. - -Guild Member Add ----------------- - -Called with a ``Member`` object when a new user joins a guild. - -.. code:: php - - $discord->on(Event::GUILD_MEMBER_ADD, function (Member $member, Discord $discord) { - // ... - }); - -Guild Member Remove -------------------- - -Called with a ``Member`` object when a member is removed from a guild (leave/kick/ban). Note that the member *may* only have ``User`` data if ``loadAllMembers`` is disabled. - -.. code:: php - - $discord->on(Event::GUILD_MEMBER_REMOVE, function (Member $member, Discord $discord) { - // ... - }); - -Guild Member Update -------------------- - -Called with two ``Member`` objects when a member is updated in a guild. Note that the old member *may* be ``null`` if ``loadAllMembers`` is disabled. - -.. code:: php - - $discord->on(Event::GUILD_MEMBER_UPDATE, function (Member $member, Discord $discord, ?Member $oldMember) { - // ... - }); - -Guild Roles -=========== - -Requires the ``Intents::GUILDS`` intent. - -Guild Role Create ------------------ - -Called with a ``Role`` object when a role is created in a guild. - -.. code:: php - - $discord->on(Event::GUILD_ROLE_CREATE, function (Role $role, Discord $discord) { - // ... - }); - -Guild Role Update ------------------ - -Called with two ``Role`` objects when a role is updated in a guild. - -.. code:: php - - $discord->on(Event::GUILD_ROLE_UPDATE, function (Role $role, Discord $discord, ?Role $oldRole) { - // ... - }); - -Guild Role Delete ------------------ - -Called with a ``Role`` object when a role is deleted in a guild. ``$role`` may return ``Role`` object if it was cached. - -.. code:: php - - $discord->on(Event::GUILD_ROLE_DELETE, function (object $role, Discord $discord) { - if ($role instanceof Role) { - // $role was cached - } - // $role was not in cache: - else { - // { - // "guild_id": "" // role guild ID - // "role_id": "", // role ID, - // } - } - }); - -Guild Scheduled Events -====================== - -Requires the ``Intents::GUILD_SCHEDULED_EVENTS`` intent. - -Guild Scheduled Event Create ----------------------------- - -Called with a ``ScheduledEvent`` object when a scheduled event is created in a guild. - -.. code:: php - - $discord->on(Event::GUILD_SCHEDULED_EVENT_CREATE, function (ScheduledEvent $scheduledEvent, Discord $discord) { - // ... - }); - -Guild Scheduled Event Update ----------------------------- - -Called with a ``ScheduledEvent`` object when a scheduled event is updated in a guild. - -.. code:: php - - $discord->on(Event::GUILD_SCHEDULED_EVENT_UPDATE, function (ScheduledEvent $scheduledEvent, Discord $discord, ?ScheduledEvent $oldScheduledEvent) { - // ... - }); - -Guild Scheduled Event Delete ----------------------------- - -Called with a ``ScheduledEvent`` object when a scheduled event is deleted in a guild. - -.. code:: php - - $discord->on(Event::GUILD_SCHEDULED_EVENT_DELETE, function (ScheduledEvent $scheduledEvent, Discord $discord) { - // ... - }); - -Guild Scheduled Event User Add ------------------------------- - -Called when a user has subscribed to a scheduled event in a guild. - -.. code:: php - - $discord->on(Event::GUILD_SCHEDULED_EVENT_USER_ADD, function ($data, Discord $discord) { - // ... - }); - -Guild Scheduled Event User Remove ---------------------------------- - -Called when a user has unsubscribed from a scheduled event in a guild. - -.. code:: php - - $discord->on(Event::GUILD_SCHEDULED_EVENT_USER_REMOVE, function ($data, Discord $discord) { - // ... - }); - -Integrations -============ - -Requires the ``Intents::GUILD_INTEGRATIONS`` intent. - -Guild Integrations Update -------------------------- - -Called with a cached ``Guild`` object when a guild integration is updated. - -.. code:: php - - $discord->on(Event::GUILD_INTEGRATIONS_UPDATE, function (object $guild, Discord $discord) { - if ($guild instanceof Guild) { - // $guild was cached - } - // $guild was not in cache: - else { - // { - // "guild_id": "", - // } - } - }); - -Integration Create ------------------- - -Called with an ``Integration`` object when an integration is created in a guild. - -.. code:: php - - $discord->on(Event::INTEGRATION_CREATE, function (Integration $integration, Discord $discord) { - // ... - }); - -Integration Update ------------------- - -Called with an ``Integration`` object when a integration is updated in a guild. - -.. code:: php - - $discord->on(Event::INTEGRATION_UPDATE, function (Integration $integration, Discord $discord, ?Integration $oldIntegration) { - // ... - }); - -Integration Delete ------------------- - -Called with an old ``Integration`` object when a integration is deleted from a guild. - -.. code:: php - - $discord->on(Event::INTEGRATION_DELETE, function (object $integration, Discord $discord) { - if ($integration instanceof Integration) { - // $integration was cached - } - // $integration was not in cache: - else { - // { - // "id": "", - // "guild_id": "", - // "application_id": "" - // } - } - }); - diff --git a/vendor/team-reflex/discord-php/guide/events/index.rst b/vendor/team-reflex/discord-php/guide/events/index.rst deleted file mode 100644 index 023880f..0000000 --- a/vendor/team-reflex/discord-php/guide/events/index.rst +++ /dev/null @@ -1,32 +0,0 @@ -.. toctree:: - :hidden: - - application_commands - auto_moderations - channels - guilds - invites - interactions - messages - presences - stage_instances - voices - webhooks - -====== -Events -====== - - -Events are payloads sent over the socket to a client that correspond to events in Discord. - -All gateway events are enabled by default and can be individually disabled using ``disabledEvents`` options. Most events also requires the respective Intents enabled (as well privileged ones enabled from `Developers Portal `_) regardless the enabled event setting. - -To listen on gateway events, use the event emitter callback and ``Event`` name constants. Some events are internally handled by the library and may not be registered a listener: - -- ``Event::READY`` -- ``Event::RESUMED`` -- ``Event::GUILD_MEMBERS_CHUNK`` - -If you are an advanced user, you may listen to those events before internally handled with the library by parsing the ‘raw’ dispatch event data. - diff --git a/vendor/team-reflex/discord-php/guide/events/interactions.rst b/vendor/team-reflex/discord-php/guide/events/interactions.rst deleted file mode 100644 index d7b5039..0000000 --- a/vendor/team-reflex/discord-php/guide/events/interactions.rst +++ /dev/null @@ -1,20 +0,0 @@ -============ -Interactions -============ - - -Interaction Create -================== - -Called with an ``Interaction`` object when an interaction is created. - -.. code:: php - - // use Discord\Parts\Interactions\Interaction; - - $discord->on(Event::INTERACTION_CREATE, function (Interaction $interaction, Discord $discord) { - // ... - }); - -Application Command & Message component listeners are processed before this event is called. Useful if you want to create a customized callback or have interaction response persists after Bot restart. - diff --git a/vendor/team-reflex/discord-php/guide/events/invites.rst b/vendor/team-reflex/discord-php/guide/events/invites.rst deleted file mode 100644 index 60ef714..0000000 --- a/vendor/team-reflex/discord-php/guide/events/invites.rst +++ /dev/null @@ -1,39 +0,0 @@ -======= -Invites -======= - - -Requires the ``Intents::GUILD_INVITES`` intent and ``manage_channels`` permission. - -Invite Create -============= - -Called with an ``Invite`` object when a new invite to a channel is created. - -.. code:: php - - $discord->on(Event::INVITE_CREATE, function (Invite $invite, Discord $discord) { - // ... - }); - -Invite Delete -============= - -Called with an object when an invite is created. - -.. code:: php - - $discord->on(Event::INVITE_DELETE, function (object $invite, Discord $discord) { - if ($invite instanceof Invite) { - // $invite was cached - } - // If $invite was not in cache: - else { - // { - // "channel_id": "", - // "guild_id": "", - // "code": "" // the unique invite code - // } - } - }); - diff --git a/vendor/team-reflex/discord-php/guide/events/messages.rst b/vendor/team-reflex/discord-php/guide/events/messages.rst deleted file mode 100644 index 9b2cb82..0000000 --- a/vendor/team-reflex/discord-php/guide/events/messages.rst +++ /dev/null @@ -1,124 +0,0 @@ -======== -Messages -======== - - - Unlike persistent messages, ephemeral messages are sent directly to the user and the Bot who sent the message rather than through the guild channel. Because of this, ephemeral messages are tied to the ``Intents::DIRECT_MESSAGES``, and the message object won’t include ``guild_id`` or ``member``. - -Requires the ``Intents::GUILD_MESSAGES`` intent for guild or ``Intents::DIRECT_MESSAGES`` for direct messages. - -Message Create -============== - -Called with a ``Message`` object when a message is sent in a guild or private channel. - -.. code:: php - - $discord->on(Event::MESSAGE_CREATE, function (Message $message, Discord $discord) { - // ... - }); - -Message Update -============== - -Called with ``Message`` objects when a message is updated in a guild or private channel. The `$message` may be an instance of `stdClass` if it was partial, otherwise a `Message`. The old message may be null if ``storeMessages`` is not enabled *or* the message was sent before the Bot was started. Discord does not provide a way to get message update history. - -.. code:: php - - $discord->on(Event::MESSAGE_UPDATE, function (Message $message, Discord $discord, ?Message $oldMessage) { - // ... - }); - -Message Delete -============== - -Called with an old ``Message`` object *or* the raw payload when a message is deleted. The ``Message`` object may be the raw payload if ``storeMessages`` is not enabled *or* the message was sent before the Bot was started. Discord does not provide a way to get deleted messages. - -.. code:: php - - $discord->on(Event::MESSAGE_DELETE, function (object $message, Discord $discord) { - if ($message instanceof Message) { - // $message was cached - } - // $message was not in cache: - else { - // { - // "id": "", // deleted message ID, - // "channel_id": "", // message channel ID, - // "guild_id": "" // channel guild ID - // } - } - }); - -Message Delete Bulk -=================== - -Called with a ``Collection`` of old ``Message`` objects *or* the raw payload when bulk messages are deleted. The ``Message`` object may be the raw payload if ``storeMessages`` is not enabled *or* the message was sent before the Bot was started. Discord does not provide a way to get deleted messages. - -.. code:: php - - $discord->on(Event::MESSAGE_DELETE_BULK, function (Collection $messages, Discord $discord) { - foreach ($messages as $message) { - if ($message instanceof Message) { - // $message was cached - } - // $message was not in cache: - else { - // { - // "id": "", // deleted message ID, - // "channel_id": "", // message channel ID, - // "guild_id": "" // channel guild ID - // } - } - } - }); - -Message Reactions -================= - -Requires the ``Intents::GUILD_MESSAGE_REACTIONS`` intent for guild or ``Intents::DIRECT_MESSAGE_REACTIONS`` for direct messages. - -Message Reaction Add --------------------- - -Called with a ``MessageReaction`` object when a user added a reaction to a message. - -.. code:: php - - $discord->on(Event::MESSAGE_REACTION_ADD, function (MessageReaction $reaction, Discord $discord) { - // ... - }); - -Message Reaction Remove ------------------------ - -Called with a ``MessageReaction`` object when a user removes a reaction from a message. - -.. code:: php - - $discord->on(Event::MESSAGE_REACTION_REMOVE, function (MessageReaction $reaction, Discord $discord) { - // ... - }); - -Message Reaction Remove All ---------------------------- - -Called with a ``MessageReaction`` object when all reactions are removed from a message. Note that only the fields relating to the message, channel and guild will be filled. - -.. code:: php - - $discord->on(Event::MESSAGE_REACTION_REMOVE_ALL, function (MessageReaction $reaction, Discord $discord) { - // ... - }); - -Message Reaction Remove Emoji ------------------------------ - -Called with an object when all reactions of an emoji are removed from a message. Unlike Message Reaction Remove, this event contains no users or members. - -.. code:: php - - $discord->on(Event::MESSAGE_REACTION_REMOVE_EMOJI, function (MessageReaction $reaction, Discord $discord) { - // ... - }); - diff --git a/vendor/team-reflex/discord-php/guide/events/presences.rst b/vendor/team-reflex/discord-php/guide/events/presences.rst deleted file mode 100644 index 96029fd..0000000 --- a/vendor/team-reflex/discord-php/guide/events/presences.rst +++ /dev/null @@ -1,44 +0,0 @@ -========= -Presences -========= - - -Presence Update -=============== - -Called with a ``PresenceUpdate`` object when a member’s presence is updated. - -.. code:: php - - $discord->on(Event::PRESENCE_UPDATE, function (PresenceUpdate $presence, Discord $discord) { - // ... - }); - -Requires the ``Intents::GUILD_PRESENCES`` intent. This intent is a priviliged intent, it must be enabled in your Discord Bot developer settings. - -Typing Start -============ - -Called with a ``TypingStart`` object when a user starts typing in a channel. - -.. code:: php - - // use Discord\Parts\WebSockets\TypingStart; - - $discord->on(Event::TYPING_START, function (TypingStart $typing, Discord $discord) { - // ... - }); - -Requires the ``Intents::GUILD_MESSAGE_TYPING`` intent. - -User Update -=========== - -Called with a ``User`` object when the Bot’s user properties change. - -.. code:: php - - $discord->on(Event::USER_UPDATE, function (User $user, Discord $discord, ?User $oldUser) { - // ... - }); - diff --git a/vendor/team-reflex/discord-php/guide/events/stage_instances.rst b/vendor/team-reflex/discord-php/guide/events/stage_instances.rst deleted file mode 100644 index 0383f3f..0000000 --- a/vendor/team-reflex/discord-php/guide/events/stage_instances.rst +++ /dev/null @@ -1,40 +0,0 @@ -=============== -Stage Instances -=============== - - -Requires the ``Intents::GUILDS`` intent. - -Stage Instance Create -===================== - -Called with a ``StageInstance`` object when a stage instance is created (i.e. the Stage is now “live”). - -.. code:: php - - $discord->on(Event::STAGE_INSTANCE_CREATE, function (StageInstance $stageInstance, Discord $discord) { - // ... - }); - -Stage Instance Update -===================== - -Called with a ``StageInstance`` objects when a stage instance has been updated. - -.. code:: php - - $discord->on(Event::STAGE_INSTANCE_UPDATE, function (StageInstance $stageInstance, Discord $discord, ?StageInstance $oldStageInstance) { - // ... - }); - -Stage Instance Delete -===================== - -Called with a ``StageInstance`` object when a stage instance has been deleted (i.e. the Stage has been closed). - -.. code:: php - - $discord->on(Event::STAGE_INSTANCE_DELETE, function (StageInstance $stageInstance, Discord $discord) { - // ... - }); - diff --git a/vendor/team-reflex/discord-php/guide/events/voices.rst b/vendor/team-reflex/discord-php/guide/events/voices.rst deleted file mode 100644 index 4578183..0000000 --- a/vendor/team-reflex/discord-php/guide/events/voices.rst +++ /dev/null @@ -1,33 +0,0 @@ -====== -Voices -====== - - -Voice State Update -================== - -Called with a ``VoiceStateUpdate`` object when a member joins, leaves or moves between voice channels. - -.. code:: php - - // use Discord\Parts\WebSockets\VoiceStateUpdate; - - $discord->on(Event::VOICE_STATE_UPDATE, function (VoiceStateUpdate $state, Discord $discord, $oldstate) { - // ... - }); - -Requires the ``Intents::GUILD_VOICE_STATES`` intent. - -Voice Server Update -=================== - -Called with a ``VoiceServerUpdate`` object when a voice server is updated in a guild. - -.. code:: php - - // use Discord\Parts\WebSockets\VoiceServerUpdate; - - $discord->on(Event::VOICE_SERVER_UPDATE, function (VoiceServerUpdate $guild, Discord $discord) { - // ... - }); - diff --git a/vendor/team-reflex/discord-php/guide/events/webhooks.rst b/vendor/team-reflex/discord-php/guide/events/webhooks.rst deleted file mode 100644 index e37118d..0000000 --- a/vendor/team-reflex/discord-php/guide/events/webhooks.rst +++ /dev/null @@ -1,27 +0,0 @@ -======== -Webhooks -======== - - -Webhooks Update -=============== - -Called with a ``Guild`` and ``Channel`` object when a guild channel’s webhooks are is created, updated, or deleted. - -.. code:: php - - $discord->on(Event::WEBHOOKS_UPDATE, function (object $guild, Discord $discord, object $channel) { - if ($guild instanceof Guild && $channel instanceof Channel) { - // $guild and $channel was cached - } - // $guild and/or $channel was not in cache: - else { - // { - // "guild_id": "" // webhook guild ID - // "channel_id": "", // webhook channel ID, - // } - } - }); - -Requires the ``Intents::GUILD_WEBHOOKS`` intent. - diff --git a/vendor/team-reflex/discord-php/guide/faq.rst b/vendor/team-reflex/discord-php/guide/faq.rst deleted file mode 100644 index 43ea866..0000000 --- a/vendor/team-reflex/discord-php/guide/faq.rst +++ /dev/null @@ -1,43 +0,0 @@ -=== -FAQ -=== - -``Class 'X' not found`` -====================== - -You most likely haven't imported the class that you are trying to use. Please check the `class reference `_ and search for the class that you are trying to use. Add an import statement at the top of the file like shown on the right. - -.. code-block:: php - - `_. Note that you will need to verify your bot if you use this intent and pass 100 guilds. - -You also need to enable the ``loadAllMembers`` option in your code, as shown on the right. - -.. code-block:: php - - $discord = new Discord([ - 'token' => '...', - 'loadAllMembers' => true, // Enable this option - ]); - - -If you are using DiscordPHP Version 6 or greater, you need to enable the ``GUILD_MEMBERS`` intent as well as the ``loadAllMembers`` option. The shown code will enable all intents minus the ``GUILD_PRESENCES`` intent (which is also priviliged). - -.. code-block:: php - - $discord = new Discord([ - 'token' => '...', - 'loadAllMembers' => true, - 'intents' => Intents::getDefaultIntents() | Intents::GUILD_MEMBERS // Enable the `GUILD_MEMBERS` intent - ]) - diff --git a/vendor/team-reflex/discord-php/guide/index.rst b/vendor/team-reflex/discord-php/guide/index.rst deleted file mode 100644 index 032c328..0000000 --- a/vendor/team-reflex/discord-php/guide/index.rst +++ /dev/null @@ -1,92 +0,0 @@ -.. toctree:: - :hidden: - - index - faq - basics - events/index - repositories - parts/index - collection - permissions - message_builder - components - interactions - -===== -Guide -===== - -DiscordPHP is a wrapper for the Discord REST, WebSocket and Voice APIs. Built on top of `ReactPHP `_ components. This documentation is based off the latest release. - -Requirements -============ - -- `PHP 8.0`_ or higher - - + Will not run on a webserver (FPM, CGI), you must run through CLI. A bot is a long-running process. - + x86 (32-bit) PHP requires ``ext-gmp`` extension enabled. - -- ``ext-json`` for JSON parsing. -- ``ext-zlib`` for gateway packet compression. - -Recommended Extensions ----------------------- - -- One of ``ext-uv``, ``ext-ev`` or ``evt-event`` (in order of preference) for a faster, and more performant event loop. -- ``ext-mbstring`` if you may handle non-english characters. - -Voice Requirements -================== - -- 64-bit PHP -- ``ext-sodium`` for voice encryption. -- FFmpeg - -Development Environment Recommendations ---------------------------------------- - -We recommend using an editor with support for the `Language Server Protocol`_. -A list of supported editors can be found `here `_. -Here are some commonly used editors: - -- Visual Studio Code (built-in LSP support) -- Vim/Neovim (with the `coc.nvim `_ plugin for LSP support) -- PHPStorm (built-in PHP support) - -We recommend installing `PHP Intelephense `_ alongside your LSP-equipped editor for code completion alongside other helpful features. There is no need to pay for the premium features, the free version will suffice. - -Installation -============ - -Installation requires `Composer `_. - -To install the latest release:: - - $ composer require team-reflex/discord-php - -If you would like to run on the latest ``master`` branch:: - - $ composer require team-reflex/discord-php dev-master - -``master`` can be substituted for any other branch name to install that branch. - -Key Tips -======== - -As Discord is a real-time application, events come frequently and it is vital that your code does not block the ReactPHP event loop. -Most, if not all, functions return promises, therefore it is vital that you understand the concept of asynchronous programming with promises. -You can learn more about ReactPHP promises `here `_. - -Help -==== - -If you need any help, feel free to join the `PHP Discorders `_ Discord and someone should be able to give you a hand. We are a small community so please be patient if someone can't help you straight away. - -Contributing -============ - -All contributions are welcome through pull requests in our GitHub repository. At the moment we would love contributions towards: - -- Unit testing -- Documentation diff --git a/vendor/team-reflex/discord-php/guide/interactions.rst b/vendor/team-reflex/discord-php/guide/interactions.rst deleted file mode 100644 index e51300a..0000000 --- a/vendor/team-reflex/discord-php/guide/interactions.rst +++ /dev/null @@ -1,85 +0,0 @@ -============ -Interactions -============ - - -Interactions are utilized in message components and slash commands. - -Attributes -========== - -+----------------+----------------------+------------------------------------------------------+ -| name | type | description | -+================+======================+======================================================+ -| id | string | id of the interaction. | -+----------------+----------------------+------------------------------------------------------+ -| application_id | string | id of the application associated to the interaction. | -+----------------+----------------------+------------------------------------------------------+ -| int | type | type of interaction. | -+----------------+----------------------+------------------------------------------------------+ -| data | ``?InteractionData`` | data associated with the interaction. | -+----------------+----------------------+------------------------------------------------------+ -| guild | ``?Guild`` | guild interaction was triggered from, null if DM. | -+----------------+----------------------+------------------------------------------------------+ -| channel | ``?Channel`` | channel interaction was triggered from. | -+----------------+----------------------+------------------------------------------------------+ -| member | ``?Member`` | member that triggered interaction. | -+----------------+----------------------+------------------------------------------------------+ -| user | ``User`` | user that triggered interaction. | -+----------------+----------------------+------------------------------------------------------+ -| token | string | internal token for responding to interaction. | -+----------------+----------------------+------------------------------------------------------+ -| version | int | version of interaction. | -+----------------+----------------------+------------------------------------------------------+ -| message | ``?Message`` | message that triggered interaction. | -+----------------+----------------------+------------------------------------------------------+ -| locale | ?string | The selected language of the invoking user. | -+----------------+----------------------+------------------------------------------------------+ -| guild_locale | ?string | The guild’s preferred locale, if invoked in a guild. | -+----------------+----------------------+------------------------------------------------------+ - -The locale list can be seen on `Discord API reference `_. - -Functions on interaction create -=============================== - -The following functions are used to respond an interaction after being created ``Event::INTERACTION_CREATE``, responding interaction with wrong type throws a ``LogicException`` - -+----------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------+------------------------------------------------------------------+ -| name | description | valid for interaction type | -+==============================================================================================+=============================================================================+==================================================================+ -| ``acknowledgeWithResponse(?bool $ephemeral)`` | acknowledges the interaction, creating a placeholder response to be updated | ``APPLICATION_COMMAND``, ``MESSAGE_COMPONENT``, ``MODAL_SUBMIT`` | -+----------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------+------------------------------------------------------------------+ -| ``acknowledge()`` | defer the interaction | ``MESSAGE_COMPONENT``, ``MODAL_SUBMIT`` | -+----------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------+------------------------------------------------------------------+ -| ``respondWithMessage(MessageBuilder $builder, ?bool $ephemeral)`` | responds to the interaction with a message. ephemeral is default false | ``APPLICATION_COMMAND``, ``MESSAGE_COMPONENT``, ``MODAL_SUBMIT`` | -+----------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------+------------------------------------------------------------------+ -| ``autoCompleteResult(array $choices)`` | responds a suggestion to options with auto complete | ``APPLICATION_COMMAND_AUTOCOMPLETE`` | -+----------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------+------------------------------------------------------------------+ -| ``showModal(string $title, string $custom_id, array $components, ?callable $submit = null)`` | responds to the interaction with a popup modal | other than ``PING`` and ``MODAL_SUBMIT`` | -+----------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------+------------------------------------------------------------------+ - -Functions after interaction response -==================================== - -The following functions can be only used after interaction respond above, otherwise throws a ``RuntimeException`` “Interaction has not been responded to.” - -+------------------------------------------------------------------------+------------------------------------------------------------------------------------------------+----------------------+ -| name | description | return | -+========================================================================+================================================================================================+======================+ -| ``updateMessage(MessageBuilder $message)`` | updates the message the interaction was triggered from. only for message component interaction | ``Promise`` | -+------------------------------------------------------------------------+------------------------------------------------------------------------------------------------+----------------------+ -| ``getOriginalResponse()`` | gets the original interaction response | ``Promise`` | -+------------------------------------------------------------------------+------------------------------------------------------------------------------------------------+----------------------+ -| ``updateOriginalResponse(MessageBuilder $message)`` | updates the original interaction response | ``Promise`` | -+------------------------------------------------------------------------+------------------------------------------------------------------------------------------------+----------------------+ -| ``deleteOriginalResponse()`` | deletes the original interaction response | ``Promise`` | -+------------------------------------------------------------------------+------------------------------------------------------------------------------------------------+----------------------+ -| ``sendFollowUpMessage(MessageBuilder $builder, ?bool $ephemeral)`` | sends a follow up message to the interaction. ephemeral is defalt false | ``Promise`` | -+------------------------------------------------------------------------+------------------------------------------------------------------------------------------------+----------------------+ -| ``getFollowUpMessage(string $message_id)`` | gets a non ephemeral follow up message from the interaction | ``Promise`` | -+------------------------------------------------------------------------+------------------------------------------------------------------------------------------------+----------------------+ -| ``updateFollowUpMessage(string $message_id, MessageBuilder $builder)`` | updates the follow up message of the interaction | ``Promise`` | -+------------------------------------------------------------------------+------------------------------------------------------------------------------------------------+----------------------+ -| ``deleteFollowUpMessage(string $message_id)`` | deletes a follow up message from the interaction | ``Promise`` | -+------------------------------------------------------------------------+------------------------------------------------------------------------------------------------+----------------------+ diff --git a/vendor/team-reflex/discord-php/guide/message_builder.rst b/vendor/team-reflex/discord-php/guide/message_builder.rst deleted file mode 100644 index cf51520..0000000 --- a/vendor/team-reflex/discord-php/guide/message_builder.rst +++ /dev/null @@ -1,123 +0,0 @@ -=============== -Message Builder -=============== - - -The ``MessageBuilder`` class is used to describe the contents of a new (or to be updated) message. - -A new message builder can be created with the ``new`` function: - -.. code:: php - - $builder = MessageBuilder::new(); - -Most builder functions return itself, so you can easily chain function calls together for a clean API, an example is shown on the right. - -.. code:: php - - $channel->sendMessage(MessageBuilder::new() - ->setContent('Hello, world!') - ->addEmbed($embed) - ->addFile('/path/to/file')); - -Setting content -=============== - -Sets the text content of the message. Throws an ``LengthException`` if the content is greater than 2000 characters. - -.. code:: php - - $builder->setContent('Hello, world!'); - -Setting TTS value -================= - -Sets the TTS value of the message. - -.. code:: php - - $builder->setTts(true); - -Adding embeds -============= - -You can add up to 10 embeds to a message. The embed functions takes ``Embed`` objects or associative arrays: - -.. code:: php - - $builder->addEmbed($embed); - -You can also set the embeds from another array of embeds. Note this will remove the current embeds from the message. - -.. code:: php - - $embeds = [...]; - $builder->setEmbeds($embeds); - -Replying to a message -===================== - -Sets the message as replying to another message. Takes a ``Message`` object. - -.. code:: php - - $discord->on(Event::MESSAGE_CREATE, function (Message $message) use ($builder) { - $builder->setReplyTo($message); - }); - -Adding files to the message -=========================== - -You can add multiple files to a message. The ``addFile`` function takes a path to a file, as well as an optional filename. - -If the filename parameter is ommited, it will take the filename from the path. Throws an exception if the path does not exist. - -.. code:: php - - $builder->addFile('/path/to/file', 'file.png'); - -You can also add files to messages with the content as a string: - -.. code:: php - - $builder->addFileFromContent('file.txt', 'contents of my file!'); - -You can also remove all files from a builder: - -.. code:: php - - $builder->clearFiles(); - -There is no limit on the number of files you can upload, but the whole request must be less than 8MB (including headers and JSON payload). - -Adding sticker -============== - -You can add up to 3 stickers to a message. The function takes ``Sticker`` object. - -.. code:: php - - $builder->addSticker($sticker); - -To remove a sticker: - -.. code:: php - - $builder->removeSticker($sticker); - -You can also set the stickers from another array of stickers. Note this will remove the current stickers from the message. - -.. code:: php - - $stickers = [...]; - $builder->setStickers($stickers); - -Adding message components -========================= - -Adds a message component to the message. You can only add ``ActionRow`` and ``SelectMenu`` objects. To add buttons, wrap the button in an ``ActionRow`` object. Throws an ``InvalidArgumentException`` if the given component is not an ``ActionRow`` or ``SelectMenu`` Throws an ``OverflowException`` if you already have 5 components in the message. - -.. code:: php - - $component = SelectMenu::new(); - $builder->addComponent($component); \ No newline at end of file diff --git a/vendor/team-reflex/discord-php/guide/parts/channel.rst b/vendor/team-reflex/discord-php/guide/parts/channel.rst deleted file mode 100644 index 3239c33..0000000 --- a/vendor/team-reflex/discord-php/guide/parts/channel.rst +++ /dev/null @@ -1,487 +0,0 @@ -======= -Channel -======= - - -Channels represent a Discord channel, whether it be a direct message channel, group channel, voice channel, text channel etc. - -Properties -========== - -+-------------------------------+---------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| name | type | description | -+===============================+=================================+==========================================================================================================================================================+ -| id | string | id of the channel | -+-------------------------------+---------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| name | string | name of the channel | -+-------------------------------+---------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| type | int | type of the channel, see Channel constants | -+-------------------------------+---------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| topic | string | topic of the channel | -+-------------------------------+---------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| guild_id | string or null | id of the guild the channel belongs to, null if direct message | -+-------------------------------+---------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| guild | Guild or null | guild the channel belongs to, null if direct message | -+-------------------------------+---------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| position | int | position of the channel in the Discord client | -+-------------------------------+---------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| is_private | bool | whether the message is a private direct message channel | -+-------------------------------+---------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| last_message_id | string | id of the last message sent in the channel | -+-------------------------------+---------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| bitrate | int | bitrate of the voice channel | -+-------------------------------+---------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| recipient | `User <#user>`_ | recipient of the direct message, only for direct message channel | -+-------------------------------+---------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| recipients | Collection of `Users <#user>`_ | recipients of the group direct message, only for group dm channels | -+-------------------------------+---------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| nsfw | bool | whether the channel is set as NSFW | -+-------------------------------+---------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| user_limit | int | user limit of the channel for voice channels | -+-------------------------------+---------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| rate_limit_per_user | int | amount of time in seconds a user has to wait between messages | -+-------------------------------+---------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| icon | string | channel icon hash | -+-------------------------------+---------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| owner_id | string | owner of the group DM | -+-------------------------------+---------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| application_id | string | id of the group dm creator if it was via an oauth application | -+-------------------------------+---------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| parent_id | string | id of the parent of the channel if it is in a group | -+-------------------------------+---------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| last_pin_timestamp | ``Carbon`` timestamp | when the last message was pinned in the channel | -+-------------------------------+---------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| rtc_region | string | Voice region id for the voice channel, automatic when set to null. | -+-------------------------------+---------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| video_quality_mode | int | The camera video quality mode of the voice channel, 1 when not present. | -+-------------------------------+---------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| default_auto_archive_duration | int | Default duration for newly created threads, in minutes, to automatically archive the thread after recent activity, can be set to: 60, 1440, 4320, 10080. | -+-------------------------------+---------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ - -Repositories -============ - -+------------+----------------------------+-------------------------------------------------+ -| name | type | notes | -+============+============================+=================================================+ -| overwrites | `Overwrite <#overwrite>`_ | Contains permission overwrites | -+------------+----------------------------+-------------------------------------------------+ -| members | VoiceStateUpdate | Only for voice channels. Contains voice members | -+------------+----------------------------+-------------------------------------------------+ -| messages | `Message <#message>`_ | | -+------------+----------------------------+-------------------------------------------------+ -| webhooks | `Webhook <#webhook>`_ | Only available in text channels | -+------------+----------------------------+-------------------------------------------------+ -| threads | `Thread <#thread>`_ | Only available in text channels | -+------------+----------------------------+-------------------------------------------------+ -| invites | `Invite <#invite>`_ | | -+------------+----------------------------+-------------------------------------------------+ - -Set permissions of a member or role -=================================== - -Sets the permissions of a member or role. Takes two arrays of permissions - one for allow and one for deny. See `Channel Permissions <#permissions>`_ for a valid list of permissions. Returns nothing in a promise. - -Parameters ----------- - -+-------+------------------------------------------+----------------------------------------+----------+ -| name | type | description | default | -+=======+==========================================+========================================+==========+ -| part | `Member <#member>`_ or `Role <#role>`_ | The part to apply the permissions to | required | -+-------+------------------------------------------+----------------------------------------+----------+ -| allow | array | Array of permissions to allow the part | [] | -+-------+------------------------------------------+----------------------------------------+----------+ -| deny | array | Array of permissions to deny the part | [] | -+-------+------------------------------------------+----------------------------------------+----------+ - -.. code:: php - - // Member can send messages and attach files, - // but can't add reactions to message. - $channel->setPermissions($member, [ - 'send_messages', - 'attach_files', - ], [ - 'add_reactions', - ])->then(function () { - // ... - })->done(); - -Set permissions of a member or role with an Overwrite -===================================================== - -Sets the permissions of a member or role, but takes an ``Overwrite`` part instead of two arrays. Returns nothing in a promise. - -.. _parameters-1: - -Parameters ----------- - -+-----------+------------------------------------------+--------------------------------------+----------+ -| name | type | description | default | -+===========+==========================================+======================================+==========+ -| part | `Member <#member>`_ or `Role <#role>`_ | The part to apply the permissions to | required | -+-----------+------------------------------------------+--------------------------------------+----------+ -| overwrite | ``Overwrite`` part | The overwrite to apply | required | -+-----------+------------------------------------------+--------------------------------------+----------+ - -.. code:: php - - $allow = new ChannelPermission($discord, [ - 'send_messages' => true, - 'attach_files' => true, - ]); - - $deny = new ChannelPermission($discord, [ - 'add_reactions' => true, - ]); - - $overwrite = $channel->overwrites->create([ - 'allow' => $allow, - 'deny' => $deny, - ]); - - // Member can send messages and attach files, - // but can't add reactions to message. - $channel->setOverwrite($member, $overwrite)->then(function () { - // ... - })->done(); - -Move member to voice channel -============================ - -Moves a member to a voice channel if the member is already in one. Takes a `Member <#member>`_ object or member ID and returns nothing in a promise. - -.. _parameters-2: - -Parameters ----------- - -====== ============================== ================== ======== -name type description default -====== ============================== ================== ======== -member `Member <#member>`_ or string The member to move required -====== ============================== ================== ======== - -.. code:: php - - $channel->moveMember($member)->then(function () { - // ... - })->done(); - - // or - - $channel->moveMember('123213123123213')->then(function () { - // ... - })->done(); - -Muting and unmuting member in voice channel -=========================================== - -Mutes or unmutes a member in the voice channel. Takes a `Member <#member>`_ object or member ID and returns nothing in a promise. - -.. _parameters-3: - -Parameters ----------- - -====== ============================== ========================= ======== -name type description default -====== ============================== ========================= ======== -member `Member <#member>`_ or string The member to mute/unmute required -====== ============================== ========================= ======== - -.. code:: php - - // muting a member with a member object - $channel->muteMember($member)->then(function () { - // ... - })->done(); - - // unmuting a member with a member ID - $channel->unmuteMember('123213123123213')->then(function () { - // ... - })->done(); - -Creating an invite -================== - -Creates an invite for a channel. Takes an array of options and returns the new invite in a promise. - -.. _parameters-4: - -Parameters ----------- - -Parameters are in an array. - -+-----------------------+--------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------+ -| name | type | description | default | -+=======================+========+==================================================================================================================================================================================+===========+ -| max_age | int | Maximum age of the invite in seconds | 24 hours | -+-----------------------+--------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------+ -| max_uses | int | Maximum uses of the invite | unlimited | -+-----------------------+--------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------+ -| temporary | bool | Whether the invite grants temporary membership | false | -+-----------------------+--------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------+ -| unique | bool | Whether the invite should be unique | false | -+-----------------------+--------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------+ -| target_type | int | The type of target for this voice channel invite | | -+-----------------------+--------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------+ -| target_user_id | string | The id of the user whose stream to display for this invite, required if target_type is ``Invite::TARGET_TYPE_STREAM``, the user must be streaming in the channel | | -+-----------------------+--------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------+ -| target_application_id | string | The id of the embedded application to open for this invite, required if target_type is ``Invite::TARGET_TYPE_EMBEDDED_APPLICATION``, the application must have the EMBEDDED flag | | -+-----------------------+--------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------+ - -.. code:: php - - $channel->createInvite([ - 'max_age' => 60, // 1 minute - 'max_uses' => 5, // 5 uses - ])->then(function (Invite $invite) { - // ... - })->done(); - -Bulk deleting messages -====================== - -Deletes many messages at once. Takes an array of messages and/or message IDs and returns nothing in a promise. - -.. _parameters-5: - -Parameters ----------- - -+----------+----------------------------------------------------+------------------------+---------+ -| name | type | description | default | -+==========+====================================================+========================+=========+ -| messages | array or collection of messages and/or message IDs | The messages to delete | default | -+----------+----------------------------------------------------+------------------------+---------+ -| reason | string | Reason for Audit Log | | -+----------+----------------------------------------------------+------------------------+---------+ - -.. code:: php - - $channel->deleteMessages([ - $message1, - $message2, - $message3, - 'my_message4_id', - 'my_message5_id', - ])->then(function () { - // ... - })->done(); - -Getting message history -======================= - -Retrieves message history with an array of options. Returns a collection of messages in a promise. - -.. _parameters-6: - -Parameters ----------- - -+--------+--------------------------------------+----------------------------------------------+---------+ -| name | type | description | default | -+========+======================================+==============================================+=========+ -| before | `Message <#message>`_ or message ID | Get messages before this message | | -+--------+--------------------------------------+----------------------------------------------+---------+ -| after | `Message <#message>`_ or message ID | Get messages after this message | | -+--------+--------------------------------------+----------------------------------------------+---------+ -| around | `Message <#message>`_ or message ID | Get messages around this message | | -+--------+--------------------------------------+----------------------------------------------+---------+ -| limit | int | Number of messages to get, between 1 and 100 | 100 | -+--------+--------------------------------------+----------------------------------------------+---------+ - -.. code:: php - - $channel->getMessageHistory([ - 'limit' => 5, - ])->then(function (Collection $messages) { - foreach ($messages as $message) { - // ... - } - })->done(); - -Limit delete messages -===================== - -Deletes a number of messages, in order from the last one sent. Takes an integer of messages to delete and returns an empty promise. - -.. _parameters-7: - -Parameters ----------- - -+--------+--------+--------------------------------------------------+----------+ -| name | type | description | default | -+========+========+==================================================+==========+ -| value | int | number of messages to delete, in the range 1-100 | required | -+--------+--------+--------------------------------------------------+----------+ -| reason | string | Reason for Audit Log | | -+--------+--------+--------------------------------------------------+----------+ - -.. code:: php - - // deletes the last 15 messages - $channel->limitDelete(15)->then(function () { - // ... - })->done(); - -Pin or unpin a message -====================== - -Pins or unpins a message from the channel pinboard. Takes a message object and returns the same message in a promise. - -.. _parameters-8: - -Parameters ----------- - -======= ====================== ======================== ======== -name type description default -======= ====================== ======================== ======== -message `Message <#message>`_ The message to pin/unpin required -reason string Reason for Audit Log -======= ====================== ======================== ======== - -.. code:: php - - // to pin - $channel->pinMessage($message)->then(function (Message $message) { - // ... - })->done(); - - // to unpin - $channel->unpinMessage($message)->then(function (Message $message) { - // ... - })->done(); - -Get invites -=========== - -Gets the channels invites. Returns a collection of invites in a promise. - -.. code:: php - - $channel->getInvites()->then(function (Collection $invites) { - foreach ($invites as $invite) { - // ... - } - })->done(); - -Send a message -============== - -Sends a message to the channel. Takes a message builder. Returns the message in a promise. - -.. _parameters-9: - -Parameters ----------- - -+---------+-----------------------------+-------------------------+----------+ -| name | type | description | default | -+=========+=============================+=========================+==========+ -| message | MessageBuilder | Message content | required | -+---------+-----------------------------+-------------------------+----------+ - -.. code:: php - - $message = MessageBuilder::new() - ->setContent('Hello, world!') - ->addEmbed($embed) - ->setTts(true); - - $channel->sendMessage($message)->then(function (Message $message) { - // ... - })->done(); - -Send an embed -============= - -Sends an embed to the channel. Takes an embed and returns the sent message in a promise. - -.. _parameters-10: - -Parameters ----------- - -===== ================== ================= ======== -name type description default -===== ================== ================= ======== -embed `Embed <#embed>`_ The embed to send required -===== ================== ================= ======== - -.. code:: php - - $channel->sendEmbed($embed)->then(function (Message $message) { - // ... - })->done(); - -Broadcast typing -================ - -Broadcasts to the channel that the bot is typing. Genreally, bots should *not* use this route, but if a bot takes a while to process a request it could be useful. Returns nothing in a promise. - -.. code:: php - - $channel->broadcastTyping()->then(function () { - // ... - })->done(); - -Create a message collector -========================== - -Creates a message collector, which calls a filter function on each message received and inserts it into a collection if the function returns ``true``. The collector is resolved after a specified time or limit, whichever is given or whichever happens first. Takes a callback, an array of options and returns a collection of messages in a promise. - -.. _parameters-11: - -Parameters ----------- - -======= ======== ===================================== ======== -name type description default -======= ======== ===================================== ======== -filter callable The callback to call on every message required -options array Array of options [] -======= ======== ===================================== ======== - -.. code:: php - - // Collects 5 messages containing hello - $channel->createMessageCollector(fn ($message) => strpos($message->content, 'hello') !== false, [ - 'limit' => 5, - ])->then(function (Collection $messages) { - foreach ($messages as $message) { - // ... - } - })->done(); - -Options -------- - -One of ``time`` or ``limit`` is required, or the collector will not resolve. - -+-------+------+------------------------------------------------------------------+ -| name | type | description | -+=======+======+==================================================================+ -| time | int | The time after which the collector will resolve, in milliseconds | -+-------+------+------------------------------------------------------------------+ -| limit | int | The number of messages to be collected | -+-------+------+------------------------------------------------------------------+ - -Get pinned messages -=================== - -Returns the messages pinned in the channel. Only applicable for text channels. Returns a collection of messages in a promise. - -.. code:: php - - $channel->getPinnedMessages()->then(function (Collection $messages) { - foreach ($messages as $message) { - // $message->... - } - })->done(); diff --git a/vendor/team-reflex/discord-php/guide/parts/guild.rst b/vendor/team-reflex/discord-php/guide/parts/guild.rst deleted file mode 100644 index ff331aa..0000000 --- a/vendor/team-reflex/discord-php/guide/parts/guild.rst +++ /dev/null @@ -1,184 +0,0 @@ -===== -Guild -===== - - -Guilds represent Discord ‘servers’. - -Repositories -============ - -+------------------------+---------------------------------------+----------------------------------------------------------------------------------+ -| name | type | notes | -+========================+=======================================+==================================================================================+ -| roles | `Role <#role>`_ | | -+------------------------+---------------------------------------+----------------------------------------------------------------------------------+ -| emojis | `Emoji <#emoji>`_ | | -+------------------------+---------------------------------------+----------------------------------------------------------------------------------+ -| members | `Member <#member>`_ | May not contain offline members, see the ```loadAllMembers`` option <#basics>`_ | -+------------------------+---------------------------------------+----------------------------------------------------------------------------------+ -| channels | `Channel <#channel>`_ | | -+------------------------+---------------------------------------+----------------------------------------------------------------------------------+ -| stage_instances | `StageInstance <#stage_instance>`_ | | -+------------------------+---------------------------------------+----------------------------------------------------------------------------------+ -| guild_scheduled_events | `ScheduledEvent <#scheduled_event>`_ | | -+------------------------+---------------------------------------+----------------------------------------------------------------------------------+ -| stickers | `Sticker <#sticker>`_ | | -+------------------------+---------------------------------------+----------------------------------------------------------------------------------+ -| invites | `Invite <#invite>`_ | Not initially loaded | -+------------------------+---------------------------------------+----------------------------------------------------------------------------------+ -| bans | `Ban <#ban>`_ | Not initially loaded without ```retrieveBans`` option <#basics>`_ | -+------------------------+---------------------------------------+----------------------------------------------------------------------------------+ -| commands | `Command <#command>`_ | Not initially loaded | -+------------------------+---------------------------------------+----------------------------------------------------------------------------------+ -| templates | `GuildTemplate <#guild_template>`_ | Not initially loaded | -+------------------------+---------------------------------------+----------------------------------------------------------------------------------+ -| integrations | `Integration <#integration>`_ | Not initially loaded | -+------------------------+---------------------------------------+----------------------------------------------------------------------------------+ - -Creating a role -=============== - -Shortcut for ``$guild->roles->save($role);``. Takes an array of parameters for a role and returns a role part in a promise. - -Parameters ----------- - -+---------------+---------+------------------------------+-----------------------+ -| name | type | description | default | -+===============+=========+==============================+=======================+ -| name | string | Role name | new role | -+---------------+---------+------------------------------+-----------------------+ -| permissions | string | Bitwise value of permissions | @everyone permissions | -+---------------+---------+------------------------------+-----------------------+ -| color | integer | RGB color value | 0 | -+---------------+---------+------------------------------+-----------------------+ -| hoist | bool | Hoisted role? | false | -+---------------+---------+------------------------------+-----------------------+ -| icon | string | image data for Role icon | null | -+---------------+---------+------------------------------+-----------------------+ -| unicode_emoji | string | unicode emoji for Role icon | null | -+---------------+---------+------------------------------+-----------------------+ -| mentionable | bool | Mentionable role? | false | -+---------------+---------+------------------------------+-----------------------+ - -.. code:: php - - $guild->createRole([ - 'name' => 'New Role', - // ... - ])->then(function (Role $role) { - // ... - })->done(); - -Transferring ownership of guild -=============================== - -Transfers the ownership of the guild to another member. The bot must own the guild to be able to transfer ownership. Takes a member object or a member ID and returns nothing in a promise. - -.. _parameters-1: - -Parameters ----------- - -====== =================== =========================== -name type description -====== =================== =========================== -member Member or member ID The member to get ownership -reason string Reason for Audit Log -====== =================== =========================== - -.. code:: php - - $guild->transferOwnership($member)->then(...)->done(); - // or - $guild->transferOwnership('member_id')->then(...)->done(); - -Unbanning a member with a User or user ID -========================================= - -Unbans a member when passed a ``User`` object or a user ID. If you have the ban object, you can do ``$guild->bans->delete($ban);``. Returns nothing in a promise. - -.. _parameters-2: - -Parameters ----------- - -======= =================== ================= -name type description -======= =================== ================= -user_id ``User`` or user ID The user to unban -======= =================== ================= - -.. code:: php - - $guild->unban($user)->then(...)->done(); - // or - $guild->unban('user_id')->then(...)->done(); - -Querying the Guild audit log -============================ - -Takes an array of parameters to query the audit log for the guild. Returns an Audit Log object inside a promise. - -.. _parameters-3: - -Parameters ----------- - -+-------------+-----------------------------------+--------------------------------------------------------+ -| name | type | description | -+=============+===================================+========================================================+ -| user_id | string, int, ``Member``, ``User`` | Filters audit log by who performed the action | -+-------------+-----------------------------------+--------------------------------------------------------+ -| action_type | ``Entry`` constants | Filters audit log by the type of action | -+-------------+-----------------------------------+--------------------------------------------------------+ -| before | string, int, ``Entry`` | Retrieves audit logs before the given audit log object | -+-------------+-----------------------------------+--------------------------------------------------------+ -| limit | int between 1 and 100 | Limits the amount of audit log entries to return | -+-------------+-----------------------------------+--------------------------------------------------------+ - -.. code:: php - - $guild->getAuditLog([ - 'user_id' => '123456', - 'action_type' => Entry::CHANNEL_CREATE, - 'before' => $anotherEntry, - 'limit' => 12, - ])->then(function (AuditLog $auditLog) { - foreach ($auditLog->audit_log_entries as $entry) { - // $entry->... - } - })->done(); - -Creating an Emoji -================= - -Takes an array of parameters for an emoji and returns an emoji part in a promise. Use the second parameter to specify local file path instead. - -.. _parameters-4: - -Parameters ----------- - -+-------+--------+------------------------------------------------------------------+------------+ -| name | type | description | default | -+=======+========+==================================================================+============+ -| name | string | Emoji name | *required* | -+-------+--------+------------------------------------------------------------------+------------+ -| image | string | image data with base64 format, ignored if file path is specified | | -+-------+--------+------------------------------------------------------------------+------------+ -| roles | array | Role IDs that are allowed to use the emoji | [] | -+-------+--------+------------------------------------------------------------------+------------+ - -.. code:: php - - $guild->createEmoji([ - 'name' => 'elephpant', - // ... - ], - '/path/to/file.jpg', - 'audit-log reason' - )->then(function (Emoji $emoji) { - // ... - })->done(); \ No newline at end of file diff --git a/vendor/team-reflex/discord-php/guide/parts/index.rst b/vendor/team-reflex/discord-php/guide/parts/index.rst deleted file mode 100644 index 16fb188..0000000 --- a/vendor/team-reflex/discord-php/guide/parts/index.rst +++ /dev/null @@ -1,64 +0,0 @@ -.. toctree:: - :hidden: - - guild - channel - member - message - user - -===== -Parts -===== - - -Parts is the term used for the data structures inside Discord. All parts share a common set of attributes and methods. - -Parts have a set list of fillable fields. If you attempt to set a field that is not accessible, it will not warn you. - -To create a part object, you can use the ``new`` syntax or the ``factory`` method. For example, creating a ``Message`` part: - -.. code:: php - - $message = new Message($discord); - // or - $message = $discord->factory->create(Message::class); - -Part attributes can be accessed similar to an object or like an array: - -.. code:: php - - $message->content = 'hello!'; - // or - $message['content'] = 'hello!'; - - echo $message->content; - // or - echo $message['content']; - -Filling a part with data -======================== - -The ``->fill(array $attributes)`` function takes an array of attributes to fill the part. If a field is found that is not ‘fillable’, it is skipped. - -.. code:: php - - $message->fill([ - 'content' => 'hello!', - ]); - -Getting the raw attributes of a part -==================================== - -The ``->getRawAttributes()`` function returns the array representation of the part. - -.. code:: php - - $attributes = $message->getRawAttributes(); - /** - * [ - * "id" => "", - * "content" => "", - * // ... - * ] - */ diff --git a/vendor/team-reflex/discord-php/guide/parts/member.rst b/vendor/team-reflex/discord-php/guide/parts/member.rst deleted file mode 100644 index 48388e9..0000000 --- a/vendor/team-reflex/discord-php/guide/parts/member.rst +++ /dev/null @@ -1,271 +0,0 @@ -====== -Member -====== - - -Members represent a user in a guild. There is a member object for every guild-user relationship, meaning that there will be multiple member objects in the Discord client with the same user ID, but they will belong to different guilds. - -A member object can also be serialised into a mention string. For example: - -.. code:: php - - $discord->on(Event::MESSAGE_CREATE, function (Message $message) { - // Hello <@member_id>! - // Note: `$message->member` will be `null` if the message originated from - // a private message, or if the member object was not cached. - $message->channel->sendMessage('Hello '.$message->member.'!'); - }); - -Properties -========== - -+------------------------------+------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| name | type | description | -+==============================+==========================================+==========================================================================================================================================================+ -| user | `User <#user>`_ | the user part of the member | -+------------------------------+------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| nick | string | the nickname of the member | -+------------------------------+------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| avatar | ?string | The guild avatar URL of the member | -+------------------------------+------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| avatar_hash | ?string | The guild avatar hash of the member | -+------------------------------+------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| roles | Collection of `Roles <#role>`_ | roles the member is a part of | -+------------------------------+------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| joined_at | ``Carbon`` timestamp | when the member joined the guild | -+------------------------------+------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| deaf | bool | whether the member is deafened | -+------------------------------+------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| mute | bool | whether the member is muted | -+------------------------------+------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| pending | ?string | whether the user has not yet passed the guild’s Membership Screening requirements | -+------------------------------+------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| communication_disabled_until | ``?Carbon`` | when the user’s timeout will expire and the user will be able to communicate in the guild again, null or a time in the past if the user is not timed out | -+------------------------------+------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| id | string | the user ID of the member | -+------------------------------+------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| username | string | the username of the member | -+------------------------------+------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| discriminator | string | the four digit discriminator of the member | -+------------------------------+------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| displayname | string | nick/username#discriminator | -+------------------------------+------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| guild | `Guild <#guild>`_ | the guild the member is a part of | -+------------------------------+------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| guild_id | string | the id of the guild the member is a part of | -+------------------------------+------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| string | status | the status of the member | -+------------------------------+------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| game | `Activity <#activity>`_ | the current activity of the member | -+------------------------------+------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| premium_since | ``Carbon`` timestamp | when the member started boosting the guild | -+------------------------------+------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ -| activities | Collection of `Activities <#activity>`_ | the current activities of the member | -+------------------------------+------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ - -Ban the member -============== - -Bans the member from the guild. Returns a `Ban <#ban>`_ part in a promise. - -Parameters ----------- - -============ ====== ==================================================== -name type description -============ ====== ==================================================== -daysToDelete int number of days back to delete messages, default none -reason string reason for the ban -============ ====== ==================================================== - -.. code:: php - - $member->ban(5, 'bad person')->then(function (Ban $ban) { - // ... - })->done(); - -Set the nickname of the member -============================== - -Sets the nickname of the member. Requires the ``MANAGE_NICKNAMES`` permission or ``CHANGE_NICKNAME`` if changing self nickname. Returns nothing in a promise. - -.. _parameters-1: - -Parameters ----------- - -==== ====== =================================================== -name type description -==== ====== =================================================== -nick string nickname of the member, null to clear, default null -==== ====== =================================================== - -.. code:: php - - $member->setNickname('newnick')->then(function () { - // ... - })->done(); - -Move member to channel -====================== - -Moves the member to another voice channel. Member must already be in a voice channel. Takes a channel or channel ID and returns nothing in a promise. - -.. _parameters-2: - -Parameters ----------- - -+---------+----------------------------------+-----------------------------------+ -| name | type | description | -+=========+==================================+===================================+ -| channel | `Channel <#channel>`_ or string | the channel to move the member to | -+---------+----------------------------------+-----------------------------------+ - -.. code:: php - - $member->moveMember($channel)->then(function () { - // ... - })->done(); - - // or - - $member->moveMember('123451231231')->then(function () { - // ... - })->done(); - -Add member to role -================== - -Adds the member to a role. Takes a role or role ID and returns nothing in a promise. - -.. _parameters-3: - -Parameters ----------- - -==== ========================== ============================= -name type description -==== ========================== ============================= -role `Role <#role>`_ or string the role to add the member to -==== ========================== ============================= - -.. code:: php - - $member->addRole($role)->then(function () { - // ... - })->done(); - - // or - - $member->addRole('1231231231')->then(function () { - // ... - })->done(); - -Remove member from role -======================= - -Removes the member from a role. Takes a role or role ID and returns nothing in a promise. - -.. _parameters-4: - -Parameters ----------- - -==== ========================== ================================== -name type description -==== ========================== ================================== -role `Role <#role>`_ or string the role to remove the member from -==== ========================== ================================== - -.. code:: php - - $member->removeRole($role)->then(function () { - // ... - })->done(); - - // or - - $member->removeRole('1231231231')->then(function () { - // ... - })->done(); - -Timeout member -============== - -Times out the member in the server. Takes a carbon or null to remove. Returns nothing in a promise. - -.. _parameters-5: - -Parameters ----------- - -+------------------------------+------------------------+----------------------------------+ -| name | type | description | -+==============================+========================+==================================+ -| communication_disabled_until | ``Carbon`` or ``null`` | the time for timeout to lasts on | -+------------------------------+------------------------+----------------------------------+ - -.. code:: php - - $member->timeoutMember(new Carbon('6 hours'))->then(function () { - // ... - })->done(); - - // to remove - $member->timeoutMember()->then(function () { - // ... - })->done(); - -Get permissions of member -========================= - -Gets the effective permissions of the member: - When given a channel, returns the effective permissions of a member in a channel. - Otherwise, returns the effective permissions of a member in a guild. - -Returns a `role permission <#permissions>`_ in a promise. - -.. _parameters-6: - -Parameters ----------- - -+---------+--------------------------------+--------------------------------------------------+ -| name | type | description | -+=========+================================+==================================================+ -| channel | `Channel <#channel>`_ or null | the channel to get the effective permissions for | -+---------+--------------------------------+--------------------------------------------------+ - -.. code:: php - - $member->getPermissions($channel)->then(function (RolePermission $permission) { - // ... - })->done(); - - // or - - $member->getPermissions()->then(function (RolePermission $permission) { - // ... - })->done(); - -Get guild specific avatar URL -============================= - -Gets the server-specific avatar URL for the member. Only call this function if you need to change the format or size of the image, otherwise use ``$member->avatar``. Returns a string. - -.. _parameters-7: - -Parameters ----------- - -+--------+--------+--------------------------------------------------------------------------------+ -| name | type | description | -+========+========+================================================================================+ -| format | string | format of the image, one of png, jpg or webp, default webp and gif if animated | -+--------+--------+--------------------------------------------------------------------------------+ -| size | int | size of the image, default 1024 | -+--------+--------+--------------------------------------------------------------------------------+ - -.. code:: php - - $url = $member->getAvatarAttribute('png', 2048); - echo $url; // https://cdn.discordapp.com/guilds/:guild_id/users/:id/avatars/:avatar_hash.png?size=2048 diff --git a/vendor/team-reflex/discord-php/guide/parts/message.rst b/vendor/team-reflex/discord-php/guide/parts/message.rst deleted file mode 100644 index 3fda773..0000000 --- a/vendor/team-reflex/discord-php/guide/parts/message.rst +++ /dev/null @@ -1,322 +0,0 @@ -======= -Message -======= - - -Messages are present in channels and can be anything from a cross post to a reply and a regular message. - -Properties -========== - -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| name | type | description | -+========================================+=============================================+====================================================================================================+ -| id | string | id of the message | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| channel_id | string | id of the channel the message was sent in | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| channel | `Channel <#channel>`_ | channel the message was sent in | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| guild_id | string or null | the unique identifier of the guild that the channel the message was sent in belongs to | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| guild | `Guild <#guild>`_ or null | the guild that the message was sent in | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| content | string | content of the message | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| type | int, `Message <#message>`_ constants | type of the message | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| mentions | Collection of `Users <#user>`_ | users mentioned in the message | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| author | `User <#user>`_ | the author of the message | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| user_id | string | id of the user that sent the message | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| member | `Member <#member>`_ | the member that sent this message, or null if it was in a private message | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| mention_everyone | bool | whether @everyone was mentioned | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| timestamp | ``Carbon`` timestamp | the time the message was sent | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| edited_timestamp | ``Carbon`` timestamp or null | the time the message was edited or null if it hasn’t been edited | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| tts | bool | whether text to speech was set when the message was sent | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| attachments | Collection of `Attachments <#attachment>`_ | array of attachments | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| embeds | Collection of `Embeds <#embed>`_ | embeds contained in the message | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| nonce | string | randomly generated string for client | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| mention_roles | Collection of `Roles <#role>`_ | any roles that were mentioned in the message | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| mention_channels | Collection of `Channels <#channel>`_ | any channels that were mentioned in the message | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| pinned | bool | whether the message is pinned | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| reactions | reaction repository | any reactions on the message | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| webhook_id | string | id of the webhook that sent the message | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| activity | object | current message activity, requires rich present | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| application | object | application of the message, requires rich presence | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| application_id | string | if the message is a response to an Interaction, this is the id of the interaction’s application | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| message_reference | object | message that is referenced by the message | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| referenced_message | `Message <#message>`_ | the message that is referenced in a reply | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| interaction | object | the interaction which triggered the message (application commands) | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| thread | `Thread <#thread>`_ | the thread that the message was sent in | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| components | `Component <#component>`_ | sent if the message contains components like buttons, action rows, or other interactive components | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| sticker_items | `Sticker <#sticker>`_ | stickers attached to the message | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| flags | int | message flags, see below 5 properties | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| crossposted | bool | whether the message has been crossposted | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| is_crosspost | bool | whether the message is a crosspost | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| suppress_embeds | bool | whether embeds have been supressed | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| source_message_deleted | bool | whether the source message has been deleted e.g. crosspost | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| urgent | bool | whether message is urgent | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| has_thread | bool | whether this message has an associated thread, with the same id as the message | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| ephemeral | bool | whether this message is only visible to the user who invoked the Interaction | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| loading | bool | whether this message is an Interaction Response and the bot is “thinking” | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ -| failed_to_mention_some_roles_in_thread | bool | this message failed to mention some roles and add their members to the thread | -+----------------------------------------+---------------------------------------------+----------------------------------------------------------------------------------------------------+ - -Reply to a message -================== - -Sends a “reply” to the message. Returns the new message in a promise. - -Parameters ----------- - -==== ====== =========================== -name type description -==== ====== =========================== -text string text to send in the message -==== ====== =========================== - -.. code:: php - - $message->reply('hello!')->then(function (Message $message) { - // ... - })->done(); - -Crosspost a message -=================== - -Crossposts a message to any channels that are following the channel the message was sent in. Returns the crossposted message in a promise. - -.. code:: php - - $message->crosspost()->then(function (Message $message) { - // ... - })->done(); - -Reply to a message after a delay -================================ - -Similar to replying to a message, also takes a ``delay`` parameter in which the reply will be sent after. Returns the new message in a promise. - -.. _parameters-1: - -Parameters ----------- - -===== ====== ======================================================== -name type description -===== ====== ======================================================== -text string text to send in the message -delay int time in milliseconds to delay before sending the message -===== ====== ======================================================== - -.. code:: php - - // <@message_author_id>, hello! after 1.5 seconds - $message->delayedReply('hello!', 1500)->then(function (Message $message) { - // ... - })->done(); - -React to a message -================== - -Adds a reaction to a message. Takes an `Emoji <#emoji>`_ object, a custom emoji string or a unicode emoji. Returns nothing in a promise. - -.. _parameters-2: - -Parameters ----------- - -======== ============================ ======================= -name type description -======== ============================ ======================= -emoticon `Emoji <#emoji>`_ or string the emoji to react with -======== ============================ ======================= - -.. code:: php - - $message->react($emoji)->then(function () { - // ... - })->done(); - - // or - - $message->react(':michael:251127796439449631')->then(function () { - // ... - })->done(); - - // or - - $message->react('😀')->then(function () { - // ... - })->done(); - -Delete reaction(s) from a message -================================= - -Deletes reaction(s) from a message. Has four methods of operation, described below. Returns nothing in a promise. - -.. _parameters-3: - -Parameters ----------- - -+----------+----------------------------------+----------------------------------------------------------------------------------------------------------------------------------------+ -| name | type | description | -+==========+==================================+========================================================================================================================================+ -| type | int | type of deletion, one of ``Message::REACT_DELETE_ALL, Message::REACT_DELETE_ME, Message:REACT_DELETE_ID, Message::REACT_DELETE_EMOJI`` | -+----------+----------------------------------+----------------------------------------------------------------------------------------------------------------------------------------+ -| emoticon | `Emoji <#emoji>`_, string, null | emoji to delete, require if using ``DELETE_ID``, ``DELETE_ME`` or ``DELETE_EMOJI`` | -+----------+----------------------------------+----------------------------------------------------------------------------------------------------------------------------------------+ -| id | string, null | id of the user to delete reactions for, required by ``DELETE_ID`` | -+----------+----------------------------------+----------------------------------------------------------------------------------------------------------------------------------------+ - -Delete all reactions --------------------- - -.. code:: php - - $message->deleteReaction(Message::REACT_DELETE_ALL)->then(function () { - // ... - })->done(); - -Delete reaction by current user -------------------------------- - -.. code:: php - - $message->deleteReaction(Message::REACT_DELETE_ME, $emoji)->then(function () { - // ... - })->done(); - -Delete reaction by another user -------------------------------- - -.. code:: php - - $message->deleteReaction(Message::REACT_DELETE_ID, $emoji, 'member_id')->then(function () { - // ... - })->done(); - -Delete all reactions of one emoji ---------------------------------- - -.. code:: php - - $message->deleteReaction(Message::REACT_DELETE_EMOJI, $emoji)->then(function () { - // ... - })->done(); - -Delete the message -================== - -Deletes the message. Returns nothing in a promise. - -.. code:: php - - $message->delete()->then(function () { - // ... - })->done(); - -Edit the message -================ - -Updates the message. Takes a message builder. Returns the updated message in a promise. - -.. code:: php - - $message->edit(MessageBuilder::new() - ->setContent('new content'))->then(function (Message $message) { - // ... - })->done(); - -Note fields not set in the builder will not be updated, and will retain their previous value. - -Create reaction collector -========================= - -Creates a reaction collector. Works similar to `Channel <#channel>`_\ ’s reaction collector. Takes a callback and an array of options. Returns a collection of reactions in a promise. - -Options -------- - -At least one of ``time`` or ``limit`` must be specified. - -+-------+--------------+------------------------------------------------------------------+ -| name | type | description | -+=======+==============+==================================================================+ -| time | int or false | time in milliseconds until the collector finishes | -+-------+--------------+------------------------------------------------------------------+ -| limit | int or false | amount of reactions to be collected until the collector finishes | -+-------+--------------+------------------------------------------------------------------+ - -.. code:: php - - $message->createReactionCollector(function (MessageReaction $reaction) { - // return true or false depending on whether you want the reaction to be collected. - return $reaction->user_id == '123123123123'; - }, [ - // will resolve after 1.5 seconds or 2 reactions - 'time' => 1500, - 'limit' => 2, - ])->then(function (Collection $reactions) { - foreach ($reactions as $reaction) { - // ... - } - })->done(); - -Add embed to message -==================== - -Adds an embed to a message. Takes an embed object. Will overwrite the old embed (if there is one). Returns the updated message in a promise. - -.. _parameters-4: - -Parameters ----------- - -===== ================== ================ -name type description -===== ================== ================ -embed `Embed <#embed>`_ the embed to add -===== ================== ================ - -.. code:: php - - $message->addEmbed($embed)->then(function (Message $message) { - // ... - })->done(); diff --git a/vendor/team-reflex/discord-php/guide/parts/user.rst b/vendor/team-reflex/discord-php/guide/parts/user.rst deleted file mode 100644 index c9305c1..0000000 --- a/vendor/team-reflex/discord-php/guide/parts/user.rst +++ /dev/null @@ -1,128 +0,0 @@ -==== -User -==== - - -User represents a user of Discord. The bot can “see” any users that to a guild that they also belong to. - -Properties -========== - -+---------------+---------+--------------------------------------------------------------------------+ -| name | type | description | -+===============+=========+==========================================================================+ -| id | string | id of the user | -+---------------+---------+--------------------------------------------------------------------------+ -| username | string | username of the user | -+---------------+---------+--------------------------------------------------------------------------+ -| discriminator | string | four-digit discriminator of the user | -+---------------+---------+--------------------------------------------------------------------------+ -| displayname | string | username#discriminator | -+---------------+---------+--------------------------------------------------------------------------+ -| avatar | string | avatar URL of the user | -+---------------+---------+--------------------------------------------------------------------------+ -| avatar_hash | string | avatar hash of the user | -+---------------+---------+--------------------------------------------------------------------------+ -| bot | bool | whether the user is a bot | -+---------------+---------+--------------------------------------------------------------------------+ -| system | bool | whetehr the user is a system user e.g. Clyde | -+---------------+---------+--------------------------------------------------------------------------+ -| mfa_enabled | bool | whether the user has multifactor authentication enabled | -+---------------+---------+--------------------------------------------------------------------------+ -| banner | ?string | the banner URL of the user. | -+---------------+---------+--------------------------------------------------------------------------+ -| banner_hash | ?string | the banner URL of the user. | -+---------------+---------+--------------------------------------------------------------------------+ -| accent_color | ?int | the user’s banner color encoded as an integer representation | -+---------------+---------+--------------------------------------------------------------------------+ -| locale | ?string | locale of the user | -+---------------+---------+--------------------------------------------------------------------------+ -| verified | bool | whether the user is verified | -+---------------+---------+--------------------------------------------------------------------------+ -| email | ?string | email of the user | -+---------------+---------+--------------------------------------------------------------------------+ -| flags | ?int | user flags, see the ``User`` classes constants. use bit masks to compare | -+---------------+---------+--------------------------------------------------------------------------+ -| premium_type | ?int | type of nitro, see the ``User`` classes constants | -+---------------+---------+--------------------------------------------------------------------------+ -| public_flags | ?int | see flags above | -+---------------+---------+--------------------------------------------------------------------------+ - -Get private channel for user -============================ - -Gets the private direct message channel for the user. Returns a `Channel <#channel>`_ in a promise. - -.. code:: php - - $user->getPrivateChannel()->then(function (Channel $channel) { - // ... - })->done(); - -Send user a message -=================== - -Sends a private direct message to the user. Note that your bot account can be suspended for doing this, consult Discord documentation for more information. Returns the message in a promise. - -Parameters ----------- - -======= ====== ============================================= -name type description -======= ====== ============================================= -message string content to send -tts bool whether to send the message as text to speech -embed Embed embed to send in the message -======= ====== ============================================= - -.. code:: php - - $user->sendMessage('Hello, world!', false, $embed)->then(function (Message $message) { - // ... - })->done(); - -Get avatar URL -============== - -Gets the avatar URL for the user. Only call this function if you need to change the format or size of the image, otherwise use ``$user->avatar``. Returns a string. - -.. _parameters-1: - -Parameters ----------- - -+--------+--------+-------------------------------------------------------------------------------+ -| name | type | description | -+========+========+===============================================================================+ -| format | string | format of the image, one of png, jpg or webp, default webp or gif if animated | -+--------+--------+-------------------------------------------------------------------------------+ -| size | int | size of the image, default 1024 | -+--------+--------+-------------------------------------------------------------------------------+ - -.. code:: php - - $url = $user->getAvatarAttribute('png', 2048); - echo $url; // https://cdn.discordapp.com/avatars/:user_id/:avatar_hash.png?size=2048 - -Get banner URL -============== - -Gets the banner URL for the user. Only call this function if you need to change the format or size of the image, otherwise use ``$user->banner``. Returns a string or ``null`` if user has no banner image set. - -.. _parameters-2: - -Parameters ----------- - -+--------+--------+------------------------------------------------------------------------------+ -| name | type | description | -+========+========+==============================================================================+ -| format | string | format of the image, one of png, jpg or webp, default png or gif if animated | -+--------+--------+------------------------------------------------------------------------------+ -| size | int | size of the image, default 600 | -+--------+--------+------------------------------------------------------------------------------+ - -.. code:: php - - $url = $user->getBannerAttribute('png', 1024); - echo $url; // https://cdn.discordapp.com/banners/:user_id/:banner_hash.png?size=1024 diff --git a/vendor/team-reflex/discord-php/guide/permissions.rst b/vendor/team-reflex/discord-php/guide/permissions.rst deleted file mode 100644 index a1d45ed..0000000 --- a/vendor/team-reflex/discord-php/guide/permissions.rst +++ /dev/null @@ -1,123 +0,0 @@ -=========== -Permissions -=========== - - -There are two types of permissions - channel permissions and role permissions. They are represented by their individual classes, but both extend the same abstract permission class. - -Properties -========== - -===================== ==== ====================== -name type description -===================== ==== ====================== -bitwise int bitwise representation -create_instant_invite bool -manage_channels bool -view_channel bool -manage_roles bool -===================== ==== ====================== - -The rest of the properties are listed under each permission type, all are type of ``bool``. - -Methods -======= - -Get all valid permissions -------------------------- - -Returns a list of valid permissions, in key value form. Static method. - -.. code:: php - - var_dump(ChannelPermission::getPermissions()); - // [ - // 'priority_speaker' => 8, - // // ... - // ] - -Channel Permission -================== - -Represents permissions for text, voice, and stage instance channels. - -Text Channel Permissions ------------------------- - -- ``create_instant_invite`` -- ``manage_channels`` -- ``view_channel`` -- ``manage_roles`` -- ``add_reactions`` -- ``send_messages`` -- ``send_tts_messages`` -- ``manage_messages`` -- ``embed_links`` -- ``attach_files`` -- ``read_message_history`` -- ``mention_everyone`` -- ``use_external_emojis`` -- ``manage_webhooks`` -- ``use_application_commands`` -- ``manage_threads`` -- ``create_public_threads`` -- ``create_private_threads`` -- ``use_external_stickers`` -- ``send_messages_in_threads`` - -Voice Channel Permissions -------------------------- - -- ``create_instant_invite`` -- ``manage_channels`` -- ``view_channel`` -- ``manage_roles`` -- ``priority_speaker`` -- ``stream`` -- ``connect`` -- ``speak`` -- ``mute_members`` -- ``deafen_members`` -- ``move_members`` -- ``use_vad`` -- ``manage_events`` -- ``create_events`` -- ``use_embedded_activities`` was ``start_embedded_activities`` - -Stage Instance Channel Permissions ----------------------------------- - -- ``create_instant_invite`` -- ``manage_channels`` -- ``view_channel`` -- ``manage_roles`` -- ``connect`` -- ``mute_members`` -- ``deafen_members`` -- ``move_members`` -- ``request_to_speak`` -- ``manage_events`` -- ``create_events`` - -Role Permissions -================ - -Represents permissions for roles. - -Permissions ------------ - -- ``create_instant_invite`` -- ``manage_channels`` -- ``view_channel`` -- ``manage_roles`` -- ``kick_members`` -- ``ban_members`` -- ``administrator`` -- ``manage_guild`` -- ``view_audit_log`` -- ``view_guild_insights`` -- ``change_nickname`` -- ``manage_nicknames`` -- ``manage_emojis_and_stickers`` -- ``moderate_members`` \ No newline at end of file diff --git a/vendor/team-reflex/discord-php/guide/repositories.rst b/vendor/team-reflex/discord-php/guide/repositories.rst deleted file mode 100644 index b7b58d4..0000000 --- a/vendor/team-reflex/discord-php/guide/repositories.rst +++ /dev/null @@ -1,106 +0,0 @@ -============ -Repositories -============ - - -Repositories are containers for parts. They provide the functions to get, save and delete parts from the Discord servers. Different parts have many repositories. - -An example is the ``Channel`` part. It has 4 repositories: ``members``, ``messages``, ``overwrites`` and ``webhooks``. Each of these repositories contain parts that relate to the ``Channel`` part, such as messages sent in the channel (``messages`` repository), or if it is a voice channel the members currently in the channel (``members`` repository). - -A full list of repositories is provided below in the parts section, per part. - -Repositories extend the `Collection <#collection>`_ class. See the documentation on collections for extra methods. - -Examples provided below are based on the ``guilds`` repository in the Discord client. - -Methods -======= - -All repositories extend the ``AbstractRepository`` class, and share a set of core methods. - -Freshening the repository data ------------------------------- - -Clears the repository and fills it with new data from Discord. It takes no parameters and returns the repository in a promise. - -.. code:: php - - $discord->guilds->freshen()->then(function (GuildRepository $guilds) { - // ... - })->done(); - -Creating a part ---------------- - -Creates a repository part from an array of attributes and returns the part. Does not create the part in Discord servers, you must use the ``->save()`` function later. - -========== ===== ================================================= -name type description -========== ===== ================================================= -attributes array Array of attributes to fill in the part. Optional -========== ===== ================================================= - -.. code:: php - - $guild = $discord->guilds->create([ - 'name' => 'My new guild name', - ]); - // to save - $discord->guilds->save($guild)->then(...)->done(); - -Saving a part -------------- - -Creates or updates a repository part in the Discord servers. Takes a part and returns the same part in a promise. - -==== ==== ============================ -name type description -==== ==== ============================ -part Part The part to create or update -==== ==== ============================ - -.. code:: php - - $discord->guilds->save($guild)->then(function (Guild $guild) { - // ... - })->done(); - -Deleting a part ---------------- - -Deletes a repository part from the Discord servers. Takes a part and returns the old part in a promise. - -==== ==== ================== -name type description -==== ==== ================== -part Part The part to delete -==== ==== ================== - -.. code:: php - - $discord->guilds->delete($guild)->then(function (Guild $guild) { - // ... - })->done(); - -Fetch a part ------------- - -Fetches/freshens a part from the repository. If the part is present in the cache, it returns the cached version, otherwise it retrieves the part from Discord servers. Takes a part ID and returns the part in a promise. - -+-------+--------+----------------------------------------------------------------+ -| name | type | description | -+=======+========+================================================================+ -| id | string | Part ID | -+-------+--------+----------------------------------------------------------------+ -| fresh | bool | Forces the method to skip checking the cache. Default is false | -+-------+--------+----------------------------------------------------------------+ - -.. code:: php - - $discord->guilds->fetch('guild_id')->then(function (Guild $guild) { - // ... - })->done(); - // or, if you don't want to check the cache - $discord->guilds->fetch('guild_id', true)->then(function (Guild $guild) { - // ... - })->done(); \ No newline at end of file diff --git a/vendor/team-reflex/discord-php/phpdoc.dist.xml b/vendor/team-reflex/discord-php/phpdoc.dist.xml deleted file mode 100644 index fe35c30..0000000 --- a/vendor/team-reflex/discord-php/phpdoc.dist.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - DiscordPHP Documentation - - build - - - - - src - - reference - - - - guide - - guide - - - - diff --git a/vendor/team-reflex/discord-php/phpunit.xml b/vendor/team-reflex/discord-php/phpunit.xml deleted file mode 100644 index 32e2b18..0000000 --- a/vendor/team-reflex/discord-php/phpunit.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - tests - - - - - - - src - - - diff --git a/vendor/team-reflex/discord-php/src/Discord/Builders/CommandAttributes.php b/vendor/team-reflex/discord-php/src/Discord/Builders/CommandAttributes.php deleted file mode 100644 index 877dca0..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Builders/CommandAttributes.php +++ /dev/null @@ -1,300 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Builders; - -use Discord\Parts\Interactions\Command\Command; -use Discord\Parts\Interactions\Command\Option; - -use function Discord\poly_strlen; - -/** - * Application Command attributes. - * - * @see \Discord\Builders\CommandBuilder - * @see \Discord\Parts\Interactions\Command\Command - * - * @since 7.1.0 - * - * @property int $type The type of the command, defaults 1 if not set. - * @property string $name 1-32 character name of the command. - * @property ?string[]|null $name_localizations Localization dictionary for the name field. Values follow the same restrictions as name. - * @property ?string $description 1-100 character description for CHAT_INPUT commands, empty string for USER and MESSAGE commands. - * @property ?string[]|null $description_localizations Localization dictionary for the description field. Values follow the same restrictions as description. - * @property \Discord\Helpers\Collection|Option[]|null $options The parameters for the command, max 25. Only for Slash command (CHAT_INPUT). - * @property ?string $default_member_permissions Set of permissions represented as a bit set. - * @property bool|null $dm_permission Indicates whether the command is available in DMs with the app, only for globally-scoped commands. By default, commands are visible. - * @property ?bool $default_permission Whether the command is enabled by default when the app is added to a guild. SOON DEPRECATED. - * @property ?int $guild_id The optional guild ID this command is for. If not set, the command is global. - * @property bool|null $nsfw Indicates whether the command is age-restricted, defaults to `false`. - */ -trait CommandAttributes -{ - /** - * Sets the type of the command. - * - * @param int $type Type of the command. - * - * @throws \InvalidArgumentException `$type` is not 1-3. - * - * @return $this - */ - public function setType(int $type): self - { - if ($type < 1 || $type > 3) { - throw new \InvalidArgumentException('Invalid type provided.'); - } - - $this->type = $type; - - return $this; - } - - /** - * Sets the name of the command. - * - * @param string $name Name of the command. Slash command names are lowercase. - * - * @throws \LengthException `$name` is not 1-32 characters long. - * @throws \DomainException `$name` contains invalid characters. - * - * @return $this - */ - public function setName(string $name): self - { - $nameLen = poly_strlen($name); - if ($nameLen < 1) { - throw new \LengthException('Command name can not be empty.'); - } elseif ($nameLen > 32) { - throw new \LengthException('Command name can be only up to 32 characters long.'); - } - - if (isset($this->type) && $this->type == Command::CHAT_INPUT && preg_match('/^[-_\p{L}\p{N}\p{Devanagari}\p{Thai}]{1,32}$/u', $name) === 0) { - throw new \DomainException('Slash command name contains invalid characters.'); - } - - $this->name = $name; - - return $this; - } - - /** - * Sets the name of the command in another language. - * - * @param string $locale Discord locale code. - * @param string|null $name Localized name of the command. Slash command names are lowercase. - * - * @throws \LengthException `$name` is not 1-32 characters long. - * @throws \DomainException `$name` contains invalid characters. - * - * @return $this - */ - public function setNameLocalization(string $locale, ?string $name): self - { - if (isset($name)) { - $nameLen = poly_strlen($name); - if ($nameLen < 1) { - throw new \LengthException('Command name can not be empty.'); - } elseif ($nameLen > 32) { - throw new \LengthException('Command name can be only up to 32 characters long.'); - } - - if (isset($this->type) && $this->type == Command::CHAT_INPUT && preg_match('/^[-_\p{L}\p{N}\p{Devanagari}\p{Thai}]{1,32}$/u', $name) === 0) { - throw new \DomainException('Slash command localized name contains invalid characters.'); - } - } - - $this->name_localizations ??= []; - - $this->name_localizations[$locale] = $name; - - return $this; - } - - /** - * Sets the description of the command. - * - * @param string $description Description of the command - * - * @throws \LengthException `$description` is not 1-100 characters long. - * - * @return $this - */ - public function setDescription(string $description): self - { - $descriptionLen = poly_strlen($description); - if ($descriptionLen < 1) { - throw new \LengthException('Command description can not be empty.'); - } elseif ($descriptionLen > 100) { - throw new \LengthException('Command description can be only up to 100 characters long.'); - } - - $this->description = $description; - - return $this; - } - - /** - * Sets the description of the command in another language. - * - * @param string $locale Discord locale code. - * @param string|null $description Localized description of the command. - * - * @throws \LengthException `$description` is not 1-100 characters long. - * - * @return $this - */ - public function setDescriptionLocalization(string $locale, ?string $description): self - { - if (isset($description, $this->type) && $this->type == Command::CHAT_INPUT && poly_strlen($description) > 100) { - throw new \LengthException('Command description must be less than or equal to 100 characters.'); - } - - $this->description_localizations ??= []; - - $this->description_localizations[$locale] = $description; - - return $this; - } - - /** - * Sets the default permission of the command. - * - * @deprecated 7.1.0 See `CommandAttributes::setDefaultMemberPermissions()`. - * - * @param ?bool $permission Default permission of the command - * - * @return $this - */ - public function setDefaultPermission(?bool $permission): self - { - $this->default_permission = $permission; - - return $this; - } - - /** - * Sets the default member permissions of the command. - * - * @param string|int $permissions Default member permission bits of the command. - * - * @return $this - */ - public function setDefaultMemberPermissions($permissions): self - { - $this->default_member_permissions = (string) $permissions; - - return $this; - } - - /** - * Sets the DM permission of the command. - * - * @param bool $permission DM permission of the command. - * - * @return $this - */ - public function setDmPermission(bool $permission): self - { - $this->dm_permission = $permission; - - return $this; - } - - /** - * Sets the guild ID of the command. - * - * @param int $guildId Guild ID of the command. - * - * @return $this - */ - public function setGuildId(int $guildId): self - { - $this->guild_id = $guildId; - - return $this; - } - - /** - * Sets the age restriction of the command. - * - * @param bool $restricted Age restriction of the command. - * - * @return $this - */ - public function setNsfw(bool $restricted): self - { - $this->nsfw = $restricted; - - return $this; - } - - /** - * Adds an option to the command. - * - * @param Option $option The option. - * - * @throws \DomainException Command type is not CHAT_INPUT (1). - * @throws \OverflowException Command exceeds maximum 25 options. - * - * @return $this - */ - public function addOption(Option $option): self - { - if (isset($this->type) && $this->type != Command::CHAT_INPUT) { - throw new \DomainException('Only CHAT_INPUT Command type can have option.'); - } - - if (isset($this->options) && count($this->options) >= 25) { - throw new \OverflowException('Command can only have a maximum of 25 options.'); - } - - $this->options ??= []; - - $this->options[] = $option; - - return $this; - } - - /** - * Removes an option from the command. - * - * @param Option $option Option to remove. - * - * @throws \DomainException Command type is not CHAT_INPUT (1). - * - * @return $this - */ - public function removeOption(Option $option): self - { - if (isset($this->type) && $this->type != Command::CHAT_INPUT) { - throw new \DomainException('Only CHAT_INPUT Command type can have option.'); - } - - if (isset($this->options) && ($idx = array_search($option, $this->options)) !== false) { - array_splice($this->options, $idx, 1); - } - - return $this; - } - - /** - * Clear all options from the command. - * - * @return $this - */ - public function clearOptions(): self - { - $this->options = []; - - return $this; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Builders/CommandBuilder.php b/vendor/team-reflex/discord-php/src/Discord/Builders/CommandBuilder.php deleted file mode 100644 index 2b6ad54..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Builders/CommandBuilder.php +++ /dev/null @@ -1,123 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Builders; - -use Discord\Parts\Interactions\Command\Command; -use Discord\Parts\Interactions\Command\Option; -use JsonSerializable; - -/** - * Helper class used to build application commands. - * - * @since 7.0.0 - * - * @author Mark `PeanutNL` Versluis - */ -class CommandBuilder implements JsonSerializable -{ - use CommandAttributes; - - /** - * Type of the command. The type defaults to 1. - * - * @var int - */ - protected $type = Command::CHAT_INPUT; - - /** - * Name of the command. - * - * @var string - */ - protected string $name; - - /** - * Description of the command. should be empty if the type is not CHAT_INPUT. - * - * @var string|null - */ - protected ?string $description = null; - - /** - * The default permission of the command. If true the command is enabled when the app is added to the guild. - * - * @var bool - */ - protected $default_permission = true; - - /** - * Creates a new command builder. - * - * @return static - */ - public static function new(): self - { - return new static(); - } - - /** - * Returns all the options in the command. - * - * @return Option[]|null - */ - public function getOptions(): ?array - { - return $this->options ?? null; - } - - /** - * Returns an array with all the options. - * - * @throws \LengthException - * @throws \DomainException - * - * @return array - */ - public function toArray(): array - { - $arrCommand = [ - 'name' => $this->name, - 'description' => $this->description, - ]; - - $optionals = [ - 'type', - 'name_localizations', - 'description_localizations', - 'default_member_permissions', - 'default_permission', - 'dm_permission', - 'guild_id', - 'nsfw', - ]; - - foreach ($optionals as $optional) { - if (property_exists($this, $optional)) { - $arrCommand[$optional] = $this->$optional; - } - } - - foreach ($this->options ?? [] as $option) { - $arrCommand['options'][] = $option->getRawAttributes(); - } - - return $arrCommand; - } - - /** - * {@inheritDoc} - */ - public function jsonSerialize(): array - { - return $this->toArray(); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Builders/Components/ActionRow.php b/vendor/team-reflex/discord-php/src/Discord/Builders/Components/ActionRow.php deleted file mode 100644 index f987095..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Builders/Components/ActionRow.php +++ /dev/null @@ -1,119 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Builders\Components; - -/** - * An Action Row is a non-interactive container component for other types of - * components. - * It has a type: 1 and a sub-array of components of other types. - * - * @link https://discord.com/developers/docs/interactions/message-components#action-rows - * - * @since 7.0.0 - */ -class ActionRow extends Component -{ - /** - * Components contained by the action row. - * - * @var Component[] - */ - private $components = []; - - /** - * Creates a new action row. - * - * @return self - */ - public static function new(): self - { - return new self(); - } - - /** - * Adds a component to the action row. - * - * @param Component $component Component to add. - * - * @throws \InvalidArgumentException - * @throws \OverflowException - * - * @return $this - */ - public function addComponent(Component $component): self - { - if ($component instanceof ActionRow) { - throw new \InvalidArgumentException('You cannot add another `ActionRow` to this action row.'); - } - - if ($component instanceof SelectMenu) { - throw new \InvalidArgumentException('Cannot add a select menu to an action row.'); - } - - if (count($this->components) >= 5) { - throw new \OverflowException('You can only have 5 components per action row.'); - } - - $this->components[] = $component; - - return $this; - } - - /** - * Removes a component from the action row. - * - * @param Component $component Component to remove. - * - * @return $this - */ - public function removeComponent(Component $component): self - { - if (($idx = array_search($component, $this->components)) !== null) { - array_splice($this->components, $idx, 1); - } - - return $this; - } - - /** - * Removes all components from the action row. - * - * @return $this - */ - public function clearComponents(): self - { - $this->components = []; - - return $this; - } - - /** - * Returns all the components in the action row. - * - * @return Component[] - */ - public function getComponents(): array - { - return $this->components; - } - - /** - * {@inheritDoc} - */ - public function jsonSerialize(): array - { - return [ - 'type' => Component::TYPE_ACTION_ROW, - 'components' => $this->components, - ]; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Builders/Components/Button.php b/vendor/team-reflex/discord-php/src/Discord/Builders/Components/Button.php deleted file mode 100644 index f39c99a..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Builders/Components/Button.php +++ /dev/null @@ -1,470 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Builders\Components; - -use Discord\Discord; -use Discord\Parts\Guild\Emoji; -use Discord\Parts\Interactions\Interaction; -use Discord\WebSockets\Event; -use React\Promise\PromiseInterface; - -use function Discord\poly_strlen; - -/** - * Buttons are interactive components that render in messages. - * They can be clicked by users, and send an interaction to your app when - * clicked. - * - * @link https://discord.com/developers/docs/interactions/message-components#buttons - * - * @since 7.0.0 - */ -class Button extends Component -{ - public const STYLE_PRIMARY = 1; - public const STYLE_SECONDARY = 2; - public const STYLE_SUCCESS = 3; - public const STYLE_DANGER = 4; - public const STYLE_LINK = 5; - - /** - * Style of button. - * - * @var int - */ - private $style = 1; - - /** - * Label for the button. - * - * @var string|null - */ - private $label; - - /** - * Emoji to display on the button. - * - * @var array|null - */ - private $emoji; - - /** - * Custom ID to send with the button. - * - * @var string|null - */ - private $custom_id; - - /** - * URL to send as the button. Only for link buttons. - * - * @var string|null - */ - private $url; - - /** - * Whether the button is disabled. - * - * @var bool - */ - private $disabled = false; - - /** - * Listener for when the button is pressed. - * - * @var callable|null - */ - private $listener; - - /** - * Discord instance when the listener is set. - * - * @var Discord|null - */ - private $discord; - - /** - * Creates a new button. - * - * @param int $style Style of the button. - * @param string|null $custom_id custom ID of the button. If not given, a UUID will be used - * - * @throws \InvalidArgumentException - */ - public function __construct(int $style, ?string $custom_id = null) - { - if (! in_array($style, [ - self::STYLE_PRIMARY, - self::STYLE_SECONDARY, - self::STYLE_SUCCESS, - self::STYLE_DANGER, - self::STYLE_LINK, - ])) { - throw new \InvalidArgumentException('Invalid button style.'); - } - - $this->style = $style; - if ($this->style != self::STYLE_LINK) { - $this->setCustomId($custom_id ?? $this->generateUuid()); - } - } - - /** - * Creates a new button. - * - * @param int $style Style of the button. - * @param string|null $custom_id custom ID of the button. - * - * @return self - */ - public static function new(int $style, ?string $custom_id = null): self - { - return new self($style, $custom_id); - } - - /** - * Sets the style of the button. - * - * If the button is originally a link button, the link attribute will be cleared. - * If the button was changed to a link button, the listener will be cleared. - * - * @param int $style - * - * @throws \InvalidArgumentException - * - * @return $this - */ - public function setStyle(int $style): self - { - if (! in_array($style, [ - self::STYLE_PRIMARY, - self::STYLE_SECONDARY, - self::STYLE_SUCCESS, - self::STYLE_DANGER, - self::STYLE_LINK, - ])) { - throw new \InvalidArgumentException('Invalid button style.'); - } - - if ($this->style == self::STYLE_LINK && $style != self::STYLE_LINK) { - $this->url = null; - } elseif ($this->style != self::STYLE_LINK && $style == self::STYLE_LINK && $this->listener && $this->discord) { - $this->setListener(null, $this->discord); - } - - $this->style = $style; - - return $this; - } - - /** - * Sets the label of the button. - * - * @param string|null $label Label of the button. Maximum 80 characters. - * - * @throws \LengthException - * - * @return $this - */ - public function setLabel(?string $label): self - { - if (isset($label) && poly_strlen($label) > 80) { - throw new \LengthException('Label must be maximum 80 characters.'); - } - - $this->label = $label; - - return $this; - } - - /** - * Sets the emoji of the button. - * - * @param Emoji|string|null $emoji Emoji to set. `null` to clear. - * - * @return $this - */ - public function setEmoji($emoji): self - { - $this->emoji = (function () use ($emoji) { - if ($emoji === null) { - return null; - } - - if ($emoji instanceof Emoji) { - return [ - 'id' => $emoji->id, - 'name' => $emoji->name, - 'animated' => $emoji->animated, - ]; - } - - $parts = explode(':', $emoji, 3); - - if (count($parts) < 3) { - return [ - 'id' => null, - 'name' => $emoji, - 'animated' => false, - ]; - } - - [$animated, $name, $id] = $parts; - - return [ - 'id' => $id, - 'name' => $name, - 'animated' => $animated == 'a', - ]; - })(); - - return $this; - } - - /** - * Sets the custom ID of the button. - * - * @param string|null $custom_id - * - * @throws \LogicException - * @throws \LengthException - * - * @return $this - */ - public function setCustomId(?string $custom_id): self - { - if ($this->style == Button::STYLE_LINK) { - throw new \LogicException('You cannot set the custom ID of a link button.'); - } - - if (isset($custom_id) && poly_strlen($custom_id) > 100) { - throw new \LengthException('Custom ID must be maximum 100 characters.'); - } - - $this->custom_id = $custom_id; - - return $this; - } - - /** - * Sets the URL of the button. Only valid for link buttons. - * - * @param string|null $url - * - * @throws \LogicException - * - * @return $this - */ - public function setUrl(?string $url): self - { - if ($this->style != Button::STYLE_LINK) { - throw new \LogicException('You cannot set the URL of a non-link button.'); - } - - $this->url = $url; - - return $this; - } - - /** - * Sets the button as disabled/not disabled. - * - * @param bool $disabled - * - * @return $this - */ - public function setDisabled(bool $disabled): self - { - $this->disabled = $disabled; - - return $this; - } - - /** - * Sets the callable listener for the button. The `$callback` will be called when the button - * is pressed. - * - * If you do not respond to or acknowledge the `Interaction`, it will be acknowledged for you. - * Note that if you intend to respond to or acknowledge the interaction inside a promise, you should - * return a promise that resolves *after* you respond or acknowledge. - * - * The callback will only be called once with the `$oneOff` parameter set to true. - * This can be changed to false, and the callback will be called each time the button is pressed. - * To remove the listener, you can pass `$callback` as null. - * - * The button listener will not persist when the bot restarts. - * - * @param ?callable $callback Callback to call when the button is pressed. Will be called with the interaction object. - * @param Discord $discord Discord client. - * @param bool $oneOff Whether the listener should be removed after the button is pressed for the first time. - * - * @throws \LogicException - * - * @return $this - */ - public function setListener(?callable $callback, Discord $discord, bool $oneOff = false): self - { - if ($this->style == Button::STYLE_LINK) { - throw new \LogicException('You cannot add a listener to a link button.'); - } - - if (! isset($this->custom_id)) { - $this->custom_id = $this->generateUuid(); - } - - // Remove any existing listener - if ($this->listener) { - $this->discord->removeListener(Event::INTERACTION_CREATE, $this->listener); - } - - $this->discord = $discord; - - if ($callback == null) { - return $this; - } - - $this->listener = function (Interaction $interaction) use ($callback, $oneOff) { - if ($interaction->data->component_type == Component::TYPE_BUTTON && $interaction->data->custom_id == $this->custom_id) { - $response = $callback($interaction); - $ack = function () use ($interaction) { - // attempt to acknowledge interaction if it has not already been responded to. - try { - $interaction->acknowledge(); - } catch (\Exception $e) { - } - }; - - if ($response instanceof PromiseInterface) { - $response->then($ack); - } else { - $ack(); - } - - if ($oneOff) { - $this->removeListener(); - } - } - }; - - $discord->on(Event::INTERACTION_CREATE, $this->listener); - - return $this; - } - - /** - * Removes the listener from the button. - * - * @return $this - */ - public function removeListener(): self - { - return $this->setListener(null, $this->discord); - } - - /** - * Returns the style for the button. - * - * @return int - */ - public function getStyle(): int - { - return $this->style; - } - - /** - * Returns the label for the button. - * - * @return string|null - */ - public function getLabel(): ?string - { - return $this->label; - } - - /** - * Returns the emoji display on the button. - * - * @return array|null - */ - public function getEmoji(): ?array - { - return $this->emoji; - } - - /** - * Returns the custom ID of the button. - * - * @return string|null - */ - public function getCustomId(): ?string - { - return $this->custom_id; - } - - /** - * Returns the URL of the button. Only for link buttons. - * - * @return string|null - */ - public function getURL(): ?string - { - return $this->url; - } - - /** - * Returns whether the button is disabled. - * - * @return bool - */ - public function isDisabled(): bool - { - return $this->disabled; - } - - /** - * {@inheritDoc} - */ - public function jsonSerialize(): array - { - $content = [ - 'type' => Component::TYPE_BUTTON, - 'style' => $this->style, - ]; - - if (isset($this->label)) { - $content['label'] = $this->label; - } - - if (isset($this->emoji)) { - $content['emoji'] = $this->emoji; - } - - if (isset($this->custom_id)) { - $content['custom_id'] = $this->custom_id; - } elseif ($this->style != Button::STYLE_LINK) { - throw new \DomainException('Buttons must have a `custom_id` field set.'); - } - - if ($this->style == Button::STYLE_LINK) { - if (! isset($this->url)) { - throw new \DomainException('Link buttons must have a `url` field set.'); - } - $content['url'] = $this->url; - } - - if ($this->disabled) { - $content['disabled'] = true; - } - - return $content; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Builders/Components/ChannelSelect.php b/vendor/team-reflex/discord-php/src/Discord/Builders/Components/ChannelSelect.php deleted file mode 100644 index a04168f..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Builders/Components/ChannelSelect.php +++ /dev/null @@ -1,60 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Builders\Components; - -/** - * Select menu for channels. - * - * @link https://discord.com/developers/docs/interactions/message-components#select-menus - * - * @since 10.0.0 - */ -class ChannelSelect extends SelectMenu -{ - /** - * Component type. - * - * @var int - */ - protected $type = Component::TYPE_CHANNEL_SELECT; - - /** - * List of channel types to include. - * - * @var int[] - */ - protected $channel_types = []; - - /** - * Set the channel types of the select menu. - * - * @param int[] $channel_types Array of channel types. - * - * @return $this - */ - public function setChannelTypes(array $channel_types): self - { - $this->channel_types = $channel_types; - - return $this; - } - - /** - * Returns the array of channel types that the select menu has. - * - * @return array - */ - public function getChannelTypes(): array - { - return $this->channel_types; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Builders/Components/Component.php b/vendor/team-reflex/discord-php/src/Discord/Builders/Components/Component.php deleted file mode 100644 index 8cf9116..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Builders/Components/Component.php +++ /dev/null @@ -1,47 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Builders\Components; - -use JsonSerializable; - -/** - * Components are a new field on the message object, so you can use them whether - * you're sending messages or responding to a slash command or other interaction. - * - * @link https://discord.com/developers/docs/interactions/message-components#what-is-a-component - * - * @since 7.0.0 - */ -abstract class Component implements JsonSerializable -{ - public const TYPE_ACTION_ROW = 1; - public const TYPE_BUTTON = 2; - public const TYPE_STRING_SELECT = 3; - public const TYPE_TEXT_INPUT = 4; - public const TYPE_USER_SELECT = 5; - public const TYPE_ROLE_SELECT = 6; - public const TYPE_MENTIONABLE_SELECT = 7; - public const TYPE_CHANNEL_SELECT = 8; - - /** @deprecated 7.4.0 Use `Component::TYPE_STRING_SELECT` */ - public const TYPE_SELECT_MENU = 3; - - /** - * Generates a UUID which can be used for component custom IDs. - * - * @return string - */ - protected static function generateUuid(): string - { - return uniqid(time(), true); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Builders/Components/MentionableSelect.php b/vendor/team-reflex/discord-php/src/Discord/Builders/Components/MentionableSelect.php deleted file mode 100644 index dd19da4..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Builders/Components/MentionableSelect.php +++ /dev/null @@ -1,29 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Builders\Components; - -/** - * Select menu for mentionables (users and roles). - * - * @link https://discord.com/developers/docs/interactions/message-components#select-menus - * - * @since 10.0.0 - */ -class MentionableSelect extends SelectMenu -{ - /** - * Component type. - * - * @var int - */ - protected $type = Component::TYPE_MENTIONABLE_SELECT; -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Builders/Components/Option.php b/vendor/team-reflex/discord-php/src/Discord/Builders/Components/Option.php deleted file mode 100644 index c2976b8..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Builders/Components/Option.php +++ /dev/null @@ -1,249 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Builders\Components; - -use Discord\Parts\Guild\Emoji; - -use function Discord\poly_strlen; - -/** - * Option for select menu component. - * - * @link https://discord.com/developers/docs/interactions/message-components#select-menu-object-select-option-structure - * - * @since 7.0.0 - */ -class Option extends Component -{ - /** - * User-visible label of the option. Maximum 25 characters. - * - * @var string - */ - private $label; - - /** - * Developer value for the option. Maximum 100 characters. - * - * @var string - */ - private $value; - - /** - * Description for the option. Maximum 50 characters. - * - * @var string|null - */ - private $description; - - /** - * Emoji to display alongside the option. - * - * @var array|null - */ - private $emoji; - - /** - * Whether the option should be enabled as default. - * - * @var bool - */ - private $default = false; - - /** - * Creates a new select menu option. - * - * @param string $label User-visible label for the option. Maximum 100 characters. - * @param string|null $value Developer value for the option. Maximum 100 characters. Leave as null to automatically generate a UUID. - * - * @throws \LengthException - */ - public function __construct(string $label, ?string $value) - { - if (poly_strlen($label) > 100) { - throw new \LengthException('Label must be less than or equal to 100 characters.'); - } - - if (isset($value) && poly_strlen($value) > 100) { - throw new \LengthException('Value must be less than or equal to 100 characters.'); - } - - $this->label = $label; - $this->value = $value ?? $this->generateUuid(); - } - - /** - * Creates a new select menu option. - * - * @param string $label User-visible label for the option. Maximum 25 characters. - * @param string|null $value Developer value for the option. Maximum 100 characters. Leave as null to automatically generate a UUID. - * - * @return self - */ - public static function new(string $label, ?string $value = null): self - { - return new self($label, $value); - } - - /** - * Sets the description of the option. - * - * @param string|null $description Description of the option. Maximum 100 characters. `null` to clear. - * - * @throws \LengthException - * - * @return $this - */ - public function setDescription(?string $description): self - { - if (isset($description) && poly_strlen($description) > 100) { - throw new \LengthException('Description must be less than or equal to 100 characters.'); - } - - $this->description = $description; - - return $this; - } - - /** - * Sets the emoji of the option. - * - * @param Emoji|string|null $emoji Emoji to set. `null` to clear. - * - * @return $this - */ - public function setEmoji($emoji): self - { - $this->emoji = (function () use ($emoji) { - if ($emoji === null) { - return null; - } - - if ($emoji instanceof Emoji) { - return [ - 'id' => $emoji->id, - 'name' => $emoji->name, - 'animated' => $emoji->animated, - ]; - } - - $parts = explode(':', $emoji, 3); - - if (count($parts) < 3) { - return [ - 'id' => null, - 'name' => $emoji, - 'animated' => false, - ]; - } - - [$animated, $name, $id] = $parts; - - return [ - 'id' => $id, - 'name' => $name, - 'animated' => $animated == 'a', - ]; - })(); - - return $this; - } - - /** - * Sets the option as default. Pass false to set as non-default. - * - * @param bool $default - * - * @return $this - */ - public function setDefault(bool $default = true): self - { - $this->default = $default; - - return $this; - } - - /** - * Returns the developer value for the option. - * - * @return string - */ - public function getValue(): string - { - return $this->value; - } - - /** - * Returns the user-visible label for the option. - * - * @return string - */ - public function getLabel(): string - { - return $this->label; - } - - /** - * Returns the description for the option. - * - * @return string|null - */ - public function getDescription(): ?string - { - return $this->description; - } - - /** - * Returns the emoji display alongside the option. - * - * @return array|null - */ - public function getEmoji(): ?array - { - return $this->emoji; - } - - /** - * Returns whether the option is default. - * - * @return bool - */ - public function isDefault(): bool - { - return $this->default; - } - - /** - * {@inheritDoc} - */ - public function jsonSerialize(): array - { - $content = [ - 'label' => $this->label, - 'value' => $this->value, - ]; - - if (isset($this->description)) { - $content['description'] = $this->description; - } - - if (isset($this->emoji)) { - $content['emoji'] = $this->emoji; - } - - if ($this->default) { - $content['default'] = true; - } - - return $content; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Builders/Components/RoleSelect.php b/vendor/team-reflex/discord-php/src/Discord/Builders/Components/RoleSelect.php deleted file mode 100644 index 7fa1421..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Builders/Components/RoleSelect.php +++ /dev/null @@ -1,29 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Builders\Components; - -/** - * Select menu for roles. - * - * @link https://discord.com/developers/docs/interactions/message-components#select-menus - * - * @since 10.0.0 - */ -class RoleSelect extends SelectMenu -{ - /** - * Component type. - * - * @var int - */ - protected $type = Component::TYPE_ROLE_SELECT; -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Builders/Components/SelectMenu.php b/vendor/team-reflex/discord-php/src/Discord/Builders/Components/SelectMenu.php deleted file mode 100644 index 54cb290..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Builders/Components/SelectMenu.php +++ /dev/null @@ -1,535 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Builders\Components; - -use Discord\Discord; -use Discord\Helpers\Collection; -use Discord\Parts\Interactions\Interaction; -use Discord\WebSockets\Event; -use React\Promise\PromiseInterface; - -use function Discord\poly_strlen; - -/** - * Select menus are interactive components that allow users to select one or - * more options from a dropdown list in messages. - * On desktop, clicking on a select menu opens a dropdown-style UI. - * On mobile, tapping a select menu opens up a half-sheet with the options. - * - * @link https://discord.com/developers/docs/interactions/message-components#select-menus - * - * @since 10.0.0 Renamed from SelectMenu to StringSelect and made SelectMenu abstract - */ -abstract class SelectMenu extends Component -{ - /** - * Type of select menu component (text: 3, user: 5, role: 6, mentionable: 7, channels: 8) - * - * @var integer - */ - protected $type; - - /** - * Custom ID to identify the select menu. - * - * @var string - */ - protected $custom_id; - - /** - * Specified choices in a select menu (only required and available for string selects (type 3); max 25 - * - * @var array|null - */ - protected $options; - - /** - * List of channel types to include in the channel select component (type 8) - * - * @var array|null - */ - protected $channel_types; - - /** - * Placeholder string to display if nothing is selected. Maximum 150 characters. - * - * @var string|null - */ - protected $placeholder; - - /** - * List of default values for auto-populated select menu components; - * number of default values must be in the range defined by min_values and max_values - * - * @var array|null - */ - protected $default_values; - - /** - * Minimum number of options that must be selected. - * Default 1, minimum 0, maximum 25. - * - * @var int|null - */ - protected $min_values; - - /** - * Maximum number of options that must be selected. - * Default 1, maximum 25. - * - * @var int|null - */ - protected $max_values; - - /** - * Whether the select menu should be disabled. - * - * @var bool|null - */ - protected $disabled; - - /** - * Callback used to listen for `INTERACTION_CREATE` events. - * - * @var callable|null - */ - protected $listener; - - /** - * Discord instance when the listener is set. - * - * @var Discord|null - */ - protected $discord; - - /** - * Creates a new select menu. - * - * @param string|null $custom_id The custom ID of the select menu. If not given, a UUID will be used - */ - public function __construct(?string $custom_id) - { - $this->setCustomId($custom_id ?? $this->generateUuid()); - } - - /** - * Creates a new select menu. - * - * @param string|null $custom_id The custom ID of the select menu. - * - * @return static - */ - public static function new(?string $custom_id = null): self - { - return new static($custom_id); - } - - /** - * Sets the type for the select menu. - * (text: 3, user: 5, role: 6, mentionable: 7, channels: 8) - * - * @param int $type - * - * @throws \InvalidArgumentException - * - * @return string - */ - public function setType(int $type): self - { - $allowed_types = [self::TYPE_STRING_SELECT, self::TYPE_USER_SELECT, self::TYPE_ROLE_SELECT, self::TYPE_MENTIONABLE_SELECT, self::TYPE_CHANNEL_SELECT]; - if (! in_array($type, $allowed_types)) { - throw new \InvalidArgumentException('Invalid select menu type.'); - } - - $this->type = $type; - - return $this; - } - - /** - * Sets the custom ID for the select menu. - * - * @param string $custom_id - * - * @throws \LengthException If the custom ID is longer than 100 characters. - * - * @return $this - */ - public function setCustomId($custom_id): self - { - if (poly_strlen($custom_id) > 100) { - throw new \LengthException('Custom ID must be maximum 100 characters.'); - } - - $this->custom_id = $custom_id; - - return $this; - } - - /** - * Specified choices in a select menu (only required and available for string selects (type 3); max 25 - * - * @param array $options - * - * @throws \InvalidArgumentException If the select menu type is not `TYPE_STRING_SELECT`. - * - * @return $this - */ - public function setOptions(array $options): self - { - if ($this->type != self::TYPE_STRING_SELECT) { - throw new \InvalidArgumentException('Options can only be set for string selects.'); - } - - $this->options = $options; - - return $this; - } - - /** - * Sets the channel types for the select menu. - * - * This method is only applicable if the select menu type is `TYPE_CHANNEL_SELECT`. - * If the select menu type is not `TYPE_CHANNEL_SELECT`, an `InvalidArgumentException` will be thrown. - * - * @param array $channel_types - * - * @throws \InvalidArgumentException If the select menu type is not `TYPE_CHANNEL_SELECT`. - * - * @return $this - */ - public function setChannelTypes(array $channel_types): self - { - if ($this->type != self::TYPE_CHANNEL_SELECT) { - throw new \InvalidArgumentException('Channel types can only be set for channel selects.'); - } - - $this->channel_types = $channel_types; - - return $this; - } - - /** - * Sets the placeholder string to display if nothing is selected. - * - * @param string|null $placeholder Maximum 150 characters. `null` to clear placeholder. - * - * @throws \LengthException - * - * @return $this - */ - public function setPlaceholder(?string $placeholder): self - { - if (isset($placeholder) && poly_strlen($placeholder) > 150) { - throw new \LengthException('Placeholder string must be less than or equal to 150 characters.'); - } - - $this->placeholder = $placeholder; - - return $this; - } - - public function setDefaultValues(?array $default_values): self - { - $allowed_types = [self::TYPE_USER_SELECT, self::TYPE_ROLE_SELECT, self::TYPE_MENTIONABLE_SELECT, self::TYPE_CHANNEL_SELECT]; - if (! in_array($this->type, $allowed_types)) { - throw new \InvalidArgumentException('Default values can only be set for user, role, mentionable, and channel selects.'); - } - $this->default_values = $default_values; - - return $this; - } - - /** - * Sets the minimum number of options which must be chosen. - * - * @param int|null $min_values Default `1`, minimum `0` and maximum `25`. `null` to set as default. - * - * @throws \LengthException - * - * @return $this - */ - public function setMinValues(?int $min_values): self - { - if (isset($min_values) && ($min_values < 0 || $min_values > 25)) { - throw new \LengthException('Number must be between 0 and 25 inclusive.'); - } - - $this->min_values = $min_values; - - return $this; - } - - /** - * Sets the maximum number of options which must be chosen. - * - * @param int|null $max_values Default `1` and maximum `25`. `null` to set as default. - * - * @throws \LengthException - * - * @return $this - */ - public function setMaxValues(?int $max_values): self - { - if ($max_values && $max_values > 25) { - throw new \LengthException('Number must be less than or equal to 25.'); - } - - $this->max_values = $max_values; - - return $this; - } - - /** - * Sets the select menus disabled state. - * - * @param bool $disabled - * - * @return $this - */ - public function setDisabled(bool $disabled = true): self - { - $this->disabled = $disabled; - - return $this; - } - - /** - * Sets the callable listener for the select menu. The `$callback` function - * will be called when the selection of the menu is changed. - * - * The callback function is called with the `Interaction` object as well as - * a `Collection` of selected options. - * - * If you do not respond to or acknowledge the `Interaction`, it will be - * acknowledged for you. - * Note that if you intend to respond to or acknowledge the interaction - * inside a promise, you should return a promise that resolves *after* you - * respond or acknowledge. - * - * The callback will only be called once with the `$oneOff` parameter set to - * true. - * This can be changed to false, and the callback will be called each time - * the selection is changed. To remove the listener, you can pass - * `$callback` as null. - * - * The select menu listener will not persist when the bot restarts. - * - * @param callable $callback Callback to call when the selection is changed. Will be called with the interaction object and collection of options. - * @param Discord $discord Discord client. - * @param bool $oneOff Whether the listener should be removed after the selection is changed for the first time. - * - * @return $this - * - * @todo setListener callback return for each type. - */ - public function setListener(?callable $callback, Discord $discord, bool $oneOff = false): self - { - if ($this->listener) { - $this->discord->removeListener(Event::INTERACTION_CREATE, $this->listener); - } - - $this->discord = $discord; - - if ($callback == null) { - return $this; - } - - $this->listener = function (Interaction $interaction) use ($callback, $oneOff) { - if ($interaction->data->component_type == $this->type && - $interaction->data->custom_id == $this->custom_id) { - if (empty($this->options)) { - $response = $callback($interaction); - } else { - $options = Collection::for(Option::class, null); - - foreach ($this->options as $option) { - if (in_array($option->getValue(), $interaction->data->values)) { - $options->pushItem($option); - } - } - - $response = $callback($interaction, $options); - } - $ack = function () use ($interaction) { - // attempt to acknowledge interaction if it has not already been responded to. - try { - $interaction->acknowledge(); - } catch (\Exception $e) { - } - }; - - if ($response instanceof PromiseInterface) { - $response->then($ack); - } else { - $ack(); - } - - if ($oneOff) { - $this->removeListener(); - } - } - }; - - $discord->on(Event::INTERACTION_CREATE, $this->listener); - - return $this; - } - - /** - * Removes the listener from the button. - * - * @return $this - */ - public function removeListener(): self - { - return $this->setListener(null, $this->discord); - } - - /** - * Returns the type of the select menu. - * - * @return int - */ - public function getType(): int - { - return $this->type; - } - - /** - * Returns the Custom ID of the select menu. - * - * @return string - */ - public function getCustomId(): string - { - return $this->custom_id; - } - - /** - * Returns the options of the select menu. - * - * @return array|null - */ - public function getOptions(): ?array - { - return $this->options; - } - - /** - * Returns the channel types of the select menu. - * - * @return array|null - */ - public function getChannelTypes(): ?array - { - return $this->channel_types; - } - - /** - * Returns the placeholder string of the select menu. - * - * @return string|null - */ - public function getPlaceholder(): ?string - { - return $this->placeholder; - } - - /** - * Returns the default values of the select menu. - * - * @return array|null - */ - public function getDefaultValues(): ?array - { - return $this->default_values; - } - - /** - * Returns the minimum number of options that must be selected. - * - * @return int|null - */ - public function getMinValues(): ?int - { - return $this->min_values; - } - - /** - * Returns the maximum number of options that must be selected. - * - * @return int|null - */ - public function getMaxValues(): ?int - { - return $this->max_values; - } - - /** - * Returns whether the select menu is disabled. - * - * @return bool|null - */ - public function isDisabled(): ?bool - { - return $this->disabled; - } - - /** - * {@inheritDoc} - */ - public function jsonSerialize(): array - { - $content = [ - 'type' => $this->type, - 'custom_id' => $this->custom_id, - ]; - - if (isset($this->options)) { - $content['options'] = $this->options; - } - - if (isset($this->channel_types)) { - $content['channel_types'] = $this->channel_types; - } - - if (isset($this->placeholder)) { - $content['placeholder'] = $this->placeholder; - } - - if (isset($this->min_values)) { - if (isset($this->options) && $this->min_values > count($this->options)) { - throw new \OutOfBoundsException('There are less options than the minimum number of options to be selected.'); - } - - $content['min_values'] = $this->min_values; - } - - if ($this->max_values) { - if (isset($this->options) && $this->max_values > count($this->options)) { - throw new \OutOfBoundsException('There are less options than the maximum number of options to be selected.'); - } - - $content['max_values'] = $this->max_values; - } - - if ($this->disabled) { - $content['disabled'] = true; - } - - return [ - 'type' => Component::TYPE_ACTION_ROW, - 'components' => [$content], - ]; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Builders/Components/StringSelect.php b/vendor/team-reflex/discord-php/src/Discord/Builders/Components/StringSelect.php deleted file mode 100644 index a550c73..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Builders/Components/StringSelect.php +++ /dev/null @@ -1,93 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Builders\Components; - -/** - * Select menu for picking from defined text options. - * - * @link https://discord.com/developers/docs/interactions/message-components#select-menus - * - * @since 10.0.0 Renamed from SelectMenu to StringSelect - * @since 7.0.0 - */ -class StringSelect extends SelectMenu -{ - /** - * Component type. - * - * @var int - */ - protected $type = Component::TYPE_STRING_SELECT; - - /** - * Array of options that the select menu has. - * - * @var Option[] - */ - protected $options = []; - - /** - * Adds an option to the select menu. Maximum 25 options. - * - * @param Option $option Option to add. - * - * @throws \OverflowException - * @throws \UnexpectedValueException - * - * @return $this - */ - public function addOption(Option $option): self - { - if (count($this->options) > 25) { - throw new \OverflowException('You can only have 25 options per select menu.'); - } - - $value = $option->getValue(); - - // didn't wanna use a hashtable here so that we can keep the order of options - foreach ($this->options as $other) { - if ($other->getValue() == $value) { - throw new \UnexpectedValueException('Another value already has the same value. These must not be the same.'); - } - } - - $this->options[] = $option; - - return $this; - } - - /** - * Removes an option from the select menu. - * - * @param Option $option Option to remove. - * - * @return $this - */ - public function removeOption(Option $option): self - { - if (($idx = array_search($option, $this->options)) !== null) { - array_splice($this->options, $idx, 1); - } - - return $this; - } - - /** - * Returns the array of options that the select menu has. - * - * @return array - */ - public function getOptions(): array - { - return $this->options; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Builders/Components/TextInput.php b/vendor/team-reflex/discord-php/src/Discord/Builders/Components/TextInput.php deleted file mode 100644 index 338a300..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Builders/Components/TextInput.php +++ /dev/null @@ -1,354 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Builders\Components; - -use function Discord\poly_strlen; - -/** - * Text inputs are an interactive component that render on modals. They can be used to collect short-form or long-form text. - * - * @link https://discord.com/developers/docs/interactions/message-components#text-inputs - * - * @since 7.0.0 - */ -class TextInput extends Component -{ - public const STYLE_SHORT = 1; - public const STYLE_PARAGRAPH = 2; - - /** - * Custom ID to identify the text input. - * - * @var string - */ - private $custom_id; - - /** - * Style of text input. - * - * @var int - */ - private $style; - - /** - * Label for the text input. - * - * @var string - */ - private $label; - - /** - * Minimum input length for a text input, min 0, max 4000. - * - * @var int|null - */ - private $min_length; - - /** - * Maximum input length for a text input, min 1, max 4000. - * - * @var int|null - */ - private $max_length; - - /** - * Whether the text input is required. - * - * @var bool - */ - private $required; - - /** - * Pre-filled value for text input. Max 4000 characters. - * - * @var string|null - */ - private $value; - - /** - * Placeholder string to display if text input is empty. Maximum 100 characters. - * - * @var string|null - */ - private $placeholder; - - /** - * Creates a new text input. - * - * @param string $label The label of the text input. - * @param int $style The style of the text input. - * @param string|null $custom_id The custom ID of the text input. If not given, a UUID will be used - */ - public function __construct(string $label, int $style, ?string $custom_id = null) - { - $this->setLabel($label); - $this->setStyle($style); - $this->setCustomId($custom_id ?? $this->generateUuid()); - } - - /** - * Creates a new text input. - * - * @param string $label The label of the text input. - * @param int $style The style of the text input. - * @param string|null $custom_id The custom ID of the text input. - * - * @return self - */ - public static function new(string $label, int $style, ?string $custom_id = null): self - { - return new self($label, $style, $custom_id); - } - - /** - * Sets the custom ID for the text input. - * - * @param string $custom_id - * - * @throws \LengthException - * - * @return $this - */ - public function setCustomId($custom_id): self - { - if (poly_strlen($custom_id) > 100) { - throw new \LengthException('Custom ID must be maximum 100 characters.'); - } - - $this->custom_id = $custom_id; - - return $this; - } - - /** - * Sets the style of the text input. - * - * @param int $style - * - * @throws \InvalidArgumentException - * - * @return $this - */ - public function setStyle(int $style): self - { - if ($style < 1 || $style > 2) { - throw new \InvalidArgumentException('Invalid text input style.'); - } - - $this->style = $style; - - return $this; - } - - /** - * Sets the label of the text input. - * - * @param string $label Label of the text input. Maximum 45 characters. - * - * @throws \LengthException - * - * @return $this - */ - public function setLabel(string $label): self - { - if (poly_strlen($label) > 45) { - throw new \LengthException('Label must be maximum 45 characters.'); - } - - $this->label = $label; - - return $this; - } - - /** - * Sets the minimum input length for a text input. - * - * @param int|null $min_length Minimum `0` and maximum `4000`. `null` to set as default. - * - * @throws \LengthException - * - * @return $this - */ - public function setMinLength(?int $min_length): self - { - if (isset($min_length) && ($min_length < 0 || $min_length > 4000)) { - throw new \LengthException('Length must be between 0 and 4000 inclusive.'); - } - - $this->min_length = $min_length; - - return $this; - } - - /** - * Sets the maximum input length for a text input. - * - * @param int|null $max_length Minimum `1` and maximum `4000`. `null` to set as default. - * - * @throws \LengthException - * - * @return $this - */ - public function setMaxLength(?int $max_length): self - { - if (isset($max_length) && ($max_length < 1 || $max_length > 4000)) { - throw new \LengthException('Length must be between 1 and 4000 inclusive.'); - } - - $this->max_length = $max_length; - - return $this; - } - - /** - * Sets the placeholder string to display if text input is empty. - * - * @param string|null $placeholder Maximum 100 characters. `null` to clear placeholder. - * - * @throws \LengthException - * - * @return $this - */ - public function setPlaceholder(?string $placeholder): self - { - if (isset($placeholder) && poly_strlen($placeholder) > 100) { - throw new \LengthException('Placeholder string must be less than or equal to 100 characters.'); - } - - $this->placeholder = $placeholder; - - return $this; - } - - /** - * Set if this component is required to be filled, default false. - * - * @param bool $required - * - * @return $this - */ - public function setRequired(bool $required): self - { - $this->required = $required; - - return $this; - } - - /** - * Sets a pre-filled value for the text input. - * - * @param string|null $value A pre-filled value, max 4000 characters. - * - * @throws \LengthException - * - * @return $this - */ - public function setValue(?string $value): self - { - if (isset($value) && poly_strlen($value) > 4000) { - throw new \LengthException('Pre-filled value must be maximum 4000 characters.'); - } - - $this->value = $value; - - return $this; - } - - /** - * Returns the Custom ID of the text input. - * - * @return string - */ - public function getCustomId(): string - { - return $this->custom_id; - } - - /** - * Returns the placeholder string of the text input. - * - * @return string|null - */ - public function getPlaceholder(): ?string - { - return $this->placeholder; - } - - /** - * Returns the minimum length of the text input. - * - * @return int|null - */ - public function getMinLength(): ?int - { - return $this->min_length; - } - - /** - * Returns the maximum length of the text input. - * - * @return int|null - */ - public function getMaxLength(): ?int - { - return $this->max_length; - } - - /** - * Returns whether the text input is disabled. - * - * @return bool|null - */ - public function isRequired(): ?bool - { - return $this->required; - } - - /** - * {@inheritDoc} - */ - public function jsonSerialize(): array - { - $content = [ - 'type' => Component::TYPE_TEXT_INPUT, - 'custom_id' => $this->custom_id, - 'style' => $this->style, - 'label' => $this->label, - ]; - - if (isset($this->min_length)) { - $content['min_length'] = $this->min_length; - } - - if (isset($this->max_length)) { - if (isset($this->min_length) && $this->min_length > $this->max_length) { - throw new \OutOfRangeException('Minimum length cannot be higher than maximum length'); - } - - $content['max_length'] = $this->max_length; - } - - if (isset($this->required)) { - $content['required'] = $this->required; - } - - if (isset($this->value)) { - $content['value'] = $this->value; - } - - if (isset($this->placeholder)) { - $content['placeholder'] = $this->placeholder; - } - - return $content; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Builders/Components/UserSelect.php b/vendor/team-reflex/discord-php/src/Discord/Builders/Components/UserSelect.php deleted file mode 100644 index 85f4015..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Builders/Components/UserSelect.php +++ /dev/null @@ -1,29 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Builders\Components; - -/** - * Select menu for users. - * - * @link https://discord.com/developers/docs/interactions/message-components#select-menus - * - * @since 10.0.0 - */ -class UserSelect extends SelectMenu -{ - /** - * Component type. - * - * @var int - */ - protected $type = Component::TYPE_USER_SELECT; -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Builders/MessageBuilder.php b/vendor/team-reflex/discord-php/src/Discord/Builders/MessageBuilder.php deleted file mode 100644 index 56617fb..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Builders/MessageBuilder.php +++ /dev/null @@ -1,775 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Builders; - -use Discord\Builders\Components\ActionRow; -use Discord\Builders\Components\Component; -use Discord\Builders\Components\SelectMenu; -use Discord\Exceptions\FileNotFoundException; -use Discord\Helpers\Multipart; -use Discord\Http\Exceptions\RequestFailedException; -use Discord\Parts\Channel\Attachment; -use Discord\Parts\Channel\Message; -use Discord\Parts\Channel\Poll\Poll; -use Discord\Parts\Embed\Embed; -use Discord\Parts\Guild\Sticker; -use JsonSerializable; - -use function Discord\poly_strlen; - -/** - * Helper class used to build messages. - * - * @since 7.0.0 - * - * @author David Cole - */ -class MessageBuilder implements JsonSerializable -{ - /** - * Content of the message. - * - * @var string|null - */ - private $content; - - /** - * A nonce that can be used for message roundtrips with the gateway (up to 25 characters). - * - * @var int|string|null - */ - private $nonce; - - /** - * Override the default username of the webhook. - * - * @var string|null - */ - private $username; - - /** - * Override the default avatar of the webhook. - * - * @var string|null - */ - private $avatar_url; - - /** - * Whether the message is text-to-speech. - * - * @var bool - */ - private $tts = false; - - /** - * Array of embeds to send with the message. - * - * @var array[]|null - */ - private $embeds; - - /** - * Allowed mentions object for the message. - * - * @var array|null - */ - private $allowed_mentions; - - /** - * Message to reply to with this message. - * - * @var Message|null - */ - private $replyTo; - - /** - * Components to send with this message. - * - * @var Component[]|null - */ - private $components; - - /** - * IDs of up to 3 stickers in the server to send in the message. - * - * @var string[] - */ - private $sticker_ids = []; - - /** - * Files to send with this message. - * - * @var array[]|null - */ - private $files; - - /** - * Attachments to send with this message. - * - * @var Attachment[]|null - */ - private $attachments; - - /** - * Flags to send with this message. - * - * @var int|null - */ - private $flags; - - /** - * Whether to enforce the nonce. - * - * @var bool|null - */ - private $enforce_nonce; - - /** - * The poll for the message. - * - * @var Poll|null - */ - private $poll; - - /** - * Creates a new message builder. - * - * @return static - */ - public static function new(): self - { - return new static(); - } - - /** - * Sets the content of the message. - * - * @param string $content Content of the message. Maximum 2000 characters. - * - * @throws \LengthException - * - * @return $this - */ - public function setContent(string $content): self - { - if (poly_strlen($content) > 2000) { - throw new \LengthException('Message content must be less than or equal to 2000 characters.'); - } - - $this->content = $content; - - return $this; - } - - /** - * Sets the nonce of the message. Only used for sending message. - * - * @param int|string|null $nonce Nonce of the message. - * - * @throws \LengthException `$nonce` string exceeds 25 characters. - * - * @return $this - */ - public function setNonce($nonce = null): self - { - if (is_string($nonce) && poly_strlen($nonce) > 25) { - throw new \LengthException('Message nonce must be less than or equal to 25 characters.'); - } - - $this->nonce = $nonce; - - return $this; - } - - /** - * If true and nonce is present, it will be checked for uniqueness in the past few minutes. - * If another message was created by the same author with the same nonce, - * that message will be returned and no new message will be created. - * - * @param bool $enforce_nonce - * - * @return $this - */ - public function setEnforceNonce(bool $enforce_nonce = true): self - { - $this->enforce_nonce = $enforce_nonce; - - return $this; - } - - /** - * Sets the poll of the message. - * - * @param Poll|null $poll - * - * @return $this - */ - public function setPoll(Poll|null $poll): self - { - $this->poll = $poll; - - return $this; - } - - /** - * Returns the poll of the message. - * - * @return Poll|null - */ - public function getPoll(): ?Poll - { - return $this->poll; - } - - /** - * Override the default username of the webhook. Only used for executing webhook. - * - * @param string $username New webhook username. - * - * @throws \LengthException `$username` exceeds 80 characters. - * - * @return $this - */ - public function setUsername(string $username): self - { - if (poly_strlen($username) > 80) { - throw new \LengthException('Username can be only up to 80 characters.'); - } - - $this->username = $username; - - return $this; - } - - /** - * Override the default avatar URL of the webhook. Only used for executing webhook. - * - * @param string $avatar_url New webhook avatar URL. - * - * @return $this - */ - public function setAvatarUrl(string $avatar_url): self - { - $this->avatar_url = $avatar_url; - - return $this; - } - - /** - * Sets the TTS status of the message. Only used for sending message or executing webhook. - * - * @param bool $tts - * - * @return $this - */ - public function setTts(bool $tts = false): self - { - $this->tts = $tts; - - return $this; - } - - /** - * Returns the value of TTS of the builder. - * - * @return bool - */ - public function getTts(): bool - { - return $this->tts ?? false; - } - - /** - * Adds an embed to the builder. - * - * @param Embed|array ...$embeds - * - * @throws \OverflowException Builder exceeds 10 embeds. - * - * @return $this - */ - public function addEmbed(...$embeds): self - { - foreach ($embeds as $embed) { - if ($embed instanceof Embed) { - $embed = $embed->getRawAttributes(); - } - - if (isset($this->embeds) && count($this->embeds) >= 10) { - throw new \OverflowException('You can only have 10 embeds per message.'); - } - - $this->embeds[] = $embed; - } - - return $this; - } - - /** - * Sets the embeds for the message. Clears the existing embeds in the process. - * - * @param Embed[]|array ...$embeds - * - * @return $this - */ - public function setEmbeds(array $embeds): self - { - $this->embeds = []; - - return $this->addEmbed(...$embeds); - } - - /** - * Returns all the embeds in the builder. - * - * @return array[]|null - */ - public function getEmbeds(): ?array - { - return $this->embeds; - } - - /** - * Sets the allowed mentions object of the message. - * - * @link https://discord.com/developers/docs/resources/channel#allowed-mentions-object - * - * @param array $allowed_mentions - * - * @return $this - */ - public function setAllowedMentions(array $allowed_mentions): self - { - $this->allowed_mentions = $allowed_mentions; - - return $this; - } - - /** - * Sets this message as a reply to another message. Only used for sending message. - * - * @param Message|null $message - * - * @return $this - */ - public function setReplyTo(?Message $message = null): self - { - $this->replyTo = $message; - - return $this; - } - - /** - * Adds a component to the builder. - * - * @param Component $component Component to add. - * - * @throws \InvalidArgumentException Component is not a type of `ActionRow` or `SelectMenu` - * @throws \OverflowException Builder exceeds 5 components. - * - * @return $this - */ - public function addComponent(Component $component): self - { - if (! ($component instanceof ActionRow || $component instanceof SelectMenu)) { - throw new \InvalidArgumentException('You can only add action rows and select menus as components to messages. Put your other components inside an action row.'); - } - - if (isset($this->components) && count($this->components) >= 5) { - throw new \OverflowException('You can only add 5 components to a message'); - } - - $this->components[] = $component; - - return $this; - } - - /** - * Removes a component from the builder. - * - * @param Component $component Component to remove. - * - * @return $this - */ - public function removeComponent(Component $component): self - { - if (($idx = array_search($component, $this->components)) !== null) { - array_splice($this->components, $idx, 1); - } - - return $this; - } - - /** - * Sets the components of the message. Removes the existing components in the process. - * - * @param array $components New message components. - * - * @return $this - */ - public function setComponents(array $components): self - { - $this->components = []; - - foreach ($components as $component) { - $this->addComponent($component); - } - - return $this; - } - - /** - * Returns all the components in the builder. - * - * @return Component[] - */ - public function getComponents(): array - { - return $this->components; - } - - /** - * Adds a sticker to the builder. Only used for sending message or creating forum thread. - * - * @param string|Sticker $sticker Sticker to add. - * - * @throws \OverflowException Builder exceeds 3 stickers. - * - * @return $this - */ - public function addSticker($sticker): self - { - if (count($this->sticker_ids) >= 3) { - throw new \OverflowException('You can only add 3 stickers to a message'); - } - - if ($sticker instanceof Sticker) { - $sticker = $sticker->id; - } - - $this->sticker_ids[] = $sticker; - - return $this; - } - - /** - * Removes a sticker from the builder. - * - * @param string|Sticker $sticker Sticker to remove. - * - * @return $this - */ - public function removeSticker($sticker): self - { - if ($sticker instanceof Sticker) { - $sticker = $sticker->id; - } - - if (($idx = array_search($sticker, $this->sticker_ids)) !== null) { - array_splice($this->sticker_ids, $idx, 1); - } - - return $this; - } - - /** - * Sets the stickers of the builder. Removes the existing stickers in the process. - * - * @param array $stickers New sticker ids. - * - * @return $this - */ - public function setStickers(array $stickers): self - { - $this->sticker_ids = []; - - foreach ($stickers as $sticker) { - $this->addSticker($sticker); - } - - return $this; - } - - /** - * Returns all the sticker ids in the builder. - * - * @return string[] - */ - public function getStickers(): array - { - return $this->sticker_ids; - } - - /** - * Adds a file attachment to the builder. - * - * Note this is a synchronous function which uses `file_get_contents` and therefore - * should not be used when requesting files from an online resource. Fetch the content - * asynchronously and use the `addFileFromContent` function for tasks like these. - * - * @param string $filepath Path to the file to send. - * @param string|null $filename Name to send the file as. `null` for the base name of `$filepath`. - * - * @return $this - */ - public function addFile(string $filepath, ?string $filename = null): self - { - if (! file_exists($filepath)) { - throw new FileNotFoundException("File does not exist at path {$filepath}."); - } - - return $this->addFileFromContent($filename ?? basename($filepath), file_get_contents($filepath)); - } - - /** - * Adds a file attachment to the builder with a given filename and content. - * - * @param string $filename Name to send the file as. - * @param string $content Content of the file. - * - * @return $this - */ - public function addFileFromContent(string $filename, string $content): self - { - $this->files[] = [$filename, $content]; - - return $this; - } - - /** - * Returns the number of files attached to the builder. - * - * @return int - */ - public function numFiles(): int - { - if (! isset($this->files)) { - return 0; - } - - return count($this->files); - } - - /** - * Removes all files from the builder. - * - * @return $this - */ - public function clearFiles(): self - { - $this->files = []; - - return $this; - } - - /** - * Adds attachment(s) to the builder. - * - * @param Attachment|string|int ...$attachments Attachment objects or IDs to add - * - * @return $this - */ - public function addAttachment(...$attachments): self - { - foreach ($attachments as $attachment) { - if ($attachment instanceof Attachment) { - $attachment = $attachment->getRawAttributes(); - } else { - $attachment = ['id' => $attachment]; - } - - $this->attachments[] = $attachment; - } - - return $this; - } - - /** - * Returns all the attachments in the builder. - * - * @return Attachment[] - */ - public function getAttachments(): array - { - return $this->attachments; - } - - /** - * Removes all attachments from the message. - * - * @return $this - */ - public function clearAttachments(): self - { - $this->attachments = []; - - return $this; - } - - /** - * Sets the flags of the message. - * Only works for some message types and some message flags. - * - * @param int $flags - * - * @since 10.0.0 - * - * @return $this - */ - public function setFlags(int $flags): self - { - $this->flags = $flags; - - return $this; - } - - /** - * @deprecated 10.0.0 Use MessageBuilder::setFlags() - */ - public function _setFlags(int $flags): self - { - return $this->setFlags($flags); - } - - /** - * Returns a boolean that determines whether the message needs to - * be sent via multipart request, i.e. contains files. - * - * @return bool - */ - public function requiresMultipart(): bool - { - return isset($this->files); - } - - /** - * Converts the request to a multipart request. - * - * @internal - * - * @param bool $payload Whether to include the JSON payload in the response. - * - * @return Multipart - */ - public function toMultipart(bool $payload = true): Multipart - { - $fields = []; - - if ($payload) { - $fields = [ - [ - 'name' => 'payload_json', - 'content' => json_encode($this), - 'headers' => [ - 'Content-Type' => 'application/json', - ], - ], - ]; - } - - foreach ($this->files as $idx => [$filename, $content]) { - $fields[] = [ - 'name' => 'file'.$idx, - 'content' => $content, - 'filename' => $filename, - ]; - } - - return new Multipart($fields); - } - - /** - * {@inheritDoc} - */ - public function jsonSerialize(): ?array - { - $empty = true; - - if (! empty($this->files)) { - $body = null; - $empty = false; - } - - if (isset($this->content)) { - $body['content'] = $this->content; - $empty = false; - } - - if (isset($this->username)) { - $body['username'] = $this->username; - } - - if (isset($this->avatar_url)) { - $body['avatar_url'] = $this->avatar_url; - } - - if ($this->nonce !== null) { - $body['nonce'] = $this->nonce; - } - - if ($this->tts) { - $body['tts'] = true; - } - - if (isset($this->embeds)) { - $body['embeds'] = $this->embeds; - $empty = false; - } - - if (isset($this->poll)) { - $body['poll'] = $this->poll; - $empty = false; - } - - if (isset($this->allowed_mentions)) { - $body['allowed_mentions'] = $this->allowed_mentions; - } - - if ($this->replyTo) { - $body['message_reference'] = [ - 'message_id' => $this->replyTo->id, - 'channel_id' => $this->replyTo->channel_id, - ]; - } - - if (isset($this->components)) { - $body['components'] = $this->components; - $empty = false; - } - - if ($this->sticker_ids) { - $body['sticker_ids'] = $this->sticker_ids; - $empty = false; - } - - if (isset($this->attachments)) { - $body['attachments'] = $this->attachments; - $empty = false; - } - - if (isset($this->flags)) { - $body['flags'] = $this->flags; - } elseif ($empty) { - throw new RequestFailedException('You cannot send an empty message. Set the content or add an embed, file or poll.'); - } - - if (isset($this->enforce_nonce)) { - $body['enforce_nonce'] = $this->enforce_nonce; - } - - if (isset($this->poll)) { - $body['poll'] = $this->poll; - } - - return $body; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/CommandClient/Command.php b/vendor/team-reflex/discord-php/src/Discord/CommandClient/Command.php deleted file mode 100644 index 3946fe4..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/CommandClient/Command.php +++ /dev/null @@ -1,320 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\CommandClient; - -use Discord\DiscordCommandClient; -use Discord\Parts\Channel\Message; - -/** - * A message based command that the Command Client will listen for. - * - * @since 4.0.0 - */ -class Command -{ - /** - * The trigger for the command. - * - * @var string Command trigger. - */ - protected $command; - - /** - * The short description of the command. - * - * @var string Description. - */ - protected $description; - - /** - * The long description of the command. - * - * @var string Long description. - */ - protected $longDescription; - - /** - * The usage of the command. - * - * @var string Command usage. - */ - protected $usage; - - /** - * The cooldown of the command in milliseconds. - * - * @var int Command cooldown. - */ - protected $cooldown; - - /** - * The cooldown message to show when a cooldown is in effect. - * - * @var string Command cooldown message. - */ - protected $cooldownMessage; - - /** - * Help visibility. - * - * @var bool whether visible in help or not. - */ - protected $showHelp; - - /** - * An array of cooldowns for commands. - * - * @var array Cooldowns. - */ - protected $cooldowns = []; - - /** - * A map of sub-commands. - * - * @var array Sub-Commands. - */ - protected $subCommands = []; - - /** - * A map of sub-command aliases. - * - * @var array Sub-Command aliases. - */ - protected $subCommandAliases = []; - /** - * @var DiscordCommandClient - */ - protected $client; - /** - * @var callable - */ - protected $callable; - - /** - * Creates a command instance. - * - * @param DiscordCommandClient $client The Discord Command Client. - * @param string $command The command trigger. - * @param callable $callable The callable function. - * @param string $description The short description of the command. - * @param string $longDescription The long description of the command. - * @param string $usage The usage of the command. - * @param int $cooldown The cooldown of the command in milliseconds. - * @param string $cooldownMessage The cooldown message to show when a cooldown is in effect. - * @param bool $showHelp The visibility in help of the command. - */ - public function __construct( - DiscordCommandClient $client, - string $command, - callable $callable, - string $description, - string $longDescription, - string $usage, - int $cooldown, - string $cooldownMessage, - bool $showHelp = true - ) { - $this->client = $client; - $this->command = $command; - $this->callable = $callable; - $this->description = $description; - $this->longDescription = $longDescription; - $this->usage = $usage; - $this->cooldown = $cooldown; - $this->cooldownMessage = $cooldownMessage; - $this->showHelp = $showHelp; - } - - /** - * Attempts to get a sub command. - * - * @param string $command The command to get. - * @param bool $aliases Whether to search aliases as well. - * - * @return Command|null - */ - public function getCommand(string $command, bool $aliases = true): ?Command - { - if (array_key_exists($command, $this->subCommands)) { - return $this->subCommands[$command]; - } - - if (array_key_exists($command, $this->subCommandAliases) && $aliases) { - return $this->subCommands[$this->subCommandAliases[$command]]; - } - - return null; - } - - /** - * Registers a new command. - * - * @param string $command The command name. - * @param callable|string $callable The function called when the command is executed. - * @param array $options An array of options. - * - * @return Command The command instance. - * @throws \Exception - */ - public function registerSubCommand(string $command, $callable, array $options = []): Command - { - if (array_key_exists($command, $this->subCommands)) { - throw new \Exception("A sub-command with the name {$command} already exists."); - } - - if ($command !== null && $this->client->getCommandClientOptions()['caseInsensitiveCommands']) { - $command = strtolower($command); - } - - list($commandInstance, $options) = $this->client->buildCommand($command, $callable, $options); - $this->subCommands[$command] = $commandInstance; - - foreach ($options['aliases'] as $alias) { - $this->registerSubCommandAlias($alias, $command); - } - - return $commandInstance; - } - - /** - * Unregisters a sub-command. - * - * @param string $command The command name. - * @throws \Exception - */ - public function unregisterSubCommand(string $command): void - { - if (! array_key_exists($command, $this->subCommands)) { - throw new \Exception("A sub-command with the name {$command} does not exist."); - } - - unset($this->subCommands[$command]); - } - - /** - * Registers a sub-command alias. - * - * @param string $alias The alias to add. - * @param string $command The command. - */ - public function registerSubCommandAlias(string $alias, string $command): void - { - if ($alias !== null && $this->client->getCommandClientOptions()['caseInsensitiveCommands']) { - $alias = strtolower($alias); - } - - $this->subCommandAliases[$alias] = $command; - } - - /** - * Unregisters a sub-command alias. - * - * @param string $alias The alias name. - * @throws \Exception - */ - public function unregisterSubCommandAlias(string $alias): void - { - if (! array_key_exists($alias, $this->subCommandAliases)) { - throw new \Exception("A sub-command alias with the name {$alias} does not exist."); - } - - unset($this->subCommandAliases[$alias]); - } - - /** - * Executes the command. - * - * @param Message $message The message. - * @param array $args An array of arguments. - * - * @return mixed The response. - */ - public function handle(Message $message, array $args) - { - $subCommand = $originalSubCommand = array_shift($args); - - if ($subCommand !== null && $this->client->getCommandClientOptions()['caseInsensitiveCommands']) { - $subCommand = strtolower($subCommand); - } - - if (array_key_exists($subCommand, $this->subCommands)) { - return $this->subCommands[$subCommand]->handle($message, $args); - } elseif (array_key_exists($subCommand, $this->subCommandAliases)) { - return $this->subCommands[$this->subCommandAliases[$subCommand]]->handle($message, $args); - } - - if (null !== $subCommand) { - array_unshift($args, $originalSubCommand); - } - - $currentTime = round(microtime(true) * 1000); - if (isset($this->cooldowns[$message->author->id])) { - if ($this->cooldowns[$message->author->id] < $currentTime) { - $this->cooldowns[$message->author->id] = $currentTime + $this->cooldown; - } else { - return sprintf($this->cooldownMessage, (($this->cooldowns[$message->author->id] - $currentTime) / 1000)); - } - } else { - $this->cooldowns[$message->author->id] = $currentTime + $this->cooldown; - } - - return call_user_func_array($this->callable, [$message, $args]); - } - - /** - * Gets help for the command. - * - * @param string $prefix The prefix of the bot. - * - * @return array The help. - */ - public function getHelp(string $prefix): array - { - if (! $this->showHelp) { - return []; - } - - $subCommandsHelp = []; - - foreach ($this->subCommands as $command) { - if ($command->showHelp) { - $subCommandsHelp[] = $command->getHelp($prefix.$this->command.' '); - } - } - - return [ - 'command' => $prefix.$this->command, - 'description' => $this->description, - 'longDescription' => $this->longDescription, - 'usage' => $this->usage, - 'subCommandsHelp' => $subCommandsHelp, - ]; - } - - /** - * Handles dynamic get calls to the class. - * - * @param string $variable The variable to get. - * - * @return mixed The value. - */ - public function __get(string $variable) - { - $allowed = ['command', 'description', 'longDescription', 'usage', 'cooldown', 'cooldownMessage', 'showHelp']; - - if (in_array($variable, $allowed)) { - return $this->{$variable}; - } - - return false; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Discord.php b/vendor/team-reflex/discord-php/src/Discord/Discord.php deleted file mode 100644 index 6a1c3a7..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Discord.php +++ /dev/null @@ -1,1748 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord; - -use Discord\Exceptions\IntentException; -use Discord\Factory\Factory; -use Discord\Helpers\BigInt; -use Discord\Helpers\CacheConfig; -use Discord\Helpers\RegisteredCommand; -use Discord\Http\Drivers\React; -use Discord\Http\Endpoint; -use Discord\Http\Http; -use Discord\Parts\Channel\Channel; -use Discord\Parts\Guild\Guild; -use Discord\Parts\OAuth\Application; -use Discord\Parts\Part; -use Discord\Parts\User\Activity; -use Discord\Parts\User\Client; -use Discord\Parts\User\Member; -use Discord\Parts\User\User; -use Discord\Repository\AbstractRepository; -use Discord\Repository\EmojiRepository; -use Discord\Repository\GuildRepository; -use Discord\Repository\PrivateChannelRepository; -use Discord\Repository\UserRepository; -use Discord\Voice\VoiceClient; -use Discord\WebSockets\Event; -use Discord\WebSockets\Events\GuildCreate; -use Discord\WebSockets\Handlers; -use Discord\WebSockets\Intents; -use Discord\WebSockets\Op; -use Evenement\EventEmitterTrait; -use Monolog\Formatter\LineFormatter; -use Monolog\Handler\StreamHandler; -use Monolog\Logger as Monolog; -use Psr\Log\LoggerInterface; -use Ratchet\Client\Connector; -use Ratchet\Client\WebSocket; -use Ratchet\RFC6455\Messaging\Message; -use React\EventLoop\Loop; -use React\EventLoop\LoopInterface; -use React\EventLoop\TimerInterface; -use React\Promise\Deferred; -use React\Promise\PromiseInterface; -use React\Socket\Connector as SocketConnector; -use Symfony\Component\OptionsResolver\OptionsResolver; - -use function React\Async\coroutine; -use function React\Promise\all; - -/** - * The Discord client class. - * - * @version 10.0.0 - * - * @property string $id The unique identifier of the client. - * @property string $username The username of the client. - * @property string $password The password of the client (if they have provided it). - * @property string $email The email of the client. - * @property bool $verified Whether the client has verified their email. - * @property string $avatar The avatar URL of the client. - * @property string $avatar_hash The avatar hash of the client. - * @property string $discriminator The unique discriminator of the client. - * @property bool $bot Whether the client is a bot. - * @property User $user The user instance of the client. - * @property Application $application The OAuth2 application of the bot. - * @property EmojiRepository $emojis - * @property GuildRepository $guilds - * @property PrivateChannelRepository $private_channels - * @property SoundRepository $sounds - * @property UserRepository $users - - */ -class Discord -{ - use EventEmitterTrait; - - /** - * The gateway version the client uses. - * - * @var int Gateway version. - */ - public const GATEWAY_VERSION = 10; - - /** - * The client version. - * - * @var string Version. - */ - public const VERSION = 'v10.0.0'; - - /** - * The logger. - * - * @var LoggerInterface Logger. - */ - protected $logger; - - /** - * An array of loggers for voice clients. - * - * @var ?LoggerInterface[] Loggers. - */ - protected $voiceLoggers = []; - - /** - * An array of options passed to the client. - * - * @var array Options. - */ - protected $options; - - /** - * The authentication token. - * - * @var string Token. - */ - protected $token; - - /** - * The ReactPHP event loop. - * - * @var LoopInterface Event loop. - */ - protected $loop; - - /** - * The WebSocket client factory. - * - * @var Connector Factory. - */ - protected $wsFactory; - - /** - * The WebSocket instance. - * - * @var WebSocket Instance. - */ - protected $ws; - - /** - * The event handlers. - * - * @var Handlers Handlers. - */ - protected $handlers; - - /** - * The packet sequence that the client is up to. - * - * @var int Sequence. - */ - protected $seq; - - /** - * Whether the client is currently reconnecting. - * - * @var bool Reconnecting. - */ - protected $reconnecting = false; - - /** - * Whether the client is connected to the gateway. - * - * @var bool Connected. - */ - protected $connected = false; - - /** - * Whether the client is closing. - * - * @var bool Closing. - */ - protected $closing = false; - - /** - * The session ID of the current session. - * - * @var string Session ID. - */ - protected $sessionId; - - /** - * An array of voice clients that are currently connected. - * - * @var array Voice Clients. - */ - protected $voiceClients = []; - - /** - * An array of large guilds that need to be requested for members. - * - * @var array Large guilds. - */ - protected $largeGuilds = []; - - /** - * An array of large guilds that have been requested for members. - * - * @var array Large guilds. - */ - protected $largeSent = []; - - /** - * An array of unparsed packets. - * - * @var array Unparsed packets. - */ - protected $unparsedPackets = []; - - /** - * How many times the client has reconnected. - * - * @var int Reconnect count. - */ - protected $reconnectCount = 0; - - /** - * The heartbeat interval. - * - * @var int Heartbeat interval. - */ - protected $heartbeatInterval; - - /** - * The timer that sends the heartbeat packet. - * - * @var TimerInterface Timer. - */ - protected $heartbeatTimer; - - /** - * The timer that resends the heartbeat packet if a HEARTBEAT_ACK packet is - * not received in 5 seconds. - * - * @var TimerInterface Timer. - */ - protected $heartbeatAckTimer; - - /** - * The time that the last heartbeat packet was sent. - * - * @var int Epoch time. - */ - protected $heartbeatTime; - - /** - * Whether `init` has been emitted. - * - * @var bool Emitted. - */ - protected $emittedInit = false; - - /** - * The gateway URL that the WebSocket client will connect to. - * - * @var string Gateway URL. - */ - protected $gateway; - - /** - * The resume_gateway_url that the WebSocket client will reconnect to. - * - * @var string resume_gateway_url URL. - */ - protected $resume_gateway_url; - - /** - * What encoding the client will use, either `json` or `etf`. - * - * @var string Encoding. - */ - protected $encoding = 'json'; - - /** - * Gateway compressed message payload buffer. - * - * @var string Buffer. - */ - protected $payloadBuffer = ''; - - /** - * zlib decompressor. - * - * @var \InflateContext|false - */ - protected $zlibDecompressor; - - /** - * Tracks the number of payloads the client has sent in the past 60 seconds. - * - * @var int - */ - protected $payloadCount = 0; - - /** - * Payload count reset timer. - * - * @var TimerInterface - */ - protected $payloadTimer; - - /** - * The HTTP client. - * - * @var Http Client. - */ - protected $http; - - /** - * The part/repository factory. - * - * @var Factory Part factory. - */ - protected $factory; - - /** - * The cache configuration. - * - * @var CacheConfig[] - */ - protected $cacheConfig; - - /** - * The Client class. - * - * @var Client Discord client. - */ - protected $client; - - /** - * An array of registered slash commands. - * - * @var RegisteredCommand[] - */ - private $application_commands; - - /** - * Creates a Discord client instance. - * - * @param array $options Array of options. - * @throws IntentException - */ - public function __construct(array $options = []) - { - if (php_sapi_name() !== 'cli') { - trigger_error('DiscordPHP will not run on a webserver. Please use PHP CLI to run a DiscordPHP bot.', E_USER_ERROR); - } - - // x86 need gmp extension for big integer operation - if (PHP_INT_SIZE === 4 && ! BigInt::init()) { - trigger_error('ext-gmp is not loaded, it is required for 32-bits (x86) PHP.', E_USER_ERROR); - } - - $options = $this->resolveOptions($options); - - $this->options = $options; - $this->token = $options['token']; - $this->loop = $options['loop']; - $this->logger = $options['logger']; - - $this->logger->debug('Initializing DiscordPHP '.self::VERSION.' (DiscordPHP-Http: '.Http::VERSION.' & Gateway: v'.self::GATEWAY_VERSION.') on PHP '.PHP_VERSION); - - $this->cacheConfig = $options['cache']; - if ($cacheConfig = $this->getCacheConfig()) { - $this->logger->warning('Attached experimental CacheInterface: '.get_class($cacheConfig->interface)); - } - - $connector = new SocketConnector($options['socket_options'], $this->loop); - $this->wsFactory = new Connector($this->loop, $connector); - $this->handlers = new Handlers(); - - foreach ($options['disabledEvents'] as $event) { - $this->handlers->removeHandler($event); - } - - $this->http = new Http( - 'Bot '.$this->token, - $this->loop, - $this->options['logger'], - new React($this->loop, $options['socket_options']) - ); - - $this->factory = new Factory($this); - $this->client = $this->factory->part(Client::class, []); - - $this->connectWs(); - } - - /** - * Handles `VOICE_SERVER_UPDATE` packets. - * - * @param object $data Packet data. - */ - protected function handleVoiceServerUpdate(object $data): void - { - if (isset($this->voiceClients[$data->d->guild_id])) { - $this->logger->debug('voice server update received', ['guild' => $data->d->guild_id, 'data' => $data->d]); - $this->voiceClients[$data->d->guild_id]->handleVoiceServerChange((array) $data->d); - } - } - - /** - * Handles `RESUME` packets. - * - * @param object $data Packet data. - */ - protected function handleResume(object $data): void - { - $this->logger->info('websocket reconnected to discord'); - $this->emit('reconnected', [$this]); - } - - /** - * Handles `READY` packets. - * - * @param object $data Packet data. - * - * @return false|void - * @throws \Exception - */ - protected function handleReady(object $data) - { - $this->logger->debug('ready packet received'); - - $content = $data->d; - - // Check if we received resume_gateway_url - if (isset($content->resume_gateway_url)) { - $this->resume_gateway_url = $content->resume_gateway_url; - $this->logger->debug('resume_gateway_url received', ['url' => $content->resume_gateway_url]); - } - - // If this is a reconnect we don't want to - // reparse the READY packet as it would remove - // all the data cached. - if ($this->reconnecting) { - $this->reconnecting = false; - $this->logger->debug('websocket reconnected to discord through identify'); - $this->emit('reconnected', [$this]); - - return; - } - - $this->emit('trace', $data->d->_trace); - $this->logger->debug('discord trace received', ['trace' => $content->_trace]); - - // Set up the user account - $this->client->fill((array) $content->user); - $this->client->created = true; - $this->sessionId = $content->session_id; - - $this->logger->debug('client created and session id stored', ['session_id' => $content->session_id, 'user' => $this->client->user->getPublicAttributes()]); - - // Guilds - $event = new GuildCreate($this); - - $unavailable = []; - - foreach ($content->guilds as $guild) { - /** @var PromiseInterface */ - $promise = coroutine([$event, 'handle'], $guild); - - $promise->then(function ($d) use (&$unavailable) { - if (! empty($d->unavailable)) { - $unavailable[$d->id] = $d->unavailable; - } - }); - } - - $this->logger->info('stored guilds', ['count' => $this->guilds->count(), 'unavailable' => count($unavailable)]); - - if (count($unavailable) < 1) { - return $this->ready(); - } - - // Emit ready after 60 seconds - $this->loop->addTimer(60, function () { - $this->ready(); - }); - - $guildLoad = new Deferred(); - - $onGuildCreate = function ($guild) use (&$unavailable, $guildLoad) { - if (empty($guild->unavailable)) { - $this->logger->debug('guild available', ['guild' => $guild->id, 'unavailable' => count($unavailable)]); - unset($unavailable[$guild->id]); - } - if (count($unavailable) < 1) { - $guildLoad->resolve(null); - } - }; - $this->on(Event::GUILD_CREATE, $onGuildCreate); - - $onGuildDelete = function ($guild) use (&$unavailable, $guildLoad) { - if (! isset($guild->unavailable)) { - // Rare Undocumented case, $guild->unavailable is missing but actually unavailable (perhaps kicked then unavailable/deleted) - $this->logger->debug('guild deleted', ['guild' => $guild->id, 'unavailable' => count($unavailable)]); - unset($unavailable[$guild->id]); - } elseif ($guild->unavailable) { - $this->logger->debug('guild unavailable', ['guild' => $guild->id, 'unavailable' => count($unavailable)]); - unset($unavailable[$guild->id]); - } - if (count($unavailable) < 1) { - $guildLoad->resolve(null); - } - }; - $this->on(Event::GUILD_DELETE, $onGuildDelete); - - $guildLoad->promise()->finally(function () use ($onGuildCreate, $onGuildDelete) { - $this->removeListener(Event::GUILD_CREATE, $onGuildCreate); - $this->removeListener(Event::GUILD_DELETE, $onGuildDelete); - $this->logger->info('all guilds are now available', ['count' => $this->guilds->count()]); - - $this->setupChunking(); - }); - } - - /** - * Handles `GUILD_MEMBERS_CHUNK` packets. - * - * @param object $data Packet data. - * @throws \Exception - */ - protected function handleGuildMembersChunk(object $data): void - { - if (! $guild = $this->guilds->get('id', $data->d->guild_id)) { - $this->logger->warning('not chunking member, Guild is not cached.', ['guild_id' => $data->d->guild_id]); - - return; - } - - $this->logger->debug('received guild member chunk', ['guild_id' => $data->d->guild_id, 'guild_name' => $guild->name, 'chunk_count' => count($data->d->members), 'member_collection' => $guild->members->count(), 'member_count' => $guild->member_count, 'progress' => [$data->d->chunk_index + 1, $data->d->chunk_count]]); - - $count = $skipped = 0; - $await = []; - foreach ($data->d->members as $member) { - $userId = $member->user->id; - if ($guild->members->offsetExists($userId)) { - continue; - } - - $member = (array) $member; - $member['guild_id'] = $data->d->guild_id; - $member['status'] = 'offline'; - $await[] = $guild->members->cache->set($userId, $this->factory->part(Member::class, $member, true)); - - if (! $this->users->offsetExists($userId)) { - $await[] = $this->users->cache->set($userId, $this->users->create($member['user'], true)); - } - - ++$count; - } - - all($await)->then(function () use ($guild, $count, $skipped) { - $membersCount = $guild->members->count(); - $this->logger->debug('parsed '.$count.' members (skipped '.$skipped.')', ['repository_count' => $membersCount, 'actual_count' => $guild->member_count]); - - if ($membersCount >= $guild->member_count) { - $this->largeSent = array_diff($this->largeSent, [$guild->id]); - - $this->logger->debug('all users have been loaded', ['guild' => $guild->id, 'member_collection' => $membersCount, 'member_count' => $guild->member_count]); - } - - if (count($this->largeSent) < 1) { - $this->ready(); - } - }); - } - - /** - * Handles `VOICE_STATE_UPDATE` packets. - * - * @param object $data Packet data. - */ - protected function handleVoiceStateUpdate(object $data): void - { - if (isset($this->voiceClients[$data->d->guild_id])) { - $this->logger->debug('voice state update received', ['guild' => $data->d->guild_id, 'data' => $data->d]); - $this->voiceClients[$data->d->guild_id]->handleVoiceStateUpdate($data->d); - } - } - - /** - * Handles WebSocket connections received by the client. - * - * @param WebSocket $ws WebSocket client. - */ - public function handleWsConnection(WebSocket $ws): void - { - $this->ws = $ws; - $this->connected = true; - - $this->logger->info('websocket connection has been created'); - - $this->payloadCount = 0; - $this->payloadTimer = $this->loop->addPeriodicTimer(60, function () { - $this->logger->debug('resetting payload count', ['count' => $this->payloadCount]); - $this->payloadCount = 0; - $this->emit('payload_count_reset'); - }); - - $ws->on('message', [$this, 'handleWsMessage']); - $ws->on('close', [$this, 'handleWsClose']); - $ws->on('error', [$this, 'handleWsError']); - } - - /** - * Handles WebSocket messages received by the client. - * - * @param Message $message Message object. - */ - public function handleWsMessage(Message $message): void - { - $payload = $message->getPayload(); - - if ($message->isBinary()) { - if ($this->zlibDecompressor) { - $this->payloadBuffer .= $payload; - - if ($message->getPayloadLength() < 4 || substr($payload, -4) != "\x00\x00\xff\xff") { - return; - } - - $this->processWsMessage(inflate_add($this->zlibDecompressor, $this->payloadBuffer)); - $this->payloadBuffer = ''; - } else { - $this->processWsMessage(zlib_decode($payload)); - } - } else { - $this->processWsMessage($payload); - } - } - - /** - * Process WebSocket message payloads. - * - * @param string $data Message payload. - */ - protected function processWsMessage(string $data): void - { - $data = json_decode($data); - $this->emit('raw', [$data, $this]); - - if (isset($data->s)) { - $this->seq = $data->s; - } - - $op = [ - Op::OP_DISPATCH => 'handleDispatch', - Op::OP_HEARTBEAT => 'handleHeartbeat', - Op::OP_RECONNECT => 'handleReconnect', - Op::OP_INVALID_SESSION => 'handleInvalidSession', - Op::OP_HELLO => 'handleHello', - Op::OP_HEARTBEAT_ACK => 'handleHeartbeatAck', - ]; - - if (isset($data, $data->op, $op[$data->op])) { - $this->{$op[$data->op]}($data); - } - } - - /** - * Handles WebSocket closes received by the client. - * - * @param int $op The close code. - * @param string $reason The reason the WebSocket closed. - */ - public function handleWsClose(int $op, string $reason): void - { - $this->connected = false; - - if (null !== $this->heartbeatTimer) { - $this->loop->cancelTimer($this->heartbeatTimer); - $this->heartbeatTimer = null; - } - - if (null !== $this->heartbeatAckTimer) { - $this->loop->cancelTimer($this->heartbeatAckTimer); - $this->heartbeatAckTimer = null; - } - - if (null !== $this->payloadTimer) { - $this->loop->cancelTimer($this->payloadTimer); - $this->payloadTimer = null; - } - - if ($this->closing) { - return; - } - - $this->logger->warning('websocket closed', ['op' => $op, 'reason' => $reason]); - - if (in_array($op, Op::getCriticalCloseCodes())) { - $this->logger->error('not reconnecting - critical op code', ['op' => $op, 'reason' => $reason]); - } else { - $this->logger->warning('reconnecting in 2 seconds'); - - $this->loop->addTimer(2, function () { - ++$this->reconnectCount; - $this->reconnecting = true; - $this->logger->info('starting reconnect', ['reconnect_count' => $this->reconnectCount]); - $this->connectWs(); - }); - } - } - - /** - * Handles WebSocket errors received by the client. - * - * @param \Exception $e The error. - */ - public function handleWsError(\Exception $e): void - { - // Pawl pls - if (strpos($e->getMessage(), 'Tried to write to closed stream') !== false) { - return; - } - - $this->logger->error('websocket error', ['e' => $e->getMessage()]); - $this->emit('error', [$e, $this]); - $this->ws->close(Op::CLOSE_ABNORMAL, $e->getMessage()); - } - - /** - * Handles cases when the WebSocket cannot be connected to. - * - * @param \Throwable $e - */ - public function handleWsConnectionFailed(\Throwable $e): void - { - $this->logger->error('failed to connect to websocket, retry in 5 seconds', ['e' => $e->getMessage()]); - - $this->loop->addTimer(5, function () { - $this->connectWs(); - }); - } - - /** - * Handles dispatch events received by the WebSocket. - * - * @param object $data Packet data. - */ - protected function handleDispatch(object $data): void - { - $hData = $this->handlers->getHandler($data->t); - - if (null === $hData) { - $handlers = [ - Event::VOICE_SERVER_UPDATE => 'handleVoiceServerUpdate', - Event::RESUMED => 'handleResume', - Event::READY => 'handleReady', - Event::GUILD_MEMBERS_CHUNK => 'handleGuildMembersChunk', - Event::VOICE_STATE_UPDATE => 'handleVoiceStateUpdate', - ]; - - if (isset($handlers[$data->t])) { - $this->{$handlers[$data->t]}($data); - } - - return; - } - - /** @var Event */ - $handler = new $hData['class']($this); - - $deferred = new Deferred(); - $deferred->promise()->then(function ($d) use ($data, $hData) { - if (is_array($d) && count($d) == 2) { - list($new, $old) = $d; - } else { - $new = $d; - $old = null; - } - - $this->emit($data->t, [$new, $this, $old]); - - foreach ($hData['alternatives'] as $alternative) { - $this->emit($alternative, [$d, $this]); - } - - if ($data->t == Event::MESSAGE_CREATE && mentioned($this->client->user, $new)) { - $this->emit('mention', [$new, $this, $old]); - } - }, function ($e) use ($data) { - if ($e instanceof \Error) { - throw $e; - } elseif ($e instanceof \Exception) { - $this->logger->error('exception while trying to handle dispatch packet', ['packet' => $data->t, 'exception' => $e]); - } else { - $this->logger->warning('rejection while trying to handle dispatch packet', ['packet' => $data->t, 'rejection' => $e]); - } - }); - - $parse = [ - Event::GUILD_CREATE, - Event::GUILD_DELETE, - ]; - - if (! $this->emittedInit && (! in_array($data->t, $parse))) { - $this->unparsedPackets[] = function () use (&$handler, &$deferred, &$data) { - /** @var PromiseInterface */ - $promise = coroutine([$handler, 'handle'], $data->d); - $promise->then([$deferred, 'resolve'], [$deferred, 'reject']); - }; - } else { - /** @var PromiseInterface */ - $promise = coroutine([$handler, 'handle'], $data->d); - $promise->then([$deferred, 'resolve'], [$deferred, 'reject']); - } - } - - /** - * Handles heartbeat packets received by the client. - * - * @param object $data Packet data. - */ - protected function handleHeartbeat(object $data): void - { - $this->logger->debug('received heartbeat', ['seq' => $data->d]); - - $payload = [ - 'op' => Op::OP_HEARTBEAT, - 'd' => $data->d, - ]; - - $this->send($payload); - } - - /** - * Handles heartbeat ACK packets received by the client. - * - * @param object $data Packet data. - */ - protected function handleHeartbeatAck(object $data): void - { - $received = microtime(true); - $diff = $received - $this->heartbeatTime; - $time = $diff * 1000; - - if (null !== $this->heartbeatAckTimer) { - $this->loop->cancelTimer($this->heartbeatAckTimer); - $this->heartbeatAckTimer = null; - } - - $this->emit('heartbeat-ack', [$time, $this]); - $this->logger->debug('received heartbeat ack', ['response_time' => $time]); - } - - /** - * Handles reconnect packets received by the client. - * - * @param object $data Packet data. - */ - protected function handleReconnect(object $data): void - { - $this->logger->warning('received opcode 7 for reconnect'); - - $this->ws->close( - Op::CLOSE_UNKNOWN_ERROR, - 'gateway redirecting - opcode 7' - ); - } - - /** - * Handles invalid session packets received by the client. - * - * @param object $data Packet data. - */ - protected function handleInvalidSession(object $data): void - { - $this->logger->warning('invalid session, re-identifying', ['resumable' => $data->d]); - - $this->loop->addTimer(2, function () use ($data) { - $this->identify($data->d); - }); - } - - /** - * Handles HELLO packets received by the websocket. - * - * @param object $data Packet data. - */ - protected function handleHello(object $data): void - { - $this->logger->info('received hello'); - $this->setupHeartbeat($data->d->heartbeat_interval); - $this->identify(); - } - - /** - * Identifies with the Discord gateway with `IDENTIFY` or `RESUME` packets. - * - * @param bool $resume Whether resume should be enabled. - * @return bool - */ - protected function identify(bool $resume = true): bool - { - if ($resume && $this->reconnecting && null !== $this->sessionId) { - $payload = [ - 'op' => Op::OP_RESUME, - 'd' => [ - 'session_id' => $this->sessionId, - 'seq' => $this->seq, - 'token' => $this->token, - ], - ]; - - $reason = 'resuming connection'; - } else { - $payload = [ - 'op' => Op::OP_IDENTIFY, - 'd' => [ - 'token' => $this->token, - 'properties' => [ - 'os' => PHP_OS, - 'browser' => $this->http->getUserAgent(), - 'device' => $this->http->getUserAgent(), - 'referrer' => 'https://github.com/discord-php/DiscordPHP', - 'referring_domain' => 'https://github.com/discord-php/DiscordPHP', - ], - 'compress' => true, - 'intents' => $this->options['intents'], - ], - ]; - - if ( - array_key_exists('shardId', $this->options) && - array_key_exists('shardCount', $this->options) - ) { - $payload['d']['shard'] = [ - (int) $this->options['shardId'], - (int) $this->options['shardCount'], - ]; - } - - $reason = 'identifying'; - } - - $safePayload = $payload; - $safePayload['d']['token'] = 'xxxxxx'; - - $this->logger->info($reason, ['payload' => $safePayload]); - - $this->send($payload); - - return $payload['op'] == Op::OP_RESUME; - } - - /** - * Sends a heartbeat packet to the Discord gateway. - */ - public function heartbeat(): void - { - $this->logger->debug('sending heartbeat', ['seq' => $this->seq]); - - $payload = [ - 'op' => Op::OP_HEARTBEAT, - 'd' => $this->seq, - ]; - - $this->send($payload, true); - $this->heartbeatTime = microtime(true); - $this->emit('heartbeat', [$this->seq, $this]); - - $this->heartbeatAckTimer = $this->loop->addTimer($this->heartbeatInterval / 1000, function () { - if (! $this->connected) { - return; - } - - $this->logger->warning('did not receive heartbeat ACK within heartbeat interval, closing connection'); - $this->ws->close(1001, 'did not receive heartbeat ack'); - }); - } - - /** - * Sets guild member chunking up. - * - * @return false|void - */ - protected function setupChunking() - { - if ($this->options['loadAllMembers'] === false) { - $this->logger->info('loadAllMembers option is disabled, not setting chunking up'); - - return $this->ready(); - } - - $checkForChunks = function () { - if ((count($this->largeGuilds) < 1) && (count($this->largeSent) < 1)) { - $this->ready(); - - return; - } - - if (count($this->largeGuilds) < 1) { - $this->logger->debug('unprocessed chunks', $this->largeSent); - - return; - } - - if (is_array($this->options['loadAllMembers'])) { - foreach ($this->largeGuilds as $key => $guild) { - if (! in_array($guild, $this->options['loadAllMembers'])) { - $this->logger->debug('not fetching members for guild ID '.$guild); - unset($this->largeGuilds[$key]); - } - } - } - - $chunks = array_chunk($this->largeGuilds, 50); - $this->logger->debug('sending '.count($chunks).' chunks with '.count($this->largeGuilds).' large guilds overall'); - $this->largeSent = array_merge($this->largeGuilds, $this->largeSent); - $this->largeGuilds = []; - - $sendChunks = function () use (&$sendChunks, &$chunks) { - $chunk = array_pop($chunks); - - if (null === $chunk) { - return; - } - - $this->logger->debug('sending chunk with '.count($chunk).' large guilds'); - - foreach ($chunk as $guild_id) { - $payload = [ - 'op' => Op::OP_GUILD_MEMBER_CHUNK, - 'd' => [ - 'guild_id' => $guild_id, - 'query' => '', - 'limit' => 0, - ], - ]; - - $this->send($payload); - } - $this->loop->addTimer(1, $sendChunks); - }; - - $sendChunks(); - }; - - $this->loop->addPeriodicTimer(5, $checkForChunks); - $this->logger->info('set up chunking, checking for chunks every 5 seconds'); - $checkForChunks(); - } - - /** - * Sets the heartbeat timer up. - * - * @param int $interval The heartbeat interval in milliseconds. - */ - protected function setupHeartbeat(int $interval): void - { - $this->heartbeatInterval = $interval; - if (isset($this->heartbeatTimer)) { - $this->loop->cancelTimer($this->heartbeatTimer); - } - - $interval = $interval / 1000; - $this->heartbeatTimer = $this->loop->addPeriodicTimer($interval, [$this, 'heartbeat']); - $this->heartbeat(); - - $this->logger->info('heartbeat timer initialized', ['interval' => $interval * 1000]); - } - - /** - * Initializes the connection with the Discord gateway. - */ - protected function connectWs(): void - { - $this->setGateway()->then(function ($gateway) { - if (isset($gateway['session']) && $session = $gateway['session']) { - if ($session['remaining'] < 2) { - $this->logger->error('exceeded number of reconnects allowed, waiting before attempting reconnect', $session); - $this->loop->addTimer($session['reset_after'] / 1000, function () { - $this->connectWs(); - }); - - return; - } - } - - $this->logger->info('starting connection to websocket', ['gateway' => $this->gateway]); - - /** @var PromiseInterface */ - $promise = ($this->wsFactory)($this->gateway); - $promise->then([$this, 'handleWsConnection'], [$this, 'handleWsConnectionFailed']); - }); - } - - /** - * Requests soundboard sounds for the specified guilds. - * - * @param array $guildIds Array of guild IDs. - */ - public function requestSoundboardSounds(array $guildIds): void - { - $payload = [ - 'op' => Op::REQUEST_SOUNDBOARD_SOUNDS, - 'd' => [ - 'guild_ids' => $guildIds - ], - ]; - - $this->send($payload); - } - - /** - * Sends a packet to the Discord gateway. - * - * @param array $data Packet data. - */ - protected function send(array $data, bool $force = false): void - { - // Wait until payload count has been reset - // Keep 5 payloads for heartbeats as required - if ($this->payloadCount >= 115 && ! $force) { - $this->logger->debug('payload not sent, waiting', ['payload' => $data]); - $this->once('payload_count_reset', function () use ($data) { - $this->send($data); - }); - } else { - ++$this->payloadCount; - $data = json_encode($data); - $this->ws->send($data); - } - } - - /** - * Emits init if it has not been emitted already. - * @return false|void - */ - protected function ready() - { - if ($this->emittedInit) { - return false; - } - $this->emittedInit = true; - - $this->logger->info('client is ready'); - $this->emit('init', [$this]); - - if (count($this->listeners('ready'))) { - $this->logger->info("The 'ready' event is deprecated and will be removed in a future version of DiscordPHP. Please use 'init' instead."); - $this->emit('ready', [$this]); // deprecated - } - - foreach ($this->unparsedPackets as $parser) { - $parser(); - } - } - - /** - * Updates the clients presence. - * - * @param Activity|null $activity The current client activity, or null. - * Note: The activity type _cannot_ be custom, and the only valid fields are `name`, `type` and `url`. - * @param bool $idle Whether the client is idle. - * @param string $status The current status of the client. - * Must be one of the following: - * online, dnd, idle, invisible, offline - * @param bool $afk Whether the client is AFK. - * - * @throws \UnexpectedValueException - */ - public function updatePresence(?Activity $activity = null, bool $idle = false, string $status = 'online', bool $afk = false): void - { - $idle = $idle ? time() * 1000 : null; - - if (null !== $activity) { - $activity = $activity->getRawAttributes(); - - if (! in_array($activity['type'], [Activity::TYPE_GAME, Activity::TYPE_STREAMING, Activity::TYPE_LISTENING, Activity::TYPE_WATCHING, Activity::TYPE_CUSTOM, Activity::TYPE_COMPETING])) { - throw new \UnexpectedValueException("The given activity type ({$activity['type']}) is invalid."); - } - } - - $allowed = ['online', 'dnd', 'idle', 'invisible', 'offline']; - - if (! in_array($status, $allowed)) { - $status = 'online'; - } - - $payload = [ - 'op' => Op::OP_PRESENCE_UPDATE, - 'd' => [ - 'since' => $idle, - 'activities' => [$activity], - 'status' => $status, - 'afk' => $afk, - ], - ]; - - $this->send($payload); - } - - /** - * Gets a voice client from a guild ID. Returns null if there is no voice client. - * - * @param string $guild_id The guild ID to look up. - * - * @return VoiceClient|null - */ - public function getVoiceClient(string $guild_id): ?VoiceClient - { - return $this->voiceClients[$guild_id] ?? null; - } - - /** - * Joins a voice channel. - * - * @param Channel $channel The channel to join. - * @param bool $mute Whether you should be mute when you join the channel. - * @param bool $deaf Whether you should be deaf when you join the channel. - * @param LoggerInterface|null $logger Voice client logger. If null, uses same logger as Discord client. - * - * @throws \RuntimeException - * - * @since 10.0.0 Removed argument $check that has no effect (it is always checked) - * @since 4.0.0 - * - * @return PromiseInterface - */ - public function joinVoiceChannel(Channel $channel, $mute = false, $deaf = true, ?LoggerInterface $logger = null): PromiseInterface - { - $deferred = new Deferred(); - - if (! $channel->isVoiceBased()) { - $deferred->reject(new \RuntimeException('Channel must allow voice.')); - - return $deferred->promise(); - } - - if (isset($this->voiceClients[$channel->guild_id])) { - $deferred->reject(new \RuntimeException('You cannot join more than one voice channel per guild.')); - - return $deferred->promise(); - } - - $data = [ - 'user_id' => $this->id, - 'deaf' => $deaf, - 'mute' => $mute, - ]; - - $voiceStateUpdate = function ($vs, $discord) use ($channel, &$data, &$voiceStateUpdate) { - if ($vs->guild_id != $channel->guild_id) { - return; // This voice state update isn't for our guild. - } - - $data['session'] = $vs->session_id; - $this->logger->info('received session id for voice session', ['guild' => $channel->guild_id, 'session_id' => $vs->session_id]); - $this->removeListener(Event::VOICE_STATE_UPDATE, $voiceStateUpdate); - }; - - $voiceServerUpdate = function ($vs, $discord) use ($channel, &$data, &$voiceServerUpdate, $deferred, $logger) { - if ($vs->guild_id != $channel->guild_id) { - return; // This voice server update isn't for our guild. - } - - $data['token'] = $vs->token; - $data['endpoint'] = $vs->endpoint; - $data['dnsConfig'] = $discord->options['dnsConfig']; - $this->logger->info('received token and endpoint for voice session', ['guild' => $channel->guild_id, 'token' => $vs->token, 'endpoint' => $vs->endpoint]); - - if (null === $logger) { - $logger = $this->logger; - } - - $vc = new VoiceClient($this->ws, $this->loop, $channel, $logger, $data); - - $vc->once('ready', function () use ($vc, $deferred, $channel, $logger) { - $logger->info('voice client is ready'); - $this->voiceClients[$channel->guild_id] = $vc; - - $vc->setBitrate($channel->bitrate); - $logger->info('set voice client bitrate', ['bitrate' => $channel->bitrate]); - $deferred->resolve($vc); - }); - $vc->once('error', function ($e) use ($deferred, $logger) { - $logger->error('error initializing voice client', ['e' => $e->getMessage()]); - $deferred->reject($e); - }); - $vc->once('close', function () use ($channel, $logger) { - $logger->warning('voice client closed'); - unset($this->voiceClients[$channel->guild_id]); - }); - - $vc->start(); - - $this->voiceLoggers[$channel->guild_id] = $logger; - $this->removeListener(Event::VOICE_SERVER_UPDATE, $voiceServerUpdate); - }; - - $this->on(Event::VOICE_STATE_UPDATE, $voiceStateUpdate); - $this->on(Event::VOICE_SERVER_UPDATE, $voiceServerUpdate); - - $payload = [ - 'op' => Op::OP_VOICE_STATE_UPDATE, - 'd' => [ - 'guild_id' => $channel->guild_id, - 'channel_id' => $channel->id, - 'self_mute' => $mute, - 'self_deaf' => $deaf, - ], - ]; - - $this->send($payload); - - return $deferred->promise(); - } - - /** - * Retrieves and sets the gateway URL for the client. - * - * @param string|null $gateway Gateway URL to set. - * - * @return PromiseInterface - */ - protected function setGateway(?string $gateway = null): PromiseInterface - { - $deferred = new Deferred(); - $defaultSession = [ - 'total' => 1000, - 'remaining' => 1000, - 'reset_after' => 0, - 'max_concurrency' => 1, - ]; - - $buildParams = function ($gateway, $session = null) use ($deferred, $defaultSession) { - $session = $session ?? $defaultSession; - $params = [ - 'v' => self::GATEWAY_VERSION, - 'encoding' => $this->encoding, - ]; - - if ($this->zlibDecompressor = inflate_init(ZLIB_ENCODING_DEFLATE)) { - $params['compress'] = 'zlib-stream'; - } - - $query = http_build_query($params); - $this->gateway = trim($gateway, '/').'/?'.$query; - - $deferred->resolve(['gateway' => $this->gateway, 'session' => (array) $session]); - }; - - if (null === $gateway) { - $this->http->get(Endpoint::GATEWAY_BOT)->then(function ($response) use ($buildParams) { - if ($response->shards > 1) { - $this->logger->info('Please contact the DiscordPHP devs at https://discord.gg/dphp or https://github.com/discord-php/DiscordPHP/issues if you are interested in assisting us with sharding support development.'); - } - $buildParams($this->resume_gateway_url ?? $response->url, $response->session_start_limit); - }, function ($e) use ($buildParams) { - // Can't access the API server so we will use the default gateway. - $this->logger->warning('could not retrieve gateway, using default'); - $buildParams('wss://gateway.discord.gg'); - }); - } else { - $buildParams($gateway); - } - - return $deferred->promise()->then(function ($gateway) { - $this->logger->info('gateway retrieved and set', $gateway); - - return $gateway; - }, function ($e) { - $this->logger->error('error obtaining gateway', ['e' => $e->getMessage()]); - - return $e; - }); - } - - /** - * Resolves the options. - * - * @param array $options Array of options. - * - * @return array Options. - * @throws IntentException - */ - protected function resolveOptions(array $options = []): array - { - $resolver = new OptionsResolver(); - - $resolver - ->setRequired('token') - ->setDefined([ - 'token', - 'shardId', - 'shardCount', - 'loop', - 'logger', - 'loadAllMembers', - 'disabledEvents', - 'storeMessages', - 'retrieveBans', - 'intents', - 'socket_options', - 'dnsConfig', - 'cache', - ]) - ->setDefaults([ - 'logger' => null, - 'loadAllMembers' => false, - 'disabledEvents' => [], - 'storeMessages' => false, - 'retrieveBans' => false, - 'intents' => Intents::getDefaultIntents(), - 'socket_options' => [], - 'cache' => [AbstractRepository::class => null], // use LegacyCacheWrapper - ]) - ->setAllowedTypes('token', 'string') - ->setAllowedTypes('logger', ['null', LoggerInterface::class]) - ->setAllowedTypes('loop', LoopInterface::class) - ->setAllowedTypes('loadAllMembers', ['bool', 'array']) - ->setAllowedTypes('disabledEvents', 'array') - ->setAllowedTypes('storeMessages', 'bool') - ->setAllowedTypes('retrieveBans', ['bool', 'array']) - ->setAllowedTypes('intents', ['array', 'int']) - ->setAllowedTypes('socket_options', 'array') - ->setAllowedTypes('dnsConfig', ['string', \React\Dns\Config\Config::class]) - ->setAllowedTypes('cache', ['array', CacheConfig::class, \React\Cache\CacheInterface::class, \Psr\SimpleCache\CacheInterface::class]) - ->setNormalizer('cache', function ($options, $value) { - if (! is_array($value)) { - if (! ($value instanceof CacheConfig)) { - $value = new CacheConfig($value); - } - - return [AbstractRepository::class => $value]; - } - - return $value; - }); - - $options = $resolver->resolve($options); - - $options['loop'] ??= Loop::get(); - - if (null === $options['logger']) { - $streamHandler = new StreamHandler('php://stdout', Monolog::DEBUG); - $lineFormatter = new LineFormatter(null, null, true, true); - $streamHandler->setFormatter($lineFormatter); - $logger = new Monolog('DiscordPHP', [$streamHandler]); - $options['logger'] = $logger; - } - - if (! isset($options['dnsConfig'])) { - $dnsConfig = \React\Dns\Config\Config::loadSystemConfigBlocking(); - if (! $dnsConfig->nameservers) { - $dnsConfig->nameservers[] = '8.8.8.8'; - } - - $options['dnsConfig'] = $dnsConfig; - } - - if (is_array($options['intents'])) { - $intent = 0; - $validIntents = Intents::getValidIntents(); - - foreach ($options['intents'] as $idx => $i) { - if (! in_array($i, $validIntents)) { - throw new IntentException('Given intent at index '.$idx.' is invalid.'); - } - - $intent |= $i; - } - - $options['intents'] = $intent; - } - - if ($options['loadAllMembers'] && ! ($options['intents'] & Intents::GUILD_MEMBERS)) { - throw new IntentException('You have enabled the `loadAllMembers` option but have not enabled the required `GUILD_MEMBERS` intent.'. - 'See the documentation on the `loadAllMembers` property for more information: http://discord-php.github.io/DiscordPHP/#basics'); - } - - // Discord doesn't currently support IPv6 - // This prevents xdebug from catching exceptions when trying to fetch IPv6 - // for Discord - $options['socket_options']['happy_eyeballs'] = false; - - return $options; - } - - /** - * Adds a large guild to the large guild array. - * - * @param Guild $guild The guild. - */ - public function addLargeGuild(Part $guild): void - { - $this->largeGuilds[] = $guild->id; - } - - /** - * Starts the ReactPHP event loop. - */ - public function run(): void - { - $this->loop->run(); - } - - /** - * Closes the Discord client. - * - * @param bool $closeLoop Whether to close the loop as well. Default true. - */ - public function close(bool $closeLoop = true): void - { - $this->closing = true; - if ($this->ws) { - $this->ws->close($closeLoop ? Op::CLOSE_UNKNOWN_ERROR : Op::CLOSE_NORMAL, 'discordphp closing...'); - } - $this->emit('closed', [$this]); - $this->logger->info('discord closed'); - - if ($closeLoop) { - $this->loop->stop(); - } - } - - /** - * Allows access to the part/repository factory. - * - * @param string $class The class to build. - * @param mixed $data Data to create the object. - * @param bool $created Whether the object is created (if part). - * - * @return Part|AbstractRepository - * - * @see Factory::create() - * - * @deprecated 10.0.0 Use `new $class($discord, ...)`. - */ - public function factory(string $class, $data = [], bool $created = false) - { - return $this->factory->create($class, $data, $created); - } - - /** - * Gets the factory. - * - * @return Factory - */ - public function getFactory(): Factory - { - return $this->factory; - } - - /** - * Gets the HTTP client. - * - * @return Http - */ - public function getHttpClient(): Http - { - return $this->http; - } - - /** - * Gets the loop being used by the client. - * - * @return LoopInterface - */ - public function getLoop(): LoopInterface - { - return $this->loop; - } - - /** - * Gets the logger being used. - * - * @return LoggerInterface - */ - public function getLogger(): LoggerInterface - { - return $this->logger; - } - - /** - * Gets the HTTP client. - * - * @return Http - * - * @deprecated Use Discord::getHttpClient() - */ - public function getHttp(): Http - { - return $this->http; - } - - /** - * Gets the cache configuration. - * - * @param string $repository_class Repository class name. - * - * @return ?CacheConfig - */ - public function getCacheConfig($repository_class = AbstractRepository::class) - { - if (! array_key_exists($repository_class, $this->cacheConfig)) { - $repository_class = AbstractRepository::class; - } - - return $this->cacheConfig[$repository_class]; - } - - /** - * Handles dynamic get calls to the client. - * - * @param string $name Variable name. - * - * @return mixed - */ - public function __get(string $name) - { - $allowed = ['loop', 'options', 'logger', 'http', 'application_commands']; - - if (in_array($name, $allowed)) { - return $this->{$name}; - } - - if (null === $this->client) { - return; - } - - return $this->client->{$name}; - } - - /** - * Handles dynamic set calls to the client. - * - * @param string $name Variable name. - * @param mixed $value Value to set. - */ - public function __set(string $name, $value): void - { - if (null === $this->client) { - return; - } - - $this->client->{$name} = $value; - } - - /** - * Gets a cached channel. - * - * @param string|int $channel_id ID of the channel. - * - * @return Channel|null null if not found in the cache. - */ - public function getChannel($channel_id): ?Channel - { - foreach ($this->guilds as $guild) { - if ($channel = $guild->channels->get('id', $channel_id)) { - return $channel; - } - } - - if ($channel = $this->private_channels->get('id', $channel_id)) { - return $channel; - } - - return null; - } - - /** - * Add listener for incoming application command from interaction. - * - * @param string|array $name - * @param callable|null $callback - * @param callable|null $autocomplete_callback - * - * @throws \LogicException - * - * @return RegisteredCommand - */ - public function listenCommand($name, ?callable $callback = null, ?callable $autocomplete_callback = null): RegisteredCommand - { - if (is_array($name) && count($name) == 1) { - $name = array_shift($name); - } - - // registering base command - if (! is_array($name) || count($name) == 1) { - if (isset($this->application_commands[$name])) { - throw new \LogicException("The command `{$name}` already exists."); - } - - return $this->application_commands[$name] = new RegisteredCommand($this, $name, $callback, $autocomplete_callback); - } - - $baseCommand = array_shift($name); - - if (! isset($this->application_commands[$baseCommand])) { - $this->listenCommand($baseCommand); - } - - return $this->application_commands[$baseCommand]->addSubCommand($name, $callback, $autocomplete_callback); - } - - /** - * Handles dynamic calls to the client. - * - * @param string $name Function name. - * @param array $params Function parameters. - * - * @return mixed - */ - public function __call(string $name, array $params) - { - if (null === $this->client) { - return; - } - - return call_user_func_array([$this->client, $name], $params); - } - - /** - * Returns an array that can be used to describe the internal state of this - * object. - * - * @return array - */ - public function __debugInfo(): array - { - $secrets = [ - 'token' => '*****', - ]; - $replace = array_intersect_key($secrets, $this->options); - $config = $replace + $this->options; - - unset($config['loop'], $config['logger']); - - $config[] = $this->client; - - return $config; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/DiscordCommandClient.php b/vendor/team-reflex/discord-php/src/Discord/DiscordCommandClient.php deleted file mode 100644 index b7b7536..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/DiscordCommandClient.php +++ /dev/null @@ -1,485 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord; - -use Discord\CommandClient\Command; -use Discord\Parts\Embed\Embed; -use Symfony\Component\OptionsResolver\OptionsResolver; - -/** - * Provides an easy way to have triggerable message based commands. - * - * @since 4.0.0 - */ -class DiscordCommandClient extends Discord -{ - /** - * An array of options passed to the client. - * - * @var array Options. - */ - protected $commandClientOptions; - - /** - * A map of the commands. - * - * @var array Commands. - */ - protected $commands = []; - - /** - * A map of aliases for commands. - * - * @var array Aliases. - */ - protected $aliases = []; - - /** - * Constructs a new command client. - * - * @param array $options An array of options. - * @throws \Exception - */ - public function __construct(array $options = []) - { - $this->commandClientOptions = $this->resolveCommandClientOptions($options); - - $discordOptions = array_merge($this->commandClientOptions['discordOptions'], [ - 'token' => $this->commandClientOptions['token'], - ]); - - parent::__construct($discordOptions); - - $this->on('init', function () { - $this->commandClientOptions['prefix'] = str_replace('@mention', (string) $this->user, $this->commandClientOptions['prefix']); - $this->commandClientOptions['name'] = str_replace('', $this->username, $this->commandClientOptions['name']); - - foreach ($this->commandClientOptions['prefixes'] as $key => $prefix) { - if (contains($prefix, ['@mention'])) { - $this->commandClientOptions['prefixes'][] = str_replace('@mention', "<@{$this->user->id}>", $prefix); - $this->commandClientOptions['prefixes'][] = str_replace('@mention', "<@!{$this->user->id}>", $prefix); - unset($this->commandClientOptions['prefixes'][$key]); - } - } - - $this->on('message', function ($message) { - if ($message->author->id == $this->id) { - return; - } - - if ($withoutPrefix = $this->checkForPrefix($message->content)) { - $args = str_getcsv($withoutPrefix, ' '); - $command = array_shift($args); - - if (null !== $command && $this->commandClientOptions['caseInsensitiveCommands']) { - $command = strtolower($command); - } - - if (array_key_exists($command, $this->commands)) { - $command = $this->commands[$command]; - } elseif (array_key_exists($command, $this->aliases)) { - $command = $this->commands[$this->aliases[$command]]; - } else { - // Command doesn't exist. - return; - } - - $result = $command->handle($message, $args); - - if (is_string($result)) { - $message - ->reply($result) - ->then(null, $this->commandClientOptions['internalRejectedPromiseHandler']); - } - } - }); - }); - - if ($this->commandClientOptions['defaultHelpCommand']) { - $this->registerCommand('help', function ($message, $args) { - $prefix = str_replace((string) $this->user, '@'.$this->username, $this->commandClientOptions['prefix']); - $fullCommandString = implode(' ', $args); - - if (count($args) > 0) { - $command = $this; - while (count($args) > 0) { - $commandString = array_shift($args); - $newCommand = $command->getCommand($commandString); - - if (null === $newCommand) { - return "The command {$commandString} does not exist."; - } - - $command = $newCommand; - } - - $help = $command->getHelp($prefix); - if (empty($help)) { - return; - } - - $embed = new Embed($this); - $embed->setAuthor($this->commandClientOptions['name'], $this->client->user->avatar) - ->setTitle($prefix.$fullCommandString.'\'s Help') - ->setDescription(! empty($help['longDescription']) ? $help['longDescription'] : $help['description']) - ->setFooter($this->commandClientOptions['name']); - - if (! empty($help['usage'])) { - $embed->addFieldValues('Usage', '``'.$help['usage'].'``', true); - } - - if (! empty($this->aliases)) { - $aliasesString = ''; - foreach ($this->aliases as $alias => $command) { - if ($command != $commandString) { - continue; - } - - $aliasesString .= "{$alias}\r\n"; - } - - if (! empty($aliasesString)) { - $embed->addFieldValues('Aliases', $aliasesString, true); - } - } - - if (! empty($help['subCommandsHelp'])) { - foreach ($help['subCommandsHelp'] as $subCommandHelp) { - $embed->addFieldValues($subCommandHelp['command'], $subCommandHelp['description'], true); - } - } - - $message->channel - ->sendEmbed($embed) - ->then(null, $this->commandClientOptions['internalRejectedPromiseHandler']); - - return; - } - - $embed = new Embed($this); - $embed->setAuthor($this->commandClientOptions['name'], $this->client->avatar) - ->setTitle($this->commandClientOptions['name']) - ->setType(Embed::TYPE_RICH) - ->setFooter($this->commandClientOptions['name']); - - $commandsDescription = ''; - $embedfields = []; - foreach ($this->commands as $command) { - $help = $command->getHelp($prefix); - if (empty($help)) { - continue; - } - $embedfields[] = [ - 'name' => $help['command'], - 'value' => $help['description'], - 'inline' => true, - ]; - $commandsDescription .= "\n\n`".$help['command']."`\n".$help['description']; - - foreach ($help['subCommandsHelp'] as $subCommandHelp) { - $embedfields[] = [ - 'name' => $subCommandHelp['command'], - 'value' => $subCommandHelp['description'], - 'inline' => true, - ]; - $commandsDescription .= "\n\n`".$subCommandHelp['command']."`\n".$subCommandHelp['description']; - } - } - // Use embed fields in case commands count is below limit - if (count($embedfields) <= 25) { - foreach ($embedfields as $field) { - $embed->addField($field); - } - $commandsDescription = ''; - } - - $embed->setDescription(substr($this->commandClientOptions['description'].$commandsDescription, 0, 2048)); - - $message->channel - ->sendEmbed($embed) - ->then(null, $this->commandClientOptions['internalRejectedPromiseHandler']); - }, [ - 'description' => 'Provides a list of commands available.', - 'usage' => '[command]', - ]); - } - } - - /** - * Checks for a prefix in the message content, and returns the content of - * the message minus the prefix if a prefix was detected. If no prefix is - * detected, null is returned. - * - * @param string $content - * - * @return string|null - */ - protected function checkForPrefix(string $content): ?string - { - foreach ($this->commandClientOptions['prefixes'] as $prefix) { - if (substr($content, 0, strlen($prefix)) == $prefix) { - return substr($content, strlen($prefix)); - } - } - - return null; - } - - /** - * Registers a new command. - * - * @param string $command The command name. - * @param callable|string $callable The function called when the command is executed. - * @param array $options An array of options. - * - * @return Command The command instance. - * @throws \Exception - */ - public function registerCommand(string $command, $callable, array $options = []): Command - { - if (null !== $command && $this->commandClientOptions['caseInsensitiveCommands']) { - $command = strtolower($command); - } - if (array_key_exists($command, $this->commands)) { - throw new \Exception("A command with the name {$command} already exists."); - } - - list($commandInstance, $options) = $this->buildCommand($command, $callable, $options); - $this->commands[$command] = $commandInstance; - - foreach ($options['aliases'] as $alias) { - if (null !== $alias && $this->commandClientOptions['caseInsensitiveCommands']) { - $alias = strtolower($alias); - } - $this->registerAlias($alias, $command); - } - - return $commandInstance; - } - - /** - * Unregisters a command. - * - * @param string $command The command name. - * @throws \Exception - */ - public function unregisterCommand(string $command): void - { - if (! array_key_exists($command, $this->commands)) { - throw new \Exception("A command with the name {$command} does not exist."); - } - - unset($this->commands[$command]); - } - - /** - * Registers a command alias. - * - * @param string $alias The alias to add. - * @param string $command The command. - */ - public function registerAlias(string $alias, string $command): void - { - $this->aliases[$alias] = $command; - } - - /** - * Unregisters a command alias. - * - * @param string $alias The alias name. - * @throws \Exception - */ - public function unregisterCommandAlias(string $alias): void - { - if (! array_key_exists($alias, $this->aliases)) { - throw new \Exception("A command alias with the name {$alias} does not exist."); - } - - unset($this->aliases[$alias]); - } - - /** - * Attempts to get a command. - * - * @param string $command The command to get. - * @param bool $aliases Whether to search aliases as well. - * - * @return Command|null The command. - */ - public function getCommand(string $command, bool $aliases = true): ?Command - { - if (array_key_exists($command, $this->commands)) { - return $this->commands[$command]; - } - - if (array_key_exists($command, $this->aliases) && $aliases) { - return $this->commands[$this->aliases[$command]]; - } - - return null; - } - - /** - * Builds a command and returns it. - * - * @param string $command The command name. - * @param callable|string $callable The function called when the command is executed. - * @param array $options An array of options. - * - * @return Command[]|array[] The command instance and options. - */ - public function buildCommand(string $command, $callable, array $options = []): array - { - if (is_string($callable)) { - $callable = function ($message) use ($callable) { - return $callable; - }; - } elseif (is_array($callable) && ! is_callable($callable)) { - $callable = function ($message) use ($callable) { - return $callable[array_rand($callable)]; - }; - } - - if (! is_callable($callable)) { - throw new \Exception('The callable parameter must be a string, array or callable.'); - } - - $options = $this->resolveCommandOptions($options); - - $commandInstance = new Command( - $this, - $command, - $callable, - $options['description'], - $options['longDescription'], - $options['usage'], - $options['cooldown'], - $options['cooldownMessage'], - $options['showHelp'] - ); - - return [$commandInstance, $options]; - } - - /** - * Resolves command options. - * - * @param array $options Array of options. - * - * @return array Options. - */ - protected function resolveCommandOptions(array $options): array - { - $resolver = new OptionsResolver(); - - $resolver - ->setDefined([ - 'description', - 'longDescription', - 'usage', - 'aliases', - 'cooldown', - 'cooldownMessage', - 'showHelp', - ]) - ->setDefaults([ - 'description' => 'No description provided.', - 'longDescription' => '', - 'usage' => '', - 'aliases' => [], - 'cooldown' => 0, - 'cooldownMessage' => 'please wait %d second(s) to use this command again.', - 'showHelp' => true, - ]); - - $options = $resolver->resolve($options); - - return $options; - } - - /** - * Resolves the options. - * - * @param array $options Array of options. - * - * @return array Options. - */ - protected function resolveCommandClientOptions(array $options): array - { - $resolver = new OptionsResolver(); - - $resolver - ->setRequired('token') - ->setAllowedTypes('token', 'string') - ->setDefined([ - 'token', - 'prefix', - 'prefixes', - 'name', - 'description', - 'defaultHelpCommand', - 'discordOptions', - 'caseInsensitiveCommands', - 'internalRejectedPromiseHandler', - ]) - ->setAllowedTypes('internalRejectedPromiseHandler', ['null', 'callable']) - ->setDefaults([ - 'prefix' => '@mention ', - 'prefixes' => [], - 'name' => '', - 'description' => 'A bot made with DiscordPHP '.self::VERSION.'.', - 'defaultHelpCommand' => true, - 'discordOptions' => [], - 'caseInsensitiveCommands' => false, - 'internalRejectedPromiseHandler' => function ($reason): void { - if (is_string($reason) || $reason instanceof \Stringable) { - $this->getLogger()->error($reason); - } else { - $this->getLogger()->warning('Unhandled internal rejected promise, $reason is not a Throwable, ' . gettype($reason) . ' given.'); - } - } - ]); - - $options = $resolver->resolve($options); - $options['prefixes'][] = $options['prefix']; - - return $options; - } - - /** - * Returns the command client options. - * - * @return array - */ - public function getCommandClientOptions() - { - return $this->commandClientOptions; - } - - /** - * Handles dynamic get calls to the command client. - * - * @param string $name Variable name. - * - * @return mixed - */ - public function __get(string $name) - { - $allowed = ['commands', 'aliases']; - - if (in_array($name, $allowed)) { - return $this->{$name}; - } - - return parent::__get($name); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Exceptions/BufferTimedOutException.php b/vendor/team-reflex/discord-php/src/Discord/Exceptions/BufferTimedOutException.php deleted file mode 100644 index 74428e0..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Exceptions/BufferTimedOutException.php +++ /dev/null @@ -1,30 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Exceptions; - -use RuntimeException; - -/** - * Thrown when reading from a buffer times out. - * - * @since 10.0.0 - */ -class BufferTimedOutException extends RuntimeException -{ - /** - * Create a new buffer timeout exception. - */ - public function __construct() - { - parent::__construct('Reading from the buffer timed out.'); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Exceptions/DCANotFoundException.php b/vendor/team-reflex/discord-php/src/Discord/Exceptions/DCANotFoundException.php deleted file mode 100644 index 5fd484c..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Exceptions/DCANotFoundException.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Exceptions; - -/** - * Thrown when DCA could not be found. - * - * @since 3.2.0 - */ -class DCANotFoundException extends \Exception -{ -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Exceptions/FFmpegNotFoundException.php b/vendor/team-reflex/discord-php/src/Discord/Exceptions/FFmpegNotFoundException.php deleted file mode 100644 index ac12807..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Exceptions/FFmpegNotFoundException.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Exceptions; - -/** - * Thrown when the FFmpeg binary cannot be found in your PATH. - * - * @since 3.2.0 - */ -class FFmpegNotFoundException extends \Exception -{ -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Exceptions/FileNotFoundException.php b/vendor/team-reflex/discord-php/src/Discord/Exceptions/FileNotFoundException.php deleted file mode 100644 index a75a151..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Exceptions/FileNotFoundException.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Exceptions; - -/** - * Thrown when the client cannot find the file that was specified. - * - * @since 3.0.3 - */ -class FileNotFoundException extends \Exception -{ -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Exceptions/IntentException.php b/vendor/team-reflex/discord-php/src/Discord/Exceptions/IntentException.php deleted file mode 100644 index f128325..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Exceptions/IntentException.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Exceptions; - -/** - * Thrown when an invalid intent is given. - * - * @since 5.0.0 - */ -class IntentException extends \Exception -{ -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Exceptions/InvalidOverwriteException.php b/vendor/team-reflex/discord-php/src/Discord/Exceptions/InvalidOverwriteException.php deleted file mode 100644 index eb2d902..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Exceptions/InvalidOverwriteException.php +++ /dev/null @@ -1,19 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Exceptions; - -/** - * @since 5.0.0 - */ -class InvalidOverwriteException extends \Exception -{ -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Exceptions/LibSodiumNotFoundException.php b/vendor/team-reflex/discord-php/src/Discord/Exceptions/LibSodiumNotFoundException.php deleted file mode 100644 index 5fedbc7..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Exceptions/LibSodiumNotFoundException.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Exceptions; - -/** - * Thrown when libsodium or libsodium-php cannot be found. - * - * @since 3.2.1 - */ -class LibSodiumNotFoundException extends \Exception -{ -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Exceptions/OpusNotFoundException.php b/vendor/team-reflex/discord-php/src/Discord/Exceptions/OpusNotFoundException.php deleted file mode 100644 index 7fff899..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Exceptions/OpusNotFoundException.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Exceptions; - -/** - * Thrown when FFmpeg is not compiled with libopus. - * - * @since 3.2.0 - */ -class OpusNotFoundException extends \Exception -{ -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Exceptions/OutdatedDCAException.php b/vendor/team-reflex/discord-php/src/Discord/Exceptions/OutdatedDCAException.php deleted file mode 100644 index a862301..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Exceptions/OutdatedDCAException.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Exceptions; - -/** - * Thrown when the installed DCA version is outdated. - * - * @since 3.2.0 - */ -class OutdatedDCAException extends \Exception -{ -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Exceptions/PartRequestFailedException.php b/vendor/team-reflex/discord-php/src/Discord/Exceptions/PartRequestFailedException.php deleted file mode 100644 index a489cb4..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Exceptions/PartRequestFailedException.php +++ /dev/null @@ -1,24 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Exceptions; - -/** - * Thrown when a request that was executed from a part failed. - * - * @see \Discord\Parts\Part::save() Can be thrown when being saved. - * @see \Discord\Parts\Part::delete() Can be thrown when being deleted. - * - * @since 2.0.0 - */ -class PartRequestFailedException extends \Exception -{ -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Factory/Factory.php b/vendor/team-reflex/discord-php/src/Discord/Factory/Factory.php deleted file mode 100644 index d6c35cb..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Factory/Factory.php +++ /dev/null @@ -1,95 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Factory; - -use Discord\Discord; -use Discord\Parts\Part; -use Discord\Repository\AbstractRepository; - -/** - * Exposes an interface to build part objects without the other requirements. - * - * @since 4.0.0 - */ -class Factory -{ - /** - * The Discord client. - * - * @var Discord Client. - */ - protected $discord; - - /** - * Constructs a factory. - * - * @param Discord $discord The Discord client. - */ - public function __construct(Discord $discord) - { - $this->discord = $discord; - } - - /** - * Creates an object. - * - * @param string $class The class to build. - * @param mixed $data Data to create the object. - * @param bool $created Whether the object is created (if part). - * - * @return Part|AbstractRepository The object. - * @throws \Exception - */ - public function create(string $class, $data = [], bool $created = false) - { - if (! is_array($data)) { - $data = (array) $data; - } - - if (strpos($class, 'Discord\\Parts') !== false) { - $object = $this->part($class, $data, $created); - } elseif (strpos($class, 'Discord\\Repository') !== false) { - $object = $this->repository($class, $data); - } else { - throw new \Exception('The class '.$class.' is not a Part or a Repository.'); - } - - return $object; - } - - /** - * Creates a part. - * - * @param string $class The class to build. - * @param array $data Data to create the object. - * @param bool $created Whether the object is created (if part). - * - * @return Part The part. - */ - public function part(string $class, array $data = [], bool $created = false): Part - { - return new $class($this->discord, $data, $created); - } - - /** - * Creates a repository. - * - * @param string $class The class to build. - * @param array $data Data to create the object. - * - * @return AbstractRepository The repository. - */ - public function repository(string $class, array $data = []): AbstractRepository - { - return new $class($this->discord, $data); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Helpers/BigInt.php b/vendor/team-reflex/discord-php/src/Discord/Helpers/BigInt.php deleted file mode 100644 index 065e117..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Helpers/BigInt.php +++ /dev/null @@ -1,218 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Helpers; - -/** - * Polyfill to handle big integer operation in 32 bit PHP using ext-gmp. - * - * @since 10.0.0 Renamed from Bitwise to BigInt - * @since 7.0.0 - */ -final class BigInt -{ - private static bool $is_32_gmp = false; - - /** - * Run a single check whether the GMP extension is loaded. - * Internally used during Discord class construct. - * - * @internal - * - * @return bool true if GMP extension is loaded - */ - public static function init(): bool - { - if (extension_loaded('gmp')) { - self::$is_32_gmp = true; - } - - return self::$is_32_gmp; - } - - /** - * @param \GMP|int|string $num1 - * @param \GMP|int|string $num2 - * - * @return \GMP|int $num1 & $num2 - */ - public static function and($num1, $num2) - { - if (self::$is_32_gmp) { - return \gmp_and(self::floatCast($num1), self::floatCast($num2)); - } - - return $num1 & $num2; - } - - /** - * @param \GMP|int|string $num1 - * @param \GMP|int|string $num2 - * - * @return \GMP|int $num1 | $num2 - */ - public static function or($num1, $num2) - { - if (self::$is_32_gmp) { - return \gmp_or(self::floatCast($num1), self::floatCast($num2)); - } - - return $num1 | $num2; - } - - /** - * @param \GMP|int|string $num1 - * @param \GMP|int|string $num2 - * - * @return \GMP|int $num1 ^ $num2 - */ - public static function xor($num1, $num2) - { - if (self::$is_32_gmp) { - return \gmp_xor(self::floatCast($num1), self::floatCast($num2)); - } - - return $num1 ^ $num2; - } - - /** - * @param \GMP|int|string $value - * - * @return \GMP|int ~ $value - */ - public static function not($value) - { - if (self::$is_32_gmp) { - return \gmp_sub(\gmp_neg(self::floatCast($value)), 1); - } - - return ~$value; - } - - /** - * @param \GMP|int|string $num1 - * @param int $num2 - * - * @return \GMP|int $num1 << $num2 - */ - public static function shiftLeft($num1, int $num2) - { - if (self::$is_32_gmp) { - return \gmp_mul(self::floatCast($num1), \gmp_pow(2, $num2)); - } - - return $num1 << $num2; - } - - /** - * @param \GMP|int|string $num1 - * @param int $num2 - * - * @return \GMP|int $num1 >> $num2 - */ - public static function shiftRight($num1, int $num2) - { - if (self::$is_32_gmp) { - return \gmp_div(self::floatCast($num1), \gmp_pow(2, $num2)); - } - - return $num1 >> $num2; - } - - /** - * @param \GMP|int|string $num1 - * @param int $num2 - * - * @return bool $num1 & (1 << $num2) - */ - public static function test($num1, int $num2): bool - { - if (self::$is_32_gmp) { - return \gmp_testbit(self::floatCast($num1), $num2); - } - - return $num1 & (1 << $num2); - } - - /** - * @param \GMP|int|string $num1 - * @param int $num2 - * - * @return \GMP|int $num1 |= (1 << $num2) - */ - public static function set($num1, int $num2) - { - if (self::$is_32_gmp) { - $gmp = \gmp_init(self::floatCast($num1)); - \gmp_setbit($gmp, $num2); - - return $gmp; - } - - return $num1 |= (1 << $num2); - } - - /** - * @param \GMP|int|string $num1 - * @param \GMP|int|string $num2 - * - * @return \GMP|int $num1 + $num2 - */ - public static function add($num1, $num2) - { - return (self::$is_32_gmp) ? \gmp_add(self::floatCast($num1), self::floatCast($num2)) : $num1 + $num2; - } - - /** - * @param \GMP|int|string $num1 - * @param \GMP|int|string $num2 - * - * @return \GMP|int $num1 - $num2 - */ - public static function sub($num1, $num2) - { - return (self::$is_32_gmp) ? \gmp_sub(self::floatCast($num1), self::floatCast($num2)) : $num1 - $num2; - } - - /** - * Safely converts float to string, avoiding locale-dependent issues. - * - * @link https://github.com/brick/math/pull/20 - * - * @param mixed $value if not a float, it is discarded - * - * @return string|mixed string if value is a float, otherwise discarded - */ - public static function floatCast($value) - { - // Discard non float - if (! is_float($value)) { - return $value; - } - - $currentLocale = setlocale(LC_NUMERIC, '0'); - setlocale(LC_NUMERIC, 'C'); - - $result = (string) $value; - - setlocale(LC_NUMERIC, $currentLocale); - - return $result; - } - - /** - * @return bool Whether the GMP extension is loaded - */ - public static function is32BitWithGMP(): bool - { - return self::$is_32_gmp; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Helpers/Buffer.php b/vendor/team-reflex/discord-php/src/Discord/Helpers/Buffer.php deleted file mode 100644 index 71fff96..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Helpers/Buffer.php +++ /dev/null @@ -1,209 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Helpers; - -use Discord\Exceptions\BufferTimedOutException; -use Evenement\EventEmitter; -use React\EventLoop\LoopInterface; -use React\Promise\Deferred; -use React\Promise\PromiseInterface; -use React\Stream\WritableStreamInterface; - -/** - * @since 6.0.0 - */ -class Buffer extends EventEmitter implements WritableStreamInterface -{ - /** - * Internal buffer. - * - * @var string - */ - private $buffer = ''; - - /** - * Array of deferred reads waiting to be resolved. - * - * @var Deferred[]|int[] - */ - private $reads = []; - - /** - * Whether the buffer has been closed. - * - * @var bool - */ - private $closed = false; - - /** - * ReactPHP event loop. - * Required for timeouts. - * - * @var LoopInterface - */ - private $loop; - - public function __construct(LoopInterface $loop = null) - { - $this->loop = $loop; - } - - /** - * {@inheritDoc} - */ - public function write($data): bool - { - if ($this->closed) { - return false; - } - - $this->buffer .= (string) $data; - - foreach ($this->reads as $key => [$deferred, $length]) { - if (($output = $this->readRaw($length)) !== false) { - $deferred->resolve($output); - unset($this->reads[$key]); - } - } - - return true; - } - - /** - * Reads from the buffer and returns in a string. - * Returns false if there were not enough bytes in the buffer. - * - * @param int $length Number of bytes to read. - * - * @return string|bool The bytes read, or false if not enough bytes are present. - */ - private function readRaw(int $length) - { - if (strlen($this->buffer) >= $length) { - $output = substr($this->buffer, 0, $length); - $this->buffer = substr($this->buffer, $length); - - return $output; - } - - return false; - } - - /** - * Reads from the buffer and returns a promise. - * The promise will resolve when there are enough bytes in the buffer to - * read. - * - * @param int $length Number of bytes to read. - * @param null|string $format Format to read the bytes in. See `pack()`. - * @param int $timeout Time in milliseconds before the read times out. - * - * @return PromiseInterface - * - * @throws \RuntimeException When there is an error unpacking the read bytes. - */ - public function read(int $length, ?string $format = null, ?int $timeout = -1): PromiseInterface - { - $deferred = new Deferred(); - - if (($output = $this->readRaw($length)) !== false) { - $deferred->resolve($output); - } else { - $this->reads[] = [$deferred, $length]; - - if ($timeout > 0 && $this->loop !== null) { - $timer = $this->loop->addTimer($timeout / 1000, function () use ($deferred) { - $deferred->reject(new BufferTimedOutException()); - }); - - $deferred->promise()->then(function () use ($timer) { - $this->loop->cancelTimer($timer); - }); - } elseif ($timeout == 0) { - $deferred->reject(new BufferTimedOutException()); - } - } - - return $deferred->promise()->then(function ($d) use ($format) { - if ($format !== null) { - $unpacked = unpack($format, $d); - - if ($unpacked === false) { - throw new \RuntimeException('Error unpacking buffer.'); - } - - return reset($unpacked); - } - - return $d; - }); - } - - /** - * Reads a signed 32-bit integer from the buffer. - * - * @param int $timeout Time in milliseconds before the read times out. - * - * @return PromiseInterface - * - * @throws \RuntimeException When there is an error unpacking the read bytes. - */ - public function readInt32(int $timeout = -1): PromiseInterface - { - return $this->read(4, 'l', $timeout); - } - - /** - * Reads a signed 16-bit integer from the buffer. - * - * @param int $timeout Time in milliseconds before the read times out. - * - * @return PromiseInterface - * - * @throws \RuntimeException When there is an error unpacking the read bytes. - */ - public function readInt16(int $timeout = -1): PromiseInterface - { - return $this->read(2, 'v', $timeout); - } - - /** - * {@inheritDoc} - */ - public function isWritable() - { - return $this->closed; - } - - /** - * {@inheritDoc} - */ - public function end($data = null): void - { - $this->write($data); - $this->close(); - } - - /** - * {@inheritDoc} - */ - public function close(): void - { - if ($this->closed) { - return; - } - - $this->buffer = []; - $this->closed = true; - $this->emit('close'); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Helpers/CacheConfig.php b/vendor/team-reflex/discord-php/src/Discord/Helpers/CacheConfig.php deleted file mode 100644 index e77ba04..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Helpers/CacheConfig.php +++ /dev/null @@ -1,89 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Helpers; - -/** - * Cache configuration class. To be used with Discord `cache` Options. - * - * @see \Discord\Discord - * @see CacheWrapper - * - * @since 10.0.0 - * - * @property-read \React\Cache\CacheInterface|\Psr\SimpleCache\CacheInterface $interface The PSR-16 cache interface. - * @property-read string $separator The cache key prefix separator if supported by the interface. Usually dot `.` for generic cache or colon `:` for Redis/Memcached. - */ -class CacheConfig -{ - /** - * @var \React\Cache\CacheInterface|\Psr\SimpleCache\CacheInterface - */ - protected $interface; - - /** - * Whether to compress cache data before serialization, disabled by default, ignored in ArrayCache. - * - * @var bool - */ - public bool $compress = false; - - /** - * Whether to automatically sweep cached items from memory, disabled by default. - * - * @var bool - */ - public bool $sweep = false; - - /** - * @var string - */ - protected string $separator = '.'; - - /** - * The default Time To Live for `$interface::set()` and `$interface::setMultiple()`. - * - * @var null|int|\DateInterval|float - */ - public $ttl; - - /** - * @param \React\Cache\CacheInterface|\Psr\SimpleCache\CacheInterface $interface The PSR-16 Cache Interface. - * @param bool $compress Whether to compress cache data before serialization, ignored in ArrayCache. - * @param bool $sweep Whether to automatically sweep cache. - * @param string|null $separator The cache key prefix separator, null for default. - * @param null|int|\DateInterval|float $ttl The cache time to live default value to pass to the interface. - */ - public function __construct($interface, bool $compress = false, bool $sweep = false, ?string $separator = null, $ttl = null) - { - $this->interface = $interface; - $this->sweep = $sweep; - $interfaceName = get_class($interface); - if (($this->compress = $compress) && stripos($interfaceName, 'Symfony') !== false) { - trigger_error('Symfony cache is not compatible with option `$compress = true`, Use the DeflateMarshaller to compress data!'); - } - if (null === $separator) { - $separator = '.'; - if (stripos($interfaceName, 'Redis') !== false || stripos($interfaceName, 'Memcached') !== false) { - $separator = ':'; - } - } - $this->separator = $separator; - $this->ttl = $ttl; - } - - public function __get(string $name) - { - if (in_array($name, ['interface', 'separator'])) { - return $this->$name; - } - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Helpers/CacheWrapper.php b/vendor/team-reflex/discord-php/src/Discord/Helpers/CacheWrapper.php deleted file mode 100644 index 1d80ae4..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Helpers/CacheWrapper.php +++ /dev/null @@ -1,512 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Helpers; - -use Discord\Discord; -use Discord\Parts\Part; -use React\Cache\ArrayCache; -use React\Promise\PromiseInterface; -use Throwable; -use WeakReference; - -use function React\Promise\all; -use function React\Promise\reject; -use function React\Promise\resolve; - -/** - * Wrapper for CacheInterface that store Repository items. - * - * Compatible with react/cache 0.5 - 1.x and psr/simple-cache interface. - * - * @since 10.0.0 - * - * @property-read CacheConfig $config Cache configuration. - */ -class CacheWrapper -{ - /** - * @var Discord - */ - protected $discord; - - /** - * @var \React\Cache\CacheInterface|\Psr\SimpleCache\CacheInterface - */ - protected $interface; - - /** - * Repository items array reference. - * - * @var ?Part[]|WeakReference[] Cache Key => Cache Part. - */ - protected $items; - - /** - * The item class name reference. - * - * @var string - */ - protected $class; - - /** - * Cache key prefix. - * - * @var string - */ - protected $prefix; - - /** - * Cache configuration. - * - * @var CacheConfig - */ - protected $config; - - /** - * @param Discord $discord - * @param CacheConfig $config The cache configuration. - * @param array &$items Repository items passed by reference. - * @param string &$class Part class name. - * @param string[] $vars Variable containing hierarchy parent IDs. - * - * @internal - */ - public function __construct(Discord $discord, $config, &$items, string &$class, array $vars) - { - $this->discord = $discord; - $this->config = $config; - $this->items = &$items; - $this->class = &$class; - - $this->interface = $config->interface; - $this->prefix = implode($config->separator, [substr(strrchr($this->class, '\\'), 1)] + $vars).$config->separator; - - if ($config->sweep) { - // Sweep every heartbeat ack - $discord->on('heartbeat-ack', [$this, 'sweep']); - } - } - - public function __destruct() - { - $this->discord->removeListener('heartbeat-ack', [$this, 'sweep']); - } - - /** - * Get Part from cache. - * - * @param string $key - * @param mixed $default - * - * @return PromiseInterface - */ - public function get($key, $default = null) - { - $handleValue = function ($value) use ($key) { - if (null === $value) { - unset($this->items[$key]); - } else { - $value = $this->items[$key] = $this->unserializer($value); - } - - return $value; - }; - - try { - $result = $this->interface->get($this->prefix.$key, $default); - } catch (Throwable $throwable) { - return reject($throwable); - } - - if ($result instanceof PromiseInterface) { - return $result->then($handleValue); - } - - return resolve($handleValue($result)); - } - - /** - * Set Part into cache. - * - * @param string $key - * @param Part $value - * - * @return PromiseInterface - */ - public function set($key, $value, $ttl = null) - { - $ttl ??= $this->config->ttl; - $item = $this->serializer($value); - - $handleValue = function ($success) use ($key, $value) { - if ($success) { - $this->items[$key] = $value; - } - - return $success; - }; - - try { - $result = $this->interface->set($this->prefix.$key, $item, $ttl); - } catch (Throwable $throwable) { - return reject($throwable); - } - - if ($result instanceof PromiseInterface) { - return $result->then($handleValue); - } - - return resolve($handleValue($result)); - } - - /** - * Delete Part from cache. - * - * @param string $key - * - * @return PromiseInterface|bool - */ - public function delete($key) - { - $handleValue = function ($success) use ($key) { - if ($success) { - unset($this->items[$key]); - } - - return $success; - }; - - try { - $result = $this->interface->delete($this->prefix.$key); - } catch (Throwable $throwable) { - return reject($throwable); - } - - if ($result instanceof PromiseInterface) { - return $result->then($handleValue); - } - - return resolve($handleValue($result)); - } - - /** - * Get multiple Parts from cache. - * - * For react/cache 0.5 polyfill. - * - * @param array $keys - * @param ?Part $default - * - * @return PromiseInterface - */ - public function getMultiple(array $keys, $default = null) - { - if (is_callable([$this->interface, 'getMultiple'])) { - $handleValue = function ($values) { - foreach ($values as $key => &$value) { - if (null === $value) { - unset($this->items[$key]); - } else { - $value = $this->items[$key] = $this->unserializer($value); - } - } - - return $values; - }; - - try { - $result = $this->interface->getMultiple(array_map(fn ($key) => $this->prefix.$key, $keys), $default); - } catch (Throwable $throwable) { - return reject($throwable); - } - - if ($result instanceof PromiseInterface) { - return $result->then($handleValue); - } - - return resolve($handleValue($result)); - } - - $promises = []; - - foreach ($keys as $key) { - $promises[$key] = $this->get($key, $default); - } - - return all($promises); - } - - /** - * Set multiple Parts into cache. - * - * For react/cache 0.5 polyfill. - * - * @param Part[] $values - * @param ?int $ttl - * - * @return PromiseInterface - */ - public function setMultiple(array $values, $ttl = null) - { - $promises = []; - - foreach ($values as $key => $value) { - $promises[$key] = $this->set($key, $value, $ttl); - } - - return all($promises); - } - - /** - * Delete multiple Parts from cache. - * - * For react/cache 0.5 polyfill. - * - * @param array $keys - * - * @return PromiseInterface - */ - public function deleteMultiple(array $keys) - { - if (is_callable([$this->interface, 'deleteMultiple'])) { - $handleValue = function ($success) use ($keys) { - if ($success) { - foreach ($keys as $key) { - unset($this->items[$key]); - } - } - - return $success; - }; - - $keys = array_map(fn ($key) => $this->prefix.$key, $keys); - - try { - $result = $this->interface->deleteMultiple($keys); - } catch (Throwable $throwable) { - return reject($throwable); - } - - if ($result instanceof PromiseInterface) { - return $result->then($handleValue); - } - - return resolve($handleValue($result)); - } - - $promises = []; - - foreach ($keys as $key) { - $promises[$key] = $this->delete($key); - } - - return all($promises); - } - - /** - * Clear all Parts from cache. - * - * For react/cache 0.5 polyfill. - * - * @return PromiseInterface - */ - public function clear() - { - return $this->deleteMultiple(array_keys($this->items)); - } - - /** - * Check if Part is present in cache. - * - * For react/cache 0.5 polyfill. - * - * @param string $key - * - * @return PromiseInterface - */ - public function has($key) - { - $handleValue = function ($value) use ($key) { - if (! $value) { - unset($this->items[$key]); - } - - return (bool) $value; - }; - - try { - if (is_callable([$this->interface, 'has'])) { - $result = $this->interface->has($this->prefix.$key); - } else { - $result = $this->get($this->prefix.$key); - } - } catch (Throwable $throwable) { - return reject($throwable); - } - - if ($result instanceof PromiseInterface) { - return $result->then($handleValue); - } - - return resolve($handleValue($result)); - } - - /** - * Get the cache key prefix. - * - * @return string - */ - public function getPrefix() - { - return $this->prefix; - } - - /** - * Checks if a value is zlib compressed by checking the magic bytes. - * - * @param string $data The data to check. - * - * @return bool whether it's zlib compressed data or not. - * - * @link https://www.rfc-editor.org/rfc/rfc1950 - * - * @since 10.0.0 - */ - protected function isZlibCompressed(string $data): bool - { - $data = unpack('Ccmf/Cflg', $data); - $cmethod = $data['cmf'] & 0xF; - $cinfo = ($data['cmf'] & 0xF0) >> 4; - // $fcheck = $data['flg'] & 0x1F; - // $fdict = ($data['flg'] & 0x20) >> 5; - $flevel = ($data['flg'] & 0xC0) >> 6; - - // Ensure compression method is deflate - if ($cmethod !== 8) { - return false; - } - - // Ensure cinfo <= 32K window size - if ($cinfo > 7) { - return false; - } - - // Ensure [CMF][FLG] is a multiple of 31 as determined by fcheck - if (($data['cmf'] * 256 + $data['flg']) % 31 !== 0) { - return false; - } - - // Ensure valid compression level - if ($flevel > 3) { - return false; - } - - return true; - } - - /** - * @param Part $part - * - * @return object|string - */ - public function serializer($part) - { - $data = (object) (get_object_vars($part) + ['attributes' => $part->getRawAttributes()]); - - if (! ($this->interface instanceof ArrayCache)) { - if ($this->interface instanceof \React\Cache\CacheInterface) { - $data = serialize($data); - } - - if ($this->config->compress) { - $data = zlib_encode($data, ZLIB_ENCODING_DEFLATE); - } - } - - return $data; - } - - /** - * @param string $value - * - * @return ?Part - */ - public function unserializer($value) - { - if (! ($this->interface instanceof ArrayCache)) { - if ($this->isZlibCompressed($value)) { - $value = zlib_decode($value); - } - - if ($this->interface instanceof \React\Cache\CacheInterface) { - $tmp = unserialize($value); - if ($tmp === false) { - $this->discord->getLogger()->error('Malformed cache serialization', ['class' => $this->class, 'interface' => get_class($this->interface), 'serialized' => $value]); - - return null; - } - $value = $tmp; - } - } - - if (empty($value->attributes)) { - $this->discord->getLogger()->warning('Cached Part::$attributes is empty', ['class' => $this->class, 'interface' => get_class($this->interface), 'data' => $value]); - } - if (empty($value->created)) { - $this->discord->getLogger()->warning('Cached Part::$created is empty', ['class' => $this->class, 'interface' => get_class($this->interface), 'data' => $value]); - } - $part = $this->discord->getFactory()->part($this->class, $value->attributes, $value->created); - foreach ($value as $name => $var) { - if (! in_array($name, ['created', 'attributes'])) { - $part->{$name} = $var; - } - } - - return $part; - } - - /** - * Prune deleted items from cache and weaken items. Items with Bot's ID are - * exempt. - * - * @return int Pruned items. - */ - public function sweep(): int - { - $pruning = 0; - foreach ($this->items as $key => $item) { - if (null === $item) { - // Item was removed from memory, delete from cache - $this->delete($key); - $pruning++; - } elseif ($item instanceof Part) { - // Skip ID related to Bot - if ($key != $this->discord->id) { - // Item is no longer used other than in the repository, weaken so it can be garbage collected - $this->items[$key] = WeakReference::create($item); - } - } - } - if ($pruning) { - $this->discord->getLogger()->debug('Pruning repository cache', ['count' => $pruning, 'class' => $this->class]); - } - - return $pruning; - } - - public function __get(string $name) - { - if ($name === 'config') { - return $this->config; - } - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Helpers/Collection.php b/vendor/team-reflex/discord-php/src/Discord/Helpers/Collection.php deleted file mode 100644 index d64f1ab..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Helpers/Collection.php +++ /dev/null @@ -1,44 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Helpers; - -/** - * Collection of items. Inspired by Laravel Collections. - * - * @since 5.0.0 No longer extends Laravel's BaseCollection - * @since 4.0.0 - */ -class Collection implements CollectionInterface -{ - /** - * The collection discriminator. - * - * @var ?string - */ - protected $discrim; - - /** - * The items contained in the collection. - * - * @var array - */ - protected $items; - - /** - * Class type allowed into the collection. - * - * @var string - */ - protected $class; - - use CollectionTrait; -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Helpers/CollectionInterface.php b/vendor/team-reflex/discord-php/src/Discord/Helpers/CollectionInterface.php deleted file mode 100644 index 9395aec..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Helpers/CollectionInterface.php +++ /dev/null @@ -1,51 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Helpers; - -use ArrayAccess; -use Countable; -use IteratorAggregate; -use JsonSerializable; -use Traversable; - -interface CollectionInterface extends ArrayAccess, JsonSerializable, IteratorAggregate, Countable -{ - public function get(string $discrim, $key); - public function set($offset, $value); - public function pull($key, $default = null); - public function fill(array $items): self; - public function push(...$items): self; - public function pushItem($item): self; - public function count(): int; - public function first(); - public function last(); - public function isset($offset): bool; - public function has(...$keys): bool; - public function filter(callable $callback); - public function find(callable $callback); - public function clear(): void; - public function map(callable $callback); - public function merge($collection): self; - public function toArray(); - public function offsetExists($offset): bool; - #[\ReturnTypeWillChange] - public function offsetGet($offset); - public function offsetSet($offset, $value): void; - public function offsetUnset($offset): void; - public function serialize(): string; - public function __serialize(): array; - public function unserialize(string $serialized): void; - public function __unserialize(array $data): void; - public function jsonSerialize(): array; - public function getIterator(): Traversable; - public function __debugInfo(): array; -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Helpers/CollectionTrait.php b/vendor/team-reflex/discord-php/src/Discord/Helpers/CollectionTrait.php deleted file mode 100644 index 3ca091a..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Helpers/CollectionTrait.php +++ /dev/null @@ -1,464 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Helpers; - -trait CollectionTrait -{ - /** - * Create a new static. - * - * @param array $items - * @param ?string $discrim - * @param string|null $class - */ - public function __construct(array $items = [], ?string $discrim = 'id', ?string $class = null) - { - $this->items = $items; - $this->discrim = $discrim; - $this->class = $class; - } - - /** - * Creates a collection from an array. - * - * @param array $items - * @param ?string $discrim - * @param string|null $class - * - * @return static - */ - public static function from(array $items = [], ?string $discrim = 'id', ?string $class = null) - { - return new static($items, $discrim, $class); - } - - /** - * Creates a collection for a class. - * - * @param string $class - * @param ?string $discrim - * - * @return static - */ - public static function for(string $class, ?string $discrim = 'id') - { - return new static([], $discrim, $class); - } - - /** - * Gets an item from the collection. - * - * @param string $discrim - * @param mixed $key - * - * @return mixed - */ - public function get(string $discrim, $key) - { - if ($discrim == $this->discrim && isset($this->items[$key])) { - return $this->items[$key]; - } - - foreach ($this->items as $item) { - if (is_array($item) && isset($item[$discrim]) && $item[$discrim] == $key) { - return $item; - } elseif (is_object($item) && $item->{$discrim} == $key) { - return $item; - } - } - - return null; - } - - /** - * Sets a value in the collection. - * - * @param mixed $offset - * @param mixed $value - */ - public function set($offset, $value) - { - // Don't insert elements that are not of type class. - if (null !== $this->class && ! ($value instanceof $this->class)) { - return; - } - - $this->offsetSet($offset, $value); - } - - /** - * Pulls an item from the collection. - * - * @param mixed $key - * @param mixed $default - * - * @return mixed - */ - public function pull($key, $default = null) - { - if (isset($this->items[$key])) { - $default = $this->items[$key]; - unset($this->items[$key]); - } - - return $default; - } - - /** - * Fills an array of items into the collection. - * - * @param array $items - * - * @return self - */ - public function fill(array $items): self - { - foreach ($items as $item) { - $this->pushItem($item); - } - - return $this; - } - - /** - * Pushes items to the collection. - * - * @param mixed ...$items - * - * @return self - */ - public function push(...$items): self - { - foreach ($items as $item) { - $this->pushItem($item); - } - - return $this; - } - - /** - * Pushes a single item to the collection. - * - * @param mixed $item - * - * @return self - */ - public function pushItem($item): self - { - if (null === $this->discrim) { - $this->items[] = $item; - - return $this; - } - - if (null !== $this->class && ! ($item instanceof $this->class)) { - return $this; - } - - if (is_array($item)) { - $this->items[$item[$this->discrim]] = $item; - } elseif (is_object($item)) { - $this->items[$item->{$this->discrim}] = $item; - } - - return $this; - } - - /** - * Counts the amount of objects in the collection. - * - * @return int - */ - public function count(): int - { - return count($this->items); - } - - /** - * Returns the first element of the collection. - * - * @return mixed - */ - public function first() - { - foreach ($this->items as $item) { - return $item; - } - - return null; - } - - /** - * Returns the last element of the collection. - * - * @return mixed - */ - public function last() - { - $last = end($this->items); - - if ($last !== false) { - reset($this->items); - - return $last; - } - - return null; - } - - /** - * If the collection has an offset. - * - * @param mixed $offset - * - * @return bool - */ - public function isset($offset): bool - { - return $this->offsetExists($offset); - } - - /** - * Checks if the array has multiple offsets. - * - * @param string|int ...$keys - * - * @return bool - */ - public function has(...$keys): bool - { - foreach ($keys as $key) { - if (! isset($this->items[$key])) { - return false; - } - } - - return true; - } - - /** - * Runs a filter callback over the collection and returns a new static - * based on the response of the callback. - * - * @param callable $callback - * - * @return CollectionInterface - * - * @todo This method will be typed to return a CollectionInterface in v11 - */ - public function filter(callable $callback) - { - $collection = new static([], $this->discrim, $this->class); - - foreach ($this->items as $item) { - if ($callback($item)) { - $collection->push($item); - } - } - - return $collection; - } - - /** - * Runs a filter callback over the collection and returns the first item - * where the callback returns `true` when given the item. - * - * @param callable $callback - * - * @return mixed `null` if no items returns `true` when called in the `$callback`. - */ - public function find(callable $callback) - { - foreach ($this->items as $item) { - if ($callback($item)) { - return $item; - } - } - - return null; - } - - /** - * Clears the collection. - */ - public function clear(): void - { - $this->items = []; - } - - /** - * Runs a callback over the collection and creates a new static. - * - * @param callable $callback - * - * @return static - */ - public function map(callable $callback): static - { - $keys = array_keys($this->items); - $values = array_map($callback, array_values($this->items)); - - return new static(array_combine($keys, $values), $this->discrim, $this->class); - } - - /** - * Merges another collection into this collection. - * - * @param $collection - * - * @return self - */ - public function merge($collection): self - { - $this->items = array_merge($this->items, $collection->toArray()); - - return $this; - } - - /** - * Converts the collection to an array. - * - * @return array - */ - public function toArray() - { - return $this->items; - } - - /** - * @since 11.0.0 - * - * Get the keys of the items. - * - * @return int[]|string[] - */ - public function keys(): array - { - return array_keys($this->items); - } - - /** - * If the collection has an offset. - * - * @param mixed $offset - * - * @return bool - */ - public function offsetExists($offset): bool - { - return isset($this->items[$offset]); - } - - /** - * Gets an item from the collection. - * - * @param mixed $offset - * - * @return mixed - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->items[$offset] ?? null; - } - - /** - * Sets an item into the collection. - * - * @param mixed $offset - * @param mixed $value - */ - public function offsetSet($offset, $value): void - { - $this->items[$offset] = $value; - } - - /** - * Unsets an index from the collection. - * - * @param mixed $offset - */ - public function offsetUnset($offset): void - { - unset($this->items[$offset]); - } - - /** - * Returns the string representation of the collection. - * - * @return string - */ - public function serialize(): string - { - return json_encode($this->items); - } - - /** - * Returns the string representation of the collection. - * - * @return array - */ - public function __serialize(): array - { - return $this->items; - } - - /** - * Unserializes the collection. - * - * @param string $serialized - */ - public function unserialize(string $serialized): void - { - $this->items = json_decode($serialized); - } - - /** - * Unserializes the collection. - * - * @param array $data - */ - public function __unserialize(array $data): void - { - $this->items = $data; - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * - * @return array - */ - public function jsonSerialize(): array - { - return $this->items; - } - - /** - * Returns an iterator for the collection. - * - * @return \Traversable - */ - public function getIterator(): \Traversable - { - return new \ArrayIterator($this->items); - } - - /** - * Returns an item that will be displayed for debugging. - * - * @return array - */ - public function __debugInfo(): array - { - return $this->items; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Helpers/LegacyCacheWrapper.php b/vendor/team-reflex/discord-php/src/Discord/Helpers/LegacyCacheWrapper.php deleted file mode 100644 index 69b1b91..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Helpers/LegacyCacheWrapper.php +++ /dev/null @@ -1,207 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Helpers; - -use Discord\Discord; -use Discord\Parts\Part; -use React\Promise\PromiseInterface; - -use function React\Promise\resolve; - -/** - * Legacy v7.x in memory cache behavior - * - * @since 10.0.0 - * @internal - */ -final class LegacyCacheWrapper extends CacheWrapper -{ - /** - * Repository items array reference. - * - * @var ?Part[] Cache Key => Cache Part. - */ - protected $items; - - /** - * @param Discord $discord - * @param array &$items Repository items passed by reference. - * @param string &$class Part class name. - * - * @internal - */ - public function __construct(Discord $discord, &$items, string &$class) - { - $this->discord = $discord; - $this->items = &$items; - $this->class = &$class; - - $this->prefix = ''; - } - - public function __destruct() - { - } - - /** - * Get Part from cache. - * - * @param string $key - * @param mixed $default - * - * @return PromiseInterface - */ - public function get($key, $default = null) - { - return resolve($this->items[$key] ?? $default); - } - - /** - * Set Part into cache. - * - * @param string $key - * @param Part $value - * - * @return PromiseInterface - */ - public function set($key, $value, $ttl = null) - { - $this->items[$key] = $value; - - return resolve(true); - } - - /** - * Delete Part from cache. - * - * @param string $key - * - * @return PromiseInterface - */ - public function delete($key) - { - if (!array_key_exists($key, $this->items)) { - return resolve(false); - } - - unset($this->items[$key]); - - return resolve(true); - } - - /** - * Get multiple Parts from cache. - * - * @param array $keys - * @param ?Part $default - * - * @return PromiseInterface - */ - public function getMultiple(array $keys, $default = null) - { - $items = []; - foreach ($keys as $key) { - $items[$key] = $this->items[$key] ?? $default; - } - - return resolve($items); - } - - /** - * Set multiple Parts into cache. - * - * @param Part[] $values - * - * @return PromiseInterface - */ - public function setMultiple(array $values, $ttl = null) - { - foreach ($values as $key => $value) { - $this->items[$key] = $value; - } - - return resolve(true); - } - - /** - * Delete multiple Parts from cache. - * - * @param array $keys - * - * @return PromiseInterface - */ - public function deleteMultiple(array $keys) - { - foreach ($keys as $key) { - unset($this->items[$key]); - } - - return resolve(true); - } - - /** - * Clear all Parts from cache. - * - * @return PromiseInterface - */ - public function clear() - { - $this->items = []; - - return resolve(true); - } - - /** - * Check if Part is present in cache. - * - * @param string $key - * - * @return PromiseInterface - */ - public function has($key) - { - return resolve(array_key_exists($key, $this->items)); - } - - /** - * @param Part $part - * - * @return object - */ - public function serializer($part) - { - return (object) (get_object_vars($part) + ['attributes' => $part->getRawAttributes()]); - } - - /** - * @param object $value - * - * @return ?Part - */ - public function unserializer($value) - { - if (empty($value->attributes)) { - $this->discord->getLogger()->warning('Cached Part::$attributes is empty', ['class' => $this->class, 'interface' => 'LEGACY', 'data' => $value]); - } - if (empty($value->created)) { - $this->discord->getLogger()->warning('Cached Part::$created is empty', ['class' => $this->class, 'interface' => 'LEGACY', 'data' => $value]); - } - $part = $this->discord->getFactory()->part($this->class, $value->attributes, $value->created); - foreach ($value as $name => $var) { - if (!in_array($name, ['created', 'attributes'])) { - $part->{$name} = $var; - } - } - - return $part; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Helpers/Multipart.php b/vendor/team-reflex/discord-php/src/Discord/Helpers/Multipart.php deleted file mode 100644 index 9bd860d..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Helpers/Multipart.php +++ /dev/null @@ -1,139 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Helpers; -use Stringable; - -/** - * Builds a multipart request. - * - * @since 5.1.0 - * - * @author David Cole - */ -class Multipart implements Stringable -{ - /** - * The boundary separating multipart sections. - */ - private const BOUNDARY = '----DiscordPHPSendFileBoundary'; - - /** - * Fields part of the request. - * - * @var array - */ - protected $fields = []; - - /** - * Field boundary. - * - * @var string - */ - protected $boundary; - - /** - * Multipart constructor. - * - * @param array $fields - * @param string $boundary Defaults to DiscordPHPSendFileBoundary - */ - public function __construct(array $fields = [], string $boundary = self::BOUNDARY) - { - $this->fields = $fields; - $this->boundary = $boundary; - } - - /** - * Adds a field to the request. - * - * ```php - * $field = [ - * 'name' => 'Field name', - * 'content' => 'Field content', - * - * // Optional - * 'filename' => 'File name', - * 'headers' => [ - * // ... - * ], - * ]; - * ``` - * - * @param array ...$fields - * - * @return $this - */ - public function add(...$fields): self - { - foreach ($fields as $field) { - $this->fields[] = $field; - } - - return $this; - } - - /** - * Gets the headers for the given request. - * - * @return array - */ - public function getHeaders(): array - { - return [ - 'Content-Type' => $this->getContentType(), - 'Content-Length' => strlen((string) $this), - ]; - } - - /** - * Gets the content type for the multipart request. - * - * @return string - */ - public function getContentType(): string - { - return 'multipart/form-data; boundary='.substr($this->boundary, 2); - } - - /** - * Converts the multipart request to string. - * - * @return string - */ - public function __toString(): string - { - $body = ''; - - foreach ($this->fields as $field) { - $body .= $this->boundary."\n"; - $body .= "Content-Disposition: form-data; name={$field['name']}"; - - if (isset($field['filename'])) { - $body .= "; filename={$field['filename']}"; - } - - $body .= "\n"; - - if (isset($field['headers'])) { - foreach ($field['headers'] as $header => $value) { - $body .= $header.': '.$value."\n"; - } - } - - $body .= "\n".$field['content']."\n"; - } - - $body .= $this->boundary."--\n"; - - return $body; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Helpers/RegisteredCommand.php b/vendor/team-reflex/discord-php/src/Discord/Helpers/RegisteredCommand.php deleted file mode 100644 index 2378add..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Helpers/RegisteredCommand.php +++ /dev/null @@ -1,220 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Helpers; - -use Discord\Discord; -use Discord\Parts\Interactions\Interaction; -use Discord\Parts\Interactions\Request\Option; - -/** - * RegisteredCommand represents a command that has been registered with the - * Discord servers and has a handler to handle when the command is triggered. - * - * https://discord.com/developers/docs/interactions/application-commands - * - * @since 7.0.0 - * - * @author David Cole - */ -class RegisteredCommand -{ - /** - * The Discord client. - * - * @var Discord Client. - */ - protected $discord; - - /** - * The name of the command. - * - * @var string - */ - private $name; - - /** - * The callback to be called when the command is triggered. - * - * @var callable - */ - private $callback; - - /** - * The callback to be called when the auto complete is triggered. - * - * @var callable - */ - private $autocomplete_callback; - - /** - * Array of sub-commands. - * - * @var RegisteredCommand[] - */ - private $subCommands; - - /** - * RegisteredCommand represents a command that has been registered with the - * Discord servers and has a handler to handle when the command is triggered. - * - * @param Discord $discord - * @param string $name - * @param callable|null $callback - * @param callable|null $autocomplete_callback Callback returning list of auto complete suggestions - */ - public function __construct(Discord $discord, string $name, ?callable $callback = null, ?callable $autocomplete_callback = null) - { - $this->discord = $discord; - $this->name = $name; - $this->callback = $callback; - $this->autocomplete_callback = $autocomplete_callback; - } - - /** - * Executes the command. Will search for a sub-command if given, otherwise - * executes the callback, if given. - * - * @param array $options - * @param Interaction $interaction - * - * @return bool Whether the command successfully executed. - */ - public function execute(array $options, Interaction $interaction): bool - { - $params = Collection::for(Option::class, 'name'); - - foreach ($options as $option) { - if (isset($this->subCommands[$option->name])) { - if ($this->subCommands[$option->name]->execute($option->options ?? [], $interaction)) { - return true; - } - } - $params->pushItem($this->discord->getFactory()->part(Option::class, (array) $option, true)); - } - - if (isset($this->callback)) { - ($this->callback)($interaction, $params); - - return true; - } - - return false; - } - - /** - * Executes the command. Will search for a sub-command if given, otherwise - * executes the callback, if given. - * - * @param Interaction $interaction - * - * @return bool Whether the command successfully executed. - */ - public function suggest(Interaction $interaction): bool - { - if (is_callable($this->autocomplete_callback)) { - $choice = ($this->autocomplete_callback)($interaction); - if (is_array($choice)) { - $interaction->autoCompleteResult($choice); - } - - return true; - } - - return false; - } - - /** - * Sets the callback for the command. - * - * @param callable $callback - */ - public function setCallback(callable $callback): void - { - $this->callback = $callback; - } - - /** - * Sets the callback for the auto complete suggestion. - * - * @param callable $autocomplete_callback - */ - public function setAutoCompleteCallback(callable $autocomplete_callback): void - { - $this->autocomplete_callback = $autocomplete_callback; - } - - /** - * Tries to get a sub-command if exists. - * - * @param string $name - * - * @return RegisteredCommand|null - */ - public function getSubCommand(string $name): ?RegisteredCommand - { - return $this->subCommands[$name] ?? null; - } - - /** - * Adds a sub-command to the command. - * - * @param string|array $name - * @param callable|null $callback - * @param callable|null $autocomplete_callback - * - * @throws \LogicException - * - * @return static - */ - public function addSubCommand($name, ?callable $callback = null, ?callable $autocomplete_callback = null): RegisteredCommand - { - if (is_array($name) && count($name) == 1) { - $name = array_shift($name); - } - - if (! is_array($name) || count($name) == 1) { - if (isset($this->subCommands[$name])) { - throw new \LogicException("The command `{$name}` already exists."); - } - - return $this->subCommands[$name] = new static($this->discord, $name, $callback, $autocomplete_callback); - } - - $subCommand = array_shift($name); - - if (! isset($this->subCommands[$subCommand])) { - $this->addSubCommand($subCommand); - } - - return $this->subCommands[$subCommand]->addSubCommand($name, $callback, $autocomplete_callback); - } - - /** - * Get command name. - * - * @return string - */ - public function getName(): string - { - return $this->name; - } - - /** - * Get sub commands. - * - * @return RegisteredCommand[]|null - */ - public function getSubCommands(): ?array - { - return $this->subCommands; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Attachment.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Attachment.php deleted file mode 100644 index bd2342d..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Attachment.php +++ /dev/null @@ -1,51 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Channel; - -use Discord\Parts\Part; - -/** - * A message attachment. - * - * @link https://discord.com/developers/docs/resources/channel#attachment-object - * - * @since 7.0.0 - * - * @property string $id Attachment ID. - * @property string $filename Name of file attached. - * @property string|null $description Description for the file. - * @property string|null $content_type The attachment's media type. - * @property int $size Size of file in bytes. - * @property string $url Source url of file. - * @property string $proxy_url A proxied url of file. - * @property ?int|null $height Height of file (if image). - * @property ?int|null $width Width of file (if image). - * @property bool|null $ephemeral Whether this attachment is ephemeral. - */ -class Attachment extends Part -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'id', - 'filename', - 'description', - 'content_type', - 'size', - 'url', - 'proxy_url', - 'height', - 'width', - 'ephemeral', - ]; -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Channel.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Channel.php deleted file mode 100644 index 9cb76ed..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Channel.php +++ /dev/null @@ -1,1592 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Channel; - -use Carbon\Carbon; -use Discord\Builders\MessageBuilder; -use Discord\Exceptions\InvalidOverwriteException; -use Discord\Helpers\Collection; -use Discord\Parts\Embed\Embed; -use Discord\Parts\Guild\Guild; -use Discord\Parts\Guild\Role; -use Discord\Parts\Part; -use Discord\Parts\Permissions\ChannelPermission; -use Discord\Parts\User\Member; -use Discord\Parts\User\User; -use Discord\Repository\Channel\MessageRepository; -use Discord\Repository\Channel\OverwriteRepository; -use Discord\Repository\Channel\VoiceMemberRepository as MemberRepository; -use Discord\Repository\Channel\WebhookRepository; -use Discord\WebSockets\Event; -use Discord\Helpers\Multipart; -use Discord\Http\Endpoint; -use Discord\Http\Exceptions\NoPermissionsException; -use Discord\Parts\Channel\Forum\Reaction; -use Discord\Parts\Channel\Forum\Tag; -use Discord\Parts\Permissions\RolePermission; -use Discord\Parts\Thread\Thread; -use Discord\Repository\Channel\InviteRepository; -use Discord\Repository\Channel\StageInstanceRepository; -use Discord\Repository\Channel\ThreadRepository; -use React\Promise\Deferred; -use React\Promise\PromiseInterface; -use Stringable; -use Symfony\Component\OptionsResolver\OptionsResolver; -use Traversable; - -use function Discord\getSnowflakeTimestamp; -use function Discord\nowait; -use function React\Promise\all; -use function React\Promise\reject; -use function React\Promise\resolve; - -/** - * A Channel can be either a text or voice channel on a Discord guild. - * - * @link https://discord.com/developers/docs/resources/channel#channel-object - * - * @since 2.0.0 Refactored as Part - * @since 1.0.0 - * - * @property string $id The unique identifier of the Channel. - * @property int $type The type of the channel. - * @property string|null $guild_id The unique identifier of the guild that the channel belongs to. Only for text or voice channels. - * @property-read Guild|null $guild The guild that the channel belongs to. Only for text or voice channels. - * @property int|null $position The position of the channel on the sidebar. - * @property OverwriteRepository $overwrites Permission overwrites - * @property ?string|null $name The name of the channel. - * @property ?string|null $topic The topic of the channel (0-4096 characters for forum channels, 0-1024 characters for all others). - * @property bool|null $nsfw Whether the channel is NSFW. - * @property ?string|null $last_message_id The unique identifier of the last message sent in the channel (or thread for forum channels) (may not point to an existing or valid message or thread). - * @property int|null $bitrate The bitrate of the channel. Only for voice channels. - * @property int|null $user_limit The user limit of the channel. Max 99 for voice channels and 10000 for stage channels (0 refers to no limit). - * @property int|null $rate_limit_per_user Amount of seconds a user has to wait before sending a new message (slow mode). - * @property Collection|User[] $recipients A collection of all the recipients in the channel. Only for DM or group channels. - * @property-read User|null $recipient The first recipient of the channel. Only for DM or group channels. - * @property-read string|null $recipient_id The ID of the recipient of the channel, if it is a DM channel. - * @property ?string|null $icon Icon hash. - * @property string|null $owner_id The ID of the DM creator. Only for DM or group channels. - * @property string|null $application_id ID of the group DM creator if it is a bot. - * @property bool|null $managed Whether the channel is managed by an application via the `gdm.join` OAuth2 scope. Only for group DM channels. - * @property ?string|null $parent_id ID of the parent channel. - * @property Carbon|null $last_pin_timestamp When the last message was pinned. - * @property ?string|null $rtc_region Voice region id for the voice channel, automatic when set to null. - * @property int|null $video_quality_mode The camera video quality mode of the voice channel, 1 when not present. - * @property int|null $default_auto_archive_duration Default duration for newly created threads, in minutes, to automatically archive the thread after recent activity, can be set to: 60, 1440, 4320, 10080. - * @property string|null $permissions Computed permissions for the invoking user in the channel, including overwrites, only included when part of the resolved data received on an application command interaction. - * @property int|null $flags Channel flags combined as a bitfield. - * @property Collection|Tag[] $available_tags Set of tags that can be used in a forum channel, limited to 20. - * @property ?Reaction|null $default_reaction_emoji Emoji to show in the add reaction button on a thread in a forum channel. - * @property int|null $default_thread_rate_limit_per_user The initial rate_limit_per_user to set on newly created threads in a forum channel. this field is copied to the thread at creation time and does not live update. - * @property ?int|null $default_sort_order The default sort order type used to order posts in forum channels. - * @property int|null $default_forum_layout The default layout type used to display posts in a forum channel. Defaults to `0`, which indicates a layout view has not been set by a channel admin. - * - * @property bool $is_private Whether the channel is a private channel. - * @property MemberRepository $members Voice channel only - members in the channel. - * @property MessageRepository $messages Text channel only - messages sent in the channel. - * @property WebhookRepository $webhooks Webhooks in the channel. - * @property ThreadRepository $threads Threads that belong to the channel. - * @property InviteRepository $invites Invites in the channel. - * @property StageInstanceRepository $stage_instances Stage instances in the channel. - * - * @method PromiseInterface sendMessage(MessageBuilder|string $builder) - */ -class Channel extends Part implements Stringable -{ - public const TYPE_GUILD_TEXT = 0; - public const TYPE_DM = 1; - public const TYPE_GUILD_VOICE = 2; - public const TYPE_GROUP_DM = 3; - public const TYPE_GUILD_CATEGORY = 4; - public const TYPE_GUILD_ANNOUNCEMENT = 5; - public const TYPE_ANNOUNCEMENT_THREAD = 10; - public const TYPE_PUBLIC_THREAD = 11; - public const TYPE_PRIVATE_THREAD = 12; - public const TYPE_GUILD_STAGE_VOICE = 13; - public const TYPE_GUILD_DIRECTORY = 14; - public const TYPE_GUILD_FORUM = 15; - public const TYPE_GUILD_MEDIA = 16; - - /** @deprecated 10.0.0 Use `Channel::TYPE_GUILD_TEXT` */ - public const TYPE_TEXT = self::TYPE_GUILD_TEXT; - /** @deprecated 10.0.0 Use `Channel::TYPE_GUILD_VOICE` */ - public const TYPE_VOICE = self::TYPE_GUILD_VOICE; - /** @deprecated 10.0.0 Use `Channel::TYPE_GROUP_DM` */ - public const TYPE_GROUP = self::TYPE_GROUP_DM; - /** @deprecated 10.0.0 Use `Channel::TYPE_GUILD_CATEGORY` */ - public const TYPE_CATEGORY = self::TYPE_GUILD_CATEGORY; - /** @deprecated 10.0.0 Use `Channel::TYPE_GUILD_ANNOUNCEMENT` */ - public const TYPE_NEWS = self::TYPE_GUILD_ANNOUNCEMENT; - /** @deprecated 10.0.0 Use `Channel::TYPE_GUILD_ANNOUNCEMENT` */ - public const TYPE_ANNOUNCEMENT = self::TYPE_GUILD_ANNOUNCEMENT; - /** @deprecated 10.0.0 Use `Channel::TYPE_ANNOUNCEMENT_THREAD` */ - public const TYPE_NEWS_THREAD = self::TYPE_ANNOUNCEMENT_THREAD; - /** @deprecated 10.0.0 Use `Channel::TYPE_GUILD_STAGE_VOICE` */ - public const TYPE_STAGE_CHANNEL = self::TYPE_GUILD_STAGE_VOICE; - /** @deprecated 10.0.0 Use `Channel::TYPE_GUILD_DIRECTORY` */ - public const TYPE_DIRECTORY = self::TYPE_GUILD_DIRECTORY; - /** @deprecated 10.0.0 Use `Channel::TYPE_GUILD_FORUM` */ - public const TYPE_FORUM = self::TYPE_GUILD_FORUM; - - public const VIDEO_QUALITY_AUTO = 1; - public const VIDEO_QUALITY_FULL = 2; - - /** @deprecated 10.0.0 Use `Thread::FLAG_PINNED` */ - public const FLAG_PINNED = (1 << 1); - public const FLAG_REQUIRE_TAG = (1 << 4); - - public const SORT_ORDER_LATEST_ACTIVITY = 0; - public const SORT_ORDER_CREATION_DATE = 1; - - public const FORUM_LAYOUT_NOT_SET = 0; - public const FORUM_LAYOUT_LIST_VIEW = 1; - public const FORUM_LAYOUT_GRID_VIEW = 2; - - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'id', - 'type', - 'guild_id', - 'position', - 'name', - 'topic', - 'nsfw', - 'last_message_id', - 'bitrate', - 'user_limit', - 'rate_limit_per_user', - 'recipients', - 'icon', - 'owner_id', - 'application_id', - 'managed', - 'parent_id', - 'last_pin_timestamp', - 'rtc_region', - 'video_quality_mode', - 'default_auto_archive_duration', - 'permissions', - 'flags', - 'available_tags', - 'default_reaction_emoji', - 'default_thread_rate_limit_per_user', - 'default_sort_order', - 'default_forum_layout', - - // @internal - 'is_private', - - // repositories - 'permission_overwrites', - ]; - - /** - * {@inheritDoc} - */ - protected $repositories = [ - 'overwrites' => OverwriteRepository::class, - 'members' => MemberRepository::class, - 'messages' => MessageRepository::class, - 'webhooks' => WebhookRepository::class, - 'threads' => ThreadRepository::class, - 'invites' => InviteRepository::class, - 'stage_instances' => StageInstanceRepository::class, - ]; - - /** - * {@inheritDoc} - */ - protected function afterConstruct(): void - { - if (! array_key_exists('bitrate', $this->attributes) && $this->isVoiceBased()) { - $this->bitrate = 64000; - } - } - - /** - * Gets the is_private attribute. - * - * @return bool Whether the channel is private. - */ - protected function getIsPrivateAttribute(): bool - { - return in_array($this->type, [self::TYPE_DM, self::TYPE_GROUP_DM]); - } - - /** - * Gets the recipient attribute. - * - * @return User|null The recipient. - */ - protected function getRecipientAttribute(): ?User - { - return $this->recipients->first(); - } - - /** - * Gets the recipient ID attribute. - * - * @return string|null - */ - protected function getRecipientIdAttribute(): ?string - { - if ($recipient = $this->recipient) { - return $recipient->id; - } - - return null; - } - - /** - * Gets the recipients attribute. - * - * @return Collection A collection of recipients. - */ - protected function getRecipientsAttribute(): Collection - { - $recipients = Collection::for(User::class); - - foreach ($this->attributes['recipients'] ?? [] as $recipient) { - $recipients->pushItem($this->discord->users->get('id', $recipient->id) ?: $this->factory->part(User::class, (array) $recipient, true)); - } - - return $recipients; - } - - /** - * Returns the guild attribute. - * - * @return Guild|null The guild attribute. - */ - protected function getGuildAttribute(): ?Guild - { - return $this->discord->guilds->get('id', $this->guild_id); - } - - /** - * Gets the last pinned message timestamp. - * - * @return Carbon|null - * - * @throws \Exception - */ - protected function getLastPinTimestampAttribute(): ?Carbon - { - if (! isset($this->attributes['last_pin_timestamp'])) { - return null; - } - - return Carbon::parse($this->attributes['last_pin_timestamp']); - } - - /** - * Returns the channels pinned messages. - * - * @link https://discord.com/developers/docs/resources/channel#get-pinned-messages - * - * @return PromiseInterface> - */ - public function getPinnedMessages(): PromiseInterface - { - return $this->http->get(Endpoint::bind(Endpoint::CHANNEL_PINS, $this->id)) - ->then(function ($responses) { - $messages = Collection::for(Message::class); - - foreach ($responses as $response) { - $messages->pushItem($this->messages->get('id', $response->id) ?: $this->messages->create($response, true)); - } - - return $messages; - }); - } - - /** - * Sets permissions in a channel. - * - * @link https://discord.com/developers/docs/resources/channel#edit-channel-permissions - * - * @param Part $part A role or member. - * @param array $allow An array of permissions to allow. - * @param array $deny An array of permissions to deny. - * @param string|null $reason Reason for Audit Log. - * - * @throws InvalidOverwriteException - * - * @return PromiseInterface - */ - public function setPermissions(Part $part, array $allow = [], array $deny = [], ?string $reason = null): PromiseInterface - { - if ($part instanceof Member) { - $type = Overwrite::TYPE_MEMBER; - } elseif ($part instanceof Role) { - $type = Overwrite::TYPE_ROLE; - } else { - return reject(new InvalidOverwriteException('Given part was not one of member or role.')); - } - - $allow = array_fill_keys($allow, true); - $deny = array_fill_keys($deny, true); - - $allowPart = $this->factory->part(ChannelPermission::class, $allow, $this->created); - $denyPart = $this->factory->part(ChannelPermission::class, $deny, $this->created); - - $overwrite = $this->factory->part(Overwrite::class, [ - 'id' => $part->id, - 'channel_id' => $this->id, - 'type' => $type, - 'allow' => $allowPart->bitwise, - 'deny' => $denyPart->bitwise, - ], $this->created); - - return $this->setOverwrite($part, $overwrite, $reason); - } - - /** - * Sets an overwrite to the channel. - * - * @link https://discord.com/developers/docs/resources/channel#edit-channel-permissions - * - * @param Part $part A role or member. - * @param Overwrite $overwrite An overwrite object. - * @param string|null $reason Reason for Audit Log. - * - * @throws NoPermissionsException Missing manage_roles permission. - * @throws InvalidOverwriteException Overwrite type is not member or role. - * - * @return PromiseInterface - */ - public function setOverwrite(Part $part, Overwrite $overwrite, ?string $reason = null): PromiseInterface - { - if ($this->guild_id && $botperms = $this->getBotPermissions()) { - if (! $botperms->manage_roles) { - return reject(new NoPermissionsException("You do not have permission to manage roles in the channel {$this->id}.")); - } - } - - if ($part instanceof Member) { - $type = Overwrite::TYPE_MEMBER; - } elseif ($part instanceof Role) { - $type = Overwrite::TYPE_ROLE; - } else { - return reject(new InvalidOverwriteException('Given part was not one of member or role.')); - } - - $payload = [ - 'id' => $part->id, - 'type' => $type, - 'allow' => (string) $overwrite->allow->bitwise, - 'deny' => (string) $overwrite->deny->bitwise, - ]; - - if (! $this->created) { - $this->attributes['permission_overwrites'][] = $payload; - - return resolve(null); - } - - $headers = []; - if (isset($reason)) { - $headers['X-Audit-Log-Reason'] = $reason; - } - - return $this->http->put(Endpoint::bind(Endpoint::CHANNEL_PERMISSIONS, $this->id, $part->id), $payload, $headers); - } - - /** - * Change category of a channel. - * - * @param Channel|string|null $category The category channel to set it to (either a Channel part or the channel ID or null for none). - * @param int|null $position The new channel position, not relative to category. - * @param string|null $reason Reason for Audit Log. - * - * @return PromiseInterface - * - * @throws \RuntimeException - * @throws \InvalidArgumentException - * @throws NoPermissionsException Missing manage_channels permission in either channel. - */ - public function setCategory($category, ?int $position = null, ?string $reason = null): PromiseInterface - { - if (! in_array($this->type, [self::TYPE_GUILD_TEXT, self::TYPE_GUILD_VOICE, self::TYPE_GUILD_ANNOUNCEMENT, self::TYPE_GUILD_FORUM])) { - return reject(new \RuntimeException('You can only move Text, Voice, Announcement or Forum channel type.')); - } - - if ($botperms = $this->getBotPermissions()) { - if (! $botperms->manage_channels) { - return reject(new NoPermissionsException("You do not have permission to manage the channel {$this->id}.")); - } - } - - if (is_string($category)) { - if ($cachedCategory = $this->guild->channels->get('id', $category)) { - $category = $cachedCategory; - } - } - if ($category instanceof Channel) { - if ($category->type !== self::TYPE_GUILD_CATEGORY) { - return reject(new \InvalidArgumentException('You can only move channel into a category.')); - } - - if ($botperms = $category->getBotPermissions()) { - if (! $botperms->manage_channels) { - return reject(new NoPermissionsException("You do not have permission to manage the category channel {$category->id}.")); - } - } - - $category = $category->id; - } - - $payload = ['parent_id' => $category]; - if (null !== $position) { - $payload['position'] = $position; - } - - $headers = []; - if (isset($reason)) { - $headers['X-Audit-Log-Reason'] = $reason; - } - - return $this->http->patch(Endpoint::bind(Endpoint::CHANNEL, $this->id), $payload, $headers)->then(function ($response) { - $this->parent_id = $response->parent_id; - $this->position = $response->position; - - return $this; - }); - } - - /** - * Moves a member to another voice channel. - * - * @param Member|string $member The member to move. (either a Member part or the member ID) - * @param string|null $reason Reason for Audit Log. - * - * @throws \RuntimeException - * @throws NoPermissionsException Missing move_members permission. - * - * @return PromiseInterface - */ - public function moveMember($member, ?string $reason = null): PromiseInterface - { - if (! $this->isVoiceBased()) { - return reject(new \RuntimeException('You cannot move a member in a text channel.')); - } - - if ($botperms = $this->getBotPermissions()) { - if (! $botperms->move_members) { - return reject(new NoPermissionsException("You do not have permission to move members in the channel {$this->id}.")); - } - } - - if ($member instanceof Member) { - $member = $member->id; - } - - $headers = []; - if (isset($reason)) { - $headers['X-Audit-Log-Reason'] = $reason; - } - - return $this->http->patch(Endpoint::bind(Endpoint::GUILD_MEMBER, $this->guild_id, $member), ['channel_id' => $this->id], $headers); - } - - /** - * Mutes a member on a voice channel. - * - * @param Member|string $member The member to mute. (either a Member part or the member ID) - * @param string|null $reason Reason for Audit Log. - * - * @throws \RuntimeException - * @throws NoPermissionsException Missing mute_members permission. - * - * @return PromiseInterface - */ - public function muteMember($member, ?string $reason = null): PromiseInterface - { - if (! $this->isVoiceBased()) { - return reject(new \RuntimeException('You cannot mute a member in a text channel.')); - } - - if ($botperms = $this->getBotPermissions()) { - if (! $botperms->mute_members) { - return reject(new NoPermissionsException("You do not have permission to mute members in the channel {$this->id}.")); - } - } - - if ($member instanceof Member) { - $member = $member->id; - } - - $headers = []; - if (isset($reason)) { - $headers['X-Audit-Log-Reason'] = $reason; - } - - return $this->http->patch(Endpoint::bind(Endpoint::GUILD_MEMBER, $this->guild_id, $member), ['mute' => true], $headers); - } - - /** - * Unmutes a member on a voice channel. - * - * @param Member|string $member The member to unmute. (either a Member part or the member ID) - * @param string|null $reason Reason for Audit Log. - * - * @throws \RuntimeException - * @throws NoPermissionsException Missing mute_members permission. - * - * @return PromiseInterface - */ - public function unmuteMember($member, ?string $reason = null): PromiseInterface - { - if (! $this->isVoiceBased()) { - return reject(new \RuntimeException('You cannot unmute a member in a text channel.')); - } - - if ($botperms = $this->getBotPermissions()) { - if (! $botperms->mute_members) { - return reject(new NoPermissionsException("You do not have permission to unmute members in the channel {$this->id}.")); - } - } - - if ($member instanceof Member) { - $member = $member->id; - } - - $headers = []; - if (isset($reason)) { - $headers['X-Audit-Log-Reason'] = $reason; - } - - return $this->http->patch(Endpoint::bind(Endpoint::GUILD_MEMBER, $this->guild_id, $member), ['mute' => false], $headers); - } - - /** - * Creates an invite for the channel. - * - * @link https://discord.com/developers/docs/resources/channel#create-channel-invite - * - * @param array $options An array of options. All fields are optional. - * @param int $options['max_age'] The time that the invite will be valid in seconds. - * @param int $options['max_uses'] The amount of times the invite can be used. - * @param bool $options['temporary'] Whether the invite is for temporary membership. - * @param bool $options['unique'] Whether the invite code should be unique (useful for creating many unique one time use invites). - * @param int $options['target_type'] The type of target for this voice channel invite. - * @param string $options['target_user_id'] The id of the user whose stream to display for this invite, required if target_type is `Invite::TARGET_TYPE_STREAM`, the user must be streaming in the channel. - * @param string $options['target_application_id'] The id of the embedded application to open for this invite, required if target_type is `Invite::TARGET_TYPE_EMBEDDED_APPLICATION`, the application must have the EMBEDDED flag. - * @param string|null $reason Reason for Audit Log. - * - * @throws NoPermissionsException Missing create_instant_invite permission. - * - * @return PromiseInterface - */ - public function createInvite($options = [], ?string $reason = null): PromiseInterface - { - if (! $this->canInvite()) { - return reject(new \RuntimeException('You cannot create invite in this type of channel.')); - } - - if ($botperms = $this->getBotPermissions()) { - if (! $botperms->create_instant_invite) { - return reject(new NoPermissionsException("You do not have permission to create instant invite in the channel {$this->id}.")); - } - } - - $resolver = new OptionsResolver(); - $resolver - ->setDefined([ - 'max_age', - 'max_uses', - 'temporary', - 'unique', - 'target_type', - 'target_user_id', - 'target_application_id', - ]) - ->setAllowedTypes('max_age', 'int') - ->setAllowedTypes('max_uses', 'int') - ->setAllowedTypes('temporary', 'bool') - ->setAllowedTypes('unique', 'bool') - ->setAllowedTypes('target_type', 'int') - ->setAllowedTypes('target_user_id', ['string', 'int']) - ->setAllowedTypes('target_application_id', ['string', 'int']) - ->setAllowedValues('max_age', fn ($value) => ($value >= 0 && $value <= 604800)) - ->setAllowedValues('max_uses', fn ($value) => ($value >= 0 && $value <= 100)); - - $options = $resolver->resolve($options); - - $headers = []; - if (isset($reason)) { - $headers['X-Audit-Log-Reason'] = $reason; - } - - return $this->http->post(Endpoint::bind(Endpoint::CHANNEL_INVITES, $this->id), $options, $headers) - ->then(function ($response) { - /** @var ?Invite */ - if (! $invitePart = $this->invites->get('code', $response->code)) { - /** @var Invite */ - $invitePart = $this->invites->create($response, true); - $this->invites->pushItem($invitePart); - } - - return $invitePart; - }); - } - - /** - * Bulk deletes an array of messages. - * - * @link https://discord.com/developers/docs/resources/channel#bulk-delete-messages - * - * @param array|Traversable $messages An array of messages to delete. - * @param string|null $reason Reason for Audit Log (only for bulk messages). - * - * @throws \InvalidArgumentException - * @throws NoPermissionsException Missing manage_messages permission. - * - * @return PromiseInterface - */ - public function deleteMessages($messages, ?string $reason = null): PromiseInterface - { - if (! is_array($messages) && ! ($messages instanceof Traversable)) { - return reject(new \InvalidArgumentException('$messages must be an array or implement Traversable.')); - } - - if ($botperms = $this->getBotPermissions()) { - if (! $botperms->manage_messages) { - return reject(new NoPermissionsException("You do not have permission to delete messages in the channel {$this->id}.")); - } - } - - $headers = $promises = $messagesBulk = $messagesSingle = []; - if (isset($reason)) { - $headers['X-Audit-Log-Reason'] = $reason; - } - - foreach ($messages as $message) { - if ($message instanceof Message) { - $message = $message->id; - } - - if ($this->is_private || getSnowflakeTimestamp($message) < time() - 1209600) { - $messagesSingle[] = $message; - } else { - $messagesBulk[] = $message; - } - } - - while (count($messagesBulk) > 1) { - $promises[] = $this->http->post(Endpoint::bind(Endpoint::CHANNEL_MESSAGES_BULK_DELETE, $this->id), ['messages' => array_slice($messagesBulk, 0, 100)], $headers); - $messagesBulk = array_slice($messagesBulk, 100); - } - - $messagesSingle = array_merge($messagesSingle, $messagesBulk); - - foreach ($messagesSingle as $message) { - $promises[] = $this->http->delete(Endpoint::bind(Endpoint::CHANNEL_MESSAGE, $this->id, $message)); - } - - return all($promises); - } - - /** - * Deletes a given number of messages, in order of time sent. - * - * @link https://discord.com/developers/docs/resources/channel#bulk-delete-messages - * - * @param int $value - * @param string|null $reason Reason for Audit Log (only for bulk messages). - * - * @throws NoPermissionsException Missing manage_messages permission. - * - * @return PromiseInterface - */ - public function limitDelete(int $value, ?string $reason = null): PromiseInterface - { - if ($botperms = $this->getBotPermissions()) { - if (! $botperms->manage_messages) { - return reject(new NoPermissionsException("You do not have permission to delete messages in the channel {$this->id}.")); - } - } - - return $this->getMessageHistory(['limit' => $value, 'cache' => false])->then(fn ($messages) => $this->deleteMessages($messages, $reason)); - } - - /** - * Fetches message history. - * - * @link https://discord.com/developers/docs/resources/channel#get-channel-messages - * - * @param array $options Array of options. - * @param string|Message|null $options['around'] Get messages around this message ID. - * @param string|Message|null $options['before'] Get messages before this message ID. - * @param string|Message|null $options['after'] Get messages after this message ID. - * @param int|null $options['limit'] Max number of messages to return (1-100). Defaults to 50. - * - * @throws NoPermissionsException Missing `read_message_history` permission. - * Or also missing `connect` permission for text in voice. - * @throws \RangeException - * - * @return PromiseInterface> - * @todo Make it in a trait along with Thread - */ - public function getMessageHistory(array $options = []): PromiseInterface - { - if (! $this->is_private && $botperms = $this->getBotPermissions()) { - if (! $botperms->read_message_history) { - return reject(new NoPermissionsException("You do not have permission to read message history in the channel {$this->id}.")); - } - - if ($this->type == self::TYPE_GUILD_VOICE && ! $botperms->connect) { - return reject(new NoPermissionsException("You do not have permission to connect in the channel {$this->id}.")); - } - } - - $resolver = new OptionsResolver(); - $resolver->setDefaults(['limit' => 50, 'cache' => true]); - $resolver->setDefined(['before', 'after', 'around']); - $resolver->setAllowedTypes('before', [Message::class, 'string']); - $resolver->setAllowedTypes('after', [Message::class, 'string']); - $resolver->setAllowedTypes('around', [Message::class, 'string']); - $resolver->setAllowedTypes('limit', 'integer'); - $resolver->setAllowedValues('limit', fn ($value) => ($value >= 1 && $value <= 100)); - - $options = $resolver->resolve($options); - if (isset($options['before'], $options['after']) || - isset($options['before'], $options['around']) || - isset($options['around'], $options['after'])) { - return reject(new \RangeException('Can only specify one of before, after and around.')); - } - - $endpoint = Endpoint::bind(Endpoint::CHANNEL_MESSAGES, $this->id); - $endpoint->addQuery('limit', $options['limit']); - - if (isset($options['before'])) { - $endpoint->addQuery('before', $options['before'] instanceof Message ? $options['before']->id : $options['before']); - } - if (isset($options['after'])) { - $endpoint->addQuery('after', $options['after'] instanceof Message ? $options['after']->id : $options['after']); - } - if (isset($options['around'])) { - $endpoint->addQuery('around', $options['around'] instanceof Message ? $options['around']->id : $options['around']); - } - - return $this->http->get($endpoint)->then(function ($responses) { - $messages = Collection::for(Message::class); - - foreach ($responses as $response) { - $messages->pushItem($this->messages->get('id', $response->id) ?: $this->messages->create($response, true)); - } - - return $messages; - }); - } - - /** - * Adds a message to the channels pinboard. - * - * @link https://discord.com/developers/docs/resources/channel#pin-message - * - * @param Message $message The message to pin. - * @param string|null $reason Reason for Audit Log. - * - * @throws NoPermissionsException Missing manage_messages permission. - * @throws \RuntimeException - * - * @return PromiseInterface - */ - public function pinMessage(Message $message, ?string $reason = null): PromiseInterface - { - if (! $this->is_private && $botperms = $this->getBotPermissions()) { - if (! $botperms->manage_messages) { - return reject(new NoPermissionsException("You do not have permission to pin messages in the channel {$this->id}.")); - } - } - - if ($message->pinned) { - return reject(new \RuntimeException('This message is already pinned.')); - } - - if ($message->channel_id != $this->id) { - return reject(new \RuntimeException('You cannot pin a message to a different channel.')); - } - - $headers = []; - if (isset($reason)) { - $headers['X-Audit-Log-Reason'] = $reason; - } - - return $this->http->put(Endpoint::bind(Endpoint::CHANNEL_PIN, $this->id, $message->id), null, $headers)->then(function () use (&$message) { - $message->pinned = true; - - return $message; - }); - } - - /** - * Removes a message from the channels pinboard. - * - * @link https://discord.com/developers/docs/resources/channel#unpin-message - * - * @param Message $message The message to un-pin. - * @param string|null $reason Reason for Audit Log. - * - * @throws NoPermissionsException Missing manage_messages permission. - * @throws \RuntimeException - * - * @return PromiseInterface - */ - public function unpinMessage(Message $message, ?string $reason = null): PromiseInterface - { - if (! $this->is_private && $botperms = $this->getBotPermissions()) { - if (! $botperms->manage_messages) { - return reject(new NoPermissionsException("You do not have permission to unpin messages in the channel {$this->id}.")); - } - } - - if (! $message->pinned) { - return reject(new \RuntimeException('This message is not pinned.')); - } - - if ($message->channel_id != $this->id) { - return reject(new \RuntimeException('You cannot un-pin a message from a different channel.')); - } - - $headers = []; - if (isset($reason)) { - $headers['X-Audit-Log-Reason'] = $reason; - } - - return $this->http->delete(Endpoint::bind(Endpoint::CHANNEL_PIN, $this->id, $message->id), null, $headers)->then(function () use (&$message) { - $message->pinned = false; - - return $message; - }); - } - - /** - * Sets the permission overwrites attribute. - * - * @param ?array $overwrites - */ - protected function setPermissionOverwritesAttribute(?array $overwrites): void - { - if ($overwrites) { - $overwritesDiscrim = $this->overwrites->discrim; - foreach ($overwrites as $overwrite) { - $overwrite = (array) $overwrite; - /** @var ?Overwrite */ - if ($overwritePart = $this->overwrites->offsetGet($overwrite[$overwritesDiscrim])) { - $overwritePart->fill($overwrite); - } else { - /** @var Overwrite */ - $overwritePart = $this->overwrites->create($overwrite, $this->created); - $overwritePart->created = &$this->created; - } - $this->overwrites->pushItem($overwritePart); - } - } else { - if (null === nowait($this->overwrites->cache->clear())) { - foreach ($this->overwrites->keys() as $key) { - $this->overwrites->offsetUnset($key); - } - } - } - - $this->attributes['permission_overwrites'] = $overwrites; - } - - /** - * Gets the permission overwrites attribute. - * - * @return ?array $overwrites - */ - protected function getPermissionOverwritesAttribute(): ?array - { - $overwrites = []; - - /** @var Overwrite */ - foreach ($this->overwrites as $overwrite) { - $overwrites[] = $overwrite->getRawAttributes(); - } - - return ! empty($overwrites) ? $overwrites : ($this->attributes['permission_overwrites'] ?? null); - } - - /** - * Gets the available tags attribute. - * - * @return Collection|Tag[] Available forum tags. - * - * @since 7.4.0 - */ - protected function getAvailableTagsAttribute(): Collection - { - $available_tags = Collection::for(Tag::class); - - foreach ($this->attributes['available_tags'] ?? [] as $available_tag) { - $available_tags->pushItem($this->createOf(Tag::class, $available_tag)); - } - - return $available_tags; - } - - /** - * Gets the default reaction emoji attribute. - * - * @return Reaction|null Default forum reaction emoji. - * - * @since 7.4.0 - */ - protected function getDefaultReactionEmojiAttribute(): ?Reaction - { - if (! isset($this->attributes['default_reaction_emoji'])) { - return null; - } - - return $this->createOf(Reaction::class, $this->attributes['default_reaction_emoji']); - } - - /** - * Starts a thread in the channel. - * - * @link https://discord.com/developers/docs/resources/channel#start-thread-without-message - * @link https://discord.com/developers/docs/resources/channel#start-thread-in-forum-channel - * - * @param array $options Thread params. - * @param bool $options['private'] Whether the thread should be private. Cannot start a private thread in a news channel. Ignored in forum channel. - * @param string $options['name'] The name of the thread. - * @param int|null $options['auto_archive_duration'] Number of minutes of inactivity until the thread is auto-archived. one of 60, 1440, 4320, 10080. - * @param bool|null $options['invitable'] Whether non-moderators can add other non-moderators to a thread; only available when creating a private thread. - * @param ?int|null $options['rate_limit_per_user'] Amount of seconds a user has to wait before sending another message (0-21600). - * @param MessageBuilder $options['message'] Contents of the first message in the forum thread. - * @param string[]|null $options['applied_tags'] The IDs of the set of tags that have been applied to a thread in a forum channel, limited to 5. - * @param string|null $reason Reason for Audit Log. - * - * @throws \RuntimeException - * @throws NoPermissionsException Missing various permissions: - * create_private_threads when creating a private thread. - * create_public_threads when creating a public thread. - * send_messages when creating a forum post. - * - * @return PromiseInterface - * - * @since 10.0.0 Arguments for `$name`, `$private` and `$auto_archive_duration` are now inside `$options` - */ - public function startThread(array|string $options, string|bool|null $reason = null, int $_auto_archive_duration = 1440, ?string $_reason = null): PromiseInterface - { - // Old v7 signature - if (is_string($options)) { - $options = [ - 'name' => $options, - 'auto_archive_duration' => $_auto_archive_duration, - ]; - if (is_bool($reason)) { - $options['private'] = $reason; - } - $reason = $_reason; - } - - $resolver = new OptionsResolver(); - $resolver - ->setDefined([ - 'name', - 'auto_archive_duration', - 'rate_limit_per_user', - ]) - ->setAllowedTypes('name', 'string') - ->setAllowedTypes('auto_archive_duration', 'int') - ->setAllowedTypes('rate_limit_per_user', ['null', 'int']) - ->setAllowedValues('auto_archive_duration', fn ($value) => in_array($value, [60, 1440, 4320, 10080])) - ->setAllowedValues('rate_limit_per_user', fn ($value) => $value >= 0 && $value <= 21600) - ->setRequired('name'); - - $botperms = $this->getBotPermissions(); - - if ($this->type == self::TYPE_GUILD_FORUM) { - $resolver - ->setDefined([ - 'message', - 'applied_tags', - ]) - ->setAllowedTypes('message', [MessageBuilder::class]) - ->setAllowedTypes('applied_tags', 'array') - ->setRequired('message') - ->setNormalizer('applied_tags', function ($options, $values) { - foreach ($values as &$value) { - if ($value instanceof Tag) { - $value = $value->id; - } - } - - return $values; - }); - - $options = $resolver->resolve($options); - - if ($botperms && ! $botperms->send_messages) { - return reject(new NoPermissionsException("You do not have permission to create forum posts in the channel {$this->id}.")); - } - - $options['type'] = self::TYPE_PUBLIC_THREAD; - } else { - $resolver - ->setDefined([ - 'private', - 'invitable', - ]) - ->setAllowedTypes('private', 'bool') - ->setAllowedTypes('invitable', 'bool') - ->setDefaults(['private' => false]); - - $options = $resolver->resolve($options); - - if ($options['private']) { - if ($botperms && ! $botperms->create_public_threads) { - return reject(new NoPermissionsException("You do not have permission to create public threads in the channel {$this->id}.")); - } - } else { - if ($botperms && ! $botperms->create_private_threads) { - return reject(new NoPermissionsException("You do not have permission to create private threads in the channel {$this->id}.")); - } - } - - if ($this->type == self::TYPE_GUILD_ANNOUNCEMENT) { - if ($options['private']) { - return reject(new \RuntimeException('You cannot start a private thread within a news channel.')); - } - - $options['type'] = self::TYPE_ANNOUNCEMENT_THREAD; - } elseif ($this->type == self::TYPE_GUILD_TEXT) { - $options['type'] = $options['private'] ? self::TYPE_PRIVATE_THREAD : self::TYPE_PUBLIC_THREAD; - } else { - return reject(new \RuntimeException('You cannot start a thread in this type of channel.')); - } - } - - $headers = []; - if (isset($reason)) { - $headers['X-Audit-Log-Reason'] = $reason; - } - - unset($options['private']); - - return (function () use ($options, $headers) { - if (isset($options['message']) && $options['message']->requiresMultipart()) { - /** @var Multipart */ - $multipart = $options['message']->toMultipart(false); - $multipart->add([ - 'name' => 'payload_json', - 'content' => json_encode($options), - 'headers' => [ - 'Content-Type' => 'application/json', - ], - ]); - - return $this->http->post(Endpoint::bind(Endpoint::CHANNEL_THREADS, $this->id), (string) $multipart, $multipart->getHeaders() + $headers); - } - - return $this->http->post(Endpoint::bind(Endpoint::CHANNEL_THREADS, $this->id), $options, $headers); - })()->then(function ($response) { - /** @var ?Thread */ - if ($threadPart = $this->threads->offsetGet($response->id)) { - $threadPart->fill((array) $response); - } else { - /** @var Thread */ - $threadPart = $this->threads->create($response, true); - } - $this->threads->pushItem($threadPart); - if ($messageId = ($response->message->id ?? null)) { - /** @var ?Message */ - if (! $threadPart->messages->offsetExists($messageId)) { - // Don't store in the external cache - $messagePart = $threadPart->messages->create($response->message, true); - $threadPart->messages->offsetSet($messageId, $messagePart); - } - } - - return $threadPart; - }); - } - - /** - * Sends a message to the channel. - * - * Takes a `MessageBuilder` or content of the message for the first - * parameter. If the first parameter is an instance of `MessageBuilder`, the - * rest of the arguments are disregarded. - * - * @link https://discord.com/developers/docs/resources/channel#create-message - * - * @param MessageBuilder|string $message The message builder that should be converted into a message, or the string content of the message. - * @param bool $tts Whether the message is TTS. - * @param Embed|array|null $embed An embed object or array to send in the message. - * @param array|null $allowed_mentions Allowed mentions object for the message. - * @param Message|null $replyTo Sends the message as a reply to the given message instance. - * - * @throws \RuntimeException - * @throws NoPermissionsException Missing various permissions depending on the message body. - * - * @return PromiseInterface - */ - public function sendMessage($message, bool $tts = false, $embed = null, $allowed_mentions = null, ?Message $replyTo = null): PromiseInterface - { - // Backwards compatible support for old `sendMessage` function signature. - if (! ($message instanceof MessageBuilder)) { - $message = MessageBuilder::new() - ->setContent($message); - - if ($tts) { - $message->setTts(true); - } - - if ($embed) { - $message->addEmbed($embed); - } - - if ($allowed_mentions) { - $message->setAllowedMentions($allowed_mentions); - } - - if ($replyTo) { - $message->setReplyTo($replyTo); - } - } - - if (! $this->isTextBased()) { - return reject(new \RuntimeException('You can only send messages to text channels.')); - } - - if (! $this->is_private && $botperms = $this->getBotPermissions()) { - if (! $botperms->send_messages) { - return reject(new NoPermissionsException("You do not have permission to send messages in the channel {$this->id}.")); - } - - if ($message->getTts() && ! $botperms->send_tts_messages) { - return reject(new NoPermissionsException("You do not have permission to send tts messages in the channel {$this->id}.")); - } - - if ($message->numFiles() > 0 && ! $botperms->attach_files) { - return reject(new NoPermissionsException("You do not have permission to send files in the channel {$this->id}.")); - } - } - - return (function () use ($message) { - if ($message->requiresMultipart()) { - $multipart = $message->toMultipart(); - - return $this->http->post(Endpoint::bind(Endpoint::CHANNEL_MESSAGES, $this->id), (string) $multipart, $multipart->getHeaders()); - } - - return $this->http->post(Endpoint::bind(Endpoint::CHANNEL_MESSAGES, $this->id), $message); - })()->then(function ($response) { - if (! $messagePart = $this->messages->get('id', $response->id)) { - $messagePart = $this->messages->create($response, true); - } - - return $messagePart; - }); - } - - /** - * Sends an embed to the channel. - * - * @deprecated 10.0.0 Use `Channel::sendMessage` with `MessageBuilder::addEmbed()` - * - * @see Channel::sendMessage() - * - * @param Embed $embed Embed to send. - * - * @return PromiseInterface - */ - public function sendEmbed(Embed $embed): PromiseInterface - { - return $this->sendMessage(MessageBuilder::new() - ->addEmbed($embed)); - } - - /** - * Sends a file to the channel. - * - * @deprecated 7.0.0 Use `Channel::sendMessage` to send files. - * - * @see Channel::sendMessage() - * - * @param string $filepath The path to the file to be sent. - * @param string|null $filename The name to send the file as. - * @param string|null $content Message content to send with the file. - * @param bool $tts Whether to send the message with TTS. - * - * @return PromiseInterface - */ - public function sendFile(string $filepath, ?string $filename = null, ?string $content = null, bool $tts = false): PromiseInterface - { - $builder = MessageBuilder::new() - ->setTts($tts) - ->addFile($filepath, $filename); - - if ($content) { - $builder->setContent($content); - } - - return $this->sendMessage($builder); - } - - /** - * Broadcasts that you are typing to the channel. Lasts for 5 seconds. - * - * @link https://discord.com/developers/docs/resources/channel#trigger-typing-indicator - * - * @throws \RuntimeException - * - * @return PromiseInterface - */ - public function broadcastTyping(): PromiseInterface - { - if (! $this->isTextBased()) { - return reject(new \RuntimeException('You cannot broadcast typing to a voice channel.')); - } - - return $this->http->post(Endpoint::bind(Endpoint::CHANNEL_TYPING, $this->id)); - } - - /** - * Creates a message collector for the channel. - * - * @param callable $filter The filter function. Returns true or false. - * @param array $options - * @param int $options['time'] Time in milliseconds until the collector finishes or false. - * @param int $options['limit'] The amount of messages allowed or false. - * - * @return PromiseInterface> - */ - public function createMessageCollector(callable $filter, array $options = []): PromiseInterface - { - $deferred = new Deferred(); - $messages = new Collection([], null, null); - $timer = null; - - $options = array_merge([ - 'time' => false, - 'limit' => false, - ], $options); - - $eventHandler = function (Message $message) use (&$eventHandler, $filter, $options, &$messages, &$deferred, &$timer) { - if ($message->channel_id != $this->id) { - return; - } - // Reject messages not in this channel - $filterResult = call_user_func_array($filter, [$message]); - - if ($filterResult) { - $messages->pushItem($message); - - if ($options['limit'] !== false && count($messages) >= $options['limit']) { - $this->discord->removeListener(Event::MESSAGE_CREATE, $eventHandler); - $deferred->resolve($messages); - - if (null !== $timer) { - $this->discord->getLoop()->cancelTimer($timer); - } - } - } - }; - - $this->discord->on(Event::MESSAGE_CREATE, $eventHandler); - - if ($options['time'] !== false) { - $timer = $this->discord->getLoop()->addTimer($options['time'] / 1000, function () use (&$eventHandler, &$messages, &$deferred) { - $this->discord->removeListener(Event::MESSAGE_CREATE, $eventHandler); - $deferred->resolve($messages); - }); - } - - return $deferred->promise(); - } - - /** - * Returns if allow text. - * - * @return bool if we can send text or not. - * - * @deprecated 10.0.0 Use `Channel::isTextBased()` - */ - public function allowText() - { - return $this->isTextBased(); - } - - /** - * Returns if allow voice. - * - * @return bool if we can send voice or not. - * - * @deprecated 10.0.0 Use `Channel::isVoiceBased()` - */ - public function allowVoice() - { - return $this->isVoiceBased(); - } - - /** - * Returns if allow invite. - * - * @return bool if we can make invite or not. - * - * @deprecated 10.0.0 Use `Channel::canInvite()` - */ - public function allowInvite() - { - return $this->canInvite(); - } - - /** - * Returns if channel type is text based. - * - * @return bool Whether the channel is possible for sending text. - */ - public function isTextBased(): bool - { - return in_array($this->type, [ - self::TYPE_GUILD_TEXT, - self::TYPE_DM, - self::TYPE_GUILD_VOICE, - self::TYPE_GROUP_DM, - self::TYPE_PUBLIC_THREAD, - self::TYPE_PRIVATE_THREAD, - self::TYPE_GUILD_ANNOUNCEMENT, - self::TYPE_GUILD_STAGE_VOICE, - ]); - } - - /** - * Returns if channel type is voice based. - * - * @return bool Whether the channel is possible for voice. - */ - public function isVoiceBased(): bool - { - return in_array($this->type, [self::TYPE_GUILD_VOICE, self::TYPE_GUILD_STAGE_VOICE]); - } - - /** - * Returns if invite can be created in this type of channel. - * - * @return bool Whether the channel type is possible for creating invite. - */ - public function canInvite(): bool - { - return in_array($this->type, [self::TYPE_GUILD_TEXT, self::TYPE_GUILD_VOICE, self::TYPE_GUILD_ANNOUNCEMENT, self::TYPE_GUILD_STAGE_VOICE, self::TYPE_GUILD_FORUM]); - } - - /** - * Returns the bot's permissions in the channel. - * - * @return RolePermission|null - */ - public function getBotPermissions(): ?RolePermission - { - return $this->guild?->members->get('id', $this->discord->id)?->getPermissions($this); - } - - /** - * {@inheritDoc} - * - * @link https://discord.com/developers/docs/resources/guild#create-guild-channel-json-params - */ - public function getCreatableAttributes(): array - { - // Required - $attr = ['name' => $this->name]; - - // Marked "Channel Type: All" in documentation - $attr += $this->makeOptionalAttributes([ - 'type' => $this->type, - 'permission_overwrites' => $this->getPermissionOverwritesAttribute(), - 'position' => $this->position, - ]); - - if (null === $this->type) { - // Type was not specified, but we must not assume its default to GUILD_TEXT as that is determined by API - $this->discord->getLogger()->warning('Not specifying channel type, creating with all filled attributes'); - $attr += $this->getRawAttributes(); // Send the remaining raw attributes - - return $attr; - } - - switch ($this->type) { - case self::TYPE_GUILD_TEXT: - $attr += $this->makeOptionalAttributes([ - 'topic' => $this->topic, - 'rate_limit_per_user' => $this->rate_limit_per_user, - 'parent_id' => $this->parent_id, - 'nsfw' => $this->nsfw, - 'default_auto_archive_duration' => $this->default_auto_archive_duration, - 'default_thread_rate_limit_per_user' => $this->default_thread_rate_limit_per_user, - ]); - break; - - case self::TYPE_GUILD_VOICE: - $attr += $this->makeOptionalAttributes([ - 'bitrate' => $this->bitrate, - 'user_limit' => $this->user_limit, - 'rate_limit_per_user' => $this->rate_limit_per_user, - 'parent_id' => $this->parent_id, - 'nsfw' => $this->nsfw, - 'rtc_region' => $this->rtc_region, - 'video_quality_mode' => $this->video_quality_mode, - ]); - break; - - case self::TYPE_GUILD_ANNOUNCEMENT: - $attr += $this->makeOptionalAttributes([ - 'topic' => $this->topic, - 'parent_id' => $this->parent_id, - 'nsfw' => $this->nsfw, - 'default_auto_archive_duration' => $this->default_auto_archive_duration, - ]); - break; - - case self::TYPE_GUILD_STAGE_VOICE: - $attr += $this->makeOptionalAttributes([ - 'bitrate' => $this->bitrate, - 'user_limit' => $this->user_limit, - 'rate_limit_per_user' => $this->rate_limit_per_user, - 'parent_id' => $this->parent_id, - 'nsfw' => $this->nsfw, - 'rtc_region' => $this->rtc_region, - 'video_quality_mode' => $this->video_quality_mode, - ]); - break; - - case self::TYPE_GUILD_FORUM: - $attr += $this->makeOptionalAttributes([ - 'topic' => $this->topic, - 'rate_limit_per_user' => $this->rate_limit_per_user, - 'parent_id' => $this->parent_id, - 'nsfw' => $this->nsfw, - 'default_auto_archive_duration' => $this->default_auto_archive_duration, - 'default_reaction_emoji' => $this->attributes['default_reaction_emoji'] ?? null, - 'available_tags', - 'default_sort_order' => $this->default_sort_order, - 'default_forum_layout' => $this->default_forum_layout, - 'default_thread_rate_limit_per_user' => $this->default_thread_rate_limit_per_user, // Canceled documentation #5606 - ]); - break; - } - - return $attr; - } - - /** - * {@inheritDoc} - * - * @link https://discord.com/developers/docs/resources/channel#modify-channel-json-params-guild-channel - */ - public function getUpdatableAttributes(): array - { - if ($this->type == self::TYPE_GROUP_DM) { - return [ - 'name' => $this->name, - 'icon' => $this->icon, - ]; - } - - // Marked "Channel Type: All" in documentation - $attr = [ - 'name' => $this->name, - 'position' => $this->position, - 'permission_overwrites' => $this->getPermissionOverwritesAttribute(), - ]; - - switch ($this->type) { - case self::TYPE_GUILD_TEXT: - $attr['type'] = $this->type; - $attr['topic'] = $this->topic; - $attr['nsfw'] = $this->nsfw; - $attr['rate_limit_per_user'] = $this->rate_limit_per_user; - $attr['parent_id'] = $this->parent_id; - $attr['default_auto_archive_duration'] = $this->default_auto_archive_duration; - $attr += $this->makeOptionalAttributes([ - 'default_thread_rate_limit_per_user' => $this->default_thread_rate_limit_per_user, - ]); - break; - - case self::TYPE_GUILD_VOICE: - $attr['nsfw'] = $this->nsfw; - $attr['rate_limit_per_user'] = $this->rate_limit_per_user; - $attr['bitrate'] = $this->bitrate; - $attr['user_limit'] = $this->user_limit; - $attr['parent_id'] = $this->parent_id; - $attr['rtc_region'] = $this->rtc_region; - $attr['video_quality_mode'] = $this->video_quality_mode; - break; - - case self::TYPE_GUILD_ANNOUNCEMENT: - $attr['type'] = $this->type; - $attr['topic'] = $this->topic; - $attr['nsfw'] = $this->nsfw; - $attr['parent_id'] = $this->parent_id; - $attr['default_auto_archive_duration'] = $this->default_auto_archive_duration; - break; - - case self::TYPE_GUILD_STAGE_VOICE: - $attr['nsfw'] = $this->nsfw; - $attr['rate_limit_per_user'] = $this->rate_limit_per_user; - $attr['bitrate'] = $this->bitrate; - $attr['user_limit'] = $this->user_limit; - $attr['parent_id'] = $this->parent_id; - $attr['rtc_region'] = $this->rtc_region; - $attr['video_quality_mode'] = $this->video_quality_mode; - break; - - case self::TYPE_GUILD_FORUM: - $attr['topic'] = $this->topic; - $attr['nsfw'] = $this->nsfw; - $attr['rate_limit_per_user'] = $this->rate_limit_per_user; - $attr['parent_id'] = $this->parent_id; - $attr['default_auto_archive_duration'] = $this->default_auto_archive_duration; - $attr += $this->makeOptionalAttributes([ - 'flags' => $this->flags, - 'available_tags', - 'default_reaction_emoji' => $this->attributes['default_reaction_emoji'], - 'default_thread_rate_limit_per_user' => $this->default_thread_rate_limit_per_user, - 'default_sort_order' => $this->default_sort_order, - 'default_forum_layout' => $this->default_forum_layout, - ]); - break; - } - - return $attr; - } - - /** - * {@inheritDoc} - */ - public function getRepositoryAttributes(): array - { - return [ - 'guild_id' => $this->guild_id, - 'channel_id' => $this->id, - ]; - } - - /** - * Returns a formatted mention for text channel or name of the channel. - * - * @return string A formatted mention for text channel or name of the channel. - */ - public function __toString(): string - { - return "<#{$this->id}>"; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Forum/Reaction.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Forum/Reaction.php deleted file mode 100644 index 43f06ea..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Forum/Reaction.php +++ /dev/null @@ -1,36 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Channel\Forum; - -use Discord\Parts\Part; - -/** - * An object that specifies the emoji to use as the default way to react to a - * forum post. Exactly one of `emoji_id` and `emoji_name` must be set. - * - * @link https://discord.com/developers/docs/resources/channel#default-reaction-object - * - * @since 7.4.0 - * - * @property ?string $emoji_id The id of a guild's custom emoji. - * @property ?string $emoji_name The unicode character of the emoji. - */ -class Reaction extends Part -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'emoji_id', - 'emoji_name', - ]; -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Forum/Tag.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Forum/Tag.php deleted file mode 100644 index df4ed7e..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Forum/Tag.php +++ /dev/null @@ -1,43 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Channel\Forum; - -use Discord\Parts\Part; - -/** - * An object that represents a tag that is able to be applied to a thread in a - * `GUILD_FORUM` channel. - * At most one of `emoji_id` and `emoji_name` may be set to a non-null value. - * - * @link https://discord.com/developers/docs/resources/channel#forum-tag-object - * - * @since 7.4.0 - * - * @property string $id The id of the tag. - * @property string $name The name of the tag (0-20 characters). - * @property bool $moderated Whether this tag can only be added to or removed from threads by a member with the `MANAGE_THREADS` permission. - * @property string|null $emoji_id The id of a guild's custom emoji. - * @property string|null $emoji_name The unicode character of the emoji. - */ -class Tag extends Part -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'id', - 'name', - 'moderated', - 'emoji_id', - 'emoji_name', - ]; -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Invite.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Invite.php deleted file mode 100644 index 81a609e..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Invite.php +++ /dev/null @@ -1,304 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Channel; - -use Carbon\Carbon; -use Discord\Parts\Guild\Guild; -use Discord\Parts\Guild\ScheduledEvent; -use Discord\Parts\OAuth\Application; -use Discord\Parts\Part; -use Discord\Parts\User\User; -use Stringable; - -/** - * An invite to a Channel and Guild. - * - * @link https://discord.com/developers/docs/resources/invite - * - * @since 7.0.0 Namespace moved from Guild to Channel - * @since 2.0.0 - * - * @property string $code The invite code. - * @property Guild|null $guild The partial guild that the invite is for. - * @property string|null $guild_id - * @property Channel $channel The partial channel that the invite is for. - * @property string|null $channel_id - * @property User|null $inviter The user that created the invite. - * @property int|null $target_type The type of target for this voice channel invite. - * @property User|null $target_user The user whose stream to display for this voice channel stream invite. - * @property Application|null $target_application The partial embedded application to open for this voice channel embedded application invite. - * @property int|null $approximate_presence_count Approximate count of online members, returned from the GET /invites/ endpoint when with_counts is true. - * @property int|null $approximate_member_count Approximate count of total members, returned from the GET /invites/ endpoint when with_counts is true. - * @property Carbon|null $expires_at The expiration date of this invite, returned from the GET /invites/ endpoint when with_expiration is true. - * @property ScheduledEvent|null $guild_scheduled_event Guild scheduled event data, only included if guild_scheduled_event_id contains a valid guild scheduled event id. - * - * @property int|null $uses How many times the invite has been used. - * @property int|null $max_uses How many times the invite can be used. - * @property int|null $max_age How many seconds the invite will be alive. - * @property bool|null $temporary Whether the invite is for temporary membership. - * @property Carbon|null $created_at A timestamp of when the invite was created. - * - * @property-read string $invite_url Returns the invite URL. - */ -class Invite extends Part implements Stringable -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'code', - 'guild', - 'channel', - 'inviter', - 'target_type', - 'target_user', - 'target_application', - 'approximate_presence_count', - 'approximate_member_count', - 'expires_at', - 'guild_scheduled_event', - - // Extra metadata - 'uses', - 'max_uses', - 'max_age', - 'temporary', - 'created_at', - - // @internal - 'guild_id', - 'channel_id', - ]; - - public const TARGET_TYPE_STREAM = 1; - public const TARGET_TYPE_EMBEDDED_APPLICATION = 2; - - /** - * Returns the id attribute. - * - * @return string The id attribute. - */ - protected function getIdAttribute(): string - { - return $this->code; - } - - /** - * Returns the guild attribute. - * - * @return Guild|null The Guild that you have been invited to. - */ - protected function getGuildAttribute(): ?Guild - { - $guildId = $this->guild_id; - - if ($guildId && $guild = $this->discord->guilds->get('id', $guildId)) { - return $guild; - } - - if (! isset($this->attributes['guild'])) { - return null; - } - - return $this->factory->part(Guild::class, (array) $this->attributes['guild'], true); - } - - /** - * Returns the guild id attribute. - * - * @return string|null - */ - protected function getGuildIdAttribute(): ?string - { - if (isset($this->attributes['guild_id'])) { - return $this->attributes['guild_id']; - } - - if (isset($this->attributes['guild']->id)) { - return $this->attributes['guild']->id; - } - - return null; - } - - /** - * Returns the channel attribute. - * - * @return ?Channel The Channel that you have been invited to. - */ - protected function getChannelAttribute(): ?Channel - { - if ($channelId = $this->channel_id) { - if ($guild = $this->guild) { - if ($channel = $guild->channels->get('id', $channelId)) { - return $channel; - } - } - - // @todo potentially slow code - if ($channel = $this->discord->getChannel($channelId)) { - return $channel; - } - } - - if (isset($this->attributes['channel'])) { - return $this->factory->part(Channel::class, (array) $this->attributes['channel'] + ['guild_id' => $this->guild_id], true); - } - - return null; - } - - /** - * Returns the channel id attribute. - * - * @return ?string The Channel ID that you have been invited to. - */ - protected function getChannelIdAttribute(): ?string - { - if (isset($this->attributes['channel_id'])) { - return $this->attributes['channel_id']; - } - - if (isset($this->attributes['channel']->id)) { - return $this->attributes['channel']->id; - } - - return null; - } - - /** - * Returns the inviter attribute. - * - * @return User|null The User that invited you. - */ - protected function getInviterAttribute(): ?User - { - if (! isset($this->attributes['inviter'])) { - return null; - } - - if ($user = $this->discord->users->get('id', $this->attributes['inviter']->id)) { - return $user; - } - - return $this->factory->part(User::class, (array) $this->attributes['inviter'], true); - } - - /** - * Returns the target user attribute. - * - * @return User|null The user whose stream to display for this voice channel stream invite. - */ - protected function getTargetUserAttribute(): ?User - { - if (! isset($this->attributes['target_user'])) { - return null; - } - - if ($user = $this->discord->users->get('id', $this->attributes['target_user']->id)) { - return $user; - } - - return $this->factory->part(User::class, (array) $this->attributes['target_user'], true); - } - - /** - * Returns the target application attribute. - * - * @return Application|null The partial target application data. - */ - protected function getTargetApplicationAttribute(): ?Application - { - if (! isset($this->attributes['target_application'])) { - return null; - } - - return $this->factory->part(Application::class, (array) $this->attributes['target_application'], true); - } - - /** - * Returns the expires at attribute. - * - * @return Carbon|null The time that the invite was created. - * - * @throws \Exception - */ - protected function getExpiresAtAttribute(): ?Carbon - { - if (! isset($this->attributes['expires_at'])) { - return null; - } - - return new Carbon($this->attributes['expires_at']); - } - - /** - * Returns the guild scheduled event on this invite. - * - * @return ScheduledEvent|null The guild scheduled event data. - */ - protected function getGuildScheduledEventAttribute(): ?ScheduledEvent - { - if (! isset($this->attributes['guild_scheduled_event'])) { - return null; - } - - if ($guild = $this->guild) { - if ($scheduled_event = $guild->guild_scheduled_events->get('id', $this->attributes['guild_scheduled_event']->id)) { - return $scheduled_event; - } - } - - return $this->factory->part(ScheduledEvent::class, (array) $this->attributes['guild_scheduled_event'], true); - } - - /** - * Returns the created at attribute. - * - * @return Carbon|null The time that the invite was created. - * - * @throws \Exception - */ - protected function getCreatedAtAttribute(): ?Carbon - { - if (! isset($this->attributes['created_at'])) { - return null; - } - - return new Carbon($this->attributes['created_at']); - } - - /** - * Returns the invite URL attribute. - * - * @return string The URL to the invite. - */ - protected function getInviteUrlAttribute(): string - { - return 'https://discord.gg/'.$this->code; - } - - /** - * {@inheritDoc} - */ - public function getRepositoryAttributes(): array - { - return [ - 'code' => $this->code, - ]; - } - - public function __toString(): string - { - return 'discord.gg/'.$this->code; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Message.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Message.php deleted file mode 100644 index ebe1485..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Message.php +++ /dev/null @@ -1,1185 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Channel; - -use Carbon\Carbon; -use Discord\Builders\MessageBuilder; -use Discord\Helpers\Collection; -use Discord\Parts\Channel\Poll; -use Discord\Parts\Embed\Embed; -use Discord\Parts\Guild\Emoji; -use Discord\Parts\Guild\Role; -use Discord\Parts\Part; -use Discord\Parts\User\Member; -use Discord\Parts\User\User; -use Discord\Parts\WebSockets\MessageReaction; -use Discord\WebSockets\Event; -use Discord\Http\Endpoint; -use Discord\Http\Exceptions\NoPermissionsException; -use Discord\Parts\Guild\Guild; -use Discord\Parts\Guild\Sticker; -use Discord\Parts\Interactions\Request\Component; -use Discord\Parts\Thread\Thread; -use Discord\Parts\WebSockets\MessageInteraction; -use Discord\Repository\Channel\ReactionRepository; -use React\EventLoop\TimerInterface; -use React\Promise\Deferred; -use React\Promise\PromiseInterface; -use Symfony\Component\OptionsResolver\OptionsResolver; - -use function React\Promise\reject; - -/** - * A message which is posted to a Discord text channel. - * - * @link https://discord.com/developers/docs/resources/channel#message-object - * - * @since 2.0.0 - * - * @property string $id The unique identifier of the message. - * @property string $channel_id The unique identifier of the channel that the message was sent in. - * @property-read Channel|Thread $channel The channel that the message was sent in. - * @property User|null $author The author of the message. Will be a webhook if sent from one. - * @property-read string|null $user_id The user id of the author. - * @property string $content The content of the message if it is a normal message. - * @property Carbon $timestamp A timestamp of when the message was sent. - * @property Carbon|null $edited_timestamp A timestamp of when the message was edited, or null. - * @property bool $tts Whether the message was sent as a text-to-speech message. - * @property bool $mention_everyone Whether the message contained an @everyone mention. - * @property Collection|User[] $mentions A collection of the users mentioned in the message. - * @property Collection|Role[] $mention_roles A collection of roles that were mentioned in the message. - * @property Collection|Channel[] $mention_channels Collection of mentioned channels. - * @property Collection|Attachment[] $attachments Collection of attachment objects. - * @property Collection|Embed[] $embeds A collection of embed objects. - * @property ReactionRepository $reactions Collection of reactions on the message. - * @property string|null $nonce A randomly generated string that provides verification for the client. Not required. - * @property bool $pinned Whether the message is pinned to the channel. - * @property string|null $webhook_id ID of the webhook that made the message, if any. - * @property int $type The type of message. - * @property object|null $activity Current message activity. Requires rich presence. - * @property object|null $application Application of message. Requires rich presence. - * @property string|null $application_id If the message is a response to an Interaction, this is the id of the interaction's application. - * @property object|null $message_reference Message that is referenced by this message. - * @property int|null $flags Message flags. - * @property Message|null $referenced_message The message that is referenced in a reply. - * @property MessageInteraction|null $interaction Sent if the message is a response to an Interaction. - * @property Thread|null $thread The thread that was started from this message, includes thread member object. - * @property Collection|Component[]|null $components Sent if the message contains components like buttons, action rows, or other interactive components. - * @property Collection|Sticker[]|null $sticker_items Stickers attached to the message. - * @property int|null $position A generally increasing integer (there may be gaps or duplicates) that represents the approximate position of the message in a thread, it can be used to estimate the relative position of the message in a thread in company with `total_message_sent` on parent thread. - * @property object|null $role_subscription_data Data of the role subscription purchase or renewal that prompted this `ROLE_SUBSCRIPTION_PURCHASE` message. - * @property Poll|null $poll The poll attached to the message. - * - * @property-read bool $crossposted Message has been crossposted. - * @property-read bool $is_crosspost Message is a crosspost from another channel. - * @property-read bool $suppress_embeds Do not include embeds when serializing message. - * @property-read bool $source_message_deleted Source message for this message has been deleted. - * @property-read bool $urgent Message is urgent. - * @property-read bool $has_thread Whether this message has an associated thread, with the same id as the message. - * @property-read bool $ephemeral Whether this message is only visible to the user who invoked the Interaction. - * @property-read bool $loading Whether this message is an Interaction Response and the bot is "thinking". - * @property-read bool $failed_to_mention_some_roles_in_thread This message failed to mention some roles and add their members to the thread. - * @property-read bool $suppress_notifications This message will not trigger push and desktop notifications. - * - * @property string|null $guild_id The unique identifier of the guild that the channel the message was sent in belongs to. - * @property-read Guild|null $guild The guild that the message was sent in. - * @property Member|null $member The member that sent this message, or null if it was in a private message. - * @property-read string|null $link Returns a link to the message. - */ -class Message extends Part -{ - public const TYPE_DEFAULT = 0; - public const TYPE_RECIPIENT_ADD = 1; - public const TYPE_RECIPIENT_REMOVE = 2; - public const TYPE_CALL = 3; - public const TYPE_CHANNEL_NAME_CHANGE = 4; - public const TYPE_CHANNEL_ICON_CHANGE = 5; - public const TYPE_CHANNEL_PINNED_MESSAGE = 6; - public const TYPE_USER_JOIN = 7; - public const TYPE_GUILD_BOOST = 8; - public const TYPE_GUILD_BOOST_TIER_1 = 9; - public const TYPE_GUILD_BOOST_TIER_2 = 10; - public const TYPE_GUILD_BOOST_TIER_3 = 11; - public const TYPE_CHANNEL_FOLLOW_ADD = 12; - public const TYPE_GUILD_DISCOVERY_DISQUALIFIED = 14; - public const TYPE_GUILD_DISCOVERY_REQUALIFIED = 15; - public const TYPE_GUILD_DISCOVERY_GRACE_PERIOD_INITIAL_WARNING = 16; - public const TYPE_GUILD_DISCOVERY_GRACE_PERIOD_FINAL_WARNING = 17; - public const TYPE_THREAD_CREATED = 18; - public const TYPE_REPLY = 19; - public const TYPE_CHAT_INPUT_COMMAND = 20; - public const TYPE_THREAD_STARTER_MESSAGE = 21; - public const TYPE_GUILD_INVITE_REMINDER = 22; - public const TYPE_CONTEXT_MENU_COMMAND = 23; - public const TYPE_AUTO_MODERATION_ACTION = 24; - public const TYPE_ROLE_SUBSCRIPTION_PURCHASE = 25; - public const TYPE_INTERACTION_PREMIUM_UPSELL = 26; - public const TYPE_STAGE_START = 27; - public const TYPE_STAGE_END = 28; - public const TYPE_STAGE_SPEAKER = 29; - public const TYPE_STAGE_TOPIC = 31; - public const TYPE_GUILD_APPLICATION_PREMIUM_SUBSCRIPTION = 32; - - /** @deprecated 7.1.0 Use `Message::TYPE_USER_JOIN` */ - public const GUILD_MEMBER_JOIN = self::TYPE_USER_JOIN; - /** @deprecated 7.1.0 Use `Message::TYPE_GUILD_BOOST` */ - public const USER_PREMIUM_GUILD_SUBSCRIPTION = self::TYPE_GUILD_BOOST; - /** @deprecated 7.1.0 Use `Message::TYPE_GUILD_BOOST_TIER_1` */ - public const USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_1 = self::TYPE_GUILD_BOOST_TIER_1; - /** @deprecated 7.1.0 Use `Message::TYPE_GUILD_BOOST_TIER_2` */ - public const USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_2 = self::TYPE_GUILD_BOOST_TIER_2; - /** @deprecated 7.1.0 Use `Message::TYPE_GUILD_BOOST_TIER_3` */ - public const USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_3 = self::TYPE_GUILD_BOOST_TIER_3; - /** @deprecated 10.0.0 Use `Message::TYPE_DEFAULT` */ - public const TYPE_NORMAL = self::TYPE_DEFAULT; - /** @deprecated 10.0.0 Use `Message::TYPE_RECIPIENT_ADD` */ - public const TYPE_USER_ADDED = self::TYPE_RECIPIENT_ADD; - /** @deprecated 10.0.0 Use `Message::TYPE_RECIPIENT_REMOVE` */ - public const TYPE_USER_REMOVED = self::TYPE_RECIPIENT_REMOVE; - /** @deprecated 10.0.0 Use `Message::TYPE_CHANNEL_PINNED_MESSAGE` */ - public const CHANNEL_PINNED_MESSAGE = self::TYPE_CHANNEL_PINNED_MESSAGE; - /** @deprecated 10.0.0 Use `Message::TYPE_CHANNEL_FOLLOW_ADD` */ - public const CHANNEL_FOLLOW_ADD = self::TYPE_CHANNEL_FOLLOW_ADD; - /** @deprecated 10.0.0 Use `Message::TYPE_GUILD_DISCOVERY_DISQUALIFIED` */ - public const GUILD_DISCOVERY_DISQUALIFIED = self::TYPE_GUILD_DISCOVERY_DISQUALIFIED; - /** @deprecated 10.0.0 Use `Message::TYPE_GUILD_DISCOVERY_REQUALIFIED` */ - public const GUILD_DISCOVERY_REQUALIFIED = self::TYPE_GUILD_DISCOVERY_REQUALIFIED; - /** @deprecated 10.0.0 Use `Message::TYPE_GUILD_DISCOVERY_GRACE_PERIOD_INITIAL_WARNING` */ - public const GUILD_DISCOVERY_GRACE_PERIOD_INITIAL_WARNING = self::TYPE_GUILD_DISCOVERY_GRACE_PERIOD_INITIAL_WARNING; - /** @deprecated 10.0.0 Use `Message::TYPE_GUILD_DISCOVERY_GRACE_PERIOD_FINAL_WARNING` */ - public const GUILD_DISCOVERY_GRACE_PERIOD_FINAL_WARNING = self::TYPE_GUILD_DISCOVERY_GRACE_PERIOD_FINAL_WARNING; - /** @deprecated 10.0.0 Use `Message::TYPE_CHAT_INPUT_COMMAND` */ - public const TYPE_APPLICATION_COMMAND = self::TYPE_CHAT_INPUT_COMMAND; - - public const ACTIVITY_JOIN = 1; - public const ACTIVITY_SPECTATE = 2; - public const ACTIVITY_LISTEN = 3; - public const ACTIVITY_JOIN_REQUEST = 5; - - public const REACT_DELETE_ALL = 0; - public const REACT_DELETE_ME = 1; - public const REACT_DELETE_ID = 2; - public const REACT_DELETE_EMOJI = 3; - - public const FLAG_CROSSPOSTED = (1 << 0); - public const FLAG_IS_CROSSPOST = (1 << 1); - public const FLAG_SUPPRESS_EMBED = (1 << 2); - public const FLAG_SOURCE_MESSAGE_DELETED = (1 << 3); - public const FLAG_URGENT = (1 << 4); - public const FLAG_HAS_THREAD = (1 << 5); - public const FLAG_EPHEMERAL = (1 << 6); - public const FLAG_LOADING = (1 << 7); - public const FLAG_FAILED_TO_MENTION_SOME_ROLES_IN_THREAD = (1 << 8); - public const FLAG_SUPPRESS_NOTIFICATIONS = (1 << 12); - - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'id', - 'channel_id', - 'author', - 'content', - 'timestamp', - 'edited_timestamp', - 'tts', - 'mention_everyone', - 'mentions', - 'mention_roles', - 'mention_channels', - 'attachments', - 'embeds', - 'nonce', - 'pinned', - 'webhook_id', - 'type', - 'activity', - 'application', - 'application_id', - 'message_reference', - 'flags', - 'referenced_message', - 'interaction', - 'thread', - 'components', - 'sticker_items', - 'position', - 'role_subscription_data', - 'poll', - - // @internal - 'guild_id', - 'member', - - // repositories - 'reactions', - ]; - - /** - * {@inheritDoc} - */ - protected $repositories = [ - 'reactions' => ReactionRepository::class, - ]; - - /** - * Gets the crossposted attribute. - * - * @return bool - */ - protected function getCrosspostedAttribute(): bool - { - return (bool) ($this->flags & self::FLAG_CROSSPOSTED); - } - - /** - * Gets the is_crosspost attribute. - * - * @return bool - */ - protected function getIsCrosspostAttribute(): bool - { - return (bool) ($this->flags & self::FLAG_IS_CROSSPOST); - } - - /** - * Gets the suppress_embeds attribute. - * - * @return bool - */ - protected function getSuppressEmbedsAttribute(): bool - { - return (bool) ($this->flags & self::FLAG_SUPPRESS_EMBED); - } - - /** - * Gets the source_message_deleted attribute. - * - * @return bool - */ - protected function getSourceMessageDeletedAttribute(): bool - { - return (bool) ($this->flags & self::FLAG_SOURCE_MESSAGE_DELETED); - } - - /** - * Gets the urgent attribute. - * - * @return bool - */ - protected function getUrgentAttribute(): bool - { - return (bool) ($this->flags & self::FLAG_URGENT); - } - - /** - * Gets the has thread attribute. - * - * @return bool - */ - protected function getHasThreadAttribute(): bool - { - return (bool) ($this->flags & self::FLAG_HAS_THREAD); - } - - /** - * Gets the ephemeral attribute. - * - * @return bool - */ - protected function getEphemeralAttribute(): bool - { - return (bool) ($this->flags & self::FLAG_EPHEMERAL); - } - - /** - * Gets the loading attribute. - * - * @return bool - */ - protected function getLoadingAttribute(): bool - { - return (bool) ($this->flags & self::FLAG_LOADING); - } - - /** - * Gets the failed to mention some roles in thread attribute. - * - * @return bool - */ - protected function getFailedToMentionSomeRolesInThreadAttribute(): bool - { - return (bool) ($this->flags & self::FLAG_FAILED_TO_MENTION_SOME_ROLES_IN_THREAD); - } - - /** - * Gets the suppress notification attribute. - * - * @return bool - */ - protected function getSuppressNotificationsAttribute(): bool - { - return (bool) ($this->flags & self::FLAG_SUPPRESS_NOTIFICATIONS); - } - - /** - * Gets the mention_channels attribute. - * - * @return Collection|Channel[] - */ - protected function getMentionChannelsAttribute(): Collection - { - $collection = Collection::for(Channel::class); - - if (preg_match_all('/<#([0-9]*)>/', $this->content, $matches)) { - foreach ($matches[1] as $channelId) { - if ($channel = $this->discord->getChannel($channelId)) { - $collection->pushItem($channel); - } - } - } - - foreach ($this->attributes['mention_channels'] ?? [] as $mention_channel) { - $collection->pushItem($this->discord->getChannel($mention_channel->id) ?: $this->factory->part(Channel::class, (array) $mention_channel, true)); - } - - return $collection; - } - - /** - * Returns any attached files. - * - * @return Collection|Attachment[] Attachment objects. - */ - protected function getAttachmentsAttribute(): Collection - { - $attachments = Collection::for(Attachment::class); - - foreach ($this->attributes['attachments'] ?? [] as $attachment) { - $attachments->pushItem($this->createOf(Attachment::class, $attachment)); - } - - return $attachments; - } - - /** - * Sets the reactions attribute. - * - * @param ?array $reactions - */ - protected function setReactionsAttribute(?array $reactions): void - { - $keepReactions = []; - foreach ($reactions ?? [] as $reaction) { - $keepReactions[] = $reactionKey = $reaction->emoji->id ?? $reaction->emoji->name; - $reaction = (array) $reaction; - /** @var ?Reaction */ - if ($reactionPart = $this->reactions->offsetGet($reactionKey)) { - $reactionPart->fill($reaction); - } else { - /** @var Reaction */ - $reactionPart = $this->reactions->create($reaction, $this->created); - $reactionPart->created = &$this->created; - } - $this->reactions->pushItem($reactionPart); - } - - $oldReactions = []; - if (! empty($this->attributes['reactions'])) { - foreach ($this->attributes['reactions'] as $oldReaction) { - $oldReactions[] = $oldReaction->emoji->id ?? $oldReaction->emoji->name; - } - if ($clean = array_diff($oldReactions, $keepReactions)) { - $this->reactions->cache->deleteMultiple($clean); - } - } - - $this->attributes['reactions'] = $reactions; - } - - /** - * Returns the channel attribute. - * - * @return Channel|Thread The channel or thread the message was sent in. - */ - protected function getChannelAttribute(): Part - { - if ($guild = $this->guild) { - $channels = $guild->channels; - if ($channel = $channels->get('id', $this->channel_id)) { - return $channel; - } - - foreach ($channels as $parent) { - if ($thread = $parent->threads->get('id', $this->channel_id)) { - return $thread; - } - } - } - - // @todo potentially slow - if ($channel = $this->discord->getChannel($this->channel_id)) { - return $channel; - } - - return $this->factory->part(Channel::class, [ - 'id' => $this->channel_id, - 'type' => Channel::TYPE_DM, - ], true); - } - - /** - * Returns the thread that was started from this message, includes thread member object. - * - * @since 10.0.0 This only returns a thread that was started on this message, not the thread of the message. - * @since 7.0.0 - * - * @return Thread|null - */ - protected function getThreadAttribute(): ?Thread - { - if (! isset($this->attributes['thread'])) { - return null; - } - - $thread = null; - if ($guild = $this->guild) { - if ($channel = $guild->channels->get('id', $this->attributes['thread']->parent_id)) { - if ($thread = $channel->threads->get('id', $this->channel_id)) { - return $thread; - } - $thread = $channel->threads->create($this->attributes['thread'], $channel->created); - $thread->created = &$channel->created; - $channel->threads->pushItem($thread); - } - } - - return $thread; - } - - /** - * Returns the guild which the channel that the message was sent in belongs to. - * - * @return Guild|null - */ - protected function getGuildAttribute(): ?Guild - { - if ($guild = $this->discord->guilds->get('id', $this->guild_id)) { - return $guild; - } - - // Workaround for Channel::sendMessage() no guild_id - if ($this->channel_id) { - return $this->discord->guilds->find(function (Guild $guild) { - return $guild->channels->offsetExists($this->channel_id); - }); - } - - return null; - } - - /** - * Returns the mention_roles attribute. - * - * @return Collection The roles that were mentioned. null role only contains the ID in the collection. - */ - protected function getMentionRolesAttribute(): Collection - { - $roles = new Collection(); - - if (empty($this->attributes['mention_roles'])) { - return $roles; - } - - $roles->fill(array_fill_keys($this->attributes['mention_roles'], null)); - - if ($guild = $this->guild) { - $roles->merge($guild->roles->filter(function ($role) { - return in_array($role->id, $this->attributes['mention_roles']); - })); - } - - return $roles; - } - - /** - * Returns the mention attribute. - * - * @return Collection|User[] The users that were mentioned. - */ - protected function getMentionsAttribute(): Collection - { - $users = Collection::for(User::class); - - foreach ($this->attributes['mentions'] ?? [] as $mention) { - $users->pushItem($this->discord->users->get('id', $mention->id) ?: $this->factory->part(User::class, (array) $mention, true)); - } - - return $users; - } - - /** - * Returns the `user_id` attribute. - * - * @return string|null - */ - protected function getUserIdAttribute(): ?string - { - return $this->attributes['author']->id ?? null; - } - - /** - * Returns the author attribute. - * - * @return User|null The author of the message. - */ - protected function getAuthorAttribute(): ?User - { - if (! isset($this->attributes['author'])) { - return null; - } - - if ($user = $this->discord->users->get('id', $this->attributes['author']->id)) { - return $user; - } - - return $this->factory->part(User::class, (array) $this->attributes['author'], true); - } - - /** - * Returns the member attribute. - * - * @return Member|null The member that sent the message, or null if it was in a private message. - */ - protected function getMemberAttribute(): ?Member - { - if ($guild = $this->guild) { - if ($member = $guild->members->get('id', $this->attributes['author']->id)) { - return $member; - } - } - - if (isset($this->attributes['member'])) { - return $this->factory->part(Member::class, array_merge((array) $this->attributes['member'], [ - 'user' => $this->attributes['author'], - 'guild_id' => $this->guild_id, - ]), true); - } - - return null; - } - - /** - * Returns the embed attribute. - * - * @return Collection A collection of embeds. - */ - protected function getEmbedsAttribute(): Collection - { - $embeds = new Collection([], null); - - foreach ($this->attributes['embeds'] ?? [] as $embed) { - $embeds->pushItem($this->createOf(Embed::class, $embed)); - } - - return $embeds; - } - - /** - * Gets the interaction which triggered the message (application commands). - * - * @return MessageInteraction|null - */ - protected function getInteractionAttribute(): ?MessageInteraction - { - if (! isset($this->attributes['interaction'])) { - return null; - } - - return $this->createOf(MessageInteraction::class, (array) $this->attributes['interaction'] + ['guild_id' => $this->guild_id]); - } - - /** - * Gets the referenced message attribute, if present. - * - * @return Message|null - */ - protected function getReferencedMessageAttribute(): ?Message - { - // try to get the message from the relevant repository - // otherwise, if message is present in payload, create it - // otherwise, return null - if ($reference = $this->attributes['message_reference'] ?? null) { - if (isset($reference->message_id, $reference->channel_id)) { - $channel = null; - - if (isset($reference->guild_id) && $guild = $this->discord->guilds->get('id', $reference->guild_id)) { - $channel = $guild->channels->get('id', $reference->channel_id); - } - - // @todo potentially slow - if (! $channel && ! isset($this->attributes['referenced_message'])) { - $channel = $this->discord->getChannel($reference->channel_id); - } - - if ($channel) { - if ($message = $channel->messages->get('id', $reference->message_id)) { - return $message; - } - } - } - } - - if (isset($this->attributes['referenced_message'])) { - return $this->factory->part(Message::class, (array) $this->attributes['referenced_message'], true); - } - - return null; - } - - /** - * Returns the timestamp attribute. - * - * @return Carbon|null The time that the message was sent. - * - * @throws \Exception - */ - protected function getTimestampAttribute(): ?Carbon - { - if (! isset($this->attributes['timestamp'])) { - return null; - } - - return new Carbon($this->attributes['timestamp']); - } - - /** - * Returns the edited_timestamp attribute. - * - * @return Carbon|null The time that the message was edited. - * - * @throws \Exception - */ - protected function getEditedTimestampAttribute(): ?Carbon - { - if (! isset($this->attributes['edited_timestamp'])) { - return null; - } - - return new Carbon($this->attributes['edited_timestamp']); - } - - /** - * Returns the components attribute. - * - * @return Collection|Component[]|null - */ - protected function getComponentsAttribute(): ?Collection - { - if (! isset($this->attributes['components'])) { - return null; - } - - $components = Collection::for(Component::class, null); - - foreach ($this->attributes['components'] as $component) { - $components->pushItem($this->createOf(Component::class, $component)); - } - - return $components; - } - - /** - * Returns the sticker_items attribute. - * - * @return Collection|Sticker[]|null Partial stickers. - */ - protected function getStickerItemsAttribute(): ?Collection - { - if (! isset($this->attributes['sticker_items']) && ! in_array($this->type, [self::TYPE_DEFAULT, self::TYPE_REPLY])) { - return null; - } - - $sticker_items = Collection::for(Sticker::class); - - foreach ($this->attributes['sticker_items'] ?? [] as $sticker) { - $sticker_items->pushItem($this->factory->part(Sticker::class, (array) $sticker, true)); - } - - return $sticker_items; - } - - /** - * Returns the poll attribute. - * - * @return Poll|null - */ - protected function getPollAttribute(): ?Poll - { - if (! isset($this->attributes['poll'])) { - return null; - } - - return $this->factory->part(Poll::class, (array) $this->attributes['poll'] + ['channel_id' => $this->channel_id, 'message_id' => $this->id], true); - } - - /** - * Returns the message link attribute. - * - * @return string|null - */ - public function getLinkAttribute(): ?string - { - if ($this->id && $this->channel_id) { - return 'https://discord.com/channels/'.($this->guild_id ?? '@me').'/'.$this->channel_id.'/'.$this->id; - } - - return null; - } - - /** - * Starts a public thread from the message. - * - * @link https://discord.com/developers/docs/resources/channel#start-thread-from-message - * - * @param array $options Thread params. - * @param string $options['name'] The name of the thread. - * @param int|null $options['auto_archive_duration'] The thread will stop showing in the channel list after `auto_archive_duration` minutes of inactivity, can be set to: of 60, 1440, 4320, 10080. - * @param ?int|null $options['rate_limit_per_user'] Amount of seconds a user has to wait before sending another message (0-21600). - * @param string|null $reason Reason for Audit Log. - * - * @throws \RuntimeException Channel type is not guild text or news. - * @throws NoPermissionsException Missing create_public_threads permission to create or manage_threads permission to set rate_limit_per_user. - * - * @return PromiseInterface - * - * @since 10.0.0 Arguments for `$name` and `$auto_archive_duration` are now inside `$options` - */ - public function startThread(array|string $options, string|null|int $reason = null, ?string $_reason = null): PromiseInterface - { - // Old v7 signature - if (is_string($options)) { - $options = [ - 'name' => $options, - ]; - if (! is_string($reason)) { - $options['auto_archive_duration'] = $reason ?? 1440; - } - $reason = $_reason; - } - - $resolver = new OptionsResolver(); - $resolver - ->setDefined([ - 'name', - 'auto_archive_duration', - 'rate_limit_per_user', - ]) - ->setAllowedTypes('name', 'string') - ->setAllowedTypes('auto_archive_duration', 'int') - ->setAllowedTypes('rate_limit_per_user', ['null', 'int']) - ->setAllowedValues('auto_archive_duration', fn ($value) => in_array($value, [60, 1440, 4320, 10080])) - ->setAllowedValues('rate_limit_per_user', fn ($value) => $value >= 0 && $value <= 21600) - ->setRequired('name'); - - $options = $resolver->resolve($options); - - $channel = $this->channel; - if ($channel) { - if (! in_array($channel->type, [Channel::TYPE_GUILD_TEXT, Channel::TYPE_GUILD_ANNOUNCEMENT, null])) { - return reject(new \RuntimeException('You can only start threads on guild text channels or news channels.')); - } - - $botperms = $channel->getBotPermissions(); - if ($botperms && ! $botperms->create_public_threads) { - return reject(new NoPermissionsException("You do not have permission to create public threads in channel {$this->id}.")); - } - - if (! empty($options['rate_limit_per_user']) && ! $botperms->manage_threads) { - return reject(new NoPermissionsException("You do not have permission to manage threads in channel {$this->id}.")); - } - } - - $headers = []; - if (isset($reason)) { - $headers['X-Audit-Log-Reason'] = $reason; - } - - return $this->http->post(Endpoint::bind(Endpoint::CHANNEL_MESSAGE_THREADS, $this->channel_id, $this->id), $options, $headers)->then(function ($response) use ($channel) { - $this->attributes['thread'] ??= $response; - if ($channel) { - /** @var ?Thread */ - if ($threadPart = $channel->threads->offsetGet($response->id)) { - $threadPart->fill((array) $response); - } else { - /** @var Thread */ - $threadPart = $channel->threads->create($response, $channel->created); - $threadPart->created = &$channel->created; - } - $channel->threads->pushItem($threadPart); - - return $threadPart; - } - - return $this->factory->part(Thread::class, (array) $response, true); - }); - } - - /** - * Replies to the message. - * - * @link https://discord.com/developers/docs/resources/channel#create-message - * - * @param string|MessageBuilder $message The reply message. - * - * @return PromiseInterface - */ - public function reply($message): PromiseInterface - { - $channel = $this->channel; - - if ($message instanceof MessageBuilder) { - return $channel->sendMessage($message->setReplyTo($this)); - } - - return $channel->sendMessage(MessageBuilder::new() - ->setContent($message) - ->setReplyTo($this)); - } - - /** - * Crossposts the message to any following channels (publish announcement). - * - * @link https://discord.com/developers/docs/resources/channel#crosspost-message - * - * @throws \RuntimeException Message has already been crossposted. - * @throws NoPermissionsException Missing permission: - * send_messages if this message author is the bot. - * manage_messages if this message author is other user. - * - * @return PromiseInterface - */ - public function crosspost(): PromiseInterface - { - if ($this->crossposted) { - return reject(new \RuntimeException('This message has already been crossposted.')); - } - - if ($channel = $this->channel) { - if ($botperms = $channel->getBotPermissions()) { - if ($this->user_id == $this->discord->id) { - if (! $botperms->send_messages) { - return reject(new NoPermissionsException("You do not have permission to crosspost message in channel {$this->id}.")); - } - } else { - if (! $botperms->manage_messages) { - return reject(new NoPermissionsException("You do not have permission to crosspost others message in channel {$this->id}.")); - } - } - } - } - - return $this->http->post(Endpoint::bind(Endpoint::CHANNEL_CROSSPOST_MESSAGE, $this->channel_id, $this->id))->then(function ($response) { - $this->flags = $response->flags; - - return $this; - }); - } - - /** - * Replies to the message after a delay. - * - * @see Message::reply() - * - * @param string|MessageBuilder $message Reply message to send after delay. - * @param int $delay Delay after text will be sent in milliseconds. - * @param TimerInterface &$timer Delay timer passed by reference. - * - * @return PromiseInterface - */ - public function delayedReply($message, int $delay, &$timer = null): PromiseInterface - { - $deferred = new Deferred(); - - $timer = $this->discord->getLoop()->addTimer($delay / 1000, function () use ($message, $deferred) { - $this->reply($message)->then([$deferred, 'resolve'], [$deferred, 'reject']); - }); - - return $deferred->promise(); - } - - /** - * Deletes the message after a delay. - * - * @see Message::deleteMessage() - * - * @param int $delay Time to delay the delete by, in milliseconds. - * @param TimerInterface &$timer Delay timer passed by reference. - * - * @return PromiseInterface - */ - public function delayedDelete(int $delay, &$timer = null): PromiseInterface - { - $deferred = new Deferred(); - - $timer = $this->discord->getLoop()->addTimer($delay / 1000, function () use ($deferred) { - $this->delete()->then([$deferred, 'resolve'], [$deferred, 'reject']); - }); - - return $deferred->promise(); - } - - /** - * Reacts to the message. - * - * @link https://discord.com/developers/docs/resources/channel#create-reaction - * - * @param Emoji|string $emoticon The emoticon to react with. (custom: ':michael:251127796439449631') - * - * @throws NoPermissionsException Missing read_message_history permission. - * - * @return PromiseInterface - */ - public function react($emoticon): PromiseInterface - { - if ($emoticon instanceof Emoji) { - $emoticon = $emoticon->toReactionString(); - } - - if ($channel = $this->channel) { - $botperms = $channel->getBotPermissions(); - if ($botperms && ! $botperms->read_message_history) { - return reject(new NoPermissionsException("You do not have permission to read message history in channel {$channel->id}.")); - } - } - - return $this->http->put(Endpoint::bind(Endpoint::OWN_MESSAGE_REACTION, $this->channel_id, $this->id, urlencode($emoticon))); - } - - /** - * Deletes a reaction. - * - * @link https://discord.com/developers/docs/resources/channel#delete-own-reaction - * @link https://discord.com/developers/docs/resources/channel#delete-user-reaction - * - * @param int $type The type of deletion to perform. - * @param Emoji|string|null $emoticon The emoticon to delete (if not all). - * @param string|null $id The user reaction to delete (if not all). - * - * @throws \UnexpectedValueException Invalid reaction `$type`. - * @throws NoPermissionsException Missing manage_messages permission when deleting others reaction. - * - * @return PromiseInterface - */ - public function deleteReaction(int $type, $emoticon = null, ?string $id = null): PromiseInterface - { - if ($emoticon instanceof Emoji) { - $emoticon = $emoticon->toReactionString(); - } else { - $emoticon = urlencode($emoticon); - } - - switch ($type) { - case self::REACT_DELETE_ALL: - $url = Endpoint::bind(Endpoint::MESSAGE_REACTION_ALL, $this->channel_id, $this->id); - break; - case self::REACT_DELETE_ME: - $url = Endpoint::bind(Endpoint::OWN_MESSAGE_REACTION, $this->channel_id, $this->id, $emoticon); - break; - case self::REACT_DELETE_ID: - $url = Endpoint::bind(Endpoint::USER_MESSAGE_REACTION, $this->channel_id, $this->id, $emoticon, $id); - break; - case self::REACT_DELETE_EMOJI: - $url = Endpoint::bind(Endpoint::MESSAGE_REACTION_EMOJI, $this->channel_id, $this->id, $emoticon); - break; - default: - return reject(new \UnexpectedValueException('Invalid reaction type')); - } - - if (($type != self::REACT_DELETE_ME || $id != $this->discord->id) && $channel = $this->channel) { - $botperms = $channel->getBotPermissions(); - if ($botperms && ! $botperms->manage_messages) { - return reject(new NoPermissionsException("You do not have permission to delete reaction by others in channel {$channel->id}.")); - } - } - - return $this->http->delete($url); - } - - /** - * Edits the message. - * - * @link https://discord.com/developers/docs/resources/channel#edit-message - * - * @param MessageBuilder $message Contains the new contents of the message. Note that fields not specified in the builder will not be overwritten. - * - * @return PromiseInterface - */ - public function edit(MessageBuilder $message): PromiseInterface - { - return $this->_edit($message)->then(function ($response) { - $this->fill((array) $response); - - return $this; - }); - } - - private function _edit(MessageBuilder $message): PromiseInterface - { - if ($message->requiresMultipart()) { - $multipart = $message->toMultipart(); - - return $this->http->patch(Endpoint::bind(Endpoint::CHANNEL_MESSAGE, $this->channel_id, $this->id), (string) $multipart, $multipart->getHeaders()); - } - - return $this->http->patch(Endpoint::bind(Endpoint::CHANNEL_MESSAGE, $this->channel_id, $this->id), $message); - } - - /** - * Deletes the message from the channel. - * - * @link https://discord.com/developers/docs/resources/channel#delete-message - * - * @return PromiseInterface - * - * @throws \RuntimeException This type of message cannot be deleted. - * @throws NoPermissionsException Missing manage_messages permission when deleting others message. - */ - public function delete(): PromiseInterface - { - if (! $this->isDeletable()) { - return reject(new \RuntimeException("Cannot delete this type of message: {$this->type}", 50021)); - } - - if ($this->user_id != $this->discord->id && $channel = $this->channel) { - $botperms = $channel->getBotPermissions(); - if ($botperms && ! $botperms->manage_messages) { - return reject(new NoPermissionsException("You do not have permission to delete message by others in channel {$channel->id}.")); - } - } - - return $this->http->delete(Endpoint::bind(Endpoint::CHANNEL_MESSAGE, $this->channel_id, $this->id)); - } - - /** - * Creates a reaction collector for the message. - * - * @param callable $filter The filter function. Returns true or false. - * @param int $options['time'] Time in milliseconds until the collector finishes or false. - * @param int $options['limit'] The amount of reactions allowed or false. - * - * @return PromiseInterface> - */ - public function createReactionCollector(callable $filter, array $options = []): PromiseInterface - { - $deferred = new Deferred(); - $reactions = new Collection([], null, null); - $timer = null; - - $options = array_merge([ - 'time' => false, - 'limit' => false, - ], $options); - - $eventHandler = function (MessageReaction $reaction) use (&$eventHandler, $filter, $options, &$reactions, &$deferred, &$timer) { - if ($reaction->message_id != $this->id) { - return; - } - - $filterResult = call_user_func_array($filter, [$reaction]); - - if ($filterResult) { - $reactions->pushItem($reaction); - - if ($options['limit'] !== false && count($reactions) >= $options['limit']) { - $this->discord->removeListener(Event::MESSAGE_REACTION_ADD, $eventHandler); - $deferred->resolve($reactions); - - if (null !== $timer) { - $this->discord->getLoop()->cancelTimer($timer); - } - } - } - }; - - $this->discord->on(Event::MESSAGE_REACTION_ADD, $eventHandler); - - if ($options['time'] !== false) { - $timer = $this->discord->getLoop()->addTimer($options['time'] / 1000, function () use (&$eventHandler, &$reactions, &$deferred) { - $this->discord->removeListener(Event::MESSAGE_REACTION_ADD, $eventHandler); - $deferred->resolve($reactions); - }); - } - - return $deferred->promise(); - } - - /** - * Adds an embed to the message. - * - * @param Embed $embed - * - * @return PromiseInterface - */ - public function addEmbed(Embed $embed): PromiseInterface - { - return $this->edit(MessageBuilder::new() - ->addEmbed($embed)); - } - - /** - * Whether this type of message can be deleted (not due to permission). - * - * @return bool true if this message can be deleted. - */ - public function isDeletable(): bool - { - return ! in_array($this->type, [ - self::TYPE_RECIPIENT_ADD, - self::TYPE_RECIPIENT_REMOVE, - self::TYPE_CALL, - self::TYPE_CHANNEL_NAME_CHANGE, - self::TYPE_CHANNEL_ICON_CHANGE, - self::TYPE_GUILD_DISCOVERY_DISQUALIFIED, - self::TYPE_GUILD_DISCOVERY_REQUALIFIED, - self::TYPE_GUILD_DISCOVERY_GRACE_PERIOD_INITIAL_WARNING, - self::TYPE_GUILD_DISCOVERY_GRACE_PERIOD_FINAL_WARNING, - self::TYPE_THREAD_STARTER_MESSAGE, - self::TYPE_GUILD_APPLICATION_PREMIUM_SUBSCRIPTION, - ]); - } - - /** - * {@inheritDoc} - * - * @link https://discord.com/developers/docs/resources/channel#edit-message-jsonform-params - */ - public function getUpdatableAttributes(): array - { - return [ - 'content' => $this->content, - 'flags' => $this->flags, - ]; - } - - /** - * {@inheritDoc} - */ - public function getRepositoryAttributes(): array - { - return [ - 'guild_id' => $this->guild_id, - 'channel_id' => $this->channel_id, - 'message_id' => $this->id, - ]; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Overwrite.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Overwrite.php deleted file mode 100644 index daf1398..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Overwrite.php +++ /dev/null @@ -1,113 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Channel; - -use Discord\Parts\Part; -use Discord\Parts\Permissions\ChannelPermission; - -/** - * Channel Overwrite Class. - * - * @link https://discord.com/developers/docs/resources/channel#overwrite-object - * - * @since 3.1.1 - * - * @property string $id The unique identifier of the user/role that the overwrite applies to. - * @property int $type The type of part that the overwrite applies to. - * @property ChannelPermission $allow The allow permissions. - * @property ChannelPermission $deny The deny permissions. - * - * @property string $channel_id The unique identifier of the channel that the overwrite belongs to. - */ -class Overwrite extends Part -{ - public const TYPE_ROLE = 0; - public const TYPE_MEMBER = 1; - - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'id', - 'type', - 'allow', - 'deny', - - // @internal - 'channel_id', - ]; - - /** - * Sets the allow attribute of the role. - * - * @param ChannelPermission|int $allow - */ - protected function setAllowAttribute($allow): void - { - if (! ($allow instanceof ChannelPermission)) { - $allow = $this->createOf(ChannelPermission::class, ['bitwise' => $allow]); - } - - $this->attributes['allow'] = $allow; - } - - /** - * Sets the deny attribute of the role. - * - * @param ChannelPermission|int $deny - */ - protected function setDenyAttribute($deny): void - { - if (! ($deny instanceof ChannelPermission)) { - $deny = $this->createOf(ChannelPermission::class, ['bitwise' => $deny]); - } - - $this->attributes['deny'] = $deny; - } - - /** - * {@inheritDoc} - * - * @see Channel::getUpdatableAttributes() - */ - public function getUpdatableAttributes(): array - { - return [ - 'id' => $this->id, - 'type' => $this->type, - 'allow' => $this->allow->bitwise, - 'deny' => $this->deny->bitwise, - ]; - } - - /** - * {@inheritDoc} - */ - public function getRepositoryAttributes(): array - { - return [ - 'overwrite_id' => $this->id, - ]; - } - - /** - * {@inheritDoc} - */ - public function getRawAttributes(): array - { - $attributes = $this->attributes; - $attributes['allow'] = $this->attributes['allow']->bitwise; - $attributes['deny'] = $this->attributes['deny']->bitwise; - - return $attributes; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Poll.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Poll.php deleted file mode 100644 index 6420e52..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Poll.php +++ /dev/null @@ -1,140 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Channel; - -use Carbon\Carbon; -use Discord\Helpers\Collection; -use Discord\Http\Endpoint; -use Discord\Parts\Channel\Poll\PollAnswer; -use Discord\Parts\Channel\Poll\PollMedia; -use Discord\Parts\Channel\Poll\PollResults; -use Discord\Parts\Part; -use Discord\Repository\Channel\PollAnswerRepository; -use React\Promise\PromiseInterface; - -/** - * A message poll. - * - * @link https://discord.com/developers/docs/resources/poll#poll-object - * - * @since 10.0.0 - * - * @property PollMedia $question The question of the poll. Only text is supported. - * @property PollAnswerRepository $answers Each of the answers available in the poll. - * @property Carbon $expiry The time when the poll ends. - * @property bool $allow_multiselect Whether a user can select multiple answers. - * @property int $layout_type The layout type of the poll. - * @property PollResults|null $results The results of the poll. - * - * @property string $channel_id The ID of the channel the poll is in. - * @property string $message_id The ID of the message the poll is in. - */ -class Poll extends Part -{ - /** - * {@inheritdoc} - */ - protected $fillable = [ - 'question', - 'expiry', - 'allow_multiselect', - 'layout_type', - 'results', - - // events - 'channel_id', - 'message_id', - - // repositories - 'answers', - ]; - - /** - * {@inheritdoc} - */ - protected $repositories = [ - 'answers' => PollAnswerRepository::class, - ]; - - /** - * Sets the answers attribute. - * - * @param array $answers - */ - protected function setAnswersAttribute(array $answers): void - { - foreach ($answers as $answer) { - /** @var ?PollAnswer */ - if ($part = $this->answers->offsetGet($answer->answer_id)) { - $part->fill($answer); - } else { - /** @var PollAnswer */ - $part = $this->answers->create($answer); - } - - $this->answers->pushItem($part); - } - - $this->attributes['answers'] = $answers; - } - - /** - * Returns the question attribute. - * - * @return PollMedia - */ - protected function getQuestionAttribute(): PollMedia - { - return $this->factory->part(PollMedia::class, (array) $this->attributes['question'], true); - } - - /** - * Return the expiry attribute. - * - * @return Carbon - * - * @throws \Exception - */ - protected function getExpiryAttribute(): Carbon - { - return Carbon::parse($this->attributes['expiry']); - } - - /** - * Returns the results attribute. - * - * @return PollResults|null - */ - protected function getResultsAttribute(): ?PollResults - { - if (! isset($this->attributes['results'])) { - return null; - } - - return $this->factory->part(PollResults::class, (array) $this->attributes['results'], true); - } - - /** - * Expire the poll. - * - * @link https://discord.com/developers/docs/resources/poll#end-poll - * - * @return PromiseInterface - */ - public function expire(): PromiseInterface - { - return $this->http->post(Endpoint::bind(Endpoint::MESSAGE_POLL_EXPIRE, $this->channel_id, $this->message_id)) - ->then(function ($response) { - return $this->factory->create(Message::class, (array) $response, true); - }); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Poll/Poll.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Poll/Poll.php deleted file mode 100644 index 2523f26..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Poll/Poll.php +++ /dev/null @@ -1,173 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Channel\Poll; - -use Discord\Parts\Part; - -use function Discord\poly_strlen; - -/** - * A poll that can be attached to a message. - * - * @link https://discord.com/developers/docs/resources/poll#poll-create-request-object-poll-create-request-object-structure - * - * @since 10.0.0 - * - * @property PollMedia $question The question of the poll. Only text is supported. - * @property PollAnswer[] $answers Each of the answers available in the poll, up to 10. - * @property int $duration Number of hours the poll should be open for, up to 7 days. - * @property bool $allow_multiselect Whether a user can select multiple answers. - * @property int|null $layout_type? The layout type of the poll. Defaults to... DEFAULT! - */ -class Poll extends Part -{ - public const LAYOUT_DEFAULT = 1; - - /** - * {@inheritdoc} - */ - protected $fillable = [ - 'question', - 'answers', - 'duration', - 'allow_multiselect', - 'layout_type', - ]; - - /** - * Set the question attribute. - * - * @param PollMedia|string $question The question of the poll. - * - * @throws \LengthException - * - * @return $this - */ - public function setQuestion(PollMedia|string $question): self - { - $question = $question instanceof PollMedia - ? $question - : new PollMedia($this->discord, [ - 'text' => $question, - ]); - - if (poly_strlen($question->text) > 300) { - throw new \LengthException('Question must be maximum 300 characters.'); - } - - $this->attributes['question'] = $question; - - return $this; - } - - /** - * Set the answers attribute. - * - * @param PollAnswer[] $answers Each of the answers available in the poll. - * - * @return $this - */ - public function setAnswers(array $answers): self - { - foreach ($answers as $answer) { - $this->addAnswer($answer); - } - - return $this; - } - - /** - * Add an answer to the poll. - */ - public function addAnswer(PollAnswer|PollMedia|array|string $answer): self - { - if (count($this->answers ?? []) >= 10) { - throw new \OutOfRangeException('Polls can only have up to 10 answers.'); - } - - if ($answer instanceof PollAnswer) { - $this->attributes['answers'][] = $answer; - - return $this; - } - - if (! $answer instanceof PollMedia) { - $text = is_string($answer) - ? $answer - : $answer['text']; - - $emoji = $answer['emoji'] ?? null; - - $answer = (new PollMedia($this->discord)) - ->setText($text) - ->setEmoji($emoji); - } - - if (poly_strlen($answer->text) > 55) { - throw new \LengthException('Answer must be maximum 55 characters.'); - } - - $this->attributes['answers'][] = new PollAnswer($this->discord, [ - 'poll_media' => $answer, - ]); - - return $this; - } - - /** - * Set the duration of the poll. - * - * @param int $duration Number of hours the poll should be open for, up to 32 days. Defaults to 24 - * - * @throws \OutOfRangeException - * - * @return $this - */ - public function setDuration(int $duration): self - { - if ($duration < 1 || $duration > 32 * 24) { - throw new \OutOfRangeException('Duration must be between 1 and 32 days.'); - } - - $this->attributes['duration'] = $duration; - - return $this; - } - - /** - * Determine whether a user can select multiple answers. - * - * @param bool $multiselect Whether a user can select multiple answers. - * - * @return $this - */ - public function setAllowMultiselect(bool $multiselect): self - { - $this->attributes['allow_multiselect'] = $multiselect; - - return $this; - } - - /** - * Set the layout type of the poll. - * - * @param int $type The layout type of the poll. - * - * @return $this - */ - protected function setLayoutType(int $type): self - { - $this->attributes['layout_type'] = $type; - - return $this; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Poll/PollAnswer.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Poll/PollAnswer.php deleted file mode 100644 index 2bfc021..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Poll/PollAnswer.php +++ /dev/null @@ -1,180 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Channel\Poll; - -use Discord\Helpers\Collection; -use Discord\Http\Endpoint; -use Discord\Parts\Channel\Channel; -use Discord\Parts\Channel\Message; -use Discord\Parts\Guild\Guild; -use Discord\Parts\Part; -use Discord\Parts\Thread\Thread; -use Discord\Parts\User\User; -use React\Promise\PromiseInterface; -use Symfony\Component\OptionsResolver\OptionsResolver; - -use function Discord\normalizePartId; - -/** - * An answer to a poll. - * - * @link https://discord.com/developers/docs/resources/poll#poll-answer-object - * - * @since 10.0.0 - * - * @property int $answer_id The ID of the answer. Only sent as part of responses from Discord's API/Gateway. - * @property PollMedia $poll_media The data of the answer - * - * @property string $user_id The user ID that voted for the answer. - * @property-read User $user The user that voted for the answer. - * @property string $channel_id The channel ID that the poll belongs to. - * @property-read Channel|Thread $channel The channel that the poll belongs to. - * @property string $message_id The message ID that the poll belongs to. - * @property Message|null $message The message the poll belongs to. - * @property string|null $guild_id The guild ID of the guild that owns the channel the poll message is in. - * @property-read Guild|null $guild The guild that owns the channel the poll belongs in. - */ -class PollAnswer extends Part -{ - /** - * {@inheritdoc} - */ - protected $fillable = [ - 'answer_id', - 'poll_media', - - // events - 'user_id', - 'channel_id', - 'message_id', - 'guild_id', - ]; - - /** - * Gets the user attribute. - * - * @return User - */ - protected function getUserAttribute(): User - { - return $this->discord->users->get('id', $this->user_id); - } - - /** - * Gets the channel attribute. - * - * @return Channel|Thread - */ - protected function getChannelAttribute(): Part - { - if ($guild = $this->guild) { - $channels = $guild->channels; - - if ($channel = $channels->get('id', $this->channel_id)) { - return $channel; - } - - foreach ($channels as $parent) { - if ($thread = $parent->threads->get('id', $this->channel_id)) { - return $thread; - } - } - } - - // @todo potentially slow - if ($channel = $this->discord->getChannel($this->channel_id)) { - return $channel; - } - - return $this->factory->part(Channel::class, [ - 'id' => $this->channel_id, - 'type' => Channel::TYPE_DM, - ], true); - } - - /** - * Gets the message attribute. - * - * @return Message|null - */ - protected function getMessageAttribute(): ?Message - { - if ($channel = $this->channel) { - return $channel->messages->get('id', $this->message_id); - } - - return $this->attributes['message'] ?? null; - } - - /** - * Returns the guild that owns the channel the message was sent in. - * - * @return Guild|null - */ - protected function getGuildAttribute(): ?Guild - { - if (! isset($this->guild_id)) { - return null; - } - - return $this->discord->guilds->get('id', $this->guild_id); - } - - /** - * Returns the users that voted for the answer. - * - * @param array $options An array of options. All fields are optional. - * @param string|null $options['after'] Get users after this user ID. - * @param int|null $options['limit'] Max number of users to return (1-100). - * - * @link https://discord.com/developers/docs/resources/poll#get-answer-voters - * - * @throws \OutOfRangeException - * - * @return PromiseInterface - */ - public function getVoters(array $options = []): PromiseInterface - { - $query = Endpoint::bind(Endpoint::MESSAGE_POLL_ANSWER, $this->channel_id, $this->message_id, $this->answer_id); - - $resolver = new OptionsResolver(); - $resolver - ->setDefined(['after', 'limit']) - ->setAllowedTypes('after', ['int', 'string', User::class]) - ->setAllowedTypes('limit', 'int') - ->setNormalizer('after', normalizePartId()) - ->setAllowedValues('limit', fn ($value) => ($value >= 1 && $value <= 100)); - - $options = $resolver->resolve($options); - - foreach ($options as $key => $value) { - $query->addQuery($key, $value); - } - - return $this->http->get($query) - ->then(function ($response) { - $users = Collection::for(User::class); - - foreach ($response->users ?? [] as $user) { - if (! $part = $this->discord->users->get('id', $user->id)) { - $part = $this->discord->users->create($user, true); - - $this->discord->users->pushItem($part); - } - - $users->pushItem($part); - } - - return $users; - }); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Poll/PollAnswerCount.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Poll/PollAnswerCount.php deleted file mode 100644 index 18e1558..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Poll/PollAnswerCount.php +++ /dev/null @@ -1,37 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Channel\Poll; - -use Discord\Parts\Part; - -/** - * The number of votes for an answer in a poll. - * - * @link https://discord.com/developers/docs/resources/poll#poll-results-object-poll-answer-count-object-structure - * - * @since 10.0.0 - * - * @property int $id The answer_id - * @property int $count The number of votes for this answer - * @property bool $me_voted Whether the current user voted for this answer - */ -class PollAnswerCount extends Part -{ - /** - * {@inheritdoc} - */ - protected $fillable = [ - 'id', - 'count', - 'me_voted', - ]; -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Poll/PollMedia.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Poll/PollMedia.php deleted file mode 100644 index fa8e596..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Poll/PollMedia.php +++ /dev/null @@ -1,96 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Channel\Poll; - -use Discord\Parts\Part; -use Discord\Parts\Guild\Emoji; - -/** - * The poll media object is a common object that backs both the question and answers. - * - * @link https://discord.com/developers/docs/resources/poll#poll-media-object - * - * @since 10.0.0 - * - * @property string|null $text The text of the field. Text should always be non-null for both questions and answers, but please do not depend on that in the future. The maximum length of text is 300 for the question, and 55 for any answer. - * @property Emoji|string|null $emoji The emoji of the field. When creating a poll answer with an emoji, one only needs to send either the id (custom emoji) or name (default emoji) as the only field. - */ -class PollMedia extends Part -{ - /** - * {@inheritdoc} - */ - protected $fillable = [ - 'text', - 'emoji', - ]; - - /** - * Sets the text of the poll media. - * - * @param string|null $text Text of the button. Maximum 300 characters for the question, and 55 for any answer. - * - * @throws \LengthException - * - * @return $this - */ - public function setText(?string $text): self - { - $this->text = $text; - - return $this; - } - - /** - * Sets the emoji of the poll media. - * - * @param Emoji|string|null $emoji Emoji to set. `null` to clear. - * - * @return $this - */ - public function setEmoji($emoji): self - { - $this->emoji = (function () use ($emoji) { - if ($emoji === null) { - return null; - } - - if ($emoji instanceof Emoji) { - return [ - 'id' => $emoji->id, - 'name' => $emoji->name, - 'animated' => $emoji->animated, - ]; - } - - $parts = explode(':', $emoji, 3); - - if (count($parts) < 3) { - return [ - 'id' => null, - 'name' => $emoji, - 'animated' => false, - ]; - } - - [$animated, $name, $id] = $parts; - - return [ - 'id' => $id, - 'name' => $name, - 'animated' => $animated == 'a', - ]; - })(); - - return $this; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Poll/PollResults.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Poll/PollResults.php deleted file mode 100644 index ed6be76..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Poll/PollResults.php +++ /dev/null @@ -1,45 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Channel\Poll; - -use Discord\Parts\Part; - -/** - * The current results of a poll. - * - * @link https://discord.com/developers/docs/resources/poll#poll-results-object - * - * @since 10.0.0 - * - * @property boolean $is_finalized Whether the votes have been precisely counted - * @property PollAnswerCount[] $answer_counts The counts for each answer - */ -class PollResults extends Part -{ - /** - * {@inheritdoc} - */ - protected $fillable = [ - 'is_finalized', - 'answer_counts', - ]; - - /** - * Returns the answer counts attribute. - * - * @return PollAnswerCount - */ - protected function getAnswerCountsAttribute(): PollAnswerCount - { - return $this->factory->part(PollAnswerCount::class, (array) $this->attributes['answer_counts'], true); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Reaction.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Reaction.php deleted file mode 100644 index e1a13ff..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Reaction.php +++ /dev/null @@ -1,295 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Channel; - -use Discord\Helpers\Collection; -use Discord\Http\Endpoint; -use Discord\Parts\Guild\Emoji; -use Discord\Parts\Guild\Guild; -use Discord\Parts\Part; -use Discord\Parts\Thread\Thread; -use Discord\Parts\User\User; -use React\Promise\PromiseInterface; -use stdClass; -use Symfony\Component\OptionsResolver\OptionsResolver; - -use function Discord\normalizePartId; -use function React\Promise\resolve; - -/** - * Represents a reaction emoji to a message by members(s). - * - * @link https://discord.com/developers/docs/resources/channel#reaction-object - * - * @since 5.0.0 - * - * @property int $count Number of reactions. - * @property bool $me Whether the current bot has reacted. - * @property Emoji $emoji The emoji that was reacted with. - * - * @property string $channel_id The channel ID that the message belongs in. - * @property-read Channel|Thread $channel The channel that the message belongs to. - * @property string $message_id The message ID the reaction is for. - * @property Message|null $message The message the reaction is for. - * @property string|null $guild_id The guild ID of the guild that owns the channel the message belongs in. - * @property-read Guild|null $guild The guild that owns the channel the message belongs in. - * - * @property-read string $id The identifier of the reaction. - */ -class Reaction extends Part -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'id', // internal - 'count', - 'me', - 'emoji', - - // events only - 'channel_id', - 'message_id', - 'guild_id', - ]; - - /** - * {@inheritDoc} - */ - public function isPartial(): bool - { - return $this->message === null; - } - - /** - * {@inheritDoc} - */ - public function fetch(): PromiseInterface - { - return $this->http->get(Endpoint::bind(Endpoint::CHANNEL_MESSAGE, $this->channel_id, $this->message_id)) - ->then(function ($message) { - $this->message = $this->factory->part(Message::class, (array) $message + ['guild_id' => $this->guild_id], true); - - return $this; - }); - } - - /** - * Sets the emoji identifier. - * - * @internal Used for ReactionRepository::fetch() - * - * @param string $value name:id or the character of standard emoji - * - * - * @since 10.0.0 - */ - protected function setIdAttribute(string $value): void - { - if (! isset($this->attributes['emoji'])) { - $this->attributes['emoji'] = new stdClass; - } - - $colonDelimiter = explode(':', $value); - $delimitedCount = count($colonDelimiter); - $emojiId = $emojiAnimated = null; - - if ($delimitedCount == 2) { // Custom emoji name:id - [$emojiName, $emojiId] = $colonDelimiter; - } elseif ($delimitedCount == 3) { // Custom animated emoji a:name:id - [$emojiAnimated, $emojiName, $emojiId] = $colonDelimiter; - } else { // Standard emoji (or just have abnormal colon count) - $emojiName = $value; - } - - $this->attributes['emoji']->id = $emojiId; - $this->attributes['emoji']->name = $emojiName; - if ($emojiAnimated == 'a') { - $this->attributes['emoji']->animated = true; - } - } - - /** - * Gets the emoji identifier. - * - * @return string - * - * @since 10.0.0 Changed to only return custom emoji id or unicode emoji name. - */ - protected function getIdAttribute(): string - { - return $this->emoji->id ?? $this->emoji->name; - } - - /** - * Gets the users that have used the reaction. - * - * @param array $options An array of options. All fields are optional. - * @param string|null $options['after'] Get users after this user ID. - * @param int|null $options['limit'] Max number of users to return (1-100). - * - * @link https://discord.com/developers/docs/resources/channel#get-reactions - * - * @return PromiseInterface - */ - public function getUsers(array $options = []): PromiseInterface - { - $query = Endpoint::bind(Endpoint::MESSAGE_REACTION_EMOJI, $this->channel_id, $this->message_id, urlencode($this->emoji->id === null ? $this->emoji->name : "{$this->emoji->name}:{$this->emoji->id}")); - - $resolver = new OptionsResolver(); - $resolver - ->setDefined(['after', 'limit']) - ->setAllowedTypes('after', ['int', 'string', User::class]) - ->setAllowedTypes('limit', 'int') - ->setNormalizer('after', normalizePartId()) - ->setAllowedValues('limit', fn ($value) => ($value >= 1 && $value <= 100)); - - $options = $resolver->resolve($options); - - foreach ($options as $key => $value) { - $query->addQuery($key, $value); - } - - return $this->http->get($query) - ->then(function ($response) { - $users = Collection::for(User::class); - - foreach ((array) $response as $user) { - if (! $part = $this->discord->users->get('id', $user->id)) { - $part = $this->discord->users->create($user, true); - $this->discord->users->pushItem($part); - } - - $users->pushItem($part); - } - - return $users; - }); - } - - /** - * Gets all the users that have used this reaction. - * Wrapper of the lower-level getUsers() function. - * - * @see Message::getUsers() - * - * @return PromiseInterface - */ - public function getAllUsers(): PromiseInterface - { - $response = Collection::for(User::class); - $getUsers = function ($after = null) use (&$getUsers, $response) { - $options = ['limit' => 100]; - if ($after != null) { - $options['after'] = $after; - } - - return $this->getUsers($options)->then(function (Collection $users) use ($response, &$getUsers) { - $last = null; - foreach ($users as $user) { - $response->pushItem($user); - $last = $user; - } - - if ($users->count() < 100) { - return resolve($response); - } - - return $getUsers($last); - }); - }; - - return $getUsers(); - } - - /** - * Gets the partial emoji attribute. - * - * @return Emoji|null - */ - protected function getEmojiAttribute(): ?Emoji - { - if (! isset($this->attributes['emoji'])) { - return null; - } - - return $this->factory->part(Emoji::class, (array) $this->attributes['emoji'] + ['guild_id' => $this->guild_id], true); - } - - /** - * Gets the message attribute. - * - * @return Message|null - */ - protected function getMessageAttribute(): ?Message - { - if ($channel = $this->channel) { - return $channel->messages->get('id', $this->message_id); - } - - return $this->attributes['message'] ?? null; - } - - /** - * Gets the channel attribute. - * - * @return Channel|Thread - */ - protected function getChannelAttribute(): Part - { - if ($guild = $this->guild) { - $channels = $guild->channels; - if ($channel = $channels->get('id', $this->channel_id)) { - return $channel; - } - foreach ($channels as $parent) { - if ($thread = $parent->threads->get('id', $this->channel_id)) { - return $thread; - } - } - } - - // @todo potentially slow - if ($channel = $this->discord->getChannel($this->channel_id)) { - return $channel; - } - - return $this->factory->part(Channel::class, [ - 'id' => $this->channel_id, - 'type' => Channel::TYPE_DM, - ], true); - } - - /** - * Returns the guild that owns the channel the message was sent in. - * - * @return Guild|null - */ - protected function getGuildAttribute(): ?Guild - { - if (! isset($this->guild_id)) { - return null; - } - - return $this->discord->guilds->get('id', $this->guild_id); - } - - /** - * {@inheritDoc} - */ - public function getRepositoryAttributes(): array - { - return [ - 'emoji' => isset($this->attributes['emoji']->id) ? $this->attributes['emoji']->name.':'.$this->attributes['emoji']->id : urlencode($this->attributes['emoji']->name), - ]; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/StageInstance.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/StageInstance.php deleted file mode 100644 index 981179b..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/StageInstance.php +++ /dev/null @@ -1,125 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Channel; - -use Discord\Parts\Guild\Guild; -use Discord\Parts\Part; - -/** - * A Stage Instance holds information about a live stage. - * - * @link https://discord.com/developers/docs/resources/stage-instance#stage-instance-resource - * - * @since 7.0.0 - * - * @property string $id The unique identifier of the Stage Instance. - * @property string $guild_id The unique identifier of the guild that the stage instance associated to. - * @property-read Guild|null $guild The guild that the stage instance associated to. - * @property string $channel_id The id of the associated Stage channel. - * @property-read Channel|null $channel The channel that the stage instance associated to. - * @property string $topic The topic of the Stage instance (1-120 characters). - * @property int $privacy_level The privacy level of the Stage instance. - * @property-write bool|null $send_start_notification Notify @everyone that a Stage instance has started. - * @property ?string $guild_scheduled_event_id The id of the scheduled event. - */ -class StageInstance extends Part -{ - public const PRIVACY_LEVEL_GROUP_ONLY = 2; - - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'id', - 'guild_id', - 'channel_id', - 'topic', - 'privacy_level', - 'send_start_notification', - 'discoverable_disabled', // deprecated - 'guild_scheduled_event_id', - ]; - - /** - * Returns the guild attribute. - * - * @return Guild|null The guild attribute. - */ - protected function getGuildAttribute(): ?Guild - { - return $this->discord->guilds->get('id', $this->guild_id); - } - - /** - * Returns the channel attribute. - * - * @return Channel|null The Stage channel. - */ - protected function getChannelAttribute(): ?Channel - { - if ($guild = $this->guild) { - if ($channel = $guild->channels->get('id', $this->channel_id)) { - return $channel; - } - } - - if ($channel = $this->discord->getChannel($this->channel_id)) { - return $channel; - } - - return null; - } - - /** - * {@inheritDoc} - * - * @link https://discord.com/developers/docs/resources/stage-instance#create-stage-instance-json-params - */ - public function getCreatableAttributes(): array - { - $attr = [ - 'channel_id' => $this->channel_id, - 'topic' => $this->topic, - ]; - - $attr += $this->makeOptionalAttributes([ - 'privacy_level' => $this->privacy_level, - 'send_start_notification' => $this->send_start_notification, - 'guild_scheduled_event_id' => $this->guild_scheduled_event_id, - ]); - - return $attr; - } - - /** - * {@inheritDoc} - * - * @link https://discord.com/developers/docs/resources/stage-instance#modify-stage-instance-json-params - */ - public function getUpdatableAttributes(): array - { - return $this->makeOptionalAttributes([ - 'topic' => $this->topic, - 'privacy_level' => $this->privacy_level, - ]); - } - - /** - * {@inheritDoc} - */ - public function getRepositoryAttributes(): array - { - return [ - 'channel_id' => $this->channel_id, - ]; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Webhook.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Webhook.php deleted file mode 100644 index 5ec937e..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Channel/Webhook.php +++ /dev/null @@ -1,276 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Channel; - -use Discord\Builders\MessageBuilder; -use Discord\Http\Endpoint; -use Discord\Http\Http; -use Discord\Parts\Guild\Guild; -use Discord\Parts\Part; -use Discord\Parts\User\User; -use Discord\Repository\Channel\WebhookMessageRepository; -use React\Promise\PromiseInterface; -use Symfony\Component\OptionsResolver\OptionsResolver; - -/** - * Webhooks are a low-effort way to post messages to channels in Discord. They - * do not require a bot user or authentication to use. - * - * @link https://discord.com/developers/docs/resources/webhook#webhook-resource - * - * @since 5.0.0 - * - * @property string $id The id of the webhook. - * @property int $type The type of webhook. - * @property ?string|null $guild_id The guild ID this webhook is for, if any. - * @property-read Guild|null $guild The guild this webhook is for, if any. - * @property ?string|null $channel_id The channel ID this webhook is for, if any. - * @property-read Channel|null $channel The channel this webhook is for, if any. - * @property User|null $user The user that created the webhook. - * @property ?string $name The name of the webhook. - * @property ?string $avatar The avatar of the webhook. - * @property string|null $token The token of the webhook. - * @property ?string $application_id The bot/OAuth2 application that created this webhook. - * @property object|null $source_guild The partial guild of the channel that this webhook is following (returned for Channel Follower Webhooks). - * @property object|null $source_channel The partial channel that this webhook is following (returned for Channel Follower Webhooks). - * @property string|null $url The url used for executing the webhook (returned by the webhooks OAuth2 flow). - * - * @property WebhookMessageRepository $messages - */ -class Webhook extends Part -{ - public const TYPE_INCOMING = 1; - public const TYPE_CHANNEL_FOLLOWER = 2; - public const TYPE_APPLICATION = 3; - - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'id', - 'type', - 'guild_id', - 'channel_id', - 'user', - 'name', - 'avatar', - 'token', - 'application_id', - 'source_guild', - 'source_channel', - 'url', - ]; - - /** - * {@inheritDoc} - */ - protected $repositories = [ - 'messages' => WebhookMessageRepository::class, - ]; - - /** - * Executes the webhook with an array of data. - * - * @link https://discord.com/developers/docs/resources/webhook#execute-webhook - * - * @param MessageBuilder|array $data - * @param array $queryparams Query string params to add to the request. - * - * @return PromiseInterface Message returned if wait parameter is set true. - */ - public function execute($data, array $queryparams = []): PromiseInterface - { - $endpoint = Endpoint::bind(Endpoint::WEBHOOK_EXECUTE, $this->id, $this->token); - - $resolver = new OptionsResolver(); - $resolver - ->setDefined(['wait', 'thread_id']) - ->setAllowedTypes('wait', 'bool') - ->setAllowedTypes('thread_id', ['string', 'int']); - - $options = $resolver->resolve($queryparams); - - foreach ($options as $query => $param) { - $endpoint->addQuery($query, $param); - } - - if ($data instanceof MessageBuilder && $data->requiresMultipart()) { - $multipart = $data->toMultipart(); - - $promise = $this->http->post($endpoint, (string) $multipart, $multipart->getHeaders()); - } else { - $promise = $this->http->post($endpoint, $data); - } - - if (! empty($queryparams['wait'])) { - return $promise->then(fn ($response) => $this->factory->part(Message::class, (array) $response + ['guild_id' => $this->guild_id], true)); - } - - return $promise; - } - - /** - * Edits a previously-sent webhook message from the same token. - * - * @link https://discord.com/developers/docs/resources/webhook#edit-webhook-message - * - * @param string $message_id ID of the message to update. - * @param MessageBuilder $builder The new message. - * @param array $queryparams Query string params to add to the request. - * - * @return PromiseInterface - */ - public function updateMessage(string $message_id, MessageBuilder $builder, array $queryparams = []): PromiseInterface - { - $endpoint = Endpoint::bind(Endpoint::WEBHOOK_MESSAGE, $this->id, $this->token, $message_id); - - $resolver = new OptionsResolver(); - $resolver - ->setDefined('thread_id') - ->setAllowedTypes('thread_id', ['string', 'int']); - - $options = $resolver->resolve($queryparams); - - foreach ($options as $query => $param) { - $endpoint->addQuery($query, $param); - } - - if ($builder->requiresMultipart()) { - $multipart = $builder->toMultipart(); - - $promise = $this->http->patch($endpoint, (string) $multipart, $multipart->getHeaders()); - } else { - $promise = $this->http->patch($endpoint, $builder); - } - - return $promise->then(function ($response) { - $channel = $this->channel; - if (($channel && $message = $channel->messages->get('id', $response->id)) || $message = $this->messages->get('id', $response->id)) { - $message->fill((array) $response); - - return $message; - } - - return $this->factory->part(Message::class, (array) $response + ['guild_id' => $this->guild_id], true); - }); - } - - /** - * Gets the guild the webhook belongs to. - * - * @return Guild|null - */ - protected function getGuildAttribute(): ?Guild - { - return $this->discord->guilds->get('id', $this->guild_id); - } - - /** - * Gets the channel the webhook belongs to. - * - * @return Channel|null - */ - protected function getChannelAttribute(): ?Channel - { - if (! isset($this->attributes['channel_id'])) { - return null; - } - - if ($guild = $this->guild) { - if ($channel = $guild->channels->get('id', $this->channel_id)) { - return $channel; - } - } - - return $this->discord->getChannel($this->channel_id); - } - - /** - * Gets the user that created the webhook. - * - * @return User|null - */ - protected function getUserAttribute(): ?User - { - if (! isset($this->attributes['user'])) { - return null; - } - - if ($user = $this->discord->users->get('id', $this->attributes['user']->id)) { - return $user; - } - - return $this->factory->part(User::class, (array) $this->attributes['user'], true); - } - - /** - * Gets the webhook url attribute. - * - * @return string|null - */ - protected function getUrlAttribute(): ?string - { - if (isset($this->attributes['url'])) { - return $this->attributes['url']; - } - - if (isset($this->attributes['token'])) { - return Http::BASE_URL.'/'.Endpoint::bind(Endpoint::WEBHOOK_TOKEN, $this->id, $this->token); - } - - return null; - } - - /** - * {@inheritDoc} - * - * @link https://discord.com/developers/docs/resources/webhook#create-webhook-json-params - */ - public function getCreatableAttributes(): array - { - return [ - 'name' => $this->name, - ] + $this->makeOptionalAttributes([ - 'avatar' => $this->avatar, - ]); - } - - /** - * {@inheritDoc} - * - * @link https://discord.com/developers/docs/resources/webhook#modify-webhook-json-params - */ - public function getUpdatableAttributes(): array - { - return $this->makeOptionalAttributes([ - 'name' => $this->name, - 'channel_id' => $this->channel_id, - 'avatar' => $this->avatar, - ]); - } - - /** - * {@inheritDoc} - */ - public function getRepositoryAttributes(): array - { - $attr = [ - 'webhook_id' => $this->id, - ]; - - if (array_key_exists('token', $this->attributes)) { - $attr['webhook_token'] = $this->token; - } - - return $attr; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Embed/Author.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Embed/Author.php deleted file mode 100644 index 4604768..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Embed/Author.php +++ /dev/null @@ -1,39 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Embed; - -use Discord\Parts\Part; - -/** - * The author of an embed object. - * - * @link https://discord.com/developers/docs/resources/channel#embed-object-embed-author-structure - * - * @since 4.0.3 - * - * @property string $name The name of the author. - * @property string|null $url The URL to the author. - * @property string|null $icon_url The source of the author icon. Must be https. - * @property-read string|null $proxy_icon_url A proxied version of the icon url. - */ -class Author extends Part -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'name', - 'url', - 'icon_url', - 'proxy_icon_url', - ]; -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Embed/Embed.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Embed/Embed.php deleted file mode 100644 index 811635a..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Embed/Embed.php +++ /dev/null @@ -1,608 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Embed; - -use Carbon\Carbon; -use Discord\Helpers\Collection; -use Discord\Parts\Channel\Attachment; -use Discord\Parts\Part; -use function Discord\poly_strlen; - -/** - * An embed object to be sent with a message. - * - * @link https://discord.com/developers/docs/resources/channel#embed-object - * - * @since 4.0.3 - * - * @property string|null $title The title of the embed. - * @property-read string|null $type The type of the embed. - * @property string|null $description A description of the embed. - * @property string|null $url The URL of the embed. - * @property Carbon|null $timestamp A timestamp of the embed. - * @property int|null $color The color of the embed. - * @property Footer|null $footer The footer of the embed. - * @property Image|null $image The image of the embed. - * @property Image|null $thumbnail The thumbnail of the embed. - * @property-read Video|null $video The video of the embed. - * @property-read object|null $provider The provider of the embed. - * @property Author|null $author The author of the embed. - * @property Collection|Field[] $fields A collection of embed fields. - */ -class Embed extends Part -{ - public const TYPE_RICH = 'rich'; - public const TYPE_IMAGE = 'image'; - public const TYPE_VIDEO = 'video'; - public const TYPE_GIFV = 'gifv'; - public const TYPE_ARTICLE = 'article'; - public const TYPE_LINK = 'link'; - - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'title', - 'type', - 'description', - 'url', - 'timestamp', - 'color', - 'footer', - 'image', - 'thumbnail', - 'video', - 'provider', - 'author', - 'fields', - ]; - - /** - * Gets the timestamp attribute. - * - * @return Carbon|null The timestamp attribute. - * - * @throws \Exception - */ - protected function getTimestampAttribute(): ?Carbon - { - if (! isset($this->attributes['timestamp'])) { - return null; - } - - return Carbon::parse($this->attributes['timestamp']); - } - - /** - * Gets the footer attribute. - * - * @return Footer The footer attribute. - */ - protected function getFooterAttribute(): Footer - { - return $this->attributeHelper('footer', Footer::class); - } - - /** - * Gets the image attribute. - * - * @return Image The image attribute. - */ - protected function getImageAttribute(): Image - { - return $this->attributeHelper('image', Image::class); - } - - /** - * Gets the thumbnail attribute. - * - * @return Image The thumbnail attribute. - */ - protected function getThumbnailAttribute(): Image - { - return $this->attributeHelper('thumbnail', Image::class); - } - - /** - * Gets the video attribute. - * - * @return Video The video attribute. - */ - protected function getVideoAttribute(): Video - { - return $this->attributeHelper('video', Video::class); - } - - /** - * Gets the author attribute. - * - * @return Author The author attribute. - */ - protected function getAuthorAttribute(): Author - { - return $this->attributeHelper('author', Author::class); - } - - /** - * Gets the fields attribute. - * - * @return Collection|Field[] - */ - protected function getFieldsAttribute(): Collection - { - $fields = Collection::for(Field::class, null); - - if (! array_key_exists('fields', $this->attributes)) { - return $fields; - } - - foreach ($this->attributes['fields'] as $field) { - if (! ($field instanceof Field)) { - $field = $this->createOf(Field::class, $field); - } - - $fields->pushItem($field); - } - - return $fields; - } - - /** - * Sets the fields attribute. - * - * @param Field[] ...$fields - */ - protected function setFieldsAttribute($fields): void - { - $this->attributes['fields'] = []; - $this->addField(...$fields); - } - - /** - * Sets the color of this embed. - * - * @param mixed $color - * - * @throws \InvalidArgumentException - */ - protected function setColorAttribute($color): void - { - $this->attributes['color'] = $this->resolveColor($color); - } - - /** - * Sets the description of this embed. - * - * @param string $description Maximum length is 4096 characters. - * - * @throws \LengthException Embed text too long. - */ - protected function setDescriptionAttribute($description): void - { - if (poly_strlen($description) === 0) { - $this->attributes['description'] = null; - } elseif (poly_strlen($description) > 4096) { - throw new \LengthException('Embed description can not be longer than 4096 characters'); - } else { - if ($this->exceedsOverallLimit(poly_strlen($description))) { - throw new \LengthException('Embed text values collectively can not exceed than 6000 characters'); - } - - $this->attributes['description'] = $description; - } - } - - /** - * Sets the type of the embed. - * - * @deprecated 10.0.0 Type `rich` will always be used in API. - * - * @param string $type - * - * @throws \InvalidArgumentException Invalid embed type. - */ - protected function setTypeAttribute($type): void - { - if (! in_array($type, $this->getEmbedTypes())) { - throw new \InvalidArgumentException('Given type "'.$type.'" is not a valid embed type.'); - } - - $this->attributes['type'] = $type; - } - - /** - * Set the title of this embed. - * - * @param string $title Maximum length is 256 characters. - * - * @throws \LengthException Embed text too long. - * - * @return $this - */ - protected function setTitleAttribute(string $title): self - { - if (poly_strlen($title) == 0) { - $this->attributes['title'] = null; - } elseif (poly_strlen($title) > 256) { - throw new \LengthException('Embed title can not be longer than 256 characters'); - } elseif ($this->exceedsOverallLimit(poly_strlen($title))) { - throw new \LengthException('Embed text values collectively can not exceed than 6000 characters'); - } else { - $this->attributes['title'] = $title; - } - - return $this; - } - - /** - * Sets the title of the embed. - * - * @param string $title - * - * @return $this - */ - public function setTitle(string $title): self - { - $this->title = $title; - - return $this; - } - - /** - * Sets the type of the embed. - * - * @deprecated 10.0.0 Type `rich` will always be used in API. - * - * @param string $type - * - * @return $this - */ - public function setType(string $type): self - { - $this->type = $type; - - return $this; - } - - /** - * Sets the description of the embed. - * - * @param string $description - * - * @return $this - */ - public function setDescription(string $description): self - { - $this->description = $description; - - return $this; - } - - /** - * Sets the color of the embed. - * - * @param mixed $color - * - * @return $this - */ - public function setColor($color): self - { - $this->color = $color; - - return $this; - } - - /** - * Adds a field to the embed. - * - * @param Field|array $fields - * - * @throws \OverflowException Embed exceeds 25 fields. - * - * @return $this - */ - public function addField(...$fields): self - { - foreach ($fields as $field) { - if (count($this->fields) > 25) { - throw new \OverflowException('Embeds can not have more than 25 fields.'); - } - - if ($field instanceof Field) { - $field = $field->getRawAttributes(); - } - - $this->attributes['fields'][] = $field; - } - - return $this; - } - - /** - * Adds a field to the embed with values. - * - * @param string $name Maximum length is 256 characters. - * @param string $value Maximum length is 1024 characters. - * @param bool $inline Whether this field gets shown with other inline fields on one line. - * - * @throws \OverflowException - * - * @return $this - */ - public function addFieldValues(string $name, string $value, bool $inline = false): static - { - return $this->addField([ - 'name' => $name, - 'value' => $value, - 'inline' => $inline, - ]); - } - - /** - * Set the author of this embed. - * - * @param string $name Maximum length is 256 characters. - * @param string|Attachment|null $iconurl The URL to the icon, only http(s) and attachments URLs are allowed. - * @param string|null $url The URL to the author, only http(s) URLs are allowed. - * - * @throws \LengthException Embed text too long. - * @throws \InvalidArgumentException Invalid scheme provided. - * - * @return $this - */ - public function setAuthor(string $name, $iconurl = null, ?string $url = null): self - { - $length = poly_strlen($name); - if ($length === 0) { - $this->author = null; - } elseif ($length > 256) { - throw new \LengthException('Author name can not be longer than 256 characters.'); - } elseif ($this->exceedsOverallLimit($length)) { - throw new \LengthException('Embed text values collectively can not exceed than 6000 characters'); - } - - if ($iconurl instanceof Attachment) { - $iconurl = 'attachment://'.$iconurl->filename; - } - - $this->ensureValidUrl($iconurl); - - $this->ensureValidUrl($url, ['http', 'https']); - - $this->author = [ - 'name' => $name, - 'icon_url' => $iconurl, - 'url' => $url, - ]; - - return $this; - } - - /** - * Set the footer of this embed. - * - * @param string $text Maximum length is 2048 characters. - * @param string|Attachment|null $iconurl The URL to the icon, only http(s) and attachments URLs are allowed. - * - * @throws \LengthException Embed text too long. - * @throws \InvalidArgumentException Invalid scheme provided. - * - * @return $this - */ - public function setFooter(string $text, $iconurl = null): self - { - $length = poly_strlen($text); - if ($length === 0) { - $this->footer = null; - } elseif ($length > 2048) { - throw new \LengthException('Footer text can not be longer than 2048 characters.'); - } elseif ($this->exceedsOverallLimit($length)) { - throw new \LengthException('Embed text values collectively can not exceed than 6000 characters'); - } - - if ($iconurl instanceof Attachment) { - $iconurl = 'attachment://'.$iconurl->filename; - } - - $this->ensureValidUrl($iconurl); - - $this->footer = [ - 'text' => $text, - 'icon_url' => $iconurl, - ]; - - return $this; - } - - /** - * Set the image of this embed. - * - * @param string|Attachment|null $url The URL to the image, only http(s) and attachments URLs are allowed. - * - * @throws \InvalidArgumentException Invalid scheme provided. - * - * @return $this - */ - public function setImage($url): self - { - if ($url instanceof Attachment) { - $url = 'attachment://'.$url->filename; - } - - $this->ensureValidUrl($url); - - $this->image = ['url' => $url]; - - return $this; - } - - /** - * Set the thumbnail of this embed. - * - * @param string|Attachment|null $url The URL to the thumbnail, only http(s) and attachments URLs are allowed. - * - * @throws \InvalidArgumentException Invalid scheme provided. - * - * @return $this - */ - public function setThumbnail($url): self - { - if ($url instanceof Attachment) { - $url = 'attachment://'.$url->filename; - } - - $this->ensureValidUrl($url); - - $this->thumbnail = ['url' => $url]; - - return $this; - } - - /** - * Set the timestamp of this embed. - * - * @param int|null $timestamp - * - * @throws \Exception - * - * @return $this - */ - public function setTimestamp(?int $timestamp = null): self - { - $this->timestamp = Carbon::parse($timestamp)->format('c'); - - return $this; - } - - /** - * Set the URL of this embed. - * - * @param string $url - * - * @return $this - */ - public function setURL(string $url): self - { - $this->url = $url; - - return $this; - } - - /** - * Ensures a URL is valid for use in embeds. - * - * @param ?string $url - * @param array $allowed Allowed URL scheme - * - * @throws \DomainException - * - * @return void - */ - protected function ensureValidUrl(?string $url = null, array $allowed = ['http', 'https', 'attachment']): void - { - if (null !== $url && ! in_array(parse_url($url, PHP_URL_SCHEME), $allowed)) { - throw new \DomainException('URL scheme only supports '.implode(', ', $allowed)); - } - } - - /** - * Checks to see if adding a property has put us over Discord's 6000 - * characters overall limit. - * - * @param int $addition - * - * @return bool - */ - protected function exceedsOverallLimit(int $addition): bool - { - $total = ( - poly_strlen(($this->title ?? '')) + - poly_strlen(($this->description ?? '')) + - poly_strlen(($this->footer['text'] ?? '')) + - poly_strlen(($this->author['name'] ?? '')) + - $addition - ); - - foreach ($this->fields as $field) { - $total += poly_strlen($field['name']); - $total += poly_strlen($field['value']); - } - - return ($total > 6000); - } - - /** - * Resolves a color to an integer. - * - * @param array|int|string $color - * - * @throws \InvalidArgumentException `$color` cannot be resolved - * - * @return int - */ - protected static function resolveColor($color): int - { - if (is_int($color)) { - return $color; - } - - if (! is_array($color)) { - return hexdec((str_replace('#', '', (string) $color))); - } - - if (count($color) < 1) { - throw new \InvalidArgumentException('Color "'.var_export($color, true).'" is not resolvable'); - } - - return (($color[0] << 16) + (($color[1] ?? 0) << 8) + ($color[2] ?? 0)); - } - - /** - * Helps with getting embed attributes. - * - * @param string $key The attribute key. - * @param string $class The attribute class. - * - * @throws \Exception - * - * @return mixed - */ - private function attributeHelper($key, $class) - { - if (! array_key_exists($key, $this->attributes)) { - return $this->factory->create($class); - } - - if ($this->attributes[$key] instanceof $class) { - return $this->attributes[$key]; - } - - return $this->factory->create($class, $this->attributes[$key], true); - } - - /** - * Returns all possible embed types. - * - * @return array - */ - private static function getEmbedTypes(): array - { - return [ - self::TYPE_RICH, - self::TYPE_IMAGE, - self::TYPE_VIDEO, - self::TYPE_GIFV, - self::TYPE_ARTICLE, - self::TYPE_LINK, - ]; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Embed/Field.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Embed/Field.php deleted file mode 100644 index f671596..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Embed/Field.php +++ /dev/null @@ -1,47 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Embed; - -use Discord\Parts\Part; - -/** - * A field of an embed object. - * - * @link https://discord.com/developers/docs/resources/channel#embed-object-embed-field-structure - * - * @since 4.0.3 - * - * @property string $name The name of the field. - * @property string $value The value of the field. - * @property bool|null $inline Whether the field should be displayed in-line. - */ -class Field extends Part -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'name', - 'value', - 'inline', - ]; - - /** - * Gets the inline attribute. - * - * @return bool The inline attribute. - */ - protected function getInlineAttribute(): bool - { - return (bool) ($this->attributes['inline'] ?? false); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Embed/Footer.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Embed/Footer.php deleted file mode 100644 index b87ea9b..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Embed/Footer.php +++ /dev/null @@ -1,37 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Embed; - -use Discord\Parts\Part; - -/** - * The footer section of an embed. - * - * @link https://discord.com/developers/docs/resources/channel#embed-object-embed-footer-structure - * - * @since 4.0.3 - * - * @property string $text Footer text. - * @property string|null $icon_url URL of an icon for the footer. Must be https. - * @property-read string|null $proxy_icon_url Proxied version of the icon URL. - */ -class Footer extends Part -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'text', - 'icon_url', - 'proxy_icon_url', - ]; -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Embed/Image.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Embed/Image.php deleted file mode 100644 index 648c119..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Embed/Image.php +++ /dev/null @@ -1,40 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Embed; - -use Discord\Parts\Part; - -/** - * An image for an embed. - * - * @link https://discord.com/developers/docs/resources/channel#embed-object-embed-image-structure - * @link https://discord.com/developers/docs/resources/channel#embed-object-embed-thumbnail-structure - * - * @since 4.0.3 - * - * @property string $url The source of the image. Must be https. - * @property-read string|null $proxy_url A proxied version of the image. - * @property-read int|null $height The height of the image. - * @property-read int|null $width The width of the image. - */ -class Image extends Part -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'url', - 'proxy_url', - 'height', - 'width', - ]; -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Embed/Video.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Embed/Video.php deleted file mode 100644 index b6bd99a..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Embed/Video.php +++ /dev/null @@ -1,39 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Embed; - -use Discord\Parts\Part; - -/** - * A video for an embed. - * - * @link https://discord.com/developers/docs/resources/channel#embed-object-embed-video-structure - * - * @since 4.0.3 - * - * @property string|null $url The source of the video. - * @property-read string|null $proxy_url A proxied url of the video. - * @property-read int|null $height The height of the video. - * @property-read int|null $width The width of the video. - */ -class Video extends Part -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'url', - 'proxy_url', - 'height', - 'width', - ]; -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/AuditLog/AuditLog.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/AuditLog/AuditLog.php deleted file mode 100644 index 1cba91e..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/AuditLog/AuditLog.php +++ /dev/null @@ -1,225 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Guild\AuditLog; - -use Discord\Helpers\Collection; -use Discord\Parts\Channel\Webhook; -use Discord\Parts\Guild\AutoModeration\Rule; -use Discord\Parts\Guild\Guild; -use Discord\Parts\Guild\Integration; -use Discord\Parts\Guild\ScheduledEvent; -use Discord\Parts\Interactions\Command\Command; -use Discord\Parts\Part; -use Discord\Parts\Thread\Thread; -use Discord\Parts\User\User; -use ReflectionClass; - -/** - * Represents an audit log query from a guild. - * - * @link https://discord.com/developers/docs/resources/audit-log#audit-log-object - * - * @since 5.1.0 - * - * @property Collection|Command[] $application_commands List of application commands referenced in the audit log. - * @property Collection|Entry[] $audit_log_entries List of audit log entries. - * @property Collection|Rule[] $auto_moderation_rules List of auto moderation rules referenced in the audit log. - * @property Collection|ScheduledEvent[] $guild_scheduled_events List of guild scheduled events referenced in the audit log. - * @property Collection|Integration[] $integrations List of partial integration objects. - * @property Collection|Thread[] $threads List of threads referenced in the audit log. - * @property Collection|User[] $users List of users referenced in the audit log. - * @property Collection|Webhook[] $webhooks List of webhooks referenced in the audit log. - * - * @property string $guild_id - * @property-read Guild|null $guild - */ -class AuditLog extends Part -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'application_commands', - 'webhooks', - 'auto_moderation_rules', - 'guild_scheduled_events', - 'users', - 'audit_log_entries', - 'integrations', - 'threads', - - // @internal - 'guild_id', - ]; - - /** - * Returns the guild the audit log belongs to. - * - * @return Guild|null - */ - protected function getGuildAttribute(): ?Guild - { - return $this->discord->guilds->get('id', $this->guild_id); - } - - /** - * Returns a collection of application commands found in the audit log. - * - * @return Collection|Command[] - */ - protected function getApplicationCommandsAttribute(): Collection - { - $collection = Collection::for(Command::class); - - foreach ($this->attributes['application_commands'] ?? [] as $application_commands) { - $collection->pushItem($this->factory->part(Command::class, (array) $application_commands, true)); - } - - return $collection; - } - - /** - * Returns a collection of audit log entries. - * - * @return Collection|Entry[] - */ - protected function getAuditLogEntriesAttribute(): Collection - { - $collection = Collection::for(Entry::class); - - foreach ($this->attributes['audit_log_entries'] ?? [] as $entry) { - $collection->pushItem($this->createOf(Entry::class, $entry)); - } - - return $collection; - } - - /** - * Returns a collection of auto moderation rules found in the audit log. - * - * @return Collection|Rule[] - */ - protected function getAutoModerationRulesAttribute(): Collection - { - $collection = Collection::for(Rule::class); - - foreach ($this->attributes['auto_moderation_rules'] ?? [] as $rule) { - $collection->pushItem($this->factory->part(Rule::class, (array) $rule, true)); - } - - return $collection; - } - - /** - * Returns a collection of guild scheduled events found in the audit log. - * - * @return Collection|ScheduledEvent[] - */ - protected function getGuildScheduledEventsAttribute(): Collection - { - $collection = Collection::for(ScheduledEvent::class); - - foreach ($this->attributes['guild_scheduled_events'] ?? [] as $scheduled_event) { - $collection->pushItem($this->factory->part(ScheduledEvent::class, (array) $scheduled_event, true)); - } - - return $collection; - } - - /** - * Returns a collection of partial integrations found in the audit log. - * - * @link https://discord.com/developers/docs/resources/audit-log#audit-log-object-example-partial-integration-object - * - * @return Collection|Integration[] - */ - protected function getIntegrationsAttribute(): Collection - { - $collection = Collection::for(Integration::class); - - foreach ($this->attributes['integrations'] ?? [] as $integration) { - $collection->pushItem($this->factory->part(Integration::class, (array) $integration, true)); - } - - return $collection; - } - - /** - * Returns a collection of threads found in the audit log. - * - * @return Collection|Thread[] - */ - protected function getThreadsAttribute(): Collection - { - $collection = Collection::for(Thread::class); - - foreach ($this->attributes['threads'] ?? [] as $thread) { - $collection->pushItem($this->factory->part(Thread::class, (array) $thread, true)); - } - - return $collection; - } - - /** - * Returns a collection of users found in the audit log. - * - * @return Collection|User[] - */ - protected function getUsersAttribute(): Collection - { - $collection = Collection::for(User::class); - - foreach ($this->attributes['users'] ?? [] as $user) { - $collection->pushItem($this->discord->users->get('id', $user->id) ?: $this->factory->part(User::class, (array) $user, true)); - } - - return $collection; - } - - /** - * Returns a collection of webhooks found in the audit log. - * - * @return Collection|Webhook[] - */ - protected function getWebhooksAttribute(): Collection - { - $collection = Collection::for(Webhook::class); - - foreach ($this->attributes['webhooks'] ?? [] as $webhook) { - $collection->pushItem($this->factory->part(Webhook::class, (array) $webhook, true)); - } - - return $collection; - } - - /** - * Searches the audit log entries with action type. - * - * @param int $action_type - * - * @throws \InvalidArgumentException - * - * @return Collection|Entry[] - */ - public function searchByType(int $action_type): Collection - { - $types = array_values((new ReflectionClass(Entry::class))->getConstants()); - - if (! in_array($action_type, $types)) { - throw new \InvalidArgumentException("The given action type `{$action_type}` is not valid."); - } - - return $this->audit_log_entries->filter(function (Entry $entry) use ($action_type) { - return $entry->action_type == $action_type; - }); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/AuditLog/Entry.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/AuditLog/Entry.php deleted file mode 100644 index 70ccc99..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/AuditLog/Entry.php +++ /dev/null @@ -1,140 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Guild\AuditLog; - -use Discord\Helpers\Collection; -use Discord\Parts\Part; -use Discord\Parts\User\User; - -/** - * Represents an entry in the audit log. - * - * @since 5.1.0 - * - * @link https://discord.com/developers/docs/resources/audit-log#audit-log-entry-object - * - * @property ?string $target_id ID of the affected entity (webhook, user, role, etc.). - * @property Collection $changes Changes made to the target_id. - * @property ?string $user_id The user who made the changes. - * @property-read User|null $user - * @property string $id ID of the entry. - * @property int $action_type Type of action that occurred. - * @property Options|null $options Additional info for certain action types. - * @property string|null $reason The reason for the change (0-512 characters). - */ -class Entry extends Part -{ - // AUDIT LOG ENTRY TYPES - public const GUILD_UPDATE = 1; - public const CHANNEL_CREATE = 10; - public const CHANNEL_UPDATE = 11; - public const CHANNEL_DELETE = 12; - public const CHANNEL_OVERWRITE_CREATE = 13; - public const CHANNEL_OVERWRITE_UPDATE = 14; - public const CHANNEL_OVERWRITE_DELETE = 15; - public const MEMBER_KICK = 20; - public const MEMBER_PRUNE = 21; - public const MEMBER_BAN_ADD = 22; - public const MEMBER_BAN_REMOVE = 23; - public const MEMBER_UPDATE = 24; - public const MEMBER_ROLE_UPDATE = 25; - public const MEMBER_MOVE = 26; - public const MEMBER_DISCONNECT = 27; - public const BOT_ADD = 28; - public const ROLE_CREATE = 30; - public const ROLE_UPDATE = 31; - public const ROLE_DELETE = 32; - public const INVITE_CREATE = 40; - public const INVITE_UPDATE = 41; - public const INVITE_DELETE = 42; - public const WEBHOOK_CREATE = 50; - public const WEBHOOK_UPDATE = 51; - public const WEBHOOK_DELETE = 52; - public const EMOJI_CREATE = 60; - public const EMOJI_UPDATE = 61; - public const EMOJI_DELETE = 62; - public const MESSAGE_DELETE = 72; - public const MESSAGE_BULK_DELETE = 63; - public const MESSAGE_PIN = 74; - public const MESSAGE_UNPIN = 75; - public const INTEGRATION_CREATE = 80; - public const INTEGRATION_UPDATE = 81; - public const INTEGRATION_DELETE = 82; - public const STAGE_INSTANCE_CREATE = 83; - public const STAGE_INSTANCE_UPDATE = 84; - public const STAGE_INSTANCE_DELETE = 85; - public const STICKER_CREATE = 90; - public const STICKER_UPDATE = 91; - public const STICKER_DELETE = 92; - public const GUILD_SCHEDULED_EVENT_CREATE = 100; - public const GUILD_SCHEDULED_EVENT_UPDATE = 101; - public const GUILD_SCHEDULED_EVENT_DELETE = 102; - public const THREAD_CREATE = 110; - public const THREAD_UPDATE = 111; - public const THREAD_DELETE = 112; - public const APPLICATION_COMMAND_PERMISSION_UPDATE = 121; - public const AUTO_MODERATION_RULE_CREATE = 140; - public const AUTO_MODERATION_RULE_UPDATE = 141; - public const AUTO_MODERATION_RULE_DELETE = 142; - public const AUTO_MODERATION_BLOCK_MESSAGE = 143; - public const AUTO_MODERATION_FLAG_TO_CHANNEL = 144; - public const AUTO_MODERATION_USER_COMMUNICATION_DISABLED = 145; - public const CREATOR_MONETIZATION_REQUEST_CREATED = 150; - public const CREATOR_MONETIZATION_TERMS_ACCEPTED = 151; - - // AUDIT LOG ENTRY TYPES - - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'target_id', - 'changes', - 'user_id', - 'id', - 'action_type', - 'options', - 'reason', - ]; - - /** - * Returns the user who made the changes. - * - * @return User|null - */ - protected function getUserAttribute(): ?User - { - return $this->discord->users->get('id', $this->user_id); - } - - /** - * Returns a collection of changes. - * - * @link https://discord.com/developers/docs/resources/audit-log#audit-log-change-object - * - * @return Collection - */ - protected function getChangesAttribute(): Collection - { - return new Collection($this->attributes['changes'] ?? [], 'key', null); - } - - /** - * Returns the options of the entry. - * - * @return Options - */ - protected function getOptionsAttribute(): Options - { - return $this->createOf(Options::class, $this->attributes['options'] ?? []); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/AuditLog/Options.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/AuditLog/Options.php deleted file mode 100644 index 7532ed6..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/AuditLog/Options.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Guild\AuditLog; - -use Discord\Parts\Part; - -/** - * Represents an object of options for different audit log action types. - * Not all options will be present. See the Discord developer docs for more - * information. - * - * @link https://discord.com/developers/docs/resources/audit-log#audit-log-entry-object-optional-audit-entry-info - * - * @since 5.1.0 - * - * @property string $application_id ID of the app whose permissions were targeted. - * @property string $auto_moderation_rule_name Name of the Auto Moderation rule that was triggered. - * @property string $auto_moderation_rule_trigger_type Trigger type of the Auto Moderation rule that was triggered. - * @property string $channel_id Channel in which the entities were targeted. - * @property string $count Number of entities that were targeted. - * @property string $delete_member_days Number of days after which inactive members were kicked. - * @property string $id ID of the overwritten entity. - * @property string $members_removed Number of members removed by the prune. - * @property string $message_id ID of the message that was targeted. - * @property string $role_name Name of the role if type is "0" (not present if type is "1"). - * @property string $type Type of overwritten entity - "0" for "role" or "1" for "member". - */ -class Options extends Part -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'application_id', - 'auto_moderation_rule_name', - 'auto_moderation_rule_trigger_type', - 'channel_id', - 'count', - 'delete_member_days', - 'id', - 'members_removed', - 'message_id', - 'role_name', - 'type', - ]; -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/AutoModeration/Action.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/AutoModeration/Action.php deleted file mode 100644 index 9e982ef..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/AutoModeration/Action.php +++ /dev/null @@ -1,66 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Guild\AutoModeration; - -use Discord\Parts\Part; - -/** - * An action which will execute whenever a rule is triggered. - * - * @link https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-action-object - * - * @since 7.1.0 - * - * @property int $type The type of action. - * @property ActionMetadata|null $metadata Additional metadata needed during execution for this specific action type. - */ -class Action extends Part -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'type', - 'metadata', - ]; - - public const TYPE_BLOCK_MESSAGE = 1; - public const TYPE_SEND_ALERT_MESSAGE = 2; - public const TYPE_TIMEOUT = 3; - public const TYPE_BLOCK_MEMBER_INTERACTION = 4; - - /** - * Get the Metadata Attributes. - * - * @return ?ActionMetadata - */ - public function getMetadataAttribute(): ?ActionMetadata - { - if (! isset($this->attributes['metadata'])) { - return null; - } - - return $this->createOf(ActionMetadata::class, $this->attributes['metadata']); - } - - /** - * {@inheritDoc} - * - * @see Rule::getCreatableAttributes() - */ - public function getCreatableAttributes(): array - { - return [ - 'type' => $this->type, - ] + $this->makeOptionalAttributes(['metadata']); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/AutoModeration/ActionMetadata.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/AutoModeration/ActionMetadata.php deleted file mode 100644 index c2d249d..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/AutoModeration/ActionMetadata.php +++ /dev/null @@ -1,47 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Guild\AutoModeration; - -use Discord\Parts\Part; - -/** - * Additional data used when an action is executed. Different fields are - * relevant based on the value of action types. - * - * @link https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-action-object-action-metadata - * - * @since 10.0.0 - * - * @property string $channel_id Channel to which user content should be logged. For `SEND_ALERT_MESSAGE`. - * @property int $duration_seconds Timeout duration in seconds. Maximum of 2419200 seconds (4 weeks). For `TYPE_TIMEOUT`. - * @property string|null $custom_message Additional explanation that will be shown to members whenever their message is blocked. Maximum of 150 characters. For `TYPE_BLOCK_MESSAGE`. - */ -class ActionMetadata extends Part -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'channel_id', - 'duration_seconds', - 'custom_message', - ]; - - /** - * {@inheritDoc} - */ - public function getPublicAttributes(): array - { - // Return raw as the attributes might only contain one of the fillable - return $this->getRawAttributes(); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/AutoModeration/Rule.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/AutoModeration/Rule.php deleted file mode 100644 index 935f3e2..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/AutoModeration/Rule.php +++ /dev/null @@ -1,224 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Guild\AutoModeration; - -use Discord\Helpers\Collection; -use Discord\Parts\Channel\Channel; -use Discord\Parts\Guild\Guild; -use Discord\Parts\Guild\Role; -use Discord\Parts\Part; -use Discord\Parts\User\User; - -/** - * Auto Moderation is a feature which allows each guild to set up rules that - * trigger based on some criteria. For example, a rule can trigger whenever a - * message contains a specific keyword. - * Rules can be configured to automatically execute actions whenever they - * trigger. For example, if a user tries to send a message which contains a - * certain keyword, a rule can trigger and block the message before it is sent. - * - * @link https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object - * - * @since 7.1.0 - * - * @property string $id The id of this rule. - * @property string $guild_id The id of the guild which this rule belongs to. - * @property-read Guild|null $guild The guild which this rule belongs to. - * @property string $name The rule name. - * @property string $creator_id The id of the user which first created this rule. - * @property-read User|null $creator The user which first created this rule. - * @property int $event_type The rule event type. - * @property int $trigger_type The rule trigger type. - * @property object $trigger_metadata The rule trigger metadata (may contain `keyword_filter`, `regex_patterns`, `presets`, `allow_list`, `mention_total_limit` and `mention_raid_protection_enabled`). - * @property Collection|Action[] $actions The actions which will execute when the rule is triggered. - * @property bool $enabled Whether the rule is enabled. - * @property Collection|?Role[] $exempt_roles The role ids that should not be affected by the rule (Maximum of 20). - * @property Collection|?Channel[] $exempt_channels The channel ids that should not be affected by the rule (Maximum of 50). - */ -class Rule extends Part -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'id', - 'guild_id', - 'name', - 'creator_id', - 'event_type', - 'trigger_type', - 'trigger_metadata', - 'actions', - 'enabled', - 'exempt_roles', - 'exempt_channels', - ]; - - public const TRIGGER_TYPE_KEYWORD = 1; - public const TRIGGER_TYPE_SPAM = 3; - public const TRIGGER_TYPE_KEYWORD_PRESET = 4; - public const TRIGGER_TYPE_MENTION_SPAM = 5; - public const TRIGGER_TYPE_PROFILE = 6; - - public const KEYWORD_PRESET_TYPE_PROFANITY = 1; - public const KEYWORD_PRESET_TYPE_SEXUAL_CONTENT = 2; - public const KEYWORD_PRESET_TYPE_SLURS = 3; - - public const EVENT_TYPE_MESSAGE_SEND = 1; - - /** - * Returns the guild attribute. - * - * @return Guild|null The guild the rule belongs to. - */ - protected function getGuildAttribute(): ?Guild - { - return $this->discord->guilds->get('id', $this->guild_id); - } - - /** - * Returns the user attribute. - * - * @return User|null The user which first created this rule. - */ - protected function getCreatorAttribute(): ?User - { - return $this->discord->users->get('id', $this->attributes['creator_id']); - } - - /** - * Returns the actions attribute. - * - * @return Collection|Action[] A collection of actions. - */ - protected function getActionsAttribute(): Collection - { - $actions = Collection::for(Action::class, null); - - foreach ($this->attributes['actions'] as $action) { - $actions->pushItem($this->createOf(Action::class, $action)); - } - - return $actions; - } - - /** - * Returns the exempt roles attribute. - * - * @return Collection|?Role[] A collection of roles exempt from the rule. - */ - protected function getExemptRolesAttribute(): Collection - { - $roles = new Collection(); - - if (empty($this->attributes['exempt_roles'])) { - return $roles; - } - - $roles->fill(array_fill_keys($this->attributes['exempt_roles'], null)); - - if ($guild = $this->guild) { - $roles->merge($guild->roles->filter( - fn ($role) => in_array($role->id, $this->attributes['exempt_roles']) - )); - } - - return $roles; - } - - /** - * Returns the exempt channels attribute. - * - * @return Collection|?Channel[] A collection of channels exempt from the rule. - */ - protected function getExemptChannelsAttribute(): Collection - { - $channels = new Collection(); - - if (empty($this->attributes['exempt_channels'])) { - return $channels; - } - - $channels->fill(array_fill_keys($this->attributes['exempt_channels'], null)); - - if ($guild = $this->guild) { - $channels->merge($guild->channels->filter( - fn ($channel) => in_array($channel->id, $this->attributes['exempt_channels']) - )); - } - - return $channels; - } - - /** - * {@inheritDoc} - * - * @link https://discord.com/developers/docs/resources/auto-moderation#create-auto-moderation-rule-json-params - */ - public function getCreatableAttributes(): array - { - $attr = [ - 'name' => $this->name, - 'event_type' => $this->event_type, - 'trigger_type' => $this->trigger_type, - 'actions' => array_values($this->actions->map(function (Action $action) { - return $action->getCreatableAttributes(); - })->toArray()), - ]; - - $attr += $this->makeOptionalAttributes([ - 'enabled' => $this->enabled, - 'exempt_roles', - 'exempt_channels', - ]); - - if (in_array($this->trigger_type, [self::TRIGGER_TYPE_KEYWORD, self::TRIGGER_TYPE_KEYWORD_PRESET, self::TRIGGER_TYPE_MENTION_SPAM, self::TRIGGER_TYPE_PROFILE])) { - $attr['trigger_metadata'] = $this->trigger_metadata; - } - - return $attr; - } - - /** - * {@inheritDoc} - * - * @link https://discord.com/developers/docs/resources/auto-moderation#modify-auto-moderation-rule-json-params - */ - public function getUpdatableAttributes(): array - { - $attr = [ - 'name' => $this->name, - 'event_type' => $this->event_type, - 'actions' => $this->actions, - 'enabled' => $this->enabled, - 'exempt_roles' => $this->attributes['exempt_roles'], - 'exempt_channels' => $this->attributes['exempt_channels'], - ]; - - if (in_array($this->trigger_type, [self::TRIGGER_TYPE_KEYWORD, self::TRIGGER_TYPE_KEYWORD_PRESET])) { - $attr['trigger_metadata'] = $this->trigger_metadata; - } - - return $attr; - } - - /** - * {@inheritDoc} - */ - public function getRepositoryAttributes(): array - { - return [ - 'guild_id' => $this->guild_id, - 'auto_moderation_rule_id' => $this->id, - ]; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/Ban.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/Ban.php deleted file mode 100644 index 44bbf9a..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/Ban.php +++ /dev/null @@ -1,98 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Guild; - -use Discord\Parts\Part; -use Discord\Parts\User\User; - -/** - * A Ban is a ban on a user specific to a guild. It is also IP based. - * - * @link https://discord.com/developers/docs/resources/guild#ban-object - * - * @since 2.0.0 - * - * @property string $reason The reason for the ban. - * @property User $user The banned user. - * @property string $user_id - * - * @property string|null $guild_id - * @property-read Guild|null $guild - */ -class Ban extends Part -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'reason', - 'user', - - // events - 'guild_id', - - // @internal - 'user_id', - ]; - - /** - * Returns the user id of the ban. - * - * @return string|null - */ - protected function getUserIdAttribute(): ?string - { - if (isset($this->attributes['user_id'])) { - return $this->attributes['user_id']; - } - - if (isset($this->attributes['user']->id)) { - return $this->attributes['user']->id; - } - - return null; - } - - /** - * Returns the guild attribute of the ban. - * - * @return Guild|null - */ - protected function getGuildAttribute(): ?Guild - { - return $this->discord->guilds->get('id', $this->guild_id); - } - - /** - * Returns the user attribute of the ban. - * - * @return User - */ - protected function getUserAttribute(): User - { - if ($user = $this->discord->users->get('id', $this->user_id)) { - return $user; - } - - return $this->factory->part(User::class, (array) $this->attributes['user'], true); - } - - /** - * {@inheritDoc} - */ - public function getRepositoryAttributes(): array - { - return [ - 'user_id' => $this->user_id, - ]; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/CommandPermissions.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/CommandPermissions.php deleted file mode 100644 index 7d29741..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/CommandPermissions.php +++ /dev/null @@ -1,105 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Guild; - -use Discord\Helpers\BigInt; -use Discord\Helpers\Collection; -use Discord\Parts\Interactions\Command\Permission; -use Discord\Parts\Part; - -/** - * Guild Application Command Permissions Class. - * - * @link https://discord.com/developers/docs/interactions/application-commands#application-command-permissions-object-guild-application-command-permissions-structure - * - * @since 10.0.0 Refactored from Interactions\Command\Overwrite to Guild\CommandPermissions - * @since 7.0.0 - * - * @property string $id The id of the command or the application ID if no overwrites. - * @property string $application_id The id of the application the command belongs to. - * @property string $guild_id The id of the guild. - * @property-read Guild|null $guild - * @property Collection|Permission[] $permissions The permissions for the command in the guild. - */ -class CommandPermissions extends Part -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'id', - 'application_id', - 'guild_id', - 'permissions', - ]; - - /** - * Returns the guild attribute. - * - * @return Guild|null - */ - protected function getGuildAttribute(): ?Guild - { - return $this->discord->guilds->get('id', $this->guild_id); - } - - /** - * Gets the permissions attribute. - * - * @return Collection|Permission[] A collection of permissions. - */ - protected function getPermissionsAttribute(): Collection - { - $permissions = Collection::for(Permission::class); - - foreach ($this->attributes['permissions'] ?? [] as $permission) { - $permissions->pushItem($this->factory->part(Permission::class, (array) $permission, true)); - } - - return $permissions; - } - - /** - * {@inheritDoc} - */ - public function getUpdatableAttributes(): array - { - return [ - 'permissions' => $this->attributes['permissions'], - ]; - } - - /** - * {@inheritDoc} - */ - public function getRepositoryAttributes(): array - { - return [ - 'guild_id' => $this->guild_id, - 'application_id' => $this->application_id, - 'command_id' => $this->id, - ]; - } - - /** - * Get the permission ID constant for All Channels in the guild (i.e. guild_id - 1) - * Requires GMP extension loaded on 32 bits PHP. - * - * @link https://discord.com/developers/docs/interactions/application-commands#application-command-permissions-object-application-command-permissions-constants - * - * @return string The permission ID for all channels (i.e. guild_id - 1) - */ - final public function allChannelsConstant(): string - { - return (string) BigInt::sub($this->guild_id, 1); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/Emoji.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/Emoji.php deleted file mode 100644 index b353ee1..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/Emoji.php +++ /dev/null @@ -1,159 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Guild; - -use Discord\Helpers\Collection; -use Discord\Parts\Part; -use Discord\Parts\User\User; -use Stringable; - -/** - * An emoji object represents a custom emoji. - * - * @link https://discord.com/developers/docs/resources/emoji - * - * @since 4.0.2 - * - * @property ?string $id The identifier for the emoji. - * @property string $name The name of the emoji. - * @property Collection|Role[] $roles The roles that are allowed to use the emoji. - * @property User|null $user User that created this emoji. - * @property bool|null $require_colons Whether the emoji requires colons to be triggered. - * @property bool|null $managed Whether this emoji is managed by a role. - * @property bool|null $animated Whether the emoji is animated. - * @property bool|null $available Whether this emoji can be used, may be false due to loss of Server Boosts. - * - * @property string|null $guild_id The identifier of the guild that owns the emoji. - * @property-read Guild|null $guild The guild that owns the emoji. - */ -class Emoji extends Part implements Stringable -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'id', - 'name', - 'roles', - 'user', - 'require_colons', - 'managed', - 'animated', - 'available', - - // @internal - 'guild_id', - ]; - - /** - * Returns the guild attribute. - * - * @return Guild|null The guild the emoji belongs to. - */ - protected function getGuildAttribute(): ?Guild - { - return $this->discord->guilds->get('id', $this->guild_id); - } - - /** - * Returns the roles attribute. - * - * @return Collection A collection of roles for the emoji. - */ - protected function getRolesAttribute(): Collection - { - $roles = new Collection(); - - if (empty($this->attributes['roles'])) { - return $roles; - } - - $roles->fill(array_fill_keys($this->attributes['roles'], null)); - - if ($guild = $this->guild) { - $roles->merge($guild->roles->filter(function ($role) { - return in_array($role->id, $this->attributes['roles']); - })); - } - - return $roles; - } - - /** - * Gets the user that created the emoji. - * - * @return User|null - */ - protected function getUserAttribute(): ?User - { - if (! isset($this->attributes['user'])) { - return null; - } - - if ($user = $this->discord->users->get('id', $this->attributes['user']->id)) { - return $user; - } - - return $this->factory->part(User::class, (array) $this->attributes['user'], true); - } - - /** - * Converts the emoji to the format required for creating a reaction. - * - * @return string - */ - public function toReactionString(): string - { - if ($this->id) { - return ($this->animated ? 'a' : '').":{$this->name}:{$this->id}"; - } - - return $this->name; - } - - /** - * Converts the emoji to a string. - * - * @return string - */ - public function __toString(): string - { - if ($this->id) { - return '<'.($this->animated ? 'a:' : ':')."{$this->name}:{$this->id}>"; - } - - return $this->name; - } - - /** - * {@inheritDoc} - * - * @link https://discord.com/developers/docs/resources/emoji#modify-guild-emoji-json-params - */ - public function getUpdatableAttributes(): array - { - return $this->makeOptionalAttributes([ - 'name' => $this->name, - 'roles' => $this->attributes['roles'] ?? null, - ]); - } - - /** - * {@inheritDoc} - */ - public function getRepositoryAttributes(): array - { - return [ - 'emoji_id' => $this->id, - ]; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/Guild.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/Guild.php deleted file mode 100644 index 215bd8a..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/Guild.php +++ /dev/null @@ -1,1665 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Guild; - -use Carbon\Carbon; -use Discord\Exceptions\FileNotFoundException; -use Discord\Helpers\Collection; -use Discord\Helpers\Multipart; -use Discord\Http\Endpoint; -use Discord\Http\Exceptions\NoPermissionsException; -use Discord\Parts\Channel\Channel; -use Discord\Parts\Channel\Invite; -use Discord\Parts\Channel\StageInstance; -use Discord\Parts\Part; -use Discord\Parts\User\Member; -use Discord\Parts\User\User; -use Discord\Repository\Guild\BanRepository; -use Discord\Repository\Guild\ChannelRepository; -use Discord\Repository\Guild\EmojiRepository; -use Discord\Repository\Guild\InviteRepository; -use Discord\Repository\Guild\MemberRepository; -use Discord\Repository\Guild\RoleRepository; -use Discord\Parts\Guild\AuditLog\AuditLog; -use Discord\Parts\Guild\AuditLog\Entry; -use Discord\Parts\Permissions\RolePermission; -use Discord\Repository\Guild\AutoModerationRuleRepository; -use Discord\Repository\Guild\CommandPermissionsRepository; -use Discord\Repository\Guild\GuildCommandRepository; -use Discord\Repository\Guild\SoundRepository; -use Discord\Repository\Guild\StickerRepository; -use Discord\Repository\Guild\ScheduledEventRepository; -use Discord\Repository\Guild\GuildTemplateRepository; -use Discord\Repository\Guild\IntegrationRepository; -use React\Promise\PromiseInterface; -use ReflectionClass; -use Symfony\Component\OptionsResolver\OptionsResolver; - -use function Discord\normalizePartId; -use function Discord\poly_strlen; -use function React\Promise\reject; -use function React\Promise\resolve; - -/** - * A Guild is Discord's equivalent of a server. It contains all the Members, - * Channels, Roles, Bans etc. - * - * @link https://discord.com/developers/docs/resources/guild - * - * @since 2.0.0 Refactored as Part - * @since 1.0.0 - * - * @property string $id The unique identifier of the guild. - * @property string $name The name of the guild. - * @property ?string $icon The URL to the guild icon. - * @property ?string|null $icon_hash The icon hash for the guild. - * @property ?string $splash The URL to the guild splash. - * @property ?string|null $splash_hash The splash hash for the guild. - * @property ?string $discovery_splash Discovery splash hash. Only for discoverable guilds. - * @property string $owner_id The unique identifier of the owner of the guild. - * @property-read User|null $owner The owner of the guild. - * @property string $afk_channel_id The unique identifier of the AFK channel ID. - * @property int $afk_timeout How long in seconds you will remain in the voice channel until you are moved into the AFK channel. Can be set to: 60, 300, 900, 1800, 3600. - * @property bool|null $widget_enabled Is server widget enabled. - * @property ?string|null $widget_channel_id Channel that the widget will create an invite to. - * @property int $verification_level The verification level used for the guild. - * @property int $default_message_notifications Default notification level. - * @property int $explicit_content_filter Explicit content filter level. - * @property RoleRepository $roles Roles in the guild. - * @property EmojiRepository $emojis Custom guild emojis. - * @property string[] $features An array of features that the guild has. - * @property-read bool $feature_animated_banner Guild has access to set an animated guild banner image. - * @property-read bool $feature_animated_icon Guild has access to set an animated guild icon. - * @property-read bool $feature_application_command_permissions_v2 Guild is using the old permissions configuration behavior. - * @property-read bool $feature_auto_moderation Guild has set up auto moderation rules. - * @property-read bool $feature_banner Guild has access to set a guild banner image. - * @property-read bool $feature_community Guild can enable welcome screen, Membership Screening, stage channels and discovery, and receives community updates. - * @property-read bool $feature_creator_monetizable_provisional Guild has enabled monetization. - * @property-read bool $feature_creator_store_page Guild has enabled the role subscription promo page. - * @property-read bool $feature_developer_support_server Guild has been set as a support server on the App Directory. - * @property-read bool $feature_discoverable Guild is able to be discovered in the directory. - * @property-read bool $feature_featurable Guild is able to be featured in the directory. - * @property-read bool $feature_has_directory_entry Guild is listed in a directory channel. - * @property-read bool $feature_invites_disabled Guild has paused invites, preventing new users from joining. - * @property-read bool $feature_invite_splash Guild has access to set an invite splash background. - * @property-read bool $feature_linked_to_hub Guild is in a Student Hub. - * @property-read bool $feature_member_verification_gate_enabled Guild has enabled membership screening. - * @property-read bool $feature_monetization_enabled Guild has enabled monetization. - * @property-read bool $feature_more_stickers Guild has increased custom sticker slots. - * @property-read bool $feature_news Guild has access to create news channels. - * @property-read bool $feature_partnered Guild is partnered. - * @property-read bool $feature_preview_enabled Guild can be previewed before joining via membership screening or the directory. - * @property-read bool $feature_private_threads Guild has access to create private threads. - * @property-read bool $feature_raid_alerts_enabled Guild has enabled alerts for join raids in the configured safety alerts channel. - * @property-read bool $feature_role_icons Guild is able to set role icons. - * @property-read bool $feature_role_subscriptions_available_for_purchase Guild has role subscriptions that can be purchased. - * @property-read bool $feature_role_subscriptions_enabled Guild has enabled role subscriptions. - * @property-read bool $feature_ticketed_events_enabled Guild has enabled ticketed events. - * @property-read bool $feature_vanity_url Guild has access to set a vanity url. - * @property-read bool $feature_verified Guild is verified. - * @property-read bool $feature_vip_regions Guild has access to set 384kbps bitrate in voice. - * @property-read bool $feature_welcome_screen_enabled Guild has enabled the welcome screen. - * @property int $mfa_level MFA level required to join. - * @property ?string $application_id Application that made the guild, if made by one. - * @property ?string $system_channel_id Channel that system notifications are posted in. - * @property int $system_channel_flags Flags for the system channel. - * @property ?string $rules_channel_id Channel that the rules are in. - * @property int|null $max_presences Maximum amount of presences allowed in the guild. - * @property int|null $max_members Maximum amount of members allowed in the guild. - * @property ?string $vanity_url_code Vanity URL code for the guild. - * @property ?string $description Guild description of a guild. - * @property ?string $banner Banner hash. - * @property int $premium_tier Server boost level. - * @property int|null $premium_subscription_count Number of boosts in the guild. - * @property string $preferred_locale Preferred locale of the guild. - * @property ?string $public_updates_channel_id Notice channel id. - * @property int|null $max_video_channel_users Maximum amount of users allowed in a video channel. - * @property int|null $max_stage_video_channel_users Maximum amount of users in a stage video channel. - * @property int|null $approximate_member_count Approximate number of members in this guild, returned from the GET /guilds/ endpoint when with_counts is true. - * @property int|null $approximate_presence_count Approximate number of non-offline members in this guild, returned from the GET /guilds/ endpoint when with_counts is true. - * @property-read WelcomeScreen|null $welcome_screen The welcome screen of a Community guild, shown to new members, returned in an Invite's guild object. use `getWelcomeScreen` first to populate. - * @property int $nsfw_level The guild NSFW level. - * @property StickerRepository $stickers Custom guild stickers. - * @property bool $premium_progress_bar_enabled Whether the guild has the boost progress bar enabled. - * @property string|null $safety_alerts_channel_id The id of the channel where admins and moderators of Community guilds receive safety alerts from Discord. - * - * @property Carbon|null $joined_at A timestamp of when the current user joined the guild. - * @property bool|null $large Whether the guild is considered 'large' (over 250 members). - * @property int|null $member_count How many members are in the guild. - * @property MemberRepository $members Users in the guild. - * @property ChannelRepository $channels Channels in the guild. - * @property ScheduledeventRepository $guild_scheduled_events The scheduled events in the guild. - * - * @property AutoModerationRuleRepository $auto_moderation_rules - * @property BanRepository $bans - * @property GuildCommandRepository $commands - * @property CommandPermissionsRepository $command_permissions - * @property IntegrationRepository $integrations - * @property InviteRepository $invites - * @property SoundRepository $sounds - * @property GuildTemplateRepository $templates - */ -class Guild extends Part -{ - public const REGION_DEFAULT = 'us_west'; - - public const NOTIFICATION_ALL_MESSAGES = 0; - public const NOTIFICATION_ONLY_MENTIONS = 1; - - public const EXPLICIT_CONTENT_FILTER_DISABLED = 0; - public const EXPLICIT_CONTENT_FILTER_MEMBERS_WITHOUT_ROLES = 1; - public const EXPLICIT_CONTENT_FILTER_ALL_MEMBERS = 2; - - public const MFA_NONE = 0; - public const MFA_ELEVATED = 1; - - public const LEVEL_OFF = 0; - public const LEVEL_LOW = 1; - public const LEVEL_MEDIUM = 2; - public const LEVEL_TABLEFLIP = 3; - public const LEVEL_DOUBLE_TABLEFLIP = 4; - - public const NSFW_DEFAULT = 0; - public const NSFW_EXPLICIT = 1; - public const NSFW_SAFE = 2; - public const NSFW_AGE_RESTRICTED = 3; - - public const PREMIUM_NONE = 0; - public const PREMIUM_TIER_1 = 1; - public const PREMIUM_TIER_2 = 2; - public const PREMIUM_TIER_3 = 3; - - public const SUPPRESS_JOIN_NOTIFICATIONS = (1 << 0); - public const SUPPRESS_PREMIUM_SUBSCRIPTION = (1 << 1); - public const SUPPRESS_GUILD_REMINDER_NOTIFICATIONS = (1 << 2); - public const SUPPRESS_JOIN_NOTIFICATION_REPLIES = (1 << 3); - public const SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATIONS = (1 << 4); - public const SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATION_REPLIES = (1 << 5); - - public const HUB_TYPE_DEFAULT = 0; - public const HUB_TYPE_HIGH_SCHOOL = 1; - public const HUB_TYPE_COLLEGE = 2; - - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'id', - 'name', - 'icon', - 'icon_hash', - 'description', - 'splash', - 'discovery_splash', - 'features', - 'banner', - 'owner_id', - 'application_id', - 'afk_channel_id', - 'afk_timeout', - 'system_channel_id', - 'widget_enabled', - 'widget_channel_id', - 'verification_level', - 'default_message_notifications', - 'hub_type', - 'mfa_level', - 'explicit_content_filter', - 'max_presences', - 'max_members', - 'vanity_url_code', - 'premium_tier', - 'premium_subscription_count', - 'system_channel_flags', - 'preferred_locale', - 'rules_channel_id', - 'public_updates_channel_id', - 'max_video_channel_users', - 'max_stage_video_channel_users', - 'approximate_member_count', - 'approximate_presence_count', - 'welcome_screen', - 'nsfw_level', - 'premium_progress_bar_enabled', - 'safety_alerts_channel_id', - - // events - 'joined_at', - 'large', - 'member_count', - - // repositories - 'channels', - 'roles', - 'emojis', - 'stickers', - ]; - - /** - * {@inheritDoc} - */ - protected $visible = [ - 'feature_animated_banner', - 'feature_animated_icon', - 'feature_application_command_permissions_v2', - 'feature_auto_moderation', - 'feature_banner', - 'feature_community', - 'feature_creator_monetizable_provisional', - 'feature_creator_store_page', - 'feature_developer_support_server', - 'feature_discoverable', - 'feature_featurable', - 'feature_has_directory_entry', - 'feature_invites_disabled', - 'feature_invite_splash', - 'feature_linked_to_hub', - 'feature_member_verification_gate_enabled', - 'feature_monetization_enabled', - 'feature_more_stickers', - 'feature_news', - 'feature_partnered', - 'feature_preview_enabled', - 'feature_private_threads', - 'feature_raid_alerts_enabled', - 'feature_role_icons', - 'feature_role_subscriptions_available_for_purchase', - 'feature_role_subscriptions_enabled', - 'feature_ticketed_events_enabled', - 'feature_vanity_url', - 'feature_verified', - 'feature_vip_regions', - 'feature_welcome_screen_enabled', - ]; - - /** - * {@inheritDoc} - */ - protected $repositories = [ - 'roles' => RoleRepository::class, - 'emojis' => EmojiRepository::class, - 'stickers' => StickerRepository::class, - 'members' => MemberRepository::class, - 'channels' => ChannelRepository::class, - 'guild_scheduled_events' => ScheduledEventRepository::class, - - 'auto_moderation_rules' => AutoModerationRuleRepository::class, - 'bans' => BanRepository::class, - 'commands' => GuildCommandRepository::class, - 'command_permissions' => CommandPermissionsRepository::class, - 'integrations' => IntegrationRepository::class, - 'invites' => InviteRepository::class, - 'sounds' => SoundRepository::class, - 'templates' => GuildTemplateRepository::class, - ]; - - /** - * An array of valid regions. - * - * @var Collection|null - */ - protected $regions; - - /** - * {@inheritDoc} - */ - protected function setChannelsAttribute(?array $channels): void - { - $channelsDiscrim = $this->channels->discrim; - $clean = array_diff($this->channels->keys(), array_column($channels ?? [], $channelsDiscrim)); - foreach ($channels ?? [] as $channel) { - $channel = (array) $channel; - /** @var ?Channel */ - if ($channelPart = $this->channels->offsetGet($channel[$channelsDiscrim])) { - $channelPart->fill($channel); - } else { - /** @var Channel */ - $channelPart = $this->channels->create($channel, $this->created); - $channelPart->created = &$this->created; - } - $this->channels->pushItem($channelPart); - } - - $this->channels->cache->deleteMultiple($clean); - } - - /** - * Sets the roles attribute. - * - * @param ?array $roles - */ - protected function setRolesAttribute(?array $roles): void - { - $rolesDiscrim = $this->roles->discrim; - foreach ($roles ?? [] as $role) { - $role = (array) $role; - /** @var ?Role */ - if ($rolePart = $this->roles->offsetGet($role[$rolesDiscrim])) { - $rolePart->fill($role); - } else { - /** @var Role */ - $rolePart = $this->roles->create($role, $this->created); - $rolePart->created = &$this->created; - } - $this->roles->pushItem($rolePart); - } - - if (! empty($this->attributes['roles']) && $clean = array_diff(array_column($this->attributes['roles'], $rolesDiscrim), array_column($roles ?? [], $rolesDiscrim))) { - $this->roles->cache->deleteMultiple($clean); - } - - $this->attributes['roles'] = $roles; - } - - /** - * Sets the emojis attribute. - * - * @param ?array $emojis - */ - protected function setEmojisAttribute(?array $emojis): void - { - $emojisDiscrim = $this->emojis->discrim; - foreach ($emojis ?? [] as $emoji) { - $emoji = (array) $emoji; - /** @var ?Emoji */ - if ($emojiPart = $this->emojis->offsetGet($emoji[$emojisDiscrim])) { - $emojiPart->fill($emoji); - } else { - /** @var Emoji */ - $emojiPart = $this->emojis->create($emoji, $this->created); - $emojiPart->created = &$this->created; - } - $this->emojis->pushItem($emojiPart); - } - - if (! empty($this->attributes['emojis']) && $clean = array_diff(array_column($this->attributes['emojis'], $emojisDiscrim), array_column($emojis ?? [], $emojisDiscrim))) { - $this->emojis->cache->deleteMultiple($clean); - } - - $this->attributes['emojis'] = $emojis; - } - - /** - * Sets the stickers attribute. - * - * @param ?array $stickers - */ - protected function setStickersAttribute(?array $stickers): void - { - $stickersDiscrim = $this->stickers->discrim; - foreach ($stickers ?? [] as $sticker) { - $sticker = (array) $sticker; - /** @var ?Sticker */ - if ($stickerPart = $this->stickers->offsetGet($sticker[$stickersDiscrim])) { - $stickerPart->fill($sticker); - } else { - /** @var Sticker */ - $stickerPart = $this->stickers->create($sticker, $this->created); - $stickerPart->created = &$this->created; - } - $this->stickers->pushItem($stickerPart); - } - - if (! empty($this->attributes['stickers']) && $clean = array_diff(array_column($this->attributes['stickers'], $stickersDiscrim), array_column($stickers ?? [], $stickersDiscrim))) { - $this->stickers->cache->deleteMultiple($clean); - } - - $this->attributes['stickers'] = $stickers; - } - - /** - * Returns the channels invites. - * - * @link https://discord.com/developers/docs/resources/guild#get-guild-invites - * - * @throws NoPermissionsException Missing manage_guild permission. - * - * @return PromiseInterface - */ - public function getInvites(): PromiseInterface - { - $botperms = $this->getBotPermissions(); - if ($botperms && ! $botperms->manage_guild) { - return reject(new NoPermissionsException("You do not have permission to get invites in the guild {$this->id}.")); - } - - return $this->http->get(Endpoint::bind(Endpoint::GUILD_INVITES, $this->id))->then(function ($response) { - $invites = Collection::for(Invite::class, 'code'); - - foreach ($response as $invite) { - $invite = $this->factory->part(Invite::class, (array) $invite, true); - $invites->pushItem($invite); - } - - return $invites; - }); - } - - /** - * Unbans a member. Alias for `$guild->bans->unban($user)`. - * - * @see BanRepository::unban() - * - * @param User|string $user - * - * @throws NoPermissionsException Missing ban_members permission. - * - * @return PromiseInterface - */ - public function unban($user): PromiseInterface - { - $botperms = $this->getBotPermissions(); - if ($botperms && ! $botperms->ban_members) { - return reject(new NoPermissionsException("You do not have permission to ban members in the guild {$this->id}.")); - } - - return $this->bans->unban($user); - } - - /** - * Returns the owner. - * - * @return User|null - */ - protected function getOwnerAttribute(): ?User - { - return $this->discord->users->get('id', $this->owner_id); - } - - /** - * Returns the joined_at attribute. - * - * @return Carbon|null The joined_at attribute. - * - * @throws \Exception - */ - protected function getJoinedAtAttribute(): ?Carbon - { - if (! isset($this->attributes['joined_at'])) { - return null; - } - - return new Carbon($this->attributes['joined_at']); - } - - /** - * Returns the guilds icon. - * - * @param string|null $format The image format. - * @param int $size The size of the image. - * - * @return string|null The URL to the guild icon or null. - */ - public function getIconAttribute(?string $format = null, int $size = 1024): ?string - { - if (! isset($this->attributes['icon'])) { - return null; - } - - if (isset($format)) { - $allowed = ['png', 'jpg', 'webp', 'gif']; - - if (! in_array(strtolower($format), $allowed)) { - $format = 'webp'; - } - } elseif (strpos($this->attributes['icon'], 'a_') === 0) { - $format = 'gif'; - } else { - $format = 'webp'; - } - - return "https://cdn.discordapp.com/icons/{$this->id}/{$this->attributes['icon']}.{$format}?size={$size}"; - } - - /** - * Returns the guild icon hash. - * - * @return string|null The guild icon hash or null. - */ - protected function getIconHashAttribute(): ?string - { - return $this->attributes['icon_hash'] ?? $this->attributes['icon']; - } - - /** - * Returns the guild splash. - * - * @param string $format The image format. - * @param int $size The size of the image. - * - * @return string|null The URL to the guild splash or null. - */ - public function getSplashAttribute(string $format = 'webp', int $size = 2048): ?string - { - if (! isset($this->attributes['splash'])) { - return null; - } - - $allowed = ['png', 'jpg', 'webp']; - - if (! in_array(strtolower($format), $allowed)) { - $format = 'webp'; - } - - return "https://cdn.discordapp.com/splashes/{$this->id}/{$this->attributes['splash']}.{$format}?size={$size}"; - } - - /** - * Returns the guild splash hash. - * - * @return string|null The guild splash hash or null. - */ - protected function getSplashHashAttribute(): ?string - { - return $this->attributes['splash'] ?? null; - } - - /** - * Returns the channels stage instances. - * - * @deprecated 10.0.0 Use `$channel->stage_instances` - * - * @return Collection|StageInstance[] - */ - protected function getStageInstancesAttribute(): Collection - { - $stage_instances = Collection::for(StageInstance::class); - - if ($channels = $this->channels) { - /** @var Channel */ - foreach ($channels as $channel) { - $stage_instances->merge($channel->stage_instances); - } - } - - return $stage_instances; - } - - protected function getFeatureAnimatedBannerAttribute(): bool - { - return in_array('ANIMATED_BANNER', $this->features); - } - - protected function getFeatureAnimatedIconAttribute(): bool - { - return in_array('ANIMATED_ICON', $this->features); - } - - protected function getFeatureApplicationCommandPermissionsV2(): bool - { - return in_array('APPLICATION_COMMAND_PERMISSIONS_V2', $this->features); - } - - protected function getFeatureAutoModerationAttribute(): bool - { - return in_array('AUTO_MODERATION', $this->features); - } - - protected function getFeatureBannerAttribute(): bool - { - return in_array('BANNER', $this->features); - } - - protected function getFeatureCommunityAttribute(): bool - { - return in_array('COMMUNITY', $this->features); - } - - protected function getFeatureCreatorMonetizableProvisionalAttribute(): bool - { - return in_array('CREATOR_MONETIZABLE_PROVISIONAL', $this->features); - } - - protected function getFeatureCreatorStorePageAttribute(): bool - { - return in_array('CREATOR_STORE_PAGE', $this->features); - } - - protected function getFeatureDeveloperSupportServerAttribute(): bool - { - return in_array('DEVELOPER_SUPPORT_SERVER', $this->features); - } - - protected function getFeatureDiscoverableAttribute(): bool - { - return in_array('DISCOVERABLE', $this->features); - } - - protected function getFeatureFeaturableAttribute(): bool - { - return in_array('FEATURABLE', $this->features); - } - - protected function getFeatureHasDirectoryEntryAttribute(): bool - { - return in_array('HAS_DIRECTORY_ENTRY', $this->features); - } - - protected function getFeatureInvitesDisabledAttribute(): bool - { - return in_array('INVITES_DISABLED', $this->features); - } - - protected function getFeatureInviteSplashAttribute(): bool - { - return in_array('INVITE_SPLASH', $this->features); - } - - protected function getFeatureLinkedToHubAttribute(): bool - { - return in_array('LINKED_TO_HUB', $this->features); - } - - protected function getFeatureMemberVerificationGateEnabledAttribute(): bool - { - return in_array('MEMBER_VERIFICATION_GATE_ENABLED', $this->features); - } - - protected function getFeatureMonetizationEnabledAttribute(): bool - { - return in_array('MONETIZATION_ENABLED', $this->features); - } - - protected function getFeatureMoreStickersAttribute(): bool - { - return in_array('MORE_STICKERS', $this->features); - } - - protected function getFeatureNewsAttribute(): bool - { - return in_array('NEWS', $this->features); - } - - protected function getFeaturePartneredAttribute(): bool - { - return in_array('PARTNERED', $this->features); - } - - protected function getFeaturePreviewEnabledAttribute(): bool - { - return in_array('PREVIEW_ENABLED', $this->features); - } - - protected function getFeaturePrivateThreadsAttribute(): bool - { - return in_array('PRIVATE_THREADS', $this->features); - } - - protected function getFeatureRaidAlertsEnabledAttribute(): bool - { - return in_array('RAID_ALERTS_ENABLED', $this->features); - } - - protected function getFeatureRoleIconsAttribute(): bool - { - return in_array('ROLE_ICONS', $this->features); - } - - protected function getFeatureRoleSubscriptionsAvailableForPurchaseAttribute(): bool - { - return in_array('ROLE_SUBSCRIPTIONS_AVAILABLE_FOR_PURCHASE', $this->features); - } - - protected function getFeatureRoleSubscriptionsEnabledAttribute(): bool - { - return in_array('ROLE_SUBSCRIPTIONS_ENABLED', $this->features); - } - - protected function getFeatureTicketedEventsEnabledAttribute(): bool - { - return in_array('TICKETED_EVENTS_ENABLED', $this->features); - } - - protected function getFeatureVanityUrlAttribute(): bool - { - return in_array('VANITY_URL', $this->features); - } - - protected function getFeatureVerifiedAttribute(): bool - { - return in_array('VERIFIED', $this->features); - } - - protected function getFeatureVipRegionsAttribute(): bool - { - return in_array('VIP_REGIONS', $this->features); - } - - protected function getFeatureWelcomeScreenEnabledAttribute(): bool - { - return in_array('WELCOME_SCREEN_ENABLED', $this->features); - } - - /** - * Gets the voice regions available. - * - * @link https://discord.com/developers/docs/resources/voice#list-voice-regions - * - * @return PromiseInterface - */ - public function getVoiceRegions(): PromiseInterface - { - if (null !== $this->regions) { - return resolve($this->regions); - } - - return $this->http->get('voice/regions')->then(function ($regions) { - $regions = new Collection($regions); - - $this->regions = $regions; - - return $regions; - }); - } - - /** - * Creates a role. - * - * @link https://discord.com/developers/docs/resources/guild#create-guild-role - * - * @param array $data The data to fill the role with. - * @param string|null $reason Reason for Audit Log. - * - * @throws NoPermissionsException Missing manage_roles permission. - * - * @return PromiseInterface - */ - public function createRole(array $data = [], ?string $reason = null): PromiseInterface - { - $botperms = $this->getBotPermissions(); - - if ($botperms && ! $botperms->manage_roles) { - return reject(new NoPermissionsException("You do not have permission to manage roles in the guild {$this->id}.")); - } - - return $this->roles->save($this->factory->part(Role::class, $data), $reason); - } - - /** - * Creates an Emoji for the guild. - * - * @link https://discord.com/developers/docs/resources/emoji#create-guild-emoji - * - * @param array $options An array of options. - * @param string $options['name'] Name of the emoji. - * @param string|null $options['image'] The 128x128 emoji image (if not using `$filepath`). - * @param array|null $options['roles'] Roles allowed to use this emoji. - * @param string|null $filepath The path to the file if specified will override image data string. - * @param string|null $reason Reason for Audit Log. - * - * @throws NoPermissionsException Missing manage_guild_expressions permission. - * @throws FileNotFoundException File does not exist. - * - * @return PromiseInterface - */ - public function createEmoji(array $options, ?string $filepath = null, ?string $reason = null): PromiseInterface - { - $resolver = new OptionsResolver(); - $resolver - ->setDefined([ - 'name', - 'image', - 'roles', - ]) - ->setRequired('name') - ->setAllowedTypes('name', 'string') - ->setAllowedTypes('image', 'string') - ->setAllowedTypes('roles', 'array') - ->setDefault('roles', []); - - if (null === $filepath) { - $resolver->setRequired('image'); - } - - $options = $resolver->resolve($options); - - $botperms = $this->getBotPermissions(); - if ($botperms && ! $botperms->manage_guild_expressions) { - return reject(new NoPermissionsException("You do not have permission to create emojis in the guild {$this->id}.")); - } - - if (isset($filepath)) { - if (! file_exists($filepath)) { - return reject(new FileNotFoundException("File does not exist at path {$filepath}.")); - } - - $extension = strtolower(pathinfo($filepath, PATHINFO_EXTENSION)); - if ($extension == 'jpg') { - $extension = 'jpeg'; - } - $contents = file_get_contents($filepath); - - $options['image'] = "data:image/{$extension};base64,".base64_encode($contents); - } - - $headers = []; - if (isset($reason)) { - $headers['X-Audit-Log-Reason'] = $reason; - } - - return $this->http->post(Endpoint::bind(Endpoint::GUILD_EMOJIS, $this->id), $options, $headers) - ->then(function ($response) { - if (! $emojiPart = $this->emojis->get('id', $response->id)) { - $emojiPart = $this->emojis->create($response, true); - $this->emojis->pushItem($emojiPart); - } - - return $emojiPart; - }); - } - - /** - * Creates a Sticker for the guild. - * - * @link https://discord.com/developers/docs/resources/sticker#create-guild-sticker - * - * @param array $options An array of options. - * @param string $options['name'] Name of the sticker. - * @param string|null $options['description'] Description of the sticker (empty or 2-100 characters). - * @param string $options['tags'] Autocomplete/suggestion tags for the sticker (max 200 characters). - * @param string $filepath The sticker file to upload, must be a PNG, APNG, or Lottie JSON file, max 512 KB. - * @param string|null $reason Reason for Audit Log. - * - * @throws NoPermissionsException Missing manage_guild_expressions permission. - * @throws FileNotFoundException The file does not exist. - * @throws \LengthException Description is not 2-100 characters long. - * @throws \DomainException File format is not PNG, APNG, or Lottie JSON. - * @throws \RuntimeException Guild is not verified or partnered to upload Lottie stickers. - * - * @return PromiseInterface - */ - public function createSticker(array $options, string $filepath, ?string $reason = null): PromiseInterface - { - $resolver = new OptionsResolver(); - $resolver - ->setDefined([ - 'name', - 'description', - 'tags', - ]) - ->setRequired(['name', 'tags']) - ->setAllowedTypes('name', 'string') - ->setAllowedTypes('description', 'string') - ->setAllowedTypes('tags', 'string') - ->setDefault('description', ''); - - $options = $resolver->resolve($options); - - $botperms = $this->getBotPermissions(); - if ($botperms && ! $botperms->manage_guild_expressions) { - return reject(new NoPermissionsException("You do not have permission to create stickers in the guild {$this->id}.")); - } - - if (! file_exists($filepath)) { - return reject(new FileNotFoundException("File does not exist at path {$filepath}.")); - } - - $descLength = poly_strlen($options['description']); - if ($descLength > 100 || $descLength == 1) { - return reject(new \LengthException("Description must be 2 to 100 characters, given {$descLength}.")); - } - - $extension = strtolower(pathinfo($filepath, PATHINFO_EXTENSION)); - - if (function_exists('mime_content_type')) { - $contentType = \mime_content_type($filepath); - } else { - $contentTypes = [ - 'png' => 'image/png', - 'apng' => 'image/apng', - //'gif' => 'image/gif', // Currently disabled in API - 'lottie' => 'application/json', - ]; - - if (! array_key_exists($extension, $contentTypes)) { - return reject(new \DomainException("File format must be PNG, APNG, or Lottie JSON, given {$extension}.")); - } - - $contentType = $contentTypes[$extension]; - } - - if ($extension == 'lottie' && ! ($this->feature_verified || $this->feature_partnered)) { - return reject(new \RuntimeException('Lottie stickers can be only uploaded in verified or partnered guilds.')); - } - - $contents = file_get_contents($filepath); - - $multipart = new Multipart([ - [ - 'name' => 'name', - 'content' => $options['name'], - ], - [ - 'name' => 'description', - 'content' => $options['description'], - ], - [ - 'name' => 'tags', - 'content' => $options['tags'], - ], - [ - 'name' => 'file', - 'filename' => basename($filepath), - 'content' => $contents, - 'headers' => [ - 'Content-Type' => $contentType, - ], - ], - ]); - - $headers = $multipart->getHeaders(); - if (isset($reason)) { - $headers['X-Audit-Log-Reason'] = $reason; - } - - return $this->http->post(Endpoint::bind(Endpoint::GUILD_STICKERS, $this->id), (string) $multipart, $headers) - ->then(function ($response) { - if (! $stickerPart = $this->stickers->get('id', $response->id)) { - $stickerPart = $this->stickers->create($response, true); - $this->stickers->pushItem($stickerPart); - } - - return $stickerPart; - }); - } - - /** - * Leaves the guild. - * - * @return PromiseInterface - */ - public function leave(): PromiseInterface - { - return $this->discord->guilds->leave($this->id); - } - - /** - * Transfers ownership of the guild to another member. - * - * @param Member|int $member The member to transfer ownership to. - * @param string|null $reason Reason for Audit Log. - * - * @throws \RuntimeException Ownership not transferred correctly. - * - * @return PromiseInterface - */ - public function transferOwnership($member, ?string $reason = null): PromiseInterface - { - if ($member instanceof Member) { - $member = $member->id; - } - - $headers = []; - if (isset($reason)) { - $headers['X-Audit-Log-Reason'] = $reason; - } - - return $this->http->patch(Endpoint::bind(Endpoint::GUILD), ['owner_id' => $member], $headers)->then(function ($response) use ($member) { - if ($response->owner_id != $member) { - throw new \RuntimeException('Ownership was not transferred correctly.'); - } - - return $this; - }); - } - - /** - * Validates the specified region. - * - * @deprecated 10.0.0 Use `Channel::$rtc_region`. - * - * @return PromiseInterface - * - * @see Guild::REGION_DEFAULT The default region. - */ - public function validateRegion(): PromiseInterface - { - return $this->getVoiceRegions()->then(function () { - $regions = $this->regions->map(function ($region) { - return $region->id; - })->toArray(); - - if (! in_array($this->region, $regions)) { - return self::REGION_DEFAULT; - } - - return 'deprecated'; - }); - } - - /** - * Returns an audit log object for the query. - * - * @link https://discord.com/developers/docs/resources/audit-log#get-guild-audit-log - * - * @param array $options An array of options. - * @param string|Member|User|null $options['user_id'] filter the log for actions made by a user - * @param int|null $options['action_type'] the type of audit log event - * @param string|Entry|null $options['before'] filter the log before a certain entry id (sort by descending) - * @param string|Entry|null $options['affter'] filter the log after a certain entry id (sort by ascending) - * @param int|null $options['limit'] how many entries are returned (default 50, minimum 1, maximum 100) - * - * @throws NoPermissionsException Missing view_audit_log permission. - * - * @return PromiseInterface - */ - public function getAuditLog(array $options = []): PromiseInterface - { - $resolver = new OptionsResolver(); - $resolver->setDefined([ - 'user_id', - 'action_type', - 'before', - 'after', - 'limit', - ]) - ->setAllowedTypes('user_id', ['string', 'int', Member::class, User::class]) - ->setAllowedTypes('action_type', 'int') - ->setAllowedTypes('before', ['string', 'int', Entry::class]) - ->setAllowedTypes('after', ['string', 'int', Entry::class]) - ->setAllowedTypes('limit', 'int') - ->setAllowedValues('action_type', array_values((new ReflectionClass(Entry::class))->getConstants())) - ->setAllowedValues('limit', fn ($value) => ($value >= 1 && $value <= 100)) - ->setNormalizer('user_id', normalizePartId()) - ->setNormalizer('before', normalizePartId()) - ->setNormalizer('after', normalizePartId()); - - $options = $resolver->resolve($options); - - $botperms = $this->getBotPermissions(); - if ($botperms && ! $botperms->view_audit_log) { - return reject(new NoPermissionsException("You do not have permission to view audit log in the guild {$this->id}.")); - } - - $endpoint = Endpoint::bind(Endpoint::AUDIT_LOG, $this->id); - - foreach ($options as $key => $value) { - $endpoint->addQuery($key, $value); - } - - return $this->http - ->get($endpoint) - ->then(fn ($response) => $this->factory->part(AuditLog::class, (array) $response + ['guild_id' => $this->id], true)); - } - - /** - * Returns the bot's permissions in the guild. - * - * @return RolePermission|null - */ - public function getBotPermissions(): ?RolePermission - { - return $this->members->get('id', $this->discord->id)?->getPermissions(); - } - - /** - * Updates the positions of a list of given roles. - * - * @link https://discord.com/developers/docs/resources/guild#modify-guild-role-positions - * - * @param array $roles Associative array where the LHS key is the position, - * and the RHS value is a `Role` object or a string ID, - * e.g. `[1 => 'role_id_1', 3 => 'role_id_3']`. - * - * @throws NoPermissionsException Missing manage_roles permission. - * - * @return PromiseInterface - */ - public function updateRolePositions(array $roles): PromiseInterface - { - $botperms = $this->getBotPermissions(); - if ($botperms && ! $botperms->manage_roles) { - return reject(new NoPermissionsException("You do not have permission to update role positions in the guild {$this->id}.")); - } - - $payload = []; - - foreach ($roles as $position => $role) { - $payload[] = [ - 'id' => ($role instanceof Role) ? $role->id : $role, - 'position' => $position, - ]; - } - - return $this->http->patch(Endpoint::bind(Endpoint::GUILD_ROLES, $this->id), $payload) - ->then(function ($response) { - foreach ($response as $role) { - if ($rolePart = $this->roles->get('id', $role->id)) { - $rolePart->fill((array) $role); - } else { - $rolePart = $this->roles->create($role, true); - $this->roles->pushItem($rolePart); - } - } - - return $this; - }); - } - - /** - * Returns a list of guild member objects whose username or nickname starts - * with a provided string. - * - * @link https://discord.com/developers/docs/resources/guild#search-guild-members - * - * @param array $options An array of options. All fields are optional. - * @param string|null $options['query'] Query string to match username(s) and nickname(s) against - * @param int|null $options['limit'] How many entries are returned (default 1, minimum 1, maximum 1000) - * - * @return PromiseInterface - */ - public function searchMembers(array $options): PromiseInterface - { - $resolver = new OptionsResolver(); - $resolver->setDefined([ - 'query', - 'limit', - ]) - ->setDefault('limit', 1) - ->setAllowedTypes('query', 'string') - ->setAllowedTypes('limit', 'int') - ->setAllowedValues('limit', fn ($value) => ($value >= 1 && $value <= 1000)); - - $options = $resolver->resolve($options); - - $endpoint = Endpoint::bind(Endpoint::GUILD_MEMBERS_SEARCH, $this->id); - $endpoint->addQuery('query', $options['query']); - $endpoint->addQuery('limit', $options['limit']); - - return $this->http->get($endpoint)->then(function ($responses) { - $members = Collection::for(Member::class); - - foreach ($responses as $response) { - if (! $member = $this->members->get('id', $response->user->id)) { - $member = $this->members->create($response, true); - $this->members->pushItem($member); - } - - $members->pushItem($member); - } - - return $members; - }); - } - - /** - * Returns the number of members that would be removed in a prune operation. - * - * @link https://discord.com/developers/docs/resources/guild#get-guild-prune-count - * - * @param array $options An array of options. - * @param int|null $options['days'] Number of days to count prune for (1-30), defaults to 7. - * @param string[]|Role[]|null $options['include_roles'] Roles to include, defaults to none. - * - * @throws NoPermissionsException Missing kick_members permission. - * - * @return PromiseInterface The number of members that would be removed. - */ - public function getPruneCount(array $options = []): PromiseInterface - { - $resolver = new OptionsResolver(); - $resolver->setDefined([ - 'days', - 'include_roles', - ]) - ->setDefault('days', 7) - ->setAllowedTypes('days', 'int') - ->setAllowedTypes('include_roles', 'array') - ->setAllowedValues('days', fn ($value) => ($value >= 1 && $value <= 30)) - ->setNormalizer('include_roles', function ($option, $values) { - foreach ($values as &$value) { - if ($value instanceof Role) { - $value = $value->id; - } - } - - return $values; - }); - - $options = $resolver->resolve($options); - - $botperms = $this->getBotPermissions(); - if ($botperms && ! ($botperms->kick_members && $botperms->manage_guild)) { - return reject(new NoPermissionsException("You do not have permission to get prune count in the guild {$this->id}.")); - } - - $endpoint = Endpoint::bind(Endpoint::GUILD_PRUNE, $this->id); - $endpoint->addQuery('days', $options['days']); - if (isset($options['include_roles'])) { - $endpoint->addQuery('include_roles', implode(',', $options['include_roles'])); - } - - return $this->http->get($endpoint)->then(fn ($response) => $response->pruned); - } - - /** - * Begin a prune members operation. - * For large guilds it's recommended to set the `compute_prune_count` option - * to `false`, forcing 'pruned' to null. - * - * @link https://discord.com/developers/docs/resources/guild#begin-guild-prune - * - * @param array $options An array of options. - * @param int|null $options['days'] Number of days to count prune for (1-30), defaults to 7. - * @param int|null $options['compute_prune_count'] Whether 'pruned' is returned, discouraged for large guilds. - * @param string[]|Role[]|null $options['include_roles'] Roles to include, defaults to none. - * @param string $reason Reason for Audit Log. - * - * @throws NoPermissionsException Missing kick_members permission. - * - * @return PromiseInterface The number of members that were removed in the prune operation. - */ - public function beginPrune(array $options = [], ?string $reason = null): PromiseInterface - { - $resolver = new OptionsResolver(); - $resolver->setDefined([ - 'days', - 'compute_prune_count', - 'include_roles', - ]) - ->setDefaults(['days' => 7, 'compute_prune_count' => true]) - ->setAllowedTypes('days', 'int') - ->setAllowedTypes('compute_prune_count', 'bool') - ->setAllowedTypes('include_roles', 'array') - ->setAllowedValues('days', fn ($value) => ($value >= 1 && $value <= 30)) - ->setNormalizer('include_roles', function ($option, $values) { - foreach ($values as &$value) { - if ($value instanceof Role) { - $value = $value->id; - } - } - - return $values; - }); - - $options = $resolver->resolve($options); - - $botperms = $this->getBotPermissions(); - if ($botperms && ! ($botperms->kick_members && $botperms->manage_guild)) { - return reject(new NoPermissionsException("You do not have permission to prune members in the guild {$this->id}.")); - } - - $headers = []; - if (isset($reason)) { - $headers['X-Audit-Log-Reason'] = $reason; - } - - return $this->http - ->post(Endpoint::bind(Endpoint::GUILD_PRUNE, $this->id), $options, $headers) - ->then(fn ($response) => $response->pruned); - } - - /** - * Get the Welcome Screen for the guild. - * - * @link https://discord.com/developers/docs/resources/guild#get-guild-welcome-screen - * - * @param bool $fresh Whether we should skip checking the cache. - * - * @throws NoPermissionsException Missing manage_guild permission when the welcome screen is not enabled. - * - * @return PromiseInterface - */ - public function getWelcomeScreen(bool $fresh = false): PromiseInterface - { - if (! $this->feature_welcome_screen_enabled) { - $botperms = $this->getBotPermissions(); - if ($botperms && ! $botperms->manage_guild) { - return reject(new NoPermissionsException("You do not have permission to get welcome screen of the guild {$this->id}.")); - } - } - - if (! $fresh && $welcomeScreen = $this->welcome_screen) { - return resolve($welcomeScreen); - } - - return $this->http->get(Endpoint::bind(Endpoint::GUILD_WELCOME_SCREEN, $this->id))->then(function ($response) { - $this->attributes['welcome_screen'] = $response; - - return $this->factory->part(WelcomeScreen::class, (array) $response, true); - }); - } - - /** - * Returns the Welcome Screen object for the guild. - * - * @return WelcomeScreen|null - */ - protected function getWelcomeScreenAttribute(): ?WelcomeScreen - { - if (! isset($this->attributes['welcome_screen'])) { - return null; - } - - return $this->createOf(WelcomeScreen::class, $this->attributes['welcome_screen']); - } - - /** - * Modify the guild's Welcome Screen. Requires the MANAGE_GUILD permission. - * - * @link https://discord.com/developers/docs/resources/guild#modify-guild-welcome-screen - * - * @param array $options An array of options. All fields are optional. - * @param bool|null $options['enabled'] Whether the welcome screen is enabled. - * @param object[]|WelcomeChannel[]|null $options['welcome_channels'] Channels linked in the welcome screen and their display options (maximum 5). - * @param string|null $options['description'] The server description to show in the welcome screen (maximum 140). - * - * @throws NoPermissionsException Missing manage_guild permission. - * - * @return PromiseInterface The updated Welcome Screen. - */ - public function updateWelcomeScreen(array $options): PromiseInterface - { - $resolver = new OptionsResolver(); - $resolver->setDefined([ - 'enabled', - 'welcome_channels', - 'description', - ]) - ->setAllowedTypes('enabled', 'bool') - ->setAllowedTypes('welcome_channels', 'array') - ->setAllowedTypes('description', 'string') - ->setNormalizer('welcome_channels', function ($option, $values) { - foreach ($values as &$value) { - if ($value instanceof WelcomeChannel) { - $value = $value->getRawAttributes(); - } - } - - return $values; - }); - - $options = $resolver->resolve($options); - - $botperms = $this->getBotPermissions(); - if ($botperms && ! $botperms->manage_guild) { - return reject(new NoPermissionsException("You do not have permission to update welcome screen of the guild {$this->id}.")); - } - - return $this->http->patch(Endpoint::bind(Endpoint::GUILD_WELCOME_SCREEN, $this->id), $options)->then(function ($response) { - $this->attributes['welcome_screen'] = $response; - - return $this->factory->part(WelcomeScreen::class, (array) $response, true); - }); - } - - /** - * Fetch the Widget Settings for the guild. - * - * @link https://discord.com/developers/docs/resources/guild#get-guild-widget-settings - * - * @throws NoPermissionsException Missing manage_guild permission. - * - * @return PromiseInterface - */ - public function getWidgetSettings(): PromiseInterface - { - $botperms = $this->getBotPermissions(); - if ($botperms && ! $botperms->manage_guild) { - return reject(new NoPermissionsException("You do not have permission to get widget settings of the guild {$this->id}.")); - } - - return $this->http->get(Endpoint::bind(Endpoint::GUILD_WIDGET_SETTINGS, $this->id))->then(function ($response) { - $this->widget_enabled = $response->enabled; - $this->widget_channel_id = $response->channel_id; - - return $response; - }); - } - - /** - * Modify a guild widget settings object for the guild. All attributes may - * be passed in with JSON and modified. Requires the MANAGE_GUILD permission. - * - * @link https://discord.com/developers/docs/resources/guild#modify-guild-widget - * - * @param array $options An array of options. - * enabled => whether the widget is enabled - * channel_id => the widget channel id - * @param ?string $reason Reason for Audit Log. - * - * @throws NoPermissionsException Missing manage_guild permission. - * - * @return PromiseInterface The updated guild widget object. - */ - public function updateWidgetSettings(array $options, ?string $reason = null): PromiseInterface - { - $resolver = new OptionsResolver(); - $resolver->setDefined([ - 'enabled', - 'channel_id', - ]) - ->setAllowedTypes('enabled', 'bool') - ->setAllowedTypes('channel_id', ['string', 'null']); - - $options = $resolver->resolve($options); - - $botperms = $this->getBotPermissions(); - if ($botperms && ! $botperms->manage_guild) { - return reject(new NoPermissionsException("You do not have permission to update widget settings of the guild {$this->id}.")); - } - - $headers = []; - if (isset($reason)) { - $headers['X-Audit-Log-Reason'] = $reason; - } - - return $this->http->patch(Endpoint::bind(Endpoint::GUILD_WIDGET_SETTINGS, $this->id), $options, $headers)->then(function ($response) { - $this->widget_enabled = $response->enabled; - $this->widget_channel_id = $response->channel_id; - - return $response; - }); - } - - /** - * Get the Widget for the guild. - * - * @link https://discord.com/developers/docs/resources/guild#get-guild-widget - * - * @return PromiseInterface - */ - public function getWidget(): PromiseInterface - { - return (new Widget($this->discord, ['id' => $this->id]))->fetch(); - } - - /** - * Attempts to create an Invite to a channel in this guild where possible. - * - * @see Channel::createInvite() - * - * @throws \RuntimeException No possible channels to create Invite on. - * @throws NoPermissionsException - * - * @return PromiseInterface - */ - public function createInvite(...$args): PromiseInterface - { - $channel = $this->channels->find(function (Channel $channel) { - if ($channel->canInvite()) { - if ($botperms = $channel->getBotPermissions()) { - return $botperms->create_instant_invite; - } - - return true; - } - - return false; - }); - - if (! $channel) { - return reject(new \RuntimeException("No channels found to create an Invite to the guild {$this->id}.")); - } - - return $channel->createInvite($args); - } - - /** - * Modify the Guild `mfa_level`, requires guild ownership. - * - * @link https://discord.com/developers/docs/resources/guild#modify-guild-mfa-level - * - * @param int $level The new MFA level `Guild::MFA_NONE` or `Guild::MFA_ELEVATED`. - * @param string|null $reason Reason for Audit Log. - * - * @return PromiseInterface This guild. - */ - public function updateMFALevel(int $level, ?string $reason = null): PromiseInterface - { - $headers = []; - if (isset($reason)) { - $headers['X-Audit-Log-Reason'] = $reason; - } - - return $this->http->post(Endpoint::bind(Endpoint::GUILD_MFA, $this->id), ['level' => $level], $headers)->then(function ($response) { - $this->mfa_level = $response->level; - - return $this; - }); - } - - /** - * Modify the guild feature. - * - * @link https://discord.com/developers/docs/resources/guild#modify-guild - * @link https://discord.com/developers/docs/resources/guild#guild-object-mutable-guild-features - * - * @param bool[] $features Array of features to set/unset, e.g. `['COMMUNITY' => true, 'INVITES_DISABLED' => false]`. - * @param string|null $reason Reason for Audit Log. - * - * @throws \OutOfRangeException Feature is not mutable. - * @throws \RuntimeException Guild feature is already set. - * @throws NoPermissionsException Missing various permissions: - * administrator for COMMUNITY or DISCOVERABLE. - * manage_guild for INVITES_DISABLED or RAID_ALERTS_ENABLED. - * - * @return PromiseInterface This guild. - */ - public function setFeatures(array $features, ?string $reason = null): PromiseInterface - { - if ($botperms = $this->getBotPermissions()) { - if ((isset($features['COMMUNITY']) || isset($features['DISCOVERABLE'])) && ! $botperms->administrator) { - return reject(new NoPermissionsException('You do not have administrator permission to modify the guild feature COMMUNITY or DISCOVERABLE.')); - } - if ((isset($features['INVITES_DISABLED']) || isset($features['RAID_ALERTS_ENABLED'])) && ! $botperms->manage_guild) { - return reject(new NoPermissionsException('You do not have manage guild permission to modify the guild feature INVITES_DISABLED or RAID_ALERTS_ENABLED.')); - } - } - - $setFeatures = $this->features; - foreach ($features as $feature => $set) { - if (! in_array($feature, ['COMMUNITY', 'INVITES_DISABLED', 'DISCOVERABLE', 'RAID_ALERTS_ENABLED'])) { - return reject(new \OutOfRangeException("Guild feature {$feature} is not mutable")); - } - $featureIdx = array_search($feature, $setFeatures); - if ($set) { - if ($featureIdx !== false) { - return reject(new \RuntimeException("Guild feature {$feature} is already set")); - } - $setFeatures[] = $feature; - } else { - if ($featureIdx === false) { - return reject(new \RuntimeException("Guild feature {$feature} is already not set")); - } - unset($setFeatures[$featureIdx]); - } - } - - $headers = []; - if (isset($reason)) { - $headers['X-Audit-Log-Reason'] = $reason; - } - - return $this->http->patch(Endpoint::bind(Endpoint::GUILD, $this->id), ['features' => array_values($setFeatures)], $headers)->then(function ($response) { - $this->features = $response->features; - - return $this; - }); - } - - /** - * {@inheritDoc} - * - * @link https://discord.com/developers/docs/resources/guild#create-guild-json-params - */ - public function getCreatableAttributes(): array - { - return [ - 'name' => $this->name, - ] + $this->makeOptionalAttributes([ - 'icon' => $this->attributes['icon'] ?? null, - 'verification_level' => $this->verification_level, - 'default_message_notifications' => $this->default_message_notifications, - 'explicit_content_filter' => $this->explicit_content_filter, - 'roles' => array_values(array_map(function (Role $role) { - return $role->getCreatableAttributes(); - }, $this->roles->toArray())), - 'channels' => array_values(array_map(function (Channel $channel) { - return $channel->getCreatableAttributes(); - }, $this->channels->toArray())), - 'afk_channel_id' => $this->afk_channel_id, - 'afk_timeout' => $this->afk_timeout, - 'system_channel_id' => $this->system_channel_id, - 'system_channel_flags' => $this->system_channel_flags, - ]); - } - - /** - * {@inheritDoc} - * - * @link https://discord.com/developers/docs/resources/guild#modify-guild-json-params - */ - public function getUpdatableAttributes(): array - { - return $this->makeOptionalAttributes([ - 'name' => $this->name, - 'verification_level' => $this->verification_level, - 'default_message_notifications' => $this->default_message_notifications, - 'explicit_content_filter' => $this->explicit_content_filter, - 'afk_channel_id' => $this->afk_channel_id, - 'afk_timeout' => $this->afk_timeout, - 'icon' => $this->attributes['icon'] ?? null, - 'splash' => $this->splash_hash, - 'discovery_splash' => $this->attributes['discovery_splash'] ?? null, - 'banner' => $this->attributes['banner'] ?? null, - 'system_channel_id' => $this->system_channel_id, - 'system_channel_flags' => $this->system_channel_flags, - 'rules_channel_id' => $this->rules_channel_id, - 'public_updates_channel_id' => $this->public_updates_channel_id, - 'preferred_locale' => $this->preferred_locale, - 'description' => $this->description, - 'premium_progress_bar_enabled' => $this->premium_progress_bar_enabled, - 'safety_alerts_channel_id' => $this->safety_alerts_channel_id, - ]); - } - - /** - * {@inheritDoc} - */ - public function getRepositoryAttributes(): array - { - return [ - 'guild_id' => $this->id, - ]; - } - - /** - * Returns the timestamp of when the guild was created. - * - * @return ?float - */ - public function createdTimestamp() - { - return \Discord\getSnowflakeTimestamp($this->id); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/GuildTemplate.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/GuildTemplate.php deleted file mode 100644 index 311edb9..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/GuildTemplate.php +++ /dev/null @@ -1,220 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Guild; - -use Carbon\Carbon; -use Discord\Http\Endpoint; -use Discord\Parts\Part; -use Discord\Parts\User\User; -use React\Promise\PromiseInterface; -use Stringable; -use Symfony\Component\OptionsResolver\OptionsResolver; - -/** - * A Guild Template is a code that when used, creates a guild based on a - * snapshot of an existing guild. - * - * @link https://discord.com/developers/docs/resources/guild-template - * - * @since 7.0.0 - * - * @property string $code The template code (unique ID). - * @property string $name Template name. - * @property ?string $description The description for the template. Up to 120 characters. - * @property int $usage_count Number of times this template has been used. - * @property string $creator_id The ID of the user who created the template. - * @property User $creator The user who created the template. - * @property Carbon $created_at A timestamp of when the template was created. - * @property Carbon $updated_at When this template was last synced to the source guild. - * @property string $source_guild_id The ID of the guild this template is based on. - * @property-read Guild|null $source_guild The guild this template is based on. - * @property object $serialized_source_guild The guild snapshot this template contains. - * @property ?bool $is_dirty Whether the template has unsynced changes. - */ -class GuildTemplate extends Part implements Stringable -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'code', - 'name', - 'description', - 'usage_count', - 'creator_id', - 'creator', - 'created_at', - 'updated_at', - 'source_guild_id', - 'serialized_source_guild', - 'is_dirty', - ]; - - /** - * Returns the id attribute. - * - * @return string The id attribute. - */ - protected function getIdAttribute(): string - { - return $this->code; - } - - /** - * Returns the source guild attribute. - * - * @return Guild The guild snapshot this template contains. - */ - protected function getSourceGuildAttribute(): Guild - { - if ($guild = $this->discord->guilds->get('id', $this->source_guild_id)) { - return $guild; - } - - return $this->createOf(Guild::class, $this->attributes['serialized_source_guild']); - } - - /** - * Gets the user that created the template. - * - * @return User - */ - protected function getCreatorAttribute(): User - { - if ($creator = $this->discord->users->get('id', $this->creator_id)) { - return $creator; - } - - return $this->factory->part(User::class, (array) $this->attributes['creator'], true); - } - - /** - * Returns the created at attribute. - * - * @return Carbon The time that the guild template was created. - * - * @throws \Exception - */ - protected function getCreatedAtAttribute(): Carbon - { - return new Carbon($this->attributes['created_at']); - } - - /** - * Returns the updated at attribute. - * - * @return Carbon The time that the guild template was updated. - * - * @throws \Exception - */ - protected function getUpdatedAtAttribute(): Carbon - { - return new Carbon($this->attributes['updated_at']); - } - - /** - * Creates a guild from this template. Can be used only by bots in less than - * 10 guilds. - * - * @link https://discord.com/developers/docs/resources/guild-template#create-guild-from-guild-template - * - * @param array $options An array of options. - * @param string $options['name'] The name of the guild (2-100 characters). - * @param string|null $options['icon'] The base64 128x128 image for the guild icon. - * - * @return PromiseInterface - */ - public function createGuild($options = []): PromiseInterface - { - $resolver = new OptionsResolver(); - $resolver - ->setRequired('name') - ->setDefined([ - 'name', - 'icon', - ]) - ->setAllowedTypes('name', 'string') - ->setAllowedTypes('icon', 'string'); - - $options = $resolver->resolve($options); - - $roles = $channels = []; - if (isset($this->attributes['is_dirty']) && ! $this->is_dirty) { - $roles = $this->attributes['serialized_source_guild']->roles; - $channels = $this->attributes['serialized_source_guild']->channels; - } - - return $this->http->post(Endpoint::bind(Endpoint::GUILDS_TEMPLATE, $this->code), $options) - ->then(function ($response) use ($roles, $channels) { - /** @var ?Guild */ - if (! $guildPart = $this->discord->guilds->get('id', $response->id)) { - /** @var Guild */ - $guildPart = $this->discord->guilds->create((array) $response + ['roles' => $roles], true); - - foreach ($channels as $channel) { - $guildPart->channels->pushItem($guildPart->channels->create($channel, true)); - } - - $this->discord->guilds->pushItem($guildPart); - } - - return $guildPart; - }); - } - - /** - * Returns the template URL. - * - * @return string The URL to the guild template. - */ - public function __toString(): string - { - return 'https://discord.new/'.$this->code; - } - - /** - * {@inheritDoc} - * - * @link https://discord.com/developers/docs/resources/guild-template#create-guild-template-json-params - */ - public function getCreatableAttributes(): array - { - return [ - 'name' => $this->name, - ] + $this->makeOptionalAttributes([ - 'description' => $this->description, - ]); - } - - /** - * {@inheritDoc} - * - * @link https://discord.com/developers/docs/resources/guild-template#modify-guild-template-json-params - */ - public function getUpdatableAttributes(): array - { - return $this->makeOptionalAttributes([ - 'name' => $this->name, - 'description' => $this->description, - ]); - } - - /** - * {@inheritDoc} - */ - public function getRepositoryAttributes(): array - { - return [ - 'template_code' => $this->code, - ]; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/Integration.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/Integration.php deleted file mode 100644 index 616c29f..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/Integration.php +++ /dev/null @@ -1,164 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Guild; - -use Carbon\Carbon; -use Discord\Parts\OAuth\Application; -use Discord\Parts\Part; -use Discord\Parts\User\User; - -/** - * An Integration is a guild integrations for Twitch, YouTube, Bot and Apps. - * - * @link https://discord.com/developers/docs/resources/guild#integration-object - * - * @since 7.0.0 - * - * @property string $id Integration id. - * @property string $name Integration name. - * @property string $type Integration type (twitch, youtube, discord, or guild_subscription). - * @property bool $enabled Is this integration enabled? - * @property bool|null $syncing Is this integration syncing? - * @property string|null $role_id ID that this integration uses for "subscribers". - * @property-read Role|null $role Role that this integration uses for "subscribers". - * @property bool|null $enable_emoticons Whether emoticons should be synced for this integration (twitch only currently). - * @property int|null $expire_behavior The behavior of expiring subscribers. - * @property int|null $expire_grace_period The grace period (in days) before expiring subscribers. - * @property User|null $user User for this integration. - * @property object $account Integration account information. - * @property Carbon|null $synced_at When this integration was last synced. - * @property int|null $subscriber_count How many subscribers this integration has. - * @property bool|null $revoked Has this integration been revoked. - * @property Application|null $application The bot/OAuth2 application for discord integrations. - * @property array|null $scopes The scopes the application has been authorized for. - * - * @property string|null $guild_id - * @property-read Guild|null $guild - */ -class Integration extends Part -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'id', - 'name', - 'type', - 'enabled', - 'syncing', - 'role_id', - 'enable_emoticons', - 'expire_behavior', - 'expire_grace_period', - 'user', - 'account', - 'synced_at', - 'subscriber_count', - 'revoked', - 'application', - 'scopes', - - // events - 'guild_id', - ]; - - /** - * Gets the user that created the integration. - * - * @return User|null - */ - protected function getUserAttribute(): ?User - { - if (! isset($this->attributes['user'])) { - return null; - } - - if ($user = $this->discord->users->get('id', $this->attributes['user']->id)) { - return $user; - } - - return $this->factory->part(User::class, (array) $this->attributes['user'], true); - } - - /** - * Returns the synced_at attribute. - * - * @return Carbon|null The synced_at attribute. - * - * @throws \Exception - */ - protected function getSyncedAtAttribute(): ?Carbon - { - if (! isset($this->attributes['synced_at'])) { - return null; - } - - return new Carbon($this->attributes['synced_at']); - } - - /** - * Returns the application attribute. - * - * @todo return correct Application structure https://discord.com/developers/docs/resources/guild#integration-application-object - * - * @return Application|null - */ - protected function getApplicationAttribute(): ?Application - { - if (! isset($this->attributes['application'])) { - return null; - } - - $botApplication = $this->discord->application; - - if ($this->attributes['application']->id == $botApplication->id) { - return $botApplication; - } - - return $this->factory->part(Application::class, (array) $this->attributes['application'], true); - } - - /** - * Returns the guild attribute of the integration. - * - * @return Guild|null - */ - protected function getGuildAttribute(): ?Guild - { - return $this->discord->guilds->get('id', $this->guild_id); - } - - /** - * Returns the "subscribers" role that this integration used only if guild is cached. - * - * @return Role|null - */ - protected function getRoleAttribute(): ?Role - { - if ($guild = $this->guild) { - return $guild->roles->get('id', $this->attributes['role_id']); - } - - return null; - } - - /** - * {@inheritDoc} - */ - public function getRepositoryAttributes(): array - { - return [ - 'guild_id' => $this->guild_id, - 'integration_id' => $this->id, - ]; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/Role.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/Role.php deleted file mode 100644 index 9e37695..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/Role.php +++ /dev/null @@ -1,186 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Guild; - -use Discord\Parts\Part; -use Discord\Parts\Permissions\RolePermission; -use Stringable; - -/** - * A role defines permissions for the guild. Members can be added to the role. - * The role belongs to a guild. - * - * @link https://discord.com/developers/docs/topics/permissions#role-object - * - * @since 2.0.0 - * - * @property string $id The unique identifier of the role. - * @property string $name The name of the role. - * @property int $color The color of the guild. - * @property bool $hoist Whether the role is hoisted on the sidebar. - * @property ?string|null $icon The URL to the role icon. - * @property-read string|null $icon_hash The icon hash for the role. - * @property ?string|null $unicode_emoji The unicode emoji for the role. - * @property int $position The position of the role on the sidebar. - * @property RolePermission $permissions The permissions of the role. - * @property bool $managed Whether the role is managed by a Twitch subscriber feature. - * @property bool $mentionable Whether the role is mentionable. - * @property object|null $tags The tags this role has (`bot_id`, `integration_id`, `premium_subscriber`, `subscription_listing_id`, `available_for_purchase`, and `guild_connections`). - * - * @property string|null $guild_id The unique identifier of the guild that the role belongs to. - * @property-read Guild|null $guild The guild that the role belongs to. - */ -class Role extends Part implements Stringable -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'id', - 'name', - 'color', - 'hoist', - 'icon', - 'unicode_emoji', - 'position', - 'permissions', - 'managed', - 'mentionable', - 'tags', - - // @internal - 'guild_id', - ]; - - /** - * Gets the permissions attribute. - * - * @return RolePermission The role permission. - * - * @since 10.0.0 Replaced setPermissionsAttribute() to save up memory. - */ - protected function getPermissionsAttribute(): Part - { - return $this->createOf(RolePermission::class, ['bitwise' => $this->attributes['permissions']]); - } - - /** - * Gets the guild attribute. - * - * @return Guild|null The guild attribute. - */ - protected function getGuildAttribute(): ?Guild - { - return $this->discord->guilds->get('id', $this->guild_id); - } - - /** - * Sets the color for a role. RGB. - * - * @param int $red The red value in RGB. - * @param int $green The green value in RGB. - * @param int $blue The blue value in RGB. - */ - public function setColor(int $red = 0, int $green = 0, int $blue = 0): void - { - $this->color = ($red * 16 ** 4 + $green * 16 ** 2 + $blue); - } - - /** - * Returns the role icon. - * - * @param string $format The image format. - * @param int $size The size of the image. - * - * @return string|null The URL to the role icon or null. - */ - public function getIconAttribute(string $format = 'png', int $size = 64): ?string - { - if (! isset($this->attributes['icon'])) { - return null; - } - - $allowed = ['png', 'jpg', 'webp']; - - if (! in_array(strtolower($format), $allowed)) { - $format = 'png'; - } - - return "https://cdn.discordapp.com/role-icons/{$this->id}/{$this->attributes['icon']}.{$format}?size={$size}"; - } - - /** - * Returns the role icon hash. - * - * @return string|null The role icon hash or null. - */ - protected function getIconHashAttribute(): ?string - { - return $this->attributes['icon'] ?? null; - } - - /** - * {@inheritDoc} - * - * @link https://discord.com/developers/docs/resources/guild#create-guild-role-json-params - */ - public function getCreatableAttributes(): array - { - return $this->makeOptionalAttributes([ - 'name' => $this->name, - 'permissions' => (string) $this->getPermissionsAttribute(), - 'color' => $this->color, - 'hoist' => $this->hoist, - 'icon' => $this->getIconHashAttribute(), - 'unicode_emoji' => $this->unicode_emoji, - 'mentionable' => $this->mentionable, - ]); - } - - /** - * {@inheritDoc} - * - * @link https://discord.com/developers/docs/resources/guild#modify-guild-role-json-params - */ - public function getUpdatableAttributes(): array - { - return $this->makeOptionalAttributes([ - 'name' => $this->name, - 'permissions' => (string) $this->getPermissionsAttribute(), - 'color' => $this->color, - 'hoist' => $this->hoist, - 'icon' => $this->getIconHashAttribute(), - 'unicode_emoji' => $this->unicode_emoji, - 'mentionable' => $this->mentionable, - ]); - } - - /** - * {@inheritDoc} - */ - public function getRepositoryAttributes(): array - { - return [ - 'role_id' => $this->id, - ]; - } - - /** - * Returns a formatted mention. - * - * @return string A formatted mention. - */ - public function __toString(): string - { - return "<@&{$this->id}>"; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/ScheduledEvent.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/ScheduledEvent.php deleted file mode 100644 index 49b5717..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/ScheduledEvent.php +++ /dev/null @@ -1,323 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Guild; - -use Carbon\Carbon; -use Discord\Helpers\Collection; -use Discord\Http\Endpoint; -use Discord\Parts\Channel\Channel; -use Discord\Parts\Part; -use Discord\Parts\User\User; -use React\Promise\PromiseInterface; -use Symfony\Component\OptionsResolver\OptionsResolver; - -use function React\Promise\reject; - -/** - * A representation of a scheduled event in a guild. - * - * @link https://discord.com/developers/docs/resources/guild-scheduled-event - * - * @since 7.0.0 - * - * @property string $id The id of the scheduled event. - * @property string $guild_id The guild id which the scheduled event belongs to. - * @property-read Guild|null $guild The guild which the scheduled event belongs to. - * @property ?string|null $channel_id The channel id in which the scheduled event will be hosted, or null if scheduled entity type is EXTERNAL. - * @property-read Channel|null $channel The channel in which the scheduled event will be hosted, or null. - * @property ?string|null $creator_id The id of the user that created the scheduled event. - * @property string $name The name of the scheduled event (1-100 characters). - * @property ?string|null $description The description of the scheduled event (1-1000 characters). - * @property Carbon $scheduled_start_time The time the scheduled event will start. - * @property Carbon|null $scheduled_end_time The time the scheduled event will end, required if entity_type is EXTERNAL. - * @property int $privacy_level The privacy level of the scheduled event. - * @property int $status The status of the scheduled event. - * @property int $entity_type The type of the scheduled event. - * @property ?string $entity_id The id of an entity associated with a guild scheduled event. - * @property ?object $entity_metadata Additional metadata for the guild scheduled event. - * @property User|null $creator The user that created the scheduled event. - * @property int|null $user_count The number of users subscribed to the scheduled event. - * @property ?string|null $image The cover image URL of the scheduled event. - * @property-read string|null $image_hash The cover image hash of the scheduled event. - */ -class ScheduledEvent extends Part -{ - public const PRIVACY_LEVEL_GUILD_ONLY = 2; - - public const ENTITY_TYPE_STAGE_INSTANCE = 1; - public const ENTITY_TYPE_VOICE = 2; - public const ENTITY_TYPE_EXTERNAL = 3; - - public const STATUS_SCHEDULED = 1; - public const STATUS_ACTIVE = 2; - public const STATUS_COMPLETED = 3; - public const STATUS_CANCELED = 4; - - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'id', - 'guild_id', - 'channel_id', - 'creator_id', - 'name', - 'description', - 'image', - 'scheduled_start_time', - 'scheduled_end_time', - 'privacy_level', - 'status', - 'entity_type', - 'entity_id', - 'entity_metadata', - 'creator', - 'user_count', - ]; - - /** - * Get a list of guild scheduled event users subscribed to a guild scheduled - * event. - * Returns a list of guild scheduled event user objects on success. - * Guild member data, if it exists, is included if the with_member query - * parameter is set. - * - * @link https://discord.com/developers/docs/resources/guild-scheduled-event#get-guild-scheduled-event-users - * - * @param array $options - * - * @throws \RangeException - * - * @return PromiseInterface> - */ - public function getUsers(array $options): PromiseInterface - { - $resolver = new OptionsResolver(); - $resolver->setDefaults(['limit' => 100, 'with_member' => false]); - $resolver->setDefined(['before', 'after']); - $resolver->setAllowedTypes('before', [User::class, 'string']); - $resolver->setAllowedTypes('after', [User::class, 'string']); - $resolver->setAllowedTypes('with_member', 'bool'); - $resolver->setAllowedValues('limit', fn ($value) => ($value >= 1 && $value <= 100)); - - $options = $resolver->resolve($options); - if (isset($options['before'], $options['after'])) { - return reject(new \RangeException('Can only specify one of before after.')); - } - - $endpoint = Endpoint::bind(Endpoint::GUILD_SCHEDULED_EVENT_USERS, $this->guild_id, $this->id); - $endpoint->addQuery('limit', $options['limit']); - $endpoint->addQuery('with_member', $options['with_member']); - - if (isset($options['before'])) { - $endpoint->addQuery('before', $options['before'] instanceof User ? $options['before']->id : $options['before']); - } - if (isset($options['after'])) { - $endpoint->addQuery('after', $options['after'] instanceof User ? $options['after']->id : $options['after']); - } - - return $this->http->get($endpoint)->then(function ($responses) { - $users = new Collection(); - - $guild = $this->guild; - - foreach ($responses as $response) { - if (isset($response->member) && ! $user = $guild->members->get('id', $response->user->id)) { - $user = $guild->members->create($response->member, true); - $guild->members->pushItem($user); - } elseif (! $user = $this->discord->users->get('id', $response->user->id)) { - $user = $this->discord->users->create($response->user, true); - $this->discord->users->pushItem($user); - } - - $users->pushItem($user); - } - - return $users; - }); - } - - /** - * Returns the guild attribute. - * - * @return Guild|null The guild which the scheduled event belongs to. - */ - protected function getGuildAttribute(): ?Guild - { - return $this->discord->guilds->get('id', $this->attributes['guild_id']); - } - - /** - * Returns the channel attribute. - * - * @return Channel|null The channel in which the scheduled event will be hosted, or null. - */ - protected function getChannelAttribute(): ?Channel - { - if (! isset($this->attributes['channel_id'])) { - return null; - } - - if ($guild = $this->guild) { - if ($channel = $guild->channels->get('id', $this->channel_id)) { - return $channel; - } - } - - return $this->discord->getChannel($this->attributes['channel_id']); - } - - /** - * Returns the image attribute. - * - * @param string|null $format The image format. - * @param int $size The size of the image. - * - * @return string|null The URL to the guild scheduled event cover image if exists. - */ - public function getImageAttribute(?string $format = null, int $size = 1024): ?string - { - if (! isset($this->attributes['image'])) { - return null; - } - - $allowed = ['png', 'jpg', 'webp']; - - if (! in_array(strtolower($format), $allowed)) { - $format = 'png'; - } - - return "https://cdn.discordapp.com/guild-events/{$this->id}/{$this->attributes['image']}.{$format}?size={$size}"; - } - - /** - * Returns the image hash. - * - * @return string|null The guild scheduled event cover image hash if exists. - */ - protected function getImageHashAttribute(): ?string - { - return $this->attributes['image'] ?? null; - } - - /** - * Returns the created at attribute. - * - * @return Carbon The time the scheduled event will start. - * - * @throws \Exception - */ - protected function getScheduledStartTimeAttribute(): Carbon - { - return new Carbon($this->attributes['scheduled_start_time']); - } - - /** - * Returns the created at attribute. - * - * @return Carbon|null The time the scheduled event will end, required if entity_type is EXTERNAL. - * - * @throws \Exception - */ - protected function getScheduledEndTimeAttribute(): ?Carbon - { - if (! isset($this->attributes['scheduled_end_time'])) { - return null; - } - - return new Carbon($this->attributes['scheduled_end_time']); - } - - /** - * Gets the user that created the scheduled event. - * - * @return User|null The user that created the scheduled event. - */ - protected function getCreatorAttribute(): ?User - { - if (isset($this->attributes['creator_id']) && $user = $this->discord->users->get('id', $this->attributes['creator_id'])) { - return $user; - } - - if (isset($this->attributes['creator'])) { - if ($user = $this->discord->users->get('id', $this->attributes['creator']->id)) { - return $user; - } - - return $this->factory->part(User::class, (array) $this->attributes['creator'], true); - } - - return null; - } - - /** - * {@inheritDoc} - * - * @link https://discord.com/developers/docs/resources/guild-scheduled-event#create-guild-scheduled-event-json-params - */ - public function getCreatableAttributes(): array - { - return [ - 'channel_id' => $this->channel_id, - 'entity_metadata' => $this->entity_metadata, - 'name' => $this->name, - 'privacy_level' => $this->privacy_level, - 'scheduled_start_time' => $this->attributes['scheduled_start_time'], - 'scheduled_end_time' => $this->attributes['scheduled_end_time'], - 'description' => $this->description, - 'entity_type' => $this->entity_type, - 'image' => $this->image_hash, - ]; - } - - /** - * {@inheritDoc} - * - * @link https://discord.com/developers/docs/resources/guild-scheduled-event#modify-guild-scheduled-event-json-params - */ - public function getUpdatableAttributes(): array - { - $attr = [ - 'name' => $this->name, - 'privacy_level' => $this->privacy_level, - 'scheduled_start_time' => $this->attributes['scheduled_start_time'], - 'scheduled_end_time' => $this->attributes['scheduled_end_time'], - 'entity_type' => $this->entity_type, - 'status' => $this->status, - 'image' => $this->image_hash, - ]; - - if (array_key_exists('channel_id', $this->attributes)) { - $attr['channel_id'] = $this->channel_id; - } - - if (array_key_exists('entity_metadata', $this->attributes)) { - $attr['entity_metadata'] = $this->entity_metadata; - } - - if (array_key_exists('description', $this->attributes)) { - $attr['description'] = $this->description; - } - - return $attr; - } - - /** - * {@inheritDoc} - */ - public function getRepositoryAttributes(): array - { - return [ - 'guild_scheduled_event_id' => $this->id, - ]; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/Sound.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/Sound.php deleted file mode 100644 index e7ffbbb..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/Sound.php +++ /dev/null @@ -1,127 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Guild; - -use Discord\Parts\Part; -use Discord\Parts\User\User; -use Stringable; - -/** - * An sound object represents a soundboard sound. - * - * @link https://discord.com/developers/docs/resources/soundboard - * - * @since 10.0.0 - * - * @property string $name The name of this sound. - * @property ?string $sound_id The identifier for this sound. - * @property double $volume The volume of this sound, from 0 to 1. - * @property ?string $emoji_id The identifier for this sound's custom emoji. - * @property ?string $emoji_name The unicode character of this sound's standard emoji. - * @property ?string $guild_id The identifier of the guild this sound is in. - * @property bool $available Whether this sound can be used, may be false due to loss of Server Boosts. - * @property User|null $user The user who created this sound. - * @property-read Guild|null $guild The guild that owns the sound. - */ -class Sound extends Part implements Stringable -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'name', - 'sound_id', - 'volume', - 'emoji_id', - 'emoji_name', - 'guild_id', - 'available', - 'user', - ]; - - /** - * Returns the guild attribute. - * - * @return Guild|null The guild the sound belongs to. - */ - protected function getGuildAttribute(): ?Guild - { - return $this->discord->guilds->get('id', $this->guild_id); - } - - /** - * Gets the user that created the sound. - * - * @return User|null - */ - protected function getUserAttribute(): ?User - { - if (! isset($this->attributes['user'])) { - return null; - } - - if ($user = $this->discord->users->get('id', $this->attributes['user']->id)) { - return $user; - } - - return $this->factory->part(User::class, (array) $this->attributes['user'], true); - } - - /** - * Returns the URL of the sound. - * - * @return string|null - */ - public function getURL(): ?string - { - if (! isset($this->sound_id)) { - return null; - } - - return "https://cdn.discordapp.com/soundboard-sounds/{$this->sound_id}"; - } - - /** - * Converts the sound to a string. - * - * @return string - */ - public function __toString(): string - { - return $this->name; - } - - /** - * {@inheritDoc} - * - * @link https://discord.com/developers/docs/resources/soundboard#modify-guild-soundboard-sound - */ - public function getUpdatableAttributes(): array - { - return $this->makeOptionalAttributes([ - 'name' => $this->name, - 'volume' => $this->volume, - 'emoji_id' => $this->emoji_id, - 'emoji_name' => $this->emoji_name, - ]); - } - - /** - * {@inheritDoc} - */ - public function getRepositoryAttributes(): array - { - return [ - 'sound_id' => $this->sound_id, - ]; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/Sticker.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/Sticker.php deleted file mode 100644 index 049daf1..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/Sticker.php +++ /dev/null @@ -1,177 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Guild; - -use Discord\Parts\Part; -use Discord\Parts\User\User; -use Stringable; - -/** - * A sticker that can be sent in a Discord message. - * - * @link https://discord.com/developers/docs/resources/sticker#sticker-object-sticker-structure - * - * @since 7.0.0 Namespace moved from Channel to Guild - * @since 6.0.0 - * - * @property string $id The identifier for the sticker. - * @property string|null $pack_id For standard stickers, id of the pack the sticker is from. - * @property string $name The name of the sticker. - * @property ?string $description The description of the sticker. - * @property array $tags Autocomplete/suggestion tags for the sticker (max 200 characters). - * @property int $type The type of sticker. - * @property int $format_type The type of sticker format. - * @property bool|null $available Whether this guild sticker can be used, may be false due to loss of Server Boosts. - * @property string|null $guild_id The identifier of the guild that owns the sticker. - * @property-read Guild|null $guild The guild that owns the sticker. - * @property User|null $user The user that uploaded the guild sticker. - * @property int|null $sort_value The standard sticker's sort order within its pack. - */ -class Sticker extends Part implements Stringable -{ - public const TYPE_STANDARD = 1; - public const TYPE_GUILD = 2; - - public const FORMAT_TYPE_PNG = 1; - public const FORMAT_TYPE_APNG = 2; - public const FORMAT_TYPE_LOTTIE = 3; - public const FORMAT_TYPE_GIF = 4; - - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'id', - 'name', - 'tags', - 'type', - 'format_type', - 'description', - 'pack_id', - 'sort_value', - 'available', - 'guild_id', - 'user', - ]; - - /** - * {@inheritDoc} - */ - public function isPartial(): bool - { - $partial = array_filter($this->attributes, function ($var) { - return isset($var); - }); - - sort($partial); - - return array_keys($partial) == ['format_type', 'name', 'id']; - } - - /** - * Returns the guild attribute. - * - * @return Guild|null The guild the sticker belongs to. - */ - protected function getGuildAttribute(): ?Guild - { - if (! isset($this->attributes['guild_id'])) { - return null; - } - - return $this->discord->guilds->get('id', $this->guild_id); - } - - /** - * Gets the user that created the sticker. - * - * @return User|null - */ - protected function getUserAttribute(): ?User - { - if (! isset($this->attributes['user'])) { - return null; - } - - if ($user = $this->discord->users->get('id', $this->attributes['user']->id)) { - return $user; - } - - return $this->factory->part(User::class, (array) $this->attributes['user'], true); - } - - /** - * Returns the tags attribute. - * - * @return array - */ - protected function getTagsAttribute(): array - { - if ($this->attributes['tags'] ?? null) { - return explode(', ', $this->attributes['tags']); - } - - return []; - } - - /** - * Returns the URL for the sticker. - * - * @return string The URL to the sticker. - */ - public function __toString(): string - { - $format = 'png'; - - switch ($this->attributes['format_type']) { - case self::FORMAT_TYPE_LOTTIE: - $format = 'lottie'; - break; - case self::FORMAT_TYPE_GIF: - $format = 'gif'; - break; - } - - return "https://cdn.discordapp.com/stickers/{$this->id}.{$format}"; - } - - /** - * {@inheritDoc} - * - * @link https://discord.com/developers/docs/resources/sticker#modify-guild-sticker-json-params - */ - public function getUpdatableAttributes(): array - { - return $this->makeOptionalAttributes([ - 'name' => $this->name, - 'description' => $this->description, - 'tags' => $this->attributes['tags'], - ]); - } - - /** - * {@inheritDoc} - */ - public function getRepositoryAttributes(): array - { - if ($this->type == self::TYPE_GUILD) { - return [ - 'guild_id' => $this->guild_id, - 'sticker_id' => $this->id, - ]; - } - - return [ - 'sticker_id' => $this->id, - ]; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/WelcomeChannel.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/WelcomeChannel.php deleted file mode 100644 index e5384ca..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/WelcomeChannel.php +++ /dev/null @@ -1,51 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Guild; - -use Discord\Parts\Channel\Channel; -use Discord\Parts\Part; - -/** - * A Welcome Channel of a Guild. - * - * @link https://discord.com/developers/docs/resources/guild#welcome-screen-object-welcome-screen-channel-structure - * - * @since 7.0.0 - * - * @property string $channel_id The channel's id. - * @property-read Channel|null $channel The channel object. - * @property string $description The description shown for the channel. - * @property ?string $emoji_id The emoji id, if the emoji is custom. - * @property ?string $emoji_name The emoji name if custom, the unicode character if standard, or null if no emoji is set. - */ -class WelcomeChannel extends Part -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'channel_id', - 'description', - 'emoji_id', - 'emoji_name', - ]; - - /** - * Returns the Channel object for the Welcome Screen. - * - * @return Channel|null - */ - protected function getChannelAttribute(): ?Channel - { - return $this->discord->getChannel($this->channel_id); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/WelcomeScreen.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/WelcomeScreen.php deleted file mode 100644 index 3ea37c8..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/WelcomeScreen.php +++ /dev/null @@ -1,52 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Guild; - -use Discord\Helpers\Collection; -use Discord\Parts\Part; - -/** - * A Welcome Screen of a Guild. - * - * @link https://discord.com/developers/docs/resources/guild#welcome-screen-object-welcome-screen-structure - * - * @since 7.0.0 - * - * @property ?string $description The server description shown in the welcome screen. - * @property Collection|WelcomeChannel[] $welcome_channels The channels shown in the welcome screen, up to 5. - */ -class WelcomeScreen extends Part -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'description', - 'welcome_channels', - ]; - - /** - * Returns the Welcome Channels of the Welcome Screen. - * - * @return Collection|WelcomeChannel[] The channels of welcome screen. - */ - protected function getWelcomeChannelsAttribute(): Collection - { - $collection = Collection::for(WelcomeChannel::class, null); - - foreach ($this->attributes['welcome_channels'] ?? [] as $welcome_channel) { - $collection->pushItem($this->createOf(WelcomeChannel::class, $welcome_channel)); - } - - return $collection; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/Widget.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/Widget.php deleted file mode 100644 index d14a25f..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Guild/Widget.php +++ /dev/null @@ -1,128 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Guild; - -use Discord\Http\Endpoint; -use Discord\Http\Http; -use Discord\Parts\Part; -use React\Promise\PromiseInterface; - -/** - * A Widget of a Guild. - * - * @link https://discord.com/developers/docs/resources/guild#guild-widget-object - * - * @since 7.0.0 - * - * @property string $id Guild id. - * @property-read Guild|null $guild Guild. - * @property string $name Guild name (2-100 characters). - * @property ?string $instant_invite Instant invite for the guilds specified widget invite channel. - * @property object[] $channels Voice and stage channels which are accessible by @everyone. - * @property object[] $members Special widget user objects that includes users presence (Limit 100). - * @property int $presence_count Number of online members in this guild. - * - * @property-read string $image - */ -class Widget extends Part -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'id', - 'name', - 'instant_invite', - 'channels', - 'members', - 'presence_count', - ]; - - /** shield style widget with Discord icon and guild members online count. */ - public const STYLE_SHIELD = 'shield'; - - /** - * large image with guild icon, name and online count. "POWERED BY DISCORD" - * as the footer of the widget. - */ - public const STYLE_BANNER1 = 'banner1'; - - /** - * smaller widget style with guild icon, name and online count. Split on the - * right with Discord logo. - */ - public const STYLE_BANNER2 = 'banner2'; - - /** - * large image with guild icon, name and online count. In the footer, - * Discord logo on the left and "Chat Now" on the right. - */ - public const STYLE_BANNER3 = 'banner3'; - - /** - * large Discord logo at the top of the widget. Guild icon, name and online - * count in the middle portion of the widget and a "JOIN MY SERVER" button - * at the bottom. - */ - public const STYLE_BANNER4 = 'banner4'; - - public const STYLE = [ - self::STYLE_SHIELD, - self::STYLE_BANNER1, - self::STYLE_BANNER2, - self::STYLE_BANNER3, - self::STYLE_BANNER4, - ]; - - /** - * {@inheritDoc} - */ - public function fetch(): PromiseInterface - { - return $this->http->get(Endpoint::bind(Endpoint::GUILD_WIDGET, $this->id)) - ->then(function ($response) { - $this->fill((array) $response); - $this->created = true; - - return $this; - }); - } - - /** - * Returns the guild attribute. - * - * @return Guild|null - */ - protected function getGuildAttribute(): ?Guild - { - return $this->discord->guilds->get('id', $this->id); - } - - /** - * Returns a PNG image widget for the guild. Requires no permissions or - * authentication. - * - * @param string $style Style of the widget image returned (default 'shield'). - * - * @return string - */ - public function getImageAttribute(string $style = self::STYLE_SHIELD): string - { - $endpoint = Endpoint::bind(Endpoint::GUILD_WIDGET_IMAGE, $this->id); - - if (in_array(strtolower($style), self::STYLE)) { - $endpoint->addQuery('style', $style); - } - - return Http::BASE_URL.'/'.$endpoint; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Interactions/Command/Choice.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Interactions/Command/Choice.php deleted file mode 100644 index 660acfe..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Interactions/Command/Choice.php +++ /dev/null @@ -1,123 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Interactions\Command; - -use Discord\Discord; -use Discord\Parts\Part; - -use function Discord\poly_strlen; - -/** - * Choice represents a choice that can be given to a command. - * - * @link https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-option-choice-structure - * - * @since 7.0.0 - * - * @property string $name 1-100 character choice name. - * @property ?string[]|null $name_localizations Localization dictionary for the name field. Values follow the same restrictions as name. - * @property string|int|float $value Value of the choice, up to 100 characters if string. - */ -class Choice extends Part -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'name', - 'name_localizations', - 'value', - ]; - - /** - * Creates a new Choice builder. - * - * @param Discord $discord - * @param string $name name of the choice - * @param string|int|float $value value of the choice - * - * @return static - */ - public static function new(Discord $discord, string $name, $value): self - { - return new static($discord, ['name' => $name, 'value' => $value]); - } - - /** - * Sets the name of the choice. - * - * @param string $name name of the choice - * - * @throws \LengthException `$name` is not 1-100 characters long. - * - * @return $this - */ - public function setName(string $name): self - { - $namelen = poly_strlen($name); - if ($namelen < 1) { - throw new \LengthException('Choice name can not be empty.'); - } elseif ($namelen > 100) { - throw new \LengthException('Choice name must be less than or equal to 100 characters.'); - } - - $this->name = $name; - - return $this; - } - - /** - * Sets the name of the choice in another language. - * - * @param string $locale Discord locale code. - * @param string|null $name Localized name of the choice. - * - * @throws \LengthException `$name` is not 1-100 characters long. - * - * @return $this - */ - public function setNameLocalization(string $locale, ?string $name): self - { - if (isset($name)) { - $namelen = poly_strlen($name); - if ($namelen < 1) { - throw new \LengthException('Choice name can not be empty.'); - } elseif ($namelen > 100) { - throw new \LengthException('Choice name must be less than or equal to 100 characters.'); - } - } - - $this->attributes['name_localizations'][$locale] = $name; - - return $this; - } - - /** - * Sets the value of the choice. - * - * @param string|int|float $value value of the choice - * - * @throws \LengthException `string $value` is not 1-100 characters long. - * - * @return $this - */ - public function setValue($value): self - { - if (is_string($value) && poly_strlen($value) > 100) { - throw new \LengthException('Choice value must be less than or equal to 100 characters.'); - } - - $this->value = $value; - - return $this; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Interactions/Command/Command.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Interactions/Command/Command.php deleted file mode 100644 index 139bc83..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Interactions/Command/Command.php +++ /dev/null @@ -1,189 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Interactions\Command; - -use Discord\Helpers\Collection; -use Discord\Parts\Guild\Guild; -use Discord\Parts\Part; -use Stringable; - -/** - * Represents a command registered on the Discord servers. - * - * @link https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-structure - * - * @since 7.0.0 - * - * @property string $id The unique identifier of the command. - * @property string $application_id The unique identifier of the parent Application that made the command, if made by one. - * @property string|null $guild_id The unique identifier of the guild that the command belongs to. Null if global. - * @property-read Guild|null $guild The guild that the command belongs to. Null if global. - * @property string $version Autoincrementing version identifier updated during substantial record changes. - */ -class Command extends Part implements Stringable -{ - use \Discord\Builders\CommandAttributes; - - /** Slash commands; a text-based command that shows up when a user types / */ - public const CHAT_INPUT = 1; - - /** A UI-based command that shows up when you right click or tap on a user */ - public const USER = 2; - - /** A UI-based command that shows up when you right click or tap on a message */ - public const MESSAGE = 3; - - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'id', - 'type', - 'application_id', - 'guild_id', - 'name', - 'name_localizations', - 'description', - 'description_localizations', - 'options', - 'default_member_permissions', - 'dm_permission', - 'default_permission', - 'nsfw', - 'version', - ]; - - /** - * Gets the application id attribute. - * - * @return string Application ID of this Bot if not set. - */ - protected function getApplicationIdAttribute(): string - { - if (! isset($this->attributes['application_id'])) { - return $this->discord->application->id; - } - - return $this->attributes['application_id']; - } - - /** - * Gets the options attribute. - * - * @return Collection|Option[]|null A collection of options. - */ - protected function getOptionsAttribute(): ?Collection - { - if (! isset($this->attributes['options']) && (isset($this->type) && $this->type != self::CHAT_INPUT)) { - return null; - } - - $options = Collection::for(Option::class, null); - - foreach ($this->attributes['options'] ?? [] as $option) { - $options->pushItem($this->createOf(Option::class, $option)); - } - - return $options; - } - - /** - * Returns the guild attribute. - * - * @return Guild|null The guild attribute. `null` for global command. - */ - protected function getGuildAttribute(): ?Guild - { - if (! isset($this->attributes['guild_id'])) { - return null; - } - - return $this->discord->guilds->get('id', $this->guild_id); - } - - /** - * {@inheritDoc} - * - * @link https://discord.com/developers/docs/interactions/application-commands#create-global-application-command-json-params - * @link https://discord.com/developers/docs/interactions/application-commands#create-guild-application-command-json-params - */ - public function getCreatableAttributes(): array - { - $attr = [ - 'name' => $this->name, - ]; - - $attr += $this->makeOptionalAttributes([ - 'name_localizations' => $this->name_localizations, - 'description' => $this->description, - 'description_localizations' => $this->description_localizations, - 'options', - 'default_member_permissions' => $this->default_member_permissions, - 'default_permission' => $this->default_permission, - 'type' => $this->type, - 'nsfw' => $this->nsfw, - - 'dm_permission' => $this->dm_permission, // Guild command might omit this fillable - ]); - - return $attr; - } - - /** - * {@inheritDoc} - * - * @link https://discord.com/developers/docs/interactions/application-commands#edit-global-application-command-json-params - */ - public function getUpdatableAttributes(): array - { - $attr = $this->makeOptionalAttributes([ - 'name' => $this->name, - 'name_localizations' => $this->name_localizations, - 'description' => $this->description, - 'description_localizations' => $this->description_localizations, - 'options', - 'default_member_permissions' => $this->default_member_permissions, - 'default_permission' => $this->default_permission, - 'nsfw' => $this->nsfw, - ]); - - if (! isset($this->guild_id)) { - $attr += $this->makeOptionalAttributes([ - 'dm_permission' => $this->dm_permission, - ]); - } - - return $attr; - } - - /** - * {@inheritDoc} - */ - public function getRepositoryAttributes(): array - { - return [ - 'guild_id' => $this->guild_id, - 'application_id' => $this->application_id, - 'command_id' => $this->id, - ]; - } - - /** - * Returns a formatted mention of the command. - * - * @return string A formatted mention of the command. - */ - public function __toString(): string - { - return "name}:{$this->id}>"; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Interactions/Command/Option.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Interactions/Command/Option.php deleted file mode 100644 index 6900ff6..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Interactions/Command/Option.php +++ /dev/null @@ -1,436 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Interactions\Command; - -use Discord\Helpers\Collection; -use Discord\Parts\Part; - -use function Discord\poly_strlen; - -/** - * Option represents an array of options that can be given to a command. - * - * @link https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-option-structure - * - * @since 7.0.0 - * - * @property int $type Type of the option. - * @property string $name Name of the option. - * @property ?string[]|null $name_localizations Localization dictionary for the name field. Values follow the same restrictions as name. - * @property string $description 1-100 character description. - * @property ?string[]|null $description_localizations Localization dictionary for the description field. Values follow the same restrictions as description. - * @property bool|null $required If the parameter is required or optional--default false. - * @property Collection|Choice[]|null $choices Choices for STRING, INTEGER, and NUMBER types for the user to pick from, max 25. Only for slash commands. - * @property Collection|Option[] $options Sub-options if applicable. - * @property array|null $channel_types If the option is a channel type, the channels shown will be restricted to these types. - * @property int|float|null $min_value If the option is an INTEGER or NUMBER type, the minimum value permitted. - * @property int|float|null $max_value If the option is an INTEGER or NUMBER type, the maximum value permitted. - * @property int|null $min_length For option type `STRING`, the minimum allowed length (minimum of `0`, maximum of `6000`). - * @property int|null $max_length For option type `STRING`, the maximum allowed length (minimum of `1`, maximum of `6000`). - * @property bool|null $autocomplete Enable autocomplete interactions for this option. - */ -class Option extends Part -{ - public const SUB_COMMAND = 1; - public const SUB_COMMAND_GROUP = 2; - public const STRING = 3; - public const INTEGER = 4; // Any integer between -2^53 and 2^53 - public const BOOLEAN = 5; - public const USER = 6; - public const CHANNEL = 7; // Includes all channel types + categories - public const ROLE = 8; - public const MENTIONABLE = 9; // Includes users and roles - public const NUMBER = 10; // Any double between -2^53 and 2^53 - public const ATTACHMENT = 11; - - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'type', - 'name', - 'name_localizations', - 'description', - 'description_localizations', - 'required', - 'choices', - 'options', - 'channel_types', - 'min_value', - 'max_value', - 'min_length', - 'max_length', - 'autocomplete', - ]; - - /** - * Gets the choices attribute. - * - * @return Collection|Choice[]|null A collection of choices. - */ - protected function getChoicesAttribute(): ?Collection - { - if (! isset($this->attributes['choices']) && ! in_array($this->type, [self::STRING, self::INTEGER, self::NUMBER])) { - return null; - } - - $choices = Collection::for(Choice::class, null); - - foreach ($this->attributes['choices'] ?? [] as $choice) { - $choices->pushItem($this->createOf(Choice::class, $choice)); - } - - return $choices; - } - - /** - * Gets the options attribute. - * - * @return Collection|Option[] A collection of options. - */ - protected function getOptionsAttribute(): Collection - { - $options = Collection::for(Option::class, null); - - foreach ($this->attributes['options'] ?? [] as $option) { - $options->pushItem($this->createOf(Option::class, $option)); - } - - return $options; - } - - /** - * Sets the type of the option. - * - * @param int $type type of the option. - * - * @throws \InvalidArgumentException `$type` is not 1-11. - * - * @return $this - */ - public function setType(int $type): self - { - if ($type < 1 || $type > 11) { - throw new \InvalidArgumentException('Invalid type provided.'); - } - - $this->type = $type; - - return $this; - } - - /** - * Sets the name of the option. - * CHAT_INPUT command option names must match the following regex ^[\w-]{1,32}$ with the unicode flag set. - * If there is a lowercase variant of any letters used, you must use those. - * Characters with no lowercase variants and/or uncased letters are still allowed. - * - * @param string $name name of the option. Slash command option names are lowercase. - * - * @throws \LengthException `$name` is more than 32 characters. - * - * @return $this - */ - public function setName(string $name): self - { - if (poly_strlen($name) > 32) { - throw new \LengthException('Name must be less than or equal to 32 characters.'); - } - - $this->name = $name; - - return $this; - } - - /** - * Sets the name of the option in another language. - * CHAT_INPUT command option names must match the following regex ^[\w-]{1,32}$ with the unicode flag set. - * If there is a lowercase variant of any letters used, you must use those. - * Characters with no lowercase variants and/or uncased letters are still allowed. - * - * @param string $locale Discord locale code. - * @param string|null $name Localized name of the option. Slash command option names are lowercase. - * - * @throws \LengthException `$name` is more than 32 characters. - * - * @return $this - */ - public function setNameLocalization(string $locale, ?string $name): self - { - if (isset($name) && poly_strlen($name) > 32) { - throw new \LengthException('Name must be less than or equal to 32 characters.'); - } - - $this->attributes['name_localizations'][$locale] = $name; - - return $this; - } - - /** - * Sets the description of the option. - * - * @param string $description description of the option. - * - * @throws \LengthException `$description` is more than 100 characters. - * - * @return $this - */ - public function setDescription(string $description): self - { - if (poly_strlen($description) > 100) { - throw new \LengthException('Description must be less than or equal to 100 characters.'); - } - - $this->description = $description; - - return $this; - } - - /** - * Sets the description of the option in another language. - * - * @param string $locale Discord locale code. - * @param string|null $description Localized description of the option. - * - * @throws \LengthException `$description` is more than 100 characters. - * - * @return $this - */ - public function setDescriptionLocalization(string $locale, ?string $description): self - { - if (isset($description) && poly_strlen($description) > 100) { - throw new \LengthException('Description must be less than or equal to 100 characters.'); - } - - $this->attributes['description_localizations'][$locale] = $description; - - return $this; - } - - /** - * Sets the requirement of the option. - * - * @param bool $required requirement of the option (default false) - * - * @return $this - */ - public function setRequired(bool $required = false): self - { - $this->required = $required; - - return $this; - } - - /** - * Sets the channel types of the option. - * - * @param array|null $types types of the channel. - * - * @return $this - */ - public function setChannelTypes(?array $types): self - { - $this->channel_types = $types; - - return $this; - } - - /** - * Adds an option to the option. - * - * @param Option $option The option. - * - * @throws \OverflowException Command exceeds maximum 25 sub options. - * - * @return $this - */ - public function addOption(Option $option): self - { - if (count($this->options) >= 25) { - throw new \OverflowException('Option can not have more than 25 parameters.'); - } - - $this->attributes['options'][] = $option->getRawAttributes(); - - return $this; - } - - /** - * Adds a choice to the option (Only for slash commands). - * - * @param Choice $choice The choice. - * - * @throws \OverflowException Command exceeds maximum 25 choices. - * - * @return $this - */ - public function addChoice(Choice $choice): self - { - if (count($this->choices ?? []) >= 25) { - throw new \OverflowException('Option can only have a maximum of 25 Choices.'); - } - - $this->attributes['choices'][] = $choice->getRawAttributes(); - - return $this; - } - - /** - * Removes an option. - * - * @param string|Option $option Option object or name to remove. - * - * @return $this - */ - public function removeOption($option): self - { - if ($option instanceof Option) { - $option = $option->name; - } - - foreach ($this->attributes['options'] ?? [] as $idx => $opt) { - if ($opt['name'] == $option) { - unset($this->attributes['options'][$idx]); - break; - } - } - - return $this; - } - - /** - * Removes a choice (Only for slash commands). - * - * @param string|Choice $choice Choice object or name to remove. - * - * @return $this - */ - public function removeChoice($choice): self - { - if ($choice instanceof Choice) { - $choice = $choice->name; - } - - foreach ($this->attributes['choices'] ?? [] as $idx => $cho) { - if ($cho['name'] == $choice) { - unset($this->attributes['choices'][$idx]); - break; - } - } - - return $this; - } - - /** - * Sets the minimum value permitted. - * - * @param int|float|null $min_value integer for INTEGER options, double for NUMBER options. - * - * @return $this - */ - public function setMinValue($min_value): self - { - $this->min_value = $min_value; - - return $this; - } - - /** - * Sets the maximum value permitted. - * - * @param int|float|null $max_value integer for INTEGER options, double for NUMBER options - * - * @return $this - */ - public function setMaxValue($max_value): self - { - $this->max_value = $max_value; - - return $this; - } - - /** - * Sets the minimum length permitted. - * - * @param int|null $min_length For option type `STRING`, the minimum allowed length (minimum of `0`). - * - * @throws \LogicException - * @throws \LengthException - * - * @return $this - */ - public function setMinLength(?int $min_length): self - { - if (isset($min_length)) { - if ($this->type != self::STRING) { - throw new \LogicException('Minimum length can be only set on Option type STRING.'); - } elseif ($min_length < 0 || $min_length > 6000) { - throw new \LengthException('Minimum length must be between 0 and 6000 inclusive.'); - } - } - - $this->min_length = $min_length; - - return $this; - } - - /** - * Sets the maximum length permitted. - * - * @param int|null $max_length For option type `STRING`, the maximum allowed length (minimum of `1`). - * - * @throws \LogicException - * @throws \LengthException - * - * @return $this - */ - public function setMaxLength(?int $max_length): self - { - if (isset($max_length)) { - if ($this->type != self::STRING) { - throw new \LogicException('Maximum length can be only set on Option type STRING.'); - } elseif ($max_length < 1 || $max_length > 6000) { - throw new \LengthException('Maximum length must be between 1 and 6000 inclusive.'); - } - } - - $this->max_length = $max_length; - - return $this; - } - - /** - * Sets the autocomplete interactions for this option. - * - * @param bool|null $autocomplete enable autocomplete interactions for this option. - * - * @throws \DomainException Command option type is not string/integer/number. - * - * @return $this - */ - public function setAutoComplete(?bool $autocomplete): self - { - if ($autocomplete) { - if (! empty($this->attributes['choices'])) { - throw new \DomainException('Autocomplete may not be set to true if choices are present.'); - } - - if (! in_array($this->type, [self::STRING, self::INTEGER, self::NUMBER])) { - throw new \DomainException('Autocomplete may be only set to true if option type is STRING, INTEGER, or NUMBER.'); - } - } - - $this->autocomplete = $autocomplete; - - return $this; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Interactions/Command/Permission.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Interactions/Command/Permission.php deleted file mode 100644 index 1313a78..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Interactions/Command/Permission.php +++ /dev/null @@ -1,41 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Interactions\Command; - -use Discord\Parts\Part; - -/** - * Application Command Permissions Class. - * - * @link https://discord.com/developers/docs/interactions/application-commands#application-command-permissions-object-application-command-permissions-structure - * - * @since 7.0.0 - * - * @property string $id The id of the role / user / channel - * @property int $type Role / user / channel - * @property bool $permission True to allow, false, to disallow - */ -class Permission extends Part -{ - public const TYPE_ROLE = 1; - public const TYPE_USER = 2; - public const TYPE_CHANNEL = 3; - - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'id', - 'type', - 'permission', - ]; -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Interactions/Interaction.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Interactions/Interaction.php deleted file mode 100644 index 0def5a3..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Interactions/Interaction.php +++ /dev/null @@ -1,631 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Interactions; - -use Discord\Builders\Components\Component; -use Discord\Builders\MessageBuilder; -use Discord\Helpers\Collection; -use Discord\Helpers\Multipart; -use Discord\Http\Endpoint; -use Discord\Parts\Channel\Channel; -use Discord\Parts\Channel\Message; -use Discord\Parts\Guild\Guild; -use Discord\Parts\Interactions\Command\Choice; -use Discord\Parts\Interactions\Request\Component as RequestComponent; -use Discord\Parts\Interactions\Request\InteractionData; -use Discord\Parts\Part; -use Discord\Parts\Permissions\ChannelPermission; -use Discord\Parts\Thread\Thread; -use Discord\Parts\User\Member; -use Discord\Parts\User\User; -use Discord\WebSockets\Event; -use React\Promise\PromiseInterface; - -use function Discord\poly_strlen; -use function React\Promise\reject; - -/** - * Represents an interaction from Discord. - * - * @link https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object - * - * @since 7.0.0 - * - * @property string $id ID of the interaction. - * @property string $application_id ID of the application the interaction is for. - * @property int $type Type of interaction. - * @property InteractionData|null $data Data associated with the interaction. - * @property string|null $guild_id ID of the guild the interaction was sent from. - * @property-read Guild|null $guild Guild the interaction was sent from. - * @property string|null $channel_id ID of the channel the interaction was sent from. - * @property-read Channel|null $channel Channel the interaction was sent from. - * @property Member|null $member Member who invoked the interaction. - * @property User|null $user User who invoked the interaction. - * @property string $token Continuation token for responding to the interaction. - * @property-read int $version Version of interaction. - * @property Message|null $message Message that triggered the interactions, when triggered from message components. - * @property-read ChannelPermission|null $app_permissions Bitwise set of permissions the app or bot has within the channel the interaction was sent from. - * @property string|null $locale The selected language of the invoking user. - * @property string|null $guild_locale The guild's preferred locale, if invoked in a guild. - */ -class Interaction extends Part -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'id', - 'application_id', - 'type', - 'data', - 'guild_id', - 'channel', - 'channel_id', - 'member', - 'user', - 'token', - 'version', - 'message', - 'app_permissions', - 'locale', - 'guild_locale', - ]; - - /** - * Whether we have responded to the interaction yet. - * - * @var bool - */ - protected $responded = false; - - const TYPE_PING = 1; - const TYPE_APPLICATION_COMMAND = 2; - const TYPE_MESSAGE_COMPONENT = 3; - const TYPE_APPLICATION_COMMAND_AUTOCOMPLETE = 4; - const TYPE_MODAL_SUBMIT = 5; - - const RESPONSE_TYPE_PONG = 1; - const RESPONSE_TYPE_CHANNEL_MESSAGE_WITH_SOURCE = 4; - const RESPONSE_TYPE_DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE = 5; - const RESPONSE_TYPE_DEFERRED_UPDATE_MESSAGE = 6; - const RESPONSE_TYPE_UPDATE_MESSAGE = 7; - const RESPONSE_TYPE_APPLICATION_COMMAND_AUTOCOMPLETE_RESULT = 8; - const RESPONSE_TYPE_MODAL = 9; - const RESPONSE_TYPE_PREMIUM_REQUIRED = 10; - - /** - * Returns true if this interaction has been internally responded. - * - * @return bool The interaction is responded - */ - public function isResponded(): bool - { - return $this->responded; - } - - /** - * Returns the data associated with the interaction. - * - * @return InteractionData|null - */ - protected function getDataAttribute(): ?InteractionData - { - if (! isset($this->attributes['data'])) { - return null; - } - - $adata = $this->attributes['data']; - if (! isset($adata->guild_id) && isset($this->attributes['guild_id'])) { - $adata->guild_id = $this->guild_id; - } - - return $this->createOf(InteractionData::class, $adata); - } - - /** - * Returns the guild the interaction was invoked from. - * - * @return Guild|null `null` when invoked via DM. - */ - protected function getGuildAttribute(): ?Guild - { - return $this->discord->guilds->get('id', $this->guild_id); - } - - /** - * Returns the channel the interaction was invoked from. - * - * @return Channel|Thread|null - */ - protected function getChannelAttribute(): ?Part - { - $channelId = $this->attributes['channel']->id ?? $this->channel_id; - if ($guild = $this->guild) { - $channels = $guild->channels; - if ( - ! in_array($this->attributes['channel']->type ?? null, [Channel::TYPE_PUBLIC_THREAD, CHANNEL::TYPE_PRIVATE_THREAD, CHANNEL::TYPE_ANNOUNCEMENT_THREAD]) - && $channel = $channels->get('id', $channelId) - ) { - return $channel; - } - foreach ($channels as $parent) { - if ($thread = $parent->threads->get('id', $channelId)) { - return $thread; - } - } - } - - return $this->discord->getChannel($channelId); - } - - /** - * Returns the member who invoked the interaction. - * - * @return Member|null `null` when invoked via DM. - */ - protected function getMemberAttribute(): ?Member - { - if (isset($this->attributes['member'])) { - if ($guild = $this->guild) { - if ($member = $guild->members->get('id', $this->attributes['member']->user->id)) { - // @todo Temporary workaround until member is cached from INTERACTION_CREATE event - $member->permissions = $this->attributes['member']->permissions; - - return $member; - } - } - - return $this->factory->part(Member::class, (array) $this->attributes['member'] + ['guild_id' => $this->guild_id], true); - } - - return null; - } - - /** - * Returns the user who invoked the interaction. - * - * @return User|null - */ - protected function getUserAttribute(): ?User - { - if ($member = $this->member) { - return $member->user; - } - - if (! isset($this->attributes['user'])) { - return null; - } - - return $this->factory->part(User::class, (array) $this->attributes['user'], true); - } - - /** - * Returns the message that triggered the interaction, when triggered via message components. - * - * @return Message|null - */ - protected function getMessageAttribute(): ?Message - { - if (! isset($this->attributes['message'])) { - return null; - } - - return $this->factory->part(Message::class, (array) $this->attributes['message'], true); - } - - /** - * Returns the permissions the app or bot has within the channel the interaction was sent from. - * - * @return ChannelPermission|null - */ - protected function getAppPermissionsAttribute(): ?ChannelPermission - { - if (! isset($this->attributes['app_permissions'])) { - return null; - } - - return $this->factory->part(ChannelPermission::class, ['bitwise' => $this->attributes['app_permissions']], true); - } - - /** - * Acknowledges an interaction without returning a response. - * Only valid for message component interactions. - * - * @link https://discord.com/developers/docs/interactions/receiving-and-responding#responding-to-an-interaction - * - * @throws \LogicException Interaction is not Message Component or Modal Submit. - * - * @return PromiseInterface - */ - public function acknowledge(): PromiseInterface - { - if ($this->type == self::TYPE_APPLICATION_COMMAND) { - return $this->acknowledgeWithResponse(); - } - - if (! in_array($this->type, [self::TYPE_MESSAGE_COMPONENT, self::TYPE_MODAL_SUBMIT])) { - return reject(new \LogicException('You can only acknowledge message component or modal submit interactions.')); - } - - return $this->respond([ - 'type' => self::RESPONSE_TYPE_DEFERRED_UPDATE_MESSAGE, - ]); - } - - /** - * Acknowledges an interaction, creating a placeholder response message - * which can be edited later through the `updateOriginalResponse` function. - * - * @link https://discord.com/developers/docs/interactions/receiving-and-responding#responding-to-an-interaction - * - * @param bool $ephemeral Whether the acknowledge should be ephemeral. - * - * @throws \LogicException Interaction is not Application Command, Message Component, or Modal Submit. - * - * @return PromiseInterface - */ - public function acknowledgeWithResponse(bool $ephemeral = false): PromiseInterface - { - if (! in_array($this->type, [self::TYPE_APPLICATION_COMMAND, self::TYPE_MESSAGE_COMPONENT, self::TYPE_MODAL_SUBMIT])) { - return reject(new \LogicException('You can only acknowledge application command, message component, or modal submit interactions.')); - } - - return $this->respond([ - 'type' => self::RESPONSE_TYPE_DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE, - 'data' => $ephemeral ? ['flags' => 64] : null, - ]); - } - - /** - * Updates the message that the interaction was triggered from. - * Only valid for message component interactions. - * - * @link https://discord.com/developers/docs/interactions/receiving-and-responding#responding-to-an-interaction - * - * @param MessageBuilder $builder The new message content. - * - * @throws \LogicException Interaction is not Message Component. - * - * @return PromiseInterface - */ - public function updateMessage(MessageBuilder $builder): PromiseInterface - { - if (! in_array($this->type, [self::TYPE_MESSAGE_COMPONENT, self::TYPE_MODAL_SUBMIT])) { - return reject(new \LogicException('You can only update messages that occur due to a message component interaction.')); - } - - return $this->respond([ - 'type' => self::RESPONSE_TYPE_UPDATE_MESSAGE, - 'data' => $builder, - ], $builder->requiresMultipart() ? $builder->toMultipart(false) : null); - } - - /** - * Retrieves the original interaction response. - * - * @link https://discord.com/developers/docs/interactions/receiving-and-responding#get-original-interaction-response - * - * @throws \RuntimeException Interaction is not created yet. - * - * @return PromiseInterface - */ - public function getOriginalResponse(): PromiseInterface - { - if (! $this->created) { - return reject(new \RuntimeException('Interaction has not been created yet.')); - } - - return $this->http->get(Endpoint::bind(Endpoint::ORIGINAL_INTERACTION_RESPONSE, $this->application_id, $this->token)) - ->then(function ($response) { - $this->responded = true; - - return $this->factory->part(Message::class, (array) $response, true); - }); - } - - /** - * Updates the original interaction response. - * - * @link https://discord.com/developers/docs/interactions/receiving-and-responding#edit-original-interaction-response - * - * @param MessageBuilder $builder New message contents. - * - * @throws \RuntimeException Interaction is not responded yet. - * - * @return PromiseInterface - */ - public function updateOriginalResponse(MessageBuilder $builder): PromiseInterface - { - if (! $this->responded) { - return reject(new \RuntimeException('Interaction has not been responded to.')); - } - - return (function () use ($builder): PromiseInterface { - if ($builder->requiresMultipart()) { - $multipart = $builder->toMultipart(); - - return $this->http->patch(Endpoint::bind(Endpoint::ORIGINAL_INTERACTION_RESPONSE, $this->application_id, $this->token), (string) $multipart, $multipart->getHeaders()); - } - - return $this->http->patch(Endpoint::bind(Endpoint::ORIGINAL_INTERACTION_RESPONSE, $this->application_id, $this->token), $builder); - })()->then(fn ($response) => $this->factory->part(Message::class, (array) $response, true)); - } - - /** - * Deletes the original interaction response. - * - * @link https://discord.com/developers/docs/interactions/receiving-and-responding#delete-original-interaction-response - * - * @throws \RuntimeException Interaction is not responded yet. - * - * @return PromiseInterface - */ - public function deleteOriginalResponse(): PromiseInterface - { - if (! $this->responded) { - return reject(new \RuntimeException('Interaction has not been responded to.')); - } - - return $this->http->delete(Endpoint::bind(Endpoint::ORIGINAL_INTERACTION_RESPONSE, $this->application_id, $this->token)); - } - - /** - * Sends a follow-up message to the interaction. - * - * @link https://discord.com/developers/docs/interactions/receiving-and-responding#create-followup-message - * - * @param MessageBuilder $builder Message to send. - * @param bool $ephemeral Whether the created follow-up should be ephemeral. Will be ignored if the respond is previously ephemeral. - * - * @throws \RuntimeException Interaction is not responded yet. - * - * @return PromiseInterface - */ - public function sendFollowUpMessage(MessageBuilder $builder, bool $ephemeral = false): PromiseInterface - { - if (! $this->responded && $this->type != self::TYPE_MESSAGE_COMPONENT) { - return reject(new \RuntimeException('Cannot create a follow-up message as the interaction has not been responded to.')); - } - - if ($ephemeral) { - $builder->setFlags(Message::FLAG_EPHEMERAL); - } - - return (function () use ($builder): PromiseInterface { - if ($builder->requiresMultipart()) { - $multipart = $builder->toMultipart(); - - return $this->http->post(Endpoint::bind(Endpoint::CREATE_INTERACTION_FOLLOW_UP, $this->application_id, $this->token), (string) $multipart, $multipart->getHeaders()); - } - - return $this->http->post(Endpoint::bind(Endpoint::CREATE_INTERACTION_FOLLOW_UP, $this->application_id, $this->token), $builder); - })()->then(fn ($response) => $this->factory->part(Message::class, (array) $response, true)); - } - - /** - * Responds to the interaction with a message. - * - * @link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response - * - * @param MessageBuilder $builder Message to respond with. - * @param bool $ephemeral Whether the created message should be ephemeral. - * - * @throws \LogicException Interaction is not Application Command, Message Component, or Modal Submit. - * - * @return PromiseInterface - */ - public function respondWithMessage(MessageBuilder $builder, bool $ephemeral = false): PromiseInterface - { - if (! in_array($this->type, [self::TYPE_APPLICATION_COMMAND, self::TYPE_MESSAGE_COMPONENT, self::TYPE_MODAL_SUBMIT])) { - return reject(new \LogicException('You can only acknowledge application command, message component, or modal submit interactions.')); - } - - if ($ephemeral) { - $builder->setFlags(Message::FLAG_EPHEMERAL); - } - - return $this->respond([ - 'type' => self::RESPONSE_TYPE_CHANNEL_MESSAGE_WITH_SOURCE, - 'data' => $builder, - ], $builder->requiresMultipart() ? $builder->toMultipart(false) : null); - } - - /** - * Responds to the interaction with a payload. - * - * This is a separate function so that it can be overloaded when responding - * via webhook. - * - * @link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response - * - * @param array $payload Response payload. - * @param Multipart|null $multipart Optional multipart payload. - * - * @throws \RuntimeException Interaction is already responded. - * - * @return PromiseInterface - */ - protected function respond(array $payload, ?Multipart $multipart = null): PromiseInterface - { - if ($this->responded) { - return reject(new \RuntimeException('Interaction has already been responded to.')); - } - - $this->responded = true; - - if ($multipart) { - $multipart->add([ - 'name' => 'payload_json', - 'content' => json_encode($payload), - 'headers' => [ - 'Content-Type' => 'application/json', - ], - ]); - - return $this->http->post(Endpoint::bind(Endpoint::INTERACTION_RESPONSE, $this->id, $this->token), (string) $multipart, $multipart->getHeaders()); - } - - return $this->http->post(Endpoint::bind(Endpoint::INTERACTION_RESPONSE, $this->id, $this->token), $payload); - } - - /** - * Updates a non ephemeral follow up message. - * - * @link https://discord.com/developers/docs/interactions/receiving-and-responding#edit-followup-message - * - * @param string $message_id Message to update. - * @param MessageBuilder $builder New message contents. - * - * @throws \RuntimeException Interaction is not responded yet. - * - * @return PromiseInterface - */ - public function updateFollowUpMessage(string $message_id, MessageBuilder $builder): PromiseInterface - { - if (! $this->responded) { - return reject(new \RuntimeException('Cannot create a follow-up message as the interaction has not been responded to.')); - } - - return (function () use ($message_id, $builder): PromiseInterface { - if ($builder->requiresMultipart()) { - $multipart = $builder->toMultipart(); - - return $this->http->patch(Endpoint::bind(Endpoint::INTERACTION_FOLLOW_UP, $this->application_id, $this->token, $message_id), (string) $multipart, $multipart->getHeaders()); - } - - return $this->http->patch(Endpoint::bind(Endpoint::INTERACTION_FOLLOW_UP, $this->application_id, $this->token, $message_id), $builder); - })()->then(fn ($response) => $this->factory->part(Message::class, (array) $response, true)); - } - - /** - * Retrieves a non ephemeral follow up message. - * - * @link https://discord.com/developers/docs/interactions/receiving-and-responding#get-followup-message - * - * @param string $message_id Message to get. - * - * @throws \RuntimeException Interaction is not created yet. - * - * @return PromiseInterface - */ - public function getFollowUpMessage(string $message_id): PromiseInterface - { - if (! $this->created) { - return reject(new \RuntimeException('Interaction has not been created yet.')); - } - - return $this->http->get(Endpoint::bind(Endpoint::INTERACTION_FOLLOW_UP, $this->application_id, $this->token, $message_id)) - ->then(function ($response) { - $this->responded = true; - - return $this->factory->part(Message::class, (array) $response, true); - }); - } - - /** - * Deletes a follow up message. - * - * @link https://discord.com/developers/docs/interactions/receiving-and-responding#delete-followup-message - * - * @param string $message_id Message to delete. - * - * @throws \RuntimeException Interaction is not responded yet. - * - * @return PromiseInterface - */ - public function deleteFollowUpMessage(string $message_id): PromiseInterface - { - if (! $this->responded) { - return reject(new \RuntimeException('Interaction has not been responded to.')); - } - - return $this->http->delete(Endpoint::bind(Endpoint::INTERACTION_FOLLOW_UP, $this->application_id, $this->token, $message_id)); - } - - /** - * Responds to the interaction with auto complete suggestions. - * - * @link https://discord.com/developers/docs/interactions/receiving-and-responding#responding-to-an-interaction - * - * @param array|Choice[] $choices Autocomplete choices (max of 25 choices) - * - * @throws \LogicException Interaction is not Autocomplete. - * - * @return PromiseInterface - */ - public function autoCompleteResult(array $choices): PromiseInterface - { - if ($this->type != self::TYPE_APPLICATION_COMMAND_AUTOCOMPLETE) { - return reject(new \LogicException('You can only respond command option results with auto complete interactions.')); - } - - return $this->respond([ - 'type' => self::RESPONSE_TYPE_APPLICATION_COMMAND_AUTOCOMPLETE_RESULT, - 'data' => ['choices' => $choices], - ]); - } - - /** - * Responds to the interaction with a popup modal. - * - * @link https://discord.com/developers/docs/interactions/receiving-and-responding#responding-to-an-interaction - * - * @param string $title The title of the popup modal, max 45 characters - * @param string $custom_id Developer-defined identifier for the component, max 100 characters - * @param array|Component[] $components Between 1 and 5 (inclusive) components that make up the modal contained in Action Row - * @param callable|null $submit The function to call once modal is submitted. - * - * @throws \LogicException Interaction is Ping or Modal Submit. - * @throws \LengthException Modal title is longer than 45 characters. - * - * @return PromiseInterface - */ - public function showModal(string $title, string $custom_id, array $components, ?callable $submit = null): PromiseInterface - { - if (in_array($this->type, [self::TYPE_PING, self::TYPE_MODAL_SUBMIT])) { - return reject(new \LogicException('You cannot pop up a modal from a ping or modal submit interaction.')); - } - - if (poly_strlen($title) > 45) { - return reject(new \LengthException('Modal title must be less than or equal to 45 characters.')); - } - - return $this->respond([ - 'type' => self::RESPONSE_TYPE_MODAL, - 'data' => [ - 'title' => $title, - 'custom_id' => $custom_id, - 'components' => $components, - ], - ])->then(function ($response) use ($custom_id, $submit) { - if ($submit) { - $listener = function (Interaction $interaction) use ($custom_id, $submit, &$listener) { - if ($interaction->type == self::TYPE_MODAL_SUBMIT && $interaction->data->custom_id == $custom_id) { - $components = Collection::for(RequestComponent::class, 'custom_id'); - foreach ($interaction->data->components as $actionrow) { - if ($actionrow->type == Component::TYPE_ACTION_ROW) { - foreach ($actionrow->components as $component) { - $components->pushItem($component); - } - } - } - $submit($interaction, $components); - $this->discord->removeListener(Event::INTERACTION_CREATE, $listener); - } - }; - $this->discord->on(Event::INTERACTION_CREATE, $listener); - } - - return $response; - }); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Interactions/Request/Component.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Interactions/Request/Component.php deleted file mode 100644 index a6a7a8a..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Interactions/Request/Component.php +++ /dev/null @@ -1,110 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Interactions\Request; - -use Discord\Builders\Components\Component as ComponentBuilder; -use Discord\Helpers\Collection; -use Discord\Parts\Guild\Emoji; -use Discord\Parts\Part; - -/** - * Represents a component received with a message or interaction. - * - * @todo split per type - * - * @link https://discord.com/developers/docs/interactions/message-components#component-object - * - * @since 7.0.0 - * - * @property int $type Component type. - * @property string|null $custom_id Developer-defined identifier for the component; max 100 characters. (Buttons, Select Menus) - * @property bool|null $disabled Whether the component is disabled; defaults to `false`. (Buttons, Select Menus) - * @property int|null $style A button style. (Buttons) - * @property string|null $label Text that appears on the button; max 80 characters. (Buttons) - * @property Emoji|null $emoji Name, id, and animated. (Buttons) - * @property string|null $url URL for link-style buttons. (Buttons) - * @property object[]|null $options The choices in the select; max 25. (Select Menus) - * @property string|null $placeholder Custom placeholder text if nothing is selected; max 150 characters. (Select Menus, Text Inputs) - * @property int|null $min_values The minimum number of items that must be chosen; default 1, min 0, max 25. (Select Menus) - * @property int|null $max_values The maximum number of items that can be chosen; default 1, max 25. (Select Menus) - * @property Collection|Component[]|null $components A list of child components. (Action Rows) - * @property int|null $min_length Minimum input length for a text input. (Text Inputs) - * @property int|null $max_length Maximum input length for a text input. (Text Inputs) - * @property bool|null $required Whether this component is required to be filled; defaults to `true` (Text Inputs) - * @property string|null $value Value for this component. (Text Inputs) - */ -class Component extends Part -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'type', - 'custom_id', - 'disabled', - 'style', - 'label', - 'emoji', - 'url', - 'options', - 'placeholder', - 'min_values', - 'max_values', - 'components', - 'min_length', - 'max_length', - 'required', - 'value', - ]; - - /** - * Gets the sub-components of the component. - * - * @return Collection|Component[]|null $components - */ - protected function getComponentsAttribute(): ?Collection - { - if (! isset($this->attributes['components']) && $this->type != ComponentBuilder::TYPE_ACTION_ROW) { - return null; - } - - $components = Collection::for(Component::class, null); - - foreach ($this->attributes['components'] ?? [] as $component) { - $components->pushItem($this->createOf(Component::class, $component)); - } - - return $components; - } - - /** - * Gets the partial emoji attribute. - * - * @return Emoji|null - */ - protected function getEmojiAttribute(): ?Emoji - { - if (! isset($this->attributes['emoji'])) { - return null; - } - - return $this->factory->part(Emoji::class, (array) $this->attributes['emoji'], true); - } - - /** - * {@inheritDoc} - */ - public function getRepositoryAttributes(): array - { - return []; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Interactions/Request/InteractionData.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Interactions/Request/InteractionData.php deleted file mode 100644 index b18a2e3..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Interactions/Request/InteractionData.php +++ /dev/null @@ -1,116 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Interactions\Request; - -use Discord\Helpers\Collection; -use Discord\Parts\Interactions\Command\Command; -use Discord\Parts\Part; - -/** - * Represents the data associated with an interaction. - * - * @link https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data - * - * @since 7.0.0 - * - * @property string $id ID of the invoked command. - * @property string $name Name of the invoked command. - * @property int $type The type of the invoked command. - * @property Resolved|null $resolved Resolved users, members, roles and channels that are relevant. - * @property Collection|Option[]|null $options Parameters and values from the user. - * @property string|null $guild_id ID of the guild internally passed from Interaction or ID of the guild the command belongs to. - * @property string|null $target_id ID the of user or message targeted by a user or message command. - * @property string|null $custom_id Custom ID the component was created for. (Only for Message Component & Modal) - * @property int|null $component_type Type of the component. (Only for Message Component) - * @property string[]|null $values Values selected in a select menu. (Only for Message Component) - * @property Collection|Component[]|null $components The values submitted by the user. (Only for Modal) - */ -class InteractionData extends Part -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'id', - 'name', - 'type', - 'resolved', - 'options', - 'guild_id', - 'target_id', - - // message components - 'custom_id', - 'component_type', - 'values', - 'components', // modal only - ]; - - /** - * Gets the options of the interaction. - * - * @return Collection|Option[]|null $options - */ - protected function getOptionsAttribute(): ?Collection - { - if (! isset($this->attributes['options']) && $this->type != Command::CHAT_INPUT) { - return null; - } - - $options = Collection::for(Option::class, 'name'); - - foreach ($this->attributes['options'] ?? [] as $option) { - $options->pushItem($this->createOf(Option::class, $option)); - } - - return $options; - } - - /** - * Gets the components of the interaction. - * - * @return Collection|Component[]|null $components - */ - protected function getComponentsAttribute(): ?Collection - { - if (! isset($this->attributes['components'])) { - return null; - } - - $components = Collection::for(Component::class, null); - - foreach ($this->attributes['components'] as $component) { - $components->pushItem($this->createOf(Component::class, $component)); - } - - return $components; - } - - /** - * Returns a collection of resolved data. - * - * @return Resolved|null - */ - protected function getResolvedAttribute(): ?Resolved - { - if (! isset($this->attributes['resolved'])) { - return null; - } - - $adata = $this->attributes['resolved']; - if (isset($this->attributes['guild_id'])) { - $adata->guild_id = $this->guild_id; - } - - return $this->createOf(Resolved::class, $adata); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Interactions/Request/Option.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Interactions/Request/Option.php deleted file mode 100644 index 05e5612..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Interactions/Request/Option.php +++ /dev/null @@ -1,71 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Interactions\Request; - -use Discord\Helpers\Collection; -use Discord\Parts\Interactions\Command\Option as CommandOption; -use Discord\Parts\Part; - -/** - * Represents an option received with an interaction. - * - * @link https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-interaction-data-option-structure - * - * @since 7.0.0 - * - * @property string $name Name of the parameter. - * @property int $type Type of the option. - * @property string|int|float|bool|null $value Value of the option resulting from user input. - * @property Collection|Option[]|null $options Present if this option is a group or subcommand. - * @property bool|null $focused `true` if this option is the currently focused option for autocomplete. - */ -class Option extends Part -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'name', - 'type', - 'value', - 'options', - 'focused', - ]; - - /** - * Gets the options of the interaction. - * - * @return Collection|Option[]|null $options - */ - protected function getOptionsAttribute(): ?Collection - { - if (! isset($this->attributes['options']) && ! in_array($this->type, [CommandOption::SUB_COMMAND, CommandOption::SUB_COMMAND_GROUP])) { - return null; - } - - $options = Collection::for(Option::class, 'name'); - - foreach ($this->attributes['options'] ?? [] as $option) { - $options->pushItem($this->createOf(Option::class, $option)); - } - - return $options; - } - - /** - * {@inheritDoc} - */ - public function getRepositoryAttributes(): array - { - return []; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Interactions/Request/Resolved.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Interactions/Request/Resolved.php deleted file mode 100644 index 12f7ce7..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Interactions/Request/Resolved.php +++ /dev/null @@ -1,220 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Interactions\Request; - -use Discord\Helpers\Collection; -use Discord\Parts\Channel\Attachment; -use Discord\Parts\Channel\Channel; -use Discord\Parts\Channel\Message; -use Discord\Parts\Guild\Role; -use Discord\Parts\Part; -use Discord\Parts\Thread\Thread; -use Discord\Parts\User\Member; -use Discord\Parts\User\User; - -/** - * Represents the data associated with an interaction. - * - * @link https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-resolved-data-structure - * - * @since 7.0.0 - * - * @property Collection|User[]|null $users The ids and User objects. - * @property Collection|Member[]|null $members The ids and partial Member objects. - * @property Collection|Role[]|null $roles The ids and Role objects. - * @property Collection|Channel[]|Thread[]|null $channels The ids and partial Channel objects. - * @property Collection|Message[]|null $messages The ids and partial Message objects. - * @property Collection|Attachment[]|null $attachments The ids and partial Attachment objects. - * - * @property string|null $guild_id ID of the guild internally passed from Interaction. - */ -class Resolved extends Part -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'users', - 'members', - 'roles', - 'channels', - 'messages', - 'attachments', - - // @internal - 'guild_id', - ]; - - /** - * {@inheritDoc} - */ - protected $hidden = ['guild_id']; - - /** - * Returns a collection of resolved users. - * - * @return Collection|User[]|null Map of Snowflakes to user objects - */ - protected function getUsersAttribute(): ?Collection - { - if (! isset($this->attributes['users'])) { - return null; - } - - $collection = Collection::for(User::class); - - foreach ($this->attributes['users'] as $snowflake => $user) { - $collection->pushItem($this->discord->users->get('id', $snowflake) ?: $this->factory->part(User::class, (array) $user, true)); - } - - return $collection; - } - - /** - * Returns a collection of resolved members. - * - * Partial Member objects are missing user, deaf and mute fields - * - * @return Collection|Member[]|null Map of Snowflakes to partial member objects - */ - protected function getMembersAttribute(): ?Collection - { - if (! isset($this->attributes['members'])) { - return null; - } - - $collection = Collection::for(Member::class); - - foreach ($this->attributes['members'] as $snowflake => $member) { - if ($guild = $this->discord->guilds->get('id', $this->guild_id)) { - $memberPart = $guild->members->get('id', $snowflake); - } - - if (! isset($memberPart)) { - $member->user = $this->attributes['users']->$snowflake; - $memberPart = $this->factory->part(Member::class, (array) $member + ['guild_id' => $this->guild_id], true); - } - - $collection->pushItem($memberPart); - } - - return $collection; - } - - /** - * Returns a collection of resolved roles. - * - * @return Collection|Role[]|null Map of Snowflakes to role objects - */ - protected function getRolesAttribute(): ?Collection - { - if (! isset($this->attributes['roles'])) { - return null; - } - - $collection = Collection::for(Role::class); - - foreach ($this->attributes['roles'] as $snowflake => $role) { - if ($guild = $this->discord->guilds->get('id', $this->guild_id)) { - $rolePart = $guild->roles->get('id', $snowflake); - } - - if (! isset($rolePart)) { - $rolePart = $this->factory->part(Role::class, (array) $role + ['guild_id' => $this->guild_id], true); - } - - $collection->pushItem($rolePart); - } - - return $collection; - } - - /** - * Returns a collection of resolved channels. - * - * Partial Channel objects only have id, name, type and permissions fields. Threads will also have thread_metadata and parent_id fields. - * - * @return Collection|Channel[]|Thread[]|null Map of Snowflakes to partial channel objects - */ - protected function getChannelsAttribute(): ?Collection - { - if (! isset($this->attributes['channels'])) { - return null; - } - - $collection = new Collection(); - - foreach ($this->attributes['channels'] as $snowflake => $channel) { - if ($guild = $this->discord->guilds->get('id', $this->guild_id)) { - $channelPart = $guild->channels->get('id', $snowflake); - } - - if (! isset($channelPart)) { - if (in_array($channel->type, [Channel::TYPE_ANNOUNCEMENT_THREAD, Channel::TYPE_PRIVATE_THREAD, Channel::TYPE_PUBLIC_THREAD])) { - $channelPart = $this->factory->part(Thread::class, (array) $channel + ['guild_id' => $this->guild_id], true); - } else { - $channelPart = $this->factory->part(Channel::class, (array) $channel + ['guild_id' => $this->guild_id], true); - } - } - - $collection->pushItem($channelPart); - } - - return $collection; - } - - /** - * Returns a collection of resolved messages. - * - * @return Collection|Message[]|null Map of Snowflakes to partial messages objects - */ - protected function getMessagesAttribute(): ?Collection - { - if (! isset($this->attributes['messages'])) { - return null; - } - - $collection = Collection::for(Message::class); - - foreach ($this->attributes['messages'] as $snowflake => $message) { - if ($guild = $this->discord->guilds->get('id', $this->guild_id)) { - if ($channel = $guild->channels->get('id', $message->channel_id)) { - $messagePart = $channel->messages->get('id', $snowflake); - } - } - - $collection->pushItem($messagePart ?? $this->factory->part(Message::class, (array) $message + ['guild_id' => $this->guild_id], true)); - } - - return $collection; - } - - /** - * Returns a collection of resolved attachments. - * - * @return Collection|Attachment[]|null Map of Snowflakes to attachments objects - */ - protected function getAttachmentsAttribute(): ?Collection - { - if (! isset($this->attributes['attachments'])) { - return null; - } - - $attachments = Collection::for(Attachment::class); - - foreach ($this->attributes['attachments'] as $attachment) { - $attachments->pushItem($this->factory->part(Attachment::class, (array) $attachment, true)); - } - - return $attachments; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/OAuth/Application.php b/vendor/team-reflex/discord-php/src/Discord/Parts/OAuth/Application.php deleted file mode 100644 index 3ef6120..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/OAuth/Application.php +++ /dev/null @@ -1,258 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\OAuth; - -use Discord\Parts\Part; -use Discord\Parts\Permissions\Permission; -use Discord\Parts\User\User; -use Discord\Repository\Interaction\GlobalCommandRepository; - -/** - * The OAuth2 application of the bot. - * - * @link https://discord.com/developers/docs/resources/application - * - * @since 7.0.0 - * - * @property string $id The client ID of the OAuth application. - * @property string $name The name of the OAuth application. - * @property string|null $icon The icon URL of the OAuth application. - * @property string $icon_hash The icon hash of the OAuth application. - * @property string $description The description of the OAuth application. - * @property string[] $rpc_origins An array of RPC origin URLs. - * @property bool $bot_public When false only app owner can join the app's bot to guilds. - * @property bool $bot_require_code_grant When true the app's bot will only join upon completion of the full oauth2 code grant flow. - * @property User|null $bot The partial user object for the bot user associated with the application. - * @property string|null $terms_of_service_url The url of the app's terms of service. - * @property string|null $privacy_policy_url The url of the app's privacy policy - * @property User|null $owner The owner of the OAuth application. - * @property string $verify_key The hex encoded key for verification in interactions and the GameSDK's GetTicket. - * @property object|null $team If the application belongs to a team, this will be a list of the members of that team. - * @property string|null $guild_id If this application is a game sold on Discord, this field will be the guild to which it has been linked. - * @property string|null $primary_sku_id If this application is a game sold on Discord, this field will be the id of the "Game SKU" that is created, if exists. - * @property string|null $slug If this application is a game sold on Discord, this field will be the URL slug that links to the store page. - * @property string|null $cover_image The application's default rich presence invite cover image URL. - * @property string|null $cover_image_hash The application's default rich presence invite cover image hash. - * @property int $flags The application's public flags. - * @property int|null $approximate_guild_count The application's approximate count of the app's guild membership. - * @property int|null $approximate_user_install_count The approximate count of users that have installed the app. - * @property string[]|null $redirect_uris Array of redirect URIs for the application. - * @property string|null $interactions_endpoint_url The interactions endpoint URL for the application. - * @property string|null $role_connections_verification_url The application's role connection verification entry point, which when configured will render the app as a verification method in the guild role verification configuration. - * @property string[]|null $tags Up to 5 tags describing the content and functionality of the application. - * @property object|null $install_params Settings for the application's default in-app authorization link, if enabled. - * @property int[]|null $integration_types - * @property object[]|null $integration_types_config Default scopes and permissions for each supported installation context. Value for each key is an integration type configuration object. - * @property string|null $custom_install_url The application's default custom authorization link, if enabled. - * - * @property string $invite_url The invite URL to invite the bot to a guild. - * - * @property GlobalCommandRepository $commands The application global commands. - */ -class Application extends Part -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'id', - 'name', - 'icon', - 'description', - // 'type', - 'bot', - // 'is_monetized', - 'guild_id', - 'bot_public', - 'bot_require_code_grant', - 'verify_key', - 'flags', - // 'hook', - 'redirect_uris', - 'interactions_endpoint_url', - 'role_connections_verification_url', - 'owner', - 'approximate_guild_count', - 'approximate_user_install_count', - // 'interactions_event_types', - // 'interactions_version', - // 'explicit_content_filter', - // 'rpc_application_state', - // 'store_application_state', - // 'verification_state', - // 'integration_public', - // 'integration_require_code_grant', - // 'discoverability_state', - // 'discovery_eligibility_flags', - // 'monetization_state', - // 'monetization_eligibility_flags', - 'team', - 'integration_types', - 'integration_types_config', - 'cover_image', - 'primary_sku_id', - 'slug', - 'rpc_origins', - 'terms_of_service_url', - 'privacy_policy_url', - 'custom_install_url', - 'install_params', - 'tags', - ]; - - public const APPLICATION_AUTO_MODERATION_RULE_CREATE_BADGE = (1 << 6); - public const GATEWAY_PRESENCE = (1 << 12); - public const GATEWAY_PRESENCE_LIMITED = (1 << 13); - public const GATEWAY_GUILD_MEMBERS = (1 << 14); - public const GATEWAY_GUILD_MEMBERS_LIMITED = (1 << 15); - public const VERIFICATION_PENDING_GUILD_LIMIT = (1 << 16); - public const EMBEDDED = (1 << 17); - public const GATEWAY_MESSAGE_CONTENT = (1 << 18); - public const GATEWAY_MESSAGE_CONTENT_LIMITED = (1 << 19); - public const APPLICATION_COMMAND_BADGE = (1 << 23); - public const ACTIVE = (1 << 24); - public const INTEGRATION_TYPE_GUILD_INSTALL = 0; - public const INTEGRATION_TYPE_USER_INSTALL = 1; - - /** - * {@inheritDoc} - */ - protected $repositories = [ - 'commands' => GlobalCommandRepository::class, - ]; - - /** - * Returns the application icon. - * - * @param string $format The image format. - * @param int $size The size of the image. - * - * @return string|null The URL to the application icon or null. - */ - public function getIconAttribute(string $format = 'webp', int $size = 1024): ?string - { - if (! isset($this->attributes['icon'])) { - return null; - } - - $allowed = ['png', 'jpg', 'webp']; - if (! in_array(strtolower($format), $allowed)) { - $format = 'webp'; - } - - return "https://cdn.discordapp.com/app-icons/{$this->id}/{$this->attributes['icon']}.{$format}?size={$size}"; - } - - /** - * Returns the application icon attribute. - * - * @return string|null The application icon hash or null. - */ - protected function getIconHashAttribute(): ?string - { - return $this->attributes['icon']; - } - - /** - * Returns the bot user of the application. - * - * @return User|null The partial user object for the bot user associated with the application. - */ - protected function getBotAttribute(): ?User - { - if (empty($this->attributes['bot'])) { - return null; - } - - if ($bot = $this->discord->users->get('id', $this->attributes['bot']->id)) { - return $bot; - } - - return $this->factory->part(User::class, (array) $this->attributes['bot'], true); - } - - /** - * Returns the owner of the application. - * - * @return User|null Owner of the application. - */ - protected function getOwnerAttribute(): ?User - { - if (empty($this->attributes['owner'])) { - return null; - } - - if ($owner = $this->discord->users->get('id', $this->attributes['owner']->id)) { - return $owner; - } - - return $this->factory->part(User::class, (array) $this->attributes['owner'], true); - } - - /** - * Returns the application cover image. - * - * @param string $format The image format. - * @param int $size The size of the image. - * - * @return string|null The URL to the application cover image or null. - */ - public function getCoverImageAttribute(string $format = 'webp', int $size = 1024): ?string - { - if (! isset($this->attributes['cover_image'])) { - return null; - } - - $allowed = ['png', 'jpg', 'webp']; - if (! in_array(strtolower($format), $allowed)) { - $format = 'webp'; - } - - return "https://cdn.discordapp.com/app-icons/{$this->id}/{$this->attributes['cover_image']}.{$format}?size={$size}"; - } - - /** - * Returns the application cover image attribute. - * - * @return string|null The application cover image hash or null. - */ - protected function getCoverImageHashAttribute(): ?string - { - return $this->attributes['cover_image']; - } - - /** - * Returns the invite URL for the application. - * - * @param Permission|int $permissions Permissions to set. - * - * @return string Invite URL. - */ - public function getInviteURLAttribute($permissions = 0): string - { - if ($permissions instanceof Permission) { - $permissions = $permissions->bitwise; - } - - return "https://discord.com/oauth2/authorize?client_id={$this->id}&scope=bot&permissions={$permissions}"; - } - - /** - * {@inheritDoc} - */ - public function getRepositoryAttributes(): array - { - return [ - 'application_id' => $this->id, - ]; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Part.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Part.php deleted file mode 100644 index 195b595..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Part.php +++ /dev/null @@ -1,109 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts; - -use ArrayAccess; -use Discord\Discord; -use Discord\Factory\Factory; -use Discord\Http\Http; -use JsonSerializable; - -/** - * This class is the base of all objects that are returned. All "Parts" extend - * off this base class. - * - * @since 2.0.0 - */ -abstract class Part implements PartInterface, ArrayAccess, JsonSerializable -{ - /** - * The HTTP client. - * - * @var Http Client. - */ - protected $http; - - /** - * The factory. - * - * @var Factory Factory. - */ - protected $factory; - - /** - * The Discord client. - * - * @var Discord Client. - */ - protected $discord; - - /** - * Custom script data. - * Used for storing custom information, used by end products. - * - * @var mixed - * - * @deprecated 10.0.0 Relying on this variable with dynamic caching is discouraged. - */ - public $scriptData; - - /** - * The parts fillable attributes. - * - * @var array The array of attributes that can be mass-assigned. - */ - protected $fillable = []; - - /** - * The parts attributes. - * - * @var array The parts attributes and content. - */ - protected $attributes = []; - - /** - * Attributes which are visible from debug info. - * - * @var array - */ - protected $visible = []; - - /** - * Attributes that are hidden from debug info. - * - * @var array Attributes that are hidden from public. - */ - protected $hidden = []; - - /** - * An array of repositories that can exist in a part. - * - * @var array Repositories. - */ - protected $repositories = []; - - /** - * An array of repositories. - * - * @var array - */ - protected $repositories_cache = []; - - /** - * Is the part already created in the Discord servers? - * - * @var bool Whether the part has been created. - */ - public $created = false; - - use PartTrait; -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/PartInterface.php b/vendor/team-reflex/discord-php/src/Discord/Parts/PartInterface.php deleted file mode 100644 index 374be6f..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/PartInterface.php +++ /dev/null @@ -1,57 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts; - -use Discord\Discord; -use React\Promise\PromiseInterface; - -/** - * This class is the base of all objects that are returned. All "Parts" extend - * off this base class. - * - * @since 2.0.0 - */ -interface PartInterface -{ - public function __construct(Discord $discord, array $attributes = [], bool $created = false); - //protected function afterConstruct(): void; - public function isPartial(): bool; - public function fetch(): PromiseInterface; - public function fill(array $attributes): void; - //private function checkForGetMutator(string $key); - //private function checkForSetMutator(string $key); - //private function getAttribute(string $key); - //private function setAttribute(string $key, $value): void; - #[\ReturnTypeWillChange] - public function offsetGet($key); - public function offsetExists($key): bool; - public function offsetSet($key, $value): void; - public function offsetUnset($key): void; - public function serialize(): ?string; - public function __serialize(): array; - public function unserialize($data): void; - public function __unserialize(array $data): void; - public function jsonSerialize(): array; - public function getPublicAttributes(): array; - public function getRawAttributes(): array; - public function getRepositoryAttributes(): array; - public function getCreatableAttributes(): array; - public function getUpdatableAttributes(): array; - //protected function makeOptionalAttributes(array $attributes): array; - public function getDiscord(): Discord; - public function createOf(string $class, array|object $data): self; - //private static function studly(string $string): string; - public function __toString(): string; - public function __debugInfo(): array; - public function __get(string $key); - public function __set(string $key, $value): void; -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/PartTrait.php b/vendor/team-reflex/discord-php/src/Discord/Parts/PartTrait.php deleted file mode 100644 index 699b871..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/PartTrait.php +++ /dev/null @@ -1,494 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts; - -use Carbon\Carbon; -use Discord\Discord; -use React\Promise\PromiseInterface; - -/** - * This class is the base of all objects that are returned. All "Parts" extend - * off this base class. - * - * @since 2.0.0 - */ -trait PartTrait -{ - /** - * Create a new part instance. - * - * @param Discord $discord The Discord client. - * @param array $attributes An array of attributes to build the part. - * @param bool $created Whether the part has already been created. - */ - public function __construct(Discord $discord, array $attributes = [], bool $created = false) - { - $this->discord = $discord; - $this->http = $discord->getHttpClient(); - $this->factory = $discord->getFactory(); - - $this->created = $created; - $this->fill($attributes); - - $this->afterConstruct(); - } - - /** - * Called after the part has been constructed. - */ - protected function afterConstruct(): void - { - } - - /** - * Whether the part is considered partial i.e. missing information which can - * be fetched from Discord. - * - * @return bool - */ - public function isPartial(): bool - { - return false; - } - - /** - * Fetches any missing information about the part from Discord's servers. - * - * @throws \RuntimeException The part is not fetchable. - * - * @return PromiseInterface - */ - public function fetch(): PromiseInterface - { - throw new \RuntimeException('This part is not fetchable.'); - } - - /** - * Fills the parts attributes from an array. - * - * @param array $attributes An array of attributes to build the part. - * - * @see self::setAttribute() - */ - public function fill(array $attributes): void - { - foreach ($this->fillable as $key) { - if (array_key_exists($key, $attributes)) { - // This is like setAttribute() but without in_array() checks on fillable - if ($str = $this->checkForSetMutator($key)) { - $this->{$str}($attributes[$key]); - } else { - $this->attributes[$key] = $attributes[$key]; - } - } - } - } - - /** - * Checks if there is a get mutator present. - * - * @param string $key The attribute name to check. - * - * @since 10.0.0 Replaces checkForMutator($key, 'get') - * - * @return string|false Either a string if it is a method or false. - */ - private function checkForGetMutator(string $key) - { - $str = 'get'.self::studly($key).'Attribute'; - - if (method_exists($this, $str)) { - return $str; - } - - return false; - } - - /** - * Checks if there is a set mutator present. - * - * @param string $key The attribute name to check. - * - * @since 10.0.0 Replaces checkForMutator($key, 'set') - * - * @return string|false Either a string if it is a method or false. - */ - private function checkForSetMutator(string $key) - { - $str = 'set'.self::studly($key).'Attribute'; - - if (method_exists($this, $str)) { - return $str; - } - - return false; - } - - /** - * Gets an attribute on the part. - * - * @param string $key The key to the attribute. - * - * @return mixed Either the attribute if it exists or void. - * @throws \Exception - */ - private function getAttribute(string $key) - { - if (isset($this->repositories[$key])) { - if (! isset($this->repositories_cache[$key])) { - $this->repositories_cache[$key] = $this->factory->create($this->repositories[$key], $this->getRepositoryAttributes()); - } - - return $this->repositories_cache[$key]; - } - - if ($str = $this->checkForGetMutator($key)) { - return $this->{$str}(); - } - - if (! isset($this->attributes[$key])) { - return null; - } - - return $this->attributes[$key]; - } - - /** - * Sets an attribute on the part. - * - * @param string $key The key to the attribute. - * @param mixed $value The value of the attribute. - */ - private function setAttribute(string $key, $value): void - { - if ($str = $this->checkForSetMutator($key)) { - $this->{$str}($value); - - return; - } - - if (in_array($key, $this->fillable)) { - $this->attributes[$key] = $value; - } - } - - /** - * Gets an attribute via key. Used for ArrayAccess. - * - * @param string $key The attribute key. - * - * @return mixed - * - * @throws \Exception - * @see Part::getAttribute() This function forwards onto getAttribute. - */ - #[\ReturnTypeWillChange] - public function offsetGet($key) - { - return $this->getAttribute($key); - } - - /** - * Checks if an attribute exists via key. Used for ArrayAccess. - * - * @param string $key The attribute key. - * - * @return bool Whether the offset exists. - */ - public function offsetExists($key): bool - { - return isset($this->attributes[$key]); - } - - /** - * Sets an attribute via key. Used for ArrayAccess. - * - * @param string $key The attribute key. - * @param mixed $value The attribute value. - * - * @see Part::setAttribute() This function forwards onto setAttribute. - */ - public function offsetSet($key, $value): void - { - $this->setAttribute($key, $value); - } - - /** - * Unsets an attribute via key. Used for ArrayAccess. - * - * @param string $key The attribute key. - */ - public function offsetUnset($key): void - { - if (isset($this->attributes[$key])) { - unset($this->attributes[$key]); - } - } - - /** - * Serializes the data. Used for Serializable. - * - * @return ?string A string of serialized data. - */ - public function serialize(): ?string - { - return serialize($this->getRawAttributes()); - } - - public function __serialize(): array - { - return $this->getRawAttributes(); - } - - /** - * Unserializes some data and stores it. Used for Serializable. - * - * @param string $data Some serialized data. - * - * @see Part::setAttribute() The unserialized data is stored with setAttribute. - */ - public function unserialize($data): void - { - $data = unserialize($data); - - foreach ($data as $key => $value) { - $this->setAttribute($key, $value); - } - } - - public function __unserialize(array $data): void - { - foreach ($data as $key => $value) { - $this->setAttribute($key, $value); - } - } - - /** - * Provides data when the part is encoded into - * JSON. Used for JsonSerializable. - * - * @return array An array of public attributes. - * - * @throws \Exception - * @see Part::getPublicAttributes() This function forwards onto getPublicAttributes. - */ - public function jsonSerialize(): array - { - return $this->getPublicAttributes(); - } - - /** - * Returns an array of public attributes. - * - * @return array An array of public attributes. - * @throws \Exception - */ - public function getPublicAttributes(): array - { - $data = []; - - foreach (array_merge($this->fillable, $this->visible) as $key) { - if (in_array($key, $this->hidden)) { - continue; - } - - $value = $this->getAttribute($key); - - if ($value instanceof Carbon) { - $value = $value->format('Y-m-d\TH:i:s\Z'); - } - - $data[$key] = $value; - } - - return $data; - } - - /** - * Returns an array of raw attributes. - * - * @return array Raw attributes. - */ - public function getRawAttributes(): array - { - return $this->attributes; - } - - /** - * Gets the attributes to pass to repositories. - * Note: The order matters for repository tree (top to bottom). - * - * @return array Attributes. - */ - public function getRepositoryAttributes(): array - { - return $this->attributes; - } - - /** - * Returns the attributes needed to create. - * - * @return array - */ - public function getCreatableAttributes(): array - { - return []; - } - - /** - * Returns the updatable attributes. - * - * @return array - */ - public function getUpdatableAttributes(): array - { - return []; - } - - /** - * Return key-value attributes if it has been filled. - * - * To be used with fields marked "optional?" from the API. - * - * @param array $attributes Names of optional attribute - * - * @return array - */ - protected function makeOptionalAttributes(array $attributes): array - { - $attr = []; - foreach ($attributes as $key => $value) { - if (array_key_exists($key, $this->attributes)) { - $attr[$key] = $value; - } elseif (is_int($key) && array_key_exists($value, $this->attributes)) { - $attr[$value] = $this->attributes[$value]; - } - } - - return $attr; - } - - /** - * Get the Discord instance that owns this Part. - * - * @return Discord - */ - public function getDiscord(): Discord - { - return $this->discord; - } - - /** - * Create a Part where the `created` status is referenced by this Part. - * - * @internal - * - * @see \Discord\Factory\Factory::part() - * - * @since 10.0.0 - * - * @param string $class The attribute Part class to build. - * @param array|object $data Data to create the object. - * - * @return Part - */ - public function createOf(string $class, array|object $data): self - { - $ofPart = $this->factory->part($class, (array) $data, $this->created); - $ofPart->created = &$this->created; - - return $ofPart; - } - - /** - * Converts a string to studlyCase. - * - * This is a port of updated Laravel's implementation, a non-regex with - * static cache. The Discord\studly() is kept due to unintended bug and we - * do not want to introduce BC by replacing it. This method is private - * static as we may move it outside this class in future. - * - * @param string $string The string to convert. - * - * @return string - * - * @since 10.0.0 - */ - private static function studly(string $string): string - { - static $studlyCache = []; - - if (isset($studlyCache[$string])) { - return $studlyCache[$string]; - } - - $words = explode(' ', str_replace(['-', '_'], ' ', $string)); - - $studlyWords = array_map('ucfirst', $words); - - return $studlyCache[$string] = implode($studlyWords); - } - - /** - * Converts the part to a string. - * - * @return string A JSON string of attributes. - * - * @throws \Exception - * @see Part::getPublicAttributes() This function encodes getPublicAttributes into JSON. - */ - public function __toString(): string - { - return json_encode($this->getPublicAttributes()); - } - - /** - * Handles debug calls from var_dump and similar functions. - * - * @return array An array of public attributes. - * - * @throws \Exception - * @see Part::getPublicAttributes() This function forwards onto getPublicAttributes. - */ - public function __debugInfo(): array - { - return $this->getPublicAttributes(); - } - - /** - * Handles dynamic get calls onto the part. - * - * @param string $key The attributes key. - * - * @return mixed The value of the attribute. - * - * @throws \Exception - * @see Part::getAttribute() This function forwards onto getAttribute. - */ - public function __get(string $key) - { - return $this->getAttribute($key); - } - - /** - * Handles dynamic set calls onto the part. - * - * @param string $key The attributes key. - * @param mixed $value The attributes value. - * - * @see self::setAttribute() This function forwards onto setAttribute. - */ - public function __set(string $key, $value): void - { - $this->setAttribute($key, $value); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Permissions/ChannelPermission.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Permissions/ChannelPermission.php deleted file mode 100644 index 2d715eb..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Permissions/ChannelPermission.php +++ /dev/null @@ -1,49 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Permissions; - -/** - * Represents a set of permissions for a given channel overwrite. - * - * @since 2.1.3 - * - * @property bool $priority_speaker Allows for using priority speaker in a voice channel - * @property bool $stream Allows the user to go live - * @property bool $connect Allows for joining of a voice channel - * @property bool $speak Allows for speaking in a voice channel - * @property bool $mute_members Allows for muting members in a voice channel - * @property bool $deafen_members Allows for deafening of members in a voice channel - * @property bool $move_members Allows for moving of members between voice channels - * @property bool $use_vad Allows for using voice-activity-detection in a voice channel - * @property bool $request_to_speak Allows for requesting to speak in stage channels. (*This permission is under active development and may be changed or removed.*) - * @property bool $manage_events Allows for editing and deleting scheduled events - * @property bool $manage_threads Allows for deleting and archiving threads, and viewing all private threads - * @property bool $create_public_threads Allows for creating public and announcement threads - * @property bool $create_private_threads Allows for creating private threads - * @property bool $send_messages_in_threads Allows for sending messages in threads - * @property bool $use_embedded_activities Allows for using Activities (applications with the `EMBEDDED` flag) in a voice channel - * @property bool $use_soundboard Allows for using soundboard in a voice channel - * @property bool $create_events Allows for creating scheduled events - * @property bool $use_external_sounds Allows the usage of custom soundboard sounds from other servers - * @property bool $send_voice_messages Allows sending voice messages - * @property bool $send_polls Allows sending polls - */ -class ChannelPermission extends Permission -{ - /** - * {@inheritDoc} - */ - public static function getPermissions(): array - { - return array_merge(parent::ALL_PERMISSIONS, parent::TEXT_PERMISSIONS, parent::VOICE_PERMISSIONS, parent::STAGE_PERMISSIONS); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Permissions/Permission.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Permissions/Permission.php deleted file mode 100644 index 28a2de3..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Permissions/Permission.php +++ /dev/null @@ -1,258 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Permissions; - -use Discord\Discord; -use Discord\Helpers\BigInt; -use Discord\Parts\Part; - -/** - * Permission represents a set of permissions for a given role or overwrite. - * - * Note: The const declared here are the bit position, not the bitwise value. - * - * @link https://discord.com/developers/docs/topics/permissions - * - * @since 2.1.3 Namespace moved from Guild to Permissions - * @since 2.0.0 - * - * @property int|string $bitwise Bitwise value of the enabled/disabled permissions - * @property bool $create_instant_invite Allows creation of instant invites - * @property bool $manage_channels Allows management and editing of channels - * @property bool $add_reactions Allows for the addition of reactions to messages - * @property bool $view_channel Allows guild members to view a channel, which includes reading messages in text channels and joining voice channels - * @property bool $send_messages Allows for sending messages in a channel and creating threads in a forum (does not allow sending messages in threads) - * @property bool $send_tts_messages Allows for sending of `/tts` messages - * @property bool $manage_messages Allows for deletion of other users messages - * @property bool $embed_links Links sent by users with this permission will be auto-embedded - * @property bool $attach_files Allows for uploading images and files - * @property bool $read_message_history Allows for reading of message history - * @property bool $mention_everyone Allows for using the `@everyone` tag to notify all users in a channel, and the `@here` tag to notify all online users in a channel - * @property bool $use_external_emojis Allows the usage of custom emojis from other servers - * @property bool $manage_roles Allows management and editing of roles - * @property bool $manage_webhooks Allows management and editing of webhooks - * @property bool $use_application_commands Allows members to use application commands, including slash commands and context menu commands. - * @property bool $use_external_stickers Allows the usage of custom stickers from other servers - * @property bool $send_voice_messages Allows sending voice messages - */ -abstract class Permission extends Part -{ - /** - * Array of permissions that only apply to text channels. - * i.e. indicated T in documentation. - * - * The constant values here are the bit position, not the bitwise value - * - * @see ChannelPermission - * - * @var array - */ - public const TEXT_PERMISSIONS = [ - 'manage_threads' => 34, - 'create_public_threads' => 35, - 'create_private_threads' => 36, - 'send_messages_in_threads' => 38, - ]; - - /** - * Array of permissions that only apply to voice channels. - * i.e. indicated V in documentation. - * - * @see ChannelPermission - * - * @var array - */ - public const VOICE_PERMISSIONS = [ - 'priority_speaker' => 8, - 'stream' => 9, - 'connect' => 20, - 'speak' => 21, - 'mute_members' => 22, - 'deafen_members' => 23, - 'move_members' => 24, - 'use_vad' => 25, - 'manage_events' => 33, - 'use_embedded_activities' => 39, - 'use_soundboard' => 42, - 'create_events' => 44, - 'use_external_sounds' => 45, - 'send_voice_messages' => 46, - 'send_polls' => 49, - ]; - - /** - * Array of permissions that only apply to stage channels. - * i.e. indicated S in documentation. - * - * @see ChannelPermission - * - * @var array - */ - public const STAGE_PERMISSIONS = [ - 'stream' => 9, - 'connect' => 20, - 'mute_members' => 22, - 'move_members' => 24, - 'request_to_speak' => 32, - 'manage_events' => 33, - 'create_events' => 44, - ]; - - /** - * Array of permissions for all roles. - * i.e. indicated T,V,S in documentation. - * - * @var array - */ - public const ALL_PERMISSIONS = [ - 'create_instant_invite' => 0, - 'manage_channels' => 4, - 'add_reactions' => 6, - 'view_channel' => 10, - 'send_messages' => 11, - 'send_tts_messages' => 12, - 'manage_messages' => 13, - 'embed_links' => 14, - 'attach_files' => 15, - 'read_message_history' => 16, - 'mention_everyone' => 17, - 'use_external_emojis' => 18, - 'manage_roles' => 28, - 'manage_webhooks' => 29, - 'use_application_commands' => 31, - 'use_external_stickers' => 37, - 'send_voice_messages' => 46, - ]; - - /** - * Array of permissions that can only be applied to roles. - * i.e. indicated empty in documentation. - * - * @see RolePermission - * - * @var array - */ - public const ROLE_PERMISSIONS = [ - 'kick_members' => 1, - 'ban_members' => 2, - 'administrator' => 3, - 'manage_guild' => 5, - 'view_audit_log' => 7, - 'view_guild_insights' => 19, - 'change_nickname' => 26, - 'manage_nicknames' => 27, - 'manage_guild_expressions' => 30, - 'moderate_members' => 40, - 'view_creator_monetization_analytics' => 41, - ]; - - /** - * Array of permissions. - * - * @var array - */ - private $permissions = []; - - /** - * {@inheritDoc} - */ - public function __construct(Discord $discord, array $attributes = [], bool $created = false) - { - $this->permissions = $this->getPermissions(); - $this->fillable = array_keys($this->permissions); - $this->fillable[] = 'bitwise'; - - parent::__construct($discord, $attributes, $created); - - foreach ($this->fillable as $permission) { - if (! isset($this->attributes[$permission])) { - $this->attributes[$permission] = false; - } - } - } - - /** - * Returns an array of extra permissions. - * - * @return array - */ - abstract public static function getPermissions(): array; - - /** - * Gets the bitwise attribute of the permission. - * - * @link https://discord.com/developers/docs/topics/permissions#permissions-bitwise-permission-flags - * - * @return int|string - */ - protected function getBitwiseAttribute() - { - if (BigInt::is32BitWithGMP()) { // x86 with GMP - $bitwise = \gmp_init(0); - - foreach ($this->permissions as $permission => $value) { - \gmp_setbit($bitwise, $value, $this->attributes[$permission]); - } - - return \gmp_strval($bitwise); - } - - $bitwise = 0; - - foreach ($this->permissions as $permission => $value) { - if ($this->attributes[$permission]) { - $bitwise |= 1 << $value; - } - } - - return $bitwise; - } - - /** - * Sets the bitwise attribute of the permission. - * - * @link https://discord.com/developers/docs/topics/permissions#permissions-bitwise-permission-flags - * - * @param int|string $bitwise - */ - protected function setBitwiseAttribute($bitwise): void - { - if (PHP_INT_SIZE === 8 && is_string($bitwise)) { // x64 - $bitwise = (int) $bitwise; - } - - foreach ($this->permissions as $permission => $value) { - $this->attributes[$permission] = BigInt::test($bitwise, $value); - } - } - - /** - * @deprecated 10.0.0 Use `manage_guild_expressions` - */ - protected function getManageEmojisAndStickersAttribute() - { - return $this->attributes['manage_guild_expressions'] ?? null; - } - - /** - * @deprecated 10.0.0 Use `manage_guild_expressions` - */ - protected function setManageEmojisAndStickersAttribute(bool $value): void - { - $this->attributes['manage_guild_expressions'] = $value; - } - - public function __toString(): string - { - return (string) $this->bitwise; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Permissions/RolePermission.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Permissions/RolePermission.php deleted file mode 100644 index 0e0aaf3..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Permissions/RolePermission.php +++ /dev/null @@ -1,61 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Permissions; - -/** - * Represents a set of permissions for a given role. - * - * @since 2.1.3 - * - * @property bool $kick_members Allows kicking members - * @property bool $ban_members Allows banning members - * @property bool $administrator Allows all permissions and bypasses channel permission overwrites - * @property bool $manage_guild Allows management and editing of the guild - * @property bool $view_audit_log Allows for viewing of audit logs - * @property bool $view_guild_insights Allows for viewing guild insights - * @property bool $change_nickname Allows for modification of own nickname - * @property bool $manage_nicknames Allows for modification of other users nicknames - * @property bool $manage_guild_expressions Allows management and editing of emojis, stickers, and soundboard sounds - * @property bool $moderate_members Allows for timing out users to prevent them from sending or reacting to messages in chat and threads, and from speaking in voice and stage channels - * @property bool $view_creator_monetization_analytics Allows for viewing role subscription insights - * - * @property bool $priority_speaker - * @property bool $stream - * @property bool $connect - * @property bool $speak - * @property bool $mute_members - * @property bool $deafen_members - * @property bool $move_members - * @property bool $use_vad - * @property bool $request_to_speak - * @property bool $manage_events - * @property bool $manage_threads - * @property bool $create_public_threads - * @property bool $create_private_threads - * @property bool $send_messages_in_threads - * @property bool $use_embedded_activities - * @property bool $use_soundboard - * @property bool $create_events - * @property bool $use_external_sounds - * @property bool $send_voice_messages - * @property bool $send_polls - */ -class RolePermission extends Permission -{ - /** - * {@inheritDoc} - */ - public static function getPermissions(): array - { - return array_merge(parent::ALL_PERMISSIONS, parent::TEXT_PERMISSIONS, parent::VOICE_PERMISSIONS, parent::STAGE_PERMISSIONS, parent::ROLE_PERMISSIONS); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Thread/Member.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Thread/Member.php deleted file mode 100644 index f6f9faa..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Thread/Member.php +++ /dev/null @@ -1,120 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Thread; - -use Carbon\Carbon; -use Discord\Http\Endpoint; -use Discord\Parts\Guild\Guild; -use Discord\Parts\Part; -use Discord\Parts\User\Member as GuildMember; -use Discord\Parts\User\User; -use React\Promise\PromiseInterface; - -/** - * Represents a member that belongs to a thread. Not the same as a user nor a - * guild member. - * - * @link https://discord.com/developers/docs/resources/channel#thread-member-object - * - * @since 7.0.0 - * - * @property string|null $id ID of the thread. - * @property string|null $user_id ID of the user that the member object represents. - * @property-read User|null $user The user that the member object represents. - * @property Carbon $join_timestamp The time that the member joined the thread. - * @property int $flags Flags relating to the member. Only used for client notifications. - * @property-read GuildMember|null $member Additional information about the user. - */ -class Member extends Part -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'id', - 'user_id', - 'join_timestamp', - 'flags', - 'member', - // @internal and events only - 'guild_id', - ]; - - /** - * Returns the user that the member represents. - * - * @return User|null - */ - protected function getUserAttribute(): ?User - { - return $this->discord->users->get('id', $this->user_id); - } - - /** - * Returns the time that the member joined the thread. - * - * @return Carbon - * - * @throws \Exception - */ - protected function getJoinTimestampAttribute(): Carbon - { - return new Carbon($this->attributes['join_timestamp']); - } - - /** - * Returns the guild member that the thread member represents. - * - * @return GuildMember|null - * - * @since 10.0.0 - */ - protected function getMemberAttribute(): ?GuildMember - { - if (! isset($this->attributes['member'])) { - if ($guild = $this->getGuildAttribute()) { - return $guild->members->get('id', $this->user_id); - } - - return null; - } - - $memberData = (array) $this->attributes['member']; - if (isset($this->guild_id)) { - $memberData['guild_id'] = $this->guild_id; - } - - return $this->factory->part(Member::class, $memberData, true); - } - - /** - * Returns the guild attribute based on internal `guild_id`. - * - * @return Guild|null The guild attribute. - */ - private function getGuildAttribute(): ?Guild - { - return $this->discord->guilds->get('id', $this->guild_id); - } - - /** - * Attempts to remove the member from the thread. - * - * @link https://discord.com/developers/docs/resources/channel#remove-thread-member - * - * @return PromiseInterface - */ - public function remove(): PromiseInterface - { - return $this->http->delete(Endpoint::bind(Endpoint::THREAD_MEMBER, $this->id, $this->user_id)); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/Thread/Thread.php b/vendor/team-reflex/discord-php/src/Discord/Parts/Thread/Thread.php deleted file mode 100644 index 044d5e6..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/Thread/Thread.php +++ /dev/null @@ -1,907 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\Thread; - -use Carbon\Carbon; -use Discord\Builders\MessageBuilder; -use Discord\Helpers\Collection; -use Discord\Http\Endpoint; -use Discord\Http\Exceptions\NoPermissionsException; -use Discord\Parts\Channel\Channel; -use Discord\Parts\Channel\Message; -use Discord\Parts\Embed\Embed; -use Discord\Parts\Guild\Guild; -use Discord\Parts\Part; -use Discord\Parts\Permissions\RolePermission; -use Discord\Parts\Thread\Member as ThreadMember; -use Discord\Parts\User\Member; -use Discord\Parts\User\User; -use Discord\Repository\Channel\MessageRepository; -use Discord\Repository\Thread\MemberRepository; -use Discord\WebSockets\Event; -use React\Promise\Deferred; -use React\Promise\PromiseInterface; -use Stringable; -use Symfony\Component\OptionsResolver\OptionsResolver; -use Traversable; - -use function Discord\getSnowflakeTimestamp; -use function React\Promise\all; -use function React\Promise\reject; - -/** - * Represents a Discord thread. - * - * @link https://discord.com/developers/docs/topics/threads - * - * @since 7.0.0 - * - * @property string $id The ID of the thread. - * @property int $type The type of thread. - * @property string $guild_id The ID of the guild which the thread belongs to. - * @property-read Guild|null $guild The guild which the thread belongs to. - * @property string $name The name of the thread. - * @property string $last_message_id The ID of the last message sent in the thread. - * @property Carbon|null $last_pin_timestamp The timestamp when the last message was pinned in the thread. - * @property int $rate_limit_per_user Amount of seconds a user has to wait before sending a new message. - * @property string $owner_id The ID of the owner of the thread. - * @property-read User|null $owner The owner of the thread. - * @property-read Member|null $owner_member The member object for the owner of the thread. - * @property string $parent_id The ID of the channel which the thread was started in. - * @property-read Channel|null $parent The channel which the thread was created in. - * @property int $message_count Number of messages (not including the initial message or deleted messages) in a thread (if the thread was created before July 1, 2022, the message count is inaccurate when it's greater than 50). - * @property int $member_count An approximate count of the number of members in the thread. Stops counting at 50. - * @property object $thread_metadata Thread-specific fields not needed by other channels. - * @property bool $archived Whether the thread has been archived. - * @property int|null $auto_archive_duration The number of minutes of inactivity until the thread is automatically archived. - * @property Carbon $archive_timestamp The time that the thread's archive status was changed. - * @property bool $locked Whether the thread has been locked. - * @property bool|null $invitable Whether non-moderators can add other non-moderators to a thread; only available on private threads. - * @property Carbon|null $create_timestamp Timestamp when the thread was created; only populated for threads created after 2022-01-09. - * @property int|null $total_message_sent Number of messages ever sent in a thread, it's similar to `message_count` on message creation, but will not decrement the number when a message is deleted. - * @property int|null $flags Channel flags combined as a bitfield. PINNED can only be set for threads in forum channels. - * @property string[]|null $applied_tags The IDs of the set of tags that have been applied to a thread in a forum channel, limited to 5. - * - * @property MessageRepository $messages Repository of messages sent in the thread. - * @property MemberRepository $members Repository of members in the thread. - * - * @method PromiseInterface sendMessage(MessageBuilder $builder) - */ -class Thread extends Part implements Stringable -{ - public const FLAG_PINNED = (1 << 1); - - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'id', - 'type', - 'guild_id', - 'name', - 'last_message_id', - 'last_pin_timestamp', - 'rate_limit_per_user', - 'owner_id', - 'parent_id', - 'message_count', - 'member_count', - 'thread_metadata', - 'member', - 'total_message_sent', - 'flags', - 'applied_tags', - - // events - 'newly_created', - ]; - - /** - * {@inheritDoc} - */ - protected $hidden = [ - 'member', - ]; - - /** - * {@inheritDoc} - */ - protected $repositories = [ - 'messages' => MessageRepository::class, - 'members' => MemberRepository::class, - ]; - - /** - * {@inheritDoc} - */ - protected function afterConstruct(): void - { - if (isset($this->attributes['member'])) { - $memberPart = $this->members->create((array) $this->attributes['member'] + [ - 'id' => $this->id, - 'user_id' => $this->discord->id, - 'guild_id' => $this->guild_id, - ], $this->created); - $memberPart->created = &$this->created; - $this->members->pushItem($memberPart); - } - } - - /** - * Returns the guild which the thread belongs to. - * - * @return Guild|null - */ - protected function getGuildAttribute(): ?Guild - { - return $this->discord->guilds->get('id', $this->guild_id); - } - - /** - * Returns the owner of the thread. - * - * @return User|null - */ - protected function getOwnerAttribute(): ?User - { - return $this->discord->users->get('id', $this->owner_id); - } - - /** - * Returns the member object for the owner of the thread. - * - * @return Member|null - */ - protected function getOwnerMemberAttribute(): ?Member - { - if ($guild = $this->guild) { - return $guild->members->get('id', $this->owner_id); - } - - return null; - } - - /** - * Returns the parent channel of the thread. - * - * @return Channel|null - */ - protected function getParentAttribute(): ?Channel - { - if ($guild = $this->guild) { - return $guild->channels->get('id', $this->parent_id); - } - - return $this->discord->getChannel($this->parent_id); - } - - /** - * Returns the timestamp when the last message was pinned in the thread. - * - * @return Carbon|null - * - * @throws \Exception - */ - protected function getLastPinTimestampAttribute(): ?Carbon - { - if (! isset($this->attributes['last_pin_timestamp'])) { - return null; - } - - return new Carbon($this->attributes['last_pin_timestamp']); - } - - /** - * Returns whether the thread is archived. - * - * @return bool - */ - protected function getArchivedAttribute(): bool - { - return $this->thread_metadata->archived ?? false; - } - - /** - * Returns whether the thread has been locked. - * - * @return bool - */ - protected function getLockedAttribute(): bool - { - return $this->thread_metadata->locked ?? false; - } - - /** - * Returns whether the thread is archived. - * - * @return bool|null - */ - protected function getInvitableAttribute(): ?bool - { - return $this->thread_metadata->invitable ?? null; - } - - /** - * Returns the number of minutes of inactivity required for the thread to - * auto archive. - * - * @return int|null - */ - protected function getAutoArchiveDurationAttribute(): ?int - { - return $this->thread_metadata->auto_archive_duration ?? null; - } - - /** - * Set whether the thread is archived. - * - * @param bool $value - */ - protected function setArchivedAttribute(bool $value): void - { - $this->attributes['thread_metadata']->archived = $value; - } - - /** - * Set whether the thread is locked. - * - * @param bool $value - */ - protected function setLockedAttribute(bool $value): void - { - $this->attributes['thread_metadata']->locked = $value; - } - - /** - * Set the number of minutes of inactivity required for the thread to auto - * archive. - * - * @param int $value - */ - protected function setAutoArchiveDurationAttribute(int $value): void - { - $this->attributes['thread_metadata']->auto_archive_duration = $value; - } - - /** - * Returns the time that the thread's archive status was changed. - * - * Note that this does not mean the time that the thread was archived - it - * can also mean the time when the thread was created, archived, unarchived - * etc. - * - * @return Carbon - * - * @throws \Exception - */ - protected function getArchiveTimestampAttribute(): Carbon - { - return new Carbon($this->thread_metadata->archive_timestamp); - } - - /** - * Returns the timestamp when the thread was created; only populated for - * threads created after 2022-01-09. - * - * @return Carbon|null - * - * @throws \Exception - */ - protected function getCreateTimestampAttribute(): ?Carbon - { - if (! isset($this->attributes['create_timestamp'])) { - return null; - } - - return new Carbon($this->thread_metadata->create_timestamp); - } - - /** - * Attempts to join the thread. - * - * @link https://discord.com/developers/docs/resources/channel#join-thread - * - * @return PromiseInterface - */ - public function join(): PromiseInterface - { - return $this->http->put(Endpoint::bind(Endpoint::THREAD_MEMBER_ME, $this->id)); - } - - /** - * Attempts to add a user to the thread. - * - * @link https://discord.com/developers/docs/resources/channel#add-thread-member - * - * @param User|Member|string $user User to add. Can be one of the user objects or a user ID. - * - * @return PromiseInterface - */ - public function addMember($user): PromiseInterface - { - if ($user instanceof User || $user instanceof Member) { - $user = $user->id; - } - - return $this->http->put(Endpoint::bind(Endpoint::THREAD_MEMBER, $this->id, $user)); - } - - /** - * Attempts to leave the thread. - * - * @link https://discord.com/developers/docs/resources/channel#leave-thread - * - * @return PromiseInterface - */ - public function leave(): PromiseInterface - { - return $this->http->delete(Endpoint::bind(Endpoint::THREAD_MEMBER_ME, $this->id)); - } - - /** - * Attempts to remove a user from the thread. - * - * @link https://discord.com/developers/docs/resources/channel#remove-thread-member - * - * @param User|Member|ThreadMember|string $user User to remove. Can be one of the user objects or a user ID. - * - * @return PromiseInterface - */ - public function removeMember($user): PromiseInterface - { - if ($user instanceof User || $user instanceof Member) { - $user = $user->id; - } elseif ($user instanceof ThreadMember) { - $user = $user->user_id; - } - - return $this->http->delete(Endpoint::bind(Endpoint::THREAD_MEMBER, $this->id, $user)); - } - - /** - * Rename the thread. - * - * @param string $name New thread name. - * @param string|null $reason Reason for Audit Log. - * - * @return PromiseInterface - */ - public function rename(string $name, ?string $reason = null): PromiseInterface - { - $headers = []; - if (isset($reason)) { - $headers['X-Audit-Log-Reason'] = $reason; - } - - return $this->http->patch(Endpoint::bind(Endpoint::THREAD, $this->id), ['name' => $name], $headers) - ->then(function ($response) { - $this->name = $response->name; - - return $this; - }); - } - - /** - * Archive the thread. - * - * @param string|null $reason Reason for Audit Log. - * - * @return PromiseInterface - */ - public function archive(?string $reason = null): PromiseInterface - { - $headers = []; - if (isset($reason)) { - $headers['X-Audit-Log-Reason'] = $reason; - } - - return $this->http->patch(Endpoint::bind(Endpoint::THREAD, $this->id), ['archived' => true], $headers) - ->then(function ($response) { - $this->archived = $response->thread_metadata->archived; - - return $this; - }); - } - - /** - * Unarchive the thread. - * - * @param string|null $reason Reason for Audit Log. - * - * @return PromiseInterface - */ - public function unarchive(?string $reason = null): PromiseInterface - { - $headers = []; - if (isset($reason)) { - $headers['X-Audit-Log-Reason'] = $reason; - } - - return $this->http->patch(Endpoint::bind(Endpoint::THREAD, $this->id), ['archived' => false], $headers) - ->then(function ($response) { - $this->archived = $response->thread_metadata->archived; - - return $this; - }); - } - - /** - * Set auto archive duration of the thread. - * - * @param int $duration Duration in minutes. - * @param string|null $reason Reason for Audit Log. - * - * @return PromiseInterface - */ - public function setAutoArchiveDuration(int $duration, ?string $reason = null): PromiseInterface - { - $headers = []; - if (isset($reason)) { - $headers['X-Audit-Log-Reason'] = $reason; - } - - return $this->http->patch(Endpoint::bind(Endpoint::THREAD, $this->id), ['auto_archive_duration' => $duration], $headers) - ->then(function ($response) { - $this->auto_archive_duration = $response->thread_metadata->auto_archive_duration; - - return $this; - }); - } - - /** - * Returns the thread's pinned messages. - * - * @link https://discord.com/developers/docs/resources/channel#get-pinned-messages - * - * @return PromiseInterface> - * - * @todo Make it in a trait along with Channel - */ - public function getPinnedMessages(): PromiseInterface - { - return $this->http->get(Endpoint::bind(Endpoint::CHANNEL_PINS, $this->id)) - ->then(function ($responses) { - $messages = Collection::for(Message::class); - - foreach ($responses as $response) { - $messages->pushItem($this->messages->get('id', $response->id) ?: $this->messages->create($response, true)); - } - - return $messages; - }); - } - - /** - * Bulk deletes an array of messages. - * - * @link https://discord.com/developers/docs/resources/channel#bulk-delete-messages - * - * @param array|Traversable $messages An array of messages to delete. - * @param string|null $reason Reason for Audit Log (only for bulk messages). - * - * @return PromiseInterface - * - * @todo Make it in a trait along with Channel - */ - public function deleteMessages($messages, ?string $reason = null): PromiseInterface - { - if (! is_array($messages) && ! ($messages instanceof Traversable)) { - return reject(new \InvalidArgumentException('$messages must be an array or implement Traversable.')); - } - - if ($botperms = $this->getBotPermissions()) { - if (! $botperms->manage_messages) { - return reject(new NoPermissionsException("You do not have permission to delete messages in the thread {$this->id}.")); - } - } - - $headers = $promises = $messagesBulk = $messagesSingle = []; - if (isset($reason)) { - $headers['X-Audit-Log-Reason'] = $reason; - } - - foreach ($messages as $message) { - if ($message instanceof Message) { - $message = $message->id; - } - - if (getSnowflakeTimestamp($message) < time() - 1209600) { - $messagesSingle[] = $message; - } else { - $messagesBulk[] = $message; - } - } - - while (count($messagesBulk) > 1) { - $promises[] = $this->http->post(Endpoint::bind(Endpoint::CHANNEL_MESSAGES_BULK_DELETE, $this->id), ['messages' => array_slice($messagesBulk, 0, 100)], $headers); - $messagesBulk = array_slice($messagesBulk, 100); - } - - $messagesSingle = array_merge($messagesSingle, $messagesBulk); - - foreach ($messagesSingle as $message) { - $promises[] = $this->http->delete(Endpoint::bind(Endpoint::CHANNEL_MESSAGE, $this->id, $message)); - } - - return all($promises); - } - - /** - * Fetches the message history of the thread with a given array of arguments. - * - * @link https://discord.com/developers/docs/resources/channel#get-channel-messages - * - * @param array $options Array of options. - * @param string|Message|null $options['around'] Get messages around this message ID. - * @param string|Message|null $options['before'] Get messages before this message ID. - * @param string|Message|null $options['after'] Get messages after this message ID. - * @param int|null $options['limit'] Max number of messages to return (1-100). Defaults to 50. - * - * @return PromiseInterface> - * - * @todo Make it in a trait along with Channel - */ - public function getMessageHistory(array $options = []): PromiseInterface - { - $resolver = new OptionsResolver(); - $resolver - ->setDefaults(['limit' => 50, 'cache' => false]) - ->setDefined(['before', 'after', 'around']) - ->setAllowedTypes('before', [Message::class, 'string']) - ->setAllowedTypes('after', [Message::class, 'string']) - ->setAllowedTypes('around', [Message::class, 'string']) - ->setAllowedTypes('limit', 'integer') - ->setAllowedValues('limit', fn ($value) => ($value >= 1 && $value <= 100)); - - $options = $resolver->resolve($options); - - if (isset($options['before'], $options['after']) || - isset($options['before'], $options['around']) || - isset($options['around'], $options['after'])) { - return reject(new \Exception('Can only specify one of before, after and around.')); - } - - $endpoint = Endpoint::bind(Endpoint::CHANNEL_MESSAGES, $this->id); - $endpoint->addQuery('limit', $options['limit']); - - if (isset($options['before'])) { - $endpoint->addQuery('before', $options['before'] instanceof Message ? $options['before']->id : $options['before']); - } - - if (isset($options['after'])) { - $endpoint->addQuery('after', $options['after'] instanceof Message ? $options['after']->id : $options['after']); - } - - if (isset($options['around'])) { - $endpoint->addQuery('around', $options['around'] instanceof Message ? $options['around']->id : $options['around']); - } - - return $this->http->get($endpoint)->then(function ($responses) { - $messages = Collection::for(Message::class); - - foreach ($responses as $response) { - if (! $message = $this->messages->get('id', $response->id)) { - $message = $this->messages->create($response, true); - $this->messages->pushItem($message); - } - - $messages->pushItem($message); - } - - return $messages; - }); - } - - /** - * Pins a message in the thread. - * - * @link https://discord.com/developers/docs/resources/channel#pin-message - * - * @param Message $message - * @param string|null $reason Reason for Audit Log. - * - * @throws \RuntimeException - * - * @return PromiseInterface - * - * @todo Make it in a trait along with Channel - */ - public function pinMessage(Message $message, ?string $reason = null): PromiseInterface - { - if ($message->pinned) { - return reject(new \RuntimeException('This message is already pinned.')); - } - - if ($message->channel_id != $this->id) { - return reject(new \RuntimeException('You cannot pin a message not sent in this thread.')); - } - - $headers = []; - if (isset($reason)) { - $headers['X-Audit-Log-Reason'] = $reason; - } - - return $this->http->put(Endpoint::bind(Endpoint::CHANNEL_PIN, $this->id, $message->id), null, $headers)->then(function () use (&$message) { - $message->pinned = true; - - return $message; - }); - } - - /** - * Unpins a message in the thread. - * - * @link https://discord.com/developers/docs/resources/channel#unpin-message - * - * @param Message $message - * @param string|null $reason Reason for Audit Log. - * - * @throws \RuntimeException - * - * @return PromiseInterface - * - * @todo Make it in a trait along with Channel - */ - public function unpinMessage(Message $message, ?string $reason = null): PromiseInterface - { - if (! $message->pinned) { - return reject(new \RuntimeException('This message is not pinned.')); - } - - if ($message->channel_id != $this->id) { - return reject(new \RuntimeException('You cannot un-pin a message not sent in this thread.')); - } - - $headers = []; - if (isset($reason)) { - $headers['X-Audit-Log-Reason'] = $reason; - } - - return $this->http->delete(Endpoint::bind(Endpoint::CHANNEL_PIN, $this->id, $message->id), null, $headers)->then(function () use (&$message) { - $message->pinned = false; - - return $message; - }); - } - - /** - * Sends a message to the thread. - * - * Takes a `MessageBuilder` or content of the message for the first - * parameter. If the first parameter is an instance of `MessageBuilder`, the - * rest of the arguments are disregarded. - * - * @link https://discord.com/developers/docs/resources/channel#create-message - * - * @param MessageBuilder|string $message The message builder that should be converted into a message, or the string content of the message. - * @param bool $tts Whether the message is TTS. - * @param Embed|array|null $embed An embed object or array to send in the message. - * @param array|null $allowed_mentions Allowed mentions object for the message. - * @param Message|null $replyTo Sends the message as a reply to the given message instance. - * - * @return PromiseInterface - * - * @todo Make it in a trait along with Channel - */ - public function sendMessage($message, bool $tts = false, $embed = null, $allowed_mentions = null, ?Message $replyTo = null): PromiseInterface - { - // Backwards compatible support for old `sendMessage` function signature. - if (! ($message instanceof MessageBuilder)) { - $message = MessageBuilder::new() - ->setContent($message); - - if ($tts) { - $message->setTts(true); - } - - if ($embed) { - $message->addEmbed($embed); - } - - if ($allowed_mentions) { - $message->setAllowedMentions($allowed_mentions); - } - - if ($replyTo) { - $message->setReplyTo($replyTo); - } - } - - return (function () use ($message) { - if ($message->requiresMultipart()) { - $multipart = $message->toMultipart(); - - return $this->http->post(Endpoint::bind(Endpoint::CHANNEL_MESSAGES, $this->id), (string) $multipart, $multipart->getHeaders()); - } - - return $this->http->post(Endpoint::bind(Endpoint::CHANNEL_MESSAGES, $this->id), $message); - })()->then(fn ($response) => $this->messages->get('id', $response->id) ?: $this->messages->create($response, true)); - } - - /** - * Sends an embed to the thread. - * - * @deprecated 10.0.0 Use `Channel::sendMessage` with `MessageBuilder::addEmbed()` - * - * @see Thread::sendMessage() - * - * @param Embed $embed Embed to send. - * - * @return PromiseInterface - * - * @todo Make it in a trait along with Channel - */ - public function sendEmbed(Embed $embed): PromiseInterface - { - return $this->sendMessage(MessageBuilder::new() - ->addEmbed($embed)); - } - - /** - * Broadcasts that you are typing to the thread. Lasts for 5 seconds. - * - * @link https://discord.com/developers/docs/resources/channel#trigger-typing-indicator - * - * @since 10.0.0 - * - * @throws \RuntimeException - * - * @return PromiseInterface - */ - public function broadcastTyping(): PromiseInterface - { - return $this->http->post(Endpoint::bind(Endpoint::CHANNEL_TYPING, $this->id)); - } - - /** - * Creates a message collector for the channel. - * - * @param callable $filter The filter function. Returns true or false. - * @param array $options - * @param int $options ['time'] Time in milliseconds until the collector finishes or false. - * @param int $options ['limit'] The amount of messages allowed or false. - * - * @return PromiseInterface> - * - * @todo Make it in a trait along with Channel - */ - public function createMessageCollector(callable $filter, array $options = []): PromiseInterface - { - $deferred = new Deferred(); - $messages = new Collection([], null, null); - $timer = null; - - $options = array_merge([ - 'time' => false, - 'limit' => false, - ], $options); - - $eventHandler = function (Message $message) use (&$eventHandler, $filter, $options, &$messages, &$deferred, &$timer) { - // Reject messages not in this thread - if ($message->channel_id != $this->id) { - return; - } - - $filterResult = call_user_func_array($filter, [$message]); - - if ($filterResult) { - $messages->pushItem($message); - - if ($options['limit'] !== false && count($messages) >= $options['limit']) { - $this->discord->removeListener(Event::MESSAGE_CREATE, $eventHandler); - $deferred->resolve($messages); - - if (null !== $timer) { - $this->discord->getLoop()->cancelTimer($timer); - } - } - } - }; - - $this->discord->on(Event::MESSAGE_CREATE, $eventHandler); - - if ($options['time'] !== false) { - $timer = $this->discord->getLoop()->addTimer($options['time'] / 1000, function () use (&$eventHandler, &$messages, &$deferred) { - $this->discord->removeListener(Event::MESSAGE_CREATE, $eventHandler); - $deferred->resolve($messages); - }); - } - - return $deferred->promise(); - } - - /** - * Returns the bot's permissions in the thread. - * - * @return RolePermission|null - */ - public function getBotPermissions(): ?RolePermission - { - return $this->guild?->members->get('id', $this->discord->id)?->getPermissions($this); - } - - /** - * {@inheritDoc} - * - * @link https://discord.com/developers/docs/resources/channel#start-thread-without-message-json-params - */ - public function getCreatableAttributes(): array - { - $attr = [ - 'name' => $this->name, - ]; - - if ($this->type == Channel::TYPE_PRIVATE_THREAD) { - $attr += $this->makeOptionalAttributes([ - 'invitable' => $this->invitable, - ]); - } - - $attr += $this->makeOptionalAttributes([ - 'auto_archive_duration' => $this->auto_archive_duration, - 'type' => $this->type, - 'rate_limit_per_user' => $this->rate_limit_per_user, - ]); - - return $attr; - } - - /** - * {@inheritDoc} - * - * @link https://discord.com/developers/docs/resources/channel#modify-channel-json-params-thread - */ - public function getUpdatableAttributes(): array - { - $attr = [ - 'name' => $this->name, - 'archived' => $this->archived, - 'auto_archive_duration' => $this->auto_archive_duration, - 'locked' => $this->locked, - 'rate_limit_per_user' => $this->rate_limit_per_user, - ]; - - if ($this->type == Channel::TYPE_PRIVATE_THREAD) { - $attr['invitable'] = $this->invitable; - } - - $attr += $this->makeOptionalAttributes([ - 'flags' => $this->flags, - 'applied_tags' => $this->applied_tags, - ]); - - return $attr; - } - - /** - * {@inheritDoc} - */ - public function getRepositoryAttributes(): array - { - return [ - 'guild_id' => $this->guild_id, - 'parent_id' => $this->parent_id, - 'channel_id' => $this->id, - 'thread_id' => $this->id, - ]; - } - - /** - * Returns a formatted mention. - * - * @return string A formatted mention. - */ - public function __toString(): string - { - return "<#{$this->id}>"; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/User/Activity.php b/vendor/team-reflex/discord-php/src/Discord/Parts/User/Activity.php deleted file mode 100644 index ad90223..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/User/Activity.php +++ /dev/null @@ -1,149 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\User; - -use Carbon\Carbon; -use Discord\Parts\Guild\Emoji; -use Discord\Parts\Part; -use Stringable; - -/** - * The Activity part describes activities the member is undertaking. - * - * @link https://discord.com/developers/docs/topics/gateway-events#activity-object - * - * @since 5.0.0 Renamed from Game to Activity - * @since 3.2.2 - * - * @property string $name The activity's name. - * @property int $type Activity type. - * @property ?string|null $url Stream url, is validated when type is 1. - * @property Carbon|null $created_at Timestamp of when the activity was added to the user's session. - * @property object|null $timestamps Unix timestamps for start and/or end of the game. - * @property string|null $application_id Application id for the game. - * @property ?string|null $details What the player is currently doing. - * @property ?string|null $state The user's current party status, or text used for a custom status. - * @property Emoji|null $emoji The emoji used for a custom status. - * @property object|null $party Information for the current party of the player. - * @property object|null $assets Images for the presence and their hover texts. - * @property object|null $secrets Secrets for Rich Presence joining and spectating. - * @property bool|null $instance Whether or not the activity is an instanced game session. - * @property int|null $flags Activity flags `OR`d together, describes what the payload includes. - * @property object[]|null $buttons The custom buttons shown in the Rich Presence (max 2). - */ -class Activity extends Part implements Stringable -{ - /** Playing {name} */ - public const TYPE_GAME = 0; - - /** Streaming {details} */ - public const TYPE_STREAMING = 1; - - /** Listening to {name} */ - public const TYPE_LISTENING = 2; - - /** Watching {name} */ - public const TYPE_WATCHING = 3; - - /** {emoji} {name} */ - public const TYPE_CUSTOM = 4; - - /** Competing in {name} */ - public const TYPE_COMPETING = 5; - - /** @deprecated 10.0.0 Use `Activity::TYPE_GAME` */ - public const TYPE_PLAYING = self::TYPE_GAME; - - public const FLAG_INSTANCE = (1 << 0); - public const FLAG_JOIN = (1 << 1); - public const FLAG_SPECTATE = (1 << 2); - public const FLAG_JOIN_REQUEST = (1 << 3); - public const FLAG_SYNC = (1 << 4); - public const FLAG_PLAY = (1 << 5); - public const FLAG_PARTY_PRIVACY_FRIENDS = (1 << 6); - public const FLAG_PARTY_PRIVACY_VOICE_CHANNEL = (1 << 7); - public const FLAG_EMBEDDED = (1 << 8); - - public const STATUS_ONLINE = 'online'; - public const STATUS_IDLE = 'idle'; - public const STATUS_DND = 'dnd'; - public const STATUS_INVISIBLE = 'invisible'; - - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'name', - 'url', - 'type', - 'created_at', - 'timestamps', - 'application_id', - 'details', - 'state', - 'emoji', - 'party', - 'assets', - 'secrets', - 'instance', - 'flags', - 'buttons', - ]; - - /** - * Gets the created at timestamp. - * - * @return Carbon|null - * - * @throws \Exception - */ - protected function getCreatedAtAttribute(): ?Carbon - { - if (! isset($this->attributes['created_at'])) { - return null; - } - - return Carbon::createFromTimestamp($this->attributes['created_at']); - } - - /** - * Gets the emoji object of the activity. - * - * @return Emoji|null - */ - protected function getEmojiAttribute(): ?Emoji - { - if (! isset($this->attributes['emoji'])) { - return null; - } - - return $this->factory->part(Emoji::class, (array) $this->attributes['emoji'], true); - } - - /** - * Converts the activity to a string. - * - * @return string - */ - public function __toString(): string - { - return match ($this->type) { - self::TYPE_GAME => 'Playing ' . $this->name, - self::TYPE_STREAMING => 'Streaming ' . $this->details, - self::TYPE_LISTENING => 'Listening to ' . $this->name, - self::TYPE_WATCHING => 'Watching ' . $this->name, - self::TYPE_CUSTOM => "{$this->emoji} {$this->state}", - self::TYPE_COMPETING => 'Competing in ' . $this->name, - default => $this->name, - }; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/User/Client.php b/vendor/team-reflex/discord-php/src/Discord/Parts/User/Client.php deleted file mode 100644 index bd56b95..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/User/Client.php +++ /dev/null @@ -1,183 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\User; - -use Discord\Exceptions\FileNotFoundException; -use Discord\Http\Endpoint; -use Discord\Parts\OAuth\Application; -use Discord\Parts\Part; -use Discord\Repository\EmojiRepository; -use Discord\Repository\GuildRepository; -use Discord\Repository\PrivateChannelRepository; -use Discord\Repository\SoundRepository; -use Discord\Repository\UserRepository; -use React\Promise\PromiseInterface; - -/** - * The client is the main interface for the client. Most calls on the main class are forwarded here. - * - * @since 2.0.0 - * - * @property string $id The unique identifier of the client. - * @property string $username The username of the client. - * @property string $discriminator The unique discriminator of the client. - * @property string|null $global_name The user's display name, if it is set. For bots, this is the application name. - * @property ?string $avatar The avatar URL of the client. - * @property string|null $avatar_hash The avatar hash of the client. - * @property bool $bot Whether the client is a bot. - * @property bool|null $mfa_enabled Whether the Bot owner has two factor enabled on their account. - * @property bool|null $verified Whether the client has verified their email. - * @property ?string|null $email The email of the client. - * @property int|null $flags The flags on a user's account. - * @property int|null $public_flags The public flags on a user's account. - * @property User $user The user instance of the client. - * @property Application $application The OAuth2 application of the bot. - * - * @property EmojiRepository $emojis - * @property GuildRepository $guilds - * @property PrivateChannelRepository $private_channels - * @property SoundRepository $sounds - * @property UserRepository $users - */ -class Client extends Part -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'verified', - 'username', - 'public_flags', - 'mfa_enabled', - 'id', - 'flags', - 'email', - 'discriminator', - 'global_name', - 'bot', - 'avatar', - - // actual form - 'user', - 'application', - ]; - - /** - * {@inheritDoc} - */ - protected $repositories = [ - 'emojis' => EmojiRepository::class, - 'guilds' => GuildRepository::class, - 'private_channels' => PrivateChannelRepository::class, - 'sounds' => SoundRepository::class, - 'users' => UserRepository::class, - ]; - - /** - * Runs any extra construction tasks. - */ - public function afterConstruct(): void - { - $this->application = $this->factory->part(Application::class, [], true); - - $this->http->get(Endpoint::APPLICATION_CURRENT)->then(function ($response) { - $this->application->fill((array) $response); - $this->created = true; - }); - } - - /** - * Gets the user attribute. - * - * @return User - */ - protected function getUserAttribute(): Part - { - return $this->factory->part(User::class, $this->attributes, true); - } - - /** - * Sets the users avatar. - * - * @param string $filepath The path to the file. - * - * @throws FileNotFoundException Thrown when the file does not exist. - * - * @return bool Whether the setting succeeded or failed. - */ - public function setAvatar(string $filepath): bool - { - if (! file_exists($filepath)) { - throw new FileNotFoundException("File does not exist at path {$filepath}."); - } - - $extension = pathinfo($filepath, PATHINFO_EXTENSION); - $file = file_get_contents($filepath); - $base64 = base64_encode($file); - - $this->attributes['avatarhash'] = "data:image/{$extension};base64,{$base64}"; - - return true; - } - - /** - * @return string The URL to the client's avatar. - */ - protected function getAvatarAttribute(): string - { - return call_user_func_array([$this->user, 'getAvatarAttribute'], func_get_args()); - } - - /** - * @return string|null The avatar hash for the client. - */ - protected function getAvatarHashAttribute(): ?string - { - return $this->attributes['avatar']; - } - - /** - * Saves the client instance. - * - * @return PromiseInterface - */ - public function save(): PromiseInterface - { - return $this->http->patch(Endpoint::USER_CURRENT, $this->getUpdatableAttributes()); - } - - /** - * {@inheritDoc} - * - * @link https://discord.com/developers/docs/resources/user#modify-current-user-json-params - */ - public function getUpdatableAttributes(): array - { - $attr = [ - 'username' => $this->attributes['username'], - ]; - - if (isset($this->attributes['avatarhash'])) { - $attr['avatar'] = $this->attributes['avatarhash']; - } - - return $attr; - } - - /** - * {@inheritDoc} - */ - public function getRepositoryAttributes(): array - { - return []; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/User/Member.php b/vendor/team-reflex/discord-php/src/Discord/Parts/User/Member.php deleted file mode 100644 index cdf2088..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/User/Member.php +++ /dev/null @@ -1,866 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\User; - -use Carbon\Carbon; -use Discord\Builders\MessageBuilder; -use Discord\Helpers\BigInt; -use Discord\Helpers\Collection; -use Discord\Http\Endpoint; -use Discord\Http\Exceptions\NoPermissionsException; -use Discord\Parts\Channel\Channel; -use Discord\Parts\Channel\Message; -use Discord\Parts\Channel\Overwrite; -use Discord\Parts\Guild\Ban; -use Discord\Parts\Guild\Guild; -use Discord\Parts\Guild\Role; -use Discord\Parts\Part; -use Discord\Parts\Permissions\Permission; -use Discord\Parts\Permissions\RolePermission; -use Discord\Parts\Thread\Thread; -use Discord\Parts\WebSockets\PresenceUpdate; -use React\Promise\PromiseInterface; - -use Stringable; -use function React\Promise\reject; - -/** - * A member is a relationship between a user and a guild. It contains user-to-guild specific data like roles. - * - * @link https://discord.com/developers/docs/resources/guild#guild-member-object - * - * @since 2.0.0 - * - * @property User|null $user The user part of the member. - * @property-read string|null $username The username of the member. - * @property ?string|null $nick The nickname of the member. - * @property-read string $displayname The nickname or display name with optional discriminator of the member. - * @property ?string|null $avatar The avatar URL of the member or null if member has no guild avatar. - * @property ?string|null $avatar_hash The avatar hash of the member or null if member has no guild avatar. - * @property Collection|Role[] $roles A collection of Roles that the member has. - * @property Carbon|null $joined_at A timestamp of when the member joined the guild. - * @property Carbon|null $premium_since When the user started boosting the server. - * @property bool $deaf Whether the member is deaf. - * @property bool $mute Whether the member is mute. - * @property bool|null $pending Whether the user has not yet passed the guild's Membership Screening requirements. - * @property RolePermission|null $permissions Total permissions of the member in the channel, including overwrites, returned when in the interaction object. - * @property Carbon|null $communication_disabled_until When the user's timeout will expire and the user will be able to communicate in the guild again, null or a time in the past if the user is not timed out. - * @property int $flags Guild member flags represented as a bit set, defaults to `0`. - * @property string|null $guild_id The unique identifier of the guild that the member belongs to. - * @property-read Guild|null $guild The guild that the member belongs to. - * - * @property string $id The unique identifier of the member. - * @property string $status The status of the member. - * @property-read Activity $game The game the member is playing. - * @property Collection|Activity[] $activities User's current activities. - * @property object $client_status Current client status. - * - * @method PromiseInterface sendMessage(MessageBuilder $builder) - */ -class Member extends Part implements Stringable -{ - public const FLAGS_DID_REJOIN = (1 << 0); - public const FLAGS_COMPLETED_ONBOARDING = (1 << 1); - public const FLAGS_BYPASSES_VERIFICATION = (1 << 2); - public const FLAGS_STARTED_ONBOARDING = (1 << 3); - - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'user', - 'nick', - 'avatar', - 'roles', - 'joined_at', - 'premium_since', - 'deaf', - 'mute', - 'pending', - 'permissions', - 'communication_disabled_until', - 'flags', - - // partial - 'guild_id', - - // @internal - 'id', - 'status', - 'activities', - 'client_status', - ]; - - /** - * Updates the member from a new presence update object. - * This is an internal function and is not meant to be used by a public application. - * - * @internal - * - * @param PresenceUpdate $presence - * - * @return PresenceUpdate Old presence. - */ - public function updateFromPresence(PresenceUpdate $presence): PresenceUpdate - { - $rawPresence = $presence->getRawAttributes(); - $oldPresence = $this->factory->part(PresenceUpdate::class, $this->attributes, true); - - $this->attributes = array_merge($this->attributes, $rawPresence); - - return $oldPresence; - } - - /** - * Bans the member. Alias for `$guild->bans->ban()`. - * - * @see BanRepository::ban() - * - * @param int|null $daysToDeleteMessages The amount of days to delete messages from. - * @param string|null $reason Reason of the Ban. - * - * @throws \RuntimeException Member has no `$guild`. - * @throws NoPermissionsException Missing `ban_members` permission. - * - * @return PromiseInterface - */ - public function ban(?int $daysToDeleteMessages = null, ?string $reason = null): PromiseInterface - { - return $this->discord->guilds->cacheGet($this->guild_id)->then(function (?Guild $guild) use ($daysToDeleteMessages, $reason) { - if (null === $guild) { - return reject(new \RuntimeException('Member has no Guild Part')); - } - - if ($botperms = $guild->getBotPermissions()) { - if (! $botperms->ban_members) { - return reject(new NoPermissionsException("You do not have permission to ban members in the guild {$guild->id}.")); - } - } - - return $guild->bans->ban($this, ['delete_message_days' => $daysToDeleteMessages], $reason); - }); - } - - /** - * Alias for `$guild->members->delete()`. - * - * @param string|null $reason Reason for Audit Log. - * - * @throws \RuntimeException Member has no `$guild`. - * @throws NoPermissionsException Missing `kick_members` permission. - * - * @return PromiseInterface - */ - public function kick(?string $reason = null): PromiseInterface - { - return $this->discord->guilds->cacheGet($this->guild_id)->then(function (?Guild $guild) use ($reason) { - if (null === $guild) { - return new \RuntimeException('Member has no Guild Part'); - } - - if ($botperms = $guild->getBotPermissions()) { - if (! $botperms->kick_members) { - return reject(new NoPermissionsException("You do not have permission to kick members in the guild {$guild->id}.")); - } - } - - return $guild->members->delete($this, $reason); - }); - } - - /** - * Sets the nickname of the member. - * - * @param ?string|null $nick The nickname of the member. - * @param string|null $reason Reason for Audit Log. - * - * @throws NoPermissionsException Missing manage_nicknames permission. - * - * @return PromiseInterface - */ - public function setNickname(?string $nick = null, ?string $reason = null): PromiseInterface - { - $payload = [ - 'nick' => $nick ?? '', - ]; - - $headers = []; - if (isset($reason)) { - $headers['X-Audit-Log-Reason'] = $reason; - } - - // jake plz - if ($this->discord->id == $this->id) { - return $this->http->patch(Endpoint::bind(Endpoint::GUILD_MEMBER_SELF, $this->guild_id), $payload, $headers); - } - - if ($guild = $this->guild) { - if ($botperms = $guild->getBotPermissions()) { - if (! $botperms->manage_nicknames) { - return reject(new NoPermissionsException("You do not have permission to manage nicknames in the guild {$guild->id}.")); - } - } - } - - return $this->http->patch(Endpoint::bind(Endpoint::GUILD_MEMBER, $this->guild_id, $this->id), $payload, $headers) - ->then(function ($response) { - $this->nick = $response->nick; - - return $this; - }); - } - - /** - * Moves the member to another voice channel. - * - * @param Channel|?string $channel The channel to move the member to. - * @param string|null $reason Reason for Audit Log. - * - * @return PromiseInterface - */ - public function moveMember($channel, ?string $reason = null): PromiseInterface - { - if ($channel instanceof Channel) { - $channel = $channel->id; - } - - $headers = []; - if (isset($reason)) { - $headers['X-Audit-Log-Reason'] = $reason; - } - - return $this->http->patch(Endpoint::bind(Endpoint::GUILD_MEMBER, $this->guild_id, $this->id), ['channel_id' => $channel], $headers) - ->then(fn ($response) => $this); - } - - /** - * Adds a role to the member. - * - * @link https://discord.com/developers/docs/resources/guild#add-guild-member-role - * - * @param Role|string $role The role to add to the member. - * @param string|null $reason Reason for Audit Log. - * - * @throws \RuntimeException - * @throws NoPermissionsException Missing manage_roles permission. - * - * @return PromiseInterface - */ - public function addRole($role, ?string $reason = null): PromiseInterface - { - if ($role instanceof Role) { - $role = $role->id; - } - - // We don't want a double up on roles - if (in_array($role, (array) $this->attributes['roles'])) { - return reject(new \RuntimeException('Member already has role.')); - } - - if ($guild = $this->guild) { - if ($botperms = $guild->getBotPermissions()) { - if (! $botperms->manage_roles) { - return reject(new NoPermissionsException("You do not have permission to add member role in the guild {$guild->id}.")); - } - } - } - - $headers = []; - if (isset($reason)) { - $headers['X-Audit-Log-Reason'] = $reason; - } - - return $this->http->put(Endpoint::bind(Endpoint::GUILD_MEMBER_ROLE, $this->guild_id, $this->id, $role), null, $headers) - ->then(function () use ($role) { - if (! in_array($role, $this->attributes['roles'])) { - $this->attributes['roles'][] = $role; - } - }); - } - - /** - * Removes a role from the member. - * - * @link https://discord.com/developers/docs/resources/guild#remove-guild-member-role - * - * @param Role|string $role The role to remove from the member. - * @param string|null $reason Reason for Audit Log. - * - * @throws NoPermissionsException Missing manage_roles permission. - * - * @return PromiseInterface - */ - public function removeRole($role, ?string $reason = null): PromiseInterface - { - if ($role instanceof Role) { - $role = $role->id; - } - - if ($guild = $this->guild) { - if ($botperms = $guild->getBotPermissions()) { - if (! $botperms->manage_roles) { - return reject(new NoPermissionsException("You do not have permission to remove member role in the guild {$guild->id}.")); - } - } - } - - $headers = []; - if (isset($reason)) { - $headers['X-Audit-Log-Reason'] = $reason; - } - - return $this->http->delete(Endpoint::bind(Endpoint::GUILD_MEMBER_ROLE, $this->guild_id, $this->id, $role), null, $headers) - ->then(function () use ($role) { - if (($removeRole = array_search($role, $this->attributes['roles'])) !== false) { - unset($this->attributes['roles'][$removeRole]); - } - }); - } - - /** - * Updates member roles. - * - * @link https://discord.com/developers/docs/resources/guild#modify-guild-member - * - * @param Role[]|string[] $roles The roles to set to the member. - * @param string|null $reason Reason for Audit Log. - * - * @throws NoPermissionsException Missing manage_roles permission. - * - * @return PromiseInterface - */ - public function setRoles(array $roles, ?string $reason = null): PromiseInterface - { - foreach ($roles as $i => $role) { - if ($role instanceof Role) { - $roles[$i] = $role->id; - } - } - - if ($guild = $this->guild) { - if ($botperms = $guild->getBotPermissions()) { - if (! $botperms->manage_roles) { - return reject(new NoPermissionsException("You do not have permission to manage member roles in the guild {$guild->id}.")); - } - } - } - - $headers = []; - if (isset($reason)) { - $headers['X-Audit-Log-Reason'] = $reason; - } - - return $this->http->patch(Endpoint::bind(Endpoint::GUILD_MEMBER, $this->guild_id, $this->id), ['roles' => $roles], $headers) - ->then(function ($response) { - $this->attributes['roles'] = $response->roles; - - return $this; - }); - } - - /** - * Sends a message to the member. - * - * Takes a `MessageBuilder` or content of the message for the first parameter. If the first parameter - * is an instance of `MessageBuilder`, the rest of the arguments are disregarded. - * - * @see User::sendMessage() - * - * @param MessageBuilder|string $message The message builder that should be converted into a message, or the string content of the message. - * @param bool $tts Whether the message is TTS. - * @param \Discord\Parts\Embed\Embed|array|null $embed An embed object or array to send in the message. - * @param array|null $allowed_mentions Allowed mentions object for the message. - * @param Message|null $replyTo Sends the message as a reply to the given message instance. - * - * @throws \RuntimeException - * - * @return PromiseInterface - */ - public function sendMessage($message, bool $tts = false, $embed = null, $allowed_mentions = null, ?Message $replyTo = null): PromiseInterface - { - if ($user = $this->user) { - return $user->sendMessage($message, $tts, $embed, $allowed_mentions, $replyTo); - } - - return reject(new \RuntimeException('Member had no user part.')); - } - - /** - * Gets the total permissions of the member. - * - * Note that Discord permissions are complex and YOU need to account for the - * fact that you cannot edit a role higher than your own. - * - * @link https://discord.com/developers/docs/topics/permissions - * - * @param Channel|Thread|null $channel The channel to check its permission overwrites. `null` for just Role. - * - * @throws \InvalidArgumentException - * - * @return RolePermission|null `null` if permission is failed to be determined. - */ - public function getPermissions($channel = null): ?RolePermission - { - if (! $guild = $this->guild) { - return null; - } - - if ($channel) { - if ($channel instanceof Thread) { - $channel = $channel->parent; - } elseif (! ($channel instanceof Channel)) { - throw new \InvalidArgumentException('$channel must be an instance of Channel, Thread or null.'); - } - } - - // Get @everyone role guild permission - if (! $everyoneRole = $guild->roles->get('id', $guild->id)) { - return null; - } - $bitwise = $everyoneRole->permissions->bitwise; - - // Prepare array for role ids - $roles = []; - - // If this member is the guild owner - if ($guild->owner_id == $this->id) { - // Add administrator permission - $bitwise = BigInt::set($bitwise, Permission::ROLE_PERMISSIONS['administrator']); - } else { - // Iterate all base roles - /** @var Role */ - foreach ($this->roles as $id => $role) { - // Remember the role id for later use - $roles[] = $id; - // Store permission value from this role - $bitwise = BigInt::or($bitwise, $role->permissions->bitwise); - } - } - - // Create from computed base permissions - /** @var RolePermission */ - $newPermission = $guild->createOf(RolePermission::class, ['bitwise' => $bitwise]); - - // If computed roles has Administrator permission - if ($newPermission->administrator) { - // Iterate all permissions of the computed roles - foreach (RolePermission::getPermissions() as $permission => $_) { - // Set permission to true - $newPermission->{$permission} = true; - } - - // Administrators ends here with all permissions - return $newPermission; - } - - // If channel is specified (overwrites) - if ($channel) { - // Get @everyone role channel permission - /** @var Overwrite */ - if ($overwrite = $channel->overwrites->get('id', $guild->id)) { - // Set "DENY" overwrites - $bitwise = BigInt::and($bitwise, BigInt::not($overwrite->deny->bitwise)); - // Set "ALLOW" overwrites - $bitwise = BigInt::or($bitwise, $overwrite->allow->bitwise); - } - - // Prepare Allow and Deny buffers for role overwrite - $allow = $deny = 0; - - // Iterate all roles channel permission - /** @var Overwrite */ - foreach ($channel->overwrites as $overwrite) { - // Check for Role overwrite or invalid roles - if ($overwrite->type !== Overwrite::TYPE_ROLE || ! in_array($overwrite->id, $roles)) { - // Skip - continue; - } - - // Get "ALLOW" permissions - $allow = BigInt::or($allow, $overwrite->allow->bitwise); - // Get "DENY" permissions - $deny = BigInt::or($deny, $overwrite->deny->bitwise); - } - - // Set role "DENY" permissions overwrite - $bitwise = BigInt::and($bitwise, BigInt::not($deny)); - // Set role "ALLOW" permissions overwrite - $bitwise = BigInt::or($bitwise, $allow); - - // Get this member specific overwrite - /** @var Overwrite */ - if ($overwrite = $channel->overwrites->get('id', $this->id)) { - // Set member "DENY" permissions overwrite - $bitwise = BigInt::and($bitwise, BigInt::not($overwrite->deny->bitwise)); - // Set member "ALLOW" permissions overwrite - $bitwise = BigInt::or($bitwise, $overwrite->allow->bitwise); - } - } - - // Re-create the Role Permissions from the computed overwrites - return $guild->createOf(RolePermission::class, ['bitwise' => $bitwise]); - } - - /** - * Sets timeout on a member. - * - * @param Carbon|null $communication_disabled_until When the user's timeout will expire and the user will be able to communicate in the guild again, null or a time in the past if the user is not timed out. - * @param string|null $reason Reason for Audit Log. - * - * @throws NoPermissionsException Missing moderate_members permission. - * - * @return PromiseInterface - */ - public function timeoutMember(?Carbon $communication_disabled_until, ?string $reason = null): PromiseInterface - { - if ($guild = $this->guild) { - if ($botperms = $guild->getBotPermissions()) { - if (! $botperms->moderate_members) { - return reject(new NoPermissionsException("You do not have permission to time out members in the guild {$guild->id}.")); - } - } - } - - $headers = []; - if (isset($reason)) { - $headers['X-Audit-Log-Reason'] = $reason; - } - - return $this->http->patch(Endpoint::bind(Endpoint::GUILD_MEMBER, $this->guild_id, $this->id), ['communication_disabled_until' => $communication_disabled_until?->toIso8601ZuluString()], $headers) - ->then(function ($response) { - $this->attributes['communication_disabled_until'] = $response->communication_disabled_until; - - return $this; - }); - } - - /** - * Sets verification bypasses flag on a member. - * - * @param bool $bypasses_verification Whether member is exempt from guild verification requirements. - * @param string|null $reason Reason for Audit Log. - * - * @throws NoPermissionsException Missing `moderate_members` permission. - * - * @return PromiseInterface - */ - public function setBypassesVerification(bool $bypasses_verification, ?string $reason = null): PromiseInterface - { - if ($guild = $this->guild) { - if ($botperms = $guild->getBotPermissions()) { - if (! $botperms->moderate_members) { - return reject(new NoPermissionsException("You do not have permission to modify member flag in the guild {$guild->id}.")); - } - } - } - - $headers = []; - if (isset($reason)) { - $headers['X-Audit-Log-Reason'] = $reason; - } - - $flags = $this->flags; - if ($bypasses_verification) { - $flags |= self::FLAGS_BYPASSES_VERIFICATION; - } else { - $flags &= ~self::FLAGS_BYPASSES_VERIFICATION; - } - - return $this->http->patch(Endpoint::bind(Endpoint::GUILD_MEMBER, $this->guild_id, $this->id), ['flags' => $flags], $headers) - ->then(function ($response) { - $this->attributes['flags'] = $response->flags; - - return $this; - }); - } - - /** - * Returns the member nickname or display name with optional #discriminator. - * - * @return string Either nick or global_name or username with optional #discriminator. - */ - protected function getDisplaynameAttribute(): string - { - $user = $this->user; - - return ($this->nick ?? $user->global_name ?? $user->username).($user->discriminator ? '#'.$user->discriminator : ''); - } - - /** - * Gets the game attribute. - * Polyfill for the first activity. - * - * @return ?Activity - */ - protected function getGameAttribute(): ?Activity - { - return $this->activities->get('type', Activity::TYPE_GAME); - } - - /** - * Gets the activities attribute. - * - * @return Collection|Activity[] - */ - protected function getActivitiesAttribute(): Collection - { - $activities = Collection::for(Activity::class, null); - - foreach ($this->attributes['activities'] ?? [] as $activity) { - $activities->pushItem($this->createOf(Activity::class, $activity)); - } - - return $activities; - } - - /** - * Returns the id attribute. - * - * @return string The user ID of the member. - */ - protected function getIdAttribute(): string - { - return $this->attributes['id'] ?? $this->attributes['user']->id; - } - - /** - * Returns the username attribute. - * - * @return string|null The username of the member. - */ - protected function getUsernameAttribute(): ?string - { - return $this->user->username ?? null; - } - - /** - * Returns the discriminator attribute. - * - * @deprecated 10.0.0 Use `$member->user->discriminator` - * - * @return string|null The discriminator of the member. - */ - protected function getDiscriminatorAttribute(): ?string - { - return $this->user->discriminator ?? null; - } - - /** - * Returns the user attribute. - * - * @return User|null The user that owns the member. - */ - protected function getUserAttribute(): ?User - { - if ($user = $this->discord->users->get('id', $this->id)) { - return $user; - } - - if (! isset($this->attributes['user'])) { - return null; - } - - return $this->factory->part(User::class, (array) $this->attributes['user'], true); - } - - /** - * Returns the guild attribute. - * - * @return Guild|null The guild. - */ - protected function getGuildAttribute(): ?Guild - { - return $this->discord->guilds->get('id', $this->guild_id); - } - - /** - * Returns the roles attribute. - * - * @return Collection A collection of roles the member is in. null role only contains ID in the collection. - */ - protected function getRolesAttribute(): Collection - { - $roles = new Collection(); - - if (empty($this->attributes['roles'])) { - return $roles; - } - - $roles->fill(array_fill_keys($this->attributes['roles'], null)); - - if ($guild = $this->guild) { - foreach ($guild->roles as $id => $role) { - if (in_array($id, $this->attributes['roles'])) { - $roles->pushItem($role); - } - } - } - - return $roles; - } - - /** - * Returns the joined at attribute. - * - * @return Carbon|null The timestamp from when the member joined. - * - * @throws \Exception - */ - protected function getJoinedAtAttribute(): ?Carbon - { - if (! isset($this->attributes['joined_at'])) { - return null; - } - - return new Carbon($this->attributes['joined_at']); - } - - /** - * Returns the guild avatar URL for the member. - * - * @param string|null $format The image format. - * @param int $size The size of the image. - * - * @return string|null The URL to the member avatar or null. - */ - public function getAvatarAttribute(?string $format = null, int $size = 1024): ?string - { - if (! isset($this->attributes['avatar'])) { - return null; - } - - if (isset($format)) { - $allowed = ['png', 'jpg', 'webp', 'gif']; - - if (! in_array(strtolower($format), $allowed)) { - $format = 'webp'; - } - } elseif (strpos($this->attributes['avatar'], 'a_') === 0) { - $format = 'gif'; - } else { - $format = 'webp'; - } - - return "https://cdn.discordapp.com/guilds/{$this->guild_id}/users/{$this->id}/avatars/{$this->attributes['avatar']}.{$format}?size={$size}"; - } - - /** - * Returns the guild avatar hash for the member. - * - * @return ?string|null The member avatar's hash or null. - */ - protected function getAvatarHashAttribute(): ?string - { - return $this->attributes['avatar'] ?? null; - } - - /** - * Returns the premium since attribute. - * - * @return Carbon|null - * - * @throws \Exception - */ - protected function getPremiumSinceAttribute(): ?Carbon - { - if (! isset($this->attributes['premium_since'])) { - return null; - } - - return Carbon::parse($this->attributes['premium_since']); - } - - /** - * Returns the permissions attribute. - * This is only available from Interaction, use Member::getPermissions() for normal permissions. - * - * @see Member::getPermissions() - * - * @return RolePermission|null The total calculated permissions, only available from Interaction. - */ - protected function getPermissionsAttribute(): ?RolePermission - { - if (! isset($this->attributes['permissions'])) { - return null; - } - - return $this->factory->part(RolePermission::class, ['bitwise' => $this->attributes['permissions']], true); - } - - /** - * Returns the communication disabled until attribute. - * - * @return Carbon|null - * - * @throws \Exception - */ - protected function getCommunicationDisabledUntilAttribute(): ?Carbon - { - if (! isset($this->attributes['communication_disabled_until'])) { - return null; - } - - return Carbon::parse($this->attributes['communication_disabled_until']); - } - - /** - * Returns the voicechannel of the member. - * - * @return Channel|null - */ - public function getVoiceChannel(): ?Channel - { - if ($guild = $this->guild) { - return $guild->channels->find(function (Channel $channel) { - if ($channel->isVoiceBased() && $members = $channel->members) { - return $members->offsetExists($this->id); - } - - return false; - }); - } - - return null; - } - - /** - * {@inheritDoc} - * - * @link https://discord.com/developers/docs/resources/guild#modify-guild-member-json-params - */ - public function getUpdatableAttributes(): array - { - return [ - 'roles' => array_values($this->attributes['roles']), - ]; - } - - /** - * {@inheritDoc} - */ - public function getRepositoryAttributes(): array - { - return [ - 'user_id' => $this->id, - ]; - } - - /** - * Returns a formatted mention. - * - * @return string - */ - public function __toString(): string - { - return "<@{$this->id}>"; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/User/User.php b/vendor/team-reflex/discord-php/src/Discord/Parts/User/User.php deleted file mode 100644 index ede24fc..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/User/User.php +++ /dev/null @@ -1,319 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\User; - -use Discord\Builders\MessageBuilder; -use Discord\Helpers\BigInt; -use Discord\Http\Endpoint; -use Discord\Parts\Channel\Channel; -use Discord\Parts\Part; -use Discord\Parts\Channel\Message; -use React\Promise\PromiseInterface; - -use Stringable; -use function React\Promise\resolve; - -/** - * A user is a general user that is not attached to a guild. - * - * @link https://discord.com/developers/docs/resources/user - * - * @since 2.0.0 - * - * @property string $id The unique identifier of the user. - * @property string $username The username of the user. - * @property string $discriminator The discriminator of the user. - * @property string|null $global_name The user's display name, if it is set. For bots, this is the application name. - * @property string $displayname The display name of the client. - * @property ?string $avatar The avatar URL of the user. - * @property string|null $avatar_hash The avatar hash of the user. - * @property bool|null $bot Whether the user is a bot. - * @property bool|null $system Whether the user is a Discord system user. - * @property bool|null $mfa_enabled Whether MFA is enabled. - * @property ?string|null $banner The banner URL of the user. - * @property string|null $banner_hash The banner hash of the user. - * @property ?int|null $accent_color The user's banner color encoded as an integer representation of hexadecimal color code. - * @property string|null $locale User locale. - * @property bool|null $verified Whether the user is verified. - * @property ?string|null $email User email. - * @property int|null $flags User flags. - * @property int|null $premium_type Type of nitro subscription. - * @property int|null $public_flags Public flags on the user. - * @property int|null $avatar_decoration The user's avatar decoration URL. - * @property int|null $avatar_decoration_hash The user's avatar decoration hash. - * - * @method PromiseInterface sendMessage(MessageBuilder $builder) - */ -class User extends Part implements Stringable -{ - public const FLAG_DISCORD_EMPLOYEE = (1 << 0); - public const FLAG_DISCORD_PARTNER = (1 << 1); - public const FLAG_HYPESQUAD_EVENTS = (1 << 2); - public const FLAG_BUG_HUNTER_LEVEL_1 = (1 << 3); - public const FLAG_HOUSE_BRAVERY = (1 << 6); - public const FLAG_HOUSE_BRILLIANCE = (1 << 7); - public const FLAG_HOUSE_BALANCE = (1 << 8); - public const FLAG_EARLY_SUPPORTER = (1 << 9); - public const FLAG_TEAM_USER = (1 << 10); - public const FLAG_SYSTEM = (1 << 12); - public const FLAG_BUG_HUNTER_LEVEL_2 = (1 << 14); - public const FLAG_VERIFIED_BOT = (1 << 16); - public const FLAG_VERIFIED_BOT_DEVELOPER = (1 << 17); - public const FLAG_DISCORD_CERTIFIED_MODERATOR = (1 << 18); - public const BOT_HTTP_INTERACTIONS = (1 << 19); - public const FLAG_ACTIVE_DEVELOPER = (1 << 22); - - public const PREMIUM_NONE = 0; - public const PREMIUM_NITRO_CLASSIC = 1; - public const PREMIUM_NITRO = 2; - public const PREMIUM_NITRO_BASIC = 3; - - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'id', - 'username', - 'discriminator', - 'global_name', - 'avatar', - 'avatar_decoration', - 'bot', - 'system', - 'mfa_enabled', - 'locale', - 'verified', - 'email', - 'flags', - 'banner', - 'accent_color', - 'premium_type', - 'public_flags', - ]; - - /** - * Gets the private channel for the user. - * - * @link https://discord.com/developers/docs/resources/user#create-dm - * - * @return PromiseInterface - */ - public function getPrivateChannel(): PromiseInterface - { - if ($channel = $this->discord->private_channels->get('recipient_id', $this->id)) { - return resolve($channel); - } - - return $this->http->post(Endpoint::USER_CURRENT_CHANNELS, ['recipient_id' => $this->id])->then(function ($response) { - $channel = $this->discord->private_channels->create($response, true); - $this->discord->private_channels->pushItem($channel); - - return $channel; - }); - } - - /** - * Sends a message to the user. - * - * Takes a `MessageBuilder` or content of the message for the first parameter. If the first parameter - * is an instance of `MessageBuilder`, the rest of the arguments are disregarded. - * - * @link https://discord.com/developers/docs/resources/channel#create-message - * - * @param MessageBuilder|string $message The message builder that should be converted into a message, or the string content of the message. - * @param bool $tts Whether the message is TTS. - * @param \Discord\Parts\Embed\Embed|array|null $embed An embed object or array to send in the message. - * @param array|null $allowed_mentions Allowed mentions object for the message. - * @param Message|null $replyTo Sends the message as a reply to the given message instance. - * - * @return PromiseInterface - */ - public function sendMessage($message, bool $tts = false, $embed = null, $allowed_mentions = null, ?Message $replyTo = null): PromiseInterface - { - return $this - ->getPrivateChannel() - ->then(fn (Channel $channel) => $channel->sendMessage($message, $tts, $embed, $allowed_mentions, $replyTo)); - } - - /** - * Broadcasts that you are typing to the channel. Lasts for 5 seconds. - * - * @link https://discord.com/developers/docs/resources/channel#trigger-typing-indicator - * - * @throws \RuntimeException - * - * @return PromiseInterface - */ - public function broadcastTyping(): PromiseInterface - { - return $this->getPrivateChannel()->then(fn (Channel $channel) => $channel->broadcastTyping()); - } - - /** - * Returns the display name of the client. - * - * @return string Either global_name or username with optional #discriminator. - */ - protected function getDisplaynameAttribute(): string - { - return $this->global_name ?? $this->username.($this->discriminator !== '0' ? '#'.$this->discriminator : ''); - } - - /** - * Returns the avatar URL for the client. - * - * @param string|null $format The image format. - * @param int $size The size of the image. - * - * @return string The URL to the client's avatar. - */ - public function getAvatarAttribute(?string $format = null, int $size = 1024): string - { - if (empty($this->attributes['avatar'])) { - $avatarDiscrim = (($this->discriminator) ? $this->discriminator % 5 : BigInt::shiftRight($this->id, 22) % 6); - - return "https://cdn.discordapp.com/embed/avatars/{$avatarDiscrim}.png?size={$size}"; - } - - if (isset($format)) { - $allowed = ['png', 'jpg', 'webp', 'gif']; - - if (! in_array(strtolower($format), $allowed)) { - $format = 'webp'; - } - } elseif (strpos($this->attributes['avatar'], 'a_') === 0) { - $format = 'gif'; - } else { - $format = 'webp'; - } - - return "https://cdn.discordapp.com/avatars/{$this->id}/{$this->attributes['avatar']}.{$format}?size={$size}"; - } - - /** - * Returns the avatar hash for the client. - * - * @return ?string The client avatar's hash. - */ - protected function getAvatarHashAttribute(): ?string - { - return $this->attributes['avatar']; - } - - /** - * Returns the avatar decoration URL for the client. - * - * @param string|null $format The image format. - * @param int $size The size of the image. - * - * @return string|null The URL to the clients avatar decoration. - */ - public function getAvatarDecorationAttribute(?string $format = null, int $size = 288): ?string - { - if (! isset($this->attributes['avatar_decoration'])) { - return null; - } - - if (isset($format)) { - $allowed = ['png', 'jpg', 'webp']; - - if (! in_array(strtolower($format), $allowed)) { - $format = 'png'; - } - } elseif (strpos($this->attributes['avatar_decoration'], 'a_') === 0) { - $format = 'png'; - } else { - $format = 'png'; - } - - return "https://cdn.discordapp.com/avatar-decorations/{$this->id}/{$this->attributes['avatar_decoration']}.{$format}?size={$size}"; - } - - /** - * Returns the avatar decoration hash for the client. - * - * @return ?string The client avatar decoration's hash. - */ - protected function getAvatarDecorationHashAttribute(): ?string - { - return $this->attributes['avatar_decoration']; - } - - /** - * Returns the banner URL for the client. - * - * @param string|null $format The image format. - * @param int $size The size of the image. - * - * @return string|null The URL to the clients banner. - */ - public function getBannerAttribute(?string $format = null, int $size = 600): ?string - { - if (empty($this->attributes['banner'])) { - return null; - } - - if (isset($format)) { - $allowed = ['png', 'jpg', 'webp', 'gif']; - - if (! in_array(strtolower($format), $allowed)) { - $format = 'png'; - } - } elseif (strpos($this->attributes['banner'], 'a_') === 0) { - $format = 'gif'; - } else { - $format = 'png'; - } - - return "https://cdn.discordapp.com/banners/{$this->id}/{$this->attributes['banner']}.{$format}?size={$size}"; - } - - /** - * Returns the banner hash for the client. - * - * @return ?string|null The client banner's hash. - */ - protected function getBannerHashAttribute(): ?string - { - return $this->attributes['banner'] ?? null; - } - - /** - * Returns a timestamp for when a user's account was created. - * - * @return ?float - */ - public function createdTimestamp() - { - return \Discord\getSnowflakeTimestamp($this->id); - } - - /** - * {@inheritDoc} - */ - public function getRepositoryAttributes(): array - { - return [ - 'user_id' => $this->id, - ]; - } - - /** - * Returns a formatted mention. - * - * @return string A formatted mention. - */ - public function __toString(): string - { - return "<@{$this->id}>"; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/WebSockets/AutoModerationActionExecution.php b/vendor/team-reflex/discord-php/src/Discord/Parts/WebSockets/AutoModerationActionExecution.php deleted file mode 100644 index 38fa7f5..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/WebSockets/AutoModerationActionExecution.php +++ /dev/null @@ -1,152 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\WebSockets; - -use Discord\Parts\Channel\Channel; -use Discord\Parts\Channel\Message; -use Discord\Parts\Guild\AutoModeration\Action; -use Discord\Parts\Guild\Guild; -use Discord\Parts\Part; -use Discord\Parts\User\Member; -use Discord\Parts\User\User; - -/** - * Sent when a rule is triggered and an action is executed (e.g. when a message - * is blocked). - * - * @link https://discord.com/developers/docs/topics/gateway-events#auto-moderation-action-execution-auto-moderation-action-execution-event-fields - * - * @since 7.1.0 - * - * @property string $guild_id The id of the guild in which action was executed. - * @property-read Guild|null $guild The guild in which action was executed. - * @property Action $action The action which was executed. - * @property string $rule_id The id of the rule which action belongs to. - * @property int $rule_trigger_type The trigger type of rule which was triggered. - * @property string $user_id The id of the user which generated the content which triggered the rule. - * @property-read User|null $user The user which generated the content which triggered the rule. - * @property-read Member|null $member Cached member which generated the content which triggered the rule. - * @property string|null $channel_id The id of the channel in which user content was posted. - * @property-read Channel|null $channel Cached channel in which user content was posted. - * @property string|null $message_id The id of any user message which content belongs to (will not exist if message was blocked by automod or content was not part of any message) - * @property-read Message|null $message Cached user message which content belongs to (will not exist if message was blocked by automod or content was not part of any message) - * @property string|null $alert_system_message_id The id of any system auto moderation messages posted as a result of this action (will not exist if this event does not correspond to an action with type `SEND_ALERT_MESSAGE`) - * @property-read Message|null $alert_system_message Cached system auto moderation messages posted as a result of this action. - * @property string $content The user generated text content. - * @property ?string $matched_keyword The word or phrase configured in the rule that triggered the rule. (empty without message content intent) - * @property ?string $matched_content The substring in content that triggered the rule. (empty without message content intent) - */ -class AutoModerationActionExecution extends Part -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'guild_id', - 'action', - 'rule_id', - 'rule_trigger_type', - 'user_id', - 'channel_id', - 'message_id', - 'alert_system_message_id', - 'content', - 'matched_keyword', - 'matched_content', - ]; - - /** - * Returns the guild attribute. - * - * @return Guild|null The guild in which action was executed. - */ - protected function getGuildAttribute(): ?Guild - { - return $this->discord->guilds->get('id', $this->guild_id); - } - - /** - * Returns the action attribute. - * - * @return Action The action which was executed. - */ - protected function getActionAttribute(): Action - { - return $this->createOf(Action::class, $this->attributes['action']); - } - - /** - * Returns the user attribute. - * - * @return User|null The user which generated the content which triggered the rule. - */ - protected function getUserAttribute(): ?User - { - return $this->discord->users->get('id', $this->user_id); - } - - /** - * Returns the member attribute. - * - * @return Member|null Cached member which generated the content which triggered the rule. - */ - protected function getMemberAttribute(): ?Member - { - if ($guild = $this->guild) { - return $guild->members->get('id', $this->user_id); - } - - return null; - } - - /** - * Returns the channel attribute. - * - * @return Channel|null Cached channel in which user content was posted. - */ - protected function getChannelAttribute(): ?Channel - { - if (isset($this->channel_id) && $guild = $this->guild) { - return $guild->channels->get('id', $this->channel_id); - } - - return null; - } - - /** - * Returns the message attribute. - * - * @return Message|null Cached channel in which user content was posted. - */ - protected function getMessageAttribute(): ?Message - { - if (isset($this->message_id) && $channel = $this->channel) { - return $channel->messages->get('id', $this->message_id); - } - - return null; - } - - /** - * Returns the alert system message attribute. - * - * @return Message|null Cached system auto moderation messages posted as a result of this action. - */ - protected function getAlertSystemMessageAttribute(): ?Message - { - if (isset($this->alert_system_message_id) && $channel = $this->channel) { - return $channel->messages->get('id', $this->alert_system_message_id); - } - - return null; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/WebSockets/MessageInteraction.php b/vendor/team-reflex/discord-php/src/Discord/Parts/WebSockets/MessageInteraction.php deleted file mode 100644 index e5eed2c..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/WebSockets/MessageInteraction.php +++ /dev/null @@ -1,90 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\WebSockets; - -use Discord\Parts\Part; -use Discord\Parts\User\Member; -use Discord\Parts\User\User; - -/** - * Sent on the message object when the message is a response to an Interaction - * without an existing message. - * - * @link https://discord.com/developers/docs/interactions/receiving-and-responding#message-interaction-object - * - * @since 7.1.0 - * - * @property string $id ID of the interaction. - * @property int $type Type of interaction. - * @property string $name Name of the application command, including subcommands and subcommand groups. - * @property User $user User who invoked the interaction. - * @property Member|null $member Partial Member who invoked the interaction. - * - * @property string|null $guild_id - */ -class MessageInteraction extends Part -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'id', - 'type', - 'name', - 'user', - 'member', - - // @internal - 'guild_id', - ]; - - /** - * {@inheritDoc} - */ - protected $hidden = ['guild_id']; - - /** - * Returns the user who invoked the interaction. - * - * @return User - */ - protected function getUserAttribute(): User - { - if ($user = $this->discord->users->get('id', $this->attributes['user']->id)) { - return $user; - } - - return $this->factory->part(User::class, (array) $this->attributes['user'], true); - } - - /** - * Returns the partial Member who invoked the interaction. - * - * @return Member|null - */ - protected function getMemberAttribute(): ?Member - { - if (isset($this->guild_id)) { - if ($guild = $this->discord->guilds->get('id', $this->guild_id)) { - if ($member = $guild->members->get('id', $this->attributes['member']->id ?? $this->user->id)) { - return $member; - } - } - - if (isset($this->attributes['member'])) { - return $this->factory->part(Member::class, (array) $this->attributes['member'] + ['guild_id' => $this->guild_id], true); - } - } - - return null; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/WebSockets/MessageReaction.php b/vendor/team-reflex/discord-php/src/Discord/Parts/WebSockets/MessageReaction.php deleted file mode 100644 index d21173b..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/WebSockets/MessageReaction.php +++ /dev/null @@ -1,271 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\WebSockets; - -use Discord\Http\Endpoint; -use Discord\Parts\Channel\Channel; -use Discord\Parts\Channel\Message; -use Discord\Parts\Guild\Emoji; -use Discord\Parts\Guild\Guild; -use Discord\Parts\Part; -use Discord\Parts\Thread\Thread; -use Discord\Parts\User\Member; -use Discord\Parts\User\User; -use React\Promise\PromiseInterface; - -use function React\Promise\reject; -use function React\Promise\resolve; - -/** - * Represents a specific reaction to a message by a specific user. - * Different from `Reaction` in the fact that `Reaction` represents a specific - * reaction to a message by _multiple_ members. - * - * @since 5.0.0 - * - * @property string|null $user_id ID of the user that performed the reaction. - * @property User|null $user User that performed the reaction. - * @property string $channel_id ID of the channel that the reaction was performed in. - * @property-read Channel|Thread|null $channel Channel that the reaction was performed in. - * @property string $message_id ID of the message that the reaction was placed on. - * @property Message|null $message Message that the reaction was placed on, null if not cached. - * @property string|null $guild_id ID of the guild that owns the channel. - * @property-read Guild|null $guild Guild that owns the channel. - * @property Member|null $member Member object of the user that performed the reaction, null if not cached or DM channel. - * @property Emoji|null $emoji The emoji that was used as the reaction. - * - * @property string $reaction_id ID of the reaction. - */ -class MessageReaction extends Part -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'user_id', - 'channel_id', - 'message_id', - 'guild_id', - 'member', - 'emoji', - ]; - - /** - * {@inheritDoc} - */ - public function isPartial(): bool - { - return $this->user === null || - $this->message === null || - $this->member === null; - } - - /** - * {@inheritDoc} - */ - public function fetch(): PromiseInterface - { - $promise = resolve(null); - - if ($this->member === null) { - $promise = $promise - ->then(fn () => $this->http->get(Endpoint::bind(Endpoint::GUILD_MEMBER, $this->guild_id, $this->user_id))) - ->then(function ($member) { - $this->attributes['member'] = $this->factory->part(Member::class, (array) $member, true); - }); - } - - if ($this->message === null) { - $promise = $promise - ->then(fn () => $this->http->get(Endpoint::bind(Endpoint::CHANNEL_MESSAGE, $this->channel_id, $this->message_id))) - ->then(function ($message) { - $this->attributes['message'] = $this->factory->part(Message::class, (array) $message, true); - }); - } - - return $promise->then(fn () => $this); - } - - /** - * Gets the ID of the reaction. - * - * @return string - * - * @since 10.0.0 Changed to only return custom emoji id or unicode emoji name. - */ - protected function getReactionIdAttribute(): string - { - return $this->emoji->id ?? $this->emoji->name; - } - - /** - * Gets the user attribute. - * - * @return User|null - */ - protected function getUserAttribute(): ?User - { - if ($member = $this->member) { - return $member->user; - } - - if ($user = $this->discord->users->get('id', $this->user_id)) { - return $user; - } - - return $this->attributes['user'] ?? null; - } - - /** - * Gets the channel attribute. - * - * @return Channel|Thread|null - */ - protected function getChannelAttribute(): ?Part - { - if ($guild = $this->guild) { - $channels = $guild->channels; - if ($channel = $channels->get('id', $this->channel_id)) { - return $channel; - } - - foreach ($channels as $parent) { - if ($thread = $parent->threads->get('id', $this->channel_id)) { - return $thread; - } - } - - return null; - } - - if ($channel = $this->discord->private_channels->get('id', $this->channel_id)) { - return $channel; - } - - return $this->factory->part(Channel::class, [ - 'id' => $this->channel_id, - 'type' => Channel::TYPE_DM, - ], true); - } - - /** - * Gets the message attribute. - * - * @return Message|null - */ - protected function getMessageAttribute(): ?Message - { - if ($channel = $this->channel) { - if ($message = $channel->messages->get('id', $this->message_id)) { - return $message; - } - } - - return $this->attributes['message'] ?? null; - } - - /** - * Gets the guild attribute. - * - * @return Guild|null - */ - protected function getGuildAttribute(): ?Guild - { - if ($this->guild_id) { - return $this->discord->guilds->get('id', $this->guild_id); - } - - return null; - } - - /** - * Gets the member attribute. - * - * @return Member|null - */ - protected function getMemberAttribute(): ?Member - { - if ($this->user_id && $guild = $this->guild) { - if ($member = $guild->members->get('id', $this->user_id)) { - return $member; - } - } - - if (isset($this->attributes['member'])) { - return $this->factory->part(Member::class, (array) $this->attributes['member'] + ['guild_id' => $this->guild_id], true); - } - - return null; - } - - /** - * Gets the emoji attribute. - * - * @return Emoji|null - */ - protected function getEmojiAttribute(): ?Emoji - { - if (! isset($this->attributes['emoji'])) { - return null; - } - - return $this->factory->part(Emoji::class, (array) $this->attributes['emoji'], true); - } - - /** - * Delete this reaction. - * - * @param int|null $type The type of deletion to perform. - * - * @throws \RuntimeException Reaction has no user id. - * - * @return PromiseInterface - * - * @see Message::deleteReaction() - * - * @link https://discord.com/developers/docs/resources/channel#delete-own-reaction - * @link https://discord.com/developers/docs/resources/channel#delete-user-reaction - */ - public function delete(?int $type = null): PromiseInterface - { - if ($type === null) { - if ($this->user_id == $this->discord->id) { - $type = Message::REACT_DELETE_ME; - } else { - $type = Message::REACT_DELETE_ID; - } - } - - $emoji = urlencode($this->emoji->id === null ? $this->emoji->name : "{$this->emoji->name}:{$this->emoji->id}"); - - switch ($type) { - case Message::REACT_DELETE_ALL: - $url = Endpoint::bind(Endpoint::MESSAGE_REACTION_ALL, $this->channel_id, $this->message_id); - break; - case Message::REACT_DELETE_ME: - $url = Endpoint::bind(Endpoint::OWN_MESSAGE_REACTION, $this->channel_id, $this->message_id, $emoji); - break; - case Message::REACT_DELETE_EMOJI: - $url = Endpoint::bind(Endpoint::MESSAGE_REACTION_EMOJI, $this->channel_id, $this->message_id, $emoji); - break; - case Message::REACT_DELETE_ID: - default: - if (! $userid = $this->user_id ?? $this->user->id) { - return reject(new \RuntimeException('This reaction has no user id')); - } - $url = Endpoint::bind(Endpoint::USER_MESSAGE_REACTION, $this->channel_id, $this->message_id, $emoji, $userid); - break; - } - - return $this->http->delete($url); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/WebSockets/PresenceUpdate.php b/vendor/team-reflex/discord-php/src/Discord/Parts/WebSockets/PresenceUpdate.php deleted file mode 100644 index 911e930..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/WebSockets/PresenceUpdate.php +++ /dev/null @@ -1,176 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\WebSockets; - -use Discord\Helpers\Collection; -use Discord\Parts\Guild\Guild; -use Discord\Parts\Guild\Role; -use Discord\Parts\Part; -use Discord\Parts\User\Member; -use Discord\Parts\User\Activity; -use Discord\Parts\User\User; - -/** - * A PresenceUpdate part is used when the `PRESENCE_UPDATE` event is fired on - * the WebSocket. It contains information about the users presence such as their - * status (online/away) and their current game. - * - * @since 2.1.3 - * - * @link https://discord.com/developers/docs/topics/gateway-events#presence - * - * @property User $user The user that the presence update affects. - * @property string $guild_id The unique identifier of the guild that the presence update affects. - * @property-read Guild|null $guild The guild that the presence update affects. - * @property string $status The updated status of the user. - * @property Collection|Activity[] $activities The activities of the user. - * @property-read Activity $game The updated game of the user. - * @property object $client_status Status of the client. - * @property string|null $desktop_status Status of the user on their desktop client. Null if they are not active on desktop. - * @property string|null $mobile_status Status of the user on their mobile client. Null if they are not active on mobile. - * @property string|null $web_status Status of the user on their web client. Null if they are not active on web. - * - * @property-read Member $member The member that the presence update affects. - * @property-read Collection|Role[] $roles Roles that the user has in the guild. - */ -class PresenceUpdate extends Part -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'user', - 'guild_id', - 'status', - 'activities', - 'client_status', - ]; - - /** - * {@inheritDoc} - */ - protected $visible = [ - 'game', - - // @internal - 'member', - 'roles', - ]; - - /** - * Gets the user attribute. - * - * @return User The user that had their presence updated. - */ - protected function getUserAttribute(): User - { - if ($user = $this->discord->users->get('id', $this->attributes['user']->id)) { - return $user; - } - - return $this->factory->part(User::class, (array) $this->attributes['user'], true); - } - - /** - * Gets the guild attribute. - * - * @return Guild|null The guild that the user was in. - */ - protected function getGuildAttribute(): ?Guild - { - return $this->discord->guilds->get('id', $this->guild_id); - } - - /** - * Gets the activities attribute. - * - * @return Collection|Activity[] - */ - protected function getActivitiesAttribute(): Collection - { - $collection = Collection::for(Activity::class, null); - - foreach ($this->attributes['activities'] ?? [] as $activity) { - $collection->pushItem($this->factory->part(Activity::class, (array) $activity, true)); - } - - return $collection; - } - - /** - * Gets the game attribute. - * - * @return Activity|null The game attribute. - */ - protected function getGameAttribute(): ?Activity - { - return $this->activities->get('type', Activity::TYPE_GAME); - } - - /** - * Gets the status of the user on their desktop client. - * - * @return string|null - */ - protected function getDesktopStatusAttribute(): ?string - { - return $this->client_status->desktop ?? null; - } - - /** - * Gets the status of the user on their mobile client. - * - * @return string|null - */ - protected function getMobileStatusAttribute(): ?string - { - return $this->client_status->mobile ?? null; - } - - /** - * Gets the status of the user on their web client. - * - * @return string|null - */ - protected function getWebStatusAttribute(): ?string - { - return $this->client_status->web ?? null; - } - - /** - * Gets the member attribute. - * - * @return Member|null - */ - protected function getMemberAttribute(): ?Member - { - if (isset($this->attributes['user']) && $guild = $this->guild) { - return $guild->members->get('id', $this->attributes['user']->id); - } - - return null; - } - - /** - * Returns the users roles. - * - * @return Collection|Role[] - */ - protected function getRolesAttribute(): Collection - { - if ($member = $this->member) { - return $member->roles; - } - - return Collection::for(Role::class); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/WebSockets/TypingStart.php b/vendor/team-reflex/discord-php/src/Discord/Parts/WebSockets/TypingStart.php deleted file mode 100644 index bb8f0d2..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/WebSockets/TypingStart.php +++ /dev/null @@ -1,140 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\WebSockets; - -use Carbon\Carbon; -use Discord\Parts\Guild\Guild; -use Discord\Parts\Thread\Thread; -use Discord\Parts\User\Member; -use Discord\Parts\Channel\Channel; -use Discord\Parts\Part; -use Discord\Parts\User\User; - -/** - * A TypingStart part is used when the `TYPING_START` event is fired on the - * WebSocket. It contains information such as when the event was fired and then - * channel it was fired in. - * - * @since 2.1.3 - * - * @link https://discord.com/developers/docs/topics/gateway-events#typing-start - * - * @property string $channel_id The unique identifier of the channel that the user started typing in. - * @property-read Channel|Thread|null $channel The channel that the user started typing in. - * @property string|null $guild_id The unique identifier of the guild that the user started typing in. - * @property-read Guild|null $guild The guild that the user started typing in. - * @property string $user_id The unique identifier of the user that started typing - * @property-read User|null $user The user that started typing. - * @property Carbon $timestamp A timestamp of when the user started typing. - * @property Member|null $member The member that started typing. - */ -class TypingStart extends Part -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'channel_id', - 'guild_id', - 'user_id', - 'timestamp', - 'member', - ]; - - /** - * Gets the channel attribute. - * - * @return Channel|Thread|null The channel that the user started typing in. - */ - protected function getChannelAttribute(): ?Part - { - if ($guild = $this->guild) { - $channels = $guild->channels; - if ($channel = $channels->get('id', $this->channel_id)) { - return $channel; - } - - foreach ($channels as $parent) { - if ($thread = $parent->threads->get('id', $this->channel_id)) { - return $thread; - } - } - - return null; - } - - if ($channel = $this->discord->private_channels->get('id', $this->channel_id)) { - return $channel; - } - - return $this->factory->part(Channel::class, [ - 'id' => $this->channel_id, - 'type' => Channel::TYPE_DM, - ], true); - } - - /** - * Gets the guild attribute. - * - * @return Guild|null - */ - protected function getGuildAttribute(): ?Guild - { - if (! isset($this->guild_id)) { - return null; - } - - return $this->discord->guilds->get('id', $this->guild_id); - } - - /** - * Gets the user attribute. - * - * @return User|null The user that started typing. - */ - protected function getUserAttribute(): ?User - { - return $this->discord->users->get('id', $this->user_id); - } - - /** - * Gets the timestamp attribute. - * - * @return Carbon The time that the user started typing. - * - * @throws \Exception - */ - protected function getTimestampAttribute(): Carbon - { - return new Carbon($this->attributes['timestamp']); - } - - /** - * Gets the member attribute. - * - * @return Member|null - */ - protected function getMemberAttribute(): ?Member - { - if ($guild = $this->guild) { - if ($member = $guild->members->get('id', $this->user_id)) { - return $member; - } - } - - if (isset($this->attributes['member'])) { - return $this->factory->part(Member::class, (array) $this->attributes['member'] + ['guild_id' => $this->guild_id], true); - } - - return null; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/WebSockets/VoiceServerUpdate.php b/vendor/team-reflex/discord-php/src/Discord/Parts/WebSockets/VoiceServerUpdate.php deleted file mode 100644 index ee6cbc0..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/WebSockets/VoiceServerUpdate.php +++ /dev/null @@ -1,49 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\WebSockets; - -use Discord\Parts\Guild\Guild; -use Discord\Parts\Part; - -/** - * Tells the client that the voice channel's server has changed. - * - * @link https://discord.com/developers/docs/topics/gateway-events#voice - * - * @since 4.0.0 - * - * @property string $token The new client voice token. - * @property string $guild_id The unique identifier of the guild that was affected by the change. - * @property-read Guild|null $guild The guild affected by the change. - * @property ?string $endpoint The new voice server endpoint. - */ -class VoiceServerUpdate extends Part -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'token', - 'guild_id', - 'endpoint', - ]; - - /** - * Returns the guild attribute. - * - * @return Guild|null The guild attribute. - */ - protected function getGuildAttribute(): ?Guild - { - return $this->discord->guilds->get('id', $this->guild_id); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Parts/WebSockets/VoiceStateUpdate.php b/vendor/team-reflex/discord-php/src/Discord/Parts/WebSockets/VoiceStateUpdate.php deleted file mode 100644 index a526534..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Parts/WebSockets/VoiceStateUpdate.php +++ /dev/null @@ -1,147 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Parts\WebSockets; - -use Carbon\Carbon; -use Discord\Parts\Channel\Channel; -use Discord\Parts\Guild\Guild; -use Discord\Parts\Part; -use Discord\Parts\User\Member; -use Discord\Parts\User\User; - -/** - * Notifies the client of voice state updates about users. - * - * @link https://discord.com/developers/docs/resources/voice#voice-state-object - * - * @since 3.2.1 - * - * @property string|null $guild_id Guild ID that the voice state came from, or null if it is for a DM channel. - * @property-read Guild|null $guild Guild that the voice state came from, or null if it is for a DM channel. - * @property ?string|null $channel_id Channel ID that the voice state came from, or null if the user is leaving a channel. - * @property-read Channel|null $channel Channel that the voice state came from, or null if the user is leaving a channel. - * @property string $user_id User ID the voice state is for. - * @property-read User|null $user User the voice state is for, or null if it is not cached. - * @property Member|null $member Member object the voice state is for, null if the voice state is for a DM channel or the member object is not cached. - * @property string $session_id Session ID for the voice state. - * @property bool $deaf Whether this user is deafened by the server. - * @property bool $mute Whether this user is muted by the server. - * @property bool $self_deaf Whether this user is locally deafened. - * @property bool $self_mute Whether this user is locally muted. - * @property bool|null $self_stream Whether this user is streaming using "Go Live". - * @property bool $self_video Whether this user's camera is enabled. - * @property bool $suppress Whether this user is muted by the current user. - * @property ?Carbon $request_to_speak_timestamp The time at which the user requested to speak. - */ -class VoiceStateUpdate extends Part -{ - /** - * {@inheritDoc} - */ - protected $fillable = [ - 'guild_id', - 'channel_id', - 'user_id', - 'member', - 'session_id', - 'deaf', - 'mute', - 'self_deaf', - 'self_mute', - 'self_stream', - 'self_video', - 'suppress', - 'request_to_speak_timestamp', - ]; - - /** - * Gets the guild attribute. - * - * @return Guild|null The guild attribute. - */ - protected function getGuildAttribute(): ?Guild - { - return $this->discord->guilds->get('id', $this->guild_id); - } - - /** - * Gets the channel attribute. - * - * @return Channel|null The channel attribute. - */ - protected function getChannelAttribute(): ?Channel - { - if (! isset($this->attributes['channel_id'])) { - return null; - } - - if ($this->channel_id && $guild = $this->guild) { - return $guild->channels->get('id', $this->channel_id); - } - - return $this->discord->getChannel($this->channel_id); - } - - /** - * Gets the user attribute. - * - * @return User|null The user attribute. - */ - protected function getUserAttribute(): ?User - { - if ($user = $this->discord->users->get('id', $this->user_id)) { - return $user; - } - - if ($member = $this->member) { - return $member->user; - } - - return null; - } - - /** - * Gets the member attribute. - * - * @return Member|null The member attribute. - */ - protected function getMemberAttribute(): ?Member - { - if ($guild = $this->guild) { - if ($member = $guild->members->get('id', $this->user_id)) { - return $member; - } - } - - if (isset($this->attributes['member'])) { - return $this->factory->part(Member::class, (array) $this->attributes['member'] + ['guild_id' => $this->guild_id], true); - } - - return null; - } - - /** - * Gets the request_to_speak_timestamp attribute. - * - * @return Carbon|null - * - * @throws \Exception - */ - protected function getRequestToSpeakTimestampAttribute(): ?Carbon - { - if (! isset($this->attributes['request_to_speak_timestamp'])) { - return null; - } - - return new Carbon($this->attributes['request_to_speak_timestamp']); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Repository/AbstractRepository.php b/vendor/team-reflex/discord-php/src/Discord/Repository/AbstractRepository.php deleted file mode 100755 index 8cf6fa9..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Repository/AbstractRepository.php +++ /dev/null @@ -1,51 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Repository; - -use Discord\Helpers\Collection; - -/** - * Repositories provide a way to store and update parts on the Discord server. - * - * @since 4.0.0 - * - * @author Aaron Scherer - * @author David Cole - * - * @property string $discrim The discriminator. - * @property-read CacheWrapper $cache The react/cache wrapper. - */ -abstract class AbstractRepository extends Collection implements AbstractRepositoryInterface -{ - /** - * The collection discriminator. - * - * @var string Discriminator. - */ - protected $discrim = 'id'; - - /** - * The items contained in the collection. - * - * @var array - */ - protected $items = []; - - /** - * Class type allowed into the collection. - * - * @var string - */ - protected $class; - - use AbstractRepositoryTrait; -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Repository/AbstractRepositoryInterface.php b/vendor/team-reflex/discord-php/src/Discord/Repository/AbstractRepositoryInterface.php deleted file mode 100644 index 7abdbca..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Repository/AbstractRepositoryInterface.php +++ /dev/null @@ -1,64 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Repository; - -use Discord\Discord; -use Discord\Helpers\CollectionInterface; -use Discord\Parts\Part; -use React\Promise\PromiseInterface; -use Traversable; - -interface AbstractRepositoryInterface extends CollectionInterface -{ - public function __construct(Discord $discord, array $vars = []); - public function freshen(array $queryparams = []): PromiseInterface; - public function create(array|object $attributes = [], bool $created = false): Part; - public function save(Part $part, ?string $reason = null): PromiseInterface; - public function delete($part, ?string $reason = null): PromiseInterface; - public function fresh(Part $part, array $queryparams = []): PromiseInterface; - public function fetch(string $id, bool $fresh = false): PromiseInterface; - public function get(string $discrim, $key); - public function cacheGet($offset): PromiseInterface; - public function set($offset, $value); - public function pull($key, $default = null); - public function cachePull($key, $default = null): PromiseInterface; - public function pushItem($item): self; - public function first(); - public function last(); - public function has(...$keys): bool; - public function filter(callable $callback); - public function find(callable $callback); - public function clear(): void; - public function toArray(): array; - public function keys(): array; - public function offsetExists($offset): bool; - #[\ReturnTypeWillChange] - public function offsetGet($offset); - public function offsetSet($offset, $value): void; - public function offsetUnset($offset): void; - public function jsonSerialize(): array; - public function &getIterator(): Traversable; - public function __get(string $key); - - /* Methods imported from CollectionTrait - public function fill(array $items); - public function push(...$items); - public function isset($offset): bool; - public function map(callable $callback); - public function merge($collection); - public function serialize(): string; - public function __serialize(): array; - public function unserialize(string $serialized): void; - public function __unserialize(array $data): void; - public function __debugInfo(): array; - */ -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Repository/AbstractRepositoryTrait.php b/vendor/team-reflex/discord-php/src/Discord/Repository/AbstractRepositoryTrait.php deleted file mode 100644 index 48b2eb2..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Repository/AbstractRepositoryTrait.php +++ /dev/null @@ -1,790 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Repository; - -use Discord\Discord; -use Discord\Factory\Factory; -use Discord\Helpers\CacheWrapper; -use Discord\Helpers\Collection; -use Discord\Helpers\CollectionInterface; -use Discord\Helpers\CollectionTrait; -use Discord\Helpers\LegacyCacheWrapper; -use Discord\Http\Endpoint; -use Discord\Http\Http; -use Discord\Parts\Part; -use React\Promise\PromiseInterface; -use Traversable; -use WeakReference; - -use function Discord\nowait; -use function React\Promise\reject; -use function React\Promise\resolve; - -trait AbstractRepositoryTrait -{ - use CollectionTrait - { - get as get; - fill as fill; - push as push; - isset as isset; - map as map; - merge as merge; - serialize as serialize; - __serialize as __serialize; - unserialize as unserialize; - __unserialize as __unserialize; - __debugInfo as __debugInfo; - - // 'Parent' methods - __construct as __Collection____construct; - get as __Collection__get; - set as __Collection__set; - pull as __Collection__pull; - pushItem as __Collection__pushItem; - first as __Collection__first; - last as __Collection__last; - has as __Collection__has; - filter as __Collection__filter; - find as __Collection__find; - clear as __Collection__clear; - toArray as __Collection__toArray; - keys as __Collection__keys; - offsetExists as __Collection__offsetExists; - offsetGet as __Collection__offsetGet; - offsetSet as __Collection__offsetSet; - offsetUnset as __Collection__offsetUnset; - jsonSerialize as __Collection__jsonSerialize; - getIterator as __Collection__getIterator; - } - - /** - * The HTTP client. - * - * @var Http Client. - */ - protected $http; - - /** - * The parts factory. - * - * @var Factory Parts factory. - */ - protected $factory; - - /** - * Endpoints for interacting with the Discord servers. - * - * @var array Endpoints. - */ - protected $endpoints = []; - - /** - * Variables that are related to the repository. - * - * @var array Variables. - */ - protected $vars = []; - - /** - * @var CacheWrapper - */ - protected $cache; - - /** - * AbstractRepository constructor. - * - * @param Discord $discord - * @param array $vars An array of variables used for the endpoint. - */ - public function __construct(protected Discord $discord, array $vars = []) - { - $this->http = $discord->getHttpClient(); - $this->factory = $discord->getFactory(); - $this->vars = $vars; - if ($cacheConfig = $discord->getCacheConfig(static::class)) { - $this->cache = new CacheWrapper($discord, $cacheConfig, $this->items, $this->class, $this->vars); - } else { - $this->cache = new LegacyCacheWrapper($discord, $this->items, $this->class); - } - } - - /** - * Freshens the repository cache. - * - * @param array $queryparams Query string params to add to the request (no validation) - * - * @return PromiseInterface - * - * @throws \Exception - */ - public function freshen(array $queryparams = []): PromiseInterface - { - if (! isset($this->endpoints['all'])) { - return reject(new \Exception('You cannot freshen this repository.')); - } - - $endpoint = new Endpoint($this->endpoints['all']); - $endpoint->bindAssoc($this->vars); - - foreach ($queryparams as $query => $param) { - $endpoint->addQuery($query, $param); - } - - return $this->http->get($endpoint)->then(function ($response) { - foreach ($this->items as $offset => $value) { - if ($value === null) { - unset($this->items[$offset]); - } elseif (! ($this->items[$offset] instanceof WeakReference)) { - $this->items[$offset] = WeakReference::create($value); - } - $this->cache->delete($offset); - } - - return $this->cacheFreshen($response); - }); - } - - /** - * @param object $response - * - * @return PromiseInterface - */ - protected function cacheFreshen($response): PromiseInterface - { - foreach ($response as $value) { - $value = array_merge($this->vars, (array) $value); - $part = $this->factory->create($this->class, $value, true); - $items[$part->{$this->discrim}] = $part; - } - - if (empty($items)) { - return resolve($this); - } - - return $this->cache->setMultiple($items)->then(fn ($success) => $this); - } - - /** - * Builds a new, empty part. - * - * @param array|object $attributes The attributes for the new part. - * @param bool $created - * - * @return Part The new part. - * - * @throws \Exception - */ - public function create(array|object $attributes = [], bool $created = false): Part - { - $attributes = array_merge((array) $attributes, $this->vars); - - return $this->factory->part($this->class, $attributes, $created); - } - - /** - * Attempts to save a part to the Discord servers. - * - * @param Part $part The part to save. - * @param string|null $reason Reason for Audit Log (if supported). - * - * @return PromiseInterface - * - * @throws \Exception - */ - public function save(Part $part, ?string $reason = null): PromiseInterface - { - if ($part->created) { - if (! isset($this->endpoints['update'])) { - return reject(new \Exception('You cannot update this part.')); - } - - $method = 'patch'; - $endpoint = new Endpoint($this->endpoints['update']); - $endpoint->bindAssoc(array_merge($part->getRepositoryAttributes(), $this->vars)); - $attributes = $part->getUpdatableAttributes(); - } else { - if (! isset($this->endpoints['create'])) { - return reject(new \Exception('You cannot create this part.')); - } - - $method = 'post'; - $endpoint = new Endpoint($this->endpoints['create']); - $endpoint->bindAssoc(array_merge($part->getRepositoryAttributes(), $this->vars)); - $attributes = $part->getCreatableAttributes(); - } - - $headers = []; - if (isset($reason)) { - $headers['X-Audit-Log-Reason'] = $reason; - } - - return $this->http->{$method}($endpoint, $attributes, $headers)->then(function ($response) use ($method, $part) { - switch ($method) { - case 'patch': // Update old part - $part->fill((array) $response); - $part->created = true; - return $this->cache->set($part->{$this->discrim}, $part)->then(fn ($success) => $part); - default: // Create new part - $newPart = $this->factory->create($this->class, (array) $response, true); - $newPart->created = true; - return $this->cache->set($newPart->{$this->discrim}, $this->factory->create($this->class, (array) $response, true))->then(fn ($success) => $newPart); - } - }); - } - - /** - * Attempts to delete a part on the Discord servers. - * - * @param Part|string $part The part to delete. - * @param string|null $reason Reason for Audit Log (if supported). - * - * @return PromiseInterface - * - * @throws \Exception - */ - public function delete($part, ?string $reason = null): PromiseInterface - { - if (! isset($part)) { - return reject(new \Exception('You cannot delete a non-existent part.')); - } - - if (! ($part instanceof Part)) { - $part = $this->factory->part($this->class, [$this->discrim => $part], true); - } - - if (! $part->created) { - return reject(new \Exception('You cannot delete a non-existent part.')); - } - - if (! isset($this->endpoints['delete'])) { - return reject(new \Exception('You cannot delete this part.')); - } - - $endpoint = new Endpoint($this->endpoints['delete']); - $endpoint->bindAssoc(array_merge($part->getRepositoryAttributes(), $this->vars)); - - $headers = []; - if (isset($reason)) { - $headers['X-Audit-Log-Reason'] = $reason; - } - - return $this->http->delete($endpoint, null, $headers)->then(function ($response) use (&$part) { - if ($response) { - $part->fill((array) $response); - } - $part->created = false; - - return $this->cache->delete($part->{$this->discrim})->then(fn ($success) => $part); - }); - } - - /** - * Returns a part with fresh values. - * - * @param Part $part The part to get fresh values. - * @param array $queryparams Query string params to add to the request (no validation) - * - * @return PromiseInterface - * - * @throws \Exception - */ - public function fresh(Part $part, array $queryparams = []): PromiseInterface - { - if (! $part->created) { - return reject(new \Exception('You cannot get a non-existent part.')); - } - - if (! isset($this->endpoints['get'])) { - return reject(new \Exception('You cannot get this part.')); - } - - $endpoint = new Endpoint($this->endpoints['get']); - $endpoint->bindAssoc(array_merge($part->getRepositoryAttributes(), $this->vars)); - - foreach ($queryparams as $query => $param) { - $endpoint->addQuery($query, $param); - } - - return $this->http->get($endpoint)->then(function ($response) use (&$part) { - $part->fill((array) $response); - - return $this->cache->set($part->{$this->discrim}, $part)->then(fn ($success) => $part); - }); - } - - /** - * Gets a part from the repository or Discord servers. - * - * @param string $id The ID to search for. - * @param bool $fresh Whether we should skip checking the cache. - * - * @throws \Exception - * - * @return PromiseInterface - */ - public function fetch(string $id, bool $fresh = false): PromiseInterface - { - if (! $fresh) { - if (isset($this->items[$id])) { - $part = $this->items[$id]; - if ($part instanceof WeakReference) { - $part = $part->get(); - } - - if ($part) { - $this->items[$id] = $part; - - return resolve($part); - } - } else { - return $this->cache->get($id)->then(function ($part) use ($id) { - if ($part === null) { - return $this->fetch($id, true); - } - - return $part; - }); - } - } - - if (! isset($this->endpoints['get'])) { - return reject(new \Exception('You cannot get this part.')); - } - - $part = $this->factory->part($this->class, [$this->discrim => $id]); - $endpoint = new Endpoint($this->endpoints['get']); - $endpoint->bindAssoc(array_merge($part->getRepositoryAttributes(), $this->vars)); - - return $this->http->get($endpoint)->then(function ($response) use ($part, $id) { - $part->created = true; - $part->fill(array_merge($this->vars, (array) $response)); - - return $this->cache->set($id, $part)->then(fn ($success) => $part); - }); - } - - /** - * Gets a part from the repository. - * - * @param string $discrim - * @param mixed $key - * - * @return Part|null - */ - public function get(string $discrim, $key) - { - if ($key === null) { - return null; - } - - if ($discrim == $this->discrim) { - if ($item = $this->offsetGet($key)) { - return $item; - } - - // Attempt to get resolved value if promise is resolved without waiting - return nowait($this->cache->get($key)); - } - - foreach ($this->items as $offset => $item) { - if ($item = $this->offsetGet($offset)) { - if ($item->{$discrim} == $key) { - return $item; - } - continue; - } - - $resolved = nowait($this->cache->get($offset)); - if ($resolved !== null) { - return $resolved; - } - break; - } - - return null; - } - - /** - * Attempts to get from memory first otherwise load from cache. - * - * @internal - * - * @param string|int $offset - * - * @return PromiseInterface - */ - public function cacheGet($offset): PromiseInterface - { - return resolve($this->offsetGet($offset) ?? $this->cache->get($offset)); - } - - /** - * Sets a part in the repository. - * - * @param string|int $offset - * @param Part $value - */ - public function set($offset, $value) - { - // Don't insert elements that are not of type class. - if (! is_a($value, $this->class)) { - return; - } - - $this->cache->set($offset, $value); - $this->items[$offset] = $value; - } - - /** - * Pulls a part from the repository. - * - * @deprecated 10.0.0 Use async `$repository->cachePull()` - * - * @param string|int $key - * @param mixed $default - * - * @return Part|mixed - */ - public function pull($key, $default = null) - { - if ($item = $this->offsetGet($key)) { - $default = $item; - unset($this->items[$key]); - $this->cache->delete($key); - } - - return $default; - } - - /** - * Pulls an item from cache. - * - * @internal - * - * @param string|int $key - * @param ?Part $default - * - * @return PromiseInterface - */ - public function cachePull($key, $default = null): PromiseInterface - { - return $this->cacheGet($key)->then(fn ($item) => ($item === null) ? $default : $this->cache->delete($key)->then(fn ($success) => $item)); - } - - /** - * Pushes a single item to the repository. - * - * @deprecated 10.0.0 Use async `$repository->cache->set()` - * This method is deprecated for userland code but can still be used internally within the library. - * - * @param Part $item - * - * @return self - */ - public function pushItem($item): self - { - if (is_a($item, $this->class)) { - $key = $item->{$this->discrim}; - $this->items[$key] = $item; - $this->cache->set($key, $item); - } - - return $this; - } - - /** - * Returns the first cached part. - * - * @return Part|null - */ - public function first() - { - foreach ($this->items as $offset => $item) { - if ($item instanceof WeakReference) { - if (! $item = $item->get()) { - // Attempt to get resolved value if promise is resolved without waiting - $item = nowait($this->cache->get($offset)); - } - } - - if ($item) { - return $item; - } - } - - return null; - } - - /** - * Returns the last cached part. - * - * @return Part|null - */ - public function last() - { - $items = array_reverse($this->items, true); - - foreach ($items as $offset => $item) { - if ($item instanceof WeakReference) { - if (! $item = $item->get()) { - // Attempt to get resolved value if promise is resolved without waiting - $item = nowait($this->cache->get($offset)); - } - } - - if ($item) { - return $item; - } - } - - return null; - } - - /** - * Checks if the array has an object. - * - * @deprecated 10.0.0 Use async `$repository->cache->has()` - * - * @param string|int ...$keys - * - * @return bool - */ - public function has(...$keys): bool - { - foreach ($keys as $key) { - if (! isset($this->items[$key]) || nowait($this->cache->has($key)) === false) { - return false; - } - } - - return true; - } - - /** - * Runs a filter callback over the repository and returns a new collection - * based on the response of the callback. - * - * @param callable $callback - * - * @return CollectionInterface - * - * @todo This method will be typed to return a CollectionInterface in v11 - */ - public function filter(callable $callback) - { - $collection = new Collection([], $this->discrim, $this->class); - - foreach ($this->items as $offset => $item) { - if ($item instanceof WeakReference) { - if (! $item = $item->get()) { - // Attempt to get resolved value if promise is resolved without waiting - $item = nowait($this->cache->get($offset)); - } - } - - if ($item === null) { - continue; - } - - if ($callback($item)) { - $collection->push($item); - } - } - - return $collection; - } - - /** - * Runs a filter callback over the repository and returns the first part - * where the callback returns `true` when given the part. - * - * @param callable $callback - * - * @return Part|null `null` if no items returns `true` when called in the callback. - */ - public function find(callable $callback) - { - foreach ($this->getIterator() as $item) { - if ($item === null) { - continue; - } - - if ($callback($item)) { - return $item; - } - } - - return null; - } - - /** - * Clears the repository. - * - * @deprecated 10.0.0 Use async `$repository->cache->clear()` - */ - public function clear(): void - { - // Set items null but keep the keys to be removed on prune - $this->items = array_fill_keys(array_keys($this->items), null); - } - - /** - * Converts the weak caches to array. - * - * @return array - */ - public function toArray(): array - { - $items = []; - - foreach ($this->items as $offset => $item) { - if ($item instanceof WeakReference) { - $item = $item->get(); - } - $items[$offset] = $item; - } - - return $items; - } - - /** - * Get the keys of the items. - * - * @return int[]|string[] - */ - public function keys(): array - { - return array_keys($this->items); - } - - /** - * If the repository has an offset. - * - * @deprecated 10.0.0 Use async `$repository->cache->has()` - * This method is deprecated for userland code but can still be used internally within the library. - * - * @param string|int $offset - * - * @return bool - */ - public function offsetExists($offset): bool - { - return $this->__Collection__offsetExists($offset); - } - - /** - * Gets a part from the repository. - * - * @deprecated 10.0.0 Use async `$repository->cacheGet()` or sync `$repository->get()` - * This method is deprecated for userland code but can still be used internally within the library. - * - * @param string|int $offset - * - * @return Part|null - */ - public function offsetGet($offset) - { - $item = $this->__Collection__offsetGet($offset); - - if ($item instanceof WeakReference) { - $item = $item->get(); - } - - if ($item) { - return $this->items[$offset] = $item; - } - - return null; - } - - /** - * Sets a part into the repository. - * - * @deprecated 10.0.0 Use async `$repository->cache->set()` - * - * @param string|int $offset - * @param ?Part $value - */ - public function offsetSet($offset, $value): void - { - $this->__Collection__offsetSet($offset, $value); - } - - /** - * Unsets an index from the repository. - * - * @deprecated 10.0.0 Use async `$repository->cache->delete()` - * - * @param string|int $offset - */ - public function offsetUnset($offset): void - { - $this->__Collection__offsetUnset($offset); - } - - /** - * {@inheritDoc} - */ - public function jsonSerialize(): array - { - return $this->toArray(); - } - - /** - * Returns an iterator for the cache. - * - * @return Traversable - */ - public function &getIterator(): Traversable - { - foreach ($this->items as $offset => &$item) { - if ($item instanceof WeakReference) { - // Attempt to get resolved value if promise is resolved without waiting - $item = $item->get() ?? nowait($this->cache->get($offset)); - } - - yield $offset => $item; - } - } - - public function __get(string $key) - { - if (in_array($key, ['discrim', 'cache'])) { - return $this->$key; - } - } - - /** - * This method checks if a method with the name "__Collection__{$name}" exists - * within the class. If it does, it calls that method with the provided arguments. - * If the method does not exist, it throws a BadMethodCallException. - * - * Previously, this class utilized `parent::method` to call methods from the parent class. - * This was changed to use the `__Collection__method` naming convention to avoid conflicts - * - * @param string $name The name of the method being called. - * @param array $arguments The arguments passed to the method. - * - * @return mixed The result of the called method. - * - * @throws \BadMethodCallException If the method does not exist. - */ - public function __call($name, $arguments): mixed - { - if (method_exists($this, "__Collection__{$name}")) { - return $this->{"__Collection__{$name}"}(...$arguments); - } - - throw new \BadMethodCallException("Method $name does not exist."); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Repository/Channel/InviteRepository.php b/vendor/team-reflex/discord-php/src/Discord/Repository/Channel/InviteRepository.php deleted file mode 100755 index eafc52b..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Repository/Channel/InviteRepository.php +++ /dev/null @@ -1,48 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Repository\Channel; - -use Discord\Http\Endpoint; -use Discord\Parts\Channel\Invite; -use Discord\Repository\AbstractRepository; - -/** - * Contains invites of a channel. - * - * @see Invite - * @see \Discord\Parts\Channel\Channel - * - * @since 4.0.0 - * - * @method Invite|null get(string $discrim, $key) - * @method Invite|null pull(string|int $key, $default = null) - * @method Invite|null first() - * @method Invite|null last() - * @method Invite|null find(callable $callback) - */ -class InviteRepository extends AbstractRepository -{ - /** - * {@inheritDoc} - */ - protected $endpoints = [ - 'all' => Endpoint::CHANNEL_INVITES, - 'get' => Endpoint::INVITE, - 'create' => Endpoint::CHANNEL_INVITES, - 'delete' => Endpoint::INVITE, - ]; - - /** - * {@inheritDoc} - */ - protected $class = Invite::class; -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Repository/Channel/MessageRepository.php b/vendor/team-reflex/discord-php/src/Discord/Repository/Channel/MessageRepository.php deleted file mode 100755 index a42d134..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Repository/Channel/MessageRepository.php +++ /dev/null @@ -1,57 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Repository\Channel; - -use Discord\Discord; -use Discord\Http\Endpoint; -use Discord\Parts\Channel\Message; -use Discord\Repository\AbstractRepository; - -/** - * Contains messages sent to a channel. - * - * @see Message - * @see \Discord\Parts\Channel\Channel - * - * @since 4.0.0 - * - * @method Message|null get(string $discrim, $key) - * @method Message|null pull(string|int $key, $default = null) - * @method Message|null first() - * @method Message|null last() - * @method Message|null find(callable $callback) - */ -class MessageRepository extends AbstractRepository -{ - /** - * {@inheritDoc} - */ - protected $endpoints = [ - 'get' => Endpoint::CHANNEL_MESSAGE, - 'update' => Endpoint::CHANNEL_MESSAGE, - 'delete' => Endpoint::CHANNEL_MESSAGE, - ]; - - /** - * {@inheritDoc} - */ - protected $class = Message::class; - - /** - * {@inheritDoc} - */ - public function __construct(Discord $discord, array $vars = []) - { - unset($vars['thread_id']); // For thread - parent::__construct($discord, $vars); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Repository/Channel/OverwriteRepository.php b/vendor/team-reflex/discord-php/src/Discord/Repository/Channel/OverwriteRepository.php deleted file mode 100644 index 75c55a1..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Repository/Channel/OverwriteRepository.php +++ /dev/null @@ -1,45 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Repository\Channel; - -use Discord\Http\Endpoint; -use Discord\Parts\Channel\Overwrite; -use Discord\Repository\AbstractRepository; - -/** - * Contains permission overwrites for a channel. - * - * @see Overwrite - * @see \Discord\Parts\Channel\Channel - * - * @since 4.0.0 - * - * @method Overwrite|null get(string $discrim, $key) - * @method Overwrite|null pull(string|int $key, $default = null) - * @method Overwrite|null first() - * @method Overwrite|null last() - * @method Overwrite|null find(callable $callback) - */ -class OverwriteRepository extends AbstractRepository -{ - /** - * {@inheritDoc} - */ - protected $endpoints = [ - 'delete' => Endpoint::CHANNEL_PERMISSIONS, - ]; - - /** - * {@inheritDoc} - */ - protected $class = Overwrite::class; -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Repository/Channel/PollAnswerRepository.php b/vendor/team-reflex/discord-php/src/Discord/Repository/Channel/PollAnswerRepository.php deleted file mode 100644 index 6bcb691..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Repository/Channel/PollAnswerRepository.php +++ /dev/null @@ -1,46 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Repository\Channel; - -use Discord\Http\Endpoint; -use Discord\Parts\Channel\Poll\PollAnswer; -use Discord\Repository\AbstractRepository; - -/** - * Contains poll answers on a poll in a message. - * - * @see PollAnswer - * @see \Discord\Parts\Channel\Poll - * @see \Discord\Parts\Channel\Message - * - * @since 10.0.0 - * - * @method PollAnswer|null get(string $discrim, $key) - * @method PollAnswer|null pull(string|int $key, $default = null) - * @method PollAnswer|null first() - * @method PollAnswer|null last() - * @method PollAnswer|null find(callable $callback) - */ -class PollAnswerRepository extends AbstractRepository -{ - /** - * {@inheritDoc} - */ - protected $endpoints = [ - 'get' => Endpoint::MESSAGE_POLL_ANSWER, - ]; - - /** - * {@inheritDoc} - */ - protected $class = PollAnswer::class; -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Repository/Channel/ReactionRepository.php b/vendor/team-reflex/discord-php/src/Discord/Repository/Channel/ReactionRepository.php deleted file mode 100644 index d6f2317..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Repository/Channel/ReactionRepository.php +++ /dev/null @@ -1,68 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Repository\Channel; - -use Discord\Http\Endpoint; -use Discord\Parts\Channel\Reaction; -use Discord\Repository\AbstractRepository; -use React\Promise\PromiseInterface; - -/** - * Contains reactions on a message. - * - * @see Reaction - * @see \Discord\Parts\Channel\Message - * - * @since 5.1.0 - * - * @method Reaction|null get(string $discrim, $key) - * @method Reaction|null pull(string|int $key, $default = null) - * @method Reaction|null first() - * @method Reaction|null last() - * @method Reaction|null find(callable $callback) - */ -class ReactionRepository extends AbstractRepository -{ - /** - * {@inheritDoc} - */ - protected $endpoints = [ - 'get' => Endpoint::MESSAGE_REACTION_EMOJI, - 'delete' => Endpoint::MESSAGE_REACTION_EMOJI, - ]; - - /** - * {@inheritDoc} - */ - protected $class = Reaction::class; - - /** - * Delete all reactions for emoji. - * - * {@inheritDoc} - * - * @param Reaction|string $part The Reaction part or unicode emoji to delete. - * - * @return PromiseInterface - * - * @since 10.0.0 - */ - public function delete($part, ?string $reason = null): PromiseInterface - { - // Deal with unicode emoji - if (is_string($part) && ! is_numeric($part)) { - $part = $this->create([$this->discrim => $part, 'emoji' => (object) ['id' => null, 'name' => $part]], true); - } - - return parent::delete($part, $reason); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Repository/Channel/StageInstanceRepository.php b/vendor/team-reflex/discord-php/src/Discord/Repository/Channel/StageInstanceRepository.php deleted file mode 100644 index 2fda38e..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Repository/Channel/StageInstanceRepository.php +++ /dev/null @@ -1,49 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Repository\Channel; - -use Discord\Http\Endpoint; -use Discord\Parts\Channel\StageInstance; -use Discord\Repository\AbstractRepository; - -/** - * Contains a live stage instances channel. - * - * @see StageInstance - * @see \Discord\Parts\Channel\Channel - * - * @since 10.0.0 Moved from Guild to Channel - * @since 7.0.0 - * - * @method StageInstance|null get(string $discrim, $key) - * @method StageInstance|null pull(string|int $key, $default = null) - * @method StageInstance|null first() - * @method StageInstance|null last() - * @method StageInstance|null find(callable $callback) - */ -class StageInstanceRepository extends AbstractRepository -{ - /** - * {@inheritDoc} - */ - protected $endpoints = [ - 'get' => Endpoint::STAGE_INSTANCE, - 'create' => Endpoint::STAGE_INSTANCES, - 'update' => Endpoint::STAGE_INSTANCE, - 'delete' => Endpoint::STAGE_INSTANCE, - ]; - - /** - * {@inheritDoc} - */ - protected $class = StageInstance::class; -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Repository/Channel/ThreadRepository.php b/vendor/team-reflex/discord-php/src/Discord/Repository/Channel/ThreadRepository.php deleted file mode 100644 index e4dabad..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Repository/Channel/ThreadRepository.php +++ /dev/null @@ -1,174 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Repository\Channel; - -use Discord\Helpers\Collection; -use Discord\Http\Endpoint; -use Discord\Parts\Thread\Thread; -use Discord\Repository\AbstractRepository; -use React\Promise\PromiseInterface; - -use function React\Promise\resolve; - -/** - * Contains threads on a channel. - * - * @see Thread - * - * @since 7.0.0 - * - * @method Thread|null get(string $discrim, $key) - * @method Thread|null pull(string|int $key, $default = null) - * @method Thread|null first() - * @method Thread|null last() - * @method Thread|null find(callable $callback) - */ -class ThreadRepository extends AbstractRepository -{ - /** - * {@inheritDoc} - */ - protected $endpoints = [ - 'all' => Endpoint::GUILD_THREADS_ACTIVE, - 'get' => Endpoint::THREAD, - 'update' => Endpoint::THREAD, - 'delete' => Endpoint::THREAD, - 'create' => Endpoint::CHANNEL_THREADS, - ]; - - /** - * {@inheritDoc} - */ - protected $class = Thread::class; - - /** - * {@inheritDoc} - */ - protected function cacheFreshen($response): PromiseInterface - { - foreach ($response->threads as $value) { - $value = array_merge($this->vars, (array) $value); - /** @var Thread */ - $part = $this->factory->create($this->class, $value, true); - $items[$part->{$this->discrim}] = $part; - } - - if (empty($items)) { - return resolve($this); - } - - $members = $response->members; - - return $this->cache->setMultiple($items)->then(function ($success) use ($items, $members) { - foreach ($items as $thread) { - foreach ($members as $member) { - if ($member->id == $thread->id) { - $thread->members->cache->set($member->id, $thread->members->create((array) $member + ['guild_id' => $thread->guild_id], true)); - break; - } - } - } - - return $this; - }); - } - - /** - * Fetches all the active threads on the channel. - * - * @link https://discord.com/developers/docs/resources/channel#list-active-threads - * - * @return PromiseInterface> - */ - public function active(): PromiseInterface - { - return $this->http->get(Endpoint::bind(Endpoint::GUILD_THREADS_ACTIVE, $this->vars['guild_id'])) - ->then(fn ($response) => $this->handleThreadPaginationResponse($response)); - } - - /** - * Fetches archived threads based on a set of options. - * - * @link https://discord.com/developers/docs/resources/channel#list-public-archived-threads - * @link https://discord.com/developers/docs/resources/channel#list-private-archived-threads - * @link https://discord.com/developers/docs/resources/channel#list-joined-private-archived-threads - * - * @param bool $private Whether we are fetching archived private threads. - * @param bool $joined Whether we are fetching private threads that we have joined. Note `private` cannot be false while `joined` is true. - * @param int|null $limit The number of threads to return, null to return all. - * @param Thread|string|null $before Retrieve threads before this thread. Takes a thread object or a thread ID. - * - * @throws \InvalidArgumentException - * - * @return PromiseInterface> - */ - public function archived(bool $private = false, bool $joined = false, ?int $limit = null, $before = null): PromiseInterface - { - if ($joined) { - if (! $private) { - throw new \InvalidArgumentException('You cannot fetch threads that the bot has joined but are not private.'); - } - - $endpoint = Endpoint::CHANNEL_THREADS_ARCHIVED_PRIVATE_ME; - } else { - if ($private) { - $endpoint = Endpoint::CHANNEL_THREADS_ARCHIVED_PRIVATE; - } else { - $endpoint = Endpoint::CHANNEL_THREADS_ARCHIVED_PUBLIC; - } - } - - $endpoint = Endpoint::bind($endpoint, $this->vars['channel_id']); - - if ($limit != null) { - $endpoint->addQuery('limit', $limit); - } - - if ($before != null) { - if ($before instanceof Thread) { - $before = $before->id; - } - - $endpoint->addQuery('before', $before); - } - - return $this->http->get(Endpoint::bind($endpoint, $this->vars['channel_id'])) - ->then(fn ($response) => $this->handleThreadPaginationResponse($response)); - } - - /** - * Handles a response from one of the thread pagination endpoints. - * - * @param object $response - * - * @return Collection|Thread[] - */ - private function handleThreadPaginationResponse(object $response): Collection - { - $collection = Collection::for(Thread::class); - - foreach ($response->threads as $thread) { - /** @var Thread */ - $thread = $this->factory->part(Thread::class, (array) $thread, true); - - foreach ($response->members as $member) { - if ($member->id == $thread->id) { - $thread->members->pushItem($thread->members->create($member, true)); - } - } - - $collection->pushItem($thread); - } - - return $collection; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Repository/Channel/VoiceMemberRepository.php b/vendor/team-reflex/discord-php/src/Discord/Repository/Channel/VoiceMemberRepository.php deleted file mode 100644 index d961675..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Repository/Channel/VoiceMemberRepository.php +++ /dev/null @@ -1,47 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Repository\Channel; - -use Discord\Parts\WebSockets\VoiceStateUpdate; -use Discord\Repository\AbstractRepository; - -/** - * Contains voice states for users in the voice channel. - * - * @see VoiceStateUpdate - * @see \Discord\Parts\Channel\Channel - * - * @since 4.0.0 - * - * @method VoiceStateUpdate|null get(string $discrim, $key) - * @method VoiceStateUpdate|null pull(string|int $key, $default = null) - * @method VoiceStateUpdate|null first() - * @method VoiceStateUpdate|null last() - * @method VoiceStateUpdate|null find(callable $callback) - */ -class VoiceMemberRepository extends AbstractRepository -{ - /** - * {@inheritDoc} - */ - protected $discrim = 'user_id'; - - /** - * {@inheritDoc} - */ - protected $endpoints = []; - - /** - * {@inheritDoc} - */ - protected $class = VoiceStateUpdate::class; -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Repository/Channel/WebhookMessageRepository.php b/vendor/team-reflex/discord-php/src/Discord/Repository/Channel/WebhookMessageRepository.php deleted file mode 100644 index 0ba1ca8..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Repository/Channel/WebhookMessageRepository.php +++ /dev/null @@ -1,48 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Repository\Channel; - -use Discord\Http\Endpoint; -use Discord\Parts\Channel\Message; -use Discord\Repository\AbstractRepository; - -/** - * Contains messages sent to a channel from the webhook. - * - * @see Message - * @see \Discord\Parts\Channel\Channel - * @see \Discord\Parts\Channel\Webhook - * - * @since 7.2.0 - * - * @method Message|null get(string $discrim, $key) - * @method Message|null pull(string|int $key, $default = null) - * @method Message|null first() - * @method Message|null last() - * @method Message|null find(callable $callback) - */ -class WebhookMessageRepository extends AbstractRepository -{ - /** - * {@inheritDoc} - */ - protected $endpoints = [ - 'get' => Endpoint::WEBHOOK_MESSAGE, - 'update' => Endpoint::WEBHOOK_MESSAGE, - 'delete' => Endpoint::WEBHOOK_MESSAGE, - ]; - - /** - * {@inheritDoc} - */ - protected $class = Message::class; -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Repository/Channel/WebhookRepository.php b/vendor/team-reflex/discord-php/src/Discord/Repository/Channel/WebhookRepository.php deleted file mode 100644 index 411aa93..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Repository/Channel/WebhookRepository.php +++ /dev/null @@ -1,48 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Repository\Channel; - -use Discord\Http\Endpoint; -use Discord\Parts\Channel\Webhook; -use Discord\Repository\AbstractRepository; - -/** - * Contains webhooks for a channel. - * - * @see Webhook - * - * @since 5.0.0 - * - * @method Webhook|null get(string $discrim, $key) - * @method Webhook|null pull(string|int $key, $default = null) - * @method Webhook|null first() - * @method Webhook|null last() - * @method Webhook|null find(callable $callback) - */ -class WebhookRepository extends AbstractRepository -{ - /** - * {@inheritDoc} - */ - protected $endpoints = [ - 'all' => Endpoint::CHANNEL_WEBHOOKS, - 'create' => Endpoint::CHANNEL_WEBHOOKS, - 'get' => Endpoint::WEBHOOK, - 'delete' => Endpoint::WEBHOOK, - 'update' => Endpoint::WEBHOOK, - ]; - - /** - * {@inheritDoc} - */ - protected $class = Webhook::class; -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Repository/EmojiRepository.php b/vendor/team-reflex/discord-php/src/Discord/Repository/EmojiRepository.php deleted file mode 100644 index 6e02474..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Repository/EmojiRepository.php +++ /dev/null @@ -1,82 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Repository; - -use Discord\Discord; -use Discord\Http\Endpoint; -use Discord\Parts\Guild\Emoji; -use React\Promise\PromiseInterface; - -use function React\Promise\resolve; - -/** - * Contains emojis of an application. - * - * @see Emoji - * @see \Discord\Parts\User\Client - * - * @since 10.0.0 - * - * @method Emoji|null get(string $discrim, $key) - * @method Emoji|null pull(string|int $key, $default = null) - * @method Emoji|null first() - * @method Emoji|null last() - * @method Emoji|null find(callable $callback) - */ -class EmojiRepository extends AbstractRepository -{ - /** - * {@inheritDoc} - */ - protected $endpoints = [ - 'all' => Endpoint::APPLICATION_EMOJIS, - 'get' => Endpoint::APPLICATION_EMOJI, - 'create' => Endpoint::APPLICATION_EMOJIS, - 'delete' => Endpoint::APPLICATION_EMOJI, - 'update' => Endpoint::APPLICATION_EMOJI, - ]; - - /** - * {@inheritDoc} - */ - protected $class = Emoji::class; - - /** - * {@inheritDoc} - */ - public function __construct(Discord $discord, array $vars = []) - { - $vars['application_id'] = $discord->application->id; - - parent::__construct($discord, $vars); - } - - /** - * @param object $response - * - * @return PromiseInterface - */ - protected function cacheFreshen($response): PromiseInterface - { - foreach ($response as $value) foreach ($value as $value) { - $value = array_merge($this->vars, (array) $value); - $part = $this->factory->create($this->class, $value, true); - $items[$part->{$this->discrim}] = $part; - } - - if (empty($items)) { - return resolve($this); - } - - return $this->cache->setMultiple($items)->then(fn ($success) => $this); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/AutoModerationRuleRepository.php b/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/AutoModerationRuleRepository.php deleted file mode 100644 index 450f9cd..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/AutoModerationRuleRepository.php +++ /dev/null @@ -1,49 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Repository\Guild; - -use Discord\Http\Endpoint; -use Discord\Parts\Guild\AutoModeration\Rule; -use Discord\Repository\AbstractRepository; - -/** - * Contains auto moderation rules for a guild. - * - * @see Rule - * @see \Discord\Parts\Guild\Guild - * - * @since 7.1.0 - * - * @method Rule|null get(string $discrim, $key) - * @method Rule|null pull(string|int $key, $default = null) - * @method Rule|null first() - * @method Rule|null last() - * @method Rule|null find(callable $callback) - */ -class AutoModerationRuleRepository extends AbstractRepository -{ - /** - * {@inheritDoc} - */ - protected $endpoints = [ - 'all' => Endpoint::GUILD_AUTO_MODERATION_RULES, - 'get' => Endpoint::GUILD_AUTO_MODERATION_RULE, - 'create' => Endpoint::GUILD_AUTO_MODERATION_RULES, - 'update' => Endpoint::GUILD_AUTO_MODERATION_RULE, - 'delete' => Endpoint::GUILD_AUTO_MODERATION_RULE, - ]; - - /** - * {@inheritDoc} - */ - protected $class = Rule::class; -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/BanRepository.php b/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/BanRepository.php deleted file mode 100644 index cef2afd..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/BanRepository.php +++ /dev/null @@ -1,136 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Repository\Guild; - -use Discord\Http\Endpoint; -use Discord\Parts\Guild\Ban; -use Discord\Parts\User\Member; -use Discord\Parts\User\User; -use Discord\Repository\AbstractRepository; -use React\Promise\PromiseInterface; -use Symfony\Component\OptionsResolver\OptionsResolver; - -/** - * Contains bans for users of a guild. - * - * @see Ban - * @see \Discord\Parts\Guild\Guild - * - * @since 4.0.0 - * - * @method Ban|null get(string $discrim, $key) - * @method Ban|null pull(string|int $key, $default = null) - * @method Ban|null first() - * @method Ban|null last() - * @method Ban|null find(callable $callback) - */ -class BanRepository extends AbstractRepository -{ - /** - * {@inheritDoc} - */ - protected $discrim = 'user_id'; - - /** - * {@inheritDoc} - */ - protected $endpoints = [ - 'all' => Endpoint::GUILD_BANS, - 'get' => Endpoint::GUILD_BAN, - 'delete' => Endpoint::GUILD_BAN, - ]; - - /** - * {@inheritDoc} - */ - protected $class = Ban::class; - - /** - * Bans a member from the guild. - * - * @link https://discord.com/developers/docs/resources/guild#create-guild-ban - * - * @param User|Member|string $user The User to ban. - * @param array $options Array of Ban options 'delete_message_seconds' or 'delete_message_days' (deprecated). - * @param string|null $reason Reason for Audit Log. - * - * @return PromiseInterface - */ - public function ban($user, array $options = [], ?string $reason = null): PromiseInterface - { - $headers = []; - - if ($user instanceof Member) { - $user = $user->user; - } elseif (! ($user instanceof User)) { - $user = $this->factory->part(User::class, ['id' => $user], true); - } - - $resolver = new OptionsResolver(); - $resolver->setDefined([ - 'delete_message_seconds', - 'delete_message_days', - ]) - ->setAllowedTypes('delete_message_seconds', 'int') - ->setAllowedTypes('delete_message_days', ['int', 'null']) - ->setAllowedValues('delete_message_seconds', function ($value) { - return $value >= 0 && $value <= 604800; - }) - ->setAllowedValues('delete_message_days', function ($value) { - return $value === null || ($value >= 0 && $value <= 7); - }); - - $content = $resolver->resolve($options); - - if (isset($reason)) { - $headers['X-Audit-Log-Reason'] = $reason; - } - - return $this->http->put( - Endpoint::bind(Endpoint::GUILD_BAN, $this->vars['guild_id'], $user->id), - empty($content) ? null : $content, - $headers - )->then(function () use ($user, $reason) { - /** @var Ban */ - $ban = $this->factory->part(Ban::class, [ - 'user' => (object) $user->getRawAttributes(), - 'reason' => $reason, - 'guild_id' => $this->vars['guild_id'], - ], true); - - return $this->cache->set($ban->user_id, $ban)->then(fn () => $ban); - }); - } - - /** - * Unbans a member from the guild. - * - * @link https://discord.com/developers/docs/resources/guild#remove-guild-ban - * - * @param User|Ban|string $ban User or Ban Part, or User ID - * @param string|null $reason Reason for Audit Log. - * - * @return PromiseInterface - */ - public function unban($ban, ?string $reason = null): PromiseInterface - { - if ($ban instanceof User || $ban instanceof Member) { - $ban = $ban->id; - } - - if (is_scalar($ban)) { - return $this->cache->get($ban)->then(fn ($ban) => $this->delete($ban, $reason)); - } - - return $this->delete($ban, $reason); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/ChannelRepository.php b/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/ChannelRepository.php deleted file mode 100755 index 39fbc98..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/ChannelRepository.php +++ /dev/null @@ -1,49 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Repository\Guild; - -use Discord\Http\Endpoint; -use Discord\Parts\Channel\Channel; -use Discord\Repository\AbstractRepository; - -/** - * Contains channels on a guild. - * - * @see Channel - * @see \Discord\Parts\Guild\Guild - * - * @since 4.0.0 - * - * @method Channel|null get(string $discrim, $key) - * @method Channel|null pull(string|int $key, $default = null) - * @method Channel|null first() - * @method Channel|null last() - * @method Channel|null find(callable $callback) - */ -class ChannelRepository extends AbstractRepository -{ - /** - * {@inheritDoc} - */ - protected $endpoints = [ - 'all' => Endpoint::GUILD_CHANNELS, - 'get' => Endpoint::CHANNEL, - 'create' => Endpoint::GUILD_CHANNELS, - 'update' => Endpoint::CHANNEL, - 'delete' => Endpoint::CHANNEL, - ]; - - /** - * {@inheritDoc} - */ - protected $class = Channel::class; -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/CommandPermissionsRepository.php b/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/CommandPermissionsRepository.php deleted file mode 100644 index 74cac78..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/CommandPermissionsRepository.php +++ /dev/null @@ -1,59 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Repository\Guild; - -use Discord\Discord; -use Discord\Http\Endpoint; -use Discord\Parts\Guild\CommandPermissions; -use Discord\Repository\AbstractRepository; - -/** - * Contains permission overwrites for application guild commands. - * - * @see CommandPermissions - * @see \Discord\Parts\Interactions\Command\Command - * @see \Discord\Parts\Interactions\Command\Permission - * - * @since 10.0.0 Refactored from OverwriteRepository to CommandPermissionsRepository - * @since 7.0.0 - * - * @method CommandPermissions|null get(string $discrim, $key) - * @method CommandPermissions|null pull(string|int $key, $default = null) - * @method CommandPermissions|null first() - * @method CommandPermissions|null last() - * @method CommandPermissions|null find(callable $callback) - */ -class CommandPermissionsRepository extends AbstractRepository -{ - /** - * {@inheritDoc} - */ - protected $endpoints = [ - 'all' => Endpoint::GUILD_APPLICATION_COMMANDS_PERMISSIONS, - 'get' => Endpoint::GUILD_APPLICATION_COMMAND_PERMISSIONS, - ]; - - /** - * {@inheritDoc} - */ - protected $class = CommandPermissions::class; - - /** - * {@inheritDoc} - */ - public function __construct(Discord $discord, array $vars = []) - { - $vars['application_id'] = $discord->application->id; // For the bot's Application Guild Commands - - parent::__construct($discord, $vars); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/EmojiRepository.php b/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/EmojiRepository.php deleted file mode 100644 index c09bb57..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/EmojiRepository.php +++ /dev/null @@ -1,49 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Repository\Guild; - -use Discord\Http\Endpoint; -use Discord\Parts\Guild\Emoji; -use Discord\Repository\AbstractRepository; - -/** - * Contains emojis of a guild. - * - * @see Emoji - * @see \Discord\Parts\Guild\Guild - * - * @since 4.0.2 - * - * @method Emoji|null get(string $discrim, $key) - * @method Emoji|null pull(string|int $key, $default = null) - * @method Emoji|null first() - * @method Emoji|null last() - * @method Emoji|null find(callable $callback) - */ -class EmojiRepository extends AbstractRepository -{ - /** - * {@inheritDoc} - */ - protected $endpoints = [ - 'all' => Endpoint::GUILD_EMOJIS, - 'get' => Endpoint::GUILD_EMOJI, - 'create' => Endpoint::GUILD_EMOJIS, - 'delete' => Endpoint::GUILD_EMOJI, - 'update' => Endpoint::GUILD_EMOJI, - ]; - - /** - * {@inheritDoc} - */ - protected $class = Emoji::class; -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/GuildCommandRepository.php b/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/GuildCommandRepository.php deleted file mode 100644 index 7ea4059..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/GuildCommandRepository.php +++ /dev/null @@ -1,60 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Repository\Guild; - -use Discord\Discord; -use Discord\Http\Endpoint; -use Discord\Parts\Interactions\Command\Command; -use Discord\Repository\AbstractRepository; - -/** - * Contains application guild commands. - * - * @see Command - * @see \Discord\Parts\Guild\Guild - * - * @since 7.0.0 - * - * @method Command|null get(string $discrim, $key) - * @method Command|null pull(string|int $key, $default = null) - * @method Command|null first() - * @method Command|null last() - * @method Command|null find(callable $callback) - */ -class GuildCommandRepository extends AbstractRepository -{ - /** - * {@inheritDoc} - */ - protected $endpoints = [ - 'all' => Endpoint::GUILD_APPLICATION_COMMANDS, - 'get' => Endpoint::GUILD_APPLICATION_COMMAND, - 'create' => Endpoint::GUILD_APPLICATION_COMMANDS, - 'update' => Endpoint::GUILD_APPLICATION_COMMAND, - 'delete' => Endpoint::GUILD_APPLICATION_COMMAND, - ]; - - /** - * {@inheritDoc} - */ - protected $class = Command::class; - - /** - * {@inheritDoc} - */ - public function __construct(Discord $discord, array $vars = []) - { - $vars['application_id'] = $discord->application->id; // For the bot's Application Guild Commands - - parent::__construct($discord, $vars); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/GuildTemplateRepository.php b/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/GuildTemplateRepository.php deleted file mode 100644 index 4a09522..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/GuildTemplateRepository.php +++ /dev/null @@ -1,79 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Repository\Guild; - -use Discord\Http\Endpoint; -use Discord\Parts\Guild\GuildTemplate; -use Discord\Repository\AbstractRepository; -use React\Promise\PromiseInterface; - -/** - * Contains guild templates of a guild. - * - * @see GuildTemplate - * @see \Discord\Parts\Guild\Guild - * - * @since 7.0.0 - * - * @method GuildTemplate|null get(string $discrim, $key) - * @method GuildTemplate|null pull(string|int $key, $default = null) - * @method GuildTemplate|null first() - * @method GuildTemplate|null last() - * @method GuildTemplate|null find(callable $callback) - */ -class GuildTemplateRepository extends AbstractRepository -{ - /** - * {@inheritDoc} - */ - protected $discrim = 'code'; - - /** - * {@inheritDoc} - */ - protected $endpoints = [ - 'all' => Endpoint::GUILD_TEMPLATES, - 'get' => Endpoint::GUILDS_TEMPLATE, - 'create' => Endpoint::GUILD_TEMPLATES, - 'update' => Endpoint::GUILD_TEMPLATE, - 'delete' => Endpoint::GUILD_TEMPLATE, - ]; - - /** - * {@inheritDoc} - */ - protected $class = GuildTemplate::class; - - /** - * Syncs the template to the guild's current state. Requires the MANAGE_GUILD permission. - * - * @link https://discord.com/developers/docs/resources/guild-template#sync-guild-template - * - * @param string $template_code The guild template code. - * - * @return PromiseInterface - */ - public function sync(string $template_code): PromiseInterface - { - return $this->http->put(Endpoint::bind(Endpoint::GUILD_TEMPLATE, $this->vars['guild_id'], $template_code))->then(function ($guild_template) use ($template_code) { - return $this->cache->get($template_code)->then(function ($guildTemplate) use ($guild_template, $template_code) { - if ($guildTemplate === null) { - $guildTemplate = $this->factory->part(GuildTemplate::class, (array) $guild_template, true); - } else { - $guildTemplate->fill($guild_template); - } - - return $this->cache->set($template_code, $guildTemplate)->then(fn ($success) => $guildTemplate); - }); - }); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/IntegrationRepository.php b/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/IntegrationRepository.php deleted file mode 100644 index 0bd6cbf..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/IntegrationRepository.php +++ /dev/null @@ -1,46 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Repository\Guild; - -use Discord\Http\Endpoint; -use Discord\Parts\Guild\Integration; -use Discord\Repository\AbstractRepository; - -/** - * Contains integrations on a guild. - * - * @see Integration - * @see \Discord\Parts\Guild\Guild - * - * @since 7.0.0 - * - * @method Integration|null get(string $discrim, $key) - * @method Integration|null pull(string|int $key, $default = null) - * @method Integration|null first() - * @method Integration|null last() - * @method Integration|null find(callable $callback) - */ -class IntegrationRepository extends AbstractRepository -{ - /** - * {@inheritDoc} - */ - protected $endpoints = [ - 'all' => Endpoint::GUILD_INTEGRATIONS, - 'delete' => Endpoint::GUILD_INTEGRATION, - ]; - - /** - * {@inheritDoc} - */ - protected $class = Integration::class; -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/InviteRepository.php b/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/InviteRepository.php deleted file mode 100755 index 54ae774..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/InviteRepository.php +++ /dev/null @@ -1,47 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Repository\Guild; - -use Discord\Http\Endpoint; -use Discord\Parts\Channel\Invite; -use Discord\Repository\AbstractRepository; - -/** - * Contains invites to a guild. - * - * @since 4.0.0 - * - * @see Invite - * @see \Discord\Parts\Guild\Guild - * - * @method Invite|null get(string $discrim, $key) - * @method Invite|null pull(string|int $key, $default = null) - * @method Invite|null first() - * @method Invite|null last() - * @method Invite|null find(callable $callback) - */ -class InviteRepository extends AbstractRepository -{ - /** - * {@inheritDoc} - */ - protected $endpoints = [ - 'all' => Endpoint::GUILD_INVITES, - 'get' => Endpoint::INVITE, - 'delete' => Endpoint::INVITE, - ]; - - /** - * {@inheritDoc} - */ - protected $class = Invite::class; -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/MemberRepository.php b/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/MemberRepository.php deleted file mode 100755 index 85d2435..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/MemberRepository.php +++ /dev/null @@ -1,107 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Repository\Guild; - -use Discord\Http\Endpoint; -use Discord\Parts\User\Member; -use Discord\Repository\AbstractRepository; -use React\Promise\Deferred; -use React\Promise\PromiseInterface; - -/** - * Contains members of a guild. - * - * @since 4.0.0 - * - * @see Member - * @see \Discord\Parts\Guild\Guild - * - * @method Member|null get(string $discrim, $key) - * @method Member|null pull(string|int $key, $default = null) - * @method Member|null first() - * @method Member|null last() - * @method Member|null find(callable $callback) - */ -class MemberRepository extends AbstractRepository -{ - /** - * {@inheritDoc} - */ - protected $endpoints = [ - 'all' => Endpoint::GUILD_MEMBERS, - 'get' => Endpoint::GUILD_MEMBER, - 'update' => Endpoint::GUILD_MEMBER, - 'delete' => Endpoint::GUILD_MEMBER, - ]; - - /** - * {@inheritDoc} - */ - protected $class = Member::class; - - /** - * Alias for `$member->delete()`. - * - * @link https://discord.com/developers/docs/resources/guild#remove-guild-member - * - * @param Member $member The member to kick. - * @param string|null $reason Reason for Audit Log. - * - * @return PromiseInterface - */ - public function kick(Member $member, ?string $reason = null): PromiseInterface - { - return $this->delete($member, $reason); - } - - /** - * {@inheritDoc} - * - * @param array $queryparams Query string params to add to the request, leave null to paginate all members (Warning: Be careful to use this on very large guild) - */ - public function freshen(?array $queryparams = null): PromiseInterface - { - if (isset($queryparams)) { - return parent::freshen($queryparams); - } - - $endpoint = new Endpoint($this->endpoints['all']); - $endpoint->bindAssoc($this->vars); - - $deferred = new Deferred(); - - ($paginate = function ($afterId = 0) use (&$paginate, $deferred, $endpoint) { - $endpoint->addQuery('limit', 1000); - $endpoint->addQuery('after', $afterId); - - $this->http->get($endpoint)->then(function ($response) use ($paginate, $deferred, $afterId) { - if (empty($response)) { - $deferred->resolve($this); - - return; - } elseif (! $afterId) { - $this->items = []; - } - - foreach ($response as $value) { - $lastValueId = $value->user->id; - } - - $this->cacheFreshen($response)->then(function () use ($paginate, $lastValueId) { - $paginate($lastValueId); - }); - }, [$deferred, 'reject']); - })(); - - return $deferred->promise(); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/RoleRepository.php b/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/RoleRepository.php deleted file mode 100755 index e25592b..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/RoleRepository.php +++ /dev/null @@ -1,49 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Repository\Guild; - -use Discord\Http\Endpoint; -use Discord\Parts\Guild\Role; -use Discord\Repository\AbstractRepository; - -/** - * Contains roles of a guild. - * - * @since 4.0.0 - * - * @see Role - * @see \Discord\Parts\Guild\Guild - * - * @method Role|null get(string $discrim, $key) - * @method Role|null pull(string|int $key, $default = null) - * @method Role|null first() - * @method Role|null last() - * @method Role|null find(callable $callback) - */ -class RoleRepository extends AbstractRepository -{ - /** - * {@inheritDoc} - */ - protected $endpoints = [ - 'all' => Endpoint::GUILD_ROLES, - 'get' => Endpoint::GUILD_ROLE, - 'create' => Endpoint::GUILD_ROLES, - 'update' => Endpoint::GUILD_ROLE, - 'delete' => Endpoint::GUILD_ROLE, - ]; - - /** - * {@inheritDoc} - */ - protected $class = Role::class; -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/ScheduledEventRepository.php b/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/ScheduledEventRepository.php deleted file mode 100644 index cfd4c1f..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/ScheduledEventRepository.php +++ /dev/null @@ -1,85 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Repository\Guild; - -use Discord\Http\Endpoint; -use Discord\Parts\Guild\ScheduledEvent; -use Discord\Repository\AbstractRepository; -use React\Promise\PromiseInterface; - -use function React\Promise\resolve; - -/** - * Contains scheduled events on a guild. - * - * @see ScheduledEvent - * @see \Discord\Parts\Guild\Guild - * - * @since 7.0.0 - * - * @method ScheduledEvent|null get(string $discrim, $key) - * @method ScheduledEvent|null pull(string|int $key, $default = null) - * @method ScheduledEvent|null first() - * @method ScheduledEvent|null last() - * @method ScheduledEvent|null find(callable $callback) - */ -class ScheduledEventRepository extends AbstractRepository -{ - /** - * {@inheritDoc} - */ - protected $endpoints = [ - 'all' => Endpoint::GUILD_SCHEDULED_EVENTS, - 'get' => Endpoint::GUILD_SCHEDULED_EVENT, - 'create' => Endpoint::GUILD_SCHEDULED_EVENTS, - 'update' => Endpoint::GUILD_SCHEDULED_EVENT, - 'delete' => Endpoint::GUILD_SCHEDULED_EVENT, - ]; - - /** - * {@inheritDoc} - */ - protected $class = ScheduledEvent::class; - - /** - * {@inheritDoc} - * - * @param bool $with_user_count Whether to include number of users subscribed to each event - * - * @return PromiseInterface - */ - public function fetch(string $id, bool $fresh = false, bool $with_user_count = false): PromiseInterface - { - if (! $with_user_count) { - return parent::fetch($id, $fresh); - } - - if (! $fresh && $part = $this->get($this->discrim, $id)) { - if (isset($part->user_count)) { - return resolve($part); - } - } - - $part = $this->factory->part($this->class, [$this->discrim => $id]); - $endpoint = new Endpoint($this->endpoints['get']); - $endpoint->bindAssoc(array_merge($part->getRepositoryAttributes(), $this->vars)); - - $endpoint->addQuery('with_user_count', $with_user_count); - - return $this->http->get($endpoint)->then(function ($response) use ($part, $id) { - $part->fill(array_merge($this->vars, (array) $response)); - $part->created = true; - - return $this->cache->set($id, $part)->then(fn ($success) => $part); - }); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/SoundRepository.php b/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/SoundRepository.php deleted file mode 100644 index b7d2889..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/SoundRepository.php +++ /dev/null @@ -1,79 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Repository\Guild; - -use Discord\Http\Endpoint; -use Discord\Parts\Guild\Sound; -use Discord\Repository\AbstractRepository; -use React\Promise\PromiseInterface; - -use function React\Promise\resolve; - -/** - * Contains sounds of a guild. - * - * @see Sound - * @see \Discord\Parts\Guild\Guild - * - * @since 10.0.0 - * - * @method Sound|null get(string $discrim, $key) - * @method Sound|null pull(string|int $key, $default = null) - * @method Sound|null first() - * @method Sound|null last() - * @method Sound|null find(callable $callback) - */ -class SoundRepository extends AbstractRepository -{ - /** - * The discriminator. - * - * @var string Discriminator. - */ - protected $discrim = 'sound_id'; - - /** - * {@inheritDoc} - */ - protected $endpoints = [ - 'all' => Endpoint::GUILD_SOUNDBOARD_SOUNDS, - 'get' => Endpoint::GUILD_SOUNDBOARD_SOUND, - 'create' => Endpoint::GUILD_SOUNDBOARD_SOUNDS, - 'delete' => Endpoint::GUILD_SOUNDBOARD_SOUND, - 'update' => Endpoint::GUILD_SOUNDBOARD_SOUND, - ]; - - /** - * {@inheritDoc} - */ - protected $class = Sound::class; - - /** - * @param object $response - * - * @return PromiseInterface - */ - protected function cacheFreshen($response): PromiseInterface - { - foreach ($response as $value) foreach ($value as $value) { - $value = array_merge($this->vars, (array) $value); - $part = $this->factory->create($this->class, $value, true); - $items[$part->{$this->discrim}] = $part; - } - - if (empty($items)) { - return resolve($this); - } - - return $this->cache->setMultiple($items)->then(fn ($success) => $this); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/StickerRepository.php b/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/StickerRepository.php deleted file mode 100644 index a8c5b7f..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Repository/Guild/StickerRepository.php +++ /dev/null @@ -1,49 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Repository\Guild; - -use Discord\Http\Endpoint; -use Discord\Parts\Guild\Sticker; -use Discord\Repository\AbstractRepository; - -/** - * Contains stickers of a guild. - * - * @see Sticker - * @see \Discord\Parts\Guild\Guild - * - * @since 7.0.0 - * - * @method Sticker|null get(string $discrim, $key) - * @method Sticker|null pull(string|int $key, $default = null) - * @method Sticker|null first() - * @method Sticker|null last() - * @method Sticker|null find(callable $callback) - */ -class StickerRepository extends AbstractRepository -{ - /** - * {@inheritDoc} - */ - protected $endpoints = [ - 'all' => Endpoint::GUILD_STICKERS, - 'get' => Endpoint::GUILD_STICKER, - 'create' => Endpoint::GUILD_STICKERS, - 'delete' => Endpoint::GUILD_STICKER, - 'update' => Endpoint::GUILD_STICKER, - ]; - - /** - * {@inheritDoc} - */ - protected $class = Sticker::class; -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Repository/GuildRepository.php b/vendor/team-reflex/discord-php/src/Discord/Repository/GuildRepository.php deleted file mode 100755 index da217ee..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Repository/GuildRepository.php +++ /dev/null @@ -1,69 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Repository; - -use Discord\Http\Endpoint; -use Discord\Parts\Guild\Guild; -use React\Promise\PromiseInterface; - -/** - * Contains guilds that the client is in. - * - * @see Guild - * - * @since 4.0.0 - * - * @method Guild|null get(string $discrim, $key) - * @method Guild|null pull(string|int $key, $default = null) - * @method Guild|null first() - * @method Guild|null last() - * @method Guild|null find(callable $callback) - */ -class GuildRepository extends AbstractRepository -{ - /** - * {@inheritDoc} - */ - protected $endpoints = [ - 'all' => Endpoint::USER_CURRENT_GUILDS, - 'get' => Endpoint::GUILD, - 'create' => Endpoint::GUILDS, - 'update' => Endpoint::GUILD, - 'delete' => Endpoint::GUILD, - 'leave' => Endpoint::USER_CURRENT_GUILD, - ]; - - /** - * {@inheritDoc} - */ - protected $class = Guild::class; - - /** - * Causes the client to leave a guild. - * - * @link https://discord.com/developers/docs/resources/user#leave-guild - * - * @param Guild|string $guild - * - * @return PromiseInterface - */ - public function leave($guild): PromiseInterface - { - if ($guild instanceof Guild) { - $guild = $guild->id; - } - - return $this->http - ->delete(Endpoint::bind(Endpoint::USER_CURRENT_GUILD, $guild)) - ->then(fn () => $this->cache->delete($guild)->then(fn ($success) => $this)); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Repository/Interaction/GlobalCommandRepository.php b/vendor/team-reflex/discord-php/src/Discord/Repository/Interaction/GlobalCommandRepository.php deleted file mode 100644 index 96751d9..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Repository/Interaction/GlobalCommandRepository.php +++ /dev/null @@ -1,49 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Repository\Interaction; - -use Discord\Http\Endpoint; -use Discord\Parts\Interactions\Command\Command; -use Discord\Repository\AbstractRepository; - -/** - * Contains application global commands. - * - * @see Command - * @see \Discord\Parts\Guild\Guild - * - * @since 7.0.0 - * - * @method Command|null get(string $discrim, $key) - * @method Command|null pull(string|int $key, $default = null) - * @method Command|null first() - * @method Command|null last() - * @method Command|null find(callable $callback) - */ -class GlobalCommandRepository extends AbstractRepository -{ - /** - * {@inheritDoc} - */ - protected $endpoints = [ - 'all' => Endpoint::GLOBAL_APPLICATION_COMMANDS, - 'get' => Endpoint::GLOBAL_APPLICATION_COMMAND, - 'create' => Endpoint::GLOBAL_APPLICATION_COMMANDS, - 'update' => Endpoint::GLOBAL_APPLICATION_COMMAND, - 'delete' => Endpoint::GLOBAL_APPLICATION_COMMAND, - ]; - - /** - * {@inheritDoc} - */ - protected $class = Command::class; -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Repository/PrivateChannelRepository.php b/vendor/team-reflex/discord-php/src/Discord/Repository/PrivateChannelRepository.php deleted file mode 100755 index d5fc9fc..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Repository/PrivateChannelRepository.php +++ /dev/null @@ -1,43 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Repository; - -use Discord\Parts\Channel\Channel; -use Discord\Http\Endpoint; - -/** - * Contains private channels and groups that the client has access to. - * - * @see Channel - * - * @since 4.0.0 - * - * @method Channel|null get(string $discrim, $key) - * @method Channel|null pull(string|int $key, $default = null) - * @method Channel|null first() - * @method Channel|null last() - * @method Channel|null find(callable $callback) - */ -class PrivateChannelRepository extends AbstractRepository -{ - /** - * {@inheritDoc} - */ - protected $endpoints = [ - 'get' => Endpoint::CHANNEL, - ]; - - /** - * {@inheritDoc} - */ - protected $class = Channel::class; -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Repository/SoundRepository.php b/vendor/team-reflex/discord-php/src/Discord/Repository/SoundRepository.php deleted file mode 100644 index 46752bc..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Repository/SoundRepository.php +++ /dev/null @@ -1,52 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Repository; - -use Discord\Http\Endpoint; -use Discord\Parts\Guild\Sound; -use Discord\Repository\AbstractRepository; - -/** - * Contains sounds of an application. - * - * @see Sound - * @see \Discord\Parts\Guild\Guild - * - * @since 10.0.0 - * - * @method Sound|null get(string $discrim, $key) - * @method Sound|null pull(string|int $key, $default = null) - * @method Sound|null first() - * @method Sound|null last() - * @method Sound|null find(callable $callback) - */ -class SoundRepository extends AbstractRepository -{ - /** - * The discriminator. - * - * @var string Discriminator. - */ - protected $discrim = 'sound_id'; - - /** - * {@inheritDoc} - */ - protected $endpoints = [ - 'all' => Endpoint::SOUNDBOARD_DEFAULT_SOUNDS, - ]; - - /** - * {@inheritDoc} - */ - protected $class = Sound::class; -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Repository/Thread/MemberRepository.php b/vendor/team-reflex/discord-php/src/Discord/Repository/Thread/MemberRepository.php deleted file mode 100644 index 8f296f0..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Repository/Thread/MemberRepository.php +++ /dev/null @@ -1,61 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Repository\Thread; - -use Discord\Discord; -use Discord\Http\Endpoint; -use Discord\Parts\Thread\Member; -use Discord\Repository\AbstractRepository; - -/** - * Contains members of a thread. - * - * @see Member - * @see \Discord\Parts\Thread\Thread - * - * @since 7.0.0 - * - * @method Member|null get(string $discrim, $key) - * @method Member|null pull(string|int $key, $default = null) - * @method Member|null first() - * @method Member|null last() - * @method Member|null find(callable $callback) - */ -class MemberRepository extends AbstractRepository -{ - /** - * {@inheritDoc} - */ - protected $discrim = 'user_id'; - - /** - * {@inheritDoc} - */ - protected $endpoints = [ - 'all' => Endpoint::THREAD_MEMBERS, - 'get' => Endpoint::THREAD_MEMBER, - ]; - - /** - * {@inheritDoc} - */ - protected $class = Member::class; - - /** - * {@inheritDoc} - */ - public function __construct(Discord $discord, array $vars = []) - { - unset($vars['channel_id']); // For thread - parent::__construct($discord, $vars); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Repository/UserRepository.php b/vendor/team-reflex/discord-php/src/Discord/Repository/UserRepository.php deleted file mode 100644 index be6ffce..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Repository/UserRepository.php +++ /dev/null @@ -1,43 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Repository; - -use Discord\Http\Endpoint; -use Discord\Parts\User\User; - -/** - * Contains users that the client shares guilds with. - * - * @see User - * - * @since 4.0.0 - * - * @method User|null get(string $discrim, $key) - * @method User|null pull(string|int $key, $default = null) - * @method User|null first() - * @method User|null last() - * @method User|null find(callable $callback) - */ -class UserRepository extends AbstractRepository -{ - /** - * {@inheritDoc} - */ - protected $endpoints = [ - 'get' => Endpoint::USER, - ]; - - /** - * {@inheritDoc} - */ - protected $class = User::class; -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Voice/Buffer.php b/vendor/team-reflex/discord-php/src/Discord/Voice/Buffer.php deleted file mode 100644 index 4d4e499..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Voice/Buffer.php +++ /dev/null @@ -1,186 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Voice; - -use ArrayAccess; -use TrafficCophp\ByteBuffer\Buffer as BaseBuffer; - -/** - * A Byte Buffer similar to Buffer in NodeJS. - * - * @since 3.2.0 - */ -class Buffer extends BaseBuffer implements ArrayAccess -{ - /** - * Writes a 32-bit unsigned integer with big endian. - * - * @param int $value The value that will be written. - * @param int $offset The offset that the value will be written. - */ - public function writeUInt32BE(int $value, int $offset): void - { - $this->insert('I', $value, $offset, 3); - } - - /** - * Writes a 64-bit unsigned integer with little endian. - * - * @param int $value The value that will be written. - * @param int $offset The offset that the value will be written. - */ - public function writeUInt64LE(int $value, int $offset): void - { - $this->insert('P', $value, $offset, 8); - } - - /** - * Writes a signed integer. - * - * @param int $value The value that will be written. - * @param int $offset The offset that the value will be written. - */ - public function writeInt(int $value, int $offset): void - { - $this->insert('N', $value, $offset, 4); - } - - /** - * Reads a signed integer. - * - * @param int $offset The offset to read from. - * - * @return int The data read. - */ - public function readInt(int $offset): int - { - return $this->extract('N', $offset, 4); - } - - /** - * Writes an unsigned big endian short. - * - * @param int $value The value that will be written. - * @param int $offset The offset that the value will be written. - */ - public function writeShort(int $value, int $offset): void - { - $this->insert('n', $value, $offset, 2); - } - - /** - * Reads an unsigned big endian short. - * - * @param int $offset The offset to read from. - * - * @return int The data read. - */ - public function readShort(int $offset): int - { - return $this->extract('n', $offset, 4); - } - - /** - * Reads a unsigned integer with little endian. - * - * @param int $offset The offset that will be read. - * - * @return int The value that is at the specified offset. - */ - public function readUIntLE(int $offset): int - { - return $this->extract('I', $offset, 3); - } - - /** - * Writes a char. - * - * @param string $value The value that will be written. - * @param int $offset The offset that the value will be written. - */ - public function writeChar(string $value, int $offset): void - { - $this->insert('c', $value, $offset, $this->lengthMap->getLengthFor('c')); - } - - /** - * Writes raw binary to the buffer. - * - * @param int $value The value that will be written. - * @param int $offset The offset that the value will be written at. - */ - public function writeRaw(int $value, int $offset): void - { - $this->buffer[$offset] = $value; - } - - /** - * Writes a binary string to the buffer. - * - * @param string $value The value that will be written. - * @param int $offset The offset that the value will be written at. - */ - public function writeRawString(string $value, int $offset): void - { - for ($i = 0; $i < strlen($value); ++$i) { - $this->buffer[$offset++] = $value[$i]; - } - } - - /** - * Gets an attribute via key. Used for ArrayAccess. - * - * @param mixed $key The attribute key. - * - * @return mixed - */ - #[\ReturnTypeWillChange] - public function offsetGet($key) - { - return $this->buffer[$key]; - } - - /** - * Checks if an attribute exists via key. Used for ArrayAccess. - * - * @param mixed $key The attribute key. - * - * @return bool Whether the offset exists. - */ - public function offsetExists($key): bool - { - return isset($this->buffer[$key]); - } - - /** - * Sets an attribute via key. Used for ArrayAccess. - * - * @param mixed $key The attribute key. - * @param mixed $value The attribute value. - */ - public function offsetSet($key, $value): void - { - $this->buffer[$key] = $value; - } - - /** - * Unsets an attribute via key. Used for ArrayAccess. - * - * @param string $key The attribute key. - */ - public function offsetUnset($key): void - { - if (isset($this->buffer[$key])) { - unset($this->buffer[$key]); - } - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Voice/OggPage.php b/vendor/team-reflex/discord-php/src/Discord/Voice/OggPage.php deleted file mode 100644 index d9e616b..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Voice/OggPage.php +++ /dev/null @@ -1,142 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Voice; - -use Discord\Helpers\Buffer; -use Generator; -use React\Promise\PromiseInterface; - -/** - * Represents a page in an Ogg container. - * - * @link https://www.rfc-editor.org/rfc/rfc3533 - * - * @since 10.0.0 - * - * @internal - */ -class OggPage -{ - /** - * Binary format string used to parse header. - * - * @var string - */ - private const FORMAT = 'Cversion/Cheader_type/Pgranule_position/Vbitstream_sn/Vpage_seq/Vcsum/Cpage_segments'; - - /** - * Create a new Ogg page. - * - * @param int $version The version number of the Ogg file format used in this stream. - * @param int $headerType Identifies the specific type of this page. - * @param int $granulePosition Contains position information. - * @param int $bitstreamSn Contains the unique serial number by which the logical bitstream is identified. - * @param int $pageSeq Contains the sequence number of the page so the decoder can identify page loss. - * @param int $checksum Contains a 32 bit CRC checksum of the page (including header with zero CRC field and page content). - * @param int[] $pageSegments A list of page segment lengths which were contained within the page. - * @param string $segmentData The data of all the page segments concatenated. - * - * @link https://www.rfc-editor.org/rfc/rfc3533#section-6 The Ogg page format - */ - private function __construct( - private int $version, - private int $headerType, - private int $granulePosition, - private int $bitstreamSn, - private int $pageSeq, - private int $checksum, - private array $pageSegments, - public string $segmentData, - ) { - } - - /** - * Read an Ogg page from a buffer. - * - * @param Buffer $buffer Buffer to read the Ogg page from. - * @param ?int $timeout Time in milliseconds before a buffer read times out. - * - * @return PromiseInterface Promise containing the Ogg page. - * - * @throws \UnexpectedValueException If the buffer is out of sync and an invalid header is read. - */ - public static function fromBuffer(Buffer $buffer, ?int $timeout = -1): PromiseInterface - { - $header = null; - $pageSegments = []; - - return $buffer->read(4, timeout: $timeout)->then(function ($magic) use ($buffer, $timeout) { - if ($magic !== 'OggS') { - throw new \UnexpectedValueException("Invalid Ogg page header, expected OggS got {$magic}."); - } - - return $buffer->read(23, timeout: $timeout); - }) - // Reading header - ->then(function ($data) use ($buffer, &$header, $timeout) { - $header = unpack(self::FORMAT, $data); - - return $buffer->read($header['page_segments'], timeout: $timeout); - }) - // Reading page segment lengths - ->then(function ($data) use ($buffer, &$pageSegments, $timeout) { - $pageSegments = unpack('C*', $data); - $data = array_sum($pageSegments); - - return $buffer->read($data, timeout: $timeout); - }) - // Reading segment data - ->then(function ($data) use (&$header, &$pageSegments) { - return new OggPage( - $header['version'], - $header['header_type'], - $header['granule_position'], - $header['bitstream_sn'], - $header['page_seq'], - $header['csum'], - $pageSegments, - $data - ); - }); - } - - /** - * Iterates through the packets contained within the stream, yielding an - * array containing binary data and whether the packet is complete, from a - * generator. - * - * @return Generator - */ - public function iterPackets() - { - $packetLen = 0; - $offset = 0; - $partial = true; - - foreach ($this->pageSegments as $seg) { - $packetLen += $seg; - if ($seg == 255) { - $partial = true; - continue; - } - - yield [substr($this->segmentData, $offset, $packetLen), true]; - $offset += $packetLen; - $packetLen = 0; - $partial = false; - } - - if ($partial) { - yield [substr($this->segmentData, $offset), false]; - } - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Voice/OggStream.php b/vendor/team-reflex/discord-php/src/Discord/Voice/OggStream.php deleted file mode 100644 index 166925a..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Voice/OggStream.php +++ /dev/null @@ -1,143 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Voice; - -use Discord\Exceptions\BufferTimedOutException; -use Discord\Helpers\Buffer; -use React\Promise\PromiseInterface; -use React\Promise\Promise; - -use function React\Promise\resolve; - -/** - * Represents an Ogg Opus stream. - * - * @link https://www.rfc-editor.org/rfc/rfc7845 - * - * @since 10.0.0 - * - * @internal - */ -class OggStream -{ - /** - * Leftover bytes from the previous Ogg packet. - * - * @var string - */ - private string $leftover = ''; - - /** - * Buffer of packets that have been parsed and split into Opus chunks. - * - * @var string[]|null - */ - private ?array $packets = []; - - /** - * Create a new Ogg Opus stream. - * - * @param Buffer $buffer Buffer to read Ogg Opus packets from. - * @param OpusHead $header The header that has already been read from `$buffer`. - * @param OpusTags $tags The tags that have already been read from `$buffer`. - */ - private function __construct( - private Buffer $buffer, - public OpusHead $header, - public OpusTags $tags - ) { - } - - /** - * Create a new Ogg Opus stream from a buffer. This will read the Opus - * header and the Opus tags and return a new Ogg stream ready to read Opus - * packets. - * - * @param Buffer $buffer Buffer to read Ogg Opus packets from. - * @param ?int $timeout Time in milliseconds before a buffer read times out. - * - * @return PromiseInterface A promise containing the Ogg stream. - */ - public static function fromBuffer(Buffer $buffer, ?int $timeout = -1): PromiseInterface - { - /** @var OpusHead */ - $header = null; - - return OggPage::fromBuffer($buffer, $timeout)->then(function (OggPage $page) use (&$header, $buffer, $timeout) { - $header = new OpusHead($page->segmentData); - - return OggPage::fromBuffer($buffer, $timeout); - })->then(function (OggPage $page) use (&$header, $buffer) { - $tags = new OpusTags($page->segmentData); - - return new OggStream($buffer, $header, $tags); - }); - } - - /** - * Attempt to get a packet from the Ogg stream. - * - * @return PromiseInterface Promise containing an Opus packet. If null, indicates EOF. - */ - public function getPacket(): PromiseInterface - { - if ($this->packets === null) { - return resolve(null); - } elseif (count($this->packets) > 0) { - return resolve(array_shift($this->packets)); - } - - return $this->parsePackets()->then(function ($packets) { - if ($packets === null) { - $this->packets = null; - - return null; - } - - $this->packets = array_merge($this->packets, $packets); - - return $this->getPacket(); - }); - } - - /** - * Attempt to read an Ogg page from the buffer and parse it into Opus - * packets. - * - * @return PromiseInterface Promise containing an array of Opus packets. - */ - private function parsePackets(): PromiseInterface - { - return new Promise(function ($resolve, $reject) { - OggPage::fromBuffer($this->buffer, timeout: 0)->then(function ($page) use ($resolve) { - $packets = []; - $partial = $this->leftover; - foreach ($page->iterPackets() as [$data, $complete]) { - $partial .= $data; - if ($complete) { - $packets[] = $partial; - $partial = ''; - } - } - $this->leftover = $partial; - - $resolve($packets); - }, function (\Exception $e) use ($resolve, $reject) { - if ($e instanceof BufferTimedOutException) { - $resolve(null); - } else { - $reject($e); - } - }); - }); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Voice/OpusHead.php b/vendor/team-reflex/discord-php/src/Discord/Voice/OpusHead.php deleted file mode 100644 index d268bc7..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Voice/OpusHead.php +++ /dev/null @@ -1,135 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Voice; - -/** - * Represents the header attached to an Opus Ogg file. - * - * @link https://www.rfc-editor.org/rfc/rfc7845#section-5.1 Identification Header - * - * @since 10.0.0 - * - * @internal - */ -class OpusHead -{ - /** - * Binary format string used to parse header. - * - * @var string - */ - private const FORMAT = 'Cversion/Cchannel_count/vpre_skip/Vsample_rate/voutput_gain/Cchannel_map_family'; - - /** - * Binary format string used to parse optional header. - * - * @var string - */ - private const STREAM_COUNT_FORMAT = 'Cstream_count/Ctwo_channel_stream_count'; - - /** - * Version number of Opus file. Should always be 1. - * - * @var int - */ - public int $version; - - /** - * Number of channels in the Opus file. - * - * @var int - */ - public int $channelCount; - - /** - * The number of samples (at 48 kHz) to discard from the decoder output when - * starting playback. - * - * @var int - */ - public int $preSkip; - - /** - * The sample rate of the original input (before encoding), in Hz. This - * field is _not_ the sample rate to use for playback of the encoded data. - * - * @var int - */ - public int $sampleRate; - - /** - * The gain to be applied when decoding. - * - * @var int - */ - public int $outputGain; - - /** - * Indicates the order and semantic meaning of the output channels. - * - * @var int - */ - public int $channelMapFamily; - - /** - * The total number of streams encoded in each Ogg packet. - * - * @var null|int - */ - public ?int $streamCount = null; - - /** - * The number of streams whose decoders are to be configured to produce two - * channels (stereo). - * - * @var null|int - */ - public ?int $twoChannelStreamCount = null; - - /** - * Contains one octet per output channel, indicating which decoded channel - * is to be used for each one. - * - * @var int[]|null - */ - public ?array $cmap = null; - - /** - * Create an instance of OpusHead from a binary string. - * - * @param string $data Binary string of data. - * - * @throws \UnexpectedValueException If the binary data was missing the magic bytes. - */ - public function __construct(string $data) - { - $magic = substr($data, 0, 8); - if ($magic != 'OpusHead') { - throw new \UnexpectedValueException("Expected OpusHead, found {$magic}."); - } - - $head = unpack(self::FORMAT, $data, 8); - $this->version = $head['version']; - $this->channelCount = $head['channel_count']; - $this->preSkip = $head['pre_skip']; - $this->sampleRate = $head['sample_rate']; - $this->outputGain = $head['output_gain']; - $this->channelMapFamily = $head['channel_map_family']; - - if ($head['channel_map_family'] > 0) { - $stream_counts = unpack(self::STREAM_COUNT_FORMAT, $data, 19); - $this->streamCount = $stream_counts['stream_count']; - $this->twoChannelStreamCount = $stream_counts['two_channel_stream_count']; - $this->cmap = array_values(unpack('C*', $data, 21)); - } - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Voice/OpusTags.php b/vendor/team-reflex/discord-php/src/Discord/Voice/OpusTags.php deleted file mode 100644 index 083fba2..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Voice/OpusTags.php +++ /dev/null @@ -1,66 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Voice; - -/** - * Represents Vorbis tags attached to an Opus Ogg file. - * - * @link https://www.rfc-editor.org/rfc/rfc7845#section-5.2 Comment Header - * - * @since 10.0.0 - * - * @internal - */ -class OpusTags -{ - /** - * The vendor of the Opus Ogg. - * - * @var string - */ - public string $vendor; - - /** - * An array of tags attached to the Opus Ogg. - * - * @var string[] - */ - public array $tags; - - /** - * Create an instance of OpusTags from a binary string. - * - * @param string $data Binary string of data. - * - * @throws \UnexpectedValueException If the binary data was missing the magic bytes. - */ - public function __construct(string $data) - { - $magic = substr($data, 0, 8); - if ($magic != 'OpusTags') { - throw new \UnexpectedValueException("Expected OpusTags, found {$magic}."); - } - - $vendor_len = unpack('Vvendor_len', $data, 8)['vendor_len']; - $this->vendor = substr($data, 12, $vendor_len); - - $tags = []; - $num_tags = unpack('Vnum_tags', $data, 12 + $vendor_len)['num_tags']; - $data = substr($data, 16 + $vendor_len); - for ($i = 0; $i < $num_tags; $i++) { - $tag_len = unpack('Vtag_len', $data)['tag_len']; - $tags[$i] = substr($data, 4, $tag_len); - $data = substr($data, 4 + $tag_len); - } - $this->tags = $tags; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Voice/RecieveStream.php b/vendor/team-reflex/discord-php/src/Discord/Voice/RecieveStream.php deleted file mode 100644 index 2468093..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Voice/RecieveStream.php +++ /dev/null @@ -1,282 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Voice; - -use Evenement\EventEmitter; -use React\Stream\DuplexStreamInterface; -use React\Stream\WritableStreamInterface; - -/** - * Handles recieving audio from Discord. - * - * @since 3.2.0 - */ -class RecieveStream extends EventEmitter implements DuplexStreamInterface -{ - /** - * Contains PCM data. - * - * @var string PCM data. - */ - protected $pcmData = ''; - - /** - * Contains Opus data. - * - * @var string Opus data. - */ - protected $opusData = ''; - - /** - * Is the stream paused? - * - * @var bool Whether the stream is paused. - */ - protected $isPaused; - - /** - * Whether the stream is closed. - * - * @var bool Whether the stream is closed. - */ - protected $isClosed = false; - - /** - * The PCM pause buffer. - * - * @var array The PCM pause buffer. - */ - protected $pcmPauseBuffer = []; - - /** - * The pause buffer. - * - * @var array The pause buffer. - */ - protected $opusPauseBuffer = []; - - /** - * Constructs a stream. - */ - public function __construct() - { - // empty for now - } - - /** - * Writes PCM audio data. - * - * @param string $pcm PCM audio data. - */ - public function writePCM(string $pcm): void - { - if ($this->isClosed) { - return; - } - - if ($this->isPaused) { - $this->pcmPauseBuffer[] = $pcm; - - return; - } - - $this->pcmData .= $pcm; - - $this->emit('pcm', [$pcm]); - } - - /** - * Writes Opus audio data. - * - * @param string $opus Opus audio data. - */ - public function writeOpus(string $opus): void - { - if ($this->isClosed) { - return; - } - - if ($this->isPaused) { - $this->opusPauseBuffer[] = $opus; - - return; - } - - $this->opusData .= $opus; - - $this->emit('opus', [$opus]); - } - - /** - * {@inheritDoc} - */ - public function isReadable() - { - return $this->isPaused; - } - - /** - * {@inheritDoc} - */ - public function isWritable() - { - return $this->isPaused; - } - - /** - * {@inheritDoc} - */ - public function write($data) - { - $this->writePCM($data); - } - - /** - * {@inheritDoc} - */ - public function end($data = null) - { - if ($this->isClosed) { - return; - } - - $this->write($data); - $this->close(); - } - - /** - * {@inheritDoc} - */ - public function close() - { - if ($this->isClosed) { - return; - } - - $this->pause(); - $this->emit('end', []); - $this->emit('close', []); - $this->isClosed = true; - } - - /** - * {@inheritDoc} - */ - public function pause() - { - if ($this->isClosed) { - return; - } - - if ($this->isPaused) { - return; - } - - $this->isPaused = true; - } - - /** - * {@inheritDoc} - */ - public function resume() - { - if ($this->isClosed) { - return; - } - - if (! $this->isPaused) { - return; - } - - $this->isPaused = false; - - foreach ($this->pcmPauseBuffer as $data) { - $this->writePCM($data); - } - - foreach ($this->opusPauseBuffer as $data) { - $this->writeOpus($data); - } - } - - /** - * {@inheritDoc} - */ - public function pipe(WritableStreamInterface $dest, array $options = []) - { - $this->pipePCM($dest, $options); - } - - /** - * Pipes PCM to a destination stream. - * - * @param WritableStreamInterface $dest The stream to pipe to. - * @param array $options An array of options. - */ - public function pipePCM(WritableStreamInterface $dest, array $options = []): void - { - if ($this->isClosed) { - return; - } - - $this->on('pcm', function ($data) use ($dest) { - $feedmore = $dest->write($data); - - if (false === $feedmore) { - $this->pause(); - } - }); - - $dest->on('drain', function () { - $this->resume(); - }); - - $end = isset($options['end']) ? $options['end'] : true; - if ($end && $this !== $dest) { - $this->on('end', function () use ($dest) { - $dest->end(); - }); - } - } - - /** - * Pipes Opus to a destination stream. - * - * @param WritableStreamInterface $dest The stream to pipe to. - * @param array $options An array of options. - */ - public function pipeOpus(WritableStreamInterface $dest, array $options = []): void - { - if ($this->isClosed) { - return; - } - - $this->on('opus', function ($data) use ($dest) { - $feedmore = $dest->write($data); - - if (false === $feedmore) { - $this->pause(); - } - }); - - $dest->on('drain', function () { - $this->resume(); - }); - - $end = isset($options['end']) ? $options['end'] : true; - if ($end && $this !== $dest) { - $this->on('end', function () use ($dest) { - $dest->end(); - }); - } - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Voice/VoiceClient.php b/vendor/team-reflex/discord-php/src/Discord/Voice/VoiceClient.php deleted file mode 100644 index 398c30d..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Voice/VoiceClient.php +++ /dev/null @@ -1,1774 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Voice; - -use Discord\Exceptions\FFmpegNotFoundException; -use Discord\Exceptions\FileNotFoundException; -use Discord\Exceptions\LibSodiumNotFoundException; -use Discord\Exceptions\OutdatedDCAException; -use Discord\Helpers\Buffer as RealBuffer; -use Discord\Helpers\Collection; -use Discord\Parts\Channel\Channel; -use Discord\WebSockets\Op; -use Evenement\EventEmitter; -use Ratchet\Client\Connector as WsFactory; -use Ratchet\Client\WebSocket; -use React\Datagram\Factory as DatagramFactory; -use React\Datagram\Socket; -use React\Dns\Resolver\Factory as DNSFactory; -use React\EventLoop\LoopInterface; -use Psr\Log\LoggerInterface; -use React\ChildProcess\Process; -use React\Promise\Deferred; -use React\Promise\PromiseInterface; -use React\Stream\ReadableResourceStream as Stream; -use React\EventLoop\TimerInterface; -use React\Stream\ReadableResourceStream; -use React\Stream\ReadableStreamInterface; - -/** - * The Discord voice client. - * - * @since 3.2.0 - */ -class VoiceClient extends EventEmitter -{ - /** - * The DCA version the client is using. - * - * @var string The DCA version. - */ - public const DCA_VERSION = 'DCA1'; - - /** - * The Opus Silence Frame. - * - * @var string The silence frame. - */ - public const SILENCE_FRAME = "\xF8\xFF\xFE"; - - /** - * Is the voice client ready? - * - * @var bool Whether the voice client is ready. - */ - protected $ready = false; - - /** - * The DCA binary name that we will use. - * - * @var string The DCA binary name that will be run. - */ - protected $dca; - - /** - * The FFmpeg binary location. - * - * @var string - */ - protected $ffmpeg; - - /** - * The ReactPHP event loop. - * - * @var LoopInterface The ReactPHP event loop that will run everything. - */ - protected $loop; - - /** - * The main WebSocket instance. - * - * @var WebSocket The main WebSocket client. - */ - protected $mainWebsocket; - - /** - * The voice WebSocket instance. - * - * @var WebSocket The voice WebSocket client. - */ - protected $voiceWebsocket; - - /** - * The UDP client. - * - * @var Socket The voiceUDP client. - */ - public $client; - - /** - * The Channel that we are connecting to. - * - * @var Channel The channel that we are going to connect to. - */ - protected $channel; - - /** - * Data from the main WebSocket. - * - * @var array Information required for the voice WebSocket. - */ - protected $data; - - /** - * The Voice WebSocket endpoint. - * - * @var string The endpoint the Voice WebSocket and UDP client will connect to. - */ - protected $endpoint; - - /** - * The port the UDP client will use. - * - * @var int The port that the UDP client will connect to. - */ - protected $udpPort; - - /** - * The UDP heartbeat interval. - * - * @var int How often we send a heartbeat packet. - */ - protected $heartbeat_interval; - - /** - * The Voice WebSocket heartbeat timer. - * - * @var TimerInterface The heartbeat periodic timer. - */ - protected $heartbeat; - - /** - * The UDP heartbeat timer. - * - * @var TimerInterface The heartbeat periodic timer. - */ - protected $udpHeartbeat; - - /** - * The UDP heartbeat sequence. - * - * @var int The heartbeat sequence. - */ - protected $heartbeatSeq = 0; - - /** - * The SSRC value. - * - * @var int The SSRC value used for RTP. - */ - public $ssrc; - - /** - * The sequence of audio packets being sent. - * - * @var int The sequence of audio packets. - */ - protected $seq = 0; - - /** - * The timestamp of the last packet. - * - * @var int The timestamp the last packet was constructed. - */ - protected $timestamp = 0; - - /** - * The Voice WebSocket mode. - * - * @var string The voice mode. - */ - protected $mode = 'xsalsa20_poly1305'; - - /** - * The secret key used for encrypting voice. - * - * @var string The secret key. - */ - protected $secret_key; - - /** - * Are we currently set as speaking? - * - * @var bool Whether we are speaking or not. - */ - protected $speaking = false; - - /** - * Whether we are set as mute. - * - * @var bool Whether we are set as mute. - */ - protected $mute = false; - - /** - * Whether we are set as deaf. - * - * @var bool Whether we are set as deaf. - */ - protected $deaf = false; - - /** - * Whether the voice client is currently paused. - * - * @var bool Whether the voice client is currently paused. - */ - protected $paused = false; - - /** - * Have we sent the login frame yet? - * - * @var bool Whether we have sent the login frame. - */ - protected $sentLoginFrame = false; - - /** - * The time we started sending packets. - * - * @var int The time we started sending packets. - */ - protected $startTime; - - /** - * The stream time of the last packet. - * - * @var int The time we sent the last packet. - */ - protected $streamTime = 0; - - /** - * The size of audio frames, in milliseconds. - * - * @var int The size of audio frames. - */ - protected $frameSize = 20; - - /** - * Collection of the status of people speaking. - * - * @var Collection Status of people speaking. - */ - protected $speakingStatus; - - /** - * Collection of voice decoders. - * - * @var Collection Voice decoders. - */ - protected $voiceDecoders; - - /** - * Voice audio recieve streams. - * - * @var array Voice audio recieve streams. - */ - protected $recieveStreams; - - /** - * The volume the audio will be encoded with. - * - * @var int The volume that the audio will be encoded in. - */ - protected $volume = 100; - - /** - * The audio application to encode with. - * - * Available: voip, audio (default), lowdelay - * - * @var string The audio application. - */ - protected $audioApplication = 'audio'; - - /** - * The bitrate to encode with. - * - * @var int Encoding bitrate. - */ - protected $bitrate = 128000; - - /** - * Is the voice client reconnecting? - * - * @var bool Whether the voice client is reconnecting. - */ - protected $reconnecting = false; - - /** - * Is the voice client being closed by user? - * - * @var bool Whether the voice client is being closed by user. - */ - protected $userClose = false; - - /** - * The logger. - * - * @var LoggerInterface Logger. - */ - protected $logger; - - /** - * The Discord voice gateway version. - * - * @var int Voice version. - */ - protected $version = 4; - - /** - * The Config for DNS Resolver. - * - * @var string|\React\Dns\Config\Config - */ - protected $dnsConfig; - - /** - * Silence Frame Remain Count. - * - * @var int Amount of silence frames remaining. - */ - protected $silenceRemaining = 5; - - /** - * readopus Timer. - * - * @var TimerInterface Timer - */ - protected $readOpusTimer; - - /** - * Audio Buffer. - * - * @var RealBuffer The Audio Buffer - */ - protected $buffer; - - /** - * Constructs the Voice Client instance. - * - * @param WebSocket $websocket The main WebSocket client. - * @param LoopInterface $loop The ReactPHP event loop. - * @param Channel $channel The channel we are connecting to. - * @param LoggerInterface $logger The logger. - * @param array $data More information related to the voice client. - */ - public function __construct(WebSocket $websocket, LoopInterface $loop, Channel $channel, LoggerInterface $logger, array $data) - { - $this->loop = $loop; - $this->mainWebsocket = $websocket; - $this->channel = $channel; - $this->logger = $logger; - $this->data = $data; - $this->deaf = $data['deaf']; - $this->mute = $data['mute']; - $this->endpoint = str_replace([':80', ':443'], '', $data['endpoint']); - $this->speakingStatus = new Collection([], 'ssrc'); - $this->dnsConfig = $data['dnsConfig']; - } - - /** - * Starts the voice client. - * - * @return void|bool - */ - public function start() - { - if ( - ! $this->checkForFFmpeg() || - ! $this->checkForLibsodium() - ) { - return false; - } - - $this->initSockets(); - } - - /** - * Initilizes the WebSocket and UDP socket. - */ - public function initSockets(): void - { - $wsfac = new WsFactory($this->loop); - /** @var PromiseInterface */ - $promise = $wsfac("wss://{$this->endpoint}?v={$this->version}"); - - $promise->then([$this, 'handleWebSocketConnection'], [$this, 'handleWebSocketError']); - } - - /** - * Handles a WebSocket connection. - * - * @param WebSocket $ws The WebSocket instance. - */ - public function handleWebSocketConnection(WebSocket $ws): void - { - $this->logger->debug('connected to voice websocket'); - - $resolver = (new DNSFactory())->createCached($this->dnsConfig, $this->loop); - $udpfac = new DatagramFactory($this->loop, $resolver); - - $this->voiceWebsocket = $ws; - - $firstPack = true; - $ip = $port = ''; - - $discoverUdp = function ($message) use (&$ws, &$discoverUdp, $udpfac, &$firstPack, &$ip, &$port) { - $data = json_decode($message->getPayload()); - - if ($data->op == Op::VOICE_READY) { - $ws->removeListener('message', $discoverUdp); - - $this->udpPort = $data->d->port; - $this->ssrc = $data->d->ssrc; - - $this->logger->debug('received voice ready packet', ['data' => json_decode(json_encode($data->d), true)]); - - $buffer = new Buffer(74); - $buffer[1] = "\x01"; - $buffer[3] = "\x46"; - $buffer->writeUInt32BE($this->ssrc, 4); - /** @var PromiseInterface */ - $promise = $udpfac->createClient("{$data->d->ip}:{$this->udpPort}"); - - $promise->then(function (Socket $client) use (&$ws, &$firstPack, &$ip, &$port, $buffer) { - $this->logger->debug('connected to voice UDP'); - $this->client = $client; - - $this->loop->addTimer(0.1, function () use (&$client, $buffer) { - $client->send((string) $buffer); - }); - - $this->udpHeartbeat = $this->loop->addPeriodicTimer(5, function () use ($client) { - $buffer = new Buffer(9); - $buffer[0] = "\xC9"; - $buffer->writeUInt64LE($this->heartbeatSeq, 1); - ++$this->heartbeatSeq; - - $client->send((string) $buffer); - $this->emit('udp-heartbeat', []); - }); - - $client->on('error', function ($e) { - $this->emit('udp-error', [$e]); - }); - - $decodeUDP = function ($message) use (&$decodeUDP, $client, &$ip, &$port) { - $message = (string) $message; - // let's get our IP - $ip_start = 8; - $ip = substr($message, $ip_start); - $ip_end = strpos($ip, "\x00"); - $ip = substr($ip, 0, $ip_end); - - // now the port! - $port = substr($message, strlen($message) - 2); - $port = unpack('v', $port)[1]; - - $this->logger->debug('received our IP and port', ['ip' => $ip, 'port' => $port]); - - $payload = [ - 'op' => Op::VOICE_SELECT_PROTO, - 'd' => [ - 'protocol' => 'udp', - 'data' => [ - 'address' => $ip, - 'port' => (int) $port, - 'mode' => $this->mode, - ], - ], - ]; - - $this->send($payload); - - $client->removeListener('message', $decodeUDP); - - if (! $this->deaf) { - $client->on('message', [$this, 'handleAudioData']); - } - }; - - $client->on('message', $decodeUDP); - }, function ($e) { - $this->logger->error('error while connecting to udp', ['e' => $e->getMessage()]); - $this->emit('error', [$e]); - }); - } - }; - - $ws->on('message', $discoverUdp); - $ws->on('message', function ($message) { - $data = json_decode($message->getPayload()); - - $this->emit('ws-message', [$message, $this]); - - switch ($data->op) { - case Op::VOICE_HEARTBEAT_ACK: // keepalive response - $end = microtime(true); - $start = $data->d; - $diff = ($end - $start) * 1000; - - $this->logger->debug('received heartbeat ack', ['response_time' => $diff]); - $this->emit('ws-ping', [$diff]); - $this->emit('ws-heartbeat-ack', [$data->d]); - break; - case Op::VOICE_DESCRIPTION: // ready - $this->ready = true; - $this->mode = $data->d->mode; - $this->secret_key = ''; - - foreach ($data->d->secret_key as $part) { - $this->secret_key .= pack('C*', $part); - } - - $this->logger->debug('received description packet, vc ready', ['data' => json_decode(json_encode($data->d), true)]); - - if (! $this->reconnecting) { - $this->emit('ready', [$this]); - } else { - $this->reconnecting = false; - $this->emit('resumed', [$this]); - } - - break; - case Op::VOICE_SPEAKING: // user started speaking - $this->emit('speaking', [$data->d->speaking, $data->d->user_id, $this]); - $this->emit("speaking.{$data->d->user_id}", [$data->d->speaking, $this]); - $this->speakingStatus[$data->d->ssrc] = $data->d; - break; - case Op::VOICE_HELLO: - $this->heartbeat_interval = $data->d->heartbeat_interval; - - $sendHeartbeat = function () { - $this->send([ - 'op' => Op::VOICE_HEARTBEAT, - 'd' => (int) microtime(true), - ]); - $this->logger->debug('sending heartbeat'); - $this->emit('ws-heartbeat', []); - }; - - $sendHeartbeat(); - $this->heartbeat = $this->loop->addPeriodicTimer($this->heartbeat_interval / 1000, $sendHeartbeat); - break; - case Op::VOICE_DAVE_PREPARE_TRANSITION: - $this->handleDavePrepareTransition($data); - break; - case Op::VOICE_DAVE_EXECUTE_TRANSITION: - $this->handleDaveExecuteTransition($data); - break; - case Op::VOICE_DAVE_TRANSITION_READY: - $this->handleDaveTransitionReady($data); - break; - case Op::VOICE_DAVE_PREPARE_EPOCH: - $this->handleDavePrepareEpoch($data); - break; - case Op::VOICE_DAVE_MLS_EXTERNAL_SENDER: - $this->handleDaveMlsExternalSender($data); - break; - case Op::VOICE_DAVE_MLS_KEY_PACKAGE: - $this->handleDaveMlsKeyPackage($data); - break; - case Op::VOICE_DAVE_MLS_PROPOSALS: - $this->handleDaveMlsProposals($data); - break; - case Op::VOICE_DAVE_MLS_COMMIT_WELCOME: - $this->handleDaveMlsCommitWelcome($data); - break; - case Op::VOICE_DAVE_MLS_ANNOUNCE_COMMIT_TRANSITION: - $this->handleDaveMlsAnnounceCommitTransition($data); - break; - case Op::VOICE_DAVE_MLS_WELCOME: - $this->handleDaveMlsWelcome($data); - break; - case Op::VOICE_DAVE_MLS_INVALID_COMMIT_WELCOME: - $this->handleDaveMlsInvalidCommitWelcome($data); - break; - } - }); - - $ws->on('error', function ($e) { - $this->logger->error('error with voice websocket', ['e' => $e->getMessage()]); - $this->emit('ws-error', [$e]); - }); - - $ws->on('close', [$this, 'handleWebSocketClose']); - - if (! $this->sentLoginFrame) { - $payload = [ - 'op' => Op::VOICE_IDENTIFY, - 'd' => [ - 'server_id' => $this->channel->guild_id, - 'user_id' => $this->data['user_id'], - 'session_id' => $this->data['session'], - 'token' => $this->data['token'], - ], - ]; - - $this->logger->debug('sending identify', ['packet' => $payload]); - - $this->send($payload); - $this->sentLoginFrame = true; - } - } - - /** - * Handles a WebSocket error. - * - * @param \Exception $e The error. - */ - public function handleWebSocketError(\Exception $e): void - { - $this->logger->error('error with voice websocket', ['e' => $e->getMessage()]); - $this->emit('error', [$e]); - } - - /** - * Handles a WebSocket close. - * - * @param int $op - * @param string $reason - */ - public function handleWebSocketClose(int $op, string $reason): void - { - $this->logger->warning('voice websocket closed', ['op' => $op, 'reason' => $reason]); - $this->emit('ws-close', [$op, $reason, $this]); - - // Cancel heartbeat timers - if (null !== $this->heartbeat) { - $this->loop->cancelTimer($this->heartbeat); - $this->heartbeat = null; - } - - if (null !== $this->udpHeartbeat) { - $this->loop->cancelTimer($this->udpHeartbeat); - $this->udpHeartbeat = null; - } - - // Close UDP socket. - if ($this->client) { - $this->client->close(); - } - - // Don't reconnect on a critical opcode or if closed by user. - if (in_array($op, Op::getCriticalVoiceCloseCodes()) || $this->userClose) { - $this->logger->warning('received critical opcode - not reconnecting', ['op' => $op, 'reason' => $reason]); - $this->emit('close'); - } else { - $this->logger->warning('reconnecting in 2 seconds'); - - // Retry connect after 2 seconds - $this->loop->addTimer(2, function () { - $this->reconnecting = true; - $this->sentLoginFrame = false; - - $this->initSockets(); - }); - } - } - - /** - * Handles a voice server change. - * - * @param array $data New voice server information. - */ - public function handleVoiceServerChange(array $data = []): void - { - $this->logger->debug('voice server has changed, dynamically changing servers in the background', ['data' => $data]); - $this->reconnecting = true; - $this->sentLoginFrame = false; - $this->pause(); - - $this->client->close(); - $this->voiceWebsocket->close(); - - $this->loop->cancelTimer($this->heartbeat); - $this->loop->cancelTimer($this->udpHeartbeat); - - $this->data['token'] = $data['token']; // set the token if it changed - $this->endpoint = str_replace([':80', ':443'], '', $data['endpoint']); - - $this->initSockets(); - - $this->on('resumed', function () { - $this->logger->debug('voice client resumed'); - $this->unpause(); - $this->speaking = false; - $this->setSpeaking(true); - }); - } - - /** - * Plays a file/url on the voice stream. - * - * @param string $file The file/url to play. - * @param int $channels Deprecated, Discord only supports 2 channels. - * - * @throws FileNotFoundException - * @throws \RuntimeException - * - * @return PromiseInterface - */ - public function playFile(string $file, int $channels = 2): PromiseInterface - { - $deferred = new Deferred(); - - if (filter_var($file, FILTER_VALIDATE_URL) === false && ! file_exists($file)) { - $deferred->reject(new FileNotFoundException("Could not find the file \"{$file}\".")); - - return $deferred->promise(); - } - - if (! $this->ready) { - $deferred->reject(new \RuntimeException('Voice Client is not ready.')); - - return $deferred->promise(); - } - - if ($this->speaking) { - $deferred->reject(new \RuntimeException('Audio already playing.')); - - return $deferred->promise(); - } - - $process = $this->ffmpegEncode($file); - $process->start($this->loop); - - return $this->playOggStream($process); - } - - /** - * Plays a raw PCM16 stream. - * - * @param resource|Stream $stream The stream to be encoded and sent. - * @param int $channels How many audio channels the PCM16 was encoded with. - * @param int $audioRate Audio sampling rate the PCM16 was encoded with. - * - * @throws \RuntimeException - * @throws \InvalidArgumentException Thrown when the stream passed to playRawStream is not a valid resource. - * - * @return PromiseInterface - */ - public function playRawStream($stream, int $channels = 2, int $audioRate = 48000): PromiseInterface - { - $deferred = new Deferred(); - - if (! $this->ready) { - $deferred->reject(new \RuntimeException('Voice Client is not ready.')); - - return $deferred->promise(); - } - - if ($this->speaking) { - $deferred->reject(new \RuntimeException('Audio already playing.')); - - return $deferred->promise(); - } - - if (! is_resource($stream) && ! $stream instanceof Stream) { - $deferred->reject(new \InvalidArgumentException('The stream passed to playRawStream was not an instance of resource or ReactPHP Stream.')); - - return $deferred->promise(); - } - - if (is_resource($stream)) { - $stream = new Stream($stream, $this->loop); - } - - $process = $this->ffmpegEncode(preArgs: [ - '-f', 's16le', - '-ac', $channels, - '-ar', $audioRate, - ]); - $process->start($this->loop); - $stream->pipe($process->stdin); - - return $this->playOggStream($process); - } - - /** - * Plays an Ogg Opus stream. - * - * @param resource|Process|Stream $stream The Ogg Opus stream to be sent. - * - * @throws \RuntimeException - * @throws \InvalidArgumentException - * - * @return PromiseInterface - */ - public function playOggStream($stream): PromiseInterface - { - $deferred = new Deferred(); - - if (! $this->isReady()) { - $deferred->reject(new \RuntimeException('Voice client is not ready yet.')); - - return $deferred->promise(); - } - - if ($this->speaking) { - $deferred->reject(new \RuntimeException('Audio already playing.')); - - return $deferred->promise(); - } - - if ($stream instanceof Process) { - $stream->stderr->on('data', function ($d) { - if (empty($d)) { - return; - } - - $this->emit('stderr', [$d, $this]); - }); - - $stream = $stream->stdout; - } - - if (is_resource($stream)) { - $stream = new ReadableResourceStream($stream, $this->loop); - } - - if (! ($stream instanceof ReadableStreamInterface)) { - $deferred->reject(new \InvalidArgumentException('The stream passed to playOggStream was not an instance of resource, ReactPHP Process, ReactPHP Readable Stream')); - - return $deferred->promise(); - } - - $this->buffer = new RealBuffer($this->loop); - $stream->on('data', function ($d) { - $this->buffer->write($d); - }); - - /** @var OggStream */ - $ogg = null; - - $loops = 0; - - $readOpus = function () use ($deferred, &$ogg, &$readOpus, &$loops) { - $this->readOpusTimer = null; - - $loops += 1; - - // If the client is paused, delay by frame size and check again. - if ($this->paused) { - $this->insertSilence(); - $this->readOpusTimer = $this->loop->addTimer($this->frameSize / 1000, $readOpus); - - return; - } - - $ogg->getPacket()->then(function ($packet) use (&$readOpus, &$loops, $deferred) { - // EOF for Ogg stream. - if (null === $packet) { - $this->reset(); - $deferred->resolve(null); - - return; - } - - // increment sequence - // uint16 overflow protection - if (++$this->seq >= 2 ** 16) { - $this->seq = 0; - } - - $this->sendBuffer($packet); - - // increment timestamp - // uint32 overflow protection - if (($this->timestamp += ($this->frameSize * 48)) >= 2 ** 32) { - $this->timestamp = 0; - } - - $nextTime = $this->startTime + (20.0 / 1000.0) * $loops; - $delay = $nextTime - microtime(true); - - $this->readOpusTimer = $this->loop->addTimer($delay, $readOpus); - }, function ($e) use ($deferred) { - $this->reset(); - $deferred->resolve(null); - }); - }; - - $this->setSpeaking(true); - - OggStream::fromBuffer($this->buffer)->then(function (OggStream $os) use ($readOpus, &$ogg) { - $ogg = $os; - $this->startTime = microtime(true) + 0.5; - $this->readOpusTimer = $this->loop->addTimer(0.5, $readOpus); - }); - - return $deferred->promise(); - } - - /** - * Plays a DCA stream. - * - * @param resource|Process|Stream $stream The DCA stream to be sent. - * - * @return PromiseInterface - * @throws \Exception - * - * @deprecated 10.0.0 DCA is now deprecated in DiscordPHP, switch to using - * `playOggStream` with raw Ogg Opus. - */ - public function playDCAStream($stream): PromiseInterface - { - $deferred = new Deferred(); - - if (! $this->isReady()) { - $deferred->reject(new \Exception('Voice client is not ready yet.')); - - return $deferred->promise(); - } - - if ($this->speaking) { - $deferred->reject(new \Exception('Audio already playing.')); - - return $deferred->promise(); - } - - if ($stream instanceof Process) { - $stream->stderr->on('data', function ($d) { - if (empty($d)) { - return; - } - - $this->emit('stderr', [$d, $this]); - }); - - $stream = $stream->stdout; - } - - if (is_resource($stream)) { - $stream = new ReadableResourceStream($stream, $this->loop); - } - - if (! ($stream instanceof ReadableStreamInterface)) { - $deferred->reject(new \Exception('The stream passed to playDCAStream was not an instance of resource, ReactPHP Process, ReactPHP Readable Stream')); - - return $deferred->promise(); - } - - $this->buffer = new RealBuffer($this->loop); - $stream->on('data', function ($d) { - $this->buffer->write($d); - }); - - $readOpus = function () use ($deferred, &$readOpus) { - $this->readOpusTimer = null; - - // If the client is paused, delay by frame size and check again. - if ($this->paused) { - $this->insertSilence(); - $this->readOpusTimer = $this->loop->addTimer($this->frameSize / 1000, $readOpus); - - return; - } - - // Read opus length - $this->buffer->readInt16(1000)->then(function ($opusLength) { - // Read opus data - return $this->buffer->read($opusLength, null, 1000); - })->then(function ($opus) use (&$readOpus) { - $this->sendBuffer($opus); - - // increment sequence - // uint16 overflow protection - if (++$this->seq >= 2 ** 16) { - $this->seq = 0; - } - - // increment timestamp - // uint32 overflow protection - if (($this->timestamp += ($this->frameSize * 48)) >= 2 ** 32) { - $this->timestamp = 0; - } - - $this->readOpusTimer = $this->loop->addTimer(($this->frameSize - 1) / 1000, $readOpus); - }, function () use ($deferred) { - $this->reset(); - $deferred->resolve(null); - }); - }; - - $this->setSpeaking(true); - - // Read magic byte header - $this->buffer->read(4)->then(function ($mb) { - if ($mb !== self::DCA_VERSION) { - throw new OutdatedDCAException('The DCA magic byte header was not correct.'); - } - - // Read JSON length - return $this->buffer->readInt32(); - })->then(function ($jsonLength) { - // Read JSON content - return $this->buffer->read($jsonLength); - })->then(function ($metadata) use ($readOpus) { - $metadata = json_decode($metadata, true); - - if (null !== $metadata) { - $this->frameSize = $metadata['opus']['frame_size'] / 48; - } - - $this->startTime = microtime(true) + 0.5; - $this->readOpusTimer = $this->loop->addTimer(0.5, $readOpus); - }); - - return $deferred->promise(); - } - - /** - * Resets the voice client. - */ - private function reset(): void - { - if ($this->readOpusTimer) { - $this->loop->cancelTimer($this->readOpusTimer); - $this->readOpusTimer = null; - } - - $this->setSpeaking(false); - $this->streamTime = 0; - $this->startTime = 0; - $this->paused = false; - $this->silenceRemaining = 5; - } - - /** - * Sends a buffer to the UDP socket. - * - * @param string $data The data to send to the UDP server. - */ - private function sendBuffer(string $data): void - { - if (! $this->ready) { - return; - } - - $packet = new VoicePacket($data, $this->ssrc, $this->seq, $this->timestamp, true, $this->secret_key); - $this->client->send((string) $packet); - - $this->streamTime = microtime(true); - - $this->emit('packet-sent', [$packet]); - } - - /** - * Sets the speaking value of the client. - * - * @param bool $speaking Whether the client is speaking or not. - * - * @throws \RuntimeException - */ - public function setSpeaking(bool $speaking = true): void - { - if ($this->speaking == $speaking) { - return; - } - - if (! $this->ready) { - throw new \RuntimeException('Voice Client is not ready.'); - } - - $this->send([ - 'op' => Op::VOICE_SPEAKING, - 'd' => [ - 'speaking' => $speaking, - 'delay' => 0, - ], - ]); - - $this->speaking = $speaking; - } - - /** - * Switches voice channels. - * - * @param Channel $channel The channel to switch to. - * - * @throws \InvalidArgumentException - */ - public function switchChannel(Channel $channel): void - { - if (! $channel->isVoiceBased()) { - throw new \InvalidArgumentException("Channel must be a voice channel to be able to switch, given type {$channel->type}."); - } - - $this->mainSend([ - 'op' => Op::OP_VOICE_STATE_UPDATE, - 'd' => [ - 'guild_id' => $channel->guild_id, - 'channel_id' => $channel->id, - 'self_mute' => $this->mute, - 'self_deaf' => $this->deaf, - ], - ]); - - $this->channel = $channel; - } - - /** - * Sets the bitrate. - * - * @param int $bitrate The bitrate to set. - * - * @throws \DomainException - * @throws \RuntimeException - */ - public function setBitrate(int $bitrate): void - { - if ($bitrate < 8000 || $bitrate > 384000) { - throw new \DomainException("{$bitrate} is not a valid option. The bitrate must be between 8,000 bps and 384,000 bps."); - } - - if ($this->speaking) { - throw new \RuntimeException('Cannot change bitrate while playing.'); - } - - $this->bitrate = $bitrate; - } - - /** - * Sets the volume. - * - * @param int $volume The volume to set. - * - * @throws \DomainException - * @throws \RuntimeException - */ - public function setVolume(int $volume): void - { - if ($volume < 0 || $volume > 100) { - throw new \DomainException("{$volume}% is not a valid option. The bitrate must be between 0% and 100%."); - } - - if ($this->speaking) { - throw new \RuntimeException('Cannot change volume while playing.'); - } - - $this->volume = $volume; - } - - /** - * Sets the audio application. - * - * @param string $app The audio application to set. - * - * @throws \DomainException - * @throws \RuntimeException - */ - public function setAudioApplication(string $app): void - { - $legal = ['voip', 'audio', 'lowdelay']; - - if (! in_array($app, $legal)) { - throw new \DomainException("{$app} is not a valid option. Valid options are: ".implode(', ', $legal)); - } - - if ($this->speaking) { - throw new \RuntimeException('Cannot change audio application while playing.'); - } - - $this->audioApplication = $app; - } - - /** - * Sends a message to the voice websocket. - * - * @param array $data The data to send to the voice WebSocket. - */ - private function send(array $data): void - { - $json = json_encode($data); - $this->voiceWebsocket->send($json); - } - - /** - * Sends a message to the main websocket. - * - * @param array $data The data to send to the main WebSocket. - */ - private function mainSend(array $data): void - { - $json = json_encode($data); - $this->mainWebsocket->send($json); - } - - /** - * Changes your mute and deaf value. - * - * @param bool $mute Whether you should be muted. - * @param bool $deaf Whether you should be deaf. - * - * @throws \RuntimeException - */ - public function setMuteDeaf(bool $mute, bool $deaf): void - { - if (! $this->ready) { - throw new \RuntimeException('The voice client must be ready before you can set mute or deaf.'); - } - - $this->mute = $mute; - $this->deaf = $deaf; - - $this->mainSend([ - 'op' => Op::OP_VOICE_STATE_UPDATE, - 'd' => [ - 'guild_id' => $this->channel->guild_id, - 'channel_id' => $this->channel->id, - 'self_mute' => $mute, - 'self_deaf' => $deaf, - ], - ]); - - $this->client->removeListener('message', [$this, 'handleAudioData']); - - if (! $deaf) { - $this->client->on('message', [$this, 'handleAudioData']); - } - } - - /** - * Pauses the current sound. - * - * @throws \RuntimeException - */ - public function pause(): void - { - if (! $this->speaking) { - throw new \RuntimeException('Audio must be playing to pause it.'); - } - - if ($this->paused) { - throw new \RuntimeException('Audio is already paused.'); - } - - $this->paused = true; - $this->silenceRemaining = 5; - } - - /** - * Unpauses the current sound. - * - * @throws \RuntimeException - */ - public function unpause(): void - { - if (! $this->speaking) { - throw new \RuntimeException('Audio must be playing to unpause it.'); - } - - if (! $this->paused) { - throw new \RuntimeException('Audio is already playing.'); - } - - $this->paused = false; - $this->timestamp = microtime(true) * 1000; - } - - /** - * Stops the current sound. - * - * @throws \RuntimeException - */ - public function stop(): void - { - if (! $this->speaking) { - throw new \RuntimeException('Audio must be playing to stop it.'); - } - - $this->buffer->end(); - $this->insertSilence(); - $this->reset(); - } - - /** - * Closes the voice client. - * - * @throws \RuntimeException - */ - public function close(): void - { - if (! $this->ready) { - throw new \RuntimeException('Voice Client is not connected.'); - } - - if ($this->speaking) { - $this->stop(); - $this->setSpeaking(false); - } - - $this->ready = false; - - $this->mainSend([ - 'op' => Op::OP_VOICE_STATE_UPDATE, - 'd' => [ - 'guild_id' => $this->channel->guild_id, - 'channel_id' => null, - 'self_mute' => true, - 'self_deaf' => true, - ], - ]); - - $this->userClose = true; - $this->client->close(); - $this->voiceWebsocket->close(); - - $this->heartbeat_interval = null; - - if (null !== $this->heartbeat) { - $this->loop->cancelTimer($this->heartbeat); - $this->heartbeat = null; - } - - if (null !== $this->udpHeartbeat) { - $this->loop->cancelTimer($this->udpHeartbeat); - $this->udpHeartbeat = null; - } - - $this->seq = 0; - $this->timestamp = 0; - $this->sentLoginFrame = false; - $this->startTime = null; - $this->streamTime = 0; - $this->speakingStatus = new Collection([], 'ssrc'); - - $this->emit('close'); - } - - /** - * Checks if the user is speaking. - * - * @param string|int|null $id Either the User ID or SSRC (if null, return bots speaking status). - * - * @return bool Whether the user is speaking. - */ - public function isSpeaking($id = null): bool - { - if (! isset($id)) { - return $this->speaking; - } elseif ($user = $this->speakingStatus->get('user_id', $id)) { - return $user->speaking; - } elseif ($ssrc = $this->speakingStatus->get('ssrc', $id)) { - return $ssrc->speaking; - } - - return false; - } - - /** - * Checks if we are paused. - * - * @return bool Whether we are paused. - */ - public function isPaused(): bool - { - return $this->paused; - } - - /** - * Handles a voice state update. - * - * @param object $data The WebSocket data. - */ - public function handleVoiceStateUpdate(object $data): void - { - $removeDecoder = function ($ss) { - $decoder = $this->voiceDecoders[$ss->ssrc] ?? null; - - if (null === $decoder) { - return; // no voice decoder to remove - } - - $decoder->close(); - unset($this->voiceDecoders[$ss->ssrc]); - unset($this->speakingStatus[$ss->ssrc]); - }; - - $ss = $this->speakingStatus->get('user_id', $data->user_id); - - if (null === $ss) { - return; // not in our channel - } - - if ($data->channel_id == $this->channel->id) { - return; // ignore, just a mute/deaf change - } - - $removeDecoder($ss); - } - - /** - * Gets a recieve voice stream. - * - * @param int|string $id Either a SSRC or User ID. - * - * @return RecieveStream - */ - public function getRecieveStream($id): ?RecieveStream - { - if (isset($this->recieveStreams[$id])) { - return $this->recieveStreams[$id]; - } - - foreach ($this->speakingStatus as $status) { - if ($status->user_id == $id) { - return $this->recieveStreams[$status->ssrc]; - } - } - } - - /** - * Handles raw opus data from the UDP server. - * - * @param string $message The data from the UDP server. - */ - protected function handleAudioData(string $message): void - { - $voicePacket = VoicePacket::make($message); - $nonce = new Buffer(24); - $nonce->write($voicePacket->getHeader(), 0); - $message = \sodium_crypto_secretbox_open($voicePacket->getData(), (string) $nonce, $this->secret_key); - - if ($message === false) { - // if we can't decode the message, drop it silently. - return; - } - - $this->emit('raw', [$message, $this]); - - $vp = VoicePacket::make($voicePacket->getHeader().$message); - $ss = $this->speakingStatus->get('ssrc', $vp->getSSRC()); - $decoder = $this->voiceDecoders[$vp->getSSRC()] ?? null; - - if (null === $ss) { - // for some reason we don't have a speaking status - return; - } - - if (null === $decoder) { - // make a decoder - if (! isset($this->recieveStreams[$ss->ssrc])) { - $this->recieveStreams[$ss->ssrc] = new RecieveStream(); - - $this->recieveStreams[$ss->ssrc]->on('pcm', function ($d) { - $this->emit('channel-pcm', [$d, $this]); - }); - - $this->recieveStreams[$ss->ssrc]->on('opus', function ($d) { - $this->emit('channel-opus', [$d, $this]); - }); - } - - $createDecoder = function () use (&$createDecoder, $ss) { - $decoder = $this->dcaDecode(); - $decoder->start($this->loop); - - $decoder->stdout->on('data', function ($data) use ($ss) { - $this->recieveStreams[$ss->ssrc]->writePCM($data); - }); - $decoder->stderr->on('data', function ($data) use ($ss) { - $this->emit("voice.{$ss->ssrc}.stderr", [$data, $this]); - $this->emit("voice.{$ss->user_id}.stderr", [$data, $this]); - }); - $decoder->on('exit', function ($code, $term) use ($ss, &$createDecoder) { - if ($code > 0) { - $this->emit('decoder-error', [$code, $term, $ss]); - - $createDecoder(); - } - }); - - $this->voiceDecoders[$ss->ssrc] = $decoder; - }; - - $createDecoder(); - $decoder = $this->voiceDecoders[$vp->getSSRC()] ?? null; - } - - $buff = new Buffer(strlen($vp->getData()) + 2); - $buff->write(pack('s', strlen($vp->getData())), 0); - $buff->write($vp->getData(), 2); - - $decoder->stdin->write((string) $buff); - } - - private function handleDavePrepareTransition($data) - { - $this->logger->debug('DAVE Prepare Transition', ['data' => $data]); - // Prepare local state necessary to perform the transition - $this->send([ - 'op' => Op::VOICE_DAVE_TRANSITION_READY, - 'd' => [ - 'transition_id' => $data->d->transition_id, - ], - ]); - } - - private function handleDaveExecuteTransition($data) - { - $this->logger->debug('DAVE Execute Transition', ['data' => $data]); - // Execute the transition - // Update local state to reflect the new protocol context - } - - private function handleDaveTransitionReady($data) - { - $this->logger->debug('DAVE Transition Ready', ['data' => $data]); - // Handle transition ready state - } - - private function handleDavePrepareEpoch($data) - { - $this->logger->debug('DAVE Prepare Epoch', ['data' => $data]); - // Prepare local MLS group with parameters appropriate for the DAVE protocol version - $this->send([ - 'op' => Op::VOICE_DAVE_MLS_KEY_PACKAGE, - 'd' => [ - 'epoch_id' => $data->d->epoch_id, - 'key_package' => $this->generateKeyPackage(), - ], - ]); - } - - private function handleDaveMlsExternalSender($data) - { - $this->logger->debug('DAVE MLS External Sender', ['data' => $data]); - // Handle external sender public key and credential - } - - private function handleDaveMlsKeyPackage($data) - { - $this->logger->debug('DAVE MLS Key Package', ['data' => $data]); - // Handle MLS key package - } - - private function handleDaveMlsProposals($data) - { - $this->logger->debug('DAVE MLS Proposals', ['data' => $data]); - // Handle MLS proposals - $this->send([ - 'op' => Op::VOICE_DAVE_MLS_COMMIT_WELCOME, - 'd' => [ - 'commit' => $this->generateCommit(), - 'welcome' => $this->generateWelcome(), - ], - ]); - } - - private function handleDaveMlsCommitWelcome($data) - { - $this->logger->debug('DAVE MLS Commit Welcome', ['data' => $data]); - // Handle MLS commit and welcome messages - } - - private function handleDaveMlsAnnounceCommitTransition($data) - { - // Handle MLS announce commit transition - $this->logger->debug('DAVE MLS Announce Commit Transition', ['data' => $data]); - } - - private function handleDaveMlsWelcome($data) - { - // Handle MLS welcome message - $this->logger->debug('DAVE MLS Welcome', ['data' => $data]); - } - - private function handleDaveMlsInvalidCommitWelcome($data) - { - $this->logger->debug('DAVE MLS Invalid Commit Welcome', ['data' => $data]); - // Handle invalid commit or welcome message - // Reset local group state and generate a new key package - $this->send([ - 'op' => Op::VOICE_DAVE_MLS_KEY_PACKAGE, - 'd' => [ - 'key_package' => $this->generateKeyPackage(), - ], - ]); - } - - private function generateKeyPackage() - { - // Generate and return a new MLS key package - } - - private function generateCommit() - { - // Generate and return an MLS commit message - } - - private function generateWelcome() - { - // Generate and return an MLS welcome message - } - - /** - * Returns whether the voice client is ready. - * - * @return bool Whether the voice client is ready. - */ - public function isReady(): bool - { - return $this->ready; - } - - /** - * Checks if FFmpeg is installed. - * - * @return bool Whether FFmpeg is installed or not. - */ - private function checkForFFmpeg(): bool - { - $binaries = [ - 'ffmpeg', - ]; - - foreach ($binaries as $binary) { - $output = $this->checkForExecutable($binary); - - if (null !== $output) { - $this->ffmpeg = $output; - - return true; - } - } - - $this->emit('error', [new FFmpegNotFoundException('No FFmpeg binary was found.')]); - - return false; - } - - /** - * Checks if libsodium-php is installed. - * - * @return bool - */ - private function checkForLibsodium(): bool - { - if (! function_exists('sodium_crypto_secretbox')) { - $this->emit('error', [new LibSodiumNotFoundException('libsodium-php could not be found.')]); - - return false; - } - - return true; - } - - /** - * Checks if an executable exists on the system. - * - * @param string $executable - * @return string|null - */ - private static function checkForExecutable(string $executable): ?string - { - $which = strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' ? 'where' : 'command -v'; - $executable = rtrim((string) explode(PHP_EOL, shell_exec("{$which} {$executable}"))[0]); - - return is_executable($executable) ? $executable : null; - } - - /** - * Creates a process that will run FFmpeg and encode `$filename` into Ogg - * Opus format. - * - * If `$filename` is null, the process will expect some sort of audio data - * to be piped in via stdin. It is highly recommended to set `$preArgs` to - * contain the format of the piped data when using a pipe as an input. You - * may also want to provide some arguments to FFmpeg via `$preArgs`, which - * will be appended to the FFmpeg command _before_ setting the input - * arguments. - * - * @param ?string $filename Path to file to be converted into Ogg Opus, or - * null for pipe via stdin. - * @param ?array $preArgs A list of arguments to be appended before the - * input filename. - * - * @return Process A ReactPHP child process. - */ - public function ffmpegEncode(?string $filename = null, ?array $preArgs = null): Process - { - $flags = [ - '-i', $filename ?? 'pipe:0', - '-map_metadata', '-1', - '-f', 'opus', - '-c:a', 'libopus', - '-ar', '48000', - '-ac', '2', - '-b:a', $this->bitrate, - '-loglevel', 'warning', - 'pipe:1', - ]; - - if (null !== $preArgs) { - $flags = array_merge($preArgs, $flags); - } - - $flags = implode(' ', $flags); - $cmd = "{$this->ffmpeg} {$flags}"; - - return new Process($cmd, null, null, [ - ['socket'], - ['socket'], - ['socket'], - ]); - } - - /** - * Decodes a file from Opus with DCA. - * - * @param int $channels How many audio channels to decode with. - * @param int|null $frameSize The Opus packet frame size. - * - * @return Process A ReactPHP Child Process - */ - public function dcaDecode(int $channels = 2, ?int $frameSize = null): Process - { - if (null === $frameSize) { - $frameSize = round($this->frameSize * 48); - } - - $flags = [ - '-ac', $channels, // Channels - '-ab', round($this->bitrate / 1000), // Bitrate - '-as', $frameSize, // Frame Size - '-mode', 'decode', // Decode mode - ]; - - $flags = implode(' ', $flags); - - return new Process("{$this->dca} {$flags}"); - } - - /** - * Returns the connected channel. - * - * @return Channel The connected channel. - */ - public function getChannel(): Channel - { - return $this->channel; - } - - /** - * Insert 5 frames of silence. - * - * @link https://discord.com/developers/docs/topics/voice-connections#voice-data-interpolation - */ - private function insertSilence(): void - { - while (--$this->silenceRemaining > 0) { - $this->sendBuffer(self::SILENCE_FRAME); - } - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/Voice/VoicePacket.php b/vendor/team-reflex/discord-php/src/Discord/Voice/VoicePacket.php deleted file mode 100644 index 9565895..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/Voice/VoicePacket.php +++ /dev/null @@ -1,235 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\Voice; - -/** - * A voice packet received from Discord. - * - * Huge thanks to Austin and Michael from JDA for the constants and audio - * packets. Check out their repo: - * https://github.com/DV8FromTheWorld/JDA - * - * @since 3.2.0 - */ -class VoicePacket -{ - public const RTP_HEADER_BYTE_LENGTH = 12; - - public const RTP_VERSION_PAD_EXTEND_INDEX = 0; - public const RTP_VERSION_PAD_EXTEND = 0x80; - - public const RTP_PAYLOAD_INDEX = 1; - public const RTP_PAYLOAD_TYPE = 0x78; - - public const SEQ_INDEX = 2; - public const TIMESTAMP_INDEX = 4; - public const SSRC_INDEX = 8; - - /** - * The voice packet buffer. - * - * @var Buffer - */ - protected $buffer; - - /** - * The client SSRC. - * - * @var int The client SSRC. - */ - protected $ssrc; - - /** - * The packet sequence. - * - * @var int The packet sequence. - */ - protected $seq; - - /** - * The packet timestamp. - * - * @var int The packet timestamp. - */ - protected $timestamp; - - /** - * Constructs the voice packet. - * - * @param string $data The Opus data to encode. - * @param int $ssrc The client SSRC value. - * @param int $seq The packet sequence. - * @param int $timestamp The packet timestamp. - * @param bool $encryption Whether the packet should be encrypted. - * @param string|null $key The encryption key. - */ - public function __construct(string $data, int $ssrc, int $seq, int $timestamp, bool $encryption = false, ?string $key = null) - { - $this->ssrc = $ssrc; - $this->seq = $seq; - $this->timestamp = $timestamp; - - if (! $encryption) { - $this->initBufferNoEncryption($data); - } else { - $this->initBufferEncryption($data, $key); - } - } - - /** - * Initilizes the buffer with no encryption. - * - * @param string $data The Opus data to encode. - */ - protected function initBufferNoEncryption(string $data): void - { - $data = (binary) $data; - $header = $this->buildHeader(); - - $buffer = new Buffer(strlen((string) $header) + strlen($data)); - $buffer->write((string) $header, 0); - $buffer->write($data, 12); - - $this->buffer = $buffer; - } - - /** - * Initilizes the buffer with encryption. - * - * @param string $data The Opus data to encode. - * @param string $key The encryption key. - */ - protected function initBufferEncryption(string $data, string $key): void - { - $data = (binary) $data; - $header = $this->buildHeader(); - $nonce = new Buffer(24); - $nonce->write((string) $header, 0); - - $data = \sodium_crypto_secretbox($data, (string) $nonce, $key); - - $this->buffer = new Buffer(strlen((string) $header) + strlen($data)); - $this->buffer->write((string) $header, 0); - $this->buffer->write($data, 12); - } - - /** - * Builds the header. - * - * @return Buffer The header. - */ - protected function buildHeader(): Buffer - { - $header = new Buffer(self::RTP_HEADER_BYTE_LENGTH); - $header[self::RTP_VERSION_PAD_EXTEND_INDEX] = pack('c', self::RTP_VERSION_PAD_EXTEND); - $header[self::RTP_PAYLOAD_INDEX] = pack('c', self::RTP_PAYLOAD_TYPE); - $header->writeShort($this->seq, self::SEQ_INDEX); - $header->writeInt($this->timestamp, self::TIMESTAMP_INDEX); - $header->writeInt($this->ssrc, self::SSRC_INDEX); - - return $header; - } - - /** - * Returns the sequence. - * - * @return int The packet sequence. - */ - public function getSequence(): int - { - return $this->seq; - } - - /** - * Returns the timestamp. - * - * @return int The packet timestamp. - */ - public function getTimestamp(): int - { - return $this->timestamp; - } - - /** - * Returns the SSRC. - * - * @return int The packet SSRC. - */ - public function getSSRC(): int - { - return $this->ssrc; - } - - /** - * Returns the header. - * - * @return string The packet header. - */ - public function getHeader(): string - { - return $this->buffer->read(0, self::RTP_HEADER_BYTE_LENGTH); - } - - /** - * Returns the data. - * - * @return string The packet data. - */ - public function getData(): string - { - return $this->buffer->read(self::RTP_HEADER_BYTE_LENGTH, strlen((string) $this->buffer) - self::RTP_HEADER_BYTE_LENGTH); - } - - /** - * Creates a voice packet from data sent from Discord. - * - * @param string $data Data from Discord. - * - * @return VoicePacket A voice packet. - */ - public static function make(string $data): VoicePacket - { - $n = new self('', 0, 0, 0); - $buff = new Buffer($data); - $n->setBuffer($buff); - - return $n; - } - - /** - * Sets the buffer. - * - * @param Buffer $buffer The buffer to set. - * - * @return $this - */ - public function setBuffer(Buffer $buffer): self - { - $this->buffer = $buffer; - - $this->seq = $this->buffer->readShort(self::SEQ_INDEX); - $this->timestamp = $this->buffer->readInt(self::TIMESTAMP_INDEX); - $this->ssrc = $this->buffer->readInt(self::SSRC_INDEX); - - return $this; - } - - /** - * Handles to string casting of object. - * - * @return string - */ - public function __toString(): string - { - return (string) $this->buffer; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Event.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Event.php deleted file mode 100644 index 9ead53b..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Event.php +++ /dev/null @@ -1,206 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets; - -use Discord\Discord; -use Discord\Factory\Factory; -use Discord\Http\Http; -use Discord\Repository\Guild\MemberRepository; -use Evenement\EventEmitterTrait; - -/** - * Contains constants for WebSocket events as well as handlers for the events. - * - * @since 2.1.3 - */ -abstract class Event -{ - use EventEmitterTrait; - - // General - /** Not to be confused with 'ready' */ - public const READY = 'READY'; - public const RESUMED = 'RESUMED'; - public const PRESENCE_UPDATE = 'PRESENCE_UPDATE'; - public const PRESENCES_REPLACE = 'PRESENCES_REPLACE'; - public const TYPING_START = 'TYPING_START'; - public const USER_SETTINGS_UPDATE = 'USER_SETTINGS_UPDATE'; - public const GUILD_MEMBERS_CHUNK = 'GUILD_MEMBERS_CHUNK'; - public const INTERACTION_CREATE = 'INTERACTION_CREATE'; - public const USER_UPDATE = 'USER_UPDATE'; - - // Guild - public const GUILD_CREATE = 'GUILD_CREATE'; - public const GUILD_DELETE = 'GUILD_DELETE'; - public const GUILD_UPDATE = 'GUILD_UPDATE'; - - public const GUILD_BAN_ADD = 'GUILD_BAN_ADD'; - public const GUILD_BAN_REMOVE = 'GUILD_BAN_REMOVE'; - - public const GUILD_EMOJIS_UPDATE = 'GUILD_EMOJIS_UPDATE'; - public const GUILD_STICKERS_UPDATE = 'GUILD_STICKERS_UPDATE'; - - public const GUILD_MEMBER_ADD = 'GUILD_MEMBER_ADD'; - public const GUILD_MEMBER_REMOVE = 'GUILD_MEMBER_REMOVE'; - public const GUILD_MEMBER_UPDATE = 'GUILD_MEMBER_UPDATE'; - - public const GUILD_ROLE_CREATE = 'GUILD_ROLE_CREATE'; - public const GUILD_ROLE_UPDATE = 'GUILD_ROLE_UPDATE'; - public const GUILD_ROLE_DELETE = 'GUILD_ROLE_DELETE'; - - public const GUILD_SCHEDULED_EVENT_CREATE = 'GUILD_SCHEDULED_EVENT_CREATE'; - public const GUILD_SCHEDULED_EVENT_UPDATE = 'GUILD_SCHEDULED_EVENT_UPDATE'; - public const GUILD_SCHEDULED_EVENT_DELETE = 'GUILD_SCHEDULED_EVENT_DELETE'; - public const GUILD_SCHEDULED_EVENT_USER_ADD = 'GUILD_SCHEDULED_EVENT_USER_ADD'; - public const GUILD_SCHEDULED_EVENT_USER_REMOVE = 'GUILD_SCHEDULED_EVENT_USER_REMOVE'; - - public const GUILD_INTEGRATIONS_UPDATE = 'GUILD_INTEGRATIONS_UPDATE'; - public const INTEGRATION_CREATE = 'INTEGRATION_CREATE'; - public const INTEGRATION_UPDATE = 'INTEGRATION_UPDATE'; - public const INTEGRATION_DELETE = 'INTEGRATION_DELETE'; - public const WEBHOOKS_UPDATE = 'WEBHOOKS_UPDATE'; - public const APPLICATION_COMMAND_PERMISSIONS_UPDATE = 'APPLICATION_COMMAND_PERMISSIONS_UPDATE'; - - public const INVITE_CREATE = 'INVITE_CREATE'; - public const INVITE_DELETE = 'INVITE_DELETE'; - - public const AUTO_MODERATION_RULE_CREATE = 'AUTO_MODERATION_RULE_CREATE'; - public const AUTO_MODERATION_RULE_UPDATE = 'AUTO_MODERATION_RULE_UPDATE'; - public const AUTO_MODERATION_RULE_DELETE = 'AUTO_MODERATION_RULE_DELETE'; - public const AUTO_MODERATION_ACTION_EXECUTION = 'AUTO_MODERATION_ACTION_EXECUTION'; - - public const GUILD_AUDIT_LOG_ENTRY_CREATE = 'GUILD_AUDIT_LOG_ENTRY_CREATE'; - - public const GUILD_SOUNDBOARD_SOUND_CREATE = 'GUILD_SOUNDBOARD_SOUND_CREATE'; - public const GUILD_SOUNDBOARD_SOUND_UPDATE = 'GUILD_SOUNDBOARD_SOUND_UPDATE'; - public const GUILD_SOUNDBOARD_SOUND_DELETE = 'GUILD_SOUNDBOARD_SOUND_DELETE'; - public const SOUNDBOARD_SOUNDS = 'SOUNDBOARD_SOUNDS'; - - // Channel - public const CHANNEL_CREATE = 'CHANNEL_CREATE'; - public const CHANNEL_DELETE = 'CHANNEL_DELETE'; - public const CHANNEL_UPDATE = 'CHANNEL_UPDATE'; - public const CHANNEL_PINS_UPDATE = 'CHANNEL_PINS_UPDATE'; - - // Threads - public const THREAD_CREATE = 'THREAD_CREATE'; - public const THREAD_UPDATE = 'THREAD_UPDATE'; - public const THREAD_DELETE = 'THREAD_DELETE'; - public const THREAD_LIST_SYNC = 'THREAD_LIST_SYNC'; - public const THREAD_MEMBER_UPDATE = 'THREAD_MEMBER_UPDATE'; - public const THREAD_MEMBERS_UPDATE = 'THREAD_MEMBERS_UPDATE'; - - // Voice - public const VOICE_STATE_UPDATE = 'VOICE_STATE_UPDATE'; - public const VOICE_SERVER_UPDATE = 'VOICE_SERVER_UPDATE'; - - // Stage Instance - public const STAGE_INSTANCE_CREATE = 'STAGE_INSTANCE_CREATE'; - public const STAGE_INSTANCE_UPDATE = 'STAGE_INSTANCE_UPDATE'; - public const STAGE_INSTANCE_DELETE = 'STAGE_INSTANCE_DELETE'; - - // Messages - public const MESSAGE_CREATE = 'MESSAGE_CREATE'; - public const MESSAGE_DELETE = 'MESSAGE_DELETE'; - public const MESSAGE_UPDATE = 'MESSAGE_UPDATE'; - public const MESSAGE_DELETE_BULK = 'MESSAGE_DELETE_BULK'; - public const MESSAGE_REACTION_ADD = 'MESSAGE_REACTION_ADD'; - public const MESSAGE_REACTION_REMOVE = 'MESSAGE_REACTION_REMOVE'; - public const MESSAGE_REACTION_REMOVE_ALL = 'MESSAGE_REACTION_REMOVE_ALL'; - public const MESSAGE_REACTION_REMOVE_EMOJI = 'MESSAGE_REACTION_REMOVE_EMOJI'; - public const MESSAGE_POLL_VOTE_ADD = 'MESSAGE_POLL_VOTE_ADD'; - public const MESSAGE_POLL_VOTE_REMOVE = 'MESSAGE_POLL_VOTE_REMOVE'; - - /** - * The Discord client instance. - * - * @var Discord Client. - */ - protected $discord; - - /** - * The HTTP client. - * - * @var Http Client. - */ - protected $http; - - /** - * The Factory. - * - * @var Factory Factory. - */ - protected $factory; - - /** - * Constructs an event. - * - * @param Discord $discord The Discord client. - */ - public function __construct(Discord $discord) - { - $this->discord = $discord; - $this->http = $discord->getHttpClient(); - $this->factory = $discord->getFactory(); - } - - /** - * Transforms the given data, and updates the Discord instance if necessary. - * - * @param object $data The data that was sent with the WebSocket. - * - * @return \Generator - * - * @since 10.0.0 Changed args from `Deferred &$deferred, $data` to `$data`, changed return from `void` to `Generator`. - * @since 4.0.0 - */ - abstract public function handle($data); - - /** - * Cache User repository from Event data. - * - * @param object $userdata `$data->user` or `$data->member->user` - * - * @since 7.0.0 - */ - protected function cacheUser(object $userdata): void - { - $users = $this->discord->users; - if ($user = $users->get('id', $userdata->id)) { - $user->fill((array) $userdata); - } else { - $users->pushItem($users->create($userdata, true)); - } - } - - /** - * Cache Member repository from Event data. - * - * @param MemberRepository $members `$guild->members` - * @param array $memberdata `(array) $data->member` - * - * @since 10.0.0 - */ - protected function cacheMember(MemberRepository $members, array $memberdata): void - { - if ($member = $members->get('id', $memberdata['user']->id)) { - $member->fill($memberdata); - } else { - $members->pushItem($members->create($memberdata, true)); - } - } - - public function __debugInfo(): array - { - return []; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ApplicationCommandPermissionsUpdate.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ApplicationCommandPermissionsUpdate.php deleted file mode 100644 index 7886bef..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ApplicationCommandPermissionsUpdate.php +++ /dev/null @@ -1,61 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\WebSockets\Event; -use Discord\Parts\Guild\CommandPermissions; -use Discord\Parts\Guild\Guild; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#integration-update - * - * @since 7.1.0 - */ -class ApplicationCommandPermissionsUpdate extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - $commandPermissionsPart = $oldCommandPermissions = null; - - /** @var ?Guild */ - if ($guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - /** @var ?CommandPermissions */ - if ($oldCommandPermissions = yield $guild->command_permissions->cacheGet($data->id)) { - // Swap - $commandPermissionsPart = $oldCommandPermissions; - $oldCommandPermissions = clone $oldCommandPermissions; - - $commandPermissionsPart->fill((array) $data); - - if ($data->id === $data->application_id) { - // Permission synced - yield $guild->command_permissions->cache->delete($oldCommandPermissions->id); - } - } - } - - if ($commandPermissionsPart === null) { - /** @var CommandPermissions */ - $commandPermissionsPart = $this->factory->part(CommandPermissions::class, (array) $data, true); - } - - if (isset($guild) && $commandPermissionsPart) { - // Permission set / updated - $guild->command_permissions->set($data->id, $commandPermissionsPart); - } - - return [$commandPermissionsPart, $oldCommandPermissions]; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/AutoModerationActionExecution.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/AutoModerationActionExecution.php deleted file mode 100644 index f692685..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/AutoModerationActionExecution.php +++ /dev/null @@ -1,36 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\WebSockets\Event; -use Discord\Parts\WebSockets\AutoModerationActionExecution as ActionExecution; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#auto-moderation-action-execution - * - * @see \Discord\Parts\WebSockets\AutoModerationActionExecution - * - * @since 7.1.0 - */ -class AutoModerationActionExecution extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - /** @var ActionExecution */ - $actionExecutionPart = $this->factory->part(ActionExecution::class, (array) $data, true); - - return $actionExecutionPart; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/AutoModerationRuleCreate.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/AutoModerationRuleCreate.php deleted file mode 100644 index 130fa32..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/AutoModerationRuleCreate.php +++ /dev/null @@ -1,40 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\WebSockets\Event; -use Discord\Parts\Guild\AutoModeration\Rule; -use Discord\Parts\Guild\Guild; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#auto-moderation-rule-create - * - * @since 7.1.0 - */ -class AutoModerationRuleCreate extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - /** @var Rule */ - $rulePart = $this->factory->part(Rule::class, (array) $data, true); - - /** @var ?Guild */ - if ($guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - $guild->auto_moderation_rules->set($data->id, $rulePart); - } - - return $rulePart; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/AutoModerationRuleDelete.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/AutoModerationRuleDelete.php deleted file mode 100644 index 239a39b..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/AutoModerationRuleDelete.php +++ /dev/null @@ -1,43 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\WebSockets\Event; -use Discord\Parts\Guild\AutoModeration\Rule; -use Discord\Parts\Guild\Guild; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#auto-moderation-rule-delete - * - * @since 7.1.0 - */ -class AutoModerationRuleDelete extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - $rulePart = null; - - /** @var ?Guild */ - if ($guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - /** @var ?Rule */ - if ($rulePart = yield $guild->auto_moderation_rules->cachePull($data->id)) { - $rulePart->fill((array) $data); - $rulePart->created = false; - } - } - - return $rulePart ?? $this->factory->part(Rule::class, (array) $data); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/AutoModerationRuleUpdate.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/AutoModerationRuleUpdate.php deleted file mode 100644 index 3624319..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/AutoModerationRuleUpdate.php +++ /dev/null @@ -1,53 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\WebSockets\Event; -use Discord\Parts\Guild\AutoModeration\Rule; -use Discord\Parts\Guild\Guild; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#auto-moderation-rule-update - * - * @since 7.1.0 - */ -class AutoModerationRuleUpdate extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - $rulePart = $oldRule = null; - - /** @var ?Guild */ - if ($guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - /** @var ?Rule */ - if ($oldRule = yield $guild->auto_moderation_rules->cacheGet($data->id)) { - // Swap - $rulePart = $oldRule; - $oldRule = clone $oldRule; - - $rulePart->fill((array) $data); - } - } - - if ($rulePart === null) { - /** @var Rule */ - $rulePart = $this->factory->part(Rule::class, (array) $data, true); - } - - $guild?->auto_moderation_rules->set($data->id, $rulePart); - - return [$rulePart, $oldRule]; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ChannelCreate.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ChannelCreate.php deleted file mode 100644 index 10956c2..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ChannelCreate.php +++ /dev/null @@ -1,44 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Parts\Channel\Channel; -use Discord\WebSockets\Event; -use Discord\Parts\Guild\Guild; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#channel-create - * - * @since 2.1.3 - */ -class ChannelCreate extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - /** @var Channel */ - $channelPart = $this->factory->part(Channel::class, (array) $data, true); - - if ($channelPart->is_private) { - $this->discord->private_channels->set($data->id, $channelPart); - } else { - /** @var ?Guild */ - if ($guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - $guild->channels->set($data->id, $channelPart); - } - } - - return $channelPart; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ChannelDelete.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ChannelDelete.php deleted file mode 100644 index ea89a4f..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ChannelDelete.php +++ /dev/null @@ -1,42 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Parts\Channel\Channel; -use Discord\WebSockets\Event; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#channel-delete - * - * @since 2.1.3 - */ -class ChannelDelete extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - $channelPart = null; - - /** @var ?\Discord\Parts\Guild\Guild */ - if ($guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - /** @var Channel */ - if ($channelPart = yield $guild->channels->cachePull($data->id)) { - $channelPart->fill((array) $data); - $channelPart->created = false; - } - } - - return $channelPart ?? $this->factory->part(Channel::class, (array) $data); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ChannelPinsUpdate.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ChannelPinsUpdate.php deleted file mode 100644 index b6af9d8..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ChannelPinsUpdate.php +++ /dev/null @@ -1,31 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\WebSockets\Event; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#channel-pins-update - * - * @since 4.0.4 - */ -class ChannelPinsUpdate extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - // TODO - return $data; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ChannelUpdate.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ChannelUpdate.php deleted file mode 100644 index ee26ff0..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ChannelUpdate.php +++ /dev/null @@ -1,60 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Parts\Channel\Channel; -use Discord\WebSockets\Event; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#channel-update - * - * @since 2.1.3 - */ -class ChannelUpdate extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - $oldChannel = $repository = null; - - /** @var Channel */ - $channelPart = $this->factory->part(Channel::class, (array) $data, true); - - if ($channelPart->is_private) { - /** @var ?Channel */ - if (! $oldChannel = yield $this->discord->private_channels->cacheGet($data->id)) { - $repository = $this->discord->private_channels; - } - } elseif ($guild = $channelPart->guild) { - /** @var ?Channel */ - if (! $oldChannel = yield $guild->channels->cacheGet($data->id)) { - $repository = $guild->channels; - } - } - - if ($oldChannel) { - // Swap - $channelPart = $oldChannel; - $oldChannel = clone $oldChannel; - - $channelPart->fill((array) $data); - } - - if ($repository) { - $repository->set($data->id, $channelPart); - } - - return [$channelPart, $oldChannel]; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildAuditLogEntryCreate.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildAuditLogEntryCreate.php deleted file mode 100644 index d2baf26..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildAuditLogEntryCreate.php +++ /dev/null @@ -1,34 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\WebSockets\Event; -use Discord\Parts\Guild\AuditLog\Entry; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#guild-audit-log-entry-create - * - * @since 10.0.0 - */ -class GuildAuditLogEntryCreate extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - /** @var Entry */ - $entryPart = $this->factory->part(Entry::class, (array) $data, true); - - return $entryPart; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildBanAdd.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildBanAdd.php deleted file mode 100644 index 44aadc9..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildBanAdd.php +++ /dev/null @@ -1,42 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Parts\Guild\Ban; -use Discord\WebSockets\Event; -use Discord\Parts\Guild\Guild; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#guild-ban-add - * - * @since 2.1.3 - */ -class GuildBanAdd extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - /** @var Ban */ - $banPart = $this->factory->part(Ban::class, (array) $data, true); - - /** @var ?Guild */ - if ($guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - $guild->bans->set($data->user->id, $banPart); - } - - $this->cacheUser($data->user); - - return $banPart; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildBanRemove.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildBanRemove.php deleted file mode 100644 index af79881..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildBanRemove.php +++ /dev/null @@ -1,44 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Parts\Guild\Ban; -use Discord\WebSockets\Event; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#guild-ban-remove - * - * @since 2.1.3 - */ -class GuildBanRemove extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - $banPart = null; - - /** @var ?\Discord\Parts\Guild\Guild */ - if ($guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - /** @var ?Ban */ - if ($banPart = yield $guild->bans->cachePull($data->user->id)) { - $banPart->fill((array) $data); - $banPart->created = false; - } - } - - $this->cacheUser($data->user); - - return $banPart ?? $this->factory->part(Ban::class, (array) $data); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildCreate.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildCreate.php deleted file mode 100644 index a26bd2f..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildCreate.php +++ /dev/null @@ -1,148 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Parts\Channel\Channel; -use Discord\Parts\Guild\Guild; -use Discord\Parts\User\Member; -use Discord\WebSockets\Event; -use Discord\Http\Endpoint; -use React\Promise\Deferred; - -use function React\Promise\all; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#guild-create - * - * @since 2.1.3 - */ -class GuildCreate extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - if (! empty($data->unavailable)) { - return $data; - } - - /** @var Guild */ - $guildPart = $this->factory->part(Guild::class, (array) $data, true); - - foreach ($data->members as $member) { - $userId = $member->user->id; - $member->guild_id = $data->id; - $rawMembers[$userId] = $member; - /** @var Member[] */ - $members[$userId] = $this->factory->part(Member::class, (array) $rawMembers[$userId], true); - - if (! $this->discord->users->offsetExists($userId)) { - $await[] = $this->discord->users->cache->set($userId, $this->discord->users->create($member->user, true)); - } - } - foreach ($data->presences as $presence) { - if (! array_key_exists($presence->user->id, $members)) { - $this->discord->getLogger()->warning('Presence data exists but no member data was received', [ - 'user_id' => $presence->user->id, - 'guild_id' => $data->id, - 'large' => $data->large, - 'member_count' => $data->member_count, - 'members_count' => count($data->members), - 'rawMembers_looped' => count($rawMembers), - 'presences_count' => count($data->presences), - ]); - continue; - } - $members[$presence->user->id]->fill((array) $presence); - } - if (! empty($members)) { - $await[] = $guildPart->members->cache->setMultiple($members); - } - - foreach ($data->voice_states as $voice_state) { - /** @var ?Channel */ - if ($voiceChannel = $guildPart->channels->offsetGet($voice_state->channel_id)) { - $userId = $voice_state->user_id; - $voice_state->guild_id = $data->id; - if (! isset($voice_state->member) && isset($rawMembers[$userId])) { - $voice_state->member = $rawMembers[$userId]; - } - $await[] = $voiceChannel->members->cache->set($userId, $voiceChannel->members->create($voice_state, true)); - } - } - - foreach ($data->threads as $thread) { - /** @var ?Channel */ - if ($parent = $guildPart->channels->offsetGet($thread->parent_id)) { - $await[] = $parent->threads->cache->set($thread->id, $parent->threads->create($thread, true)); - } - } - - foreach ($data->stage_instances as $stageInstance) { - /** @var ?Channel */ - if ($channel = $guildPart->channels->offsetGet($stageInstance->channel_id)) { - $await[] = $channel->stage_instances->cache->set($stageInstance->id, $channel->stage_instances->create($stageInstance, true)); - } - } - - foreach ($data->guild_scheduled_events as $scheduledEvent) { - $await[] = $guildPart->guild_scheduled_events->cache->set($scheduledEvent->id, $guildPart->guild_scheduled_events->create($scheduledEvent, true)); - } - - $all = yield all($await)->then(function () use (&$guildPart) { - return $this->discord->guilds->cache->set($guildPart->id, $guildPart)->then(fn ($success) => $guildPart); - }); - - if ( - ( - $this->discord->options['retrieveBans'] === true - || ( - is_array($this->discord->options['retrieveBans']) - && in_array($data->id, $this->discord->options['retrieveBans']) - ) - ) - && $members[$this->discord->id]->getPermissions()->ban_members ?? true - ) { - $loadBans = new Deferred(); - $banPagination = function ($lastUserId = null) use (&$banPagination, $guildPart, $loadBans) { - $bind = Endpoint::bind(Endpoint::GUILD_BANS, $guildPart->id); - if (isset($lastUserId)) { - $bind->addQuery('after', $lastUserId); - } - $this->http->get($bind)->then(function ($bans) use (&$banPagination, $guildPart, $loadBans) { - if (empty($bans)) { - $loadBans->resolve(null); - - return; - } - - foreach ($bans as $ban) { - $lastUserId = $ban->user->id; - $ban->guild_id = $guildPart->id; - $guildPart->bans->cache->set($lastUserId, $guildPart->bans->create($ban, true)); - } - - $banPagination($lastUserId); - }, [$loadBans, 'resolve']); - }; - $banPagination(); - yield $loadBans->promise(); - } - - if ($data->large || $data->member_count > count($rawMembers)) { - $this->discord->addLargeGuild($guildPart); - } - - return $all; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildDelete.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildDelete.php deleted file mode 100644 index c26404a..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildDelete.php +++ /dev/null @@ -1,30 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\WebSockets\Event; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#guild-delete - * - * @since 2.1.3 - */ -class GuildDelete extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - return yield $this->discord->guilds->cachePull($data->id, $data)->then(fn ($guildPart) => [$guildPart, $data->unavailable ?? false]); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildEmojisUpdate.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildEmojisUpdate.php deleted file mode 100644 index 77dcf06..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildEmojisUpdate.php +++ /dev/null @@ -1,59 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Helpers\Collection; -use Discord\WebSockets\Event; -use Discord\Parts\Guild\Emoji; -use Discord\Parts\Guild\Guild; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#guild-emojis-update - * - * @since 7.0.0 - */ -class GuildEmojisUpdate extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - $oldEmojis = Collection::for(Emoji::class); - $emojiParts = Collection::for(Emoji::class); - - /** @var ?Guild */ - if ($guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - $oldEmojis->merge($guild->emojis); - $guild->emojis->clear(); - } - - foreach ($data->emojis as &$emoji) { - if (isset($emoji->user)) { - // User caching from emoji uploader - $this->cacheUser($emoji->user); - } elseif ($oldEmoji = $oldEmojis->offsetGet($emoji->id)) { - if ($uploader = $oldEmoji->user) { - $emoji->user = (object) $uploader->getRawAttributes(); - } - } - $emoji->guild_id = $data->guild_id; - $emojiParts->pushItem($this->factory->part(Emoji::class, (array) $emoji, true)); - } - - if (isset($guild)) { - yield $guild->emojis->cache->setMultiple($emojiParts->toArray()); - } - - return [$emojiParts, $oldEmojis]; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildIntegrationsUpdate.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildIntegrationsUpdate.php deleted file mode 100644 index 31fe244..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildIntegrationsUpdate.php +++ /dev/null @@ -1,30 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\WebSockets\Event; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#guild-integrations-update - * - * @since 5.0.0 - */ -class GuildIntegrationsUpdate extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - return yield $this->discord->guilds->cacheGet($data->guild_id) ?? $data; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildMemberAdd.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildMemberAdd.php deleted file mode 100644 index 908aea8..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildMemberAdd.php +++ /dev/null @@ -1,43 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Parts\User\Member; -use Discord\WebSockets\Event; -use Discord\Parts\Guild\Guild; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#guild-member-add - * - * @since 2.1.3 - */ -class GuildMemberAdd extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - /** @var Member */ - $memberPart = $this->factory->part(Member::class, (array) $data, true); - - /** @var ?Guild */ - if ($guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - $guild->members->set($data->user->id, $memberPart); - ++$guild->member_count; - } - - $this->cacheUser($data->user); - - return $memberPart; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildMemberRemove.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildMemberRemove.php deleted file mode 100644 index 0546c9f..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildMemberRemove.php +++ /dev/null @@ -1,50 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Parts\User\Member; -use Discord\WebSockets\Event; -use Discord\Parts\Guild\Guild; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#guild-member-remove - * - * @since 2.1.3 - */ -class GuildMemberRemove extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - $memberPart = null; - - /** @var ?Guild */ - if ($guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - /** @var ?Member */ - $memberPart = yield $guild->members->cachePull($data->user->id); - --$guild->member_count; - } - - if ($memberPart) { - $memberPart->created = false; - } else { - /** @var Member */ - $memberPart = $this->factory->part(Member::class, (array) $data); - } - - $this->cacheUser($data->user); - - return $memberPart; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildMemberUpdate.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildMemberUpdate.php deleted file mode 100644 index 59ebbee..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildMemberUpdate.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Parts\User\Member; -use Discord\WebSockets\Event; -use Discord\Parts\Guild\Guild; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#guild-member-update - * - * @since 2.1.3 - */ -class GuildMemberUpdate extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - $memberPart = $oldMember = null; - - /** @var ?Guild */ - if ($guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - /** @var ?Member */ - if ($oldMember = yield $guild->members->cacheGet($data->user->id)) { - // Swap - $memberPart = $oldMember; - $oldMember = clone $oldMember; - - $memberPart->fill((array) $data); - } - } - - if ($memberPart === null) { - /** @var Member */ - $memberPart = $this->factory->part(Member::class, (array) $data, true); - } - - $guild?->members->set($data->user->id, $memberPart); - - $this->cacheUser($data->user); - - return [$memberPart, $oldMember]; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildRoleCreate.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildRoleCreate.php deleted file mode 100644 index 0c849c0..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildRoleCreate.php +++ /dev/null @@ -1,40 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Parts\Guild\Role; -use Discord\WebSockets\Event; -use Discord\Parts\Guild\Guild; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#guild-role-create - * - * @since 2.1.3 - */ -class GuildRoleCreate extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - /** @var Role */ - $rolePart = $this->factory->part(Role::class, (array) $data->role + ['guild_id' => $data->guild_id], true); - - /** @var ?Guild */ - if ($guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - $guild->roles->set($data->role->id, $rolePart); - } - - return $rolePart; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildRoleDelete.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildRoleDelete.php deleted file mode 100644 index f674eb7..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildRoleDelete.php +++ /dev/null @@ -1,38 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Parts\Guild\Guild; -use Discord\Parts\Guild\Role; -use Discord\WebSockets\Event; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#guild-role-delete - * - * @since 2.1.3 - */ -class GuildRoleDelete extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - /** @var ?Guild */ - if ($guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - /** @var ?Role */ - $rolePart = yield $guild->roles->cachePull($data->role_id); - } - - return $rolePart ?? $data; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildRoleUpdate.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildRoleUpdate.php deleted file mode 100644 index a5335d2..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildRoleUpdate.php +++ /dev/null @@ -1,54 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Parts\Guild\Role; -use Discord\WebSockets\Event; -use Discord\Parts\Guild\Guild; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#guild-role-update - * - * @since 2.1.3 - */ -class GuildRoleUpdate extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - $role = (array) $data->role + ['guild_id' => $data->guild_id]; - $rolePart = $oldRole = null; - - /** @var ?Guild */ - if ($guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - /** @var ?Role */ - if ($oldRole = yield $guild->roles->cacheGet($data->role->id)) { - // Swap - $rolePart = $oldRole; - $oldRole = clone $oldRole; - - $rolePart->fill($role); - } - } - - if ($rolePart === null) { - /** @var Role */ - $rolePart = $this->factory->part(Role::class, $role, true); - } - - $guild?->roles->set($data->role->id, $rolePart); - - return [$rolePart, $oldRole]; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildScheduledEventCreate.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildScheduledEventCreate.php deleted file mode 100644 index 913faa5..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildScheduledEventCreate.php +++ /dev/null @@ -1,44 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\WebSockets\Event; -use Discord\Parts\Guild\Guild; -use Discord\Parts\Guild\ScheduledEvent; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#guild-scheduled-event-create - * - * @since 7.0.0 - */ -class GuildScheduledEventCreate extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - /** @var ScheduledEvent */ - $scheduledEventPart = $this->factory->part(ScheduledEvent::class, (array) $data, true); - - /** @var ?Guild */ - if ($guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - $guild->guild_scheduled_events->set($data->id, $scheduledEventPart); - } - - if (isset($data->creator)) { - $this->cacheUser($data->creator); - } - - return $scheduledEventPart; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildScheduledEventDelete.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildScheduledEventDelete.php deleted file mode 100644 index 41fa105..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildScheduledEventDelete.php +++ /dev/null @@ -1,47 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\WebSockets\Event; -use Discord\Parts\Guild\Guild; -use Discord\Parts\Guild\ScheduledEvent; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#guild-scheduled-event-delete - * - * @since 7.0.0 - */ -class GuildScheduledEventDelete extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - $scheduledEventPart = null; - - /** @var ?Guild */ - if ($guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - /** @var ?ScheduledEvent */ - if ($scheduledEventPart = yield $guild->guild_scheduled_events->cachePull($data->id)) { - $scheduledEventPart->fill((array) $data); - $scheduledEventPart->created = false; - } - } - - if (isset($data->creator)) { - $this->cacheUser($data->creator); - } - - return $scheduledEventPart ?? $this->factory->part(ScheduledEvent::class, (array) $data); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildScheduledEventUpdate.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildScheduledEventUpdate.php deleted file mode 100644 index 3bd0ffe..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildScheduledEventUpdate.php +++ /dev/null @@ -1,57 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\WebSockets\Event; -use Discord\Parts\Guild\Guild; -use Discord\Parts\Guild\ScheduledEvent; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#guild-scheduled-event-update - * - * @since 7.0.0 - */ -class GuildScheduledEventUpdate extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - $scheduledEventPart = $oldScheduledEvent = null; - - /** @var ?Guild */ - if ($guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - /** @var ?ScheduledEvent */ - if ($oldScheduledEvent = yield $guild->guild_scheduled_events->cacheGet($data->id)) { - // Swap - $scheduledEventPart = $oldScheduledEvent; - $oldScheduledEvent = clone $oldScheduledEvent; - - $scheduledEventPart->fill((array) $data); - } - } - - if ($scheduledEventPart === null) { - /** @var ScheduledEvent */ - $scheduledEventPart = $this->factory->part(ScheduledEvent::class, (array) $data, true); - } - - $guild?->guild_scheduled_events->set($data->id, $scheduledEventPart); - - if (isset($data->creator)) { - $this->cacheUser($data->creator); - } - - return [$scheduledEventPart, $oldScheduledEvent]; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildScheduledEventUserAdd.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildScheduledEventUserAdd.php deleted file mode 100644 index f5d4b37..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildScheduledEventUserAdd.php +++ /dev/null @@ -1,31 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\WebSockets\Event; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#guild-scheduled-event-user-add - * - * @since 7.0.0 - */ -class GuildScheduledEventUserAdd extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - // TODO: Create WebSockets Event Part - return $data; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildScheduledEventUserRemove.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildScheduledEventUserRemove.php deleted file mode 100644 index d301449..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildScheduledEventUserRemove.php +++ /dev/null @@ -1,31 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\WebSockets\Event; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#guild-scheduled-event-user-remove - * - * @since 7.0.0 - */ -class GuildScheduledEventUserRemove extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - // TODO: Create WebSockets Event Part - return $data; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildSoundboardSoundCreate.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildSoundboardSoundCreate.php deleted file mode 100644 index 346747c..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildSoundboardSoundCreate.php +++ /dev/null @@ -1,48 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Parts\Guild\Guild; -use Discord\Parts\Guild\Sound; -use Discord\Repository\Guild\SoundRepository; -use Discord\WebSockets\Event; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#guild-soundboard-sound-create - * - * @since 10.0.0 - */ -class GuildSoundboardSoundCreate extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - /** @var Sound */ - $part = $this->factory->part(Sound::class, (array) $data, true); - - /** @var Guild|null */ - $guild = yield $this->discord->guilds->cacheGet($data->guild_id); - - if (! $guild instanceof Guild) { - return $part; - } - - /** @var SoundRepository */ - if ($repository = $guild->sounds) { - $repository->set($part->sound_id, $part); - } - - return $part; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildSoundboardSoundDelete.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildSoundboardSoundDelete.php deleted file mode 100644 index 7c9c305..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildSoundboardSoundDelete.php +++ /dev/null @@ -1,44 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Parts\Guild\Guild; -use Discord\Parts\Guild\Sound; -use Discord\WebSockets\Event; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#guild-soundboard-sound-delete - * - * @since 10.0.0 - */ -class GuildSoundboardSoundDelete extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - $part = null; - - /** @var ?Guild */ - if ($guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - /** @var ?Sound */ - $part = yield $guild->sounds->cachePull($data->sound_id); - if ($part instanceof Sound) { - $part->fill((array) $data); - $part->created = false; - } - } - - return $part ?? $this->factory->part(Sound::class, (array) $data); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildSoundboardSoundUpdate.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildSoundboardSoundUpdate.php deleted file mode 100644 index 9d04602..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildSoundboardSoundUpdate.php +++ /dev/null @@ -1,57 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Parts\Guild\Guild; -use Discord\Parts\Guild\Sound; -use Discord\WebSockets\Event; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#guild-soundboard-sound-update - * - * @since 10.0.0 - */ -class GuildSoundboardSoundUpdate extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - $newPart = $oldPart = null; - - /** @var Guild|null */ - $guild = yield $this->discord->guilds->cacheGet($data->guild_id); - if (! $guild instanceof Guild) { - /** @var Sound */ - $newPart = $this->factory->part(Sound::class, (array) $data, true); - return [$newPart, $oldPart]; - } - - /** @var ?Sound */ - $oldPart = yield $guild->sounds->cacheGet($data->sound_id); - if ($oldPart instanceof Sound) { - $newPart = clone $oldPart; - $newPart->fill((array) $data); - } else { - /** @var Sound */ - $newPart = $this->factory->part(Sound::class, (array) $data, true); - } - - /** @var SoundRepository */ - if ($repository = $guild->sounds) { - $repository->set($newPart->sound_id, $newPart); - } - - return [$newPart, $oldPart]; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildSoundboardSoundsUpdate.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildSoundboardSoundsUpdate.php deleted file mode 100644 index 77448fa..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildSoundboardSoundsUpdate.php +++ /dev/null @@ -1,49 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Parts\Guild\Guild; -use Discord\Parts\Guild\Sound; -use Discord\Repository\Guild\SoundRepository; -use Discord\WebSockets\Event; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#guild-soundboard-sounds-update - * - * @since 10.0.0 - */ -class GuildSoundboardSoundsUpdate extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - /** @var Guild|null */ - $guild = yield $this->discord->guilds->cacheGet($data->guild_id); - - if (! $guild instanceof Guild) { - return null; - } - - /** @var SoundRepository */ - $repository = $guild->sounds; - - foreach ($data as $soundData) { - /** @var SoundboardSound */ - $part = $this->factory->part(Sound::class, (array) $soundData, true); - $repository->set($part->sound_id, $part); - } - - return $repository; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildStickersUpdate.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildStickersUpdate.php deleted file mode 100644 index 966bf74..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildStickersUpdate.php +++ /dev/null @@ -1,58 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Helpers\Collection; -use Discord\WebSockets\Event; -use Discord\Parts\Guild\Guild; -use Discord\Parts\Guild\Sticker; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#guild-stickers-update - * - * @since 7.0.0 - */ -class GuildStickersUpdate extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - $oldStickers = Collection::for(Sticker::class); - $stickerParts = Collection::for(Sticker::class); - - /** @var ?Guild */ - if ($guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - $oldStickers->merge($guild->stickers); - $guild->stickers->clear(); - } - - foreach ($data->stickers as &$sticker) { - if (isset($sticker->user)) { - // User caching from sticker uploader - $this->cacheUser($sticker->user); - } elseif ($oldSticker = $oldStickers->offsetGet($sticker->id)) { - if ($uploader = $oldSticker->user) { - $sticker->user = (object) $uploader->getRawAttributes(); - } - } - $stickerParts->pushItem($this->factory->part(Sticker::class, (array) $sticker, true)); - } - - if (isset($guild)) { - yield $guild->stickers->cache->setMultiple($stickerParts->toArray()); - } - - return [$stickerParts, $oldStickers]; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildUpdate.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildUpdate.php deleted file mode 100644 index a28969e..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/GuildUpdate.php +++ /dev/null @@ -1,44 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\WebSockets\Event; -use Discord\Parts\Guild\Guild; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#guild-update - * - * @since 2.1.3 - */ -class GuildUpdate extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - $oldGuild = null; - - /** @var ?Guild */ - if ($guildPart = yield $this->discord->guilds->cacheGet($data->id)) { - $oldGuild = clone $guildPart; - $guildPart->fill((array) $data); - } else { - /** @var Guild */ - $guildPart = $this->discord->guilds->create($data, true); - } - - $this->discord->guilds->set($data->id, $guildPart); - - return [$guildPart, $oldGuild]; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/IntegrationCreate.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/IntegrationCreate.php deleted file mode 100644 index 5779170..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/IntegrationCreate.php +++ /dev/null @@ -1,44 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\WebSockets\Event; -use Discord\Parts\Guild\Guild; -use Discord\Parts\Guild\Integration; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#integration-create - * - * @since 7.0.0 - */ -class IntegrationCreate extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - /** @var Integration */ - $integrationPart = $this->factory->part(Integration::class, (array) $data, true); - - /** @var ?Guild */ - if ($guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - $guild->integrations->set($data->id, $integrationPart); - } - - if (isset($data->user)) { - $this->cacheUser($data->user); - } - - return $integrationPart; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/IntegrationDelete.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/IntegrationDelete.php deleted file mode 100644 index 561687c..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/IntegrationDelete.php +++ /dev/null @@ -1,41 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\WebSockets\Event; -use Discord\Parts\Guild\Integration; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#integration-delete - * - * @since 7.0.0 - */ -class IntegrationDelete extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - $oldIntegration = null; - - /** @var ?\Discord\Parts\Guild\Guild */ - if ($guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - /** @var ?Integration */ - if ($oldIntegration = yield $guild->integrations->cachePull($data->id)) { - $oldIntegration->created = false; - } - } - - return $oldIntegration ?? $data; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/IntegrationUpdate.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/IntegrationUpdate.php deleted file mode 100644 index 3b7a49a..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/IntegrationUpdate.php +++ /dev/null @@ -1,57 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\WebSockets\Event; -use Discord\Parts\Guild\Guild; -use Discord\Parts\Guild\Integration; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#integration-update - * - * @since 7.0.0 - */ -class IntegrationUpdate extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - $integrationPart = $oldIntegration = null; - - /** @var ?Guild */ - if ($guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - /** @var ?Integration */ - if ($oldIntegration = yield $guild->integrations->cacheGet($data->id)) { - // Swap - $integrationPart = $oldIntegration; - $oldIntegration = clone $oldIntegration; - - $integrationPart->fill((array) $data); - } - } - - if ($integrationPart === null) { - /** @var Integration */ - $integrationPart = $this->factory->part(Integration::class, (array) $data, true); - } - - $guild?->integrations->set($data->id, $integrationPart); - - if (isset($data->user)) { - $this->cacheUser($data->user); - } - - return [$integrationPart, $oldIntegration]; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/InteractionCreate.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/InteractionCreate.php deleted file mode 100644 index 4f57e54..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/InteractionCreate.php +++ /dev/null @@ -1,107 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Parts\Guild\Guild; -use Discord\Parts\Interactions\Interaction; -use Discord\Repository\Guild\MemberRepository; -use Discord\WebSockets\Event; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#interaction-create - * - * @since 6.0.0 - */ -class InteractionCreate extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - /** @var Interaction */ - $interaction = $this->factory->part(Interaction::class, (array) $data, true); - - foreach ($data->data->resolved->users ?? [] as $snowflake => $user) { - if ($userPart = $this->discord->users->get('id', $snowflake)) { - $userPart->fill((array) $user); - } else { - $this->discord->users->pushItem($this->discord->users->create($user, true)); - } - } - - if (isset($data->member)) { - // Do not load guild from cache as it may delay interaction codes. - /** @var ?Guild */ - if ($guild = $this->discord->guilds->offsetGet($data->guild_id)) { - $members = $guild->members; - - foreach ($data->data->resolved->members ?? [] as $snowflake => $member) { - $this->cacheMember($members, (array) $member + ['user' => $data->data->resolved->users->$snowflake]); - } - - $this->cacheMember($members, (array) $data->member); - } - - // User caching from member - $this->cacheUser($data->member->user); - } - - if (isset($data->user)) { - // User caching from user dm - $this->cacheUser($data->user); - } - - if ($data->type == Interaction::TYPE_APPLICATION_COMMAND) { - $command = $data->data; - if (isset($this->discord->application_commands[$command->name])) { - $this->discord->application_commands[$command->name]->execute($command->options ?? [], $interaction); - } - } elseif ($data->type == Interaction::TYPE_APPLICATION_COMMAND_AUTOCOMPLETE) { - $command = $data->data; - if (isset($this->discord->application_commands[$command->name])) { - $checkCommand = function ($command, $options) use (&$checkCommand, $interaction) { - foreach ($options as $option) { - if ($subCommand = $command->getSubCommand($option->name)) { - if (! empty($option->focused)) { - return $subCommand->suggest($interaction); - } - if (! empty($option->options)) { - return $checkCommand($subCommand, $option->options); - } - } elseif (! empty($option->focused)) { - return $command->suggest($interaction); - } - } - - return false; - }; - $checkCommand($this->discord->application_commands[$command->name], $command->options); - } - } - - return $interaction; - } - - /** - * {@inheritDoc} - */ - protected function cacheMember(MemberRepository $members, array $memberdata): void - { - // Do not load members from cache as it may delay interaction codes. - if ($member = $members->offsetGet($memberdata['user']->id)) { - $member->fill($memberdata); - } else { - $members->pushItem($members->create($memberdata, true)); - } - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/InviteCreate.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/InviteCreate.php deleted file mode 100644 index e34a7a5..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/InviteCreate.php +++ /dev/null @@ -1,56 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\WebSockets\Event; -use Discord\Parts\Channel\Channel; -use Discord\Parts\Channel\Invite; -use Discord\Parts\Guild\Guild; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#invite-create - * - * @since 5.0.0 - */ -class InviteCreate extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - /** @var Invite */ - $invitePart = $this->factory->part(Invite::class, (array) $data, true); - - /** @var ?Guild */ - if ($guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - /** @var ?Channel */ - if ($channel = yield $guild->channels->cacheGet($data->channel_id)) { - $channel->invites->set($data->code, $invitePart); - } - - $guild->invites->set($data->code, $invitePart); - } - - if (isset($data->inviter)) { - // User caching from inviter - $this->cacheUser($data->inviter); - } - - if (isset($data->target_user)) { - // User caching from target user - $this->cacheUser($data->target_user); - } - - return $invitePart; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/InviteDelete.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/InviteDelete.php deleted file mode 100644 index 34e8b69..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/InviteDelete.php +++ /dev/null @@ -1,49 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\WebSockets\Event; -use Discord\Parts\Channel\Channel; -use Discord\Parts\Channel\Invite; -use Discord\Parts\Guild\Guild; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#invite-delete - * - * @since 5.0.0 - */ -class InviteDelete extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - $invitePart = null; - - /** @var ?Guild */ - if ($guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - /** @var ?Channel */ - if ($channel = yield $guild->channels->cacheGet($data->channel_id)) { - /** @var ?Invite */ - $invitePart = yield $channel->invites->cachePull($data->code); - } - - if ($invitePart === null) { - /** @var ?Invite */ - $invitePart = yield $guild->invites->cachePull($data->code); - } - } - - return $invitePart ?? $data; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessageCreate.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessageCreate.php deleted file mode 100644 index fa3fdff..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessageCreate.php +++ /dev/null @@ -1,98 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Parts\Channel\Message; -use Discord\WebSockets\Event; -use Discord\Parts\Channel\Channel; -use Discord\Parts\Guild\Guild; -use Discord\Parts\Thread\Thread; -use Discord\WebSockets\Intents; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#message-create - * - * @since 2.1.3 - */ -class MessageCreate extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - $guild = null; - - /** @var Message */ - $messagePart = $this->factory->part(Message::class, (array) $data, true); - - if ($messagePart->is_private) { - /** @var Channel */ - $channel = $this->factory->part(Channel::class, [ - 'id' => $data->channel_id, - 'type' => Channel::TYPE_DM, - 'last_message_id' => $data->id, - 'recipients' => [$data->author], - ], true); - - $this->discord->private_channels->set($data->channel_id, $channel); - } - - /** @var ?Guild */ - if (isset($data->guild_id) && $guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - /** @var ?Channel */ - if (! isset($channel) && ! $channel = yield $guild->channels->cacheGet($data->channel_id)) { - /** @var Channel */ - foreach ($guild->channels as $parent) { - /** @var ?Thread */ - if ($thread = yield $parent->threads->cacheGet($data->channel_id)) { - $thread->message_count++; - $thread->total_message_sent++; - $channel = $thread; - break; - } - } - } - } - - if ($this->discord->options['storeMessages'] && (isset($channel) || $channel = $messagePart->channel)) { - // Only cache if message intent is enabled or message was sent by the bot or message is not cached - if (($this->discord->options['intents'] & Intents::MESSAGE_CONTENT) || $data->author->id == $this->discord->id || ! (yield $channel->messages->cache->has($data->id))) { - $channel->messages->set($data->id, $messagePart); - } - } - - if (isset($channel)) { - $channel->last_message_id = $data->id; - } - - if (isset($data->author) && ! isset($data->webhook_id)) { - if (isset($data->member) && $guild) { - $this->cacheMember($guild->members, (array) $data->member + ['user' => $data->author]); - } - $this->cacheUser($data->author); - } - - foreach ($data->mentions ?? [] as $user) { - if (isset($user->member) && $guild) { - $this->cacheMember($guild->members, (array) $user->member + ['user' => $user]); - } - $this->cacheUser($user); - } - - if (isset($data->interaction->user)) { - $this->cacheUser($data->interaction->user); - } - - return $messagePart; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessageDelete.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessageDelete.php deleted file mode 100644 index 49fb874..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessageDelete.php +++ /dev/null @@ -1,69 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\WebSockets\Event; -use Discord\Parts\Channel\Channel; -use Discord\Parts\Channel\Message; -use Discord\Parts\Guild\Guild; -use Discord\Parts\Thread\Thread; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#message-delete - * - * @since 2.1.3 - */ -class MessageDelete extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - $messagePart = null; - - if (! isset($data->guild_id)) { - /** @var ?Channel */ - if ($channel = yield $this->discord->private_channels->cacheGet($data->channel_id)) { - /** @var ?Message */ - $messagePart = yield $channel->messages->cachePull($data->id); - } - } else { - /** @var ?Guild */ - if ($guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - /** @var ?Channel */ - if (! $channel = yield $guild->channels->cacheGet($data->channel_id)) { - /** @var Channel */ - foreach ($guild->channels as $parent) { - /** @var ?Thread */ - if ($thread = yield $parent->threads->cacheGet($data->channel_id)) { - $channel = $thread; - break; - } - } - } - - if (isset($channel)) { - /** @var ?Message */ - $messagePart = yield $channel->messages->cachePull($data->id); - if ($channel instanceof Thread) { - $channel->message_count--; - } - } - } - } - - $messagePart?->reactions->cache->clear(); - - return $messagePart ?? $data; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessageDeleteBulk.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessageDeleteBulk.php deleted file mode 100644 index 99b9197..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessageDeleteBulk.php +++ /dev/null @@ -1,38 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Helpers\Collection; -use Discord\WebSockets\Event; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#message-delete-bulk - * - * @since 4.0.0 - */ -class MessageDeleteBulk extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - $resolved = new Collection(); - - foreach ($data->ids as $id) { - $event = new MessageDelete($this->discord); - $resolved->pushItem(yield from $event->handle((object) ['id' => $id, 'channel_id' => $data->channel_id, 'guild_id' => $data->guild_id])); - } - - return $resolved; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessagePollVoteAdd.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessagePollVoteAdd.php deleted file mode 100644 index 803663d..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessagePollVoteAdd.php +++ /dev/null @@ -1,68 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Parts\Channel\Poll\PollAnswer; -use Discord\WebSockets\Event; -use Discord\Parts\Channel\Channel; -use Discord\Parts\Channel\Message; -use Discord\Parts\Channel\Reaction; -use Discord\Parts\Guild\Guild; -use Discord\Parts\Thread\Thread; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#message-poll-vote-add-message-poll-vote-add-fields - * - * @since 10.0.0 - */ -class MessagePollVoteAdd extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - $guild = null; - - /** @var ?Guild */ - if (isset($data->guild_id) && $guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - /** @var ?Channel */ - if (! $channel = yield $guild->channels->cacheGet($data->channel_id)) { - /** @var Channel */ - foreach ($guild->channels as $channel) { - /** @var ?Thread */ - if ($thread = yield $channel->threads->cacheGet($data->channel_id)) { - $channel = $thread; - break; - } - } - } - } else { - /** @var ?Channel */ - $channel = yield $this->discord->private_channels->cacheGet($data->channel_id); - } - - $answer = new PollAnswer($this->discord, (array) $data, true); - - /** @var ?Message */ - if (isset($channel) && $message = yield $channel->messages->cacheGet($data->message_id)) { - $message->poll->answers->pushItem($answer); - } - - if (isset($data->member) && $guild) { - $this->cacheMember($guild->members, (array) $data->member); - $this->cacheUser($data->member->user); - } - - return $answer; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessagePollVoteRemove.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessagePollVoteRemove.php deleted file mode 100644 index c0b690c..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessagePollVoteRemove.php +++ /dev/null @@ -1,61 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Parts\Channel\Poll\PollAnswer; -use Discord\WebSockets\Event; -use Discord\Parts\Channel\Channel; -use Discord\Parts\Channel\Message; -use Discord\Parts\Channel\Reaction; -use Discord\Parts\Guild\Guild; -use Discord\Parts\Thread\Thread; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#message-poll-vote-remove-message-poll-vote-remove-fields - * - * @since 10.0.0 - */ -class MessagePollVoteRemove extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - /** @var ?Guild */ - if (isset($data->guild_id) && $guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - /** @var ?Channel */ - if (! $channel = yield $guild->channels->cacheGet($data->channel_id)) { - /** @var Channel */ - foreach ($guild->channels as $channel) { - /** @var ?Thread */ - if ($thread = yield $channel->threads->cacheGet($data->channel_id)) { - $channel = $thread; - break; - } - } - } - } else { - /** @var ?Channel */ - $channel = yield $this->discord->private_channels->cacheGet($data->channel_id); - } - - $answer = new PollAnswer($this->discord, (array) $data, true); - - /** @var ?Message */ - if (isset($channel) && $message = yield $channel->messages->cacheGet($data->message_id)) { - yield $message->poll->answers->cache->delete($answer->answer_id); - } - - return $answer; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessageReactionAdd.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessageReactionAdd.php deleted file mode 100644 index 387ba32..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessageReactionAdd.php +++ /dev/null @@ -1,83 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Parts\WebSockets\MessageReaction; -use Discord\WebSockets\Event; -use Discord\Parts\Channel\Channel; -use Discord\Parts\Channel\Message; -use Discord\Parts\Channel\Reaction; -use Discord\Parts\Guild\Guild; -use Discord\Parts\Thread\Thread; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#message-reaction-add - * - * @since 4.0.4 - */ -class MessageReactionAdd extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - $guild = null; - - /** @var ?Guild */ - if (isset($data->guild_id) && $guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - /** @var ?Channel */ - if (! $channel = yield $guild->channels->cacheGet($data->channel_id)) { - /** @var Channel */ - foreach ($guild->channels as $channel) { - /** @var ?Thread */ - if ($thread = yield $channel->threads->cacheGet($data->channel_id)) { - $channel = $thread; - break; - } - } - } - } else { - /** @var ?Channel */ - $channel = yield $this->discord->private_channels->cacheGet($data->channel_id); - } - - $reaction = new MessageReaction($this->discord, (array) $data, true); - - /** @var ?Message */ - if (isset($channel) && $message = yield $channel->messages->cacheGet($data->message_id)) { - $me = $data->user_id == $this->discord->id; - - /** @var ?Reaction */ - if ($react = yield $message->reactions->cacheGet($reaction->reaction_id)) { - ++$react->count; - $react->me = $me; - } else { // New reaction added - /** @var Reaction */ - $react = $message->reactions->create([ - 'count' => 1, - 'me' => $me, - 'emoji' => $data->emoji, - ], true); - } - - $message->reactions->pushItem($react); - } - - if (isset($data->member) && $guild) { - $this->cacheMember($guild->members, (array) $data->member); - $this->cacheUser($data->member->user); - } - - return $reaction; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessageReactionRemove.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessageReactionRemove.php deleted file mode 100644 index 6b9880d..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessageReactionRemove.php +++ /dev/null @@ -1,73 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Parts\WebSockets\MessageReaction; -use Discord\WebSockets\Event; -use Discord\Parts\Channel\Channel; -use Discord\Parts\Channel\Message; -use Discord\Parts\Channel\Reaction; -use Discord\Parts\Guild\Guild; -use Discord\Parts\Thread\Thread; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#message-reaction-remove - * - * @since 4.0.4 - */ -class MessageReactionRemove extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - /** @var ?Guild */ - if (isset($data->guild_id) && $guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - /** @var ?Channel */ - if (! $channel = yield $guild->channels->cacheGet($data->channel_id)) { - /** @var Channel */ - foreach ($guild->channels as $channel) { - /** @var ?Thread */ - if ($thread = yield $channel->threads->cacheGet($data->channel_id)) { - $channel = $thread; - break; - } - } - } - } else { - /** @var ?Channel */ - $channel = yield $this->discord->private_channels->cacheGet($data->channel_id); - } - - $reaction = new MessageReaction($this->discord, (array) $data, true); - - /** @var ?Message */ - if (isset($channel) && $message = yield $channel->messages->cacheGet($data->message_id)) { - /** @var Reaction */ - if ($react = yield $message->reactions->cacheGet($reaction->reaction_id)) { - if ($data->user_id == $this->discord->id) { - $react->me = false; - } - - if (--$react->count < 1) { - yield $message->reactions->cache->delete($reaction->reaction_id); - } else { - // save new count & me - $message->reactions->pushItem($react); - } - } - } - - return $reaction; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessageReactionRemoveAll.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessageReactionRemoveAll.php deleted file mode 100644 index 90b8a47..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessageReactionRemoveAll.php +++ /dev/null @@ -1,60 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Parts\WebSockets\MessageReaction; -use Discord\WebSockets\Event; -use Discord\Parts\Channel\Channel; -use Discord\Parts\Channel\Message; -use Discord\Parts\Guild\Guild; -use Discord\Parts\Thread\Thread; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#message-reaction-remove-all - * - * @since 4.0.4 - */ -class MessageReactionRemoveAll extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - /** @var ?Guild */ - if (isset($data->guild_id) && $guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - /** @var ?Channel */ - if (! $channel = yield $guild->channels->cacheGet($data->channel_id)) { - /** @var Channel */ - foreach ($guild->channels as $channel) { - /** @var ?Thread */ - if ($thread = yield $channel->threads->cacheGet($data->channel_id)) { - $channel = $thread; - break; - } - } - } - } else { - /** @var ?Channel */ - $channel = yield $this->discord->private_channels->cacheGet($data->channel_id); - } - - $reaction = new MessageReaction($this->discord, (array) $data, true); - - /** @var ?Message */ - if (isset($channel) && $message = yield $channel->messages->cacheGet($data->message_id)) { - yield $message->reactions->cache->clear(); - } - - return $reaction; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessageReactionRemoveEmoji.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessageReactionRemoveEmoji.php deleted file mode 100644 index 737d550..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessageReactionRemoveEmoji.php +++ /dev/null @@ -1,60 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\WebSockets\Event; -use Discord\Parts\Channel\Channel; -use Discord\Parts\Channel\Message; -use Discord\Parts\Guild\Guild; -use Discord\Parts\Thread\Thread; -use Discord\Parts\WebSockets\MessageReaction; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#message-reaction-remove-emoji - * - * @since 5.0.0 - */ -class MessageReactionRemoveEmoji extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - /** @var ?Guild */ - if (isset($data->guild_id) && $guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - /** @var ?Channel */ - if (! $channel = yield $guild->channels->cacheGet($data->channel_id)) { - /** @var Channel */ - foreach ($guild->channels as $channel) { - /** @var ?Thread */ - if ($thread = yield $channel->threads->cacheGet($data->channel_id)) { - $channel = $thread; - break; - } - } - } - } else { - /** @var ?Channel */ - $channel = yield $this->discord->private_channels->cacheGet($data->channel_id); - } - - $reaction = new MessageReaction($this->discord, (array) $data, true); - - /** @var ?Message */ - if (isset($channel) && $message = yield $channel->messages->cacheGet($data->message_id)) { - yield $message->reactions->cache->delete($reaction->reaction_id); - } - - return $reaction; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessageUpdate.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessageUpdate.php deleted file mode 100644 index 7173b8a..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/MessageUpdate.php +++ /dev/null @@ -1,95 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Parts\Channel\Message; -use Discord\WebSockets\Event; -use Discord\Parts\Channel\Channel; -use Discord\Parts\Guild\Guild; -use Discord\Parts\Thread\Thread; -use Discord\WebSockets\Intents; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#message-update - * - * @since 2.1.3 - */ -class MessageUpdate extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - /** @var Message */ - $messagePart = $oldMessagePart = null; - $guild = null; - - /** @var ?Guild */ - if (isset($data->guild_id) && $guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - /** @var ?Channel */ - if (! $channel = yield $guild->channels->cacheGet($data->channel_id)) { - /** @var Channel */ - foreach ($guild->channels as $parent) { - /** @var ?Thread */ - if ($thread = yield $parent->threads->cacheGet($data->channel_id)) { - $channel = $thread; - break; - } - } - } - } - - if (isset($channel)) { - /** @var ?Message */ - if ($oldMessagePart = yield $channel->messages->cacheGet($data->id)) { - // Swap - $messagePart = $oldMessagePart; - $oldMessagePart = clone $oldMessagePart; - - $messagePart->fill((array) $data); - - // Deal with empty message content intent - if (! ($this->discord->options['intents'] & Intents::MESSAGE_CONTENT) && ($data->author->id ?? $oldMessagePart->user_id) != $this->discord->id) { - $cacheMessagePart = clone $oldMessagePart; - // Ignore intent required fields - $cacheMessagePart->fill(array_filter((array) $data, fn ($value, $key) => ! in_array($key, ['content', 'embeds', 'attachments', 'components']), ARRAY_FILTER_USE_BOTH)); - } - } - } - - if ($oldMessagePart === null && isset($data->type)) { // Message has type means not partial - /** @var Message */ - $messagePart = $this->factory->part(Message::class, (array) $data, true); - } - - if (isset($channel) && ($oldMessagePart || $this->discord->options['storeMessages']) && $setMessageData = $cacheMessagePart ?? $messagePart) { // Skip partial messages - $channel->messages->set($data->id, $setMessageData); - } - - if (isset($data->author) && ! isset($data->webhook_id)) { - if (isset($data->member) && $guild) { - $this->cacheMember($guild->members, (array) $data->member + ['user' => $data->author]); - } - $this->cacheUser($data->author); - } - - foreach ($data->mentions ?? [] as $user) { - if (isset($user->member) && $guild) { - $this->cacheMember($guild->members, (array) $user->member + ['user' => $user]); - } - $this->cacheUser($user); - } - - return [$messagePart ?? $data, $oldMessagePart]; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/PresenceUpdate.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/PresenceUpdate.php deleted file mode 100644 index 351c280..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/PresenceUpdate.php +++ /dev/null @@ -1,50 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Parts\WebSockets\PresenceUpdate as PresenceUpdatePart; -use Discord\WebSockets\Event; -use Discord\Parts\Guild\Guild; -use Discord\Parts\User\Member; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#presence-update - * - * @see \Discord\Parts\WebSockets\PresenceUpdate - * - * @since 2.1.3 - */ -class PresenceUpdate extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - /** @var PresenceUpdatePart */ - $presence = $this->factory->part(PresenceUpdatePart::class, (array) $data, true); - - /** @var ?Guild */ - if ($guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - /** @var ?Member */ - if ($member = yield $guild->members->cacheGet($data->user->id)) { - $oldPresence = $member->updateFromPresence($presence); - - $guild->members->set($data->user->id, $member); - - return [$presence, $oldPresence]; - } - } - - return $presence; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/SoundboardSounds.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/SoundboardSounds.php deleted file mode 100644 index 997dda9..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/SoundboardSounds.php +++ /dev/null @@ -1,49 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Parts\Guild\Guild; -use Discord\Parts\Guild\Sound; -use Discord\Repository\Guild\SoundRepository; -use Discord\WebSockets\Event; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#soundboard-sounds - * - * @since 10.0.0 - */ -class SoundboardSounds extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - /** @var Guild|null */ - $guild = yield $this->discord->guilds->cacheGet($data->guild_id); - - if (! $guild instanceof Guild) { - return null; - } - - /** @var SoundRepository */ - $repository = $guild->sounds; - - foreach ($data->soundboard_sounds as $soundData) { - /** @var Sound */ - $part = $this->factory->part(Sound::class, (array) $soundData, true); - $repository->set($part->sound_id, $part); - } - - return $repository; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/StageInstanceCreate.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/StageInstanceCreate.php deleted file mode 100644 index a091fd3..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/StageInstanceCreate.php +++ /dev/null @@ -1,44 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Parts\Channel\Channel; -use Discord\Parts\Channel\StageInstance; -use Discord\WebSockets\Event; -use Discord\Parts\Guild\Guild; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#stage-instance-create - * - * @since 7.0.0 - */ -class StageInstanceCreate extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - /** @var StageInstance */ - $stageInstancePart = $this->factory->part(StageInstance::class, (array) $data, true); - - /** @var ?Guild */ - if ($guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - /** @var ?Channel */ - if ($channel = yield $guild->channels->cacheGet($data->channel_id)) { - $channel->stage_instances->set($data->id, $stageInstancePart); - } - } - - return $stageInstancePart; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/StageInstanceDelete.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/StageInstanceDelete.php deleted file mode 100644 index 329b15a..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/StageInstanceDelete.php +++ /dev/null @@ -1,47 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Parts\Channel\Channel; -use Discord\Parts\Channel\StageInstance; -use Discord\WebSockets\Event; -use Discord\Parts\Guild\Guild; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#stage-instance-delete - * - * @since 7.0.0 - */ -class StageInstanceDelete extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - $stageInstancePart = null; - - /** @var ?Guild */ - if ($guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - /** @var ?Channel */ - if ($channel = yield $guild->channels->cacheGet($data->channel_id)) { - /** @var ?StageInstance */ - if ($stageInstancePart = yield $channel->stage_instances->cachePull($data->id)) { - $stageInstancePart->fill((array) $data); - $stageInstancePart->created = false; - } - } - } - - return $stageInstancePart ?? $this->factory->part(StageInstance::class, (array) $data); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/StageInstanceUpdate.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/StageInstanceUpdate.php deleted file mode 100644 index 281421b..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/StageInstanceUpdate.php +++ /dev/null @@ -1,59 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Parts\Channel\Channel; -use Discord\Parts\Channel\StageInstance; -use Discord\WebSockets\Event; -use Discord\Parts\Guild\Guild; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#stage-instance-update - * - * @since 7.0.0 - */ -class StageInstanceUpdate extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - $stageInstancePart = $oldStageInstance = null; - - /** @var ?Guild */ - if ($guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - /** @var ?Channel */ - if ($channel = yield $guild->channels->cacheGet($data->channel_id)) { - /** @var ?StageInstance */ - if ($oldStageInstance = yield $channel->stage_instances->cacheGet($data->id)) { - // Swap - $stageInstancePart = $oldStageInstance; - $oldStageInstance = clone $oldStageInstance; - - $stageInstancePart->fill((array) $data); - } - } - } - - if ($stageInstancePart === null) { - /** @var StageInstance */ - $stageInstancePart = $this->factory->part(StageInstance::class, (array) $data, true); - } - - if (isset($channel)) { - $channel->stage_instances->set($data->id, $stageInstancePart); - } - - return [$stageInstancePart, $oldStageInstance]; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ThreadCreate.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ThreadCreate.php deleted file mode 100644 index e24c011..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ThreadCreate.php +++ /dev/null @@ -1,53 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Parts\Channel\Channel; -use Discord\Parts\Channel\Message; -use Discord\Parts\Guild\Guild; -use Discord\Parts\Thread\Thread; -use Discord\WebSockets\Event; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#thread-create - * - * @since 7.0.0 - */ -class ThreadCreate extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - /** @var Thread */ - $threadPart = $this->factory->part(Thread::class, (array) $data, true); - - /** @var ?Guild */ - if ($guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - /** @var ?Channel */ - if ($parent = yield $guild->channels->cacheGet($data->parent_id)) { - $parent->last_message_id = $data->id; - $parent->threads->set($data->id, $threadPart); - /** @var ?Message */ - if ($messageSource = yield $parent->messages->cacheGet($data->id)) { - if ($messageSource->has_thread) { - $messageSource->thread = $data; - $parent->messages->set($messageSource->id, $messageSource); - } - } - } - } - - return $threadPart; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ThreadDelete.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ThreadDelete.php deleted file mode 100644 index 4022a55..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ThreadDelete.php +++ /dev/null @@ -1,39 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Parts\Channel\Channel; -use Discord\Parts\Guild\Guild; -use Discord\WebSockets\Event; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#thread-delete - * - * @since 7.0.0 - */ -class ThreadDelete extends Event -{ - public function handle($data) - { - $threadPart = null; - - /** @var ?Guild */ - if ($guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - /** @var ?Channel */ - if ($parent = yield $guild->channels->cacheGet($data->parent_id)) { - $threadPart = yield $parent->threads->cachePull($data->id); - } - } - - return $threadPart ?? $data; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ThreadListSync.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ThreadListSync.php deleted file mode 100644 index 4333274..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ThreadListSync.php +++ /dev/null @@ -1,63 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Helpers\Collection; -use Discord\Parts\Channel\Channel; -use Discord\Parts\Guild\Guild; -use Discord\Parts\Thread\Thread; -use Discord\WebSockets\Event; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#thread-list-sync - * - * @since 7.0.0 - */ -class ThreadListSync extends Event -{ - public function handle($data) - { - $threadParts = Collection::for(Thread::class); - - /** @var ?Guild */ - if ($guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - foreach ($data->channel_ids as $channel_id) { - /** @var ?Channel[] */ - $channels[$channel_id] = yield $guild->channels->cacheGet($channel_id); - } - - foreach ($data->threads as $thread) { - /** @var Thread */ - $threadPart = $this->factory->part(Thread::class, (array) $thread, true); - /** @var ?Channel */ - if ($channel = $channels[$thread->parent_id] ?? null) { - /** @var ?Thread */ - if ($oldThread = yield $channel->threads->cacheGet($thread->id)) { - $oldThread->fill((array) $thread); - $threadPart = $oldThread; - } - $channel->threads->set($thread->id, $threadPart); - } - $threadParts->pushItem($threadPart); - } - - foreach ($data->members as $member) { - /** @var ?Thread */ - if ($threadPart = $threadParts[$member->id] ?? null) { - $threadPart->members->set($member->user_id, $threadPart->members->create((array) $member + ['guild_id' => $data->guild_id], true)); - } - } - } - - return $threadParts; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ThreadMemberUpdate.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ThreadMemberUpdate.php deleted file mode 100644 index f311b32..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ThreadMemberUpdate.php +++ /dev/null @@ -1,46 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Parts\Channel\Channel; -use Discord\Parts\Guild\Guild; -use Discord\Parts\Thread\Member; -use Discord\Parts\Thread\Thread; -use Discord\WebSockets\Event; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#thread-member-update - * - * @since 7.0.0 - */ -class ThreadMemberUpdate extends Event -{ - public function handle($data) - { - /** @var Member */ - $memberPart = $this->factory->part(Member::class, (array) $data, true); - - /** @var ?Guild */ - if ($guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - /** @var Channel */ - foreach ($guild->channels as $channel) { - /** @var ?Thread */ - if ($thread = yield $channel->threads->cacheGet($data->id)) { - $thread->members->set($data->user_id, $memberPart); - break; - } - } - } - - return $memberPart; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ThreadMembersUpdate.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ThreadMembersUpdate.php deleted file mode 100644 index 701f918..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ThreadMembersUpdate.php +++ /dev/null @@ -1,62 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Parts\Channel\Channel; -use Discord\Parts\Guild\Guild; -use Discord\Parts\Thread\Thread; -use Discord\WebSockets\Event; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#thread-members-update - * - * @since 7.0.0 - */ -class ThreadMembersUpdate extends Event -{ - public function handle($data) - { - /** @var ?Guild */ - if (! $guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - return null; - } - - // When the bot is added to a private thread, sometimes the `THREAD_MEMBER_UPDATE` event - // comes before the `THREAD_CREATE` event, so we just don't emit this event if we don't have the - // thread cached. - // @todo channels may be missing from cache - /** @var Channel */ - foreach ($guild->channels as $channel) { - /** @var ?Thread */ - if ($thread = yield $channel->threads->cacheGet($data->id)) { - $thread->member_count = $data->member_count; - - if (isset($data->removed_member_ids)) { - yield $thread->members->cache->deleteMultiple($data->removed_member_ids); - } - - foreach ($data->added_members ?? [] as $member) { - $thread->members->set($member->user_id, $thread->members->create((array) $member + ['guild_id' => $data->guild_id], true)); - - if (isset($member->member)) { - $this->cacheMember($guild->members, (array) $member->member); - $this->cacheUser($member->member->user); - } - } - - return $thread; - } - } - - return null; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ThreadUpdate.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ThreadUpdate.php deleted file mode 100644 index f945f86..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/ThreadUpdate.php +++ /dev/null @@ -1,56 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Parts\Channel\Channel; -use Discord\Parts\Guild\Guild; -use Discord\Parts\Thread\Thread; -use Discord\WebSockets\Event; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#thread-update - * - * @since 7.0.0 - */ -class ThreadUpdate extends Event -{ - public function handle($data) - { - $threadPart = $oldThread = null; - - /** @var ?Guild */ - if ($guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - /** @var ?Channel */ - if ($parent = yield $guild->channels->cacheGet($data->parent_id)) { - /** @var ?Thread */ - if ($oldThread = yield $parent->threads->cacheGet($data->id)) { - // Swap - $threadPart = $oldThread; - $oldThread = clone $oldThread; - - $threadPart->fill((array) $data); - } - } - } - - if ($threadPart === null) { - /** @var Thread */ - $threadPart = $this->factory->part(Thread::class, (array) $data, true); - } - - if (isset($parent)) { - $parent->threads->set($data->id, $threadPart); - } - - return [$threadPart, $oldThread]; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/TypingStart.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/TypingStart.php deleted file mode 100644 index 781d11f..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/TypingStart.php +++ /dev/null @@ -1,45 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Parts\Guild\Guild; -use Discord\Parts\WebSockets\TypingStart as TypingStartPart; -use Discord\WebSockets\Event; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#typing-start - * - * @see \Discord\Parts\WebSockets\TypingStart - * - * @since 2.1.3 - */ -class TypingStart extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - $typing = $this->factory->part(TypingStartPart::class, (array) $data, true); - - if (isset($data->member)) { - /** @var ?Guild */ - if ($guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - $this->cacheMember($guild->members, (array) $data->member); - } - - $this->cacheUser($data->member->user); - } - - return $typing; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/UserUpdate.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/UserUpdate.php deleted file mode 100644 index 3e3c4df..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/UserUpdate.php +++ /dev/null @@ -1,41 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\WebSockets\Event; -use Discord\Parts\User\User; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#user-update - * - * @since 7.0.0 - */ -class UserUpdate extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - /** @var User */ - if ($oldUser = yield $this->discord->users->cacheGet($data->id)) { - $userPart = clone $oldUser; - $userPart->fill((array) $data); - } else { - /** @var User */ - $userPart = $this->discord->users->create($data, true); - } - $this->discord->users->set($data->id, $userPart); - - return [$userPart, $oldUser]; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/VoiceServerUpdate.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/VoiceServerUpdate.php deleted file mode 100644 index c3f6eb3..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/VoiceServerUpdate.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Parts\WebSockets\VoiceServerUpdate as VoiceServerUpdatePart; -use Discord\WebSockets\Event; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#voice-server-update - * - * @see \Discord\Parts\WebSockets\VoiceServerUpdate - * - * @since 4.0.0 - */ -class VoiceServerUpdate extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - return $this->factory->part(VoiceServerUpdatePart::class, (array) $data, true); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/VoiceStateUpdate.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/VoiceStateUpdate.php deleted file mode 100644 index 4350ad1..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/VoiceStateUpdate.php +++ /dev/null @@ -1,77 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Parts\WebSockets\VoiceStateUpdate as VoiceStateUpdatePart; -use Discord\WebSockets\Event; -use Discord\Parts\Channel\Channel; -use Discord\Parts\Guild\Guild; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#voice-state-update - * - * @see \Discord\Parts\WebSockets\VoiceStateUpdate - * - * @since 2.1.3 - */ -class VoiceStateUpdate extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - $oldVoiceState = null; - /** @var VoiceStateUpdatePart */ - $statePart = $this->factory->part(VoiceStateUpdatePart::class, (array) $data, true); - - /** @var ?Guild */ - if ($guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - // Preload target new voice state channel - yield $guild->channels->cacheGet($data->channel_id); - - /** @var ?Channel */ - foreach ($guild->channels as $channel) { - if (! $channel->isVoiceBased()) { - continue; - } - - /** @var ?VoiceStateUpdatePart */ - if ($cachedVoiceState = yield $channel->members->cacheGet($data->user_id)) { - // Copy - $oldVoiceState = clone $cachedVoiceState; - if ($cachedVoiceState->channel_id == $data->channel_id) { - // Move - $statePart = $cachedVoiceState; - // Update - $statePart->fill((array) $data); - } - } - - if ($channel->id == $data->channel_id) { - // Add/update this member to the voice channel - yield $channel->members->cache->set($data->user_id, $statePart); - } else { - // Remove each voice channels containing this member - yield $channel->members->cache->delete($data->user_id); - } - } - - if (isset($data->member)) { - $this->cacheMember($guild->members, (array) $data->member); - $this->cacheUser($data->member->user); - } - } - - return [$statePart, $oldVoiceState]; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/WebhooksUpdate.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/WebhooksUpdate.php deleted file mode 100644 index 1d517ec..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Events/WebhooksUpdate.php +++ /dev/null @@ -1,48 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets\Events; - -use Discord\Parts\Channel\Channel; -use Discord\Parts\Thread\Thread; -use Discord\WebSockets\Event; - -/** - * @link https://discord.com/developers/docs/topics/gateway-events#webhooks-update - * - * @since 7.0.0 - */ -class WebhooksUpdate extends Event -{ - /** - * {@inheritDoc} - */ - public function handle($data) - { - if ($guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { - /** @var ?Channel */ - if (! $channel = yield $guild->channels->cacheGet($data->channel_id)) { - /** @var Channel */ - foreach ($guild->channels as $parent) { - /** @var ?Thread */ - if ($thread = yield $parent->threads->cacheGet($data->channel_id)) { - $channel = $thread; - break; - } - } - } - - return [$guild, $channel ?? (object) ['id' => $data->channel_id]]; - } - - return [(object) ['id' => $data->guild_id], (object) ['id' => $data->channel_id]]; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Handlers.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Handlers.php deleted file mode 100644 index 8b90f0c..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Handlers.php +++ /dev/null @@ -1,188 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets; - -/** - * This class contains all the handlers for the individual WebSocket events. - * - * @since 2.1.3 - */ -class Handlers -{ - /** - * An array of handlers. - * - * @var array Array of handlers. - */ - protected $handlers = []; - - /** - * Constructs the list of handlers. - */ - public function __construct() - { - // General - $this->addHandler(Event::PRESENCE_UPDATE, \Discord\WebSockets\Events\PresenceUpdate::class); - $this->addHandler(Event::TYPING_START, \Discord\WebSockets\Events\TypingStart::class); - $this->addHandler(Event::VOICE_STATE_UPDATE, \Discord\WebSockets\Events\VoiceStateUpdate::class); - $this->addHandler(Event::VOICE_SERVER_UPDATE, \Discord\WebSockets\Events\VoiceServerUpdate::class); - $this->addHandler(Event::INTERACTION_CREATE, \Discord\WebSockets\Events\InteractionCreate::class); - $this->addHandler(Event::USER_UPDATE, \Discord\WebSockets\Events\UserUpdate::class); - - // Guild Event handlers - $this->addHandler(Event::GUILD_CREATE, \Discord\WebSockets\Events\GuildCreate::class); - $this->addHandler(Event::GUILD_DELETE, \Discord\WebSockets\Events\GuildDelete::class); - $this->addHandler(Event::GUILD_UPDATE, \Discord\WebSockets\Events\GuildUpdate::class); - $this->addHandler(Event::GUILD_INTEGRATIONS_UPDATE, \Discord\WebSockets\Events\GuildIntegrationsUpdate::class); - $this->addHandler(Event::INTEGRATION_CREATE, \Discord\WebSockets\Events\IntegrationCreate::class); - $this->addHandler(Event::INTEGRATION_UPDATE, \Discord\WebSockets\Events\IntegrationUpdate::class); - $this->addHandler(Event::INTEGRATION_DELETE, \Discord\WebSockets\Events\IntegrationDelete::class); - $this->addHandler(Event::WEBHOOKS_UPDATE, \Discord\WebSockets\Events\WebhooksUpdate::class); - $this->addHandler(Event::APPLICATION_COMMAND_PERMISSIONS_UPDATE, \Discord\WebSockets\Events\ApplicationCommandPermissionsUpdate::class); - $this->addHandler(Event::GUILD_AUDIT_LOG_ENTRY_CREATE, \Discord\WebSockets\Events\GuildAuditLogEntryCreate::class); - - // Invite handlers - $this->addHandler(Event::INVITE_CREATE, \Discord\WebSockets\Events\InviteCreate::class); - $this->addHandler(Event::INVITE_DELETE, \Discord\WebSockets\Events\InviteDelete::class); - - // Channel Event handlers - $this->addHandler(Event::CHANNEL_CREATE, \Discord\WebSockets\Events\ChannelCreate::class); - $this->addHandler(Event::CHANNEL_UPDATE, \Discord\WebSockets\Events\ChannelUpdate::class); - $this->addHandler(Event::CHANNEL_DELETE, \Discord\WebSockets\Events\ChannelDelete::class); - $this->addHandler(Event::CHANNEL_PINS_UPDATE, \Discord\WebSockets\Events\ChannelPinsUpdate::class); - - // Ban Event handlers - $this->addHandler(Event::GUILD_BAN_ADD, \Discord\WebSockets\Events\GuildBanAdd::class); - $this->addHandler(Event::GUILD_BAN_REMOVE, \Discord\WebSockets\Events\GuildBanRemove::class); - - // Guild Emoji Event handler - $this->addHandler(Event::GUILD_EMOJIS_UPDATE, \Discord\WebSockets\Events\GuildEmojisUpdate::class); - - // Guild Sticker Event handler - $this->addHandler(Event::GUILD_STICKERS_UPDATE, \Discord\WebSockets\Events\GuildStickersUpdate::class); - - // Message handlers - $this->addHandler(Event::MESSAGE_CREATE, \Discord\WebSockets\Events\MessageCreate::class, ['message']); - $this->addHandler(Event::MESSAGE_DELETE, \Discord\WebSockets\Events\MessageDelete::class); - $this->addHandler(Event::MESSAGE_DELETE_BULK, \Discord\WebSockets\Events\MessageDeleteBulk::class); - $this->addHandler(Event::MESSAGE_UPDATE, \Discord\WebSockets\Events\MessageUpdate::class); - $this->addHandler(Event::MESSAGE_REACTION_ADD, \Discord\WebSockets\Events\MessageReactionAdd::class); - $this->addHandler(Event::MESSAGE_REACTION_REMOVE, \Discord\WebSockets\Events\MessageReactionRemove::class); - $this->addHandler(Event::MESSAGE_REACTION_REMOVE_ALL, \Discord\WebSockets\Events\MessageReactionRemoveAll::class); - $this->addHandler(Event::MESSAGE_REACTION_REMOVE_EMOJI, \Discord\WebSockets\Events\MessageReactionRemoveEmoji::class); - $this->addHandler(Event::MESSAGE_POLL_VOTE_ADD, \Discord\WebSockets\Events\MessagePollVoteAdd::class); - $this->addHandler(Event::MESSAGE_POLL_VOTE_REMOVE, \Discord\WebSockets\Events\MessagePollVoteRemove::class); - - // New Member Event handlers - $this->addHandler(Event::GUILD_MEMBER_ADD, \Discord\WebSockets\Events\GuildMemberAdd::class); - $this->addHandler(Event::GUILD_MEMBER_REMOVE, \Discord\WebSockets\Events\GuildMemberRemove::class); - $this->addHandler(Event::GUILD_MEMBER_UPDATE, \Discord\WebSockets\Events\GuildMemberUpdate::class); - - // New Role Event handlers - $this->addHandler(Event::GUILD_ROLE_CREATE, \Discord\WebSockets\Events\GuildRoleCreate::class); - $this->addHandler(Event::GUILD_ROLE_DELETE, \Discord\WebSockets\Events\GuildRoleDelete::class); - $this->addHandler(Event::GUILD_ROLE_UPDATE, \Discord\WebSockets\Events\GuildRoleUpdate::class); - - // Guild Scheduled Events Event handlers - $this->addHandler(Event::GUILD_SCHEDULED_EVENT_CREATE, \Discord\WebSockets\Events\GuildScheduledEventCreate::class); - $this->addHandler(Event::GUILD_SCHEDULED_EVENT_UPDATE, \Discord\WebSockets\Events\GuildScheduledEventUpdate::class); - $this->addHandler(Event::GUILD_SCHEDULED_EVENT_DELETE, \Discord\WebSockets\Events\GuildScheduledEventDelete::class); - $this->addHandler(Event::GUILD_SCHEDULED_EVENT_USER_ADD, \Discord\WebSockets\Events\GuildScheduledEventUserAdd::class); - $this->addHandler(Event::GUILD_SCHEDULED_EVENT_USER_REMOVE, \Discord\WebSockets\Events\GuildScheduledEventUserRemove::class); - - // Thread events - $this->addHandler(Event::THREAD_CREATE, \Discord\WebSockets\Events\ThreadCreate::class); - $this->addHandler(Event::THREAD_UPDATE, \Discord\WebSockets\Events\ThreadUpdate::class); - $this->addHandler(Event::THREAD_DELETE, \Discord\WebSockets\Events\ThreadDelete::class); - $this->addHandler(Event::THREAD_LIST_SYNC, \Discord\WebSockets\Events\ThreadListSync::class); - $this->addHandler(Event::THREAD_MEMBER_UPDATE, \Discord\WebSockets\Events\ThreadMemberUpdate::class); - $this->addHandler(Event::THREAD_MEMBERS_UPDATE, \Discord\WebSockets\Events\ThreadMembersUpdate::class); - - // Stage Instance Event Handlers - $this->addHandler(Event::STAGE_INSTANCE_CREATE, \Discord\WebSockets\Events\StageInstanceCreate::class); - $this->addHandler(Event::STAGE_INSTANCE_UPDATE, \Discord\WebSockets\Events\StageInstanceUpdate::class); - $this->addHandler(Event::STAGE_INSTANCE_DELETE, \Discord\WebSockets\Events\StageInstanceDelete::class); - - // Auto Moderation Event Handlers - $this->addHandler(Event::AUTO_MODERATION_RULE_CREATE, \Discord\WebSockets\Events\AutoModerationRuleCreate::class); - $this->addHandler(Event::AUTO_MODERATION_RULE_UPDATE, \Discord\WebSockets\Events\AutoModerationRuleUpdate::class); - $this->addHandler(Event::AUTO_MODERATION_RULE_DELETE, \Discord\WebSockets\Events\AutoModerationRuleDelete::class); - $this->addHandler(Event::AUTO_MODERATION_ACTION_EXECUTION, \Discord\WebSockets\Events\AutoModerationActionExecution::class); - - // Soundboard Event Handlers - $this->addHandler(Event::GUILD_SOUNDBOARD_SOUND_CREATE, \Discord\WebSockets\Events\GuildSoundboardSoundCreate::class); - $this->addHandler(Event::GUILD_SOUNDBOARD_SOUND_UPDATE, \Discord\WebSockets\Events\GuildSoundboardSoundUpdate::class); - $this->addHandler(Event::GUILD_SOUNDBOARD_SOUND_DELETE, \Discord\WebSockets\Events\GuildSoundboardSoundDelete::class); - $this->addHandler(Event::SOUNDBOARD_SOUNDS, \Discord\WebSockets\Events\SoundboardSounds::class); - } - - /** - * Adds a handler to the list. - * - * @param string $event The WebSocket event name. - * @param string $classname The Event class name. - * @param array $alternatives Alternative event names for the handler. - */ - public function addHandler(string $event, string $classname, array $alternatives = []): void - { - $this->handlers[$event] = [ - 'class' => $classname, - 'alternatives' => $alternatives, - ]; - } - - /** - * Returns a handler. - * - * @param string $event The WebSocket event name. - * - * @return array|null The Event class name or null; - */ - public function getHandler(string $event): ?array - { - if (isset($this->handlers[$event])) { - return $this->handlers[$event]; - } - - return null; - } - - /** - * Returns the handlers array. - * - * @return array Array of handlers. - */ - public function getHandlers(): array - { - return $this->handlers; - } - - /** - * Returns the handlers. - * - * @return array Array of handler events. - */ - public function getHandlerKeys(): array - { - return array_keys($this->handlers); - } - - /** - * Removes a handler. - * - * @param string $event The event handler to remove. - */ - public function removeHandler(string $event): void - { - unset($this->handlers[$event]); - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Intents.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Intents.php deleted file mode 100644 index 8ebb3fd..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Intents.php +++ /dev/null @@ -1,274 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets; - -/** - * Contains constants used in intents. - * - * @link https://discord.com/developers/docs/topics/gateway#gateway-intents - * - * @since 5.0.0 - */ -class Intents -{ - /** - * Guilds events. - * - * - GUILD_CREATE - * - GUILD_UPDATE - * - GUILD_DELETE - * - GUILD_ROLE_CREATE - * - GUILD_ROLE_UPDATE - * - GUILD_ROLE_DELETE - * - CHANNEL_CREATE - * - CHANNEL_UPDATE - * - CHANNEL_DELETE - * - CHANNEL_PINS_UPDATE - * - STAGE_INSTANCE_CREATE - * - STAGE_INSTANCE_UPDATE - * - STAGE_INSTANCE_DELETE - */ - public const GUILDS = (1 << 0); - - /** - * Guild member events (Privileged). - * - * - GUILD_MEMBER_ADD - * - GUILD_MEMBER_UPDATE - * - GUILD_MEMBER_REMOVE - */ - public const GUILD_MEMBERS = (1 << 1); - - /** - * Guild moderation events. - * - GUILD_AUDIT_LOG_ENTRY_CREATE - * - GUILD_BAN_ADD - * - GUILD_BAN_REMOVE. - */ - public const GUILD_MODERATION = (1 << 2); - - /** - * Guild emoji and sticker events. - * - * - GUILD_EMOJIS_UPDATE - * - GUILD_STICKERS_UPDATE - */ - public const GUILD_EMOJIS_AND_STICKERS = (1 << 3); - - /** - * Guild integration events. - * - * - GUILD_INTEGRATIONS_UPDATE - * - INTEGRATION_CREATE - * - INTEGRATION_UPDATE - * - INTEGRATION_DELETE - */ - public const GUILD_INTEGRATIONS = (1 << 4); - - /** - * Guild webhook events. - * - * - WEBHOOKS_UPDATE - */ - public const GUILD_WEBHOOKS = (1 << 5); - - /** - * Guild invite events. - * - * - INVITE_CREATE - * - INVITE_DELETE - */ - public const GUILD_INVITES = (1 << 6); - - /** - * Guild voice state events. - * - * - VOICE_STATE_UPDATE - */ - public const GUILD_VOICE_STATES = (1 << 7); - - /** - * Guild presence events (Privileged). - * - * - PRESENCE_UPDATE - */ - public const GUILD_PRESENCES = (1 << 8); - - /** - * Guild message events. - * - * - MESSAGE_CREATE - * - MESSAGE_UPDATE - * - MESSAGE_DELETE - * - MESSAGE_DELETE_BULK - */ - public const GUILD_MESSAGES = (1 << 9); - - /** - * Guild message reaction events. - * - * - MESSAGE_REACTION_ADD - * - MESSAGE_REACTION_REMOVE - * - MESSAGE_REACTION_REMOVE_ALL - * - MESSAGE_REACTION_REMOVE_EMOJI - */ - public const GUILD_MESSAGE_REACTIONS = (1 << 10); - - /** - * Guild typing events. - * - * - TYPING_START - */ - public const GUILD_MESSAGE_TYPING = (1 << 11); - - /** - * Direct message events. - * - * - CHANNEL_CREATE - * - MESSAGE_CREATE - * - MESSAGE_UPDATE - * - MESSAGE_DELETE - * - CHANNEL_PINS_UPDATE - */ - public const DIRECT_MESSAGES = (1 << 12); - - /** - * Direct message reaction events. - * - * - MESSAGE_REACTION_ADD - * - MESSAGE_REACTION_REMOVE - * - MESSAGE_REACTION_REMOVE_ALL - * - MESSAGE_REACTION_REMOVE_EMOJI - */ - public const DIRECT_MESSAGE_REACTIONS = (1 << 13); - - /** - * Direct message typing events. - * - * - TYPING_START - */ - public const DIRECT_MESSAGE_TYPING = (1 << 14); - - /** - * Message content intent (Privileged). - * - * @link https://discord.com/developers/docs/topics/gateway#message-content-intent - * @link https://dis.gd/mcfaq - * - * @since 7.3.0 - */ - public const MESSAGE_CONTENT = (1 << 15); - - /** - * Guild scheduled events events. - * - * - GUILD_SCHEDULED_EVENT_CREATE - * - GUILD_SCHEDULED_EVENT_UPDATE - * - GUILD_SCHEDULED_EVENT_DELETE - * - GUILD_SCHEDULED_EVENT_USER_ADD - * - GUILD_SCHEDULED_EVENT_USER_REMOVE - */ - public const GUILD_SCHEDULED_EVENTS = (1 << 16); - - /** - * Auto moderation rule events. - * - * - AUTO_MODERATION_RULE_CREATE - * - AUTO_MODERATION_RULE_UPDATE - * - AUTO_MODERATION_RULE_DELETE - */ - public const AUTO_MODERATION_CONFIGURATION = (1 << 20); - - /** - * Auto moderation execution events. - * - * - AUTO_MODERATION_ACTION_EXECUTION - */ - public const AUTO_MODERATION_EXECUTION = (1 << 21); - - /** - * Guild message poll events. - * - * - MESSAGE_POLL_VOTE_ADD - * - MESSAGE_POLL_VOTE_REMOVE - */ - public const GUILD_MESSAGE_POLLS = (1 << 24); - - /** - * Direct message poll events. - * - * - MESSAGE_POLL_VOTE_ADD - * - MESSAGE_POLL_VOTE_REMOVE - */ - public const DIRECT_MESSAGE_POLLS = (1 << 25); - - /** - * Returns an array of valid intents. - * - * @return array - */ - public static function getValidIntents(): array - { - $reflect = new \ReflectionClass(__CLASS__); - - return array_values($reflect->getConstants()); - } - - /** - * Returns an integer value that represents all intents. - * - * @return int - */ - public static function getAllIntents(): int - { - $intentVal = 0; - - foreach (self::getValidIntents() as $intent) { - $intentVal |= $intent; - } - - return $intentVal; - } - - /** - * Returns an integer value that represents the default intents. - * This is all intents minus the privileged intents. - * - * @return int - */ - public static function getDefaultIntents(): int - { - return static::getAllIntents() & ~(static::GUILD_MEMBERS | static::GUILD_PRESENCES | static::MESSAGE_CONTENT); - } - - /** - * Converts an integer intent representation into an array of strings, - * representing the enabled intents. Useful for debugging. - * - * @param int $intents - * - * @return string[] - */ - public static function getIntentArray(int $intents): array - { - $results = []; - $reflect = new \ReflectionClass(__CLASS__); - - foreach ($reflect->getConstants() as $intent => $val) { - if ($intents & $val) { - $results[] = $intent; - } - } - - return $results; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Op.php b/vendor/team-reflex/discord-php/src/Discord/WebSockets/Op.php deleted file mode 100644 index 8abe546..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/WebSockets/Op.php +++ /dev/null @@ -1,212 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord\WebSockets; - -/** - * Contains constants used in websockets. - * - * @link https://discord.com/developers/docs/topics/opcodes-and-status-codes - * - * @since 3.2.1 - */ -class Op -{ - /** - * Gateway Opcodes. - * - * All gateway events in Discord are tagged with an opcode that denotes the - * payload type. Your connection to our gateway may also sometimes close. - * When it does, you will receive a close code that tells you what happened. - * - * @link https://discord.com/developers/docs/topics/opcodes-and-status-codes#gateway-gateway-opcodes - */ - - /** Dispatches an event. */ - public const OP_DISPATCH = 0; - /** Used for ping checking. */ - public const OP_HEARTBEAT = 1; - /** Used for client handshake. */ - public const OP_IDENTIFY = 2; - /** Used to update the client presence. */ - public const OP_PRESENCE_UPDATE = 3; - /** Used to join/move/leave voice channels. */ - public const OP_VOICE_STATE_UPDATE = 4; - /** Used for voice ping checking. */ - public const OP_VOICE_SERVER_PING = 5; - /** Used to resume a closed connection. */ - public const OP_RESUME = 6; - /** Used to redirect clients to a new gateway. */ - public const OP_RECONNECT = 7; - /** Used to request member chunks. */ - public const OP_GUILD_MEMBER_CHUNK = 8; - /** Used to notify clients when they have an invalid session. */ - public const OP_INVALID_SESSION = 9; - /** Used to pass through the heartbeat interval. */ - public const OP_HELLO = 10; - /** Used to acknowledge heartbeats. */ - public const OP_HEARTBEAT_ACK = 11; - /** Request soundboard sounds. */ - public const REQUEST_SOUNDBOARD_SOUNDS = 31; - - - /** - * Voice Opcodes. - * - * Our voice gateways have their own set of opcodes and close codes. - * - * @link https://discord.com/developers/docs/topics/opcodes-and-status-codes#voice-voice-opcodes - */ - - /** Used to begin a voice WebSocket connection. */ - public const VOICE_IDENTIFY = 0; - /** Used to select the voice protocol. */ - public const VOICE_SELECT_PROTO = 1; - /** Used to complete the WebSocket handshake. */ - public const VOICE_READY = 2; - /** Used to keep the WebSocket connection alive. */ - public const VOICE_HEARTBEAT = 3; - /** Used to describe the session. */ - public const VOICE_DESCRIPTION = 4; - /** Used to identify which users are speaking. */ - public const VOICE_SPEAKING = 5; - /** Sent by the Discord servers to acknowledge heartbeat */ - public const VOICE_HEARTBEAT_ACK = 6; - /** Resume a connection. */ - public const VOICE_RESUME = 7; - /** Hello packet used to pass heartbeat interval */ - public const VOICE_HELLO = 8; - /** Acknowledge a successful session resume. */ - public const VOICE_RESUMED = 9; - /** One or more clients have connected to the voice channel */ - public const VOICE_CLIENT_CONNECT = 11; - /** A client has disconnected from the voice channel. */ - public const VOICE_CLIENT_DISCONNECT = 13; - /** A downgrade from the DAVE protocol is upcoming. */ - public const VOICE_DAVE_PREPARE_TRANSITION = 21; - /** Execute a previously announced protocol transition. */ - public const VOICE_DAVE_EXECUTE_TRANSITION = 22; - /** Acknowledge readiness previously announced transition. */ - public const VOICE_DAVE_TRANSITION_READY = 23; - /** A DAVE protocol version or group change is upcoming. */ - public const VOICE_DAVE_PREPARE_EPOCH = 24; - /** Credential and public key for MLS external sender. */ - public const VOICE_DAVE_MLS_EXTERNAL_SENDER = 25; - /** MLS Key Package for pending group member. */ - public const VOICE_DAVE_MLS_KEY_PACKAGE = 26; - /** MLS Proposals to be appended or revoked. */ - public const VOICE_DAVE_MLS_PROPOSALS = 27; - /** MLS Commit with optional MLS Welcome messages. */ - public const VOICE_DAVE_MLS_COMMIT_WELCOME = 28; - /** MLS Commit to be processed for upcoming transition. */ - public const VOICE_DAVE_MLS_ANNOUNCE_COMMIT_TRANSITION = 29; - /** MLS Welcome to group for upcoming transition. */ - public const VOICE_DAVE_MLS_WELCOME = 30; - /** Flag invalid commit or welcome, request re-add */ - public const VOICE_DAVE_MLS_INVALID_COMMIT_WELCOME = 31; - - /** - * Gateway Close Event Codes. - * - * In order to prevent broken reconnect loops, you should consider some - * close codes as a signal to stop reconnecting. This can be because your - * token expired, or your identification is invalid. This table explains - * what the application defined close codes for the gateway are, and which - * close codes you should not attempt to reconnect. - * - * @link https://discord.com/developers/docs/topics/opcodes-and-status-codes#gateway-gateway-close-event-codes - */ - - /** Normal close or heartbeat is invalid. */ - public const CLOSE_NORMAL = 1000; - /** Abnormal close. */ - public const CLOSE_ABNORMAL = 1006; - /** Unknown error. */ - public const CLOSE_UNKNOWN_ERROR = 4000; - /** Unknown opcode was sent. */ - public const CLOSE_INVALID_OPCODE = 4001; - /** Invalid message was sent. */ - public const CLOSE_INVALID_MESSAGE = 4002; - /** Not authenticated. */ - public const CLOSE_NOT_AUTHENTICATED = 4003; - /** Invalid token on IDENTIFY. */ - public const CLOSE_INVALID_TOKEN = 4004; - /** Already authenticated. */ - public const CONST_ALREADY_AUTHD = 4005; - /** Session is invalid. */ - public const CLOSE_INVALID_SESSION = 4006; - /** Invalid RESUME sequence. */ - public const CLOSE_INVALID_SEQ = 4007; - /** Too many messages sent. */ - public const CLOSE_TOO_MANY_MSG = 4008; - /** Session timeout. */ - public const CLOSE_SESSION_TIMEOUT = 4009; - /** Invalid shard. */ - public const CLOSE_INVALID_SHARD = 4010; - /** Sharding required. */ - public const CLOSE_SHARDING_REQUIRED = 4011; - /** Invalid API version. */ - public const CLOSE_INVALID_VERSION = 4012; - /** Invalid intents. */ - public const CLOSE_INVALID_INTENTS = 4013; - /** Disallowed intents. */ - public const CLOSE_DISALLOWED_INTENTS = 4014; - - /** - * Voice Close Event Codes. - * - * @link https://discord.com/developers/docs/topics/opcodes-and-status-codes#voice-voice-close-event-codes - */ - - /** Can't find the server. */ - public const CLOSE_VOICE_SERVER_NOT_FOUND = 4011; - /** Unknown protocol. */ - public const CLOSE_VOICE_UNKNOWN_PROTO = 4012; - /** Disconnected from channel. */ - public const CLOSE_VOICE_DISCONNECTED = 4014; - /** Voice server crashed. */ - public const CLOSE_VOICE_SERVER_CRASH = 4015; - /** Unknown encryption mode. */ - public const CLOSE_VOICE_UNKNOWN_ENCRYPT = 4016; - - /** - * Returns the critical event codes that we should not reconnect after. - * - * @return array - */ - public static function getCriticalCloseCodes(): array - { - return [ - self::CLOSE_INVALID_TOKEN, - self::CLOSE_SHARDING_REQUIRED, - self::CLOSE_INVALID_SHARD, - self::CLOSE_INVALID_VERSION, - self::CLOSE_INVALID_INTENTS, - self::CLOSE_DISALLOWED_INTENTS, - ]; - } - - /** - * Returns the critical event codes for a voice websocket. - * - * @return array - */ - public static function getCriticalVoiceCloseCodes(): array - { - return [ - self::CLOSE_INVALID_SESSION, - self::CLOSE_INVALID_TOKEN, - self::CLOSE_VOICE_SERVER_NOT_FOUND, - self::CLOSE_VOICE_UNKNOWN_PROTO, - self::CLOSE_VOICE_UNKNOWN_ENCRYPT, - ]; - } -} diff --git a/vendor/team-reflex/discord-php/src/Discord/functions.php b/vendor/team-reflex/discord-php/src/Discord/functions.php deleted file mode 100644 index 13ede39..0000000 --- a/vendor/team-reflex/discord-php/src/Discord/functions.php +++ /dev/null @@ -1,366 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -namespace Discord; - -use ArrayIterator; -use Discord\Parts\Channel\Channel; -use Discord\Parts\Channel\Message; -use Discord\Parts\Guild\Role; -use Discord\Parts\Part; -use Discord\Parts\User\Member; -use Discord\Parts\User\User; -use React\EventLoop\Loop; -use React\EventLoop\LoopInterface; -use React\Promise\Deferred; -use React\Promise\Promise; -use React\Promise\PromiseInterface; -use Symfony\Component\OptionsResolver\Options; - -/** - * The HTML Color Table. - * - * @var array HTML Color Table. - * - * @since 5.0.12 - */ -const COLORTABLE = [ - 'indianred' => 0xcd5c5c, 'lightcoral' => 0xf08080, 'salmon' => 0xfa8072, 'darksalmon' => 0xe9967a, - 'lightsalmon' => 0xffa07a, 'crimson' => 0xdc143c, 'red' => 0xff0000, 'firebrick' => 0xb22222, - 'darkred' => 0x8b0000, 'pink' => 0xffc0cb, 'lightpink' => 0xffb6c1, 'hotpink' => 0xff69b4, - 'deeppink' => 0xff1493, 'mediumvioletred' => 0xc71585, 'palevioletred' => 0xdb7093, - 'coral' => 0xff7f50, 'tomato' => 0xff6347, 'orangered' => 0xff4500, - 'darkorange' => 0xff8c00, 'orange' => 0xffa500, 'gold' => 0xffd700, 'yellow' => 0xffff00, - 'lightyellow' => 0xffffe0, 'lemonchiffon' => 0xfffacd, 'lightgoldenrodyellow' => 0xfafad2, - 'papayawhip' => 0xffefd5, 'moccasin' => 0xffe4b5, 'peachpuff' => 0xffdab9, 'palegoldenrod' => 0xeee8aa, - 'khaki' => 0xf0e68c, 'darkkhaki' => 0xbdb76b, 'lavender' => 0xe6e6fa, 'thistle' => 0xd8bfd8, - 'plum' => 0xdda0dd, 'violet' => 0xee82ee, 'orchid' => 0xda70d6, 'fuchsia' => 0xff00ff, - 'magenta' => 0xff00ff, 'mediumorchid' => 0xba55d3, 'mediumpurple' => 0x9370db, 'rebeccapurple' => 0x663399, - 'blueviolet' => 0x8a2be2, 'darkviolet' => 0x9400d3, 'darkorchid' => 0x9932cc, 'darkmagenta' => 0x8b008b, - 'purple' => 0x800080, 'indigo' => 0x4b0082, 'slateblue' => 0x6a5acd, 'darkslateblue' => 0x483d8b, - 'mediumslateblue' => 0x7b68ee, 'greenyellow' => 0xadff2f, 'chartreuse' => 0x7fff00, 'lawngreen' => 0x7cfc00, - 'lime' => 0x00ff00, 'limegreen' => 0x32cd32, 'palegreen' => 0x98fb98, 'lightgreen' => 0x90ee90, - 'mediumspringgreen' => 0x00fa9a, 'springgreen' => 0x00ff7f, 'mediumseagreen' => 0x3cb371, - 'seagreen' => 0x2e8b57, 'forestgreen' => 0x228b22, 'green' => 0x008000, 'darkgreen' => 0x006400, - 'yellowgreen' => 0x9acd32, 'olivedrab' => 0x6b8e23, 'olive' => 0x808000, 'darkolivegreen' => 0x556b2f, - 'mediumaquamarine' => 0x66cdaa, 'darkseagreen' => 0x8fbc8b, 'lightseagreen' => 0x20b2aa, - 'darkcyan' => 0x008b8b, 'teal' => 0x008080, 'aqua' => 0x00ffff, 'cyan' => 0x00ffff, 'lightcyan' => 0xe0ffff, - 'paleturquoise' => 0xafeeee, 'aquamarine' => 0x7fffd4, 'turquoise' => 0x40e0d0, 'mediumturquoise' => 0x48d1cc, - 'darkturquoise' => 0x00ced1, 'cadetblue' => 0x5f9ea0, 'steelblue' => 0x4682b4, 'lightsteelblue' => 0xb0c4de, - 'powderblue' => 0xb0e0e6, 'lightblue' => 0xadd8e6, 'skyblue' => 0x87ceeb, 'lightskyblue' => 0x87cefa, - 'deepskyblue' => 0x00bfff, 'dodgerblue' => 0x1e90ff, 'cornflowerblue' => 0x6495ed, - 'royalblue' => 0x4169e1, 'blue' => 0x0000ff, 'mediumblue' => 0x0000cd, - 'darkblue' => 0x00008b, 'navy' => 0x000080, 'midnightblue' => 0x191970, 'cornsilk' => 0xfff8dc, - 'blanchedalmond' => 0xffebcd, 'bisque' => 0xffe4c4, 'navajowhite' => 0xffdead, 'wheat' => 0xf5deb3, - 'burlywood' => 0xdeb887, 'tan' => 0xd2b48c, 'rosybrown' => 0xbc8f8f, 'sandybrown' => 0xf4a460, - 'goldenrod' => 0xdaa520, 'darkgoldenrod' => 0xb8860b, 'peru' => 0xcd853f, 'chocolate' => 0xd2691e, - 'saddlebrown' => 0x8b4513, 'sienna' => 0xa0522d, 'brown' => 0xa52a2a, 'maroon' => 0x800000, - 'white' => 0xffffff, 'snow' => 0xfffafa, 'honeydew' => 0xf0fff0, 'mintcream' => 0xf5fffa, 'azure' => 0xf0ffff, - 'aliceblue' => 0xf0f8ff, 'ghostwhite' => 0xf8f8ff, 'whitesmoke' => 0xf5f5f5, 'seashell' => 0xfff5ee, - 'beige' => 0xf5f5dc, 'oldlace' => 0xfdf5e6, 'floralwhite' => 0xfffaf0, 'ivory' => 0xfffff0, - 'antiquewhite' => 0xfaebd7, 'linen' => 0xfaf0e6, 'lavenderblush' => 0xfff0f5, 'mistyrose' => 0xffe4e1, - 'gainsboro' => 0xdcdcdc, 'lightgray' => 0xd3d3d3, 'silver' => 0xc0c0c0, 'darkgray' => 0xa9a9a9, - 'gray' => 0x808080, 'dimgray' => 0x696969, 'lightslategray' => 0x778899, 'slategray' => 0x708090, - 'darkslategray' => 0x2f4f4f, 'black' => 0x000000, -]; - -/** - * Checks to see if a part has been mentioned. - * - * @param Part|string $part The part or mention to look for. - * @param Message $message The message to check. - * - * @return bool Whether the part was mentioned. - * - * @since 4.0.0 - */ -function mentioned($part, Message $message): bool -{ - if ($part instanceof User || $part instanceof Member) { - return $message->mentions->has($part->id); - } elseif ($part instanceof Role) { - return $message->mention_roles->has($part->id); - } elseif ($part instanceof Channel) { - return strpos($message->content, "<#{$part->id}>") !== false; - } - - return strpos($message->content, $part) !== false; -} - -/** - * Get int value for color. - * - * @param int|string $color The color's int, hexcode or htmlname. - * - * @return int color - * - * @since 5.0.12 - */ -function getColor($color = 0): int -{ - if (is_integer($color)) { - return $color; - } - - if (preg_match('/^([a-z]+)$/ui', $color, $match)) { - $colorName = strtolower($match[1]); - if (isset(COLORTABLE[$colorName])) { - return COLORTABLE[$colorName]; - } - } - - if (preg_match('/^(#|0x|)([0-9a-f]{6})$/ui', $color, $match)) { - return hexdec($match[2]); - } - - return 0; -} - -/** - * Checks if a string contains an array of phrases. - * - * @param string $string The string to check. - * @param array $matches Array containing one or more phrases to match. - * - * @return bool - * - * @since 5.0.12 - */ -function contains(string $string, array $matches): bool -{ - foreach ($matches as $match) { - if (strpos($string, $match) !== false) { - return true; - } - } - - return false; -} - -/** - * Converts a string to studlyCase. - * - * @param string $string The string to convert. - * - * @return string - * - * @since 5.0.12 - */ -function studly(string $string): string -{ - $ret = ''; - preg_match_all('/([a-z0-9]+)/ui', $string, $matches); - - foreach ($matches[0] as $match) { - $ret .= ucfirst(strtolower($match)); - } - - return $ret; -} - -/** - * Polyfill to check if mbstring is installed. - * - * @param string $str - * - * @return int - * - * @since 5.0.12 - */ -function poly_strlen($str): int -{ - // If mbstring is installed, use it. - if (function_exists('mb_strlen')) { - return mb_strlen($str); - } - - return strlen($str); -} - -/** - * Converts a file to base64 representation. - * - * @param string $filepath - * - * @return string - * - * @since 5.1.0 - */ -function imageToBase64(string $filepath): string -{ - if (! file_exists($filepath)) { - throw new \InvalidArgumentException('The given filepath does not exist.'); - } - - $mimetype = \mime_content_type($filepath); - $allowed = ['image/jpeg', 'image/png', 'image/gif']; - - if (! in_array($mimetype, $allowed)) { - throw new \InvalidArgumentException('The given filepath is not one of jpeg, png or gif.'); - } - - $contents = file_get_contents($filepath); - - return "data:{$mimetype};base64,".base64_encode($contents); -} - -/** - * Takes a snowflake and calculates the time that the snowflake was generated. - * - * @param string|float $snowflake - * - * @return ?float - * - * @since 5.1.1 - */ -function getSnowflakeTimestamp(string $snowflake) -{ - if (\PHP_INT_SIZE === 4) { //x86 - $binary = \str_pad(\base_convert($snowflake, 10, 2), 64, 0, \STR_PAD_LEFT); - $time = \base_convert(\substr($binary, 0, 42), 2, 10); - $timestamp = (float) ((((int) \substr($time, 0, -3)) + 1420070400).'.'.\substr($time, -3)); - $workerID = (int) \base_convert(\substr($binary, 42, 5), 2, 10); - $processID = (int) \base_convert(\substr($binary, 47, 5), 2, 10); - $increment = (int) \base_convert(\substr($binary, 52, 12), 2, 10); - } else { //x64 - $snowflake = (int) $snowflake; - $time = (string) ($snowflake >> 22); - $timestamp = (float) ((((int) \substr($time, 0, -3)) + 1420070400).'.'.\substr($time, -3)); - $workerID = ($snowflake & 0x3E0000) >> 17; - $processID = ($snowflake & 0x1F000) >> 12; - $increment = ($snowflake & 0xFFF); - } - if ($timestamp < 1420070400 || $workerID < 0 || $workerID >= 32 || $processID < 0 || $processID >= 32 || $increment < 0 || $increment >= 4096) { - return null; - } - - return $timestamp; -} - -/** - * For use with the Symfony options resolver. - * For an option that takes a snowflake or part, returns the snowflake or the value of `id_field` on the part. - * - * @param string $id_field - * - * @return \Closure - * - * @since 6.0.0 - * - * @internal - */ -function normalizePartId($id_field = 'id'): \Closure -{ - return static function (Options $options, $part) use ($id_field) { - if ($part instanceof Part) { - return $part->{$id_field}; - } - - return $part; - }; -} - -/** - * Escape various Discord formatting and markdown into a plain text: - * _Italics_, **Bold**, __Underline__, ~~Strikethrough~~, ||spoiler|| - * `Code`, ```Code block```, > Quotes, >>> Block quotes - * #Channel @User - * A backslash will be added before each formatting symbol. - * - * @return string the escaped string unformatted as plain text - * - * @since 6.0.2 - */ -function escapeMarkdown(string $text): string -{ - return addcslashes($text, '#*:>@_`|~'); -} - -/** - * Run a deferred search in array. - * - * @param array|object $array Traversable, use $collection->getIterator() if searching in Collection - * @param callable $callback The filter function to run - * @param ?LoopInterface $loop Loop interface, use $discord->getLoop() - * - * @return Promise - * - * @since 10.0.0 Handle `$canceller` internally, use `cancel()` from the returned promise. - * @since 7.1.0 - */ -function deferFind($array, callable $callback, $loop = null): PromiseInterface -{ - $cancelled = false; - $deferred = new Deferred(function () use (&$cancelled) { - $cancelled = true; - }); - $iterator = new ArrayIterator($array); - - $loop ??= Loop::get(); - - $loop->addPeriodicTimer(0.001, function ($timer) use ($loop, $deferred, $iterator, $callback, &$cancelled) { - if ($cancelled) { - $loop->cancelTimer($timer); - $deferred->reject(new \RuntimeException('deferFind() cancelled')); - - return; - } - - if (! $iterator->valid()) { - $loop->cancelTimer($timer); - $deferred->resolve(null); - - return; - } - - $current = $iterator->current(); - if ($callback($current)) { - $loop->cancelTimer($timer); - $deferred->resolve($current); - - return; - } - - $iterator->next(); - }); - - return $deferred->promise(); -} - -/** - * Attempts to return a resolved value from a synchronous promise. - * Like await() but only for resolvable blocking promise without touching the loop. - * - * @param PromiseInterface $promiseInterface The synchronous promise. - * - * @return mixed null if failed to return. - * - * @see \React\Async\await() for asynchronous promise. - * - * @since 10.0.0 - */ -function nowait(PromiseInterface $promiseInterface) -{ - $resolved = null; - - $promiseInterface->then(static function ($value) use (&$resolved) { - return $resolved = $value; - }); - - return $resolved; -} - -/** - * File namespaces that were changed in new versions are aliased. - */ -class_alias(\Discord\Repository\Channel\StageInstanceRepository::class, '\Discord\Repository\Guild\StageInstanceRepository'); // @since 10.0.0 -class_alias(\Discord\Parts\Guild\CommandPermissions::class, '\Discord\Parts\Interactions\Command\Overwrite'); // @since 10.0.0 -class_alias(\Discord\Repository\Guild\CommandPermissionsRepository::class, '\Discord\Repository\Guild\OverwriteRepository'); // @since 10.0.0 diff --git a/vendor/team-reflex/discord-php/tests/CollectionsTest.php b/vendor/team-reflex/discord-php/tests/CollectionsTest.php deleted file mode 100644 index df9b1e3..0000000 --- a/vendor/team-reflex/discord-php/tests/CollectionsTest.php +++ /dev/null @@ -1,294 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -use Discord\Helpers\Collection; -use PHPUnit\Framework\TestCase; - -final class CollectionsTest extends TestCase -{ - public function testFrom() - { - $array = ['one', 'two', 'three']; - $collection = Collection::from($array); - - $this->assertEquals($array, $collection->toArray()); - } - - public function testPush() - { - $collection = new Collection([], null); - - $collection->push('test', 'one'); - $collection->push('two'); - - $this->assertEquals( - ['test', 'one', 'two'], - $collection->toArray(), - ); - } - - public function testDontAllowValuesOfDifferentType() - { - $collection = Collection::for(ClassOne::class); - - $obj1 = new ClassOne(); - $obj1->id = 1; - - $obj2 = new ClassOne(); - $obj2->id = 2; - - $wrongClassObject = new ClassTwo(); - $wrongClassObject->id = 3; - - $array = [$obj1, $obj2, $wrongClassObject]; - - $collection->push(...$array); - - $this->assertEquals([ - 1 => $obj1, - 2 => $obj2, - ], $collection->toArray()); - } - - public function testGet() - { - $collection = new Collection([ - [ - 'id' => 12, - 'test' => 'something', - ], - [ - 'id' => 13, - 'test' => 'something else', - ], - [ - 'id' => 14, - 'test' => 'something even more different', - ], - ], 'id'); - - $this->assertEquals( - [ - 'id' => 13, - 'test' => 'something else', - ], - $collection->get('id', 13) - ); - - $this->assertEquals( - [ - 'id' => 12, - 'test' => 'something', - ], - $collection->get('test', 'something') - ); - } - - public function testPull() - { - $array = [1, 2, 3, 4, 5]; - $collection = new Collection($array, null); - - $this->assertEquals( - 3, - $collection->pull(2) - ); - - unset($array[2]); - - $this->assertEquals( - $array, - $collection->toArray() - ); - } - - public function testPullReturnsDefaultIfKeyNotFound() - { - $array = [1, 2, 3, 4, 5]; - $collection = new Collection($array, null); - - $this->assertEquals('default', $collection->pull(10, 'default')); - } - - public function testFill() - { - $collection = new Collection([], null); - $collection->fill([1, 2, 3, 4, 5]); - - $this->assertEquals([1, 2, 3, 4, 5], $collection->toArray()); - } - - public function testCount() - { - $collection = new Collection([1, 2, 3, 4, 5], null); - - $this->assertEquals(5, $collection->count()); - } - - public function testFirst() - { - $collection = new Collection([1, 2, 3, 4, 5], null); - - $this->assertEquals(1, $collection->first()); - } - - public function testLast() - { - $collection = new Collection([1, 2, 3, 4, 5], null); - - $this->assertEquals(5, $collection->last()); - } - - public function testIsset() - { - $collection = new Collection([1, 2, 3, 4, 5], null); - - $this->assertEquals(true, $collection->isset(0)); - $this->assertEquals(false, $collection->isset(5)); - } - - public function testHas() - { - $collection = new Collection([1, 2, 3, 4, 5], null); - - $this->assertEquals(true, $collection->has(1, 2, 3)); - $this->assertEquals(true, $collection->has(0)); - $this->assertEquals(false, $collection->has(5, 6, 7)); - $this->assertEquals(false, $collection->has(0, 5)); - } - - public function testFilter() - { - $collection = new Collection([1, 2, 3, 4, 5], null); - $filteredCollection = $collection->filter(function (int $number) { - return $number > 2; - }); - - $this->assertEquals([3, 4, 5], $filteredCollection->toArray()); - } - - public function testFind() - { - $collection = new Collection([1, 2, 3, 4, 5], null); - - $this->assertEquals(2, $collection->find(function (int $number) { - return $number === 2; - })); - } - - public function testFindReturnsNullWhenNoResultsFound() - { - $collection = new Collection([1, 2, 3, 4, 5], null); - - $this->assertEquals(null, $collection->find(function (int $number) { - return false; - })); - } - - public function testClear() - { - $collection = new Collection([1, 2, 3, 4, 5], null); - $collection->clear(); - - $this->assertEquals([], $collection->toArray()); - } - - public function testMap() - { - $collection = new Collection([1, 2, 3, 4, 5], null); - $mappedArray = $collection->map(function (int $number) { - return $number * 2; - }); - - $this->assertEquals([ - 2, 4, 6, 8, 10, - ], $mappedArray->toArray()); - } - - public function testMerge() - { - $collection = new Collection([1, 2, 3, 4, 5], null); - $collection2 = new Collection([6, 7, 8], null); - - $collection->merge($collection2); - - $this->assertEquals( - range(1, 8), - $collection->toArray() - ); - } - - public function testMergeKeysAreOverwritten() - { - $collection = new Collection(['first' => 1, 'second' => 2, 'third' => 3], null); - $collection2 = new Collection(['first' => 3, 'second' => 4, 'fourth' => 5], null); - - $collection->merge($collection2); - - $this->assertEquals( - [ - 'first' => 3, - 'second' => 4, - 'third' => 3, - 'fourth' => 5, - ], - $collection->toArray() - ); - } - - public function testOffsetGet() - { - $collection = new Collection(['first' => 1, 'second' => 2, 'third' => 3], null); - - $this->assertEquals(2, $collection->offsetGet('second')); - } - - public function testOffsetSet() - { - $collection = new Collection(['first' => 1, 'second' => 2, 'third' => 3], null); - $collection->offsetSet('second', 4); - - $this->assertEquals(['first' => 1, 'second' => 4, 'third' => 3], $collection->toArray()); - } - - public function testOffsetUnset() - { - $collection = new Collection(['first' => 1, 'second' => 2, 'third' => 3], null); - $collection->offsetUnset('second'); - - $this->assertEquals(['first' => 1, 'third' => 3], $collection->toArray()); - } - - public function testIsIterable() - { - $collection = new Collection(range(1, 10), null); - - $collected = []; - - foreach ($collection as $item) { - $collected[] = $item; - } - - $this->assertEquals(range(1, 10), $collected); - } -} - -final class ClassOne -{ - public $id; -} - -final class ClassTwo -{ - public $id; -} diff --git a/vendor/team-reflex/discord-php/tests/DiscordSingleton.php b/vendor/team-reflex/discord-php/tests/DiscordSingleton.php deleted file mode 100644 index cb2d17f..0000000 --- a/vendor/team-reflex/discord-php/tests/DiscordSingleton.php +++ /dev/null @@ -1,113 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -use Discord\Discord; -use Monolog\Formatter\LineFormatter; -use Monolog\Handler\StreamHandler; -use Monolog\Logger; -use React\EventLoop\Loop; - -class DiscordSingleton -{ - private static $discord; - - /** - * @return Discord - */ - public static function get() - { - if (! self::$discord) { - self::new_cache(); - } - - return self::$discord; - } - - private static function new_cache() - { - $loop = Loop::get(); - - $redis = (new Clue\React\Redis\Factory($loop))->createLazyClient('localhost:6379'); - $cache = new WyriHaximus\React\Cache\Redis($redis); - - //$cache = new WyriHaximus\React\Cache\Filesystem(React\Filesystem\Filesystem::create($loop), getenv('RUNNER_TEMP').DIRECTORY_SEPARATOR); - - //$memcached = new \Memcached(); - //$memcached->addServer('localhost', 11211); - //$psr6Cache = new \Symfony\Component\Cache\Adapter\MemcachedAdapter($memcached, 'dphp', 0); - //$cache = new RedisPsr16($psr6Cache); - - $logger = new Logger('DiscordPHP-UnitTests'); - $handler = new StreamHandler(fopen(__DIR__.'/../phpunit.log', 'w')); - $formatter = new LineFormatter(null, null, true, true); - $handler->setFormatter($formatter); - $logger->pushHandler($handler); - - $discord = new Discord([ - 'token' => getenv('DISCORD_TOKEN'), - 'loop' => $loop, - 'logger' => $logger, - 'cache' => $cache, - ]); - - $e = null; - - $timer = $discord->getLoop()->addTimer(10, function () use (&$e) { - $e = new Exception('Timed out trying to connect to Discord.'); - }); - - $discord->on('ready', function (Discord $discord) use ($timer) { - $discord->getLoop()->cancelTimer($timer); - $discord->getLoop()->stop(); - }); - - self::$discord = $discord; - - $discord->run(); - - if ($e !== null) { - throw $e; - } - } - - private static function new() - { - $logger = new Logger('DiscordPHP-UnitTests'); - $handler = new StreamHandler(fopen(__DIR__.'/../phpunit.log', 'w')); - $formatter = new LineFormatter(null, null, true, true); - $handler->setFormatter($formatter); - $logger->pushHandler($handler); - - $discord = new Discord([ - 'token' => getenv('DISCORD_TOKEN'), - 'logger' => $logger, - ]); - - $e = null; - - $timer = $discord->getLoop()->addTimer(10, function () use (&$e) { - $e = new Exception('Timed out trying to connect to Discord.'); - }); - - $discord->on('ready', function (Discord $discord) use ($timer) { - $discord->getLoop()->cancelTimer($timer); - $discord->getLoop()->stop(); - }); - - $discord->getLoop()->run(); - - if ($e !== null) { - throw $e; - } - - self::$discord = $discord; - } -} diff --git a/vendor/team-reflex/discord-php/tests/DiscordTest.php b/vendor/team-reflex/discord-php/tests/DiscordTest.php deleted file mode 100644 index 33dc09a..0000000 --- a/vendor/team-reflex/discord-php/tests/DiscordTest.php +++ /dev/null @@ -1,47 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -use Discord\Discord; -use PHPUnit\Framework\TestCase; - -final class DiscordTest extends TestCase -{ - public function testCheckEnvVariablesPresent() - { - $this->assertNotFalse(getenv('DISCORD_TOKEN'), 'Discord token is missing'); - $this->assertNotFalse(getenv('TEST_CHANNEL'), 'Test channel ID is missing'); - $this->assertNotFalse(getenv('TEST_CHANNEL_NAME'), 'Test channel name is missing'); - } - - public function testSetGetCacheAsync() - { - wait(function (Discord $discord, $resolve) { - $cache = $discord->getCacheConfig()->interface; - $this->assertIsObject($cache, 'No CacheInterface set'); - $data = 'DiscordPHP 123'; - - $cache->set('DPHP.Test', $data)->then(function ($success) use ($cache, $data) { - $this->assertTrue($success, 'Failed to set a cache'); - if ($success) { - return $cache->get('DPHP.Test')->then(function ($value) use ($data) { - $this->assertEquals($data, $value, 'The stored cache mismatched'); - - return $value ? true : false; - }); - } - - return $success; - })->then($resolve, $resolve); - }, 10); - } -} diff --git a/vendor/team-reflex/discord-php/tests/DiscordTestCase.php b/vendor/team-reflex/discord-php/tests/DiscordTestCase.php deleted file mode 100644 index c1a7b9d..0000000 --- a/vendor/team-reflex/discord-php/tests/DiscordTestCase.php +++ /dev/null @@ -1,34 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -use Discord\Discord; -use Discord\Parts\Channel\Channel; -use PHPUnit\Framework\TestCase; - -class DiscordTestCase extends TestCase -{ - protected static Channel $channel; - - public static function setUpBeforeClass(): void - { - self::$channel = wait(function (Discord $discord, $resolve) { - $channel = $discord->getChannel(getenv('TEST_CHANNEL')); - $resolve($channel); - }); - } - - protected function channel() - { - return self::$channel; - } -} diff --git a/vendor/team-reflex/discord-php/tests/FunctionsTest.php b/vendor/team-reflex/discord-php/tests/FunctionsTest.php deleted file mode 100644 index e5734fe..0000000 --- a/vendor/team-reflex/discord-php/tests/FunctionsTest.php +++ /dev/null @@ -1,231 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -use Discord\Parts\Channel\Channel; -use Discord\Parts\Channel\Message; -use Discord\Parts\Guild\Role; -use Discord\Parts\User\Member; -use Discord\Parts\User\User; -use PHPUnit\Framework\TestCase; -use Symfony\Component\OptionsResolver\OptionsResolver; - -use function Discord\contains; -use function Discord\escapeMarkdown; -use function Discord\getColor; -use function Discord\mentioned; -use function Discord\normalizePartId; -use function Discord\poly_strlen; -use function Discord\studly; - -final class FunctionsTest extends TestCase -{ - /** - * @dataProvider containsProvider - */ - public function testContains($expected, $needle, $haystack): void - { - $this->assertEquals($expected, contains($needle, $haystack)); - } - - public function containsProvider(): array - { - return [ - [true, 'hello, world!', ['hello']], - [true, 'phpunit tests', ['p', 'u']], - [false, 'phpunit tests', ['a']], - ]; - } - - /** - * @dataProvider colorProvider - */ - public function testGetColor($expected, $color): void - { - $this->assertEquals($expected, getColor($color)); - } - - public function colorProvider(): array - { - return [ - [0xcd5c5c, 'indianred'], - [0x00bfff, 'deepskyblue'], - [0x00bfff, 0x00bfff], - [0, 0], - [0x00bfff, '0x00bfff'], - ]; - } - - /** - * @dataProvider strlenProvider - */ - public function testPolyStrlen($expected, $string): void - { - $this->assertEquals($expected, poly_strlen($string)); - } - - public function strlenProvider(): array - { - return [ - [5, 'abcde'], - [0, ''], - [1, ' '], - ]; - } - - /** - * @test - * @dataProvider mentionedProvider - */ - public function testMentioned($part, $attributes, $outcome): void - { - $mockDiscord = getMockDiscord(); - - $message = new Message( - $mockDiscord, - $attributes - ); - - $this->assertEquals($outcome, mentioned($part, $message)); - } - - public function mentionedProvider(): array - { - $mockDiscord = getMockDiscord(); - - return [ - 'member in mentions' => [ - new Member($mockDiscord, ['id' => '12345']), - [ - 'mentions' => [(object) ['id' => '12345']], - ], - true, - ], - 'member not in mentions' => [ - new Member($mockDiscord, ['id' => '123456']), - [ - 'mentions' => [(object) ['id' => '12345']], - ], - false, - ], - - 'user in mentions' => [ - new User($mockDiscord, ['id' => '12345']), - [ - 'mentions' => [(object) ['id' => '12345']], - ], - true, - ], - 'user not in mentions' => [ - new User($mockDiscord, ['id' => '123456']), - [ - 'mentions' => [(object) ['id' => '12345']], - ], - false, - ], - - 'user in mentions with several more' => [ - new User($mockDiscord, ['id' => '12345']), - [ - 'mentions' => [(object) ['id' => '123456'], (object) ['id' => '1234567'], (object) ['id' => '12345']], - ], - true, - ], - 'user not in mentions with several more' => [ - new User($mockDiscord, ['id' => '1234']), - [ - 'mentions' => [(object) ['id' => '123456'], (object) ['id' => '1234567'], (object) ['id' => '12345']], - ], - false, - ], - ]; - } - - /** - * @test - * @dataProvider studlyCaseProvider - */ - public function testStudlyCase(string $input, string $expected): void - { - $this->assertEquals($expected, studly($input)); - } - - public function studlyCaseProvider(): array - { - return [ - ['trains are cool', 'TrainsAreCool'], - ['robo smells like bananas', 'RoboSmellsLikeBananas'], - ['i LiKE TuRtLEs', 'ILikeTurtles'], - ]; - } - - /** - * @test - * @dataProvider normalizePartIdProvider - */ - public function testNormalizePartId($part, $expected): void - { - $this->assertEquals( - $expected, - (normalizePartId())( - new OptionsResolver(), - $part - ) - ); - } - - public function normalizePartIdProvider(): array - { - $mockDiscord = getMockDiscord(); - - return [ - [new User($mockDiscord, ['id' => '12345']), '12345'], - [new Channel($mockDiscord, ['id' => '12345']), '12345'], - [new Role($mockDiscord, ['id' => '12345']), '12345'], - ['12345', '12345'], - [null, null], - ]; - } - - /** - * @test - * @dataProvider escapeMarkdownProvider - */ - public function testEscapeMarkdown(string $input, string $expected): void - { - $this->assertEquals($expected, escapeMarkdown($input)); - } - - public function escapeMarkdownProvider(): array - { - return [ - [ - 'hello there this is plain text, nothing should be escaped in here! :D, except the colon', - 'hello there this is plain text, nothing should be escaped in here! \:D, except the colon', - ], - [ - 'I ~~really~~ like ||trains||', - 'I \~\~really\~\~ like \|\|trains\|\|', - ], - [ - '**Bananas**, in @@pyjamas', - '\*\*Bananas\*\*, in \@\@pyjamas', - ], - [ - '>Lopen naar de #zee', - '\>Lopen naar de \#zee', - ], - [ - 'actually nothing should be changed now', - 'actually nothing should be changed now', - ], - ]; - } -} diff --git a/vendor/team-reflex/discord-php/tests/Parts/Channel/ChannelTest.php b/vendor/team-reflex/discord-php/tests/Parts/Channel/ChannelTest.php deleted file mode 100644 index c5d8772..0000000 --- a/vendor/team-reflex/discord-php/tests/Parts/Channel/ChannelTest.php +++ /dev/null @@ -1,279 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -use Discord\Builders\MessageBuilder; -use Discord\Discord; -use Discord\Helpers\Collection; -use Discord\Parts\Channel\Channel; -use Discord\Parts\Channel\Message; -use Discord\Parts\Channel\Invite; - -/** - * @covers \Discord\Parts\Channel\Channel - */ -final class ChannelTest extends DiscordTestCase -{ - /** - * @covers \Discord\Parts\Channel\Channel::pinMessage - * @covers \Discord\Parts\Channel\Channel::getPinnedMessages - */ - public function testCanPinMessageAndGetPinnedMessage() - { - return wait(function (Discord $discord, $resolve) { - $this->channel()->sendMessage('testing pin message') - ->then(function (Message $message) { - return $this->channel()->pinMessage($message) - ->then(function () { - return $this->channel()->getPinnedMessages(); - }) - ->then(function (Collection $messages) use ($message) { - $this->assertGreaterThan(0, $messages->count()); - $this->assertContains($message->id, $messages->map(function ($message) { - return $message->id; - })); - }); - }) - ->then($resolve, $resolve); - }); - } - - /** - * @covers \Discord\Parts\Channel\Channel::pinMessage - * @covers \Discord\Parts\Channel\Channel::unpinMessage - * @covers \Discord\Parts\Channel\Channel::getPinnedMessages - */ - public function testCanPinAndUnpinMessageAndCheckItIsUnpinned() - { - return wait(function (Discord $discord, $resolve) { - $this->channel()->sendMessage('testing pin message') - ->then(function (Message $message) { - return $this->channel()->pinMessage($message) - ->then(function () use ($message) { - return $this->channel()->unpinMessage($message); - }) - ->then(function () { - return $this->channel()->getPinnedMessages(); - }) - ->then(function (Collection $messages) use ($message) { - $this->assertNotContains($message->id, $messages->map(function ($message) { - return $message->id; - })); - }); - }) - ->then($resolve, $resolve); - }); - } - - /** - * @covers \Discord\Parts\Channel\Channel::getMessage - */ - public function testCanGetMessage() - { - return wait(function (Discord $discord, $resolve) { - $this->channel()->sendMessage('testing get message') - ->then(function (Message $message) { - return $this->channel()->messages->fetch($message->id) - ->then(function (Message $getMessage) use ($message) { - $this->assertEquals($getMessage->id, $message->id); - }); - }) - ->then($resolve, $resolve); - }); - } - - /** - * @doesNotPerformAssertions - * @covers \Discord\Parts\Channel\Channel::createInvitek - */ - public function testCanCreateInvite() - { - return wait(function (Discord $discord, $resolve) { - $this->channel()->createInvite() - ->then($resolve, $resolve); - }); - } - - /** - * @doesNotPerformAssertions - * @covers \Discord\Parts\Channel\Channel::deleteMessages - */ - public function testCanDeleteMessagesWithZeroMessages() - { - return wait(function (Discord $discord, $resolve) { - $this->channel()->deleteMessages([]) - ->then($resolve, $resolve); - }); - } - - /** - * @doesNotPerformAssertions - * @covers \Discord\Parts\Channel\Channel::deleteMessages - */ - public function testCanDeleteMessagesWithOneMessage() - { - return wait(function (Discord $discord, $resolve) { - $this->channel()->sendMessage('testing delete one message') - ->then(function (Message $message) { - return $this->channel()->deleteMessages([$message]); - }) - ->then($resolve, $resolve); - }); - } - - /** - * @doesNotPerformAssertions - * @covers \Discord\Parts\Channel\Channel::deleteMessages - */ - public function testCanDeleteMessagesWithMultipleMessages() - { - return wait(function (Discord $discord, $resolve) { - $this->channel()->sendMessage('testing delete 1/2 message') - ->then(function (Message $m1) { - return $this->channel()->sendMessage('testing delete 2/2 message') - ->then(function (Message $m2) use ($m1) { - return $this->channel()->deleteMessages([$m1, $m2]); - }); - }) - ->then($resolve, $resolve); - }); - } - - /** - * @doesNotPerformAssertions - * @covers \Discord\Parts\Channel\Channel::limitDelete - */ - public function testCanLimitDeleteMessages() - { - return wait(function (Discord $discord, $resolve) { - $this->channel()->limitDelete(5) - ->then($resolve, $resolve); - }); - } - - /** - * @covers \Discord\Parts\Channel\Channel::getMessageHistory - */ - public function testCanGetMessageHistory() - { - return wait(function (Discord $discord, $resolve) { - $this->channel()->getMessageHistory([]) - ->then(function ($messages) { - $this->assertInstanceOf(Collection::class, $messages); - - if ($messages->count() < 1) { - $this->markTestSkipped('no messages were present when gettign message history - could not check if collection contained message objects.'); - - return; - } - - foreach ($messages as $message) { - $this->assertInstanceOf(Message::class, $message); - } - }) - ->then($resolve, $resolve); - }); - } - - /** - * @covers \Discord\Repository\Channel\InviteRepository::freshen - */ - public function testCanGetInvites() - { - return wait(function (Discord $discord, $resolve) { - $this->channel()->invites->freshen() - ->then(function (Collection $invites) { - $this->assertInstanceOf(Collection::class, $invites); - - if ($invites->count() < 1) { - $this->markTestSkipped('no invites were present when getting invites - could not check if collection contained invite objects.'); - - return; - } - - foreach ($invites as $invite) { - $this->assertInstanceOf(Invite::class, $invite); - } - }) - ->then($resolve, $resolve); - }); - } - - /** - * @covers \Discord\Parts\Channel\Channel::editMessage - */ - public function testCanEditMessageThroughChannel() - { - return wait(function (Discord $discord, $resolve) { - $this->channel()->sendMessage('testing edit through channel') - ->then(function (Message $message) { - return $message->edit(MessageBuilder::new()->setContent('new content')) - ->then(function (Message $updatedMessage) use ($message) { - $this->assertEquals('new content', $updatedMessage->content); - $this->assertEquals($message->id, $updatedMessage->id); - }); - }) - ->then($resolve, $resolve); - }); - } - - /** - * @covers \Discord\Parts\Channel\Channel::sendFile - */ - public function testCanSendFile() - { - return wait(function (Discord $discord, $resolve) { - // upload readme - $baseDir = dirname(dirname(dirname((new ReflectionClass(Discord::class))->getFileName()))); - $this->channel()->sendMessage(MessageBuilder::new()->addFile($baseDir.DIRECTORY_SEPARATOR.'README.md')) - ->then(function (Message $message) { - $this->assertEquals(1, count($message->attachments)); - }) - ->then($resolve, $resolve); - }); - } - - /** - * @doesNotPerformAssertions - * @covers \Discord\Parts\Channel\Channel::broadcastTyping - */ - public function testCanBroadcastTyping() - { - return wait(function (Discord $discord, $resolve) { - $this->channel()->broadcastTyping() - ->then($resolve, $resolve); - }); - } - - /** - * @covers \Discord\Parts\Channel\Channel::isTextBased - */ - public function testTextChannelIsTextBased() - { - $this->assertTrue($this->channel()->isTextBased()); - } - - /** - * @covers \Discord\Parts\Channel\Channel::isVoiceBased - */ - public function testVoiceChannelIsVoiceBased() - { - /** - * @var Channel - */ - $vc = $this->channel()->guild->channels->filter(function ($channel) { - return $channel->type == Channel::TYPE_VOICE; - })->first(); - - $this->assertTrue($vc->isVoiceBased()); - } -} diff --git a/vendor/team-reflex/discord-php/tests/Parts/Channel/Message/EmbedMessageTest.php b/vendor/team-reflex/discord-php/tests/Parts/Channel/Message/EmbedMessageTest.php deleted file mode 100644 index 2986261..0000000 --- a/vendor/team-reflex/discord-php/tests/Parts/Channel/Message/EmbedMessageTest.php +++ /dev/null @@ -1,77 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -use Discord\Discord; -use Discord\Parts\Channel\Message; -use Discord\Parts\Embed\Author; -use Discord\Parts\Embed\Embed; -use Discord\Parts\Embed\Footer; - -use function Discord\getColor; - -final class EmbedMessageTest extends DiscordTestCase -{ - /** - * @covers \Discord\Parts\Channel\Channel::sendEmbed - */ - public function testCanSendEmbed() - { - return wait(function (Discord $discord, $resolve) { - $embed = new Embed($discord); - $embed->setTitle('Testing Embed') - ->setType(Embed::TYPE_RICH) - ->setAuthor('DiscordPHP Bot') - ->setDescription('Embed Description') - ->setColor(getColor('lightblue')) - ->addField([ - 'name' => 'Field 1', - 'value' => 'Value 1', - 'inline' => true, - ]) - ->addField([ - 'name' => 'Field 2', - 'value' => 'Value 2', - 'inline' => false, - ]) - ->setFooter('Footer Value'); - - $this->channel()->sendEmbed($embed) - ->then(function (Message $message) use ($resolve) { - $this->assertEquals(1, $message->embeds->count()); - - /** @var Embed */ - $embed = $message->embeds->first(); - $this->assertEquals('Testing Embed', $embed->title); - $this->assertEquals(Embed::TYPE_RICH, $embed->type); - $this->assertEquals('Embed Description', $embed->description); - $this->assertEquals(getColor('lightblue'), $embed->color); - - $this->assertInstanceOf(Author::class, $embed->author); - $this->assertEquals('DiscordPHP Bot', $embed->author->name); - - $this->assertInstanceOf(Footer::class, $embed->footer); - $this->assertEquals('Footer Value', $embed->footer->text); - - $this->assertEquals(2, $embed->fields->count()); - $this->assertNotNull($embed->fields->get('name', 'Field 1')); - $this->assertNotNull($embed->fields->get('name', 'Field 2')); - - $this->assertNotEquals( - (string) $embed->fields->get('name', 'Field 1'), - (string) $embed->fields->get('name', 'Field 2') - ); - }) - ->then($resolve, $resolve); - }, 10); - } -} diff --git a/vendor/team-reflex/discord-php/tests/Parts/Channel/Message/EmptyMessageTest.php b/vendor/team-reflex/discord-php/tests/Parts/Channel/Message/EmptyMessageTest.php deleted file mode 100644 index 123c945..0000000 --- a/vendor/team-reflex/discord-php/tests/Parts/Channel/Message/EmptyMessageTest.php +++ /dev/null @@ -1,258 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -use Carbon\Carbon; -use Discord\Discord; -use Discord\Helpers\Collection; -use Discord\Parts\Channel\Channel; -use Discord\Parts\Channel\Message; -use Discord\Parts\Embed\Embed; -use Discord\Parts\User\User; - -final class EmptyMessageTest extends DiscordTestCase -{ - /** - * @covers \Discord\Parts\Channel\Channel::sendMessage - */ - public function testCanSendMessage() - { - return wait(function (Discord $discord, $resolve) { - $content = 'Hello, world! From PHPunit'; - - $this->channel()->sendMessage($content) - ->then(function (Message $message) use ($content) { - $this->assertEquals($content, $message->content); - $this->assertInstanceOf(Carbon::class, $message->timestamp); - $this->assertNull($message->edited_timestamp); - - return $message; - }) - ->then($resolve, $resolve); - }); - } - - /** - * @depends testCanSendMessage - * @covers \Discord\Parts\Channel\Message::reply - */ - public function testCanReplyToMessage(Message $message) - { - return wait(function (Discord $discord, $resolve) use ($message) { - $message->reply('replying to my message') - ->then(function (Message $new_message) use ($message) { - $this->assertEquals('replying to my message', $new_message->content); - $this->assertInstanceOf(Message::class, $new_message->referenced_message); - $this->assertEquals($message->id, $new_message->referenced_message->id); - - return $new_message; - }) - ->then($resolve, $resolve); - }); - } - - /** - * @covers \Discord\Repository\Channel\MessageRepository::save - */ - public function testCanEditMessage() - { - return wait(function (Discord $discord, $resolve) { - $content = 'Message edit with PHPunit'; - - $this->channel()->sendMessage('before edit') - ->then(function (Message $message) use ($content) { - $message->content = $content; - - return $message->channel->messages->save($message)->then(function (Message $message) use ($content) { - $this->assertEquals($content, $message->content); - $this->assertNotNull($message->edited_timestamp); - - return $message; - }); - }) - ->then($resolve, $resolve); - }); - } - - /** - * @depends testCanSendMessage - * @covers \Discord\Parts\Channel\Message::getCrosspostedAttribute - * @covers \Discord\Parts\Channel\Message::getIsCrosspostAttribute - * @covers \Discord\Parts\Channel\Message::getSuppressEmbedsAttribute - * @covers \Discord\Parts\Channel\Message::getSourceMessageDeletedAttribute - * @covers \Discord\Parts\Channel\Message::getUrgentAttribute - */ - public function testCheckMessageFlagsFalse(Message $message) - { - $this->assertFalse($message->crossposted); - $this->assertFalse($message->is_crosspost); - $this->assertFalse($message->suppress_embeds); - $this->assertFalse($message->source_message_deleted); - $this->assertFalse($message->urgent); - } - - /** - * @depends testCanSendMessage - * @covers \Discord\Parts\Channel\Message::getChannelAttribute - */ - public function testChannelAttribute(Message $message) - { - $this->assertInstanceOf(Channel::class, $message->channel); - $this->assertEquals($message->channel_id, $message->channel->id); - } - - /** - * @depends testCanSendMessage - * @covers \Discord\Parts\Channel\Message::getMentionsAttribute - * @covers \Discord\Parts\Channel\Message::getMentionRolesAttribute - * @covers \Discord\Parts\Channel\Message::getMentionChannelsAttribute - * @covers \Discord\Parts\Channel\Message::getEmbedsAttribute - */ - public function testCollectionsEmpty(Message $message) - { - $this->assertInstanceOf(Collection::class, $message->mentions); - $this->assertEquals(0, $message->mentions->count()); - - $this->assertInstanceOf(Collection::class, $message->mention_roles); - $this->assertEquals(0, $message->mention_roles->count()); - - $this->assertInstanceOf(Collection::class, $message->reactions); - $this->assertEquals(0, $message->reactions->count()); - - $this->assertInstanceOf(Collection::class, $message->mention_channels); - $this->assertEquals(0, $message->mention_channels->count()); - - $this->assertInstanceOf(Collection::class, $message->embeds); - $this->assertEquals(0, $message->embeds->count()); - } - - /** - * @depends testCanSendMessage - * @covers \Discord\Parts\Channel\Message::getAuthorAttribute - */ - public function testAuthorAttribute(Message $message) - { - $this->assertInstanceOf(User::class, $message->author); - $this->assertEquals($message->author->id, DiscordSingleton::get()->id); - } - - /** - * @depends testCanEditMessage - * @covers \Discord\Parts\Channel\Message::getEditedTimestampAttribute - */ - public function testEditedTimestampAttribute(Message $message) - { - $this->assertInstanceOf(Carbon::class, $message->edited_timestamp); - } - - /** - * @covers \Discord\Parts\Channel\Message::delayedReply - */ - public function testDelayedReply() - { - return wait(function (Discord $discord, $resolve) { - // Random delay between 0 and 5s. - $delay = (int) ((mt_rand() / mt_getrandmax()) * 5000); - $start = microtime(true); - - $this->channel()->sendMessage('testing delayed reply') - ->then(function (Message $message) use ($delay) { - return $message->delayedReply('delayed reply to message', $delay); - }) - ->then(function (Message $message) use ($delay, $start, $resolve) { - $stop = microtime(true); - $diff = $stop - $start; - - $this->assertGreaterThanOrEqual($delay / 1000, $diff); - }) - ->then($resolve, $resolve); - }, 10); - } - - /** - * @doesNotPerformAssertions - * @covers \Discord\Parts\Channel\Message::react - */ - public function testCanReactWithString() - { - return wait(function (Discord $discord, $resolve) { - $this->channel()->sendMessage('testing reactions') - ->then(function (Message $message) { - return $message->react('😀'); - }) - ->then($resolve, $resolve); - }); - } - - /** - * @depends testCanSendMessage - * @covers \Discord\Parts\Channel\Message::addEmbed - */ - public function testCanAddEmbed(Message $message) - { - return wait(function (Discord $discord, $resolve) use ($message) { - $this->channel()->sendMessage('testing adding embed') - ->then(function (Message $message) use ($discord) { - $embed = new Embed($discord); - $embed->setTitle('Test embed') - ->addFieldValues('Field name', 'Field value', true); - - return $message->addEmbed($embed); - }) - ->then(function (Message $message) { - $this->assertEquals(1, $message->embeds->count()); - - /** @var Embed */ - $embed = $message->embeds->first(); - $this->assertEquals('Test embed', $embed->title); - $this->assertEquals(1, $embed->fields->count()); - - /** @var \Discord\Parts\Embed\Field */ - $field = $embed->fields->first(); - $this->assertEquals('Field name', $field->name); - $this->assertEquals('Field value', $field->value); - $this->assertEquals(true, $field->inline); - }) - ->then($resolve, $resolve); - }); - } - - /** - * @depends testCanSendMessage - * @covers \Discord\Repository\Channel\MessageRepository::delete - */ - public function testCanDeleteMessageThroughRepository(Message $message) - { - return wait(function (Discord $discord, $resolve) use ($message) { - $message->channel->messages->delete($message) - ->then(function (Message $message) { - $this->assertFalse($message->created); - }) - ->then($resolve, $resolve); - }); - } - - /** - * @doesNotPerformAssertions - * @covers \Discord\Parts\Channel\Message::delete - */ - public function testCanDeleteMessageThroughPart() - { - return wait(function (Discord $discord, $resolve) { - $this->channel()->sendMessage('testing delete through part') - ->then(function (Message $message) { - return $message->delete(); - }) - ->then($resolve); - }); - } -} diff --git a/vendor/team-reflex/discord-php/tests/Parts/Channel/Message/MessageTest.php b/vendor/team-reflex/discord-php/tests/Parts/Channel/Message/MessageTest.php deleted file mode 100644 index 57cad9f..0000000 --- a/vendor/team-reflex/discord-php/tests/Parts/Channel/Message/MessageTest.php +++ /dev/null @@ -1,54 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -use Discord\Discord; -use Discord\Parts\Channel\Channel; -use Discord\Parts\Channel\Message; - -final class MessageTest extends DiscordTestCase -{ - /** - * @covers \Discord\Parts\Channel\Message::getMentionChannelsAttribute - */ - public function testCanMentionChannel() - { - return wait(function (Discord $discord, $resolve) { - $this->channel()->sendMessage('mention channel <#'.$this->channel()->id.'>') - ->then(function (Message $message) { - $this->assertEquals(1, $message->mention_channels->count()); - $this->assertInstanceOf(Channel::class, $message->mention_channels->first()); - $this->assertEquals($this->channel()->id, $message->mention_channels->first()->id); - }) - ->then($resolve, $resolve); - }); - } - - /** - * @covers \Discord\Parts\Channel\Message::crosspost - */ - public function testCanCrosspostMessage() - { - return wait(function (Discord $discord, $resolve) { - $this->channel()->sendMessage('crossposting message') - ->then(function (Message $message) { - return $message->crosspost(); - }) - ->then(function ($message) { - $this->assertInstanceOf(Message::class, $message); - }) - ->then($resolve, $resolve); - }, 10, function () { - $this->markTestIncomplete('Crosspost has likely hit ratelimit.'); - }); - } -} diff --git a/vendor/team-reflex/discord-php/tests/Parts/Channel/Message/RemoveReactionTest.php b/vendor/team-reflex/discord-php/tests/Parts/Channel/Message/RemoveReactionTest.php deleted file mode 100644 index ab67238..0000000 --- a/vendor/team-reflex/discord-php/tests/Parts/Channel/Message/RemoveReactionTest.php +++ /dev/null @@ -1,104 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -use Discord\Discord; -use Discord\Parts\Channel\Message; - -final class RemoveReactionTest extends DiscordTestCase -{ - /** - * @doesNotPerformAssertions - * @covers \Discord\Parts\Channel\Message::deleteReaction - */ - public function testDeleteAllReactions() - { - return wait(function (Discord $discord, $resolve) { - $this - ->channel() - ->sendMessage('testing delete all reactions') - ->then(function (Message $message) { - return \React\Promise\all($message->react('😝'), $message->react('🤪')) - ->then(function () use ($message) { - return $message; - }); - }) - ->then(function (Message $message) { - return $message->deleteReaction(Message::REACT_DELETE_ALL); - }) - ->then($resolve, $resolve); - }); - } - - /** - * @doesNotPerformAssertions - * @covers \Discord\Parts\Channel\Message::deleteReaction - */ - public function testDeleteSelfReaction() - { - return wait(function (Discord $discord, $resolve) { - $this - ->channel() - ->sendMessage('testing deleting self reaction') - ->then(function (Message $message) { - return $message->react('🤪')->then(function () use ($message) { - return $message; - }); - })->then(function (Message $message) { - return $message->deleteReaction(Message::REACT_DELETE_ME, '🤪'); - }) - ->then($resolve, $resolve); - }); - } - - /** - * @doesNotPerformAssertions - * @covers \Discord\Parts\Channel\Message::deleteReaction - */ - public function testDeleteReactionOfUser() - { - return wait(function (Discord $discord, $resolve) { - $this - ->channel() - ->sendMessage('testing deleting reaction of user') - ->then(function (Message $message) { - return $message->react('🤪')->then(function () use ($message) { - return $message; - }); - })->then(function (Message $message) use ($discord) { - return $message->deleteReaction(Message::REACT_DELETE_ID, '🤪', $discord->id); - }) - ->then($resolve, $resolve); - }); - } - - /** - * @doesNotPerformAssertions - * @covers \Discord\Parts\Channel\Message::deleteReaction - */ - public function testDeleteAllReactionsForEmoji() - { - return wait(function (Discord $discord, $resolve) { - $this - ->channel() - ->sendMessage('testing deleting of single reaction') - ->then(function (Message $message) { - return $message->react('🤪')->then(function () use ($message) { - return $message; - }); - })->then(function (Message $message) use ($discord) { - return $message->deleteReaction(Message::REACT_DELETE_EMOJI, '🤪'); - }) - ->then($resolve, $resolve); - }); - } -} diff --git a/vendor/team-reflex/discord-php/tests/Parts/Embed/EmbedTest.php b/vendor/team-reflex/discord-php/tests/Parts/Embed/EmbedTest.php deleted file mode 100644 index d290a5a..0000000 --- a/vendor/team-reflex/discord-php/tests/Parts/Embed/EmbedTest.php +++ /dev/null @@ -1,72 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -use Discord\Discord; -use Discord\Parts\Channel\Message; -use Discord\Parts\Embed\Author; -use Discord\Parts\Embed\Embed; -use Discord\Parts\Embed\Image; -use Discord\Parts\Embed\Video; - -use function Discord\contains; - -final class EmbedTest extends DiscordTestCase -{ - public function testCanGetVideoEmbed() - { - return wait(function (Discord $discord, $resolve) { - // kek - $url = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'; - $this->channel()->sendMessage($url) - ->then(function (Message $message) { - // fetch message to ensure embed is present - return $this->channel()->messages->fetch($message->id); - }) - ->then(function (Message $message) use ($url) { - $this->assertEquals(1, $message->embeds->count()); - /** @var \Discord\Parts\Embed\Embed */ - $embed = $message->embeds->first(); - - $this->assertInstanceOf(Video::class, $embed->video); - $this->assertInstanceOf(Image::class, $embed->thumbnail); - $this->assertInstanceOf(Author::class, $embed->author); - - $this->assertTrue(contains($embed->video->url, ['dQw4w9WgXcQ'])); - - $this->assertEquals($url, $embed->url); - $this->assertEquals(Embed::TYPE_VIDEO, $embed->type); - }) - ->then($resolve, $resolve); - }, 10); - } - - public function testCanGetImageEmbed() - { - return wait(function (Discord $discord, $resolve) { - $url = 'https://discord.com/assets/94db9c3c1eba8a38a1fcf4f223294185.png'; - $this->channel()->sendMessage($url) - ->then(function (Message $message) { - // fetch message to ensure embed is present - return $this->channel()->messages->fetch($message->id); - }) - ->then(function (Message $message) use ($url) { - $this->assertEquals(1, $message->embeds->count()); - /** @var \Discord\Parts\Embed\Embed */ - $embed = $message->embeds->first(); - - $this->assertEquals($url, $embed->url); - $this->assertEquals(Embed::TYPE_IMAGE, $embed->type); - $this->assertInstanceOf(Image::class, $embed->thumbnail); - }) - ->then($resolve, $resolve); - }, 10); - } -} diff --git a/vendor/team-reflex/discord-php/tests/bootstrap.php b/vendor/team-reflex/discord-php/tests/bootstrap.php deleted file mode 100644 index 4d01868..0000000 --- a/vendor/team-reflex/discord-php/tests/bootstrap.php +++ /dev/null @@ -1,18 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -include __DIR__.'/../vendor/autoload.php'; - -//class RedisPsr16 extends \Symfony\Component\Cache\Psr16Cache {} - -include __DIR__.'/functions.php'; -include __DIR__.'/DiscordSingleton.php'; -include __DIR__.'/DiscordTestCase.php'; diff --git a/vendor/team-reflex/discord-php/tests/functions.php b/vendor/team-reflex/discord-php/tests/functions.php deleted file mode 100644 index 0d858e8..0000000 --- a/vendor/team-reflex/discord-php/tests/functions.php +++ /dev/null @@ -1,70 +0,0 @@ - - * - * This file is subject to the MIT license that is bundled - * with this source code in the LICENSE.md file. - */ - -use Discord\Discord; -use Psr\Log\NullLogger; - -const TIMEOUT = 10; - -function wait(callable $callback, float $timeout = TIMEOUT, ?callable $timeoutFn = null) -{ - $discord = DiscordSingleton::get(); - - $result = null; - $finally = null; - $timedOut = false; - - $discord->getLoop()->futureTick(function () use ($callback, $discord, &$result, &$finally) { - $resolve = function ($x = null) use ($discord, &$result) { - $result = $x; - $discord->getLoop()->stop(); - }; - - try { - $finally = $callback($discord, $resolve); - } catch (\Throwable $e) { - $resolve($e); - } - }); - - $timeout = $discord->getLoop()->addTimer($timeout, function () use ($discord, &$timedOut) { - $timedOut = true; - $discord->getLoop()->stop(); - }); - - $discord->getLoop()->run(); - $discord->getLoop()->cancelTimer($timeout); - - if ($result instanceof Exception) { - throw $result; - } - - if (is_callable($finally)) { - $finally(); - } - - if ($timedOut) { - if ($timeoutFn != null) { - $timeoutFn(); - } else { - throw new \Exception('Timed out'); - } - } - - return $result; -} - -function getMockDiscord(): Discord -{ - return new Discord(['token' => '', 'logger' => new NullLogger()]); -} diff --git a/vendor/trafficcophp/bytebuffer/.gitignore b/vendor/trafficcophp/bytebuffer/.gitignore deleted file mode 100644 index 72f7945..0000000 --- a/vendor/trafficcophp/bytebuffer/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -/vendor/.composer/ -vendor/ -/phpunit.xml -.idea/ diff --git a/vendor/trafficcophp/bytebuffer/.travis.yml b/vendor/trafficcophp/bytebuffer/.travis.yml deleted file mode 100644 index 41a2e23..0000000 --- a/vendor/trafficcophp/bytebuffer/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: php - -sudo: false - -php: - - 5.3 - - 5.4 - - 5.5 - -before_script: - - composer --prefer-source --dev install - diff --git a/vendor/trafficcophp/bytebuffer/README.md b/vendor/trafficcophp/bytebuffer/README.md deleted file mode 100644 index acc25f9..0000000 --- a/vendor/trafficcophp/bytebuffer/README.md +++ /dev/null @@ -1,57 +0,0 @@ -# PHP Library for reading and writing binary data - -[![Build Status](https://secure.travis-ci.org/nesQuick/ByteBuffer.png?branch=master)](http://travis-ci.org/nesQuick/ByteBuffer) [![No Maintenance Intended](http://unmaintained.tech/badge.svg)](http://unmaintained.tech/) - -I intentionally needed that for writing a PHP Client for [TrafficCop](https://github.com/santosh79/traffic_cop/). -But the source grows so I decided to move it into an own package. -You can also call this a [pack()](http://www.php.net/manual/en/function.pack.php) wrapper. - -## Install - -Installation should be done via [composer](http://packagist.org/). - -``` -{ - "require": { - "TrafficCophp/ByteBuffer": "dev-master" - } -} -``` - -## Example - -A simple usage example could look like this - -```php -writeInt32BE($buffer->length(), 0); -$buffer->writeInt8(0x1, 4); -$buffer->writeInt32BE(strlen($channel), 5); -$buffer->write($channel, 9); -$buffer->write($message, 9 + strlen($channel)); - -$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); -$result = socket_connect($socket, '127.0.0.1', 3542); - -socket_write($socket, (string) $buffer, $buffer->length()); -``` - -## ToDo's - -* Write Documentation -* Improve examples -* Allow Buffer as constructor -* Write test for concatinating buffers - -## License - -Licensed under the MIT license. diff --git a/vendor/trafficcophp/bytebuffer/composer.json b/vendor/trafficcophp/bytebuffer/composer.json deleted file mode 100644 index d27ec04..0000000 --- a/vendor/trafficcophp/bytebuffer/composer.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "name": "TrafficCophp/ByteBuffer", - "type": "library", - "description": "Node.js inspired byte stream buffer for PHP.", - "keywords": ["Buffer", "Stream", "Socket", "Library", "Bytehandling", "pack", "wrapper", "binary data"], - "license": "MIT", - "authors": [ - { - "name": "Ole 'nesQuick' Michaelis", - "email": "ole.michaelis@googlemail.com", - "homepage": "http://www.codestars.eu" - } - ], - "autoload": { - "psr-0": { - "TrafficCophp": "src/" - } - }, - "require": {} -} \ No newline at end of file diff --git a/vendor/trafficcophp/bytebuffer/composer.lock b/vendor/trafficcophp/bytebuffer/composer.lock deleted file mode 100644 index c68a1ce..0000000 --- a/vendor/trafficcophp/bytebuffer/composer.lock +++ /dev/null @@ -1,5 +0,0 @@ -{ - "hash": "6cf3d618c76525d67fe4ca75786c4440", - "packages": [], - "aliases": [] -} diff --git a/vendor/trafficcophp/bytebuffer/phpunit.xml.dist b/vendor/trafficcophp/bytebuffer/phpunit.xml.dist deleted file mode 100644 index e6687f2..0000000 --- a/vendor/trafficcophp/bytebuffer/phpunit.xml.dist +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - tests/TrafficCophp/ByteBuffer - - - - - - src - - - - diff --git a/vendor/trafficcophp/bytebuffer/src/TrafficCophp/ByteBuffer/AbstractBuffer.php b/vendor/trafficcophp/bytebuffer/src/TrafficCophp/ByteBuffer/AbstractBuffer.php deleted file mode 100644 index 2946264..0000000 --- a/vendor/trafficcophp/bytebuffer/src/TrafficCophp/ByteBuffer/AbstractBuffer.php +++ /dev/null @@ -1,9 +0,0 @@ -lengthMap = new LengthMap(); - if (is_string($argument)) { - $this->initializeStructs(strlen($argument), $argument); - } else if (is_int($argument)) { - $this->initializeStructs($argument, pack(self::DEFAULT_FORMAT.$argument)); - } else { - throw new \InvalidArgumentException('Constructor argument must be an binary string or integer'); - } - } - - protected function initializeStructs($length, $content) { - $this->buffer = new \SplFixedArray($length); - for ($i = 0; $i < $length; $i++) { - $this->buffer[$i] = $content[$i]; - } - } - - protected function insert($format, $value, $offset, $length) { - $bytes = pack($format, $value); - for ($i = 0; $i < strlen($bytes); $i++) { - $this->buffer[$offset++] = $bytes[$i]; - } - } - - protected function extract($format, $offset, $length) { - $encoded = ''; - for ($i = 0; $i < $length; $i++) { - $encoded .= $this->buffer->offsetGet($offset + $i); - } - if ($format == 'N'&& PHP_INT_SIZE <= 4) { - list(, $h, $l) = unpack('n*', $encoded); - $result = ($l + ($h * 0x010000)); - } else if ($format == 'V' && PHP_INT_SIZE <= 4) { - list(, $h, $l) = unpack('v*', $encoded); - $result = ($h + ($l * 0x010000)); - } else { - list(, $result) = unpack($format, $encoded); - } - return $result; - } - - protected function checkForOverSize($excpected_max, $actual) { - if ($actual > $excpected_max) { - throw new \InvalidArgumentException(sprintf('%d exceeded limit of %d', $actual, $excpected_max)); - } - } - - public function __toString() { - $buf = ''; - foreach ($this->buffer as $bytes) { - $buf .= $bytes; - } - return $buf; - } - - public function length() { - return $this->buffer->getSize(); - } - - public function write($string, $offset) { - $length = strlen($string); - $this->insert('a' . $length, $string, $offset, $length); - } - - public function writeInt8($value, $offset) { - $format = 'C'; - $this->checkForOverSize(0xff, $value); - $this->insert($format, $value, $offset, $this->lengthMap->getLengthFor($format)); - } - - public function writeInt16BE($value, $offset) { - $format = 'n'; - $this->checkForOverSize(0xffff, $value); - $this->insert($format, $value, $offset, $this->lengthMap->getLengthFor($format)); - } - - public function writeInt16LE($value, $offset) { - $format = 'v'; - $this->checkForOverSize(0xffff, $value); - $this->insert($format, $value, $offset, $this->lengthMap->getLengthFor($format)); - } - - public function writeInt32BE($value, $offset) { - $format = 'N'; - $this->checkForOverSize(0xffffffff, $value); - $this->insert($format, $value, $offset, $this->lengthMap->getLengthFor($format)); - } - - public function writeInt32LE($value, $offset) { - $format = 'V'; - $this->checkForOverSize(0xffffffff, $value); - $this->insert($format, $value, $offset, $this->lengthMap->getLengthFor($format)); - } - - public function read($offset, $length) { - $format = 'a' . $length; - return $this->extract($format, $offset, $length); - } - - public function readInt8($offset) { - $format = 'C'; - return $this->extract($format, $offset, $this->lengthMap->getLengthFor($format)); - } - - public function readInt16BE($offset) { - $format = 'n'; - return $this->extract($format, $offset, $this->lengthMap->getLengthFor($format)); - } - - public function readInt16LE($offset) { - $format = 'v'; - return $this->extract($format, $offset, $this->lengthMap->getLengthFor($format)); - } - - public function readInt32BE($offset) { - $format = 'N'; - return $this->extract($format, $offset, $this->lengthMap->getLengthFor($format)); - } - - public function readInt32LE($offset) { - $format = 'V'; - return $this->extract($format, $offset, $this->lengthMap->getLengthFor($format)); - } - -} \ No newline at end of file diff --git a/vendor/trafficcophp/bytebuffer/src/TrafficCophp/ByteBuffer/LengthMap.php b/vendor/trafficcophp/bytebuffer/src/TrafficCophp/ByteBuffer/LengthMap.php deleted file mode 100644 index fec8c0b..0000000 --- a/vendor/trafficcophp/bytebuffer/src/TrafficCophp/ByteBuffer/LengthMap.php +++ /dev/null @@ -1,27 +0,0 @@ -map = array( - 'n' => 2, - 'N' => 4, - 'v' => 2, - 'V' => 4, - 'c' => 1, - 'C' => 1 - ); - } - - public function getLengthFor($format) { - return $this->map[$format]; - } - -} \ No newline at end of file diff --git a/vendor/trafficcophp/bytebuffer/src/TrafficCophp/ByteBuffer/ReadableBuffer.php b/vendor/trafficcophp/bytebuffer/src/TrafficCophp/ByteBuffer/ReadableBuffer.php deleted file mode 100644 index 07df860..0000000 --- a/vendor/trafficcophp/bytebuffer/src/TrafficCophp/ByteBuffer/ReadableBuffer.php +++ /dev/null @@ -1,12 +0,0 @@ -writeInt32LE(0xfeedface, 0); - $this->assertSame(pack('Vx', 0xfeedface), (string) $buffer); - } - - public function testSurroundedEmptyByte() { - $buffer = new Buffer(9); - $buffer->writeInt32BE(0xfeedface, 0); - $buffer->writeInt32BE(0xcafebabe, 5); - $this->assertSame(pack('NxN', 0xfeedface, 0xcafebabe), (string) $buffer); - } - - public function testTooSmallBuffer() { - $buffer = new Buffer(4); - $buffer->writeInt32BE(0xfeedface, 0); - $this->setExpectedException('RuntimeException'); - $buffer->writeInt32LE(0xfeedface, 4); - } - - public function testTwo4ByteIntegers() { - $buffer = new Buffer(8); - $buffer->writeInt32BE(0xfeedface, 0); - $buffer->writeInt32LE(0xfeedface, 4); - $this->assertSame(pack('NV', 0xfeedface, 0xfeedface), (string) $buffer); - } - - public function testWritingString() { - $buffer = new Buffer(10); - $buffer->writeInt32BE(0xcafebabe, 0); - $buffer->write('please', 4); - $this->assertSame(pack('Na6', 0xcafebabe, 'please'), (string) $buffer); - } - - public function testTooLongIntegers() { - $buffer = new Buffer(12); - $this->setExpectedException('InvalidArgumentException'); - $buffer->writeInt32BE(0xfeedfacefeed, 0); - } - - public function testLength() { - $buffer = new Buffer(8); - $this->assertEquals(8, $buffer->length()); - } - - public function testWriteInt8() { - $buffer = new Buffer(1); - $buffer->writeInt8(0xfe, 0); - $this->assertSame(pack('C', 0xfe), (string) $buffer); - } - - public function testWriteInt16BE() { - $buffer = new Buffer(2); - $buffer->writeInt16BE(0xbabe, 0); - $this->assertSame(pack('n', 0xbabe), (string) $buffer); - } - - public function testWriteInt16LE() { - $buffer = new Buffer(2); - $buffer->writeInt16LE(0xabeb, 0); - $this->assertSame(pack('v', 0xabeb), (string) $buffer); - } - - public function testWriteInt32BE() { - $buffer = new Buffer(4); - $buffer->writeInt32BE(0xfeedface, 0); - $this->assertSame(pack('N', 0xfeedface), (string) $buffer); - } - - public function testWriteInt32LE() { - $buffer = new Buffer(4); - $buffer->writeInt32LE(0xfeedface, 0); - $this->assertSame(pack('V', 0xfeedface), (string) $buffer); - } - - public function testReaderBufferInitializeLenght() { - $buffer = new Buffer(pack('V', 0xfeedface)); - $this->assertEquals(4, $buffer->length()); - } - - public function testReadInt8() { - $buffer = new Buffer(pack('C', 0xfe)); - $this->assertSame(0xfe, $buffer->readInt8(0)); - } - - public function testReadInt16BE() { - $buffer = new Buffer(pack('n', 0xbabe)); - $this->assertSame(0xbabe, $buffer->readInt16BE(0)); - } - - public function testReadInt16LE() { - $buffer = new Buffer(pack('v', 0xabeb)); - $this->assertSame(0xabeb, $buffer->readInt16LE(0)); - } - - public function testReadInt32BE() { - $buffer = new Buffer(pack('N', 0xfeedface)); - $this->assertSame(0xfeedface, $buffer->readInt32BE(0)); - } - - public function testReadInt32LE() { - $buffer = new Buffer(pack('V', 0xfeedface)); - $this->assertSame(0xfeedface, $buffer->readInt32LE(0)); - } - - public function testRead() { - $buffer = new Buffer(pack('a7', 'message')); - $this->assertSame('message', $buffer->read(0, 7)); - } - - public function testComplexRead() { - $buffer = new Buffer(pack('Na7', 0xfeedface, 'message')); - $this->assertSame(0xfeedface, $buffer->readInt32BE(0)); - $this->assertSame('message', $buffer->read(4, 7)); - } - - public function testWritingAndReadingOnTheSameBuffer() { - $buffer = new Buffer(10); - $int32be = 0xfeedface; - $string = 'hello!'; - $buffer->writeInt32BE($int32be, 0); - $buffer->write($string, 4); - $this->assertSame($string, $buffer->read(4, 6)); - $this->assertSame($int32be, $buffer->readInt32BE(0)); - } - - public function testInvalidConstructorWithArray() { - $this->setExpectedException('\InvalidArgumentException'); - $buffer = new Buffer(array('asdf')); - } - - public function testInvalidConstructorWithFloat() { - $this->setExpectedException('\InvalidArgumentException'); - $buffer = new Buffer(324.23); - } - -} \ No newline at end of file

    I3ef)5a;`92DMC#*QI>D0-iZ*~v9|(6DiOga()jpvH|vom47yT!TCXIF8uQYNed(}T<(TW1!-$=V^;XS9#F}|{hA!*C5OeC5$oRU z4ON$l`NLTJr_uC#$^5;h8TBj6iDb7kNL^uxim*bU{e__bw-?{8Y%#+$$PzUX`1!TS zMk8mQdBe|ldi)x4>D0BdvA1ab2nz&RWnyM>ho`GmQ`8r0ihmUy3wB$A;Z5Dy@ZzYTuR?B(*5Y((=dZ%zD=(u(<8%|2R&1~wR`twXTtFxCVp>P+uUi<`L518xHPRk;?mY(7cUha zu((xIG(tyNKW+NckHwnca$^S|mEZ9H088{Xj8T!Nu>MN^MfrdJas9PlH2M1C*6w?I z6qN~3(IvZs>ll^4yphQCLGW+#^Ixgf2 z%6fW*&D+Ogxt7u>-}h0;+lwO(47t+b5{MC(KrUa-J?#VoxGXj{WFhIv6oORNhkl3W znXWrA^4FO(_@bXi)g_kONWXqktSTf}srFbad~Q~pe%IN`WfFHC8G<^Z{{Sq!m1+5d z=1DYEhT`G~=a? z-N*=PuSB5et2>5GX2G zo}CBCZJUU44msGp9^1&e1mBmd=Sy8d4ehk?TU=PQWn_|OYN&yYd4BBG{th)#GZtA$ z$-!LNR?S|1P3k&Fmj|3Y(L5S;h2pbW!qP9+-T6^TwV;1U{8eT9I0mE{a7Wa7_k7gC zxxCOQ5|xdCqY$mqwCH`aF@-aqAEHCaTk zON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7C(^4fZ;+DR-$&chcrlvpyC7%LyQ!8 z)+d#GA)ch@l?CcZQcVa_fZ(TywhYaBB>^pQAYvhQmLNkz#HCiB)NQe zx*0BZjdZR7N# z31RlUi`zI$-DYI*V{G!M(go@*AHooN16xU~pjRv~KZ}I49R|b(x|bUr+(%cDy_*C5 z2MCRRsRH5#^#uS4tthaU8|~Y@)cqfT5vygCAONNM-ronX3@`<(gDoW@rt76tHyshc zBmh>)djeM3Uz8g+0Cy4{Y6n0xqm{1)0MvWBxj8h5g2fux7@E)kVRT?Uyusx(;2#4RQ*SY0HOh7 z$NP+j|KX(d;yxJzg70zkJIw>((917@2H<2->KSyHI9fT;b@KrnK>oi=vB(&>Kn=I) zb$~wqqsA=dYDB#yeMx*RP1G1@U~CxDB?`m}LgJUO4<>At_;xyv7D+{C&yvI!39}@? zzw9K?@7O!OGJw0NqD2rcvhbtW`*+&;P>O&qVJlfAa1}jP|DA;2RqzhaA8{AR|6PL_ z5BQyi{uB~RTKM~$-#r-!@Pjn|zS!S`@{cWmzin9tNc?$A8T|!ZwEQ>Z`sa`RcZBgGF79V!`-}_mgPKG`tvS8l)F7xg3Y4#)N!aq-_5L2sPl~zBoBJj_B znup2rk0|tsu$Sv2{9ju%V;b}Skhgq!tT+6NEnhH4>}8uy!oRFf&ot)CVa(yn;#mK; zzQA%wXt@T`&-mQ0%~fWq@gFS1{c*+PuMq)f`pL^SRQ|PQKI6AcKl!Vf1Aj)Xeo__F zPyQy9{BIpDVfx8m4Sbk>@>ipZPi*XG{K)i^zX>HT#|AXhPyV9oe@s95n_%)kd|v`{ zGx2NQO#JHsoarZj6HNZh*&&!)5MSTQEOS5kn_%*nIu8Fu=aYXuMty7FGX3Olg2_xj n`Tsq!nSSy&!DObN{0%Vqv%I2#xm5BsFO@L&lfMab{p^1M6{6QT diff --git a/vendor/dantsu/php-image-editor/src/samples/resources/sample1.png b/vendor/dantsu/php-image-editor/src/samples/resources/sample1.png deleted file mode 100644 index 23cf864e5ce0808b1620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vendor/dantsu/php-image-editor/src/samples/resources/sample2.jpg b/vendor/dantsu/php-image-editor/src/samples/resources/sample2.jpg deleted file mode 100644 index c636bd820ff14f41fa33739f53c9d9a5a22018a8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 94359 zcmbTed0Z3c_Xe5-f)EJ`4j7_XK*0=~1cHLN1TdI{1hODvq%8!B2^9rVR9ahhWmsg1 zEMYN*EJVek1`BO%5sh0#A%I^+w1|qkt!uy9?Vixz{oVVyf8BfaV~8`u%)IZs=bYy} z=Q;DwjejO^v$@fnXdE7o$0fsG+&_Qg!lOj2i1;|sa`#PX{ux=HZF0}02L!s)cI3#n zY;xyt*Sd2BthMgBVS%Whd-jf$&GPNL-B-GY1d{%_g^R+?o@wu3PnzvOc5rf>J%>W0 zQe0dp^o3q-wB^AoSA+$JE@QHjVwr2!vzCPlGKK3um2Q%4TE)-aot3sL>9b9#mXqKe zot!AnlqFQ^lGMo1$khMOfBxyiIoeu>&d9gId*TR=cq>QzKj&~C;c$2&4AnB)|M`O_ zSXmQoX4u-1X2Jp8vvCBxl@-C-ib%A!hNJhuew?)<(aD1zVKYaVGQ%?)2`Z>LWV&~J-^rP~VaNG@|Ju2e7Y#Wd815wdhyXxQ?oHLU2hYz|i(zb;{Y;s!}-+GpvT zWb%xh?K^UJ?%JJKR9sTJcV8J+Tc)X@QIVg?o;3P^nTZW_MGYb zg^QOin}O%4XZ7!}{&!^mk8wG| zxCqwPR@O5t|Ha)WccLOW@|24Az9oYXht}&dw6&@a*l_PF7?ty`(?vM^~VwgmKF9c^4vIq`F zqe7iel5i!-h*9`I+Z9HE2P#M9`NC+L&O@eA=eyL`7BC$UAx9~l%V^RJAW41!EE;1d zMj7DZ7A@~pm*+o0Eyt=c94b=@@GO6djv&P(G(1gfLh^aS7?zb&Jtkoy>RN?>E@yf9 zb2tUM$%Ah+CS33gEl#{ogW&L7mcNH8Rc2b=fDnrj(WHXJ(-7(vq$H_ki0oO1Jfot{ zDL6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GY-vl%!c0QQb3`2+kS&OE9*Iqap7Jg3w0G2+yPmDkC*k!1CayE diff --git a/vendor/dantsu/php-image-editor/src/samples/resources/sample5_mask.png b/vendor/dantsu/php-image-editor/src/samples/resources/sample5_mask.png deleted file mode 100644 index 57736f33af696b5f807d40621bc9abc56c0693e9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6116 zcmeHLdrXs86u*=P3IfA`iYpTml$2>)Yh6Au!eF6@U12M_%q?zfgQ;^_YN2dHd;wE3 z5ypc2(L$5CCa{@o%3n({E>_4OECp1|G^V~%1L9+w5r-nqopbN^sF?%ZCUXfS1x@y=JJectiSRk78JUnwxXzO5{9|>2n!-lEEijaNxvN;0rnh=-*yBnA3~;+W;!yEAV@-q7I_{UBU3NgF z>xt%EHW3iS0LM^x=R!KoKS=&UcrT~tiKQtMI0Hd6Ca-VJCRM&Vi`feR#Xr34P2&4U}P ziEAaWX<{(g=RX5CHK(`HQ1ROa?hbnSV5<8O0Au7l4I zQSe(SCh?ymxn4YYX`s3z@KM=rNx1Uje?`5YH4EJf{g1}UyUY7T~6SnJ~gHkrpvCLC~A6)nCb1O-zJ+m zhye4FPN;p*1lxH3L6A7V}Y*+y?9()pIqtPnZ^^c>dw48OshLn1**F!DK7Dm)->GE|E;VW&~xOoZeXxF z%+<}T8?ZyMZop!Pbpv+72^5+_0kk^u=b(PGefz$4S!PrFT=hm|w}E<#bn;eq!bjA!p)?E`Pa{I(J5E4tFT zPq|?hgbM?^)=1z235>;<2aC)&!$@E(;ym-izz?c1wP2iKuyjGe!Wjlj7sP%owv9=b zIQ%)xIKyCS00W(2z!qpOoMDg`*bJrQ(?SPM4P0Gef?@LLFsHy`m{b3Y z?cObZmp%E;tCqymMT-sAt?&Vqt&O>+nUl(8T5Buz%?43Fb8Z8x3Oq>*7oe^P7oI3#KJI=pKJ`@$gcs{`*=S3p?6hvPiEv81yO4GitEXfa+xL+rqP zR+$g;8eIr8SbaMjp$h}!c*q6K9H=V!d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G0Q@A!;p@(12B_5+d z(lJvGHTkudB$6F6NbY<@Ym-ja_0xNh0kG?HuT*I4-ZGu zA&DYXtJBgi6Qy144QA4-=NTE=C}saa!yyaT`bB#B>5rU7nqoP}v?h%H?-4laI~tsf z6xM;gIr&UDe1g`ah+alt*o%}q9N3m_@nwgs4*K}I@zBB#f&EWM+1~V+0<5!ll1=Kc? zNNMf0-I^Y%9bEgfPyYAD^Is19+xHl*ddN%~{L?6xquoMCYV^c^SDezZReLp;F73HP zLYoxanA*X0d;Fw+0maKmgQB~cX*;Vr|LX4C<9ThVuj|#w+0MI|l}V&-qrjKt<4)PJ z8?qgG1`57QsS{sCWIt|FiKWEf|No^-q-M+IwRI%9*ULI)saFe#W7IgUdn)V1g`58i D_&y;h diff --git a/vendor/dantsu/php-image-editor/src/samples/sample1.php b/vendor/dantsu/php-image-editor/src/samples/sample1.php deleted file mode 100644 index 505468a..0000000 --- a/vendor/dantsu/php-image-editor/src/samples/sample1.php +++ /dev/null @@ -1,28 +0,0 @@ -drawRectangle(0, 0, 500, 500, '#444') - ->drawRectangle(0, 350, 500, 500, '#FF8800') - ->writeText('I got the power !', __DIR__ . '/resources/font.ttf', 40, '#FFFFFF', Image::ALIGN_CENTER, 310) - ->drawCircle(25, 100, 100, '#FF8800') - ->drawCircle(25, 100, 95, '#000000FF') - ->drawCircle(475, 100, 100, '#FF8800') - ->drawCircle(475, 100, 95, '#000000FF'); - -for($i = 0; $i <= 360; $i+=30) { - $image - ->drawArrowWithAngle(250, 200, $i, 80, 2, '#FF8800') - ->drawArrowWithAngle(250, 200, ($i + 15), 50, 2, '#FF8800'); -} - -$image - ->crop(450, 300) - ->displayPNG(); - diff --git a/vendor/dantsu/php-image-editor/src/samples/sample2.php b/vendor/dantsu/php-image-editor/src/samples/sample2.php deleted file mode 100644 index a9af393..0000000 --- a/vendor/dantsu/php-image-editor/src/samples/sample2.php +++ /dev/null @@ -1,18 +0,0 @@ -downscaleAndCrop(1920, 1080, Image::ALIGN_CENTER, Image::ALIGN_BOTTOM) - ->pasteOn( - Image::fromPath(__DIR__ . '/resources/watermark.png')->downscaleProportion(300, 300), - Image::ALIGN_RIGHT, - Image::ALIGN_TOP - ) - ->displayJPG(50); - diff --git a/vendor/dantsu/php-image-editor/src/samples/sample3.php b/vendor/dantsu/php-image-editor/src/samples/sample3.php deleted file mode 100644 index de385d6..0000000 --- a/vendor/dantsu/php-image-editor/src/samples/sample3.php +++ /dev/null @@ -1,19 +0,0 @@ -downscaleAndCrop(512, 1024); - -$image2 = clone $image; -$image2->drawRectangle(128, 128, 384, 384, '#8822AA'); - -Image::newCanvas(1024, 1024) - ->pasteOn($image, 0, 0) - ->pasteOn($image2, 512, 0) - ->displayPNG(); - diff --git a/vendor/dantsu/php-image-editor/src/samples/sample4.php b/vendor/dantsu/php-image-editor/src/samples/sample4.php deleted file mode 100644 index 01fcb41..0000000 --- a/vendor/dantsu/php-image-editor/src/samples/sample4.php +++ /dev/null @@ -1,23 +0,0 @@ -downscaleAndCrop(1920, 1080, Image::ALIGN_CENTER, Image::ALIGN_BOTTOM) - ->drawPolygon([110, 500, 240, 250, 400, 140, 650, 280, 400, 400, 800, 510, 400, 950, 180, 620, 230, 540], '#88229988') - ->drawCircle(450, 600, 200, '#FFFFFF88') - ->pasteOn( - Image::newCanvas(1920, 1080) - ->drawPolygon([1110, 500, 1240, 250, 1400, 140, 1650, 280, 1400, 400, 1800, 510, 1400, 950, 1180, 620, 1230, 540], '#882299') - ->drawCircle(1450, 600, 200) - ->setOpacity(0.6), - 0, - 0 - ) - ->displayPNG(); diff --git a/vendor/dantsu/php-image-editor/src/samples/sample5.php b/vendor/dantsu/php-image-editor/src/samples/sample5.php deleted file mode 100644 index 1efcfd5..0000000 --- a/vendor/dantsu/php-image-editor/src/samples/sample5.php +++ /dev/null @@ -1,14 +0,0 @@ -alphaMask(Image::fromPath(__DIR__ . '/resources/sample5_mask.png')) - ->crop(494, 494, 9, 12) - ->setOpacity(0.5) - ->displayPNG(); diff --git a/vendor/dantsu/php-image-editor/src/samples/sample6.php b/vendor/dantsu/php-image-editor/src/samples/sample6.php deleted file mode 100644 index 4eec9e9..0000000 --- a/vendor/dantsu/php-image-editor/src/samples/sample6.php +++ /dev/null @@ -1,24 +0,0 @@ -writeTextAndGetBoundingBox('I got the power !', __DIR__ . '/resources/font.ttf', 40, '#FFFFFF', Image::ALIGN_RIGHT, Image::ALIGN_BOTTOM, Image::ALIGN_RIGHT, Image::ALIGN_BOTTOM, 0, 5); - -Image::newCanvas(500, 500) - ->drawPolygon( - [ - $bbox['top-left']['x'], $bbox['top-left']['y'], - $bbox['top-right']['x'], $bbox['top-right']['y'], - $bbox['bottom-right']['x'], $bbox['bottom-right']['y'], - $bbox['bottom-left']['x'], $bbox['bottom-left']['y'] - ], - '00000088' - ) - ->pasteOn($image1) - ->displayPNG(); diff --git a/vendor/dantsu/php-osm-static-api/.github/FUNDING.yml b/vendor/dantsu/php-osm-static-api/.github/FUNDING.yml deleted file mode 100644 index 005dee2..0000000 --- a/vendor/dantsu/php-osm-static-api/.github/FUNDING.yml +++ /dev/null @@ -1 +0,0 @@ -github: DantSu diff --git a/vendor/dantsu/php-osm-static-api/.gitignore b/vendor/dantsu/php-osm-static-api/.gitignore deleted file mode 100644 index b09c56d..0000000 --- a/vendor/dantsu/php-osm-static-api/.gitignore +++ /dev/null @@ -1,6 +0,0 @@ -/.idea -/.phpdoc -/phpdoc.xml -/phpdocumentor -/vendor -/composer.lock diff --git a/vendor/dantsu/php-osm-static-api/LICENSE b/vendor/dantsu/php-osm-static-api/LICENSE deleted file mode 100644 index 7793a49..0000000 --- a/vendor/dantsu/php-osm-static-api/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2021 Franck ALARY - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/vendor/dantsu/php-osm-static-api/README.md b/vendor/dantsu/php-osm-static-api/README.md deleted file mode 100644 index c425633..0000000 --- a/vendor/dantsu/php-osm-static-api/README.md +++ /dev/null @@ -1,77 +0,0 @@ -[![Packagist](https://img.shields.io/packagist/dt/DantSu/php-osm-static-api.svg)](https://packagist.org/packages/DantSu/php-osm-static-api) -[![Latest Stable Version](https://poser.pugx.org/DantSu/php-osm-static-api/v/stable)](https://packagist.org/packages/DantSu/php-osm-static-api) -[![GitHub license](https://img.shields.io/github/license/DantSu/php-osm-static-api.svg)](https://github.com/DantSu/php-osm-static-api/blob/master/LICENSE) - -# PHP OpenStreetMap Static API - -PHP library to easily get static image from OpenStreetMap with markers, lines, circles and polygons. - -This project uses the [Tile Server](https://wiki.openstreetmap.org/wiki/Tile_servers) of the OpenStreetMap Foundation which runs entirely on donated resources, see [Tile Usage Policy](https://operations.osmfoundation.org/policies/tiles/) for more information. - -## ✨ Supporting - -⭐ Star this repository to support this project. You will contribute to increase the visibility of this library 🙂 - -## Installation - -Install this library easily with composer : - -```cmd -composer require dantsu/php-osm-static-api -``` - -## How to use - -Generate OpenStreetMap static image with marker and line : - -```php -use \DantSu\OpenStreetMapStaticAPI\OpenStreetMap; -use \DantSu\OpenStreetMapStaticAPI\LatLng; -use \DantSu\OpenStreetMapStaticAPI\Polygon; -use \DantSu\OpenStreetMapStaticAPI\Markers; - -\header('Content-type: image/png'); -(new OpenStreetMap(new LatLng(44.351933, 2.568113), 17, 600, 400)) - ->addMarkers( - (new Markers(__DIR__ . '/resources/marker.png')) - ->setAnchor(Markers::ANCHOR_CENTER, Markers::ANCHOR_BOTTOM) - ->addMarker(new LatLng(44.351933, 2.568113)) - ->addMarker(new LatLng(44.351510, 2.570020)) - ->addMarker(new LatLng(44.351873, 2.566250)) - ) - ->addDraw( - (new Polygon('FF0000', 2, 'FF0000DD')) - ->addPoint(new LatLng(44.351172, 2.571092)) - ->addPoint(new LatLng(44.352097, 2.570045)) - ->addPoint(new LatLng(44.352665, 2.568107)) - ->addPoint(new LatLng(44.352887, 2.566503)) - ->addPoint(new LatLng(44.352806, 2.565972)) - ->addPoint(new LatLng(44.351517, 2.565672)) - ) - ->getImage() - ->displayPNG(); -``` - -![Exported OpenStreetMap image](./src/samples/resources/sample1.png) - -## Documentation - -| Class | Description | -|--- |--- | -| [Circle](./docs/classes/DantSu/OpenStreetMapStaticAPI/Circle.md) | DantSu\OpenStreetMapStaticAPI\Circle draw circle on the map.| -| [LatLng](./docs/classes/DantSu/OpenStreetMapStaticAPI/LatLng.md) | DantSu\OpenStreetMapStaticAPI\LatLng define latitude and longitude for map, lines, markers.| -| [Line](./docs/classes/DantSu/OpenStreetMapStaticAPI/Line.md) | DantSu\OpenStreetMapStaticAPI\Line draw line on the map.| -| [MapData](./docs/classes/DantSu/OpenStreetMapStaticAPI/MapData.md) | DantSu\OpenStreetMapStaticAPI\MapData convert latitude and longitude to image pixel position.| -| [Markers](./docs/classes/DantSu/OpenStreetMapStaticAPI/Markers.md) | DantSu\OpenStreetMapStaticAPI\Markers display markers on the map.| -| [OpenStreetMap](./docs/classes/DantSu/OpenStreetMapStaticAPI/OpenStreetMap.md) | DantSu\OpenStreetMapStaticAPI\OpenStreetMap is a PHP library created for easily get static image from OpenStreetMap with markers, lines, polygons and circles.| -| [Polygon](./docs/classes/DantSu/OpenStreetMapStaticAPI/Polygon.md) | DantSu\OpenStreetMapStaticAPI\Polygon draw polygon on the map.| -| [TileLayer](./docs/classes/DantSu/OpenStreetMapStaticAPI/TileLayer.md) | DantSu\OpenStreetMapStaticAPI\TileLayer define tile server url and related configuration| -| [XY](./docs/classes/DantSu/OpenStreetMapStaticAPI/XY.md) | DantSu\OpenStreetMapStaticAPI\XY define X and Y pixel position for map, lines, markers.| - - -## Contributing - -Please fork this repository and contribute back using pull requests. - -Any contributions, large or small, major features, bug fixes, are welcomed and appreciated but will be thoroughly reviewed. - diff --git a/vendor/dantsu/php-osm-static-api/composer.json b/vendor/dantsu/php-osm-static-api/composer.json deleted file mode 100644 index 4e471a5..0000000 --- a/vendor/dantsu/php-osm-static-api/composer.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "name": "dantsu/php-osm-static-api", - "type": "library", - "description": "PHP library to easily get static image from OpenStreetMap (OSM), add markers and draw lines.", - "keywords": [ - "php", - "osm", - "openstreetmap", - "map", - "static", - "image", - "maps", - "api" - ], - "homepage": "https://github.com/DantSu/php-osm-static-api", - "license": "MIT", - "authors": [ - { - "name": "Franck ALARY", - "homepage": "https://github.com/DantSu", - "role": "Developer" - } - ], - "require": { - "php": ">=7.0", - "dantsu/php-image-editor": "^1.3" - }, - "autoload": { - "psr-4": { - "DantSu\\OpenStreetMapStaticAPI\\": "src/" - } - } -} diff --git a/vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/Circle.md b/vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/Circle.md deleted file mode 100644 index 6b9ebef..0000000 --- a/vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/Circle.md +++ /dev/null @@ -1,150 +0,0 @@ - -# Circle - -DantSu\OpenStreetMapStaticAPI\Circle draw circle on the map. - - - -* Full name: `\DantSu\OpenStreetMapStaticAPI\Circle` -* This class implements: \DantSu\OpenStreetMapStaticAPI\Interfaces\Draw - -**See Also:** - -* https://github.com/DantSu/php-osm-static-api - Github page of this project - - - -## Methods - -- [__construct](#-__construct) -- [setEdgePoint](#-setedgepoint) -- [setRadius](#-setradius) -- [draw](#-draw) -- [getBoundingBox](#-getboundingbox) - -### ->__construct - -Circle constructor. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `center` | **\DantSu\OpenStreetMapStaticAPI\LatLng** | Latitude and longitude of the circle center | -| `strokeColor` | **string** | Hexadecimal string color | -| `strokeWeight` | **int** | pixel weight of the line | -| `fillColor` | **string** | Hexadecimal string color | - - - - ---- -### ->setEdgePoint - -Set a latitude and longitude to define the radius of the circle. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `edge` | **\DantSu\OpenStreetMapStaticAPI\LatLng** | Latitude and longitude of the edge point of a circle | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ->setRadius - -Set the radius of the circle in meters. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `radius` | **float** | radius of a circle in meters | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ->draw - -Draw the circle on the map image. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `image` | **\DantSu\PHPImageEditor\Image** | The map image (An instance of DantSu\PHPImageEditor\Image) | -| `mapData` | **\DantSu\OpenStreetMapStaticAPI\MapData** | Bounding box of the map | - - -#### Return Value: - - **$this** : Fluent interface - - -#### See Also: - -* https://github.com/DantSu/php-image-editor - See more about DantSu\PHPImageEditor\Image - ---- -### ->getBoundingBox - -Get bounding box of the shape - - - - - - - - - -#### Return Value: - - **\DantSu\OpenStreetMapStaticAPI\LatLng[]** : - - - ---- - - ---- -> Automatically generated from source code comments on 2023-07-30 using [phpDocumentor](http://www.phpdoc.org/) diff --git a/vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/Interfaces/Draw.md b/vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/Interfaces/Draw.md deleted file mode 100644 index 83c3ebc..0000000 --- a/vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/Interfaces/Draw.md +++ /dev/null @@ -1,63 +0,0 @@ - -# Draw - - - - - -* Full name: `\DantSu\OpenStreetMapStaticAPI\Interfaces\Draw` -* Parent interface: [](../../../../classes.md) - - - -## Methods - -### ->getBoundingBox - - - - - - - - - - - -#### Return Value: - - **array** : - - - ---- -### ->draw - - - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `image` | **\DantSu\PHPImageEditor\Image** | | -| `mapData` | **\DantSu\OpenStreetMapStaticAPI\MapData** | | - - -#### Return Value: - - **mixed** : - - - ---- - - ---- -> Automatically generated from source code comments on 2023-07-30 using [phpDocumentor](http://www.phpdoc.org/) diff --git a/vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/LatLng.md b/vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/LatLng.md deleted file mode 100644 index 040640e..0000000 --- a/vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/LatLng.md +++ /dev/null @@ -1,85 +0,0 @@ - -# LatLng - -DantSu\OpenStreetMapStaticAPI\LatLng define latitude and longitude for map, lines, markers. - -.. - -* Full name: `\DantSu\OpenStreetMapStaticAPI\LatLng` - -**See Also:** - -* https://github.com/DantSu/php-osm-static-api - Github page of this project - - - -## Methods - -- [__construct](#-__construct) -- [getLat](#-getlat) -- [getLng](#-getlng) - -### ->__construct - -LatLng constructor. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `lat` | **float** | Latitude | -| `lng` | **float** | Longitude | - - - - ---- -### ->getLat - -Get latitude - - - - - - - - - -#### Return Value: - - **float** : Latitude - - - ---- -### ->getLng - -Get longitude - - - - - - - - - -#### Return Value: - - **float** : Longitude - - - ---- - - ---- -> Automatically generated from source code comments on 2023-07-30 using [phpDocumentor](http://www.phpdoc.org/) diff --git a/vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/Line.md b/vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/Line.md deleted file mode 100644 index 450aade..0000000 --- a/vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/Line.md +++ /dev/null @@ -1,122 +0,0 @@ - -# Line - -DantSu\OpenStreetMapStaticAPI\Line draw line on the map. - - - -* Full name: `\DantSu\OpenStreetMapStaticAPI\Line` -* This class implements: \DantSu\OpenStreetMapStaticAPI\Interfaces\Draw - -**See Also:** - -* https://github.com/DantSu/php-osm-static-api - Github page of this project - - - -## Methods - -- [__construct](#-__construct) -- [addPoint](#-addpoint) -- [draw](#-draw) -- [getBoundingBox](#-getboundingbox) - -### ->__construct - -Line constructor. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `color` | **string** | Hexadecimal string color | -| `weight` | **int** | pixel weight of the line | - - - - ---- -### ->addPoint - -Add a latitude and longitude to the multi-points line - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `latLng` | **\DantSu\OpenStreetMapStaticAPI\LatLng** | Latitude and longitude to add | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ->draw - -Draw the line on the map image. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `image` | **\DantSu\PHPImageEditor\Image** | The map image (An instance of DantSu\PHPImageEditor\Image) | -| `mapData` | **\DantSu\OpenStreetMapStaticAPI\MapData** | Bounding box of the map | - - -#### Return Value: - - **$this** : Fluent interface - - -#### See Also: - -* https://github.com/DantSu/php-image-editor - See more about DantSu\PHPImageEditor\Image - ---- -### ->getBoundingBox - -Get bounding box of the shape - - - - - - - - - -#### Return Value: - - **\DantSu\OpenStreetMapStaticAPI\LatLng[]** : - - - ---- - - ---- -> Automatically generated from source code comments on 2023-07-30 using [phpDocumentor](http://www.phpdoc.org/) diff --git a/vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/MapData.md b/vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/MapData.md deleted file mode 100644 index a6282e0..0000000 --- a/vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/MapData.md +++ /dev/null @@ -1,464 +0,0 @@ - -# MapData - -DantSu\OpenStreetMapStaticAPI\MapData convert latitude and longitude to image pixel position. - - - -* Full name: `\DantSu\OpenStreetMapStaticAPI\MapData` - -**See Also:** - -* https://github.com/DantSu/php-osm-static-api - Github page of this project - - - -## Methods - -- *(static)* [lngToXTile](#lngtoxtile) -- *(static)* [latToYTile](#lattoytile) -- *(static)* [xTileToLng](#xtiletolng) -- *(static)* [yTileToLat](#ytiletolat) -- *(static)* [getBoundingBoxFromPoints](#getboundingboxfrompoints) -- *(static)* [getCenterAndZoomFromBoundingBox](#getcenterandzoomfromboundingbox) -- [__construct](#-__construct) -- [getLatLngTopLeft](#-getlatlngtopleft) -- [getLatLngTopRight](#-getlatlngtopright) -- [getLatLngBottomLeft](#-getlatlngbottomleft) -- [getLatLngBottomRight](#-getlatlngbottomright) -- [getOutputSize](#-getoutputsize) -- [getZoom](#-getzoom) -- [getTileSize](#-gettilesize) -- [getTileTopLeft](#-gettiletopleft) -- [getTileBottomRight](#-gettilebottomright) -- [getMapCropTopLeft](#-getmapcroptopleft) -- [getMapCropBottomRight](#-getmapcropbottomright) -- [convertLatLngToPxPosition](#-convertlatlngtopxposition) - -### ::lngToXTile - -Convert longitude and zoom to horizontal OpenStreetMap tile number and pixel position. - - - -* This method is **static**. - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `lon` | **float** | Longitude | -| `zoom` | **int** | Zoom | -| `tileSize` | **int** | Tile size | - - -#### Return Value: - - **int[]** : OpenStreetMap tile id and pixel position of the given longitude and zoom - - - ---- -### ::latToYTile - -Convert latitude and zoom to vertical OpenStreetMap tile number and pixel position. - - - -* This method is **static**. - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `lat` | **float** | Latitude | -| `zoom` | **int** | Zoom | -| `tileSize` | **int** | Tile size | - - -#### Return Value: - - **int[]** : OpenStreetMap tile id and pixel position of the given latitude and zoom - - - ---- -### ::xTileToLng - -Convert horizontal OpenStreetMap tile number ad zoom to longitude. - - - -* This method is **static**. - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `id` | **int** | Horizontal OpenStreetMap tile id | -| `position` | **int** | Horizontal pixel position on tile | -| `zoom` | **int** | Zoom | -| `tileSize` | **int** | Tile size | - - -#### Return Value: - - **float** : Longitude of the given OpenStreetMap tile id and zoom - - - ---- -### ::yTileToLat - -Convert vertical OpenStreetMap tile number and zoom to latitude. - - - -* This method is **static**. - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `id` | **int** | Vertical OpenStreetMap tile id | -| `position` | **int** | Vertical pixel position on tile | -| `zoom` | **int** | Zoom | -| `tileSize` | **int** | Tile size | - - -#### Return Value: - - **float** : Latitude of the given OpenStreetMap tile id and zoom - - - ---- -### ::getBoundingBoxFromPoints - -Transform array of LatLng to bounding box - - - -* This method is **static**. - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `points` | **\DantSu\OpenStreetMapStaticAPI\LatLng[]** | | - - -#### Return Value: - - **\DantSu\OpenStreetMapStaticAPI\LatLng[]** : - - - ---- -### ::getCenterAndZoomFromBoundingBox - -Get center and zoom from two points. - - - -* This method is **static**. - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `topLeft` | **\DantSu\OpenStreetMapStaticAPI\LatLng** | | -| `bottomRight` | **\DantSu\OpenStreetMapStaticAPI\LatLng** | | -| `padding` | **int** | | -| `imageWidth` | **int** | | -| `imageHeight` | **int** | | -| `tileSize` | **int** | | - - -#### Return Value: - - **array** : center : LatLng, zoom : int - - - ---- -### ->__construct - - - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `centerMap` | **\DantSu\OpenStreetMapStaticAPI\LatLng** | | -| `zoom` | **int** | | -| `outputSize` | **\DantSu\OpenStreetMapStaticAPI\XY** | | -| `tileSize` | **int** | | - - - - ---- -### ->getLatLngTopLeft - -Get latitude and longitude of top left image - - - - - - - - - -#### Return Value: - - **\DantSu\OpenStreetMapStaticAPI\LatLng** : Latitude and longitude of top left image - - - ---- -### ->getLatLngTopRight - -Get latitude and longitude of top right image - - - - - - - - - -#### Return Value: - - **\DantSu\OpenStreetMapStaticAPI\LatLng** : Latitude and longitude of top right image - - - ---- -### ->getLatLngBottomLeft - -Get latitude and longitude of bottom left image - - - - - - - - - -#### Return Value: - - **\DantSu\OpenStreetMapStaticAPI\LatLng** : Latitude and longitude of bottom left image - - - ---- -### ->getLatLngBottomRight - -Get latitude and longitude of bottom right image - - - - - - - - - -#### Return Value: - - **\DantSu\OpenStreetMapStaticAPI\LatLng** : Latitude and longitude of bottom right image - - - ---- -### ->getOutputSize - -Get width and height of the image in pixel - - - - - - - - - -#### Return Value: - - **\DantSu\OpenStreetMapStaticAPI\XY** : Width and height of the image in pixel - - - ---- -### ->getZoom - -Get the zoom - - - - - - - - - -#### Return Value: - - **int** : zoom - - - ---- -### ->getTileSize - -Get tile size - - - - - - - - - -#### Return Value: - - **int** : tile size - - - ---- -### ->getTileTopLeft - -Get top left tile numbers - - - - - - - - - -#### Return Value: - - **\DantSu\OpenStreetMapStaticAPI\XY** : top left tile numbers - - - ---- -### ->getTileBottomRight - -Get bottom right tile numbers - - - - - - - - - -#### Return Value: - - **\DantSu\OpenStreetMapStaticAPI\XY** : bottom right tile numbers - - - ---- -### ->getMapCropTopLeft - -Get top left crop pixels - - - - - - - - - -#### Return Value: - - **\DantSu\OpenStreetMapStaticAPI\XY** : top left crop pixels - - - ---- -### ->getMapCropBottomRight - -Get bottom right crop pixels - - - - - - - - - -#### Return Value: - - **\DantSu\OpenStreetMapStaticAPI\XY** : bottom right crop pixels - - - ---- -### ->convertLatLngToPxPosition - -Convert a latitude and longitude to a XY pixel position in the image - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `latLng` | **\DantSu\OpenStreetMapStaticAPI\LatLng** | Latitude and longitude to be converted | - - -#### Return Value: - - **\DantSu\OpenStreetMapStaticAPI\XY** : Pixel position of latitude and longitude in the image - - - ---- - - ---- -> Automatically generated from source code comments on 2023-07-30 using [phpDocumentor](http://www.phpdoc.org/) diff --git a/vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/Markers.md b/vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/Markers.md deleted file mode 100644 index 44e5a07..0000000 --- a/vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/Markers.md +++ /dev/null @@ -1,158 +0,0 @@ - -# Markers - -DantSu\OpenStreetMapStaticAPI\Markers display markers on the map. - - - -* Full name: `\DantSu\OpenStreetMapStaticAPI\Markers` - -**See Also:** - -* https://github.com/DantSu/php-osm-static-api - Github page of this project - - - -## Constants - -| Constant | Value | -|:--- |:--- | -|`\DantSu\OpenStreetMapStaticAPI\Markers::ANCHOR_LEFT`|'left'| -|`\DantSu\OpenStreetMapStaticAPI\Markers::ANCHOR_CENTER`|'center'| -|`\DantSu\OpenStreetMapStaticAPI\Markers::ANCHOR_RIGHT`|'right'| -|`\DantSu\OpenStreetMapStaticAPI\Markers::ANCHOR_TOP`|'top'| -|`\DantSu\OpenStreetMapStaticAPI\Markers::ANCHOR_MIDDLE`|'middle'| -|`\DantSu\OpenStreetMapStaticAPI\Markers::ANCHOR_BOTTOM`|'bottom'| - -## Methods - -- [__construct](#-__construct) -- [addMarker](#-addmarker) -- [setAnchor](#-setanchor) -- [draw](#-draw) -- [getBoundingBox](#-getboundingbox) - -### ->__construct - - - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `pathImage` | **mixed** | | - - - - ---- -### ->addMarker - -Add a marker on the map. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `coordinate` | **\DantSu\OpenStreetMapStaticAPI\LatLng** | Latitude and longitude of the marker | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ->setAnchor - -Define the anchor point of the image marker. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `horizontalAnchor` | **int|string** | Horizontal anchor in pixel or you can use `Markers::ANCHOR_LEFT`, `Markers::ANCHOR_CENTER`, `Markers::ANCHOR_RIGHT` | -| `verticalAnchor` | **int|string** | Vertical anchor in pixel or you can use `Markers::ANCHOR_TOP`, `Markers::ANCHOR_MIDDLE`, `Markers::ANCHOR_BOTTOM` | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ->draw - -Draw markers on the image map. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `image` | **\DantSu\PHPImageEditor\Image** | The map image (An instance of DantSu\PHPImageEditor\Image) | -| `mapData` | **\DantSu\OpenStreetMapStaticAPI\MapData** | Bounding box of the map | - - -#### Return Value: - - **$this** : Fluent interface - - -#### See Also: - -* https://github.com/DantSu/php-image-editor - See more about DantSu\PHPImageEditor\Image - ---- -### ->getBoundingBox - -Get bounding box of markers - - - - - - - - - -#### Return Value: - - **\DantSu\OpenStreetMapStaticAPI\LatLng[]** : - - - ---- - - ---- -> Automatically generated from source code comments on 2023-07-30 using [phpDocumentor](http://www.phpdoc.org/) diff --git a/vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/OpenStreetMap.md b/vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/OpenStreetMap.md deleted file mode 100644 index a3ef39e..0000000 --- a/vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/OpenStreetMap.md +++ /dev/null @@ -1,341 +0,0 @@ - -# OpenStreetMap - -DantSu\OpenStreetMapStaticAPI\OpenStreetMap is a PHP library created for easily get static image from OpenStreetMap with markers, lines, polygons and circles. - - - -* Full name: `\DantSu\OpenStreetMapStaticAPI\OpenStreetMap` - -**See Also:** - -* https://github.com/DantSu/php-osm-static-api - Github page of this project - - - -## Methods - -- *(static)* [createFromLatLngZoom](#createfromlatlngzoom) -- *(static)* [createFromBoundingBox](#createfromboundingbox) -- [__construct](#-__construct) -- [addLayer](#-addlayer) -- [addMarkers](#-addmarkers) -- [addDraw](#-adddraw) -- [fitToDraws](#-fittodraws) -- [fitToMarkers](#-fittomarkers) -- [fitToMarkersAndDraws](#-fittomarkersanddraws) -- [fitToPoints](#-fittopoints) -- [getMapData](#-getmapdata) -- [getImage](#-getimage) - -### ::createFromLatLngZoom - -Create new instance of OpenStreetMap. - - - -* This method is **static**. - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `centerMap` | **\DantSu\OpenStreetMapStaticAPI\LatLng** | Latitude and longitude of the map center | -| `zoom` | **int** | Zoom | -| `imageWidth` | **int** | Width of the generated map image | -| `imageHeight` | **int** | Height of the generated map image | -| `tileLayer` | **\DantSu\OpenStreetMapStaticAPI\TileLayer** | Tile server configuration, defaults to OpenStreetMaps tile server | -| `tileSize` | **int** | Tile size in pixels | - - -#### Return Value: - - **\DantSu\OpenStreetMapStaticAPI\OpenStreetMap** : - - - ---- -### ::createFromBoundingBox - -Create new instance of OpenStreetMap. - - - -* This method is **static**. - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `topLeft` | **\DantSu\OpenStreetMapStaticAPI\LatLng** | Latitude and longitude of the map top left | -| `bottomRight` | **\DantSu\OpenStreetMapStaticAPI\LatLng** | Latitude and longitude of the map bottom right | -| `padding` | **int** | Padding to add before top left and after bottom right position. | -| `imageWidth` | **int** | Width of the generated map image | -| `imageHeight` | **int** | Height of the generated map image | -| `tileLayer` | **\DantSu\OpenStreetMapStaticAPI\TileLayer** | Tile server configuration, defaults to OpenStreetMaps tile server | -| `tileSize` | **int** | Tile size in pixels | - - -#### Return Value: - - **\DantSu\OpenStreetMapStaticAPI\OpenStreetMap** : - - - ---- -### ->__construct - -OpenStreetMap constructor. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `centerMap` | **\DantSu\OpenStreetMapStaticAPI\LatLng** | Latitude and longitude of the map center | -| `zoom` | **int** | Zoom | -| `imageWidth` | **int** | Width of the generated map image | -| `imageHeight` | **int** | Height of the generated map image | -| `tileLayer` | **\DantSu\OpenStreetMapStaticAPI\TileLayer** | Tile server configuration, defaults to OpenStreetMaps tile server | -| `tileSize` | **int** | Tile size in pixels | - - - - ---- -### ->addLayer - -Add tile layer to the map - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `layer` | **\DantSu\OpenStreetMapStaticAPI\TileLayer** | An instance of TileLayer | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ->addMarkers - -Add markers on the map - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `markers` | **\DantSu\OpenStreetMapStaticAPI\Markers** | An instance of Markers | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ->addDraw - -Add a line on the map - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `draw` | **\DantSu\OpenStreetMapStaticAPI\Interfaces\Draw** | An instance of Line | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ->fitToDraws - -Fit map to draws. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `padding` | **int** | Padding in pixel | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ->fitToMarkers - -Fit map to markers. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `padding` | **int** | Padding in pixel | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ->fitToMarkersAndDraws - -Fit map to draws and markers. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `padding` | **int** | Padding in pixel | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ->fitToPoints - -Fit map to an array of points. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `points` | **\DantSu\OpenStreetMapStaticAPI\LatLng[]** | LatLng points | -| `padding` | **int** | Padding in pixel | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ->getMapData - -Get data about the generated map (bounding box, size, OSM tile ids...) - - - - - - - - - -#### Return Value: - - **\DantSu\OpenStreetMapStaticAPI\MapData** : data about the generated map (bounding box, size, OSM tile ids...) - - -#### See Also: - -* https://github.com/DantSu/php-osm-static-api/blob/master/docs/classes/DantSu/OpenStreetMapStaticAPI/MapData.md - See more about MapData - ---- -### ->getImage - -Get the map image with markers and lines. - - - - - - - - - -#### Return Value: - - **\DantSu\PHPImageEditor\Image** : An instance of DantSu\PHPImageEditor\Image - - -#### See Also: - -* https://github.com/DantSu/php-image-editor - See more about DantSu\PHPImageEditor\Image - ---- - - ---- -> Automatically generated from source code comments on 2023-07-30 using [phpDocumentor](http://www.phpdoc.org/) diff --git a/vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/Polygon.md b/vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/Polygon.md deleted file mode 100644 index 255b349..0000000 --- a/vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/Polygon.md +++ /dev/null @@ -1,123 +0,0 @@ - -# Polygon - -DantSu\OpenStreetMapStaticAPI\Polygon draw polygon on the map. - - - -* Full name: `\DantSu\OpenStreetMapStaticAPI\Polygon` -* This class implements: \DantSu\OpenStreetMapStaticAPI\Interfaces\Draw - -**See Also:** - -* https://github.com/DantSu/php-osm-static-api - Github page of this project - - - -## Methods - -- [__construct](#-__construct) -- [addPoint](#-addpoint) -- [draw](#-draw) -- [getBoundingBox](#-getboundingbox) - -### ->__construct - -Polygon constructor. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `strokeColor` | **string** | Hexadecimal string color | -| `strokeWeight` | **int** | pixel weight of the line | -| `fillColor` | **string** | Hexadecimal string color | - - - - ---- -### ->addPoint - -Add a latitude and longitude to the polygon - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `latLng` | **\DantSu\OpenStreetMapStaticAPI\LatLng** | Latitude and longitude to add | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ->draw - -Draw the polygon on the map image. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `image` | **\DantSu\PHPImageEditor\Image** | The map image (An instance of DantSu\PHPImageEditor\Image) | -| `mapData` | **\DantSu\OpenStreetMapStaticAPI\MapData** | Bounding box of the map | - - -#### Return Value: - - **$this** : Fluent interface - - -#### See Also: - -* https://github.com/DantSu/php-image-editor - See more about DantSu\PHPImageEditor\Image - ---- -### ->getBoundingBox - -Get bounding box of the shape - - - - - - - - - -#### Return Value: - - **\DantSu\OpenStreetMapStaticAPI\LatLng[]** : - - - ---- - - ---- -> Automatically generated from source code comments on 2023-07-30 using [phpDocumentor](http://www.phpdoc.org/) diff --git a/vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/TileLayer.md b/vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/TileLayer.md deleted file mode 100644 index fde1fa8..0000000 --- a/vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/TileLayer.md +++ /dev/null @@ -1,289 +0,0 @@ - -# TileLayer - -DantSu\OpenStreetMapStaticAPI\TileLayer define tile server url and related configuration - - - -* Full name: `\DantSu\OpenStreetMapStaticAPI\TileLayer` - -**See Also:** - -* https://github.com/DantSu/php-osm-static-api - Github page of this project - - - -## Methods - -- *(static)* [defaultTileLayer](#defaulttilelayer) -- [__construct](#-__construct) -- [setOpacity](#-setopacity) -- [setMaxZoom](#-setmaxzoom) -- [getMaxZoom](#-getmaxzoom) -- [setMinZoom](#-setminzoom) -- [getMinZoom](#-getminzoom) -- [checkZoom](#-checkzoom) -- [getTileUrl](#-gettileurl) -- [getAttributionText](#-getattributiontext) -- [getTile](#-gettile) - -### ::defaultTileLayer - -Default tile server. OpenStreetMaps with related attribution text - - - -* This method is **static**. - - - - - -#### Return Value: - - **\DantSu\OpenStreetMapStaticAPI\TileLayer** : default tile server - - - ---- -### ->__construct - -TileLayer constructor - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `url` | **string** | tile server url with placeholders (`x`, `y`, `z`, `r`, `s`) | -| `attributionText` | **string** | tile server attribution text | -| `subdomains` | **string** | tile server subdomains | -| `curlOptions` | **array** | Array of curl options | -| `failCurlOnError` | **bool** | If true, curl will throw an exception on error. | - - - - ---- -### ->setOpacity - -Set opacity of the layer - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `opacity` | **float** | Opacity value (0 to 1) | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ->setMaxZoom - -Set a max zoom value - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `maxZoom` | **int** | | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ->getMaxZoom - -Get max zoom value - - - - - - - - - -#### Return Value: - - **int** : - - - ---- -### ->setMinZoom - -Set a min zoom value - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `minZoom` | **int** | | - - -#### Return Value: - - **$this** : Fluent interface - - - ---- -### ->getMinZoom - -Get min zoom value - - - - - - - - - -#### Return Value: - - **int** : - - - ---- -### ->checkZoom - -Check if zoom value is between min zoom and max zoom - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `zoom` | **int** | Zoom value to be checked | - - -#### Return Value: - - **int** : - - - ---- -### ->getTileUrl - -Get tile url for coordinates and zoom level - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `x` | **int** | x coordinate | -| `y` | **int** | y coordinate | -| `z` | **int** | zoom level | - - -#### Return Value: - - **string** : tile url - - - ---- -### ->getAttributionText - -Get attribution text - - - - - - - - - -#### Return Value: - - **string** : Attribution text - - - ---- -### ->getTile - -Get an image tile - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `x` | **float** | | -| `y` | **float** | | -| `z` | **int** | | -| `tileSize` | **int** | | - - -#### Return Value: - - **\DantSu\PHPImageEditor\Image** : Image instance containing the tile - - - ---- - - ---- -> Automatically generated from source code comments on 2023-07-30 using [phpDocumentor](http://www.phpdoc.org/) diff --git a/vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/Utils/GeographicConverter.md b/vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/Utils/GeographicConverter.md deleted file mode 100644 index 1ff23f5..0000000 --- a/vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/Utils/GeographicConverter.md +++ /dev/null @@ -1,127 +0,0 @@ - -# GeographicConverter - - - - - -* Full name: `\DantSu\OpenStreetMapStaticAPI\Utils\GeographicConverter` - - - -## Methods - -- *(static)* [earthRadiusAtLatitude](#earthradiusatlatitude) -- *(static)* [metersToLatLng](#meterstolatlng) -- *(static)* [latLngToMeters](#latlngtometers) -- *(static)* [getCenter](#getcenter) - -### ::earthRadiusAtLatitude - -Calculate the earth radius at the given latitude - - - -* This method is **static**. - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `lat` | **float** | | - - -#### Return Value: - - **float** : - - - ---- -### ::metersToLatLng - -Convert distance and angle from a point to latitude and longitude -0 : top, 90 : right; 180 : bottom, 270 : left - - - -* This method is **static**. - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `from` | **\DantSu\OpenStreetMapStaticAPI\LatLng** | Starting coordinate | -| `distance` | **float** | Distance in meters | -| `angle` | **float** | Angle in degrees | - - -#### Return Value: - - **\DantSu\OpenStreetMapStaticAPI\LatLng** : - - - ---- -### ::latLngToMeters - -Get distance in meters between two points. - - - -* This method is **static**. - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `from` | **\DantSu\OpenStreetMapStaticAPI\LatLng** | Starting coordinate | -| `end` | **\DantSu\OpenStreetMapStaticAPI\LatLng** | Ending coordinate | - - -#### Return Value: - - **float** : - - - ---- -### ::getCenter - -Get center between two coordinates. - - - -* This method is **static**. - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `point1` | **\DantSu\OpenStreetMapStaticAPI\LatLng** | Vertical OpenStreetMap tile id | -| `point2` | **\DantSu\OpenStreetMapStaticAPI\LatLng** | Vertical pixel position on tile | - - -#### Return Value: - - **\DantSu\OpenStreetMapStaticAPI\LatLng** : midpoint between the given coordinates - - - ---- - - ---- -> Automatically generated from source code comments on 2023-07-30 using [phpDocumentor](http://www.phpdoc.org/) diff --git a/vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/XY.md b/vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/XY.md deleted file mode 100644 index d55208b..0000000 --- a/vendor/dantsu/php-osm-static-api/docs/classes/DantSu/OpenStreetMapStaticAPI/XY.md +++ /dev/null @@ -1,85 +0,0 @@ - -# XY - -DantSu\OpenStreetMapStaticAPI\XY define X and Y pixel position for map, lines, markers. - -.. - -* Full name: `\DantSu\OpenStreetMapStaticAPI\XY` - -**See Also:** - -* https://github.com/DantSu/php-osm-static-api - Github page of this project - - - -## Methods - -- [__construct](#-__construct) -- [getX](#-getx) -- [getY](#-gety) - -### ->__construct - -XY constructor. - - - - - - - - -#### Parameters: - -| Parameter | Type | Description | -|-----------|------|-------------| -| `x` | **int** | X | -| `y` | **int** | Y | - - - - ---- -### ->getX - -Get X - - - - - - - - - -#### Return Value: - - **int** : X - - - ---- -### ->getY - -Get Y - - - - - - - - - -#### Return Value: - - **int** : Y - - - ---- - - ---- -> Automatically generated from source code comments on 2023-07-30 using [phpDocumentor](http://www.phpdoc.org/) diff --git a/vendor/dantsu/php-osm-static-api/docs/index.md b/vendor/dantsu/php-osm-static-api/docs/index.md deleted file mode 100644 index a46b06e..0000000 --- a/vendor/dantsu/php-osm-static-api/docs/index.md +++ /dev/null @@ -1,54 +0,0 @@ - -# PHP OpenStreetMap Static API - -This is an automatically generated documentation for **PHP OpenStreetMap Static API**. - - -## Namespaces - - -### \DantSu\OpenStreetMapStaticAPI - -#### Classes - -| Class | Description | -|--- |--- | -| [Circle](./classes/DantSu/OpenStreetMapStaticAPI/Circle.md) | DantSu\OpenStreetMapStaticAPI\Circle draw circle on the map.| -| [LatLng](./classes/DantSu/OpenStreetMapStaticAPI/LatLng.md) | DantSu\OpenStreetMapStaticAPI\LatLng define latitude and longitude for map, lines, markers.| -| [Line](./classes/DantSu/OpenStreetMapStaticAPI/Line.md) | DantSu\OpenStreetMapStaticAPI\Line draw line on the map.| -| [MapData](./classes/DantSu/OpenStreetMapStaticAPI/MapData.md) | DantSu\OpenStreetMapStaticAPI\MapData convert latitude and longitude to image pixel position.| -| [Markers](./classes/DantSu/OpenStreetMapStaticAPI/Markers.md) | DantSu\OpenStreetMapStaticAPI\Markers display markers on the map.| -| [OpenStreetMap](./classes/DantSu/OpenStreetMapStaticAPI/OpenStreetMap.md) | DantSu\OpenStreetMapStaticAPI\OpenStreetMap is a PHP library created for easily get static image from OpenStreetMap with markers, lines, polygons and circles.| -| [Polygon](./classes/DantSu/OpenStreetMapStaticAPI/Polygon.md) | DantSu\OpenStreetMapStaticAPI\Polygon draw polygon on the map.| -| [TileLayer](./classes/DantSu/OpenStreetMapStaticAPI/TileLayer.md) | DantSu\OpenStreetMapStaticAPI\TileLayer define tile server url and related configuration| -| [XY](./classes/DantSu/OpenStreetMapStaticAPI/XY.md) | DantSu\OpenStreetMapStaticAPI\XY define X and Y pixel position for map, lines, markers.| - - - - -### \DantSu\OpenStreetMapStaticAPI\Interfaces - - - - -#### Interfaces - -| Interface | Description | -|--- |--- | -| [Draw](./classes/DantSu/OpenStreetMapStaticAPI/Interfaces/Draw.md) | | - - - -### \DantSu\OpenStreetMapStaticAPI\Utils - -#### Classes - -| Class | Description | -|--- |--- | -| [GeographicConverter](./classes/DantSu/OpenStreetMapStaticAPI/Utils/GeographicConverter.md) | | - - - - ---- -> Automatically generated from source code comments on 2023-07-30 using [phpDocumentor](http://www.phpdoc.org/) diff --git a/vendor/dantsu/php-osm-static-api/src/Circle.php b/vendor/dantsu/php-osm-static-api/src/Circle.php deleted file mode 100644 index 00f74f8..0000000 --- a/vendor/dantsu/php-osm-static-api/src/Circle.php +++ /dev/null @@ -1,126 +0,0 @@ -center = $center; - $this->edge = $center; - $this->strokeColor = \str_replace('#', '', $strokeColor); - $this->strokeWeight = $strokeWeight > 0 ? $strokeWeight : 0; - $this->fillColor = \str_replace('#', '', $fillColor); - } - - /** - * Set a latitude and longitude to define the radius of the circle. - * - * @param LatLng $edge Latitude and longitude of the edge point of a circle - * @return $this Fluent interface - */ - public function setEdgePoint(LatLng $edge): Circle - { - $this->edge = $edge; - return $this; - } - - /** - * Set the radius of the circle in meters. - * - * @param float $radius radius of a circle in meters - * @return $this Fluent interface - */ - public function setRadius(float $radius): Circle - { - $this->edge = GeographicConverter::metersToLatLng($this->center, $radius, 45); - return $this; - } - - /** - * Draw the circle on the map image. - * - * @see https://github.com/DantSu/php-image-editor See more about DantSu\PHPImageEditor\Image - * - * @param Image $image The map image (An instance of DantSu\PHPImageEditor\Image) - * @param MapData $mapData Bounding box of the map - * @return $this Fluent interface - */ - public function draw(Image $image, MapData $mapData): Circle - { - $center = $mapData->convertLatLngToPxPosition($this->center); - $edge = $mapData->convertLatLngToPxPosition($this->edge); - - $angleAndLenght = Geometry2D::getAngleAndLengthFromPoints($center->getX(), $center->getY(), $edge->getX(), $edge->getY()); - $length = \round($angleAndLenght['length'] + $this->strokeWeight / 2); - - $dImage = Image::newCanvas($image->getWidth(), $image->getHeight()); - - if ($this->strokeWeight > 0) { - $dImage->drawCircle($center->getX(), $center->getY(), $length * 2, $this->strokeColor); - } - - $dImage->drawCircle($center->getX(), $center->getY(), ($length - $this->strokeWeight) * 2, $this->fillColor); - - $image->pasteOn($dImage, 0, 0); - return $this; - } - - - /** - * Get bounding box of the shape - * @return LatLng[] - */ - public function getBoundingBox(): array - { - $distance = GeographicConverter::latLngToMeters($this->center, $this->edge) * 1.4142; - return [ - GeographicConverter::metersToLatLng($this->center, $distance, 315), - GeographicConverter::metersToLatLng($this->center, $distance, 135) - ]; - } -} diff --git a/vendor/dantsu/php-osm-static-api/src/Interfaces/Draw.php b/vendor/dantsu/php-osm-static-api/src/Interfaces/Draw.php deleted file mode 100644 index 9694e2e..0000000 --- a/vendor/dantsu/php-osm-static-api/src/Interfaces/Draw.php +++ /dev/null @@ -1,14 +0,0 @@ -lat = $lat; - $this->lng = $lng; - } - - /** - * Get latitude - * @return float Latitude - */ - public function getLat(): float - { - return $this->lat; - } - - /** - * Get longitude - * @return float Longitude - */ - public function getLng(): float - { - return $this->lng; - } -} diff --git a/vendor/dantsu/php-osm-static-api/src/Line.php b/vendor/dantsu/php-osm-static-api/src/Line.php deleted file mode 100644 index 63c3eff..0000000 --- a/vendor/dantsu/php-osm-static-api/src/Line.php +++ /dev/null @@ -1,90 +0,0 @@ -color = \str_replace('#', '', $color); - $this->weight = $weight; - } - - /** - * Add a latitude and longitude to the multi-points line - * @param LatLng $latLng Latitude and longitude to add - * @return $this Fluent interface - */ - public function addPoint(LatLng $latLng): Line - { - $this->points[] = $latLng; - return $this; - } - - /** - * Draw the line on the map image. - * - * @see https://github.com/DantSu/php-image-editor See more about DantSu\PHPImageEditor\Image - * - * @param Image $image The map image (An instance of DantSu\PHPImageEditor\Image) - * @param MapData $mapData Bounding box of the map - * @return $this Fluent interface - */ - public function draw(Image $image, MapData $mapData): Line - { - /** - * @var $cPoints XY[] - */ - $cPoints = \array_map( - function (LatLng $p) use ($mapData) { - return $mapData->convertLatLngToPxPosition($p); - }, - $this->points - ); - - foreach ($cPoints as $k => $point) { - if (isset($cPoints[$k - 1])) { - $image->drawLine($cPoints[$k - 1]->getX(), $cPoints[$k - 1]->getY(), $point->getX(), $point->getY(), $this->weight, $this->color); - } - } - return $this; - } - - /** - * Get bounding box of the shape - * @return LatLng[] - */ - public function getBoundingBox(): array - { - return MapData::getBoundingBoxFromPoints($this->points); - } -} diff --git a/vendor/dantsu/php-osm-static-api/src/MapData.php b/vendor/dantsu/php-osm-static-api/src/MapData.php deleted file mode 100644 index b25a25f..0000000 --- a/vendor/dantsu/php-osm-static-api/src/MapData.php +++ /dev/null @@ -1,367 +0,0 @@ - $tile, - 'position' => \round($tileSize * ($x - $tile)) - ]; - } - - /** - * Convert latitude and zoom to vertical OpenStreetMap tile number and pixel position. - * @param float $lat Latitude - * @param int $zoom Zoom - * @param int $tileSize Tile size - * @return int[] OpenStreetMap tile id and pixel position of the given latitude and zoom - */ - public static function latToYTile(float $lat, int $zoom, int $tileSize): array - { - $y = (1 - \log(\tan(\deg2rad($lat)) + 1 / \cos(\deg2rad($lat))) / M_PI) / 2 * \pow(2, $zoom); - $tile = \floor($y); - return [ - 'id' => $tile, - 'position' => \round($tileSize * ($y - $tile)) - ]; - } - - /** - * Convert horizontal OpenStreetMap tile number ad zoom to longitude. - * @param int $id Horizontal OpenStreetMap tile id - * @param int $position Horizontal pixel position on tile - * @param int $zoom Zoom - * @param int $tileSize Tile size - * @return float Longitude of the given OpenStreetMap tile id and zoom - */ - public static function xTileToLng(int $id, int $position, int $zoom, int $tileSize): float - { - return ($id + $position / $tileSize) / \pow(2, $zoom) * 360 - 180; - } - - /** - * Convert vertical OpenStreetMap tile number and zoom to latitude. - * @param int $id Vertical OpenStreetMap tile id - * @param int $position Vertical pixel position on tile - * @param int $zoom Zoom - * @param int $tileSize Tile size - * @return float Latitude of the given OpenStreetMap tile id and zoom - */ - public static function yTileToLat(int $id, int $position, int $zoom, int $tileSize): float - { - return \rad2deg(\atan(\sinh(M_PI * (1 - 2 * ($id + $position / $tileSize) / \pow(2, $zoom))))); - } - - /** - * Transform array of LatLng to bounding box - * - * @param LatLng[] $points - * @return LatLng[] - */ - public static function getBoundingBoxFromPoints(array $points): array - { - $minLat = 360; - $maxLat = -360; - $minLng = 360; - $maxLng = -360; - foreach ($points as $point) { - if ($point->getLat() < $minLat) { - $minLat = $point->getLat(); - } - if ($point->getLat() > $maxLat) { - $maxLat = $point->getLat(); - } - if ($point->getLng() < $minLng) { - $minLng = $point->getLng(); - } - if ($point->getLng() > $maxLng) { - $maxLng = $point->getLng(); - } - } - return [new LatLng($maxLat, $minLng), new LatLng($minLat, $maxLng)]; - } - - /** - * Get center and zoom from two points. - * - * @param LatLng $topLeft - * @param LatLng $bottomRight - * @param int $padding - * @param int $imageWidth - * @param int $imageHeight - * @param int $tileSize - * @return array center : LatLng, zoom : int - */ - public static function getCenterAndZoomFromBoundingBox(LatLng $topLeft, LatLng $bottomRight, int $padding, int $imageWidth, int $imageHeight, int $tileSize): array - { - $zoom = 20; - $padding *= 2; - $topTilePos = MapData::latToYTile($topLeft->getLat(), $zoom, $tileSize); - $bottomTilePos = MapData::latToYTile($bottomRight->getLat(), $zoom, $tileSize); - $leftTilePos = MapData::lngToXTile($topLeft->getLng(), $zoom, $tileSize); - $rightTilePos = MapData::lngToXTile($bottomRight->getLng(), $zoom, $tileSize); - $pxZoneWidth = ($rightTilePos['id'] - $leftTilePos['id']) * $tileSize + $rightTilePos['position'] - $leftTilePos['position']; - $pxZoneHeight = ($bottomTilePos['id'] - $topTilePos['id']) * $tileSize + $bottomTilePos['position'] - $topTilePos['position']; - - return [ - 'center' => GeographicConverter::getCenter($topLeft, $bottomRight), - 'zoom' => \intval( - \floor( - \log( - \min( - 1, - ($imageHeight - $padding) / $pxZoneHeight, - ($imageWidth - $padding) / $pxZoneWidth - ) * \pow(2, $zoom) - ) / 0.69314 - ) - ) - ]; - } - - /** - * @var int zoom - */ - private $zoom; - /** - * @var int tile size - */ - private $tileSize; - /** - * @var XY Width and height of the image in pixel - */ - private $outputSize; - /** - * @var XY top left tile numbers - */ - private $tileTopLeft; - /** - * @var XY bottom right tile numbers - */ - private $tileBottomRight; - /** - * @var XY left and top pixels to crop to fit final image size - */ - private $mapCropTopLeft; - /** - * @var XY bottom and right pixels to crop to fit final image size - */ - private $mapCropBottomRight; - /** - * @var LatLng Latitude and longitude of top left image - */ - private $latLngTopLeft; - /** - * @var LatLng Latitude and longitude of top right image - */ - private $latLngTopRight; - /** - * @var LatLng Latitude and longitude of bottom left image - */ - private $latLngBottomLeft; - /** - * @var LatLng Latitude and longitude of bottom right image - */ - private $latLngBottomRight; - - - /** - * @param LatLng $centerMap - * @param int $zoom - * @param XY $outputSize - * @param int $tileSize - */ - public function __construct(LatLng $centerMap, int $zoom, XY $outputSize, int $tileSize) - { - $this->zoom = $zoom; - $this->outputSize = $outputSize; - $this->tileSize = $tileSize; - - $x = static::lngToXTile($centerMap->getLng(), $zoom, $this->tileSize); - $y = static::latToYTile($centerMap->getLat(), $zoom, $this->tileSize); - - $startX = \floor($outputSize->getX() / 2 - $x['position']); - $startY = \floor($outputSize->getY() / 2 - $y['position']); - - - $rightSize = $outputSize->getX() - $startX; - $bottomSize = $outputSize->getY() - $startY; - - $this->mapCropTopLeft = new XY( - $startX < 0 ? \abs($startX) : ($startX % $this->tileSize == 0 ? 0 : $this->tileSize - $startX % $this->tileSize), - $startY < 0 ? \abs($startY) : ($startY % $this->tileSize == 0 ? 0 : $this->tileSize - $startY % $this->tileSize) - ); - $this->mapCropBottomRight = new XY( - ($rightSize % $this->tileSize == 0 ? 0 : $this->tileSize - $rightSize % $this->tileSize), - ($bottomSize % $this->tileSize == 0 ? 0 : $this->tileSize - $bottomSize % $this->tileSize) - ); - $this->tileTopLeft = new XY( - $x['id'] - \ceil($startX / $this->tileSize), - $y['id'] - \ceil($startY / $this->tileSize) - ); - $this->tileBottomRight = new XY( - $x['id'] - 1 + \ceil($rightSize / $this->tileSize), - $y['id'] - 1 + \ceil($bottomSize / $this->tileSize) - ); - - $this->latLngTopLeft = new LatLng( - static::yTileToLat($this->tileTopLeft->getY(), $this->mapCropTopLeft->getY(), $zoom, $this->tileSize), - static::xTileToLng($this->tileTopLeft->getX(), $this->mapCropTopLeft->getX(), $zoom, $this->tileSize) - ); - $this->latLngTopRight = new LatLng( - static::yTileToLat($this->tileTopLeft->getY(), $this->mapCropTopLeft->getY(), $zoom, $this->tileSize), - static::xTileToLng($this->tileBottomRight->getX(), $this->tileSize - $this->mapCropBottomRight->getX(), $zoom, $this->tileSize) - ); - $this->latLngBottomLeft = new LatLng( - static::yTileToLat($this->tileBottomRight->getY(), $this->tileSize - $this->mapCropBottomRight->getY(), $zoom, $this->tileSize), - static::xTileToLng($this->tileTopLeft->getX(), $this->mapCropTopLeft->getX(), $zoom, $this->tileSize) - ); - $this->latLngBottomRight = new LatLng( - static::yTileToLat($this->tileBottomRight->getY(), $this->tileSize - $this->mapCropBottomRight->getY(), $zoom, $this->tileSize), - static::xTileToLng($this->tileBottomRight->getX(), $this->tileSize - $this->mapCropBottomRight->getX(), $zoom, $this->tileSize) - ); - } - - - /** - * Get latitude and longitude of top left image - * @return LatLng Latitude and longitude of top left image - */ - public function getLatLngTopLeft(): LatLng - { - return $this->latLngTopLeft; - } - - /** - * Get latitude and longitude of top right image - * @return LatLng Latitude and longitude of top right image - */ - public function getLatLngTopRight(): LatLng - { - return $this->latLngTopRight; - } - - /** - * Get latitude and longitude of bottom left image - * @return LatLng Latitude and longitude of bottom left image - */ - public function getLatLngBottomLeft(): LatLng - { - return $this->latLngBottomLeft; - } - - /** - * Get latitude and longitude of bottom right image - * @return LatLng Latitude and longitude of bottom right image - */ - public function getLatLngBottomRight(): LatLng - { - return $this->latLngBottomRight; - } - - /** - * Get width and height of the image in pixel - * @return XY Width and height of the image in pixel - */ - public function getOutputSize(): XY - { - return $this->outputSize; - } - - /** - * Get the zoom - * @return int zoom - */ - public function getZoom(): int - { - return $this->zoom; - } - - /** - * Get tile size - * @return int tile size - */ - public function getTileSize(): int - { - return $this->tileSize; - } - - - /** - * Get top left tile numbers - * @return XY top left tile numbers - */ - public function getTileTopLeft(): XY - { - return $this->tileTopLeft; - } - - /** - * Get bottom right tile numbers - * @return XY bottom right tile numbers - */ - public function getTileBottomRight(): XY - { - return $this->tileBottomRight; - } - - /** - * Get top left crop pixels - * @return XY top left crop pixels - */ - public function getMapCropTopLeft(): XY - { - return $this->mapCropTopLeft; - } - - /** - * Get bottom right crop pixels - * @return XY bottom right crop pixels - */ - public function getMapCropBottomRight(): XY - { - return $this->mapCropBottomRight; - } - - - /** - * Convert a latitude and longitude to a XY pixel position in the image - * @param LatLng $latLng Latitude and longitude to be converted - * @return XY Pixel position of latitude and longitude in the image - */ - public function convertLatLngToPxPosition(LatLng $latLng): XY - { - $x = static::lngToXTile($latLng->getLng(), $this->zoom, $this->tileSize); - $y = static::latToYTile($latLng->getLat(), $this->zoom, $this->tileSize); - - return new XY( - ($x['id'] - $this->tileTopLeft->getX()) * $this->tileSize - $this->mapCropTopLeft->getX() + $x['position'], - ($y['id'] - $this->tileTopLeft->getY()) * $this->tileSize - $this->mapCropTopLeft->getY() + $y['position'] - ); - } - - -} diff --git a/vendor/dantsu/php-osm-static-api/src/Markers.php b/vendor/dantsu/php-osm-static-api/src/Markers.php deleted file mode 100644 index 87f8654..0000000 --- a/vendor/dantsu/php-osm-static-api/src/Markers.php +++ /dev/null @@ -1,123 +0,0 @@ -image = Image::fromPath($pathImage); - } - - /** - * Add a marker on the map. - * @param LatLng $coordinate Latitude and longitude of the marker - * @return $this Fluent interface - */ - public function addMarker(LatLng $coordinate): Markers - { - $this->coordinates[] = $coordinate; - return $this; - } - - /** - * Define the anchor point of the image marker. - * @param int|string $horizontalAnchor Horizontal anchor in pixel or you can use `Markers::ANCHOR_LEFT`, `Markers::ANCHOR_CENTER`, `Markers::ANCHOR_RIGHT` - * @param int|string $verticalAnchor Vertical anchor in pixel or you can use `Markers::ANCHOR_TOP`, `Markers::ANCHOR_MIDDLE`, `Markers::ANCHOR_BOTTOM` - * @return $this Fluent interface - */ - public function setAnchor($horizontalAnchor, $verticalAnchor): Markers - { - $this->horizontalAnchor = $horizontalAnchor; - $this->verticalAnchor = $verticalAnchor; - return $this; - } - - /** - * Draw markers on the image map. - * - * @see https://github.com/DantSu/php-image-editor See more about DantSu\PHPImageEditor\Image - * @param Image $image The map image (An instance of DantSu\PHPImageEditor\Image) - * @param MapData $mapData Bounding box of the map - * @return $this Fluent interface - */ - public function draw(Image $image, MapData $mapData): Markers - { - $imageMarginLeft = $this->horizontalAnchor; - switch ($imageMarginLeft) { - case Markers::ANCHOR_LEFT: - $imageMarginLeft = 0; - break; - case Markers::ANCHOR_CENTER: - $imageMarginLeft = $this->image->getWidth() / 2; - break; - case Markers::ANCHOR_RIGHT: - $imageMarginLeft = $this->image->getWidth(); - break; - } - - $imageMarginTop = $this->verticalAnchor; - switch ($imageMarginTop) { - case Markers::ANCHOR_TOP: - $imageMarginTop = 0; - break; - case Markers::ANCHOR_MIDDLE: - $imageMarginTop = $this->image->getHeight() / 2; - break; - case Markers::ANCHOR_BOTTOM: - $imageMarginTop = $this->image->getHeight(); - break; - } - - foreach ($this->coordinates as $coordinate) { - $xy = $mapData->convertLatLngToPxPosition($coordinate); - $image->pasteOn($this->image, $xy->getX() + 1 - $imageMarginLeft, $xy->getY() + 1 - $imageMarginTop); - } - - return $this; - } - - /** - * Get bounding box of markers - * @return LatLng[] - */ - public function getBoundingBox(): array - { - return MapData::getBoundingBoxFromPoints($this->coordinates); - } -} diff --git a/vendor/dantsu/php-osm-static-api/src/OpenStreetMap.php b/vendor/dantsu/php-osm-static-api/src/OpenStreetMap.php deleted file mode 100644 index 1a8ef8e..0000000 --- a/vendor/dantsu/php-osm-static-api/src/OpenStreetMap.php +++ /dev/null @@ -1,283 +0,0 @@ -mapData = new MapData($centerMap, $tileLayer->checkZoom($zoom), new XY($imageWidth, $imageHeight), $tileSize); - $this->layers = [$tileLayer]; - } - - /** - * Add tile layer to the map - * @param TileLayer $layer An instance of TileLayer - * @return $this Fluent interface - */ - public function addLayer(TileLayer $layer) - { - $this->layers[] = $layer; - return $this; - } - - /** - * Add markers on the map - * @param Markers $markers An instance of Markers - * @return $this Fluent interface - */ - public function addMarkers(Markers $markers) - { - $this->markers[] = $markers; - return $this; - } - - /** - * Add a line on the map - * @param Draw $draw An instance of Line - * @return $this Fluent interface - */ - public function addDraw(Draw $draw) - { - $this->draws[] = $draw; - return $this; - } - - /** - * Fit map to draws. - * - * @param int $padding Padding in pixel - * @return $this Fluent interface - */ - public function fitToDraws(int $padding = 0) - { - $points = []; - foreach ($this->draws as $draw) { - $points = \array_merge($points, $draw->getBoundingBox()); - } - return $this->fitToPoints($points, $padding); - } - - /** - * Fit map to markers. - * - * @param int $padding Padding in pixel - * @return $this Fluent interface - */ - public function fitToMarkers(int $padding = 0) - { - $points = []; - foreach ($this->markers as $markers) { - $points = \array_merge($points, $markers->getBoundingBox()); - } - return $this->fitToPoints($points, $padding); - } - - /** - * Fit map to draws and markers. - * - * @param int $padding Padding in pixel - * @return $this Fluent interface - */ - public function fitToMarkersAndDraws(int $padding = 0) - { - $points = []; - foreach ($this->draws as $draw) { - $points = \array_merge($points, $draw->getBoundingBox()); - } - foreach ($this->markers as $markers) { - $points = \array_merge($points, $markers->getBoundingBox()); - } - return $this->fitToPoints($points, $padding); - } - - /** - * Fit map to an array of points. - * - * @param LatLng[] $points LatLng points - * @param int $padding Padding in pixel - * @return $this Fluent interface - */ - public function fitToPoints(array $points, int $padding = 0) - { - $outputSize = $this->mapData->getOutputSize(); - $tileSize = $this->mapData->getTileSize(); - $boundingBox = MapData::getBoundingBoxFromPoints($points); - $latLngZoom = MapData::getCenterAndZoomFromBoundingBox($boundingBox[0], $boundingBox[1], $padding, $outputSize->getX(), $outputSize->getY(), $tileSize); - $this->mapData = new MapData($latLngZoom['center'], $this->layers[0]->checkZoom($latLngZoom['zoom']), $outputSize, $tileSize); - return $this; - } - - /** - * Get data about the generated map (bounding box, size, OSM tile ids...) - * @see https://github.com/DantSu/php-osm-static-api/blob/master/docs/classes/DantSu/OpenStreetMapStaticAPI/MapData.md See more about MapData - * @return MapData data about the generated map (bounding box, size, OSM tile ids...) - */ - public function getMapData(): MapData - { - return $this->mapData; - } - - /** - * Get only the map image. - * @see https://github.com/DantSu/php-image-editor See more about DantSu\PHPImageEditor\Image - * @return Image An instance of DantSu\PHPImageEditor\Image - */ - protected function getMapImage(): Image - { - $imgSize = $this->mapData->getOutputSize(); - $startX = $this->mapData->getMapCropTopLeft()->getX() * -1; - $startY = $this->mapData->getMapCropTopLeft()->getY() * -1; - - $image = Image::newCanvas($imgSize->getX(), $imgSize->getY()); - $tileSize = $this->mapData->getTileSize(); - - foreach ($this->layers as $tileLayer) { - $yTile = $this->mapData->getTileTopLeft()->getY(); - for ($y = $startY; $y < $imgSize->getY(); $y += $tileSize) { - $xTile = $this->mapData->getTileTopLeft()->getX(); - for ($x = $startX; $x < $imgSize->getX(); $x += $tileSize) { - $image->pasteOn( - $tileLayer->getTile($xTile, $yTile, $this->mapData->getZoom(), $tileSize), - $x, - $y - ); - ++$xTile; - } - ++$yTile; - } - } - return $image; - } - - /** - * Draw OpenStreetMap attribution at the right bottom of the image - * @param Image $image The image of the map - * @return Image The image of the map with attribution - */ - protected function drawAttribution(Image $image): Image - { - $margin = 5; - $attribution = function (Image $image, $margin): array { - return $image->writeTextAndGetBoundingBox( - \implode( - ' - ', - \array_map(function ($layer) { - return $layer->getAttributionText(); - }, $this->layers) - ), - __DIR__ . '/resources/font.ttf', - 10, - '0078A8', - $margin, - $margin, - Image::ALIGN_LEFT, - Image::ALIGN_TOP - ); - }; - - $bbox = $attribution(Image::newCanvas(1, 1), $margin); - $imageAttribution = Image::newCanvas($bbox['bottom-right']['x'] + $margin, $bbox['bottom-right']['y'] + $margin); - $imageAttribution->drawRectangle(0, 0, $imageAttribution->getWidth(), $imageAttribution->getHeight(), 'FFFFFF33'); - $attribution($imageAttribution, $margin); - - return $image->pasteOn($imageAttribution, Image::ALIGN_RIGHT, Image::ALIGN_BOTTOM); - } - - /** - * Get the map image with markers and lines. - * - * @see https://github.com/DantSu/php-image-editor See more about DantSu\PHPImageEditor\Image - * @return Image An instance of DantSu\PHPImageEditor\Image - */ - public function getImage(): Image - { - $image = $this->getMapImage(); - - foreach ($this->draws as $line) { - $line->draw($image, $this->mapData); - } - - foreach ($this->markers as $markers) { - $markers->draw($image, $this->mapData); - } - - return $this->drawAttribution($image); - } -} diff --git a/vendor/dantsu/php-osm-static-api/src/Polygon.php b/vendor/dantsu/php-osm-static-api/src/Polygon.php deleted file mode 100644 index 84a2622..0000000 --- a/vendor/dantsu/php-osm-static-api/src/Polygon.php +++ /dev/null @@ -1,120 +0,0 @@ -strokeColor = \str_replace('#', '', $strokeColor); - $this->strokeWeight = $strokeWeight > 0 ? $strokeWeight : 0; - $this->fillColor = \str_replace('#', '', $fillColor); - } - - /** - * Add a latitude and longitude to the polygon - * @param LatLng $latLng Latitude and longitude to add - * @return $this Fluent interface - */ - public function addPoint(LatLng $latLng): Polygon - { - $this->points[] = $latLng; - return $this; - } - - /** - * Draw the polygon on the map image. - * - * @see https://github.com/DantSu/php-image-editor See more about DantSu\PHPImageEditor\Image - * - * @param Image $image The map image (An instance of DantSu\PHPImageEditor\Image) - * @param MapData $mapData Bounding box of the map - * @return $this Fluent interface - */ - public function draw(Image $image, MapData $mapData): Polygon - { - /** - * @var $cPoints XY[] - */ - $cPoints = \array_map( - function (LatLng $p) use ($mapData) { - return $mapData->convertLatLngToPxPosition($p); - }, - $this->points - ); - - $image->pasteOn( - Image::newCanvas($image->getWidth(), $image->getHeight()) - ->drawPolygon( - \array_reduce( - $cPoints, - function (array $acc, XY $p) { - $acc[] = $p->getX(); - $acc[] = $p->getY(); - return $acc; - }, - [] - ), - $this->fillColor - ), - 0, - 0 - ); - - if ($this->strokeWeight > 0) { - foreach ($cPoints as $k => $point) { - $pK = $k - 1; - if (!isset($cPoints[$pK])) { - $pK = \count($cPoints) - 1; - } - $image->drawLine($cPoints[$pK]->getX(), $cPoints[$pK]->getY(), $point->getX(), $point->getY(), $this->strokeWeight, $this->strokeColor); - } - } - - return $this; - } - - /** - * Get bounding box of the shape - * @return LatLng[] - */ - public function getBoundingBox(): array - { - return MapData::getBoundingBoxFromPoints($this->points); - } -} diff --git a/vendor/dantsu/php-osm-static-api/src/TileLayer.php b/vendor/dantsu/php-osm-static-api/src/TileLayer.php deleted file mode 100644 index 87b41d0..0000000 --- a/vendor/dantsu/php-osm-static-api/src/TileLayer.php +++ /dev/null @@ -1,206 +0,0 @@ - - * @access public - * @see https://github.com/DantSu/php-osm-static-api Github page of this project - */ -class TileLayer -{ - - /** - * Default tile server. OpenStreetMaps with related attribution text - * @return TileLayer default tile server - */ - public static function defaultTileLayer(): TileLayer - { - return new TileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', '© OpenStreetMap contributors'); - } - - /** - * @var string Tile server url, defaults to OpenStreetMap tile server - */ - protected $url; - - /** - * @var string Tile server attribution according to license - */ - protected $attributionText; - - /** - * @var string[] Tile server subdomains - */ - protected $subdomains; - - /** - * @var float Opacity - */ - protected $opacity = 1; - - /* - * @var int Max zoom value - */ - protected $maxZoom = 20; - - /* - * @var int Min zoom value - */ - protected $minZoom = 0; - - - /** - * @array $curlOptions Array of curl options - */ - protected $curlOptions = []; - - /** - * @bool $failCurlOnError If true, curl will throw an exception on error. - */ - protected $failCurlOnError = false; - - /** - * TileLayer constructor - * @param string $url tile server url with placeholders (`x`, `y`, `z`, `r`, `s`) - * @param string $attributionText tile server attribution text - * @param string $subdomains tile server subdomains - * @param array $curlOptions Array of curl options - * @param bool $failCurlOnError If true, curl will throw an exception on error. - */ - public function __construct(string $url, string $attributionText, string $subdomains = 'abc', array $curlOptions = [], bool $failCurlOnError = false) - { - $this->url = $url; - $this->attributionText = $attributionText; - $this->subdomains = \str_split($subdomains); - $this->curlOptions = $curlOptions; - $this->failCurlOnError = $failCurlOnError; - } - - /** - * Set opacity of the layer - * @param float $opacity Opacity value (0 to 1) - * @return $this Fluent interface - */ - public function setOpacity(float $opacity) - { - $this->opacity = $opacity; - return $this; - } - - /** - * Set a max zoom value - * @param int $maxZoom - * @return $this Fluent interface - */ - public function setMaxZoom(int $maxZoom) - { - $this->maxZoom = $maxZoom; - return $this; - } - - /** - * Get max zoom value - * @return int - */ - public function getMaxZoom(): int - { - return $this->maxZoom; - } - - /** - * Set a min zoom value - * @param int $minZoom - * @return $this Fluent interface - */ - public function setMinZoom(int $minZoom) - { - $this->minZoom = $minZoom; - return $this; - } - - /** - * Get min zoom value - * @return int - */ - public function getMinZoom(): int - { - return $this->minZoom; - } - - /** - * Check if zoom value is between min zoom and max zoom - * @param int $zoom Zoom value to be checked - * @return int - */ - public function checkZoom(int $zoom): int - { - return \min(\max($zoom, $this->minZoom), $this->maxZoom); - } - - /** - * Get tile url for coordinates and zoom level - * @param int $x x coordinate - * @param int $y y coordinate - * @param int $z zoom level - * @return string tile url - */ - public function getTileUrl(int $x, int $y, int $z): string - { - return \str_replace( - ['{r}', '{s}', '{x}', '{y}', '{z}'], - ['', $this->getSubdomain($x, $y), $x, $y, $z], - $this->url - ); - } - - /** - * Select subdomain of tile server to prevent rate limiting on remote server - * @param int $x x coordinate - * @param int $y y coordinate - * @return string selected subdomain - * @see https://github.com/Leaflet/Leaflet/blob/main/src/layer/tile/TileLayer.js#L233 Leaflet implementation - */ - protected function getSubdomain(int $x, int $y): string - { - return $this->subdomains[\abs($x + $y) % \sizeof($this->subdomains)]; - } - - /** - * Get attribution text - * @return string Attribution text - */ - public function getAttributionText(): string - { - return $this->attributionText; - } - - /** - * Get an image tile - * @param float $x - * @param float $y - * @param int $z - * @param int $tileSize - * @return Image Image instance containing the tile - * @throws \Exception - */ - public function getTile(float $x, float $y, int $z, int $tileSize): Image - { - if($this->opacity == 0) { - return Image::newCanvas($tileSize, $tileSize); - } - - $tile = Image::fromCurl($this->getTileUrl($x, $y, $z),$this->curlOptions, $this->failCurlOnError); - - if($this->opacity > 0 && $this->opacity < 1) { - $tile->setOpacity($this->opacity); - } - - return $tile; - } -} diff --git a/vendor/dantsu/php-osm-static-api/src/Utils/GeographicConverter.php b/vendor/dantsu/php-osm-static-api/src/Utils/GeographicConverter.php deleted file mode 100644 index a0435cf..0000000 --- a/vendor/dantsu/php-osm-static-api/src/Utils/GeographicConverter.php +++ /dev/null @@ -1,101 +0,0 @@ -getLat()); - $lat = \deg2rad($from->getLat()); - $lng = \deg2rad($from->getLng()); - $angle = \deg2rad($angle); - - return new LatLng( - \rad2deg( - \asin( - \sin($lat) * \cos($distance / $earthRadius) + - \cos($lat) * \sin($distance / $earthRadius) * \cos($angle) - ) - ), - \rad2deg( - $lng + \atan2( - \sin($angle) * \sin($distance / $earthRadius) * \cos($lat), - \cos($distance / $earthRadius) - \sin($lat) * \sin($lat) - ) - ) - ); - } - - /** - * Get distance in meters between two points. - * - * @param LatLng $from Starting coordinate - * @param LatLng $end Ending coordinate - * @return float - */ - public static function latLngToMeters(LatLng $from, LatLng $end): float - { - $earthRadius = self::earthRadiusAtLatitude($from->getLat()); - $lat1 = \deg2rad($from->getLat()); - $lat2 = \deg2rad($end->getLat()); - $lat = \deg2rad($end->getLat() - $from->getLat()); - $lng = \deg2rad($end->getLng() - $from->getLng()); - - $a = \pow(\sin($lat / 2), 2) + \cos($lat1) * \cos($lat2) * \pow(\sin($lng / 2), 2); - return \abs($earthRadius * 2 * \atan2(\sqrt($a), \sqrt(1 - $a))); - } - - - /** - * Get center between two coordinates. - * @param LatLng $point1 Vertical OpenStreetMap tile id - * @param LatLng $point2 Vertical pixel position on tile - * @return LatLng midpoint between the given coordinates - */ - public static function getCenter(LatLng $point1, LatLng $point2): LatLng - { - //return new LatLng(($point1->getLat() + $point2->getLat()) / 2, ($point1->getLng() + $point2->getLng()) / 2); - $dLng = \deg2rad($point2->getLng() - $point1->getLng()); - $lat1 = \deg2rad($point1->getLat()); - $lat2 = \deg2rad($point2->getLat()); - $lng1 = \deg2rad($point1->getLng()); - $bx = \cos($lat2) * \cos($dLng); - $by = \cos($lat2) * \sin($dLng); - return new LatLng( - \rad2deg(\atan2(\sin($lat1) + \sin($lat2), \sqrt(\pow(\cos($lat1) + $bx, 2) + \pow($by, 2)))), - \rad2deg($lng1 + \atan2($by, \cos($lat1) + $bx)) - ); - } -} diff --git a/vendor/dantsu/php-osm-static-api/src/XY.php b/vendor/dantsu/php-osm-static-api/src/XY.php deleted file mode 100644 index 0260caa..0000000 --- a/vendor/dantsu/php-osm-static-api/src/XY.php +++ /dev/null @@ -1,52 +0,0 @@ -x = $x; - $this->y = $y; - } - - /** - * Get X - * @return int X - */ - public function getX(): int - { - return $this->x; - } - - /** - * Get Y - * @return int Y - */ - public function getY(): int - { - return $this->y; - } -} diff --git a/vendor/dantsu/php-osm-static-api/src/resources/font.ttf b/vendor/dantsu/php-osm-static-api/src/resources/font.ttf deleted file mode 100644 index e31d5fdd6ca95b1292f6aea5614a525973115533..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 32020 zcmdVDcVJY-+AuzIX3uWQ_L}WIo8C5!l7s{jS}380o*qg_Aaq4QP-;M=ND&mVfC!?1 zfQkhRda+!^-oR^b_v-7tmJ963_slt)WH$xy_j|uTzHH9!sWZ}%CKMZCqC*xSXBr&kdy3b_;EmMgSX?WP&RDLoj8hk(7ohI zrOyKbpa8Mt6~~ zQI*JoCXs)m7|~6rOtcDBkVjCKs1K?ZEklzT6M7ozT10lD`D7rP3cqKe%-bd3pndE> zEj4#$UlPha{q(;P)9g{~6r734SF|_ICI+!S7mh zSfoS)$B1NS%iLtGA4`e zM!U%OXd?Vph-|1olZnitUa&t4?ZOw(?f9Rq?*Ux9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&Fe#G^*>i&S?|V%5p?bHo!V z=!qnbmNNe`Qgr6r<)?0$yhi8dx0EoKACj`TV&?>>(^~Wdrjs~IGHbM!JZ~m!?kkv& zhdCF&k@eYwm^6fcEL-7x3iuG7#NU!QnyLgmQ}7Zt?=fIZ@9fa)ufO~(e(w+liwj8{ zN$Z)XlQ=q>#L?_Z=5fKm2g~M`J$gLuz{_KW|8p~`h4WZZf_VYI!AKHExg?I}>(QMl z^F;^ke)~Cdl=+7->E{^3pHt9(+VVZ8ac*_~mi>3w|Bc(yXt5o?!hbM_rDd7AZr%SK Y0LeTVyXAdd#{d8T07*qoM6N<$f=8LroB#j- diff --git a/vendor/dantsu/php-osm-static-api/src/samples/resources/sample1.png b/vendor/dantsu/php-osm-static-api/src/samples/resources/sample1.png deleted file mode 100644 index fb5112239849ff6a512f8d98281a490667e416ea..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 237682 zcmXt918`hlxKG+Nw%S-5+h$|iYHXWr(Ac(Zb7R{^W82u|?f<=bGka#|-kF_yX7;<^ z_tObel$St)$AyQ0fIyOx6jg?R_@W5`0T~Mm4Zh>VPM8Y*f^(46a)y9F9{6uTCeb3} zK|l~gNQnxodSvcrxu@!yu6_zSPi3+KFQ(3?9^>0j2w?Nb)WTuIe+R%zs$CCWR{Rd{ z3=JUGR1^{}goBkvq6hqmjTPs~xZvgOVC4l)XQpivC1jb@lV@zoLHKWSZGw1j@gV%h$F-(mzF$XzL^l*K0Gwg9fup9{9!tcj_XKB)62B0w=T)#s-sE^N)FsHGMRkh*_#$sHgy25veQOfSk0?x&TKgNEIZev%MG zphmVS)mzrDp8w*lDO@saQ6N-Vw@ZmAl1Y)j#)=|{lMI^7;525=V8)H23J)l;rG((< z0L5mqqD7#?dnn;t(D51JXlv1|ZEr1!1JHXd*syImQzKKeJwkOo$=gIDkKxQw<%%G$ z8|^7kk(f+}loq(o3*Yz)W$;_w?0ErC*HS<2-Fcf>v17`rh+!>Uc|?_^YRfTWx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