SingleA Contracts
Inspired by the Symfony Contracts component.
The SingleA Contracts is a set of interfaces, which make it possible to separate the abstract service layer of the SingleA Features from the implementation. Thanks to the contracts the SingleA features are easily interchangeable and extendable (through an ability to customize them and create your own implementations).
Currently, the SingleA Contracts include the following (there may be more in the future):
- FeatureConfig — basic interfaces for a SingleA Feature implementation.
- Persistence — interfaces of services that responsible for persisting of feature configs and metadata of clients.
- Marshaller — interfaces of services for marshalling and encrypting of feature configs.
- Tokenization — interfaces of the Tokenization feature, which makes able to generate user tokens.
- PayloadFetcher — interfaces of the Payload Fetcher feature, which makes able to receive an additional payload data for the user token (during the token generation).