|
@@ -55,6 +55,14 @@
|
|
|
parent::__destruct();
|
|
|
}
|
|
|
}
|
|
|
+ public static function import_all(string $dirpath){
|
|
|
+ foreach(scandir($dirpath) as $file){
|
|
|
+ $path = "{$dirpath}{$file}";
|
|
|
+ if(is_file($path) && pathinfo($file, PATHINFO_EXTENSION) == "php"){
|
|
|
+ require_once($path);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
public static function shutdown(){
|
|
|
$verb = $_SERVER['REQUEST_METHOD'];
|
|
|
if(isset($_SERVER['REDIRECT_URL'])){
|