PHP Class Spatie\MediaLibrary\UrlGenerator\BaseUrlGenerator

Inheritance: implements Spatie\MediaLibrary\UrlGenerator\UrlGenerator
Exibir arquivo Open project: spatie/laravel-medialibrary

Protected Properties

Property Type Description
$config Illuminate\Contracts\Config\Repository
$conversion Spatie\MediaLibrary\Conversion\Conversion
$media Spatie\MediaLibrary\Media
$pathGenerator Spatie\MediaLibrary\PathGenerator\PathGenerator

Public Methods

Method 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 method

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

getPathRelativeToRoot() public method

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

setConversion() public method

public setConversion ( Conversion $conversion ) : Spatie\MediaLibrary\UrlGenerator\UrlGenerator
$conversion Spatie\MediaLibrary\Conversion\Conversion
return Spatie\MediaLibrary\UrlGenerator\UrlGenerator

setMedia() public method

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

setPathGenerator() public method

public setPathGenerator ( Spatie\MediaLibrary\PathGenerator\PathGenerator $pathGenerator ) : Spatie\MediaLibrary\UrlGenerator\UrlGenerator
$pathGenerator Spatie\MediaLibrary\PathGenerator\PathGenerator
return Spatie\MediaLibrary\UrlGenerator\UrlGenerator

Property Details

$config protected_oe property

protected Repository,Illuminate\Contracts\Config $config
return Illuminate\Contracts\Config\Repository

$conversion protected_oe property

protected Conversion,Spatie\MediaLibrary\Conversion $conversion
return Spatie\MediaLibrary\Conversion\Conversion

$media protected_oe property

protected Media,Spatie\MediaLibrary $media
return Spatie\MediaLibrary\Media

$pathGenerator protected_oe property

protected PathGenerator,Spatie\MediaLibrary\PathGenerator $pathGenerator
return Spatie\MediaLibrary\PathGenerator\PathGenerator