Skip to content

Commit

Permalink
Fixed SaxParser factory - added string adapter.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCelavi committed Dec 24, 2017
1 parent 68d52ac commit 02878c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/RunOpenCode/Sax/SaxParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
use RunOpenCode\Sax\StreamAdapter\DomDocumentAdapter;
use RunOpenCode\Sax\StreamAdapter\ResourceAdapter;
use RunOpenCode\Sax\StreamAdapter\SimpleXmlAdapter;
use RunOpenCode\Sax\StreamAdapter\StringAdapter;

/**
* Class SaxParser
Expand Down Expand Up @@ -83,6 +84,7 @@ public static function factory($streamClass = 'GuzzleHttp\\Psr7\\Stream')
new ResourceAdapter($streamClass),
new DomDocumentAdapter($streamClass),
new SimpleXmlAdapter($streamClass),
new StringAdapter($streamClass),
]);
}

Expand Down

0 comments on commit 02878c8

Please sign in to comment.