Skip to content

Reference

phil/geo-bundle
TypeKindRole
PhilGeoBundlefinal class, AbstractBundleAlias phil_geo; prepends the embeddable, registers the form type and the Twig extension
config/doctrine/Coordinates.orm.xmlDoctrine mappingCoordinates as an embeddable on two columns
Infrastructure\Form\CoordinatesTypeform typeA position as two fields
Infrastructure\Form\CoordinatesTransformerdata transformerBetween Coordinates and the two fields
Infrastructure\Twig\GeoExtensionTwig extensiongeo_distance(), format_distance, geo_attributes(), geo_schema()
Infrastructure\DependencyInjection\GeocodingServicesfinal classRegisters the geocoders, the chain, the cache and the IP locator of the configuration
Infrastructure\MaxMind\DatabaseUpdaterfinal readonly classDownloads the latest MaxMind database, checks it, puts it in place; one run at a time, under <database>.lock
Infrastructure\MaxMind\UpdateFailedfinal class, RuntimeExceptionAn update that failed; the database in place is kept
Infrastructure\Console\UpdateMaxMindDatabaseCommandconsole commandphil:geo:maxmind:update, --force
assets/src/distance.jsJavaScript moduledistance(), sortByDistance(), formatDistance(), positionOf()
assets/src/distance_sort_controller.jsStimulus controllerdistance-sort