mirror of
https://github.com/openvk/chandler.git
synced 2025-03-31 21:43:59 +03:00
parent
aa310f4ae4
commit
3b31eb8d08
2 changed files with 7 additions and 13 deletions
|
@ -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"]);
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue