From d4d4cbcc97ebb413737328ee5f22d8c1b47ddcd8 Mon Sep 17 00:00:00 2001 From: Korca Date: Wed, 7 Dec 2022 09:26:13 +0100 Subject: [PATCH 1/5] nette-2.4 --- src/ApiRouteFormat.php | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/src/ApiRouteFormat.php b/src/ApiRouteFormat.php index 582d180..56f010a 100644 --- a/src/ApiRouteFormat.php +++ b/src/ApiRouteFormat.php @@ -2,7 +2,7 @@ namespace ADT\ApiJsonRouter; -use Contributte\ApiRouter\ApiRoute; +use Ublaboo\ApiRouter\ApiRoute; use Nette; class FormatSchemaError extends \Exception { @@ -231,7 +231,7 @@ protected function verifyBodyFormat($body, $schema, $propertyPath = 'body') { } } - public function match(Nette\Http\IRequest $httpRequest): ?array { + public function match(Nette\Http\IRequest $httpRequest): ?Nette\Application\Request { $result = parent::match($httpRequest); if ($result === NULL || $this->bodySchema === NULL) { @@ -253,7 +253,7 @@ public function match(Nette\Http\IRequest $httpRequest): ?array { if (isset($this->bodySchema['properties'])) { foreach ($this->bodySchema['properties'] as $key => $value) { if (isset($body->$key)) { - $result["_$key"] = $body->$key; + $result->parameters["_$key"] = $body->$key; } } } @@ -261,14 +261,19 @@ public function match(Nette\Http\IRequest $httpRequest): ?array { if (self::$throwErrors) { throw $e; } else { - return [ - 'presenter' => self::$errorPresenter, - 'action' => self::$errorAction, - 'secured' => FALSE, - 'error' => $e::ERROR_MESSAGE, - 'code' => $e::ERROR_CODE, - 'message' => $e->getMessage(), - ]; + return new Nette\Application\Request( + self::$errorPresenter, + Nette\Application\Request::FORWARD, + [ + 'action' => self::$errorAction, + 'error' => $e::ERROR_MESSAGE, + 'code' => $e::ERROR_CODE, + 'message' => $e->getMessage(), + ], + $httpRequest->getPost(), + $httpRequest->getFiles(), + [Nette\Application\Request::SECURED => $httpRequest->isSecured()] + ); } } return $result; From 730f603ed76b0222b3437a50d3a02d06c843d1b8 Mon Sep 17 00:00:00 2001 From: Korca Date: Wed, 7 Dec 2022 09:35:54 +0100 Subject: [PATCH 2/5] nette-2.4 composer --- composer.json | 2 +- composer.lock | 37 ++++++++++++++++++------------------- 2 files changed, 19 insertions(+), 20 deletions(-) diff --git a/composer.json b/composer.json index de9b620..ad66c5f 100644 --- a/composer.json +++ b/composer.json @@ -16,6 +16,6 @@ }, "require": { "php": ">= 7.1.0", - "contributte/api-router": "^4.0" + "contributte/api-router": "^2.0" } } \ No newline at end of file diff --git a/composer.lock b/composer.lock index 86cf725..5706069 100644 --- a/composer.lock +++ b/composer.lock @@ -8,42 +8,37 @@ "packages": [ { "name": "contributte/api-router", - "version": "v4.0.0", + "version": "v2.1.1", "source": { "type": "git", "url": "https://github.com/contributte/api-router.git", - "reference": "7fd29d4531f781631ddadc2d8360835b2891c937" + "reference": "f96680e26b30a1f6129577a55970414cadd6446a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/contributte/api-router/zipball/7fd29d4531f781631ddadc2d8360835b2891c937", - "reference": "7fd29d4531f781631ddadc2d8360835b2891c937", + "url": "https://api.github.com/repos/contributte/api-router/zipball/f96680e26b30a1f6129577a55970414cadd6446a", + "reference": "f96680e26b30a1f6129577a55970414cadd6446a", "shasum": "" }, "require": { "doctrine/annotations": "~1.3", "doctrine/cache": "^1.6", - "nette/application": "^3.0", - "nette/di": "^3.0", - "nette/http": "^3.0", - "nette/reflection": "^2.4", - "nette/utils": "^3.0", + "nette/application": "^2.3|^2.4", + "nette/di": "^2.3|^2.4", + "nette/http": "^2.3|^2.4", + "nette/reflection": "^2.3|^2.4", + "nette/utils": "^2.3|^2.4", "php": ">= 7.1.0" }, "require-dev": { "mockery/mockery": "~0.9", - "nette/tester": "^2.2", - "tracy/tracy": "^2.6" + "nette/tester": "~1.6.1", + "tracy/tracy": "^2.3|^2.4" }, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.1.x-dev" - } - }, "autoload": { "psr-4": { - "Contributte\\ApiRouter\\": "src/" + "Ublaboo\\ApiRouter\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -57,7 +52,7 @@ } ], "description": "RESTful Router for your Apis in Nette Framework - created either directly or via annotation", - "homepage": "https://github.com/contributte/api-router", + "homepage": "https://ublaboo.org/api-router", "keywords": [ "api", "nette", @@ -69,7 +64,11 @@ "routes", "routing" ], - "time": "2020-05-03T21:16:17+00:00" + "support": { + "issues": "https://github.com/ublaboo/api-router/issues", + "source": "https://github.com/contributte/api-router/tree/v2.1.1" + }, + "time": "2020-10-06T18:53:22+00:00" }, { "name": "doctrine/annotations", From b529fc9afcaa586cfb00258cdcacbb1a31ea4f4f Mon Sep 17 00:00:00 2001 From: Korca Date: Wed, 7 Dec 2022 13:39:28 +0100 Subject: [PATCH 3/5] nette-2.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix předávání parametrů z body --- src/ApiRouteFormat.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ApiRouteFormat.php b/src/ApiRouteFormat.php index 56f010a..33c436e 100644 --- a/src/ApiRouteFormat.php +++ b/src/ApiRouteFormat.php @@ -251,11 +251,13 @@ public function match(Nette\Http\IRequest $httpRequest): ?Nette\Application\Requ } $this->verifyBodyFormat($body, $this->bodySchema); if (isset($this->bodySchema['properties'])) { + $originalParams = $result->getParameters(); foreach ($this->bodySchema['properties'] as $key => $value) { if (isset($body->$key)) { - $result->parameters["_$key"] = $body->$key; + $originalParams["_$key"] = $body->$key; } } + $result->setParameters($originalParams); } } catch (FormatSchemaError | FormatInputError $e) { if (self::$throwErrors) { From 9db32f7702ff121a03ad33c16adde38cffb9638b Mon Sep 17 00:00:00 2001 From: Korca Date: Wed, 7 Dec 2022 13:41:18 +0100 Subject: [PATCH 4/5] nette-2.4 prejmenovani --- src/ApiRouteFormat.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ApiRouteFormat.php b/src/ApiRouteFormat.php index 33c436e..de042f7 100644 --- a/src/ApiRouteFormat.php +++ b/src/ApiRouteFormat.php @@ -251,13 +251,13 @@ public function match(Nette\Http\IRequest $httpRequest): ?Nette\Application\Requ } $this->verifyBodyFormat($body, $this->bodySchema); if (isset($this->bodySchema['properties'])) { - $originalParams = $result->getParameters(); + $parameters = $result->getParameters(); foreach ($this->bodySchema['properties'] as $key => $value) { if (isset($body->$key)) { - $originalParams["_$key"] = $body->$key; + $parameters["_$key"] = $body->$key; } } - $result->setParameters($originalParams); + $result->setParameters($parameters); } } catch (FormatSchemaError | FormatInputError $e) { if (self::$throwErrors) { From e506d09ca89f92c0ac79b7ecc94da848495fe385 Mon Sep 17 00:00:00 2001 From: Viktor Masicek Date: Sun, 11 Dec 2022 10:33:18 +0100 Subject: [PATCH 5/5] Remove composer.lock and place it into the gitignore --- .gitignore | 1 + composer.lock | 1193 ------------------------------------------------- 2 files changed, 1 insertion(+), 1193 deletions(-) delete mode 100644 composer.lock diff --git a/.gitignore b/.gitignore index 5049f84..3806554 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /vendor /.idea +composer.lock diff --git a/composer.lock b/composer.lock deleted file mode 100644 index 5706069..0000000 --- a/composer.lock +++ /dev/null @@ -1,1193 +0,0 @@ -{ - "_readme": [ - "This file locks the dependencies of your project to a known state", - "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", - "This file is @generated automatically" - ], - "content-hash": "55703f62aa8d259eff9a479114a8b08a", - "packages": [ - { - "name": "contributte/api-router", - "version": "v2.1.1", - "source": { - "type": "git", - "url": "https://github.com/contributte/api-router.git", - "reference": "f96680e26b30a1f6129577a55970414cadd6446a" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/contributte/api-router/zipball/f96680e26b30a1f6129577a55970414cadd6446a", - "reference": "f96680e26b30a1f6129577a55970414cadd6446a", - "shasum": "" - }, - "require": { - "doctrine/annotations": "~1.3", - "doctrine/cache": "^1.6", - "nette/application": "^2.3|^2.4", - "nette/di": "^2.3|^2.4", - "nette/http": "^2.3|^2.4", - "nette/reflection": "^2.3|^2.4", - "nette/utils": "^2.3|^2.4", - "php": ">= 7.1.0" - }, - "require-dev": { - "mockery/mockery": "~0.9", - "nette/tester": "~1.6.1", - "tracy/tracy": "^2.3|^2.4" - }, - "type": "library", - "autoload": { - "psr-4": { - "Ublaboo\\ApiRouter\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Pavel Janda", - "homepage": "http://paveljanda.com" - } - ], - "description": "RESTful Router for your Apis in Nette Framework - created either directly or via annotation", - "homepage": "https://ublaboo.org/api-router", - "keywords": [ - "api", - "nette", - "rest", - "restapi", - "restrouter", - "route", - "router", - "routes", - "routing" - ], - "support": { - "issues": "https://github.com/ublaboo/api-router/issues", - "source": "https://github.com/contributte/api-router/tree/v2.1.1" - }, - "time": "2020-10-06T18:53:22+00:00" - }, - { - "name": "doctrine/annotations", - "version": "1.12.1", - "source": { - "type": "git", - "url": "https://github.com/doctrine/annotations.git", - "reference": "b17c5014ef81d212ac539f07a1001832df1b6d3b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/annotations/zipball/b17c5014ef81d212ac539f07a1001832df1b6d3b", - "reference": "b17c5014ef81d212ac539f07a1001832df1b6d3b", - "shasum": "" - }, - "require": { - "doctrine/lexer": "1.*", - "ext-tokenizer": "*", - "php": "^7.1 || ^8.0" - }, - "require-dev": { - "doctrine/cache": "1.*", - "doctrine/coding-standard": "^6.0 || ^8.1", - "phpstan/phpstan": "^0.12.20", - "phpunit/phpunit": "^7.5 || ^9.1.5" - }, - "type": "library", - "autoload": { - "psr-4": { - "Doctrine\\Common\\Annotations\\": "lib/Doctrine/Common/Annotations" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com" - }, - { - "name": "Roman Borschel", - "email": "roman@code-factory.org" - }, - { - "name": "Benjamin Eberlei", - "email": "kontakt@beberlei.de" - }, - { - "name": "Jonathan Wage", - "email": "jonwage@gmail.com" - }, - { - "name": "Johannes Schmitt", - "email": "schmittjoh@gmail.com" - } - ], - "description": "Docblock Annotations Parser", - "homepage": "https://www.doctrine-project.org/projects/annotations.html", - "keywords": [ - "annotations", - "docblock", - "parser" - ], - "time": "2021-02-21T21:00:45+00:00" - }, - { - "name": "doctrine/cache", - "version": "1.10.2", - "source": { - "type": "git", - "url": "https://github.com/doctrine/cache.git", - "reference": "13e3381b25847283a91948d04640543941309727" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/cache/zipball/13e3381b25847283a91948d04640543941309727", - "reference": "13e3381b25847283a91948d04640543941309727", - "shasum": "" - }, - "require": { - "php": "~7.1 || ^8.0" - }, - "conflict": { - "doctrine/common": ">2.2,<2.4" - }, - "require-dev": { - "alcaeus/mongo-php-adapter": "^1.1", - "doctrine/coding-standard": "^6.0", - "mongodb/mongodb": "^1.1", - "phpunit/phpunit": "^7.0", - "predis/predis": "~1.0" - }, - "suggest": { - "alcaeus/mongo-php-adapter": "Required to use legacy MongoDB driver" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.9.x-dev" - } - }, - "autoload": { - "psr-4": { - "Doctrine\\Common\\Cache\\": "lib/Doctrine/Common/Cache" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com" - }, - { - "name": "Roman Borschel", - "email": "roman@code-factory.org" - }, - { - "name": "Benjamin Eberlei", - "email": "kontakt@beberlei.de" - }, - { - "name": "Jonathan Wage", - "email": "jonwage@gmail.com" - }, - { - "name": "Johannes Schmitt", - "email": "schmittjoh@gmail.com" - } - ], - "description": "PHP Doctrine Cache library is a popular cache implementation that supports many different drivers such as redis, memcache, apc, mongodb and others.", - "homepage": "https://www.doctrine-project.org/projects/cache.html", - "keywords": [ - "abstraction", - "apcu", - "cache", - "caching", - "couchdb", - "memcached", - "php", - "redis", - "xcache" - ], - "funding": [ - { - "url": "https://www.doctrine-project.org/sponsorship.html", - "type": "custom" - }, - { - "url": "https://www.patreon.com/phpdoctrine", - "type": "patreon" - }, - { - "url": "https://tidelift.com/funding/github/packagist/doctrine%2Fcache", - "type": "tidelift" - } - ], - "time": "2020-07-07T18:54:01+00:00" - }, - { - "name": "doctrine/lexer", - "version": "1.2.1", - "source": { - "type": "git", - "url": "https://github.com/doctrine/lexer.git", - "reference": "e864bbf5904cb8f5bb334f99209b48018522f042" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/lexer/zipball/e864bbf5904cb8f5bb334f99209b48018522f042", - "reference": "e864bbf5904cb8f5bb334f99209b48018522f042", - "shasum": "" - }, - "require": { - "php": "^7.2 || ^8.0" - }, - "require-dev": { - "doctrine/coding-standard": "^6.0", - "phpstan/phpstan": "^0.11.8", - "phpunit/phpunit": "^8.2" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.2.x-dev" - } - }, - "autoload": { - "psr-4": { - "Doctrine\\Common\\Lexer\\": "lib/Doctrine/Common/Lexer" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com" - }, - { - "name": "Roman Borschel", - "email": "roman@code-factory.org" - }, - { - "name": "Johannes Schmitt", - "email": "schmittjoh@gmail.com" - } - ], - "description": "PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.", - "homepage": "https://www.doctrine-project.org/projects/lexer.html", - "keywords": [ - "annotations", - "docblock", - "lexer", - "parser", - "php" - ], - "funding": [ - { - "url": "https://www.doctrine-project.org/sponsorship.html", - "type": "custom" - }, - { - "url": "https://www.patreon.com/phpdoctrine", - "type": "patreon" - }, - { - "url": "https://tidelift.com/funding/github/packagist/doctrine%2Flexer", - "type": "tidelift" - } - ], - "time": "2020-05-25T17:44:05+00:00" - }, - { - "name": "nette/application", - "version": "v3.1.2", - "source": { - "type": "git", - "url": "https://github.com/nette/application.git", - "reference": "f817a0b738a3190efe1e573a099d1a80797e156b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/nette/application/zipball/f817a0b738a3190efe1e573a099d1a80797e156b", - "reference": "f817a0b738a3190efe1e573a099d1a80797e156b", - "shasum": "" - }, - "require": { - "nette/component-model": "^3.0", - "nette/http": "^3.0.2", - "nette/routing": "^3.0.2", - "nette/utils": "^3.2.1", - "php": ">=7.2" - }, - "conflict": { - "latte/latte": "<2.7.1 || >=3.0", - "nette/caching": "<3.1", - "nette/di": "<3.0.7", - "nette/forms": "<3.0", - "nette/schema": "<1.2", - "tracy/tracy": "<2.5" - }, - "require-dev": { - "latte/latte": "^2.10.2", - "mockery/mockery": "^1.0", - "nette/di": "^v3.0", - "nette/forms": "^3.0", - "nette/robot-loader": "^3.2", - "nette/security": "^3.0", - "nette/tester": "^2.3.1", - "phpstan/phpstan-nette": "^0.12", - "tracy/tracy": "^2.6" - }, - "suggest": { - "latte/latte": "Allows using Latte in templates", - "nette/forms": "Allows to use Nette\\Application\\UI\\Form" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.1-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause", - "GPL-2.0-only", - "GPL-3.0-only" - ], - "authors": [ - { - "name": "David Grudl", - "homepage": "https://davidgrudl.com" - }, - { - "name": "Nette Community", - "homepage": "https://nette.org/contributors" - } - ], - "description": "🏆 Nette Application: a full-stack component-based MVC kernel for PHP that helps you write powerful and modern web applications. Write less, have cleaner code and your work will bring you joy.", - "homepage": "https://nette.org", - "keywords": [ - "Forms", - "component-based", - "control", - "framework", - "mvc", - "mvp", - "nette", - "presenter", - "routing", - "seo" - ], - "time": "2021-02-08T05:57:00+00:00" - }, - { - "name": "nette/caching", - "version": "v3.1.1", - "source": { - "type": "git", - "url": "https://github.com/nette/caching.git", - "reference": "3e771c589dee414724be473c24ad16dae50c1960" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/nette/caching/zipball/3e771c589dee414724be473c24ad16dae50c1960", - "reference": "3e771c589dee414724be473c24ad16dae50c1960", - "shasum": "" - }, - "require": { - "nette/finder": "^2.4 || ^3.0", - "nette/utils": "^2.4 || ^3.0", - "php": ">=7.2 <8.1" - }, - "require-dev": { - "latte/latte": "^2.10", - "nette/di": "^v3.0", - "nette/tester": "^2.0", - "phpstan/phpstan": "^0.12", - "tracy/tracy": "^2.4" - }, - "suggest": { - "ext-pdo_sqlite": "to use SQLiteStorage or SQLiteJournal" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.1-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause", - "GPL-2.0-only", - "GPL-3.0-only" - ], - "authors": [ - { - "name": "David Grudl", - "homepage": "https://davidgrudl.com" - }, - { - "name": "Nette Community", - "homepage": "https://nette.org/contributors" - } - ], - "description": "⏱ Nette Caching: library with easy-to-use API and many cache backends.", - "homepage": "https://nette.org", - "keywords": [ - "cache", - "journal", - "memcached", - "nette", - "sqlite" - ], - "time": "2021-03-06T14:07:38+00:00" - }, - { - "name": "nette/component-model", - "version": "v3.0.1", - "source": { - "type": "git", - "url": "https://github.com/nette/component-model.git", - "reference": "66409cf5507c77edb46ffa88cf6a92ff58395601" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/nette/component-model/zipball/66409cf5507c77edb46ffa88cf6a92ff58395601", - "reference": "66409cf5507c77edb46ffa88cf6a92ff58395601", - "shasum": "" - }, - "require": { - "nette/utils": "^2.5 || ^3.0", - "php": ">=7.1" - }, - "require-dev": { - "nette/tester": "^2.0", - "phpstan/phpstan": "^0.12", - "tracy/tracy": "^2.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause", - "GPL-2.0-only", - "GPL-3.0-only" - ], - "authors": [ - { - "name": "David Grudl", - "homepage": "https://davidgrudl.com" - }, - { - "name": "Nette Community", - "homepage": "https://nette.org/contributors" - } - ], - "description": "⚛ Nette Component Model", - "homepage": "https://nette.org", - "keywords": [ - "components", - "nette" - ], - "time": "2020-04-21T13:48:20+00:00" - }, - { - "name": "nette/di", - "version": "v3.0.8", - "source": { - "type": "git", - "url": "https://github.com/nette/di.git", - "reference": "1a3210f0f1f971db8a6e970c716c1cebd28b7ab0" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/nette/di/zipball/1a3210f0f1f971db8a6e970c716c1cebd28b7ab0", - "reference": "1a3210f0f1f971db8a6e970c716c1cebd28b7ab0", - "shasum": "" - }, - "require": { - "ext-tokenizer": "*", - "nette/neon": "^3.0", - "nette/php-generator": "^3.3.3", - "nette/robot-loader": "^3.2", - "nette/schema": "^1.1", - "nette/utils": "^3.2", - "php": ">=7.1 <8.1" - }, - "conflict": { - "nette/bootstrap": "<3.0" - }, - "require-dev": { - "nette/tester": "^2.2", - "phpstan/phpstan": "^0.12", - "tracy/tracy": "^2.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause", - "GPL-2.0-only", - "GPL-3.0-only" - ], - "authors": [ - { - "name": "David Grudl", - "homepage": "https://davidgrudl.com" - }, - { - "name": "Nette Community", - "homepage": "https://nette.org/contributors" - } - ], - "description": "💎 Nette Dependency Injection Container: Flexible, compiled and full-featured DIC with perfectly usable autowiring and support for all new PHP features.", - "homepage": "https://nette.org", - "keywords": [ - "compiled", - "di", - "dic", - "factory", - "ioc", - "nette", - "static" - ], - "time": "2021-03-02T03:47:09+00:00" - }, - { - "name": "nette/finder", - "version": "v2.5.2", - "source": { - "type": "git", - "url": "https://github.com/nette/finder.git", - "reference": "4ad2c298eb8c687dd0e74ae84206a4186eeaed50" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/nette/finder/zipball/4ad2c298eb8c687dd0e74ae84206a4186eeaed50", - "reference": "4ad2c298eb8c687dd0e74ae84206a4186eeaed50", - "shasum": "" - }, - "require": { - "nette/utils": "^2.4 || ^3.0", - "php": ">=7.1" - }, - "conflict": { - "nette/nette": "<2.2" - }, - "require-dev": { - "nette/tester": "^2.0", - "phpstan/phpstan": "^0.12", - "tracy/tracy": "^2.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.5-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause", - "GPL-2.0", - "GPL-3.0" - ], - "authors": [ - { - "name": "David Grudl", - "homepage": "https://davidgrudl.com" - }, - { - "name": "Nette Community", - "homepage": "https://nette.org/contributors" - } - ], - "description": "🔍 Nette Finder: find files and directories with an intuitive API.", - "homepage": "https://nette.org", - "keywords": [ - "filesystem", - "glob", - "iterator", - "nette" - ], - "time": "2020-01-03T20:35:40+00:00" - }, - { - "name": "nette/http", - "version": "v3.1.1", - "source": { - "type": "git", - "url": "https://github.com/nette/http.git", - "reference": "c903d0f0b793ed2045a442f338e756e1d3954c22" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/nette/http/zipball/c903d0f0b793ed2045a442f338e756e1d3954c22", - "reference": "c903d0f0b793ed2045a442f338e756e1d3954c22", - "shasum": "" - }, - "require": { - "nette/utils": "^3.1", - "php": ">=7.2 <8.1" - }, - "conflict": { - "nette/di": "<3.0.3", - "nette/schema": "<1.2" - }, - "require-dev": { - "nette/di": "^3.0", - "nette/security": "^3.0", - "nette/tester": "^2.0", - "phpstan/phpstan": "^0.12", - "tracy/tracy": "^2.4" - }, - "suggest": { - "ext-fileinfo": "to detect type of uploaded files" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.1-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause", - "GPL-2.0-only", - "GPL-3.0-only" - ], - "authors": [ - { - "name": "David Grudl", - "homepage": "https://davidgrudl.com" - }, - { - "name": "Nette Community", - "homepage": "https://nette.org/contributors" - } - ], - "description": "🌐 Nette Http: abstraction for HTTP request, response and session. Provides careful data sanitization and utility for URL and cookies manipulation.", - "homepage": "https://nette.org", - "keywords": [ - "cookies", - "http", - "nette", - "proxy", - "request", - "response", - "security", - "session", - "url" - ], - "time": "2021-01-25T20:15:01+00:00" - }, - { - "name": "nette/neon", - "version": "v3.2.2", - "source": { - "type": "git", - "url": "https://github.com/nette/neon.git", - "reference": "e4ca6f4669121ca6876b1d048c612480e39a28d5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/nette/neon/zipball/e4ca6f4669121ca6876b1d048c612480e39a28d5", - "reference": "e4ca6f4669121ca6876b1d048c612480e39a28d5", - "shasum": "" - }, - "require": { - "ext-json": "*", - "php": ">=7.1" - }, - "require-dev": { - "nette/tester": "^2.0", - "phpstan/phpstan": "^0.12", - "tracy/tracy": "^2.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.2-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause", - "GPL-2.0-only", - "GPL-3.0-only" - ], - "authors": [ - { - "name": "David Grudl", - "homepage": "https://davidgrudl.com" - }, - { - "name": "Nette Community", - "homepage": "https://nette.org/contributors" - } - ], - "description": "🍸 Nette NEON: encodes and decodes NEON file format.", - "homepage": "https://ne-on.org", - "keywords": [ - "export", - "import", - "neon", - "nette", - "yaml" - ], - "time": "2021-02-28T12:30:32+00:00" - }, - { - "name": "nette/php-generator", - "version": "v3.5.3", - "source": { - "type": "git", - "url": "https://github.com/nette/php-generator.git", - "reference": "119f01a7bd590469cb01b538f20a125a28853626" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/nette/php-generator/zipball/119f01a7bd590469cb01b538f20a125a28853626", - "reference": "119f01a7bd590469cb01b538f20a125a28853626", - "shasum": "" - }, - "require": { - "nette/utils": "^3.1.2", - "php": ">=7.1" - }, - "require-dev": { - "nette/tester": "^2.0", - "nikic/php-parser": "^4.4", - "phpstan/phpstan": "^0.12", - "tracy/tracy": "^2.3" - }, - "suggest": { - "nikic/php-parser": "to use ClassType::withBodiesFrom() & GlobalFunction::withBodyFrom()" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.5-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause", - "GPL-2.0-only", - "GPL-3.0-only" - ], - "authors": [ - { - "name": "David Grudl", - "homepage": "https://davidgrudl.com" - }, - { - "name": "Nette Community", - "homepage": "https://nette.org/contributors" - } - ], - "description": "🐘 Nette PHP Generator: generates neat PHP code for you. Supports new PHP 7.4 features.", - "homepage": "https://nette.org", - "keywords": [ - "code", - "nette", - "php", - "scaffolding" - ], - "time": "2021-02-24T18:40:21+00:00" - }, - { - "name": "nette/reflection", - "version": "v2.4.2", - "source": { - "type": "git", - "url": "https://github.com/nette/reflection.git", - "reference": "b12327e98ead74e87a1315e0d48182a702adf901" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/nette/reflection/zipball/b12327e98ead74e87a1315e0d48182a702adf901", - "reference": "b12327e98ead74e87a1315e0d48182a702adf901", - "shasum": "" - }, - "require": { - "ext-tokenizer": "*", - "nette/caching": "^2.2 || ^3.0", - "nette/utils": "^2.4 || ^3.0", - "php": ">=5.6.0" - }, - "conflict": { - "nette/nette": "<2.2" - }, - "require-dev": { - "nette/di": "^2.4 || ^3.0", - "nette/tester": "^2.0", - "tracy/tracy": "^2.4" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.4-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause", - "GPL-2.0", - "GPL-3.0" - ], - "authors": [ - { - "name": "David Grudl", - "homepage": "https://davidgrudl.com" - }, - { - "name": "Nette Community", - "homepage": "https://nette.org/contributors" - } - ], - "description": "Nette Reflection: docblock annotations parser and common reflection classes", - "homepage": "https://nette.org", - "keywords": [ - "annotation", - "nette", - "reflection" - ], - "abandoned": true, - "time": "2017-07-11T19:28:57+00:00" - }, - { - "name": "nette/robot-loader", - "version": "v3.4.0", - "source": { - "type": "git", - "url": "https://github.com/nette/robot-loader.git", - "reference": "3973cf3970d1de7b30888fd10b92dac9e0c2fd82" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/nette/robot-loader/zipball/3973cf3970d1de7b30888fd10b92dac9e0c2fd82", - "reference": "3973cf3970d1de7b30888fd10b92dac9e0c2fd82", - "shasum": "" - }, - "require": { - "ext-tokenizer": "*", - "nette/finder": "^2.5 || ^3.0", - "nette/utils": "^3.0", - "php": ">=7.1" - }, - "require-dev": { - "nette/tester": "^2.0", - "phpstan/phpstan": "^0.12", - "tracy/tracy": "^2.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.4-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause", - "GPL-2.0-only", - "GPL-3.0-only" - ], - "authors": [ - { - "name": "David Grudl", - "homepage": "https://davidgrudl.com" - }, - { - "name": "Nette Community", - "homepage": "https://nette.org/contributors" - } - ], - "description": "🍀 Nette RobotLoader: high performance and comfortable autoloader that will search and autoload classes within your application.", - "homepage": "https://nette.org", - "keywords": [ - "autoload", - "class", - "interface", - "nette", - "trait" - ], - "time": "2021-03-07T15:12:01+00:00" - }, - { - "name": "nette/routing", - "version": "v3.0.2", - "source": { - "type": "git", - "url": "https://github.com/nette/routing.git", - "reference": "5532e7e3612e13def357f089c1a5c25793a16843" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/nette/routing/zipball/5532e7e3612e13def357f089c1a5c25793a16843", - "reference": "5532e7e3612e13def357f089c1a5c25793a16843", - "shasum": "" - }, - "require": { - "nette/http": "^3.0", - "nette/utils": "^3.0", - "php": ">=7.1" - }, - "require-dev": { - "nette/tester": "^2.0", - "phpstan/phpstan": "^0.12", - "tracy/tracy": "^2.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause", - "GPL-2.0-only", - "GPL-3.0-only" - ], - "authors": [ - { - "name": "David Grudl", - "homepage": "https://davidgrudl.com" - }, - { - "name": "Nette Community", - "homepage": "https://nette.org/contributors" - } - ], - "description": "Nette Routing: two-ways URL conversion", - "homepage": "https://nette.org", - "keywords": [ - "nette" - ], - "time": "2021-02-06T04:08:30+00:00" - }, - { - "name": "nette/schema", - "version": "v1.2.1", - "source": { - "type": "git", - "url": "https://github.com/nette/schema.git", - "reference": "f5ed39fc96358f922cedfd1e516f0dadf5d2be0d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/nette/schema/zipball/f5ed39fc96358f922cedfd1e516f0dadf5d2be0d", - "reference": "f5ed39fc96358f922cedfd1e516f0dadf5d2be0d", - "shasum": "" - }, - "require": { - "nette/utils": "^3.1.4 || ^4.0", - "php": ">=7.1 <8.1" - }, - "require-dev": { - "nette/tester": "^2.3 || ^2.4", - "phpstan/phpstan-nette": "^0.12", - "tracy/tracy": "^2.7" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.2-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause", - "GPL-2.0-only", - "GPL-3.0-only" - ], - "authors": [ - { - "name": "David Grudl", - "homepage": "https://davidgrudl.com" - }, - { - "name": "Nette Community", - "homepage": "https://nette.org/contributors" - } - ], - "description": "📐 Nette Schema: validating data structures against a given Schema.", - "homepage": "https://nette.org", - "keywords": [ - "config", - "nette" - ], - "time": "2021-03-04T17:51:11+00:00" - }, - { - "name": "nette/utils", - "version": "v3.2.2", - "source": { - "type": "git", - "url": "https://github.com/nette/utils.git", - "reference": "967cfc4f9a1acd5f1058d76715a424c53343c20c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/nette/utils/zipball/967cfc4f9a1acd5f1058d76715a424c53343c20c", - "reference": "967cfc4f9a1acd5f1058d76715a424c53343c20c", - "shasum": "" - }, - "require": { - "php": ">=7.2 <8.1" - }, - "conflict": { - "nette/di": "<3.0.6" - }, - "require-dev": { - "nette/tester": "~2.0", - "phpstan/phpstan": "^0.12", - "tracy/tracy": "^2.3" - }, - "suggest": { - "ext-gd": "to use Image", - "ext-iconv": "to use Strings::webalize(), toAscii(), chr() and reverse()", - "ext-intl": "to use Strings::webalize(), toAscii(), normalize() and compare()", - "ext-json": "to use Nette\\Utils\\Json", - "ext-mbstring": "to use Strings::lower() etc...", - "ext-tokenizer": "to use Nette\\Utils\\Reflection::getUseStatements()", - "ext-xml": "to use Strings::length() etc. when mbstring is not available" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.2-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause", - "GPL-2.0-only", - "GPL-3.0-only" - ], - "authors": [ - { - "name": "David Grudl", - "homepage": "https://davidgrudl.com" - }, - { - "name": "Nette Community", - "homepage": "https://nette.org/contributors" - } - ], - "description": "🛠 Nette Utils: lightweight utilities for string & array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.", - "homepage": "https://nette.org", - "keywords": [ - "array", - "core", - "datetime", - "images", - "json", - "nette", - "paginator", - "password", - "slugify", - "string", - "unicode", - "utf-8", - "utility", - "validation" - ], - "time": "2021-03-03T22:53:25+00:00" - } - ], - "packages-dev": [], - "aliases": [], - "minimum-stability": "stable", - "stability-flags": [], - "prefer-stable": false, - "prefer-lowest": false, - "platform": { - "php": ">= 7.1.0" - }, - "platform-dev": [], - "plugin-api-version": "1.1.0" -}