From 8e89f55945a31acb385a3ac8cb9e3c0bcd9e8c82 Mon Sep 17 00:00:00 2001 From: Andrew Millington Date: Wed, 25 Nov 2020 23:23:25 +0000 Subject: [PATCH] Add docblocks for functions --- examples/composer.lock | 30 +++++++++---------- .../BearerTokenValidator.php | 3 ++ src/Entities/Traits/AccessTokenTrait.php | 3 ++ 3 files changed, 20 insertions(+), 16 deletions(-) diff --git a/examples/composer.lock b/examples/composer.lock index d732e6f0b..f7affe0e9 100644 --- a/examples/composer.lock +++ b/examples/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": "afc9a862edd0bfe93a224a28b1abf75d", + "content-hash": "1f38bc4bb33ddc5527b3097d1118b227", "packages": [ { "name": "nikic/fast-route", @@ -54,24 +54,24 @@ }, { "name": "pimple/pimple", - "version": "v3.3.0", + "version": "v3.3.1", "source": { "type": "git", "url": "https://github.com/silexphp/Pimple.git", - "reference": "e55d12f9d6a0e7f9c85992b73df1267f46279930" + "reference": "21e45061c3429b1e06233475cc0e1f6fc774d5b0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/silexphp/Pimple/zipball/e55d12f9d6a0e7f9c85992b73df1267f46279930", - "reference": "e55d12f9d6a0e7f9c85992b73df1267f46279930", + "url": "https://api.github.com/repos/silexphp/Pimple/zipball/21e45061c3429b1e06233475cc0e1f6fc774d5b0", + "reference": "21e45061c3429b1e06233475cc0e1f6fc774d5b0", "shasum": "" }, "require": { - "php": "^7.2.5", + "php": ">=7.2.5", "psr/container": "^1.0" }, "require-dev": { - "symfony/phpunit-bridge": "^3.4|^4.4|^5.0" + "symfony/phpunit-bridge": "^5.0" }, "type": "library", "extra": { @@ -100,7 +100,7 @@ "container", "dependency injection" ], - "time": "2020-03-03T09:12:48+00:00" + "time": "2020-11-24T20:35:42+00:00" }, { "name": "psr/container", @@ -522,16 +522,16 @@ }, { "name": "lcobucci/jwt", - "version": "dev-master", + "version": "4.0.0", "source": { "type": "git", "url": "https://github.com/lcobucci/jwt.git", - "reference": "144de5ad99590cac0139a688c26bbf42539aeed9" + "reference": "6d8665ccd924dc076a9b65d1ea8abe21d68f6958" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/lcobucci/jwt/zipball/144de5ad99590cac0139a688c26bbf42539aeed9", - "reference": "144de5ad99590cac0139a688c26bbf42539aeed9", + "url": "https://api.github.com/repos/lcobucci/jwt/zipball/6d8665ccd924dc076a9b65d1ea8abe21d68f6958", + "reference": "6d8665ccd924dc076a9b65d1ea8abe21d68f6958", "shasum": "" }, "require": { @@ -580,7 +580,7 @@ "JWS", "jwt" ], - "time": "2020-11-23T04:40:16+00:00" + "time": "2020-11-25T02:06:12+00:00" }, { "name": "league/event", @@ -732,9 +732,7 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": { - "lcobucci/jwt": 20 - }, + "stability-flags": [], "prefer-stable": false, "prefer-lowest": false, "platform": [], diff --git a/src/AuthorizationValidators/BearerTokenValidator.php b/src/AuthorizationValidators/BearerTokenValidator.php index 2469a5cf7..9a279de4f 100644 --- a/src/AuthorizationValidators/BearerTokenValidator.php +++ b/src/AuthorizationValidators/BearerTokenValidator.php @@ -66,6 +66,9 @@ public function setPublicKey(CryptKey $key) $this->initJwtConfiguration(); } + /** + * Initialise the JWT configuration. + */ private function initJwtConfiguration() { $this->jwtConfiguration = Configuration::forSymmetricSigner( diff --git a/src/Entities/Traits/AccessTokenTrait.php b/src/Entities/Traits/AccessTokenTrait.php index bf8069d21..26007188f 100644 --- a/src/Entities/Traits/AccessTokenTrait.php +++ b/src/Entities/Traits/AccessTokenTrait.php @@ -39,6 +39,9 @@ public function setPrivateKey(CryptKey $privateKey) $this->privateKey = $privateKey; } + /** + * Initialise the JWT Configuration. + */ public function initJwtConfiguration() { $privateKeyPassPhrase = $this->privateKey->getPassPhrase();