Skip to content

Instantly share code, notes, and snippets.

@vjousse
Created February 6, 2010 12:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vjousse/296690 to your computer and use it in GitHub Desktop.
Save vjousse/296690 to your computer and use it in GitHub Desktop.
<?php
// change this with the actual path you cloned sf2 to
$sf2_path = '~/symfony/src';
use Symfony\Foundation\ClassLoader;
use Symfony\Components\Console\Application;
require_once $sf2_path.'/Symfony/Foundation/ClassLoader.php';
$loader = new ClassLoader();
$loader->registerNamespace('Symfony', $sf2_path);
$loader->register();
$app = new Application();
$app->run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment