We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82e230a commit 4f00786Copy full SHA for 4f00786
src/Parser/Parser.php
@@ -12,6 +12,11 @@ class Parser
12
13
protected $parsers = [];
14
15
+ public function __construct($parsers = null)
16
+ {
17
+ $this->parsers = $parsers === null ? $this->parsers : $parsers;
18
+ }
19
+
20
protected function searchAndReplace(string $pattern, string $replace, string $source): string
21
{
22
while (preg_match($pattern, $source)) {
0 commit comments