From 9ceb9e43b261fd4d1be4a6f8f3d0d078ae861823 Mon Sep 17 00:00:00 2001 From: glavvra4 Date: Wed, 3 Jan 2024 04:54:11 +0300 Subject: [PATCH] =?UTF-8?q?Fix=20invalid=20namespaces=20-=20=D0=98=D1=81?= =?UTF-8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D1=8B=20=D0=BD=D0=B5?= =?UTF-8?q?=D0=B9=D0=BC=D1=81=D0=BF=D0=B5=D0=B9=D1=81=D1=8B=20=D0=B4=D0=BB?= =?UTF-8?q?=D1=8F=20VKCallbackApiLongPollExecutor.php=20=D0=B8=20VKCallbac?= =?UTF-8?q?kApiServerHandler.php=20=D0=B2=20=D1=81=D0=BE=D0=BE=D1=82=D0=B2?= =?UTF-8?q?=D0=B5=D1=82=D1=81=D1=82=D0=B2=D0=B8=D0=B8=20=D1=81=20PSR-4=20-?= =?UTF-8?q?=20=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=20REA?= =?UTF-8?q?DME.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 5 ++--- src/VK/CallbackApi/VKCallbackApiLongPollExecutor.php | 2 +- src/VK/CallbackApi/VKCallbackApiServerHandler.php | 4 +--- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 90a257c..515d58c 100755 --- a/README.md +++ b/README.md @@ -280,7 +280,7 @@ class CallbackApiMyHandler extends VK\CallbackApi\VKCallbackApiHandler { ``` To start listening to LongPoll events, create an instance of your CallbackApiMyHandler class, instance of -VK\CallbackApi\LongPoll\VKCallbackApiLongPollExecutor class and call method listen(): +VK\CallbackApi\VKCallbackApiLongPollExecutor class and call method listen(): ```php $vk = new \VK\Client\VKApiClient(); @@ -345,8 +345,7 @@ $data = json_decode(file_get_contents('php://input')); $handler->parse($data); ``` -To handle events you need to override methods from VK\CallbackApi\Server\VKCallbackApiServerHandler class as shown +To handle events you need to override methods from VK\CallbackApi\VKCallbackApiServerHandler class as shown above. `confirmation` event handler has 2 arguments: group id, and secret key. You need to override this method. - diff --git a/src/VK/CallbackApi/VKCallbackApiLongPollExecutor.php b/src/VK/CallbackApi/VKCallbackApiLongPollExecutor.php index 87a3622..26c831f 100644 --- a/src/VK/CallbackApi/VKCallbackApiLongPollExecutor.php +++ b/src/VK/CallbackApi/VKCallbackApiLongPollExecutor.php @@ -1,6 +1,6 @@