Symfony\Bundle\AsseticBundle\Routing\AsseticLoader::loadRouteForAsset
Loads a route to serve an supplied asset.
The fake front controller that adds to the target URL will be removed before set as a route pattern.
Signature
private function loadRouteForAsset(RouteCollection
$routes,
[AssetInterface
$asset = null,
[string
$name = null,
[integer
$pos = null]]] )
Parameters
$routes
— Symfony\Component\Routing\RouteCollection- The route collection
$asset
— Assetic\Asset\AssetInterface- The asset
$name
— string- The name to use
$pos
— integer- The leaf index