PHP Class Spatie\MediaLibrary\UrlGenerator\BaseUrlGenerator

Inheritance: implements Spatie\MediaLibrary\UrlGenerator\UrlGenerator
Afficher le fichier Open project: spatie/laravel-medialibrary

Protected Properties

Свойство Type Description
$config Illuminate\Contracts\Config\Repository
$conversion Spatie\MediaLibrary\Conversion\Conversion
$media Spatie\MediaLibrary\Media
$pathGenerator Spatie\MediaLibrary\PathGenerator\PathGenerator

Méthodes publiques

Méthode Description
__construct ( Illuminate\Contracts\Config\Repository $config )
getPathRelativeToRoot ( ) : string * Get the path to the requested file relative to the root of the media directory.
setConversion ( Conversion $conversion ) : Spatie\MediaLibrary\UrlGenerator\UrlGenerator
setMedia ( Media $media ) : Spatie\MediaLibrary\UrlGenerator\UrlGenerator
setPathGenerator ( Spatie\MediaLibrary\PathGenerator\PathGenerator $pathGenerator ) : Spatie\MediaLibrary\UrlGenerator\UrlGenerator

Method Details

__construct() public méthode

public __construct ( Illuminate\Contracts\Config\Repository $config )
$config Illuminate\Contracts\Config\Repository

getPathRelativeToRoot() public méthode

* Get the path to the requested file relative to the root of the media directory.
public getPathRelativeToRoot ( ) : string
Résultat string

setConversion() public méthode

public setConversion ( Conversion $conversion ) : Spatie\MediaLibrary\UrlGenerator\UrlGenerator
$conversion Spatie\MediaLibrary\Conversion\Conversion
Résultat Spatie\MediaLibrary\UrlGenerator\UrlGenerator

setMedia() public méthode

public setMedia ( Media $media ) : Spatie\MediaLibrary\UrlGenerator\UrlGenerator
$media Spatie\MediaLibrary\Media
Résultat Spatie\MediaLibrary\UrlGenerator\UrlGenerator

setPathGenerator() public méthode

public setPathGenerator ( Spatie\MediaLibrary\PathGenerator\PathGenerator $pathGenerator ) : Spatie\MediaLibrary\UrlGenerator\UrlGenerator
$pathGenerator Spatie\MediaLibrary\PathGenerator\PathGenerator
Résultat Spatie\MediaLibrary\UrlGenerator\UrlGenerator

Property Details

$config protected_oe property

protected Repository,Illuminate\Contracts\Config $config
Résultat Illuminate\Contracts\Config\Repository

$conversion protected_oe property

protected Conversion,Spatie\MediaLibrary\Conversion $conversion
Résultat Spatie\MediaLibrary\Conversion\Conversion

$media protected_oe property

protected Media,Spatie\MediaLibrary $media
Résultat Spatie\MediaLibrary\Media

$pathGenerator protected_oe property

protected PathGenerator,Spatie\MediaLibrary\PathGenerator $pathGenerator
Résultat Spatie\MediaLibrary\PathGenerator\PathGenerator