diff --git a/chandler/Bootstrap.php b/chandler/Bootstrap.php index a7ec77c..ee978ef 100644 --- a/chandler/Bootstrap.php +++ b/chandler/Bootstrap.php @@ -24,18 +24,6 @@ class Bootstrap Chandler\Extensions\ExtensionManager::getInstance(); } - /** - * Loads procedural APIs. - * - * @return void - * @internal - */ - private function registerFunctions(): void - { - foreach (glob(CHANDLER_ROOT . "/chandler/procedural/*.php") as $procDef) - require $procDef; - } - /** * Starts router and serves request. * @@ -61,7 +49,6 @@ class Bootstrap */ public function ignite(): void { - $this->registerFunctions(); $this->igniteExtensions(); header("Referrer-Policy: strict-origin-when-cross-origin"); $this->route(function_exists("get_current_url") ? get_current_url() : $_SERVER["REQUEST_URI"]); diff --git a/composer.json b/composer.json index 5dfcab8..8d650f7 100644 --- a/composer.json +++ b/composer.json @@ -3,6 +3,13 @@ "classmap": [ "chandler/Patterns/TSimpleSingleton.php" ], + "files": [ + "chandler/procedural/db_busy.php", + "chandler/procedural/escape_url.php", + "chandler/procedural/mimes.php", + "chandler/procedural/panic.php", + "chandler/procedural/yaml.php" + ], "psr-4": { "Chandler\\": "src" }