made the code more composer friendly

This commit is contained in:
2025-11-19 00:03:03 -08:00
parent a14df54cd9
commit 466d34c39f
12 changed files with 164 additions and 84 deletions

View File

@@ -1,6 +1,31 @@
<?php
/**
* Novaconium Framework Entry Point
*
* This is the main entry point for the Novaconium framework.
* It sets up the environment, loads necessary components,
* and runs the application.
*
* @package Novaconium
* @author Nick Yeoman <dev@4lt.ca>
*/
// Enable error reporting for development environments
// error_reporting(E_ALL);
// ini_set('display_errors', 1);
// Define the base path where the website is running from
define('BASEPATH', dirname(__DIR__, 1));
require_once(BASEPATH . '/vendor/4lt/novaconium/src/novaconium.php');
?>
// Load Composer's autoload file to handle class autoloading
require BASEPATH . '/vendor/autoload.php';
// Define the framework path
define('FRAMEWORKPATH', BASEPATH . '/vendor/4lt/novaconium');
// Bootstrap the Novaconium framework, which will create necessary objects like $session, $db, etc.
require FRAMEWORKPATH . '/src/novaconium.php';
// Run the application
makeitso();