chore(release): v1.0.0
This commit is contained in:
@@ -2,3 +2,4 @@
|
||||
KERNEL_CLASS='App\Kernel'
|
||||
APP_SECRET='$ecretf0rt3st'
|
||||
CORS_ALLOW_ORIGIN='^https?://(?:localhost|127\\.0\\.0\\.1)(?::[0-9]+)?$'
|
||||
DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
|
||||
|
||||
@@ -45,7 +45,10 @@ class SignalController
|
||||
'clientKey' => $clientKey,
|
||||
'point' => [
|
||||
'id' => $signal->id->toString(),
|
||||
'signalLocation' => $signal->signalLocation,
|
||||
'signalLocation' => [
|
||||
'lat' => $signal->signalLocation->getLat(),
|
||||
'lng' => $signal->signalLocation->getLng(),
|
||||
],
|
||||
'createdAt' => $signal->createdAt->format(DATE_ATOM),
|
||||
'userKey' => $signal->userKey,
|
||||
],
|
||||
|
||||
@@ -5,7 +5,6 @@ declare(strict_types=1);
|
||||
namespace App\Service;
|
||||
|
||||
use App\Entity\Signal;
|
||||
use App\ValueObject\Point;
|
||||
|
||||
class SignalSnapshotBuilder
|
||||
{
|
||||
@@ -15,14 +14,14 @@ class SignalSnapshotBuilder
|
||||
* @return array{
|
||||
* points: list<array{
|
||||
* id: string,
|
||||
* signalLocation: Point,
|
||||
* signalLocation: array{lat: float, lng: float},
|
||||
* createdAt: string,
|
||||
* userKey: string,
|
||||
* }>,
|
||||
* density: list<array{lat: float, lng: float, intensity: int}>,
|
||||
* latestByUser: list<array{
|
||||
* id: string,
|
||||
* signalLocation: Point,
|
||||
* signalLocation: array{lat: float, lng: float},
|
||||
* createdAt: string,
|
||||
* userKey: string,
|
||||
* }>,
|
||||
@@ -38,7 +37,10 @@ class SignalSnapshotBuilder
|
||||
foreach ($signals as $signal) {
|
||||
$point = [
|
||||
'id' => $signal->id->toString(),
|
||||
'signalLocation' => $signal->signalLocation,
|
||||
'signalLocation' => [
|
||||
'lat' => $signal->signalLocation->getLat(),
|
||||
'lng' => $signal->signalLocation->getLng(),
|
||||
],
|
||||
'createdAt' => $signal->createdAt->format(DATE_ATOM),
|
||||
'userKey' => $signal->userKey,
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user