Beispiel #1
0
 function fromXml($ex = null, $asDom = true)
 {
     $f = $this->f;
     $context = $ex instanceof MatcherContext ? $ex : new MatcherContext($ex);
     return new Matcher(function ($html) use($asDom, $context, $f) {
         return $f(Matcher::loadXML($html, $asDom), $context);
     });
 }