BREAKING CHANGE: Adhere to PSR-12 coding standards.

- Model: where_in method was renamed as whereIn.
This commit is contained in:
kj
2025-09-07 11:07:07 -03:00
parent 0f46848d15
commit c9f467345b
10 changed files with 480 additions and 401 deletions

View File

@ -1,20 +1,23 @@
<?php
require_once('config.php');
// Incluir clases
spl_autoload_register(function ($className) {
$fp = str_replace('\\','/',$className);
$fp = str_replace('\\', '/', $className);
$name = basename($fp);
$dir = dirname($fp);
$file = ROOT_CORE.'/'.$dir.'/'.$name.'.php';
if (file_exists($file))
$file = ROOT_CORE . '/' . $dir . '/' . $name . '.php';
if (file_exists($file)) {
require_once $file;
}
});
// Incluir routers
$routers = glob(ROOT_CORE.'/Routers/*.php');
$routers = glob(ROOT_CORE . '/Routers/*.php');
foreach($routers as $file)
foreach ($routers as $file) {
require_once($file);
}
\Libs\Router::apply();