Created
June 8, 2012 10:41
-
-
Save k-holy/2894954 to your computer and use it in GitHub Desktop.
UniversalClassLoader::registerPrefix()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "require": { | |
| "symfony/class-loader": "2.1.*" | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "repositories": [ | |
| { | |
| "type":"package", | |
| "package": { | |
| "name": "phanda/pathtranslator", | |
| "version": "dev-master", | |
| "dist": { | |
| "url": "https://github.com/k-holy/Phanda_PathTranslator/zipball/master", | |
| "type": "zip" | |
| }, | |
| "source": { | |
| "url": "https://github.com/k-holy/Phanda_PathTranslator.git", | |
| "type": "git", | |
| "reference": "master" | |
| } | |
| } | |
| } | |
| ], | |
| "require": { | |
| "symfony/class-loader": "2.1.*", | |
| "symfony/http-foundation": "2.1.*", | |
| "phanda/pathtranslator": "dev-master" | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| require_once realpath(__DIR__ . '/vendor/autoload.php'); | |
| use Symfony\Component\ClassLoader\UniversalClassLoader; | |
| $loader = new UniversalClassLoader(); | |
| $loader->registerPrefix('Phanda_', realpath(__DIR__ . '/vendor/phanda/pathtranslator/src')); | |
| $loader->register(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // autoload_namespace.php generated by Composer | |
| $vendorDir = dirname(__DIR__); | |
| $baseDir = dirname($vendorDir); | |
| return array( | |
| 'Symfony\\Component\\ClassLoader' => $vendorDir . '/symfony/class-loader/', | |
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "phanda/pathtranslator", | |
| "version": "dev-master", | |
| "version_normalized": "9999999-dev", | |
| "source": { | |
| "type": "git", | |
| "url": "https://github.com/k-holy/Phanda_PathTranslator.git", | |
| "reference": "master" | |
| }, | |
| "dist": { | |
| "type": "zip", | |
| "url": "https://github.com/k-holy/Phanda_PathTranslator/zipball/master", | |
| "reference": null, | |
| "shasum": null | |
| }, | |
| "type": "library", | |
| "installation-source": "source" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment