feat: 初始化雄戈商城服务端代码与Webhook自动部署配置
这个提交包含在:
71
vendor/nelexa/zip/src/Exception/Crc32Exception.php
vendored
普通文件
71
vendor/nelexa/zip/src/Exception/Crc32Exception.php
vendored
普通文件
@@ -0,0 +1,71 @@
|
||||
<?php
|
||||
|
||||
namespace PhpZip\Exception;
|
||||
|
||||
/**
|
||||
* Thrown to indicate a CRC32 mismatch between the declared value in the
|
||||
* Central File Header and the Data Descriptor or between the declared value
|
||||
* and the computed value from the decompressed data.
|
||||
*
|
||||
* The exception detail message is the name of the ZIP entry.
|
||||
*
|
||||
* @author Ne-Lexa alexey@nelexa.ru
|
||||
* @license MIT
|
||||
*/
|
||||
class Crc32Exception extends ZipException
|
||||
{
|
||||
/**
|
||||
* Expected crc.
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
private $expectedCrc;
|
||||
|
||||
/**
|
||||
* Actual crc.
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
private $actualCrc;
|
||||
|
||||
/**
|
||||
* Crc32Exception constructor.
|
||||
*
|
||||
* @param string $name
|
||||
* @param int $expected
|
||||
* @param int $actual
|
||||
*/
|
||||
public function __construct($name, $expected, $actual)
|
||||
{
|
||||
parent::__construct(
|
||||
sprintf(
|
||||
'%s (expected CRC32 value 0x%x, but is actually 0x%x)',
|
||||
$name,
|
||||
$expected,
|
||||
$actual
|
||||
)
|
||||
);
|
||||
$this->expectedCrc = $expected;
|
||||
$this->actualCrc = $actual;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns expected crc.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getExpectedCrc()
|
||||
{
|
||||
return $this->expectedCrc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns actual crc.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getActualCrc()
|
||||
{
|
||||
return $this->actualCrc;
|
||||
}
|
||||
}
|
||||
14
vendor/nelexa/zip/src/Exception/InvalidArgumentException.php
vendored
普通文件
14
vendor/nelexa/zip/src/Exception/InvalidArgumentException.php
vendored
普通文件
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace PhpZip\Exception;
|
||||
|
||||
/**
|
||||
* Thrown to indicate that a method has been passed an illegal or
|
||||
* inappropriate argument.
|
||||
*
|
||||
* @author Ne-Lexa alexey@nelexa.ru
|
||||
* @license MIT
|
||||
*/
|
||||
class InvalidArgumentException extends RuntimeException
|
||||
{
|
||||
}
|
||||
14
vendor/nelexa/zip/src/Exception/RuntimeException.php
vendored
普通文件
14
vendor/nelexa/zip/src/Exception/RuntimeException.php
vendored
普通文件
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace PhpZip\Exception;
|
||||
|
||||
/**
|
||||
* Runtime exception.
|
||||
* Exception thrown if an error which can only be found on runtime occurs.
|
||||
*
|
||||
* @author Ne-Lexa alexey@nelexa.ru
|
||||
* @license MIT
|
||||
*/
|
||||
class RuntimeException extends \RuntimeException
|
||||
{
|
||||
}
|
||||
13
vendor/nelexa/zip/src/Exception/ZipAuthenticationException.php
vendored
普通文件
13
vendor/nelexa/zip/src/Exception/ZipAuthenticationException.php
vendored
普通文件
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace PhpZip\Exception;
|
||||
|
||||
/**
|
||||
* Thrown to indicate that an authenticated ZIP entry has been tampered with.
|
||||
*
|
||||
* @author Ne-Lexa alexey@nelexa.ru
|
||||
* @license MIT
|
||||
*/
|
||||
class ZipAuthenticationException extends ZipCryptoException
|
||||
{
|
||||
}
|
||||
14
vendor/nelexa/zip/src/Exception/ZipCryptoException.php
vendored
普通文件
14
vendor/nelexa/zip/src/Exception/ZipCryptoException.php
vendored
普通文件
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace PhpZip\Exception;
|
||||
|
||||
/**
|
||||
* Thrown if there is an issue when reading or writing an encrypted ZIP file
|
||||
* or entry.
|
||||
*
|
||||
* @author Ne-Lexa alexey@nelexa.ru
|
||||
* @license MIT
|
||||
*/
|
||||
class ZipCryptoException extends ZipException
|
||||
{
|
||||
}
|
||||
40
vendor/nelexa/zip/src/Exception/ZipEntryNotFoundException.php
vendored
普通文件
40
vendor/nelexa/zip/src/Exception/ZipEntryNotFoundException.php
vendored
普通文件
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
namespace PhpZip\Exception;
|
||||
|
||||
use PhpZip\Model\ZipEntry;
|
||||
|
||||
/**
|
||||
* Thrown if entry not found.
|
||||
*
|
||||
* @author Ne-Lexa alexey@nelexa.ru
|
||||
* @license MIT
|
||||
*/
|
||||
class ZipEntryNotFoundException extends ZipException
|
||||
{
|
||||
/** @var string */
|
||||
private $entryName;
|
||||
|
||||
/**
|
||||
* ZipEntryNotFoundException constructor.
|
||||
*
|
||||
* @param ZipEntry|string $entryName
|
||||
*/
|
||||
public function __construct($entryName)
|
||||
{
|
||||
$entryName = $entryName instanceof ZipEntry ? $entryName->getName() : $entryName;
|
||||
parent::__construct(sprintf(
|
||||
'Zip Entry "%s" was not found in the archive.',
|
||||
$entryName
|
||||
));
|
||||
$this->entryName = $entryName;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getEntryName()
|
||||
{
|
||||
return $this->entryName;
|
||||
}
|
||||
}
|
||||
15
vendor/nelexa/zip/src/Exception/ZipException.php
vendored
普通文件
15
vendor/nelexa/zip/src/Exception/ZipException.php
vendored
普通文件
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace PhpZip\Exception;
|
||||
|
||||
/**
|
||||
* Signals that a Zip exception of some sort has occurred.
|
||||
*
|
||||
* @author Ne-Lexa alexey@nelexa.ru
|
||||
* @license MIT
|
||||
*
|
||||
* @see \Exception
|
||||
*/
|
||||
class ZipException extends \Exception
|
||||
{
|
||||
}
|
||||
10
vendor/nelexa/zip/src/Exception/ZipUnsupportMethodException.php
vendored
普通文件
10
vendor/nelexa/zip/src/Exception/ZipUnsupportMethodException.php
vendored
普通文件
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace PhpZip\Exception;
|
||||
|
||||
/**
|
||||
* Class ZipUnsupportMethodException.
|
||||
*/
|
||||
class ZipUnsupportMethodException extends ZipException
|
||||
{
|
||||
}
|
||||
在新工单中引用
屏蔽一个用户