summaryrefslogtreecommitdiffstats
path: root/php-hoa-xyl-autoload.php
blob: 56921dbf138661c9935da831a7b0bbe399868ac8 (plain)
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
/* Autoloader for hoa/xyl and its dependencies */

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

// Dependencies
foreach ([
	$vendor . '/Hoa/Consistency/autoload.php'    => true,
	$vendor . '/Hoa/Event/autoload.php'          => true,
	$vendor . '/Hoa/Exception/autoload.php'      => true,
	$vendor . '/Hoa/File/autoload.php'           => true,
	$vendor . '/Hoa/Http/autoload.php'           => true,
	$vendor . '/Hoa/Locale/autoload.php'         => true,
	$vendor . '/Hoa/Praspel/autoload.php'        => true,
	$vendor . '/Hoa/Protocol/autoload.php'       => true,
	$vendor . '/Hoa/Realdom/autoload.php'        => true,
	$vendor . '/Hoa/Router/autoload.php'         => true,
	$vendor . '/Hoa/Stringbuffer/autoload.php'   => true,
	$vendor . '/Hoa/View/autoload.php'           => true,
	$vendor . '/Hoa/Xml/autoload.php'            => true,
	$vendor . '/Hoa/Zformat/autoload.php'        => true,
	] as $dep => $mandatory) {
	if ($mandatory || file_exists($dep)) require_once($dep);
}

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