@@ -12,6 +12,9 @@ discard block |
||
| 12 | 12 | $app->post('/test', 'testX'); |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | +/** |
|
| 16 | + * @param string $function |
|
| 17 | + */ |
|
| 15 | 18 | function sendToBackend($function, $payload) |
| 16 | 19 | { |
| 17 | 20 | $context = new ZMQContext(); |
@@ -72,6 +75,9 @@ discard block |
||
| 72 | 75 | } |
| 73 | 76 | } |
| 74 | 77 | |
| 78 | +/** |
|
| 79 | + * @param string $test |
|
| 80 | + */ |
|
| 75 | 81 | function endswith($string, $test) |
| 76 | 82 | { |
| 77 | 83 | $strlen = strlen($string); |