forked from TomFrost/Hydrogen
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhydrogen.inc.php
More file actions
27 lines (23 loc) · 864 Bytes
/
hydrogen.inc.php
File metadata and controls
27 lines (23 loc) · 864 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
/*
* Copyright (c) 2009 - 2011, Frosted Design
* All rights reserved.
*
*************************************************************************
* Hydrogen loader. require_once() this file from any php page that can
* be loaded directly. This file will autoload any other hydrogen classes
* as they're used, so no others requires are necessary.
*/
namespace hydrogen;
// Common classes get loaded explicitly, because it's faster.
require_once(__DIR__ . '/config/Config.php');
require_once(__DIR__ . '/autoloader/Autoloader.php');
// All other classes are loaded through the autoloader.
use hydrogen\autoloader\Autoloader;
Autoloader::registerNamespace('hydrogen', __DIR__, false);
Autoloader::register();
// Run the autoconfig
require(defined('HYDROGEN_AUTOCONFIG_PATH') ?
HYDROGEN_AUTOCONFIG_PATH :
__DIR__ . '/hydrogen.autoconfig.php');
?>