Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Lumen framework promise

use GuzzleHttpPromisePromise;

$promise = new Promise();
$promise->then(
    // $onFulfilled
    function ($value) {
        echo 'The promise was fulfilled.';
    },
    // $onRejected
    function ($reason) {
        echo 'The promise was rejected.';
    }
);
Source by github.com #
 
PREVIOUS NEXT
Tagged: #Lumen #framework #promise
ADD COMMENT
Topic
Name
1+4 =