NobGit
public nobgit read

NobMail

Based on mailcow: dockerized

Languages

Repository composition by tracked source files.

PHP
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
Open commit View diff
1 # 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
Open commit View diff
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
Open commit View diff
3 [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
Open commit View diff
4 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/)
Open commit View diff
5 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.
Open commit View diff
6 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
Open commit View diff
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)
Open commit View diff
8 - [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)
Open commit View diff
9 - [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)
Open commit View diff
10 - [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)
Open commit View diff
11 - [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)
Open commit View diff
12 - [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)
Open commit View diff
13 - [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)
Open commit View diff
14 - [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)
Open commit View diff
15 - [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)
Open commit View diff
16 - [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)
Open commit View diff
17 - [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
Open commit View diff
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
Open commit View diff
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
Open commit View diff
20 ## 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
Open commit View diff
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.
Open commit View diff
22 - [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
Open commit View diff
23 - 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.
Open commit View diff
24 "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.
Open commit View diff
25 - 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.
Open commit View diff
26 - 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.
Open commit View diff
27 - 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
Open commit View diff
28 - 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()`.
Open commit View diff
29 `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
Open commit View diff
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
Open commit View diff
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
Open commit View diff
32 ## 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
Open commit View diff
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
Open commit View diff
34 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
Open commit View diff
35 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
Open commit View diff
36 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.
Open commit View diff
37 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
Open commit View diff
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
Open commit View diff
39 ### 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
Open commit View diff
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 
Open commit View diff
41 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.
Open commit View diff
42 `$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
Open commit View diff
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
Open commit View diff
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
Open commit View diff
45 ```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;
Open commit View diff
46 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
Open commit View diff
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();
Open commit View diff
48 $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(
Open commit View diff
49 $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
Open commit View diff
50 // $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) {
Open commit View diff
51 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.';
Open commit View diff
52 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
    },
Open commit View diff
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
Open commit View diff
54 // $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) {
Open commit View diff
55 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.';
Open commit View diff
56 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
    }
Open commit View diff
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
);
Open commit View diff
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
```
Open commit View diff
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
Open commit View diff
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
Open commit View diff
61 *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
Open commit View diff
62 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
Open commit View diff
63 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.
Open commit View diff
64 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
Open commit View diff
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
Open commit View diff
66 ### 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
Open commit View diff
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
Open commit View diff
68 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
Open commit View diff
69 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
Open commit View diff
70 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).
Open commit View diff
71 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
Open commit View diff
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
Open commit View diff
73 ```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;
Open commit View diff
74 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
Open commit View diff
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();
Open commit View diff
76 $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
Open commit View diff
77 $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) {
Open commit View diff
78 ->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
Open commit View diff
79 // 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;
Open commit View diff
80 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
    })
Open commit View diff
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
Open commit View diff
82 // 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.
Open commit View diff
83 // 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) {
Open commit View diff
84 ->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;
Open commit View diff
85 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
    });
Open commit View diff
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
Open commit View diff
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
Open commit View diff
88 // 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."
Open commit View diff
89 // "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.');
Open commit View diff
90 $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
```
Open commit View diff
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
Open commit View diff
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
Open commit View diff
93 ### 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
Open commit View diff
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
Open commit View diff
95 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
Open commit View diff
96 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
Open commit View diff
97 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
Open commit View diff
98 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
Open commit View diff
99 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.
Open commit View diff
100 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
Open commit View diff
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
Open commit View diff
102 ```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;
Open commit View diff
103 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
Open commit View diff
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();
Open commit View diff
105 $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();
Open commit View diff
106 $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
Open commit View diff
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
Open commit View diff
108 $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) {
Open commit View diff
109 ->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;
Open commit View diff
110 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;
Open commit View diff
111 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
    })
Open commit View diff
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) {
Open commit View diff
113 ->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;
Open commit View diff
114 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
    });
