/** * @param Template $template * * @throws \InvalidArgumentException */ private static function start_template(Template $template) { $template->start(); /** * @var $router Router */ $router = Application::get_class(Router::class); $router->route(); }