diff options
| author | Remi Collet <fedora@famillecollet.com> | 2016-04-14 15:41:02 +0200 | 
|---|---|---|
| committer | Remi Collet <fedora@famillecollet.com> | 2016-04-14 15:41:02 +0200 | 
| commit | 83aaaa50777e23764d2e0d4afb1a417cf583bfae (patch) | |
| tree | bfb4ddfbc6a435fcb00ed7baba2c6b6522dee68b /php-hoa-devtools-autoload.php | |
php-hoa-devtools: 1.16.01.15 (new package, wip)
Diffstat (limited to 'php-hoa-devtools-autoload.php')
| -rw-r--r-- | php-hoa-devtools-autoload.php | 19 | 
1 files changed, 19 insertions, 0 deletions
diff --git a/php-hoa-devtools-autoload.php b/php-hoa-devtools-autoload.php new file mode 100644 index 0000000..1e6d1e9 --- /dev/null +++ b/php-hoa-devtools-autoload.php @@ -0,0 +1,19 @@ +<?php +/* Autoloader for hoa/devtools and its dependencies */ + +$vendor = '/usr/share/php'; + +// Dependencies +foreach ([ +	$vendor . '/Hoa/Cli/autoload.php'            => true, +	$vendor . '/Hoa/Consistency/autoload.php'    => true, +	$vendor . '/Hoa/File/autoload.php'           => true, +	$vendor . '/Hoa/Protocol/autoload.php'       => true, +	$vendor . '/Hoa/Router/autoload.php'         => true, +	$vendor . '/Hoa/Xyl/autoload.php'            => true, +	] as $dep => $mandatory) { +	if ($mandatory || file_exists($dep)) require_once($dep); +} + +$fedoraHoaLoader->addNamespace('Hoa\\Devtools\\', __DIR__, true); +  | 
