create-berna-stencil 1.0.17 → 1.0.18

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.
Files changed (166) hide show
  1. package/bin/create.js +1 -1
  2. package/package.json +72 -72
  3. package/src/api/core/vendor/autoload.php +22 -22
  4. package/src/api/core/vendor/composer/ClassLoader.php +579 -579
  5. package/src/api/core/vendor/composer/LICENSE +21 -21
  6. package/src/api/core/vendor/composer/autoload_classmap.php +15 -15
  7. package/src/api/core/vendor/composer/autoload_files.php +12 -12
  8. package/src/api/core/vendor/composer/autoload_namespaces.php +9 -9
  9. package/src/api/core/vendor/composer/autoload_psr4.php +16 -16
  10. package/src/api/core/vendor/composer/autoload_real.php +50 -50
  11. package/src/api/core/vendor/composer/autoload_static.php +86 -86
  12. package/src/api/core/vendor/composer/installed.php +2 -2
  13. package/src/api/core/vendor/composer/platform_check.php +25 -25
  14. package/src/api/core/vendor/graham-campbell/result-type/LICENSE +0 -21
  15. package/src/api/core/vendor/graham-campbell/result-type/composer.json +0 -33
  16. package/src/api/core/vendor/graham-campbell/result-type/src/Error.php +0 -121
  17. package/src/api/core/vendor/graham-campbell/result-type/src/Result.php +0 -69
  18. package/src/api/core/vendor/graham-campbell/result-type/src/Success.php +0 -120
  19. package/src/api/core/vendor/phpmailer/phpmailer/COMMITMENT +0 -46
  20. package/src/api/core/vendor/phpmailer/phpmailer/LICENSE +0 -502
  21. package/src/api/core/vendor/phpmailer/phpmailer/README.md +0 -232
  22. package/src/api/core/vendor/phpmailer/phpmailer/SECURITY.md +0 -37
  23. package/src/api/core/vendor/phpmailer/phpmailer/SMTPUTF8.md +0 -48
  24. package/src/api/core/vendor/phpmailer/phpmailer/VERSION +0 -1
  25. package/src/api/core/vendor/phpmailer/phpmailer/composer.json +0 -84
  26. package/src/api/core/vendor/phpmailer/phpmailer/get_oauth_token.php +0 -182
  27. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-af.php +0 -26
  28. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ar.php +0 -27
  29. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-as.php +0 -35
  30. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-az.php +0 -27
  31. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ba.php +0 -27
  32. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-be.php +0 -27
  33. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-bg.php +0 -27
  34. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-bn.php +0 -35
  35. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ca.php +0 -27
  36. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-cs.php +0 -28
  37. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-da.php +0 -39
  38. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-de.php +0 -28
  39. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-el.php +0 -33
  40. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-eo.php +0 -37
  41. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-es.php +0 -38
  42. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-et.php +0 -28
  43. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-fa.php +0 -28
  44. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-fi.php +0 -27
  45. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-fo.php +0 -27
  46. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-fr.php +0 -36
  47. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-gl.php +0 -27
  48. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-he.php +0 -27
  49. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-hi.php +0 -35
  50. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-hr.php +0 -27
  51. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-hu.php +0 -27
  52. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-hy.php +0 -27
  53. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-id.php +0 -31
  54. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-it.php +0 -28
  55. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ja.php +0 -37
  56. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ka.php +0 -27
  57. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ko.php +0 -27
  58. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ku.php +0 -27
  59. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-lt.php +0 -27
  60. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-lv.php +0 -27
  61. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-mg.php +0 -27
  62. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-mn.php +0 -27
  63. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ms.php +0 -27
  64. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-nb.php +0 -37
  65. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-nl.php +0 -38
  66. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-pl.php +0 -33
  67. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-pt.php +0 -34
  68. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-pt_br.php +0 -38
  69. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ro.php +0 -33
  70. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ru.php +0 -36
  71. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-si.php +0 -34
  72. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-sk.php +0 -30
  73. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-sl.php +0 -36
  74. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-sr.php +0 -28
  75. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-sr_latn.php +0 -28
  76. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-sv.php +0 -27
  77. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-tl.php +0 -28
  78. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-tr.php +0 -38
  79. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-uk.php +0 -28
  80. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ur.php +0 -30
  81. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-vi.php +0 -27
  82. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-zh.php +0 -29
  83. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-zh_cn.php +0 -36
  84. package/src/api/core/vendor/phpmailer/phpmailer/src/DSNConfigurator.php +0 -245
  85. package/src/api/core/vendor/phpmailer/phpmailer/src/Exception.php +0 -40
  86. package/src/api/core/vendor/phpmailer/phpmailer/src/OAuth.php +0 -139
  87. package/src/api/core/vendor/phpmailer/phpmailer/src/OAuthTokenProvider.php +0 -44
  88. package/src/api/core/vendor/phpmailer/phpmailer/src/PHPMailer.php +0 -5525
  89. package/src/api/core/vendor/phpmailer/phpmailer/src/POP3.php +0 -470
  90. package/src/api/core/vendor/phpmailer/phpmailer/src/SMTP.php +0 -1617
  91. package/src/api/core/vendor/phpoption/phpoption/LICENSE +0 -201
  92. package/src/api/core/vendor/phpoption/phpoption/composer.json +0 -50
  93. package/src/api/core/vendor/phpoption/phpoption/src/PhpOption/LazyOption.php +0 -175
  94. package/src/api/core/vendor/phpoption/phpoption/src/PhpOption/None.php +0 -136
  95. package/src/api/core/vendor/phpoption/phpoption/src/PhpOption/Option.php +0 -434
  96. package/src/api/core/vendor/phpoption/phpoption/src/PhpOption/Some.php +0 -169
  97. package/src/api/core/vendor/symfony/polyfill-ctype/Ctype.php +0 -232
  98. package/src/api/core/vendor/symfony/polyfill-ctype/LICENSE +0 -19
  99. package/src/api/core/vendor/symfony/polyfill-ctype/README.md +0 -12
  100. package/src/api/core/vendor/symfony/polyfill-ctype/bootstrap.php +0 -50
  101. package/src/api/core/vendor/symfony/polyfill-ctype/bootstrap80.php +0 -46
  102. package/src/api/core/vendor/symfony/polyfill-ctype/composer.json +0 -38
  103. package/src/api/core/vendor/symfony/polyfill-mbstring/LICENSE +0 -19
  104. package/src/api/core/vendor/symfony/polyfill-mbstring/Mbstring.php +0 -1077
  105. package/src/api/core/vendor/symfony/polyfill-mbstring/README.md +0 -13
  106. package/src/api/core/vendor/symfony/polyfill-mbstring/Resources/unidata/caseFolding.php +0 -119
  107. package/src/api/core/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php +0 -1397
  108. package/src/api/core/vendor/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php +0 -5
  109. package/src/api/core/vendor/symfony/polyfill-mbstring/Resources/unidata/upperCase.php +0 -1489
  110. package/src/api/core/vendor/symfony/polyfill-mbstring/bootstrap.php +0 -171
  111. package/src/api/core/vendor/symfony/polyfill-mbstring/bootstrap80.php +0 -167
  112. package/src/api/core/vendor/symfony/polyfill-mbstring/composer.json +0 -39
  113. package/src/api/core/vendor/symfony/polyfill-php80/LICENSE +0 -19
  114. package/src/api/core/vendor/symfony/polyfill-php80/Php80.php +0 -115
  115. package/src/api/core/vendor/symfony/polyfill-php80/PhpToken.php +0 -106
  116. package/src/api/core/vendor/symfony/polyfill-php80/README.md +0 -25
  117. package/src/api/core/vendor/symfony/polyfill-php80/Resources/stubs/Attribute.php +0 -31
  118. package/src/api/core/vendor/symfony/polyfill-php80/Resources/stubs/PhpToken.php +0 -16
  119. package/src/api/core/vendor/symfony/polyfill-php80/Resources/stubs/Stringable.php +0 -20
  120. package/src/api/core/vendor/symfony/polyfill-php80/Resources/stubs/UnhandledMatchError.php +0 -16
  121. package/src/api/core/vendor/symfony/polyfill-php80/Resources/stubs/ValueError.php +0 -16
  122. package/src/api/core/vendor/symfony/polyfill-php80/bootstrap.php +0 -42
  123. package/src/api/core/vendor/symfony/polyfill-php80/composer.json +0 -37
  124. package/src/api/core/vendor/vlucas/phpdotenv/LICENSE +0 -30
  125. package/src/api/core/vendor/vlucas/phpdotenv/composer.json +0 -60
  126. package/src/api/core/vendor/vlucas/phpdotenv/src/Dotenv.php +0 -267
  127. package/src/api/core/vendor/vlucas/phpdotenv/src/Exception/ExceptionInterface.php +0 -12
  128. package/src/api/core/vendor/vlucas/phpdotenv/src/Exception/InvalidEncodingException.php +0 -12
  129. package/src/api/core/vendor/vlucas/phpdotenv/src/Exception/InvalidFileException.php +0 -12
  130. package/src/api/core/vendor/vlucas/phpdotenv/src/Exception/InvalidPathException.php +0 -12
  131. package/src/api/core/vendor/vlucas/phpdotenv/src/Exception/ValidationException.php +0 -12
  132. package/src/api/core/vendor/vlucas/phpdotenv/src/Loader/Loader.php +0 -48
  133. package/src/api/core/vendor/vlucas/phpdotenv/src/Loader/LoaderInterface.php +0 -20
  134. package/src/api/core/vendor/vlucas/phpdotenv/src/Loader/Resolver.php +0 -65
  135. package/src/api/core/vendor/vlucas/phpdotenv/src/Parser/Entry.php +0 -59
  136. package/src/api/core/vendor/vlucas/phpdotenv/src/Parser/EntryParser.php +0 -299
  137. package/src/api/core/vendor/vlucas/phpdotenv/src/Parser/Lexer.php +0 -58
  138. package/src/api/core/vendor/vlucas/phpdotenv/src/Parser/Lines.php +0 -127
  139. package/src/api/core/vendor/vlucas/phpdotenv/src/Parser/Parser.php +0 -53
  140. package/src/api/core/vendor/vlucas/phpdotenv/src/Parser/ParserInterface.php +0 -19
  141. package/src/api/core/vendor/vlucas/phpdotenv/src/Parser/Value.php +0 -88
  142. package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/AdapterInterface.php +0 -15
  143. package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/ApacheAdapter.php +0 -89
  144. package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/ArrayAdapter.php +0 -80
  145. package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/EnvConstAdapter.php +0 -88
  146. package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/GuardedWriter.php +0 -85
  147. package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/ImmutableWriter.php +0 -110
  148. package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/MultiReader.php +0 -48
  149. package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/MultiWriter.php +0 -64
  150. package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/PutenvAdapter.php +0 -91
  151. package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/ReaderInterface.php +0 -17
  152. package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/ReplacingWriter.php +0 -104
  153. package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/ServerConstAdapter.php +0 -88
  154. package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/WriterInterface.php +0 -27
  155. package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/AdapterRepository.php +0 -107
  156. package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/RepositoryBuilder.php +0 -272
  157. package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/RepositoryInterface.php +0 -51
  158. package/src/api/core/vendor/vlucas/phpdotenv/src/Store/File/Paths.php +0 -44
  159. package/src/api/core/vendor/vlucas/phpdotenv/src/Store/File/Reader.php +0 -81
  160. package/src/api/core/vendor/vlucas/phpdotenv/src/Store/FileStore.php +0 -72
  161. package/src/api/core/vendor/vlucas/phpdotenv/src/Store/StoreBuilder.php +0 -141
  162. package/src/api/core/vendor/vlucas/phpdotenv/src/Store/StoreInterface.php +0 -17
  163. package/src/api/core/vendor/vlucas/phpdotenv/src/Store/StringStore.php +0 -37
  164. package/src/api/core/vendor/vlucas/phpdotenv/src/Util/Regex.php +0 -112
  165. package/src/api/core/vendor/vlucas/phpdotenv/src/Util/Str.php +0 -108
  166. package/src/api/core/vendor/vlucas/phpdotenv/src/Validator.php +0 -207
