1: <?php
2: /**
3: * This file is part of the FastFeed package.
4: *
5: * (c) Daniel González <daniel@desarrolla2.com>
6: *
7: * For the full copyright and license information, please view the LICENSE
8: * file that was distributed with this source code.
9: */
10: namespace FastFeed;
11:
12: use FastFeed\Parser\AtomParser;
13: use FastFeed\Parser\RSSParser;
14: use FastFeed\Logger\Logger;
15: use Guzzle\Http\Client;
16:
17: /**
18: * Factory
19: */
20: abstract class Factory
21: {
22: /**
23: * @return FastFeed
24: */
25: public static function create()
26: {
27: $fastFeed = new FastFeed(new Client(), new Logger(false));
28: $fastFeed->pushParser(new RSSParser());
29: $fastFeed->pushParser(new AtomParser());
30:
31: return $fastFeed;
32: }
33: }
34: