Skip to content

Commit

Permalink
Merge pull request #25 from riccardonar/patch-1
Browse files Browse the repository at this point in the history
Add FaultHandler
  • Loading branch information
goetas authored Jul 30, 2018
2 parents 6d51a2b + 3da04b0 commit 049195e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Builder/SoapContainerBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

use GoetasWebservices\SoapServices\SoapClient\DependencyInjection\SoapClientExtension;
use GoetasWebservices\SoapServices\SoapClient\DependencyInjection\Compiler\CleanupPass;
use GoetasWebservices\SoapServices\SoapClient\Envelope\Handler\FaultHandler;
use GoetasWebservices\Xsd\XsdToPhpRuntime\Jms\Handler\BaseTypesHandler;
use GoetasWebservices\Xsd\XsdToPhpRuntime\Jms\Handler\XmlSchemaDateHandler;
use JMS\Serializer\SerializerBuilder;
Expand Down Expand Up @@ -202,6 +203,7 @@ public static function createSerializerBuilder(array $jmsMetadata, callable $cal
$serializerBuilder->addDefaultHandlers();
$handler->registerSubscribingHandler(new BaseTypesHandler()); // XMLSchema List handling
$handler->registerSubscribingHandler(new XmlSchemaDateHandler()); // XMLSchema date handling
$handler->registerSubscribingHandler(new FaultHandler());
if ($callback) {
call_user_func($callback, $handler);
}
Expand Down

0 comments on commit 049195e

Please sign in to comment.