定制 jollyblume/marking-store 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jollyblume/marking-store

Composer 安装命令:

composer require jollyblume/marking-store

包简介

symfony/workflow compliant multi-tenant marking store

README 文档

README

This component provides a light weight, multi-tenant Marking Store for use with symfony/workflow.
  • Implements symfony/workflow MarkingStoreInterface as a shim between a Workflow and it's marking store.
  • A UUID is stored on a subject, instead of the subject's marking.
    • The property used to access a subject's uuid must not be marking. This property name is reserved by symfony/workflow. Its use will throw an exception.
  • The shim communicates with a marking store through a mediator.
  • The shim transforms between a Marking and an array-of-places (used by the mediator and marking store) as needed.
  • The mediator is responsible for accessing the actual marking store.
  • The current mediator dispatches events to get and set an array-of-places on a marking store.
    • This implementation has a known issue, where the shim can get or set a marking, not knowning there are no marking stores listening. Any marking's set, would not be persisted.
Mediator event's include three identifiers from the shim.
  • The shim's name will become $storeName.
  • The subject's UUID will become $subjectUuid.
  • The property used to store the UUID on a subject will become $property.

The InMemoryMarkings marking store persists markings in an array, where a marking's identifiers form the key and the *array-of-places" the value.

$storeName>/$subjectUuid>/$property = [place1, place2, ...]

The mediator dispatches a MarkingStoreEvent to active listeners of four events.

  • workflow.store.created is dispatched during construction of the shim.
  • workflow.places.get is dispatched to get an array-of-places.
  • workflow.places.setting is dispatched to set an array-of-places.
  • workflow.places.set is dispatched after the array-of-places has be set. Listeners can perform cleanup code during this event (for instance, flushing a Doctrine entity).

Install via composer

composer.phar require jollyblume/workflow:@dev

jollyblume/marking-store 适用场景与选型建议

jollyblume/marking-store 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 7 次下载、GitHub Stars 达 1, 最近一次更新时间为 2019 年 03 月 03 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 jollyblume/marking-store 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 jollyblume/marking-store 我们能提供哪些服务?
定制开发 / 二次开发

基于 jollyblume/marking-store 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 7
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-03-03