File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ The result of this loader is a completely flattened WSDL file which you can e.g.
66
66
use Soap\Wsdl\Loader\FlatteningLoader;
67
67
use Soap\Wsdl\Loader\StreamWrapperLoader;
68
68
69
- $loader = FlatteningLoader::createForLoader (new StreamWrapperLoader());
69
+ $loader = new FlatteningLoader(new StreamWrapperLoader());
70
70
71
71
$contents = $loader($wsdl);
72
72
```
Original file line number Diff line number Diff line change 22
22
</projectFiles >
23
23
<ignoreExceptions >
24
24
<class name =" InvalidArgumentException" />
25
+ <class name =" Psl\Exception\InvariantViolationException" />
25
26
</ignoreExceptions >
26
27
</psalm >
Original file line number Diff line number Diff line change 15
15
use function VeeWee \Xml \Dom \Manipulator \append ;
16
16
use function VeeWee \Xml \Dom \Manipulator \Node \remove ;
17
17
18
+ /**
19
+ * This class transforms multiple wsdl:types elements into 1 single element.
20
+ * This makes importing xsd's easier (and prevents some bugs in some soap related tools)
21
+ */
18
22
final class FlattenTypes implements Configurator
19
23
{
20
24
/**
Original file line number Diff line number Diff line change 7
7
use DOMDocument ;
8
8
use DOMElement ;
9
9
use DOMNode ;
10
- use Psl \Exception \InvariantViolationException ;
11
10
use Psl \Type \Exception \AssertException ;
12
11
use Soap \Wsdl \Exception \UnloadableWsdlException ;
13
12
use Soap \Wsdl \Loader \Context \FlatteningContext ;
25
24
use function VeeWee \Xml \Dom \Manipulator \Node \remove ;
26
25
27
26
/**
28
- * @TODO check https://github.com/pkielgithub/SchemaLightener/blob/master/src/SchemaLightener.java implementation
29
- * -> http://www.strategicdevelopment.io/tools/index.php
30
- * -> http://www.strategicdevelopment.io/tools/SchemaLightener.php
31
- * -> http://www.strategicdevelopment.io/tools/WSDLFlattener.php
27
+ * This class deals with xsd:import, xsd:include and xsd:redefine tags.
28
+ * It imports the types grouped by schema namespace to make sure that the size of the result is as small as possible!
32
29
*/
33
30
final class FlattenXsdImports implements Configurator
34
31
{
@@ -176,7 +173,6 @@ private function loadSchema(string $location): ?DOMElement
176
173
* It groups all imports by targetNamespace.
177
174
*
178
175
* @throws RuntimeException
179
- * @throws InvariantViolationException
180
176
* @throws AssertException
181
177
*/
182
178
private function registerSchemaInTypes (DOMElement $ schema ): void
You can’t perform that action at this time.
0 commit comments