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

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

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

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