diff options
| author | winter | 2024-12-19 21:06:22 +0000 |
|---|---|---|
| committer | winter | 2024-12-19 21:06:22 +0000 |
| commit | 8c4b618b0fd61b82ecaac1c7040eec8dd8d26c94 (patch) | |
| tree | 7d52e429f319e046230ce8fb2d277a58b74d301d | |
| parent | 72b07245f44c73ed41bfcca2465a9ee34426a922 (diff) | |
can't have protected interface methods silly
| -rw-r--r-- | Digitigrade/Model/Actor.php | 2 | ||||
| -rw-r--r-- | Digitigrade/RpcReceiver.php | 4 |
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 |
