PHP Classes

File: docs/Internals/Adapter/Generic/Adapter.md

Recommend this page to a friend!
  Classes of Scott Arciszewski   sapient   docs/Internals/Adapter/Generic/Adapter.md   Download  
File: docs/Internals/Adapter/Generic/Adapter.md
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
 

Contents

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).