diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-10-27 11:28:18 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-10-27 11:28:18 +0200 |
commit | 83fc72cebf5a7a043ac7a9dec544ce4e454cac51 (patch) | |
tree | 317506eed25ea58de835af64590ddf57a45621de /php-icewind-streams-autoload.php | |
parent | 4e7fb7cd2f53aa0fd95b7dcd8548918a2ed149d5 (diff) |
php-icewind-streams: 0.5.1
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__))); |