Created
December 9, 2012 15:51
-
-
Save FabienArcellier/4245704 to your computer and use it in GitHub Desktop.
Autoload namespace manually from silex
This file contains 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 | |
$loader = require_once __DIR__.'/vendor/autoload.php'; | |
$loader -> add('Application', __DIR__); // PSR-0 autoloading, the directory '__DIR__/Application' must exists | |
$app = new Silex\Application(); | |
$app->run(); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment