create-berna-stencil 1.0.17 → 1.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/create.js +1 -1
- package/package.json +72 -72
- package/src/api/core/composer.lock +492 -574
- package/src/api/core/vendor/autoload.php +1 -1
- package/src/api/core/vendor/composer/autoload_psr4.php +0 -1
- package/src/api/core/vendor/composer/autoload_real.php +5 -5
- package/src/api/core/vendor/composer/autoload_static.php +14 -19
- package/src/api/core/vendor/composer/installed.json +6 -91
- package/src/api/core/vendor/composer/installed.php +2 -11
- package/src/api/core/vendor/graham-campbell/result-type/.gitattributes +9 -0
- package/src/api/core/vendor/graham-campbell/result-type/.github/CODE_OF_CONDUCT.md +132 -0
- package/src/api/core/vendor/graham-campbell/result-type/.github/CONTRIBUTING.md +31 -0
- package/src/api/core/vendor/graham-campbell/result-type/.github/FUNDING.yml +2 -0
- package/src/api/core/vendor/graham-campbell/result-type/.github/SECURITY.md +14 -0
- package/src/api/core/vendor/graham-campbell/result-type/.github/workflows/stale.yml +11 -0
- package/src/api/core/vendor/graham-campbell/result-type/.github/workflows/tests.yml +40 -0
- package/src/api/core/vendor/graham-campbell/result-type/CHANGELOG.md +53 -0
- package/src/api/core/vendor/graham-campbell/result-type/LICENSE +21 -21
- package/src/api/core/vendor/graham-campbell/result-type/README.md +42 -0
- package/src/api/core/vendor/graham-campbell/result-type/composer.json +33 -33
- package/src/api/core/vendor/graham-campbell/result-type/phpunit.xml.dist +13 -0
- package/src/api/core/vendor/graham-campbell/result-type/src/Error.php +121 -121
- package/src/api/core/vendor/graham-campbell/result-type/src/Result.php +69 -69
- package/src/api/core/vendor/graham-campbell/result-type/src/Success.php +120 -120
- package/src/api/core/vendor/graham-campbell/result-type/tests/ResultTest.php +95 -0
- package/src/api/core/vendor/phpoption/phpoption/.gitattributes +13 -0
- package/src/api/core/vendor/phpoption/phpoption/.github/CODE_OF_CONDUCT.md +132 -0
- package/src/api/core/vendor/phpoption/phpoption/.github/CONTRIBUTING.md +30 -0
- package/src/api/core/vendor/phpoption/phpoption/.github/FUNDING.yml +2 -0
- package/src/api/core/vendor/phpoption/phpoption/.github/SECURITY.md +14 -0
- package/src/api/core/vendor/phpoption/phpoption/.github/workflows/static.yml +40 -0
- package/src/api/core/vendor/phpoption/phpoption/.github/workflows/tests.yml +40 -0
- package/src/api/core/vendor/phpoption/phpoption/LICENSE +200 -200
- package/src/api/core/vendor/phpoption/phpoption/Makefile +17 -0
- package/src/api/core/vendor/phpoption/phpoption/README.md +201 -0
- package/src/api/core/vendor/phpoption/phpoption/composer.json +50 -50
- package/src/api/core/vendor/phpoption/phpoption/phpstan-baseline.neon +44 -0
- package/src/api/core/vendor/phpoption/phpoption/phpstan.neon.dist +7 -0
- package/src/api/core/vendor/phpoption/phpoption/phpunit.xml.dist +13 -0
- package/src/api/core/vendor/phpoption/phpoption/src/PhpOption/LazyOption.php +175 -175
- package/src/api/core/vendor/phpoption/phpoption/src/PhpOption/None.php +136 -136
- package/src/api/core/vendor/phpoption/phpoption/src/PhpOption/Option.php +434 -434
- package/src/api/core/vendor/phpoption/phpoption/src/PhpOption/Some.php +169 -169
- package/src/api/core/vendor/phpoption/phpoption/tests/PhpOption/Tests/EnsureTest.php +72 -0
- package/src/api/core/vendor/phpoption/phpoption/tests/PhpOption/Tests/LazyOptionTest.php +357 -0
- package/src/api/core/vendor/phpoption/phpoption/tests/PhpOption/Tests/NoneTest.php +153 -0
- package/src/api/core/vendor/phpoption/phpoption/tests/PhpOption/Tests/OptionTest.php +166 -0
- package/src/api/core/vendor/phpoption/phpoption/tests/PhpOption/Tests/SomeTest.php +194 -0
- package/src/api/core/vendor/phpoption/phpoption/tests/bootstrap.php +8 -0
- package/src/api/core/vendor/phpoption/phpoption/vendor-bin/phpstan/composer.json +8 -0
- package/src/api/core/vendor/symfony/polyfill-ctype/Ctype.php +232 -232
- package/src/api/core/vendor/symfony/polyfill-ctype/LICENSE +19 -19
- package/src/api/core/vendor/symfony/polyfill-ctype/README.md +12 -12
- package/src/api/core/vendor/symfony/polyfill-ctype/bootstrap.php +50 -50
- package/src/api/core/vendor/symfony/polyfill-ctype/bootstrap80.php +46 -46
- package/src/api/core/vendor/symfony/polyfill-ctype/composer.json +38 -38
- package/src/api/core/vendor/symfony/polyfill-mbstring/LICENSE +19 -19
- package/src/api/core/vendor/symfony/polyfill-mbstring/Mbstring.php +1077 -1077
- package/src/api/core/vendor/symfony/polyfill-mbstring/README.md +13 -13
- package/src/api/core/vendor/symfony/polyfill-mbstring/Resources/unidata/caseFolding.php +119 -119
- package/src/api/core/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php +1397 -1397
- package/src/api/core/vendor/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php +5 -5
- package/src/api/core/vendor/symfony/polyfill-mbstring/Resources/unidata/upperCase.php +1489 -1489
- package/src/api/core/vendor/symfony/polyfill-mbstring/bootstrap.php +171 -171
- package/src/api/core/vendor/symfony/polyfill-mbstring/bootstrap80.php +167 -167
- package/src/api/core/vendor/symfony/polyfill-mbstring/composer.json +39 -39
- package/src/api/core/vendor/symfony/polyfill-php80/LICENSE +19 -19
- package/src/api/core/vendor/symfony/polyfill-php80/Php80.php +115 -115
- package/src/api/core/vendor/symfony/polyfill-php80/PhpToken.php +106 -106
- package/src/api/core/vendor/symfony/polyfill-php80/README.md +25 -25
- package/src/api/core/vendor/symfony/polyfill-php80/Resources/stubs/Attribute.php +31 -31
- package/src/api/core/vendor/symfony/polyfill-php80/Resources/stubs/PhpToken.php +16 -16
- package/src/api/core/vendor/symfony/polyfill-php80/Resources/stubs/Stringable.php +20 -20
- package/src/api/core/vendor/symfony/polyfill-php80/Resources/stubs/UnhandledMatchError.php +16 -16
- package/src/api/core/vendor/symfony/polyfill-php80/Resources/stubs/ValueError.php +16 -16
- package/src/api/core/vendor/symfony/polyfill-php80/bootstrap.php +42 -42
- package/src/api/core/vendor/symfony/polyfill-php80/composer.json +37 -37
- package/src/api/core/vendor/vlucas/phpdotenv/.editorconfig +15 -0
- package/src/api/core/vendor/vlucas/phpdotenv/.gitattributes +15 -0
- package/src/api/core/vendor/vlucas/phpdotenv/.github/CODE_OF_CONDUCT.md +132 -0
- package/src/api/core/vendor/vlucas/phpdotenv/.github/CONTRIBUTING.md +30 -0
- package/src/api/core/vendor/vlucas/phpdotenv/.github/FUNDING.yml +2 -0
- package/src/api/core/vendor/vlucas/phpdotenv/.github/SECURITY.md +14 -0
- package/src/api/core/vendor/vlucas/phpdotenv/.github/workflows/static.yml +40 -0
- package/src/api/core/vendor/vlucas/phpdotenv/.github/workflows/tests.yml +70 -0
- package/src/api/core/vendor/vlucas/phpdotenv/LICENSE +30 -30
- package/src/api/core/vendor/vlucas/phpdotenv/Makefile +17 -0
- package/src/api/core/vendor/vlucas/phpdotenv/README.md +370 -0
- package/src/api/core/vendor/vlucas/phpdotenv/UPGRADING.md +196 -0
- package/src/api/core/vendor/vlucas/phpdotenv/composer.json +60 -60
- package/src/api/core/vendor/vlucas/phpdotenv/phpstan-baseline.neon +157 -0
- package/src/api/core/vendor/vlucas/phpdotenv/phpstan.neon.dist +7 -0
- package/src/api/core/vendor/vlucas/phpdotenv/phpunit.xml.dist +13 -0
- package/src/api/core/vendor/vlucas/phpdotenv/src/Dotenv.php +267 -267
- package/src/api/core/vendor/vlucas/phpdotenv/src/Exception/ExceptionInterface.php +12 -12
- package/src/api/core/vendor/vlucas/phpdotenv/src/Exception/InvalidEncodingException.php +12 -12
- package/src/api/core/vendor/vlucas/phpdotenv/src/Exception/InvalidFileException.php +12 -12
- package/src/api/core/vendor/vlucas/phpdotenv/src/Exception/InvalidPathException.php +12 -12
- package/src/api/core/vendor/vlucas/phpdotenv/src/Exception/ValidationException.php +12 -12
- package/src/api/core/vendor/vlucas/phpdotenv/src/Loader/Loader.php +48 -48
- package/src/api/core/vendor/vlucas/phpdotenv/src/Loader/LoaderInterface.php +20 -20
- package/src/api/core/vendor/vlucas/phpdotenv/src/Loader/Resolver.php +65 -65
- package/src/api/core/vendor/vlucas/phpdotenv/src/Parser/Entry.php +59 -59
- package/src/api/core/vendor/vlucas/phpdotenv/src/Parser/EntryParser.php +299 -299
- package/src/api/core/vendor/vlucas/phpdotenv/src/Parser/Lexer.php +58 -58
- package/src/api/core/vendor/vlucas/phpdotenv/src/Parser/Lines.php +127 -127
- package/src/api/core/vendor/vlucas/phpdotenv/src/Parser/Parser.php +53 -53
- package/src/api/core/vendor/vlucas/phpdotenv/src/Parser/ParserInterface.php +19 -19
- package/src/api/core/vendor/vlucas/phpdotenv/src/Parser/Value.php +88 -88
- package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/AdapterInterface.php +15 -15
- package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/ApacheAdapter.php +89 -89
- package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/ArrayAdapter.php +80 -80
- package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/EnvConstAdapter.php +88 -88
- package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/GuardedWriter.php +85 -85
- package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/ImmutableWriter.php +110 -110
- package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/MultiReader.php +48 -48
- package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/MultiWriter.php +64 -64
- package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/PutenvAdapter.php +91 -91
- package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/ReaderInterface.php +17 -17
- package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/ReplacingWriter.php +104 -104
- package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/ServerConstAdapter.php +88 -88
- package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/WriterInterface.php +27 -27
- package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/AdapterRepository.php +107 -107
- package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/RepositoryBuilder.php +272 -272
- package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/RepositoryInterface.php +51 -51
- package/src/api/core/vendor/vlucas/phpdotenv/src/Store/File/Paths.php +44 -44
- package/src/api/core/vendor/vlucas/phpdotenv/src/Store/File/Reader.php +81 -81
- package/src/api/core/vendor/vlucas/phpdotenv/src/Store/FileStore.php +72 -72
- package/src/api/core/vendor/vlucas/phpdotenv/src/Store/StoreBuilder.php +141 -141
- package/src/api/core/vendor/vlucas/phpdotenv/src/Store/StoreInterface.php +17 -17
- package/src/api/core/vendor/vlucas/phpdotenv/src/Store/StringStore.php +37 -37
- package/src/api/core/vendor/vlucas/phpdotenv/src/Util/Regex.php +112 -112
- package/src/api/core/vendor/vlucas/phpdotenv/src/Util/Str.php +108 -108
- package/src/api/core/vendor/vlucas/phpdotenv/src/Validator.php +207 -207
- package/src/api/core/vendor/vlucas/phpdotenv/tests/Dotenv/DotenvTest.php +387 -0
- package/src/api/core/vendor/vlucas/phpdotenv/tests/Dotenv/Loader/LoaderTest.php +86 -0
- package/src/api/core/vendor/vlucas/phpdotenv/tests/Dotenv/Parser/EntryParserTest.php +234 -0
- package/src/api/core/vendor/vlucas/phpdotenv/tests/Dotenv/Parser/LexerTest.php +40 -0
- package/src/api/core/vendor/vlucas/phpdotenv/tests/Dotenv/Parser/LinesTest.php +53 -0
- package/src/api/core/vendor/vlucas/phpdotenv/tests/Dotenv/Parser/ParserTest.php +98 -0
- package/src/api/core/vendor/vlucas/phpdotenv/tests/Dotenv/Repository/Adapter/ArrayAdapterTest.php +57 -0
- package/src/api/core/vendor/vlucas/phpdotenv/tests/Dotenv/Repository/Adapter/EnvConstAdapterTest.php +75 -0
- package/src/api/core/vendor/vlucas/phpdotenv/tests/Dotenv/Repository/Adapter/PutenvAdapterTest.php +52 -0
- package/src/api/core/vendor/vlucas/phpdotenv/tests/Dotenv/Repository/Adapter/ServerConstAdapterTest.php +75 -0
- package/src/api/core/vendor/vlucas/phpdotenv/tests/Dotenv/Repository/RepositoryTest.php +305 -0
- package/src/api/core/vendor/vlucas/phpdotenv/tests/Dotenv/Store/StoreTest.php +141 -0
- package/src/api/core/vendor/vlucas/phpdotenv/tests/Dotenv/ValidatorTest.php +479 -0
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/.env +5 -0
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/assertions.env +18 -0
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/booleans.env +33 -0
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/commented.env +15 -0
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/empty.env +1 -0
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/example.env +1 -0
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/exported.env +7 -0
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/immutable.env +1 -0
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/integers.env +17 -0
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/large.env +2 -0
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/multibyte.env +3 -0
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/multiline.env +14 -0
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/multiple.env +4 -0
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/mutable.env +1 -0
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/nested.env +15 -0
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/quoted.env +11 -0
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/specialchars.env +8 -0
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/unicodevarnames.env +2 -0
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/utf8-with-bom-encoding.env +3 -0
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/windows.env +1 -0
- package/src/api/core/vendor/vlucas/phpdotenv/vendor-bin/phpstan/composer.json +15 -0
- package/src/api/core/vendor/phpmailer/phpmailer/COMMITMENT +0 -46
- package/src/api/core/vendor/phpmailer/phpmailer/LICENSE +0 -502
- package/src/api/core/vendor/phpmailer/phpmailer/README.md +0 -232
- package/src/api/core/vendor/phpmailer/phpmailer/SECURITY.md +0 -37
- package/src/api/core/vendor/phpmailer/phpmailer/SMTPUTF8.md +0 -48
- package/src/api/core/vendor/phpmailer/phpmailer/VERSION +0 -1
- package/src/api/core/vendor/phpmailer/phpmailer/composer.json +0 -84
- package/src/api/core/vendor/phpmailer/phpmailer/get_oauth_token.php +0 -182
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-af.php +0 -26
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ar.php +0 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-as.php +0 -35
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-az.php +0 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ba.php +0 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-be.php +0 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-bg.php +0 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-bn.php +0 -35
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ca.php +0 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-cs.php +0 -28
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-da.php +0 -39
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-de.php +0 -28
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-el.php +0 -33
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-eo.php +0 -37
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-es.php +0 -38
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-et.php +0 -28
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-fa.php +0 -28
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-fi.php +0 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-fo.php +0 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-fr.php +0 -36
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-gl.php +0 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-he.php +0 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-hi.php +0 -35
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-hr.php +0 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-hu.php +0 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-hy.php +0 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-id.php +0 -31
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-it.php +0 -28
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ja.php +0 -37
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ka.php +0 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ko.php +0 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ku.php +0 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-lt.php +0 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-lv.php +0 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-mg.php +0 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-mn.php +0 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ms.php +0 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-nb.php +0 -37
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-nl.php +0 -38
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-pl.php +0 -33
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-pt.php +0 -34
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-pt_br.php +0 -38
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ro.php +0 -33
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ru.php +0 -36
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-si.php +0 -34
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-sk.php +0 -30
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-sl.php +0 -36
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-sr.php +0 -28
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-sr_latn.php +0 -28
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-sv.php +0 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-tl.php +0 -28
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-tr.php +0 -38
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-uk.php +0 -28
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ur.php +0 -30
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-vi.php +0 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-zh.php +0 -29
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-zh_cn.php +0 -36
- package/src/api/core/vendor/phpmailer/phpmailer/src/DSNConfigurator.php +0 -245
- package/src/api/core/vendor/phpmailer/phpmailer/src/Exception.php +0 -40
- package/src/api/core/vendor/phpmailer/phpmailer/src/OAuth.php +0 -139
- package/src/api/core/vendor/phpmailer/phpmailer/src/OAuthTokenProvider.php +0 -44
- package/src/api/core/vendor/phpmailer/phpmailer/src/PHPMailer.php +0 -5525
- package/src/api/core/vendor/phpmailer/phpmailer/src/POP3.php +0 -470
- package/src/api/core/vendor/phpmailer/phpmailer/src/SMTP.php +0 -1617
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
Result Type
|
|
2
|
+
===========
|
|
3
|
+
|
|
4
|
+
Result Type was created by, and is maintained by [Graham Campbell](https://github.com/GrahamCampbell), and is an implementation of the result type. Feel free to check out the [change log](CHANGELOG.md), [releases](https://github.com/GrahamCampbell/Result-Type/releases), [security policy](https://github.com/GrahamCampbell/Result-Type/security/policy), [license](LICENSE), [code of conduct](.github/CODE_OF_CONDUCT.md), and [contribution guidelines](.github/CONTRIBUTING.md).
|
|
5
|
+
|
|
6
|
+

|
|
7
|
+
|
|
8
|
+
<p align="center">
|
|
9
|
+
<a href="https://github.com/GrahamCampbell/Result-Type/actions?query=workflow%3ATests"><img src="https://img.shields.io/github/actions/workflow/status/GrahamCampbell/Result-Type/tests.yml?label=Tests&style=flat-square" alt="Build Status"></img></a>
|
|
10
|
+
<a href="https://github.styleci.io/repos/249026522"><img src="https://github.styleci.io/repos/249026522/shield" alt="StyleCI Status"></img></a>
|
|
11
|
+
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-brightgreen?style=flat-square" alt="Software License"></img></a>
|
|
12
|
+
<a href="https://packagist.org/packages/graham-campbell/result-type"><img src="https://img.shields.io/packagist/dt/graham-campbell/result-type?style=flat-square" alt="Packagist Downloads"></img></a>
|
|
13
|
+
<a href="https://github.com/GrahamCampbell/Result-Type/releases"><img src="https://img.shields.io/github/release/GrahamCampbell/Result-Type?style=flat-square" alt="Latest Version"></img></a>
|
|
14
|
+
</p>
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## Installation
|
|
18
|
+
|
|
19
|
+
This version requires [PHP](https://www.php.net/) 7.2.5-8.5.
|
|
20
|
+
|
|
21
|
+
To get the latest version, simply require the project using [Composer](https://getcomposer.org/):
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
$ composer require "graham-campbell/result-type:^1.1"
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## Security
|
|
29
|
+
|
|
30
|
+
If you discover a security vulnerability within this package, please send an email to security@tidelift.com. All security vulnerabilities will be promptly addressed. You may view our full security policy [here](https://github.com/GrahamCampbell/Result-Type/security/policy).
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
## License
|
|
34
|
+
|
|
35
|
+
Result Type is licensed under [The MIT License (MIT)](LICENSE).
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## For Enterprise
|
|
39
|
+
|
|
40
|
+
Available as part of the Tidelift Subscription
|
|
41
|
+
|
|
42
|
+
The maintainers of `graham-campbell/result-type` 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-graham-campbell-result-type?utm_source=packagist-graham-campbell-result-type&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "graham-campbell/result-type",
|
|
3
|
-
"description": "An Implementation Of The Result Type",
|
|
4
|
-
"keywords": ["result", "result-type", "Result", "Result Type", "Result-Type", "Graham Campbell", "GrahamCampbell"],
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"authors": [
|
|
7
|
-
{
|
|
8
|
-
"name": "Graham Campbell",
|
|
9
|
-
"email": "hello@gjcampbell.co.uk",
|
|
10
|
-
"homepage": "https://github.com/GrahamCampbell"
|
|
11
|
-
}
|
|
12
|
-
],
|
|
13
|
-
"require": {
|
|
14
|
-
"php": "^7.2.5 || ^8.0",
|
|
15
|
-
"phpoption/phpoption": "^1.9.5"
|
|
16
|
-
},
|
|
17
|
-
"require-dev": {
|
|
18
|
-
"phpunit/phpunit": "^8.5.41 || ^9.6.22 || ^10.5.45 || ^11.5.7"
|
|
19
|
-
},
|
|
20
|
-
"autoload": {
|
|
21
|
-
"psr-4": {
|
|
22
|
-
"GrahamCampbell\\ResultType\\": "src/"
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"autoload-dev": {
|
|
26
|
-
"psr-4": {
|
|
27
|
-
"GrahamCampbell\\Tests\\ResultType\\": "tests/"
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"config": {
|
|
31
|
-
"preferred-install": "dist"
|
|
32
|
-
}
|
|
33
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "graham-campbell/result-type",
|
|
3
|
+
"description": "An Implementation Of The Result Type",
|
|
4
|
+
"keywords": ["result", "result-type", "Result", "Result Type", "Result-Type", "Graham Campbell", "GrahamCampbell"],
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"authors": [
|
|
7
|
+
{
|
|
8
|
+
"name": "Graham Campbell",
|
|
9
|
+
"email": "hello@gjcampbell.co.uk",
|
|
10
|
+
"homepage": "https://github.com/GrahamCampbell"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"require": {
|
|
14
|
+
"php": "^7.2.5 || ^8.0",
|
|
15
|
+
"phpoption/phpoption": "^1.9.5"
|
|
16
|
+
},
|
|
17
|
+
"require-dev": {
|
|
18
|
+
"phpunit/phpunit": "^8.5.41 || ^9.6.22 || ^10.5.45 || ^11.5.7"
|
|
19
|
+
},
|
|
20
|
+
"autoload": {
|
|
21
|
+
"psr-4": {
|
|
22
|
+
"GrahamCampbell\\ResultType\\": "src/"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"autoload-dev": {
|
|
26
|
+
"psr-4": {
|
|
27
|
+
"GrahamCampbell\\Tests\\ResultType\\": "tests/"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"config": {
|
|
31
|
+
"preferred-install": "dist"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" beStrictAboutTestsThatDoNotTestAnything="true" beStrictAboutOutputDuringTests="true" bootstrap="vendor/autoload.php" colors="true" failOnRisky="true" failOnWarning="true" processIsolation="false" stopOnError="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.4/phpunit.xsd">
|
|
3
|
+
<testsuites>
|
|
4
|
+
<testsuite name="Result Type Test Suite">
|
|
5
|
+
<directory suffix="Test.php">./tests</directory>
|
|
6
|
+
</testsuite>
|
|
7
|
+
</testsuites>
|
|
8
|
+
<source>
|
|
9
|
+
<include>
|
|
10
|
+
<directory suffix=".php">./src</directory>
|
|
11
|
+
</include>
|
|
12
|
+
</source>
|
|
13
|
+
</phpunit>
|
|
@@ -1,121 +1,121 @@
|
|
|
1
|
-
<?php
|
|
2
|
-
|
|
3
|
-
declare(strict_types=1);
|
|
4
|
-
|
|
5
|
-
/*
|
|
6
|
-
* This file is part of Result Type.
|
|
7
|
-
*
|
|
8
|
-
* (c) Graham Campbell <hello@gjcampbell.co.uk>
|
|
9
|
-
*
|
|
10
|
-
* For the full copyright and license information, please view the LICENSE
|
|
11
|
-
* file that was distributed with this source code.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
namespace GrahamCampbell\ResultType;
|
|
15
|
-
|
|
16
|
-
use PhpOption\None;
|
|
17
|
-
use PhpOption\Some;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* @template T
|
|
21
|
-
* @template E
|
|
22
|
-
*
|
|
23
|
-
* @extends \GrahamCampbell\ResultType\Result<T,E>
|
|
24
|
-
*/
|
|
25
|
-
final class Error extends Result
|
|
26
|
-
{
|
|
27
|
-
/**
|
|
28
|
-
* @var E
|
|
29
|
-
*/
|
|
30
|
-
private $value;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Internal constructor for an error value.
|
|
34
|
-
*
|
|
35
|
-
* @param E $value
|
|
36
|
-
*
|
|
37
|
-
* @return void
|
|
38
|
-
*/
|
|
39
|
-
private function __construct($value)
|
|
40
|
-
{
|
|
41
|
-
$this->value = $value;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Create a new error value.
|
|
46
|
-
*
|
|
47
|
-
* @template F
|
|
48
|
-
*
|
|
49
|
-
* @param F $value
|
|
50
|
-
*
|
|
51
|
-
* @return \GrahamCampbell\ResultType\Result<T,F>
|
|
52
|
-
*/
|
|
53
|
-
public static function create($value)
|
|
54
|
-
{
|
|
55
|
-
return new self($value);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Get the success option value.
|
|
60
|
-
*
|
|
61
|
-
* @return \PhpOption\Option<T>
|
|
62
|
-
*/
|
|
63
|
-
public function success()
|
|
64
|
-
{
|
|
65
|
-
return None::create();
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Map over the success value.
|
|
70
|
-
*
|
|
71
|
-
* @template S
|
|
72
|
-
*
|
|
73
|
-
* @param callable(T):S $f
|
|
74
|
-
*
|
|
75
|
-
* @return \GrahamCampbell\ResultType\Result<S,E>
|
|
76
|
-
*/
|
|
77
|
-
public function map(callable $f)
|
|
78
|
-
{
|
|
79
|
-
return self::create($this->value);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Flat map over the success value.
|
|
84
|
-
*
|
|
85
|
-
* @template S
|
|
86
|
-
* @template F
|
|
87
|
-
*
|
|
88
|
-
* @param callable(T):\GrahamCampbell\ResultType\Result<S,F> $f
|
|
89
|
-
*
|
|
90
|
-
* @return \GrahamCampbell\ResultType\Result<S,F>
|
|
91
|
-
*/
|
|
92
|
-
public function flatMap(callable $f)
|
|
93
|
-
{
|
|
94
|
-
/** @var \GrahamCampbell\ResultType\Result<S,F> */
|
|
95
|
-
return self::create($this->value);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Get the error option value.
|
|
100
|
-
*
|
|
101
|
-
* @return \PhpOption\Option<E>
|
|
102
|
-
*/
|
|
103
|
-
public function error()
|
|
104
|
-
{
|
|
105
|
-
return Some::create($this->value);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Map over the error value.
|
|
110
|
-
*
|
|
111
|
-
* @template F
|
|
112
|
-
*
|
|
113
|
-
* @param callable(E):F $f
|
|
114
|
-
*
|
|
115
|
-
* @return \GrahamCampbell\ResultType\Result<T,F>
|
|
116
|
-
*/
|
|
117
|
-
public function mapError(callable $f)
|
|
118
|
-
{
|
|
119
|
-
return self::create($f($this->value));
|
|
120
|
-
}
|
|
121
|
-
}
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
declare(strict_types=1);
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
* This file is part of Result Type.
|
|
7
|
+
*
|
|
8
|
+
* (c) Graham Campbell <hello@gjcampbell.co.uk>
|
|
9
|
+
*
|
|
10
|
+
* For the full copyright and license information, please view the LICENSE
|
|
11
|
+
* file that was distributed with this source code.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
namespace GrahamCampbell\ResultType;
|
|
15
|
+
|
|
16
|
+
use PhpOption\None;
|
|
17
|
+
use PhpOption\Some;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @template T
|
|
21
|
+
* @template E
|
|
22
|
+
*
|
|
23
|
+
* @extends \GrahamCampbell\ResultType\Result<T,E>
|
|
24
|
+
*/
|
|
25
|
+
final class Error extends Result
|
|
26
|
+
{
|
|
27
|
+
/**
|
|
28
|
+
* @var E
|
|
29
|
+
*/
|
|
30
|
+
private $value;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Internal constructor for an error value.
|
|
34
|
+
*
|
|
35
|
+
* @param E $value
|
|
36
|
+
*
|
|
37
|
+
* @return void
|
|
38
|
+
*/
|
|
39
|
+
private function __construct($value)
|
|
40
|
+
{
|
|
41
|
+
$this->value = $value;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Create a new error value.
|
|
46
|
+
*
|
|
47
|
+
* @template F
|
|
48
|
+
*
|
|
49
|
+
* @param F $value
|
|
50
|
+
*
|
|
51
|
+
* @return \GrahamCampbell\ResultType\Result<T,F>
|
|
52
|
+
*/
|
|
53
|
+
public static function create($value)
|
|
54
|
+
{
|
|
55
|
+
return new self($value);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Get the success option value.
|
|
60
|
+
*
|
|
61
|
+
* @return \PhpOption\Option<T>
|
|
62
|
+
*/
|
|
63
|
+
public function success()
|
|
64
|
+
{
|
|
65
|
+
return None::create();
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Map over the success value.
|
|
70
|
+
*
|
|
71
|
+
* @template S
|
|
72
|
+
*
|
|
73
|
+
* @param callable(T):S $f
|
|
74
|
+
*
|
|
75
|
+
* @return \GrahamCampbell\ResultType\Result<S,E>
|
|
76
|
+
*/
|
|
77
|
+
public function map(callable $f)
|
|
78
|
+
{
|
|
79
|
+
return self::create($this->value);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Flat map over the success value.
|
|
84
|
+
*
|
|
85
|
+
* @template S
|
|
86
|
+
* @template F
|
|
87
|
+
*
|
|
88
|
+
* @param callable(T):\GrahamCampbell\ResultType\Result<S,F> $f
|
|
89
|
+
*
|
|
90
|
+
* @return \GrahamCampbell\ResultType\Result<S,F>
|
|
91
|
+
*/
|
|
92
|
+
public function flatMap(callable $f)
|
|
93
|
+
{
|
|
94
|
+
/** @var \GrahamCampbell\ResultType\Result<S,F> */
|
|
95
|
+
return self::create($this->value);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Get the error option value.
|
|
100
|
+
*
|
|
101
|
+
* @return \PhpOption\Option<E>
|
|
102
|
+
*/
|
|
103
|
+
public function error()
|
|
104
|
+
{
|
|
105
|
+
return Some::create($this->value);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Map over the error value.
|
|
110
|
+
*
|
|
111
|
+
* @template F
|
|
112
|
+
*
|
|
113
|
+
* @param callable(E):F $f
|
|
114
|
+
*
|
|
115
|
+
* @return \GrahamCampbell\ResultType\Result<T,F>
|
|
116
|
+
*/
|
|
117
|
+
public function mapError(callable $f)
|
|
118
|
+
{
|
|
119
|
+
return self::create($f($this->value));
|
|
120
|
+
}
|
|
121
|
+
}
|
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
<?php
|
|
2
|
-
|
|
3
|
-
declare(strict_types=1);
|
|
4
|
-
|
|
5
|
-
/*
|
|
6
|
-
* This file is part of Result Type.
|
|
7
|
-
*
|
|
8
|
-
* (c) Graham Campbell <hello@gjcampbell.co.uk>
|
|
9
|
-
*
|
|
10
|
-
* For the full copyright and license information, please view the LICENSE
|
|
11
|
-
* file that was distributed with this source code.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
namespace GrahamCampbell\ResultType;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* @template T
|
|
18
|
-
* @template E
|
|
19
|
-
*/
|
|
20
|
-
abstract class Result
|
|
21
|
-
{
|
|
22
|
-
/**
|
|
23
|
-
* Get the success option value.
|
|
24
|
-
*
|
|
25
|
-
* @return \PhpOption\Option<T>
|
|
26
|
-
*/
|
|
27
|
-
abstract public function success();
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Map over the success value.
|
|
31
|
-
*
|
|
32
|
-
* @template S
|
|
33
|
-
*
|
|
34
|
-
* @param callable(T):S $f
|
|
35
|
-
*
|
|
36
|
-
* @return \GrahamCampbell\ResultType\Result<S,E>
|
|
37
|
-
*/
|
|
38
|
-
abstract public function map(callable $f);
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Flat map over the success value.
|
|
42
|
-
*
|
|
43
|
-
* @template S
|
|
44
|
-
* @template F
|
|
45
|
-
*
|
|
46
|
-
* @param callable(T):\GrahamCampbell\ResultType\Result<S,F> $f
|
|
47
|
-
*
|
|
48
|
-
* @return \GrahamCampbell\ResultType\Result<S,F>
|
|
49
|
-
*/
|
|
50
|
-
abstract public function flatMap(callable $f);
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Get the error option value.
|
|
54
|
-
*
|
|
55
|
-
* @return \PhpOption\Option<E>
|
|
56
|
-
*/
|
|
57
|
-
abstract public function error();
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Map over the error value.
|
|
61
|
-
*
|
|
62
|
-
* @template F
|
|
63
|
-
*
|
|
64
|
-
* @param callable(E):F $f
|
|
65
|
-
*
|
|
66
|
-
* @return \GrahamCampbell\ResultType\Result<T,F>
|
|
67
|
-
*/
|
|
68
|
-
abstract public function mapError(callable $f);
|
|
69
|
-
}
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
declare(strict_types=1);
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
* This file is part of Result Type.
|
|
7
|
+
*
|
|
8
|
+
* (c) Graham Campbell <hello@gjcampbell.co.uk>
|
|
9
|
+
*
|
|
10
|
+
* For the full copyright and license information, please view the LICENSE
|
|
11
|
+
* file that was distributed with this source code.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
namespace GrahamCampbell\ResultType;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @template T
|
|
18
|
+
* @template E
|
|
19
|
+
*/
|
|
20
|
+
abstract class Result
|
|
21
|
+
{
|
|
22
|
+
/**
|
|
23
|
+
* Get the success option value.
|
|
24
|
+
*
|
|
25
|
+
* @return \PhpOption\Option<T>
|
|
26
|
+
*/
|
|
27
|
+
abstract public function success();
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Map over the success value.
|
|
31
|
+
*
|
|
32
|
+
* @template S
|
|
33
|
+
*
|
|
34
|
+
* @param callable(T):S $f
|
|
35
|
+
*
|
|
36
|
+
* @return \GrahamCampbell\ResultType\Result<S,E>
|
|
37
|
+
*/
|
|
38
|
+
abstract public function map(callable $f);
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Flat map over the success value.
|
|
42
|
+
*
|
|
43
|
+
* @template S
|
|
44
|
+
* @template F
|
|
45
|
+
*
|
|
46
|
+
* @param callable(T):\GrahamCampbell\ResultType\Result<S,F> $f
|
|
47
|
+
*
|
|
48
|
+
* @return \GrahamCampbell\ResultType\Result<S,F>
|
|
49
|
+
*/
|
|
50
|
+
abstract public function flatMap(callable $f);
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Get the error option value.
|
|
54
|
+
*
|
|
55
|
+
* @return \PhpOption\Option<E>
|
|
56
|
+
*/
|
|
57
|
+
abstract public function error();
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Map over the error value.
|
|
61
|
+
*
|
|
62
|
+
* @template F
|
|
63
|
+
*
|
|
64
|
+
* @param callable(E):F $f
|
|
65
|
+
*
|
|
66
|
+
* @return \GrahamCampbell\ResultType\Result<T,F>
|
|
67
|
+
*/
|
|
68
|
+
abstract public function mapError(callable $f);
|
|
69
|
+
}
|