Skip to content

Commit 1edd097

Browse files
author
Oliver Müller
committed
LIBRARY-152: renamed Shopgate Library to Shopgate Cart Integration SDK
1 parent 4e1af70 commit 1edd097

File tree

5 files changed

+23
-23
lines changed

5 files changed

+23
-23
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Shopgate Library
1+
# Shopgate Cart Integration SDK
22

33
[![GitHub license](http://dmlc.github.io/img/apache2.svg)](./LICENSE)
44

5-
The Shopgate Library is a compilation of classes to manage the communication between your shop system and Shopgate via the Shopgate Plugin API and the Shopgate Merchant API. The Library provides methods for processing incoming and outgoing requests, configuration options and for handling errors.
5+
The Shopgate Cart Integration SDK is a compilation of classes to manage the communication between your shop system and Shopgate via the Shopgate Plugin API and the Shopgate Merchant API. The SDK provides methods for processing incoming and outgoing requests, configuration options and for handling errors.
66

77
## Getting Started
88
#### Via Composer
@@ -16,7 +16,7 @@ Include ```shopgate.php``` from the root folder of the package:
1616
```require_once 'vendor/shopgate/library/shopgate.php';```
1717

1818
## Developing a Shopgate Integration
19-
If you want to know more about how the Shopgate Library works have a look into the [documentation](http://developer.shopgate.com/library).
19+
If you want to know more about how the Shopgate Cart Integration SDK works have a look into the [documentation](http://developer.shopgate.com/library).
2020

2121
Wanna see all the code? Try the [example plugin](http://developer.shopgate.com/example_plugin).
2222

@@ -38,6 +38,6 @@ Shopgate offers everything online retailers need to be successful in mobile. Our
3838

3939
## License
4040

41-
The Shopgate Library is available under the Apache License, Version 2.0.
41+
The Shopgate Cart Integration SDK is available under the Apache License, Version 2.0.
4242

43-
See the [LICENSE.md](./LICENSE.md) file for more information.
43+
See the [LICENSE.md](./LICENSE.md) file for more information.

composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "shopgate/library",
3-
"description": "A PHP framework supporting the implementation of the Shopgate Plugin API and abstracts access to the Shopgate Merchant API.",
4-
"homepage": "https://github.com/shopgate/interface-library",
2+
"name": "shopgate/cart-integration-sdk",
3+
"description": "A PHP framework supporting the implementation of the Shopgate Plugin API and abstracting access to the Shopgate Merchant API.",
4+
"homepage": "https://github.com/shopgate/cart-integration-sdk",
55
"license": "Apache-2.0",
66
"config": {
77
"platform": {

src/apis.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3177,7 +3177,7 @@ public function deleteItemFromCategory($itemNumber, $categoryNumber);
31773177
/**
31783178
* This class provides methods to check and generate authentication strings.
31793179
*
3180-
* It is used internally by the Shopgate Library to send requests or check incoming requests.
3180+
* It is used internally by the Shopgate Cart Integration SDK to send requests or check incoming requests.
31813181
*
31823182
* To check authentication on incoming request it accesses the $_SERVER variable which should contain the required X
31833183
* header fields for authentication.

src/configuration.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ public function loadArray(array $data = array())
707707
* The configuration file must be a PHP script defining an indexed array called $shopgate_config
708708
* containing the desired configuration values to set. If that is not the case, an exception is thrown
709709
*
710-
* @param string $path The path to the configuration file or nothing to load the default Shopgate Library
710+
* @param string $path The path to the configuration file or nothing to load the default Shopgate Cart Integration SDK
711711
* configuration files.
712712
*
713713
* @throws ShopgateLibraryException in case a configuration file could not be loaded or the $shopgate_config is not

src/core.php

+13-13
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ function ShopgateErrorHandler($errno, $errstr, $errfile, $errline, $errContext)
125125
}
126126

127127
/**
128-
* Exception type for errors within the Shopgate Library.
128+
* Exception type for errors within the Shopgate Cart Integration SDK.
129129
*
130-
* This is used by the Shopgate Library and should be used by plugins and their components. Predefined error
130+
* This is used by the Shopgate Cart Integration SDK and should be used by plugins and their components. Predefined error
131131
* codes and messages are to be used. If not suitable, a custom message can be passed which results in error
132132
* code 999 (unknown error code) with the message appended. Error code, message, time, additional information
133133
* and part of the stack trace will be logged automatically on construction of a ShopgateLibraryException.
@@ -587,7 +587,7 @@ public function getResponse()
587587
}
588588

589589
/**
590-
* Builds the Shopgate Library object graphs for different purposes.
590+
* Builds the Shopgate Cart Integration SDK object graphs for different purposes.
591591
*
592592
* @author Shopgate GmbH, 35510 Butzbach, DE
593593
*/
@@ -710,7 +710,7 @@ public function setMemoryLoggingSizeUnit($unit = 'MB')
710710
}
711711

712712
/**
713-
* Builds the Shopgate Library object graph for a given ShopgatePlugin object.
713+
* Builds the Shopgate Cart Integration SDK object graph for a given ShopgatePlugin object.
714714
*
715715
* This initializes all necessary objects of the library, wires them together and injects them into
716716
* the plugin class via its set* methods.
@@ -814,7 +814,7 @@ public function buildStackTraceGenerator()
814814
}
815815

816816
/**
817-
* Builds the Shopgate Library object graph for ShopgateMerchantApi and returns the instance.
817+
* Builds the Shopgate Cart Integration SDK object graph for ShopgateMerchantApi and returns the instance.
818818
*
819819
* @return ShopgateMerchantApi
820820
*/
@@ -845,7 +845,7 @@ public function buildMerchantApi()
845845
}
846846

847847
/**
848-
* Builds the Shopgate Library object graph for Shopgate mobile redirect and returns the instance.
848+
* Builds the Shopgate Cart Integration SDK object graph for Shopgate mobile redirect and returns the instance.
849849
*
850850
* @return ShopgateMobileRedirect
851851
*
@@ -882,7 +882,7 @@ public function buildRedirect()
882882
}
883883

884884
/**
885-
* Builds the Shopgate Library object graph for Shopgate mobile redirect and returns the instance.
885+
* Builds the Shopgate Cart Integration SDK object graph for Shopgate mobile redirect and returns the instance.
886886
*
887887
* @param string $userAgent The requesting entity's user agent, e.g. $_SERVER['HTTP_USER_AGENT']
888888
* @param array $get [string, mixed] A copy of $_GET or the query string in the form of $_GET.
@@ -1021,7 +1021,7 @@ private function determineErrorReporting($request)
10211021
}
10221022

10231023
/**
1024-
* ShopgateObject acts as root class of the Shopgate Library.
1024+
* ShopgateObject acts as root class of the Shopgate Cart Integration SDK.
10251025
*
10261026
* It provides basic functionality like logging, camelization of strings, JSON de- and encoding etc.<br />
10271027
* <br />
@@ -1147,7 +1147,7 @@ private function camelizeHelper($matches)
11471147
/**
11481148
* Creates a JSON string from any passed value.
11491149
*
1150-
* If json_encode() exists it's done by that, otherwise an external class provided with the Shopgate Library is
1150+
* If json_encode() exists it's done by that, otherwise an external class provided with the Shopgate Cart Integration SDK is
11511151
* used.
11521152
*
11531153
* @param mixed $value
@@ -1170,7 +1170,7 @@ public function jsonEncode($value)
11701170
/**
11711171
* Creates a variable, array or object from any passed JSON string.
11721172
*
1173-
* If json_encode() exists it's done by that, otherwise an external class provided with the Shopgate Library is
1173+
* If json_encode() exists it's done by that, otherwise an external class provided with the Shopgate Cart Integration SDK is
11741174
* used.
11751175
*
11761176
* @param $json
@@ -1469,7 +1469,7 @@ protected function getMemoryUsageString()
14691469
/**
14701470
* This class acts as super class for plugin implementations and provides some basic functionality.
14711471
*
1472-
* A plugin implementation using the Shopgate Library must be derived from this class. The abstract methods are
1472+
* A plugin implementation using the Shopgate Cart Integration SDK must be derived from this class. The abstract methods are
14731473
* callback methods for shop system specific operations such as retrieval of customer or order information, adding or
14741474
* updating orders etc.
14751475
*
@@ -2288,7 +2288,7 @@ final protected function executeLoaders(array $loaders)
22882288
try {
22892289
$result = call_user_func_array(array($this, $method), $arguments);
22902290
} catch (ShopgateLibraryException $e) {
2291-
// pass through known Shopgate Library Exceptions
2291+
// pass through known Shopgate Cart Integration SDK Exceptions
22922292
throw $e;
22932293
} catch (Exception $e) {
22942294
$msg = "An unknown exception has been thrown in loader method \"{$method}\". Memory usage "
@@ -3087,7 +3087,7 @@ protected function onFinish()
30873087
}
30883088

30893089
/**
3090-
* This class provides basic functionality for the Shopgate Library's container objects.
3090+
* This class provides basic functionality for the Shopgate Cart Integration SDK's container objects.
30913091
*
30923092
* It provides initialization with an array, conversion to an array, utf-8 decoding of the container's properties etc.
30933093
*

0 commit comments

Comments
 (0)