Cleaned files
This commit is contained in:
@ -38,11 +38,5 @@ class ConverterRepository
|
||||
|
||||
public function registerTypeConverterServices(ContainerInterface $container)
|
||||
{
|
||||
/*
|
||||
foreach($container->findTaggedServiceIds('webservice.converter') as $id => $attributes)
|
||||
{
|
||||
$this->addTypeConverter($container->get($id));
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
}
|
@ -27,4 +27,4 @@ interface TypeConverterInterface
|
||||
function convertXmlToPhp(SoapRequest $request, $data);
|
||||
|
||||
function convertPhpToXml(SoapResponse $response, $data);
|
||||
}
|
||||
}
|
@ -42,8 +42,7 @@ class XopIncludeTypeConverter implements TypeConverterInterface
|
||||
|
||||
$ref = $include->getAttribute('href');
|
||||
|
||||
if(String::startsWith($ref, 'cid:'))
|
||||
{
|
||||
if(String::startsWith($ref, 'cid:')) {
|
||||
$cid = urldecode(substr($ref, 4));
|
||||
|
||||
return $request->getSoapAttachments()->get($cid)->getContent();
|
||||
@ -56,4 +55,4 @@ class XopIncludeTypeConverter implements TypeConverterInterface
|
||||
{
|
||||
return $data;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user