git.cweiske.de
/
stapibas.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
f61579a
)
use new pingback2 class structure/naming
author
Christian Weiske
<cweiske@cweiske.de>
Tue, 27 Nov 2012 05:35:39 +0000
(06:35 +0100)
committer
Christian Weiske
<cweiske@cweiske.de>
Tue, 27 Nov 2012 05:35:39 +0000
(06:35 +0100)
www/xmlrpc.php
patch
|
blob
|
history
diff --git
a/www/xmlrpc.php
b/www/xmlrpc.php
index b022011c8d7af4c184f031a5eb362edca1233e5c..52bdf6e0d7e0f506aaa83eb135678761dbb9f1d9 100644
(file)
--- a/
www/xmlrpc.php
+++ b/
www/xmlrpc.php
@@
-22,8
+22,8
@@
function __autoload($className)
$db = new PDO($dbdsn, $dbuser, $dbpass);
class PingbackStorage
$db = new PDO($dbdsn, $dbuser, $dbpass);
class PingbackStorage
- implements \PEAR2\Services\Pingback
2\Server_Callback_
IStorage,
- \PEAR2\Services\Pingback
2\Server_Callback_
ILink
+ implements \PEAR2\Services\Pingback
\Server\Callback\
IStorage,
+ \PEAR2\Services\Pingback
\Server\Callback\
ILink
{
public function __construct(PDO $db)
{
{
public function __construct(PDO $db)
{
@@
-72,7
+72,7
@@
class PingbackStorage
}
class PingbackMailer
}
class PingbackMailer
- implements \PEAR2\Services\Pingback
2\Server_Callback_
IStorage
+ implements \PEAR2\Services\Pingback
\Server\Callback\
IStorage
{
public function storePingback(
$target, $source, $sourceBody, \HTTP_Request2_Response $res
{
public function storePingback(
$target, $source, $sourceBody, \HTTP_Request2_Response $res
@@
-90,7
+90,7
@@
class PingbackMailer
}
}
}
}
-$s = new \PEAR2\Services\Pingback
2
\Server();
+$s = new \PEAR2\Services\Pingback\Server();
$s->addCallback(new PingbackStorage($db));
$s->addCallback(new PingbackMailer());
$s->run();
$s->addCallback(new PingbackStorage($db));
$s->addCallback(new PingbackMailer());
$s->run();