Property | Type | Description | |
---|---|---|---|
$assetRoot | null | string | The root URL to use for assets, if any. | |
$requests | Symfony\Component\HttpFoundation\RequestStack | ||
$routePathGenerator | Autarky\Routing\RoutePathGeneratorInterface | ||
$router |
Method | Description | |
---|---|---|
__construct ( |
||
getAssetUrl ( string $path, boolean $relative = false ) : string | Get the URL to an asset. | |
getRootUrl ( ) : string | Get the root URL. Used to generate URLs to assets. | |
getRouteUrl ( string $name, array $params = [], boolean $relative = false ) : string | Get the URL to a named route. | |
setAssetRoot ( string $assetRoot ) | Set the root URL for assets. Useful if you're using CDNs. | |
setValidateParams ( boolean $validateParams ) | Set whether the regex pattern of route parameters should be validated on runtime. |
public __construct ( |
||
$router | ||
$routePathGenerator | Autarky\Routing\RoutePathGeneratorInterface | |
$requests | Symfony\Component\HttpFoundation\RequestStack | |
$validateParams | boolean |
public getRootUrl ( ) : string | ||
return | string |
public setAssetRoot ( string $assetRoot ) | ||
$assetRoot | string |
public setValidateParams ( boolean $validateParams ) | ||
$validateParams | boolean |
protected RequestStack,Symfony\Component\HttpFoundation $requests | ||
return | Symfony\Component\HttpFoundation\RequestStack |
protected RoutePathGeneratorInterface,Autarky\Routing $routePathGenerator | ||
return | Autarky\Routing\RoutePathGeneratorInterface |