interface trigger actions

This commit is contained in:
Ruben 2016-11-03 11:11:41 +01:00
parent c43f3b6651
commit e02a7a7d3e

View file

@ -170,8 +170,9 @@ class InterfaceControllerProvider implements ControllerProviderInterface
try{ try{
Websockets::triggerUpdate('game'); Websockets::triggerUpdate('game');
}catch(\Throwable $e) { }catch(\Throwable $e) {
// nothing return false;
} }
return true;
}); });
// /interface/images // /interface/images
$controllers->get('/trigger/images', function (Application $app) { $controllers->get('/trigger/images', function (Application $app) {
@ -179,8 +180,9 @@ class InterfaceControllerProvider implements ControllerProviderInterface
try{ try{
Websockets::triggerUpdate('images'); Websockets::triggerUpdate('images');
}catch(\Throwable $e) { }catch(\Throwable $e) {
// nothing return false;
} }
return true;
}); });
return $controllers; return $controllers;