In the Spatie\MediaLibrary\Models\Media class there is the following function:
public function getPath(string $conversionName = ''): string
{
$urlGenerator = UrlGeneratorFactory::createForMedia($this, $conversionName);
return $urlGenerator->getPath();
}
The UrlGeneratorFactory::createForMedia returns a type of the UrlGenerator interface, which does not contain the getPath() function.
We had written our own UrlGenerator according to the docs, but when it went live we were seeing errors with the PerformConversions due to this unexpected method call which we hadn't implemented.
same with me
Modify the interface now is a breaking change. We'll correct this in the next major version of the package.
This has been fixed on the v8 branch.
Most helpful comment
This has been fixed on the
v8branch.