diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-php/phpdepend/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-php/phpdepend/files')
-rw-r--r-- | dev-php/phpdepend/files/autoload.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/dev-php/phpdepend/files/autoload.php b/dev-php/phpdepend/files/autoload.php new file mode 100644 index 000000000000..ce186c4f3d86 --- /dev/null +++ b/dev-php/phpdepend/files/autoload.php @@ -0,0 +1,19 @@ +<?php +$vendor_dir = '/usr/share/php'; +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once("${vendor_dir}/Fedora/Autoloader/autoload.php"); +} + +\Fedora\Autoloader\Autoload::addPsr4( + 'PDepend\\', + __DIR__ . '/../src/main/php/PDepend' +); + + +\Fedora\Autoloader\Dependencies::required( + array( + "${vendor_dir}/Symfony/Component/Config/autoload.php", + "${vendor_dir}/Symfony/Component/DependencyInjection/autoload.php", + "${vendor_dir}/Symfony/Component/Filesystem/autoload.php" + ) +); |