Skip to content

Commit

Permalink
docs: documents autoregistration of factories
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Weier O'Phinney <[email protected]>
  • Loading branch information
weierophinney committed Apr 27, 2020
1 parent e6b3489 commit 55843ed
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/book/v2/factories.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,14 @@ The `ServerRequestFactory` continues to define the static method

These classes may be used as described in the specification document for the
purpose of creating Diactoros instances that fulfill PSR-7 typehints.

## Autoregistration of factories

- Since 2.3.0

When installing Diactoros in a Laminas or Mezzio application, or any application
using the [laminas-component-installer plugin](https://docs.laminas.dev/laminas-component-installer),
you will now be prompted to install its `ConfigProvider` and/or `Module`. When
you do, it registers the Diactoros factory implementations under the PSR-17
interface names, allowing you to compose instances of the interface in your
application classes..

0 comments on commit 55843ed

Please sign in to comment.