ufm
1<?php
2
3namespace Upside\Ufm\View\Extension;4
5use Upside\Router\UrlGenerator;6
7class Route8{
9private static UrlGenerator $url_generator;10
11public static function init(UrlGenerator $url_generator): void12{13self::$url_generator = $url_generator;14}15
16public static function route(string $name, array $params = []): string17{18return self::$url_generator->generate_url($name, $params);19}20}
21