diff options
Diffstat (limited to 'php-icewind-streams-autoload.php')
-rw-r--r-- | php-icewind-streams-autoload.php | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/php-icewind-streams-autoload.php b/php-icewind-streams-autoload.php index a0bcd01..ecbb3df 100644 --- a/php-icewind-streams-autoload.php +++ b/php-icewind-streams-autoload.php @@ -1,15 +1,7 @@ <?php /* Autoloader for icewind/streams and its dependencies */ -$vendorDir = '/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 $vendorDir . '/Symfony/Component/ClassLoader/ClassLoader.php'; - } +require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; - $fedoraClassLoader = new \Symfony\Component\ClassLoader\ClassLoader(); - $fedoraClassLoader->register(); -} +\Fedora\Autoloader\Autoload::addPsr4('Icewind\\Streams\\', __DIR__); -$fedoraClassLoader->addPrefix('Icewind\\Streams\\', dirname(dirname(__DIR__))); |