@@ -28,9 +28,9 @@ This middleware is used to add attachments to your SOAP request:
28
28
``` php
29
29
use Http\Client\Common\PluginClient;
30
30
use Soap\Psr18Transport\Psr18Transport;
31
- use Soap\Psr18AttachmentMiddleware \Middleware\AttachmentsMiddleware;
32
- use Soap\Psr18AttachmentMiddleware \Multipart\AttachmentType;
33
- use Soap\Psr18AttachmentMiddleware \Storage\AttachmentStorage;
31
+ use Soap\Psr18AttachmentsMiddleware \Middleware\AttachmentsMiddleware;
32
+ use Soap\Psr18AttachmentsMiddleware \Multipart\AttachmentType;
33
+ use Soap\Psr18AttachmentsMiddleware \Storage\AttachmentStorage;
34
34
35
35
// You should store this attachment storage in a central place in your application e.g. inside a service container.
36
36
// It is used to store the attachments that are being sent and received.
@@ -54,8 +54,8 @@ Adding attachments to your request is done by using the `AttachmentsStorage` bef
54
54
use Http\Client\Common\PluginClient;
55
55
use Phpro\ResourceStream\Factory\FileStream;
56
56
use Soap\Psr18Transport\Psr18Transport;
57
- use Soap\Psr18AttachmentMiddleware \Attachment\Attachment;
58
- use Soap\Psr18AttachmentMiddleware \Storage\AttachmentStorage;
57
+ use Soap\Psr18AttachmentsMiddleware \Attachment\Attachment;
58
+ use Soap\Psr18AttachmentsMiddleware \Storage\AttachmentStorage;
59
59
60
60
// You should store this attachment storage in a central place in your application.
61
61
// It is used to store the attachments that are being sent and received.
@@ -78,8 +78,8 @@ Receiving attachments is done by using the `AttachmentsStorage` after receiving
78
78
use Http\Client\Common\PluginClient;
79
79
use Phpro\ResourceStream\Factory\FileStream;
80
80
use Soap\Psr18Transport\Psr18Transport;
81
- use Soap\Psr18AttachmentMiddleware \Attachment\Attachment;
82
- use Soap\Psr18AttachmentMiddleware \Storage\AttachmentStorage;
81
+ use Soap\Psr18AttachmentsMiddleware \Attachment\Attachment;
82
+ use Soap\Psr18AttachmentsMiddleware \Storage\AttachmentStorage;
83
83
84
84
// You should store this attachment storage in a central place in your application.
85
85
// It is used to store the attachments that are being sent and received.
@@ -106,7 +106,7 @@ composer require php-soap/encoder
106
106
107
107
``` php
108
108
use Soap\Encoding\EncoderRegistry;
109
- use Soap\Psr18AttachmentMiddleware \Encoding\Xop\XopIncludeEncoder
109
+ use Soap\Psr18AttachmentsMiddleware \Encoding\Xop\XopIncludeEncoder
110
110
111
111
// You should store this attachment storage in a central place in your application.
112
112
// It is used to store the attachments that are being sent and received.
@@ -120,7 +120,7 @@ This will allow you to use attachments directly from within your SOAP request an
120
120
121
121
``` php
122
122
use Phpro\ResourceStream\Factory\FileStream;
123
- use Soap\Psr18AttachmentMiddleware \Attachment\Attachment;
123
+ use Soap\Psr18AttachmentsMiddleware \Attachment\Attachment;
124
124
125
125
// Your request can now contain Attachments directly:
126
126
// These attachments will be automatically added to the AttachmentStorageInterface and a <xop:Include > element will be added to your request instead.
0 commit comments