PHP Classes

File: docs/Internals/Adapter/Generic/

Recommend this page to a friend!
  Classes of Scott Arciszewski   sapient   docs/Internals/Adapter/Generic/   Download  
File: docs/Internals/Adapter/Generic/
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: sapient
Add a security layer to server to server requests
Author: By
Last change:
Date: 7 years ago
Size: 447 bytes


Class file image Download

The Generic Adapter

If you do not specify an adapter for a specific framework, this is what Sapient uses.

The generic adapter only provides stringToStream() (and none of the convenience methods), which is needed to convert a string to an instance of StreamInterface.

We adapted our Stream implementation almost verbatim from Slim Framework, except we made our implementation type-safe (verified by Psalm during continuous integration).