Skip to content

Commit

Permalink
Merge pull request #1047 from edent/patch-1
Browse files Browse the repository at this point in the history
Documentation update for embed.md
  • Loading branch information
colinodell authored Sep 8, 2024
2 parents 9d28bfa + 437a2c3 commit 06e7fda
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/2.5/extensions/embed.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ of embeddable content.
To use that library, you'll need to `composer install embed/embed` and then pass `new OscaroteroEmbedAdapter()` as the `adapter`
configuration option, as shown in the [**Usage**](#usage) section above.

Note: `embed/embed` *requires* a PSR-17 implementation to be installed. If you do not have one installed, the library will not work. By default these libraries are detected automatically:
* [laminas/laminas-diactoros](https://github.com/laminas/laminas-diactoros)
* [guzzle/psr7](https://github.com/guzzle/psr7)
* [nyholm/psr7](https://github.com/Nyholm/psr7)
* [sunrise/http-message](https://github.com/sunrise-php/http-message)

Need to customize the maximum width/height of the embedded content? You can do that by instantiating the service provided by
`embed/embed`, [configuring it as needed](https://github.com/oscarotero/Embed#settings), and passing that customized instance into the adapter:

Expand Down

0 comments on commit 06e7fda

Please sign in to comment.