diff --git a/wuunderconnector/vendor/autoload.php b/wuunderconnector/vendor/autoload.php deleted file mode 100644 index 3b62638..0000000 --- a/wuunderconnector/vendor/autoload.php +++ /dev/null @@ -1,7 +0,0 @@ - - * Jordi Boggiano - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Composer\Autoload; - -/** - * ClassLoader implements a PSR-0, PSR-4 and classmap class loader. - * - * $loader = new \Composer\Autoload\ClassLoader(); - * - * // register classes with namespaces - * $loader->add('Symfony\Component', __DIR__.'/component'); - * $loader->add('Symfony', __DIR__.'/framework'); - * - * // activate the autoloader - * $loader->register(); - * - * // to enable searching the include path (eg. for PEAR packages) - * $loader->setUseIncludePath(true); - * - * In this example, if you try to use a class in the Symfony\Component - * namespace or one of its children (Symfony\Component\Console for instance), - * the autoloader will first look for the class under the component/ - * directory, and it will then fallback to the framework/ directory if not - * found before giving up. - * - * This class is loosely based on the Symfony UniversalClassLoader. - * - * @author Fabien Potencier - * @author Jordi Boggiano - * @see http://www.php-fig.org/psr/psr-0/ - * @see http://www.php-fig.org/psr/psr-4/ - */ -class ClassLoader -{ - // PSR-4 - private $prefixLengthsPsr4 = array(); - private $prefixDirsPsr4 = array(); - private $fallbackDirsPsr4 = array(); - - // PSR-0 - private $prefixesPsr0 = array(); - private $fallbackDirsPsr0 = array(); - - private $useIncludePath = false; - private $classMap = array(); - private $classMapAuthoritative = false; - private $missingClasses = array(); - private $apcuPrefix; - - public function getPrefixes() - { - if (!empty($this->prefixesPsr0)) { - return call_user_func_array('array_merge', $this->prefixesPsr0); - } - - return array(); - } - - public function getPrefixesPsr4() - { - return $this->prefixDirsPsr4; - } - - public function getFallbackDirs() - { - return $this->fallbackDirsPsr0; - } - - public function getFallbackDirsPsr4() - { - return $this->fallbackDirsPsr4; - } - - public function getClassMap() - { - return $this->classMap; - } - - /** - * @param array $classMap Class to filename map - */ - public function addClassMap(array $classMap) - { - if ($this->classMap) { - $this->classMap = array_merge($this->classMap, $classMap); - } else { - $this->classMap = $classMap; - } - } - - /** - * Registers a set of PSR-0 directories for a given prefix, either - * appending or prepending to the ones previously set for this prefix. - * - * @param string $prefix The prefix - * @param array|string $paths The PSR-0 root directories - * @param bool $prepend Whether to prepend the directories - */ - public function add($prefix, $paths, $prepend = false) - { - if (!$prefix) { - if ($prepend) { - $this->fallbackDirsPsr0 = array_merge( - (array) $paths, - $this->fallbackDirsPsr0 - ); - } else { - $this->fallbackDirsPsr0 = array_merge( - $this->fallbackDirsPsr0, - (array) $paths - ); - } - - return; - } - - $first = $prefix[0]; - if (!isset($this->prefixesPsr0[$first][$prefix])) { - $this->prefixesPsr0[$first][$prefix] = (array) $paths; - - return; - } - if ($prepend) { - $this->prefixesPsr0[$first][$prefix] = array_merge( - (array) $paths, - $this->prefixesPsr0[$first][$prefix] - ); - } else { - $this->prefixesPsr0[$first][$prefix] = array_merge( - $this->prefixesPsr0[$first][$prefix], - (array) $paths - ); - } - } - - /** - * Registers a set of PSR-4 directories for a given namespace, either - * appending or prepending to the ones previously set for this namespace. - * - * @param string $prefix The prefix/namespace, with trailing '\\' - * @param array|string $paths The PSR-4 base directories - * @param bool $prepend Whether to prepend the directories - * - * @throws \InvalidArgumentException - */ - public function addPsr4($prefix, $paths, $prepend = false) - { - if (!$prefix) { - // Register directories for the root namespace. - if ($prepend) { - $this->fallbackDirsPsr4 = array_merge( - (array) $paths, - $this->fallbackDirsPsr4 - ); - } else { - $this->fallbackDirsPsr4 = array_merge( - $this->fallbackDirsPsr4, - (array) $paths - ); - } - } elseif (!isset($this->prefixDirsPsr4[$prefix])) { - // Register directories for a new namespace. - $length = strlen($prefix); - if ('\\' !== $prefix[$length - 1]) { - throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); - } - $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; - $this->prefixDirsPsr4[$prefix] = (array) $paths; - } elseif ($prepend) { - // Prepend directories for an already registered namespace. - $this->prefixDirsPsr4[$prefix] = array_merge( - (array) $paths, - $this->prefixDirsPsr4[$prefix] - ); - } else { - // Append directories for an already registered namespace. - $this->prefixDirsPsr4[$prefix] = array_merge( - $this->prefixDirsPsr4[$prefix], - (array) $paths - ); - } - } - - /** - * Registers a set of PSR-0 directories for a given prefix, - * replacing any others previously set for this prefix. - * - * @param string $prefix The prefix - * @param array|string $paths The PSR-0 base directories - */ - public function set($prefix, $paths) - { - if (!$prefix) { - $this->fallbackDirsPsr0 = (array) $paths; - } else { - $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths; - } - } - - /** - * Registers a set of PSR-4 directories for a given namespace, - * replacing any others previously set for this namespace. - * - * @param string $prefix The prefix/namespace, with trailing '\\' - * @param array|string $paths The PSR-4 base directories - * - * @throws \InvalidArgumentException - */ - public function setPsr4($prefix, $paths) - { - if (!$prefix) { - $this->fallbackDirsPsr4 = (array) $paths; - } else { - $length = strlen($prefix); - if ('\\' !== $prefix[$length - 1]) { - throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); - } - $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; - $this->prefixDirsPsr4[$prefix] = (array) $paths; - } - } - - /** - * Turns on searching the include path for class files. - * - * @param bool $useIncludePath - */ - public function setUseIncludePath($useIncludePath) - { - $this->useIncludePath = $useIncludePath; - } - - /** - * Can be used to check if the autoloader uses the include path to check - * for classes. - * - * @return bool - */ - public function getUseIncludePath() - { - return $this->useIncludePath; - } - - /** - * Turns off searching the prefix and fallback directories for classes - * that have not been registered with the class map. - * - * @param bool $classMapAuthoritative - */ - public function setClassMapAuthoritative($classMapAuthoritative) - { - $this->classMapAuthoritative = $classMapAuthoritative; - } - - /** - * Should class lookup fail if not found in the current class map? - * - * @return bool - */ - public function isClassMapAuthoritative() - { - return $this->classMapAuthoritative; - } - - /** - * APCu prefix to use to cache found/not-found classes, if the extension is enabled. - * - * @param string|null $apcuPrefix - */ - public function setApcuPrefix($apcuPrefix) - { - $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null; - } - - /** - * The APCu prefix in use, or null if APCu caching is not enabled. - * - * @return string|null - */ - public function getApcuPrefix() - { - return $this->apcuPrefix; - } - - /** - * Registers this instance as an autoloader. - * - * @param bool $prepend Whether to prepend the autoloader or not - */ - public function register($prepend = false) - { - spl_autoload_register(array($this, 'loadClass'), true, $prepend); - } - - /** - * Unregisters this instance as an autoloader. - */ - public function unregister() - { - spl_autoload_unregister(array($this, 'loadClass')); - } - - /** - * Loads the given class or interface. - * - * @param string $class The name of the class - * @return bool|null True if loaded, null otherwise - */ - public function loadClass($class) - { - if ($file = $this->findFile($class)) { - includeFile($file); - - return true; - } - } - - /** - * Finds the path to the file where the class is defined. - * - * @param string $class The name of the class - * - * @return string|false The path if found, false otherwise - */ - public function findFile($class) - { - // class map lookup - if (isset($this->classMap[$class])) { - return $this->classMap[$class]; - } - if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) { - return false; - } - if (null !== $this->apcuPrefix) { - $file = apcu_fetch($this->apcuPrefix.$class, $hit); - if ($hit) { - return $file; - } - } - - $file = $this->findFileWithExtension($class, '.php'); - - // Search for Hack files if we are running on HHVM - if (false === $file && defined('HHVM_VERSION')) { - $file = $this->findFileWithExtension($class, '.hh'); - } - - if (null !== $this->apcuPrefix) { - apcu_add($this->apcuPrefix.$class, $file); - } - - if (false === $file) { - // Remember that this class does not exist. - $this->missingClasses[$class] = true; - } - - return $file; - } - - private function findFileWithExtension($class, $ext) - { - // PSR-4 lookup - $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; - - $first = $class[0]; - if (isset($this->prefixLengthsPsr4[$first])) { - $subPath = $class; - while (false !== $lastPos = strrpos($subPath, '\\')) { - $subPath = substr($subPath, 0, $lastPos); - $search = $subPath . '\\'; - if (isset($this->prefixDirsPsr4[$search])) { - $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1); - foreach ($this->prefixDirsPsr4[$search] as $dir) { - if (file_exists($file = $dir . $pathEnd)) { - return $file; - } - } - } - } - } - - // PSR-4 fallback dirs - foreach ($this->fallbackDirsPsr4 as $dir) { - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { - return $file; - } - } - - // PSR-0 lookup - if (false !== $pos = strrpos($class, '\\')) { - // namespaced class name - $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1) - . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); - } else { - // PEAR-like class name - $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; - } - - if (isset($this->prefixesPsr0[$first])) { - foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { - if (0 === strpos($class, $prefix)) { - foreach ($dirs as $dir) { - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { - return $file; - } - } - } - } - } - - // PSR-0 fallback dirs - foreach ($this->fallbackDirsPsr0 as $dir) { - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { - return $file; - } - } - - // PSR-0 include paths. - if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) { - return $file; - } - - return false; - } -} - -/** - * Scope isolated include. - * - * Prevents access to $this/self from included files. - */ -function includeFile($file) -{ - include $file; -} diff --git a/wuunderconnector/vendor/composer/LICENSE b/wuunderconnector/vendor/composer/LICENSE deleted file mode 100644 index f27399a..0000000 --- a/wuunderconnector/vendor/composer/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ - -Copyright (c) Nils Adermann, Jordi Boggiano - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is furnished -to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - diff --git a/wuunderconnector/vendor/composer/autoload_classmap.php b/wuunderconnector/vendor/composer/autoload_classmap.php deleted file mode 100644 index 7a91153..0000000 --- a/wuunderconnector/vendor/composer/autoload_classmap.php +++ /dev/null @@ -1,9 +0,0 @@ - array($vendorDir . '/wuunder/connector-php/src/Wuunder'), -); diff --git a/wuunderconnector/vendor/composer/autoload_real.php b/wuunderconnector/vendor/composer/autoload_real.php deleted file mode 100644 index 369f246..0000000 --- a/wuunderconnector/vendor/composer/autoload_real.php +++ /dev/null @@ -1,52 +0,0 @@ -= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); - if ($useStaticLoader) { - require_once __DIR__ . '/autoload_static.php'; - - call_user_func(\Composer\Autoload\ComposerStaticInit71a5c8f625682456019e15a22217f588::getInitializer($loader)); - } else { - $map = require __DIR__ . '/autoload_namespaces.php'; - foreach ($map as $namespace => $path) { - $loader->set($namespace, $path); - } - - $map = require __DIR__ . '/autoload_psr4.php'; - foreach ($map as $namespace => $path) { - $loader->setPsr4($namespace, $path); - } - - $classMap = require __DIR__ . '/autoload_classmap.php'; - if ($classMap) { - $loader->addClassMap($classMap); - } - } - - $loader->register(true); - - return $loader; - } -} diff --git a/wuunderconnector/vendor/composer/autoload_static.php b/wuunderconnector/vendor/composer/autoload_static.php deleted file mode 100644 index b651e2c..0000000 --- a/wuunderconnector/vendor/composer/autoload_static.php +++ /dev/null @@ -1,31 +0,0 @@ - - array ( - 'Wuunder\\' => 8, - ), - ); - - public static $prefixDirsPsr4 = array ( - 'Wuunder\\' => - array ( - 0 => __DIR__ . '/..' . '/wuunder/connector-php/src/Wuunder', - ), - ); - - public static function getInitializer(ClassLoader $loader) - { - return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInit71a5c8f625682456019e15a22217f588::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInit71a5c8f625682456019e15a22217f588::$prefixDirsPsr4; - - }, null, ClassLoader::class); - } -} diff --git a/wuunderconnector/vendor/composer/index.php b/wuunderconnector/vendor/composer/index.php deleted file mode 100644 index 97775fe..0000000 --- a/wuunderconnector/vendor/composer/index.php +++ /dev/null @@ -1,36 +0,0 @@ - -* @copyright 2007-2016 PrestaShop SA -* @version Release: $Revision$ -* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; diff --git a/wuunderconnector/vendor/composer/installed.json b/wuunderconnector/vendor/composer/installed.json deleted file mode 100644 index 1a73fb0..0000000 --- a/wuunderconnector/vendor/composer/installed.json +++ /dev/null @@ -1,49 +0,0 @@ -[ - { - "name": "wuunder/connector-php", - "version": "1.0.16", - "version_normalized": "1.0.16.0", - "source": { - "type": "git", - "url": "https://github.com/wuunder/connector-php.git", - "reference": "8948defb494cd4edae70fb081fbb57fede3008c6" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/wuunder/connector-php/zipball/8948defb494cd4edae70fb081fbb57fede3008c6", - "reference": "8948defb494cd4edae70fb081fbb57fede3008c6", - "shasum": "" - }, - "require": { - "php": ">=5.3.2" - }, - "time": "2018-09-05T08:06:03+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-4": { - "Wuunder\\": "src/Wuunder" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "Apache-2.0" - ], - "authors": [ - { - "name": "Wuunder", - "email": "info@wearewuunder.com", - "homepage": "https://wearewuunder.com/" - } - ], - "description": "PHP connector for Wuunder API's", - "homepage": "https://github.com/wuunder/connector-php", - "keywords": [ - "api", - "connector", - "parcelshop", - "php", - "wuunder" - ] - } -] diff --git a/wuunderconnector/vendor/index.php b/wuunderconnector/vendor/index.php deleted file mode 100644 index 97775fe..0000000 --- a/wuunderconnector/vendor/index.php +++ /dev/null @@ -1,36 +0,0 @@ - -* @copyright 2007-2016 PrestaShop SA -* @version Release: $Revision$ -* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; diff --git a/wuunderconnector/vendor/wuunder/connector-php/.gitignore b/wuunderconnector/vendor/wuunder/connector-php/.gitignore deleted file mode 100644 index 6de3206..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -composer.phar -.idea -tests diff --git a/wuunderconnector/vendor/wuunder/connector-php/LICENSE b/wuunderconnector/vendor/wuunder/connector-php/LICENSE deleted file mode 100644 index 261eeb9..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/wuunderconnector/vendor/wuunder/connector-php/README.md b/wuunderconnector/vendor/wuunder/connector-php/README.md deleted file mode 100644 index 6e7f708..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/README.md +++ /dev/null @@ -1,142 +0,0 @@ -# connector-php -PHP connector for Wuunder API - -Installation: -`composer require wuunder/connector-php` - -Set-up connection: -`$connector = new Wuunder\Connector("API_KEY");` - -Create booking: -```php -$booking = $connector->createBooking(); - -$bookingConfig = new Wuunder\Api\Config\BookingConfig(); -$bookingConfig->setWebhookUrl("url"); -$bookingConfig->setRedirectUrl("url"); - -if ($bookingConfig->validate()) { - $booking->setConfig($bookingConfig); - - if ($booking->fire()) { - var_dump($booking->getBookingResponse()->getBookingUrl()); - } else { - var_dump($booking->getBookingResponse()->getError()); - } -} else { - print("Bookingconfig not valid"); -} -``` - -Create shipment: -```php -$shipment = $connector->createShipment(); - -$shipmentConfig = new \Wuunder\Api\Config\ShipmentConfig(); -$shipmentConfig->setDescription("Test"); -$shipmentConfig->setKind("package"); -$shipmentConfig->setValue(200); -$shipmentConfig->setLength(10); -$shipmentConfig->setWidth(10); -$shipmentConfig->setHeight(10); -$shipmentConfig->setWeight(210); -$shipmentConfig->setPreferredServiceLevel("cheapest"); - -$deliveryAddress = new \Wuunder\Api\Config\AddressConfig(); -$deliveryAddress->setEmailAddress("email"); -$deliveryAddress->setFamilyName("Lastname"); -$deliveryAddress->setGivenName("Firstname"); -$deliveryAddress->setLocality("City"); -$deliveryAddress->setStreetName("Street"); -$deliveryAddress->setHouseNumber("Number"); -$deliveryAddress->setZipCode("Zipcode"); -$deliveryAddress->setCountry("NL"); - -$shipmentConfig->setDeliveryAddress($deliveryAddress); - -$pickupAddress = new \Wuunder\Api\Config\AddressConfig(); -$pickupAddress->setEmailAddress("email"); -$pickupAddress->setFamilyName("Lastname"); -$pickupAddress->setGivenName("Firstname"); -$pickupAddress->setLocality("City"); -$pickupAddress->setStreetName("Street"); -$pickupAddress->setHouseNumber("Number"); -$pickupAddress->setZipCode("Zipcode"); -$pickupAddress->setCountry("NL"); - -$shipmentConfig->setPickupAddress($pickupAddress); - -if ($shipmentConfig->validate()) { - $shipment->setConfig($shipmentConfig); - - if ($shipment->fire()) { - var_dump($shipment->getShipmentResponse()->getShipmentData()); - } else { - var_dump($shipment->getShipmentResponse()->getError()); - } -} else { - print("ShipmentConfig not valid"); -} -``` - -Get Parcelshops in neighbourhoud by address: -```php -$parcelshopsRequest = $connector->getParcelshopsByAddress(); - -$parcelshopsConfig = new \Wuunder\Api\Config\ParcelshopsConfig(); -$parcelshopsConfig->setProviders(array("CARRIERCODE")); -$parcelshopsConfig->setAddress("address"); -$parcelshopsConfig->setLimit(40); - -if ($parcelshopsConfig->validate()) { - $parcelshopsRequest->setConfig($parcelshopsConfig); - - if ($parcelshopsRequest->fire()) { - var_dump(json_encode($parcelshopsRequest->getParcelshopsResponse()->getParcelshopsData())); - } else { - var_dump($parcelshopsRequest->getParcelshopsResponse()->getError()); - } -} else { - print("ParcelshopsConfig not valid"); -} -``` - -Get info of a specific parcelshop: -```php -$parcelshopRequest = $connector->getParcelshopById(); - -$parcelshopConfig = new \Wuunder\Api\Config\ParcelshopConfig(); -$parcelshopConfig->setId("id"); - -if ($parcelshopConfig->validate()) { - $parcelshopRequest->setConfig($parcelshopConfig); - - if ($parcelshopRequest->fire()) { - var_dump(json_encode($parcelshopRequest->getParcelshopResponse()->getParcelshopData())); - } else { - var_dump($parcelshopRequest->getParcelshopResponse()->getError()); - } -} else { - print("ParcelshopConfig not valid"); -} - -``` - - -# Wuunder -Wuunder offers an API for sending & receiving your parcel, pallet and document the most easy way. Ship with carriers like DHL, DPD,  GLS and PostNL, etc. Only available to ship within, from and to the Netherlands. - -- Save time preparing your orders and send all order- & shipping details fully automated to all carriers; -- Select how you want to ship your documents, parcels and pallets: same-day, next-day or slower; -- Use one of the >20 carriers (use our or even your own carrier contract); -- Your shipping address and phone numbers will be validated automatically to avoid unnecessary return shipments; -- Print one or more shipping labels at once; -- Also organize a return or drop-shipment easily and your customer, supplier or warehouse-employee will receive the label per email; -- A pick-up is arranged fully automated (at your, your customers or your suppliers location) or select a regular pick-up with one or more carriers; -- You can track all shipments (from different carriers) in one handy dashboard (track-and-trace); -- Inform the receiver directly via notification or e-mail (option). Your product pictures and personal chat message are used in the communication with the receiver; -- You will increase your revenue, using the chat-option with your customer (option); -- With one click you arrange a return shipment, including a pick-up or parcelshop drop-off; -- Wuunder offers pro-active tracking of your shipments. We take action and call the carrier, receiver or supplier for you, when there are any delays, pick-up issues, etc. It’s that easy! - -Our shipping API has a staging and production environment. This allows you to test all aspects of the module before you go live. Please contact Wuunder if you want to use the shipping API and we'll send the API keys asap:  Info@WeAreWuunder.com \ No newline at end of file diff --git a/wuunderconnector/vendor/wuunder/connector-php/composer.json b/wuunderconnector/vendor/wuunder/connector-php/composer.json deleted file mode 100644 index 95507f6..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/composer.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "name": "wuunder/connector-php", - "type": "library", - "description": "PHP connector for Wuunder API's", - "keywords": [ - "wuunder", - "php", - "connector", - "api", - "parcelshop" - ], - "homepage": "https://github.com/wuunder/connector-php", - "license": "Apache-2.0", - "support": { - "source": "https://github.com/wuunder/connector-php", - "issues": "https://github.com/wuunder/connector-php/issues" - }, - "authors": [ - { - "name": "Wuunder", - "email": "info@wearewuunder.com", - "homepage": "https://wearewuunder.com/" - } - ], - "autoload": { - "psr-4": { - "Wuunder\\": "src/Wuunder" - } - }, - "archive": { - "exclude": [ - "tests/", - "build/", - "/.travis.yml", - "/build.xml", - "phpunit.xml.dist", - "libphonenumber-for-php.spec", - "/.styleci.yml" - ] - }, - "require": { - "php": ">=5.3.2" - } -} \ No newline at end of file diff --git a/wuunderconnector/vendor/wuunder/connector-php/index.php b/wuunderconnector/vendor/wuunder/connector-php/index.php deleted file mode 100644 index 97775fe..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/index.php +++ /dev/null @@ -1,36 +0,0 @@ - -* @copyright 2007-2016 PrestaShop SA -* @version Release: $Revision$ -* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; diff --git a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/ApiResponse.php b/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/ApiResponse.php deleted file mode 100644 index a16a1e2..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/ApiResponse.php +++ /dev/null @@ -1,40 +0,0 @@ -header = $header; - $this->body = $body; - $this->error = $error; - } - - /** - * @return mixed - */ - public function getError() { - return $this->error; - } - - /** - * @return mixed - */ - public function getHeader() - { - return $this->header; - } - - /** - * @return mixed - */ - public function getBody() - { - return $this->body; - } -} diff --git a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/BookingApiResponse.php b/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/BookingApiResponse.php deleted file mode 100644 index 7e75f76..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/BookingApiResponse.php +++ /dev/null @@ -1,21 +0,0 @@ -getHeader()['location']; - } -} \ No newline at end of file diff --git a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Config/AddressConfig.php b/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Config/AddressConfig.php deleted file mode 100644 index 67735b9..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Config/AddressConfig.php +++ /dev/null @@ -1,22 +0,0 @@ -requiredFields = array( - "email_address", - "family_name", - "given_name", - "locality", - "phone_number", - "street_name", - "house_number", - "zip_code", - "country" - ); - } -} \ No newline at end of file diff --git a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Config/BookingConfig.php b/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Config/BookingConfig.php deleted file mode 100644 index c4b9d40..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Config/BookingConfig.php +++ /dev/null @@ -1,23 +0,0 @@ -defaultFields = array( - "picture" => null, - "source" => array( - "product" => "connector-php" - ), - "customer_reference" => null, - "personal_message" => null - ); - $this->requiredFields = array( - "redirect_url", - "webhook_url" - ); - } -} diff --git a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Config/Config.php b/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Config/Config.php deleted file mode 100644 index 2c0a5d9..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Config/Config.php +++ /dev/null @@ -1,78 +0,0 @@ -defaultFields = array(); - $this->setFields = array(); - } - - public function __call($method, $args) - { - switch (substr($method, 0, 3)) { - case 'set' : - $key = $this->_underscore(substr($method, 3)); - $this->setFields[$key] = isset($args[0]) ? $args[0] : null; - break; - } - } - - /** - * Adds together default and user input items - * - * @return array A full list of all the items that are set by user and default - */ - public function jsonSerialize() - { - return array_merge($this->defaultFields, $this->setFields); - } - - /** - * Validates the user input data - * - * @return bool - */ - public function validate() - { - $resultingData = array_merge($this->defaultFields, $this->setFields); - return $this->_arrayKeysExists($this->requiredFields, $resultingData); - } - - /** - * Camelcase to underscore - * - * @param $name - * @return $result - */ - private function _underscore($name) - { - if (isset(self::$_underscoreCache[$name])) { - return self::$_underscoreCache[$name]; - } - $result = strtolower(preg_replace('/(.)([A-Z])/', "$1_$2", $name)); - self::$_underscoreCache[$name] = $result; - return $result; - } - - /** - * Checks wether all keys are used in array - * - * @param $keys, $arr - * @return bool - */ - private function _arrayKeysExists(array $keys, array $arr) - { - return !array_diff_key(array_flip($keys), $arr); - } - -} diff --git a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Config/ParcelshopConfig.php b/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Config/ParcelshopConfig.php deleted file mode 100644 index 935f82d..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Config/ParcelshopConfig.php +++ /dev/null @@ -1,28 +0,0 @@ -requiredFields = array( - "id" - ); - } - - /** - * Checks if the key is set, returns it if true - * - * @param $key - * @return $setFields - */ - public function get($key) - { - if (!isset($this->setFields[$key])) - return null; - - return $this->setFields[$key]; - } -} diff --git a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Config/ParcelshopsConfig.php b/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Config/ParcelshopsConfig.php deleted file mode 100644 index 6a082b3..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Config/ParcelshopsConfig.php +++ /dev/null @@ -1,54 +0,0 @@ -requiredFields = array( - "providers", - "address" - ); - $this->fieldTypes = array( - "providers" => "list", - "address" => "string" - ); - } - - /** - * - * - * @return $parameterString - */ - public function toGetParameters() - { - $parameterString = ""; - foreach ($this->setFields as $key => $value) { - $type = (isset($this->fieldTypes[$key]) ? $this->fieldTypes[$key] : ""); - switch ($type) { - case "list": - if (is_array($value)) { - $parameterString .= "&" . $key . "[]=" . implode("&" . $key . "[]=", $value); - } else { - $parameterString .= "&" . $key . "[]=" . $value; - } - break; - case "integer": - $parameterString .= "&" . $key . "=" . $value; - break; - default: - $parameterString .= "&" . $key . "=" . urlencode($value); - break; - } - } - - if (Tools::substr($parameterString, 0 ,1) == "&") { - $parameterString = "?" . Tools::substr($parameterString, 1); - } - return $parameterString; - } -} diff --git a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Config/ShipmentConfig.php b/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Config/ShipmentConfig.php deleted file mode 100644 index 12cbdd6..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Config/ShipmentConfig.php +++ /dev/null @@ -1,28 +0,0 @@ -defaultFields = array( - "picture" => null, - "customer_reference" => null, - "personal_message" => null - ); - $this->requiredFields = array( - "description", - "value", - "kind", - "length", - "width", - "height", - "weight", - "delivery_address", - "pickup_address", - "preferred_service_level" - ); - } -} \ No newline at end of file diff --git a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Config/index.php b/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Config/index.php deleted file mode 100644 index 97775fe..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Config/index.php +++ /dev/null @@ -1,36 +0,0 @@ - -* @copyright 2007-2016 PrestaShop SA -* @version Release: $Revision$ -* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; diff --git a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Endpoints/Booking.php b/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Endpoints/Booking.php deleted file mode 100644 index ade8def..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Endpoints/Booking.php +++ /dev/null @@ -1,87 +0,0 @@ -config = new BookingConfig(); - $this->apiKey = $apiKey; - $this->apiEnvironment = $apiEnvironment; - $this->logger = Helper::getInstance(); - } - - /** - * Set data to send to API - * - * @param BookingConfig $config - * @internal param mixed $data JSON encoded - */ - public function setConfig(BookingConfig $config) - { - $this->config = $config; - } - - /** - * Return BookingConfig object of current booking - * - * @return BookingConfig - */ - public function getConfig() - { - return $this->config; - } - - /** - * Fires the request and handles the result. - * - * @return bool - */ - public function fire() - { - $bookingRequest = new PostRequest($this->apiEnvironment->getStageBaseUrl() . "/bookings", - $this->apiKey->getApiKey(), json_encode($this->config)); - try { - $bookingRequest->send(); - } catch(Exception $e) { - $this->logger->log($e); - } - - $body = null; - $header = null; - $error = null; - - if (isset($bookingRequest->getResponseHeaders()["location"])) { - $header = $bookingRequest->getResponseHeaders(); - } else { - $error = $bookingRequest->getResponse(); - } - $this->bookingResponse = new BookingApiResponse($header, $body, $error); - - return is_null($error); - } - - /** - * Returns booking response object - * - * @return mixed - */ - public function getBookingResponse() - { - return $this->bookingResponse; - } -} diff --git a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Endpoints/Parcelshop.php b/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Endpoints/Parcelshop.php deleted file mode 100644 index 12afa6f..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Endpoints/Parcelshop.php +++ /dev/null @@ -1,89 +0,0 @@ -config = new ParcelshopConfig(); - $this->apiKey = $apiKey; - $this->apiEnvironment = $apiEnvironment; - $this->logger = Helper::getInstance(); - } - - /** - * Set data to send to API - * - * @param ParcelshopConfig $config Config of the request - * @internal param mixed $data JSON encoded - */ - public function setConfig(ParcelshopConfig $config) - { - $this->config = $config; - } - - /** - * Return BookingConfig object of current booking - * - * @return ParcelshopConfig - */ - public function getConfig() - { - return $this->config; - } - - /** - * Fires the request and handles the result. - * - * @return bool - */ - public function fire() - { - $parcelshopRequest = new GetRequest($this->apiEnvironment->getStageBaseUrl() . "/parcelshops/" . $this->config->get("id"), - $this->apiKey->getApiKey()); - try { - $parcelshopRequest->send(); - } catch (\Exception $e) { - $this->logger->log($e); - } - $body = null; - $header = null; - $error = null; - - if (isset($parcelshopRequest->getResponseHeaders()["http_code"]) - && strpos($parcelshopRequest->getResponseHeaders()["http_code"], "200 OK") !== false - ) { - $body = $parcelshopRequest->getBody(); - $header = $parcelshopRequest->getResponseHeaders(); - } else { - $error = $parcelshopRequest->getResponse(); - } - $this->parcelshopResponse = new ParcelshopApiResponse($header, $body, $error); - - return is_null($error); - } - - /** - * Returns parcelshop response object - * - * @return ParcelshopApiResponse - */ - public function getParcelshopResponse() - { - return $this->parcelshopResponse; - } -} diff --git a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Endpoints/Parcelshops.php b/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Endpoints/Parcelshops.php deleted file mode 100644 index 4e16dcb..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Endpoints/Parcelshops.php +++ /dev/null @@ -1,85 +0,0 @@ -config = new ParcelshopsConfig(); - $this->apiKey = $apiKey; - $this->apiEnvironment = $apiEnvironment; - } - - /** - * Set data to send to API - * - * @param ParcelshopsConfig $config - * @internal param mixed $data JSON encoded - */ - public function setConfig(ParcelshopsConfig $config) - { - $this->config = $config; - } - - /** - * Return BookingConfig object of current booking - * - * @return ParcelshopsConfig - */ - public function getConfig() - { - return $this->config; - } - - /** - * Fires the request and handles the result. - * - * @return bool - */ - public function fire() - { - $parcelshopsRequest = new GetRequest($this->apiEnvironment->getStageBaseUrl() . "/parcelshops_by_address" . $this->config->toGetParameters(), - $this->apiKey->getApiKey()); - try { - $parcelshopsRequest->send(); - } catch(Exception $e) { - $this->logger->log($e); - } - - $body = null; - $header = null; - $error = null; - - if (isset($parcelshopsRequest->getResponseHeaders()["http_code"]) && strpos($parcelshopsRequest->getResponseHeaders()["http_code"], "200 OK") !== false) { - $body = $parcelshopsRequest->getBody(); - $header = $parcelshopsRequest->getResponseHeaders(); - } else { - $error = $parcelshopsRequest->getResponse(); - } - $this->parcelshopsResponse = new ParcelshopsApiResponse($header, $body, $error); - - return is_null($error); - } - - /** - * Returns parcelshop models - * - * @return ParcelshopsApiResponse - */ - public function getParcelshopsResponse() - { - return $this->parcelshopsResponse; - } -} diff --git a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Endpoints/Shipment.php b/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Endpoints/Shipment.php deleted file mode 100644 index 3f6162b..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Endpoints/Shipment.php +++ /dev/null @@ -1,88 +0,0 @@ -config = new ShipmentConfig(); - $this->apiKey = $apiKey; - $this->apiEnvironment = $apiEnvironment; - $this->logger = Helper::getInstance(); - } - - /** - * Set data to send to API - * - * @param ShipmentConfig $config - * @internal param mixed $data JSON encoded - */ - public function setConfig(ShipmentConfig $config) - { - $this->config = $config; - } - - /** - * Return BookingConfig object of current booking - * - * @return ShipmentConfig - */ - public function getConfig() - { - return $this->config; - } - - /** - * Fires the request and handles the result. - * - * @return bool - */ - public function fire() - { - $shipmentRequest = new PostRequest($this->apiEnvironment->getStageBaseUrl() . "/shipments", - $this->apiKey->getApiKey(), json_encode($this->config)); - try { - $shipmentRequest->send(); - } catch(Exception $e) { - $this->logger->log($e); - } - - $body = null; - $header = null; - $error = null; - - if (isset($shipmentRequest->getResponseHeaders()["http_code"]) && strpos($shipmentRequest->getResponseHeaders()["http_code"], "201 Created") !== false) { - $body = $shipmentRequest->getBody(); - $header = $shipmentRequest->getResponseHeaders(); - } else { - $error = $shipmentRequest->getResponse(); - } - $this->shipmentResponse = new ShipmentApiResponse($header, $body, $error); - - return is_null($error); - } - - /** - * Returns shipment response object - * - * @return mixed - */ - public function getShipmentResponse() - { - return $this->shipmentResponse; - } -} diff --git a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Endpoints/index.php b/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Endpoints/index.php deleted file mode 100644 index 97775fe..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Endpoints/index.php +++ /dev/null @@ -1,36 +0,0 @@ - -* @copyright 2007-2016 PrestaShop SA -* @version Release: $Revision$ -* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; diff --git a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Environment.php b/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Environment.php deleted file mode 100644 index d1fb451..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Environment.php +++ /dev/null @@ -1,33 +0,0 @@ -stageBaseUrl = self::STAGING_ENV_BASE_URL; - } else if ($stage === "production") { - $this->stageBaseUrl = self::PRODUCTION_ENV_BASE_URL; - } else { - throw new Exception('Unknown stage'); - } - } - - /** - * Returns stage base url - * - * @return string - */ - public function getStageBaseUrl() - { - return $this->stageBaseUrl; - } -} diff --git a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Key.php b/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Key.php deleted file mode 100644 index beb87fa..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/Key.php +++ /dev/null @@ -1,33 +0,0 @@ -apiKey = $apiKey; - } - - /** - * Returns API key - * - * @return mixed - */ - public function getApiKey() - { - return $this->apiKey; - } - - /** - * Sets new API key - * - * @param mixed $apiKey - */ - public function setApiKey($apiKey) - { - $this->apiKey = $apiKey; - } -} diff --git a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/ParcelshopApiResponse.php b/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/ParcelshopApiResponse.php deleted file mode 100644 index c31fce0..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/ParcelshopApiResponse.php +++ /dev/null @@ -1,23 +0,0 @@ -getBody()); - } -} \ No newline at end of file diff --git a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/ParcelshopsApiResponse.php b/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/ParcelshopsApiResponse.php deleted file mode 100644 index 2ef7c0f..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/ParcelshopsApiResponse.php +++ /dev/null @@ -1,23 +0,0 @@ -getBody()); - } -} \ No newline at end of file diff --git a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/ShipmentApiResponse.php b/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/ShipmentApiResponse.php deleted file mode 100644 index 8a749a7..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/ShipmentApiResponse.php +++ /dev/null @@ -1,23 +0,0 @@ -getBody()); - } -} diff --git a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/index.php b/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/index.php deleted file mode 100644 index 97775fe..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Api/index.php +++ /dev/null @@ -1,36 +0,0 @@ - -* @copyright 2007-2016 PrestaShop SA -* @version Release: $Revision$ -* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; diff --git a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Connector.php b/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Connector.php deleted file mode 100644 index 3a816c5..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Connector.php +++ /dev/null @@ -1,91 +0,0 @@ -apiKey = new Key($apiKey); - $this->apiEnvironment = new Environment($isStaging ? "staging" : "production"); - $this->helper = Helper::getInstance(); - } - - /** - * Creates a new Booking - * - * @return Booking - */ - public function createBooking() { - return new Booking($this->apiKey, $this->apiEnvironment); - } - - /** - * Creates a new Shipment - * - * @return Shipment - */ - public function createShipment() { - return new Shipment($this->apiKey, $this->apiEnvironment); - } - - /** - * Creates a new Parcelshops - * - * @return Parcelshops - */ - public function getParcelshopsByAddress() { - return new Parcelshops($this->apiKey, $this->apiEnvironment); - } - - public function getParcelshopById() { - return new Parcelshop($this->apiKey, $this->apiEnvironment); - } - - /** - * Creates the logger functionality in Helper - * - */ - public function setLogger($loggerClass, $loggerFunc) { - - if(empty($loggerClass)) { - $this->helper->setLogger($loggerFunc); - } else { - $this->helper->setLogger(array($loggerClass, $loggerFunc)); - } - } - - /** - * Sets user language, for translations - * - * @param $lang - */ - public function setLanguage($lang) { - $this->helper->setTranslationLang($lang); - } - - /** - * Logs the input parameter - * - * @param $logText - */ - public function log($logText) { - $helper = Helper::getInstance(); - $helper->log($logText); - } - -} diff --git a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Http/GetRequest.php b/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Http/GetRequest.php deleted file mode 100644 index bb213a3..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Http/GetRequest.php +++ /dev/null @@ -1,41 +0,0 @@ -logger = Helper::getInstance(); - } - - /** - * Sends a get request and recieves results - * - */ - public function send() - { - $cc = curl_init($this->url); - $this->logger->log("API connection established"); - - curl_setopt($cc, CURLOPT_HTTPHEADER, - array('Authorization: Bearer ' . $this->apiKey, 'Content-type: application/json')); - curl_setopt($cc, CURLOPT_RETURNTRANSFER, true); - curl_setopt($cc, CURLOPT_VERBOSE, 0); - curl_setopt($cc, CURLOPT_HEADER, 1); - - // Execute the cURL, fetch the XML - $result = curl_exec($cc); - $this->result = $result; - $this->headerSize = curl_getinfo($cc, CURLINFO_HEADER_SIZE); - - // Close connection - curl_close($cc); - } -} diff --git a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Http/PostRequest.php b/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Http/PostRequest.php deleted file mode 100644 index 36f71a8..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Http/PostRequest.php +++ /dev/null @@ -1,45 +0,0 @@ -postData = $data; - $this->logger = Helper::getInstance(); - } - - /** - * Sends a post request and recieves results - * - */ - public function send() - { - $cc = curl_init($this->url); - $this->logger->log("API connection established"); - - curl_setopt($cc, CURLOPT_HTTPHEADER, - array('Authorization: Bearer ' . $this->apiKey, 'Content-type: application/json')); - curl_setopt($cc, CURLOPT_POST, 1); - curl_setopt($cc, CURLOPT_POSTFIELDS, $this->postData); - curl_setopt($cc, CURLOPT_RETURNTRANSFER, true); - curl_setopt($cc, CURLOPT_VERBOSE, 0); - curl_setopt($cc, CURLOPT_HEADER, 1); - - // Execute the cURL, fetch the XML - $result = curl_exec($cc); - $this->result = $result; - $this->headerSize = curl_getinfo($cc, CURLINFO_HEADER_SIZE); - - // Close connection - curl_close($cc); - } -} diff --git a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Http/Request.php b/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Http/Request.php deleted file mode 100644 index 3d93f97..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Http/Request.php +++ /dev/null @@ -1,63 +0,0 @@ -url = $url; - $this->apiKey = $apiKey; - } - - abstract protected function send(); - - /** - * Returns the whole response from a response - * - * @return $result - */ - public function getResponse() - { - return $this->result; - } - - /** - * Returns the response body from a response - * - * @return $result (body) - */ - public function getBody() - { - return substr($this->result, $this->headerSize); - } - - /** - * Returns the headers from a response - * - * @return $headers - */ - public function getResponseHeaders() - { - $headers = array(); - - $header_text = substr($this->result, 0, $this->headerSize); - - foreach (explode("\r\n", $header_text) as $i => $line) - if (strlen($line) > 4 && substr($line, 0, 4) === "HTTP") { - $headers['http_code'] = $line; - } else { - list ($key, $value) = array_pad(explode(': ', $line, 2), 2, null); - $headers[$key] = $value; - } - - return $headers; - } -} diff --git a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Http/index.php b/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Http/index.php deleted file mode 100644 index 97775fe..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Http/index.php +++ /dev/null @@ -1,36 +0,0 @@ - -* @copyright 2007-2016 PrestaShop SA -* @version Release: $Revision$ -* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; diff --git a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Model/Model.php b/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Model/Model.php deleted file mode 100644 index 9605c4f..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Model/Model.php +++ /dev/null @@ -1,124 +0,0 @@ -keys = array(); - $this->helper = Helper::getInstance(); - } - - public function __call($method, $args) - { - switch (substr($method, 0, 3)) { - case 'get' : - $key = $this->_underscore(substr($method, 3)); - if (isset($this->data[$key])) { - return $this->data[$key]; - } else { - $this->helper->log("Unable to return data. Unknown key " . $key); - return null; - } - } - return null; - } - - protected function setKeys($keys) - { - $formattedKeys = array(); - foreach ($keys as $k => $v) { - if (is_array($v)) { - $formattedKeys[$k] = $this->formatInnerKeys($v); - } else { - $formattedKeys[$v] = null; - } - } - $this->keys = $formattedKeys; - } - - private function formatInnerKeys($keys) - { - $formattedKeys = array(); - foreach ($keys as $k => $v) { - if (is_array($v)) { - $formattedKeys[$k] = $this->formatInnerKeys($v); - } else { - $formattedKeys[$v] = null; - } - } - return $formattedKeys; - } - - protected function importData($data, $keysToTranslate = array()) - { - $data = json_decode($data); - $validatedData = array(); - foreach ($data as $key => $value) { - if (array_key_exists($key, $this->keys)) { - if (is_array($value)) { - $validatedData[$key] = $this->loopInnerData($value, $this->keys[$key], $keysToTranslate); - } else { - if (in_array($key, $keysToTranslate)) { - $value = $this->helper->translate($value); - } - $validatedData[$key] = $value; - } - } else { - $this->helper->log("Invalid data, unknown key " . $key); - } - } - $this->data = $validatedData; - } - - private function loopInnerData($data, $keysMap, $keysToTranslate) - { - $validatedData = array(); - foreach ($data as $key => $value) { - if (array_key_exists($key, $keysMap) || is_object($value)) { - if (is_object($value)) { - $validatedData[$key] = $this->loopInnerData($value, $this->_isAssoc($keysMap) ? $keysMap[$key] : $keysMap[0], $keysToTranslate); - } elseif (is_array($value)) { - $validatedData[$key] = $this->loopInnerData($value, $keysMap[$key], $keysToTranslate); - } else { - if (in_array($key, $keysToTranslate)) { - $value = $this->helper->translate($value); - } - $validatedData[$key] = $value; - } - } else { - $this->helper->log("Invalid data, unknown key " . $key); - } - } - return $validatedData; - } - - private function _isAssoc(array $arr) - { - if (array() === $arr) return false; - return array_keys($arr) !== range(0, count($arr) - 1); - } - - private function _underscore($name) - { - if (isset(self::$_underscoreCache[$name])) { - return self::$_underscoreCache[$name]; - } - $result = strtolower(preg_replace('/(.)([A-Z])/', "$1_$2", $name)); - self::$_underscoreCache[$name] = $result; - return $result; - } - - public function jsonSerialize() - { - return $this->data; - } -} \ No newline at end of file diff --git a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Model/ParcelshopModel.php b/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Model/ParcelshopModel.php deleted file mode 100644 index 5e1d59d..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Model/ParcelshopModel.php +++ /dev/null @@ -1,50 +0,0 @@ - array( - array( - "weekday", - "open_morning", - "open_afternoon", - "close_morning", - "close_afternoon" - ) - ), - "longitude", - "latitude", - "id", - "homepage", - "distance", - "company_name", - "carrier_name", - "address" => array( - "zip_code", - "street_name", - "state", - "phone_number", - "house_number", - "email_address", - "country_name", - "city", - "alpha2" - ) - ); - - public function __construct($data) - { - parent::__construct(); - $this->setKeys(self::$modelStructure); - - $this->importData($data, array("weekday")); - } - - final static function getStructure() { - return self::$modelStructure; - } -} \ No newline at end of file diff --git a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Model/ParcelshopsModel.php b/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Model/ParcelshopsModel.php deleted file mode 100644 index 9c5dfe3..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Model/ParcelshopsModel.php +++ /dev/null @@ -1,33 +0,0 @@ -setKeys(array( - "parcelshops" => array( - ParcelshopModel::getStructure() - ), - "address" => array( - "zip_code", - "street_name", - "state", - "house_number", - "city", - "phone_number", - "email_address", - "country_name", - "alpha2" - ), - "location" => array( - "lng", - "lat" - ) - )); - - $this->importData($data, array("weekday")); - } -} \ No newline at end of file diff --git a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Model/ShipmentModel.php b/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Model/ShipmentModel.php deleted file mode 100644 index 0cea80e..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Model/ShipmentModel.php +++ /dev/null @@ -1,76 +0,0 @@ -setKeys(array( - "width", - "height", - "length", - "weight", - "value", - "kind", - "track_and_trace_url", - "track_and_trace_details" => array( - "track_and_trace_code", - "carrier_name", - "carrier_code" - ), - "status", - "picture_url", - "pickup_address" => array( - "zip_code", - "type", - "street_name", - "street_address", - "state", - "locality", - "phone_number", - "house_number", - "email_address", - "id", - "given_name", - "family_name", - "country_name", - "city", - "country", - "chamber_of_commerce_number", - "business" - ), - "personal_message", - "parcelshop_id", - "name", - "label_url", - "is_return", - "id", - "drop_off", - "description", - "delivery_address" => array( - "zip_code", - "type", - "street_name", - "street_address", - "state", - "locality", - "phone_number", - "house_number", - "email_address", - "id", - "given_name", - "family_name", - "country_name", - "city", - "country", - "chamber_of_commerce_number", - "business" - ), - "customer_reference" - )); - - $this->importData($data); - } -} \ No newline at end of file diff --git a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Model/index.php b/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Model/index.php deleted file mode 100644 index 97775fe..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Model/index.php +++ /dev/null @@ -1,36 +0,0 @@ - -* @copyright 2007-2016 PrestaShop SA -* @version Release: $Revision$ -* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; diff --git a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Util/Helper.php b/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Util/Helper.php deleted file mode 100644 index f0a9b6d..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Util/Helper.php +++ /dev/null @@ -1,97 +0,0 @@ -logger = $logger; - } - - /** - * Calls the log function. - * - * @param $logText - */ - public function log($logText) - { - if (isset($this->logger)) { - call_user_func_array($this->logger, array($logText)); - } - } - - private function __construct() - { - - } - - /** - * Sets data used for translations - * - * @param $lang - */ - public function setTranslationLang($lang) - { - global $translationData; - $translationData = array(); - $file = realpath(dirname(dirname(__FILE__)) . "/etc/lang/en-" . strtolower($lang) . ".csv"); - if (file_exists($file)) { - if (($handle = fopen($file, "r")) !== FALSE) { - while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) { - if (count($data) == 2) { - $translationData[$data[0]] = $data[1]; - } - } - fclose($handle); - } - - } - } - - public function translate($val) - { - global $translationData; - - if (is_array($translationData) && !in_array(strtolower($val), $translationData)) { - $translatedVal = $translationData[strtolower($val)]; - if ($this->_startsWithUpper($val)) { - $translatedVal = ucfirst($translatedVal); - } - return $translatedVal; - } - - return $val; - } - - private function _startsWithUpper($str) - { - $chr = mb_substr($str, 0, 1, "UTF-8"); - return ctype_upper($chr); - } - - -} diff --git a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Util/index.php b/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Util/index.php deleted file mode 100644 index 97775fe..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/Util/index.php +++ /dev/null @@ -1,36 +0,0 @@ - -* @copyright 2007-2016 PrestaShop SA -* @version Release: $Revision$ -* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; diff --git a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/etc/index.php b/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/etc/index.php deleted file mode 100644 index 97775fe..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/etc/index.php +++ /dev/null @@ -1,36 +0,0 @@ - -* @copyright 2007-2016 PrestaShop SA -* @version Release: $Revision$ -* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; diff --git a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/etc/lang/en-nl.csv b/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/etc/lang/en-nl.csv deleted file mode 100644 index b943e6e..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/etc/lang/en-nl.csv +++ /dev/null @@ -1,7 +0,0 @@ -monday,maandag -tuesday,dinsdag -wednesday,woensdag -thursday,donderdag -friday,vrijdag -saturday,zaterdag -sunday,zondag \ No newline at end of file diff --git a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/etc/lang/index.php b/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/etc/lang/index.php deleted file mode 100644 index 97775fe..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/etc/lang/index.php +++ /dev/null @@ -1,36 +0,0 @@ - -* @copyright 2007-2016 PrestaShop SA -* @version Release: $Revision$ -* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; diff --git a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/index.php b/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/index.php deleted file mode 100644 index 97775fe..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/src/Wuunder/index.php +++ /dev/null @@ -1,36 +0,0 @@ - -* @copyright 2007-2016 PrestaShop SA -* @version Release: $Revision$ -* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; diff --git a/wuunderconnector/vendor/wuunder/connector-php/src/index.php b/wuunderconnector/vendor/wuunder/connector-php/src/index.php deleted file mode 100644 index 97775fe..0000000 --- a/wuunderconnector/vendor/wuunder/connector-php/src/index.php +++ /dev/null @@ -1,36 +0,0 @@ - -* @copyright 2007-2016 PrestaShop SA -* @version Release: $Revision$ -* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; diff --git a/wuunderconnector/vendor/wuunder/index.php b/wuunderconnector/vendor/wuunder/index.php deleted file mode 100644 index 97775fe..0000000 --- a/wuunderconnector/vendor/wuunder/index.php +++ /dev/null @@ -1,36 +0,0 @@ - -* @copyright 2007-2016 PrestaShop SA -* @version Release: $Revision$ -* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit;