<?php require_once 'vendor/autoload.php'; spl_autoload_register(function ($className) { $filename = 'src/' . $className . '.php'; if (file_exists($filename)) { require_once $filename; } }, true, true); ServiceLocator::setInstance(require_once 'config/config.php');