composer and autoloading changes for renaming

This commit is contained in:
Joey Kimsey
2025-02-03 12:39:08 -05:00
parent 98b2f8086c
commit 1101055a5d
2 changed files with 9 additions and 9 deletions

View File

@ -17,7 +17,7 @@ if ( ! defined('BEDROCK_ROOT_DIRECTORY' ) ) {
define('BEDROCK_ROOT_DIRECTORY', dirname(__DIR__) . DIRECTORY_SEPARATOR); define('BEDROCK_ROOT_DIRECTORY', dirname(__DIR__) . DIRECTORY_SEPARATOR);
} }
if ( ! defined('BEDROCK_CONFIG_DIRECTORY' ) ) { if ( ! defined('BEDROCK_CONFIG_DIRECTORY' ) ) {
define('BEDROCK_CONFIG_DIRECTORY', BEDROCK_ROOT_DIRECTORY . 'Config' . DIRECTORY_SEPARATOR); define('BEDROCK_CONFIG_DIRECTORY', BEDROCK_ROOT_DIRECTORY . 'config' . DIRECTORY_SEPARATOR);
} }
if ( ! defined('BEDROCK_CONSTANTS_LOADED' ) ) { if ( ! defined('BEDROCK_CONSTANTS_LOADED' ) ) {
require_once BEDROCK_CONFIG_DIRECTORY . 'constants.php'; require_once BEDROCK_CONFIG_DIRECTORY . 'constants.php';
@ -27,19 +27,19 @@ if ( class_exists( 'TheTempusProject\Hermes\Classes\Autoloader' ) ) {
$autoloader->setRootFolder( BEDROCK_ROOT_DIRECTORY ); $autoloader->setRootFolder( BEDROCK_ROOT_DIRECTORY );
$autoloader->addNamespace( $autoloader->addNamespace(
'TheTempusProject\Bedrock', 'TheTempusProject\Bedrock',
'Bin' 'bin'
); );
$autoloader->addNamespace( $autoloader->addNamespace(
'TheTempusProject\Bedrock\Classes', 'TheTempusProject\Bedrock\Classes',
'Classes' 'classes'
); );
$autoloader->addNamespace( $autoloader->addNamespace(
'TheTempusProject\Bedrock\Functions', 'TheTempusProject\Bedrock\Functions',
'Functions' 'functions'
); );
$autoloader->register(); $autoloader->register();
} }
require_once 'Bedrock.php'; require_once 'bedrock.php';
define( 'BEDROCK_AUTOLOADED', true ); define( 'BEDROCK_AUTOLOADED', true );

View File

@ -32,13 +32,13 @@
{ {
"psr-4": "psr-4":
{ {
"TheTempusProject\\Bedroock\\Classes\\": "Classes", "TheTempusProject\\Bedroock\\Classes\\": "classes",
"TheTempusProject\\Bedroock\\Functions\\": "Functions" "TheTempusProject\\Bedroock\\Functions\\": "functions"
}, },
"files": "files":
[ [
"Config/constants.php", "config/constants.php",
"Bin/Bedrock.php" "bin/bedrock.php"
] ]
} }
} }