Skip to content

Instantly share code, notes, and snippets.

@ftassi
Created June 19, 2011 03:08
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 ftassi/1033720 to your computer and use it in GitHub Desktop.
Save ftassi/1033720 to your computer and use it in GitHub Desktop.
<?php
$env = getenv('APP_ENV') ? getenv('APP_ENV') : 'prod';
$debug = getenv('APP_DEBUG') == 'true' ? true : false;
require_once(dirname(__FILE__).'/../config/ProjectConfiguration.class.php');
$configuration = ProjectConfiguration::getApplicationConfiguration('frontend', $env, $debug);
sfContext::createInstance($configuration)->dispatch();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment