WebSocket app

This commit is contained in:
2021-03-30 16:40:02 -03:00
parent 5d229739fe
commit 190dfd7c34
13 changed files with 314 additions and 0 deletions

View File

@ -0,0 +1,8 @@
<?php
$files = new DirectoryIterator(implode(DIRECTORY_SEPARATOR, [__DIR__, 'ws']));
foreach ($files as $file) {
if ($file->isDir()) {
continue;
}
include_once $file->getRealPath();
}

View File

@ -0,0 +1,9 @@
<?php
use ProVM\Money\Common\Listener\Currencies;
$controller = new Currencies();
$app->add('currencies', $controller);
$app->add('currency', [$controller, 'get']);
$app->add('currency.values.latest', [$controller, 'latest']);
$app->add('currency.sources', [$controller, 'getSources']);
$app->add('currency.values', [$controller, 'getValues']);