@@ -1,16 +0,0 @@
1
- <?php
2
-
3
- /*
4
- * This file is part of the Symfony package.
5
- *
6
- * (c) Fabien Potencier <fabien@symfony.com>
7
- *
8
- * For the full copyright and license information, please view the LICENSE
9
- * file that was distributed with this source code.
10
- */
11
-
12
- if (\PHP_VERSION_ID < 80000 && extension_loaded('tokenizer')) {
13
- class PhpToken extends Symfony\Polyfill\Php80\PhpToken
14
- {
15
- }
16
- }
@@ -1,20 +0,0 @@
1
- <?php
2
-
3
- /*
4
- * This file is part of the Symfony package.
5
- *
6
- * (c) Fabien Potencier <fabien@symfony.com>
7
- *
8
- * For the full copyright and license information, please view the LICENSE
9
- * file that was distributed with this source code.
10
- */
11
-
12
- if (\PHP_VERSION_ID < 80000) {
13
- interface Stringable
14
- {
15
- /**
16
- * @return string
17
- */
18
- public function __toString();
19
- }
20
- }
@@ -1,16 +0,0 @@
1
- <?php
2
-
3
- /*
4
- * This file is part of the Symfony package.
5
- *
6
- * (c) Fabien Potencier <fabien@symfony.com>
7
- *
8
- * For the full copyright and license information, please view the LICENSE
9
- * file that was distributed with this source code.
10
- */
11
-
12
- if (\PHP_VERSION_ID < 80000) {
13
- class UnhandledMatchError extends Error
14
- {
15
- }
16
- }
@@ -1,16 +0,0 @@
1
- <?php
2
-
3
- /*
4
- * This file is part of the Symfony package.
5
- *
6
- * (c) Fabien Potencier <fabien@symfony.com>
7
- *
8
- * For the full copyright and license information, please view the LICENSE
9
- * file that was distributed with this source code.
10
- */
11
-
12
- if (\PHP_VERSION_ID < 80000) {
13
- class ValueError extends Error
14
- {
15
- }
16
- }
@@ -1,42 +0,0 @@
1
- <?php
2
-
3
- /*
4
- * This file is part of the Symfony package.
5
- *
6
- * (c) Fabien Potencier <fabien@symfony.com>
7
- *
8
- * For the full copyright and license information, please view the LICENSE
9
- * file that was distributed with this source code.
10
- */
11
-
12
- use Symfony\Polyfill\Php80 as p;
13
-
14
- if (\PHP_VERSION_ID >= 80000) {
15
- return;
16
- }
17
-
18
- if (!defined('FILTER_VALIDATE_BOOL') && defined('FILTER_VALIDATE_BOOLEAN')) {
19
- define('FILTER_VALIDATE_BOOL', \FILTER_VALIDATE_BOOLEAN);
20
- }
21
-
22
- if (!function_exists('fdiv')) {
23
- function fdiv(float $num1, float $num2): float { return p\Php80::fdiv($num1, $num2); }
24
- }
25
- if (!function_exists('preg_last_error_msg')) {
26
- function preg_last_error_msg(): string { return p\Php80::preg_last_error_msg(); }
27
- }
28
- if (!function_exists('str_contains')) {
29
- function str_contains(?string $haystack, ?string $needle): bool { return p\Php80::str_contains($haystack ?? '', $needle ?? ''); }
30
- }
31
- if (!function_exists('str_starts_with')) {
32
- function str_starts_with(?string $haystack, ?string $needle): bool { return p\Php80::str_starts_with($haystack ?? '', $needle ?? ''); }
33
- }
34
- if (!function_exists('str_ends_with')) {
35
- function str_ends_with(?string $haystack, ?string $needle): bool { return p\Php80::str_ends_with($haystack ?? '', $needle ?? ''); }
36
- }
37
- if (!function_exists('get_debug_type')) {
38
- function get_debug_type($value): string { return p\Php80::get_debug_type($value); }
39
- }
40
- if (!function_exists('get_resource_id')) {
41
- function get_resource_id($resource): int { return p\Php80::get_resource_id($resource); }
42
- }
@@ -1,37 +0,0 @@
1
- {
2
- "name": "symfony/polyfill-php80",
3
- "type": "library",
4
- "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions",
5
- "keywords": ["polyfill", "shim", "compatibility", "portable"],
6
- "homepage": "https://symfony.com",
7
- "license": "MIT",
8
- "authors": [
9
- {
10
- "name": "Ion Bazan",
11
- "email": "ion.bazan@gmail.com"
12
- },
13
- {
14
- "name": "Nicolas Grekas",
15
- "email": "p@tchwork.com"
16
- },
17
- {
18
- "name": "Symfony Community",
19
- "homepage": "https://symfony.com/contributors"
20
- }
21
- ],
22
- "require": {
23
- "php": ">=7.2"
24
- },
25
- "autoload": {
26
- "psr-4": { "Symfony\\Polyfill\\Php80\\": "" },
27
- "files": [ "bootstrap.php" ],
28
- "classmap": [ "Resources/stubs" ]
29
- },
30
- "minimum-stability": "dev",
31
- "extra": {
32
- "thanks": {
33
- "name": "symfony/polyfill",
34
- "url": "https://github.com/symfony/polyfill"
35
- }
36
- }
37
- }
@@ -1,30 +0,0 @@
1
- BSD 3-Clause License
2
-
3
- Copyright (c) 2014, Graham Campbell.
4
- Copyright (c) 2013, Vance Lucas.
5
- All rights reserved.
6
-
7
- Redistribution and use in source and binary forms, with or without
8
- modification, are permitted provided that the following conditions are met:
9
-
10
- 1. Redistributions of source code must retain the above copyright notice, this
11
- list of conditions and the following disclaimer.
12
-
13
- 2. Redistributions in binary form must reproduce the above copyright notice,
14
- this list of conditions and the following disclaimer in the documentation
15
- and/or other materials provided with the distribution.
16
-
17
- 3. Neither the name of the copyright holder nor the names of its
18
- contributors may be used to endorse or promote products derived from
19
- this software without specific prior written permission.
20
-
21
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
25
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
28
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -1,60 +0,0 @@
1
- {
2
- "name": "vlucas/phpdotenv",
3
- "description": "Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.",
4
- "keywords": ["env", "dotenv", "environment"],
5
- "license": "BSD-3-Clause",
6
- "authors": [
7
- {
8
- "name": "Graham Campbell",
9
- "email": "hello@gjcampbell.co.uk",
10
- "homepage": "https://github.com/GrahamCampbell"
11
- },
12
- {
13
- "name": "Vance Lucas",
14
- "email": "vance@vancelucas.com",
15
- "homepage": "https://github.com/vlucas"
16
- }
17
- ],
18
- "require": {
19
- "php": "^7.2.5 || ^8.0",
20
- "ext-pcre": "*",
21
- "graham-campbell/result-type": "^1.1.4",
22
- "phpoption/phpoption": "^1.9.5",
23
- "symfony/polyfill-ctype": "^1.26",
24
- "symfony/polyfill-mbstring": "^1.26",
25
- "symfony/polyfill-php80": "^1.26"
26
- },
27
- "require-dev": {
28
- "ext-filter": "*",
29
- "bamarni/composer-bin-plugin": "^1.8.2",
30
- "phpunit/phpunit":"^8.5.34 || ^9.6.13 || ^10.4.2"
31
- },
32
- "autoload": {
33
- "psr-4": {
34
- "Dotenv\\": "src/"
35
- }
36
- },
37
- "autoload-dev": {
38
- "psr-4": {
39
- "Dotenv\\Tests\\": "tests/Dotenv/"
40
- }
41
- },
42
- "suggest": {
43
- "ext-filter": "Required to use the boolean validator."
44
- },
45
- "config": {
46
- "allow-plugins": {
47
- "bamarni/composer-bin-plugin": true
48
- },
49
- "preferred-install": "dist"
50
- },
51
- "extra": {
52
- "bamarni-bin": {
53
- "bin-links": true,
54
- "forward-command": false
55
- },
56
- "branch-alias": {
57
- "dev-master": "5.6-dev"
58
- }
59
- }
60
- }
@@ -1,267 +0,0 @@
1
- <?php
2
-
3
- declare(strict_types=1);
4
-
5
- namespace Dotenv;
6
-
7
- use Dotenv\Exception\InvalidPathException;
8
- use Dotenv\Loader\Loader;
9
- use Dotenv\Loader\LoaderInterface;
10
- use Dotenv\Parser\Parser;
11
- use Dotenv\Parser\ParserInterface;
12
- use Dotenv\Repository\Adapter\ArrayAdapter;
13
- use Dotenv\Repository\Adapter\PutenvAdapter;
14
- use Dotenv\Repository\RepositoryBuilder;
15
- use Dotenv\Repository\RepositoryInterface;
16
- use Dotenv\Store\StoreBuilder;
17
- use Dotenv\Store\StoreInterface;
18
- use Dotenv\Store\StringStore;
19
-
20
- class Dotenv
21
- {
22
- /**
23
- * The store instance.
24
- *
25
- * @var \Dotenv\Store\StoreInterface
26
- */
27
- private $store;
28
-
29
- /**
30
- * The parser instance.
31
- *
32
- * @var \Dotenv\Parser\ParserInterface
33
- */
34
- private $parser;
35
-
36
- /**
37
- * The loader instance.
38
- *
39
- * @var \Dotenv\Loader\LoaderInterface
40
- */
41
- private $loader;
42
-
43
- /**
44
- * The repository instance.
45
- *
46
- * @var \Dotenv\Repository\RepositoryInterface
47
- */
48
- private $repository;
49
-
50
- /**
51
- * Create a new dotenv instance.
52
- *
53
- * @param \Dotenv\Store\StoreInterface $store
54
- * @param \Dotenv\Parser\ParserInterface $parser
55
- * @param \Dotenv\Loader\LoaderInterface $loader
56
- * @param \Dotenv\Repository\RepositoryInterface $repository
57
- *
58
- * @return void
59
- */
60
- public function __construct(
61
- StoreInterface $store,
62
- ParserInterface $parser,
63
- LoaderInterface $loader,
64
- RepositoryInterface $repository
65
- ) {
66
- $this->store = $store;
67
- $this->parser = $parser;
68
- $this->loader = $loader;
69
- $this->repository = $repository;
70
- }
71
-
72
- /**
73
- * Create a new dotenv instance.
74
- *
75
- * @param \Dotenv\Repository\RepositoryInterface $repository
76
- * @param string|string[] $paths
77
- * @param string|string[]|null $names
78
- * @param bool $shortCircuit
79
- * @param string|null $fileEncoding
80
- *
81
- * @return \Dotenv\Dotenv
82
- */
83
- public static function create(RepositoryInterface $repository, $paths, $names = null, bool $shortCircuit = true, ?string $fileEncoding = null)
84
- {
85
- $builder = $names === null ? StoreBuilder::createWithDefaultName() : StoreBuilder::createWithNoNames();
86
-
87
- foreach ((array) $paths as $path) {
88
- $builder = $builder->addPath($path);
89
- }
90
-
91
- foreach ((array) $names as $name) {
92
- $builder = $builder->addName($name);
93
- }
94
-
95
- if ($shortCircuit) {
96
- $builder = $builder->shortCircuit();
97
- }
98
-
99
- return new self($builder->fileEncoding($fileEncoding)->make(), new Parser(), new Loader(), $repository);
100
- }
101
-
102
- /**
103
- * Create a new mutable dotenv instance with default repository.
104
- *
105
- * @param string|string[] $paths
106
- * @param string|string[]|null $names
107
- * @param bool $shortCircuit
108
- * @param string|null $fileEncoding
109
- *
110
- * @return \Dotenv\Dotenv
111
- */
112
- public static function createMutable($paths, $names = null, bool $shortCircuit = true, ?string $fileEncoding = null)
113
- {
114
- $repository = RepositoryBuilder::createWithDefaultAdapters()->make();
115
-
116
- return self::create($repository, $paths, $names, $shortCircuit, $fileEncoding);
117
- }
118
-
119
- /**
120
- * Create a new mutable dotenv instance with default repository with the putenv adapter.
121
- *
122
- * @param string|string[] $paths
123
- * @param string|string[]|null $names
124
- * @param bool $shortCircuit
125
- * @param string|null $fileEncoding
126
- *
127
- * @return \Dotenv\Dotenv
128
- */
129
- public static function createUnsafeMutable($paths, $names = null, bool $shortCircuit = true, ?string $fileEncoding = null)
130
- {
131
- $repository = RepositoryBuilder::createWithDefaultAdapters()
132
- ->addAdapter(PutenvAdapter::class)
133
- ->make();
134
-
135
- return self::create($repository, $paths, $names, $shortCircuit, $fileEncoding);
136
- }
137
-
138
- /**
139
- * Create a new immutable dotenv instance with default repository.
140
- *
141
- * @param string|string[] $paths
142
- * @param string|string[]|null $names
143
- * @param bool $shortCircuit
144
- * @param string|null $fileEncoding
145
- *
146
- * @return \Dotenv\Dotenv
147
- */
148
- public static function createImmutable($paths, $names = null, bool $shortCircuit = true, ?string $fileEncoding = null)
149
- {
150
- $repository = RepositoryBuilder::createWithDefaultAdapters()->immutable()->make();
151
-
152
- return self::create($repository, $paths, $names, $shortCircuit, $fileEncoding);
153
- }
154
-
155
- /**
156
- * Create a new immutable dotenv instance with default repository with the putenv adapter.
157
- *
158
- * @param string|string[] $paths
159
- * @param string|string[]|null $names
160
- * @param bool $shortCircuit
161
- * @param string|null $fileEncoding
162
- *
163
- * @return \Dotenv\Dotenv
164
- */
165
- public static function createUnsafeImmutable($paths, $names = null, bool $shortCircuit = true, ?string $fileEncoding = null)
166
- {
167
- $repository = RepositoryBuilder::createWithDefaultAdapters()
168
- ->addAdapter(PutenvAdapter::class)
169
- ->immutable()
170
- ->make();
171
-
172
- return self::create($repository, $paths, $names, $shortCircuit, $fileEncoding);
173
- }
174
-
175
- /**
176
- * Create a new dotenv instance with an array backed repository.
177
- *
178
- * @param string|string[] $paths
179
- * @param string|string[]|null $names
180
- * @param bool $shortCircuit
181
- * @param string|null $fileEncoding
182
- *
183
- * @return \Dotenv\Dotenv
184
- */
185
- public static function createArrayBacked($paths, $names = null, bool $shortCircuit = true, ?string $fileEncoding = null)
186
- {
187
- $repository = RepositoryBuilder::createWithNoAdapters()->addAdapter(ArrayAdapter::class)->make();
188
-
189
- return self::create($repository, $paths, $names, $shortCircuit, $fileEncoding);
190
- }
191
-
192
- /**
193
- * Parse the given content and resolve nested variables.
194
- *
195
- * This method behaves just like load(), only without mutating your actual
196
- * environment. We do this by using an array backed repository.
197
- *
198
- * @param string $content
199
- *
200
- * @throws \Dotenv\Exception\InvalidFileException
201
- *
202
- * @return array<string, string|null>
203
- */
204
- public static function parse(string $content)
205
- {
206
- $repository = RepositoryBuilder::createWithNoAdapters()->addAdapter(ArrayAdapter::class)->make();
207
-
208
- $phpdotenv = new self(new StringStore($content), new Parser(), new Loader(), $repository);
209
-
210
- return $phpdotenv->load();
211
- }
212
-
213
- /**
214
- * Read and load environment file(s).
215
- *
216
- * @throws \Dotenv\Exception\InvalidPathException|\Dotenv\Exception\InvalidEncodingException|\Dotenv\Exception\InvalidFileException
217
- *
218
- * @return array<string, string|null>
219
- */
220
- public function load()
221
- {
222
- $entries = $this->parser->parse($this->store->read());
223
-
224
- return $this->loader->load($this->repository, $entries);
225
- }
226
-
227
- /**
228
- * Read and load environment file(s), silently failing if no files can be read.
229
- *
230
- * @throws \Dotenv\Exception\InvalidEncodingException|\Dotenv\Exception\InvalidFileException
231
- *
232
- * @return array<string, string|null>
233
- */
234
- public function safeLoad()
235
- {
236
- try {
237
- return $this->load();
238
- } catch (InvalidPathException $e) {
239
- // suppressing exception
240
- return [];
241
- }
242
- }
243
-
244
- /**
245
- * Required ensures that the specified variables exist, and returns a new validator object.
246
- *
247
- * @param string|string[] $variables
248
- *
249
- * @return \Dotenv\Validator
250
- */
251
- public function required($variables)
252
- {
253
- return (new Validator($this->repository, (array) $variables))->required();
254
- }
255
-
256
- /**
257
- * Returns a new validator object that won't check if the specified variables exist.
258
- *
259
- * @param string|string[] $variables
260
- *
261
- * @return \Dotenv\Validator
262
- */
263
- public function ifPresent($variables)
264
- {
265
- return new Validator($this->repository, (array) $variables);
266
- }
267
- }
@@ -1,12 +0,0 @@
1
- <?php
2
-
3
- declare(strict_types=1);
4
-
5
- namespace Dotenv\Exception;
6
-
7
- use Throwable;
8
-
9
- interface ExceptionInterface extends Throwable
10
- {
11
- //
12
- }
@@ -1,12 +0,0 @@
1
- <?php
2
-
3
- declare(strict_types=1);
4
-
5
- namespace Dotenv\Exception;
6
-
7
- use InvalidArgumentException;
8
-
9
- final class InvalidEncodingException extends InvalidArgumentException implements ExceptionInterface
10
- {
11
- //
12
- }
@@ -1,12 +0,0 @@
1
- <?php
2
-
3
- declare(strict_types=1);
4
-
5
- namespace Dotenv\Exception;
6
-
7
- use InvalidArgumentException;
8
-
9
- final class InvalidFileException extends InvalidArgumentException implements ExceptionInterface
10
- {
11
- //
12
- }
@@ -1,12 +0,0 @@
1
- <?php
2
-
3
- declare(strict_types=1);
4
-
5
- namespace Dotenv\Exception;
6
-
7
- use InvalidArgumentException;
8
-
9
- final class InvalidPathException extends InvalidArgumentException implements ExceptionInterface
10
- {
11
- //
12
- }
@@ -1,12 +0,0 @@
1
- <?php
2
-
3
- declare(strict_types=1);
4
-
5
- namespace Dotenv\Exception;
6
-
7
- use RuntimeException;
8
-
9
- final class ValidationException extends RuntimeException implements ExceptionInterface
10
- {
11
- //
12
- }
@@ -1,48 +0,0 @@
1
- <?php
2
-
3
- declare(strict_types=1);
4
-
5
- namespace Dotenv\Loader;
6
-
7
- use Dotenv\Parser\Entry;
8
- use Dotenv\Parser\Value;
9
- use Dotenv\Repository\RepositoryInterface;
10
-
11
- final class Loader implements LoaderInterface
12
- {
13
- /**
14
- * Load the given entries into the repository.
15
- *
16
- * We'll substitute any nested variables, and send each variable to the
17
- * repository, with the effect of actually mutating the environment.
18
- *
19
- * @param \Dotenv\Repository\RepositoryInterface $repository
20
- * @param \Dotenv\Parser\Entry[] $entries
21
- *
22
- * @return array<string, string|null>
23
- */
24
- public function load(RepositoryInterface $repository, array $entries)
25
- {
26
- /** @var array<string, string|null> */
27
- return \array_reduce($entries, static function (array $vars, Entry $entry) use ($repository) {
28
- $name = $entry->getName();
29
-
30
- $value = $entry->getValue()->map(static function (Value $value) use ($repository) {
31
- return Resolver::resolve($repository, $value);
32
- });
33
-
34
- if ($value->isDefined()) {
35
- $inner = $value->get();
36
- if ($repository->set($name, $inner)) {
37
- return \array_merge($vars, [$name => $inner]);
38
- }
39
- } else {
40
- if ($repository->clear($name)) {
41
- return \array_merge($vars, [$name => null]);
42
- }
43
- }
44
-
45
- return $vars;
46
- }, []);
47
- }
48
- }
@@ -1,20 +0,0 @@
1
- <?php
2
-
3
- declare(strict_types=1);
4
-
5
- namespace Dotenv\Loader;
6
-
7
- use Dotenv\Repository\RepositoryInterface;
8
-
9
- interface LoaderInterface
10
- {
11
- /**
12
- * Load the given entries into the repository.
13
- *
14
- * @param \Dotenv\Repository\RepositoryInterface $repository
15
- * @param \Dotenv\Parser\Entry[] $entries
16
- *
17
- * @return array<string, string|null>
18
- */
19
- public function load(RepositoryInterface $repository, array $entries);
20
- }