aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2022-11-11 12:03:15 -0500
committerThedro Neely <thedroneely@gmail.com>2022-11-11 12:03:15 -0500
commit2cd87e0b67c5372651aa390cddc9b9d658e2a20f (patch)
treef9a1a3f9f4b034fbafe0048004306f829c7f76c7
parentfcc3798cfac2d6145e889f5ea03b2c57ad6f606f (diff)
downloadthedroneely.com-2cd87e0b67c5372651aa390cddc9b9d658e2a20f.tar.gz
thedroneely.com-2cd87e0b67c5372651aa390cddc9b9d658e2a20f.tar.bz2
thedroneely.com-2cd87e0b67c5372651aa390cddc9b9d658e2a20f.zip
bootstrap/Router: Make class final
-rw-r--r--bootstrap/Router.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/bootstrap/Router.php b/bootstrap/Router.php
index c8f51e3..c78ab8b 100644
--- a/bootstrap/Router.php
+++ b/bootstrap/Router.php
@@ -1,6 +1,6 @@
<?php
-class Router
+final class Router
{
protected $routes = [
'GET' => [],
@@ -26,7 +26,7 @@ class Router
public static function load($file)
{
$router = new static;
- require $file;
+ include $file;
return $router;
}