summaryrefslogtreecommitdiffstats
path: root/php-hoa-exception-autoload.php
blob: 269e5f8bffd904c823761044c8aff6dc82b2ca27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php
/* Autoloader for hoa/exception and its dependencies */

$vendor = '/usr/share/php';
// Dependencies
foreach ([
	$vendor . '/Hoa/Consistency/autoload.php'    => true,
	$vendor . '/Hoa/Event/autoload.php'          => true,
	] as $dep => $mandatory) {
	if ($mandatory || file_exists($dep)) require_once($dep);
}
$fedoraHoaLoader->addNamespace('Hoa\\Exception\\', __DIR__, true);