Open commit View diff
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
Open commit View diff
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"
Open commit View diff
117 // 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');
Open commit View diff
118 $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"
Open commit View diff
119 // 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');
Open commit View diff
120 $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
```
Open commit View diff
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
Open commit View diff
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
Open commit View diff
123 ### 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
Open commit View diff
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
Open commit View diff
125 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.
Open commit View diff
126 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
Open commit View diff
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
Open commit View diff
128 ```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;
Open commit View diff
129 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
Open commit View diff
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();
Open commit View diff
131 $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) {
Open commit View diff
132 $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;
Open commit View diff
133 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
});
Open commit View diff
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
Open commit View diff
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!');
Open commit View diff
136 $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!"
Open commit View diff
137 // 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
```
Open commit View diff
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
Open commit View diff
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
Open commit View diff
140 ### 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
Open commit View diff
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
Open commit View diff
142 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.
Open commit View diff
143 `$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
Open commit View diff
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
Open commit View diff
145 ```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;
Open commit View diff
146 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
Open commit View diff
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();
Open commit View diff
148 $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) {
Open commit View diff
149 $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);
Open commit View diff
150 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) {
Open commit View diff
151 })->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!');
Open commit View diff
152 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
});
Open commit View diff
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
Open commit View diff
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!');
Open commit View diff
155 $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
```
Open commit View diff
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
Open commit View diff
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
Open commit View diff
158 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
Open commit View diff
159 `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.
Open commit View diff
160 `$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
Open commit View diff
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
Open commit View diff
162 ```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;
Open commit View diff
163 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;
Open commit View diff
164 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
Open commit View diff
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();
Open commit View diff
166 $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) {
Open commit View diff
167 $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);
Open commit View diff
168 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) {
Open commit View diff
169 })->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!');
Open commit View diff
170 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
});
Open commit View diff
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
Open commit View diff
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!');
Open commit View diff
173 $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
```
Open commit View diff
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
Open commit View diff
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
Open commit View diff
176 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
Open commit View diff
177 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.
Open commit View diff
178 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
Open commit View diff
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
Open commit View diff
180 ```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;
Open commit View diff
181 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
Open commit View diff
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();
Open commit View diff
183 $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
Open commit View diff
184 $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) {
Open commit View diff
185 ->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";
Open commit View diff
186 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
    })
Open commit View diff
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) {
Open commit View diff
188 ->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");
Open commit View diff
189 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
    });
Open commit View diff
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
Open commit View diff
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!');
Open commit View diff
192 $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
```
Open commit View diff
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
Open commit View diff
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
Open commit View diff
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
Open commit View diff
196 ## 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
Open commit View diff
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`
Open commit View diff
198 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
Open commit View diff
199 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
Open commit View diff
200 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
Open commit View diff
201 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
Open commit View diff
202 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
Open commit View diff
203 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.
Open commit View diff
204 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
Open commit View diff
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
Open commit View diff
206 ```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) {
Open commit View diff
207 $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');
Open commit View diff
208 $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
});
Open commit View diff
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
Open commit View diff
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.
Open commit View diff
211 // 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"
Open commit View diff
212 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
```
Open commit View diff
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
Open commit View diff
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,
Open commit View diff
215 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.
Open commit View diff
216 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
Open commit View diff
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
Open commit View diff
218 ```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) {
Open commit View diff
219 $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');
Open commit View diff
220 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
});
Open commit View diff
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
Open commit View diff
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.
Open commit View diff
223 $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
```
Open commit View diff
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
Open commit View diff
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
Open commit View diff
226 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.
Open commit View diff
227 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
Open commit View diff
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
Open commit View diff
229 ```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!'); });
Open commit View diff
230 $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');
Open commit View diff
231 $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"
Open commit View diff
232 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
```
Open commit View diff
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
Open commit View diff
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
Open commit View diff
235 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.
Open commit View diff
236 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
Open commit View diff
237 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.
Open commit View diff
238 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
Open commit View diff
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
Open commit View diff
240 ```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();
Open commit View diff
241 $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');
Open commit View diff
242 $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();
Open commit View diff
243 $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
```
Open commit View diff
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
Open commit View diff
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'
Open commit View diff
246 > 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
Open commit View diff
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
Open commit View diff
248 ### 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
Open commit View diff
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
Open commit View diff
250 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
Open commit View diff
251 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
Open commit View diff
252 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
Open commit View diff
253 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.
Open commit View diff
254 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
Open commit View diff
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
Open commit View diff
256 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:
Open commit View diff
257 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
Open commit View diff
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
Open commit View diff
259 ```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();
Open commit View diff
260 $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');
Open commit View diff
261 $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
Open commit View diff
262 // 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.
Open commit View diff
263 // 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);
Open commit View diff
264 $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
```
Open commit View diff
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
Open commit View diff
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
Open commit View diff
267 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
Open commit View diff
268 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
Open commit View diff
269 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.
Open commit View diff
270 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
Open commit View diff
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.
Open commit View diff
272 **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
Open commit View diff
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
Open commit View diff
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
Open commit View diff
275 ## 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
Open commit View diff
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()`
Open commit View diff
277 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
Open commit View diff
278 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
Open commit View diff
279 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.
Open commit View diff
280 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
Open commit View diff
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
Open commit View diff
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
Open commit View diff
283 ## 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
Open commit View diff
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
Open commit View diff
285 ### 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
Open commit View diff
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
Open commit View diff
287 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
Open commit View diff
288 `$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
Open commit View diff
289 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
Open commit View diff
290 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.
Open commit View diff
291 `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
Open commit View diff
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
Open commit View diff
293 ```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;
Open commit View diff
294 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
Open commit View diff
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(
Open commit View diff
296 $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) {
Open commit View diff
297 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');
Open commit View diff
298 $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
    },
Open commit View diff
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 () {
Open commit View diff
300 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
Open commit View diff
301 // 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...)
Open commit View diff
302 // 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
    }
Open commit View diff
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
);
Open commit View diff
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
Open commit View diff
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());
Open commit View diff
306 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
```
Open commit View diff
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
Open commit View diff
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:
Open commit View diff
309 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
Open commit View diff
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`
Open commit View diff
311 - `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
  
