Add InPost Pay integration to admin templates
- Created a new template for the cart rule form with custom label, switch, and choice widgets. - Implemented the InPost Pay block in the order details template for displaying delivery method, APM, and VAT invoice request. - Added legacy support for the order details template to maintain compatibility with older PrestaShop versions.
This commit is contained in:
10
modules/inpostizi/vendor/.htaccess
vendored
Normal file
10
modules/inpostizi/vendor/.htaccess
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
# Apache 2.2
|
||||
<IfModule !mod_authz_core.c>
|
||||
Order deny,allow
|
||||
Deny from all
|
||||
</IfModule>
|
||||
|
||||
# Apache 2.4
|
||||
<IfModule mod_authz_core.c>
|
||||
Require all denied
|
||||
</IfModule>
|
||||
25
modules/inpostizi/vendor/autoload.php
vendored
Normal file
25
modules/inpostizi/vendor/autoload.php
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
// autoload.php @generated by Composer
|
||||
|
||||
if (PHP_VERSION_ID < 50600) {
|
||||
if (!headers_sent()) {
|
||||
header('HTTP/1.1 500 Internal Server Error');
|
||||
}
|
||||
$err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
|
||||
if (!ini_get('display_errors')) {
|
||||
if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
|
||||
fwrite(STDERR, $err);
|
||||
} elseif (!headers_sent()) {
|
||||
echo $err;
|
||||
}
|
||||
}
|
||||
trigger_error(
|
||||
$err,
|
||||
E_USER_ERROR
|
||||
);
|
||||
}
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit3582376b22b8ed8077843f108d3dc00a::getLoader();
|
||||
585
modules/inpostizi/vendor/composer/ClassLoader.php
vendored
Normal file
585
modules/inpostizi/vendor/composer/ClassLoader.php
vendored
Normal file
@@ -0,0 +1,585 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Composer.
|
||||
*
|
||||
* (c) Nils Adermann <naderman@naderman.de>
|
||||
* Jordi Boggiano <j.boggiano@seld.be>
|
||||
*
|
||||
* 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 <fabien@symfony.com>
|
||||
* @author Jordi Boggiano <j.boggiano@seld.be>
|
||||
* @see https://www.php-fig.org/psr/psr-0/
|
||||
* @see https://www.php-fig.org/psr/psr-4/
|
||||
*/
|
||||
class ClassLoader
|
||||
{
|
||||
/** @var \Closure(string):void */
|
||||
private static $includeFile;
|
||||
|
||||
/** @var ?string */
|
||||
private $vendorDir;
|
||||
|
||||
// PSR-4
|
||||
/**
|
||||
* @var array[]
|
||||
* @psalm-var array<string, array<string, int>>
|
||||
*/
|
||||
private $prefixLengthsPsr4 = array();
|
||||
/**
|
||||
* @var array[]
|
||||
* @psalm-var array<string, array<int, string>>
|
||||
*/
|
||||
private $prefixDirsPsr4 = array();
|
||||
/**
|
||||
* @var array[]
|
||||
* @psalm-var array<string, string>
|
||||
*/
|
||||
private $fallbackDirsPsr4 = array();
|
||||
|
||||
// PSR-0
|
||||
/**
|
||||
* @var array[]
|
||||
* @psalm-var array<string, array<string, string[]>>
|
||||
*/
|
||||
private $prefixesPsr0 = array();
|
||||
/**
|
||||
* @var array[]
|
||||
* @psalm-var array<string, string>
|
||||
*/
|
||||
private $fallbackDirsPsr0 = array();
|
||||
|
||||
/** @var bool */
|
||||
private $useIncludePath = false;
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
* @psalm-var array<string, string>
|
||||
*/
|
||||
private $classMap = array();
|
||||
|
||||
/** @var bool */
|
||||
private $classMapAuthoritative = false;
|
||||
|
||||
/**
|
||||
* @var bool[]
|
||||
* @psalm-var array<string, bool>
|
||||
*/
|
||||
private $missingClasses = array();
|
||||
|
||||
/** @var ?string */
|
||||
private $apcuPrefix;
|
||||
|
||||
/**
|
||||
* @var self[]
|
||||
*/
|
||||
private static $registeredLoaders = array();
|
||||
|
||||
/**
|
||||
* @param ?string $vendorDir
|
||||
*/
|
||||
public function __construct($vendorDir = null)
|
||||
{
|
||||
$this->vendorDir = $vendorDir;
|
||||
self::initializeIncludeClosure();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
public function getPrefixes()
|
||||
{
|
||||
if (!empty($this->prefixesPsr0)) {
|
||||
return call_user_func_array('array_merge', array_values($this->prefixesPsr0));
|
||||
}
|
||||
|
||||
return array();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array[]
|
||||
* @psalm-return array<string, array<int, string>>
|
||||
*/
|
||||
public function getPrefixesPsr4()
|
||||
{
|
||||
return $this->prefixDirsPsr4;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array[]
|
||||
* @psalm-return array<string, string>
|
||||
*/
|
||||
public function getFallbackDirs()
|
||||
{
|
||||
return $this->fallbackDirsPsr0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array[]
|
||||
* @psalm-return array<string, string>
|
||||
*/
|
||||
public function getFallbackDirsPsr4()
|
||||
{
|
||||
return $this->fallbackDirsPsr4;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string[] Array of classname => path
|
||||
* @psalm-return array<string, string>
|
||||
*/
|
||||
public function getClassMap()
|
||||
{
|
||||
return $this->classMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string[] $classMap Class to filename map
|
||||
* @psalm-param array<string, string> $classMap
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
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 string[]|string $paths The PSR-0 root directories
|
||||
* @param bool $prepend Whether to prepend the directories
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
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 string[]|string $paths The PSR-4 base directories
|
||||
* @param bool $prepend Whether to prepend the directories
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
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 string[]|string $paths The PSR-0 base directories
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
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 string[]|string $paths The PSR-4 base directories
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
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
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
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
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
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
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
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
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register($prepend = false)
|
||||
{
|
||||
spl_autoload_register(array($this, 'loadClass'), true, $prepend);
|
||||
|
||||
if (null === $this->vendorDir) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ($prepend) {
|
||||
self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders;
|
||||
} else {
|
||||
unset(self::$registeredLoaders[$this->vendorDir]);
|
||||
self::$registeredLoaders[$this->vendorDir] = $this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unregisters this instance as an autoloader.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function unregister()
|
||||
{
|
||||
spl_autoload_unregister(array($this, 'loadClass'));
|
||||
|
||||
if (null !== $this->vendorDir) {
|
||||
unset(self::$registeredLoaders[$this->vendorDir]);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads the given class or interface.
|
||||
*
|
||||
* @param string $class The name of the class
|
||||
* @return true|null True if loaded, null otherwise
|
||||
*/
|
||||
public function loadClass($class)
|
||||
{
|
||||
if ($file = $this->findFile($class)) {
|
||||
$includeFile = self::$includeFile;
|
||||
$includeFile($file);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the currently registered loaders indexed by their corresponding vendor directories.
|
||||
*
|
||||
* @return self[]
|
||||
*/
|
||||
public static function getRegisteredLoaders()
|
||||
{
|
||||
return self::$registeredLoaders;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $class
|
||||
* @param string $ext
|
||||
* @return string|false
|
||||
*/
|
||||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
private static function initializeIncludeClosure()
|
||||
{
|
||||
if (self::$includeFile !== null) {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Scope isolated include.
|
||||
*
|
||||
* Prevents access to $this/self from included files.
|
||||
*
|
||||
* @param string $file
|
||||
* @return void
|
||||
*/
|
||||
self::$includeFile = \Closure::bind(static function($file) {
|
||||
include $file;
|
||||
}, null, null);
|
||||
}
|
||||
}
|
||||
352
modules/inpostizi/vendor/composer/InstalledVersions.php
vendored
Normal file
352
modules/inpostizi/vendor/composer/InstalledVersions.php
vendored
Normal file
@@ -0,0 +1,352 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Composer.
|
||||
*
|
||||
* (c) Nils Adermann <naderman@naderman.de>
|
||||
* Jordi Boggiano <j.boggiano@seld.be>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Composer;
|
||||
|
||||
use Composer\Autoload\ClassLoader;
|
||||
use Composer\Semver\VersionParser;
|
||||
|
||||
/**
|
||||
* This class is copied in every Composer installed project and available to all
|
||||
*
|
||||
* See also https://getcomposer.org/doc/07-runtime.md#installed-versions
|
||||
*
|
||||
* To require its presence, you can require `composer-runtime-api ^2.0`
|
||||
*
|
||||
* @final
|
||||
*/
|
||||
class InstalledVersions
|
||||
{
|
||||
/**
|
||||
* @var mixed[]|null
|
||||
* @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null
|
||||
*/
|
||||
private static $installed;
|
||||
|
||||
/**
|
||||
* @var bool|null
|
||||
*/
|
||||
private static $canGetVendors;
|
||||
|
||||
/**
|
||||
* @var array[]
|
||||
* @psalm-var array<string, array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
|
||||
*/
|
||||
private static $installedByVendor = array();
|
||||
|
||||
/**
|
||||
* Returns a list of all package names which are present, either by being installed, replaced or provided
|
||||
*
|
||||
* @return string[]
|
||||
* @psalm-return list<string>
|
||||
*/
|
||||
public static function getInstalledPackages()
|
||||
{
|
||||
$packages = array();
|
||||
foreach (self::getInstalled() as $installed) {
|
||||
$packages[] = array_keys($installed['versions']);
|
||||
}
|
||||
|
||||
if (1 === \count($packages)) {
|
||||
return $packages[0];
|
||||
}
|
||||
|
||||
return array_keys(array_flip(\call_user_func_array('array_merge', $packages)));
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of all package names with a specific type e.g. 'library'
|
||||
*
|
||||
* @param string $type
|
||||
* @return string[]
|
||||
* @psalm-return list<string>
|
||||
*/
|
||||
public static function getInstalledPackagesByType($type)
|
||||
{
|
||||
$packagesByType = array();
|
||||
|
||||
foreach (self::getInstalled() as $installed) {
|
||||
foreach ($installed['versions'] as $name => $package) {
|
||||
if (isset($package['type']) && $package['type'] === $type) {
|
||||
$packagesByType[] = $name;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $packagesByType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks whether the given package is installed
|
||||
*
|
||||
* This also returns true if the package name is provided or replaced by another package
|
||||
*
|
||||
* @param string $packageName
|
||||
* @param bool $includeDevRequirements
|
||||
* @return bool
|
||||
*/
|
||||
public static function isInstalled($packageName, $includeDevRequirements = true)
|
||||
{
|
||||
foreach (self::getInstalled() as $installed) {
|
||||
if (isset($installed['versions'][$packageName])) {
|
||||
return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']);
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks whether the given package satisfies a version constraint
|
||||
*
|
||||
* e.g. If you want to know whether version 2.3+ of package foo/bar is installed, you would call:
|
||||
*
|
||||
* Composer\InstalledVersions::satisfies(new VersionParser, 'foo/bar', '^2.3')
|
||||
*
|
||||
* @param VersionParser $parser Install composer/semver to have access to this class and functionality
|
||||
* @param string $packageName
|
||||
* @param string|null $constraint A version constraint to check for, if you pass one you have to make sure composer/semver is required by your package
|
||||
* @return bool
|
||||
*/
|
||||
public static function satisfies(VersionParser $parser, $packageName, $constraint)
|
||||
{
|
||||
$constraint = $parser->parseConstraints($constraint);
|
||||
$provided = $parser->parseConstraints(self::getVersionRanges($packageName));
|
||||
|
||||
return $provided->matches($constraint);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a version constraint representing all the range(s) which are installed for a given package
|
||||
*
|
||||
* It is easier to use this via isInstalled() with the $constraint argument if you need to check
|
||||
* whether a given version of a package is installed, and not just whether it exists
|
||||
*
|
||||
* @param string $packageName
|
||||
* @return string Version constraint usable with composer/semver
|
||||
*/
|
||||
public static function getVersionRanges($packageName)
|
||||
{
|
||||
foreach (self::getInstalled() as $installed) {
|
||||
if (!isset($installed['versions'][$packageName])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$ranges = array();
|
||||
if (isset($installed['versions'][$packageName]['pretty_version'])) {
|
||||
$ranges[] = $installed['versions'][$packageName]['pretty_version'];
|
||||
}
|
||||
if (array_key_exists('aliases', $installed['versions'][$packageName])) {
|
||||
$ranges = array_merge($ranges, $installed['versions'][$packageName]['aliases']);
|
||||
}
|
||||
if (array_key_exists('replaced', $installed['versions'][$packageName])) {
|
||||
$ranges = array_merge($ranges, $installed['versions'][$packageName]['replaced']);
|
||||
}
|
||||
if (array_key_exists('provided', $installed['versions'][$packageName])) {
|
||||
$ranges = array_merge($ranges, $installed['versions'][$packageName]['provided']);
|
||||
}
|
||||
|
||||
return implode(' || ', $ranges);
|
||||
}
|
||||
|
||||
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $packageName
|
||||
* @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present
|
||||
*/
|
||||
public static function getVersion($packageName)
|
||||
{
|
||||
foreach (self::getInstalled() as $installed) {
|
||||
if (!isset($installed['versions'][$packageName])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!isset($installed['versions'][$packageName]['version'])) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $installed['versions'][$packageName]['version'];
|
||||
}
|
||||
|
||||
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $packageName
|
||||
* @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present
|
||||
*/
|
||||
public static function getPrettyVersion($packageName)
|
||||
{
|
||||
foreach (self::getInstalled() as $installed) {
|
||||
if (!isset($installed['versions'][$packageName])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!isset($installed['versions'][$packageName]['pretty_version'])) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $installed['versions'][$packageName]['pretty_version'];
|
||||
}
|
||||
|
||||
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $packageName
|
||||
* @return string|null If the package is being replaced or provided but is not really installed, null will be returned as reference
|
||||
*/
|
||||
public static function getReference($packageName)
|
||||
{
|
||||
foreach (self::getInstalled() as $installed) {
|
||||
if (!isset($installed['versions'][$packageName])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!isset($installed['versions'][$packageName]['reference'])) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $installed['versions'][$packageName]['reference'];
|
||||
}
|
||||
|
||||
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $packageName
|
||||
* @return string|null If the package is being replaced or provided but is not really installed, null will be returned as install path. Packages of type metapackages also have a null install path.
|
||||
*/
|
||||
public static function getInstallPath($packageName)
|
||||
{
|
||||
foreach (self::getInstalled() as $installed) {
|
||||
if (!isset($installed['versions'][$packageName])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
return isset($installed['versions'][$packageName]['install_path']) ? $installed['versions'][$packageName]['install_path'] : null;
|
||||
}
|
||||
|
||||
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
* @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}
|
||||
*/
|
||||
public static function getRootPackage()
|
||||
{
|
||||
$installed = self::getInstalled();
|
||||
|
||||
return $installed[0]['root'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the raw installed.php data for custom implementations
|
||||
*
|
||||
* @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.
|
||||
* @return array[]
|
||||
* @psalm-return array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}
|
||||
*/
|
||||
public static function getRawData()
|
||||
{
|
||||
@trigger_error('getRawData only returns the first dataset loaded, which may not be what you expect. Use getAllRawData() instead which returns all datasets for all autoloaders present in the process.', E_USER_DEPRECATED);
|
||||
|
||||
if (null === self::$installed) {
|
||||
// only require the installed.php file if this file is loaded from its dumped location,
|
||||
// and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
|
||||
if (substr(__DIR__, -8, 1) !== 'C') {
|
||||
self::$installed = include __DIR__ . '/installed.php';
|
||||
} else {
|
||||
self::$installed = array();
|
||||
}
|
||||
}
|
||||
|
||||
return self::$installed;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the raw data of all installed.php which are currently loaded for custom implementations
|
||||
*
|
||||
* @return array[]
|
||||
* @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
|
||||
*/
|
||||
public static function getAllRawData()
|
||||
{
|
||||
return self::getInstalled();
|
||||
}
|
||||
|
||||
/**
|
||||
* Lets you reload the static array from another file
|
||||
*
|
||||
* This is only useful for complex integrations in which a project needs to use
|
||||
* this class but then also needs to execute another project's autoloader in process,
|
||||
* and wants to ensure both projects have access to their version of installed.php.
|
||||
*
|
||||
* A typical case would be PHPUnit, where it would need to make sure it reads all
|
||||
* the data it needs from this class, then call reload() with
|
||||
* `require $CWD/vendor/composer/installed.php` (or similar) as input to make sure
|
||||
* the project in which it runs can then also use this class safely, without
|
||||
* interference between PHPUnit's dependencies and the project's dependencies.
|
||||
*
|
||||
* @param array[] $data A vendor/composer/installed.php data set
|
||||
* @return void
|
||||
*
|
||||
* @psalm-param array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $data
|
||||
*/
|
||||
public static function reload($data)
|
||||
{
|
||||
self::$installed = $data;
|
||||
self::$installedByVendor = array();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array[]
|
||||
* @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
|
||||
*/
|
||||
private static function getInstalled()
|
||||
{
|
||||
if (null === self::$canGetVendors) {
|
||||
self::$canGetVendors = method_exists('Composer\Autoload\ClassLoader', 'getRegisteredLoaders');
|
||||
}
|
||||
|
||||
$installed = array();
|
||||
|
||||
if (self::$canGetVendors) {
|
||||
foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
|
||||
if (isset(self::$installedByVendor[$vendorDir])) {
|
||||
$installed[] = self::$installedByVendor[$vendorDir];
|
||||
} elseif (is_file($vendorDir.'/composer/installed.php')) {
|
||||
$installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php';
|
||||
if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
|
||||
self::$installed = $installed[count($installed) - 1];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null === self::$installed) {
|
||||
// only require the installed.php file if this file is loaded from its dumped location,
|
||||
// and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
|
||||
if (substr(__DIR__, -8, 1) !== 'C') {
|
||||
self::$installed = require __DIR__ . '/installed.php';
|
||||
} else {
|
||||
self::$installed = array();
|
||||
}
|
||||
}
|
||||
$installed[] = self::$installed;
|
||||
|
||||
return $installed;
|
||||
}
|
||||
}
|
||||
21
modules/inpostizi/vendor/composer/LICENSE
vendored
Normal file
21
modules/inpostizi/vendor/composer/LICENSE
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
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.
|
||||
|
||||
897
modules/inpostizi/vendor/composer/autoload_classmap.php
vendored
Normal file
897
modules/inpostizi/vendor/composer/autoload_classmap.php
vendored
Normal file
@@ -0,0 +1,897 @@
|
||||
<?php
|
||||
|
||||
// autoload_classmap.php @generated by Composer
|
||||
|
||||
$vendorDir = dirname(__DIR__);
|
||||
$baseDir = dirname($vendorDir);
|
||||
|
||||
return array(
|
||||
'Attribute' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/Attribute.php',
|
||||
'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
|
||||
'Http\\Message\\MessageFactory' => $vendorDir . '/php-http/message-factory/src/MessageFactory.php',
|
||||
'Http\\Message\\RequestFactory' => $vendorDir . '/php-http/message-factory/src/RequestFactory.php',
|
||||
'Http\\Message\\ResponseFactory' => $vendorDir . '/php-http/message-factory/src/ResponseFactory.php',
|
||||
'Http\\Message\\StreamFactory' => $vendorDir . '/php-http/message-factory/src/StreamFactory.php',
|
||||
'Http\\Message\\UriFactory' => $vendorDir . '/php-http/message-factory/src/UriFactory.php',
|
||||
'MyCLabs\\Enum\\Enum' => $vendorDir . '/myclabs/php-enum/src/Enum.php',
|
||||
'MyCLabs\\Enum\\PHPUnit\\Comparator' => $vendorDir . '/myclabs/php-enum/src/PHPUnit/Comparator.php',
|
||||
'Nyholm\\Psr7\\Factory\\HttplugFactory' => $vendorDir . '/nyholm/psr7/src/Factory/HttplugFactory.php',
|
||||
'Nyholm\\Psr7\\Factory\\Psr17Factory' => $vendorDir . '/nyholm/psr7/src/Factory/Psr17Factory.php',
|
||||
'Nyholm\\Psr7\\MessageTrait' => $vendorDir . '/nyholm/psr7/src/MessageTrait.php',
|
||||
'Nyholm\\Psr7\\Request' => $vendorDir . '/nyholm/psr7/src/Request.php',
|
||||
'Nyholm\\Psr7\\RequestTrait' => $vendorDir . '/nyholm/psr7/src/RequestTrait.php',
|
||||
'Nyholm\\Psr7\\Response' => $vendorDir . '/nyholm/psr7/src/Response.php',
|
||||
'Nyholm\\Psr7\\ServerRequest' => $vendorDir . '/nyholm/psr7/src/ServerRequest.php',
|
||||
'Nyholm\\Psr7\\Stream' => $vendorDir . '/nyholm/psr7/src/Stream.php',
|
||||
'Nyholm\\Psr7\\UploadedFile' => $vendorDir . '/nyholm/psr7/src/UploadedFile.php',
|
||||
'Nyholm\\Psr7\\Uri' => $vendorDir . '/nyholm/psr7/src/Uri.php',
|
||||
'PhpToken' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/PhpToken.php',
|
||||
'Psr\\Clock\\ClockInterface' => $vendorDir . '/psr/clock/src/ClockInterface.php',
|
||||
'Psr\\Container\\ContainerExceptionInterface' => $vendorDir . '/psr/container/src/ContainerExceptionInterface.php',
|
||||
'Psr\\Container\\ContainerInterface' => $vendorDir . '/psr/container/src/ContainerInterface.php',
|
||||
'Psr\\Container\\NotFoundExceptionInterface' => $vendorDir . '/psr/container/src/NotFoundExceptionInterface.php',
|
||||
'Psr\\Http\\Client\\ClientExceptionInterface' => $vendorDir . '/psr/http-client/src/ClientExceptionInterface.php',
|
||||
'Psr\\Http\\Client\\ClientInterface' => $vendorDir . '/psr/http-client/src/ClientInterface.php',
|
||||
'Psr\\Http\\Client\\NetworkExceptionInterface' => $vendorDir . '/psr/http-client/src/NetworkExceptionInterface.php',
|
||||
'Psr\\Http\\Client\\RequestExceptionInterface' => $vendorDir . '/psr/http-client/src/RequestExceptionInterface.php',
|
||||
'Psr\\Http\\Message\\MessageInterface' => $vendorDir . '/psr/http-message/src/MessageInterface.php',
|
||||
'Psr\\Http\\Message\\RequestFactoryInterface' => $vendorDir . '/psr/http-factory/src/RequestFactoryInterface.php',
|
||||
'Psr\\Http\\Message\\RequestInterface' => $vendorDir . '/psr/http-message/src/RequestInterface.php',
|
||||
'Psr\\Http\\Message\\ResponseFactoryInterface' => $vendorDir . '/psr/http-factory/src/ResponseFactoryInterface.php',
|
||||
'Psr\\Http\\Message\\ResponseInterface' => $vendorDir . '/psr/http-message/src/ResponseInterface.php',
|
||||
'Psr\\Http\\Message\\ServerRequestFactoryInterface' => $vendorDir . '/psr/http-factory/src/ServerRequestFactoryInterface.php',
|
||||
'Psr\\Http\\Message\\ServerRequestInterface' => $vendorDir . '/psr/http-message/src/ServerRequestInterface.php',
|
||||
'Psr\\Http\\Message\\StreamFactoryInterface' => $vendorDir . '/psr/http-factory/src/StreamFactoryInterface.php',
|
||||
'Psr\\Http\\Message\\StreamInterface' => $vendorDir . '/psr/http-message/src/StreamInterface.php',
|
||||
'Psr\\Http\\Message\\UploadedFileFactoryInterface' => $vendorDir . '/psr/http-factory/src/UploadedFileFactoryInterface.php',
|
||||
'Psr\\Http\\Message\\UploadedFileInterface' => $vendorDir . '/psr/http-message/src/UploadedFileInterface.php',
|
||||
'Psr\\Http\\Message\\UriFactoryInterface' => $vendorDir . '/psr/http-factory/src/UriFactoryInterface.php',
|
||||
'Psr\\Http\\Message\\UriInterface' => $vendorDir . '/psr/http-message/src/UriInterface.php',
|
||||
'Psr\\SimpleCache\\CacheException' => $vendorDir . '/psr/simple-cache/src/CacheException.php',
|
||||
'Psr\\SimpleCache\\CacheInterface' => $vendorDir . '/psr/simple-cache/src/CacheInterface.php',
|
||||
'Psr\\SimpleCache\\InvalidArgumentException' => $vendorDir . '/psr/simple-cache/src/InvalidArgumentException.php',
|
||||
'Stringable' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/Stringable.php',
|
||||
'Symfony\\Contracts\\Service\\ResetInterface' => $vendorDir . '/symfony/service-contracts/ResetInterface.php',
|
||||
'Symfony\\Contracts\\Service\\ServiceLocatorTrait' => $vendorDir . '/symfony/service-contracts/ServiceLocatorTrait.php',
|
||||
'Symfony\\Contracts\\Service\\ServiceProviderInterface' => $vendorDir . '/symfony/service-contracts/ServiceProviderInterface.php',
|
||||
'Symfony\\Contracts\\Service\\ServiceSubscriberInterface' => $vendorDir . '/symfony/service-contracts/ServiceSubscriberInterface.php',
|
||||
'Symfony\\Contracts\\Service\\ServiceSubscriberTrait' => $vendorDir . '/symfony/service-contracts/ServiceSubscriberTrait.php',
|
||||
'Symfony\\Contracts\\Service\\Test\\ServiceLocatorTest' => $vendorDir . '/symfony/service-contracts/Test/ServiceLocatorTest.php',
|
||||
'Symfony\\Polyfill\\Mbstring\\Mbstring' => $vendorDir . '/symfony/polyfill-mbstring/Mbstring.php',
|
||||
'Symfony\\Polyfill\\Php80\\Php80' => $vendorDir . '/symfony/polyfill-php80/Php80.php',
|
||||
'Symfony\\Polyfill\\Php80\\PhpToken' => $vendorDir . '/symfony/polyfill-php80/PhpToken.php',
|
||||
'UnhandledMatchError' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/UnhandledMatchError.php',
|
||||
'ValueError' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/ValueError.php',
|
||||
'ZipStream\\Bigint' => $vendorDir . '/maennchen/zipstream-php/src/Bigint.php',
|
||||
'ZipStream\\DeflateStream' => $vendorDir . '/maennchen/zipstream-php/src/DeflateStream.php',
|
||||
'ZipStream\\Exception' => $vendorDir . '/maennchen/zipstream-php/src/Exception.php',
|
||||
'ZipStream\\Exception\\EncodingException' => $vendorDir . '/maennchen/zipstream-php/src/Exception/EncodingException.php',
|
||||
'ZipStream\\Exception\\FileNotFoundException' => $vendorDir . '/maennchen/zipstream-php/src/Exception/FileNotFoundException.php',
|
||||
'ZipStream\\Exception\\FileNotReadableException' => $vendorDir . '/maennchen/zipstream-php/src/Exception/FileNotReadableException.php',
|
||||
'ZipStream\\Exception\\IncompatibleOptionsException' => $vendorDir . '/maennchen/zipstream-php/src/Exception/IncompatibleOptionsException.php',
|
||||
'ZipStream\\Exception\\OverflowException' => $vendorDir . '/maennchen/zipstream-php/src/Exception/OverflowException.php',
|
||||
'ZipStream\\Exception\\StreamNotReadableException' => $vendorDir . '/maennchen/zipstream-php/src/Exception/StreamNotReadableException.php',
|
||||
'ZipStream\\File' => $vendorDir . '/maennchen/zipstream-php/src/File.php',
|
||||
'ZipStream\\Option\\Archive' => $vendorDir . '/maennchen/zipstream-php/src/Option/Archive.php',
|
||||
'ZipStream\\Option\\File' => $vendorDir . '/maennchen/zipstream-php/src/Option/File.php',
|
||||
'ZipStream\\Option\\Method' => $vendorDir . '/maennchen/zipstream-php/src/Option/Method.php',
|
||||
'ZipStream\\Option\\Version' => $vendorDir . '/maennchen/zipstream-php/src/Option/Version.php',
|
||||
'ZipStream\\Stream' => $vendorDir . '/maennchen/zipstream-php/src/Stream.php',
|
||||
'ZipStream\\ZipStream' => $vendorDir . '/maennchen/zipstream-php/src/ZipStream.php',
|
||||
'izi\\prestashop\\AdminKernel' => $baseDir . '/src/AdminKernel.php',
|
||||
'izi\\prestashop\\Analytics\\BasketAnalytics' => $baseDir . '/src/Analytics/BasketAnalytics.php',
|
||||
'izi\\prestashop\\Analytics\\BasketAnalyticsInterface' => $baseDir . '/src/Analytics/BasketAnalyticsInterface.php',
|
||||
'izi\\prestashop\\Analytics\\BasketAnalyticsParams' => $baseDir . '/src/Analytics/BasketAnalyticsParams.php',
|
||||
'izi\\prestashop\\Analytics\\BasketAnalyticsRepository' => $baseDir . '/src/Analytics/BasketAnalyticsRepository.php',
|
||||
'izi\\prestashop\\Analytics\\BasketAnalyticsRepositoryInterface' => $baseDir . '/src/Analytics/BasketAnalyticsRepositoryInterface.php',
|
||||
'izi\\prestashop\\Analytics\\Command\\UpdateCartAnalyticsCommand' => $baseDir . '/src/Analytics/Command/UpdateCartAnalyticsCommand.php',
|
||||
'izi\\prestashop\\Analytics\\Cookie\\CookieEraserInterface' => $baseDir . '/src/Analytics/Cookie/CookieEraserInterface.php',
|
||||
'izi\\prestashop\\Analytics\\Cookie\\CookieExtractorInterface' => $baseDir . '/src/Analytics/Cookie/CookieExtractorInterface.php',
|
||||
'izi\\prestashop\\Analytics\\Cookie\\CookiePersisterInterface' => $baseDir . '/src/Analytics/Cookie/CookiePersisterInterface.php',
|
||||
'izi\\prestashop\\Analytics\\Cookie\\Executor\\CookieEraseExecutor' => $baseDir . '/src/Analytics/Cookie/Executor/CookieEraseExecutor.php',
|
||||
'izi\\prestashop\\Analytics\\Cookie\\Executor\\CookiePersisterExecutor' => $baseDir . '/src/Analytics/Cookie/Executor/CookiePersisterExecutor.php',
|
||||
'izi\\prestashop\\Analytics\\Cookie\\FacebookClickIdCookie' => $baseDir . '/src/Analytics/Cookie/FacebookClickIdCookie.php',
|
||||
'izi\\prestashop\\Analytics\\Cookie\\Factory\\CookieFactory' => $baseDir . '/src/Analytics/Cookie/Factory/CookieFactory.php',
|
||||
'izi\\prestashop\\Analytics\\Cookie\\Factory\\CookieFactoryInterface' => $baseDir . '/src/Analytics/Cookie/Factory/CookieFactoryInterface.php',
|
||||
'izi\\prestashop\\Analytics\\Cookie\\GoogleClickIdCookie' => $baseDir . '/src/Analytics/Cookie/GoogleClickIdCookie.php',
|
||||
'izi\\prestashop\\Analytics\\Cookie\\GoogleClientIdCookie' => $baseDir . '/src/Analytics/Cookie/GoogleClientIdCookie.php',
|
||||
'izi\\prestashop\\Analytics\\Cookie\\Repository\\CookieRepository' => $baseDir . '/src/Analytics/Cookie/Repository/CookieRepository.php',
|
||||
'izi\\prestashop\\Analytics\\Cookie\\Repository\\CookieRepositoryInterface' => $baseDir . '/src/Analytics/Cookie/Repository/CookieRepositoryInterface.php',
|
||||
'izi\\prestashop\\Analytics\\EventListener\\UpdateBasketAnalyticsListener' => $baseDir . '/src/Analytics/EventListener/UpdateBasketAnalyticsListener.php',
|
||||
'izi\\prestashop\\Analytics\\Factory\\BasketAnalyticsFactory' => $baseDir . '/src/Analytics/Factory/BasketAnalyticsFactory.php',
|
||||
'izi\\prestashop\\Analytics\\Factory\\BasketAnalyticsFactoryInterface' => $baseDir . '/src/Analytics/Factory/BasketAnalyticsFactoryInterface.php',
|
||||
'izi\\prestashop\\Analytics\\Handler\\UpdateCartAnalyticsHandler' => $baseDir . '/src/Analytics/Handler/UpdateCartAnalyticsHandler.php',
|
||||
'izi\\prestashop\\Analytics\\Handler\\UpdateCartAnalyticsHandlerInterface' => $baseDir . '/src/Analytics/Handler/UpdateCartAnalyticsHandlerInterface.php',
|
||||
'izi\\prestashop\\BasketApp\\AuthorizationProviderFactory' => $baseDir . '/src/BasketApp/AuthorizationProviderFactory.php',
|
||||
'izi\\prestashop\\BasketApp\\BasketAppClient' => $baseDir . '/src/BasketApp/BasketAppClient.php',
|
||||
'izi\\prestashop\\BasketApp\\BasketAppClientFactory' => $baseDir . '/src/BasketApp/BasketAppClientFactory.php',
|
||||
'izi\\prestashop\\BasketApp\\BasketAppClientInterface' => $baseDir . '/src/BasketApp/BasketAppClientInterface.php',
|
||||
'izi\\prestashop\\BasketApp\\Basket\\BasketsApiClientInterface' => $baseDir . '/src/BasketApp/Basket/BasketsApiClientInterface.php',
|
||||
'izi\\prestashop\\BasketApp\\Basket\\Request\\Basket' => $baseDir . '/src/BasketApp/Basket/Request/Basket.php',
|
||||
'izi\\prestashop\\BasketApp\\Basket\\Response\\BasketBindingKeyResponse' => $baseDir . '/src/BasketApp/Basket/Response/BasketBindingKeyResponse.php',
|
||||
'izi\\prestashop\\BasketApp\\Basket\\Response\\BasketBindingResponse' => $baseDir . '/src/BasketApp/Basket/Response/BasketBindingResponse.php',
|
||||
'izi\\prestashop\\BasketApp\\Basket\\Response\\ClientDetails' => $baseDir . '/src/BasketApp/Basket/Response/ClientDetails.php',
|
||||
'izi\\prestashop\\BasketApp\\Basket\\Response\\UpdateBasketResponse' => $baseDir . '/src/BasketApp/Basket/Response/UpdateBasketResponse.php',
|
||||
'izi\\prestashop\\BasketApp\\Exception\\BadRequestException' => $baseDir . '/src/BasketApp/Exception/BadRequestException.php',
|
||||
'izi\\prestashop\\BasketApp\\Exception\\BasketAlreadyBoundException' => $baseDir . '/src/BasketApp/Exception/BasketAlreadyBoundException.php',
|
||||
'izi\\prestashop\\BasketApp\\Exception\\BasketAppException' => $baseDir . '/src/BasketApp/Exception/BasketAppException.php',
|
||||
'izi\\prestashop\\BasketApp\\Exception\\BasketExpiredException' => $baseDir . '/src/BasketApp/Exception/BasketExpiredException.php',
|
||||
'izi\\prestashop\\BasketApp\\Exception\\BasketNotBoundException' => $baseDir . '/src/BasketApp/Exception/BasketNotBoundException.php',
|
||||
'izi\\prestashop\\BasketApp\\Exception\\BasketNotFoundException' => $baseDir . '/src/BasketApp/Exception/BasketNotFoundException.php',
|
||||
'izi\\prestashop\\BasketApp\\Exception\\CannotChangeOrderStatusException' => $baseDir . '/src/BasketApp/Exception/CannotChangeOrderStatusException.php',
|
||||
'izi\\prestashop\\BasketApp\\Exception\\ForbiddenException' => $baseDir . '/src/BasketApp/Exception/ForbiddenException.php',
|
||||
'izi\\prestashop\\BasketApp\\Exception\\InternalServerErrorException' => $baseDir . '/src/BasketApp/Exception/InternalServerErrorException.php',
|
||||
'izi\\prestashop\\BasketApp\\Exception\\MalformedRequestException' => $baseDir . '/src/BasketApp/Exception/MalformedRequestException.php',
|
||||
'izi\\prestashop\\BasketApp\\Exception\\MerchantDisabledException' => $baseDir . '/src/BasketApp/Exception/MerchantDisabledException.php',
|
||||
'izi\\prestashop\\BasketApp\\Exception\\OrderNotFoundException' => $baseDir . '/src/BasketApp/Exception/OrderNotFoundException.php',
|
||||
'izi\\prestashop\\BasketApp\\Exception\\PhoneBindingUnavailableException' => $baseDir . '/src/BasketApp/Exception/PhoneBindingUnavailableException.php',
|
||||
'izi\\prestashop\\BasketApp\\Exception\\PublicKeyNotFoundException' => $baseDir . '/src/BasketApp/Exception/PublicKeyNotFoundException.php',
|
||||
'izi\\prestashop\\BasketApp\\Exception\\ResourceNotFoundException' => $baseDir . '/src/BasketApp/Exception/ResourceNotFoundException.php',
|
||||
'izi\\prestashop\\BasketApp\\Exception\\UnauthorizedException' => $baseDir . '/src/BasketApp/Exception/UnauthorizedException.php',
|
||||
'izi\\prestashop\\BasketApp\\Order\\OrdersApiClientInterface' => $baseDir . '/src/BasketApp/Order/OrdersApiClientInterface.php',
|
||||
'izi\\prestashop\\BasketApp\\Order\\Request\\Delivery' => $baseDir . '/src/BasketApp/Order/Request/Delivery.php',
|
||||
'izi\\prestashop\\BasketApp\\Order\\Request\\OrderEvent' => $baseDir . '/src/BasketApp/Order/Request/OrderEvent.php',
|
||||
'izi\\prestashop\\BasketApp\\Order\\Request\\OrderEventData' => $baseDir . '/src/BasketApp/Order/Request/OrderEventData.php',
|
||||
'izi\\prestashop\\BasketApp\\PaginationPage' => $baseDir . '/src/BasketApp/PaginationPage.php',
|
||||
'izi\\prestashop\\BasketApp\\Payment\\PaymentsApiClientInterface' => $baseDir . '/src/BasketApp/Payment/PaymentsApiClientInterface.php',
|
||||
'izi\\prestashop\\BasketApp\\Payment\\Response\\AvailablePaymentOptions' => $baseDir . '/src/BasketApp/Payment/Response/AvailablePaymentOptions.php',
|
||||
'izi\\prestashop\\BasketApp\\Product\\Exception\\MaxProductLimitReachedException' => $baseDir . '/src/BasketApp/Product/Exception/MaxProductLimitReachedException.php',
|
||||
'izi\\prestashop\\BasketApp\\Product\\Exception\\ProductExistsException' => $baseDir . '/src/BasketApp/Product/Exception/ProductExistsException.php',
|
||||
'izi\\prestashop\\BasketApp\\Product\\Exception\\ProductNotFoundException' => $baseDir . '/src/BasketApp/Product/Exception/ProductNotFoundException.php',
|
||||
'izi\\prestashop\\BasketApp\\Product\\ProductsApiClientInterface' => $baseDir . '/src/BasketApp/Product/ProductsApiClientInterface.php',
|
||||
'izi\\prestashop\\BasketApp\\Product\\Request\\CreateProductsRequest' => $baseDir . '/src/BasketApp/Product/Request/CreateProductsRequest.php',
|
||||
'izi\\prestashop\\BasketApp\\Product\\Response\\CreateProductsResponse' => $baseDir . '/src/BasketApp/Product/Response/CreateProductsResponse.php',
|
||||
'izi\\prestashop\\BasketApp\\Product\\Response\\Product' => $baseDir . '/src/BasketApp/Product/Response/Product.php',
|
||||
'izi\\prestashop\\BasketApp\\Product\\Response\\ProductId' => $baseDir . '/src/BasketApp/Product/Response/ProductId.php',
|
||||
'izi\\prestashop\\BasketApp\\Product\\Response\\Status' => $baseDir . '/src/BasketApp/Product/Response/Status.php',
|
||||
'izi\\prestashop\\BasketApp\\Signature\\Response\\PublicKey' => $baseDir . '/src/BasketApp/Signature/Response/PublicKey.php',
|
||||
'izi\\prestashop\\BasketApp\\Signature\\Response\\SigningKey' => $baseDir . '/src/BasketApp/Signature/Response/SigningKey.php',
|
||||
'izi\\prestashop\\BasketApp\\Signature\\Response\\SigningKeys' => $baseDir . '/src/BasketApp/Signature/Response/SigningKeys.php',
|
||||
'izi\\prestashop\\BasketApp\\Signature\\SigningKeysApiClientInterface' => $baseDir . '/src/BasketApp/Signature/SigningKeysApiClientInterface.php',
|
||||
'izi\\prestashop\\Builder\\Basket\\AbstractBasketBuilder' => $baseDir . '/src/Builder/Basket/AbstractBasketBuilder.php',
|
||||
'izi\\prestashop\\Builder\\Basket\\BasketAppRequestBuilder' => $baseDir . '/src/Builder/Basket/BasketAppRequestBuilder.php',
|
||||
'izi\\prestashop\\Builder\\Basket\\BasketAppRequestBuilderInterface' => $baseDir . '/src/Builder/Basket/BasketAppRequestBuilderInterface.php',
|
||||
'izi\\prestashop\\Builder\\Basket\\BasketBuilderFactory' => $baseDir . '/src/Builder/Basket/BasketBuilderFactory.php',
|
||||
'izi\\prestashop\\Builder\\Basket\\BasketBuilderFactoryInterface' => $baseDir . '/src/Builder/Basket/BasketBuilderFactoryInterface.php',
|
||||
'izi\\prestashop\\Builder\\Basket\\BasketBuilderInterface' => $baseDir . '/src/Builder/Basket/BasketBuilderInterface.php',
|
||||
'izi\\prestashop\\Builder\\Basket\\DeliveryFactory' => $baseDir . '/src/Builder/Basket/DeliveryFactory.php',
|
||||
'izi\\prestashop\\Builder\\Basket\\MerchantApiResponseBuilder' => $baseDir . '/src/Builder/Basket/MerchantApiResponseBuilder.php',
|
||||
'izi\\prestashop\\Builder\\Basket\\MerchantApiResponseBuilderInterface' => $baseDir . '/src/Builder/Basket/MerchantApiResponseBuilderInterface.php',
|
||||
'izi\\prestashop\\Builder\\Basket\\ProductDeliveryFactory' => $baseDir . '/src/Builder/Basket/ProductDeliveryFactory.php',
|
||||
'izi\\prestashop\\Builder\\Order\\OrderEventBuilder' => $baseDir . '/src/Builder/Order/OrderEventBuilder.php',
|
||||
'izi\\prestashop\\Builder\\Order\\OrderEventBuilderFactory' => $baseDir . '/src/Builder/Order/OrderEventBuilderFactory.php',
|
||||
'izi\\prestashop\\Builder\\Order\\OrderEventBuilderFactoryInterface' => $baseDir . '/src/Builder/Order/OrderEventBuilderFactoryInterface.php',
|
||||
'izi\\prestashop\\Builder\\Order\\OrderEventBuilderInterface' => $baseDir . '/src/Builder/Order/OrderEventBuilderInterface.php',
|
||||
'izi\\prestashop\\Builder\\Order\\OrderStatusDescriptionProvider' => $baseDir . '/src/Builder/Order/OrderStatusDescriptionProvider.php',
|
||||
'izi\\prestashop\\Builder\\PriceFactory' => $baseDir . '/src/Builder/PriceFactory.php',
|
||||
'izi\\prestashop\\CacheClearer\\BindingKeysCacheClearer' => $baseDir . '/src/CacheClearer/BindingKeysCacheClearer.php',
|
||||
'izi\\prestashop\\CacheClearer\\CacheClearerInterface' => $baseDir . '/src/CacheClearer/CacheClearerInterface.php',
|
||||
'izi\\prestashop\\CacheClearer\\ChainCacheClearer' => $baseDir . '/src/CacheClearer/ChainCacheClearer.php',
|
||||
'izi\\prestashop\\CacheClearer\\Psr16CacheClearer' => $baseDir . '/src/CacheClearer/Psr16CacheClearer.php',
|
||||
'izi\\prestashop\\Cache\\ConfigurationCache' => $baseDir . '/src/Cache/ConfigurationCache.php',
|
||||
'izi\\prestashop\\Cache\\Exception\\InvalidArgumentException' => $baseDir . '/src/Cache/Exception/InvalidArgumentException.php',
|
||||
'izi\\prestashop\\Cache\\Exception\\RuntimeException' => $baseDir . '/src/Cache/Exception/RuntimeException.php',
|
||||
'izi\\prestashop\\Cart\\Exception\\ProductAlreadyInCartException' => $baseDir . '/src/Cart/Exception/ProductAlreadyInCartException.php',
|
||||
'izi\\prestashop\\Cart\\Util\\ProductHelper' => $baseDir . '/src/Cart/Util/ProductHelper.php',
|
||||
'izi\\prestashop\\Clock\\SystemClock' => $baseDir . '/src/Clock/SystemClock.php',
|
||||
'izi\\prestashop\\CommandBus' => $baseDir . '/src/CommandBus.php',
|
||||
'izi\\prestashop\\CommandBusInterface' => $baseDir . '/src/CommandBusInterface.php',
|
||||
'izi\\prestashop\\Command\\Config\\CheckStatusCommand' => $baseDir . '/src/Command/Config/CheckStatusCommand.php',
|
||||
'izi\\prestashop\\Command\\Config\\DownloadModuleDataCommand' => $baseDir . '/src/Command/Config/DownloadModuleDataCommand.php',
|
||||
'izi\\prestashop\\Command\\Config\\UpdateAdvancedConfigurationCommand' => $baseDir . '/src/Command/Config/UpdateAdvancedConfigurationCommand.php',
|
||||
'izi\\prestashop\\Command\\Config\\UpdateCartRuleOptionsCommand' => $baseDir . '/src/Command/Config/UpdateCartRuleOptionsCommand.php',
|
||||
'izi\\prestashop\\Command\\Config\\UpdateConsentsConfigurationCommand' => $baseDir . '/src/Command/Config/UpdateConsentsConfigurationCommand.php',
|
||||
'izi\\prestashop\\Command\\Config\\UpdateGeneralConfigurationCommand' => $baseDir . '/src/Command/Config/UpdateGeneralConfigurationCommand.php',
|
||||
'izi\\prestashop\\Command\\Config\\UpdateGeneralConfigurationCommandFactory' => $baseDir . '/src/Command/Config/UpdateGeneralConfigurationCommandFactory.php',
|
||||
'izi\\prestashop\\Command\\Config\\UpdateGuiConfigurationCommand' => $baseDir . '/src/Command/Config/UpdateGuiConfigurationCommand.php',
|
||||
'izi\\prestashop\\Command\\Config\\UpdateShippingConfigurationCommand' => $baseDir . '/src/Command/Config/UpdateShippingConfigurationCommand.php',
|
||||
'izi\\prestashop\\Command\\GetBasketBindingKeyCommand' => $baseDir . '/src/Command/GetBasketBindingKeyCommand.php',
|
||||
'izi\\prestashop\\Command\\GetOrderConfirmationUrlCommand' => $baseDir . '/src/Command/GetOrderConfirmationUrlCommand.php',
|
||||
'izi\\prestashop\\Command\\UnbindBasketCommand' => $baseDir . '/src/Command/UnbindBasketCommand.php',
|
||||
'izi\\prestashop\\Command\\UpdateBasketCommand' => $baseDir . '/src/Command/UpdateBasketCommand.php',
|
||||
'izi\\prestashop\\Command\\UpdateOrderAddressDeliveryCommand' => $baseDir . '/src/Command/UpdateOrderAddressDeliveryCommand.php',
|
||||
'izi\\prestashop\\Command\\UpdateOrderStatusCommand' => $baseDir . '/src/Command/UpdateOrderStatusCommand.php',
|
||||
'izi\\prestashop\\Command\\UpdateOrderTrackingNumbersCommand' => $baseDir . '/src/Command/UpdateOrderTrackingNumbersCommand.php',
|
||||
'izi\\prestashop\\Common\\Basket\\AvailablePromotion' => $baseDir . '/src/Common/Basket/AvailablePromotion.php',
|
||||
'izi\\prestashop\\Common\\Basket\\Consent' => $baseDir . '/src/Common/Basket/Consent.php',
|
||||
'izi\\prestashop\\Common\\Basket\\ConsentLink' => $baseDir . '/src/Common/Basket/ConsentLink.php',
|
||||
'izi\\prestashop\\Common\\Basket\\ConsentRequirementType' => $baseDir . '/src/Common/Basket/ConsentRequirementType.php',
|
||||
'izi\\prestashop\\Common\\Basket\\DeliveryOption' => $baseDir . '/src/Common/Basket/DeliveryOption.php',
|
||||
'izi\\prestashop\\Common\\Basket\\Notice' => $baseDir . '/src/Common/Basket/Notice.php',
|
||||
'izi\\prestashop\\Common\\Basket\\NoticeType' => $baseDir . '/src/Common/Basket/NoticeType.php',
|
||||
'izi\\prestashop\\Common\\Basket\\Product' => $baseDir . '/src/Common/Basket/Product.php',
|
||||
'izi\\prestashop\\Common\\Basket\\PromoDetails' => $baseDir . '/src/Common/Basket/PromoDetails.php',
|
||||
'izi\\prestashop\\Common\\Basket\\PromotionType' => $baseDir . '/src/Common/Basket/PromotionType.php',
|
||||
'izi\\prestashop\\Common\\Basket\\Quantity' => $baseDir . '/src/Common/Basket/Quantity.php',
|
||||
'izi\\prestashop\\Common\\Basket\\Summary' => $baseDir . '/src/Common/Basket/Summary.php',
|
||||
'izi\\prestashop\\Common\\BindingPlace' => $baseDir . '/src/Common/BindingPlace.php',
|
||||
'izi\\prestashop\\Common\\Currency' => $baseDir . '/src/Common/Currency.php',
|
||||
'izi\\prestashop\\Common\\Customer\\AccountInfo' => $baseDir . '/src/Common/Customer/AccountInfo.php',
|
||||
'izi\\prestashop\\Common\\Customer\\ClientAddress' => $baseDir . '/src/Common/Customer/ClientAddress.php',
|
||||
'izi\\prestashop\\Common\\Customer\\InvoiceDetails' => $baseDir . '/src/Common/Customer/InvoiceDetails.php',
|
||||
'izi\\prestashop\\Common\\Customer\\LegalForm' => $baseDir . '/src/Common/Customer/LegalForm.php',
|
||||
'izi\\prestashop\\Common\\Delivery\\DeliveryType' => $baseDir . '/src/Common/Delivery/DeliveryType.php',
|
||||
'izi\\prestashop\\Common\\Delivery\\OptionalService' => $baseDir . '/src/Common/Delivery/OptionalService.php',
|
||||
'izi\\prestashop\\Common\\Delivery\\ServiceCode' => $baseDir . '/src/Common/Delivery/ServiceCode.php',
|
||||
'izi\\prestashop\\Common\\Dimensions' => $baseDir . '/src/Common/Dimensions.php',
|
||||
'izi\\prestashop\\Common\\Error\\Error' => $baseDir . '/src/Common/Error/Error.php',
|
||||
'izi\\prestashop\\Common\\HotProduct\\IdentifiableProduct' => $baseDir . '/src/Common/HotProduct/IdentifiableProduct.php',
|
||||
'izi\\prestashop\\Common\\HotProduct\\Product' => $baseDir . '/src/Common/HotProduct/Product.php',
|
||||
'izi\\prestashop\\Common\\HotProduct\\ProductAvailability' => $baseDir . '/src/Common/HotProduct/ProductAvailability.php',
|
||||
'izi\\prestashop\\Common\\HotProduct\\ProductTrait' => $baseDir . '/src/Common/HotProduct/ProductTrait.php',
|
||||
'izi\\prestashop\\Common\\HotProduct\\Quantity' => $baseDir . '/src/Common/HotProduct/Quantity.php',
|
||||
'izi\\prestashop\\Common\\Order\\Consent' => $baseDir . '/src/Common/Order/Consent.php',
|
||||
'izi\\prestashop\\Common\\Order\\DeliveryAddress' => $baseDir . '/src/Common/Order/DeliveryAddress.php',
|
||||
'izi\\prestashop\\Common\\Order\\MerchantOrderStatus' => $baseDir . '/src/Common/Order/MerchantOrderStatus.php',
|
||||
'izi\\prestashop\\Common\\Order\\OrderAdditionalParameter' => $baseDir . '/src/Common/Order/OrderAdditionalParameter.php',
|
||||
'izi\\prestashop\\Common\\Order\\OrderAdditionalParameters' => $baseDir . '/src/Common/Order/OrderAdditionalParameters.php',
|
||||
'izi\\prestashop\\Common\\Order\\Product' => $baseDir . '/src/Common/Order/Product.php',
|
||||
'izi\\prestashop\\Common\\Order\\Quantity' => $baseDir . '/src/Common/Order/Quantity.php',
|
||||
'izi\\prestashop\\Common\\PaymentType' => $baseDir . '/src/Common/PaymentType.php',
|
||||
'izi\\prestashop\\Common\\PhoneNumber' => $baseDir . '/src/Common/PhoneNumber.php',
|
||||
'izi\\prestashop\\Common\\Price' => $baseDir . '/src/Common/Price.php',
|
||||
'izi\\prestashop\\Common\\PriceAmount' => $baseDir . '/src/Common/PriceAmount.php',
|
||||
'izi\\prestashop\\Common\\Product\\DeliveryProduct' => $baseDir . '/src/Common/Product/DeliveryProduct.php',
|
||||
'izi\\prestashop\\Common\\Product\\DeliveryRelatedProducts' => $baseDir . '/src/Common/Product/DeliveryRelatedProducts.php',
|
||||
'izi\\prestashop\\Common\\Product\\ProductAttribute' => $baseDir . '/src/Common/Product/ProductAttribute.php',
|
||||
'izi\\prestashop\\Common\\Product\\ProductImage' => $baseDir . '/src/Common/Product/ProductImage.php',
|
||||
'izi\\prestashop\\Common\\Product\\ProductVariant' => $baseDir . '/src/Common/Product/ProductVariant.php',
|
||||
'izi\\prestashop\\Common\\PromoCode' => $baseDir . '/src/Common/PromoCode.php',
|
||||
'izi\\prestashop\\Common\\QuantityType' => $baseDir . '/src/Common/QuantityType.php',
|
||||
'izi\\prestashop\\Common\\Weight' => $baseDir . '/src/Common/Weight.php',
|
||||
'izi\\prestashop\\Configuration\\Adapter\\Configuration' => $baseDir . '/src/Configuration/Adapter/Configuration.php',
|
||||
'izi\\prestashop\\Configuration\\AdvancedConfiguration' => $baseDir . '/src/Configuration/AdvancedConfiguration.php',
|
||||
'izi\\prestashop\\Configuration\\AdvancedConfigurationInterface' => $baseDir . '/src/Configuration/AdvancedConfigurationInterface.php',
|
||||
'izi\\prestashop\\Configuration\\ApiConfiguration' => $baseDir . '/src/Configuration/ApiConfiguration.php',
|
||||
'izi\\prestashop\\Configuration\\ApiConfigurationInterface' => $baseDir . '/src/Configuration/ApiConfigurationInterface.php',
|
||||
'izi\\prestashop\\Configuration\\ConfigurationInterface' => $baseDir . '/src/Configuration/ConfigurationInterface.php',
|
||||
'izi\\prestashop\\Configuration\\ConsentsConfiguration' => $baseDir . '/src/Configuration/ConsentsConfiguration.php',
|
||||
'izi\\prestashop\\Configuration\\ConsentsConfigurationInterface' => $baseDir . '/src/Configuration/ConsentsConfigurationInterface.php',
|
||||
'izi\\prestashop\\Configuration\\DTO\\AdvancedConfiguration' => $baseDir . '/src/Configuration/DTO/AdvancedConfiguration.php',
|
||||
'izi\\prestashop\\Configuration\\DTO\\ApiConfiguration' => $baseDir . '/src/Configuration/DTO/ApiConfiguration.php',
|
||||
'izi\\prestashop\\Configuration\\DTO\\Consent' => $baseDir . '/src/Configuration/DTO/Consent.php',
|
||||
'izi\\prestashop\\Configuration\\DTO\\ConsentLink' => $baseDir . '/src/Configuration/DTO/ConsentLink.php',
|
||||
'izi\\prestashop\\Configuration\\DTO\\GeneralConfiguration' => $baseDir . '/src/Configuration/DTO/GeneralConfiguration.php',
|
||||
'izi\\prestashop\\Configuration\\DTO\\GuiConfiguration' => $baseDir . '/src/Configuration/DTO/GuiConfiguration.php',
|
||||
'izi\\prestashop\\Configuration\\DTO\\HtmlStyles' => $baseDir . '/src/Configuration/DTO/HtmlStyles.php',
|
||||
'izi\\prestashop\\Configuration\\DTO\\Order\\MessageOptions' => $baseDir . '/src/Configuration/DTO/Order/MessageOptions.php',
|
||||
'izi\\prestashop\\Configuration\\DTO\\OrdersConfiguration' => $baseDir . '/src/Configuration/DTO/OrdersConfiguration.php',
|
||||
'izi\\prestashop\\Configuration\\DTO\\ProductConfiguration' => $baseDir . '/src/Configuration/DTO/ProductConfiguration.php',
|
||||
'izi\\prestashop\\Configuration\\DTO\\ProductPageDisplayConfiguration' => $baseDir . '/src/Configuration/DTO/ProductPageDisplayConfiguration.php',
|
||||
'izi\\prestashop\\Configuration\\DTO\\Product\\ProductRestrictions' => $baseDir . '/src/Configuration/DTO/Product/ProductRestrictions.php',
|
||||
'izi\\prestashop\\Configuration\\DTO\\Product\\ProductRestrictionsCache' => $baseDir . '/src/Configuration/DTO/Product/ProductRestrictionsCache.php',
|
||||
'izi\\prestashop\\Configuration\\DTO\\ShippingConfiguration' => $baseDir . '/src/Configuration/DTO/ShippingConfiguration.php',
|
||||
'izi\\prestashop\\Configuration\\DTO\\Shipping\\CarrierMapping' => $baseDir . '/src/Configuration/DTO/Shipping/CarrierMapping.php',
|
||||
'izi\\prestashop\\Configuration\\DTO\\Shipping\\ServiceOptions' => $baseDir . '/src/Configuration/DTO/Shipping/ServiceOptions.php',
|
||||
'izi\\prestashop\\Configuration\\DTO\\Shipping\\ShippingOptions' => $baseDir . '/src/Configuration/DTO/Shipping/ShippingOptions.php',
|
||||
'izi\\prestashop\\Configuration\\DTO\\Shipping\\TimeOfWeek' => $baseDir . '/src/Configuration/DTO/Shipping/TimeOfWeek.php',
|
||||
'izi\\prestashop\\Configuration\\DTO\\Shipping\\TimeOfWeekRange' => $baseDir . '/src/Configuration/DTO/Shipping/TimeOfWeekRange.php',
|
||||
'izi\\prestashop\\Configuration\\DTO\\Shipping\\WeekDay' => $baseDir . '/src/Configuration/DTO/Shipping/WeekDay.php',
|
||||
'izi\\prestashop\\Configuration\\DTO\\WidgetDisplayConfiguration' => $baseDir . '/src/Configuration/DTO/WidgetDisplayConfiguration.php',
|
||||
'izi\\prestashop\\Configuration\\GeneralConfiguration' => $baseDir . '/src/Configuration/GeneralConfiguration.php',
|
||||
'izi\\prestashop\\Configuration\\GeneralConfigurationInterface' => $baseDir . '/src/Configuration/GeneralConfigurationInterface.php',
|
||||
'izi\\prestashop\\Configuration\\GuiConfiguration' => $baseDir . '/src/Configuration/GuiConfiguration.php',
|
||||
'izi\\prestashop\\Configuration\\GuiConfigurationInterface' => $baseDir . '/src/Configuration/GuiConfigurationInterface.php',
|
||||
'izi\\prestashop\\Configuration\\Initializer\\AnnotationsConfigInitializer' => $baseDir . '/src/Configuration/Initializer/AnnotationsConfigInitializer.php',
|
||||
'izi\\prestashop\\Configuration\\Initializer\\AssetPackageInitializer' => $baseDir . '/src/Configuration/Initializer/AssetPackageInitializer.php',
|
||||
'izi\\prestashop\\Configuration\\Initializer\\ConfigurationInitializerInterface' => $baseDir . '/src/Configuration/Initializer/ConfigurationInitializerInterface.php',
|
||||
'izi\\prestashop\\Configuration\\Initializer\\TwigConfigInitializer' => $baseDir . '/src/Configuration/Initializer/TwigConfigInitializer.php',
|
||||
'izi\\prestashop\\Configuration\\LanguageAwareConfigurationInterface' => $baseDir . '/src/Configuration/LanguageAwareConfigurationInterface.php',
|
||||
'izi\\prestashop\\Configuration\\OrdersConfiguration' => $baseDir . '/src/Configuration/OrdersConfiguration.php',
|
||||
'izi\\prestashop\\Configuration\\OrdersConfigurationInterface' => $baseDir . '/src/Configuration/OrdersConfigurationInterface.php',
|
||||
'izi\\prestashop\\Configuration\\PersistentConfigurationInterface' => $baseDir . '/src/Configuration/PersistentConfigurationInterface.php',
|
||||
'izi\\prestashop\\Configuration\\PrestaShopConfiguration' => $baseDir . '/src/Configuration/PrestaShopConfiguration.php',
|
||||
'izi\\prestashop\\Configuration\\ProductAwareWidgetDisplayConfigurationInterface' => $baseDir . '/src/Configuration/ProductAwareWidgetDisplayConfigurationInterface.php',
|
||||
'izi\\prestashop\\Configuration\\ProductConfiguration' => $baseDir . '/src/Configuration/ProductConfiguration.php',
|
||||
'izi\\prestashop\\Configuration\\ProductConfigurationInterface' => $baseDir . '/src/Configuration/ProductConfigurationInterface.php',
|
||||
'izi\\prestashop\\Configuration\\ProductPageDisplayConfiguration' => $baseDir . '/src/Configuration/ProductPageDisplayConfiguration.php',
|
||||
'izi\\prestashop\\Configuration\\ProductRestrictionsConfigurationInterface' => $baseDir . '/src/Configuration/ProductRestrictionsConfigurationInterface.php',
|
||||
'izi\\prestashop\\Configuration\\ProductRestrictionsProviderInterface' => $baseDir . '/src/Configuration/ProductRestrictionsProviderInterface.php',
|
||||
'izi\\prestashop\\Configuration\\PromoCodesConfigurationInterface' => $baseDir . '/src/Configuration/PromoCodesConfigurationInterface.php',
|
||||
'izi\\prestashop\\Configuration\\ShippingConfiguration' => $baseDir . '/src/Configuration/ShippingConfiguration.php',
|
||||
'izi\\prestashop\\Configuration\\ShippingConfigurationInterface' => $baseDir . '/src/Configuration/ShippingConfigurationInterface.php',
|
||||
'izi\\prestashop\\Configuration\\ShopAwareConfigurationInterface' => $baseDir . '/src/Configuration/ShopAwareConfigurationInterface.php',
|
||||
'izi\\prestashop\\Configuration\\WidgetDisplayConfigurationInterface' => $baseDir . '/src/Configuration/WidgetDisplayConfigurationInterface.php',
|
||||
'izi\\prestashop\\ContextManager' => $baseDir . '/src/ContextManager.php',
|
||||
'izi\\prestashop\\Controller\\Admin\\AbstractConfigurationController' => $baseDir . '/src/Controller/Admin/AbstractConfigurationController.php',
|
||||
'izi\\prestashop\\Controller\\Admin\\AbstractController' => $baseDir . '/src/Controller/Admin/AbstractController.php',
|
||||
'izi\\prestashop\\Controller\\Admin\\ConfigurationController' => $baseDir . '/src/Controller/Admin/ConfigurationController.php',
|
||||
'izi\\prestashop\\Controller\\Admin\\HotProductController' => $baseDir . '/src/Controller/Admin/HotProductController.php',
|
||||
'izi\\prestashop\\Controller\\Api\\AbstractApiController' => $baseDir . '/src/Controller/Api/AbstractApiController.php',
|
||||
'izi\\prestashop\\Controller\\Api\\BasketController' => $baseDir . '/src/Controller/Api/BasketController.php',
|
||||
'izi\\prestashop\\Controller\\Api\\OrderController' => $baseDir . '/src/Controller/Api/OrderController.php',
|
||||
'izi\\prestashop\\Controller\\Api\\ProductController' => $baseDir . '/src/Controller/Api/ProductController.php',
|
||||
'izi\\prestashop\\Controller\\WidgetController' => $baseDir . '/src/Controller/WidgetController.php',
|
||||
'izi\\prestashop\\Currency\\PriceConverter' => $baseDir . '/src/Currency/PriceConverter.php',
|
||||
'izi\\prestashop\\Currency\\PriceConverterInterface' => $baseDir . '/src/Currency/PriceConverterInterface.php',
|
||||
'izi\\prestashop\\Database\\Connection' => $baseDir . '/src/Database/Connection.php',
|
||||
'izi\\prestashop\\DependencyInjection\\Argument\\ServiceClosureArgument' => $baseDir . '/src/DependencyInjection/Argument/ServiceClosureArgument.php',
|
||||
'izi\\prestashop\\DependencyInjection\\Compiler\\AnalyzeServiceReferencesPass' => $baseDir . '/src/DependencyInjection/Compiler/AnalyzeServiceReferencesPass.php',
|
||||
'izi\\prestashop\\DependencyInjection\\Compiler\\ProvideServiceLocatorFactoriesPass' => $baseDir . '/src/DependencyInjection/Compiler/ProvideServiceLocatorFactoriesPass.php',
|
||||
'izi\\prestashop\\DependencyInjection\\Compiler\\TaggedIteratorsCollectorPass' => $baseDir . '/src/DependencyInjection/Compiler/TaggedIteratorsCollectorPass.php',
|
||||
'izi\\prestashop\\DependencyInjection\\ContainerBuilder' => $baseDir . '/src/DependencyInjection/ContainerBuilder.php',
|
||||
'izi\\prestashop\\DependencyInjection\\ContainerFactory' => $baseDir . '/src/DependencyInjection/ContainerFactory.php',
|
||||
'izi\\prestashop\\DependencyInjection\\Dumper\\PhpDumper' => $baseDir . '/src/DependencyInjection/Dumper/PhpDumper.php',
|
||||
'izi\\prestashop\\DependencyInjection\\Exception\\ContainerNotFoundException' => $baseDir . '/src/DependencyInjection/Exception/ContainerNotFoundException.php',
|
||||
'izi\\prestashop\\DependencyInjection\\ServiceLocator' => $baseDir . '/src/DependencyInjection/ServiceLocator.php',
|
||||
'izi\\prestashop\\DependencyInjection\\ServiceSubscriberInterface' => $baseDir . '/src/DependencyInjection/ServiceSubscriberInterface.php',
|
||||
'izi\\prestashop\\DependencyInjection\\TypedReference' => $baseDir . '/src/DependencyInjection/TypedReference.php',
|
||||
'izi\\prestashop\\Entities\\BasketInterface' => $baseDir . '/src/Entities/BasketInterface.php',
|
||||
'izi\\prestashop\\Entities\\BasketSession' => $baseDir . '/src/Entities/BasketSession.php',
|
||||
'izi\\prestashop\\Entities\\BasketSessionInterface' => $baseDir . '/src/Entities/BasketSessionInterface.php',
|
||||
'izi\\prestashop\\Entities\\Cart' => $baseDir . '/src/Entities/Cart.php',
|
||||
'izi\\prestashop\\Entities\\CartProxy' => $baseDir . '/src/Entities/CartProxy.php',
|
||||
'izi\\prestashop\\Entities\\SwitchableBasketSessionInterface' => $baseDir . '/src/Entities/SwitchableBasketSessionInterface.php',
|
||||
'izi\\prestashop\\Enum\\Enum' => $baseDir . '/src/Enum/Enum.php',
|
||||
'izi\\prestashop\\Enum\\IntEnum' => $baseDir . '/src/Enum/IntEnum.php',
|
||||
'izi\\prestashop\\Enum\\StringEnum' => $baseDir . '/src/Enum/StringEnum.php',
|
||||
'izi\\prestashop\\Environment\\AuthServerUriCollection' => $baseDir . '/src/Environment/AuthServerUriCollection.php',
|
||||
'izi\\prestashop\\Environment\\EnvironmentFactory' => $baseDir . '/src/Environment/EnvironmentFactory.php',
|
||||
'izi\\prestashop\\Environment\\EnvironmentFactoryInterface' => $baseDir . '/src/Environment/EnvironmentFactoryInterface.php',
|
||||
'izi\\prestashop\\Environment\\EnvironmentInterface' => $baseDir . '/src/Environment/EnvironmentInterface.php',
|
||||
'izi\\prestashop\\Environment\\EnvironmentType' => $baseDir . '/src/Environment/EnvironmentType.php',
|
||||
'izi\\prestashop\\Environment\\ProductionEnvironment' => $baseDir . '/src/Environment/ProductionEnvironment.php',
|
||||
'izi\\prestashop\\Environment\\SandboxEnvironment' => $baseDir . '/src/Environment/SandboxEnvironment.php',
|
||||
'izi\\prestashop\\EventListener\\CartListener' => $baseDir . '/src/EventListener/CartListener.php',
|
||||
'izi\\prestashop\\EventListener\\CreateShipmentListener' => $baseDir . '/src/EventListener/CreateShipmentListener.php',
|
||||
'izi\\prestashop\\EventListener\\OrderListener' => $baseDir . '/src/EventListener/OrderListener.php',
|
||||
'izi\\prestashop\\EventListener\\ShipmentListener' => $baseDir . '/src/EventListener/ShipmentListener.php',
|
||||
'izi\\prestashop\\Event\\Adapter\\EventDispatcher' => $baseDir . '/src/Event/Adapter/EventDispatcher.php',
|
||||
'izi\\prestashop\\Event\\CartUpdatedEvent' => $baseDir . '/src/Event/CartUpdatedEvent.php',
|
||||
'izi\\prestashop\\Event\\CreateShipmentRequestEvent' => $baseDir . '/src/Event/CreateShipmentRequestEvent.php',
|
||||
'izi\\prestashop\\Event\\CreateShipmentRequestProcessedEvent' => $baseDir . '/src/Event/CreateShipmentRequestProcessedEvent.php',
|
||||
'izi\\prestashop\\Event\\Event' => $baseDir . '/src/Event/Event.php',
|
||||
'izi\\prestashop\\Event\\EventDispatcherFactory' => $baseDir . '/src/Event/EventDispatcherFactory.php',
|
||||
'izi\\prestashop\\Event\\EventDispatcherInterface' => $baseDir . '/src/Event/EventDispatcherInterface.php',
|
||||
'izi\\prestashop\\Event\\OrderEvent' => $baseDir . '/src/Event/OrderEvent.php',
|
||||
'izi\\prestashop\\Event\\OrderStatusUpdatedEvent' => $baseDir . '/src/Event/OrderStatusUpdatedEvent.php',
|
||||
'izi\\prestashop\\Event\\ShipmentEvent' => $baseDir . '/src/Event/ShipmentEvent.php',
|
||||
'izi\\prestashop\\Event\\ValidateOrderEvent' => $baseDir . '/src/Event/ValidateOrderEvent.php',
|
||||
'izi\\prestashop\\Form\\BasketAppClientProvider' => $baseDir . '/src/Form/BasketAppClientProvider.php',
|
||||
'izi\\prestashop\\Form\\ChoiceList\\AvailablePaymentOptionChoiceLoader' => $baseDir . '/src/Form/ChoiceList/AvailablePaymentOptionChoiceLoader.php',
|
||||
'izi\\prestashop\\Form\\ChoiceList\\CarrierChoiceLoader' => $baseDir . '/src/Form/ChoiceList/CarrierChoiceLoader.php',
|
||||
'izi\\prestashop\\Form\\ChoiceList\\LazyChoiceLoader' => $baseDir . '/src/Form/ChoiceList/LazyChoiceLoader.php',
|
||||
'izi\\prestashop\\Form\\ChoiceList\\ObjectModelChoiceLoader' => $baseDir . '/src/Form/ChoiceList/ObjectModelChoiceLoader.php',
|
||||
'izi\\prestashop\\Form\\ChoiceList\\OrderStateChoiceLoader' => $baseDir . '/src/Form/ChoiceList/OrderStateChoiceLoader.php',
|
||||
'izi\\prestashop\\Form\\ChoiceList\\ProductImageTypeChoiceLoader' => $baseDir . '/src/Form/ChoiceList/ProductImageTypeChoiceLoader.php',
|
||||
'izi\\prestashop\\Form\\DataMapper\\ClientCredentialsDataMapper' => $baseDir . '/src/Form/DataMapper/ClientCredentialsDataMapper.php',
|
||||
'izi\\prestashop\\Form\\DataTransformer\\CombinationToAttributeIdsTransformer' => $baseDir . '/src/Form/DataTransformer/CombinationToAttributeIdsTransformer.php',
|
||||
'izi\\prestashop\\Form\\DataTransformer\\DateTimeImmutableToDateTimeTransformer' => $baseDir . '/src/Form/DataTransformer/DateTimeImmutableToDateTimeTransformer.php',
|
||||
'izi\\prestashop\\Form\\DataTransformer\\EnumDataTransformer' => $baseDir . '/src/Form/DataTransformer/EnumDataTransformer.php',
|
||||
'izi\\prestashop\\Form\\DataTransformer\\ObjectModelCollectionToIdsTransformer' => $baseDir . '/src/Form/DataTransformer/ObjectModelCollectionToIdsTransformer.php',
|
||||
'izi\\prestashop\\Form\\DataTransformer\\ObjectModelToIdTransformer' => $baseDir . '/src/Form/DataTransformer/ObjectModelToIdTransformer.php',
|
||||
'izi\\prestashop\\Form\\EventListener\\ReindexDataListener' => $baseDir . '/src/Form/EventListener/ReindexDataListener.php',
|
||||
'izi\\prestashop\\Form\\Event\\ApiConfigurationValidatedEvent' => $baseDir . '/src/Form/Event/ApiConfigurationValidatedEvent.php',
|
||||
'izi\\prestashop\\Form\\Extension\\DependencyInjectionExtension' => $baseDir . '/src/Form/Extension/DependencyInjectionExtension.php',
|
||||
'izi\\prestashop\\Form\\FormFactoryFactory' => $baseDir . '/src/Form/FormFactoryFactory.php',
|
||||
'izi\\prestashop\\Form\\TypeExtension\\ChoicesAsValuesTypeExtension' => $baseDir . '/src/Form/TypeExtension/ChoicesAsValuesTypeExtension.php',
|
||||
'izi\\prestashop\\Form\\TypeExtension\\DatePickerCompatibilityTypeExtension' => $baseDir . '/src/Form/TypeExtension/DatePickerCompatibilityTypeExtension.php',
|
||||
'izi\\prestashop\\Form\\TypeExtension\\DateTimeImmutableTimeTypeExtension' => $baseDir . '/src/Form/TypeExtension/DateTimeImmutableTimeTypeExtension.php',
|
||||
'izi\\prestashop\\Form\\TypeExtension\\HelpTextExtension' => $baseDir . '/src/Form/TypeExtension/HelpTextExtension.php',
|
||||
'izi\\prestashop\\Form\\TypeExtension\\UnitTypeExtension' => $baseDir . '/src/Form/TypeExtension/UnitTypeExtension.php',
|
||||
'izi\\prestashop\\Form\\Type\\AdvancedConfigurationType' => $baseDir . '/src/Form/Type/AdvancedConfigurationType.php',
|
||||
'izi\\prestashop\\Form\\Type\\ApiConfigurationType' => $baseDir . '/src/Form/Type/ApiConfigurationType.php',
|
||||
'izi\\prestashop\\Form\\Type\\CartRuleOptionsType' => $baseDir . '/src/Form/Type/CartRuleOptionsType.php',
|
||||
'izi\\prestashop\\Form\\Type\\ClientCredentialsType' => $baseDir . '/src/Form/Type/ClientCredentialsType.php',
|
||||
'izi\\prestashop\\Form\\Type\\Compatibility\\CategoryChoiceTreeType' => $baseDir . '/src/Form/Type/Compatibility/CategoryChoiceTreeType.php',
|
||||
'izi\\prestashop\\Form\\Type\\Consent\\ConsentLinkType' => $baseDir . '/src/Form/Type/Consent/ConsentLinkType.php',
|
||||
'izi\\prestashop\\Form\\Type\\Consent\\ConsentRequirementChoiceType' => $baseDir . '/src/Form/Type/Consent/ConsentRequirementChoiceType.php',
|
||||
'izi\\prestashop\\Form\\Type\\Consent\\ConsentType' => $baseDir . '/src/Form/Type/Consent/ConsentType.php',
|
||||
'izi\\prestashop\\Form\\Type\\ConsentsConfigurationType' => $baseDir . '/src/Form/Type/ConsentsConfigurationType.php',
|
||||
'izi\\prestashop\\Form\\Type\\EnvironmentChoiceType' => $baseDir . '/src/Form/Type/EnvironmentChoiceType.php',
|
||||
'izi\\prestashop\\Form\\Type\\GeneralConfigurationType' => $baseDir . '/src/Form/Type/GeneralConfigurationType.php',
|
||||
'izi\\prestashop\\Form\\Type\\GuiConfigurationType' => $baseDir . '/src/Form/Type/GuiConfigurationType.php',
|
||||
'izi\\prestashop\\Form\\Type\\Image\\ImageTypeChoiceType' => $baseDir . '/src/Form/Type/Image/ImageTypeChoiceType.php',
|
||||
'izi\\prestashop\\Form\\Type\\MaskedPasswordType' => $baseDir . '/src/Form/Type/MaskedPasswordType.php',
|
||||
'izi\\prestashop\\Form\\Type\\ObjectModelAutocompleteType' => $baseDir . '/src/Form/Type/ObjectModelAutocompleteType.php',
|
||||
'izi\\prestashop\\Form\\Type\\ObjectModelType' => $baseDir . '/src/Form/Type/ObjectModelType.php',
|
||||
'izi\\prestashop\\Form\\Type\\OrderStateChoiceType' => $baseDir . '/src/Form/Type/OrderStateChoiceType.php',
|
||||
'izi\\prestashop\\Form\\Type\\OrderStatusDescriptionMapType' => $baseDir . '/src/Form/Type/OrderStatusDescriptionMapType.php',
|
||||
'izi\\prestashop\\Form\\Type\\Order\\AvailablePaymentOptionsChoiceType' => $baseDir . '/src/Form/Type/Order/AvailablePaymentOptionsChoiceType.php',
|
||||
'izi\\prestashop\\Form\\Type\\Order\\MessageOptionsType' => $baseDir . '/src/Form/Type/Order/MessageOptionsType.php',
|
||||
'izi\\prestashop\\Form\\Type\\OrdersConfigurationType' => $baseDir . '/src/Form/Type/OrdersConfigurationType.php',
|
||||
'izi\\prestashop\\Form\\Type\\ProductConfigurationType' => $baseDir . '/src/Form/Type/ProductConfigurationType.php',
|
||||
'izi\\prestashop\\Form\\Type\\Product\\CombinationByAttributesChoiceType' => $baseDir . '/src/Form/Type/Product/CombinationByAttributesChoiceType.php',
|
||||
'izi\\prestashop\\Form\\Type\\Product\\ProductRestrictionsType' => $baseDir . '/src/Form/Type/Product/ProductRestrictionsType.php',
|
||||
'izi\\prestashop\\Form\\Type\\ShippingConfigurationType' => $baseDir . '/src/Form/Type/ShippingConfigurationType.php',
|
||||
'izi\\prestashop\\Form\\Type\\Shipping\\CarrierChoiceType' => $baseDir . '/src/Form/Type/Shipping/CarrierChoiceType.php',
|
||||
'izi\\prestashop\\Form\\Type\\Shipping\\CarrierMappingType' => $baseDir . '/src/Form/Type/Shipping/CarrierMappingType.php',
|
||||
'izi\\prestashop\\Form\\Type\\Shipping\\CarrierMappingsType' => $baseDir . '/src/Form/Type/Shipping/CarrierMappingsType.php',
|
||||
'izi\\prestashop\\Form\\Type\\Shipping\\OptionalServicesType' => $baseDir . '/src/Form/Type/Shipping/OptionalServicesType.php',
|
||||
'izi\\prestashop\\Form\\Type\\Shipping\\ServiceOptionsType' => $baseDir . '/src/Form/Type/Shipping/ServiceOptionsType.php',
|
||||
'izi\\prestashop\\Form\\Type\\Shipping\\ShippingOptionsType' => $baseDir . '/src/Form/Type/Shipping/ShippingOptionsType.php',
|
||||
'izi\\prestashop\\Form\\Type\\Shipping\\TimeOfWeekRangeType' => $baseDir . '/src/Form/Type/Shipping/TimeOfWeekRangeType.php',
|
||||
'izi\\prestashop\\Form\\Type\\Shipping\\TimeOfWeekType' => $baseDir . '/src/Form/Type/Shipping/TimeOfWeekType.php',
|
||||
'izi\\prestashop\\Form\\Type\\Shipping\\WeekDayChoiceType' => $baseDir . '/src/Form/Type/Shipping/WeekDayChoiceType.php',
|
||||
'izi\\prestashop\\Form\\Type\\SwitchType' => $baseDir . '/src/Form/Type/SwitchType.php',
|
||||
'izi\\prestashop\\Form\\Type\\TranslatableType' => $baseDir . '/src/Form/Type/TranslatableType.php',
|
||||
'izi\\prestashop\\Form\\Type\\Widget\\HtmlStylesType' => $baseDir . '/src/Form/Type/Widget/HtmlStylesType.php',
|
||||
'izi\\prestashop\\Form\\Type\\Widget\\ProductPageDisplayConfigurationType' => $baseDir . '/src/Form/Type/Widget/ProductPageDisplayConfigurationType.php',
|
||||
'izi\\prestashop\\Form\\Type\\Widget\\WidgetConfigurationType' => $baseDir . '/src/Form/Type/Widget/WidgetConfigurationType.php',
|
||||
'izi\\prestashop\\Form\\Type\\Widget\\WidgetDisplayConfigurationType' => $baseDir . '/src/Form/Type/Widget/WidgetDisplayConfigurationType.php',
|
||||
'izi\\prestashop\\Form\\Type\\Widget\\WidgetFrameStyleChoiceType' => $baseDir . '/src/Form/Type/Widget/WidgetFrameStyleChoiceType.php',
|
||||
'izi\\prestashop\\Form\\Type\\Widget\\WidgetSizeChoiceType' => $baseDir . '/src/Form/Type/Widget/WidgetSizeChoiceType.php',
|
||||
'izi\\prestashop\\Form\\Type\\Widget\\WidgetVariantChoiceType' => $baseDir . '/src/Form/Type/Widget/WidgetVariantChoiceType.php',
|
||||
'izi\\prestashop\\Handler\\CommandHandlerTrait' => $baseDir . '/src/Handler/CommandHandlerTrait.php',
|
||||
'izi\\prestashop\\Handler\\Config\\CheckStatusHandler' => $baseDir . '/src/Handler/Config/CheckStatusHandler.php',
|
||||
'izi\\prestashop\\Handler\\Config\\CheckStatusHandlerInterface' => $baseDir . '/src/Handler/Config/CheckStatusHandlerInterface.php',
|
||||
'izi\\prestashop\\Handler\\Config\\DownloadModuleDataHandler' => $baseDir . '/src/Handler/Config/DownloadModuleDataHandler.php',
|
||||
'izi\\prestashop\\Handler\\Config\\DownloadModuleDataHandlerInterface' => $baseDir . '/src/Handler/Config/DownloadModuleDataHandlerInterface.php',
|
||||
'izi\\prestashop\\Handler\\Config\\ModuleStatus' => $baseDir . '/src/Handler/Config/ModuleStatus.php',
|
||||
'izi\\prestashop\\Handler\\Config\\Status\\CacheStatusChecker' => $baseDir . '/src/Handler/Config/Status/CacheStatusChecker.php',
|
||||
'izi\\prestashop\\Handler\\Config\\Status\\ConfigurationStatusChecker' => $baseDir . '/src/Handler/Config/Status/ConfigurationStatusChecker.php',
|
||||
'izi\\prestashop\\Handler\\Config\\Status\\DeliveryOptionsStatusChecker' => $baseDir . '/src/Handler/Config/Status/DeliveryOptionsStatusChecker.php',
|
||||
'izi\\prestashop\\Handler\\Config\\Status\\StatusCheckerInterface' => $baseDir . '/src/Handler/Config/Status/StatusCheckerInterface.php',
|
||||
'izi\\prestashop\\Handler\\Config\\UpdateAdvancedConfigurationHandler' => $baseDir . '/src/Handler/Config/UpdateAdvancedConfigurationHandler.php',
|
||||
'izi\\prestashop\\Handler\\Config\\UpdateAdvancedConfigurationHandlerInterface' => $baseDir . '/src/Handler/Config/UpdateAdvancedConfigurationHandlerInterface.php',
|
||||
'izi\\prestashop\\Handler\\Config\\UpdateCartRuleOptionsHandler' => $baseDir . '/src/Handler/Config/UpdateCartRuleOptionsHandler.php',
|
||||
'izi\\prestashop\\Handler\\Config\\UpdateCartRuleOptionsHandlerInterface' => $baseDir . '/src/Handler/Config/UpdateCartRuleOptionsHandlerInterface.php',
|
||||
'izi\\prestashop\\Handler\\Config\\UpdateConsentsConfigurationHandler' => $baseDir . '/src/Handler/Config/UpdateConsentsConfigurationHandler.php',
|
||||
'izi\\prestashop\\Handler\\Config\\UpdateConsentsConfigurationHandlerInterface' => $baseDir . '/src/Handler/Config/UpdateConsentsConfigurationHandlerInterface.php',
|
||||
'izi\\prestashop\\Handler\\Config\\UpdateGeneralConfigurationHandler' => $baseDir . '/src/Handler/Config/UpdateGeneralConfigurationHandler.php',
|
||||
'izi\\prestashop\\Handler\\Config\\UpdateGeneralConfigurationHandlerInterface' => $baseDir . '/src/Handler/Config/UpdateGeneralConfigurationHandlerInterface.php',
|
||||
'izi\\prestashop\\Handler\\Config\\UpdateGuiConfigurationHandler' => $baseDir . '/src/Handler/Config/UpdateGuiConfigurationHandler.php',
|
||||
'izi\\prestashop\\Handler\\Config\\UpdateGuiConfigurationHandlerInterface' => $baseDir . '/src/Handler/Config/UpdateGuiConfigurationHandlerInterface.php',
|
||||
'izi\\prestashop\\Handler\\Config\\UpdateShippingConfigurationHandler' => $baseDir . '/src/Handler/Config/UpdateShippingConfigurationHandler.php',
|
||||
'izi\\prestashop\\Handler\\Config\\UpdateShippingConfigurationHandlerInterface' => $baseDir . '/src/Handler/Config/UpdateShippingConfigurationHandlerInterface.php',
|
||||
'izi\\prestashop\\Handler\\GetBasketBindingKeyHandler' => $baseDir . '/src/Handler/GetBasketBindingKeyHandler.php',
|
||||
'izi\\prestashop\\Handler\\GetBasketBindingKeyHandlerInterface' => $baseDir . '/src/Handler/GetBasketBindingKeyHandlerInterface.php',
|
||||
'izi\\prestashop\\Handler\\GetOrderConfirmationUrlHandler' => $baseDir . '/src/Handler/GetOrderConfirmationUrlHandler.php',
|
||||
'izi\\prestashop\\Handler\\GetOrderConfirmationUrlHandlerInterface' => $baseDir . '/src/Handler/GetOrderConfirmationUrlHandlerInterface.php',
|
||||
'izi\\prestashop\\Handler\\Result\\BasketBindingKey' => $baseDir . '/src/Handler/Result/BasketBindingKey.php',
|
||||
'izi\\prestashop\\Handler\\UnbindBasketHandler' => $baseDir . '/src/Handler/UnbindBasketHandler.php',
|
||||
'izi\\prestashop\\Handler\\UnbindBasketHandlerInterface' => $baseDir . '/src/Handler/UnbindBasketHandlerInterface.php',
|
||||
'izi\\prestashop\\Handler\\UpdateBasketHandler' => $baseDir . '/src/Handler/UpdateBasketHandler.php',
|
||||
'izi\\prestashop\\Handler\\UpdateBasketHandlerInterface' => $baseDir . '/src/Handler/UpdateBasketHandlerInterface.php',
|
||||
'izi\\prestashop\\Handler\\UpdateOrderAddressDeliveryHandler' => $baseDir . '/src/Handler/UpdateOrderAddressDeliveryHandler.php',
|
||||
'izi\\prestashop\\Handler\\UpdateOrderAddressDeliveryHandlerInterface' => $baseDir . '/src/Handler/UpdateOrderAddressDeliveryHandlerInterface.php',
|
||||
'izi\\prestashop\\Handler\\UpdateOrderStatusHandler' => $baseDir . '/src/Handler/UpdateOrderStatusHandler.php',
|
||||
'izi\\prestashop\\Handler\\UpdateOrderStatusHandlerInterface' => $baseDir . '/src/Handler/UpdateOrderStatusHandlerInterface.php',
|
||||
'izi\\prestashop\\Handler\\UpdateOrderTrackingNumbersHandler' => $baseDir . '/src/Handler/UpdateOrderTrackingNumbersHandler.php',
|
||||
'izi\\prestashop\\Handler\\UpdateOrderTrackingNumbersHandlerInterface' => $baseDir . '/src/Handler/UpdateOrderTrackingNumbersHandlerInterface.php',
|
||||
'izi\\prestashop\\Hook\\Adapter\\HookDispatcher' => $baseDir . '/src/Hook/Adapter/HookDispatcher.php',
|
||||
'izi\\prestashop\\Hook\\Admin\\ActionAdminCartRuleSaveAfter' => $baseDir . '/src/Hook/Admin/ActionAdminCartRuleSaveAfter.php',
|
||||
'izi\\prestashop\\Hook\\Admin\\ActionAdminControllerSetMedia' => $baseDir . '/src/Hook/Admin/ActionAdminControllerSetMedia.php',
|
||||
'izi\\prestashop\\Hook\\Admin\\ActionAdminInPostConfirmedShipmentsControllerAfter' => $baseDir . '/src/Hook/Admin/ActionAdminInPostConfirmedShipmentsControllerAfter.php',
|
||||
'izi\\prestashop\\Hook\\Admin\\ActionAdminInPostConfirmedShipmentsControllerBefore' => $baseDir . '/src/Hook/Admin/ActionAdminInPostConfirmedShipmentsControllerBefore.php',
|
||||
'izi\\prestashop\\Hook\\Admin\\DisplayAdminOrderLeft' => $baseDir . '/src/Hook/Admin/DisplayAdminOrderLeft.php',
|
||||
'izi\\prestashop\\Hook\\Admin\\DisplayAdminOrderSide' => $baseDir . '/src/Hook/Admin/DisplayAdminOrderSide.php',
|
||||
'izi\\prestashop\\Hook\\Admin\\DisplayBackOfficeHeader' => $baseDir . '/src/Hook/Admin/DisplayBackOfficeHeader.php',
|
||||
'izi\\prestashop\\Hook\\AliasedHookInterface' => $baseDir . '/src/Hook/AliasedHookInterface.php',
|
||||
'izi\\prestashop\\Hook\\AssetRegistryUpdaterTrait' => $baseDir . '/src/Hook/AssetRegistryUpdaterTrait.php',
|
||||
'izi\\prestashop\\Hook\\Common\\ActionCartDeleteBefore' => $baseDir . '/src/Hook/Common/ActionCartDeleteBefore.php',
|
||||
'izi\\prestashop\\Hook\\Common\\ActionCartUpdateAfter' => $baseDir . '/src/Hook/Common/ActionCartUpdateAfter.php',
|
||||
'izi\\prestashop\\Hook\\Common\\ActionEmailSendBefore' => $baseDir . '/src/Hook/Common/ActionEmailSendBefore.php',
|
||||
'izi\\prestashop\\Hook\\Common\\ActionObjectOrderUpdateAfter' => $baseDir . '/src/Hook/Common/ActionObjectOrderUpdateAfter.php',
|
||||
'izi\\prestashop\\Hook\\Common\\ActionObjectOrderUpdateBefore' => $baseDir . '/src/Hook/Common/ActionObjectOrderUpdateBefore.php',
|
||||
'izi\\prestashop\\Hook\\Common\\ActionOrderStatusPostUpdate' => $baseDir . '/src/Hook/Common/ActionOrderStatusPostUpdate.php',
|
||||
'izi\\prestashop\\Hook\\Common\\ActionShipmentAddAfter' => $baseDir . '/src/Hook/Common/ActionShipmentAddAfter.php',
|
||||
'izi\\prestashop\\Hook\\Common\\ActionShipmentUpdateAfter' => $baseDir . '/src/Hook/Common/ActionShipmentUpdateAfter.php',
|
||||
'izi\\prestashop\\Hook\\Common\\ActionShipmentUpdateBefore' => $baseDir . '/src/Hook/Common/ActionShipmentUpdateBefore.php',
|
||||
'izi\\prestashop\\Hook\\Common\\ActionValidateOrder' => $baseDir . '/src/Hook/Common/ActionValidateOrder.php',
|
||||
'izi\\prestashop\\Hook\\Common\\Product\\ActionCombinationDeleteAfter' => $baseDir . '/src/Hook/Common/Product/ActionCombinationDeleteAfter.php',
|
||||
'izi\\prestashop\\Hook\\Common\\Product\\ActionCombinationDeleteBefore' => $baseDir . '/src/Hook/Common/Product/ActionCombinationDeleteBefore.php',
|
||||
'izi\\prestashop\\Hook\\Common\\Product\\ActionCombinationUpdateAfter' => $baseDir . '/src/Hook/Common/Product/ActionCombinationUpdateAfter.php',
|
||||
'izi\\prestashop\\Hook\\Common\\Product\\ActionImageAddAfter' => $baseDir . '/src/Hook/Common/Product/ActionImageAddAfter.php',
|
||||
'izi\\prestashop\\Hook\\Common\\Product\\ActionImageDeleteAfter' => $baseDir . '/src/Hook/Common/Product/ActionImageDeleteAfter.php',
|
||||
'izi\\prestashop\\Hook\\Common\\Product\\ActionProductDeleteAfter' => $baseDir . '/src/Hook/Common/Product/ActionProductDeleteAfter.php',
|
||||
'izi\\prestashop\\Hook\\Common\\Product\\ActionProductDeleteBefore' => $baseDir . '/src/Hook/Common/Product/ActionProductDeleteBefore.php',
|
||||
'izi\\prestashop\\Hook\\Common\\Product\\ActionProductUpdateAfter' => $baseDir . '/src/Hook/Common/Product/ActionProductUpdateAfter.php',
|
||||
'izi\\prestashop\\Hook\\Common\\Product\\ActionSpecificPriceAddAfter' => $baseDir . '/src/Hook/Common/Product/ActionSpecificPriceAddAfter.php',
|
||||
'izi\\prestashop\\Hook\\Common\\Product\\ActionSpecificPriceDeleteAfter' => $baseDir . '/src/Hook/Common/Product/ActionSpecificPriceDeleteAfter.php',
|
||||
'izi\\prestashop\\Hook\\Common\\Product\\ActionSpecificPriceUpdateAfter' => $baseDir . '/src/Hook/Common/Product/ActionSpecificPriceUpdateAfter.php',
|
||||
'izi\\prestashop\\Hook\\Common\\Product\\ActionUpdateQuantity' => $baseDir . '/src/Hook/Common/Product/ActionUpdateQuantity.php',
|
||||
'izi\\prestashop\\Hook\\Exception\\HookExceptionInterface' => $baseDir . '/src/Hook/Exception/HookExceptionInterface.php',
|
||||
'izi\\prestashop\\Hook\\Exception\\HookExceptionTrait' => $baseDir . '/src/Hook/Exception/HookExceptionTrait.php',
|
||||
'izi\\prestashop\\Hook\\Exception\\HookNotFoundException' => $baseDir . '/src/Hook/Exception/HookNotFoundException.php',
|
||||
'izi\\prestashop\\Hook\\Exception\\HookNotImplementedException' => $baseDir . '/src/Hook/Exception/HookNotImplementedException.php',
|
||||
'izi\\prestashop\\Hook\\Front\\ActionCartControllerAjaxUpdateResponse' => $baseDir . '/src/Hook/Front/ActionCartControllerAjaxUpdateResponse.php',
|
||||
'izi\\prestashop\\Hook\\Front\\ActionFrontControllerSetMedia' => $baseDir . '/src/Hook/Front/ActionFrontControllerSetMedia.php',
|
||||
'izi\\prestashop\\Hook\\Front\\ActionGetPaymentOptions' => $baseDir . '/src/Hook/Front/ActionGetPaymentOptions.php',
|
||||
'izi\\prestashop\\Hook\\Front\\ButtonWidgetRendererTrait' => $baseDir . '/src/Hook/Front/ButtonWidgetRendererTrait.php',
|
||||
'izi\\prestashop\\Hook\\Front\\DisplayCheckoutSummaryTop' => $baseDir . '/src/Hook/Front/DisplayCheckoutSummaryTop.php',
|
||||
'izi\\prestashop\\Hook\\Front\\DisplayCustomerAccountFormTop' => $baseDir . '/src/Hook/Front/DisplayCustomerAccountFormTop.php',
|
||||
'izi\\prestashop\\Hook\\Front\\DisplayCustomerLoginFormAfter' => $baseDir . '/src/Hook/Front/DisplayCustomerLoginFormAfter.php',
|
||||
'izi\\prestashop\\Hook\\Front\\DisplayExpressCheckout' => $baseDir . '/src/Hook/Front/DisplayExpressCheckout.php',
|
||||
'izi\\prestashop\\Hook\\Front\\DisplayHeader' => $baseDir . '/src/Hook/Front/DisplayHeader.php',
|
||||
'izi\\prestashop\\Hook\\Front\\DisplayIziCartPreviewButton' => $baseDir . '/src/Hook/Front/DisplayIziCartPreviewButton.php',
|
||||
'izi\\prestashop\\Hook\\Front\\DisplayIziCheckoutButton' => $baseDir . '/src/Hook/Front/DisplayIziCheckoutButton.php',
|
||||
'izi\\prestashop\\Hook\\Front\\DisplayIziThankYou' => $baseDir . '/src/Hook/Front/DisplayIziThankYou.php',
|
||||
'izi\\prestashop\\Hook\\Front\\DisplayOrderConfirmation' => $baseDir . '/src/Hook/Front/DisplayOrderConfirmation.php',
|
||||
'izi\\prestashop\\Hook\\Front\\DisplayPaymentReturn' => $baseDir . '/src/Hook/Front/DisplayPaymentReturn.php',
|
||||
'izi\\prestashop\\Hook\\Front\\DisplayProductActions' => $baseDir . '/src/Hook/Front/DisplayProductActions.php',
|
||||
'izi\\prestashop\\Hook\\Front\\DisplayProductAdditionalInfo' => $baseDir . '/src/Hook/Front/DisplayProductAdditionalInfo.php',
|
||||
'izi\\prestashop\\Hook\\Front\\DisplayShoppingCart' => $baseDir . '/src/Hook/Front/DisplayShoppingCart.php',
|
||||
'izi\\prestashop\\Hook\\Front\\DisplayShoppingCartFooter' => $baseDir . '/src/Hook/Front/DisplayShoppingCartFooter.php',
|
||||
'izi\\prestashop\\Hook\\Front\\ProductWidgetRendererTrait' => $baseDir . '/src/Hook/Front/ProductWidgetRendererTrait.php',
|
||||
'izi\\prestashop\\Hook\\Front\\ThankYouWidgetRendererTrait' => $baseDir . '/src/Hook/Front/ThankYouWidgetRendererTrait.php',
|
||||
'izi\\prestashop\\Hook\\HookDispatcherInterface' => $baseDir . '/src/Hook/HookDispatcherInterface.php',
|
||||
'izi\\prestashop\\Hook\\HookExecutor' => $baseDir . '/src/Hook/HookExecutor.php',
|
||||
'izi\\prestashop\\Hook\\HookExecutorInterface' => $baseDir . '/src/Hook/HookExecutorInterface.php',
|
||||
'izi\\prestashop\\Hook\\HookInterface' => $baseDir . '/src/Hook/HookInterface.php',
|
||||
'izi\\prestashop\\Hook\\PrestaShopVersionAwareHookInterface' => $baseDir . '/src/Hook/PrestaShopVersionAwareHookInterface.php',
|
||||
'izi\\prestashop\\Hook\\VersionRange' => $baseDir . '/src/Hook/VersionRange.php',
|
||||
'izi\\prestashop\\Hook\\Widget' => $baseDir . '/src/Hook/Widget.php',
|
||||
'izi\\prestashop\\Hook\\WidgetParametersProvider' => $baseDir . '/src/Hook/WidgetParametersProvider.php',
|
||||
'izi\\prestashop\\Hook\\WidgetParametersProviderInterface' => $baseDir . '/src/Hook/WidgetParametersProviderInterface.php',
|
||||
'izi\\prestashop\\HotProduct\\EventListener\\UpdateHotProductsListener' => $baseDir . '/src/HotProduct/EventListener/UpdateHotProductsListener.php',
|
||||
'izi\\prestashop\\HotProduct\\Exception\\HotProductExceptionInterface' => $baseDir . '/src/HotProduct/Exception/HotProductExceptionInterface.php',
|
||||
'izi\\prestashop\\HotProduct\\Exception\\HotProductExistsException' => $baseDir . '/src/HotProduct/Exception/HotProductExistsException.php',
|
||||
'izi\\prestashop\\HotProduct\\Exception\\HotProductNotFoundException' => $baseDir . '/src/HotProduct/Exception/HotProductNotFoundException.php',
|
||||
'izi\\prestashop\\HotProduct\\Exception\\InvalidProductDataException' => $baseDir . '/src/HotProduct/Exception/InvalidProductDataException.php',
|
||||
'izi\\prestashop\\HotProduct\\Form\\CreateHotProductType' => $baseDir . '/src/HotProduct/Form/CreateHotProductType.php',
|
||||
'izi\\prestashop\\HotProduct\\Form\\UpdateHotProductType' => $baseDir . '/src/HotProduct/Form/UpdateHotProductType.php',
|
||||
'izi\\prestashop\\HotProduct\\HotProduct' => $baseDir . '/src/HotProduct/HotProduct.php',
|
||||
'izi\\prestashop\\HotProduct\\HotProductDataMapper' => $baseDir . '/src/HotProduct/HotProductDataMapper.php',
|
||||
'izi\\prestashop\\HotProduct\\HotProductDataMapperInterface' => $baseDir . '/src/HotProduct/HotProductDataMapperInterface.php',
|
||||
'izi\\prestashop\\HotProduct\\HotProductRepository' => $baseDir . '/src/HotProduct/HotProductRepository.php',
|
||||
'izi\\prestashop\\HotProduct\\HotProductRepositoryInterface' => $baseDir . '/src/HotProduct/HotProductRepositoryInterface.php',
|
||||
'izi\\prestashop\\HotProduct\\HotProductValidator' => $baseDir . '/src/HotProduct/HotProductValidator.php',
|
||||
'izi\\prestashop\\HotProduct\\MessageHandler\\CreateHotProductHandler' => $baseDir . '/src/HotProduct/MessageHandler/CreateHotProductHandler.php',
|
||||
'izi\\prestashop\\HotProduct\\MessageHandler\\CreateHotProductHandlerInterface' => $baseDir . '/src/HotProduct/MessageHandler/CreateHotProductHandlerInterface.php',
|
||||
'izi\\prestashop\\HotProduct\\MessageHandler\\DeleteHotProductHandler' => $baseDir . '/src/HotProduct/MessageHandler/DeleteHotProductHandler.php',
|
||||
'izi\\prestashop\\HotProduct\\MessageHandler\\DeleteHotProductHandlerInterface' => $baseDir . '/src/HotProduct/MessageHandler/DeleteHotProductHandlerInterface.php',
|
||||
'izi\\prestashop\\HotProduct\\MessageHandler\\DeleteRemoteProductHandler' => $baseDir . '/src/HotProduct/MessageHandler/DeleteRemoteProductHandler.php',
|
||||
'izi\\prestashop\\HotProduct\\MessageHandler\\DeleteRemoteProductHandlerInterface' => $baseDir . '/src/HotProduct/MessageHandler/DeleteRemoteProductHandlerInterface.php',
|
||||
'izi\\prestashop\\HotProduct\\MessageHandler\\ImportHotProductHandler' => $baseDir . '/src/HotProduct/MessageHandler/ImportHotProductHandler.php',
|
||||
'izi\\prestashop\\HotProduct\\MessageHandler\\ImportHotProductHandlerInterface' => $baseDir . '/src/HotProduct/MessageHandler/ImportHotProductHandlerInterface.php',
|
||||
'izi\\prestashop\\HotProduct\\MessageHandler\\UpdateHotProductHandler' => $baseDir . '/src/HotProduct/MessageHandler/UpdateHotProductHandler.php',
|
||||
'izi\\prestashop\\HotProduct\\MessageHandler\\UpdateHotProductHandlerInterface' => $baseDir . '/src/HotProduct/MessageHandler/UpdateHotProductHandlerInterface.php',
|
||||
'izi\\prestashop\\HotProduct\\Message\\CreateHotProductCommand' => $baseDir . '/src/HotProduct/Message/CreateHotProductCommand.php',
|
||||
'izi\\prestashop\\HotProduct\\Message\\DeleteHotProductCommand' => $baseDir . '/src/HotProduct/Message/DeleteHotProductCommand.php',
|
||||
'izi\\prestashop\\HotProduct\\Message\\DeleteRemoteProductCommand' => $baseDir . '/src/HotProduct/Message/DeleteRemoteProductCommand.php',
|
||||
'izi\\prestashop\\HotProduct\\Message\\ImportHotProductCommand' => $baseDir . '/src/HotProduct/Message/ImportHotProductCommand.php',
|
||||
'izi\\prestashop\\HotProduct\\Message\\UpdateHotProductCommand' => $baseDir . '/src/HotProduct/Message/UpdateHotProductCommand.php',
|
||||
'izi\\prestashop\\HotProduct\\View\\HotProductListView' => $baseDir . '/src/HotProduct/View/HotProductListView.php',
|
||||
'izi\\prestashop\\HotProduct\\View\\HotProductView' => $baseDir . '/src/HotProduct/View/HotProductView.php',
|
||||
'izi\\prestashop\\HotProduct\\View\\HotProductViewDataFactory' => $baseDir . '/src/HotProduct/View/HotProductViewDataFactory.php',
|
||||
'izi\\prestashop\\HttpKernel\\ServiceParamConverter' => $baseDir . '/src/HttpKernel/ServiceParamConverter.php',
|
||||
'izi\\prestashop\\Http\\Client\\Adapter\\Guzzle5Adapter' => $baseDir . '/src/Http/Client/Adapter/Guzzle5Adapter.php',
|
||||
'izi\\prestashop\\Http\\Client\\Adapter\\NetworkException' => $baseDir . '/src/Http/Client/Adapter/NetworkException.php',
|
||||
'izi\\prestashop\\Http\\Client\\Adapter\\RequestException' => $baseDir . '/src/Http/Client/Adapter/RequestException.php',
|
||||
'izi\\prestashop\\Http\\Client\\AuthorizingClient' => $baseDir . '/src/Http/Client/AuthorizingClient.php',
|
||||
'izi\\prestashop\\Http\\Client\\Factory\\ClientFactoryInterface' => $baseDir . '/src/Http/Client/Factory/ClientFactoryInterface.php',
|
||||
'izi\\prestashop\\Http\\Client\\Factory\\GuzzleClientFactory' => $baseDir . '/src/Http/Client/Factory/GuzzleClientFactory.php',
|
||||
'izi\\prestashop\\Http\\Client\\LoggingClient' => $baseDir . '/src/Http/Client/LoggingClient.php',
|
||||
'izi\\prestashop\\Http\\Client\\ModuleVersionInfoProvidingClient' => $baseDir . '/src/Http/Client/ModuleVersionInfoProvidingClient.php',
|
||||
'izi\\prestashop\\Http\\Exception\\ClientException' => $baseDir . '/src/Http/Exception/ClientException.php',
|
||||
'izi\\prestashop\\Http\\Exception\\HttpExceptionInterface' => $baseDir . '/src/Http/Exception/HttpExceptionInterface.php',
|
||||
'izi\\prestashop\\Http\\Exception\\HttpExceptionTrait' => $baseDir . '/src/Http/Exception/HttpExceptionTrait.php',
|
||||
'izi\\prestashop\\Http\\Exception\\RedirectionException' => $baseDir . '/src/Http/Exception/RedirectionException.php',
|
||||
'izi\\prestashop\\Http\\Exception\\ServerException' => $baseDir . '/src/Http/Exception/ServerException.php',
|
||||
'izi\\prestashop\\Http\\Response\\EventStreamResponse' => $baseDir . '/src/Http/Response/EventStreamResponse.php',
|
||||
'izi\\prestashop\\Http\\Response\\ServerSentEvent' => $baseDir . '/src/Http/Response/ServerSentEvent.php',
|
||||
'izi\\prestashop\\Http\\Response\\ServerSentEventBuilder' => $baseDir . '/src/Http/Response/ServerSentEventBuilder.php',
|
||||
'izi\\prestashop\\Http\\Util\\UriResolver' => $baseDir . '/src/Http/Util/UriResolver.php',
|
||||
'izi\\prestashop\\Installer\\DatabaseInstaller' => $baseDir . '/src/Installer/DatabaseInstaller.php',
|
||||
'izi\\prestashop\\Installer\\DatabaseMigrationInterface' => $baseDir . '/src/Installer/DatabaseMigrationInterface.php',
|
||||
'izi\\prestashop\\Installer\\Database\\AbstractMigration' => $baseDir . '/src/Installer/Database/AbstractMigration.php',
|
||||
'izi\\prestashop\\Installer\\Database\\Version_1_0_0' => $baseDir . '/src/Installer/Database/Version_1_0_0.php',
|
||||
'izi\\prestashop\\Installer\\Database\\Version_1_11_0' => $baseDir . '/src/Installer/Database/Version_1_11_0.php',
|
||||
'izi\\prestashop\\Installer\\Database\\Version_1_4_0' => $baseDir . '/src/Installer/Database/Version_1_4_0.php',
|
||||
'izi\\prestashop\\Installer\\Database\\Version_1_9_0' => $baseDir . '/src/Installer/Database/Version_1_9_0.php',
|
||||
'izi\\prestashop\\Installer\\Database\\Version_2_0_0' => $baseDir . '/src/Installer/Database/Version_2_0_0.php',
|
||||
'izi\\prestashop\\Installer\\Database\\Version_2_1_0' => $baseDir . '/src/Installer/Database/Version_2_1_0.php',
|
||||
'izi\\prestashop\\Installer\\Database\\Version_2_2_0' => $baseDir . '/src/Installer/Database/Version_2_2_0.php',
|
||||
'izi\\prestashop\\Log\\Handler\\AbstractHandlerFactory' => $baseDir . '/src/Log/Handler/AbstractHandlerFactory.php',
|
||||
'izi\\prestashop\\Log\\Handler\\HandlerFactoryInterface' => $baseDir . '/src/Log/Handler/HandlerFactoryInterface.php',
|
||||
'izi\\prestashop\\Log\\Handler\\RotatingFileHandlerFactory' => $baseDir . '/src/Log/Handler/RotatingFileHandlerFactory.php',
|
||||
'izi\\prestashop\\Log\\LoggerFactoryInterface' => $baseDir . '/src/Log/LoggerFactoryInterface.php',
|
||||
'izi\\prestashop\\Log\\MonologLoggerFactory' => $baseDir . '/src/Log/MonologLoggerFactory.php',
|
||||
'izi\\prestashop\\Mail\\Dto\\MailRecipient' => $baseDir . '/src/Mail/Dto/MailRecipient.php',
|
||||
'izi\\prestashop\\Mail\\EventListener\\ReplaceOrderNotificationRecipientListener' => $baseDir . '/src/Mail/EventListener/ReplaceOrderNotificationRecipientListener.php',
|
||||
'izi\\prestashop\\Mail\\Event\\SendEmailEvent' => $baseDir . '/src/Mail/Event/SendEmailEvent.php',
|
||||
'izi\\prestashop\\Mail\\Resolver\\OrderMailRecipientResolver' => $baseDir . '/src/Mail/Resolver/OrderMailRecipientResolver.php',
|
||||
'izi\\prestashop\\MerchantApi\\Command\\AddProductToBasketCommand' => $baseDir . '/src/MerchantApi/Command/AddProductToBasketCommand.php',
|
||||
'izi\\prestashop\\MerchantApi\\Command\\Basket\\AddProductToCartCommand' => $baseDir . '/src/MerchantApi/Command/Basket/AddProductToCartCommand.php',
|
||||
'izi\\prestashop\\MerchantApi\\Command\\Basket\\CreateCartCommand' => $baseDir . '/src/MerchantApi/Command/Basket/CreateCartCommand.php',
|
||||
'izi\\prestashop\\MerchantApi\\Command\\Basket\\IncrementCartQuantityCommand' => $baseDir . '/src/MerchantApi/Command/Basket/IncrementCartQuantityCommand.php',
|
||||
'izi\\prestashop\\MerchantApi\\Command\\ConfirmBasketBindingCommand' => $baseDir . '/src/MerchantApi/Command/ConfirmBasketBindingCommand.php',
|
||||
'izi\\prestashop\\MerchantApi\\Command\\CreateOrderCommand' => $baseDir . '/src/MerchantApi/Command/CreateOrderCommand.php',
|
||||
'izi\\prestashop\\MerchantApi\\Command\\DeleteBasketBindingCommand' => $baseDir . '/src/MerchantApi/Command/DeleteBasketBindingCommand.php',
|
||||
'izi\\prestashop\\MerchantApi\\Command\\GetBasketCommand' => $baseDir . '/src/MerchantApi/Command/GetBasketCommand.php',
|
||||
'izi\\prestashop\\MerchantApi\\Command\\GetOrderCommand' => $baseDir . '/src/MerchantApi/Command/GetOrderCommand.php',
|
||||
'izi\\prestashop\\MerchantApi\\Command\\GetProductsCommand' => $baseDir . '/src/MerchantApi/Command/GetProductsCommand.php',
|
||||
'izi\\prestashop\\MerchantApi\\Command\\Order\\UpdateCartMessageCommand' => $baseDir . '/src/MerchantApi/Command/Order/UpdateCartMessageCommand.php',
|
||||
'izi\\prestashop\\MerchantApi\\Command\\UpdateBasketCommand' => $baseDir . '/src/MerchantApi/Command/UpdateBasketCommand.php',
|
||||
'izi\\prestashop\\MerchantApi\\Command\\UpdateOrderCommand' => $baseDir . '/src/MerchantApi/Command/UpdateOrderCommand.php',
|
||||
'izi\\prestashop\\MerchantApi\\EventListener\\UpdateCartRulesListener' => $baseDir . '/src/MerchantApi/EventListener/UpdateCartRulesListener.php',
|
||||
'izi\\prestashop\\MerchantApi\\Event\\CartUpdatedEvent' => $baseDir . '/src/MerchantApi/Event/CartUpdatedEvent.php',
|
||||
'izi\\prestashop\\MerchantApi\\Exception\\ApiException' => $baseDir . '/src/MerchantApi/Exception/ApiException.php',
|
||||
'izi\\prestashop\\MerchantApi\\Exception\\BadGatewayException' => $baseDir . '/src/MerchantApi/Exception/BadGatewayException.php',
|
||||
'izi\\prestashop\\MerchantApi\\Exception\\BadRequestException' => $baseDir . '/src/MerchantApi/Exception/BadRequestException.php',
|
||||
'izi\\prestashop\\MerchantApi\\Exception\\BasketNotFoundException' => $baseDir . '/src/MerchantApi/Exception/BasketNotFoundException.php',
|
||||
'izi\\prestashop\\MerchantApi\\Exception\\CannotAddProductException' => $baseDir . '/src/MerchantApi/Exception/CannotAddProductException.php',
|
||||
'izi\\prestashop\\MerchantApi\\Exception\\CannotCreateBasketException' => $baseDir . '/src/MerchantApi/Exception/CannotCreateBasketException.php',
|
||||
'izi\\prestashop\\MerchantApi\\Exception\\CannotCreateOrderException' => $baseDir . '/src/MerchantApi/Exception/CannotCreateOrderException.php',
|
||||
'izi\\prestashop\\MerchantApi\\Exception\\InternalServerErrorException' => $baseDir . '/src/MerchantApi/Exception/InternalServerErrorException.php',
|
||||
'izi\\prestashop\\MerchantApi\\Exception\\InvalidSignatureException' => $baseDir . '/src/MerchantApi/Exception/InvalidSignatureException.php',
|
||||
'izi\\prestashop\\MerchantApi\\Exception\\MalformedRequestException' => $baseDir . '/src/MerchantApi/Exception/MalformedRequestException.php',
|
||||
'izi\\prestashop\\MerchantApi\\Exception\\OrderExistsException' => $baseDir . '/src/MerchantApi/Exception/OrderExistsException.php',
|
||||
'izi\\prestashop\\MerchantApi\\Exception\\OrderNotFoundException' => $baseDir . '/src/MerchantApi/Exception/OrderNotFoundException.php',
|
||||
'izi\\prestashop\\MerchantApi\\Exception\\ProductNotFoundException' => $baseDir . '/src/MerchantApi/Exception/ProductNotFoundException.php',
|
||||
'izi\\prestashop\\MerchantApi\\Exception\\ProductOutOfStockException' => $baseDir . '/src/MerchantApi/Exception/ProductOutOfStockException.php',
|
||||
'izi\\prestashop\\MerchantApi\\Exception\\ServiceUnavailableException' => $baseDir . '/src/MerchantApi/Exception/ServiceUnavailableException.php',
|
||||
'izi\\prestashop\\MerchantApi\\Firewall\\MerchantApiAuthenticator' => $baseDir . '/src/MerchantApi/Firewall/MerchantApiAuthenticator.php',
|
||||
'izi\\prestashop\\MerchantApi\\Firewall\\SigningKeysService' => $baseDir . '/src/MerchantApi/Firewall/SigningKeysService.php',
|
||||
'izi\\prestashop\\MerchantApi\\Firewall\\SigningKeysServiceInterface' => $baseDir . '/src/MerchantApi/Firewall/SigningKeysServiceInterface.php',
|
||||
'izi\\prestashop\\MerchantApi\\Handler\\AddProductToBasketHandler' => $baseDir . '/src/MerchantApi/Handler/AddProductToBasketHandler.php',
|
||||
'izi\\prestashop\\MerchantApi\\Handler\\AddProductToBasketHandlerInterface' => $baseDir . '/src/MerchantApi/Handler/AddProductToBasketHandlerInterface.php',
|
||||
'izi\\prestashop\\MerchantApi\\Handler\\Basket\\AddProductToCartHandler' => $baseDir . '/src/MerchantApi/Handler/Basket/AddProductToCartHandler.php',
|
||||
'izi\\prestashop\\MerchantApi\\Handler\\Basket\\AddProductToCartHandlerInterface' => $baseDir . '/src/MerchantApi/Handler/Basket/AddProductToCartHandlerInterface.php',
|
||||
'izi\\prestashop\\MerchantApi\\Handler\\Basket\\BasketEventHandler' => $baseDir . '/src/MerchantApi/Handler/Basket/BasketEventHandler.php',
|
||||
'izi\\prestashop\\MerchantApi\\Handler\\Basket\\BasketEventHandlerInterface' => $baseDir . '/src/MerchantApi/Handler/Basket/BasketEventHandlerInterface.php',
|
||||
'izi\\prestashop\\MerchantApi\\Handler\\Basket\\CreateCartHandler' => $baseDir . '/src/MerchantApi/Handler/Basket/CreateCartHandler.php',
|
||||
'izi\\prestashop\\MerchantApi\\Handler\\Basket\\CreateCartHandlerInterface' => $baseDir . '/src/MerchantApi/Handler/Basket/CreateCartHandlerInterface.php',
|
||||
'izi\\prestashop\\MerchantApi\\Handler\\Basket\\IncrementCartQuantityHandler' => $baseDir . '/src/MerchantApi/Handler/Basket/IncrementCartQuantityHandler.php',
|
||||
'izi\\prestashop\\MerchantApi\\Handler\\Basket\\IncrementCartQuantityHandlerInterface' => $baseDir . '/src/MerchantApi/Handler/Basket/IncrementCartQuantityHandlerInterface.php',
|
||||
'izi\\prestashop\\MerchantApi\\Handler\\Basket\\ProductsQuantityEventHandler' => $baseDir . '/src/MerchantApi/Handler/Basket/ProductsQuantityEventHandler.php',
|
||||
'izi\\prestashop\\MerchantApi\\Handler\\Basket\\PromoCodesEventHandler' => $baseDir . '/src/MerchantApi/Handler/Basket/PromoCodesEventHandler.php',
|
||||
'izi\\prestashop\\MerchantApi\\Handler\\Basket\\RelatedProductsEventHandler' => $baseDir . '/src/MerchantApi/Handler/Basket/RelatedProductsEventHandler.php',
|
||||
'izi\\prestashop\\MerchantApi\\Handler\\ConfirmBasketBindingHandler' => $baseDir . '/src/MerchantApi/Handler/ConfirmBasketBindingHandler.php',
|
||||
'izi\\prestashop\\MerchantApi\\Handler\\ConfirmBasketBindingHandlerInterface' => $baseDir . '/src/MerchantApi/Handler/ConfirmBasketBindingHandlerInterface.php',
|
||||
'izi\\prestashop\\MerchantApi\\Handler\\CreateOrderHandler' => $baseDir . '/src/MerchantApi/Handler/CreateOrderHandler.php',
|
||||
'izi\\prestashop\\MerchantApi\\Handler\\CreateOrderHandlerInterface' => $baseDir . '/src/MerchantApi/Handler/CreateOrderHandlerInterface.php',
|
||||
'izi\\prestashop\\MerchantApi\\Handler\\DeleteBasketBindingHandler' => $baseDir . '/src/MerchantApi/Handler/DeleteBasketBindingHandler.php',
|
||||
'izi\\prestashop\\MerchantApi\\Handler\\DeleteBasketBindingHandlerInterface' => $baseDir . '/src/MerchantApi/Handler/DeleteBasketBindingHandlerInterface.php',
|
||||
'izi\\prestashop\\MerchantApi\\Handler\\GetBasketHandler' => $baseDir . '/src/MerchantApi/Handler/GetBasketHandler.php',
|
||||
'izi\\prestashop\\MerchantApi\\Handler\\GetBasketHandlerInterface' => $baseDir . '/src/MerchantApi/Handler/GetBasketHandlerInterface.php',
|
||||
'izi\\prestashop\\MerchantApi\\Handler\\GetOrderHandler' => $baseDir . '/src/MerchantApi/Handler/GetOrderHandler.php',
|
||||
'izi\\prestashop\\MerchantApi\\Handler\\GetOrderHandlerInterface' => $baseDir . '/src/MerchantApi/Handler/GetOrderHandlerInterface.php',
|
||||
'izi\\prestashop\\MerchantApi\\Handler\\GetProductsHandler' => $baseDir . '/src/MerchantApi/Handler/GetProductsHandler.php',
|
||||
'izi\\prestashop\\MerchantApi\\Handler\\GetProductsHandlerInterface' => $baseDir . '/src/MerchantApi/Handler/GetProductsHandlerInterface.php',
|
||||
'izi\\prestashop\\MerchantApi\\Handler\\Order\\UpdateCartMessageHandler' => $baseDir . '/src/MerchantApi/Handler/Order/UpdateCartMessageHandler.php',
|
||||
'izi\\prestashop\\MerchantApi\\Handler\\Order\\UpdateCartMessageHandlerInterface' => $baseDir . '/src/MerchantApi/Handler/Order/UpdateCartMessageHandlerInterface.php',
|
||||
'izi\\prestashop\\MerchantApi\\Handler\\UpdateBasketHandler' => $baseDir . '/src/MerchantApi/Handler/UpdateBasketHandler.php',
|
||||
'izi\\prestashop\\MerchantApi\\Handler\\UpdateBasketHandlerInterface' => $baseDir . '/src/MerchantApi/Handler/UpdateBasketHandlerInterface.php',
|
||||
'izi\\prestashop\\MerchantApi\\Handler\\UpdateOrderHandler' => $baseDir . '/src/MerchantApi/Handler/UpdateOrderHandler.php',
|
||||
'izi\\prestashop\\MerchantApi\\Handler\\UpdateOrderHandlerInterface' => $baseDir . '/src/MerchantApi/Handler/UpdateOrderHandlerInterface.php',
|
||||
'izi\\prestashop\\MerchantApi\\Model\\Basket\\Request\\BasketEvent' => $baseDir . '/src/MerchantApi/Model/Basket/Request/BasketEvent.php',
|
||||
'izi\\prestashop\\MerchantApi\\Model\\Basket\\Request\\BasketId' => $baseDir . '/src/MerchantApi/Model/Basket/Request/BasketId.php',
|
||||
'izi\\prestashop\\MerchantApi\\Model\\Basket\\Request\\BindingConfirmation' => $baseDir . '/src/MerchantApi/Model/Basket/Request/BindingConfirmation.php',
|
||||
'izi\\prestashop\\MerchantApi\\Model\\Basket\\Request\\BindingStatus' => $baseDir . '/src/MerchantApi/Model/Basket/Request/BindingStatus.php',
|
||||
'izi\\prestashop\\MerchantApi\\Model\\Basket\\Request\\Browser' => $baseDir . '/src/MerchantApi/Model/Basket/Request/Browser.php',
|
||||
'izi\\prestashop\\MerchantApi\\Model\\Basket\\Request\\EventType' => $baseDir . '/src/MerchantApi/Model/Basket/Request/EventType.php',
|
||||
'izi\\prestashop\\MerchantApi\\Model\\Basket\\Request\\Quantity' => $baseDir . '/src/MerchantApi/Model/Basket/Request/Quantity.php',
|
||||
'izi\\prestashop\\MerchantApi\\Model\\Basket\\Request\\QuantityData' => $baseDir . '/src/MerchantApi/Model/Basket/Request/QuantityData.php',
|
||||
'izi\\prestashop\\MerchantApi\\Model\\Basket\\Request\\RelatedProductData' => $baseDir . '/src/MerchantApi/Model/Basket/Request/RelatedProductData.php',
|
||||
'izi\\prestashop\\MerchantApi\\Model\\Basket\\Response\\Basket' => $baseDir . '/src/MerchantApi/Model/Basket/Response/Basket.php',
|
||||
'izi\\prestashop\\MerchantApi\\Model\\Basket\\Response\\BasketTrait' => $baseDir . '/src/MerchantApi/Model/Basket/Response/BasketTrait.php',
|
||||
'izi\\prestashop\\MerchantApi\\Model\\Basket\\Response\\IdentifiableBasket' => $baseDir . '/src/MerchantApi/Model/Basket/Response/IdentifiableBasket.php',
|
||||
'izi\\prestashop\\MerchantApi\\Model\\Order\\Request\\AccountInfo' => $baseDir . '/src/MerchantApi/Model/Order/Request/AccountInfo.php',
|
||||
'izi\\prestashop\\MerchantApi\\Model\\Order\\Request\\AddressDetails' => $baseDir . '/src/MerchantApi/Model/Order/Request/AddressDetails.php',
|
||||
'izi\\prestashop\\MerchantApi\\Model\\Order\\Request\\ClientAddress' => $baseDir . '/src/MerchantApi/Model/Order/Request/ClientAddress.php',
|
||||
'izi\\prestashop\\MerchantApi\\Model\\Order\\Request\\CreateOrderRequest' => $baseDir . '/src/MerchantApi/Model/Order/Request/CreateOrderRequest.php',
|
||||
'izi\\prestashop\\MerchantApi\\Model\\Order\\Request\\Delivery' => $baseDir . '/src/MerchantApi/Model/Order/Request/Delivery.php',
|
||||
'izi\\prestashop\\MerchantApi\\Model\\Order\\Request\\DeliveryAddress' => $baseDir . '/src/MerchantApi/Model/Order/Request/DeliveryAddress.php',
|
||||
'izi\\prestashop\\MerchantApi\\Model\\Order\\Request\\EventData' => $baseDir . '/src/MerchantApi/Model/Order/Request/EventData.php',
|
||||
'izi\\prestashop\\MerchantApi\\Model\\Order\\Request\\OrderDetails' => $baseDir . '/src/MerchantApi/Model/Order/Request/OrderDetails.php',
|
||||
'izi\\prestashop\\MerchantApi\\Model\\Order\\Request\\OrderEvent' => $baseDir . '/src/MerchantApi/Model/Order/Request/OrderEvent.php',
|
||||
'izi\\prestashop\\MerchantApi\\Model\\Order\\Request\\OrderStatus' => $baseDir . '/src/MerchantApi/Model/Order/Request/OrderStatus.php',
|
||||
'izi\\prestashop\\MerchantApi\\Model\\Order\\Request\\PaymentStatus' => $baseDir . '/src/MerchantApi/Model/Order/Request/PaymentStatus.php',
|
||||
'izi\\prestashop\\MerchantApi\\Model\\Order\\Response\\Delivery' => $baseDir . '/src/MerchantApi/Model/Order/Response/Delivery.php',
|
||||
'izi\\prestashop\\MerchantApi\\Model\\Order\\Response\\Order' => $baseDir . '/src/MerchantApi/Model/Order/Response/Order.php',
|
||||
'izi\\prestashop\\MerchantApi\\Model\\Order\\Response\\OrderDetails' => $baseDir . '/src/MerchantApi/Model/Order/Response/OrderDetails.php',
|
||||
'izi\\prestashop\\MerchantApi\\Model\\Order\\Response\\OrderStatusData' => $baseDir . '/src/MerchantApi/Model/Order/Response/OrderStatusData.php',
|
||||
'izi\\prestashop\\MerchantApi\\Model\\Product\\Response\\Products' => $baseDir . '/src/MerchantApi/Model/Product/Response/Products.php',
|
||||
'izi\\prestashop\\Module\\Exception\\ModuleErrorInterface' => $baseDir . '/src/Module/Exception/ModuleErrorInterface.php',
|
||||
'izi\\prestashop\\Module\\Exception\\PrestaShopModuleErrorException' => $baseDir . '/src/Module/Exception/PrestaShopModuleErrorException.php',
|
||||
'izi\\prestashop\\Module\\ModuleRepository' => $baseDir . '/src/Module/ModuleRepository.php',
|
||||
'izi\\prestashop\\OAuth2\\Authentication\\AuthenticationMethodInterface' => $baseDir . '/src/OAuth2/Authentication/AuthenticationMethodInterface.php',
|
||||
'izi\\prestashop\\OAuth2\\Authentication\\ClientCredentials' => $baseDir . '/src/OAuth2/Authentication/ClientCredentials.php',
|
||||
'izi\\prestashop\\OAuth2\\Authentication\\ClientCredentialsInterface' => $baseDir . '/src/OAuth2/Authentication/ClientCredentialsInterface.php',
|
||||
'izi\\prestashop\\OAuth2\\Authentication\\ClientCredentialsRepositoryInterface' => $baseDir . '/src/OAuth2/Authentication/ClientCredentialsRepositoryInterface.php',
|
||||
'izi\\prestashop\\OAuth2\\Authentication\\ClientSecretPost' => $baseDir . '/src/OAuth2/Authentication/ClientSecretPost.php',
|
||||
'izi\\prestashop\\OAuth2\\Authentication\\None' => $baseDir . '/src/OAuth2/Authentication/None.php',
|
||||
'izi\\prestashop\\OAuth2\\AuthorizationProvider' => $baseDir . '/src/OAuth2/AuthorizationProvider.php',
|
||||
'izi\\prestashop\\OAuth2\\AuthorizationProviderFactoryInterface' => $baseDir . '/src/OAuth2/AuthorizationProviderFactoryInterface.php',
|
||||
'izi\\prestashop\\OAuth2\\AuthorizationProviderInterface' => $baseDir . '/src/OAuth2/AuthorizationProviderInterface.php',
|
||||
'izi\\prestashop\\OAuth2\\AuthorizationServerClient' => $baseDir . '/src/OAuth2/AuthorizationServerClient.php',
|
||||
'izi\\prestashop\\OAuth2\\AuthorizationServerClientInterface' => $baseDir . '/src/OAuth2/AuthorizationServerClientInterface.php',
|
||||
'izi\\prestashop\\OAuth2\\Exception\\AccessTokenRequestException' => $baseDir . '/src/OAuth2/Exception/AccessTokenRequestException.php',
|
||||
'izi\\prestashop\\OAuth2\\Exception\\NetworkException' => $baseDir . '/src/OAuth2/Exception/NetworkException.php',
|
||||
'izi\\prestashop\\OAuth2\\Exception\\OAuth2ExceptionInterface' => $baseDir . '/src/OAuth2/Exception/OAuth2ExceptionInterface.php',
|
||||
'izi\\prestashop\\OAuth2\\Exception\\UnexpectedValueException' => $baseDir . '/src/OAuth2/Exception/UnexpectedValueException.php',
|
||||
'izi\\prestashop\\OAuth2\\Grant\\AbstractGrant' => $baseDir . '/src/OAuth2/Grant/AbstractGrant.php',
|
||||
'izi\\prestashop\\OAuth2\\Grant\\ClientCredentialsGrant' => $baseDir . '/src/OAuth2/Grant/ClientCredentialsGrant.php',
|
||||
'izi\\prestashop\\OAuth2\\Grant\\GrantTypeInterface' => $baseDir . '/src/OAuth2/Grant/GrantTypeInterface.php',
|
||||
'izi\\prestashop\\OAuth2\\Grant\\RefreshTokenGrant' => $baseDir . '/src/OAuth2/Grant/RefreshTokenGrant.php',
|
||||
'izi\\prestashop\\OAuth2\\LazyAuthorizationProvider' => $baseDir . '/src/OAuth2/LazyAuthorizationProvider.php',
|
||||
'izi\\prestashop\\OAuth2\\Token\\AccessTokenFactoryInterface' => $baseDir . '/src/OAuth2/Token/AccessTokenFactoryInterface.php',
|
||||
'izi\\prestashop\\OAuth2\\Token\\AccessTokenFactoryTrait' => $baseDir . '/src/OAuth2/Token/AccessTokenFactoryTrait.php',
|
||||
'izi\\prestashop\\OAuth2\\Token\\AccessTokenInterface' => $baseDir . '/src/OAuth2/Token/AccessTokenInterface.php',
|
||||
'izi\\prestashop\\OAuth2\\Token\\AccessTokenRepositoryInterface' => $baseDir . '/src/OAuth2/Token/AccessTokenRepositoryInterface.php',
|
||||
'izi\\prestashop\\OAuth2\\Token\\AccessTokenTrait' => $baseDir . '/src/OAuth2/Token/AccessTokenTrait.php',
|
||||
'izi\\prestashop\\OAuth2\\Token\\BearerToken' => $baseDir . '/src/OAuth2/Token/BearerToken.php',
|
||||
'izi\\prestashop\\OAuth2\\Token\\BearerTokenFactory' => $baseDir . '/src/OAuth2/Token/BearerTokenFactory.php',
|
||||
'izi\\prestashop\\OAuth2\\Token\\InMemoryTokenRepository' => $baseDir . '/src/OAuth2/Token/InMemoryTokenRepository.php',
|
||||
'izi\\prestashop\\OAuth2\\UriCollection' => $baseDir . '/src/OAuth2/UriCollection.php',
|
||||
'izi\\prestashop\\OAuth2\\UriCollectionInterface' => $baseDir . '/src/OAuth2/UriCollectionInterface.php',
|
||||
'izi\\prestashop\\ObjectModel\\Entity\\InPostIziBasketSession' => $baseDir . '/src/ObjectModel/Entity/InPostIziBasketSession.php',
|
||||
'izi\\prestashop\\ObjectModel\\Exception\\InvalidDataException' => $baseDir . '/src/ObjectModel/Exception/InvalidDataException.php',
|
||||
'izi\\prestashop\\ObjectModel\\Hydrator' => $baseDir . '/src/ObjectModel/Hydrator.php',
|
||||
'izi\\prestashop\\ObjectModel\\HydratorInterface' => $baseDir . '/src/ObjectModel/HydratorInterface.php',
|
||||
'izi\\prestashop\\ObjectModel\\ObjectManager' => $baseDir . '/src/ObjectModel/ObjectManager.php',
|
||||
'izi\\prestashop\\ObjectModel\\ObjectManagerInterface' => $baseDir . '/src/ObjectModel/ObjectManagerInterface.php',
|
||||
'izi\\prestashop\\ObjectModel\\OrderMaintainingLoaderTrait' => $baseDir . '/src/ObjectModel/OrderMaintainingLoaderTrait.php',
|
||||
'izi\\prestashop\\ObjectModel\\Query' => $baseDir . '/src/ObjectModel/Query.php',
|
||||
'izi\\prestashop\\ObjectModel\\QueryBuilder' => $baseDir . '/src/ObjectModel/QueryBuilder.php',
|
||||
'izi\\prestashop\\ObjectModel\\Repository\\CarrierRepository' => $baseDir . '/src/ObjectModel/Repository/CarrierRepository.php',
|
||||
'izi\\prestashop\\ObjectModel\\Repository\\CartRuleRepository' => $baseDir . '/src/ObjectModel/Repository/CartRuleRepository.php',
|
||||
'izi\\prestashop\\ObjectModel\\Repository\\CmsPageRepository' => $baseDir . '/src/ObjectModel/Repository/CmsPageRepository.php',
|
||||
'izi\\prestashop\\ObjectModel\\Repository\\CombinationRepository' => $baseDir . '/src/ObjectModel/Repository/CombinationRepository.php',
|
||||
'izi\\prestashop\\ObjectModel\\Repository\\ConfigurationRepository' => $baseDir . '/src/ObjectModel/Repository/ConfigurationRepository.php',
|
||||
'izi\\prestashop\\ObjectModel\\Repository\\CurrencyRepository' => $baseDir . '/src/ObjectModel/Repository/CurrencyRepository.php',
|
||||
'izi\\prestashop\\ObjectModel\\Repository\\HookRepository' => $baseDir . '/src/ObjectModel/Repository/HookRepository.php',
|
||||
'izi\\prestashop\\ObjectModel\\Repository\\ImageTypeRepository' => $baseDir . '/src/ObjectModel/Repository/ImageTypeRepository.php',
|
||||
'izi\\prestashop\\ObjectModel\\Repository\\ObjectRepository' => $baseDir . '/src/ObjectModel/Repository/ObjectRepository.php',
|
||||
'izi\\prestashop\\ObjectModel\\Repository\\ObjectRepositoryFactory' => $baseDir . '/src/ObjectModel/Repository/ObjectRepositoryFactory.php',
|
||||
'izi\\prestashop\\ObjectModel\\Repository\\ObjectRepositoryFactoryInterface' => $baseDir . '/src/ObjectModel/Repository/ObjectRepositoryFactoryInterface.php',
|
||||
'izi\\prestashop\\ObjectModel\\Repository\\ObjectRepositoryInterface' => $baseDir . '/src/ObjectModel/Repository/ObjectRepositoryInterface.php',
|
||||
'izi\\prestashop\\ObjectModel\\Repository\\ProductRepository' => $baseDir . '/src/ObjectModel/Repository/ProductRepository.php',
|
||||
'izi\\prestashop\\ObjectModel\\Repository\\RangePriceRepository' => $baseDir . '/src/ObjectModel/Repository/RangePriceRepository.php',
|
||||
'izi\\prestashop\\ObjectModel\\Repository\\RangeWeightRepository' => $baseDir . '/src/ObjectModel/Repository/RangeWeightRepository.php',
|
||||
'izi\\prestashop\\ObjectModel\\Repository\\ShipmentRepository' => $baseDir . '/src/ObjectModel/Repository/ShipmentRepository.php',
|
||||
'izi\\prestashop\\Order\\Address\\AddressDataMapper' => $baseDir . '/src/Order/Address/AddressDataMapper.php',
|
||||
'izi\\prestashop\\Order\\ContextCustomerUpdater' => $baseDir . '/src/Order/ContextCustomerUpdater.php',
|
||||
'izi\\prestashop\\Order\\Message\\ExpressionLanguage' => $baseDir . '/src/Order/Message/ExpressionLanguage.php',
|
||||
'izi\\prestashop\\Order\\Message\\Message' => $baseDir . '/src/Order/Message/Message.php',
|
||||
'izi\\prestashop\\Order\\Message\\MessageFormatter' => $baseDir . '/src/Order/Message/MessageFormatter.php',
|
||||
'izi\\prestashop\\Order\\Message\\MessageFormatterInterface' => $baseDir . '/src/Order/Message/MessageFormatterInterface.php',
|
||||
'izi\\prestashop\\Order\\Message\\ParameterDescriptorInterface' => $baseDir . '/src/Order/Message/ParameterDescriptorInterface.php',
|
||||
'izi\\prestashop\\Order\\Message\\ParametersExtractor' => $baseDir . '/src/Order/Message/ParametersExtractor.php',
|
||||
'izi\\prestashop\\Order\\Message\\ParametersExtractorInterface' => $baseDir . '/src/Order/Message/ParametersExtractorInterface.php',
|
||||
'izi\\prestashop\\Order\\Message\\Processor\\ConditionalBlockProcessor' => $baseDir . '/src/Order/Message/Processor/ConditionalBlockProcessor.php',
|
||||
'izi\\prestashop\\Order\\Message\\Processor\\ExpressionLanguageProcessor' => $baseDir . '/src/Order/Message/Processor/ExpressionLanguageProcessor.php',
|
||||
'izi\\prestashop\\Order\\Message\\Processor\\ParameterReplacementProcessor' => $baseDir . '/src/Order/Message/Processor/ParameterReplacementProcessor.php',
|
||||
'izi\\prestashop\\Order\\Message\\Processor\\ProcessorInterface' => $baseDir . '/src/Order/Message/Processor/ProcessorInterface.php',
|
||||
'izi\\prestashop\\Payment\\PaymentCurrencyChecker' => $baseDir . '/src/Payment/PaymentCurrencyChecker.php',
|
||||
'izi\\prestashop\\PrestashopOrder' => $baseDir . '/src/PrestashopOrder.php',
|
||||
'izi\\prestashop\\Product\\Event\\CombinationEvent' => $baseDir . '/src/Product/Event/CombinationEvent.php',
|
||||
'izi\\prestashop\\Product\\Event\\ImageEvent' => $baseDir . '/src/Product/Event/ImageEvent.php',
|
||||
'izi\\prestashop\\Product\\Event\\ProductEvent' => $baseDir . '/src/Product/Event/ProductEvent.php',
|
||||
'izi\\prestashop\\Product\\Event\\SpecificPriceEvent' => $baseDir . '/src/Product/Event/SpecificPriceEvent.php',
|
||||
'izi\\prestashop\\Product\\Event\\StockQuantityUpdatedEvent' => $baseDir . '/src/Product/Event/StockQuantityUpdatedEvent.php',
|
||||
'izi\\prestashop\\Product\\Image\\ImageUrls' => $baseDir . '/src/Product/Image/ImageUrls.php',
|
||||
'izi\\prestashop\\Product\\Image\\ImageUrlsProvider' => $baseDir . '/src/Product/Image/ImageUrlsProvider.php',
|
||||
'izi\\prestashop\\Product\\Image\\ImageUrlsProviderInterface' => $baseDir . '/src/Product/Image/ImageUrlsProviderInterface.php',
|
||||
'izi\\prestashop\\Product\\Price\\BatchLowestPriceProviderInterface' => $baseDir . '/src/Product/Price/BatchLowestPriceProviderInterface.php',
|
||||
'izi\\prestashop\\Product\\Price\\CalculationParameters' => $baseDir . '/src/Product/Price/CalculationParameters.php',
|
||||
'izi\\prestashop\\Product\\Price\\ErrorHandlingLowestPriceProvider' => $baseDir . '/src/Product/Price/ErrorHandlingLowestPriceProvider.php',
|
||||
'izi\\prestashop\\Product\\Price\\LowestPriceProviderFactory' => $baseDir . '/src/Product/Price/LowestPriceProviderFactory.php',
|
||||
'izi\\prestashop\\Product\\Price\\LowestPriceProviderInterface' => $baseDir . '/src/Product/Price/LowestPriceProviderInterface.php',
|
||||
'izi\\prestashop\\Product\\Price\\LowestPriceQuery' => $baseDir . '/src/Product/Price/LowestPriceQuery.php',
|
||||
'izi\\prestashop\\Product\\Price\\NullLowestPriceProvider' => $baseDir . '/src/Product/Price/NullLowestPriceProvider.php',
|
||||
'izi\\prestashop\\Product\\Price\\PriceCalculator' => $baseDir . '/src/Product/Price/PriceCalculator.php',
|
||||
'izi\\prestashop\\Product\\Price\\PriceCalculatorInterface' => $baseDir . '/src/Product/Price/PriceCalculatorInterface.php',
|
||||
'izi\\prestashop\\Product\\Price\\PriceQuery' => $baseDir . '/src/Product/Price/PriceQuery.php',
|
||||
'izi\\prestashop\\Product\\Price\\X13PriceHistoryLowestPriceProvider' => $baseDir . '/src/Product/Price/X13PriceHistoryLowestPriceProvider.php',
|
||||
'izi\\prestashop\\Product\\ProductAttribute' => $baseDir . '/src/Product/ProductAttribute.php',
|
||||
'izi\\prestashop\\Product\\ProductType' => $baseDir . '/src/Product/ProductType.php',
|
||||
'izi\\prestashop\\Product\\ProductWithCombination' => $baseDir . '/src/Product/ProductWithCombination.php',
|
||||
'izi\\prestashop\\Product\\ReferenceId' => $baseDir . '/src/Product/ReferenceId.php',
|
||||
'izi\\prestashop\\Product\\Util\\AttributeListParser' => $baseDir . '/src/Product/Util/AttributeListParser.php',
|
||||
'izi\\prestashop\\Product\\Util\\DescriptionFormatter' => $baseDir . '/src/Product/Util/DescriptionFormatter.php',
|
||||
'izi\\prestashop\\PromoCode\\AvailableCartRulesProvider' => $baseDir . '/src/PromoCode/AvailableCartRulesProvider.php',
|
||||
'izi\\prestashop\\PromoCode\\AvailablePromotionsProviderInterface' => $baseDir . '/src/PromoCode/AvailablePromotionsProviderInterface.php',
|
||||
'izi\\prestashop\\PromoCode\\CartRuleOptions' => $baseDir . '/src/PromoCode/CartRuleOptions.php',
|
||||
'izi\\prestashop\\PromoCode\\CartRuleOptionsRepository' => $baseDir . '/src/PromoCode/CartRuleOptionsRepository.php',
|
||||
'izi\\prestashop\\PromoCode\\CartRuleOptionsRepositoryInterface' => $baseDir . '/src/PromoCode/CartRuleOptionsRepositoryInterface.php',
|
||||
'izi\\prestashop\\PromoCode\\CartRulePromoCodeProvider' => $baseDir . '/src/PromoCode/CartRulePromoCodeProvider.php',
|
||||
'izi\\prestashop\\PromoCode\\NullAvailablePromotionsProvider' => $baseDir . '/src/PromoCode/NullAvailablePromotionsProvider.php',
|
||||
'izi\\prestashop\\PromoCode\\PromoCodeProviderInterface' => $baseDir . '/src/PromoCode/PromoCodeProviderInterface.php',
|
||||
'izi\\prestashop\\Repository\\BasketSessionRepository' => $baseDir . '/src/Repository/BasketSessionRepository.php',
|
||||
'izi\\prestashop\\Repository\\BasketSessionRepositoryInterface' => $baseDir . '/src/Repository/BasketSessionRepositoryInterface.php',
|
||||
'izi\\prestashop\\Repository\\CartRuleRepository' => $baseDir . '/src/Repository/CartRuleRepository.php',
|
||||
'izi\\prestashop\\Repository\\CartRuleRepositoryInterface' => $baseDir . '/src/Repository/CartRuleRepositoryInterface.php',
|
||||
'izi\\prestashop\\Repository\\OrderDataRepositoryInterface' => $baseDir . '/src/Repository/OrderDataRepositoryInterface.php',
|
||||
'izi\\prestashop\\Repository\\ProductRestrictionsRepository' => $baseDir . '/src/Repository/ProductRestrictionsRepository.php',
|
||||
'izi\\prestashop\\Repository\\ProductRestrictionsRepositoryInterface' => $baseDir . '/src/Repository/ProductRestrictionsRepositoryInterface.php',
|
||||
'izi\\prestashop\\Repository\\Product\\AttributeRestrictionsRepositoryInterface' => $baseDir . '/src/Repository/Product/AttributeRestrictionsRepositoryInterface.php',
|
||||
'izi\\prestashop\\Repository\\Product\\CategoryRestrictionsRepositoryInterface' => $baseDir . '/src/Repository/Product/CategoryRestrictionsRepositoryInterface.php',
|
||||
'izi\\prestashop\\Repository\\Product\\FeatureRestrictionsRepositoryInterface' => $baseDir . '/src/Repository/Product/FeatureRestrictionsRepositoryInterface.php',
|
||||
'izi\\prestashop\\Repository\\Product\\ManufacturerRestrictionsRepositoryInterface' => $baseDir . '/src/Repository/Product/ManufacturerRestrictionsRepositoryInterface.php',
|
||||
'izi\\prestashop\\Routing\\AdminUrlGenerator' => $baseDir . '/src/Routing/AdminUrlGenerator.php',
|
||||
'izi\\prestashop\\Routing\\AnnotationDirectoryLoader' => $baseDir . '/src/Routing/AnnotationDirectoryLoader.php',
|
||||
'izi\\prestashop\\Security\\AuthorizationChecker' => $baseDir . '/src/Security/AuthorizationChecker.php',
|
||||
'izi\\prestashop\\Security\\EmployeeAuthenticator' => $baseDir . '/src/Security/EmployeeAuthenticator.php',
|
||||
'izi\\prestashop\\Security\\LazyUserProvider' => $baseDir . '/src/Security/LazyUserProvider.php',
|
||||
'izi\\prestashop\\Security\\Voter\\BindingWidgetVoter' => $baseDir . '/src/Security/Voter/BindingWidgetVoter.php',
|
||||
'izi\\prestashop\\Serializer\\Exception\\MissingConstructorArgumentsException' => $baseDir . '/src/Serializer/Exception/MissingConstructorArgumentsException.php',
|
||||
'izi\\prestashop\\Serializer\\Normalizer\\BasketAppPaginationPageDenormalizer' => $baseDir . '/src/Serializer/Normalizer/BasketAppPaginationPageDenormalizer.php',
|
||||
'izi\\prestashop\\Serializer\\Normalizer\\CustomDenormalizer' => $baseDir . '/src/Serializer/Normalizer/CustomDenormalizer.php',
|
||||
'izi\\prestashop\\Serializer\\Normalizer\\DateTimeNormalizer' => $baseDir . '/src/Serializer/Normalizer/DateTimeNormalizer.php',
|
||||
'izi\\prestashop\\Serializer\\Normalizer\\DenormalizableInterface' => $baseDir . '/src/Serializer/Normalizer/DenormalizableInterface.php',
|
||||
'izi\\prestashop\\Serializer\\Normalizer\\EnumDenormalizer' => $baseDir . '/src/Serializer/Normalizer/EnumDenormalizer.php',
|
||||
'izi\\prestashop\\Serializer\\Normalizer\\JsonSerializableNormalizer' => $baseDir . '/src/Serializer/Normalizer/JsonSerializableNormalizer.php',
|
||||
'izi\\prestashop\\Serializer\\Normalizer\\ObjectNormalizer' => $baseDir . '/src/Serializer/Normalizer/ObjectNormalizer.php',
|
||||
'izi\\prestashop\\Serializer\\Normalizer\\PriceAmountNormalizer' => $baseDir . '/src/Serializer/Normalizer/PriceAmountNormalizer.php',
|
||||
'izi\\prestashop\\Serializer\\Normalizer\\PriceNormalizer' => $baseDir . '/src/Serializer/Normalizer/PriceNormalizer.php',
|
||||
'izi\\prestashop\\Serializer\\PropertyDocBlockTypeExtractor' => $baseDir . '/src/Serializer/PropertyDocBlockTypeExtractor.php',
|
||||
'izi\\prestashop\\Serializer\\SafeDeserializerTrait' => $baseDir . '/src/Serializer/SafeDeserializerTrait.php',
|
||||
'izi\\prestashop\\Serializer\\SerializerFactory' => $baseDir . '/src/Serializer/SerializerFactory.php',
|
||||
'izi\\prestashop\\Shipping\\CarrierModuleTrackingNumberProvider' => $baseDir . '/src/Shipping/CarrierModuleTrackingNumberProvider.php',
|
||||
'izi\\prestashop\\Shipping\\CartTotal\\CartTotalDeliveryStrategyInterface' => $baseDir . '/src/Shipping/CartTotal/CartTotalDeliveryStrategyInterface.php',
|
||||
'izi\\prestashop\\Shipping\\CartTotal\\GenericStrategy' => $baseDir . '/src/Shipping/CartTotal/GenericStrategy.php',
|
||||
'izi\\prestashop\\Shipping\\CartTotal\\PriceRangeStrategy' => $baseDir . '/src/Shipping/CartTotal/PriceRangeStrategy.php',
|
||||
'izi\\prestashop\\Shipping\\CartWeight\\CartWeightDeliveryStrategyInterface' => $baseDir . '/src/Shipping/CartWeight/CartWeightDeliveryStrategyInterface.php',
|
||||
'izi\\prestashop\\Shipping\\CartWeight\\GenericStrategy' => $baseDir . '/src/Shipping/CartWeight/GenericStrategy.php',
|
||||
'izi\\prestashop\\Shipping\\CartWeight\\WeightRangeStrategy' => $baseDir . '/src/Shipping/CartWeight/WeightRangeStrategy.php',
|
||||
'izi\\prestashop\\Shipping\\DeliveryPriceCalculator' => $baseDir . '/src/Shipping/DeliveryPriceCalculator.php',
|
||||
'izi\\prestashop\\Shipping\\DeliveryPriceCalculatorInterface' => $baseDir . '/src/Shipping/DeliveryPriceCalculatorInterface.php',
|
||||
'izi\\prestashop\\Shipping\\Exception\\UnavailableDeliveryOptionException' => $baseDir . '/src/Shipping/Exception/UnavailableDeliveryOptionException.php',
|
||||
'izi\\prestashop\\Shipping\\FreeDelivery\\GenericStrategy' => $baseDir . '/src/Shipping/FreeDelivery/GenericStrategy.php',
|
||||
'izi\\prestashop\\Shipping\\FreeDelivery\\MinAmountCalculationStrategyInterface' => $baseDir . '/src/Shipping/FreeDelivery/MinAmountCalculationStrategyInterface.php',
|
||||
'izi\\prestashop\\Shipping\\FreeDelivery\\NullStrategy' => $baseDir . '/src/Shipping/FreeDelivery/NullStrategy.php',
|
||||
'izi\\prestashop\\Shipping\\FreeDelivery\\PriceRangeStrategy' => $baseDir . '/src/Shipping/FreeDelivery/PriceRangeStrategy.php',
|
||||
'izi\\prestashop\\Shipping\\ProductDimensions\\GenericStrategy' => $baseDir . '/src/Shipping/ProductDimensions/GenericStrategy.php',
|
||||
'izi\\prestashop\\Shipping\\ProductDimensions\\ProductDimensionsDeliveryStrategyInterface' => $baseDir . '/src/Shipping/ProductDimensions/ProductDimensionsDeliveryStrategyInterface.php',
|
||||
'izi\\prestashop\\Shipping\\ProductRestriction\\ProductRestrictionDelivery' => $baseDir . '/src/Shipping/ProductRestriction/ProductRestrictionDelivery.php',
|
||||
'izi\\prestashop\\Shipping\\ProductRestriction\\ProductRestrictionDeliveryInterface' => $baseDir . '/src/Shipping/ProductRestriction/ProductRestrictionDeliveryInterface.php',
|
||||
'izi\\prestashop\\Shipping\\TrackingNumberProviderInterface' => $baseDir . '/src/Shipping/TrackingNumberProviderInterface.php',
|
||||
'izi\\prestashop\\Translation\\DomainNormalizingTranslator' => $baseDir . '/src/Translation/DomainNormalizingTranslator.php',
|
||||
'izi\\prestashop\\Translation\\LegacyTranslator' => $baseDir . '/src/Translation/LegacyTranslator.php',
|
||||
'izi\\prestashop\\Translation\\PaymentTypeTranslator' => $baseDir . '/src/Translation/PaymentTypeTranslator.php',
|
||||
'izi\\prestashop\\Translation\\ServiceNameTranslator' => $baseDir . '/src/Translation/ServiceNameTranslator.php',
|
||||
'izi\\prestashop\\Twig\\Extension\\LegacyTranslationExtension' => $baseDir . '/src/Twig/Extension/LegacyTranslationExtension.php',
|
||||
'izi\\prestashop\\Twig\\Loader\\TemplateNameMappingLoader' => $baseDir . '/src/Twig/Loader/TemplateNameMappingLoader.php',
|
||||
'izi\\prestashop\\Uuid\\Uuid' => $baseDir . '/src/Uuid/Uuid.php',
|
||||
'izi\\prestashop\\Uuid\\UuidV4' => $baseDir . '/src/Uuid/UuidV4.php',
|
||||
'izi\\prestashop\\Validator\\Cart\\Bindable' => $baseDir . '/src/Validator/Cart/Bindable.php',
|
||||
'izi\\prestashop\\Validator\\Cart\\BindableValidator' => $baseDir . '/src/Validator/Cart/BindableValidator.php',
|
||||
'izi\\prestashop\\Validator\\Cart\\HasProducts' => $baseDir . '/src/Validator/Cart/HasProducts.php',
|
||||
'izi\\prestashop\\Validator\\Cart\\HasProductsValidator' => $baseDir . '/src/Validator/Cart/HasProductsValidator.php',
|
||||
'izi\\prestashop\\Validator\\Cart\\HasUnrestrictedProduct' => $baseDir . '/src/Validator/Cart/HasUnrestrictedProduct.php',
|
||||
'izi\\prestashop\\Validator\\Cart\\HasUnrestrictedProductValidator' => $baseDir . '/src/Validator/Cart/HasUnrestrictedProductValidator.php',
|
||||
'izi\\prestashop\\Validator\\Cart\\PaymentInCurrencyAvailable' => $baseDir . '/src/Validator/Cart/PaymentInCurrencyAvailable.php',
|
||||
'izi\\prestashop\\Validator\\Cart\\PaymentInCurrencyAvailableValidator' => $baseDir . '/src/Validator/Cart/PaymentInCurrencyAvailableValidator.php',
|
||||
'izi\\prestashop\\Validator\\Consent\\DescriptionUsesIdPlaceholders' => $baseDir . '/src/Validator/Consent/DescriptionUsesIdPlaceholders.php',
|
||||
'izi\\prestashop\\Validator\\Consent\\DescriptionUsesIdPlaceholdersValidator' => $baseDir . '/src/Validator/Consent/DescriptionUsesIdPlaceholdersValidator.php',
|
||||
'izi\\prestashop\\Validator\\Consent\\UniqueIdentifiers' => $baseDir . '/src/Validator/Consent/UniqueIdentifiers.php',
|
||||
'izi\\prestashop\\Validator\\Consent\\UniqueIdentifiersValidator' => $baseDir . '/src/Validator/Consent/UniqueIdentifiersValidator.php',
|
||||
'izi\\prestashop\\Validator\\ConstraintValidatorFactory' => $baseDir . '/src/Validator/ConstraintValidatorFactory.php',
|
||||
'izi\\prestashop\\Validator\\InPostApiCredentials' => $baseDir . '/src/Validator/InPostApiCredentials.php',
|
||||
'izi\\prestashop\\Validator\\InPostApiCredentialsValidator' => $baseDir . '/src/Validator/InPostApiCredentialsValidator.php',
|
||||
'izi\\prestashop\\Validator\\NotBlankInDefaultLanguage' => $baseDir . '/src/Validator/NotBlankInDefaultLanguage.php',
|
||||
'izi\\prestashop\\Validator\\NotBlankInDefaultLanguageValidator' => $baseDir . '/src/Validator/NotBlankInDefaultLanguageValidator.php',
|
||||
'izi\\prestashop\\Validator\\ProcessableMessageFormat' => $baseDir . '/src/Validator/ProcessableMessageFormat.php',
|
||||
'izi\\prestashop\\Validator\\ProcessableMessageFormatValidator' => $baseDir . '/src/Validator/ProcessableMessageFormatValidator.php',
|
||||
'izi\\prestashop\\Validator\\Product\\NotFromRestrictedManufacturer' => $baseDir . '/src/Validator/Product/NotFromRestrictedManufacturer.php',
|
||||
'izi\\prestashop\\Validator\\Product\\NotFromRestrictedManufacturerValidator' => $baseDir . '/src/Validator/Product/NotFromRestrictedManufacturerValidator.php',
|
||||
'izi\\prestashop\\Validator\\Product\\NotInRestrictedCategory' => $baseDir . '/src/Validator/Product/NotInRestrictedCategory.php',
|
||||
'izi\\prestashop\\Validator\\Product\\NotInRestrictedCategoryValidator' => $baseDir . '/src/Validator/Product/NotInRestrictedCategoryValidator.php',
|
||||
'izi\\prestashop\\Validator\\Product\\NotOfType' => $baseDir . '/src/Validator/Product/NotOfType.php',
|
||||
'izi\\prestashop\\Validator\\Product\\NotOfTypeValidator' => $baseDir . '/src/Validator/Product/NotOfTypeValidator.php',
|
||||
'izi\\prestashop\\Validator\\Product\\NotWithRestrictedAttributes' => $baseDir . '/src/Validator/Product/NotWithRestrictedAttributes.php',
|
||||
'izi\\prestashop\\Validator\\Product\\NotWithRestrictedAttributesValidator' => $baseDir . '/src/Validator/Product/NotWithRestrictedAttributesValidator.php',
|
||||
'izi\\prestashop\\Validator\\Product\\NotWithRestrictedFeatures' => $baseDir . '/src/Validator/Product/NotWithRestrictedFeatures.php',
|
||||
'izi\\prestashop\\Validator\\Product\\NotWithRestrictedFeaturesValidator' => $baseDir . '/src/Validator/Product/NotWithRestrictedFeaturesValidator.php',
|
||||
'izi\\prestashop\\Validator\\Product\\Unrestricted' => $baseDir . '/src/Validator/Product/Unrestricted.php',
|
||||
'izi\\prestashop\\Validator\\Product\\UnrestrictedValidator' => $baseDir . '/src/Validator/Product/UnrestrictedValidator.php',
|
||||
'izi\\prestashop\\Validator\\Sequentially' => $baseDir . '/src/Validator/Sequentially.php',
|
||||
'izi\\prestashop\\Validator\\SequentiallyValidator' => $baseDir . '/src/Validator/SequentiallyValidator.php',
|
||||
'izi\\prestashop\\Validator\\Unique' => $baseDir . '/src/Validator/Unique.php',
|
||||
'izi\\prestashop\\Validator\\UniqueValidator' => $baseDir . '/src/Validator/UniqueValidator.php',
|
||||
'izi\\prestashop\\Validator\\ValidatorFactory' => $baseDir . '/src/Validator/ValidatorFactory.php',
|
||||
'izi\\prestashop\\View\\Asset\\AbstractAssetManager' => $baseDir . '/src/View/Asset/AbstractAssetManager.php',
|
||||
'izi\\prestashop\\View\\Asset\\AdminAssetManager' => $baseDir . '/src/View/Asset/AdminAssetManager.php',
|
||||
'izi\\prestashop\\View\\Asset\\AssetManagerInterface' => $baseDir . '/src/View/Asset/AssetManagerInterface.php',
|
||||
'izi\\prestashop\\View\\Asset\\FrontAssetManager' => $baseDir . '/src/View/Asset/FrontAssetManager.php',
|
||||
'izi\\prestashop\\View\\Asset\\Provider\\Admin\\CartRulesAssetsProvider' => $baseDir . '/src/View/Asset/Provider/Admin/CartRulesAssetsProvider.php',
|
||||
'izi\\prestashop\\View\\Asset\\Provider\\AssetsProviderInterface' => $baseDir . '/src/View/Asset/Provider/AssetsProviderInterface.php',
|
||||
'izi\\prestashop\\View\\Asset\\Provider\\DTO\\Assets' => $baseDir . '/src/View/Asset/Provider/DTO/Assets.php',
|
||||
'izi\\prestashop\\View\\Asset\\Provider\\Front\\CommonAssetsProvider' => $baseDir . '/src/View/Asset/Provider/Front/CommonAssetsProvider.php',
|
||||
'izi\\prestashop\\View\\Asset\\Provider\\Front\\ProductPageAssetsProvider' => $baseDir . '/src/View/Asset/Provider/Front/ProductPageAssetsProvider.php',
|
||||
'izi\\prestashop\\View\\Asset\\Provider\\Front\\WidgetConfigurationProvider' => $baseDir . '/src/View/Asset/Provider/Front/WidgetConfigurationProvider.php',
|
||||
'izi\\prestashop\\View\\Asset\\VersionStrategy\\JsonManifestVersionStrategy' => $baseDir . '/src/View/Asset/VersionStrategy/JsonManifestVersionStrategy.php',
|
||||
'izi\\prestashop\\View\\Templating\\RendererInterface' => $baseDir . '/src/View/Templating/RendererInterface.php',
|
||||
'izi\\prestashop\\View\\Templating\\SmartyRenderer' => $baseDir . '/src/View/Templating/SmartyRenderer.php',
|
||||
'izi\\prestashop\\View\\Widget\\FrameStyle' => $baseDir . '/src/View/Widget/FrameStyle.php',
|
||||
'izi\\prestashop\\View\\Widget\\Size' => $baseDir . '/src/View/Widget/Size.php',
|
||||
'izi\\prestashop\\View\\Widget\\Variant' => $baseDir . '/src/View/Widget/Variant.php',
|
||||
'izi\\prestashop\\View\\Widget\\WidgetConfiguration' => $baseDir . '/src/View/Widget/WidgetConfiguration.php',
|
||||
'izi\\prestashop\\View\\Widget\\WidgetConfigurationInterface' => $baseDir . '/src/View/Widget/WidgetConfigurationInterface.php',
|
||||
'izi\\prestashop\\View\\Widget\\WidgetConfigurationResolver' => $baseDir . '/src/View/Widget/WidgetConfigurationResolver.php',
|
||||
'izi\\prestashop\\View\\Widget\\WidgetConfigurationResolverInterface' => $baseDir . '/src/View/Widget/WidgetConfigurationResolverInterface.php',
|
||||
'izi\\prestashop\\rest\\order\\Create' => $baseDir . '/src/rest/order/Create.php',
|
||||
);
|
||||
11
modules/inpostizi/vendor/composer/autoload_files.php
vendored
Normal file
11
modules/inpostizi/vendor/composer/autoload_files.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
// autoload_files.php @generated by Composer
|
||||
|
||||
$vendorDir = dirname(__DIR__);
|
||||
$baseDir = dirname($vendorDir);
|
||||
|
||||
return array(
|
||||
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => $vendorDir . '/symfony/polyfill-mbstring/bootstrap.php',
|
||||
'a4a119a56e50fbb293281d9a48007e0e' => $vendorDir . '/symfony/polyfill-php80/bootstrap.php',
|
||||
);
|
||||
9
modules/inpostizi/vendor/composer/autoload_namespaces.php
vendored
Normal file
9
modules/inpostizi/vendor/composer/autoload_namespaces.php
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
// autoload_namespaces.php @generated by Composer
|
||||
|
||||
$vendorDir = dirname(__DIR__);
|
||||
$baseDir = dirname($vendorDir);
|
||||
|
||||
return array(
|
||||
);
|
||||
22
modules/inpostizi/vendor/composer/autoload_psr4.php
vendored
Normal file
22
modules/inpostizi/vendor/composer/autoload_psr4.php
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
// autoload_psr4.php @generated by Composer
|
||||
|
||||
$vendorDir = dirname(__DIR__);
|
||||
$baseDir = dirname($vendorDir);
|
||||
|
||||
return array(
|
||||
'izi\\prestashop\\' => array($baseDir . '/src'),
|
||||
'ZipStream\\' => array($vendorDir . '/maennchen/zipstream-php/src'),
|
||||
'Symfony\\Polyfill\\Php80\\' => array($vendorDir . '/symfony/polyfill-php80'),
|
||||
'Symfony\\Polyfill\\Mbstring\\' => array($vendorDir . '/symfony/polyfill-mbstring'),
|
||||
'Symfony\\Contracts\\Service\\' => array($vendorDir . '/symfony/service-contracts'),
|
||||
'Psr\\SimpleCache\\' => array($vendorDir . '/psr/simple-cache/src'),
|
||||
'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-message/src', $vendorDir . '/psr/http-factory/src'),
|
||||
'Psr\\Http\\Client\\' => array($vendorDir . '/psr/http-client/src'),
|
||||
'Psr\\Container\\' => array($vendorDir . '/psr/container/src'),
|
||||
'Psr\\Clock\\' => array($vendorDir . '/psr/clock/src'),
|
||||
'Nyholm\\Psr7\\' => array($vendorDir . '/nyholm/psr7/src'),
|
||||
'MyCLabs\\Enum\\' => array($vendorDir . '/myclabs/php-enum/src'),
|
||||
'Http\\Message\\' => array($vendorDir . '/php-http/message-factory/src'),
|
||||
);
|
||||
48
modules/inpostizi/vendor/composer/autoload_real.php
vendored
Normal file
48
modules/inpostizi/vendor/composer/autoload_real.php
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInit3582376b22b8ed8077843f108d3dc00a
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
public static function loadClassLoader($class)
|
||||
{
|
||||
if ('Composer\Autoload\ClassLoader' === $class) {
|
||||
require __DIR__ . '/ClassLoader.php';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Composer\Autoload\ClassLoader
|
||||
*/
|
||||
public static function getLoader()
|
||||
{
|
||||
if (null !== self::$loader) {
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit3582376b22b8ed8077843f108d3dc00a', 'loadClassLoader'), true, false);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit3582376b22b8ed8077843f108d3dc00a', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit3582376b22b8ed8077843f108d3dc00a::getInitializer($loader));
|
||||
|
||||
$loader->register(false);
|
||||
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInit3582376b22b8ed8077843f108d3dc00a::$files;
|
||||
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||
|
||||
require $file;
|
||||
}
|
||||
}, null, null);
|
||||
foreach ($filesToLoad as $fileIdentifier => $file) {
|
||||
$requireFile($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
}
|
||||
}
|
||||
1007
modules/inpostizi/vendor/composer/autoload_static.php
vendored
Normal file
1007
modules/inpostizi/vendor/composer/autoload_static.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
864
modules/inpostizi/vendor/composer/installed.json
vendored
Normal file
864
modules/inpostizi/vendor/composer/installed.json
vendored
Normal file
@@ -0,0 +1,864 @@
|
||||
{
|
||||
"packages": [
|
||||
{
|
||||
"name": "maennchen/zipstream-php",
|
||||
"version": "2.1.0",
|
||||
"version_normalized": "2.1.0.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/maennchen/ZipStream-PHP.git",
|
||||
"reference": "c4c5803cc1f93df3d2448478ef79394a5981cc58"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/maennchen/ZipStream-PHP/zipball/c4c5803cc1f93df3d2448478ef79394a5981cc58",
|
||||
"reference": "c4c5803cc1f93df3d2448478ef79394a5981cc58",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"myclabs/php-enum": "^1.5",
|
||||
"php": ">= 7.1",
|
||||
"psr/http-message": "^1.0",
|
||||
"symfony/polyfill-mbstring": "^1.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"ext-zip": "*",
|
||||
"guzzlehttp/guzzle": ">= 6.3",
|
||||
"mikey179/vfsstream": "^1.6",
|
||||
"phpunit/phpunit": ">= 7.5"
|
||||
},
|
||||
"time": "2020-05-30T13:11:16+00:00",
|
||||
"type": "library",
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"ZipStream\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Paul Duncan",
|
||||
"email": "pabs@pablotron.org"
|
||||
},
|
||||
{
|
||||
"name": "Jonatan Männchen",
|
||||
"email": "jonatan@maennchen.ch"
|
||||
},
|
||||
{
|
||||
"name": "Jesse Donat",
|
||||
"email": "donatj@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "András Kolesár",
|
||||
"email": "kolesar@kolesar.hu"
|
||||
}
|
||||
],
|
||||
"description": "ZipStream is a library for dynamically streaming dynamic zip files from PHP without writing to the disk at all on the server.",
|
||||
"keywords": [
|
||||
"stream",
|
||||
"zip"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/maennchen/ZipStream-PHP/issues",
|
||||
"source": "https://github.com/maennchen/ZipStream-PHP/tree/2.1.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://github.com/maennchen",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://opencollective.com/zipstream",
|
||||
"type": "open_collective"
|
||||
}
|
||||
],
|
||||
"install-path": "../maennchen/zipstream-php"
|
||||
},
|
||||
{
|
||||
"name": "myclabs/php-enum",
|
||||
"version": "1.7.7",
|
||||
"version_normalized": "1.7.7.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/myclabs/php-enum.git",
|
||||
"reference": "d178027d1e679832db9f38248fcc7200647dc2b7"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/myclabs/php-enum/zipball/d178027d1e679832db9f38248fcc7200647dc2b7",
|
||||
"reference": "d178027d1e679832db9f38248fcc7200647dc2b7",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-json": "*",
|
||||
"php": ">=7.1"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^7",
|
||||
"squizlabs/php_codesniffer": "1.*",
|
||||
"vimeo/psalm": "^3.8"
|
||||
},
|
||||
"time": "2020-11-14T18:14:52+00:00",
|
||||
"type": "library",
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"MyCLabs\\Enum\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "PHP Enum contributors",
|
||||
"homepage": "https://github.com/myclabs/php-enum/graphs/contributors"
|
||||
}
|
||||
],
|
||||
"description": "PHP Enum implementation",
|
||||
"homepage": "http://github.com/myclabs/php-enum",
|
||||
"keywords": [
|
||||
"enum"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/myclabs/php-enum/issues",
|
||||
"source": "https://github.com/myclabs/php-enum/tree/1.7.7"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://github.com/mnapoli",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://tidelift.com/funding/github/packagist/myclabs/php-enum",
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"install-path": "../myclabs/php-enum"
|
||||
},
|
||||
{
|
||||
"name": "nyholm/psr7",
|
||||
"version": "1.6.1",
|
||||
"version_normalized": "1.6.1.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/Nyholm/psr7.git",
|
||||
"reference": "e874c8c4286a1e010fb4f385f3a55ac56a05cc93"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/Nyholm/psr7/zipball/e874c8c4286a1e010fb4f385f3a55ac56a05cc93",
|
||||
"reference": "e874c8c4286a1e010fb4f385f3a55ac56a05cc93",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.1",
|
||||
"php-http/message-factory": "^1.0",
|
||||
"psr/http-factory": "^1.0",
|
||||
"psr/http-message": "^1.0"
|
||||
},
|
||||
"provide": {
|
||||
"php-http/message-factory-implementation": "1.0",
|
||||
"psr/http-factory-implementation": "1.0",
|
||||
"psr/http-message-implementation": "1.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"http-interop/http-factory-tests": "^0.9",
|
||||
"php-http/psr7-integration-tests": "^1.0",
|
||||
"phpunit/phpunit": "^7.5 || 8.5 || 9.4",
|
||||
"symfony/error-handler": "^4.4"
|
||||
},
|
||||
"time": "2023-04-17T16:03:48+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.6-dev"
|
||||
}
|
||||
},
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Nyholm\\Psr7\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Tobias Nyholm",
|
||||
"email": "tobias.nyholm@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Martijn van der Ven",
|
||||
"email": "martijn@vanderven.se"
|
||||
}
|
||||
],
|
||||
"description": "A fast PHP7 implementation of PSR-7",
|
||||
"homepage": "https://tnyholm.se",
|
||||
"keywords": [
|
||||
"psr-17",
|
||||
"psr-7"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/Nyholm/psr7/issues",
|
||||
"source": "https://github.com/Nyholm/psr7/tree/1.6.1"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://github.com/Zegnat",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://github.com/nyholm",
|
||||
"type": "github"
|
||||
}
|
||||
],
|
||||
"install-path": "../nyholm/psr7"
|
||||
},
|
||||
{
|
||||
"name": "php-http/message-factory",
|
||||
"version": "1.1.0",
|
||||
"version_normalized": "1.1.0.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/php-http/message-factory.git",
|
||||
"reference": "4d8778e1c7d405cbb471574821c1ff5b68cc8f57"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/php-http/message-factory/zipball/4d8778e1c7d405cbb471574821c1ff5b68cc8f57",
|
||||
"reference": "4d8778e1c7d405cbb471574821c1ff5b68cc8f57",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.4",
|
||||
"psr/http-message": "^1.0 || ^2.0"
|
||||
},
|
||||
"time": "2023-04-14T14:16:17+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.x-dev"
|
||||
}
|
||||
},
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Http\\Message\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Márk Sági-Kazár",
|
||||
"email": "mark.sagikazar@gmail.com"
|
||||
}
|
||||
],
|
||||
"description": "Factory interfaces for PSR-7 HTTP Message",
|
||||
"homepage": "http://php-http.org",
|
||||
"keywords": [
|
||||
"factory",
|
||||
"http",
|
||||
"message",
|
||||
"stream",
|
||||
"uri"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/php-http/message-factory/issues",
|
||||
"source": "https://github.com/php-http/message-factory/tree/1.1.0"
|
||||
},
|
||||
"abandoned": "psr/http-factory",
|
||||
"install-path": "../php-http/message-factory"
|
||||
},
|
||||
{
|
||||
"name": "psr/clock",
|
||||
"version": "1.0.0",
|
||||
"version_normalized": "1.0.0.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/php-fig/clock.git",
|
||||
"reference": "e41a24703d4560fd0acb709162f73b8adfc3aa0d"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/php-fig/clock/zipball/e41a24703d4560fd0acb709162f73b8adfc3aa0d",
|
||||
"reference": "e41a24703d4560fd0acb709162f73b8adfc3aa0d",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.0 || ^8.0"
|
||||
},
|
||||
"time": "2022-11-25T14:36:26+00:00",
|
||||
"type": "library",
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Psr\\Clock\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "PHP-FIG",
|
||||
"homepage": "https://www.php-fig.org/"
|
||||
}
|
||||
],
|
||||
"description": "Common interface for reading the clock.",
|
||||
"homepage": "https://github.com/php-fig/clock",
|
||||
"keywords": [
|
||||
"clock",
|
||||
"now",
|
||||
"psr",
|
||||
"psr-20",
|
||||
"time"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/php-fig/clock/issues",
|
||||
"source": "https://github.com/php-fig/clock/tree/1.0.0"
|
||||
},
|
||||
"install-path": "../psr/clock"
|
||||
},
|
||||
{
|
||||
"name": "psr/container",
|
||||
"version": "1.0.0",
|
||||
"version_normalized": "1.0.0.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/php-fig/container.git",
|
||||
"reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/php-fig/container/zipball/b7ce3b176482dbbc1245ebf52b181af44c2cf55f",
|
||||
"reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.3.0"
|
||||
},
|
||||
"time": "2017-02-14T16:28:37+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.0.x-dev"
|
||||
}
|
||||
},
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Psr\\Container\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "PHP-FIG",
|
||||
"homepage": "http://www.php-fig.org/"
|
||||
}
|
||||
],
|
||||
"description": "Common Container Interface (PHP FIG PSR-11)",
|
||||
"homepage": "https://github.com/php-fig/container",
|
||||
"keywords": [
|
||||
"PSR-11",
|
||||
"container",
|
||||
"container-interface",
|
||||
"container-interop",
|
||||
"psr"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/php-fig/container/issues",
|
||||
"source": "https://github.com/php-fig/container/tree/master"
|
||||
},
|
||||
"install-path": "../psr/container"
|
||||
},
|
||||
{
|
||||
"name": "psr/http-client",
|
||||
"version": "1.0.3",
|
||||
"version_normalized": "1.0.3.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/php-fig/http-client.git",
|
||||
"reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90",
|
||||
"reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.0 || ^8.0",
|
||||
"psr/http-message": "^1.0 || ^2.0"
|
||||
},
|
||||
"time": "2023-09-23T14:17:50+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.0.x-dev"
|
||||
}
|
||||
},
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Psr\\Http\\Client\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "PHP-FIG",
|
||||
"homepage": "https://www.php-fig.org/"
|
||||
}
|
||||
],
|
||||
"description": "Common interface for HTTP clients",
|
||||
"homepage": "https://github.com/php-fig/http-client",
|
||||
"keywords": [
|
||||
"http",
|
||||
"http-client",
|
||||
"psr",
|
||||
"psr-18"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/php-fig/http-client"
|
||||
},
|
||||
"install-path": "../psr/http-client"
|
||||
},
|
||||
{
|
||||
"name": "psr/http-factory",
|
||||
"version": "1.0.2",
|
||||
"version_normalized": "1.0.2.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/php-fig/http-factory.git",
|
||||
"reference": "e616d01114759c4c489f93b099585439f795fe35"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/php-fig/http-factory/zipball/e616d01114759c4c489f93b099585439f795fe35",
|
||||
"reference": "e616d01114759c4c489f93b099585439f795fe35",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.0.0",
|
||||
"psr/http-message": "^1.0 || ^2.0"
|
||||
},
|
||||
"time": "2023-04-10T20:10:41+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.0.x-dev"
|
||||
}
|
||||
},
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Psr\\Http\\Message\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "PHP-FIG",
|
||||
"homepage": "https://www.php-fig.org/"
|
||||
}
|
||||
],
|
||||
"description": "Common interfaces for PSR-7 HTTP message factories",
|
||||
"keywords": [
|
||||
"factory",
|
||||
"http",
|
||||
"message",
|
||||
"psr",
|
||||
"psr-17",
|
||||
"psr-7",
|
||||
"request",
|
||||
"response"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/php-fig/http-factory/tree/1.0.2"
|
||||
},
|
||||
"install-path": "../psr/http-factory"
|
||||
},
|
||||
{
|
||||
"name": "psr/http-message",
|
||||
"version": "1.0.1",
|
||||
"version_normalized": "1.0.1.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/php-fig/http-message.git",
|
||||
"reference": "f6561bf28d520154e4b0ec72be95418abe6d9363"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363",
|
||||
"reference": "f6561bf28d520154e4b0ec72be95418abe6d9363",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.3.0"
|
||||
},
|
||||
"time": "2016-08-06T14:39:51+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.0.x-dev"
|
||||
}
|
||||
},
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Psr\\Http\\Message\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "PHP-FIG",
|
||||
"homepage": "http://www.php-fig.org/"
|
||||
}
|
||||
],
|
||||
"description": "Common interface for HTTP messages",
|
||||
"homepage": "https://github.com/php-fig/http-message",
|
||||
"keywords": [
|
||||
"http",
|
||||
"http-message",
|
||||
"psr",
|
||||
"psr-7",
|
||||
"request",
|
||||
"response"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/php-fig/http-message/tree/master"
|
||||
},
|
||||
"install-path": "../psr/http-message"
|
||||
},
|
||||
{
|
||||
"name": "psr/simple-cache",
|
||||
"version": "1.0.1",
|
||||
"version_normalized": "1.0.1.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/php-fig/simple-cache.git",
|
||||
"reference": "408d5eafb83c57f6365a3ca330ff23aa4a5fa39b"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/php-fig/simple-cache/zipball/408d5eafb83c57f6365a3ca330ff23aa4a5fa39b",
|
||||
"reference": "408d5eafb83c57f6365a3ca330ff23aa4a5fa39b",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.3.0"
|
||||
},
|
||||
"time": "2017-10-23T01:57:42+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.0.x-dev"
|
||||
}
|
||||
},
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Psr\\SimpleCache\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "PHP-FIG",
|
||||
"homepage": "http://www.php-fig.org/"
|
||||
}
|
||||
],
|
||||
"description": "Common interfaces for simple caching",
|
||||
"keywords": [
|
||||
"cache",
|
||||
"caching",
|
||||
"psr",
|
||||
"psr-16",
|
||||
"simple-cache"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/php-fig/simple-cache/tree/master"
|
||||
},
|
||||
"install-path": "../psr/simple-cache"
|
||||
},
|
||||
{
|
||||
"name": "symfony/polyfill-mbstring",
|
||||
"version": "v1.29.0",
|
||||
"version_normalized": "1.29.0.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/polyfill-mbstring.git",
|
||||
"reference": "9773676c8a1bb1f8d4340a62efe641cf76eda7ec"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9773676c8a1bb1f8d4340a62efe641cf76eda7ec",
|
||||
"reference": "9773676c8a1bb1f8d4340a62efe641cf76eda7ec",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.1"
|
||||
},
|
||||
"provide": {
|
||||
"ext-mbstring": "*"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-mbstring": "For best performance"
|
||||
},
|
||||
"time": "2024-01-29T20:11:03+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"thanks": {
|
||||
"name": "symfony/polyfill",
|
||||
"url": "https://github.com/symfony/polyfill"
|
||||
}
|
||||
},
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
"files": [
|
||||
"bootstrap.php"
|
||||
],
|
||||
"psr-4": {
|
||||
"Symfony\\Polyfill\\Mbstring\\": ""
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Nicolas Grekas",
|
||||
"email": "p@tchwork.com"
|
||||
},
|
||||
{
|
||||
"name": "Symfony Community",
|
||||
"homepage": "https://symfony.com/contributors"
|
||||
}
|
||||
],
|
||||
"description": "Symfony polyfill for the Mbstring extension",
|
||||
"homepage": "https://symfony.com",
|
||||
"keywords": [
|
||||
"compatibility",
|
||||
"mbstring",
|
||||
"polyfill",
|
||||
"portable",
|
||||
"shim"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/polyfill-mbstring/tree/v1.29.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://symfony.com/sponsor",
|
||||
"type": "custom"
|
||||
},
|
||||
{
|
||||
"url": "https://github.com/fabpot",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"install-path": "../symfony/polyfill-mbstring"
|
||||
},
|
||||
{
|
||||
"name": "symfony/polyfill-php80",
|
||||
"version": "v1.29.0",
|
||||
"version_normalized": "1.29.0.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/polyfill-php80.git",
|
||||
"reference": "87b68208d5c1188808dd7839ee1e6c8ec3b02f1b"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/87b68208d5c1188808dd7839ee1e6c8ec3b02f1b",
|
||||
"reference": "87b68208d5c1188808dd7839ee1e6c8ec3b02f1b",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.1"
|
||||
},
|
||||
"time": "2024-01-29T20:11:03+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"thanks": {
|
||||
"name": "symfony/polyfill",
|
||||
"url": "https://github.com/symfony/polyfill"
|
||||
}
|
||||
},
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
"files": [
|
||||
"bootstrap.php"
|
||||
],
|
||||
"psr-4": {
|
||||
"Symfony\\Polyfill\\Php80\\": ""
|
||||
},
|
||||
"classmap": [
|
||||
"Resources/stubs"
|
||||
]
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Ion Bazan",
|
||||
"email": "ion.bazan@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Nicolas Grekas",
|
||||
"email": "p@tchwork.com"
|
||||
},
|
||||
{
|
||||
"name": "Symfony Community",
|
||||
"homepage": "https://symfony.com/contributors"
|
||||
}
|
||||
],
|
||||
"description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions",
|
||||
"homepage": "https://symfony.com",
|
||||
"keywords": [
|
||||
"compatibility",
|
||||
"polyfill",
|
||||
"portable",
|
||||
"shim"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/polyfill-php80/tree/v1.29.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://symfony.com/sponsor",
|
||||
"type": "custom"
|
||||
},
|
||||
{
|
||||
"url": "https://github.com/fabpot",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"install-path": "../symfony/polyfill-php80"
|
||||
},
|
||||
{
|
||||
"name": "symfony/service-contracts",
|
||||
"version": "v1.10.0",
|
||||
"version_normalized": "1.10.0.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/service-contracts.git",
|
||||
"reference": "afa00c500c2d6aea6e3b2f4862355f507bc5ebb4"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/service-contracts/zipball/afa00c500c2d6aea6e3b2f4862355f507bc5ebb4",
|
||||
"reference": "afa00c500c2d6aea6e3b2f4862355f507bc5ebb4",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.1.3",
|
||||
"psr/container": "^1.0"
|
||||
},
|
||||
"suggest": {
|
||||
"symfony/service-implementation": ""
|
||||
},
|
||||
"time": "2022-05-27T14:01:05+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-main": "1.1-dev"
|
||||
},
|
||||
"thanks": {
|
||||
"name": "symfony/contracts",
|
||||
"url": "https://github.com/symfony/contracts"
|
||||
}
|
||||
},
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Symfony\\Contracts\\Service\\": ""
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Nicolas Grekas",
|
||||
"email": "p@tchwork.com"
|
||||
},
|
||||
{
|
||||
"name": "Symfony Community",
|
||||
"homepage": "https://symfony.com/contributors"
|
||||
}
|
||||
],
|
||||
"description": "Generic abstractions related to writing services",
|
||||
"homepage": "https://symfony.com",
|
||||
"keywords": [
|
||||
"abstractions",
|
||||
"contracts",
|
||||
"decoupling",
|
||||
"interfaces",
|
||||
"interoperability",
|
||||
"standards"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/service-contracts/tree/v1.10.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://symfony.com/sponsor",
|
||||
"type": "custom"
|
||||
},
|
||||
{
|
||||
"url": "https://github.com/fabpot",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"install-path": "../symfony/service-contracts"
|
||||
}
|
||||
],
|
||||
"dev": false,
|
||||
"dev-package-names": []
|
||||
}
|
||||
158
modules/inpostizi/vendor/composer/installed.php
vendored
Normal file
158
modules/inpostizi/vendor/composer/installed.php
vendored
Normal file
@@ -0,0 +1,158 @@
|
||||
<?php return array(
|
||||
'root' => array(
|
||||
'name' => 'inpost-izi-prestashop/inpostizi',
|
||||
'pretty_version' => 'dev-master',
|
||||
'version' => 'dev-master',
|
||||
'reference' => '14efe961af288b0e825052bdcc93d29781661b8f',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../../',
|
||||
'aliases' => array(),
|
||||
'dev' => false,
|
||||
),
|
||||
'versions' => array(
|
||||
'inpost-izi-prestashop/inpostizi' => array(
|
||||
'pretty_version' => 'dev-master',
|
||||
'version' => 'dev-master',
|
||||
'reference' => '14efe961af288b0e825052bdcc93d29781661b8f',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../../',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'maennchen/zipstream-php' => array(
|
||||
'pretty_version' => '2.1.0',
|
||||
'version' => '2.1.0.0',
|
||||
'reference' => 'c4c5803cc1f93df3d2448478ef79394a5981cc58',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../maennchen/zipstream-php',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'myclabs/php-enum' => array(
|
||||
'pretty_version' => '1.7.7',
|
||||
'version' => '1.7.7.0',
|
||||
'reference' => 'd178027d1e679832db9f38248fcc7200647dc2b7',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../myclabs/php-enum',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'nyholm/psr7' => array(
|
||||
'pretty_version' => '1.6.1',
|
||||
'version' => '1.6.1.0',
|
||||
'reference' => 'e874c8c4286a1e010fb4f385f3a55ac56a05cc93',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../nyholm/psr7',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'php-http/message-factory' => array(
|
||||
'pretty_version' => '1.1.0',
|
||||
'version' => '1.1.0.0',
|
||||
'reference' => '4d8778e1c7d405cbb471574821c1ff5b68cc8f57',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../php-http/message-factory',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'php-http/message-factory-implementation' => array(
|
||||
'dev_requirement' => false,
|
||||
'provided' => array(
|
||||
0 => '1.0',
|
||||
),
|
||||
),
|
||||
'psr/clock' => array(
|
||||
'pretty_version' => '1.0.0',
|
||||
'version' => '1.0.0.0',
|
||||
'reference' => 'e41a24703d4560fd0acb709162f73b8adfc3aa0d',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../psr/clock',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'psr/container' => array(
|
||||
'pretty_version' => '1.0.0',
|
||||
'version' => '1.0.0.0',
|
||||
'reference' => 'b7ce3b176482dbbc1245ebf52b181af44c2cf55f',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../psr/container',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'psr/http-client' => array(
|
||||
'pretty_version' => '1.0.3',
|
||||
'version' => '1.0.3.0',
|
||||
'reference' => 'bb5906edc1c324c9a05aa0873d40117941e5fa90',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../psr/http-client',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'psr/http-factory' => array(
|
||||
'pretty_version' => '1.0.2',
|
||||
'version' => '1.0.2.0',
|
||||
'reference' => 'e616d01114759c4c489f93b099585439f795fe35',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../psr/http-factory',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'psr/http-factory-implementation' => array(
|
||||
'dev_requirement' => false,
|
||||
'provided' => array(
|
||||
0 => '1.0',
|
||||
),
|
||||
),
|
||||
'psr/http-message' => array(
|
||||
'pretty_version' => '1.0.1',
|
||||
'version' => '1.0.1.0',
|
||||
'reference' => 'f6561bf28d520154e4b0ec72be95418abe6d9363',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../psr/http-message',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'psr/http-message-implementation' => array(
|
||||
'dev_requirement' => false,
|
||||
'provided' => array(
|
||||
0 => '1.0',
|
||||
),
|
||||
),
|
||||
'psr/simple-cache' => array(
|
||||
'pretty_version' => '1.0.1',
|
||||
'version' => '1.0.1.0',
|
||||
'reference' => '408d5eafb83c57f6365a3ca330ff23aa4a5fa39b',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../psr/simple-cache',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'symfony/polyfill-mbstring' => array(
|
||||
'pretty_version' => 'v1.29.0',
|
||||
'version' => '1.29.0.0',
|
||||
'reference' => '9773676c8a1bb1f8d4340a62efe641cf76eda7ec',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../symfony/polyfill-mbstring',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'symfony/polyfill-php80' => array(
|
||||
'pretty_version' => 'v1.29.0',
|
||||
'version' => '1.29.0.0',
|
||||
'reference' => '87b68208d5c1188808dd7839ee1e6c8ec3b02f1b',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../symfony/polyfill-php80',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'symfony/service-contracts' => array(
|
||||
'pretty_version' => 'v1.10.0',
|
||||
'version' => '1.10.0.0',
|
||||
'reference' => 'afa00c500c2d6aea6e3b2f4862355f507bc5ebb4',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../symfony/service-contracts',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
),
|
||||
);
|
||||
1
modules/inpostizi/vendor/maennchen/zipstream-php/.github/FUNDING.yml
vendored
Normal file
1
modules/inpostizi/vendor/maennchen/zipstream-php/.github/FUNDING.yml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
open_collective: zipstream
|
||||
12
modules/inpostizi/vendor/maennchen/zipstream-php/.github/ISSUE_TEMPLATE.md
vendored
Normal file
12
modules/inpostizi/vendor/maennchen/zipstream-php/.github/ISSUE_TEMPLATE.md
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
# Description of the problem
|
||||
|
||||
Please be very descriptive and include as much details as possible.
|
||||
|
||||
# Example code
|
||||
|
||||
# Informations
|
||||
|
||||
* ZipStream-PHP version:
|
||||
* PHP version:
|
||||
|
||||
Please include any supplemental information you deem relevant to this issue.
|
||||
6
modules/inpostizi/vendor/maennchen/zipstream-php/.gitignore
vendored
Normal file
6
modules/inpostizi/vendor/maennchen/zipstream-php/.gitignore
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
clover.xml
|
||||
composer.lock
|
||||
coverage.clover
|
||||
.idea
|
||||
phpunit.xml
|
||||
vendor
|
||||
12
modules/inpostizi/vendor/maennchen/zipstream-php/.travis.yml
vendored
Normal file
12
modules/inpostizi/vendor/maennchen/zipstream-php/.travis.yml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
language: php
|
||||
dist: trusty
|
||||
sudo: false
|
||||
php:
|
||||
- 7.1
|
||||
- 7.2
|
||||
- 7.3
|
||||
install: composer install
|
||||
script: ./vendor/bin/phpunit --coverage-clover=coverage.clover
|
||||
after_script:
|
||||
- wget https://scrutinizer-ci.com/ocular.phar
|
||||
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
|
||||
51
modules/inpostizi/vendor/maennchen/zipstream-php/CHANGELOG.md
vendored
Normal file
51
modules/inpostizi/vendor/maennchen/zipstream-php/CHANGELOG.md
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
# CHANGELOG for ZipStream-PHP
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
||||
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [2.1.0] - 2020-06-01
|
||||
### Changed
|
||||
- Don't execute ob_flush() when output buffering is not enabled (#152)
|
||||
- Fix inconsistent return type on 32-bit systems (#149) Fix #144
|
||||
- Use mbstring polyfill (#151)
|
||||
- Promote 7zip usage over unzip to avoid UTF-8 issues (#147)
|
||||
|
||||
## [2.0.0] - 2020-02-22
|
||||
### Breaking change
|
||||
- Only the self opened streams will be closed (#139)
|
||||
If you were relying on ZipStream to close streams that the library didn't open,
|
||||
you'll need to close them yourself now.
|
||||
|
||||
### Changed
|
||||
- Minor change to data descriptor (#136)
|
||||
|
||||
## [1.2.0] - 2019-07-11
|
||||
|
||||
### Added
|
||||
- Option to flush output buffer after every write (#122)
|
||||
|
||||
## [1.1.0] - 2019-04-30
|
||||
|
||||
### Fixed
|
||||
- Honor last-modified timestamps set via `ZipStream\Option\File::setTime()` (#106)
|
||||
- Documentation regarding output of HTTP headers
|
||||
- Test warnings with PHPUnit (#109)
|
||||
|
||||
### Added
|
||||
- Test for FileNotReadableException (#114)
|
||||
- Size attribute to File options (#113)
|
||||
- Tests on PHP 7.3 (#108)
|
||||
|
||||
## [1.0.0] - 2019-04-17
|
||||
|
||||
### Breaking changes
|
||||
- Mininum PHP version is now 7.1
|
||||
- Options are now passed to the ZipStream object via the Option\Archive object. See the wiki for available options and code examples
|
||||
|
||||
### Added
|
||||
- Add large file support with Zip64 headers
|
||||
|
||||
### Changed
|
||||
- Major refactoring and code cleanup
|
||||
25
modules/inpostizi/vendor/maennchen/zipstream-php/CONTRIBUTING.md
vendored
Normal file
25
modules/inpostizi/vendor/maennchen/zipstream-php/CONTRIBUTING.md
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
# ZipStream Readme for Contributors
|
||||
## Code styling
|
||||
### Indention
|
||||
For spaces are used to indent code. The convention is [K&R](http://en.wikipedia.org/wiki/Indent_style#K&R)
|
||||
|
||||
### Comments
|
||||
Double Slashes are used for an one line comment.
|
||||
|
||||
Classes, Variables, Methods etc:
|
||||
|
||||
```php
|
||||
/**
|
||||
* My comment
|
||||
*
|
||||
* @myanotation like @param etc.
|
||||
*/
|
||||
```
|
||||
|
||||
## Pull requests
|
||||
Feel free to submit pull requests.
|
||||
|
||||
## Testing
|
||||
For every new feature please write a new PHPUnit test.
|
||||
|
||||
Before every commit execute `./vendor/bin/phpunit` to check if your changes wrecked something:
|
||||
24
modules/inpostizi/vendor/maennchen/zipstream-php/LICENSE
vendored
Normal file
24
modules/inpostizi/vendor/maennchen/zipstream-php/LICENSE
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
MIT License
|
||||
|
||||
Copyright (C) 2007-2009 Paul Duncan <pabs@pablotron.org>
|
||||
Copyright (C) 2014 Jonatan Männchen <jonatan@maennchen.ch>
|
||||
Copyright (C) 2014 Jesse G. Donat <donatj@gmail.com>
|
||||
Copyright (C) 2018 Nicolas CARPi <nicolas.carpi@curie.fr>
|
||||
|
||||
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.
|
||||
123
modules/inpostizi/vendor/maennchen/zipstream-php/README.md
vendored
Normal file
123
modules/inpostizi/vendor/maennchen/zipstream-php/README.md
vendored
Normal file
@@ -0,0 +1,123 @@
|
||||
# ZipStream-PHP
|
||||
|
||||
[](https://travis-ci.org/maennchen/ZipStream-PHP)
|
||||
[](https://scrutinizer-ci.com/g/maennchen/ZipStream-PHP/)
|
||||
[](https://scrutinizer-ci.com/g/maennchen/ZipStream-PHP/)
|
||||
[](https://packagist.org/packages/maennchen/zipstream-php)
|
||||
[](https://packagist.org/packages/maennchen/zipstream-php)
|
||||
[](https://opencollective.com/zipstream) [](LICENSE)
|
||||
|
||||
## Overview
|
||||
|
||||
A fast and simple streaming zip file downloader for PHP. Using this library will save you from having to write the Zip to disk. You can directly send it to the user, which is much faster. It can work with S3 buckets or any PSR7 Stream.
|
||||
|
||||
Please see the [LICENSE](LICENSE) file for licensing and warranty information.
|
||||
|
||||
## Installation
|
||||
|
||||
Simply add a dependency on maennchen/zipstream-php to your project's composer.json file if you use Composer to manage the dependencies of your project. Use following command to add the package to your project's dependencies:
|
||||
|
||||
```bash
|
||||
composer require maennchen/zipstream-php
|
||||
```
|
||||
|
||||
## Usage and options
|
||||
|
||||
Here's a simple example:
|
||||
|
||||
```php
|
||||
// Autoload the dependencies
|
||||
require 'vendor/autoload.php';
|
||||
|
||||
// enable output of HTTP headers
|
||||
$options = new ZipStream\Option\Archive();
|
||||
$options->setSendHttpHeaders(true);
|
||||
|
||||
// create a new zipstream object
|
||||
$zip = new ZipStream\ZipStream('example.zip', $options);
|
||||
|
||||
// create a file named 'hello.txt'
|
||||
$zip->addFile('hello.txt', 'This is the contents of hello.txt');
|
||||
|
||||
// add a file named 'some_image.jpg' from a local file 'path/to/image.jpg'
|
||||
$zip->addFileFromPath('some_image.jpg', 'path/to/image.jpg');
|
||||
|
||||
// add a file named 'goodbye.txt' from an open stream resource
|
||||
$fp = tmpfile();
|
||||
fwrite($fp, 'The quick brown fox jumped over the lazy dog.');
|
||||
rewind($fp);
|
||||
$zip->addFileFromStream('goodbye.txt', $fp);
|
||||
fclose($fp);
|
||||
|
||||
// finish the zip stream
|
||||
$zip->finish();
|
||||
```
|
||||
|
||||
You can also add comments, modify file timestamps, and customize (or
|
||||
disable) the HTTP headers. It is also possible to specify the storage method when adding files,
|
||||
the current default storage method is 'deflate' i.e files are stored with Compression mode 0x08.
|
||||
|
||||
See the [Wiki](https://github.com/maennchen/ZipStream-PHP/wiki) for details.
|
||||
|
||||
## Known issue
|
||||
|
||||
The native Mac OS archive extraction tool might not open archives in some conditions. A workaround is to disable the Zip64 feature with the option `$opt->setEnableZip64(false)`. This limits the archive to 4 Gb and 64k files but will allow Mac OS users to open them without issue. See #116.
|
||||
|
||||
The linux `unzip` utility might not handle properly unicode characters. It is recommended to extract with another tool like [7-zip](https://www.7-zip.org/). See #146.
|
||||
|
||||
## Upgrade to version 2.0.0
|
||||
|
||||
* Only the self opened streams will be closed (#139)
|
||||
If you were relying on ZipStream to close streams that the library didn't open,
|
||||
you'll need to close them yourself now.
|
||||
|
||||
## Upgrade to version 1.0.0
|
||||
|
||||
* All options parameters to all function have been moved from an `array` to structured option objects. See [the wiki](https://github.com/maennchen/ZipStream-PHP/wiki/Available-options) for examples.
|
||||
* The whole library has been refactored. The minimal PHP requirement has been raised to PHP 7.1.
|
||||
|
||||
## Usage with Symfony and S3
|
||||
|
||||
You can find example code on [the wiki](https://github.com/maennchen/ZipStream-PHP/wiki/Symfony-example).
|
||||
|
||||
## Contributing
|
||||
|
||||
ZipStream-PHP is a collaborative project. Please take a look at the [CONTRIBUTING.md](CONTRIBUTING.md) file.
|
||||
|
||||
## About the Authors
|
||||
|
||||
* Paul Duncan <pabs@pablotron.org> - https://pablotron.org/
|
||||
* Jonatan Männchen <jonatan@maennchen.ch> - https://maennchen.dev
|
||||
* Jesse G. Donat <donatj@gmail.com> - https://donatstudios.com
|
||||
* Nicolas CARPi <nico-git@deltablot.email> - https://www.deltablot.com
|
||||
* Nik Barham <nik@brokencube.co.uk> - https://www.brokencube.co.uk
|
||||
|
||||
## Contributors
|
||||
|
||||
### Code Contributors
|
||||
|
||||
This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].
|
||||
<a href="https://github.com/maennchen/ZipStream-PHP/graphs/contributors"><img src="https://opencollective.com/zipstream/contributors.svg?width=890&button=false" /></a>
|
||||
|
||||
### Financial Contributors
|
||||
|
||||
Become a financial contributor and help us sustain our community. [[Contribute](https://opencollective.com/zipstream/contribute)]
|
||||
|
||||
#### Individuals
|
||||
|
||||
<a href="https://opencollective.com/zipstream"><img src="https://opencollective.com/zipstream/individuals.svg?width=890"></a>
|
||||
|
||||
#### Organizations
|
||||
|
||||
Support this project with your organization. Your logo will show up here with a link to your website. [[Contribute](https://opencollective.com/zipstream/contribute)]
|
||||
|
||||
<a href="https://opencollective.com/zipstream/organization/0/website"><img src="https://opencollective.com/zipstream/organization/0/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/zipstream/organization/1/website"><img src="https://opencollective.com/zipstream/organization/1/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/zipstream/organization/2/website"><img src="https://opencollective.com/zipstream/organization/2/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/zipstream/organization/3/website"><img src="https://opencollective.com/zipstream/organization/3/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/zipstream/organization/4/website"><img src="https://opencollective.com/zipstream/organization/4/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/zipstream/organization/5/website"><img src="https://opencollective.com/zipstream/organization/5/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/zipstream/organization/6/website"><img src="https://opencollective.com/zipstream/organization/6/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/zipstream/organization/7/website"><img src="https://opencollective.com/zipstream/organization/7/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/zipstream/organization/8/website"><img src="https://opencollective.com/zipstream/organization/8/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/zipstream/organization/9/website"><img src="https://opencollective.com/zipstream/organization/9/avatar.svg"></a>
|
||||
41
modules/inpostizi/vendor/maennchen/zipstream-php/composer.json
vendored
Normal file
41
modules/inpostizi/vendor/maennchen/zipstream-php/composer.json
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"name": "maennchen/zipstream-php",
|
||||
"description": "ZipStream is a library for dynamically streaming dynamic zip files from PHP without writing to the disk at all on the server.",
|
||||
"keywords": ["zip", "stream"],
|
||||
"type": "library",
|
||||
"license": "MIT",
|
||||
"authors": [{
|
||||
"name": "Paul Duncan",
|
||||
"email": "pabs@pablotron.org"
|
||||
},
|
||||
{
|
||||
"name": "Jonatan Männchen",
|
||||
"email": "jonatan@maennchen.ch"
|
||||
},
|
||||
{
|
||||
"name": "Jesse Donat",
|
||||
"email": "donatj@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "András Kolesár",
|
||||
"email": "kolesar@kolesar.hu"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">= 7.1",
|
||||
"symfony/polyfill-mbstring": "^1.0",
|
||||
"psr/http-message": "^1.0",
|
||||
"myclabs/php-enum": "^1.5"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": ">= 7.5",
|
||||
"guzzlehttp/guzzle": ">= 6.3",
|
||||
"ext-zip": "*",
|
||||
"mikey179/vfsstream": "^1.6"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"ZipStream\\": "src/"
|
||||
}
|
||||
}
|
||||
}
|
||||
17
modules/inpostizi/vendor/maennchen/zipstream-php/phpunit.xml.dist
vendored
Normal file
17
modules/inpostizi/vendor/maennchen/zipstream-php/phpunit.xml.dist
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
<phpunit bootstrap="test/bootstrap.php">
|
||||
<testsuites>
|
||||
<testsuite name="Application">
|
||||
<directory>test</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
|
||||
<logging>
|
||||
<log type="coverage-clover" target="clover.xml"/>
|
||||
</logging>
|
||||
|
||||
<filter>
|
||||
<whitelist processUncoveredFilesFromWhitelist="true">
|
||||
<directory suffix=".php">src</directory>
|
||||
</whitelist>
|
||||
</filter>
|
||||
</phpunit>
|
||||
55
modules/inpostizi/vendor/maennchen/zipstream-php/psalm.xml
vendored
Normal file
55
modules/inpostizi/vendor/maennchen/zipstream-php/psalm.xml
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
<?xml version="1.0"?>
|
||||
<psalm
|
||||
totallyTyped="false"
|
||||
resolveFromConfigFile="true"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="https://getpsalm.org/schema/config"
|
||||
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
|
||||
>
|
||||
<projectFiles>
|
||||
<directory name="src" />
|
||||
<ignoreFiles>
|
||||
<directory name="vendor" />
|
||||
</ignoreFiles>
|
||||
</projectFiles>
|
||||
|
||||
<issueHandlers>
|
||||
<LessSpecificReturnType errorLevel="info" />
|
||||
|
||||
<!-- level 3 issues - slightly lazy code writing, but provably low false-negatives -->
|
||||
|
||||
<DeprecatedMethod errorLevel="info" />
|
||||
<DeprecatedProperty errorLevel="info" />
|
||||
<DeprecatedClass errorLevel="info" />
|
||||
<DeprecatedConstant errorLevel="info" />
|
||||
<DeprecatedFunction errorLevel="info" />
|
||||
<DeprecatedInterface errorLevel="info" />
|
||||
<DeprecatedTrait errorLevel="info" />
|
||||
|
||||
<InternalMethod errorLevel="info" />
|
||||
<InternalProperty errorLevel="info" />
|
||||
<InternalClass errorLevel="info" />
|
||||
|
||||
<MissingClosureReturnType errorLevel="info" />
|
||||
<MissingReturnType errorLevel="info" />
|
||||
<MissingPropertyType errorLevel="info" />
|
||||
<InvalidDocblock errorLevel="info" />
|
||||
<MisplacedRequiredParam errorLevel="info" />
|
||||
|
||||
<PropertyNotSetInConstructor errorLevel="info" />
|
||||
<MissingConstructor errorLevel="info" />
|
||||
<MissingClosureParamType errorLevel="info" />
|
||||
<MissingParamType errorLevel="info" />
|
||||
|
||||
<RedundantCondition errorLevel="info" />
|
||||
|
||||
<DocblockTypeContradiction errorLevel="info" />
|
||||
<RedundantConditionGivenDocblockType errorLevel="info" />
|
||||
|
||||
<UnresolvableInclude errorLevel="info" />
|
||||
|
||||
<RawObjectIteration errorLevel="info" />
|
||||
|
||||
<InvalidStringClass errorLevel="info" />
|
||||
</issueHandlers>
|
||||
</psalm>
|
||||
172
modules/inpostizi/vendor/maennchen/zipstream-php/src/Bigint.php
vendored
Normal file
172
modules/inpostizi/vendor/maennchen/zipstream-php/src/Bigint.php
vendored
Normal file
@@ -0,0 +1,172 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace ZipStream;
|
||||
|
||||
use OverflowException;
|
||||
|
||||
class Bigint
|
||||
{
|
||||
/**
|
||||
* @var int[]
|
||||
*/
|
||||
private $bytes = [0, 0, 0, 0, 0, 0, 0, 0];
|
||||
|
||||
/**
|
||||
* Initialize the bytes array
|
||||
*
|
||||
* @param int $value
|
||||
*/
|
||||
public function __construct(int $value = 0)
|
||||
{
|
||||
$this->fillBytes($value, 0, 8);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fill the bytes field with int
|
||||
*
|
||||
* @param int $value
|
||||
* @param int $start
|
||||
* @param int $count
|
||||
* @return void
|
||||
*/
|
||||
protected function fillBytes(int $value, int $start, int $count): void
|
||||
{
|
||||
for ($i = 0; $i < $count; $i++) {
|
||||
$this->bytes[$start + $i] = $i >= PHP_INT_SIZE ? 0 : $value & 0xFF;
|
||||
$value >>= 8;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get an instance
|
||||
*
|
||||
* @param int $value
|
||||
* @return Bigint
|
||||
*/
|
||||
public static function init(int $value = 0): self
|
||||
{
|
||||
return new self($value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fill bytes from low to high
|
||||
*
|
||||
* @param int $low
|
||||
* @param int $high
|
||||
* @return Bigint
|
||||
*/
|
||||
public static function fromLowHigh(int $low, int $high): self
|
||||
{
|
||||
$bigint = new Bigint();
|
||||
$bigint->fillBytes($low, 0, 4);
|
||||
$bigint->fillBytes($high, 4, 4);
|
||||
return $bigint;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get high 32
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getHigh32(): int
|
||||
{
|
||||
return $this->getValue(4, 4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get value from bytes array
|
||||
*
|
||||
* @param int $end
|
||||
* @param int $length
|
||||
* @return int
|
||||
*/
|
||||
public function getValue(int $end = 0, int $length = 8): int
|
||||
{
|
||||
$result = 0;
|
||||
for ($i = $end + $length - 1; $i >= $end; $i--) {
|
||||
$result <<= 8;
|
||||
$result |= $this->bytes[$i];
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get low FF
|
||||
*
|
||||
* @param bool $force
|
||||
* @return float
|
||||
*/
|
||||
public function getLowFF(bool $force = false): float
|
||||
{
|
||||
if ($force || $this->isOver32()) {
|
||||
return (float)0xFFFFFFFF;
|
||||
}
|
||||
return (float)$this->getLow32();
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if is over 32
|
||||
*
|
||||
* @param bool $force
|
||||
* @return bool
|
||||
*/
|
||||
public function isOver32(bool $force = false): bool
|
||||
{
|
||||
// value 0xFFFFFFFF already needs a Zip64 header
|
||||
return $force ||
|
||||
max(array_slice($this->bytes, 4, 4)) > 0 ||
|
||||
min(array_slice($this->bytes, 0, 4)) === 0xFF;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get low 32
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getLow32(): int
|
||||
{
|
||||
return $this->getValue(0, 4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get hexadecimal
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getHex64(): string
|
||||
{
|
||||
$result = '0x';
|
||||
for ($i = 7; $i >= 0; $i--) {
|
||||
$result .= sprintf('%02X', $this->bytes[$i]);
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add
|
||||
*
|
||||
* @param Bigint $other
|
||||
* @return Bigint
|
||||
*/
|
||||
public function add(Bigint $other): Bigint
|
||||
{
|
||||
$result = clone $this;
|
||||
$overflow = false;
|
||||
for ($i = 0; $i < 8; $i++) {
|
||||
$result->bytes[$i] += $other->bytes[$i];
|
||||
if ($overflow) {
|
||||
$result->bytes[$i]++;
|
||||
$overflow = false;
|
||||
}
|
||||
if ($result->bytes[$i] & 0x100) {
|
||||
$overflow = true;
|
||||
$result->bytes[$i] &= 0xFF;
|
||||
}
|
||||
}
|
||||
if ($overflow) {
|
||||
throw new OverflowException;
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
70
modules/inpostizi/vendor/maennchen/zipstream-php/src/DeflateStream.php
vendored
Normal file
70
modules/inpostizi/vendor/maennchen/zipstream-php/src/DeflateStream.php
vendored
Normal file
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace ZipStream;
|
||||
|
||||
class DeflateStream extends Stream
|
||||
{
|
||||
protected $filter;
|
||||
|
||||
/**
|
||||
* @var Option\File
|
||||
*/
|
||||
protected $options;
|
||||
|
||||
/**
|
||||
* Rewind stream
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function rewind(): void
|
||||
{
|
||||
// deflate filter needs to be removed before rewind
|
||||
if ($this->filter) {
|
||||
$this->removeDeflateFilter();
|
||||
$this->seek(0);
|
||||
$this->addDeflateFilter($this->options);
|
||||
} else {
|
||||
rewind($this->stream);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the deflate filter
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function removeDeflateFilter(): void
|
||||
{
|
||||
if (!$this->filter) {
|
||||
return;
|
||||
}
|
||||
stream_filter_remove($this->filter);
|
||||
$this->filter = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a deflate filter
|
||||
*
|
||||
* @param Option\File $options
|
||||
* @return void
|
||||
*/
|
||||
public function addDeflateFilter(Option\File $options): void
|
||||
{
|
||||
$this->options = $options;
|
||||
// parameter 4 for stream_filter_append expects array
|
||||
// so we convert the option object in an array
|
||||
$optionsArr = [
|
||||
'comment' => $options->getComment(),
|
||||
'method' => $options->getMethod(),
|
||||
'deflateLevel' => $options->getDeflateLevel(),
|
||||
'time' => $options->getTime()
|
||||
];
|
||||
$this->filter = stream_filter_append(
|
||||
$this->stream,
|
||||
'zlib.deflate',
|
||||
STREAM_FILTER_READ,
|
||||
$optionsArr
|
||||
);
|
||||
}
|
||||
}
|
||||
11
modules/inpostizi/vendor/maennchen/zipstream-php/src/Exception.php
vendored
Normal file
11
modules/inpostizi/vendor/maennchen/zipstream-php/src/Exception.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace ZipStream;
|
||||
|
||||
/**
|
||||
* This class is only for inheriting
|
||||
*/
|
||||
abstract class Exception extends \Exception
|
||||
{
|
||||
}
|
||||
13
modules/inpostizi/vendor/maennchen/zipstream-php/src/Exception/EncodingException.php
vendored
Normal file
13
modules/inpostizi/vendor/maennchen/zipstream-php/src/Exception/EncodingException.php
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace ZipStream\Exception;
|
||||
|
||||
use ZipStream\Exception;
|
||||
|
||||
/**
|
||||
* This Exception gets invoked if file or comment encoding is incorrect
|
||||
*/
|
||||
class EncodingException extends Exception
|
||||
{
|
||||
}
|
||||
22
modules/inpostizi/vendor/maennchen/zipstream-php/src/Exception/FileNotFoundException.php
vendored
Normal file
22
modules/inpostizi/vendor/maennchen/zipstream-php/src/Exception/FileNotFoundException.php
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace ZipStream\Exception;
|
||||
|
||||
use ZipStream\Exception;
|
||||
|
||||
/**
|
||||
* This Exception gets invoked if a file wasn't found
|
||||
*/
|
||||
class FileNotFoundException extends Exception
|
||||
{
|
||||
/**
|
||||
* Constructor of the Exception
|
||||
*
|
||||
* @param String $path - The path which wasn't found
|
||||
*/
|
||||
public function __construct(string $path)
|
||||
{
|
||||
parent::__construct("The file with the path $path wasn't found.");
|
||||
}
|
||||
}
|
||||
22
modules/inpostizi/vendor/maennchen/zipstream-php/src/Exception/FileNotReadableException.php
vendored
Normal file
22
modules/inpostizi/vendor/maennchen/zipstream-php/src/Exception/FileNotReadableException.php
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace ZipStream\Exception;
|
||||
|
||||
use ZipStream\Exception;
|
||||
|
||||
/**
|
||||
* This Exception gets invoked if a file wasn't found
|
||||
*/
|
||||
class FileNotReadableException extends Exception
|
||||
{
|
||||
/**
|
||||
* Constructor of the Exception
|
||||
*
|
||||
* @param String $path - The path which wasn't found
|
||||
*/
|
||||
public function __construct(string $path)
|
||||
{
|
||||
parent::__construct("The file with the path $path isn't readable.");
|
||||
}
|
||||
}
|
||||
13
modules/inpostizi/vendor/maennchen/zipstream-php/src/Exception/IncompatibleOptionsException.php
vendored
Normal file
13
modules/inpostizi/vendor/maennchen/zipstream-php/src/Exception/IncompatibleOptionsException.php
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace ZipStream\Exception;
|
||||
|
||||
use ZipStream\Exception;
|
||||
|
||||
/**
|
||||
* This Exception gets invoked if options are incompatible
|
||||
*/
|
||||
class IncompatibleOptionsException extends Exception
|
||||
{
|
||||
}
|
||||
17
modules/inpostizi/vendor/maennchen/zipstream-php/src/Exception/OverflowException.php
vendored
Normal file
17
modules/inpostizi/vendor/maennchen/zipstream-php/src/Exception/OverflowException.php
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace ZipStream\Exception;
|
||||
|
||||
use ZipStream\Exception;
|
||||
|
||||
/**
|
||||
* This Exception gets invoked if a counter value exceeds storage size
|
||||
*/
|
||||
class OverflowException extends Exception
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct('File size exceeds limit of 32 bit integer. Please enable "zip64" option.');
|
||||
}
|
||||
}
|
||||
22
modules/inpostizi/vendor/maennchen/zipstream-php/src/Exception/StreamNotReadableException.php
vendored
Normal file
22
modules/inpostizi/vendor/maennchen/zipstream-php/src/Exception/StreamNotReadableException.php
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace ZipStream\Exception;
|
||||
|
||||
use ZipStream\Exception;
|
||||
|
||||
/**
|
||||
* This Exception gets invoked if `fread` fails on a stream.
|
||||
*/
|
||||
class StreamNotReadableException extends Exception
|
||||
{
|
||||
/**
|
||||
* Constructor of the Exception
|
||||
*
|
||||
* @param string $fileName - The name of the file which the stream belongs to.
|
||||
*/
|
||||
public function __construct(string $fileName)
|
||||
{
|
||||
parent::__construct("The stream for $fileName could not be read.");
|
||||
}
|
||||
}
|
||||
477
modules/inpostizi/vendor/maennchen/zipstream-php/src/File.php
vendored
Normal file
477
modules/inpostizi/vendor/maennchen/zipstream-php/src/File.php
vendored
Normal file
@@ -0,0 +1,477 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace ZipStream;
|
||||
|
||||
use Psr\Http\Message\StreamInterface;
|
||||
use ZipStream\Exception\EncodingException;
|
||||
use ZipStream\Exception\FileNotFoundException;
|
||||
use ZipStream\Exception\FileNotReadableException;
|
||||
use ZipStream\Exception\OverflowException;
|
||||
use ZipStream\Option\File as FileOptions;
|
||||
use ZipStream\Option\Method;
|
||||
use ZipStream\Option\Version;
|
||||
|
||||
class File
|
||||
{
|
||||
const HASH_ALGORITHM = 'crc32b';
|
||||
|
||||
const BIT_ZERO_HEADER = 0x0008;
|
||||
const BIT_EFS_UTF8 = 0x0800;
|
||||
|
||||
const COMPUTE = 1;
|
||||
const SEND = 2;
|
||||
|
||||
private const CHUNKED_READ_BLOCK_SIZE = 1048576;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $name;
|
||||
|
||||
/**
|
||||
* @var FileOptions
|
||||
*/
|
||||
public $opt;
|
||||
|
||||
/**
|
||||
* @var Bigint
|
||||
*/
|
||||
public $len;
|
||||
/**
|
||||
* @var Bigint
|
||||
*/
|
||||
public $zlen;
|
||||
|
||||
/** @var int */
|
||||
public $crc;
|
||||
|
||||
/**
|
||||
* @var Bigint
|
||||
*/
|
||||
public $hlen;
|
||||
|
||||
/**
|
||||
* @var Bigint
|
||||
*/
|
||||
public $ofs;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $bits;
|
||||
|
||||
/**
|
||||
* @var Version
|
||||
*/
|
||||
public $version;
|
||||
|
||||
/**
|
||||
* @var ZipStream
|
||||
*/
|
||||
public $zip;
|
||||
|
||||
/**
|
||||
* @var resource
|
||||
*/
|
||||
private $deflate;
|
||||
/**
|
||||
* @var resource
|
||||
*/
|
||||
private $hash;
|
||||
|
||||
/**
|
||||
* @var Method
|
||||
*/
|
||||
private $method;
|
||||
|
||||
/**
|
||||
* @var Bigint
|
||||
*/
|
||||
private $totalLength;
|
||||
|
||||
public function __construct(ZipStream $zip, string $name, ?FileOptions $opt = null)
|
||||
{
|
||||
$this->zip = $zip;
|
||||
|
||||
$this->name = $name;
|
||||
$this->opt = $opt ?: new FileOptions();
|
||||
$this->method = $this->opt->getMethod();
|
||||
$this->version = Version::STORE();
|
||||
$this->ofs = new Bigint();
|
||||
}
|
||||
|
||||
public function processPath(string $path): void
|
||||
{
|
||||
if (!is_readable($path)) {
|
||||
if (!file_exists($path)) {
|
||||
throw new FileNotFoundException($path);
|
||||
}
|
||||
throw new FileNotReadableException($path);
|
||||
}
|
||||
if ($this->zip->isLargeFile($path) === false) {
|
||||
$data = file_get_contents($path);
|
||||
$this->processData($data);
|
||||
} else {
|
||||
$this->method = $this->zip->opt->getLargeFileMethod();
|
||||
|
||||
$stream = new DeflateStream(fopen($path, 'rb'));
|
||||
$this->processStream($stream);
|
||||
$stream->close();
|
||||
}
|
||||
}
|
||||
|
||||
public function processData(string $data): void
|
||||
{
|
||||
$this->len = new Bigint(strlen($data));
|
||||
$this->crc = crc32($data);
|
||||
|
||||
// compress data if needed
|
||||
if ($this->method->equals(Method::DEFLATE())) {
|
||||
$data = gzdeflate($data);
|
||||
}
|
||||
|
||||
$this->zlen = new Bigint(strlen($data));
|
||||
$this->addFileHeader();
|
||||
$this->zip->send($data);
|
||||
$this->addFileFooter();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create and send zip header for this file.
|
||||
*
|
||||
* @return void
|
||||
* @throws \ZipStream\Exception\EncodingException
|
||||
*/
|
||||
public function addFileHeader(): void
|
||||
{
|
||||
$name = static::filterFilename($this->name);
|
||||
|
||||
// calculate name length
|
||||
$nameLength = strlen($name);
|
||||
|
||||
// create dos timestamp
|
||||
$time = static::dosTime($this->opt->getTime()->getTimestamp());
|
||||
|
||||
$comment = $this->opt->getComment();
|
||||
|
||||
if (!mb_check_encoding($name, 'ASCII') ||
|
||||
!mb_check_encoding($comment, 'ASCII')) {
|
||||
// Sets Bit 11: Language encoding flag (EFS). If this bit is set,
|
||||
// the filename and comment fields for this file
|
||||
// MUST be encoded using UTF-8. (see APPENDIX D)
|
||||
if (!mb_check_encoding($name, 'UTF-8') ||
|
||||
!mb_check_encoding($comment, 'UTF-8')) {
|
||||
throw new EncodingException(
|
||||
'File name and comment should use UTF-8 ' .
|
||||
'if one of them does not fit into ASCII range.'
|
||||
);
|
||||
}
|
||||
$this->bits |= self::BIT_EFS_UTF8;
|
||||
}
|
||||
|
||||
if ($this->method->equals(Method::DEFLATE())) {
|
||||
$this->version = Version::DEFLATE();
|
||||
}
|
||||
|
||||
$force = (boolean)($this->bits & self::BIT_ZERO_HEADER) &&
|
||||
$this->zip->opt->isEnableZip64();
|
||||
|
||||
$footer = $this->buildZip64ExtraBlock($force);
|
||||
|
||||
// If this file will start over 4GB limit in ZIP file,
|
||||
// CDR record will have to use Zip64 extension to describe offset
|
||||
// to keep consistency we use the same value here
|
||||
if ($this->zip->ofs->isOver32()) {
|
||||
$this->version = Version::ZIP64();
|
||||
}
|
||||
|
||||
$fields = [
|
||||
['V', ZipStream::FILE_HEADER_SIGNATURE],
|
||||
['v', $this->version->getValue()], // Version needed to Extract
|
||||
['v', $this->bits], // General purpose bit flags - data descriptor flag set
|
||||
['v', $this->method->getValue()], // Compression method
|
||||
['V', $time], // Timestamp (DOS Format)
|
||||
['V', $this->crc], // CRC32 of data (0 -> moved to data descriptor footer)
|
||||
['V', $this->zlen->getLowFF($force)], // Length of compressed data (forced to 0xFFFFFFFF for zero header)
|
||||
['V', $this->len->getLowFF($force)], // Length of original data (forced to 0xFFFFFFFF for zero header)
|
||||
['v', $nameLength], // Length of filename
|
||||
['v', strlen($footer)], // Extra data (see above)
|
||||
];
|
||||
|
||||
// pack fields and calculate "total" length
|
||||
$header = ZipStream::packFields($fields);
|
||||
|
||||
// print header and filename
|
||||
$data = $header . $name . $footer;
|
||||
$this->zip->send($data);
|
||||
|
||||
// save header length
|
||||
$this->hlen = Bigint::init(strlen($data));
|
||||
}
|
||||
|
||||
/**
|
||||
* Strip characters that are not legal in Windows filenames
|
||||
* to prevent compatibility issues
|
||||
*
|
||||
* @param string $filename Unprocessed filename
|
||||
* @return string
|
||||
*/
|
||||
public static function filterFilename(string $filename): string
|
||||
{
|
||||
// strip leading slashes from file name
|
||||
// (fixes bug in windows archive viewer)
|
||||
$filename = preg_replace('/^\\/+/', '', $filename);
|
||||
|
||||
return str_replace(['\\', ':', '*', '?', '"', '<', '>', '|'], '_', $filename);
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert a UNIX timestamp to a DOS timestamp.
|
||||
*
|
||||
* @param int $when
|
||||
* @return int DOS Timestamp
|
||||
*/
|
||||
final protected static function dosTime(int $when): int
|
||||
{
|
||||
// get date array for timestamp
|
||||
$d = getdate($when);
|
||||
|
||||
// set lower-bound on dates
|
||||
if ($d['year'] < 1980) {
|
||||
$d = array(
|
||||
'year' => 1980,
|
||||
'mon' => 1,
|
||||
'mday' => 1,
|
||||
'hours' => 0,
|
||||
'minutes' => 0,
|
||||
'seconds' => 0
|
||||
);
|
||||
}
|
||||
|
||||
// remove extra years from 1980
|
||||
$d['year'] -= 1980;
|
||||
|
||||
// return date string
|
||||
return
|
||||
($d['year'] << 25) |
|
||||
($d['mon'] << 21) |
|
||||
($d['mday'] << 16) |
|
||||
($d['hours'] << 11) |
|
||||
($d['minutes'] << 5) |
|
||||
($d['seconds'] >> 1);
|
||||
}
|
||||
|
||||
protected function buildZip64ExtraBlock(bool $force = false): string
|
||||
{
|
||||
|
||||
$fields = [];
|
||||
if ($this->len->isOver32($force)) {
|
||||
$fields[] = ['P', $this->len]; // Length of original data
|
||||
}
|
||||
|
||||
if ($this->len->isOver32($force)) {
|
||||
$fields[] = ['P', $this->zlen]; // Length of compressed data
|
||||
}
|
||||
|
||||
if ($this->ofs->isOver32()) {
|
||||
$fields[] = ['P', $this->ofs]; // Offset of local header record
|
||||
}
|
||||
|
||||
if (!empty($fields)) {
|
||||
if (!$this->zip->opt->isEnableZip64()) {
|
||||
throw new OverflowException();
|
||||
}
|
||||
|
||||
array_unshift(
|
||||
$fields,
|
||||
['v', 0x0001], // 64 bit extension
|
||||
['v', count($fields) * 8] // Length of data block
|
||||
);
|
||||
$this->version = Version::ZIP64();
|
||||
}
|
||||
|
||||
return ZipStream::packFields($fields);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create and send data descriptor footer for this file.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
||||
public function addFileFooter(): void
|
||||
{
|
||||
|
||||
if ($this->bits & self::BIT_ZERO_HEADER) {
|
||||
// compressed and uncompressed size
|
||||
$sizeFormat = 'V';
|
||||
if ($this->zip->opt->isEnableZip64()) {
|
||||
$sizeFormat = 'P';
|
||||
}
|
||||
$fields = [
|
||||
['V', ZipStream::DATA_DESCRIPTOR_SIGNATURE],
|
||||
['V', $this->crc], // CRC32
|
||||
[$sizeFormat, $this->zlen], // Length of compressed data
|
||||
[$sizeFormat, $this->len], // Length of original data
|
||||
];
|
||||
|
||||
$footer = ZipStream::packFields($fields);
|
||||
$this->zip->send($footer);
|
||||
} else {
|
||||
$footer = '';
|
||||
}
|
||||
$this->totalLength = $this->hlen->add($this->zlen)->add(Bigint::init(strlen($footer)));
|
||||
$this->zip->addToCdr($this);
|
||||
}
|
||||
|
||||
public function processStream(StreamInterface $stream): void
|
||||
{
|
||||
$this->zlen = new Bigint();
|
||||
$this->len = new Bigint();
|
||||
|
||||
if ($this->zip->opt->isZeroHeader()) {
|
||||
$this->processStreamWithZeroHeader($stream);
|
||||
} else {
|
||||
$this->processStreamWithComputedHeader($stream);
|
||||
}
|
||||
}
|
||||
|
||||
protected function processStreamWithZeroHeader(StreamInterface $stream): void
|
||||
{
|
||||
$this->bits |= self::BIT_ZERO_HEADER;
|
||||
$this->addFileHeader();
|
||||
$this->readStream($stream, self::COMPUTE | self::SEND);
|
||||
$this->addFileFooter();
|
||||
}
|
||||
|
||||
protected function readStream(StreamInterface $stream, ?int $options = null): void
|
||||
{
|
||||
$this->deflateInit();
|
||||
$total = 0;
|
||||
$size = $this->opt->getSize();
|
||||
while (!$stream->eof() && ($size === 0 || $total < $size)) {
|
||||
$data = $stream->read(self::CHUNKED_READ_BLOCK_SIZE);
|
||||
$total += strlen($data);
|
||||
if ($size > 0 && $total > $size) {
|
||||
$data = substr($data, 0 , strlen($data)-($total - $size));
|
||||
}
|
||||
$this->deflateData($stream, $data, $options);
|
||||
if ($options & self::SEND) {
|
||||
$this->zip->send($data);
|
||||
}
|
||||
}
|
||||
$this->deflateFinish($options);
|
||||
}
|
||||
|
||||
protected function deflateInit(): void
|
||||
{
|
||||
$this->hash = hash_init(self::HASH_ALGORITHM);
|
||||
if ($this->method->equals(Method::DEFLATE())) {
|
||||
$this->deflate = deflate_init(
|
||||
ZLIB_ENCODING_RAW,
|
||||
['level' => $this->opt->getDeflateLevel()]
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
protected function deflateData(StreamInterface $stream, string &$data, ?int $options = null): void
|
||||
{
|
||||
if ($options & self::COMPUTE) {
|
||||
$this->len = $this->len->add(Bigint::init(strlen($data)));
|
||||
hash_update($this->hash, $data);
|
||||
}
|
||||
if ($this->deflate) {
|
||||
$data = deflate_add(
|
||||
$this->deflate,
|
||||
$data,
|
||||
$stream->eof()
|
||||
? ZLIB_FINISH
|
||||
: ZLIB_NO_FLUSH
|
||||
);
|
||||
}
|
||||
if ($options & self::COMPUTE) {
|
||||
$this->zlen = $this->zlen->add(Bigint::init(strlen($data)));
|
||||
}
|
||||
}
|
||||
|
||||
protected function deflateFinish(?int $options = null): void
|
||||
{
|
||||
if ($options & self::COMPUTE) {
|
||||
$this->crc = hexdec(hash_final($this->hash));
|
||||
}
|
||||
}
|
||||
|
||||
protected function processStreamWithComputedHeader(StreamInterface $stream): void
|
||||
{
|
||||
$this->readStream($stream, self::COMPUTE);
|
||||
$stream->rewind();
|
||||
|
||||
// incremental compression with deflate_add
|
||||
// makes this second read unnecessary
|
||||
// but it is only available from PHP 7.0
|
||||
if (!$this->deflate && $stream instanceof DeflateStream && $this->method->equals(Method::DEFLATE())) {
|
||||
$stream->addDeflateFilter($this->opt);
|
||||
$this->zlen = new Bigint();
|
||||
while (!$stream->eof()) {
|
||||
$data = $stream->read(self::CHUNKED_READ_BLOCK_SIZE);
|
||||
$this->zlen = $this->zlen->add(Bigint::init(strlen($data)));
|
||||
}
|
||||
$stream->rewind();
|
||||
}
|
||||
|
||||
$this->addFileHeader();
|
||||
$this->readStream($stream, self::SEND);
|
||||
$this->addFileFooter();
|
||||
}
|
||||
|
||||
/**
|
||||
* Send CDR record for specified file.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCdrFile(): string
|
||||
{
|
||||
$name = static::filterFilename($this->name);
|
||||
|
||||
// get attributes
|
||||
$comment = $this->opt->getComment();
|
||||
|
||||
// get dos timestamp
|
||||
$time = static::dosTime($this->opt->getTime()->getTimestamp());
|
||||
|
||||
$footer = $this->buildZip64ExtraBlock();
|
||||
|
||||
$fields = [
|
||||
['V', ZipStream::CDR_FILE_SIGNATURE], // Central file header signature
|
||||
['v', ZipStream::ZIP_VERSION_MADE_BY], // Made by version
|
||||
['v', $this->version->getValue()], // Extract by version
|
||||
['v', $this->bits], // General purpose bit flags - data descriptor flag set
|
||||
['v', $this->method->getValue()], // Compression method
|
||||
['V', $time], // Timestamp (DOS Format)
|
||||
['V', $this->crc], // CRC32
|
||||
['V', $this->zlen->getLowFF()], // Compressed Data Length
|
||||
['V', $this->len->getLowFF()], // Original Data Length
|
||||
['v', strlen($name)], // Length of filename
|
||||
['v', strlen($footer)], // Extra data len (see above)
|
||||
['v', strlen($comment)], // Length of comment
|
||||
['v', 0], // Disk number
|
||||
['v', 0], // Internal File Attributes
|
||||
['V', 32], // External File Attributes
|
||||
['V', $this->ofs->getLowFF()] // Relative offset of local header
|
||||
];
|
||||
|
||||
// pack fields, then append name and comment
|
||||
$header = ZipStream::packFields($fields);
|
||||
|
||||
return $header . $name . $footer . $comment;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Bigint
|
||||
*/
|
||||
public function getTotalLength(): Bigint
|
||||
{
|
||||
return $this->totalLength;
|
||||
}
|
||||
}
|
||||
261
modules/inpostizi/vendor/maennchen/zipstream-php/src/Option/Archive.php
vendored
Normal file
261
modules/inpostizi/vendor/maennchen/zipstream-php/src/Option/Archive.php
vendored
Normal file
@@ -0,0 +1,261 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace ZipStream\Option;
|
||||
|
||||
final class Archive
|
||||
{
|
||||
const DEFAULT_DEFLATE_LEVEL = 6;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $comment = '';
|
||||
/**
|
||||
* Size, in bytes, of the largest file to try
|
||||
* and load into memory (used by
|
||||
* addFileFromPath()). Large files may also
|
||||
* be compressed differently; see the
|
||||
* 'largeFileMethod' option. Default is ~20 Mb.
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
private $largeFileSize = 20 * 1024 * 1024;
|
||||
/**
|
||||
* How to handle large files. Legal values are
|
||||
* Method::STORE() (the default), or
|
||||
* Method::DEFLATE(). STORE sends the file
|
||||
* raw and is significantly
|
||||
* faster, while DEFLATE compresses the file
|
||||
* and is much, much slower. Note that DEFLATE
|
||||
* must compress the file twice and is extremely slow.
|
||||
*
|
||||
* @var Method
|
||||
*/
|
||||
private $largeFileMethod;
|
||||
/**
|
||||
* Boolean indicating whether or not to send
|
||||
* the HTTP headers for this file.
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
private $sendHttpHeaders = false;
|
||||
/**
|
||||
* The method called to send headers
|
||||
*
|
||||
* @var Callable
|
||||
*/
|
||||
private $httpHeaderCallback = 'header';
|
||||
/**
|
||||
* Enable Zip64 extension, supporting very large
|
||||
* archives (any size > 4 GB or file count > 64k)
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
private $enableZip64 = true;
|
||||
/**
|
||||
* Enable streaming files with single read where
|
||||
* general purpose bit 3 indicates local file header
|
||||
* contain zero values in crc and size fields,
|
||||
* these appear only after file contents
|
||||
* in data descriptor block.
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
private $zeroHeader = false;
|
||||
/**
|
||||
* Enable reading file stat for determining file size.
|
||||
* When a 32-bit system reads file size that is
|
||||
* over 2 GB, invalid value appears in file size
|
||||
* due to integer overflow. Should be disabled on
|
||||
* 32-bit systems with method addFileFromPath
|
||||
* if any file may exceed 2 GB. In this case file
|
||||
* will be read in blocks and correct size will be
|
||||
* determined from content.
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
private $statFiles = true;
|
||||
/**
|
||||
* Enable flush after every write to output stream.
|
||||
* @var bool
|
||||
*/
|
||||
private $flushOutput = false;
|
||||
/**
|
||||
* HTTP Content-Disposition. Defaults to
|
||||
* 'attachment', where
|
||||
* FILENAME is the specified filename.
|
||||
*
|
||||
* Note that this does nothing if you are
|
||||
* not sending HTTP headers.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private $contentDisposition = 'attachment';
|
||||
/**
|
||||
* Note that this does nothing if you are
|
||||
* not sending HTTP headers.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-zip';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
private $deflateLevel = 6;
|
||||
|
||||
/**
|
||||
* @var resource
|
||||
*/
|
||||
private $outputStream;
|
||||
|
||||
/**
|
||||
* Options constructor.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->largeFileMethod = Method::STORE();
|
||||
$this->outputStream = fopen('php://output', 'wb');
|
||||
}
|
||||
|
||||
public function getComment(): string
|
||||
{
|
||||
return $this->comment;
|
||||
}
|
||||
|
||||
public function setComment(string $comment): void
|
||||
{
|
||||
$this->comment = $comment;
|
||||
}
|
||||
|
||||
public function getLargeFileSize(): int
|
||||
{
|
||||
return $this->largeFileSize;
|
||||
}
|
||||
|
||||
public function setLargeFileSize(int $largeFileSize): void
|
||||
{
|
||||
$this->largeFileSize = $largeFileSize;
|
||||
}
|
||||
|
||||
public function getLargeFileMethod(): Method
|
||||
{
|
||||
return $this->largeFileMethod;
|
||||
}
|
||||
|
||||
public function setLargeFileMethod(Method $largeFileMethod): void
|
||||
{
|
||||
$this->largeFileMethod = $largeFileMethod;
|
||||
}
|
||||
|
||||
public function isSendHttpHeaders(): bool
|
||||
{
|
||||
return $this->sendHttpHeaders;
|
||||
}
|
||||
|
||||
public function setSendHttpHeaders(bool $sendHttpHeaders): void
|
||||
{
|
||||
$this->sendHttpHeaders = $sendHttpHeaders;
|
||||
}
|
||||
|
||||
public function getHttpHeaderCallback(): Callable
|
||||
{
|
||||
return $this->httpHeaderCallback;
|
||||
}
|
||||
|
||||
public function setHttpHeaderCallback(Callable $httpHeaderCallback): void
|
||||
{
|
||||
$this->httpHeaderCallback = $httpHeaderCallback;
|
||||
}
|
||||
|
||||
public function isEnableZip64(): bool
|
||||
{
|
||||
return $this->enableZip64;
|
||||
}
|
||||
|
||||
public function setEnableZip64(bool $enableZip64): void
|
||||
{
|
||||
$this->enableZip64 = $enableZip64;
|
||||
}
|
||||
|
||||
public function isZeroHeader(): bool
|
||||
{
|
||||
return $this->zeroHeader;
|
||||
}
|
||||
|
||||
public function setZeroHeader(bool $zeroHeader): void
|
||||
{
|
||||
$this->zeroHeader = $zeroHeader;
|
||||
}
|
||||
|
||||
public function isFlushOutput(): bool
|
||||
{
|
||||
return $this->flushOutput;
|
||||
}
|
||||
|
||||
public function setFlushOutput(bool $flushOutput): void
|
||||
{
|
||||
$this->flushOutput = $flushOutput;
|
||||
}
|
||||
|
||||
public function isStatFiles(): bool
|
||||
{
|
||||
return $this->statFiles;
|
||||
}
|
||||
|
||||
public function setStatFiles(bool $statFiles): void
|
||||
{
|
||||
$this->statFiles = $statFiles;
|
||||
}
|
||||
|
||||
public function getContentDisposition(): string
|
||||
{
|
||||
return $this->contentDisposition;
|
||||
}
|
||||
|
||||
public function setContentDisposition(string $contentDisposition): void
|
||||
{
|
||||
$this->contentDisposition = $contentDisposition;
|
||||
}
|
||||
|
||||
public function getContentType(): string
|
||||
{
|
||||
return $this->contentType;
|
||||
}
|
||||
|
||||
public function setContentType(string $contentType): void
|
||||
{
|
||||
$this->contentType = $contentType;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return resource
|
||||
*/
|
||||
public function getOutputStream()
|
||||
{
|
||||
return $this->outputStream;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param resource $outputStream
|
||||
*/
|
||||
public function setOutputStream($outputStream): void
|
||||
{
|
||||
$this->outputStream = $outputStream;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getDeflateLevel(): int
|
||||
{
|
||||
return $this->deflateLevel;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $deflateLevel
|
||||
*/
|
||||
public function setDeflateLevel(int $deflateLevel): void
|
||||
{
|
||||
$this->deflateLevel = $deflateLevel;
|
||||
}
|
||||
}
|
||||
116
modules/inpostizi/vendor/maennchen/zipstream-php/src/Option/File.php
vendored
Normal file
116
modules/inpostizi/vendor/maennchen/zipstream-php/src/Option/File.php
vendored
Normal file
@@ -0,0 +1,116 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace ZipStream\Option;
|
||||
|
||||
use DateTime;
|
||||
|
||||
final class File
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $comment = '';
|
||||
/**
|
||||
* @var Method
|
||||
*/
|
||||
private $method;
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
private $deflateLevel;
|
||||
/**
|
||||
* @var DateTime
|
||||
*/
|
||||
private $time;
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
private $size = 0;
|
||||
|
||||
public function defaultTo(Archive $archiveOptions): void
|
||||
{
|
||||
$this->deflateLevel = $this->deflateLevel ?: $archiveOptions->getDeflateLevel();
|
||||
$this->time = $this->time ?: new DateTime();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getComment(): string
|
||||
{
|
||||
return $this->comment;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $comment
|
||||
*/
|
||||
public function setComment(string $comment): void
|
||||
{
|
||||
$this->comment = $comment;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Method
|
||||
*/
|
||||
public function getMethod(): Method
|
||||
{
|
||||
return $this->method ?: Method::DEFLATE();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Method $method
|
||||
*/
|
||||
public function setMethod(Method $method): void
|
||||
{
|
||||
$this->method = $method;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getDeflateLevel(): int
|
||||
{
|
||||
return $this->deflateLevel ?: Archive::DEFAULT_DEFLATE_LEVEL;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $deflateLevel
|
||||
*/
|
||||
public function setDeflateLevel(int $deflateLevel): void
|
||||
{
|
||||
$this->deflateLevel = $deflateLevel;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return DateTime
|
||||
*/
|
||||
public function getTime(): DateTime
|
||||
{
|
||||
return $this->time;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param DateTime $time
|
||||
*/
|
||||
public function setTime(DateTime $time): void
|
||||
{
|
||||
$this->time = $time;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getSize(): int
|
||||
{
|
||||
return $this->size;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $size
|
||||
*/
|
||||
public function setSize(int $size): void
|
||||
{
|
||||
$this->size = $size;
|
||||
}
|
||||
}
|
||||
19
modules/inpostizi/vendor/maennchen/zipstream-php/src/Option/Method.php
vendored
Normal file
19
modules/inpostizi/vendor/maennchen/zipstream-php/src/Option/Method.php
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace ZipStream\Option;
|
||||
|
||||
use MyCLabs\Enum\Enum;
|
||||
|
||||
/**
|
||||
* Methods enum
|
||||
*
|
||||
* @method static STORE(): Method
|
||||
* @method static DEFLATE(): Method
|
||||
* @psalm-immutable
|
||||
*/
|
||||
class Method extends Enum
|
||||
{
|
||||
const STORE = 0x00;
|
||||
const DEFLATE = 0x08;
|
||||
}
|
||||
22
modules/inpostizi/vendor/maennchen/zipstream-php/src/Option/Version.php
vendored
Normal file
22
modules/inpostizi/vendor/maennchen/zipstream-php/src/Option/Version.php
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace ZipStream\Option;
|
||||
|
||||
use MyCLabs\Enum\Enum;
|
||||
|
||||
/**
|
||||
* Class Version
|
||||
* @package ZipStream\Option
|
||||
*
|
||||
* @method static STORE(): Version
|
||||
* @method static DEFLATE(): Version
|
||||
* @method static ZIP64(): Version
|
||||
* @psalm-immutable
|
||||
*/
|
||||
class Version extends Enum
|
||||
{
|
||||
const STORE = 0x000A; // 1.00
|
||||
const DEFLATE = 0x0014; // 2.00
|
||||
const ZIP64 = 0x002D; // 4.50
|
||||
}
|
||||
253
modules/inpostizi/vendor/maennchen/zipstream-php/src/Stream.php
vendored
Normal file
253
modules/inpostizi/vendor/maennchen/zipstream-php/src/Stream.php
vendored
Normal file
@@ -0,0 +1,253 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace ZipStream;
|
||||
|
||||
use Psr\Http\Message\StreamInterface;
|
||||
use RuntimeException;
|
||||
|
||||
/**
|
||||
* Describes a data stream.
|
||||
*
|
||||
* Typically, an instance will wrap a PHP stream; this interface provides
|
||||
* a wrapper around the most common operations, including serialization of
|
||||
* the entire stream to a string.
|
||||
*/
|
||||
class Stream implements StreamInterface
|
||||
{
|
||||
protected $stream;
|
||||
|
||||
public function __construct($stream)
|
||||
{
|
||||
$this->stream = $stream;
|
||||
}
|
||||
|
||||
/**
|
||||
* Closes the stream and any underlying resources.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function close(): void
|
||||
{
|
||||
if (is_resource($this->stream)) {
|
||||
fclose($this->stream);
|
||||
}
|
||||
$this->detach();
|
||||
}
|
||||
|
||||
/**
|
||||
* Separates any underlying resources from the stream.
|
||||
*
|
||||
* After the stream has been detached, the stream is in an unusable state.
|
||||
*
|
||||
* @return resource|null Underlying PHP stream, if any
|
||||
*/
|
||||
public function detach()
|
||||
{
|
||||
$result = $this->stream;
|
||||
$this->stream = null;
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reads all data from the stream into a string, from the beginning to end.
|
||||
*
|
||||
* This method MUST attempt to seek to the beginning of the stream before
|
||||
* reading data and read the stream until the end is reached.
|
||||
*
|
||||
* Warning: This could attempt to load a large amount of data into memory.
|
||||
*
|
||||
* This method MUST NOT raise an exception in order to conform with PHP's
|
||||
* string casting operations.
|
||||
*
|
||||
* @see http://php.net/manual/en/language.oop5.magic.php#object.tostring
|
||||
* @return string
|
||||
*/
|
||||
public function __toString(): string
|
||||
{
|
||||
try {
|
||||
$this->seek(0);
|
||||
} catch (\RuntimeException $e) {}
|
||||
return (string) stream_get_contents($this->stream);
|
||||
}
|
||||
|
||||
/**
|
||||
* Seek to a position in the stream.
|
||||
*
|
||||
* @link http://www.php.net/manual/en/function.fseek.php
|
||||
* @param int $offset Stream offset
|
||||
* @param int $whence Specifies how the cursor position will be calculated
|
||||
* based on the seek offset. Valid values are identical to the built-in
|
||||
* PHP $whence values for `fseek()`. SEEK_SET: Set position equal to
|
||||
* offset bytes SEEK_CUR: Set position to current location plus offset
|
||||
* SEEK_END: Set position to end-of-stream plus offset.
|
||||
* @throws \RuntimeException on failure.
|
||||
*/
|
||||
public function seek($offset, $whence = SEEK_SET): void
|
||||
{
|
||||
if (!$this->isSeekable()) {
|
||||
throw new RuntimeException;
|
||||
}
|
||||
if (fseek($this->stream, $offset, $whence) !== 0) {
|
||||
throw new RuntimeException;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether or not the stream is seekable.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isSeekable(): bool
|
||||
{
|
||||
return (bool)$this->getMetadata('seekable');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get stream metadata as an associative array or retrieve a specific key.
|
||||
*
|
||||
* The keys returned are identical to the keys returned from PHP's
|
||||
* stream_get_meta_data() function.
|
||||
*
|
||||
* @link http://php.net/manual/en/function.stream-get-meta-data.php
|
||||
* @param string $key Specific metadata to retrieve.
|
||||
* @return array|mixed|null Returns an associative array if no key is
|
||||
* provided. Returns a specific key value if a key is provided and the
|
||||
* value is found, or null if the key is not found.
|
||||
*/
|
||||
public function getMetadata($key = null)
|
||||
{
|
||||
$metadata = stream_get_meta_data($this->stream);
|
||||
return $key !== null ? @$metadata[$key] : $metadata;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the size of the stream if known.
|
||||
*
|
||||
* @return int|null Returns the size in bytes if known, or null if unknown.
|
||||
*/
|
||||
public function getSize(): ?int
|
||||
{
|
||||
$stats = fstat($this->stream);
|
||||
return $stats['size'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current position of the file read/write pointer
|
||||
*
|
||||
* @return int Position of the file pointer
|
||||
* @throws \RuntimeException on error.
|
||||
*/
|
||||
public function tell(): int
|
||||
{
|
||||
$position = ftell($this->stream);
|
||||
if ($position === false) {
|
||||
throw new RuntimeException;
|
||||
}
|
||||
return $position;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the stream is at the end of the stream.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function eof(): bool
|
||||
{
|
||||
return feof($this->stream);
|
||||
}
|
||||
|
||||
/**
|
||||
* Seek to the beginning of the stream.
|
||||
*
|
||||
* If the stream is not seekable, this method will raise an exception;
|
||||
* otherwise, it will perform a seek(0).
|
||||
*
|
||||
* @see seek()
|
||||
* @link http://www.php.net/manual/en/function.fseek.php
|
||||
* @throws \RuntimeException on failure.
|
||||
*/
|
||||
public function rewind(): void
|
||||
{
|
||||
$this->seek(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Write data to the stream.
|
||||
*
|
||||
* @param string $string The string that is to be written.
|
||||
* @return int Returns the number of bytes written to the stream.
|
||||
* @throws \RuntimeException on failure.
|
||||
*/
|
||||
public function write($string): int
|
||||
{
|
||||
if (!$this->isWritable()) {
|
||||
throw new RuntimeException;
|
||||
}
|
||||
if (fwrite($this->stream, $string) === false) {
|
||||
throw new RuntimeException;
|
||||
}
|
||||
return \mb_strlen($string);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether or not the stream is writable.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isWritable(): bool
|
||||
{
|
||||
return preg_match('/[waxc+]/', $this->getMetadata('mode')) === 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Read data from the stream.
|
||||
*
|
||||
* @param int $length Read up to $length bytes from the object and return
|
||||
* them. Fewer than $length bytes may be returned if underlying stream
|
||||
* call returns fewer bytes.
|
||||
* @return string Returns the data read from the stream, or an empty string
|
||||
* if no bytes are available.
|
||||
* @throws \RuntimeException if an error occurs.
|
||||
*/
|
||||
public function read($length): string
|
||||
{
|
||||
if (!$this->isReadable()) {
|
||||
throw new RuntimeException;
|
||||
}
|
||||
$result = fread($this->stream, $length);
|
||||
if ($result === false) {
|
||||
throw new RuntimeException;
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether or not the stream is readable.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isReadable(): bool
|
||||
{
|
||||
return preg_match('/[r+]/', $this->getMetadata('mode')) === 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the remaining contents in a string
|
||||
*
|
||||
* @return string
|
||||
* @throws \RuntimeException if unable to read or an error occurs while
|
||||
* reading.
|
||||
*/
|
||||
public function getContents(): string
|
||||
{
|
||||
if (!$this->isReadable()) {
|
||||
throw new RuntimeException;
|
||||
}
|
||||
$result = stream_get_contents($this->stream);
|
||||
if ($result === false) {
|
||||
throw new RuntimeException;
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
599
modules/inpostizi/vendor/maennchen/zipstream-php/src/ZipStream.php
vendored
Normal file
599
modules/inpostizi/vendor/maennchen/zipstream-php/src/ZipStream.php
vendored
Normal file
@@ -0,0 +1,599 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace ZipStream;
|
||||
|
||||
use Psr\Http\Message\StreamInterface;
|
||||
use ZipStream\Exception\OverflowException;
|
||||
use ZipStream\Option\Archive as ArchiveOptions;
|
||||
use ZipStream\Option\File as FileOptions;
|
||||
use ZipStream\Option\Version;
|
||||
|
||||
/**
|
||||
* ZipStream
|
||||
*
|
||||
* Streamed, dynamically generated zip archives.
|
||||
*
|
||||
* Usage:
|
||||
*
|
||||
* Streaming zip archives is a simple, three-step process:
|
||||
*
|
||||
* 1. Create the zip stream:
|
||||
*
|
||||
* $zip = new ZipStream('example.zip');
|
||||
*
|
||||
* 2. Add one or more files to the archive:
|
||||
*
|
||||
* * add first file
|
||||
* $data = file_get_contents('some_file.gif');
|
||||
* $zip->addFile('some_file.gif', $data);
|
||||
*
|
||||
* * add second file
|
||||
* $data = file_get_contents('some_file.gif');
|
||||
* $zip->addFile('another_file.png', $data);
|
||||
*
|
||||
* 3. Finish the zip stream:
|
||||
*
|
||||
* $zip->finish();
|
||||
*
|
||||
* You can also add an archive comment, add comments to individual files,
|
||||
* and adjust the timestamp of files. See the API documentation for each
|
||||
* method below for additional information.
|
||||
*
|
||||
* Example:
|
||||
*
|
||||
* // create a new zip stream object
|
||||
* $zip = new ZipStream('some_files.zip');
|
||||
*
|
||||
* // list of local files
|
||||
* $files = array('foo.txt', 'bar.jpg');
|
||||
*
|
||||
* // read and add each file to the archive
|
||||
* foreach ($files as $path)
|
||||
* $zip->addFile($path, file_get_contents($path));
|
||||
*
|
||||
* // write archive footer to stream
|
||||
* $zip->finish();
|
||||
*/
|
||||
class ZipStream
|
||||
{
|
||||
/**
|
||||
* This number corresponds to the ZIP version/OS used (2 bytes)
|
||||
* From: https://www.iana.org/assignments/media-types/application/zip
|
||||
* The upper byte (leftmost one) indicates the host system (OS) for the
|
||||
* file. Software can use this information to determine
|
||||
* the line record format for text files etc. The current
|
||||
* mappings are:
|
||||
*
|
||||
* 0 - MS-DOS and OS/2 (F.A.T. file systems)
|
||||
* 1 - Amiga 2 - VAX/VMS
|
||||
* 3 - *nix 4 - VM/CMS
|
||||
* 5 - Atari ST 6 - OS/2 H.P.F.S.
|
||||
* 7 - Macintosh 8 - Z-System
|
||||
* 9 - CP/M 10 thru 255 - unused
|
||||
*
|
||||
* The lower byte (rightmost one) indicates the version number of the
|
||||
* software used to encode the file. The value/10
|
||||
* indicates the major version number, and the value
|
||||
* mod 10 is the minor version number.
|
||||
* Here we are using 6 for the OS, indicating OS/2 H.P.F.S.
|
||||
* to prevent file permissions issues upon extract (see #84)
|
||||
* 0x603 is 00000110 00000011 in binary, so 6 and 3
|
||||
*/
|
||||
const ZIP_VERSION_MADE_BY = 0x603;
|
||||
|
||||
/**
|
||||
* The following signatures end with 0x4b50, which in ASCII is PK,
|
||||
* the initials of the inventor Phil Katz.
|
||||
* See https://en.wikipedia.org/wiki/Zip_(file_format)#File_headers
|
||||
*/
|
||||
const FILE_HEADER_SIGNATURE = 0x04034b50;
|
||||
const CDR_FILE_SIGNATURE = 0x02014b50;
|
||||
const CDR_EOF_SIGNATURE = 0x06054b50;
|
||||
const DATA_DESCRIPTOR_SIGNATURE = 0x08074b50;
|
||||
const ZIP64_CDR_EOF_SIGNATURE = 0x06064b50;
|
||||
const ZIP64_CDR_LOCATOR_SIGNATURE = 0x07064b50;
|
||||
|
||||
/**
|
||||
* Global Options
|
||||
*
|
||||
* @var ArchiveOptions
|
||||
*/
|
||||
public $opt;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
public $files = [];
|
||||
|
||||
/**
|
||||
* @var Bigint
|
||||
*/
|
||||
public $cdr_ofs;
|
||||
|
||||
/**
|
||||
* @var Bigint
|
||||
*/
|
||||
public $ofs;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
protected $need_headers;
|
||||
|
||||
/**
|
||||
* @var null|String
|
||||
*/
|
||||
protected $output_name;
|
||||
|
||||
/**
|
||||
* Create a new ZipStream object.
|
||||
*
|
||||
* Parameters:
|
||||
*
|
||||
* @param String $name - Name of output file (optional).
|
||||
* @param ArchiveOptions $opt - Archive Options
|
||||
*
|
||||
* Large File Support:
|
||||
*
|
||||
* By default, the method addFileFromPath() will send send files
|
||||
* larger than 20 megabytes along raw rather than attempting to
|
||||
* compress them. You can change both the maximum size and the
|
||||
* compression behavior using the largeFile* options above, with the
|
||||
* following caveats:
|
||||
*
|
||||
* * For "small" files (e.g. files smaller than largeFileSize), the
|
||||
* memory use can be up to twice that of the actual file. In other
|
||||
* words, adding a 10 megabyte file to the archive could potentially
|
||||
* occupy 20 megabytes of memory.
|
||||
*
|
||||
* * Enabling compression on large files (e.g. files larger than
|
||||
* large_file_size) is extremely slow, because ZipStream has to pass
|
||||
* over the large file once to calculate header information, and then
|
||||
* again to compress and send the actual data.
|
||||
*
|
||||
* Examples:
|
||||
*
|
||||
* // create a new zip file named 'foo.zip'
|
||||
* $zip = new ZipStream('foo.zip');
|
||||
*
|
||||
* // create a new zip file named 'bar.zip' with a comment
|
||||
* $opt->setComment = 'this is a comment for the zip file.';
|
||||
* $zip = new ZipStream('bar.zip', $opt);
|
||||
*
|
||||
* Notes:
|
||||
*
|
||||
* In order to let this library send HTTP headers, a filename must be given
|
||||
* _and_ the option `sendHttpHeaders` must be `true`. This behavior is to
|
||||
* allow software to send its own headers (including the filename), and
|
||||
* still use this library.
|
||||
*/
|
||||
public function __construct(?string $name = null, ?ArchiveOptions $opt = null)
|
||||
{
|
||||
$this->opt = $opt ?: new ArchiveOptions();
|
||||
|
||||
$this->output_name = $name;
|
||||
$this->need_headers = $name && $this->opt->isSendHttpHeaders();
|
||||
|
||||
$this->cdr_ofs = new Bigint();
|
||||
$this->ofs = new Bigint();
|
||||
}
|
||||
|
||||
/**
|
||||
* addFile
|
||||
*
|
||||
* Add a file to the archive.
|
||||
*
|
||||
* @param String $name - path of file in archive (including directory).
|
||||
* @param String $data - contents of file
|
||||
* @param FileOptions $options
|
||||
*
|
||||
* File Options:
|
||||
* time - Last-modified timestamp (seconds since the epoch) of
|
||||
* this file. Defaults to the current time.
|
||||
* comment - Comment related to this file.
|
||||
* method - Storage method for file ("store" or "deflate")
|
||||
*
|
||||
* Examples:
|
||||
*
|
||||
* // add a file named 'foo.txt'
|
||||
* $data = file_get_contents('foo.txt');
|
||||
* $zip->addFile('foo.txt', $data);
|
||||
*
|
||||
* // add a file named 'bar.jpg' with a comment and a last-modified
|
||||
* // time of two hours ago
|
||||
* $data = file_get_contents('bar.jpg');
|
||||
* $opt->setTime = time() - 2 * 3600;
|
||||
* $opt->setComment = 'this is a comment about bar.jpg';
|
||||
* $zip->addFile('bar.jpg', $data, $opt);
|
||||
*/
|
||||
public function addFile(string $name, string $data, ?FileOptions $options = null): void
|
||||
{
|
||||
$options = $options ?: new FileOptions();
|
||||
$options->defaultTo($this->opt);
|
||||
|
||||
$file = new File($this, $name, $options);
|
||||
$file->processData($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* addFileFromPath
|
||||
*
|
||||
* Add a file at path to the archive.
|
||||
*
|
||||
* Note that large files may be compressed differently than smaller
|
||||
* files; see the "Large File Support" section above for more
|
||||
* information.
|
||||
*
|
||||
* @param String $name - name of file in archive (including directory path).
|
||||
* @param String $path - path to file on disk (note: paths should be encoded using
|
||||
* UNIX-style forward slashes -- e.g '/path/to/some/file').
|
||||
* @param FileOptions $options
|
||||
*
|
||||
* File Options:
|
||||
* time - Last-modified timestamp (seconds since the epoch) of
|
||||
* this file. Defaults to the current time.
|
||||
* comment - Comment related to this file.
|
||||
* method - Storage method for file ("store" or "deflate")
|
||||
*
|
||||
* Examples:
|
||||
*
|
||||
* // add a file named 'foo.txt' from the local file '/tmp/foo.txt'
|
||||
* $zip->addFileFromPath('foo.txt', '/tmp/foo.txt');
|
||||
*
|
||||
* // add a file named 'bigfile.rar' from the local file
|
||||
* // '/usr/share/bigfile.rar' with a comment and a last-modified
|
||||
* // time of two hours ago
|
||||
* $path = '/usr/share/bigfile.rar';
|
||||
* $opt->setTime = time() - 2 * 3600;
|
||||
* $opt->setComment = 'this is a comment about bar.jpg';
|
||||
* $zip->addFileFromPath('bigfile.rar', $path, $opt);
|
||||
*
|
||||
* @return void
|
||||
* @throws \ZipStream\Exception\FileNotFoundException
|
||||
* @throws \ZipStream\Exception\FileNotReadableException
|
||||
*/
|
||||
public function addFileFromPath(string $name, string $path, ?FileOptions $options = null): void
|
||||
{
|
||||
$options = $options ?: new FileOptions();
|
||||
$options->defaultTo($this->opt);
|
||||
|
||||
$file = new File($this, $name, $options);
|
||||
$file->processPath($path);
|
||||
}
|
||||
|
||||
/**
|
||||
* addFileFromStream
|
||||
*
|
||||
* Add an open stream to the archive.
|
||||
*
|
||||
* @param String $name - path of file in archive (including directory).
|
||||
* @param resource $stream - contents of file as a stream resource
|
||||
* @param FileOptions $options
|
||||
*
|
||||
* File Options:
|
||||
* time - Last-modified timestamp (seconds since the epoch) of
|
||||
* this file. Defaults to the current time.
|
||||
* comment - Comment related to this file.
|
||||
*
|
||||
* Examples:
|
||||
*
|
||||
* // create a temporary file stream and write text to it
|
||||
* $fp = tmpfile();
|
||||
* fwrite($fp, 'The quick brown fox jumped over the lazy dog.');
|
||||
*
|
||||
* // add a file named 'streamfile.txt' from the content of the stream
|
||||
* $x->addFileFromStream('streamfile.txt', $fp);
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function addFileFromStream(string $name, $stream, ?FileOptions $options = null): void
|
||||
{
|
||||
$options = $options ?: new FileOptions();
|
||||
$options->defaultTo($this->opt);
|
||||
|
||||
$file = new File($this, $name, $options);
|
||||
$file->processStream(new DeflateStream($stream));
|
||||
}
|
||||
|
||||
/**
|
||||
* addFileFromPsr7Stream
|
||||
*
|
||||
* Add an open stream to the archive.
|
||||
*
|
||||
* @param String $name - path of file in archive (including directory).
|
||||
* @param StreamInterface $stream - contents of file as a stream resource
|
||||
* @param FileOptions $options
|
||||
*
|
||||
* File Options:
|
||||
* time - Last-modified timestamp (seconds since the epoch) of
|
||||
* this file. Defaults to the current time.
|
||||
* comment - Comment related to this file.
|
||||
*
|
||||
* Examples:
|
||||
*
|
||||
* // create a temporary file stream and write text to it
|
||||
* $fp = tmpfile();
|
||||
* fwrite($fp, 'The quick brown fox jumped over the lazy dog.');
|
||||
*
|
||||
* // add a file named 'streamfile.txt' from the content of the stream
|
||||
* $x->addFileFromPsr7Stream('streamfile.txt', $fp);
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function addFileFromPsr7Stream(
|
||||
string $name,
|
||||
StreamInterface $stream,
|
||||
?FileOptions $options = null
|
||||
): void {
|
||||
$options = $options ?: new FileOptions();
|
||||
$options->defaultTo($this->opt);
|
||||
|
||||
$file = new File($this, $name, $options);
|
||||
$file->processStream($stream);
|
||||
}
|
||||
|
||||
/**
|
||||
* finish
|
||||
*
|
||||
* Write zip footer to stream.
|
||||
*
|
||||
* Example:
|
||||
*
|
||||
* // add a list of files to the archive
|
||||
* $files = array('foo.txt', 'bar.jpg');
|
||||
* foreach ($files as $path)
|
||||
* $zip->addFile($path, file_get_contents($path));
|
||||
*
|
||||
* // write footer to stream
|
||||
* $zip->finish();
|
||||
* @return void
|
||||
*
|
||||
* @throws OverflowException
|
||||
*/
|
||||
public function finish(): void
|
||||
{
|
||||
// add trailing cdr file records
|
||||
foreach ($this->files as $cdrFile) {
|
||||
$this->send($cdrFile);
|
||||
$this->cdr_ofs = $this->cdr_ofs->add(Bigint::init(strlen($cdrFile)));
|
||||
}
|
||||
|
||||
// Add 64bit headers (if applicable)
|
||||
if (count($this->files) >= 0xFFFF ||
|
||||
$this->cdr_ofs->isOver32() ||
|
||||
$this->ofs->isOver32()) {
|
||||
if (!$this->opt->isEnableZip64()) {
|
||||
throw new OverflowException();
|
||||
}
|
||||
|
||||
$this->addCdr64Eof();
|
||||
$this->addCdr64Locator();
|
||||
}
|
||||
|
||||
// add trailing cdr eof record
|
||||
$this->addCdrEof();
|
||||
|
||||
// The End
|
||||
$this->clear();
|
||||
}
|
||||
|
||||
/**
|
||||
* Send ZIP64 CDR EOF (Central Directory Record End-of-File) record.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function addCdr64Eof(): void
|
||||
{
|
||||
$num_files = count($this->files);
|
||||
$cdr_length = $this->cdr_ofs;
|
||||
$cdr_offset = $this->ofs;
|
||||
|
||||
$fields = [
|
||||
['V', static::ZIP64_CDR_EOF_SIGNATURE], // ZIP64 end of central file header signature
|
||||
['P', 44], // Length of data below this header (length of block - 12) = 44
|
||||
['v', static::ZIP_VERSION_MADE_BY], // Made by version
|
||||
['v', Version::ZIP64], // Extract by version
|
||||
['V', 0x00], // disk number
|
||||
['V', 0x00], // no of disks
|
||||
['P', $num_files], // no of entries on disk
|
||||
['P', $num_files], // no of entries in cdr
|
||||
['P', $cdr_length], // CDR size
|
||||
['P', $cdr_offset], // CDR offset
|
||||
];
|
||||
|
||||
$ret = static::packFields($fields);
|
||||
$this->send($ret);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a format string and argument list for pack(), then call
|
||||
* pack() and return the result.
|
||||
*
|
||||
* @param array $fields
|
||||
* @return string
|
||||
*/
|
||||
public static function packFields(array $fields): string
|
||||
{
|
||||
$fmt = '';
|
||||
$args = [];
|
||||
|
||||
// populate format string and argument list
|
||||
foreach ($fields as [$format, $value]) {
|
||||
if ($format === 'P') {
|
||||
$fmt .= 'VV';
|
||||
if ($value instanceof Bigint) {
|
||||
$args[] = $value->getLow32();
|
||||
$args[] = $value->getHigh32();
|
||||
} else {
|
||||
$args[] = $value;
|
||||
$args[] = 0;
|
||||
}
|
||||
} else {
|
||||
if ($value instanceof Bigint) {
|
||||
$value = $value->getLow32();
|
||||
}
|
||||
$fmt .= $format;
|
||||
$args[] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
// prepend format string to argument list
|
||||
array_unshift($args, $fmt);
|
||||
|
||||
// build output string from header and compressed data
|
||||
return pack(...$args);
|
||||
}
|
||||
|
||||
/**
|
||||
* Send string, sending HTTP headers if necessary.
|
||||
* Flush output after write if configure option is set.
|
||||
*
|
||||
* @param String $str
|
||||
* @return void
|
||||
*/
|
||||
public function send(string $str): void
|
||||
{
|
||||
if ($this->need_headers) {
|
||||
$this->sendHttpHeaders();
|
||||
}
|
||||
$this->need_headers = false;
|
||||
|
||||
fwrite($this->opt->getOutputStream(), $str);
|
||||
|
||||
if ($this->opt->isFlushOutput()) {
|
||||
// flush output buffer if it is on and flushable
|
||||
$status = ob_get_status();
|
||||
if (isset($status['flags']) && ($status['flags'] & PHP_OUTPUT_HANDLER_FLUSHABLE)) {
|
||||
ob_flush();
|
||||
}
|
||||
|
||||
// Flush system buffers after flushing userspace output buffer
|
||||
flush();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Send HTTP headers for this stream.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function sendHttpHeaders(): void
|
||||
{
|
||||
// grab content disposition
|
||||
$disposition = $this->opt->getContentDisposition();
|
||||
|
||||
if ($this->output_name) {
|
||||
// Various different browsers dislike various characters here. Strip them all for safety.
|
||||
$safe_output = trim(str_replace(['"', "'", '\\', ';', "\n", "\r"], '', $this->output_name));
|
||||
|
||||
// Check if we need to UTF-8 encode the filename
|
||||
$urlencoded = rawurlencode($safe_output);
|
||||
$disposition .= "; filename*=UTF-8''{$urlencoded}";
|
||||
}
|
||||
|
||||
$headers = array(
|
||||
'Content-Type' => $this->opt->getContentType(),
|
||||
'Content-Disposition' => $disposition,
|
||||
'Pragma' => 'public',
|
||||
'Cache-Control' => 'public, must-revalidate',
|
||||
'Content-Transfer-Encoding' => 'binary'
|
||||
);
|
||||
|
||||
$call = $this->opt->getHttpHeaderCallback();
|
||||
foreach ($headers as $key => $val) {
|
||||
$call("$key: $val");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Send ZIP64 CDR Locator (Central Directory Record Locator) record.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function addCdr64Locator(): void
|
||||
{
|
||||
$cdr_offset = $this->ofs->add($this->cdr_ofs);
|
||||
|
||||
$fields = [
|
||||
['V', static::ZIP64_CDR_LOCATOR_SIGNATURE], // ZIP64 end of central file header signature
|
||||
['V', 0x00], // Disc number containing CDR64EOF
|
||||
['P', $cdr_offset], // CDR offset
|
||||
['V', 1], // Total number of disks
|
||||
];
|
||||
|
||||
$ret = static::packFields($fields);
|
||||
$this->send($ret);
|
||||
}
|
||||
|
||||
/**
|
||||
* Send CDR EOF (Central Directory Record End-of-File) record.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function addCdrEof(): void
|
||||
{
|
||||
$num_files = count($this->files);
|
||||
$cdr_length = $this->cdr_ofs;
|
||||
$cdr_offset = $this->ofs;
|
||||
|
||||
// grab comment (if specified)
|
||||
$comment = $this->opt->getComment();
|
||||
|
||||
$fields = [
|
||||
['V', static::CDR_EOF_SIGNATURE], // end of central file header signature
|
||||
['v', 0x00], // disk number
|
||||
['v', 0x00], // no of disks
|
||||
['v', min($num_files, 0xFFFF)], // no of entries on disk
|
||||
['v', min($num_files, 0xFFFF)], // no of entries in cdr
|
||||
['V', $cdr_length->getLowFF()], // CDR size
|
||||
['V', $cdr_offset->getLowFF()], // CDR offset
|
||||
['v', strlen($comment)], // Zip Comment size
|
||||
];
|
||||
|
||||
$ret = static::packFields($fields) . $comment;
|
||||
$this->send($ret);
|
||||
}
|
||||
|
||||
/**
|
||||
* Clear all internal variables. Note that the stream object is not
|
||||
* usable after this.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function clear(): void
|
||||
{
|
||||
$this->files = [];
|
||||
$this->ofs = new Bigint();
|
||||
$this->cdr_ofs = new Bigint();
|
||||
$this->opt = new ArchiveOptions();
|
||||
}
|
||||
|
||||
/**
|
||||
* Is this file larger than large_file_size?
|
||||
*
|
||||
* @param string $path
|
||||
* @return bool
|
||||
*/
|
||||
public function isLargeFile(string $path): bool
|
||||
{
|
||||
if (!$this->opt->isStatFiles()) {
|
||||
return false;
|
||||
}
|
||||
$stat = stat($path);
|
||||
return $stat['size'] > $this->opt->getLargeFileSize();
|
||||
}
|
||||
|
||||
/**
|
||||
* Save file attributes for trailing CDR record.
|
||||
*
|
||||
* @param File $file
|
||||
* @return void
|
||||
*/
|
||||
public function addToCdr(File $file): void
|
||||
{
|
||||
$file->ofs = $this->ofs;
|
||||
$this->ofs = $this->ofs->add($file->getTotalLength());
|
||||
$this->files[] = $file->getCdrFile();
|
||||
}
|
||||
}
|
||||
65
modules/inpostizi/vendor/maennchen/zipstream-php/test/BigintTest.php
vendored
Normal file
65
modules/inpostizi/vendor/maennchen/zipstream-php/test/BigintTest.php
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace BigintTest;
|
||||
|
||||
use OverflowException;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use ZipStream\Bigint;
|
||||
|
||||
class BigintTest extends TestCase
|
||||
{
|
||||
public function testConstruct(): void
|
||||
{
|
||||
$bigint = new Bigint(0x12345678);
|
||||
$this->assertSame('0x0000000012345678', $bigint->getHex64());
|
||||
$this->assertSame(0x12345678, $bigint->getLow32());
|
||||
$this->assertSame(0, $bigint->getHigh32());
|
||||
}
|
||||
|
||||
public function testConstructLarge(): void
|
||||
{
|
||||
$bigint = new Bigint(0x87654321);
|
||||
$this->assertSame('0x0000000087654321', $bigint->getHex64());
|
||||
$this->assertSame('87654321', bin2hex(pack('N', $bigint->getLow32())));
|
||||
$this->assertSame(0, $bigint->getHigh32());
|
||||
}
|
||||
|
||||
public function testAddSmallValue(): void
|
||||
{
|
||||
$bigint = new Bigint(1);
|
||||
$bigint = $bigint->add(Bigint::init(2));
|
||||
$this->assertSame(3, $bigint->getLow32());
|
||||
$this->assertFalse($bigint->isOver32());
|
||||
$this->assertTrue($bigint->isOver32(true));
|
||||
$this->assertSame($bigint->getLowFF(), (float)$bigint->getLow32());
|
||||
$this->assertSame($bigint->getLowFF(true), (float)0xFFFFFFFF);
|
||||
}
|
||||
|
||||
public function testAddWithOverflowAtLowestByte(): void
|
||||
{
|
||||
$bigint = new Bigint(0xFF);
|
||||
$bigint = $bigint->add(Bigint::init(0x01));
|
||||
$this->assertSame(0x100, $bigint->getLow32());
|
||||
}
|
||||
|
||||
public function testAddWithOverflowAtInteger32(): void
|
||||
{
|
||||
$bigint = new Bigint(0xFFFFFFFE);
|
||||
$this->assertFalse($bigint->isOver32());
|
||||
$bigint = $bigint->add(Bigint::init(0x01));
|
||||
$this->assertTrue($bigint->isOver32());
|
||||
$bigint = $bigint->add(Bigint::init(0x01));
|
||||
$this->assertSame('0x0000000100000000', $bigint->getHex64());
|
||||
$this->assertTrue($bigint->isOver32());
|
||||
$this->assertSame((float)0xFFFFFFFF, $bigint->getLowFF());
|
||||
}
|
||||
|
||||
public function testAddWithOverflowAtInteger64(): void
|
||||
{
|
||||
$bigint = Bigint::fromLowHigh(0xFFFFFFFF, 0xFFFFFFFF);
|
||||
$this->assertSame('0xFFFFFFFFFFFFFFFF', $bigint->getHex64());
|
||||
$this->expectException(OverflowException::class);
|
||||
$bigint->add(Bigint::init(1));
|
||||
}
|
||||
}
|
||||
586
modules/inpostizi/vendor/maennchen/zipstream-php/test/ZipStreamTest.php
vendored
Normal file
586
modules/inpostizi/vendor/maennchen/zipstream-php/test/ZipStreamTest.php
vendored
Normal file
@@ -0,0 +1,586 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace ZipStreamTest;
|
||||
|
||||
use org\bovigo\vfs\vfsStream;
|
||||
use GuzzleHttp\Psr7\Response;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use ZipStream\File;
|
||||
use ZipStream\Option\Archive as ArchiveOptions;
|
||||
use ZipStream\Option\File as FileOptions;
|
||||
use ZipStream\Option\Method;
|
||||
use ZipStream\ZipStream;
|
||||
|
||||
/**
|
||||
* Test Class for the Main ZipStream CLass
|
||||
*/
|
||||
class ZipStreamTest extends TestCase
|
||||
{
|
||||
const OSX_ARCHIVE_UTILITY =
|
||||
'/System/Library/CoreServices/Applications/Archive Utility.app/Contents/MacOS/Archive Utility';
|
||||
|
||||
public function testFileNotFoundException(): void
|
||||
{
|
||||
$this->expectException(\ZipStream\Exception\FileNotFoundException::class);
|
||||
// Get ZipStream Object
|
||||
$zip = new ZipStream();
|
||||
|
||||
// Trigger error by adding a file which doesn't exist
|
||||
$zip->addFileFromPath('foobar.php', '/foo/bar/foobar.php');
|
||||
}
|
||||
|
||||
public function testFileNotReadableException(): void
|
||||
{
|
||||
// create new virtual filesystem
|
||||
$root = vfsStream::setup('vfs');
|
||||
// create a virtual file with no permissions
|
||||
$file = vfsStream::newFile('foo.txt', 0000)->at($root)->setContent('bar');
|
||||
$zip = new ZipStream();
|
||||
$this->expectException(\ZipStream\Exception\FileNotReadableException::class);
|
||||
$zip->addFileFromPath('foo.txt', $file->url());
|
||||
}
|
||||
|
||||
public function testDostime(): void
|
||||
{
|
||||
// Allows testing of protected method
|
||||
$class = new \ReflectionClass(File::class);
|
||||
$method = $class->getMethod('dostime');
|
||||
$method->setAccessible(true);
|
||||
|
||||
$this->assertSame($method->invoke(null, 1416246368), 1165069764);
|
||||
|
||||
// January 1 1980 - DOS Epoch.
|
||||
$this->assertSame($method->invoke(null, 315532800), 2162688);
|
||||
|
||||
// January 1 1970 -> January 1 1980 due to minimum DOS Epoch. @todo Throw Exception?
|
||||
$this->assertSame($method->invoke(null, 0), 2162688);
|
||||
}
|
||||
|
||||
public function testAddFile(): void
|
||||
{
|
||||
[$tmp, $stream] = $this->getTmpFileStream();
|
||||
|
||||
$options = new ArchiveOptions();
|
||||
$options->setOutputStream($stream);
|
||||
|
||||
$zip = new ZipStream(null, $options);
|
||||
|
||||
$zip->addFile('sample.txt', 'Sample String Data');
|
||||
$zip->addFile('test/sample.txt', 'More Simple Sample Data');
|
||||
|
||||
$zip->finish();
|
||||
fclose($stream);
|
||||
|
||||
$tmpDir = $this->validateAndExtractZip($tmp);
|
||||
|
||||
$files = $this->getRecursiveFileList($tmpDir);
|
||||
$this->assertEquals(['sample.txt', 'test/sample.txt'], $files);
|
||||
|
||||
$this->assertStringEqualsFile($tmpDir . '/sample.txt', 'Sample String Data');
|
||||
$this->assertStringEqualsFile($tmpDir . '/test/sample.txt', 'More Simple Sample Data');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
protected function getTmpFileStream(): array
|
||||
{
|
||||
$tmp = tempnam(sys_get_temp_dir(), 'zipstreamtest');
|
||||
$stream = fopen($tmp, 'wb+');
|
||||
|
||||
return array($tmp, $stream);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $tmp
|
||||
* @return string
|
||||
*/
|
||||
protected function validateAndExtractZip($tmp): string
|
||||
{
|
||||
$tmpDir = $this->getTmpDir();
|
||||
|
||||
$zipArch = new \ZipArchive;
|
||||
$res = $zipArch->open($tmp);
|
||||
|
||||
if ($res !== true) {
|
||||
$this->fail("Failed to open {$tmp}. Code: $res");
|
||||
|
||||
return $tmpDir;
|
||||
}
|
||||
|
||||
$this->assertEquals(0, $zipArch->status);
|
||||
$this->assertEquals(0, $zipArch->statusSys);
|
||||
|
||||
$zipArch->extractTo($tmpDir);
|
||||
$zipArch->close();
|
||||
|
||||
return $tmpDir;
|
||||
}
|
||||
|
||||
protected function getTmpDir(): string
|
||||
{
|
||||
$tmp = tempnam(sys_get_temp_dir(), 'zipstreamtest');
|
||||
unlink($tmp);
|
||||
mkdir($tmp) or $this->fail('Failed to make directory');
|
||||
|
||||
return $tmp;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $path
|
||||
* @return string[]
|
||||
*/
|
||||
protected function getRecursiveFileList(string $path): array
|
||||
{
|
||||
$data = array();
|
||||
$path = (string)realpath($path);
|
||||
$files = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($path));
|
||||
|
||||
$pathLen = strlen($path);
|
||||
foreach ($files as $file) {
|
||||
$filePath = $file->getRealPath();
|
||||
if (!is_dir($filePath)) {
|
||||
$data[] = substr($filePath, $pathLen + 1);
|
||||
}
|
||||
}
|
||||
|
||||
sort($data);
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
public function testAddFileUtf8NameComment(): void
|
||||
{
|
||||
[$tmp, $stream] = $this->getTmpFileStream();
|
||||
|
||||
$options = new ArchiveOptions();
|
||||
$options->setOutputStream($stream);
|
||||
|
||||
$zip = new ZipStream(null, $options);
|
||||
|
||||
$name = 'árvíztűrő tükörfúrógép.txt';
|
||||
$content = 'Sample String Data';
|
||||
$comment =
|
||||
'Filename has every special characters ' .
|
||||
'from Hungarian language in lowercase. ' .
|
||||
'In uppercase: ÁÍŰŐÜÖÚÓÉ';
|
||||
|
||||
$fileOptions = new FileOptions();
|
||||
$fileOptions->setComment($comment);
|
||||
|
||||
$zip->addFile($name, $content, $fileOptions);
|
||||
$zip->finish();
|
||||
fclose($stream);
|
||||
|
||||
$tmpDir = $this->validateAndExtractZip($tmp);
|
||||
|
||||
$files = $this->getRecursiveFileList($tmpDir);
|
||||
$this->assertEquals(array($name), $files);
|
||||
$this->assertStringEqualsFile($tmpDir . '/' . $name, $content);
|
||||
|
||||
$zipArch = new \ZipArchive();
|
||||
$zipArch->open($tmp);
|
||||
$this->assertEquals($comment, $zipArch->getCommentName($name));
|
||||
}
|
||||
|
||||
public function testAddFileUtf8NameNonUtfComment(): void
|
||||
{
|
||||
$this->expectException(\ZipStream\Exception\EncodingException::class);
|
||||
|
||||
$stream = $this->getTmpFileStream()[1];
|
||||
|
||||
$options = new ArchiveOptions();
|
||||
$options->setOutputStream($stream);
|
||||
|
||||
$zip = new ZipStream(null, $options);
|
||||
|
||||
$name = 'á.txt';
|
||||
$content = 'any';
|
||||
$comment = 'á';
|
||||
|
||||
$fileOptions = new FileOptions();
|
||||
$fileOptions->setComment(mb_convert_encoding($comment, 'ISO-8859-2', 'UTF-8'));
|
||||
|
||||
$zip->addFile($name, $content, $fileOptions);
|
||||
}
|
||||
|
||||
public function testAddFileNonUtf8NameUtfComment(): void
|
||||
{
|
||||
$this->expectException(\ZipStream\Exception\EncodingException::class);
|
||||
|
||||
$stream = $this->getTmpFileStream()[1];
|
||||
|
||||
$options = new ArchiveOptions();
|
||||
$options->setOutputStream($stream);
|
||||
|
||||
$zip = new ZipStream(null, $options);
|
||||
|
||||
$name = 'á.txt';
|
||||
$content = 'any';
|
||||
$comment = 'á';
|
||||
|
||||
$fileOptions = new FileOptions();
|
||||
$fileOptions->setComment($comment);
|
||||
|
||||
$zip->addFile(mb_convert_encoding($name, 'ISO-8859-2', 'UTF-8'), $content, $fileOptions);
|
||||
}
|
||||
|
||||
public function testAddFileWithStorageMethod(): void
|
||||
{
|
||||
[$tmp, $stream] = $this->getTmpFileStream();
|
||||
|
||||
$options = new ArchiveOptions();
|
||||
$options->setOutputStream($stream);
|
||||
|
||||
$zip = new ZipStream(null, $options);
|
||||
|
||||
$fileOptions = new FileOptions();
|
||||
$fileOptions->setMethod(Method::STORE());
|
||||
|
||||
$zip->addFile('sample.txt', 'Sample String Data', $fileOptions);
|
||||
$zip->addFile('test/sample.txt', 'More Simple Sample Data');
|
||||
$zip->finish();
|
||||
fclose($stream);
|
||||
|
||||
$zipArch = new \ZipArchive();
|
||||
$zipArch->open($tmp);
|
||||
|
||||
$sample1 = $zipArch->statName('sample.txt');
|
||||
$sample12 = $zipArch->statName('test/sample.txt');
|
||||
$this->assertEquals($sample1['comp_method'], Method::STORE);
|
||||
$this->assertEquals($sample12['comp_method'], Method::DEFLATE);
|
||||
|
||||
$zipArch->close();
|
||||
}
|
||||
|
||||
public function testDecompressFileWithMacUnarchiver(): void
|
||||
{
|
||||
if (!file_exists(self::OSX_ARCHIVE_UTILITY)) {
|
||||
$this->markTestSkipped('The Mac OSX Archive Utility is not available.');
|
||||
}
|
||||
|
||||
[$tmp, $stream] = $this->getTmpFileStream();
|
||||
|
||||
$options = new ArchiveOptions();
|
||||
$options->setOutputStream($stream);
|
||||
|
||||
$zip = new ZipStream(null, $options);
|
||||
|
||||
$folder = uniqid('', true);
|
||||
|
||||
$zip->addFile($folder . '/sample.txt', 'Sample Data');
|
||||
$zip->finish();
|
||||
fclose($stream);
|
||||
|
||||
exec(escapeshellarg(self::OSX_ARCHIVE_UTILITY) . ' ' . escapeshellarg($tmp), $output, $returnStatus);
|
||||
|
||||
$this->assertEquals(0, $returnStatus);
|
||||
$this->assertCount(0, $output);
|
||||
|
||||
$this->assertFileExists(dirname($tmp) . '/' . $folder . '/sample.txt');
|
||||
$this->assertStringEqualsFile(dirname($tmp) . '/' . $folder . '/sample.txt', 'Sample Data');
|
||||
}
|
||||
|
||||
public function testAddFileFromPath(): void
|
||||
{
|
||||
[$tmp, $stream] = $this->getTmpFileStream();
|
||||
|
||||
$options = new ArchiveOptions();
|
||||
$options->setOutputStream($stream);
|
||||
|
||||
$zip = new ZipStream(null, $options);
|
||||
|
||||
[$tmpExample, $streamExample] = $this->getTmpFileStream();
|
||||
fwrite($streamExample, 'Sample String Data');
|
||||
fclose($streamExample);
|
||||
$zip->addFileFromPath('sample.txt', $tmpExample);
|
||||
|
||||
[$tmpExample, $streamExample] = $this->getTmpFileStream();
|
||||
fwrite($streamExample, 'More Simple Sample Data');
|
||||
fclose($streamExample);
|
||||
$zip->addFileFromPath('test/sample.txt', $tmpExample);
|
||||
|
||||
$zip->finish();
|
||||
fclose($stream);
|
||||
|
||||
$tmpDir = $this->validateAndExtractZip($tmp);
|
||||
|
||||
$files = $this->getRecursiveFileList($tmpDir);
|
||||
$this->assertEquals(array('sample.txt', 'test/sample.txt'), $files);
|
||||
|
||||
$this->assertStringEqualsFile($tmpDir . '/sample.txt', 'Sample String Data');
|
||||
$this->assertStringEqualsFile($tmpDir . '/test/sample.txt', 'More Simple Sample Data');
|
||||
}
|
||||
|
||||
public function testAddFileFromPathWithStorageMethod(): void
|
||||
{
|
||||
[$tmp, $stream] = $this->getTmpFileStream();
|
||||
|
||||
$options = new ArchiveOptions();
|
||||
$options->setOutputStream($stream);
|
||||
|
||||
$zip = new ZipStream(null, $options);
|
||||
|
||||
$fileOptions = new FileOptions();
|
||||
$fileOptions->setMethod(Method::STORE());
|
||||
|
||||
[$tmpExample, $streamExample] = $this->getTmpFileStream();
|
||||
fwrite($streamExample, 'Sample String Data');
|
||||
fclose($streamExample);
|
||||
$zip->addFileFromPath('sample.txt', $tmpExample, $fileOptions);
|
||||
|
||||
[$tmpExample, $streamExample] = $this->getTmpFileStream();
|
||||
fwrite($streamExample, 'More Simple Sample Data');
|
||||
fclose($streamExample);
|
||||
$zip->addFileFromPath('test/sample.txt', $tmpExample);
|
||||
|
||||
$zip->finish();
|
||||
fclose($stream);
|
||||
|
||||
$zipArch = new \ZipArchive();
|
||||
$zipArch->open($tmp);
|
||||
|
||||
$sample1 = $zipArch->statName('sample.txt');
|
||||
$this->assertEquals(Method::STORE, $sample1['comp_method']);
|
||||
|
||||
$sample2 = $zipArch->statName('test/sample.txt');
|
||||
$this->assertEquals(Method::DEFLATE, $sample2['comp_method']);
|
||||
|
||||
$zipArch->close();
|
||||
}
|
||||
|
||||
public function testAddLargeFileFromPath(): void
|
||||
{
|
||||
$methods = [Method::DEFLATE(), Method::STORE()];
|
||||
$falseTrue = [false, true];
|
||||
foreach ($methods as $method) {
|
||||
foreach ($falseTrue as $zeroHeader) {
|
||||
foreach ($falseTrue as $zip64) {
|
||||
if ($zeroHeader && $method->equals(Method::DEFLATE())) {
|
||||
continue;
|
||||
}
|
||||
$this->addLargeFileFileFromPath($method, $zeroHeader, $zip64);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected function addLargeFileFileFromPath($method, $zeroHeader, $zip64): void
|
||||
{
|
||||
[$tmp, $stream] = $this->getTmpFileStream();
|
||||
|
||||
$options = new ArchiveOptions();
|
||||
$options->setOutputStream($stream);
|
||||
$options->setLargeFileMethod($method);
|
||||
$options->setLargeFileSize(5);
|
||||
$options->setZeroHeader($zeroHeader);
|
||||
$options->setEnableZip64($zip64);
|
||||
|
||||
$zip = new ZipStream(null, $options);
|
||||
|
||||
[$tmpExample, $streamExample] = $this->getTmpFileStream();
|
||||
for ($i = 0; $i <= 10000; $i++) {
|
||||
fwrite($streamExample, sha1((string)$i));
|
||||
if ($i % 100 === 0) {
|
||||
fwrite($streamExample, "\n");
|
||||
}
|
||||
}
|
||||
fclose($streamExample);
|
||||
$shaExample = sha1_file($tmpExample);
|
||||
$zip->addFileFromPath('sample.txt', $tmpExample);
|
||||
unlink($tmpExample);
|
||||
|
||||
$zip->finish();
|
||||
fclose($stream);
|
||||
|
||||
$tmpDir = $this->validateAndExtractZip($tmp);
|
||||
|
||||
$files = $this->getRecursiveFileList($tmpDir);
|
||||
$this->assertEquals(array('sample.txt'), $files);
|
||||
|
||||
$this->assertEquals(sha1_file($tmpDir . '/sample.txt'), $shaExample, "SHA-1 Mismatch Method: {$method}");
|
||||
}
|
||||
|
||||
public function testAddFileFromStream(): void
|
||||
{
|
||||
[$tmp, $stream] = $this->getTmpFileStream();
|
||||
|
||||
$options = new ArchiveOptions();
|
||||
$options->setOutputStream($stream);
|
||||
|
||||
$zip = new ZipStream(null, $options);
|
||||
|
||||
// In this test we can't use temporary stream to feed data
|
||||
// because zlib.deflate filter gives empty string before PHP 7
|
||||
// it works fine with file stream
|
||||
$streamExample = fopen(__FILE__, 'rb');
|
||||
$zip->addFileFromStream('sample.txt', $streamExample);
|
||||
// fclose($streamExample);
|
||||
|
||||
$fileOptions = new FileOptions();
|
||||
$fileOptions->setMethod(Method::STORE());
|
||||
|
||||
$streamExample2 = fopen('php://temp', 'wb+');
|
||||
fwrite($streamExample2, 'More Simple Sample Data');
|
||||
rewind($streamExample2); // move the pointer back to the beginning of file.
|
||||
$zip->addFileFromStream('test/sample.txt', $streamExample2, $fileOptions);
|
||||
// fclose($streamExample2);
|
||||
|
||||
$zip->finish();
|
||||
fclose($stream);
|
||||
|
||||
$tmpDir = $this->validateAndExtractZip($tmp);
|
||||
|
||||
$files = $this->getRecursiveFileList($tmpDir);
|
||||
$this->assertEquals(array('sample.txt', 'test/sample.txt'), $files);
|
||||
|
||||
$this->assertStringEqualsFile(__FILE__, file_get_contents($tmpDir . '/sample.txt'));
|
||||
$this->assertStringEqualsFile($tmpDir . '/test/sample.txt', 'More Simple Sample Data');
|
||||
}
|
||||
|
||||
public function testAddFileFromStreamWithStorageMethod(): void
|
||||
{
|
||||
[$tmp, $stream] = $this->getTmpFileStream();
|
||||
|
||||
$options = new ArchiveOptions();
|
||||
$options->setOutputStream($stream);
|
||||
|
||||
$zip = new ZipStream(null, $options);
|
||||
|
||||
$fileOptions = new FileOptions();
|
||||
$fileOptions->setMethod(Method::STORE());
|
||||
|
||||
$streamExample = fopen('php://temp', 'wb+');
|
||||
fwrite($streamExample, 'Sample String Data');
|
||||
rewind($streamExample); // move the pointer back to the beginning of file.
|
||||
$zip->addFileFromStream('sample.txt', $streamExample, $fileOptions);
|
||||
// fclose($streamExample);
|
||||
|
||||
$streamExample2 = fopen('php://temp', 'bw+');
|
||||
fwrite($streamExample2, 'More Simple Sample Data');
|
||||
rewind($streamExample2); // move the pointer back to the beginning of file.
|
||||
$zip->addFileFromStream('test/sample.txt', $streamExample2);
|
||||
// fclose($streamExample2);
|
||||
|
||||
$zip->finish();
|
||||
fclose($stream);
|
||||
|
||||
$zipArch = new \ZipArchive();
|
||||
$zipArch->open($tmp);
|
||||
|
||||
$sample1 = $zipArch->statName('sample.txt');
|
||||
$this->assertEquals(Method::STORE, $sample1['comp_method']);
|
||||
|
||||
$sample2 = $zipArch->statName('test/sample.txt');
|
||||
$this->assertEquals(Method::DEFLATE, $sample2['comp_method']);
|
||||
|
||||
$zipArch->close();
|
||||
}
|
||||
|
||||
public function testAddFileFromPsr7Stream(): void
|
||||
{
|
||||
[$tmp, $stream] = $this->getTmpFileStream();
|
||||
|
||||
$options = new ArchiveOptions();
|
||||
$options->setOutputStream($stream);
|
||||
|
||||
$zip = new ZipStream(null, $options);
|
||||
|
||||
$body = 'Sample String Data';
|
||||
$response = new Response(200, [], $body);
|
||||
|
||||
$fileOptions = new FileOptions();
|
||||
$fileOptions->setMethod(Method::STORE());
|
||||
|
||||
$zip->addFileFromPsr7Stream('sample.json', $response->getBody(), $fileOptions);
|
||||
$zip->finish();
|
||||
fclose($stream);
|
||||
|
||||
$tmpDir = $this->validateAndExtractZip($tmp);
|
||||
|
||||
$files = $this->getRecursiveFileList($tmpDir);
|
||||
$this->assertEquals(array('sample.json'), $files);
|
||||
$this->assertStringEqualsFile($tmpDir . '/sample.json', $body);
|
||||
}
|
||||
|
||||
public function testAddFileFromPsr7StreamWithFileSizeSet(): void
|
||||
{
|
||||
[$tmp, $stream] = $this->getTmpFileStream();
|
||||
|
||||
$options = new ArchiveOptions();
|
||||
$options->setOutputStream($stream);
|
||||
|
||||
$zip = new ZipStream(null, $options);
|
||||
|
||||
$body = 'Sample String Data';
|
||||
$fileSize = strlen($body);
|
||||
// Add fake padding
|
||||
$fakePadding = "\0\0\0\0\0\0";
|
||||
$response = new Response(200, [], $body . $fakePadding);
|
||||
|
||||
$fileOptions = new FileOptions();
|
||||
$fileOptions->setMethod(Method::STORE());
|
||||
$fileOptions->setSize($fileSize);
|
||||
$zip->addFileFromPsr7Stream('sample.json', $response->getBody(), $fileOptions);
|
||||
$zip->finish();
|
||||
fclose($stream);
|
||||
|
||||
$tmpDir = $this->validateAndExtractZip($tmp);
|
||||
|
||||
$files = $this->getRecursiveFileList($tmpDir);
|
||||
$this->assertEquals(array('sample.json'), $files);
|
||||
$this->assertStringEqualsFile($tmpDir . '/sample.json', $body);
|
||||
}
|
||||
|
||||
public function testCreateArchiveWithFlushOptionSet(): void
|
||||
{
|
||||
[$tmp, $stream] = $this->getTmpFileStream();
|
||||
|
||||
$options = new ArchiveOptions();
|
||||
$options->setOutputStream($stream);
|
||||
$options->setFlushOutput(true);
|
||||
|
||||
$zip = new ZipStream(null, $options);
|
||||
|
||||
$zip->addFile('sample.txt', 'Sample String Data');
|
||||
$zip->addFile('test/sample.txt', 'More Simple Sample Data');
|
||||
|
||||
$zip->finish();
|
||||
fclose($stream);
|
||||
|
||||
$tmpDir = $this->validateAndExtractZip($tmp);
|
||||
|
||||
$files = $this->getRecursiveFileList($tmpDir);
|
||||
$this->assertEquals(['sample.txt', 'test/sample.txt'], $files);
|
||||
|
||||
$this->assertStringEqualsFile($tmpDir . '/sample.txt', 'Sample String Data');
|
||||
$this->assertStringEqualsFile($tmpDir . '/test/sample.txt', 'More Simple Sample Data');
|
||||
}
|
||||
|
||||
public function testCreateArchiveWithOutputBufferingOffAndFlushOptionSet(): void
|
||||
{
|
||||
// WORKAROUND (1/2): remove phpunit's output buffer in order to run test without any buffering
|
||||
ob_end_flush();
|
||||
$this->assertEquals(0, ob_get_level());
|
||||
|
||||
[$tmp, $stream] = $this->getTmpFileStream();
|
||||
|
||||
$options = new ArchiveOptions();
|
||||
$options->setOutputStream($stream);
|
||||
$options->setFlushOutput(true);
|
||||
|
||||
$zip = new ZipStream(null, $options);
|
||||
|
||||
$zip->addFile('sample.txt', 'Sample String Data');
|
||||
|
||||
$zip->finish();
|
||||
fclose($stream);
|
||||
|
||||
$tmpDir = $this->validateAndExtractZip($tmp);
|
||||
$this->assertStringEqualsFile($tmpDir . '/sample.txt', 'Sample String Data');
|
||||
|
||||
// WORKAROUND (2/2): add back output buffering so that PHPUnit doesn't complain that it is missing
|
||||
ob_start();
|
||||
}
|
||||
}
|
||||
6
modules/inpostizi/vendor/maennchen/zipstream-php/test/bootstrap.php
vendored
Normal file
6
modules/inpostizi/vendor/maennchen/zipstream-php/test/bootstrap.php
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
date_default_timezone_set('UTC');
|
||||
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
39
modules/inpostizi/vendor/maennchen/zipstream-php/test/bug/BugHonorFileTimeTest.php
vendored
Normal file
39
modules/inpostizi/vendor/maennchen/zipstream-php/test/bug/BugHonorFileTimeTest.php
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace BugHonorFileTimeTest;
|
||||
|
||||
use DateTime;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use ZipStream\Option\{
|
||||
Archive,
|
||||
File
|
||||
};
|
||||
use ZipStream\ZipStream;
|
||||
|
||||
use function fopen;
|
||||
|
||||
/**
|
||||
* Asserts that specified last-modified timestamps are not overwritten when a
|
||||
* file is added
|
||||
*/
|
||||
class BugHonorFileTimeTest extends TestCase
|
||||
{
|
||||
public function testHonorsFileTime(): void
|
||||
{
|
||||
$archiveOpt = new Archive();
|
||||
$fileOpt = new File();
|
||||
$expectedTime = new DateTime('2019-04-21T19:25:00-0800');
|
||||
|
||||
$archiveOpt->setOutputStream(fopen('php://memory', 'wb'));
|
||||
$fileOpt->setTime(clone $expectedTime);
|
||||
|
||||
$zip = new ZipStream(null, $archiveOpt);
|
||||
|
||||
$zip->addFile('sample.txt', 'Sample', $fileOpt);
|
||||
|
||||
$zip->finish();
|
||||
|
||||
$this->assertEquals($expectedTime, $fileOpt->getTime());
|
||||
}
|
||||
}
|
||||
18
modules/inpostizi/vendor/myclabs/php-enum/LICENSE
vendored
Normal file
18
modules/inpostizi/vendor/myclabs/php-enum/LICENSE
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015 My C-Labs
|
||||
|
||||
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.
|
||||
134
modules/inpostizi/vendor/myclabs/php-enum/README.md
vendored
Normal file
134
modules/inpostizi/vendor/myclabs/php-enum/README.md
vendored
Normal file
@@ -0,0 +1,134 @@
|
||||
# PHP Enum implementation inspired from SplEnum
|
||||
|
||||
[](https://travis-ci.org/myclabs/php-enum)
|
||||
[](https://packagist.org/packages/myclabs/php-enum)
|
||||
[](https://packagist.org/packages/myclabs/php-enum)
|
||||
[](https://shepherd.dev/github/myclabs/php-enum)
|
||||
|
||||
Maintenance for this project is [supported via Tidelift](https://tidelift.com/subscription/pkg/packagist-myclabs-php-enum?utm_source=packagist-myclabs-php-enum&utm_medium=referral&utm_campaign=readme).
|
||||
|
||||
## Why?
|
||||
|
||||
First, and mainly, `SplEnum` is not integrated to PHP, you have to install the extension separately.
|
||||
|
||||
Using an enum instead of class constants provides the following advantages:
|
||||
|
||||
- You can use an enum as a parameter type: `function setAction(Action $action) {`
|
||||
- You can use an enum as a return type: `function getAction() : Action {`
|
||||
- You can enrich the enum with methods (e.g. `format`, `parse`, …)
|
||||
- You can extend the enum to add new values (make your enum `final` to prevent it)
|
||||
- You can get a list of all the possible values (see below)
|
||||
|
||||
This Enum class is not intended to replace class constants, but only to be used when it makes sense.
|
||||
|
||||
## Installation
|
||||
|
||||
```
|
||||
composer require myclabs/php-enum
|
||||
```
|
||||
|
||||
## Declaration
|
||||
|
||||
```php
|
||||
use MyCLabs\Enum\Enum;
|
||||
|
||||
/**
|
||||
* Action enum
|
||||
*/
|
||||
class Action extends Enum
|
||||
{
|
||||
private const VIEW = 'view';
|
||||
private const EDIT = 'edit';
|
||||
}
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```php
|
||||
$action = Action::VIEW();
|
||||
|
||||
// or with a dynamic key:
|
||||
$action = Action::$key();
|
||||
// or with a dynamic value:
|
||||
$action = new Action($value);
|
||||
```
|
||||
|
||||
As you can see, static methods are automatically implemented to provide quick access to an enum value.
|
||||
|
||||
One advantage over using class constants is to be able to use an enum as a parameter type:
|
||||
|
||||
```php
|
||||
function setAction(Action $action) {
|
||||
// ...
|
||||
}
|
||||
```
|
||||
|
||||
## Documentation
|
||||
|
||||
- `__construct()` The constructor checks that the value exist in the enum
|
||||
- `__toString()` You can `echo $myValue`, it will display the enum value (value of the constant)
|
||||
- `getValue()` Returns the current value of the enum
|
||||
- `getKey()` Returns the key of the current value on Enum
|
||||
- `equals()` Tests whether enum instances are equal (returns `true` if enum values are equal, `false` otherwise)
|
||||
|
||||
Static methods:
|
||||
|
||||
- `toArray()` method Returns all possible values as an array (constant name in key, constant value in value)
|
||||
- `keys()` Returns the names (keys) of all constants in the Enum class
|
||||
- `values()` Returns instances of the Enum class of all Enum constants (constant name in key, Enum instance in value)
|
||||
- `isValid()` Check if tested value is valid on enum set
|
||||
- `isValidKey()` Check if tested key is valid on enum set
|
||||
- `search()` Return key for searched value
|
||||
|
||||
### Static methods
|
||||
|
||||
```php
|
||||
class Action extends Enum
|
||||
{
|
||||
private const VIEW = 'view';
|
||||
private const EDIT = 'edit';
|
||||
}
|
||||
|
||||
// Static method:
|
||||
$action = Action::VIEW();
|
||||
$action = Action::EDIT();
|
||||
```
|
||||
|
||||
Static method helpers are implemented using [`__callStatic()`](http://www.php.net/manual/en/language.oop5.overloading.php#object.callstatic).
|
||||
|
||||
If you care about IDE autocompletion, you can either implement the static methods yourself:
|
||||
|
||||
```php
|
||||
class Action extends Enum
|
||||
{
|
||||
private const VIEW = 'view';
|
||||
|
||||
/**
|
||||
* @return Action
|
||||
*/
|
||||
public static function VIEW() {
|
||||
return new Action(self::VIEW);
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
or you can use phpdoc (this is supported in PhpStorm for example):
|
||||
|
||||
```php
|
||||
/**
|
||||
* @method static Action VIEW()
|
||||
* @method static Action EDIT()
|
||||
*/
|
||||
class Action extends Enum
|
||||
{
|
||||
private const VIEW = 'view';
|
||||
private const EDIT = 'edit';
|
||||
}
|
||||
```
|
||||
|
||||
## Related projects
|
||||
|
||||
- [Doctrine enum mapping](https://github.com/acelaya/doctrine-enum-type)
|
||||
- [Symfony ParamConverter integration](https://github.com/Ex3v/MyCLabsEnumParamConverter)
|
||||
- [PHPStan integration](https://github.com/timeweb/phpstan-enum)
|
||||
- [Yii2 enum mapping](https://github.com/KartaviK/yii2-enum)
|
||||
11
modules/inpostizi/vendor/myclabs/php-enum/SECURITY.md
vendored
Normal file
11
modules/inpostizi/vendor/myclabs/php-enum/SECURITY.md
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
# Security Policy
|
||||
|
||||
## Supported Versions
|
||||
|
||||
Only the latest stable release is supported.
|
||||
|
||||
## Reporting a Vulnerability
|
||||
|
||||
To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security).
|
||||
|
||||
Tidelift will coordinate the fix and disclosure.
|
||||
33
modules/inpostizi/vendor/myclabs/php-enum/composer.json
vendored
Normal file
33
modules/inpostizi/vendor/myclabs/php-enum/composer.json
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"name": "myclabs/php-enum",
|
||||
"type": "library",
|
||||
"description": "PHP Enum implementation",
|
||||
"keywords": ["enum"],
|
||||
"homepage": "http://github.com/myclabs/php-enum",
|
||||
"license": "MIT",
|
||||
"authors": [
|
||||
{
|
||||
"name": "PHP Enum contributors",
|
||||
"homepage": "https://github.com/myclabs/php-enum/graphs/contributors"
|
||||
}
|
||||
],
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"MyCLabs\\Enum\\": "src/"
|
||||
}
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-4": {
|
||||
"MyCLabs\\Tests\\Enum\\": "tests/"
|
||||
}
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.1",
|
||||
"ext-json": "*"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^7",
|
||||
"squizlabs/php_codesniffer": "1.*",
|
||||
"vimeo/psalm": "^3.8"
|
||||
}
|
||||
}
|
||||
20
modules/inpostizi/vendor/myclabs/php-enum/psalm.xml
vendored
Normal file
20
modules/inpostizi/vendor/myclabs/php-enum/psalm.xml
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0"?>
|
||||
<psalm
|
||||
totallyTyped="true"
|
||||
resolveFromConfigFile="true"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="https://getpsalm.org/schema/config"
|
||||
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
|
||||
>
|
||||
<projectFiles>
|
||||
<directory name="src" />
|
||||
<ignoreFiles>
|
||||
<directory name="vendor" />
|
||||
<directory name="src/PHPUnit" />
|
||||
</ignoreFiles>
|
||||
</projectFiles>
|
||||
|
||||
<issueHandlers>
|
||||
<MixedAssignment errorLevel="info" />
|
||||
</issueHandlers>
|
||||
</psalm>
|
||||
250
modules/inpostizi/vendor/myclabs/php-enum/src/Enum.php
vendored
Normal file
250
modules/inpostizi/vendor/myclabs/php-enum/src/Enum.php
vendored
Normal file
@@ -0,0 +1,250 @@
|
||||
<?php
|
||||
/**
|
||||
* @link http://github.com/myclabs/php-enum
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE file)
|
||||
*/
|
||||
|
||||
namespace MyCLabs\Enum;
|
||||
|
||||
/**
|
||||
* Base Enum class
|
||||
*
|
||||
* Create an enum by implementing this class and adding class constants.
|
||||
*
|
||||
* @author Matthieu Napoli <matthieu@mnapoli.fr>
|
||||
* @author Daniel Costa <danielcosta@gmail.com>
|
||||
* @author Mirosław Filip <mirfilip@gmail.com>
|
||||
*
|
||||
* @psalm-template T
|
||||
* @psalm-immutable
|
||||
*/
|
||||
abstract class Enum implements \JsonSerializable
|
||||
{
|
||||
/**
|
||||
* Enum value
|
||||
*
|
||||
* @var mixed
|
||||
* @psalm-var T
|
||||
*/
|
||||
protected $value;
|
||||
|
||||
/**
|
||||
* Store existing constants in a static cache per object.
|
||||
*
|
||||
*
|
||||
* @var array
|
||||
* @psalm-var array<class-string, array<string, mixed>>
|
||||
*/
|
||||
protected static $cache = [];
|
||||
|
||||
/**
|
||||
* Cache of instances of the Enum class
|
||||
*
|
||||
* @var array
|
||||
* @psalm-var array<class-string, array<string, static>>
|
||||
*/
|
||||
protected static $instances = [];
|
||||
|
||||
/**
|
||||
* Creates a new value of some type
|
||||
*
|
||||
* @psalm-pure
|
||||
* @param mixed $value
|
||||
*
|
||||
* @psalm-param static<T>|T $value
|
||||
* @throws \UnexpectedValueException if incompatible type is given.
|
||||
*/
|
||||
public function __construct($value)
|
||||
{
|
||||
if ($value instanceof static) {
|
||||
/** @psalm-var T */
|
||||
$value = $value->getValue();
|
||||
}
|
||||
|
||||
if (!$this->isValid($value)) {
|
||||
/** @psalm-suppress InvalidCast */
|
||||
throw new \UnexpectedValueException("Value '$value' is not part of the enum " . static::class);
|
||||
}
|
||||
|
||||
/** @psalm-var T */
|
||||
$this->value = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* @psalm-pure
|
||||
* @return mixed
|
||||
* @psalm-return T
|
||||
*/
|
||||
public function getValue()
|
||||
{
|
||||
return $this->value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the enum key (i.e. the constant name).
|
||||
*
|
||||
* @psalm-pure
|
||||
* @return mixed
|
||||
*/
|
||||
public function getKey()
|
||||
{
|
||||
return static::search($this->value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @psalm-pure
|
||||
* @psalm-suppress InvalidCast
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
return (string)$this->value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines if Enum should be considered equal with the variable passed as a parameter.
|
||||
* Returns false if an argument is an object of different class or not an object.
|
||||
*
|
||||
* This method is final, for more information read https://github.com/myclabs/php-enum/issues/4
|
||||
*
|
||||
* @psalm-pure
|
||||
* @psalm-param mixed $variable
|
||||
* @return bool
|
||||
*/
|
||||
final public function equals($variable = null): bool
|
||||
{
|
||||
return $variable instanceof self
|
||||
&& $this->getValue() === $variable->getValue()
|
||||
&& static::class === \get_class($variable);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the names (keys) of all constants in the Enum class
|
||||
*
|
||||
* @psalm-pure
|
||||
* @psalm-return list<string>
|
||||
* @return array
|
||||
*/
|
||||
public static function keys()
|
||||
{
|
||||
return \array_keys(static::toArray());
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns instances of the Enum class of all Enum constants
|
||||
*
|
||||
* @psalm-pure
|
||||
* @psalm-return array<string, static>
|
||||
* @return static[] Constant name in key, Enum instance in value
|
||||
*/
|
||||
public static function values()
|
||||
{
|
||||
$values = array();
|
||||
|
||||
/** @psalm-var T $value */
|
||||
foreach (static::toArray() as $key => $value) {
|
||||
$values[$key] = new static($value);
|
||||
}
|
||||
|
||||
return $values;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns all possible values as an array
|
||||
*
|
||||
* @psalm-pure
|
||||
* @psalm-suppress ImpureStaticProperty
|
||||
*
|
||||
* @psalm-return array<string, mixed>
|
||||
* @return array Constant name in key, constant value in value
|
||||
*/
|
||||
public static function toArray()
|
||||
{
|
||||
$class = static::class;
|
||||
|
||||
if (!isset(static::$cache[$class])) {
|
||||
$reflection = new \ReflectionClass($class);
|
||||
static::$cache[$class] = $reflection->getConstants();
|
||||
}
|
||||
|
||||
return static::$cache[$class];
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if is valid enum value
|
||||
*
|
||||
* @param $value
|
||||
* @psalm-param mixed $value
|
||||
* @psalm-pure
|
||||
* @return bool
|
||||
*/
|
||||
public static function isValid($value)
|
||||
{
|
||||
return \in_array($value, static::toArray(), true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if is valid enum key
|
||||
*
|
||||
* @param $key
|
||||
* @psalm-param string $key
|
||||
* @psalm-pure
|
||||
* @return bool
|
||||
*/
|
||||
public static function isValidKey($key)
|
||||
{
|
||||
$array = static::toArray();
|
||||
|
||||
return isset($array[$key]) || \array_key_exists($key, $array);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return key for value
|
||||
*
|
||||
* @param $value
|
||||
*
|
||||
* @psalm-param mixed $value
|
||||
* @psalm-pure
|
||||
* @return mixed
|
||||
*/
|
||||
public static function search($value)
|
||||
{
|
||||
return \array_search($value, static::toArray(), true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a value when called statically like so: MyEnum::SOME_VALUE() given SOME_VALUE is a class constant
|
||||
*
|
||||
* @param string $name
|
||||
* @param array $arguments
|
||||
*
|
||||
* @return static
|
||||
* @throws \BadMethodCallException
|
||||
*/
|
||||
public static function __callStatic($name, $arguments)
|
||||
{
|
||||
$class = static::class;
|
||||
if (!isset(self::$instances[$class][$name])) {
|
||||
$array = static::toArray();
|
||||
if (!isset($array[$name]) && !\array_key_exists($name, $array)) {
|
||||
$message = "No static method or enum constant '$name' in class " . static::class;
|
||||
throw new \BadMethodCallException($message);
|
||||
}
|
||||
return self::$instances[$class][$name] = new static($array[$name]);
|
||||
}
|
||||
return clone self::$instances[$class][$name];
|
||||
}
|
||||
|
||||
/**
|
||||
* Specify data which should be serialized to JSON. This method returns data that can be serialized by json_encode()
|
||||
* natively.
|
||||
*
|
||||
* @return mixed
|
||||
* @link http://php.net/manual/en/jsonserializable.jsonserialize.php
|
||||
* @psalm-pure
|
||||
*/
|
||||
public function jsonSerialize()
|
||||
{
|
||||
return $this->getValue();
|
||||
}
|
||||
}
|
||||
54
modules/inpostizi/vendor/myclabs/php-enum/src/PHPUnit/Comparator.php
vendored
Normal file
54
modules/inpostizi/vendor/myclabs/php-enum/src/PHPUnit/Comparator.php
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
|
||||
namespace MyCLabs\Enum\PHPUnit;
|
||||
|
||||
use MyCLabs\Enum\Enum;
|
||||
use SebastianBergmann\Comparator\ComparisonFailure;
|
||||
|
||||
/**
|
||||
* Use this Comparator to get nice output when using PHPUnit assertEquals() with Enums.
|
||||
*
|
||||
* Add this to your PHPUnit bootstrap PHP file:
|
||||
*
|
||||
* \SebastianBergmann\Comparator\Factory::getInstance()->register(new \MyCLabs\Enum\PHPUnit\Comparator());
|
||||
*/
|
||||
final class Comparator extends \SebastianBergmann\Comparator\Comparator
|
||||
{
|
||||
public function accepts($expected, $actual)
|
||||
{
|
||||
return $expected instanceof Enum && (
|
||||
$actual instanceof Enum || $actual === null
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Enum $expected
|
||||
* @param Enum|null $actual
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function assertEquals($expected, $actual, $delta = 0.0, $canonicalize = false, $ignoreCase = false)
|
||||
{
|
||||
if ($expected->equals($actual)) {
|
||||
return;
|
||||
}
|
||||
|
||||
throw new ComparisonFailure(
|
||||
$expected,
|
||||
$actual,
|
||||
$this->formatEnum($expected),
|
||||
$this->formatEnum($actual),
|
||||
false,
|
||||
'Failed asserting that two Enums are equal.'
|
||||
);
|
||||
}
|
||||
|
||||
private function formatEnum(Enum $enum = null)
|
||||
{
|
||||
if ($enum === null) {
|
||||
return "null";
|
||||
}
|
||||
|
||||
return get_class($enum)."::{$enum->getKey()}()";
|
||||
}
|
||||
}
|
||||
25
modules/inpostizi/vendor/nyholm/psr7/.php-cs-fixer.dist.php
vendored
Normal file
25
modules/inpostizi/vendor/nyholm/psr7/.php-cs-fixer.dist.php
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
$finder = PhpCsFixer\Finder::create()
|
||||
->in(__DIR__.'/src')
|
||||
->in(__DIR__.'/tests');
|
||||
|
||||
$config = new PhpCsFixer\Config();
|
||||
|
||||
return $config->setRules([
|
||||
'@Symfony' => true,
|
||||
'@Symfony:risky' => true,
|
||||
'native_function_invocation' => ['include'=> ['@all']],
|
||||
'native_constant_invocation' => true,
|
||||
'ordered_imports' => true,
|
||||
'declare_strict_types' => false,
|
||||
'linebreak_after_opening_tag' => false,
|
||||
'single_import_per_statement' => false,
|
||||
'blank_line_after_opening_tag' => false,
|
||||
'concat_space' => ['spacing'=>'one'],
|
||||
'phpdoc_align' => ['align'=>'left'],
|
||||
])
|
||||
->setRiskyAllowed(true)
|
||||
->setFinder($finder);
|
||||
153
modules/inpostizi/vendor/nyholm/psr7/CHANGELOG.md
vendored
Normal file
153
modules/inpostizi/vendor/nyholm/psr7/CHANGELOG.md
vendored
Normal file
@@ -0,0 +1,153 @@
|
||||
# Changelog
|
||||
|
||||
All notable changes to this project will be documented in this file, in reverse chronological order by release.
|
||||
|
||||
## 1.6.1
|
||||
|
||||
- Security fix: CVE-2023-29197
|
||||
|
||||
## 1.6.0
|
||||
|
||||
### Changed
|
||||
|
||||
- Seek to the begining of the string when using Stream::create()
|
||||
- Populate ServerRequest::getQueryParams() on instantiation
|
||||
- Encode [reserved characters](https://www.rfc-editor.org/rfc/rfc3986#appendix-A) in userinfo in Uri
|
||||
- Normalize leading slashes for Uri::getPath()
|
||||
- Make Stream's constructor public
|
||||
- Add some missing type checks on arguments
|
||||
|
||||
## 1.5.1
|
||||
|
||||
### Fixed
|
||||
|
||||
- Fixed deprecations on PHP 8.1
|
||||
|
||||
## 1.5.0
|
||||
|
||||
### Added
|
||||
|
||||
- Add explicit `@return mixed`
|
||||
- Add explicit return types to HttplugFactory
|
||||
|
||||
### Fixed
|
||||
|
||||
- Improve error handling with streams
|
||||
|
||||
## 1.4.1
|
||||
|
||||
### Fixed
|
||||
|
||||
- `Psr17Factory::createStreamFromFile`, `UploadedFile::moveTo`, and
|
||||
`UploadedFile::getStream` no longer throw `ValueError` in PHP 8.
|
||||
|
||||
## 1.4.0
|
||||
|
||||
### Removed
|
||||
|
||||
The `final` keyword was replaced by `@final` annotation.
|
||||
|
||||
## 1.3.2
|
||||
|
||||
### Fixed
|
||||
|
||||
- `Stream::read()` must not return boolean.
|
||||
- Improved exception message when using wrong HTTP status code.
|
||||
|
||||
## 1.3.1
|
||||
|
||||
### Fixed
|
||||
|
||||
- Allow installation on PHP8
|
||||
|
||||
## 1.3.0
|
||||
|
||||
### Added
|
||||
|
||||
- Make Stream::__toString() compatible with throwing exceptions on PHP 7.4.
|
||||
|
||||
### Fixed
|
||||
|
||||
- Support for UTF-8 hostnames
|
||||
- Support for numeric header names
|
||||
|
||||
## 1.2.1
|
||||
|
||||
### Changed
|
||||
|
||||
- Added `.github` and `phpstan.neon.dist` to `.gitattributes`.
|
||||
|
||||
## 1.2.0
|
||||
|
||||
### Changed
|
||||
|
||||
- Change minimal port number to 0 (unix socket)
|
||||
- Updated `Psr17Factory::createResponse` to respect the specification. If second
|
||||
argument is not used, a standard reason phrase. If an empty string is passed,
|
||||
then the reason phrase will be empty.
|
||||
|
||||
### Fixed
|
||||
|
||||
- Check for seekable on the stream resource.
|
||||
- Fixed the `Response::$reason` should never be null.
|
||||
|
||||
## 1.1.0
|
||||
|
||||
### Added
|
||||
|
||||
- Improved performance
|
||||
- More tests for `UploadedFile` and `HttplugFactory`
|
||||
|
||||
### Removed
|
||||
|
||||
- Dead code
|
||||
|
||||
## 1.0.1
|
||||
|
||||
### Fixed
|
||||
|
||||
- Handle `fopen` failing in createStreamFromFile according to PSR-7.
|
||||
- Reduce execution path to speed up performance.
|
||||
- Fixed typos.
|
||||
- Code style.
|
||||
|
||||
## 1.0.0
|
||||
|
||||
### Added
|
||||
|
||||
- Support for final PSR-17 (HTTP factories). (`Psr17Factory`)
|
||||
- Support for numeric header values.
|
||||
- Support for empty header values.
|
||||
- All classes are final
|
||||
- `HttplugFactory` that implements factory interfaces from HTTPlug.
|
||||
|
||||
### Changed
|
||||
|
||||
- `ServerRequest` does not extend `Request`.
|
||||
|
||||
### Removed
|
||||
|
||||
- The HTTPlug discovery strategy was removed since it is included in php-http/discovery 1.4.
|
||||
- `UploadedFileFactory()` was removed in favor for `Psr17Factory`.
|
||||
- `ServerRequestFactory()` was removed in favor for `Psr17Factory`.
|
||||
- `StreamFactory`, `UriFactory`, abd `MessageFactory`. Use `HttplugFactory` instead.
|
||||
- `ServerRequestFactory::createServerRequestFromArray`, `ServerRequestFactory::createServerRequestFromArrays` and
|
||||
`ServerRequestFactory::createServerRequestFromGlobals`. Please use the new `nyholm/psr7-server` instead.
|
||||
|
||||
## 0.3.0
|
||||
|
||||
### Added
|
||||
|
||||
- Return types.
|
||||
- Many `InvalidArgumentException`s are thrown when you use invalid arguments.
|
||||
- Integration tests for `UploadedFile` and `ServerRequest`.
|
||||
|
||||
### Changed
|
||||
|
||||
- We dropped PHP7.0 support.
|
||||
- PSR-17 factories have been marked as internal. They do not fall under our BC promise until PSR-17 is accepted.
|
||||
- `UploadedFileFactory::createUploadedFile` does not accept a string file path.
|
||||
|
||||
## 0.2.3
|
||||
|
||||
No changelog before this release
|
||||
21
modules/inpostizi/vendor/nyholm/psr7/LICENSE
vendored
Normal file
21
modules/inpostizi/vendor/nyholm/psr7/LICENSE
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2016 Tobias Nyholm
|
||||
|
||||
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.
|
||||
107
modules/inpostizi/vendor/nyholm/psr7/README.md
vendored
Normal file
107
modules/inpostizi/vendor/nyholm/psr7/README.md
vendored
Normal file
@@ -0,0 +1,107 @@
|
||||
# PSR-7 implementation
|
||||
|
||||
[](https://github.com/Nyholm/psr7/releases)
|
||||
[](https://packagist.org/packages/nyholm/psr7)
|
||||
[](https://packagist.org/packages/nyholm/psr7)
|
||||
[](LICENSE)
|
||||
|
||||
|
||||
A super lightweight PSR-7 implementation. Very strict and very fast.
|
||||
|
||||
| Description | Guzzle | Laminas | Slim | Nyholm |
|
||||
| ---- | ------ | ---- | ---- | ------ |
|
||||
| Lines of code | 3.300 | 3.100 | 1.900 | 1.000 |
|
||||
| PSR-7* | 66% | 100% | 75% | 100% |
|
||||
| PSR-17 | No | Yes | Yes | Yes |
|
||||
| HTTPlug | No | No | No | Yes |
|
||||
| Performance (runs per second)** | 14.553 | 14.703 | 13.416 | 17.734 |
|
||||
|
||||
\* Percent of completed tests in https://github.com/php-http/psr7-integration-tests
|
||||
|
||||
\** Benchmark with 50.000 runs. See https://github.com/devanych/psr-http-benchmark (higher is better)
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
composer require nyholm/psr7
|
||||
```
|
||||
|
||||
If you are using Symfony Flex then you get all message factories registered as services.
|
||||
|
||||
## Usage
|
||||
|
||||
The PSR-7 objects do not contain any other public methods than those defined in
|
||||
the [PSR-7 specification](https://www.php-fig.org/psr/psr-7/).
|
||||
|
||||
### Create objects
|
||||
|
||||
Use the PSR-17 factory to create requests, streams, URIs etc.
|
||||
|
||||
```php
|
||||
$psr17Factory = new \Nyholm\Psr7\Factory\Psr17Factory();
|
||||
$request = $psr17Factory->createRequest('GET', 'http://tnyholm.se');
|
||||
$stream = $psr17Factory->createStream('foobar');
|
||||
```
|
||||
|
||||
### Sending a request
|
||||
|
||||
With [HTTPlug](http://httplug.io/) or any other PSR-18 (HTTP client) you may send
|
||||
requests like:
|
||||
|
||||
```bash
|
||||
composer require kriswallsmith/buzz
|
||||
```
|
||||
|
||||
```php
|
||||
$psr17Factory = new \Nyholm\Psr7\Factory\Psr17Factory();
|
||||
$psr18Client = new \Buzz\Client\Curl($psr17Factory);
|
||||
|
||||
$request = $psr17Factory->createRequest('GET', 'http://tnyholm.se');
|
||||
$response = $psr18Client->sendRequest($request);
|
||||
```
|
||||
|
||||
### Create server requests
|
||||
|
||||
The [`nyholm/psr7-server`](https://github.com/Nyholm/psr7-server) package can be used
|
||||
to create server requests from PHP superglobals.
|
||||
|
||||
```bash
|
||||
composer require nyholm/psr7-server
|
||||
```
|
||||
|
||||
```php
|
||||
$psr17Factory = new \Nyholm\Psr7\Factory\Psr17Factory();
|
||||
|
||||
$creator = new \Nyholm\Psr7Server\ServerRequestCreator(
|
||||
$psr17Factory, // ServerRequestFactory
|
||||
$psr17Factory, // UriFactory
|
||||
$psr17Factory, // UploadedFileFactory
|
||||
$psr17Factory // StreamFactory
|
||||
);
|
||||
|
||||
$serverRequest = $creator->fromGlobals();
|
||||
```
|
||||
|
||||
### Emitting a response
|
||||
|
||||
```bash
|
||||
composer require laminas/laminas-httphandlerrunner
|
||||
```
|
||||
|
||||
```php
|
||||
$psr17Factory = new \Nyholm\Psr7\Factory\Psr17Factory();
|
||||
|
||||
$responseBody = $psr17Factory->createStream('Hello world');
|
||||
$response = $psr17Factory->createResponse(200)->withBody($responseBody);
|
||||
(new \Laminas\HttpHandlerRunner\Emitter\SapiEmitter())->emit($response);
|
||||
```
|
||||
|
||||
## Our goal
|
||||
|
||||
This package is currently maintained by [Tobias Nyholm](http://nyholm.se) and
|
||||
[Martijn van der Ven](https://vanderven.se/martijn/). They have decided that the
|
||||
goal of this library should be to provide a super strict implementation of
|
||||
[PSR-7](https://www.php-fig.org/psr/psr-7/) that is blazing fast.
|
||||
|
||||
The package will never include any extra features nor helper methods. All our classes
|
||||
and functions exist because they are required to fulfill the PSR-7 specification.
|
||||
49
modules/inpostizi/vendor/nyholm/psr7/composer.json
vendored
Normal file
49
modules/inpostizi/vendor/nyholm/psr7/composer.json
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"name": "nyholm/psr7",
|
||||
"description": "A fast PHP7 implementation of PSR-7",
|
||||
"license": "MIT",
|
||||
"keywords": ["psr-7", "psr-17"],
|
||||
"homepage": "https://tnyholm.se",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Tobias Nyholm",
|
||||
"email": "tobias.nyholm@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Martijn van der Ven",
|
||||
"email": "martijn@vanderven.se"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=7.1",
|
||||
"psr/http-message": "^1.0",
|
||||
"php-http/message-factory": "^1.0",
|
||||
"psr/http-factory": "^1.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^7.5 || 8.5 || 9.4",
|
||||
"php-http/psr7-integration-tests": "^1.0",
|
||||
"http-interop/http-factory-tests": "^0.9",
|
||||
"symfony/error-handler": "^4.4"
|
||||
},
|
||||
"provide": {
|
||||
"php-http/message-factory-implementation": "1.0",
|
||||
"psr/http-message-implementation": "1.0",
|
||||
"psr/http-factory-implementation": "1.0"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Nyholm\\Psr7\\": "src/"
|
||||
}
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-4": {
|
||||
"Tests\\Nyholm\\Psr7\\": "tests/"
|
||||
}
|
||||
},
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.6-dev"
|
||||
}
|
||||
}
|
||||
}
|
||||
41
modules/inpostizi/vendor/nyholm/psr7/phpstan-baseline.neon
vendored
Normal file
41
modules/inpostizi/vendor/nyholm/psr7/phpstan-baseline.neon
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
parameters:
|
||||
ignoreErrors:
|
||||
-
|
||||
message: "#^Result of && is always false\\.$#"
|
||||
count: 1
|
||||
path: src/Response.php
|
||||
|
||||
-
|
||||
message: "#^Strict comparison using \\=\\=\\= between null and string will always evaluate to false\\.$#"
|
||||
count: 1
|
||||
path: src/Response.php
|
||||
|
||||
-
|
||||
message: "#^Result of && is always false\\.$#"
|
||||
count: 1
|
||||
path: src/ServerRequest.php
|
||||
|
||||
-
|
||||
message: "#^Strict comparison using \\!\\=\\= between null and null will always evaluate to false\\.$#"
|
||||
count: 1
|
||||
path: src/ServerRequest.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$callback of function set_error_handler expects \\(callable\\(int, string, string, int\\)\\: bool\\)\\|null, 'var_dump' given\\.$#"
|
||||
count: 1
|
||||
path: src/Stream.php
|
||||
|
||||
-
|
||||
message: "#^Result of && is always false\\.$#"
|
||||
count: 1
|
||||
path: src/Stream.php
|
||||
|
||||
-
|
||||
message: "#^Result of && is always false\\.$#"
|
||||
count: 2
|
||||
path: src/UploadedFile.php
|
||||
|
||||
-
|
||||
message: "#^Strict comparison using \\=\\=\\= between false and true will always evaluate to false\\.$#"
|
||||
count: 2
|
||||
path: src/UploadedFile.php
|
||||
8
modules/inpostizi/vendor/nyholm/psr7/psalm.baseline.xml
vendored
Normal file
8
modules/inpostizi/vendor/nyholm/psr7/psalm.baseline.xml
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<files psalm-version="4.30.0@d0bc6e25d89f649e4f36a534f330f8bb4643dd69">
|
||||
<file src="src/Stream.php">
|
||||
<NoValue occurrences="1">
|
||||
<code>return \trigger_error((string) $e, \E_USER_ERROR);</code>
|
||||
</NoValue>
|
||||
</file>
|
||||
</files>
|
||||
45
modules/inpostizi/vendor/nyholm/psr7/src/Factory/HttplugFactory.php
vendored
Normal file
45
modules/inpostizi/vendor/nyholm/psr7/src/Factory/HttplugFactory.php
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Nyholm\Psr7\Factory;
|
||||
|
||||
use Http\Message\{MessageFactory, StreamFactory, UriFactory};
|
||||
use Nyholm\Psr7\{Request, Response, Stream, Uri};
|
||||
use Psr\Http\Message\RequestInterface;
|
||||
use Psr\Http\Message\ResponseInterface;
|
||||
use Psr\Http\Message\StreamInterface;
|
||||
use Psr\Http\Message\UriInterface;
|
||||
|
||||
/**
|
||||
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
|
||||
* @author Martijn van der Ven <martijn@vanderven.se>
|
||||
*
|
||||
* @final This class should never be extended. See https://github.com/Nyholm/psr7/blob/master/doc/final.md
|
||||
*/
|
||||
class HttplugFactory implements MessageFactory, StreamFactory, UriFactory
|
||||
{
|
||||
public function createRequest($method, $uri, array $headers = [], $body = null, $protocolVersion = '1.1'): RequestInterface
|
||||
{
|
||||
return new Request($method, $uri, $headers, $body, $protocolVersion);
|
||||
}
|
||||
|
||||
public function createResponse($statusCode = 200, $reasonPhrase = null, array $headers = [], $body = null, $version = '1.1'): ResponseInterface
|
||||
{
|
||||
return new Response((int) $statusCode, $headers, $body, $version, $reasonPhrase);
|
||||
}
|
||||
|
||||
public function createStream($body = null): StreamInterface
|
||||
{
|
||||
return Stream::create($body ?? '');
|
||||
}
|
||||
|
||||
public function createUri($uri = ''): UriInterface
|
||||
{
|
||||
if ($uri instanceof UriInterface) {
|
||||
return $uri;
|
||||
}
|
||||
|
||||
return new Uri($uri);
|
||||
}
|
||||
}
|
||||
78
modules/inpostizi/vendor/nyholm/psr7/src/Factory/Psr17Factory.php
vendored
Normal file
78
modules/inpostizi/vendor/nyholm/psr7/src/Factory/Psr17Factory.php
vendored
Normal file
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Nyholm\Psr7\Factory;
|
||||
|
||||
use Nyholm\Psr7\{Request, Response, ServerRequest, Stream, UploadedFile, Uri};
|
||||
use Psr\Http\Message\{RequestFactoryInterface, RequestInterface, ResponseFactoryInterface, ResponseInterface, ServerRequestFactoryInterface, ServerRequestInterface, StreamFactoryInterface, StreamInterface, UploadedFileFactoryInterface, UploadedFileInterface, UriFactoryInterface, UriInterface};
|
||||
|
||||
/**
|
||||
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
|
||||
* @author Martijn van der Ven <martijn@vanderven.se>
|
||||
*
|
||||
* @final This class should never be extended. See https://github.com/Nyholm/psr7/blob/master/doc/final.md
|
||||
*/
|
||||
class Psr17Factory implements RequestFactoryInterface, ResponseFactoryInterface, ServerRequestFactoryInterface, StreamFactoryInterface, UploadedFileFactoryInterface, UriFactoryInterface
|
||||
{
|
||||
public function createRequest(string $method, $uri): RequestInterface
|
||||
{
|
||||
return new Request($method, $uri);
|
||||
}
|
||||
|
||||
public function createResponse(int $code = 200, string $reasonPhrase = ''): ResponseInterface
|
||||
{
|
||||
if (2 > \func_num_args()) {
|
||||
// This will make the Response class to use a custom reasonPhrase
|
||||
$reasonPhrase = null;
|
||||
}
|
||||
|
||||
return new Response($code, [], null, '1.1', $reasonPhrase);
|
||||
}
|
||||
|
||||
public function createStream(string $content = ''): StreamInterface
|
||||
{
|
||||
return Stream::create($content);
|
||||
}
|
||||
|
||||
public function createStreamFromFile(string $filename, string $mode = 'r'): StreamInterface
|
||||
{
|
||||
if ('' === $filename) {
|
||||
throw new \RuntimeException('Path cannot be empty');
|
||||
}
|
||||
|
||||
if (false === $resource = @\fopen($filename, $mode)) {
|
||||
if ('' === $mode || false === \in_array($mode[0], ['r', 'w', 'a', 'x', 'c'], true)) {
|
||||
throw new \InvalidArgumentException(\sprintf('The mode "%s" is invalid.', $mode));
|
||||
}
|
||||
|
||||
throw new \RuntimeException(\sprintf('The file "%s" cannot be opened: %s', $filename, \error_get_last()['message'] ?? ''));
|
||||
}
|
||||
|
||||
return Stream::create($resource);
|
||||
}
|
||||
|
||||
public function createStreamFromResource($resource): StreamInterface
|
||||
{
|
||||
return Stream::create($resource);
|
||||
}
|
||||
|
||||
public function createUploadedFile(StreamInterface $stream, int $size = null, int $error = \UPLOAD_ERR_OK, string $clientFilename = null, string $clientMediaType = null): UploadedFileInterface
|
||||
{
|
||||
if (null === $size) {
|
||||
$size = $stream->getSize();
|
||||
}
|
||||
|
||||
return new UploadedFile($stream, $size, $error, $clientFilename, $clientMediaType);
|
||||
}
|
||||
|
||||
public function createUri(string $uri = ''): UriInterface
|
||||
{
|
||||
return new Uri($uri);
|
||||
}
|
||||
|
||||
public function createServerRequest(string $method, $uri, array $serverParams = []): ServerRequestInterface
|
||||
{
|
||||
return new ServerRequest($method, $uri, [], null, '1.1', $serverParams);
|
||||
}
|
||||
}
|
||||
219
modules/inpostizi/vendor/nyholm/psr7/src/MessageTrait.php
vendored
Normal file
219
modules/inpostizi/vendor/nyholm/psr7/src/MessageTrait.php
vendored
Normal file
@@ -0,0 +1,219 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Nyholm\Psr7;
|
||||
|
||||
use Psr\Http\Message\StreamInterface;
|
||||
|
||||
/**
|
||||
* Trait implementing functionality common to requests and responses.
|
||||
*
|
||||
* @author Michael Dowling and contributors to guzzlehttp/psr7
|
||||
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
|
||||
* @author Martijn van der Ven <martijn@vanderven.se>
|
||||
*
|
||||
* @internal should not be used outside of Nyholm/Psr7 as it does not fall under our BC promise
|
||||
*/
|
||||
trait MessageTrait
|
||||
{
|
||||
/** @var array Map of all registered headers, as original name => array of values */
|
||||
private $headers = [];
|
||||
|
||||
/** @var array Map of lowercase header name => original name at registration */
|
||||
private $headerNames = [];
|
||||
|
||||
/** @var string */
|
||||
private $protocol = '1.1';
|
||||
|
||||
/** @var StreamInterface|null */
|
||||
private $stream;
|
||||
|
||||
public function getProtocolVersion(): string
|
||||
{
|
||||
return $this->protocol;
|
||||
}
|
||||
|
||||
public function withProtocolVersion($version): self
|
||||
{
|
||||
if (!\is_scalar($version)) {
|
||||
throw new \InvalidArgumentException('Protocol version must be a string');
|
||||
}
|
||||
|
||||
if ($this->protocol === $version) {
|
||||
return $this;
|
||||
}
|
||||
|
||||
$new = clone $this;
|
||||
$new->protocol = (string) $version;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
public function getHeaders(): array
|
||||
{
|
||||
return $this->headers;
|
||||
}
|
||||
|
||||
public function hasHeader($header): bool
|
||||
{
|
||||
return isset($this->headerNames[\strtr($header, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz')]);
|
||||
}
|
||||
|
||||
public function getHeader($header): array
|
||||
{
|
||||
if (!\is_string($header)) {
|
||||
throw new \InvalidArgumentException('Header name must be an RFC 7230 compatible string');
|
||||
}
|
||||
|
||||
$header = \strtr($header, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz');
|
||||
if (!isset($this->headerNames[$header])) {
|
||||
return [];
|
||||
}
|
||||
|
||||
$header = $this->headerNames[$header];
|
||||
|
||||
return $this->headers[$header];
|
||||
}
|
||||
|
||||
public function getHeaderLine($header): string
|
||||
{
|
||||
return \implode(', ', $this->getHeader($header));
|
||||
}
|
||||
|
||||
public function withHeader($header, $value): self
|
||||
{
|
||||
$value = $this->validateAndTrimHeader($header, $value);
|
||||
$normalized = \strtr($header, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz');
|
||||
|
||||
$new = clone $this;
|
||||
if (isset($new->headerNames[$normalized])) {
|
||||
unset($new->headers[$new->headerNames[$normalized]]);
|
||||
}
|
||||
$new->headerNames[$normalized] = $header;
|
||||
$new->headers[$header] = $value;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
public function withAddedHeader($header, $value): self
|
||||
{
|
||||
if (!\is_string($header) || '' === $header) {
|
||||
throw new \InvalidArgumentException('Header name must be an RFC 7230 compatible string');
|
||||
}
|
||||
|
||||
$new = clone $this;
|
||||
$new->setHeaders([$header => $value]);
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
public function withoutHeader($header): self
|
||||
{
|
||||
if (!\is_string($header)) {
|
||||
throw new \InvalidArgumentException('Header name must be an RFC 7230 compatible string');
|
||||
}
|
||||
|
||||
$normalized = \strtr($header, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz');
|
||||
if (!isset($this->headerNames[$normalized])) {
|
||||
return $this;
|
||||
}
|
||||
|
||||
$header = $this->headerNames[$normalized];
|
||||
$new = clone $this;
|
||||
unset($new->headers[$header], $new->headerNames[$normalized]);
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
public function getBody(): StreamInterface
|
||||
{
|
||||
if (null === $this->stream) {
|
||||
$this->stream = Stream::create('');
|
||||
}
|
||||
|
||||
return $this->stream;
|
||||
}
|
||||
|
||||
public function withBody(StreamInterface $body): self
|
||||
{
|
||||
if ($body === $this->stream) {
|
||||
return $this;
|
||||
}
|
||||
|
||||
$new = clone $this;
|
||||
$new->stream = $body;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
private function setHeaders(array $headers): void
|
||||
{
|
||||
foreach ($headers as $header => $value) {
|
||||
if (\is_int($header)) {
|
||||
// If a header name was set to a numeric string, PHP will cast the key to an int.
|
||||
// We must cast it back to a string in order to comply with validation.
|
||||
$header = (string) $header;
|
||||
}
|
||||
$value = $this->validateAndTrimHeader($header, $value);
|
||||
$normalized = \strtr($header, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz');
|
||||
if (isset($this->headerNames[$normalized])) {
|
||||
$header = $this->headerNames[$normalized];
|
||||
$this->headers[$header] = \array_merge($this->headers[$header], $value);
|
||||
} else {
|
||||
$this->headerNames[$normalized] = $header;
|
||||
$this->headers[$header] = $value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Make sure the header complies with RFC 7230.
|
||||
*
|
||||
* Header names must be a non-empty string consisting of token characters.
|
||||
*
|
||||
* Header values must be strings consisting of visible characters with all optional
|
||||
* leading and trailing whitespace stripped. This method will always strip such
|
||||
* optional whitespace. Note that the method does not allow folding whitespace within
|
||||
* the values as this was deprecated for almost all instances by the RFC.
|
||||
*
|
||||
* header-field = field-name ":" OWS field-value OWS
|
||||
* field-name = 1*( "!" / "#" / "$" / "%" / "&" / "'" / "*" / "+" / "-" / "." / "^"
|
||||
* / "_" / "`" / "|" / "~" / %x30-39 / ( %x41-5A / %x61-7A ) )
|
||||
* OWS = *( SP / HTAB )
|
||||
* field-value = *( ( %x21-7E / %x80-FF ) [ 1*( SP / HTAB ) ( %x21-7E / %x80-FF ) ] )
|
||||
*
|
||||
* @see https://tools.ietf.org/html/rfc7230#section-3.2.4
|
||||
*/
|
||||
private function validateAndTrimHeader($header, $values): array
|
||||
{
|
||||
if (!\is_string($header) || 1 !== \preg_match("@^[!#$%&'*+.^_`|~0-9A-Za-z-]+$@D", $header)) {
|
||||
throw new \InvalidArgumentException('Header name must be an RFC 7230 compatible string');
|
||||
}
|
||||
|
||||
if (!\is_array($values)) {
|
||||
// This is simple, just one value.
|
||||
if ((!\is_numeric($values) && !\is_string($values)) || 1 !== \preg_match("@^[ \t\x21-\x7E\x80-\xFF]*$@", (string) $values)) {
|
||||
throw new \InvalidArgumentException('Header values must be RFC 7230 compatible strings');
|
||||
}
|
||||
|
||||
return [\trim((string) $values, " \t")];
|
||||
}
|
||||
|
||||
if (empty($values)) {
|
||||
throw new \InvalidArgumentException('Header values must be a string or an array of strings, empty array given');
|
||||
}
|
||||
|
||||
// Assert Non empty array
|
||||
$returnValues = [];
|
||||
foreach ($values as $v) {
|
||||
if ((!\is_numeric($v) && !\is_string($v)) || 1 !== \preg_match("@^[ \t\x21-\x7E\x80-\xFF]*$@D", (string) $v)) {
|
||||
throw new \InvalidArgumentException('Header values must be RFC 7230 compatible strings');
|
||||
}
|
||||
|
||||
$returnValues[] = \trim((string) $v, " \t");
|
||||
}
|
||||
|
||||
return $returnValues;
|
||||
}
|
||||
}
|
||||
47
modules/inpostizi/vendor/nyholm/psr7/src/Request.php
vendored
Normal file
47
modules/inpostizi/vendor/nyholm/psr7/src/Request.php
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Nyholm\Psr7;
|
||||
|
||||
use Psr\Http\Message\{RequestInterface, StreamInterface, UriInterface};
|
||||
|
||||
/**
|
||||
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
|
||||
* @author Martijn van der Ven <martijn@vanderven.se>
|
||||
*
|
||||
* @final This class should never be extended. See https://github.com/Nyholm/psr7/blob/master/doc/final.md
|
||||
*/
|
||||
class Request implements RequestInterface
|
||||
{
|
||||
use MessageTrait;
|
||||
use RequestTrait;
|
||||
|
||||
/**
|
||||
* @param string $method HTTP method
|
||||
* @param string|UriInterface $uri URI
|
||||
* @param array $headers Request headers
|
||||
* @param string|resource|StreamInterface|null $body Request body
|
||||
* @param string $version Protocol version
|
||||
*/
|
||||
public function __construct(string $method, $uri, array $headers = [], $body = null, string $version = '1.1')
|
||||
{
|
||||
if (!($uri instanceof UriInterface)) {
|
||||
$uri = new Uri($uri);
|
||||
}
|
||||
|
||||
$this->method = $method;
|
||||
$this->uri = $uri;
|
||||
$this->setHeaders($headers);
|
||||
$this->protocol = $version;
|
||||
|
||||
if (!$this->hasHeader('Host')) {
|
||||
$this->updateHostFromUri();
|
||||
}
|
||||
|
||||
// If we got no body, defer initialization of the stream until Request::getBody()
|
||||
if ('' !== $body && null !== $body) {
|
||||
$this->stream = Stream::create($body);
|
||||
}
|
||||
}
|
||||
}
|
||||
117
modules/inpostizi/vendor/nyholm/psr7/src/RequestTrait.php
vendored
Normal file
117
modules/inpostizi/vendor/nyholm/psr7/src/RequestTrait.php
vendored
Normal file
@@ -0,0 +1,117 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Nyholm\Psr7;
|
||||
|
||||
use Psr\Http\Message\UriInterface;
|
||||
|
||||
/**
|
||||
* @author Michael Dowling and contributors to guzzlehttp/psr7
|
||||
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
|
||||
* @author Martijn van der Ven <martijn@vanderven.se>
|
||||
*
|
||||
* @internal should not be used outside of Nyholm/Psr7 as it does not fall under our BC promise
|
||||
*/
|
||||
trait RequestTrait
|
||||
{
|
||||
/** @var string */
|
||||
private $method;
|
||||
|
||||
/** @var string|null */
|
||||
private $requestTarget;
|
||||
|
||||
/** @var UriInterface|null */
|
||||
private $uri;
|
||||
|
||||
public function getRequestTarget(): string
|
||||
{
|
||||
if (null !== $this->requestTarget) {
|
||||
return $this->requestTarget;
|
||||
}
|
||||
|
||||
if ('' === $target = $this->uri->getPath()) {
|
||||
$target = '/';
|
||||
}
|
||||
if ('' !== $this->uri->getQuery()) {
|
||||
$target .= '?' . $this->uri->getQuery();
|
||||
}
|
||||
|
||||
return $target;
|
||||
}
|
||||
|
||||
public function withRequestTarget($requestTarget): self
|
||||
{
|
||||
if (!\is_string($requestTarget)) {
|
||||
throw new \InvalidArgumentException('Request target must be a string');
|
||||
}
|
||||
|
||||
if (\preg_match('#\s#', $requestTarget)) {
|
||||
throw new \InvalidArgumentException('Invalid request target provided; cannot contain whitespace');
|
||||
}
|
||||
|
||||
$new = clone $this;
|
||||
$new->requestTarget = $requestTarget;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
public function getMethod(): string
|
||||
{
|
||||
return $this->method;
|
||||
}
|
||||
|
||||
public function withMethod($method): self
|
||||
{
|
||||
if (!\is_string($method)) {
|
||||
throw new \InvalidArgumentException('Method must be a string');
|
||||
}
|
||||
|
||||
$new = clone $this;
|
||||
$new->method = $method;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
public function getUri(): UriInterface
|
||||
{
|
||||
return $this->uri;
|
||||
}
|
||||
|
||||
public function withUri(UriInterface $uri, $preserveHost = false): self
|
||||
{
|
||||
if ($uri === $this->uri) {
|
||||
return $this;
|
||||
}
|
||||
|
||||
$new = clone $this;
|
||||
$new->uri = $uri;
|
||||
|
||||
if (!$preserveHost || !$this->hasHeader('Host')) {
|
||||
$new->updateHostFromUri();
|
||||
}
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
private function updateHostFromUri(): void
|
||||
{
|
||||
if ('' === $host = $this->uri->getHost()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (null !== ($port = $this->uri->getPort())) {
|
||||
$host .= ':' . $port;
|
||||
}
|
||||
|
||||
if (isset($this->headerNames['host'])) {
|
||||
$header = $this->headerNames['host'];
|
||||
} else {
|
||||
$this->headerNames['host'] = $header = 'Host';
|
||||
}
|
||||
|
||||
// Ensure Host is the first header.
|
||||
// See: http://tools.ietf.org/html/rfc7230#section-5.4
|
||||
$this->headers = [$header => [$host]] + $this->headers;
|
||||
}
|
||||
}
|
||||
90
modules/inpostizi/vendor/nyholm/psr7/src/Response.php
vendored
Normal file
90
modules/inpostizi/vendor/nyholm/psr7/src/Response.php
vendored
Normal file
@@ -0,0 +1,90 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Nyholm\Psr7;
|
||||
|
||||
use Psr\Http\Message\{ResponseInterface, StreamInterface};
|
||||
|
||||
/**
|
||||
* @author Michael Dowling and contributors to guzzlehttp/psr7
|
||||
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
|
||||
* @author Martijn van der Ven <martijn@vanderven.se>
|
||||
*
|
||||
* @final This class should never be extended. See https://github.com/Nyholm/psr7/blob/master/doc/final.md
|
||||
*/
|
||||
class Response implements ResponseInterface
|
||||
{
|
||||
use MessageTrait;
|
||||
|
||||
/** @var array Map of standard HTTP status code/reason phrases */
|
||||
private const PHRASES = [
|
||||
100 => 'Continue', 101 => 'Switching Protocols', 102 => 'Processing',
|
||||
200 => 'OK', 201 => 'Created', 202 => 'Accepted', 203 => 'Non-Authoritative Information', 204 => 'No Content', 205 => 'Reset Content', 206 => 'Partial Content', 207 => 'Multi-status', 208 => 'Already Reported',
|
||||
300 => 'Multiple Choices', 301 => 'Moved Permanently', 302 => 'Found', 303 => 'See Other', 304 => 'Not Modified', 305 => 'Use Proxy', 306 => 'Switch Proxy', 307 => 'Temporary Redirect',
|
||||
400 => 'Bad Request', 401 => 'Unauthorized', 402 => 'Payment Required', 403 => 'Forbidden', 404 => 'Not Found', 405 => 'Method Not Allowed', 406 => 'Not Acceptable', 407 => 'Proxy Authentication Required', 408 => 'Request Time-out', 409 => 'Conflict', 410 => 'Gone', 411 => 'Length Required', 412 => 'Precondition Failed', 413 => 'Request Entity Too Large', 414 => 'Request-URI Too Large', 415 => 'Unsupported Media Type', 416 => 'Requested range not satisfiable', 417 => 'Expectation Failed', 418 => 'I\'m a teapot', 422 => 'Unprocessable Entity', 423 => 'Locked', 424 => 'Failed Dependency', 425 => 'Unordered Collection', 426 => 'Upgrade Required', 428 => 'Precondition Required', 429 => 'Too Many Requests', 431 => 'Request Header Fields Too Large', 451 => 'Unavailable For Legal Reasons',
|
||||
500 => 'Internal Server Error', 501 => 'Not Implemented', 502 => 'Bad Gateway', 503 => 'Service Unavailable', 504 => 'Gateway Time-out', 505 => 'HTTP Version not supported', 506 => 'Variant Also Negotiates', 507 => 'Insufficient Storage', 508 => 'Loop Detected', 511 => 'Network Authentication Required',
|
||||
];
|
||||
|
||||
/** @var string */
|
||||
private $reasonPhrase = '';
|
||||
|
||||
/** @var int */
|
||||
private $statusCode;
|
||||
|
||||
/**
|
||||
* @param int $status Status code
|
||||
* @param array $headers Response headers
|
||||
* @param string|resource|StreamInterface|null $body Response body
|
||||
* @param string $version Protocol version
|
||||
* @param string|null $reason Reason phrase (when empty a default will be used based on the status code)
|
||||
*/
|
||||
public function __construct(int $status = 200, array $headers = [], $body = null, string $version = '1.1', string $reason = null)
|
||||
{
|
||||
// If we got no body, defer initialization of the stream until Response::getBody()
|
||||
if ('' !== $body && null !== $body) {
|
||||
$this->stream = Stream::create($body);
|
||||
}
|
||||
|
||||
$this->statusCode = $status;
|
||||
$this->setHeaders($headers);
|
||||
if (null === $reason && isset(self::PHRASES[$this->statusCode])) {
|
||||
$this->reasonPhrase = self::PHRASES[$status];
|
||||
} else {
|
||||
$this->reasonPhrase = $reason ?? '';
|
||||
}
|
||||
|
||||
$this->protocol = $version;
|
||||
}
|
||||
|
||||
public function getStatusCode(): int
|
||||
{
|
||||
return $this->statusCode;
|
||||
}
|
||||
|
||||
public function getReasonPhrase(): string
|
||||
{
|
||||
return $this->reasonPhrase;
|
||||
}
|
||||
|
||||
public function withStatus($code, $reasonPhrase = ''): self
|
||||
{
|
||||
if (!\is_int($code) && !\is_string($code)) {
|
||||
throw new \InvalidArgumentException('Status code has to be an integer');
|
||||
}
|
||||
|
||||
$code = (int) $code;
|
||||
if ($code < 100 || $code > 599) {
|
||||
throw new \InvalidArgumentException(\sprintf('Status code has to be an integer between 100 and 599. A status code of %d was given', $code));
|
||||
}
|
||||
|
||||
$new = clone $this;
|
||||
$new->statusCode = $code;
|
||||
if ((null === $reasonPhrase || '' === $reasonPhrase) && isset(self::PHRASES[$new->statusCode])) {
|
||||
$reasonPhrase = self::PHRASES[$new->statusCode];
|
||||
}
|
||||
$new->reasonPhrase = $reasonPhrase;
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
195
modules/inpostizi/vendor/nyholm/psr7/src/ServerRequest.php
vendored
Normal file
195
modules/inpostizi/vendor/nyholm/psr7/src/ServerRequest.php
vendored
Normal file
@@ -0,0 +1,195 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Nyholm\Psr7;
|
||||
|
||||
use Psr\Http\Message\{ServerRequestInterface, StreamInterface, UploadedFileInterface, UriInterface};
|
||||
|
||||
/**
|
||||
* @author Michael Dowling and contributors to guzzlehttp/psr7
|
||||
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
|
||||
* @author Martijn van der Ven <martijn@vanderven.se>
|
||||
*
|
||||
* @final This class should never be extended. See https://github.com/Nyholm/psr7/blob/master/doc/final.md
|
||||
*/
|
||||
class ServerRequest implements ServerRequestInterface
|
||||
{
|
||||
use MessageTrait;
|
||||
use RequestTrait;
|
||||
|
||||
/** @var array */
|
||||
private $attributes = [];
|
||||
|
||||
/** @var array */
|
||||
private $cookieParams = [];
|
||||
|
||||
/** @var array|object|null */
|
||||
private $parsedBody;
|
||||
|
||||
/** @var array */
|
||||
private $queryParams = [];
|
||||
|
||||
/** @var array */
|
||||
private $serverParams;
|
||||
|
||||
/** @var UploadedFileInterface[] */
|
||||
private $uploadedFiles = [];
|
||||
|
||||
/**
|
||||
* @param string $method HTTP method
|
||||
* @param string|UriInterface $uri URI
|
||||
* @param array $headers Request headers
|
||||
* @param string|resource|StreamInterface|null $body Request body
|
||||
* @param string $version Protocol version
|
||||
* @param array $serverParams Typically the $_SERVER superglobal
|
||||
*/
|
||||
public function __construct(string $method, $uri, array $headers = [], $body = null, string $version = '1.1', array $serverParams = [])
|
||||
{
|
||||
$this->serverParams = $serverParams;
|
||||
|
||||
if (!($uri instanceof UriInterface)) {
|
||||
$uri = new Uri($uri);
|
||||
}
|
||||
|
||||
$this->method = $method;
|
||||
$this->uri = $uri;
|
||||
$this->setHeaders($headers);
|
||||
$this->protocol = $version;
|
||||
\parse_str($uri->getQuery(), $this->queryParams);
|
||||
|
||||
if (!$this->hasHeader('Host')) {
|
||||
$this->updateHostFromUri();
|
||||
}
|
||||
|
||||
// If we got no body, defer initialization of the stream until ServerRequest::getBody()
|
||||
if ('' !== $body && null !== $body) {
|
||||
$this->stream = Stream::create($body);
|
||||
}
|
||||
}
|
||||
|
||||
public function getServerParams(): array
|
||||
{
|
||||
return $this->serverParams;
|
||||
}
|
||||
|
||||
public function getUploadedFiles(): array
|
||||
{
|
||||
return $this->uploadedFiles;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return static
|
||||
*/
|
||||
public function withUploadedFiles(array $uploadedFiles)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->uploadedFiles = $uploadedFiles;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
public function getCookieParams(): array
|
||||
{
|
||||
return $this->cookieParams;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return static
|
||||
*/
|
||||
public function withCookieParams(array $cookies)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->cookieParams = $cookies;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
public function getQueryParams(): array
|
||||
{
|
||||
return $this->queryParams;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return static
|
||||
*/
|
||||
public function withQueryParams(array $query)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->queryParams = $query;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array|object|null
|
||||
*/
|
||||
public function getParsedBody()
|
||||
{
|
||||
return $this->parsedBody;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return static
|
||||
*/
|
||||
public function withParsedBody($data)
|
||||
{
|
||||
if (!\is_array($data) && !\is_object($data) && null !== $data) {
|
||||
throw new \InvalidArgumentException('First parameter to withParsedBody MUST be object, array or null');
|
||||
}
|
||||
|
||||
$new = clone $this;
|
||||
$new->parsedBody = $data;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
public function getAttributes(): array
|
||||
{
|
||||
return $this->attributes;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getAttribute($attribute, $default = null)
|
||||
{
|
||||
if (!\is_string($attribute)) {
|
||||
throw new \InvalidArgumentException('Attribute name must be a string');
|
||||
}
|
||||
|
||||
if (false === \array_key_exists($attribute, $this->attributes)) {
|
||||
return $default;
|
||||
}
|
||||
|
||||
return $this->attributes[$attribute];
|
||||
}
|
||||
|
||||
public function withAttribute($attribute, $value): self
|
||||
{
|
||||
if (!\is_string($attribute)) {
|
||||
throw new \InvalidArgumentException('Attribute name must be a string');
|
||||
}
|
||||
|
||||
$new = clone $this;
|
||||
$new->attributes[$attribute] = $value;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
public function withoutAttribute($attribute): self
|
||||
{
|
||||
if (!\is_string($attribute)) {
|
||||
throw new \InvalidArgumentException('Attribute name must be a string');
|
||||
}
|
||||
|
||||
if (false === \array_key_exists($attribute, $this->attributes)) {
|
||||
return $this;
|
||||
}
|
||||
|
||||
$new = clone $this;
|
||||
unset($new->attributes[$attribute]);
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
316
modules/inpostizi/vendor/nyholm/psr7/src/Stream.php
vendored
Normal file
316
modules/inpostizi/vendor/nyholm/psr7/src/Stream.php
vendored
Normal file
@@ -0,0 +1,316 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Nyholm\Psr7;
|
||||
|
||||
use Psr\Http\Message\StreamInterface;
|
||||
use Symfony\Component\Debug\ErrorHandler as SymfonyLegacyErrorHandler;
|
||||
use Symfony\Component\ErrorHandler\ErrorHandler as SymfonyErrorHandler;
|
||||
|
||||
/**
|
||||
* @author Michael Dowling and contributors to guzzlehttp/psr7
|
||||
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
|
||||
* @author Martijn van der Ven <martijn@vanderven.se>
|
||||
*
|
||||
* @final This class should never be extended. See https://github.com/Nyholm/psr7/blob/master/doc/final.md
|
||||
*/
|
||||
class Stream implements StreamInterface
|
||||
{
|
||||
/** @var resource|null A resource reference */
|
||||
private $stream;
|
||||
|
||||
/** @var bool */
|
||||
private $seekable;
|
||||
|
||||
/** @var bool */
|
||||
private $readable;
|
||||
|
||||
/** @var bool */
|
||||
private $writable;
|
||||
|
||||
/** @var array|mixed|void|bool|null */
|
||||
private $uri;
|
||||
|
||||
/** @var int|null */
|
||||
private $size;
|
||||
|
||||
/** @var array Hash of readable and writable stream types */
|
||||
private const READ_WRITE_HASH = [
|
||||
'read' => [
|
||||
'r' => true, 'w+' => true, 'r+' => true, 'x+' => true, 'c+' => true,
|
||||
'rb' => true, 'w+b' => true, 'r+b' => true, 'x+b' => true,
|
||||
'c+b' => true, 'rt' => true, 'w+t' => true, 'r+t' => true,
|
||||
'x+t' => true, 'c+t' => true, 'a+' => true,
|
||||
],
|
||||
'write' => [
|
||||
'w' => true, 'w+' => true, 'rw' => true, 'r+' => true, 'x+' => true,
|
||||
'c+' => true, 'wb' => true, 'w+b' => true, 'r+b' => true,
|
||||
'x+b' => true, 'c+b' => true, 'w+t' => true, 'r+t' => true,
|
||||
'x+t' => true, 'c+t' => true, 'a' => true, 'a+' => true,
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
* @param resource $body
|
||||
*/
|
||||
public function __construct($body)
|
||||
{
|
||||
if (!\is_resource($body)) {
|
||||
throw new \InvalidArgumentException('First argument to Stream::__construct() must be resource');
|
||||
}
|
||||
|
||||
$this->stream = $body;
|
||||
$meta = \stream_get_meta_data($this->stream);
|
||||
$this->seekable = $meta['seekable'] && 0 === \fseek($this->stream, 0, \SEEK_CUR);
|
||||
$this->readable = isset(self::READ_WRITE_HASH['read'][$meta['mode']]);
|
||||
$this->writable = isset(self::READ_WRITE_HASH['write'][$meta['mode']]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new PSR-7 stream.
|
||||
*
|
||||
* @param string|resource|StreamInterface $body
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
*/
|
||||
public static function create($body = ''): StreamInterface
|
||||
{
|
||||
if ($body instanceof StreamInterface) {
|
||||
return $body;
|
||||
}
|
||||
|
||||
if (\is_string($body)) {
|
||||
$resource = \fopen('php://temp', 'rw+');
|
||||
\fwrite($resource, $body);
|
||||
\fseek($resource, 0);
|
||||
$body = $resource;
|
||||
}
|
||||
|
||||
if (!\is_resource($body)) {
|
||||
throw new \InvalidArgumentException('First argument to Stream::create() must be a string, resource or StreamInterface');
|
||||
}
|
||||
|
||||
return new self($body);
|
||||
}
|
||||
|
||||
/**
|
||||
* Closes the stream when the destructed.
|
||||
*/
|
||||
public function __destruct()
|
||||
{
|
||||
$this->close();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
try {
|
||||
if ($this->isSeekable()) {
|
||||
$this->seek(0);
|
||||
}
|
||||
|
||||
return $this->getContents();
|
||||
} catch (\Throwable $e) {
|
||||
if (\PHP_VERSION_ID >= 70400) {
|
||||
throw $e;
|
||||
}
|
||||
|
||||
if (\is_array($errorHandler = \set_error_handler('var_dump'))) {
|
||||
$errorHandler = $errorHandler[0] ?? null;
|
||||
}
|
||||
\restore_error_handler();
|
||||
|
||||
if ($e instanceof \Error || $errorHandler instanceof SymfonyErrorHandler || $errorHandler instanceof SymfonyLegacyErrorHandler) {
|
||||
return \trigger_error((string) $e, \E_USER_ERROR);
|
||||
}
|
||||
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
public function close(): void
|
||||
{
|
||||
if (isset($this->stream)) {
|
||||
if (\is_resource($this->stream)) {
|
||||
\fclose($this->stream);
|
||||
}
|
||||
$this->detach();
|
||||
}
|
||||
}
|
||||
|
||||
public function detach()
|
||||
{
|
||||
if (!isset($this->stream)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$result = $this->stream;
|
||||
unset($this->stream);
|
||||
$this->size = $this->uri = null;
|
||||
$this->readable = $this->writable = $this->seekable = false;
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
private function getUri()
|
||||
{
|
||||
if (false !== $this->uri) {
|
||||
$this->uri = $this->getMetadata('uri') ?? false;
|
||||
}
|
||||
|
||||
return $this->uri;
|
||||
}
|
||||
|
||||
public function getSize(): ?int
|
||||
{
|
||||
if (null !== $this->size) {
|
||||
return $this->size;
|
||||
}
|
||||
|
||||
if (!isset($this->stream)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// Clear the stat cache if the stream has a URI
|
||||
if ($uri = $this->getUri()) {
|
||||
\clearstatcache(true, $uri);
|
||||
}
|
||||
|
||||
$stats = \fstat($this->stream);
|
||||
if (isset($stats['size'])) {
|
||||
$this->size = $stats['size'];
|
||||
|
||||
return $this->size;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public function tell(): int
|
||||
{
|
||||
if (!isset($this->stream)) {
|
||||
throw new \RuntimeException('Stream is detached');
|
||||
}
|
||||
|
||||
if (false === $result = @\ftell($this->stream)) {
|
||||
throw new \RuntimeException('Unable to determine stream position: ' . (\error_get_last()['message'] ?? ''));
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
public function eof(): bool
|
||||
{
|
||||
return !isset($this->stream) || \feof($this->stream);
|
||||
}
|
||||
|
||||
public function isSeekable(): bool
|
||||
{
|
||||
return $this->seekable;
|
||||
}
|
||||
|
||||
public function seek($offset, $whence = \SEEK_SET): void
|
||||
{
|
||||
if (!isset($this->stream)) {
|
||||
throw new \RuntimeException('Stream is detached');
|
||||
}
|
||||
|
||||
if (!$this->seekable) {
|
||||
throw new \RuntimeException('Stream is not seekable');
|
||||
}
|
||||
|
||||
if (-1 === \fseek($this->stream, $offset, $whence)) {
|
||||
throw new \RuntimeException('Unable to seek to stream position "' . $offset . '" with whence ' . \var_export($whence, true));
|
||||
}
|
||||
}
|
||||
|
||||
public function rewind(): void
|
||||
{
|
||||
$this->seek(0);
|
||||
}
|
||||
|
||||
public function isWritable(): bool
|
||||
{
|
||||
return $this->writable;
|
||||
}
|
||||
|
||||
public function write($string): int
|
||||
{
|
||||
if (!isset($this->stream)) {
|
||||
throw new \RuntimeException('Stream is detached');
|
||||
}
|
||||
|
||||
if (!$this->writable) {
|
||||
throw new \RuntimeException('Cannot write to a non-writable stream');
|
||||
}
|
||||
|
||||
// We can't know the size after writing anything
|
||||
$this->size = null;
|
||||
|
||||
if (false === $result = @\fwrite($this->stream, $string)) {
|
||||
throw new \RuntimeException('Unable to write to stream: ' . (\error_get_last()['message'] ?? ''));
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
public function isReadable(): bool
|
||||
{
|
||||
return $this->readable;
|
||||
}
|
||||
|
||||
public function read($length): string
|
||||
{
|
||||
if (!isset($this->stream)) {
|
||||
throw new \RuntimeException('Stream is detached');
|
||||
}
|
||||
|
||||
if (!$this->readable) {
|
||||
throw new \RuntimeException('Cannot read from non-readable stream');
|
||||
}
|
||||
|
||||
if (false === $result = @\fread($this->stream, $length)) {
|
||||
throw new \RuntimeException('Unable to read from stream: ' . (\error_get_last()['message'] ?? ''));
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
public function getContents(): string
|
||||
{
|
||||
if (!isset($this->stream)) {
|
||||
throw new \RuntimeException('Stream is detached');
|
||||
}
|
||||
|
||||
if (false === $contents = @\stream_get_contents($this->stream)) {
|
||||
throw new \RuntimeException('Unable to read stream contents: ' . (\error_get_last()['message'] ?? ''));
|
||||
}
|
||||
|
||||
return $contents;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getMetadata($key = null)
|
||||
{
|
||||
if (null !== $key && !\is_string($key)) {
|
||||
throw new \InvalidArgumentException('Metadata key must be a string');
|
||||
}
|
||||
|
||||
if (!isset($this->stream)) {
|
||||
return $key ? null : [];
|
||||
}
|
||||
|
||||
$meta = \stream_get_meta_data($this->stream);
|
||||
|
||||
if (null === $key) {
|
||||
return $meta;
|
||||
}
|
||||
|
||||
return $meta[$key] ?? null;
|
||||
}
|
||||
}
|
||||
179
modules/inpostizi/vendor/nyholm/psr7/src/UploadedFile.php
vendored
Normal file
179
modules/inpostizi/vendor/nyholm/psr7/src/UploadedFile.php
vendored
Normal file
@@ -0,0 +1,179 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Nyholm\Psr7;
|
||||
|
||||
use Psr\Http\Message\{StreamInterface, UploadedFileInterface};
|
||||
|
||||
/**
|
||||
* @author Michael Dowling and contributors to guzzlehttp/psr7
|
||||
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
|
||||
* @author Martijn van der Ven <martijn@vanderven.se>
|
||||
*
|
||||
* @final This class should never be extended. See https://github.com/Nyholm/psr7/blob/master/doc/final.md
|
||||
*/
|
||||
class UploadedFile implements UploadedFileInterface
|
||||
{
|
||||
/** @var array */
|
||||
private const ERRORS = [
|
||||
\UPLOAD_ERR_OK => 1,
|
||||
\UPLOAD_ERR_INI_SIZE => 1,
|
||||
\UPLOAD_ERR_FORM_SIZE => 1,
|
||||
\UPLOAD_ERR_PARTIAL => 1,
|
||||
\UPLOAD_ERR_NO_FILE => 1,
|
||||
\UPLOAD_ERR_NO_TMP_DIR => 1,
|
||||
\UPLOAD_ERR_CANT_WRITE => 1,
|
||||
\UPLOAD_ERR_EXTENSION => 1,
|
||||
];
|
||||
|
||||
/** @var string */
|
||||
private $clientFilename;
|
||||
|
||||
/** @var string */
|
||||
private $clientMediaType;
|
||||
|
||||
/** @var int */
|
||||
private $error;
|
||||
|
||||
/** @var string|null */
|
||||
private $file;
|
||||
|
||||
/** @var bool */
|
||||
private $moved = false;
|
||||
|
||||
/** @var int */
|
||||
private $size;
|
||||
|
||||
/** @var StreamInterface|null */
|
||||
private $stream;
|
||||
|
||||
/**
|
||||
* @param StreamInterface|string|resource $streamOrFile
|
||||
* @param int $size
|
||||
* @param int $errorStatus
|
||||
* @param string|null $clientFilename
|
||||
* @param string|null $clientMediaType
|
||||
*/
|
||||
public function __construct($streamOrFile, $size, $errorStatus, $clientFilename = null, $clientMediaType = null)
|
||||
{
|
||||
if (false === \is_int($errorStatus) || !isset(self::ERRORS[$errorStatus])) {
|
||||
throw new \InvalidArgumentException('Upload file error status must be an integer value and one of the "UPLOAD_ERR_*" constants');
|
||||
}
|
||||
|
||||
if (false === \is_int($size)) {
|
||||
throw new \InvalidArgumentException('Upload file size must be an integer');
|
||||
}
|
||||
|
||||
if (null !== $clientFilename && !\is_string($clientFilename)) {
|
||||
throw new \InvalidArgumentException('Upload file client filename must be a string or null');
|
||||
}
|
||||
|
||||
if (null !== $clientMediaType && !\is_string($clientMediaType)) {
|
||||
throw new \InvalidArgumentException('Upload file client media type must be a string or null');
|
||||
}
|
||||
|
||||
$this->error = $errorStatus;
|
||||
$this->size = $size;
|
||||
$this->clientFilename = $clientFilename;
|
||||
$this->clientMediaType = $clientMediaType;
|
||||
|
||||
if (\UPLOAD_ERR_OK === $this->error) {
|
||||
// Depending on the value set file or stream variable.
|
||||
if (\is_string($streamOrFile) && '' !== $streamOrFile) {
|
||||
$this->file = $streamOrFile;
|
||||
} elseif (\is_resource($streamOrFile)) {
|
||||
$this->stream = Stream::create($streamOrFile);
|
||||
} elseif ($streamOrFile instanceof StreamInterface) {
|
||||
$this->stream = $streamOrFile;
|
||||
} else {
|
||||
throw new \InvalidArgumentException('Invalid stream or file provided for UploadedFile');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \RuntimeException if is moved or not ok
|
||||
*/
|
||||
private function validateActive(): void
|
||||
{
|
||||
if (\UPLOAD_ERR_OK !== $this->error) {
|
||||
throw new \RuntimeException('Cannot retrieve stream due to upload error');
|
||||
}
|
||||
|
||||
if ($this->moved) {
|
||||
throw new \RuntimeException('Cannot retrieve stream after it has already been moved');
|
||||
}
|
||||
}
|
||||
|
||||
public function getStream(): StreamInterface
|
||||
{
|
||||
$this->validateActive();
|
||||
|
||||
if ($this->stream instanceof StreamInterface) {
|
||||
return $this->stream;
|
||||
}
|
||||
|
||||
if (false === $resource = @\fopen($this->file, 'r')) {
|
||||
throw new \RuntimeException(\sprintf('The file "%s" cannot be opened: %s', $this->file, \error_get_last()['message'] ?? ''));
|
||||
}
|
||||
|
||||
return Stream::create($resource);
|
||||
}
|
||||
|
||||
public function moveTo($targetPath): void
|
||||
{
|
||||
$this->validateActive();
|
||||
|
||||
if (!\is_string($targetPath) || '' === $targetPath) {
|
||||
throw new \InvalidArgumentException('Invalid path provided for move operation; must be a non-empty string');
|
||||
}
|
||||
|
||||
if (null !== $this->file) {
|
||||
$this->moved = 'cli' === \PHP_SAPI ? @\rename($this->file, $targetPath) : @\move_uploaded_file($this->file, $targetPath);
|
||||
|
||||
if (false === $this->moved) {
|
||||
throw new \RuntimeException(\sprintf('Uploaded file could not be moved to "%s": %s', $targetPath, \error_get_last()['message'] ?? ''));
|
||||
}
|
||||
} else {
|
||||
$stream = $this->getStream();
|
||||
if ($stream->isSeekable()) {
|
||||
$stream->rewind();
|
||||
}
|
||||
|
||||
if (false === $resource = @\fopen($targetPath, 'w')) {
|
||||
throw new \RuntimeException(\sprintf('The file "%s" cannot be opened: %s', $targetPath, \error_get_last()['message'] ?? ''));
|
||||
}
|
||||
|
||||
$dest = Stream::create($resource);
|
||||
|
||||
while (!$stream->eof()) {
|
||||
if (!$dest->write($stream->read(1048576))) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
$this->moved = true;
|
||||
}
|
||||
}
|
||||
|
||||
public function getSize(): int
|
||||
{
|
||||
return $this->size;
|
||||
}
|
||||
|
||||
public function getError(): int
|
||||
{
|
||||
return $this->error;
|
||||
}
|
||||
|
||||
public function getClientFilename(): ?string
|
||||
{
|
||||
return $this->clientFilename;
|
||||
}
|
||||
|
||||
public function getClientMediaType(): ?string
|
||||
{
|
||||
return $this->clientMediaType;
|
||||
}
|
||||
}
|
||||
335
modules/inpostizi/vendor/nyholm/psr7/src/Uri.php
vendored
Normal file
335
modules/inpostizi/vendor/nyholm/psr7/src/Uri.php
vendored
Normal file
@@ -0,0 +1,335 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Nyholm\Psr7;
|
||||
|
||||
use Psr\Http\Message\UriInterface;
|
||||
|
||||
/**
|
||||
* PSR-7 URI implementation.
|
||||
*
|
||||
* @author Michael Dowling
|
||||
* @author Tobias Schultze
|
||||
* @author Matthew Weier O'Phinney
|
||||
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
|
||||
* @author Martijn van der Ven <martijn@vanderven.se>
|
||||
*
|
||||
* @final This class should never be extended. See https://github.com/Nyholm/psr7/blob/master/doc/final.md
|
||||
*/
|
||||
class Uri implements UriInterface
|
||||
{
|
||||
private const SCHEMES = ['http' => 80, 'https' => 443];
|
||||
|
||||
private const CHAR_UNRESERVED = 'a-zA-Z0-9_\-\.~';
|
||||
|
||||
private const CHAR_SUB_DELIMS = '!\$&\'\(\)\*\+,;=';
|
||||
|
||||
private const CHAR_GEN_DELIMS = ':\/\?#\[\]@';
|
||||
|
||||
/** @var string Uri scheme. */
|
||||
private $scheme = '';
|
||||
|
||||
/** @var string Uri user info. */
|
||||
private $userInfo = '';
|
||||
|
||||
/** @var string Uri host. */
|
||||
private $host = '';
|
||||
|
||||
/** @var int|null Uri port. */
|
||||
private $port;
|
||||
|
||||
/** @var string Uri path. */
|
||||
private $path = '';
|
||||
|
||||
/** @var string Uri query string. */
|
||||
private $query = '';
|
||||
|
||||
/** @var string Uri fragment. */
|
||||
private $fragment = '';
|
||||
|
||||
public function __construct(string $uri = '')
|
||||
{
|
||||
if ('' !== $uri) {
|
||||
if (false === $parts = \parse_url($uri)) {
|
||||
throw new \InvalidArgumentException(\sprintf('Unable to parse URI: "%s"', $uri));
|
||||
}
|
||||
|
||||
// Apply parse_url parts to a URI.
|
||||
$this->scheme = isset($parts['scheme']) ? \strtr($parts['scheme'], 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz') : '';
|
||||
$this->userInfo = $parts['user'] ?? '';
|
||||
$this->host = isset($parts['host']) ? \strtr($parts['host'], 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz') : '';
|
||||
$this->port = isset($parts['port']) ? $this->filterPort($parts['port']) : null;
|
||||
$this->path = isset($parts['path']) ? $this->filterPath($parts['path']) : '';
|
||||
$this->query = isset($parts['query']) ? $this->filterQueryAndFragment($parts['query']) : '';
|
||||
$this->fragment = isset($parts['fragment']) ? $this->filterQueryAndFragment($parts['fragment']) : '';
|
||||
if (isset($parts['pass'])) {
|
||||
$this->userInfo .= ':' . $parts['pass'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function __toString(): string
|
||||
{
|
||||
return self::createUriString($this->scheme, $this->getAuthority(), $this->path, $this->query, $this->fragment);
|
||||
}
|
||||
|
||||
public function getScheme(): string
|
||||
{
|
||||
return $this->scheme;
|
||||
}
|
||||
|
||||
public function getAuthority(): string
|
||||
{
|
||||
if ('' === $this->host) {
|
||||
return '';
|
||||
}
|
||||
|
||||
$authority = $this->host;
|
||||
if ('' !== $this->userInfo) {
|
||||
$authority = $this->userInfo . '@' . $authority;
|
||||
}
|
||||
|
||||
if (null !== $this->port) {
|
||||
$authority .= ':' . $this->port;
|
||||
}
|
||||
|
||||
return $authority;
|
||||
}
|
||||
|
||||
public function getUserInfo(): string
|
||||
{
|
||||
return $this->userInfo;
|
||||
}
|
||||
|
||||
public function getHost(): string
|
||||
{
|
||||
return $this->host;
|
||||
}
|
||||
|
||||
public function getPort(): ?int
|
||||
{
|
||||
return $this->port;
|
||||
}
|
||||
|
||||
public function getPath(): string
|
||||
{
|
||||
$path = $this->path;
|
||||
|
||||
if ('' !== $path && '/' !== $path[0]) {
|
||||
if ('' !== $this->host) {
|
||||
// If the path is rootless and an authority is present, the path MUST be prefixed by "/"
|
||||
$path = '/' . $path;
|
||||
}
|
||||
} elseif (isset($path[1]) && '/' === $path[1]) {
|
||||
// If the path is starting with more than one "/", the
|
||||
// starting slashes MUST be reduced to one.
|
||||
$path = '/' . \ltrim($path, '/');
|
||||
}
|
||||
|
||||
return $path;
|
||||
}
|
||||
|
||||
public function getQuery(): string
|
||||
{
|
||||
return $this->query;
|
||||
}
|
||||
|
||||
public function getFragment(): string
|
||||
{
|
||||
return $this->fragment;
|
||||
}
|
||||
|
||||
public function withScheme($scheme): self
|
||||
{
|
||||
if (!\is_string($scheme)) {
|
||||
throw new \InvalidArgumentException('Scheme must be a string');
|
||||
}
|
||||
|
||||
if ($this->scheme === $scheme = \strtr($scheme, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz')) {
|
||||
return $this;
|
||||
}
|
||||
|
||||
$new = clone $this;
|
||||
$new->scheme = $scheme;
|
||||
$new->port = $new->filterPort($new->port);
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
public function withUserInfo($user, $password = null): self
|
||||
{
|
||||
if (!\is_string($user)) {
|
||||
throw new \InvalidArgumentException('User must be a string');
|
||||
}
|
||||
|
||||
$info = \preg_replace_callback('/[' . self::CHAR_GEN_DELIMS . self::CHAR_SUB_DELIMS . ']++/', [__CLASS__, 'rawurlencodeMatchZero'], $user);
|
||||
if (null !== $password && '' !== $password) {
|
||||
if (!\is_string($password)) {
|
||||
throw new \InvalidArgumentException('Password must be a string');
|
||||
}
|
||||
|
||||
$info .= ':' . \preg_replace_callback('/[' . self::CHAR_GEN_DELIMS . self::CHAR_SUB_DELIMS . ']++/', [__CLASS__, 'rawurlencodeMatchZero'], $password);
|
||||
}
|
||||
|
||||
if ($this->userInfo === $info) {
|
||||
return $this;
|
||||
}
|
||||
|
||||
$new = clone $this;
|
||||
$new->userInfo = $info;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
public function withHost($host): self
|
||||
{
|
||||
if (!\is_string($host)) {
|
||||
throw new \InvalidArgumentException('Host must be a string');
|
||||
}
|
||||
|
||||
if ($this->host === $host = \strtr($host, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz')) {
|
||||
return $this;
|
||||
}
|
||||
|
||||
$new = clone $this;
|
||||
$new->host = $host;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
public function withPort($port): self
|
||||
{
|
||||
if ($this->port === $port = $this->filterPort($port)) {
|
||||
return $this;
|
||||
}
|
||||
|
||||
$new = clone $this;
|
||||
$new->port = $port;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
public function withPath($path): self
|
||||
{
|
||||
if ($this->path === $path = $this->filterPath($path)) {
|
||||
return $this;
|
||||
}
|
||||
|
||||
$new = clone $this;
|
||||
$new->path = $path;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
public function withQuery($query): self
|
||||
{
|
||||
if ($this->query === $query = $this->filterQueryAndFragment($query)) {
|
||||
return $this;
|
||||
}
|
||||
|
||||
$new = clone $this;
|
||||
$new->query = $query;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
public function withFragment($fragment): self
|
||||
{
|
||||
if ($this->fragment === $fragment = $this->filterQueryAndFragment($fragment)) {
|
||||
return $this;
|
||||
}
|
||||
|
||||
$new = clone $this;
|
||||
$new->fragment = $fragment;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a URI string from its various parts.
|
||||
*/
|
||||
private static function createUriString(string $scheme, string $authority, string $path, string $query, string $fragment): string
|
||||
{
|
||||
$uri = '';
|
||||
if ('' !== $scheme) {
|
||||
$uri .= $scheme . ':';
|
||||
}
|
||||
|
||||
if ('' !== $authority) {
|
||||
$uri .= '//' . $authority;
|
||||
}
|
||||
|
||||
if ('' !== $path) {
|
||||
if ('/' !== $path[0]) {
|
||||
if ('' !== $authority) {
|
||||
// If the path is rootless and an authority is present, the path MUST be prefixed by "/"
|
||||
$path = '/' . $path;
|
||||
}
|
||||
} elseif (isset($path[1]) && '/' === $path[1]) {
|
||||
if ('' === $authority) {
|
||||
// If the path is starting with more than one "/" and no authority is present, the
|
||||
// starting slashes MUST be reduced to one.
|
||||
$path = '/' . \ltrim($path, '/');
|
||||
}
|
||||
}
|
||||
|
||||
$uri .= $path;
|
||||
}
|
||||
|
||||
if ('' !== $query) {
|
||||
$uri .= '?' . $query;
|
||||
}
|
||||
|
||||
if ('' !== $fragment) {
|
||||
$uri .= '#' . $fragment;
|
||||
}
|
||||
|
||||
return $uri;
|
||||
}
|
||||
|
||||
/**
|
||||
* Is a given port non-standard for the current scheme?
|
||||
*/
|
||||
private static function isNonStandardPort(string $scheme, int $port): bool
|
||||
{
|
||||
return !isset(self::SCHEMES[$scheme]) || $port !== self::SCHEMES[$scheme];
|
||||
}
|
||||
|
||||
private function filterPort($port): ?int
|
||||
{
|
||||
if (null === $port) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$port = (int) $port;
|
||||
if (0 > $port || 0xFFFF < $port) {
|
||||
throw new \InvalidArgumentException(\sprintf('Invalid port: %d. Must be between 0 and 65535', $port));
|
||||
}
|
||||
|
||||
return self::isNonStandardPort($this->scheme, $port) ? $port : null;
|
||||
}
|
||||
|
||||
private function filterPath($path): string
|
||||
{
|
||||
if (!\is_string($path)) {
|
||||
throw new \InvalidArgumentException('Path must be a string');
|
||||
}
|
||||
|
||||
return \preg_replace_callback('/(?:[^' . self::CHAR_UNRESERVED . self::CHAR_SUB_DELIMS . '%:@\/]++|%(?![A-Fa-f0-9]{2}))/', [__CLASS__, 'rawurlencodeMatchZero'], $path);
|
||||
}
|
||||
|
||||
private function filterQueryAndFragment($str): string
|
||||
{
|
||||
if (!\is_string($str)) {
|
||||
throw new \InvalidArgumentException('Query and fragment must be a string');
|
||||
}
|
||||
|
||||
return \preg_replace_callback('/(?:[^' . self::CHAR_UNRESERVED . self::CHAR_SUB_DELIMS . '%:@\/\?]++|%(?![A-Fa-f0-9]{2}))/', [__CLASS__, 'rawurlencodeMatchZero'], $str);
|
||||
}
|
||||
|
||||
private static function rawurlencodeMatchZero(array $match): string
|
||||
{
|
||||
return \rawurlencode($match[0]);
|
||||
}
|
||||
}
|
||||
72
modules/inpostizi/vendor/php-http/message-factory/CHANGELOG.md
vendored
Normal file
72
modules/inpostizi/vendor/php-http/message-factory/CHANGELOG.md
vendored
Normal file
@@ -0,0 +1,72 @@
|
||||
# Change Log
|
||||
|
||||
|
||||
## 1.1.0 - 2023-04-14
|
||||
|
||||
### Changed
|
||||
|
||||
- Allow `psr/http-message` v2 in addition to v1
|
||||
- Deprecate all interfaces in favor of [PSR-17](https://www.php-fig.org/psr/psr-17/)
|
||||
|
||||
## 1.0.2 - 2015-12-19
|
||||
|
||||
### Added
|
||||
|
||||
- Request and Response factory binding types to Puli
|
||||
|
||||
|
||||
## 1.0.1 - 2015-12-17
|
||||
|
||||
### Added
|
||||
|
||||
- Puli configuration and binding types
|
||||
|
||||
|
||||
## 1.0.0 - 2015-12-15
|
||||
|
||||
### Added
|
||||
|
||||
- Response Factory in order to be reused in Message and Server Message factories
|
||||
- Request Factory
|
||||
|
||||
### Changed
|
||||
|
||||
- Message Factory extends Request and Response factories
|
||||
|
||||
|
||||
## 1.0.0-RC1 - 2015-12-14
|
||||
|
||||
### Added
|
||||
|
||||
- CS check
|
||||
|
||||
### Changed
|
||||
|
||||
- RuntimeException is thrown when the StreamFactory cannot write to the underlying stream
|
||||
|
||||
|
||||
## 0.3.0 - 2015-11-16
|
||||
|
||||
### Removed
|
||||
|
||||
- Client Context Factory
|
||||
- Factory Awares and Templates
|
||||
|
||||
|
||||
## 0.2.0 - 2015-11-16
|
||||
|
||||
### Changed
|
||||
|
||||
- Reordered the parameters when creating a message to have the protocol last,
|
||||
as its the least likely to need to be changed.
|
||||
|
||||
|
||||
## 0.1.0 - 2015-06-01
|
||||
|
||||
### Added
|
||||
|
||||
- Initial release
|
||||
|
||||
### Changed
|
||||
|
||||
- Helpers are renamed to templates
|
||||
1
modules/inpostizi/vendor/php-http/message-factory/CONTRIBUTING
vendored
Normal file
1
modules/inpostizi/vendor/php-http/message-factory/CONTRIBUTING
vendored
Normal file
@@ -0,0 +1 @@
|
||||
Please see http://docs.php-http.org/en/latest/development/contributing.html
|
||||
19
modules/inpostizi/vendor/php-http/message-factory/LICENSE
vendored
Normal file
19
modules/inpostizi/vendor/php-http/message-factory/LICENSE
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
Copyright (c) 2015-2016 PHP HTTP Team <team@php-http.org>
|
||||
|
||||
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.
|
||||
42
modules/inpostizi/vendor/php-http/message-factory/README.md
vendored
Normal file
42
modules/inpostizi/vendor/php-http/message-factory/README.md
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
# PSR-7 Message Factory
|
||||
|
||||
[](https://github.com/php-http/message-factory/releases)
|
||||
[](LICENSE)
|
||||
[](https://packagist.org/packages/php-http/message-factory)
|
||||
|
||||
**Factory interfaces for PSR-7 HTTP Message.**
|
||||
|
||||
## Obsolete
|
||||
|
||||
The PHP-HTTP factories have become obsolete with the [PSR-17](https://www.php-fig.org/psr/psr-17/) factories standard.
|
||||
All major HTTP client implementors provide [PSR-17 factories](https://packagist.org/packages/psr/http-factory).
|
||||
|
||||
This package will remain available for the time being to not break legacy code, but we encourage everybody to move to PSR-17.
|
||||
|
||||
## Install
|
||||
|
||||
Via Composer
|
||||
|
||||
``` bash
|
||||
$ composer require php-http/message-factory
|
||||
```
|
||||
|
||||
|
||||
## Documentation
|
||||
|
||||
Please see the [official documentation](http://docs.php-http.org/en/latest/message/message-factory.html).
|
||||
|
||||
|
||||
## Contributing
|
||||
|
||||
Please see our [contributing guide](http://docs.php-http.org/en/latest/development/contributing.html).
|
||||
|
||||
|
||||
## Security
|
||||
|
||||
If you discover any security related issues, please contact us at [security@php-http.org](mailto:security@php-http.org).
|
||||
|
||||
|
||||
## License
|
||||
|
||||
The MIT License (MIT). Please see [License File](LICENSE) for more information.
|
||||
27
modules/inpostizi/vendor/php-http/message-factory/composer.json
vendored
Normal file
27
modules/inpostizi/vendor/php-http/message-factory/composer.json
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"name": "php-http/message-factory",
|
||||
"description": "Factory interfaces for PSR-7 HTTP Message",
|
||||
"license": "MIT",
|
||||
"keywords": ["http", "factory", "message", "stream", "uri"],
|
||||
"homepage": "http://php-http.org",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Márk Sági-Kazár",
|
||||
"email": "mark.sagikazar@gmail.com"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=5.4",
|
||||
"psr/http-message": "^1.0 || ^2.0"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Http\\Message\\": "src/"
|
||||
}
|
||||
},
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.x-dev"
|
||||
}
|
||||
}
|
||||
}
|
||||
44
modules/inpostizi/vendor/php-http/message-factory/puli.json
vendored
Normal file
44
modules/inpostizi/vendor/php-http/message-factory/puli.json
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"version": "1.0",
|
||||
"name": "php-http/message-factory",
|
||||
"binding-types": {
|
||||
"Http\\Message\\MessageFactory": {
|
||||
"description": "PSR-7 Message Factory",
|
||||
"parameters": {
|
||||
"depends": {
|
||||
"description": "Optional class dependency which can be checked by consumers"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Http\\Message\\RequestFactory": {
|
||||
"parameters": {
|
||||
"depends": {
|
||||
"description": "Optional class dependency which can be checked by consumers"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Http\\Message\\ResponseFactory": {
|
||||
"parameters": {
|
||||
"depends": {
|
||||
"description": "Optional class dependency which can be checked by consumers"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Http\\Message\\StreamFactory": {
|
||||
"description": "PSR-7 Stream Factory",
|
||||
"parameters": {
|
||||
"depends": {
|
||||
"description": "Optional class dependency which can be checked by consumers"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Http\\Message\\UriFactory": {
|
||||
"description": "PSR-7 URI Factory",
|
||||
"parameters": {
|
||||
"depends": {
|
||||
"description": "Optional class dependency which can be checked by consumers"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
14
modules/inpostizi/vendor/php-http/message-factory/src/MessageFactory.php
vendored
Normal file
14
modules/inpostizi/vendor/php-http/message-factory/src/MessageFactory.php
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace Http\Message;
|
||||
|
||||
/**
|
||||
* Factory for PSR-7 Request and Response.
|
||||
*
|
||||
* @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
|
||||
*
|
||||
* @deprecated since version 1.1, use Psr\Http\Message\RequestFactoryInterface and Psr\Http\Message\ResponseFactoryInterface instead.
|
||||
*/
|
||||
interface MessageFactory extends RequestFactory, ResponseFactory
|
||||
{
|
||||
}
|
||||
36
modules/inpostizi/vendor/php-http/message-factory/src/RequestFactory.php
vendored
Normal file
36
modules/inpostizi/vendor/php-http/message-factory/src/RequestFactory.php
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Http\Message;
|
||||
|
||||
use Psr\Http\Message\UriInterface;
|
||||
use Psr\Http\Message\RequestInterface;
|
||||
use Psr\Http\Message\StreamInterface;
|
||||
|
||||
/**
|
||||
* Factory for PSR-7 Request.
|
||||
*
|
||||
* @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
|
||||
*
|
||||
* @deprecated since version 1.1, use Psr\Http\Message\RequestFactoryInterface instead.
|
||||
*/
|
||||
interface RequestFactory
|
||||
{
|
||||
/**
|
||||
* Creates a new PSR-7 request.
|
||||
*
|
||||
* @param string $method
|
||||
* @param string|UriInterface $uri
|
||||
* @param array $headers
|
||||
* @param resource|string|StreamInterface|null $body
|
||||
* @param string $protocolVersion
|
||||
*
|
||||
* @return RequestInterface
|
||||
*/
|
||||
public function createRequest(
|
||||
$method,
|
||||
$uri,
|
||||
array $headers = [],
|
||||
$body = null,
|
||||
$protocolVersion = '1.1'
|
||||
);
|
||||
}
|
||||
37
modules/inpostizi/vendor/php-http/message-factory/src/ResponseFactory.php
vendored
Normal file
37
modules/inpostizi/vendor/php-http/message-factory/src/ResponseFactory.php
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace Http\Message;
|
||||
|
||||
use Psr\Http\Message\ResponseInterface;
|
||||
use Psr\Http\Message\StreamInterface;
|
||||
|
||||
/**
|
||||
* Factory for PSR-7 Response.
|
||||
*
|
||||
* This factory contract can be reused in Message and Server Message factories.
|
||||
*
|
||||
* @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
|
||||
*
|
||||
* @deprecated since version 1.1, use Psr\Http\Message\ResponseFactoryInterface instead.
|
||||
*/
|
||||
interface ResponseFactory
|
||||
{
|
||||
/**
|
||||
* Creates a new PSR-7 response.
|
||||
*
|
||||
* @param int $statusCode
|
||||
* @param string|null $reasonPhrase
|
||||
* @param array $headers
|
||||
* @param resource|string|StreamInterface|null $body
|
||||
* @param string $protocolVersion
|
||||
*
|
||||
* @return ResponseInterface
|
||||
*/
|
||||
public function createResponse(
|
||||
$statusCode = 200,
|
||||
$reasonPhrase = null,
|
||||
array $headers = [],
|
||||
$body = null,
|
||||
$protocolVersion = '1.1'
|
||||
);
|
||||
}
|
||||
27
modules/inpostizi/vendor/php-http/message-factory/src/StreamFactory.php
vendored
Normal file
27
modules/inpostizi/vendor/php-http/message-factory/src/StreamFactory.php
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace Http\Message;
|
||||
|
||||
use Psr\Http\Message\StreamInterface;
|
||||
|
||||
/**
|
||||
* Factory for PSR-7 Stream.
|
||||
*
|
||||
* @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
|
||||
*
|
||||
* @deprecated since version 1.1, use Psr\Http\Message\StreamFactoryInterface instead.
|
||||
*/
|
||||
interface StreamFactory
|
||||
{
|
||||
/**
|
||||
* Creates a new PSR-7 stream.
|
||||
*
|
||||
* @param string|resource|StreamInterface|null $body
|
||||
*
|
||||
* @return StreamInterface
|
||||
*
|
||||
* @throws \InvalidArgumentException if the stream body is invalid
|
||||
* @throws \RuntimeException if creating the stream from $body fails
|
||||
*/
|
||||
public function createStream($body = null);
|
||||
}
|
||||
26
modules/inpostizi/vendor/php-http/message-factory/src/UriFactory.php
vendored
Normal file
26
modules/inpostizi/vendor/php-http/message-factory/src/UriFactory.php
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace Http\Message;
|
||||
|
||||
use Psr\Http\Message\UriInterface;
|
||||
|
||||
/**
|
||||
* Factory for PSR-7 URI.
|
||||
*
|
||||
* @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
|
||||
*
|
||||
* @deprecated since version 1.1, use Psr\Http\Message\UriFactoryInterface instead.
|
||||
*/
|
||||
interface UriFactory
|
||||
{
|
||||
/**
|
||||
* Creates an PSR-7 URI.
|
||||
*
|
||||
* @param string|UriInterface $uri
|
||||
*
|
||||
* @return UriInterface
|
||||
*
|
||||
* @throws \InvalidArgumentException if the $uri argument can not be converted into a valid URI
|
||||
*/
|
||||
public function createUri($uri);
|
||||
}
|
||||
11
modules/inpostizi/vendor/psr/clock/CHANGELOG.md
vendored
Normal file
11
modules/inpostizi/vendor/psr/clock/CHANGELOG.md
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
# Changelog
|
||||
|
||||
All notable changes to this project will be documented in this file, in reverse chronological order by release.
|
||||
|
||||
## 1.0.0
|
||||
|
||||
First stable release after PSR-20 acceptance
|
||||
|
||||
## 0.1.0
|
||||
|
||||
First release
|
||||
19
modules/inpostizi/vendor/psr/clock/LICENSE
vendored
Normal file
19
modules/inpostizi/vendor/psr/clock/LICENSE
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
Copyright (c) 2017 PHP Framework Interoperability Group
|
||||
|
||||
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.
|
||||
61
modules/inpostizi/vendor/psr/clock/README.md
vendored
Normal file
61
modules/inpostizi/vendor/psr/clock/README.md
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
# PSR Clock
|
||||
|
||||
This repository holds the interface for [PSR-20][psr-url].
|
||||
|
||||
Note that this is not a clock of its own. It is merely an interface that
|
||||
describes a clock. See the specification for more details.
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
composer require psr/clock
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
If you need a clock, you can use the interface like this:
|
||||
|
||||
```php
|
||||
<?php
|
||||
|
||||
use Psr\Clock\ClockInterface;
|
||||
|
||||
class Foo
|
||||
{
|
||||
private ClockInterface $clock;
|
||||
|
||||
public function __construct(ClockInterface $clock)
|
||||
{
|
||||
$this->clock = $clock;
|
||||
}
|
||||
|
||||
public function doSomething()
|
||||
{
|
||||
/** @var DateTimeImmutable $currentDateAndTime */
|
||||
$currentDateAndTime = $this->clock->now();
|
||||
// do something useful with that information
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
You can then pick one of the [implementations][implementation-url] of the interface to get a clock.
|
||||
|
||||
If you want to implement the interface, you can require this package and
|
||||
implement `Psr\Clock\ClockInterface` in your code.
|
||||
|
||||
Don't forget to add `psr/clock-implementation` to your `composer.json`s `provides`-section like this:
|
||||
|
||||
```json
|
||||
{
|
||||
"provides": {
|
||||
"psr/clock-implementation": "1.0"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
And please read the [specification text][specification-url] for details on the interface.
|
||||
|
||||
[psr-url]: https://www.php-fig.org/psr/psr-20
|
||||
[package-url]: https://packagist.org/packages/psr/clock
|
||||
[implementation-url]: https://packagist.org/providers/psr/clock-implementation
|
||||
[specification-url]: https://github.com/php-fig/fig-standards/blob/master/proposed/clock.md
|
||||
21
modules/inpostizi/vendor/psr/clock/composer.json
vendored
Normal file
21
modules/inpostizi/vendor/psr/clock/composer.json
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"name": "psr/clock",
|
||||
"description": "Common interface for reading the clock.",
|
||||
"keywords": ["psr", "psr-20", "time", "clock", "now"],
|
||||
"homepage": "https://github.com/php-fig/clock",
|
||||
"license": "MIT",
|
||||
"authors": [
|
||||
{
|
||||
"name": "PHP-FIG",
|
||||
"homepage": "https://www.php-fig.org/"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": "^7.0 || ^8.0"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Psr\\Clock\\": "src/"
|
||||
}
|
||||
}
|
||||
}
|
||||
13
modules/inpostizi/vendor/psr/clock/src/ClockInterface.php
vendored
Normal file
13
modules/inpostizi/vendor/psr/clock/src/ClockInterface.php
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Psr\Clock;
|
||||
|
||||
use DateTimeImmutable;
|
||||
|
||||
interface ClockInterface
|
||||
{
|
||||
/**
|
||||
* Returns the current time as a DateTimeImmutable Object
|
||||
*/
|
||||
public function now(): DateTimeImmutable;
|
||||
}
|
||||
3
modules/inpostizi/vendor/psr/container/.gitignore
vendored
Normal file
3
modules/inpostizi/vendor/psr/container/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
composer.lock
|
||||
composer.phar
|
||||
/vendor/
|
||||
21
modules/inpostizi/vendor/psr/container/LICENSE
vendored
Normal file
21
modules/inpostizi/vendor/psr/container/LICENSE
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2013-2016 container-interop
|
||||
Copyright (c) 2016 PHP Framework Interoperability Group
|
||||
|
||||
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.
|
||||
5
modules/inpostizi/vendor/psr/container/README.md
vendored
Normal file
5
modules/inpostizi/vendor/psr/container/README.md
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
# PSR Container
|
||||
|
||||
This repository holds all interfaces/classes/traits related to [PSR-11](https://github.com/container-interop/fig-standards/blob/master/proposed/container.md).
|
||||
|
||||
Note that this is not a container implementation of its own. See the specification for more details.
|
||||
27
modules/inpostizi/vendor/psr/container/composer.json
vendored
Normal file
27
modules/inpostizi/vendor/psr/container/composer.json
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"name": "psr/container",
|
||||
"type": "library",
|
||||
"description": "Common Container Interface (PHP FIG PSR-11)",
|
||||
"keywords": ["psr", "psr-11", "container", "container-interop", "container-interface"],
|
||||
"homepage": "https://github.com/php-fig/container",
|
||||
"license": "MIT",
|
||||
"authors": [
|
||||
{
|
||||
"name": "PHP-FIG",
|
||||
"homepage": "http://www.php-fig.org/"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=5.3.0"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Psr\\Container\\": "src/"
|
||||
}
|
||||
},
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.0.x-dev"
|
||||
}
|
||||
}
|
||||
}
|
||||
13
modules/inpostizi/vendor/psr/container/src/ContainerExceptionInterface.php
vendored
Normal file
13
modules/inpostizi/vendor/psr/container/src/ContainerExceptionInterface.php
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
/**
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE file)
|
||||
*/
|
||||
|
||||
namespace Psr\Container;
|
||||
|
||||
/**
|
||||
* Base interface representing a generic exception in a container.
|
||||
*/
|
||||
interface ContainerExceptionInterface
|
||||
{
|
||||
}
|
||||
37
modules/inpostizi/vendor/psr/container/src/ContainerInterface.php
vendored
Normal file
37
modules/inpostizi/vendor/psr/container/src/ContainerInterface.php
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
/**
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE file)
|
||||
*/
|
||||
|
||||
namespace Psr\Container;
|
||||
|
||||
/**
|
||||
* Describes the interface of a container that exposes methods to read its entries.
|
||||
*/
|
||||
interface ContainerInterface
|
||||
{
|
||||
/**
|
||||
* Finds an entry of the container by its identifier and returns it.
|
||||
*
|
||||
* @param string $id Identifier of the entry to look for.
|
||||
*
|
||||
* @throws NotFoundExceptionInterface No entry was found for **this** identifier.
|
||||
* @throws ContainerExceptionInterface Error while retrieving the entry.
|
||||
*
|
||||
* @return mixed Entry.
|
||||
*/
|
||||
public function get($id);
|
||||
|
||||
/**
|
||||
* Returns true if the container can return an entry for the given identifier.
|
||||
* Returns false otherwise.
|
||||
*
|
||||
* `has($id)` returning true does not mean that `get($id)` will not throw an exception.
|
||||
* It does however mean that `get($id)` will not throw a `NotFoundExceptionInterface`.
|
||||
*
|
||||
* @param string $id Identifier of the entry to look for.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function has($id);
|
||||
}
|
||||
13
modules/inpostizi/vendor/psr/container/src/NotFoundExceptionInterface.php
vendored
Normal file
13
modules/inpostizi/vendor/psr/container/src/NotFoundExceptionInterface.php
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
/**
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE file)
|
||||
*/
|
||||
|
||||
namespace Psr\Container;
|
||||
|
||||
/**
|
||||
* No entry was found in the container.
|
||||
*/
|
||||
interface NotFoundExceptionInterface extends ContainerExceptionInterface
|
||||
{
|
||||
}
|
||||
31
modules/inpostizi/vendor/psr/http-client/CHANGELOG.md
vendored
Normal file
31
modules/inpostizi/vendor/psr/http-client/CHANGELOG.md
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
# Changelog
|
||||
|
||||
All notable changes to this project will be documented in this file, in reverse chronological order by release.
|
||||
|
||||
## 1.0.3
|
||||
|
||||
Add `source` link in composer.json. No code changes.
|
||||
|
||||
## 1.0.2
|
||||
|
||||
Allow PSR-7 (psr/http-message) 2.0. No code changes.
|
||||
|
||||
## 1.0.1
|
||||
|
||||
Allow installation with PHP 8. No code changes.
|
||||
|
||||
## 1.0.0
|
||||
|
||||
First stable release. No changes since 0.3.0.
|
||||
|
||||
## 0.3.0
|
||||
|
||||
Added Interface suffix on exceptions
|
||||
|
||||
## 0.2.0
|
||||
|
||||
All exceptions are in `Psr\Http\Client` namespace
|
||||
|
||||
## 0.1.0
|
||||
|
||||
First release
|
||||
19
modules/inpostizi/vendor/psr/http-client/LICENSE
vendored
Normal file
19
modules/inpostizi/vendor/psr/http-client/LICENSE
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
Copyright (c) 2017 PHP Framework Interoperability Group
|
||||
|
||||
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.
|
||||
12
modules/inpostizi/vendor/psr/http-client/README.md
vendored
Normal file
12
modules/inpostizi/vendor/psr/http-client/README.md
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
HTTP Client
|
||||
===========
|
||||
|
||||
This repository holds all the common code related to [PSR-18 (HTTP Client)][psr-url].
|
||||
|
||||
Note that this is not a HTTP Client implementation of its own. It is merely abstractions that describe the components of a HTTP Client.
|
||||
|
||||
The installable [package][package-url] and [implementations][implementation-url] are listed on Packagist.
|
||||
|
||||
[psr-url]: https://www.php-fig.org/psr/psr-18
|
||||
[package-url]: https://packagist.org/packages/psr/http-client
|
||||
[implementation-url]: https://packagist.org/providers/psr/http-client-implementation
|
||||
30
modules/inpostizi/vendor/psr/http-client/composer.json
vendored
Normal file
30
modules/inpostizi/vendor/psr/http-client/composer.json
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"name": "psr/http-client",
|
||||
"description": "Common interface for HTTP clients",
|
||||
"keywords": ["psr", "psr-18", "http", "http-client"],
|
||||
"homepage": "https://github.com/php-fig/http-client",
|
||||
"license": "MIT",
|
||||
"authors": [
|
||||
{
|
||||
"name": "PHP-FIG",
|
||||
"homepage": "https://www.php-fig.org/"
|
||||
}
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/php-fig/http-client"
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.0 || ^8.0",
|
||||
"psr/http-message": "^1.0 || ^2.0"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Psr\\Http\\Client\\": "src/"
|
||||
}
|
||||
},
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.0.x-dev"
|
||||
}
|
||||
}
|
||||
}
|
||||
10
modules/inpostizi/vendor/psr/http-client/src/ClientExceptionInterface.php
vendored
Normal file
10
modules/inpostizi/vendor/psr/http-client/src/ClientExceptionInterface.php
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace Psr\Http\Client;
|
||||
|
||||
/**
|
||||
* Every HTTP client related exception MUST implement this interface.
|
||||
*/
|
||||
interface ClientExceptionInterface extends \Throwable
|
||||
{
|
||||
}
|
||||
20
modules/inpostizi/vendor/psr/http-client/src/ClientInterface.php
vendored
Normal file
20
modules/inpostizi/vendor/psr/http-client/src/ClientInterface.php
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace Psr\Http\Client;
|
||||
|
||||
use Psr\Http\Message\RequestInterface;
|
||||
use Psr\Http\Message\ResponseInterface;
|
||||
|
||||
interface ClientInterface
|
||||
{
|
||||
/**
|
||||
* Sends a PSR-7 request and returns a PSR-7 response.
|
||||
*
|
||||
* @param RequestInterface $request
|
||||
*
|
||||
* @return ResponseInterface
|
||||
*
|
||||
* @throws \Psr\Http\Client\ClientExceptionInterface If an error happens while processing the request.
|
||||
*/
|
||||
public function sendRequest(RequestInterface $request): ResponseInterface;
|
||||
}
|
||||
24
modules/inpostizi/vendor/psr/http-client/src/NetworkExceptionInterface.php
vendored
Normal file
24
modules/inpostizi/vendor/psr/http-client/src/NetworkExceptionInterface.php
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace Psr\Http\Client;
|
||||
|
||||
use Psr\Http\Message\RequestInterface;
|
||||
|
||||
/**
|
||||
* Thrown when the request cannot be completed because of network issues.
|
||||
*
|
||||
* There is no response object as this exception is thrown when no response has been received.
|
||||
*
|
||||
* Example: the target host name can not be resolved or the connection failed.
|
||||
*/
|
||||
interface NetworkExceptionInterface extends ClientExceptionInterface
|
||||
{
|
||||
/**
|
||||
* Returns the request.
|
||||
*
|
||||
* The request object MAY be a different object from the one passed to ClientInterface::sendRequest()
|
||||
*
|
||||
* @return RequestInterface
|
||||
*/
|
||||
public function getRequest(): RequestInterface;
|
||||
}
|
||||
24
modules/inpostizi/vendor/psr/http-client/src/RequestExceptionInterface.php
vendored
Normal file
24
modules/inpostizi/vendor/psr/http-client/src/RequestExceptionInterface.php
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace Psr\Http\Client;
|
||||
|
||||
use Psr\Http\Message\RequestInterface;
|
||||
|
||||
/**
|
||||
* Exception for when a request failed.
|
||||
*
|
||||
* Examples:
|
||||
* - Request is invalid (e.g. method is missing)
|
||||
* - Runtime request errors (e.g. the body stream is not seekable)
|
||||
*/
|
||||
interface RequestExceptionInterface extends ClientExceptionInterface
|
||||
{
|
||||
/**
|
||||
* Returns the request.
|
||||
*
|
||||
* The request object MAY be a different object from the one passed to ClientInterface::sendRequest()
|
||||
*
|
||||
* @return RequestInterface
|
||||
*/
|
||||
public function getRequest(): RequestInterface;
|
||||
}
|
||||
21
modules/inpostizi/vendor/psr/http-factory/LICENSE
vendored
Normal file
21
modules/inpostizi/vendor/psr/http-factory/LICENSE
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2018 PHP-FIG
|
||||
|
||||
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.
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user