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

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

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

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