Method | Description | |
---|---|---|
__construct ( Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher ) | ||
generate ( mixed $resource = null, array $params = [] ) : |
Generates a RouteReference, based on the given resource and associated params. |
public __construct ( Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher ) | ||
$dispatcher | Symfony\Component\EventDispatcher\EventDispatcherInterface |
public generate ( mixed $resource = null, array $params = [] ) : |
||
$resource | mixed | The route name. Can be any resource supported by the different routers (e.g. Location object). |
$params | array | Array of parameters, used to generate the final link along with $resource. |
return |