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

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

// Dependencies
foreach ([
	$vendor . '/Hoa/Cli/autoload.php'            => true,
	$vendor . '/Hoa/Consistency/autoload.php'    => true,
	$vendor . '/Hoa/File/autoload.php'           => true,
	$vendor . '/Hoa/Protocol/autoload.php'       => true,
	$vendor . '/Hoa/Router/autoload.php'         => true,
	$vendor . '/Hoa/Xyl/autoload.php'            => true,
	] as $dep => $mandatory) {
	if ($mandatory || file_exists($dep)) require_once($dep);
}

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