File manager - Edit - /home/premiey/www/wp-content/plugins/ameliabooking/vendor/php-http/message/src/Authentication/Bearer.php
Back
<?php namespace AmeliaHttp\Message\Authentication; use AmeliaHttp\Message\Authentication; use AmeliaPsr\Http\Message\RequestInterface; /** * Authenticate a PSR-7 Request using a token. * * @author Márk Sági-Kazár <mark.sagikazar@gmail.com> */ final class Bearer implements Authentication { /** * @var string */ private $token; /** * @param string $token */ public function __construct($token) { $this->token = $token; } /** * {@inheritdoc} */ public function authenticate(RequestInterface $request) { $header = sprintf('Bearer %s', $this->token); return $request->withHeader('Authorization', $header); } }
| ver. 1.4 |
Github
|
.
| PHP 5.4.45 | Generation time: 0 |
proxy
|
phpinfo
|
Settings