Skip to content

Commit c691e73

Browse files
author
Harrison Ifeanyichukwu
committed
feat: use the Parser trait, parse the feed
1 parent b0325bd commit c691e73

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Feeds/BaseFeed.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@
55

66
use Forensic\FeedParser\Enums\FeedTypes;
77
use Forensic\FeedParser\XPath;
8+
use Forensic\FeedParser\Traits\Parser;
89

910
class BaseFeed
1011
{
12+
use Parser;
13+
1114
/**
1215
* feed type
1316
*/
@@ -94,5 +97,6 @@ public function __construct(FeedTypes $feed_type, string $default_lang, XPath $x
9497

9598
//register namespaces and parse the feed
9699
$xpath->registerNamespaces($namespaces);
100+
$this->parse($xpath, $property_selectors, $remove_styles, $remove_scripts);
97101
}
98102
}

0 commit comments

Comments
 (0)