Skip to content

Commit 42d9386

Browse files
brianmckikmak42
authored andcommitted
first cut of reduced dependency SDK
1 parent 482d51e commit 42d9386

4 files changed

Lines changed: 4 additions & 11 deletions

File tree

.gitmodules

Lines changed: 0 additions & 4 deletions
This file was deleted.

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
"ext-curl": "*",
1111
"ext-json": "*",
1212
"ext-simplexml": "*",
13-
"ext-xmlwriter": "*",
14-
"goetas-webservices/xsd2php-runtime":"^0.2.2"
13+
"ext-xmlwriter": "*"
1514
},
1615
"require-dev": {
1716
"phpunit/phpunit": "~4.0",

lib/net/authorize/util/ANetSensitiveFields.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
namespace net\authorize\util;
33

4-
use JMS\Serializer\SerializerBuilder;
4+
55

66
define("ANET_SENSITIVE_XMLTAGS_JSON_FILE","AuthorizedNetSensitiveTagsConfig.json");
77
define("ANET_SENSITIVE_DATE_CONFIG_CLASS",'net\authorize\util\SensitiveDataConfigType');
@@ -15,7 +15,6 @@ private static function fetchFromConfigFiles(){
1515
if(!class_exists(ANET_SENSITIVE_DATE_CONFIG_CLASS))
1616
exit("Class (".ANET_SENSITIVE_DATE_CONFIG_CLASS.") doesn't exist; can't deserialize json; can't log. Exiting.");
1717

18-
$serializer = SerializerBuilder::create()->build();
1918

2019
$userConfigFilePath = ANET_SENSITIVE_XMLTAGS_JSON_FILE;
2120
$presentUserConfigFile = file_exists($userConfigFilePath);
@@ -27,7 +26,7 @@ private static function fetchFromConfigFiles(){
2726
//read list of tags (and associated regex-patterns and replacements) from .json file
2827
try{
2928
$jsonFileData=file_get_contents($userConfigFilePath);
30-
$sensitiveDataConfig = $serializer->deserialize($jsonFileData, ANET_SENSITIVE_DATE_CONFIG_CLASS, 'json');
29+
$sensitiveDataConfig = json_decode($jsonFileData);
3130

3231
$sensitiveTags = $sensitiveDataConfig->sensitiveTags;
3332
self::$sensitiveStringRegexes = $sensitiveDataConfig->sensitiveStringRegexes;
@@ -47,7 +46,7 @@ private static function fetchFromConfigFiles(){
4746
//read list of tags (and associated regex-patterns and replacements) from .json file
4847
try{
4948
$jsonFileData=file_get_contents($configFilePath);
50-
$sensitiveDataConfig = $serializer->deserialize($jsonFileData, ANET_SENSITIVE_DATE_CONFIG_CLASS, 'json');
49+
$sensitiveDataConfig = json_decode($jsonFileData);
5150

5251
$sensitiveTags = $sensitiveDataConfig->sensitiveTags;
5352
self::$sensitiveStringRegexes = $sensitiveDataConfig->sensitiveStringRegexes;

sample-code-php

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)