summaryrefslogtreecommitdiff
path: root/dev-php/phing/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-php/phing/files
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-php/phing/files')
-rw-r--r--dev-php/phing/files/autoload.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/dev-php/phing/files/autoload.php b/dev-php/phing/files/autoload.php
new file mode 100644
index 000000000000..437a7dc7ee1e
--- /dev/null
+++ b/dev-php/phing/files/autoload.php
@@ -0,0 +1,14 @@
+<?php
+$vendor_dir = '/usr/share/php';
+if (!class_exists('Fedora\\Autoloader\\Autoload', false)) {
+ require_once("${vendor_dir}/Fedora/Autoloader/autoload.php");
+}
+
+/*
+ At least for the moment, we don't need to autoload the Phing classes
+ themselves, because the "require" statements are all still there.
+*/
+
+\Fedora\Autoloader\Dependencies::required(
+ array("${vendor_dir}/Symfony/Component/Yaml/autoload.php")
+);