fond-of-oryx/erp-delivery-note-page-search
Composer 安装命令:
composer require fond-of-oryx/erp-delivery-note-page-search
包简介
ERP Delivery Note Page Search module
README 文档
README
Installation
composer require fond-of-oryx/erp-delivery-note-page-search
Configuration
For searches like GET {{glue_uri}}/erp-delivery-note-page-search?page[offset]=0&page[limit]=12&company-business-unit-uuid[]={{external_company_business_unit_reference}}&external-reference[]={{external_reference1}}&external-reference[]={{external_reference2}}
Register ErpDeliveryNotePageSearchOwnParamFilterQueryExpanderPlugin as expander plugin
For searches with spryker filters like GET {{glue_uri}}/erp-delivery-note-page-search?page[offset]=0&page[limit]=12&filter[company-business-unit.uuid]={{external_company_business_unit_reference}}&filter[erp-delivery-note.external-reference]={{external_reference}}
Register ErpDeliveryNotePageSearchExternalReferenceFilterQueryExpanderPlugin as expander plugin
and ErpDeliveryNotePageSearchCompanyBusinessUnitUuidFilterQueryExpanderPlugin as expander plugin
Register RawErpDeliveryNotePageSearchResultFormatterPlugin as result formatter plugin
<?php
namespace Pyz\Client\ErpDeliveryNotePageSearch;
use FondOfOryx\Client\ErpDeliveryNotePageSearch\ErpDeliveryNotePageSearchDependencyProvider as FooErpDeliveryNotePageSearchDependencyProvider;
use FondOfOryx\Client\ErpDeliveryNotePageSearch\Plugin\SearchExtension\ErpDeliveryNotePageSearchOwnParamFilterQueryExpanderPlugin;
use FondOfOryx\Client\ErpDeliveryNotePageSearch\Plugin\SearchExtension\RawErpDeliveryNotePageSearchResultFormatterPlugin;
class ErpDeliveryNotePageSearchDependencyProvider extends FooErpDeliveryNotePageSearchDependencyProvider
{
/**
* @return \Spryker\Client\Search\Dependency\Plugin\QueryExpanderPluginInterface[]
*/
protected function getQueryExpanderPlugins(): array
{
$queryExpanderPlugins = parent::getQueryExpanderPlugins();
$queryExpanderPlugins[] = new ErpDeliveryNotePageSearchOwnParamFilterQueryExpanderPlugin();
return $queryExpanderPlugins;
}
/**
* @return \Spryker\Client\Search\Dependency\Plugin\ResultFormatterPluginInterface[]
*/
protected function getResultFormatterPlugins(): array
{
$resultFormatterPlugins = parent::getResultFormatterPlugins();
$resultFormatterPlugins[] = new RawErpDeliveryNotePageSearchResultFormatterPlugin();
return $resultFormatterPlugins;
}
}
统计信息
- 总下载量: 1.57k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-03-22