File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Update your `composer` require block:
1010
1111# Usage
1212``` php
13- use pubsubhubbub\subscriber \Subscriber;
13+ use \Pubsubhubbub\Subscriber \Subscriber;
1414
1515$hub_url = "http://pubsubhubbub.appspot.com";
1616$callback_url = "put your own endpoint here";
Original file line number Diff line number Diff line change 1515 "php" : " ~5.4 || ~7.0"
1616 },
1717 "autoload" : {
18- "psr-4" : { "pubsubhubbub \\ subscriber \\ " : " src/" }
18+ "psr-4" : { "Pubsubhubbub \\ Subscriber \\ " : " src/" }
1919 }
2020}
Original file line number Diff line number Diff line change 77
88include ("./src/Subscriber.php " );
99
10+ use \Pubsubhubbub \Subscriber \Subscriber ;
11+
1012$ hub_url = "http://pubsubhubbub.appspot.com " ;
1113$ callback_url = "put your own endpoint here " ;
1214
1315$ feed = "http://feeds.feedburner.com/onlineaspect " ;
1416
1517// create a new subscriber
16- $ s = new Pubsubhubbub \ Subscriber \ Subscriber ($ hub_url , $ callback_url );
18+ $ s = new Subscriber ($ hub_url , $ callback_url );
1719
1820// subscribe to a feed
1921$ s ->subscribe ($ feed );
You can’t perform that action at this time.
0 commit comments