public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
PHP
49%
JavaScript
35%
HTML
9%
CSS
4%
Shell
2%
Python
1%
Lua
0%
Perl
0%
Ruby
0%
SCSS
0%
Create file
Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git
Trace
data/web/inc/lib/vendor/guzzlehttp/promises/README.md
Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.
README.md
on main
Author
Date
Commit
Line
Code
FreddleSpl0it
over 3 years ago
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 1
# Guzzle Promises
# Guzzle Promises
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 2
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 3
[Promises/A+](https://promisesaplus.com/) implementation that handles promise
[Promises/A+](https://promisesaplus.com/) implementation that handles promise
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 4
chaining and resolution iteratively, allowing for "infinite" promise chaining
chaining and resolution iteratively, allowing for "infinite" promise chaining
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 5
while keeping the stack size constant. Read [this blog post](https://blog.domenic.me/youre-missing-the-point-of-promises/)
while keeping the stack size constant. Read [this blog post](https://blog.domenic.me/youre-missing-the-point-of-promises/)
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 6
for a general introduction to promises.
for a general introduction to promises.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 7
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 8
- [Features](#features)
- [Features](#features)
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 9
- [Quick start](#quick-start)
- [Quick start](#quick-start)
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 10
- [Synchronous wait](#synchronous-wait)
- [Synchronous wait](#synchronous-wait)
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 11
- [Cancellation](#cancellation)
- [Cancellation](#cancellation)
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 12
- [API](#api)
- [API](#api)
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 13
- [Promise](#promise)
- [Promise](#promise)
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 14
- [FulfilledPromise](#fulfilledpromise)
- [FulfilledPromise](#fulfilledpromise)
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 15
- [RejectedPromise](#rejectedpromise)
- [RejectedPromise](#rejectedpromise)
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 16
- [Promise interop](#promise-interop)
- [Promise interop](#promise-interop)
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 17
- [Implementation notes](#implementation-notes)
- [Implementation notes](#implementation-notes)
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 18
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 19
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 20
## Features
## Features
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 21
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 22
- [Promises/A+](https://promisesaplus.com/) implementation.
- [Promises/A+](https://promisesaplus.com/) implementation.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 23
- Promise resolution and chaining is handled iteratively, allowing for
- Promise resolution and chaining is handled iteratively, allowing for
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 24
"infinite" promise chaining.
"infinite" promise chaining.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 25
- Promises have a synchronous `wait` method.
- Promises have a synchronous `wait` method.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 26
- Promises can be cancelled.
- Promises can be cancelled.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 27
- Works with any object that has a `then` function.
- Works with any object that has a `then` function.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 28
- C# style async/await coroutine promises using
- C# style async/await coroutine promises using
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 29
`GuzzleHttp\Promise\Coroutine::of()`.
`GuzzleHttp\Promise\Coroutine::of()`.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 30
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 31
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 32
## Quick Start
## Quick Start
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 33
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 34
A *promise* represents the eventual result of an asynchronous operation. The
A *promise* represents the eventual result of an asynchronous operation. The
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 35
primary way of interacting with a promise is through its `then` method, which
primary way of interacting with a promise is through its `then` method, which
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 36
registers callbacks to receive either a promise's eventual value or the reason
registers callbacks to receive either a promise's eventual value or the reason
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 37
why the promise cannot be fulfilled.
why the promise cannot be fulfilled.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 38
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 39
### Callbacks
### Callbacks
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 40
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 41
Callbacks are registered with the `then` method by providing an optional
Callbacks are registered with the `then` method by providing an optional
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 42
`$onFulfilled` followed by an optional `$onRejected` function.
`$onFulfilled` followed by an optional `$onRejected` function.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 43
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 44
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 45
```php
```php
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 46
use GuzzleHttp\Promise\Promise;
use GuzzleHttp\Promise\Promise;
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 47
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 48
$promise = new Promise();
$promise = new Promise();
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 49
$promise->then(
$promise->then(
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 50
// $onFulfilled
// $onFulfilled
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 51
function ($value) {
function ($value) {
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 52
echo 'The promise was fulfilled.';
echo 'The promise was fulfilled.';
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 53
},
},
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 54
// $onRejected
// $onRejected
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 55
function ($reason) {
function ($reason) {
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 56
echo 'The promise was rejected.';
echo 'The promise was rejected.';
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 57
}
}
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 58
);
);
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 59
```
```
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 60
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 61
*Resolving* a promise means that you either fulfill a promise with a *value* or
*Resolving* a promise means that you either fulfill a promise with a *value* or
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 62
reject a promise with a *reason*. Resolving a promise triggers callbacks
reject a promise with a *reason*. Resolving a promise triggers callbacks
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 63
registered with the promise's `then` method. These callbacks are triggered
registered with the promise's `then` method. These callbacks are triggered
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 64
only once and in the order in which they were added.
only once and in the order in which they were added.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 65
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 66
### Resolving a Promise
### Resolving a Promise
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 67
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 68
Promises are fulfilled using the `resolve($value)` method. Resolving a promise
Promises are fulfilled using the `resolve($value)` method. Resolving a promise
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 69
with any value other than a `GuzzleHttp\Promise\RejectedPromise` will trigger
with any value other than a `GuzzleHttp\Promise\RejectedPromise` will trigger
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 70
all of the onFulfilled callbacks (resolving a promise with a rejected promise
all of the onFulfilled callbacks (resolving a promise with a rejected promise
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 71
will reject the promise and trigger the `$onRejected` callbacks).
will reject the promise and trigger the `$onRejected` callbacks).
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 72
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 73
```php
```php
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 74
use GuzzleHttp\Promise\Promise;
use GuzzleHttp\Promise\Promise;
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 75
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 76
$promise = new Promise();
$promise = new Promise();
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 77
$promise
$promise
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 78
->then(function ($value) {
->then(function ($value) {
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 79
// Return a value and don't break the chain
// Return a value and don't break the chain
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 80
return "Hello, " . $value;
return "Hello, " . $value;
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 81
})
})
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 82
// This then is executed after the first then and receives the value
// This then is executed after the first then and receives the value
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 83
// returned from the first then.
// returned from the first then.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 84
->then(function ($value) {
->then(function ($value) {
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 85
echo $value;
echo $value;
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 86
});
});
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 87
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 88
// Resolving the promise triggers the $onFulfilled callbacks and outputs
// Resolving the promise triggers the $onFulfilled callbacks and outputs
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 89
// "Hello, reader."
// "Hello, reader."
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 90
$promise->resolve('reader.');
$promise->resolve('reader.');
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 91
```
```
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 92
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 93
### Promise Forwarding
### Promise Forwarding
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 94
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 95
Promises can be chained one after the other. Each then in the chain is a new
Promises can be chained one after the other. Each then in the chain is a new
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 96
promise. The return value of a promise is what's forwarded to the next
promise. The return value of a promise is what's forwarded to the next
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 97
promise in the chain. Returning a promise in a `then` callback will cause the
promise in the chain. Returning a promise in a `then` callback will cause the
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 98
subsequent promises in the chain to only be fulfilled when the returned promise
subsequent promises in the chain to only be fulfilled when the returned promise
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 99
has been fulfilled. The next promise in the chain will be invoked with the
has been fulfilled. The next promise in the chain will be invoked with the
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 100
resolved value of the promise.
resolved value of the promise.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 101
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 102
```php
```php
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 103
use GuzzleHttp\Promise\Promise;
use GuzzleHttp\Promise\Promise;
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 104
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 105
$promise = new Promise();
$promise = new Promise();
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 106
$nextPromise = new Promise();
$nextPromise = new Promise();
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 107
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 108
$promise
$promise
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 109
->then(function ($value) use ($nextPromise) {
->then(function ($value) use ($nextPromise) {
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 110
echo $value;
echo $value;
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 111
return $nextPromise;
return $nextPromise;
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 112
})
})
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 113
->then(function ($value) {
->then(function ($value) {
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 114
echo $value;
echo $value;
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 115
});
});
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 116
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 117
// Triggers the first callback and outputs "A"
// Triggers the first callback and outputs "A"
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 118
$promise->resolve('A');
$promise->resolve('A');
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 119
// Triggers the second callback and outputs "B"
// Triggers the second callback and outputs "B"
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 120
$nextPromise->resolve('B');
$nextPromise->resolve('B');
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 121
```
```
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 122
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 123
### Promise Rejection
### Promise Rejection
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 124
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 125
When a promise is rejected, the `$onRejected` callbacks are invoked with the
When a promise is rejected, the `$onRejected` callbacks are invoked with the
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 126
rejection reason.
rejection reason.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 127
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 128
```php
```php
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 129
use GuzzleHttp\Promise\Promise;
use GuzzleHttp\Promise\Promise;
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 130
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 131
$promise = new Promise();
$promise = new Promise();
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 132
$promise->then(null, function ($reason) {
$promise->then(null, function ($reason) {
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 133
echo $reason;
echo $reason;
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 134
});
});
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 135
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 136
$promise->reject('Error!');
$promise->reject('Error!');
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 137
// Outputs "Error!"
// Outputs "Error!"
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 138
```
```
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 139
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 140
### Rejection Forwarding
### Rejection Forwarding
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 141
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 142
If an exception is thrown in an `$onRejected` callback, subsequent
If an exception is thrown in an `$onRejected` callback, subsequent
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 143
`$onRejected` callbacks are invoked with the thrown exception as the reason.
`$onRejected` callbacks are invoked with the thrown exception as the reason.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 144
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 145
```php
```php
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 146
use GuzzleHttp\Promise\Promise;
use GuzzleHttp\Promise\Promise;
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 147
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 148
$promise = new Promise();
$promise = new Promise();
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 149
$promise->then(null, function ($reason) {
$promise->then(null, function ($reason) {
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 150
throw new Exception($reason);
throw new Exception($reason);
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 151
})->then(null, function ($reason) {
})->then(null, function ($reason) {
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 152
assert($reason->getMessage() === 'Error!');
assert($reason->getMessage() === 'Error!');
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 153
});
});
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 154
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 155
$promise->reject('Error!');
$promise->reject('Error!');
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 156
```
```
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 157
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 158
You can also forward a rejection down the promise chain by returning a
You can also forward a rejection down the promise chain by returning a
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 159
`GuzzleHttp\Promise\RejectedPromise` in either an `$onFulfilled` or
`GuzzleHttp\Promise\RejectedPromise` in either an `$onFulfilled` or
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 160
`$onRejected` callback.
`$onRejected` callback.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 161
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 162
```php
```php
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 163
use GuzzleHttp\Promise\Promise;
use GuzzleHttp\Promise\Promise;
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 164
use GuzzleHttp\Promise\RejectedPromise;
use GuzzleHttp\Promise\RejectedPromise;
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 165
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 166
$promise = new Promise();
$promise = new Promise();
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 167
$promise->then(null, function ($reason) {
$promise->then(null, function ($reason) {
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 168
return new RejectedPromise($reason);
return new RejectedPromise($reason);
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 169
})->then(null, function ($reason) {
})->then(null, function ($reason) {
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 170
assert($reason === 'Error!');
assert($reason === 'Error!');
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 171
});
});
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 172
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 173
$promise->reject('Error!');
$promise->reject('Error!');
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 174
```
```
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 175
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 176
If an exception is not thrown in a `$onRejected` callback and the callback
If an exception is not thrown in a `$onRejected` callback and the callback
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 177
does not return a rejected promise, downstream `$onFulfilled` callbacks are
does not return a rejected promise, downstream `$onFulfilled` callbacks are
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 178
invoked using the value returned from the `$onRejected` callback.
invoked using the value returned from the `$onRejected` callback.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 179
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 180
```php
```php
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 181
use GuzzleHttp\Promise\Promise;
use GuzzleHttp\Promise\Promise;
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 182
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 183
$promise = new Promise();
$promise = new Promise();
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 184
$promise
$promise
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 185
->then(null, function ($reason) {
->then(null, function ($reason) {
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 186
return "It's ok";
return "It's ok";
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 187
})
})
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 188
->then(function ($value) {
->then(function ($value) {
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 189
assert($value === "It's ok");
assert($value === "It's ok");
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 190
});
});
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 191
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 192
$promise->reject('Error!');
$promise->reject('Error!');
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 193
```
```
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 194
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 195
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 196
## Synchronous Wait
## Synchronous Wait
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 197
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 198
You can synchronously force promises to complete using a promise's `wait`
You can synchronously force promises to complete using a promise's `wait`
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 199
method. When creating a promise, you can provide a wait function that is used
method. When creating a promise, you can provide a wait function that is used
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 200
to synchronously force a promise to complete. When a wait function is invoked
to synchronously force a promise to complete. When a wait function is invoked
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 201
it is expected to deliver a value to the promise or reject the promise. If the
it is expected to deliver a value to the promise or reject the promise. If the
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 202
wait function does not deliver a value, then an exception is thrown. The wait
wait function does not deliver a value, then an exception is thrown. The wait
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 203
function provided to a promise constructor is invoked when the `wait` function
function provided to a promise constructor is invoked when the `wait` function
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 204
of the promise is called.
of the promise is called.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 205
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 206
```php
```php
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 207
$promise = new Promise(function () use (&$promise) {
$promise = new Promise(function () use (&$promise) {
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 208
$promise->resolve('foo');
$promise->resolve('foo');
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 209
});
});
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 210
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 211
// Calling wait will return the value of the promise.
// Calling wait will return the value of the promise.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 212
echo $promise->wait(); // outputs "foo"
echo $promise->wait(); // outputs "foo"
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 213
```
```
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 214
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 215
If an exception is encountered while invoking the wait function of a promise,
If an exception is encountered while invoking the wait function of a promise,
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 216
the promise is rejected with the exception and the exception is thrown.
the promise is rejected with the exception and the exception is thrown.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 217
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 218
```php
```php
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 219
$promise = new Promise(function () use (&$promise) {
$promise = new Promise(function () use (&$promise) {
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 220
throw new Exception('foo');
throw new Exception('foo');
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 221
});
});
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 222
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 223
$promise->wait(); // throws the exception.
$promise->wait(); // throws the exception.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 224
```
```
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 225
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 226
Calling `wait` on a promise that has been fulfilled will not trigger the wait
Calling `wait` on a promise that has been fulfilled will not trigger the wait
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 227
function. It will simply return the previously resolved value.
function. It will simply return the previously resolved value.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 228
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 229
```php
```php
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 230
$promise = new Promise(function () { die('this is not called!'); });
$promise = new Promise(function () { die('this is not called!'); });
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 231
$promise->resolve('foo');
$promise->resolve('foo');
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 232
echo $promise->wait(); // outputs "foo"
echo $promise->wait(); // outputs "foo"
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 233
```
```
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 234
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 235
Calling `wait` on a promise that has been rejected will throw an exception. If
Calling `wait` on a promise that has been rejected will throw an exception. If
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 236
the rejection reason is an instance of `\Exception` the reason is thrown.
the rejection reason is an instance of `\Exception` the reason is thrown.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 237
Otherwise, a `GuzzleHttp\Promise\RejectionException` is thrown and the reason
Otherwise, a `GuzzleHttp\Promise\RejectionException` is thrown and the reason
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 238
can be obtained by calling the `getReason` method of the exception.
can be obtained by calling the `getReason` method of the exception.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 239
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 240
```php
```php
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 241
$promise = new Promise();
$promise = new Promise();
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 242
$promise->reject('foo');
$promise->reject('foo');
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 243
$promise->wait();
$promise->wait();
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 244
```
```
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 245
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 246
> PHP Fatal error: Uncaught exception 'GuzzleHttp\Promise\RejectionException' with message 'The promise was rejected with value: foo'
> PHP Fatal error: Uncaught exception 'GuzzleHttp\Promise\RejectionException' with message 'The promise was rejected with value: foo'
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 247
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 248
### Unwrapping a Promise
### Unwrapping a Promise
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 249
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 250
When synchronously waiting on a promise, you are joining the state of the
When synchronously waiting on a promise, you are joining the state of the
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 251
promise into the current state of execution (i.e., return the value of the
promise into the current state of execution (i.e., return the value of the
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 252
promise if it was fulfilled or throw an exception if it was rejected). This is
promise if it was fulfilled or throw an exception if it was rejected). This is
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 253
called "unwrapping" the promise. Waiting on a promise will by default unwrap
called "unwrapping" the promise. Waiting on a promise will by default unwrap
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 254
the promise state.
the promise state.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 255
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 256
You can force a promise to resolve and *not* unwrap the state of the promise
You can force a promise to resolve and *not* unwrap the state of the promise
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 257
by passing `false` to the first argument of the `wait` function:
by passing `false` to the first argument of the `wait` function:
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 258
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 259
```php
```php
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 260
$promise = new Promise();
$promise = new Promise();
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 261
$promise->reject('foo');
$promise->reject('foo');
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 262
// This will not throw an exception. It simply ensures the promise has
// This will not throw an exception. It simply ensures the promise has
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 263
// been resolved.
// been resolved.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 264
$promise->wait(false);
$promise->wait(false);
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 265
```
```
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 266
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 267
When unwrapping a promise, the resolved value of the promise will be waited
When unwrapping a promise, the resolved value of the promise will be waited
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 268
upon until the unwrapped value is not a promise. This means that if you resolve
upon until the unwrapped value is not a promise. This means that if you resolve
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 269
promise A with a promise B and unwrap promise A, the value returned by the
promise A with a promise B and unwrap promise A, the value returned by the
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 270
wait function will be the value delivered to promise B.
wait function will be the value delivered to promise B.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 271
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 272
**Note**: when you do not unwrap the promise, no value is returned.
**Note**: when you do not unwrap the promise, no value is returned.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 273
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 274
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 275
## Cancellation
## Cancellation
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 276
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 277
You can cancel a promise that has not yet been fulfilled using the `cancel()`
You can cancel a promise that has not yet been fulfilled using the `cancel()`
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 278
method of a promise. When creating a promise you can provide an optional
method of a promise. When creating a promise you can provide an optional
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 279
cancel function that when invoked cancels the action of computing a resolution
cancel function that when invoked cancels the action of computing a resolution
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 280
of the promise.
of the promise.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 281
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 282
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 283
## API
## API
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 284
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 285
### Promise
### Promise
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 286
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 287
When creating a promise object, you can provide an optional `$waitFn` and
When creating a promise object, you can provide an optional `$waitFn` and
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 288
`$cancelFn`. `$waitFn` is a function that is invoked with no arguments and is
`$cancelFn`. `$waitFn` is a function that is invoked with no arguments and is
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 289
expected to resolve the promise. `$cancelFn` is a function with no arguments
expected to resolve the promise. `$cancelFn` is a function with no arguments
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 290
that is expected to cancel the computation of a promise. It is invoked when the
that is expected to cancel the computation of a promise. It is invoked when the
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 291
`cancel()` method of a promise is called.
`cancel()` method of a promise is called.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 292
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 293
```php
```php
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 294
use GuzzleHttp\Promise\Promise;
use GuzzleHttp\Promise\Promise;
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 295
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 296
$promise = new Promise(
$promise = new Promise(
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 297
function () use (&$promise) {
function () use (&$promise) {
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 298
$promise->resolve('waited');
$promise->resolve('waited');
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 299
},
},
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 300
function () {
function () {
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 301
// do something that will cancel the promise computation (e.g., close
// do something that will cancel the promise computation (e.g., close
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 302
// a socket, cancel a database query, etc...)
// a socket, cancel a database query, etc...)
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 303
}
}
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 304
);
);
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 305
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 306
assert('waited' === $promise->wait());
assert('waited' === $promise->wait());
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 307
```
```
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 308
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 309
A promise has the following methods:
A promise has the following methods:
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 310
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 311
- `then(callable $onFulfilled, callable $onRejected) : PromiseInterface`
- `then(callable $onFulfilled, callable $onRejected) : PromiseInterface`
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 312
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 313
Appends fulfillment and rejection handlers to the promise, and returns a new promise resolving to the return value of the called handler.
Appends fulfillment and rejection handlers to the promise, and returns a new promise resolving to the return value of the called handler.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 314
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 315
- `otherwise(callable $onRejected) : PromiseInterface`
- `otherwise(callable $onRejected) : PromiseInterface`
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 316
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 317
Appends a rejection handler callback to the promise, and returns a new promise resolving to the return value of the callback if it is called, or to its original fulfillment value if the promise is instead fulfilled.
Appends a rejection handler callback to the promise, and returns a new promise resolving to the return value of the callback if it is called, or to its original fulfillment value if the promise is instead fulfilled.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 318
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 319
- `wait($unwrap = true) : mixed`
- `wait($unwrap = true) : mixed`
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 320
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 321
Synchronously waits on the promise to complete.
Synchronously waits on the promise to complete.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 322
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 323
`$unwrap` controls whether or not the value of the promise is returned for a
`$unwrap` controls whether or not the value of the promise is returned for a
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 324
fulfilled promise or if an exception is thrown if the promise is rejected.
fulfilled promise or if an exception is thrown if the promise is rejected.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 325
This is set to `true` by default.
This is set to `true` by default.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 326
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 327
- `cancel()`
- `cancel()`
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 328
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 329
Attempts to cancel the promise if possible. The promise being cancelled and
Attempts to cancel the promise if possible. The promise being cancelled and
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 330
the parent most ancestor that has not yet been resolved will also be
the parent most ancestor that has not yet been resolved will also be
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 331
cancelled. Any promises waiting on the cancelled promise to resolve will also
cancelled. Any promises waiting on the cancelled promise to resolve will also
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 332
be cancelled.
be cancelled.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 333
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 334
- `getState() : string`
- `getState() : string`
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 335
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 336
Returns the state of the promise. One of `pending`, `fulfilled`, or
Returns the state of the promise. One of `pending`, `fulfilled`, or
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 337
`rejected`.
`rejected`.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 338
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 339
- `resolve($value)`
- `resolve($value)`
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 340
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 341
Fulfills the promise with the given `$value`.
Fulfills the promise with the given `$value`.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 342
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 343
- `reject($reason)`
- `reject($reason)`
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 344
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 345
Rejects the promise with the given `$reason`.
Rejects the promise with the given `$reason`.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 346
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 347
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 348
### FulfilledPromise
### FulfilledPromise
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 349
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 350
A fulfilled promise can be created to represent a promise that has been
A fulfilled promise can be created to represent a promise that has been
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 351
fulfilled.
fulfilled.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 352
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 353
```php
```php
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 354
use GuzzleHttp\Promise\FulfilledPromise;
use GuzzleHttp\Promise\FulfilledPromise;
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 355
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 356
$promise = new FulfilledPromise('value');
$promise = new FulfilledPromise('value');
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 357
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 358
// Fulfilled callbacks are immediately invoked.
// Fulfilled callbacks are immediately invoked.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 359
$promise->then(function ($value) {
$promise->then(function ($value) {
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 360
echo $value;
echo $value;
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 361
});
});
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 362
```
```
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 363
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 364
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 365
### RejectedPromise
### RejectedPromise
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 366
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 367
A rejected promise can be created to represent a promise that has been
A rejected promise can be created to represent a promise that has been
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 368
rejected.
rejected.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 369
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 370
```php
```php
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 371
use GuzzleHttp\Promise\RejectedPromise;
use GuzzleHttp\Promise\RejectedPromise;
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 372
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 373
$promise = new RejectedPromise('Error');
$promise = new RejectedPromise('Error');
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 374
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 375
// Rejected callbacks are immediately invoked.
// Rejected callbacks are immediately invoked.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 376
$promise->then(null, function ($reason) {
$promise->then(null, function ($reason) {
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 377
echo $reason;
echo $reason;
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 378
});
});
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 379
```
```
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 380
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 381
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 382
## Promise Interoperability
## Promise Interoperability
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 383
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 384
This library works with foreign promises that have a `then` method. This means
This library works with foreign promises that have a `then` method. This means
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 385
you can use Guzzle promises with [React promises](https://github.com/reactphp/promise)
you can use Guzzle promises with [React promises](https://github.com/reactphp/promise)
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 386
for example. When a foreign promise is returned inside of a then method
for example. When a foreign promise is returned inside of a then method
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 387
callback, promise resolution will occur recursively.
callback, promise resolution will occur recursively.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 388
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 389
```php
```php
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 390
// Create a React promise
// Create a React promise
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 391
$deferred = new React\Promise\Deferred();
$deferred = new React\Promise\Deferred();
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 392
$reactPromise = $deferred->promise();
$reactPromise = $deferred->promise();
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 393
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 394
// Create a Guzzle promise that is fulfilled with a React promise.
// Create a Guzzle promise that is fulfilled with a React promise.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 395
$guzzlePromise = new GuzzleHttp\Promise\Promise();
$guzzlePromise = new GuzzleHttp\Promise\Promise();
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 396
$guzzlePromise->then(function ($value) use ($reactPromise) {
$guzzlePromise->then(function ($value) use ($reactPromise) {
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 397
// Do something something with the value...
// Do something something with the value...
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 398
// Return the React promise
// Return the React promise
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 399
return $reactPromise;
return $reactPromise;
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 400
});
});
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 401
```
```
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 402
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 403
Please note that wait and cancel chaining is no longer possible when forwarding
Please note that wait and cancel chaining is no longer possible when forwarding
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 404
a foreign promise. You will need to wrap a third-party promise with a Guzzle
a foreign promise. You will need to wrap a third-party promise with a Guzzle
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 405
promise in order to utilize wait and cancel functions with foreign promises.
promise in order to utilize wait and cancel functions with foreign promises.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 406
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 407
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 408
### Event Loop Integration
### Event Loop Integration
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 409
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 410
In order to keep the stack size constant, Guzzle promises are resolved
In order to keep the stack size constant, Guzzle promises are resolved
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 411
asynchronously using a task queue. When waiting on promises synchronously, the
asynchronously using a task queue. When waiting on promises synchronously, the
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 412
task queue will be automatically run to ensure that the blocking promise and
task queue will be automatically run to ensure that the blocking promise and
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 413
any forwarded promises are resolved. When using promises asynchronously in an
any forwarded promises are resolved. When using promises asynchronously in an
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 414
event loop, you will need to run the task queue on each tick of the loop. If
event loop, you will need to run the task queue on each tick of the loop. If
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 415
you do not run the task queue, then promises will not be resolved.
you do not run the task queue, then promises will not be resolved.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 416
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 417
You can run the task queue using the `run()` method of the global task queue
You can run the task queue using the `run()` method of the global task queue
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 418
instance.
instance.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 419
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 420
```php
```php
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 421
// Get the global task queue
// Get the global task queue
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 422
$queue = GuzzleHttp\Promise\Utils::queue();
$queue = GuzzleHttp\Promise\Utils::queue();
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 423
$queue->run();
$queue->run();
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 424
```
```
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 425
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 426
For example, you could use Guzzle promises with React using a periodic timer:
For example, you could use Guzzle promises with React using a periodic timer:
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 427
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 428
```php
```php
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 429
$loop = React\EventLoop\Factory::create();
$loop = React\EventLoop\Factory::create();
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 430
$loop->addPeriodicTimer(0, [$queue, 'run']);
$loop->addPeriodicTimer(0, [$queue, 'run']);
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 431
```
```
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 432
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 433
*TODO*: Perhaps adding a `futureTick()` on each tick would be faster?
*TODO*: Perhaps adding a `futureTick()` on each tick would be faster?
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 434
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 435
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 436
## Implementation Notes
## Implementation Notes
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 437
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 438
### Promise Resolution and Chaining is Handled Iteratively
### Promise Resolution and Chaining is Handled Iteratively
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 439
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 440
By shuffling pending handlers from one owner to another, promises are
By shuffling pending handlers from one owner to another, promises are
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 441
resolved iteratively, allowing for "infinite" then chaining.
resolved iteratively, allowing for "infinite" then chaining.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 442
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 443
```php
```php
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 444
<?php
<?php
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 445
require 'vendor/autoload.php';
require 'vendor/autoload.php';
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 446
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 447
use GuzzleHttp\Promise\Promise;
use GuzzleHttp\Promise\Promise;
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 448
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 449
$parent = new Promise();
$parent = new Promise();
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 450
$p = $parent;
$p = $parent;
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 451
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 452
for ($i = 0; $i < 1000; $i++) {
for ($i = 0; $i < 1000; $i++) {
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 453
$p = $p->then(function ($v) {
$p = $p->then(function ($v) {
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 454
// The stack size remains constant (a good thing)
// The stack size remains constant (a good thing)
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 455
echo xdebug_get_stack_depth() . ', ';
echo xdebug_get_stack_depth() . ', ';
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 456
return $v + 1;
return $v + 1;
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 457
});
});
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 458
}
}
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 459
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 460
$parent->resolve(0);
$parent->resolve(0);
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 461
var_dump($p->wait()); // int(1000)
var_dump($p->wait()); // int(1000)
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 462
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 463
```
```
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 464
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 465
When a promise is fulfilled or rejected with a non-promise value, the promise
When a promise is fulfilled or rejected with a non-promise value, the promise
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 466
then takes ownership of the handlers of each child promise and delivers values
then takes ownership of the handlers of each child promise and delivers values
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 467
down the chain without using recursion.
down the chain without using recursion.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 468
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 469
When a promise is resolved with another promise, the original promise transfers
When a promise is resolved with another promise, the original promise transfers
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 470
all of its pending handlers to the new promise. When the new promise is
all of its pending handlers to the new promise. When the new promise is
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 471
eventually resolved, all of the pending handlers are delivered the forwarded
eventually resolved, all of the pending handlers are delivered the forwarded
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 472
value.
value.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 473
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 474
### A Promise is the Deferred
### A Promise is the Deferred
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 475
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 476
Some promise libraries implement promises using a deferred object to represent
Some promise libraries implement promises using a deferred object to represent
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 477
a computation and a promise object to represent the delivery of the result of
a computation and a promise object to represent the delivery of the result of
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 478
the computation. This is a nice separation of computation and delivery because
the computation. This is a nice separation of computation and delivery because
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 479
consumers of the promise cannot modify the value that will be eventually
consumers of the promise cannot modify the value that will be eventually
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 480
delivered.
delivered.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 481
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 482
One side effect of being able to implement promise resolution and chaining
One side effect of being able to implement promise resolution and chaining
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 483
iteratively is that you need to be able for one promise to reach into the state
iteratively is that you need to be able for one promise to reach into the state
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 484
of another promise to shuffle around ownership of handlers. In order to achieve
of another promise to shuffle around ownership of handlers. In order to achieve
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 485
this without making the handlers of a promise publicly mutable, a promise is
this without making the handlers of a promise publicly mutable, a promise is
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 486
also the deferred value, allowing promises of the same parent class to reach
also the deferred value, allowing promises of the same parent class to reach
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 487
into and modify the private properties of promises of the same type. While this
into and modify the private properties of promises of the same type. While this
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 488
does allow consumers of the value to modify the resolution or rejection of the
does allow consumers of the value to modify the resolution or rejection of the
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 489
deferred, it is a small price to pay for keeping the stack size constant.
deferred, it is a small price to pay for keeping the stack size constant.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 490
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 491
```php
```php
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 492
$promise = new Promise();
$promise = new Promise();
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 493
$promise->then(function ($value) { echo $value; });
$promise->then(function ($value) { echo $value; });
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 494
// The promise is the deferred value, so you can deliver a value to it.
// The promise is the deferred value, so you can deliver a value to it.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 495
$promise->resolve('foo');
$promise->resolve('foo');
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 496
// prints "foo"
// prints "foo"
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 497
```
```
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 498
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 499
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 500
## Upgrading from Function API
## Upgrading from Function API
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 501
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 502
A static API was first introduced in 1.4.0, in order to mitigate problems with
A static API was first introduced in 1.4.0, in order to mitigate problems with
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 503
functions conflicting between global and local copies of the package. The
functions conflicting between global and local copies of the package. The
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 504
function API will be removed in 2.0.0. A migration table has been provided here
function API will be removed in 2.0.0. A migration table has been provided here
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 505
for your convenience:
for your convenience:
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 506
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 507
| Original Function | Replacement Method |
| Original Function | Replacement Method |
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 508
|----------------|----------------|
|----------------|----------------|
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 509
| `queue` | `Utils::queue` |
| `queue` | `Utils::queue` |
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 510
| `task` | `Utils::task` |
| `task` | `Utils::task` |
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 511
| `promise_for` | `Create::promiseFor` |
| `promise_for` | `Create::promiseFor` |
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 512
| `rejection_for` | `Create::rejectionFor` |
| `rejection_for` | `Create::rejectionFor` |
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 513
| `exception_for` | `Create::exceptionFor` |
| `exception_for` | `Create::exceptionFor` |
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 514
| `iter_for` | `Create::iterFor` |
| `iter_for` | `Create::iterFor` |
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 515
| `inspect` | `Utils::inspect` |
| `inspect` | `Utils::inspect` |
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 516
| `inspect_all` | `Utils::inspectAll` |
| `inspect_all` | `Utils::inspectAll` |
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 517
| `unwrap` | `Utils::unwrap` |
| `unwrap` | `Utils::unwrap` |
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 518
| `all` | `Utils::all` |
| `all` | `Utils::all` |
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 519
| `some` | `Utils::some` |
| `some` | `Utils::some` |
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 520
| `any` | `Utils::any` |
| `any` | `Utils::any` |
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 521
| `settle` | `Utils::settle` |
| `settle` | `Utils::settle` |
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 522
| `each` | `Each::of` |
| `each` | `Each::of` |
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 523
| `each_limit` | `Each::ofLimit` |
| `each_limit` | `Each::ofLimit` |
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 524
| `each_limit_all` | `Each::ofLimitAll` |
| `each_limit_all` | `Each::ofLimitAll` |
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 525
| `!is_fulfilled` | `Is::pending` |
| `!is_fulfilled` | `Is::pending` |
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 526
| `is_fulfilled` | `Is::fulfilled` |
| `is_fulfilled` | `Is::fulfilled` |
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 527
| `is_rejected` | `Is::rejected` |
| `is_rejected` | `Is::rejected` |
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 528
| `is_settled` | `Is::settled` |
| `is_settled` | `Is::settled` |
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 529
| `coroutine` | `Coroutine::of` |
| `coroutine` | `Coroutine::of` |
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 530
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 531
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 532
## Security
## Security
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 533
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 534
If you discover a security vulnerability within this package, please send an email to [email protected]. All security vulnerabilities will be promptly addressed. Please do not disclose security-related issues publicly until a fix has been announced. Please see [Security Policy](https://github.com/guzzle/promises/security/policy) for more information.
If you discover a security vulnerability within this package, please send an email to [email protected]. All security vulnerabilities will be promptly addressed. Please do not disclose security-related issues publicly until a fix has been announced. Please see [Security Policy](https://github.com/guzzle/promises/security/policy) for more information.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 535
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 536
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 537
## License
## License
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 538
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 539
Guzzle is made available under the MIT License (MIT). Please see [License File](LICENSE) for more information.
Guzzle is made available under the MIT License (MIT). Please see [License File](LICENSE) for more information.
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 540
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 541
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 542
## For Enterprise
## For Enterprise
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 543
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 544
Available as part of the Tidelift Subscription
Available as part of the Tidelift Subscription
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 545
same change
cd3660a
[Web] add oauth2-keycloak lib
- Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e- Author
- FreddleSpl0it <[email protected]>
- Date
- over 3 years ago
- Selected line
- 546
The maintainers of Guzzle and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/packagist-guzzlehttp-promises?utm_source=packagist-guzzlehttp-promises&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
The maintainers of Guzzle and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/packagist-guzzlehttp-promises?utm_source=packagist-guzzlehttp-promises&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)