add point type + Address: add Point field : fix dependency injection of the Point type

This commit is contained in:
nobohan
2021-04-20 10:55:45 +02:00
parent 7d1a1c4004
commit 9a4f50472a
5 changed files with 24 additions and 7 deletions

View File

@@ -0,0 +1,28 @@
<?php
namespace Chill\MainBundle\Doctrine\Model;
use \Exception;
/**
* Description of PointException
*
*/
class PointException extends Exception {
public static function badCoordinates($lon, $lat)
{
return new self("les coordonnées fournies sont invalides dans le système de projection utilisé (longitude = $lon , latitude = $lat)");
}
public static function badJsonString($str)
{
return new self("la chaine JSON n'est pas valide : $str");
}
public static function badGeoType()
{
return new self("le type de l'objet GeoJSON est invalide");
}
}