MAPG-243 replace and adapt to soko-web

This commit is contained in:
bence committed 2023-04-07 21:10:14 +02:00
1 parent 0bfebec8ca
commit c565fc2b65
40 files changed
+146 -129

No files matched your search

+4 -4
View File
@@ -1,11 +1,11 @@
<?php namespace MapGuesser\Repository;
use Generator;
use MapGuesser\Database\Query\Select;
use SokoWeb\Database\Query\Select;
use MapGuesser\PersistentData\Model\Challenge;
use MapGuesser\PersistentData\Model\Map;
use MapGuesser\PersistentData\Model\Place;
use MapGuesser\PersistentData\PersistentDataManager;
use SokoWeb\PersistentData\PersistentDataManager;
class PlaceRepository
{
@@ -41,7 +41,7 @@ class PlaceRepository
}
$oldPlaces = $this->getRandomOldNForMapWithValidPano($mapId, $n - count($unvisitedPlaces), $userId);
return array_merge($unvisitedPlaces, $oldPlaces);
}
}
@@ -198,5 +198,5 @@ class PlaceRepository
yield from $this->pdm->selectMultipleFromDb($select, Place::class);
}
}