forked from COmanage/registry
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5,582 changed files
with
382,446 additions
and
196,989 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # These are supported funding model platforms | ||
|
|
||
| github: flavioheleno |
12 changes: 12 additions & 0 deletions
12
app/vendor/beluga-php/docker-php-api/.github/dependabot.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| version: 2 | ||
| updates: | ||
| # Maintain dependencies for GitHub Actions | ||
| - package-ecosystem: "github-actions" | ||
| directory: "/" | ||
| schedule: | ||
| interval: "daily" | ||
| # Maintain dependencies for PHP Packages | ||
| - package-ecosystem: "composer" | ||
| directory: "/" | ||
| schedule: | ||
| interval: "daily" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| vendor/ | ||
| composer.lock | ||
| /.php-cs-fixer.cache |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <?php | ||
|
|
||
| return [ | ||
| 'date-prefer-interface' => true, | ||
| 'directory' => __DIR__ . '/src', | ||
| 'namespace' => 'Docker\\API', | ||
| 'openapi-file' => __DIR__ . '/spec/v1.45.json', | ||
| 'reference' => true, | ||
| 'strict' => false, | ||
| 'date-input-format' => 'Y-m-d\TH:i:s.uuP', | ||
| ]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| <?php | ||
|
|
||
| $finder = \PhpCsFixer\Finder::create() | ||
| ->in([ | ||
| __DIR__.'/src', | ||
| ]); | ||
|
|
||
| $config = new \PhpCsFixer\Config(); | ||
| return $config | ||
| ->setRules([ | ||
| '@Symfony' => true, | ||
| '@Symfony:risky' => true, | ||
| '@PHP56Migration:risky' => true, | ||
| '@PHP70Migration' => true, | ||
| '@PHP70Migration:risky' => true, | ||
| '@PHP71Migration' => true, | ||
| '@PHP71Migration:risky' => true, | ||
| '@PHP73Migration' => true, | ||
| '@PHP74Migration' => true, | ||
| '@PHP74Migration:risky' => true, | ||
| '@PHP80Migration' => true, | ||
| '@PHP80Migration:risky' => true, | ||
| 'array_syntax' => [ | ||
| 'syntax' => 'short' | ||
| ], | ||
| 'align_multiline_comment' => true, | ||
| 'combine_consecutive_unsets' => true, | ||
| 'declare_strict_types' => true, | ||
| 'linebreak_after_opening_tag' => true, | ||
| 'modernize_types_casting' => true, | ||
| 'native_function_invocation' => true, | ||
| 'no_php4_constructor' => true, | ||
| 'ordered_imports' => true, | ||
| 'php_unit_strict' => true, | ||
| 'phpdoc_line_span' => true, | ||
| 'phpdoc_order' => true, | ||
| 'strict_comparison' => true, | ||
| 'strict_param' => true, | ||
| ]) | ||
| ->setRiskyAllowed(true) | ||
| ->setIndent(' ') | ||
| ->setLineEnding("\n") | ||
| ->setFinder($finder) | ||
| ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| Copyright (c) 2017 Joel Wurtz <https://github.com/joelwurtz> and 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| # Docker PHP Api | ||
|
|
||
| Generated API Client from OpenAPI specification of [Docker](https://www.docker.com/), by [Jane](https://github.com/janephp/janephp) OpenAPI Client generator. | ||
|
|
||
| ## Usage | ||
|
|
||
| You should not use this library directly, please use the [docker-php](https://github.com/docker-php/docker-php) one instead. | ||
|
|
||
| ## Versioning | ||
|
|
||
| This library does *not* respect semver and will instead follow Jane OpenAPI version and Docker API version: | ||
|
|
||
| * First number is the Jane major version used for generating the files | ||
| * Second and third number are the Docker API Version | ||
| * Last number is the minor revision number for this | ||
|
|
||
| So 4.1.25.0 is the version 1.25 of Docker API generated with Jane OpenAPI in a 4.X version. | ||
|
|
||
| You should always fix the version, or at least the 3 first numbers (4.1.25.\*) | ||
|
|
||
| ## Credits | ||
|
|
||
| This library is a fork of the original [docker-php-api](https://github.com/docker-php/docker-php-api), created by [Joel Wurtz](https://github.com/joelwurtz). | ||
|
|
||
| ## License | ||
|
|
||
| The MIT License (MIT). Please see [License File](LICENSE) for more information. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,85 @@ | ||
| { | ||
| "name": "beluga-php/docker-php-api", | ||
| "description": "Docker API generated files from OpenAPI Specification", | ||
| "license": "MIT", | ||
| "type": "library", | ||
| "funding": [ | ||
| { | ||
| "type": "github", | ||
| "url": "https://github.com/flavioheleno" | ||
| } | ||
| ], | ||
| "require": { | ||
| "php": ">=8.1", | ||
| "ext-mbstring": "*", | ||
| "jane-php/json-schema-runtime": "^7.5", | ||
| "jane-php/open-api-runtime": "^7.5", | ||
| "php-http/client-common": "^2.7", | ||
| "php-http/discovery": "^1.19", | ||
| "php-http/multipart-stream-builder": "^1.3", | ||
| "psr/http-client": "^1.0", | ||
| "psr/http-client-implementation": "*", | ||
| "psr/http-factory": "^1.0", | ||
| "psr/http-factory-implementation": "*", | ||
| "psr/http-message": "^2.0", | ||
| "psr/http-message-implementation": "*", | ||
| "symfony/deprecation-contracts": "^3.3", | ||
| "symfony/options-resolver": "^6.3 || ^7.0 || ^8.0", | ||
| "symfony/serializer": "^6.3 || ^7.0 || ^8.0", | ||
| "symfony/validator": "^6.3 || ^7.0 || ^8.0" | ||
| }, | ||
| "require-dev": { | ||
| "ergebnis/composer-normalize": "^2.42", | ||
| "friendsofphp/php-cs-fixer": "^3.8", | ||
| "jane-php/open-api-3": "^7.4", | ||
| "roave/security-advisories": "dev-latest" | ||
| }, | ||
| "conflict": { | ||
| "docker-php/docker-php-api": "*" | ||
| }, | ||
| "minimum-stability": "dev", | ||
| "prefer-stable": true, | ||
| "autoload": { | ||
| "psr-4": { | ||
| "Docker\\API\\": "src/" | ||
| } | ||
| }, | ||
| "config": { | ||
| "allow-plugins": { | ||
| "ergebnis/composer-normalize": true, | ||
| "php-http/discovery": false | ||
| }, | ||
| "optimize-autoloader": true, | ||
| "preferred-install": "dist", | ||
| "sort-packages": true | ||
| }, | ||
| "extra": { | ||
| "branch-alias": { | ||
| "6.1.36": "6.1.36.x-dev", | ||
| "6.1.41": "6.1.41.x-dev", | ||
| "7.1.41": "7.1.41.x-dev", | ||
| "7.1.42": "7.1.42.x-dev", | ||
| "dev-main": "7.1.43.x-dev" | ||
| } | ||
| }, | ||
| "scripts": { | ||
| "generate": [ | ||
| "vendor/bin/jane-openapi generate", | ||
| "cat patches/*.patch | patch -s -p1" | ||
| ], | ||
| "lint": "vendor/bin/php-cs-fixer fix --dry-run --verbose --diff", | ||
| "lint-fix": "vendor/bin/php-cs-fixer fix --verbose" | ||
| }, | ||
| "extra": { | ||
| "branch-alias": { | ||
| "dev-main": "7.1.46.x-dev", | ||
| "7.1.45": "7.1.45.x-dev", | ||
| "7.1.44": "7.1.44.x-dev", | ||
| "7.1.43": "7.1.43.x-dev", | ||
| "7.1.42": "7.1.42.x-dev", | ||
| "7.1.41": "7.1.41.x-dev", | ||
| "6.1.41": "6.1.41.x-dev", | ||
| "6.1.36": "6.1.36.x-dev" | ||
| } | ||
| } | ||
| } |
26 changes: 26 additions & 0 deletions
26
app/vendor/beluga-php/docker-php-api/patches/NetworkSettingsNormalizer.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| diff --git a/src/Normalizer/NetworkSettingsNormalizer.php b/src/Normalizer/NetworkSettingsNormalizer.php | ||
| index 22cfce8..392058c 100644 | ||
| --- a/src/Normalizer/NetworkSettingsNormalizer.php | ||
| +++ b/src/Normalizer/NetworkSettingsNormalizer.php | ||
| @@ -78,6 +78,10 @@ class NetworkSettingsNormalizer implements DenormalizerInterface, NormalizerInte | ||
| if (\array_key_exists('Ports', $data) && $data['Ports'] !== null) { | ||
| $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); | ||
| foreach ($data['Ports'] as $key => $value) { | ||
| + if (null === $value) { | ||
| + $values[$key] = null; | ||
| + continue; | ||
| + } | ||
| $values_1 = []; | ||
| foreach ($value as $value_1) { | ||
| $values_1[] = $this->denormalizer->denormalize($value_1, \Docker\API\Model\PortBinding::class, 'json', $context); | ||
| @@ -214,6 +218,10 @@ class NetworkSettingsNormalizer implements DenormalizerInterface, NormalizerInte | ||
| if ($data->isInitialized('ports') && null !== $data->getPorts()) { | ||
| $values = []; | ||
| foreach ($data->getPorts() as $key => $value) { | ||
| + if (null === $value) { | ||
| + $values[$key] = null; | ||
| + continue; | ||
| + } | ||
| $values_1 = []; | ||
| foreach ($value as $value_1) { | ||
| $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); |
Oops, something went wrong.