From 80b2b647c944afe10c5745a6fc5a960dd38fc69e Mon Sep 17 00:00:00 2001 From: Greg Sarjeant <1686767+gsarjeant@users.noreply.github.com> Date: Thu, 12 Jun 2025 17:09:27 -0400 Subject: [PATCH] More commenting. --- src/Framework/Router/Router.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Framework/Router/Router.php b/src/Framework/Router/Router.php index 7fb1c9f..e0ea793 100644 --- a/src/Framework/Router/Router.php +++ b/src/Framework/Router/Router.php @@ -41,9 +41,10 @@ class Router { array_shift($matches); if (strpos($controller, '@')) { + // Get the controller and method that handle this route [$controllerName, $methodName] = explode('@', $controller); } else { - // Default to 'index' method if no method specified + // Default to 'index' if no method specified $controllerName = $controller; $methodName = 'index'; }