PHP Class Spatie\MediaLibrary\UrlGenerator\UrlGeneratorFactory

Mostra file Open project: spatie/laravel-medialibrary Class Usage Examples

Public Methods

Method Description
createForMedia ( Media $media ) : Spatie\MediaLibrary\UrlGenerator\UrlGenerator
guardAgainstInvalidUrlGenerator ( string $urlGeneratorClass )

Method Details

createForMedia() public static method

public static createForMedia ( Media $media ) : Spatie\MediaLibrary\UrlGenerator\UrlGenerator
$media Spatie\MediaLibrary\Media
return Spatie\MediaLibrary\UrlGenerator\UrlGenerator

guardAgainstInvalidUrlGenerator() public static method

public static guardAgainstInvalidUrlGenerator ( string $urlGeneratorClass )
$urlGeneratorClass string