1 | <?php |
||
7 | class Async extends AbstractEmitter |
||
8 | { |
||
9 | /** |
||
10 | * Holds the emitter/transporter's command string. |
||
11 | * The placeholders in order are: |
||
12 | * - #1. (string) payload |
||
13 | * - #2. (string) url. |
||
14 | */ |
||
15 | protected $transporter_cmd = 'curl -X POST -d %1$s \'%2$s\''; |
||
16 | |||
17 | /** |
||
18 | * Constructor. |
||
19 | * |
||
20 | * @param string $transporter_cmd The tranpsort command string |
||
21 | */ |
||
22 | 128 | public function __construct($transporter_cmd = null) |
|
26 | |||
27 | /** |
||
28 | * {@inheritdoc} |
||
29 | */ |
||
30 | 40 | public function send($payload) |
|
58 | } |
||
59 |