Initial commit
This commit is contained in:
34
vendor/houdini/bin/autoload.php
vendored
Normal file
34
vendor/houdini/bin/autoload.php
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* bin/autoload.php
|
||||
*
|
||||
* Handles the initial setup like autoloading, basic functions, constants, etc.
|
||||
*
|
||||
* @version 3.0
|
||||
* @author Joey Kimsey <Joey@thetempusproject.com>
|
||||
* @link https://TheTempusProject.com/houdini
|
||||
* @license https://opensource.org/licenses/MIT [MIT LICENSE]
|
||||
*/
|
||||
namespace TheTempusProject\Houdini;
|
||||
|
||||
use TheTempusProject\Hermes\Classes\Autoloader;
|
||||
|
||||
if ( ! defined('HOUDINI_ROOT_DIRECTORY' ) ) {
|
||||
define('HOUDINI_ROOT_DIRECTORY', dirname(__DIR__) . DIRECTORY_SEPARATOR);
|
||||
}
|
||||
if ( ! defined('HOUDINI_CONFIG_DIRECTORY' ) ) {
|
||||
define('HOUDINI_CONFIG_DIRECTORY', BEDROCK_ROOT_DIRECTORY . 'config' . DIRECTORY_SEPARATOR);
|
||||
}
|
||||
if ( ! defined('HOUDINI_CONSTANTS_LOADED' ) ) {
|
||||
require_once HOUDINI_CONFIG_DIRECTORY . 'constants.php';
|
||||
}
|
||||
|
||||
$autoloader = new Autoloader;
|
||||
$autoloader->setRootFolder( HOUDINI_ROOT_DIRECTORY );
|
||||
$autoloader->addNamespace(
|
||||
'TheTempusProject\Houdini\Classes',
|
||||
'classes'
|
||||
);
|
||||
$autoloader->register();
|
||||
|
||||
define( 'HOUDINI_AUTOLOADED', true );
|
Reference in New Issue
Block a user