valantic-spryker/price-product-customer-group-storage
Composer 安装命令:
composer require valantic-spryker/price-product-customer-group-storage
包简介
This modules is used for saving customer group prices into storage and contains plugins for reading them.
README 文档
README
This modules is used for saving customer group prices into storage and contains plugins for reading them.
Install package
composer req valantic-spryker/price-product-customer-group-storage
Register plugins
src/Pyz/Zed/Event/EventDependencyProvider.php
use ValanticSpryker\Zed\PriceProductCustomerGroupStorage\Communication\Plugin\Event\Subscriber\PriceProductCustomerGroupStorageEventSubscriber;
...
public function getEventSubscriberCollection()
{
...
$eventSubscriberCollection->add(new PriceProductCustomerGroupStorageEventSubscriber());
...
}
src/Pyz/Zed/Synchronization/SynchronizationDependencyProvider.php
use \ValanticSpryker\Zed\PriceProductCustomerGroupStorage\Communication\Plugin\Synchronization\PriceProductAbstractCustomerGroupSynchronizationDataBulkPlugin
use \ValanticSpryker\Zed\PriceProductCustomerGroupStorage\Communication\Plugin\Synchronization\PriceProductConcreteCustomerGroupSynchronizationDataBulkPlugin
...
protected function getSynchronizationDataPlugins(): array
{
return [
...
new PriceProductAbstractCustomerGroupSynchronizationDataBulkPlugin(),
new PriceProductConcreteCustomerGroupSynchronizationDataBulkPlugin(),
];
}
src/Pyz/Client/PriceProductStorage/PriceProductStorageDependencyProvider.php
use ValanticSpryker\Client\PriceProductCustomerGroupStorage\Plugin\PriceProductStorageExtension\PriceProductCustomerGroupStorageDimensionPlugin;
...
public function getPriceDimensionStorageReaderPlugins(): array
{
return [
...
new PriceProductCustomerGroupStorageDimensionPlugin(),
];
}
src/Pyz/Zed/EventBehavior/EventBehaviorDependencyProvider.php
use ValanticSpryker\Zed\PriceProductCustomerGroupStorage\Communication\Plugin\Event\PriceProductAbstractCustomerGroupEventResourceBulkRepositoryPlugin;
use ValanticSpryker\Zed\PriceProductCustomerGroupStorage\Communication\Plugin\Event\PriceProductConcreteCustomerGroupEventResourceBulkRepositoryPlugin;
...
protected function getEventTriggerResourcePlugins()
{
return [
...
new PriceProductAbstractCustomerGroupEventResourceBulkRepositoryPlugin(),
new PriceProductConcreteCustomerGroupEventResourceBulkRepositoryPlugin(),
];
}
Create project level module config
src/Pyz/Zed/PriceProductCustomerGroupStorage/PriceProductCustomerGroupStorageConfig.php
<?php
declare(strict_types = 1);
namespace Pyz\Zed\PriceProductCustomerGroupStorage;
use Pyz\Zed\Synchronization\SynchronizationConfig;
use ValanticSpryker\Zed\PriceProductCustomerGroupStorage\PriceProductCustomerGroupStorageConfig as VsyPriceProductCustomerGroupStorageConfig;
class PriceProductCustomerGroupStorageConfig extends VsyPriceProductCustomerGroupStorageConfig
{
/**
* @return string|null
*/
public function getPriceProductConcreteCustomerGroupSynchronizationPoolName(): ?string
{
return SynchronizationConfig::DEFAULT_SYNCHRONIZATION_POOL_NAME;
}
/**
* @return string|null
*/
public function getPriceProductAbstractCustomerGroupSynchronizationPoolName(): ?string
{
return SynchronizationConfig::DEFAULT_SYNCHRONIZATION_POOL_NAME;
}
}
Enable event behavior
src/Pyz/Zed/PriceProductCustomerGroup/Persistence/Propel/Schema/vsy_price_product_customer_group.schema.xml
<?xml version="1.0"?>
<database
xmlns="spryker:schema-01"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
name="zed"
xsi:schemaLocation="spryker:schema-01 https://static.spryker.com/schema-01.xsd"
namespace="Orm\Zed\PriceProductCustomerGroup\Persistence"
package="src.Orm.Zed.PriceProductCustomerGroup.Persistence"
>
<table name="vsy_price_product_customer_group">
<behavior name="event">
<parameter name="vsy_price_product_customer_group_all" column="*"/>
</behavior>
</table>
</database>
Migrate database and generate transfers
propel:install, transfer:generate
valantic-spryker/price-product-customer-group-storage 适用场景与选型建议
valantic-spryker/price-product-customer-group-storage 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 08 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 valantic-spryker/price-product-customer-group-storage 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 valantic-spryker/price-product-customer-group-storage 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 11
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2023-08-01