Skip to content

Commit

Permalink
Merge pull request #1 from wollanup/master
Browse files Browse the repository at this point in the history
fix send MTOM attachment to client
  • Loading branch information
tomasz-kusy authored Jun 24, 2021
2 parents 36ba78c + 1e78dca commit 80de11b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SoapServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,6 @@ public function getSoapKernel()
private function configureMime(array &$options)
{
if (isset($options['attachment_type']) && Helper::ATTACHMENTS_TYPE_BASE64 !== $options['attachment_type']) {
// register mime filter in SoapKernel
$mimeFilter = new MimeFilter($options['attachment_type']);
$this->soapKernel->registerFilter($mimeFilter);
// configure type converter
if (Helper::ATTACHMENTS_TYPE_SWA === $options['attachment_type']) {
$converter = new SwaTypeConverter();
Expand All @@ -151,6 +148,9 @@ private function configureMime(array &$options)
$converter = new MtomTypeConverter();
$converter->setKernel($this->soapKernel);
}
// register mime filter in SoapKernel
$mimeFilter = new MimeFilter($options['attachment_type']);
$this->soapKernel->registerFilter($mimeFilter);
// configure typemap
if (!isset($options['typemap'])) {
$options['typemap'] = array();
Expand Down

0 comments on commit 80de11b

Please sign in to comment.