summaryrefslogtreecommitdiffstats
path: root/php-hoa-file-autoload.php
blob: 7b15e4196fedfc65b6c524a6724976313d4ddb68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
/* Autoloader for hoa/file 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/Stream/autoload.php'         => true,
	$vendor . '/Hoa/Iterator/autoload.php'       => true,
	] as $dep => $mandatory) {
	if ($mandatory || file_exists($dep)) require_once($dep);
}

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