PHP Class Bolt\Routing\LazyUrlGenerator

Similar concept with {@see \Silex\LazyUrlMatcher LazyUrlMatcher} and {@see \Symfony\Component\HttpKernel\EventListener\RouterListener RouterListener}
Author: Carson Full ([email protected])
Inheritance: implements Symfony\Component\Routing\Generator\UrlGeneratorInterface
Show file Open project: bolt/bolt

Public Methods

Method Description
__construct ( callable $factory ) LazyUrlGenerator constructor.
generate ( $name, $parameters = [], $referenceType = self::ABSOLUTE_PATH )
getContext ( )
getUrlGenerator ( ) : Symfony\Component\Routing\Generator\UrlGeneratorInterface
setContext ( Symfony\Component\Routing\RequestContext $context )

Method Details

__construct() public method

LazyUrlGenerator constructor.
public __construct ( callable $factory )
$factory callable Should return UrlGeneratorInterface when invoked

generate() public method

public generate ( $name, $parameters = [], $referenceType = self::ABSOLUTE_PATH )

getContext() public method

public getContext ( )

getUrlGenerator() public method

public getUrlGenerator ( ) : Symfony\Component\Routing\Generator\UrlGeneratorInterface
return Symfony\Component\Routing\Generator\UrlGeneratorInterface

setContext() public method

public setContext ( Symfony\Component\Routing\RequestContext $context )
$context Symfony\Component\Routing\RequestContext