Skip to content

Commit

Permalink
Add docblocks for functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Sephster committed Nov 25, 2020
1 parent 682dc07 commit 8e89f55
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 16 deletions.
30 changes: 14 additions & 16 deletions examples/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/AuthorizationValidators/BearerTokenValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ public function setPublicKey(CryptKey $key)
$this->initJwtConfiguration();
}

/**
* Initialise the JWT configuration.
*/
private function initJwtConfiguration()
{
$this->jwtConfiguration = Configuration::forSymmetricSigner(
Expand Down
3 changes: 3 additions & 0 deletions src/Entities/Traits/AccessTokenTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ public function setPrivateKey(CryptKey $privateKey)
$this->privateKey = $privateKey;
}

/**
* Initialise the JWT Configuration.
*/
public function initJwtConfiguration()
{
$privateKeyPassPhrase = $this->privateKey->getPassPhrase();
Expand Down

0 comments on commit 8e89f55

Please sign in to comment.