Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
migrate_plus
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
migrate_plus
Commits
59839b03
Commit
59839b03
authored
7 years ago
by
Nikolay Lobachev
Committed by
Lucas Hedding
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2823380
by LOBsTerr, heddn: SoapClient not found
parent
6eaa3eb4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
composer.json
+3
-1
3 additions, 1 deletion
composer.json
src/Plugin/migrate_plus/data_parser/Soap.php
+8
-1
8 additions, 1 deletion
src/Plugin/migrate_plus/data_parser/Soap.php
with
11 additions
and
2 deletions
composer.json
+
3
−
1
View file @
59839b03
...
...
@@ -17,7 +17,9 @@
"source"
:
"https://cgit.drupalcode.org/migrate_plus"
},
"minimum-stability"
:
"dev"
,
"require"
:
{},
"require"
:
{
"ext-soap"
:
"*"
},
"suggest"
:
{
"sainsburys/guzzle-oauth2-plugin"
:
"3.0 required for the OAuth2 authentication plugin"
}
...
...
This diff is collapsed.
Click to expand it.
src/Plugin/migrate_plus/data_parser/Soap.php
+
8
−
1
View file @
59839b03
...
...
@@ -3,6 +3,7 @@
namespace
Drupal\migrate_plus\Plugin\migrate_plus\data_parser
;
use
Drupal\Core\Plugin\ContainerFactoryPluginInterface
;
use
Drupal\migrate\Exception\RequirementsException
;
use
Drupal\migrate\MigrateException
;
use
Drupal\migrate_plus
\DataParserPluginBase
;
...
...
@@ -46,8 +47,14 @@ class Soap extends DataParserPluginBase implements ContainerFactoryPluginInterfa
/**
* {@inheritdoc}
*
* @throws \Drupal\migrate\Exception\RequirementsException
* If PHP SOAP extension is not installed.
*/
public
function
__construct
(
array
$configuration
,
$plugin_id
,
$plugin_definition
)
{
if
(
!
class_exists
(
'\SoapClient'
))
{
throw
new
RequirementsException
(
'The PHP SOAP extension is not installed'
);
}
parent
::
__construct
(
$configuration
,
$plugin_id
,
$plugin_definition
);
$this
->
function
=
$configuration
[
'function'
];
$this
->
parameters
=
$configuration
[
'parameters'
];
...
...
@@ -63,7 +70,7 @@ class Soap extends DataParserPluginBase implements ContainerFactoryPluginInterfa
* If we can't resolve the SOAP function or its response property.
*/
protected
function
openSourceUrl
(
$url
)
{
// Will throw SoapFault if there's
// Will throw SoapFault if there's
an error in a SOAP call.
$client
=
new
\SoapClient
(
$url
);
// Determine the response property name.
$function_found
=
FALSE
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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