Skip to content

Commit 4f03763

Browse files
committed
Allow upgrades of doctrine/annotations
1 parent 19eac2f commit 4f03763

File tree

6 files changed

+28
-41
lines changed

6 files changed

+28
-41
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@
2525
"php": "^7.1|^8.0",
2626
"guzzlehttp/guzzle": "^6.2.3|^7.0.0",
2727
"jms/serializer": "^1.6.2|^3.12.0",
28-
"doctrine/annotations": "^1.9"
28+
"doctrine/annotations": "^1.9|^2.0"
2929
}
3030
}

composer.lock

Lines changed: 26 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/Eversign/Client.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
use Eversign\OAuthTokenRequest;
3131
use Eversign\Business;
3232
use Eversign\Config;
33-
use Doctrine\Common\Annotations\AnnotationRegistry;
3433
use JMS\Serializer\SerializerBuilder;
3534

3635
class Client {
@@ -72,9 +71,6 @@ class Client {
7271
*/
7372
public function __construct($accessKey = null, $businessId = 0, $apiBaseUrl = null, int $apiRequestTimeout = Config::GUZZLE_TIMEOUT)
7473
{
75-
if (!class_exists('Doctrine\Common\Annotations\AnnotationRegistry', false) && class_exists('Doctrine\Common\Annotations\AnnotationRegistry')) {
76-
AnnotationRegistry::registerLoader('class_exists');
77-
}
7874
$this->accessKey = $accessKey;
7975

8076
if($businessId != 0) {

sdk/Eversign/Document.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929
use JMS\Serializer\Annotation\Type;
3030
use JMS\Serializer\SerializerBuilder;
3131
use Eversign\FormField;
32-
use Doctrine\Common\Annotations\AnnotationRegistry;
33-
3432

3533
/**
3634
* Documents are used by Signers to create legally Binding electronic signatures
@@ -285,8 +283,6 @@ class Document {
285283

286284

287285
public function __construct() {
288-
AnnotationRegistry::registerLoader('class_exists');
289-
290286
$this->setSandbox(false);
291287
$this->setIsDraft(false);
292288
$this->setUseSignerOrder(false);

sdk/Eversign/DocumentTemplate.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929

3030
use JMS\Serializer\Annotation\Type;
3131
use JMS\Serializer\SerializerBuilder;
32-
use Doctrine\Common\Annotations\AnnotationRegistry;
3332

3433
/**
3534
* An existing template can be used by making an HTTP POST request to the
@@ -146,9 +145,6 @@ class DocumentTemplate {
146145
private $customRequesterName;
147146

148147
public function __construct($templateId = null) {
149-
if (!class_exists('Doctrine\Common\Annotations\AnnotationRegistry', false) && class_exists('Doctrine\Common\Annotations\AnnotationRegistry')) {
150-
AnnotationRegistry::registerLoader('class_exists');
151-
}
152148
$this->signers = [];
153149
$this->recipients = [];
154150
$this->setSandbox(false);
@@ -240,7 +236,7 @@ public function getFields() {
240236
public function getEmbeddedSigningEnabled() {
241237
return !!$this->embeddedSigningEnabled;
242238
}
243-
239+
244240
public function getCustomRequesterEmail() {
245241
return $this->customRequesterEmail;
246242
}

sdk/Eversign/Info.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
use JMS\Serializer\Annotation\Type;
3030
use JMS\Serializer\SerializerBuilder;
3131
use Eversign\FormField;
32-
use Doctrine\Common\Annotations\AnnotationRegistry;
3332

3433

3534
/**
@@ -61,10 +60,6 @@ class Info {
6160
*/
6261
private $businessUrl;
6362

64-
public function __construct() {
65-
AnnotationRegistry::registerLoader('class_exists');
66-
}
67-
6863
/**
6964
* Converts the document to a JSON String
7065
* @return string

0 commit comments

Comments
 (0)