Commit f7b034f1 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Corrections suite à màj du web service Leocarte.

parent 2c6bfee2
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@ class PhotoService implements SoapClientAwareInterface
{
    use SoapClientAwareTrait;

    const UTILISATION_PHOTO_AUTORISEE = 'Utilisation autorisée';
    const UTILISATION_PHOTO_AUTORISEE = 3;

    /**
     * @var array
@@ -43,9 +43,9 @@ class PhotoService implements SoapClientAwareInterface
            throw new NotFoundException("Aucun droit photo trouvé");
        }

        $string = $resource->data->value->stringValue;
        $value = $resource->value->integerValue;

        return $string === self::UTILISATION_PHOTO_AUTORISEE;
        return $value === self::UTILISATION_PHOTO_AUTORISEE;
    }

    /**
@@ -81,9 +81,9 @@ class PhotoService implements SoapClientAwareInterface
        }

        // c'est le contenu "binaire" de la photo qui est retourné par le WS
        $imgData = $resource->data->value->imageValue;
        $value = $resource->value->imageValue;

        return $imgData;
        return $value;
    }

    /**