summaryrefslogtreecommitdiffstats
path: root/php-hoa-realdom-autoload.php
blob: 82f47d50293400848d0d6d17c4a04ef0c8b7ae80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
/* Autoloader for hoa/realdom and its dependencies */

$vendor = '/usr/share/php';

// Dependencies
foreach ([
	$vendor . '/Hoa/Compiler/autoload.php'       => true,
	$vendor . '/Hoa/Consistency/autoload.php'    => true,
	$vendor . '/Hoa/Exception/autoload.php'      => true,
	$vendor . '/Hoa/File/autoload.php'           => true,
	$vendor . '/Hoa/Iterator/autoload.php'       => true,
	$vendor . '/Hoa/Math/autoload.php'           => true,
	$vendor . '/Hoa/Praspel/autoload.php'        => true,
	$vendor . '/Hoa/Regex/autoload.php'          => true,
	$vendor . '/Hoa/Ustring/autoload.php'        => true,
	$vendor . '/Hoa/Visitor/autoload.php'        => true,
	] as $dep => $mandatory) {
	if ($mandatory || file_exists($dep)) require_once($dep);
}

$fedoraHoaLoader->addNamespace('Hoa\\Realdom\\', __DIR__, true);