blob: 02ad1f975b7d9421e0b28f888ebd4fd7cff05c35 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<?php
/* Autoloader for hoa/event and its dependencies */
$vendor = '/usr/share/php';
// Use Symfony autoloader
if (!isset($fedoraClassLoader) || !($fedoraClassLoader instanceof \Symfony\Component\ClassLoader\ClassLoader)) {
if (!class_exists('Symfony\\Component\\ClassLoader\\ClassLoader', false)) {
require_once $vendor . '/Symfony/Component/ClassLoader/ClassLoader.php';
}
$fedoraClassLoader = new \Symfony\Component\ClassLoader\ClassLoader();
$fedoraClassLoader->register();
}
$fedoraClassLoader->addPrefix('Hoa\\Event\\', dirname(dirname(__DIR__)));
// Dependencies
foreach ([
$vendor . '/Hoa/Consistency/autoload.php' => true,
$vendor . '/Hoa/Exception/autoload.php' => true,
] as $dep => $mandatory) {
if ($mandory || file_exists($dep) require_once($dep);
}
|