From da83008bfc1d4398cb51ca0faab4878868d142b1 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Wed, 3 Jun 2015 10:17:59 +0200 Subject: [PATCH] Upgrade to stable cookie dependency --- framework/core/composer.json | 2 +- framework/core/composer.lock | 18 ++++++++---------- .../src/Forum/Actions/WritesRememberCookie.php | 6 +++--- 3 files changed, 12 insertions(+), 14 deletions(-) diff --git a/framework/core/composer.json b/framework/core/composer.json index 268378d99..58f32be9b 100644 --- a/framework/core/composer.json +++ b/framework/core/composer.json @@ -17,7 +17,7 @@ "intervention/image": "dev-master", "psr/http-message": "^1.0@dev", "nikic/fast-route": "dev-master", - "dflydev/fig-cookies": "0.0.*@dev" + "dflydev/fig-cookies": "^1.0" }, "require-dev": { "fzaninotto/faker": "1.4.0", diff --git a/framework/core/composer.lock b/framework/core/composer.lock index 8942ca47e..f664636e7 100644 --- a/framework/core/composer.lock +++ b/framework/core/composer.lock @@ -1,10 +1,10 @@ { "_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#composer-lock-the-lock-file", + "Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "b4919da43ec6d4286a38b1b95b32ae31", + "hash": "7565e9df531dc59fa898d68cf3d7d69e", "packages": [ { "name": "danielstjules/stringy", @@ -68,12 +68,12 @@ "source": { "type": "git", "url": "https://github.com/dflydev/dflydev-fig-cookies.git", - "reference": "adc6bab48d09585f67338e0d00695bf64a9ee2b8" + "reference": "56133681a2d0055f110c1fa51b88c129bc6ce1c9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/dflydev/dflydev-fig-cookies/zipball/adc6bab48d09585f67338e0d00695bf64a9ee2b8", - "reference": "adc6bab48d09585f67338e0d00695bf64a9ee2b8", + "url": "https://api.github.com/repos/dflydev/dflydev-fig-cookies/zipball/56133681a2d0055f110c1fa51b88c129bc6ce1c9", + "reference": "56133681a2d0055f110c1fa51b88c129bc6ce1c9", "shasum": "" }, "require": { @@ -88,7 +88,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "0.0.x-dev" + "dev-master": "1.0.x-dev" } }, "autoload": { @@ -112,7 +112,7 @@ "psr-7", "psr7" ], - "time": "2015-06-02 19:02:56" + "time": "2015-06-03 01:35:56" }, { "name": "doctrine/inflector", @@ -2797,11 +2797,9 @@ "oyejorge/less.php": 20, "intervention/image": 20, "psr/http-message": 20, - "nikic/fast-route": 20, - "dflydev/fig-cookies": 20 + "nikic/fast-route": 20 }, "prefer-stable": false, - "prefer-lowest": false, "platform": { "php": ">=5.4.0" }, diff --git a/framework/core/src/Forum/Actions/WritesRememberCookie.php b/framework/core/src/Forum/Actions/WritesRememberCookie.php index b1b194e0b..6d8753fcc 100644 --- a/framework/core/src/Forum/Actions/WritesRememberCookie.php +++ b/framework/core/src/Forum/Actions/WritesRememberCookie.php @@ -1,6 +1,6 @@ withMaxAge(14 * 24 * 60 * 60) ); @@ -18,7 +18,7 @@ trait WritesRememberCookie protected function withForgetCookie(ResponseInterface $response) { // Delete the cookie by setting it to an expiration date in the past - return FigCookies::setResponseSetCookie( + return FigResponseCookies::set( $response, SetCookie::create('flarum_remember')->withMaxAge(-2628000) );