PHP Class Plank\Mediable\UrlGenerators\LocalUrlGenerator

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

Protected Properties

Property Type Description
$url Illuminate\Routing\UrlGenerator

Public Methods

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

Protected Methods

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

Private Methods

Method Description
isInWebroot ( )

Method Details

__construct() public method

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

cleanDirectorySeparators() protected method

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

getAbsolutePath() public method

public getAbsolutePath ( )

getPublicPath() public method

Get the path to relative to the webroot.
public getPublicPath ( ) : string
return string

getUrl() public method

public getUrl ( )

isPubliclyAccessible() public method

Property Details

$url protected_oe property

protected UrlGenerator,Illuminate\Routing $url
return Illuminate\Routing\UrlGenerator