From: Christian Weiske Date: Tue, 27 Nov 2012 05:35:39 +0000 (+0100) Subject: use new pingback2 class structure/naming X-Git-Url: https://git.cweiske.de/stapibas.git/commitdiff_plain/691e371946c32283206b15600dd09f9464819870?hp=f61579a87a437d323573d29401092df264cca4c2;ds=sidebyside use new pingback2 class structure/naming --- diff --git a/www/xmlrpc.php b/www/xmlrpc.php index b022011..52bdf6e 100644 --- a/www/xmlrpc.php +++ b/www/xmlrpc.php @@ -22,8 +22,8 @@ function __autoload($className) $db = new PDO($dbdsn, $dbuser, $dbpass); class PingbackStorage - implements \PEAR2\Services\Pingback2\Server_Callback_IStorage, - \PEAR2\Services\Pingback2\Server_Callback_ILink + implements \PEAR2\Services\Pingback\Server\Callback\IStorage, + \PEAR2\Services\Pingback\Server\Callback\ILink { public function __construct(PDO $db) { @@ -72,7 +72,7 @@ class PingbackStorage } class PingbackMailer - implements \PEAR2\Services\Pingback2\Server_Callback_IStorage + implements \PEAR2\Services\Pingback\Server\Callback\IStorage { public function storePingback( $target, $source, $sourceBody, \HTTP_Request2_Response $res @@ -90,7 +90,7 @@ class PingbackMailer } } -$s = new \PEAR2\Services\Pingback2\Server(); +$s = new \PEAR2\Services\Pingback\Server(); $s->addCallback(new PingbackStorage($db)); $s->addCallback(new PingbackMailer()); $s->run();