diff options
author | Remi Collet <fedora@famillecollet.com> | 2015-02-26 11:02:01 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2015-02-26 11:02:01 +0100 |
commit | de23e65be845f6a7bf5b00857a4c8674b1691120 (patch) | |
tree | a4674594bb5fa141589e3b21cef2f8eec1774bf2 /composer-autoload.php |
composer: experimental package
Diffstat (limited to 'composer-autoload.php')
-rw-r--r-- | composer-autoload.php | 16 |
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(); |