PHP Class Plank\Mediable\UrlGenerators\LocalUrlGenerator

Author: Sean Fraser ([email protected])
Inheritance: extends BaseUrlGenerator
Afficher le fichier Open project: plank/laravel-mediable Class Usage Examples

Protected Properties

Свойство Type Description
$url Illuminate\Routing\UrlGenerator

Méthodes publiques

Méthode Description
__construct ( Illuminate\Contracts\Config\Repository $config, UrlGenerator $url ) Constructor.
getAbsolutePath ( )
getPublicPath ( ) : string Get the path to relative to the webroot.
getUrl ( )
isPubliclyAccessible ( )

Méthodes protégées

Méthode Description
cleanDirectorySeparators ( string $path ) : string Correct directory separator slashes on non-unix systems.

Private Methods

Méthode Description
isInWebroot ( )

Method Details

__construct() public méthode

Constructor.
public __construct ( Illuminate\Contracts\Config\Repository $config, UrlGenerator $url )
$config Illuminate\Contracts\Config\Repository
$url Illuminate\Routing\UrlGenerator

cleanDirectorySeparators() protected méthode

Correct directory separator slashes on non-unix systems.
protected cleanDirectorySeparators ( string $path ) : string
$path string
Résultat string

getAbsolutePath() public méthode

public getAbsolutePath ( )

getPublicPath() public méthode

Get the path to relative to the webroot.
public getPublicPath ( ) : string
Résultat string

getUrl() public méthode

public getUrl ( )

isPubliclyAccessible() public méthode

Property Details

$url protected_oe property

protected UrlGenerator,Illuminate\Routing $url
Résultat Illuminate\Routing\UrlGenerator