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

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

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

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