Open commit View diff
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.
Open commit View diff
313 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
Open commit View diff
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`
Open commit View diff
315 - `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
  
Open commit View diff
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.
Open commit View diff
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.
same change cd3660a

[Web] add oauth2-keycloak lib

Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
318
Open commit View diff
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`
Open commit View diff
319 - `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
Open commit View diff
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.
Open commit View diff
321 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
  
Open commit View diff
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
Open commit View diff
323 `$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.
Open commit View diff
324 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.
Open commit View diff
325 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
Open commit View diff
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()`
Open commit View diff
327 - `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
Open commit View diff
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
Open commit View diff
329 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
Open commit View diff
330 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
Open commit View diff
331 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.
Open commit View diff
332 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
Open commit View diff
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`
Open commit View diff
334 - `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
Open commit View diff
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
Open commit View diff
336 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`.
Open commit View diff
337 `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
Open commit View diff
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)`
Open commit View diff
339 - `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
Open commit View diff
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`.
Open commit View diff
341 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
Open commit View diff
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)`
Open commit View diff
343 - `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
Open commit View diff
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`.
Open commit View diff
345 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
Open commit View diff
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
Open commit View diff
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
Open commit View diff
348 ### 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
Open commit View diff
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
Open commit View diff
350 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.
Open commit View diff
351 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
Open commit View diff
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
Open commit View diff
353 ```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;
Open commit View diff
354 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
Open commit View diff
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');
Open commit View diff
356 $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
Open commit View diff
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.
Open commit View diff
358 // 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) {
Open commit View diff
359 $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;
Open commit View diff
360 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
});
Open commit View diff
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
```
Open commit View diff
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
Open commit View diff
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
Open commit View diff
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
Open commit View diff
365 ### 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
Open commit View diff
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
Open commit View diff
367 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.
Open commit View diff
368 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
Open commit View diff
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
Open commit View diff
370 ```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;
Open commit View diff
371 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
Open commit View diff
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');
Open commit View diff
373 $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
Open commit View diff
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.
Open commit View diff
375 // 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) {
Open commit View diff
376 $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;
Open commit View diff
377 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
});
Open commit View diff
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
```
Open commit View diff
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
Open commit View diff
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
Open commit View diff
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
Open commit View diff
382 ## 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
Open commit View diff
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
Open commit View diff
384 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)
Open commit View diff
385 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
Open commit View diff
386 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.
Open commit View diff
387 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
Open commit View diff
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
Open commit View diff
389 ```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
Open commit View diff
390 // 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();
Open commit View diff
391 $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();
Open commit View diff
392 $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
Open commit View diff
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.
Open commit View diff
394 // 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();
Open commit View diff
395 $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) {
Open commit View diff
396 $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...
Open commit View diff
397 // 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
Open commit View diff
398 // 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;
Open commit View diff
399 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
});
Open commit View diff
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
```
Open commit View diff
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
Open commit View diff
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
Open commit View diff
403 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
Open commit View diff
404 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.
Open commit View diff
405 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
Open commit View diff
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
Open commit View diff
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
Open commit View diff
408 ### 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
Open commit View diff
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
Open commit View diff
410 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
Open commit View diff
411 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
Open commit View diff
412 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
Open commit View diff
413 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
Open commit View diff
414 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.
Open commit View diff
415 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
Open commit View diff
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
Open commit View diff
417 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.
Open commit View diff
418 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
Open commit View diff
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
Open commit View diff
420 ```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
Open commit View diff
421 // 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();
Open commit View diff
422 $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();
Open commit View diff
423 $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
```
Open commit View diff
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
Open commit View diff
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:
Open commit View diff
426 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
Open commit View diff
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
Open commit View diff
428 ```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();
Open commit View diff
429 $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']);
Open commit View diff
430 $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
```
Open commit View diff
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
Open commit View diff
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?
Open commit View diff
433 *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
Open commit View diff
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
Open commit View diff
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
Open commit View diff
436 ## 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
Open commit View diff
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
Open commit View diff
438 ### 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
Open commit View diff
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
Open commit View diff
440 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.
Open commit View diff
441 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
Open commit View diff
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
Open commit View diff
443 ```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
Open commit View diff
444 <?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';
Open commit View diff
445 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
Open commit View diff
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;
Open commit View diff
447 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
Open commit View diff
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();
Open commit View diff
449 $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;
Open commit View diff
450 $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
Open commit View diff
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++) {
Open commit View diff
452 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) {
Open commit View diff
453 $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)
Open commit View diff
454 // 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() . ', ';
Open commit View diff
455 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;
Open commit View diff
456 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
    });
