Download the PHP package jollyblume/marking-store without Composer
On this page you can find all versions of the php package jollyblume/marking-store. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download jollyblume/marking-store
More information about jollyblume/marking-store
Files in jollyblume/marking-store
Download jollyblume/marking-store
More information about jollyblume/marking-store
Files in jollyblume/marking-store
Vendor jollyblume
Package marking-store
Short Description symfony/workflow compliant multi-tenant marking store
License MIT
Package marking-store
Short Description symfony/workflow compliant multi-tenant marking store
License MIT
Please rate this library. Is it a good library?
Informations about the package marking-store
jollyblume/workflow
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
All versions of marking-store with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.1.3
moontoast/math Version ^1.1
ramsey/uuid Version ^3.8
symfony/event-dispatcher Version ^4.2
symfony/property-access Version ^4.2
symfony/workflow Version ^4.2
moontoast/math Version ^1.1
ramsey/uuid Version ^3.8
symfony/event-dispatcher Version ^4.2
symfony/property-access Version ^4.2
symfony/workflow Version ^4.2
The package jollyblume/marking-store contains the following files
Loading the files please wait ....