PHP Class TwigBridge\Extension\Laravel\Url

Inheritance: extends Twig_Extensio\Twig_Extension
Exibir arquivo Open project: rcrowe/twigbridge

Protected Properties

Property Type Description
$router Illuminate\Contracts\Routing\Registrar
$url Illuminate\Routing\UrlGenerator

Public Methods

Method Description
__construct ( UrlGenerator $url, Illuminate\Contracts\Routing\Registrar $router ) Create a new url extension
getFunctions ( ) {@inheritDoc}
getName ( ) {@inheritDoc}
url ( $path = null, $parameters = [], $secure = null )

Method Details

__construct() public method

Create a new url extension
public __construct ( UrlGenerator $url, Illuminate\Contracts\Routing\Registrar $router )
$url Illuminate\Routing\UrlGenerator
$router Illuminate\Contracts\Routing\Registrar

getFunctions() public method

{@inheritDoc}
public getFunctions ( )

getName() public method

{@inheritDoc}
public getName ( )

url() public method

public url ( $path = null, $parameters = [], $secure = null )

Property Details

$router protected_oe property

protected Registrar,Illuminate\Contracts\Routing $router
return Illuminate\Contracts\Routing\Registrar

$url protected_oe property

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