Skip to content

Commit

Permalink
make it framework agnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
Mulkave committed Sep 1, 2015
1 parent 5b99396 commit b34e6ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Vinelab/Rss/Rss.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ class Rss
*/
protected $http;

public function __construct(XML $xml, HttpClient $http)
public function __construct(XML $xml = null, HttpClient $http = null)
{
$this->xml = $xml;
$this->http = $http;
$this->xml = $xml ?: new XML();
$this->http = $http ?: new HttpClient();
}

/**
Expand Down

0 comments on commit b34e6ef

Please sign in to comment.