Allows null on file param on location image/map update method
Change-Id: I20ccb2a860c8ab2b71c612f8c08d818385ec4e29
This commit is contained in:
parent
00edd5a7e3
commit
df61dabc05
@ -163,12 +163,12 @@ interface ILocationService
|
||||
* @param int $location_id
|
||||
* @param int $map_id
|
||||
* @param array $metadata
|
||||
* @param $file
|
||||
* @param UploadedFile|null $file
|
||||
* @return SummitLocationImage
|
||||
* @throws EntityNotFoundException
|
||||
* @throws ValidationException
|
||||
*/
|
||||
public function updateLocationMap(Summit $summit, $location_id, $map_id, array $metadata, UploadedFile $file);
|
||||
public function updateLocationMap(Summit $summit, $location_id, $map_id, array $metadata, UploadedFile $file = null);
|
||||
|
||||
/**
|
||||
* @param Summit $summit
|
||||
@ -196,12 +196,12 @@ interface ILocationService
|
||||
* @param int $location_id
|
||||
* @param int $image_id
|
||||
* @param array $metadata
|
||||
* @param $file
|
||||
* @param UploadedFile|null $file
|
||||
* @return SummitLocationImage
|
||||
* @throws EntityNotFoundException
|
||||
* @throws ValidationException
|
||||
*/
|
||||
public function updateLocationImage(Summit $summit, $location_id, $image_id, array $metadata, UploadedFile $file);
|
||||
public function updateLocationImage(Summit $summit, $location_id, $image_id, array $metadata, UploadedFile $file = null);
|
||||
|
||||
/**
|
||||
* @param Summit $summit
|
||||
|
@ -1204,12 +1204,12 @@ final class LocationService implements ILocationService
|
||||
* @param int $location_id
|
||||
* @param int $map_id
|
||||
* @param array $metadata
|
||||
* @param $file
|
||||
* @param UploadedFile|null $file
|
||||
* @return SummitLocationImage
|
||||
* @throws EntityNotFoundException
|
||||
* @throws ValidationException
|
||||
*/
|
||||
public function updateLocationMap(Summit $summit, $location_id, $map_id, array $metadata, UploadedFile $file)
|
||||
public function updateLocationMap(Summit $summit, $location_id, $map_id, array $metadata, UploadedFile $file = null)
|
||||
{
|
||||
return $this->tx_service->transaction(function () use ($summit, $location_id, $map_id, $metadata, $file) {
|
||||
$max_file_size = config('file_upload.max_file_upload_size') ;
|
||||
@ -1475,12 +1475,12 @@ final class LocationService implements ILocationService
|
||||
* @param int $location_id
|
||||
* @param int $image_id
|
||||
* @param array $metadata
|
||||
* @param $file
|
||||
* @param UploadedFile|null $file
|
||||
* @return SummitLocationImage
|
||||
* @throws EntityNotFoundException
|
||||
* @throws ValidationException
|
||||
*/
|
||||
public function updateLocationImage(Summit $summit, $location_id, $image_id, array $metadata, UploadedFile $file)
|
||||
public function updateLocationImage(Summit $summit, $location_id, $image_id, array $metadata, UploadedFile $file = null)
|
||||
{
|
||||
return $this->tx_service->transaction(function () use ($summit, $location_id, $image_id, $metadata, $file) {
|
||||
$max_file_size = config('file_upload.max_file_upload_size') ;
|
||||
|
Loading…
Reference in New Issue
Block a user