class Finder implements FinderInterface (View source)

Properties

protected AggregateFilesystemInterface $filesystem
protected string[] $filesystemsToCheck
protected Image $defaultImage

Methods

__construct(AggregateFilesystemInterface $filesystem, array $filesystemsToCheck, Image $defaultImage)

Finder constructor.

Image
find(string $path)

Searches the filesystem for the image based on the path, or returns the default image if not found.

Details

__construct(AggregateFilesystemInterface $filesystem, array $filesystemsToCheck, Image $defaultImage)

Finder constructor.

Parameters

AggregateFilesystemInterface $filesystem
array $filesystemsToCheck
Image $defaultImage

Image find(string $path)

Searches the filesystem for the image based on the path, or returns the default image if not found.

Parameters

string $path

Return Value

Image