summaryrefslogtreecommitdiffstats
path: root/composer-autoload.php
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-02-26 11:02:01 +0100
committerRemi Collet <fedora@famillecollet.com>2015-02-26 11:02:01 +0100
commitde23e65be845f6a7bf5b00857a4c8674b1691120 (patch)
treea4674594bb5fa141589e3b21cef2f8eec1774bf2 /composer-autoload.php
composer: experimental package
Diffstat (limited to 'composer-autoload.php')
-rw-r--r--composer-autoload.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/composer-autoload.php b/composer-autoload.php
new file mode 100644
index 0000000..546fe98
--- /dev/null
+++ b/composer-autoload.php
@@ -0,0 +1,16 @@
+<?php
+$vendorDir = '/usr/share/php';
+require_once $vendorDir . '/Symfony/Component/ClassLoader/UniversalClassLoader.php';
+use Symfony\Component\ClassLoader\UniversalClassLoader;
+
+$loader = new UniversalClassLoader();
+$loader->registerNamespaces(array(
+ 'Seld\\JsonLint' => $vendorDir,
+ 'JsonSchema' => $vendorDir,
+ 'Symfony\\Component\\Console' => $vendorDir,
+ 'Symfony\\Component\\Finder' => $vendorDir,
+ 'Symfony\\Component\\Process' => $vendorDir,
+ 'Symfony\\Component\\ClassLoader' => $vendorDir,
+ 'Composer' => dirname(__DIR__)
+));
+$loader->register();