Update Kirby and Composer dependencies
This commit is contained in:
parent
f5d3ea5e84
commit
ec74d78ba9
382 changed files with 25077 additions and 4955 deletions
|
@ -8,7 +8,7 @@ namespace Kirby\Session;
|
|||
* @package Kirby Session
|
||||
* @author Lukas Bestle <lukas@getkirby.com>
|
||||
* @link https://getkirby.com
|
||||
* @copyright Bastian Allgeier GmbH
|
||||
* @copyright Bastian Allgeier
|
||||
* @license https://opensource.org/licenses/MIT
|
||||
*/
|
||||
class AutoSession
|
||||
|
|
|
@ -13,7 +13,7 @@ use Kirby\Toolkit\Str;
|
|||
* @package Kirby Session
|
||||
* @author Lukas Bestle <lukas@getkirby.com>
|
||||
* @link https://getkirby.com
|
||||
* @copyright Bastian Allgeier GmbH
|
||||
* @copyright Bastian Allgeier
|
||||
* @license https://opensource.org/licenses/MIT
|
||||
*/
|
||||
class FileSessionStore extends SessionStore
|
||||
|
|
|
@ -16,7 +16,7 @@ use Throwable;
|
|||
* @package Kirby Session
|
||||
* @author Lukas Bestle <lukas@getkirby.com>
|
||||
* @link https://getkirby.com
|
||||
* @copyright Bastian Allgeier GmbH
|
||||
* @copyright Bastian Allgeier
|
||||
* @license https://opensource.org/licenses/MIT
|
||||
*/
|
||||
class Session
|
||||
|
@ -560,7 +560,7 @@ class Session
|
|||
$parts = explode('.', $token);
|
||||
|
||||
// only continue if the token has exactly the right amount of parts
|
||||
$expectedParts = ($withoutKey === true)? 2 : 3;
|
||||
$expectedParts = ($withoutKey === true) ? 2 : 3;
|
||||
if (count($parts) !== $expectedParts) {
|
||||
throw new InvalidArgumentException([
|
||||
'data' => ['method' => 'Session::parseToken', 'argument' => '$token'],
|
||||
|
@ -570,7 +570,7 @@ class Session
|
|||
|
||||
$tokenExpiry = (int)$parts[0];
|
||||
$tokenId = $parts[1];
|
||||
$tokenKey = ($withoutKey === true)? null : $parts[2];
|
||||
$tokenKey = ($withoutKey === true) ? null : $parts[2];
|
||||
|
||||
// verify that all parts were parsed correctly using reassembly
|
||||
$expectedToken = $tokenExpiry . '.' . $tokenId;
|
||||
|
|
|
@ -13,7 +13,7 @@ use Kirby\Exception\LogicException;
|
|||
* @package Kirby Session
|
||||
* @author Lukas Bestle <lukas@getkirby.com>
|
||||
* @link https://getkirby.com
|
||||
* @copyright Bastian Allgeier GmbH
|
||||
* @copyright Bastian Allgeier
|
||||
* @license https://opensource.org/licenses/MIT
|
||||
*/
|
||||
class SessionData
|
||||
|
|
|
@ -6,7 +6,7 @@ namespace Kirby\Session;
|
|||
* @package Kirby Session
|
||||
* @author Lukas Bestle <lukas@getkirby.com>
|
||||
* @link https://getkirby.com
|
||||
* @copyright Bastian Allgeier GmbH
|
||||
* @copyright Bastian Allgeier
|
||||
* @license https://opensource.org/licenses/MIT
|
||||
*/
|
||||
abstract class SessionStore
|
||||
|
|
|
@ -16,7 +16,7 @@ use Throwable;
|
|||
* @package Kirby Session
|
||||
* @author Lukas Bestle <lukas@getkirby.com>
|
||||
* @link https://getkirby.com
|
||||
* @copyright Bastian Allgeier GmbH
|
||||
* @copyright Bastian Allgeier
|
||||
* @license https://opensource.org/licenses/MIT
|
||||
*/
|
||||
class Sessions
|
||||
|
@ -190,7 +190,7 @@ class Sessions
|
|||
|
||||
// token was found, try to get the session
|
||||
try {
|
||||
$mode = (is_string($tokenFromHeader))? 'header' : 'cookie';
|
||||
$mode = (is_string($tokenFromHeader)) ? 'header' : 'cookie';
|
||||
return $this->get($token, $mode);
|
||||
} catch (Throwable $e) {
|
||||
return null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue