Skip to content

Commit

Permalink
Merge pull request #49 from yoomoney/release/v2.2.0
Browse files Browse the repository at this point in the history
Release/2.2.0
  • Loading branch information
tonchik-tm authored Oct 13, 2021
2 parents 5da93aa + f681b6a commit 713087f
Show file tree
Hide file tree
Showing 44 changed files with 303 additions and 428 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### v2.2.0 от 13.10.2021
* Замена Сбербанк Онлайн на SberPay
* Обновлен SDK до версии 2.1.7

### v2.1.2 от 19.08.2021
* Исправление ссылки на архив и демо-магазин в readme

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
* QIWI Wallet;
* Наличные;
* Альфа-Клик;
* Сбербанк Онлайн;
* SberPay;
* Баланс мобильного — Билайн, Мегафон, МТС, Tele2.

### Дополнительные возможности
Expand Down
Binary file modified src/components/com_jshopping/images/yoomoney/sb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
define('_JSHOP_YOO_METHOD_MOBILE_BALANCE_DESCRIPTION', 'Direct carrier billing');
define('_JSHOP_YOO_METHOD_WEBMONEY_DESCRIPTION', 'Webmoney');
define('_JSHOP_YOO_METHOD_ALFABANK_DESCRIPTION', 'Alfa-Click');
define('_JSHOP_YOO_METHOD_SBERBANK_DESCRIPTION', 'Sberbank Online');
define('_JSHOP_YOO_METHOD_SBERBANK_DESCRIPTION', 'SberPay');
define('_JSHOP_YOO_METHOD_MA_DESCRIPTION', 'MasterPass');
define('_JSHOP_YOO_METHOD_PB_DESCRIPTION', 'Promsvyazbank');
define('_JSHOP_YOO_METHOD_QIWI_DESCRIPTION', 'QIWI Wallet');
Expand All @@ -76,7 +76,7 @@
define('_JSHOP_YOO_METHOD_MOBILE_BALANCE_DESCRIPTION_PUBLIC', 'Direct carrier billing');
define('_JSHOP_YOO_METHOD_WEBMONEY_DESCRIPTION_PUBLIC', 'Webmoney');
define('_JSHOP_YOO_METHOD_ALFABANK_DESCRIPTION_PUBLIC', 'Alfa-Click');
define('_JSHOP_YOO_METHOD_SBERBANK_DESCRIPTION_PUBLIC', 'Sberbank Online');
define('_JSHOP_YOO_METHOD_SBERBANK_DESCRIPTION_PUBLIC', 'SberPay');
define('_JSHOP_YOO_METHOD_MA_DESCRIPTION_PUBLIC', 'MasterPass');
define('_JSHOP_YOO_METHOD_PB_DESCRIPTION_PUBLIC', 'Promsvyazbank');
define('_JSHOP_YOO_METHOD_QIWI_DESCRIPTION_PUBLIC', 'QIWI Wallet');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
define('_JSHOP_YOO_METHOD_MOBILE_BALANCE_DESCRIPTION', 'Баланс мобильного');
define('_JSHOP_YOO_METHOD_WEBMONEY_DESCRIPTION', 'Кошелек WebMoney');
define('_JSHOP_YOO_METHOD_ALFABANK_DESCRIPTION', 'Альфа-Клик');
define('_JSHOP_YOO_METHOD_SBERBANK_DESCRIPTION', 'Сбербанк Онлайн');
define('_JSHOP_YOO_METHOD_SBERBANK_DESCRIPTION', 'SberPay');
define('_JSHOP_YOO_METHOD_TINKOFF_BANK_DESCRIPTION', 'Интернет-банк Тинькофф');
define('_JSHOP_YOO_METHOD_MA_DESCRIPTION', 'MasterPass');
define('_JSHOP_YOO_METHOD_PB_DESCRIPTION', 'Интернет-банк Промсвязьбанка');
Expand All @@ -89,7 +89,7 @@
define('_JSHOP_YOO_METHOD_MOBILE_BALANCE_DESCRIPTION_PUBLIC', 'Баланс мобильного');
define('_JSHOP_YOO_METHOD_WEBMONEY_DESCRIPTION_PUBLIC', 'Кошелек WebMoney');
define('_JSHOP_YOO_METHOD_ALFABANK_DESCRIPTION_PUBLIC', 'Альфа-Клик');
define('_JSHOP_YOO_METHOD_SBERBANK_DESCRIPTION_PUBLIC', 'Сбербанк Онлайн');
define('_JSHOP_YOO_METHOD_SBERBANK_DESCRIPTION_PUBLIC', 'SberPay');
define('_JSHOP_YOO_METHOD_TINKOFF_BANK_DESCRIPTION_PUBLIC', 'Интернет-банк Тинькофф');
define('_JSHOP_YOO_METHOD_MA_DESCRIPTION_PUBLIC', 'MasterPass');
define('_JSHOP_YOO_METHOD_PB_DESCRIPTION_PUBLIC', 'Интернет-банк Промсвязьбанка');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
require_once JPATH_ROOT.'/components/com_jshopping/payments/pm_yoomoney_sbbol/SbbolException.php';

