Exemple #1
0
 /**
  * Returns a function creating a URL for the given route.
  * @return \Closure A function creating a URL for the given route.
  */
 public function getToRoute() : \Closure
 {
     return function ($value, \Mustache_LambdaHelper $helper) {
         $args = $this->parseArguments($helper->render($value), 'route', ['scheme' => false]);
         return UrlHelper::toRoute($args['route'], $args['scheme']);
     };
 }