From 1de8c34b93e9cc4e0d13085793f1319dd1e2801f Mon Sep 17 00:00:00 2001 From: Jakub Huska Date: Fri, 17 Feb 2017 16:25:43 +0100 Subject: [PATCH 1/2] FIX on change event for ident request --- composer.json | 2 +- .../Product/Services/IdentResultsService.php | 8 ++++++++ src/SecucardConnect/SecucardConnect.php | 4 ++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 0e6825b..9865b83 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "description": "secucard connect PHP client SDK", "license": "Apache-2.0", "homepage": "https://github.com/secucard/secucard-connect-php-sdk", - "version": "v1.1.0", + "version": "v1.1.1", "require": { "php": ">=5.5.0", "guzzlehttp/guzzle": "~6.0", diff --git a/src/SecucardConnect/Product/Services/IdentResultsService.php b/src/SecucardConnect/Product/Services/IdentResultsService.php index e87c135..298d2ec 100644 --- a/src/SecucardConnect/Product/Services/IdentResultsService.php +++ b/src/SecucardConnect/Product/Services/IdentResultsService.php @@ -93,6 +93,14 @@ public function onIdentRequestsChanged($fn) */ class IdentResChanged extends DefaultEventHandler { + /** + * Overwrite the accept function, so the event with identrequest can be handled by identresults service + */ + protected function accept(Event $event) + { + return $event->target === 'services.identrequests' && $event->type === $this->eventType; + } + /** * @param Event $event * @throws ClientError diff --git a/src/SecucardConnect/SecucardConnect.php b/src/SecucardConnect/SecucardConnect.php index 08ee426..498ae37 100644 --- a/src/SecucardConnect/SecucardConnect.php +++ b/src/SecucardConnect/SecucardConnect.php @@ -75,10 +75,10 @@ final class SecucardConnect private $eventDispatcher; /** - * Api version + * SKD version * @var string */ - const VERSION = '1.1.0'; + const VERSION = '1.1.1'; const HTTP_STATUS_CODE_OK = 200; From f00e35d30fa62a7f1f0a2d7c634179840f6e9e4a Mon Sep 17 00:00:00 2001 From: Rico Simlinger Date: Fri, 17 Feb 2017 16:26:54 +0100 Subject: [PATCH 2/2] FIX version --- composer.json | 2 +- src/SecucardConnect/SecucardConnect.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 9865b83..4ab8af6 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "description": "secucard connect PHP client SDK", "license": "Apache-2.0", "homepage": "https://github.com/secucard/secucard-connect-php-sdk", - "version": "v1.1.1", + "version": "v1.1.2", "require": { "php": ">=5.5.0", "guzzlehttp/guzzle": "~6.0", diff --git a/src/SecucardConnect/SecucardConnect.php b/src/SecucardConnect/SecucardConnect.php index 498ae37..372c8a7 100644 --- a/src/SecucardConnect/SecucardConnect.php +++ b/src/SecucardConnect/SecucardConnect.php @@ -78,7 +78,7 @@ final class SecucardConnect * SKD version * @var string */ - const VERSION = '1.1.1'; + const VERSION = '1.1.2'; const HTTP_STATUS_CODE_OK = 200;