summaryrefslogtreecommitdiffstats
path: root/php-icewind-streams-autoload.php
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-10-27 11:28:18 +0200
committerRemi Collet <fedora@famillecollet.com>2016-10-27 11:28:18 +0200
commit83fc72cebf5a7a043ac7a9dec544ce4e454cac51 (patch)
tree317506eed25ea58de835af64590ddf57a45621de /php-icewind-streams-autoload.php
parent4e7fb7cd2f53aa0fd95b7dcd8548918a2ed149d5 (diff)
php-icewind-streams: 0.5.1
Diffstat (limited to 'php-icewind-streams-autoload.php')
-rw-r--r--php-icewind-streams-autoload.php12
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__)));