diff --git a/src/Modules/Module/Realtime/Instruments/Bootstrap.php b/src/Modules/Module/Realtime/Instruments/Bootstrap.php index 6ead9a0..3b336d0 100644 --- a/src/Modules/Module/Realtime/Instruments/Bootstrap.php +++ b/src/Modules/Module/Realtime/Instruments/Bootstrap.php @@ -25,10 +25,12 @@ public function update(InterfaceObservableRealtime $observable): void $this->windSocketData( $observable, $observable->getFrame()->getHeader()->getPgn(), - $observable->getFrame()->getData()->getTimestamp() . ' ' - . $observable->getFrame()->getData()->getDirection() . ' ' - . $observable->getFrame()->getHeader()->getCanIdHex() . ' ' - . $observable->getData() + sprintf('%s %s %s %s', + $observable->getFrame()->getData()->getTimestamp(), + $observable->getFrame()->getData()->getDirection(), + $observable->getFrame()->getHeader()->getCanIdHex(), + $observable->getData() + ) ); } diff --git a/src/Modules/readme.md b/src/Modules/readme.md new file mode 100644 index 0000000..d6e8d47 --- /dev/null +++ b/src/Modules/readme.md @@ -0,0 +1,21 @@ +[External](External) + + External classes can use Internal classes +[Internal](Internal) + + Internal classes can use Core classes +[Module](Module) + + Module classes can use External classes +[Cron](Module/Cron) +These modules are attached to [cron.php](../deamon/cron.php). + +[Realtime](Module/Realtime) +These modules are attached to [RealtimeDistributor.php](Internal/RealtimeDistributor.php). + +Modules are registered in [register.php](register.php) + +Each module is attached via its own Bootstrap class, for example [Bootstrap.php](Module/Cron/AnchorWatch/Bootstrap.php), +which implements the interface [InterfaceObserverCronWorker.php](Internal/Interfaces/InterfaceObserverCronWorker.php) for [cron.php](../deamon/cron.php) +and [InterfaceObserverRealtime.php](Internal/Interfaces/InterfaceObserverRealtime.php) +for [RealtimeDistributor.php](Internal/RealtimeDistributor.php) ([deamon.php](../deamon/deamon.php)). \ No newline at end of file diff --git a/src/deamon/socketServer.php b/src/deamon/socketServer.php index 43153ec..3ea0547 100644 --- a/src/deamon/socketServer.php +++ b/src/deamon/socketServer.php @@ -6,6 +6,6 @@ use Core\Config\Config; use Core\Protocol\Socket\SocketsCollection; use Core\Protocol\Socket\MessageHandler; -$socedCollection = new SocketsCollection(); -$socetServer = new Server(Config::getSocketServerHost(), Config::getSocketServerPort(), $socedCollection, new MessageHandler($socedCollection)); -$socetServer->run(); \ No newline at end of file +$socketCollection = new SocketsCollection(); +$socketServer = new Server(Config::getSocketServerHost(), Config::getSocketServerPort(), $socketCollection, new MessageHandler($socketCollection)); +$socketServer->run(); \ No newline at end of file