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

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

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

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