* SZEP balance implemented web,cli

* xml tidy
* small code cleanup
This commit is contained in:
Danyi Dávid
2020-01-29 20:36:53 +01:00
parent e1482ced6d
commit f97ed69ce7
10 changed files with 164 additions and 12 deletions

View File

@@ -8,6 +8,7 @@ return [
App\Command\PeriodicSZEPCommand::class => App\Command\PeriodicSZEPCommandFactory::class,
App\Command\DebugCommand::class => App\Command\DebugCommandFactory::class,
App\Command\PendingCommand::class => App\Command\PendingCommandFactory::class,
App\Command\SZEPBalanceCommand::class => App\Command\SZEPBalanceCommandFactory::class,
],
],
'console' => [
@@ -16,6 +17,7 @@ return [
App\Command\PeriodicSZEPCommand::class,
App\Command\DebugCommand::class,
App\Command\PendingCommand::class,
App\Command\SZEPBalanceCommand::class,
],
],
];

View File

@@ -35,5 +35,6 @@ use Zend\Expressive\MiddlewareFactory;
return function (Application $app, MiddlewareFactory $factory, ContainerInterface $container) : void {
$app->get('/', App\Action\HomePageAction::class, 'home');
$app->get('/list', App\Action\PingAction::class, 'api.list');
$app->get('/szep/balance', App\Action\SZEPBalanceAction::class, 'api.szep.balance');
$app->post('/store/{direction:sent|received}/{hashKey}', App\Action\StoreAction::class, 'api.store');
};