Open commit View diff
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
}
Open commit View diff
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
Open commit View diff
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);
Open commit View diff
460 $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)
Open commit View diff
461 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
Open commit View diff
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
```
Open commit View diff
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
Open commit View diff
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
Open commit View diff
465 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
Open commit View diff
466 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.
Open commit View diff
467 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
Open commit View diff
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
Open commit View diff
469 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
Open commit View diff
470 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
Open commit View diff
471 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.
Open commit View diff
472 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
Open commit View diff
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
Open commit View diff
474 ### 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
Open commit View diff
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
Open commit View diff
476 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
Open commit View diff
477 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
Open commit View diff
478 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
Open commit View diff
479 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.
Open commit View diff
480 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
Open commit View diff
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
Open commit View diff
482 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
Open commit View diff
483 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
Open commit View diff
484 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
Open commit View diff
485 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
Open commit View diff
486 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
Open commit View diff
487 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
Open commit View diff
488 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.
Open commit View diff
489 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
Open commit View diff
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
Open commit View diff
491 ```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();
Open commit View diff
492 $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; });
Open commit View diff
493 $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.
Open commit View diff
494 // 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');
Open commit View diff
495 $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"
Open commit View diff
496 // 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
```
Open commit View diff
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
Open commit View diff
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
Open commit View diff
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
Open commit View diff
500 ## 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
Open commit View diff
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
Open commit View diff
502 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
Open commit View diff
503 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
Open commit View diff
504 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:
Open commit View diff
505 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
Open commit View diff
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 |
Open commit View diff
507 | 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
|----------------|----------------|
Open commit View diff
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` |
Open commit View diff
509 | `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` |
Open commit View diff
510 | `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` |
Open commit View diff
511 | `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` |
Open commit View diff
512 | `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` |
Open commit View diff
513 | `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` |
Open commit View diff
514 | `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` |
Open commit View diff
515 | `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` |
Open commit View diff
516 | `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` |
Open commit View diff
517 | `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` |
Open commit View diff
518 | `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` |
Open commit View diff
519 | `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` |
Open commit View diff
520 | `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` |
Open commit View diff
521 | `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` |
Open commit View diff
522 | `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` |
Open commit View diff
523 | `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` |
Open commit View diff
524 | `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` |
Open commit View diff
525 | `!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` |
Open commit View diff
526 | `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` |
Open commit View diff
527 | `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` |
Open commit View diff
528 | `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` |
Open commit View diff
529 | `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
Open commit View diff
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
Open commit View diff
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
Open commit View diff
532 ## 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
Open commit View diff
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.
Open commit View diff
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.
same change cd3660a

[Web] add oauth2-keycloak lib

Full commit hash
cd3660a96d4cfb7158ede6a282378de23bbac98e
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
535
Open commit View diff
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
Open commit View diff
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
Open commit View diff
537 ## 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
Open commit View diff
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.
Open commit View diff
539 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
Open commit View diff
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
Open commit View diff
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
Open commit View diff
542 ## 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
Open commit View diff
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
Open commit View diff
544 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
Open commit View diff
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)
Open commit View diff
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)