Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
fusiondirectory
fusiondirectory-integrator
Commits
0cc8c68b
Verified
Commit
0cc8c68b
authored
1 month ago
by
dockx thibault
Browse files
Options
Download
Patches
Plain Diff
Feat(webservice) - enhance execution method
parent
10ba077c
dev
1 merge request
!55
Resolve "[Integrator] - Rest library - update to allow easy trigger of archiving objects"
Pipeline
#32390
failed with stages
in 47 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/FusionDirectory/Rest/WebServiceCall.php
+6
-3
src/FusionDirectory/Rest/WebServiceCall.php
with
6 additions
and
3 deletions
+6
-3
src/FusionDirectory/Rest/WebServiceCall.php
+
6
−
3
View file @
0cc8c68b
...
@@ -199,19 +199,22 @@ class WebServiceCall
...
@@ -199,19 +199,22 @@ class WebServiceCall
return
$response
;
return
$response
;
}
}
/**
/**
* @return array
* @return array
* @throws Exception
* @throws
\
Exception
*/
*/
public
function
execute
():
array
public
function
execute
():
array
{
{
$this
->
setCurlSettings
();
$response
=
curl_exec
(
$this
->
ch
);
$response
=
curl_exec
(
$this
->
ch
);
$this
->
handleCurlError
(
$this
->
ch
);
$this
->
handleCurlError
(
$this
->
ch
);
$decoded
=
json_decode
(
$response
,
true
);
$decoded
=
json_decode
(
$response
,
true
);
curl_close
(
$this
->
ch
);
curl_close
(
$this
->
ch
);
if
(
!
is_array
(
$decoded
))
{
throw
new
\
Exception
(
'Invalid JSON response: '
.
$response
);
}
return
$decoded
;
return
$decoded
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets