Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 382 Bytes

link-generating.md

File metadata and controls

15 lines (11 loc) · 382 Bytes

Link generating

When the image is persisted we pass it to the link method of the LinkGeneratorInterface.

use Contributte\Imagist\Entity\PersistentImageInterface;
use Contributte\Imagist\LinkGeneratorInterface;

/** @var LinkGeneratorInterface $linkGenerator */
$linkGenerator;
/** @var PersistentImageInterface $image */
$image;

echo $linkGenerator->link($image);