ltsecurityinc安防产品在线商城代码

This commit is contained in:
2026-09-14 17:47:10 +08:00
parent 57d8444c15
commit 6a3c9c5bd8
14539 changed files with 1775310 additions and 0 deletions
@@ -0,0 +1,21 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\TestFramework\ObjectManager;
class Config extends \Magento\Framework\Interception\ObjectManager\Config\Developer
{
/**
* Clean configuration
*/
public function clean()
{
$this->_preferences = [];
$this->_virtualTypes = [];
$this->_arguments = [];
$this->_nonShared = [];
$this->_mergedArguments = [];
}
}
@@ -0,0 +1,51 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\TestFramework\ObjectManager;
use Magento\Framework\App\Config\ScopeConfigInterface;
use Magento\Framework\Stdlib\CookieManagerInterface;
use Magento\Store\Model\StoreManagerInterface;
use Magento\Framework\App\MutableScopeConfig;
use Magento\Framework\App\ReinitableConfig;
use Magento\Backend\App\Config as BackendConfig;
use Magento\TestFramework\ScopeSwitcherInterface;
/**
* Class which hold configurations (preferences, etc...) of integration test framework
*
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class Configurator implements \Magento\Framework\ObjectManager\DynamicConfigInterface
{
/**
* Map application initialization params to Object Manager configuration format.
*
* @return array
*/
public function getConfiguration()
{
return [
'preferences' => [
CookieManagerInterface::class => \Magento\TestFramework\CookieManager::class,
StoreManagerInterface::class => \Magento\TestFramework\Store\StoreManager::class,
ScopeConfigInterface::class => \Magento\TestFramework\App\Config::class,
\Magento\Framework\App\Config::class => \Magento\TestFramework\App\Config::class,
BackendConfig::class => \Magento\TestFramework\Backend\App\Config::class,
ReinitableConfig::class => \Magento\TestFramework\App\ReinitableConfig::class,
MutableScopeConfig::class => \Magento\TestFramework\App\MutableScopeConfig::class,
ScopeSwitcherInterface::class => \Magento\TestFramework\Store\ScopeSwitcher::class,
],
\Magento\TestFramework\Store\ScopeSwitcher::class => [
'arguments' => [
'storeManager' => [
// @phpstan-ignore-next-line
'instance' => \Magento\Store\Model\StoreManagerInterface\Proxy::class
]
]
]
];
}
}