- The PCRE flavour of RegEx is used here.
- Append the
i
modifier to the end of the regex to make any pattern case-insensitive.
| Purpose | Description | RegEx | Example |
<?php | |
/** | |
* Make asynchronous requests to different resources as fast as possible and process the results as they are ready. | |
*/ | |
class Requests | |
{ | |
public $handle; | |
public function __construct() | |
{ |
fos_user: | |
db_driver: orm | |
firewall_name: main | |
user_class: App\Entity\User | |
service: | |
user_manager: app.user_manager | |
hwi_oauth: | |
firewall_name: main | |
fosub: |
/** | |
* Example to refresh tokens using https://github.com/auth0/node-jsonwebtoken | |
* It was requested to be introduced at as part of the jsonwebtoken library, | |
* since we feel it does not add too much value but it will add code to mantain | |
* we won't include it. | |
* | |
* I create this gist just to help those who want to auto-refresh JWTs. | |
*/ | |
const jwt = require('jsonwebtoken'); |