This commit is contained in:
Bastian Allgeier
2020-07-07 12:40:13 +02:00
parent 5f025ac2c2
commit f79d2e960c
176 changed files with 10532 additions and 5343 deletions

View File

@@ -51,11 +51,11 @@ class Controller
public static function load(string $file)
{
if (file_exists($file) === false) {
if (is_file($file) === false) {
return null;
}
$function = require $file;
$function = F::load($file);
if (is_a($function, 'Closure') === false) {
return null;