-
-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #253 from Tmeister/namespace-wrapper
Fix conflicts with other plugins using the same JWT library adding a wrapper namespace to the JWT class. Fix #247
- Loading branch information
Showing
5 changed files
with
32 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
/** | ||
* Define a `wrapper namespace` to load the Firebase's JWT & Key classes | ||
* and prevent conflicts with other plugins using the same library | ||
* with different versions. | ||
* | ||
* @link https://enriquechavez.co | ||
* @since 1.3.2 | ||
* @author marioshtika https://github.com/marioshtika | ||
*/ | ||
|
||
namespace Tmeister\Firebase\JWT; | ||
|
||
class JWT extends \Firebase\JWT\JWT { | ||
} | ||
|
||
class Key extends \Firebase\JWT\Key { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters