You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
In the
Spatie\MediaLibrary\Models\Media
class there is the following function:The
UrlGeneratorFactory::createForMedia
returns a type of theUrlGenerator
interface, which does not contain thegetPath()
function.We had written our own
UrlGenerator
according to the docs, but when it went live we were seeing errors with thePerformConversions
due to this unexpected method call which we hadn't implemented.The text was updated successfully, but these errors were encountered: