Skip to content

Instantly share code, notes, and snippets.

@trivoallan
Created July 28, 2010 16:14
Show Gist options
  • Save trivoallan/495077 to your computer and use it in GitHub Desktop.
Save trivoallan/495077 to your computer and use it in GitHub Desktop.
<?php
require_once('/usr/share/php/symfony/autoload/sfCoreAutoload.class.php');
sfCoreAutoload::register();
$handler = new sfDefineEnvironmentConfigHandler();
$conf = $handler->execute(array(dirname(__FILE__).'/config/maconf.yml'));
file_put_contents(dirname(__FILE__).'/cache/maconf.yml.php', $conf);
include(dirname(__FILE__).'/cache/maconf.yml.php');
var_dump(sfConfig::getAll());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment