diff options
Diffstat (limited to 'dev-php/composer/files')
-rw-r--r-- | dev-php/composer/files/autoload-r1.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/dev-php/composer/files/autoload-r1.php b/dev-php/composer/files/autoload-r1.php new file mode 100644 index 000000000000..bece97f17ce0 --- /dev/null +++ b/dev-php/composer/files/autoload-r1.php @@ -0,0 +1,28 @@ +<?php +/* Autoloader for composer and its dependencies */ + +$vendorDir = '/usr/share/php'; +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +\Fedora\Autoloader\Autoload::addPsr4( + 'Composer\\', + __DIR__ . '/../src/Composer' +); + +// Dependencies +\Fedora\Autoloader\Dependencies::required(array( + $vendorDir . '/JsonSchema/autoload.php', + $vendorDir . '/Composer/CaBundle/autoload.php', + $vendorDir . '/Composer/Semver/autoload.php', + $vendorDir . '/Composer/Spdx/autoload.php', + $vendorDir . '/Composer/XdebugHandler/autoload.php', + $vendorDir . '/Seld/JsonLint/autoload.php', + $vendorDir . '/Symfony/Component/Console/autoload.php', + $vendorDir . '/Symfony/Component/Finder/autoload.php', + $vendorDir . '/Symfony/Component/Process/autoload.php', + $vendorDir . '/Symfony/Component/Filesystem/autoload.php', + $vendorDir . '/Seld/PharUtils/autoload.php', + $vendorDir . '/Psr/Log/autoload.php', +)); |