aboutsummaryrefslogtreecommitdiffhomepage
path: root/Digitigrade
diff options
context:
space:
mode:
authorwinter2024-12-19 21:06:22 +0000
committerwinter2024-12-19 21:06:22 +0000
commit8c4b618b0fd61b82ecaac1c7040eec8dd8d26c94 (patch)
tree7d52e429f319e046230ce8fb2d277a58b74d301d /Digitigrade
parent72b07245f44c73ed41bfcca2465a9ee34426a922 (diff)
can't have protected interface methods silly
Diffstat (limited to 'Digitigrade')
-rw-r--r--Digitigrade/Model/Actor.php2
-rw-r--r--Digitigrade/RpcReceiver.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/Digitigrade/Model/Actor.php b/Digitigrade/Model/Actor.php
index fa08463..799f8c8 100644
--- a/Digitigrade/Model/Actor.php
+++ b/Digitigrade/Model/Actor.php
@@ -96,7 +96,7 @@ class Actor extends PushableModel implements RpcReceiver {
return self::findByUri($uri);
}
- protected function rpcCall(string $method, array $args) {
+ public function rpcCall(string $method, array $args) {
switch ($method) {
case 'follow': // $this is the target, $args[0] is the initiator
$status = $this->requestToFollow ? FollowRelationStatus::PENDING : FollowRelationStatus::ACTIVE;
diff --git a/Digitigrade/RpcReceiver.php b/Digitigrade/RpcReceiver.php
index f776bf2..a6b53c4 100644
--- a/Digitigrade/RpcReceiver.php
+++ b/Digitigrade/RpcReceiver.php
@@ -11,12 +11,12 @@ interface RpcReceiver {
/**
* Makes a remote or local method call on this object.
*
- * Implementors should not expose this method publicly, but should instead create wrapper
+ * Generally you shouldn't use this method directly, but should instead create wrapper
* methods with a nicer interface.
* @param string $method the name of the remote method to call
* @param array $args any arguments
* @return mixed results of the call
* @throws RpcException if there was an error contacting the other server
*/
- protected function rpcCall(string $method, array $args);
+ public function rpcCall(string $method, array $args);
} \ No newline at end of file