if (!defined(_JSHOP_YOO_VERSION)) {
define('_JSHOP_YOO_VERSION', '2.1.2');
define('_JSHOP_YOO_VERSION', '2.2.0');
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,13 @@
*
* @author Fabien Potencier <[email protected]>
* @author Jordi Boggiano <[email protected]>
* @see http://www.php-fig.org/psr/psr-0/
* @see http://www.php-fig.org/psr/psr-4/
* @see https://www.php-fig.org/psr/psr-0/
* @see https://www.php-fig.org/psr/psr-4/
*/
class ClassLoader
{
private $vendorDir;

// PSR-4
private $prefixLengthsPsr4 = array();
private $prefixDirsPsr4 = array();
Expand All @@ -57,6 +59,13 @@ class ClassLoader
private $missingClasses = array();
private $apcuPrefix;

private static $registeredLoaders = array();

public function __construct($vendorDir = null)
{
$this->vendorDir = $vendorDir;
}

public function getPrefixes()
{
if (!empty($this->prefixesPsr0)) {
Expand Down Expand Up @@ -300,6 +309,17 @@ public function getApcuPrefix()
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;
}
}

/**
Expand All @@ -308,6 +328,10 @@ public function register($prepend = false)
public function unregister()
{
spl_autoload_unregister(array($this, 'loadClass'));

if (null !== $this->vendorDir) {
unset(self::$registeredLoaders[$this->vendorDir]);
}
}

/**
Expand Down Expand Up @@ -367,6 +391,16 @@ public function findFile($class)
return $file;
}

/**
* Returns the currently registered loaders indexed by their corresponding vendor directories.
*
* @return self[]
*/
public static function getRegisteredLoaders()
{
return self::$registeredLoaders;
}

private function findFileWithExtension($class, $ext)
{
// PSR-4 lookup
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class InstalledVersions
'aliases' =>
array (
),
'reference' => 'cac62d3071b2bd4c79741324f4ae573e69e0efc6',
'reference' => 'c76b110bead61151e6c69de1fe93d7d3695ae685',
'name' => '__root__',
),
'versions' =>
Expand All @@ -44,7 +44,7 @@ class InstalledVersions
'aliases' =>
array (
),
'reference' => 'cac62d3071b2bd4c79741324f4ae573e69e0efc6',
'reference' => 'c76b110bead61151e6c69de1fe93d7d3695ae685',
),
'psr/log' =>
array (
Expand All @@ -57,12 +57,12 @@ class InstalledVersions
),
'yoomoney/yookassa-sdk-php' =>
array (
'pretty_version' => '2.1.2',
'version' => '2.1.2.0',
'pretty_version' => '2.1.7',
'version' => '2.1.7.0',
'aliases' =>
array (
),
'reference' => '8d62f9d56b2ed926ac299775faa02effa100fbb2',
'reference' => '4ea726f9bdd6bb57f1b1e371c33baa852fdaf0aa',
),
),
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
$baseDir = dirname($vendorDir);

return array(
'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
);
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ public static function getLoader()
return self::$loader;
}

require __DIR__ . '/platform_check.php';

spl_autoload_register(array('ComposerAutoloaderInit7b690e82411dcbcd6afd0ce21e7deadc', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
spl_autoload_unregister(array('ComposerAutoloaderInit7b690e82411dcbcd6afd0ce21e7deadc', 'loadClassLoader'));

$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
if ($useStaticLoader) {
require_once __DIR__ . '/autoload_static.php';
require __DIR__ . '/autoload_static.php';

call_user_func(\Composer\Autoload\ComposerStaticInit7b690e82411dcbcd6afd0ce21e7deadc::getInitializer($loader));
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,16 @@ class ComposerStaticInit7b690e82411dcbcd6afd0ce21e7deadc
),
);

public static $classMap = array (
'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
);

public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit7b690e82411dcbcd6afd0ce21e7deadc::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit7b690e82411dcbcd6afd0ce21e7deadc::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit7b690e82411dcbcd6afd0ce21e7deadc::$classMap;

}, null, ClassLoader::class);
}
Expand Down
Loading

0 comments on commit 713087f

Please sign in to comment.