Skip to content

Instantly share code, notes, and snippets.

@FabienArcellier
Created December 9, 2012 15:51
Show Gist options
  • Save FabienArcellier/4245704 to your computer and use it in GitHub Desktop.
Save FabienArcellier/4245704 to your computer and use it in GitHub Desktop.
Autoload namespace manually from silex
<?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