diff --git a/composer.json b/composer.json index ecfe95d..f609e74 100644 --- a/composer.json +++ b/composer.json @@ -36,7 +36,7 @@ "oscarotero/psr7-middlewares": "^3.20", "php-http/curl-client": "^1.6", "propel/propel": "~2.0@dev", - "slim/csrf": "^0.8.2", + "slim/csrf": "^1.0.0", "slim/slim": "^3.0", "slim/twig-view": "^2.2", "techwilk/twig-linewrap": "^1.0", diff --git a/composer.lock b/composer.lock index d1e3cdc..55b5e81 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "e0b211d308d7cf20e3bf529c4374c471", + "content-hash": "487f058bfc6484daf50ca89b9acf00f0", "packages": [ { "name": "aptoma/twig-markdown", @@ -867,55 +867,6 @@ "abandoned": "middlewares/*", "time": "2017-09-28T21:21:24+00:00" }, - { - "name": "paragonie/random_compat", - "version": "v2.0.17", - "source": { - "type": "git", - "url": "https://github.com/paragonie/random_compat.git", - "reference": "29af24f25bab834fcbb38ad2a69fa93b867e070d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/paragonie/random_compat/zipball/29af24f25bab834fcbb38ad2a69fa93b867e070d", - "reference": "29af24f25bab834fcbb38ad2a69fa93b867e070d", - "shasum": "" - }, - "require": { - "php": ">=5.2.0" - }, - "require-dev": { - "phpunit/phpunit": "4.*|5.*" - }, - "suggest": { - "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes." - }, - "type": "library", - "autoload": { - "files": [ - "lib/random.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Paragon Initiative Enterprises", - "email": "security@paragonie.com", - "homepage": "https://paragonie.com" - } - ], - "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7", - "keywords": [ - "csprng", - "polyfill", - "pseudorandom", - "random" - ], - "time": "2018-07-04T16:31:37+00:00" - }, { "name": "php-http/client-common", "version": "1.10.0", @@ -1698,6 +1649,112 @@ ], "time": "2016-08-06T14:39:51+00:00" }, + { + "name": "psr/http-server-handler", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-server-handler.git", + "reference": "aff2f80e33b7f026ec96bb42f63242dc50ffcae7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-server-handler/zipball/aff2f80e33b7f026ec96bb42f63242dc50ffcae7", + "reference": "aff2f80e33b7f026ec96bb42f63242dc50ffcae7", + "shasum": "" + }, + "require": { + "php": ">=7.0", + "psr/http-message": "^1.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Server\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP server-side request handler", + "keywords": [ + "handler", + "http", + "http-interop", + "psr", + "psr-15", + "psr-7", + "request", + "response", + "server" + ], + "time": "2018-10-30T16:46:14+00:00" + }, + { + "name": "psr/http-server-middleware", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-server-middleware.git", + "reference": "2296f45510945530b9dceb8bcedb5cb84d40c5f5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-server-middleware/zipball/2296f45510945530b9dceb8bcedb5cb84d40c5f5", + "reference": "2296f45510945530b9dceb8bcedb5cb84d40c5f5", + "shasum": "" + }, + "require": { + "php": ">=7.0", + "psr/http-message": "^1.0", + "psr/http-server-handler": "^1.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Server\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP server-side middleware", + "keywords": [ + "http", + "http-interop", + "middleware", + "psr", + "psr-15", + "psr-7", + "request", + "response" + ], + "time": "2018-10-30T17:12:04+00:00" + }, { "name": "psr/log", "version": "1.1.2", @@ -1787,26 +1844,29 @@ }, { "name": "slim/csrf", - "version": "0.8.3", + "version": "1.0.0", "source": { "type": "git", "url": "https://github.com/slimphp/Slim-Csrf.git", - "reference": "5f2bcf5d89adf86dc0455a32bea84d912ab466a7" + "reference": "827c915a4cc93f1749f5a2556c33f3c86917a9ea" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/slimphp/Slim-Csrf/zipball/5f2bcf5d89adf86dc0455a32bea84d912ab466a7", - "reference": "5f2bcf5d89adf86dc0455a32bea84d912ab466a7", + "url": "https://api.github.com/repos/slimphp/Slim-Csrf/zipball/827c915a4cc93f1749f5a2556c33f3c86917a9ea", + "reference": "827c915a4cc93f1749f5a2556c33f3c86917a9ea", "shasum": "" }, "require": { - "paragonie/random_compat": "^1.1|^2.0|^9.99", - "php": ">=5.5.0", - "psr/http-message": "^1.0" + "php": "^7.1", + "psr/http-factory": "^1.0", + "psr/http-message": "^1.0", + "psr/http-server-handler": "^1.0", + "psr/http-server-middleware": "^1.0" }, "require-dev": { - "phpunit/phpunit": "^4.0", - "slim/slim": "~3.0" + "phpspec/prophecy": "^1.8", + "phpunit/phpunit": "^7.5", + "squizlabs/php_codesniffer": "^3.4.2" }, "type": "library", "autoload": { @@ -1825,7 +1885,7 @@ "homepage": "http://joshlockhart.com" } ], - "description": "Slim Framework 3 CSRF protection middleware", + "description": "Slim Framework 4 CSRF protection PSR-15 middleware", "homepage": "http://slimframework.com", "keywords": [ "csrf", @@ -1833,7 +1893,7 @@ "middleware", "slim" ], - "time": "2018-08-22T16:12:18+00:00" + "time": "2019-09-13T14:32:01+00:00" }, { "name": "slim/slim",