. // }}} /** * Static wrapper for Symfony's router * * @package GNUsocial * @category URL * * @author Hugo Sales * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later */ namespace App\Core\Router; use Symfony\Component\Routing\Router as SRouter; abstract class Router { public static ?SRouter $router = null; public static function setRouter($rtr): void { self::$router = $rtr; } public static function __callStatic(string $name, array $args) { return self::$router->{$name}(...$args); } }