|
Revision 48, 0.8 kB
(checked in by nperriault, 8 months ago)
|
Upgraded scripts to use symfony 1.1, everything is broken, use with caution.
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
if (!isset($app)) |
|---|
| 13 |
{ |
|---|
| 14 |
$traces = debug_backtrace(); |
|---|
| 15 |
$caller = $traces[0]; |
|---|
| 16 |
|
|---|
| 17 |
$dirPieces = explode(DIRECTORY_SEPARATOR, dirname($caller['file'])); |
|---|
| 18 |
$app = array_pop($dirPieces); |
|---|
| 19 |
} |
|---|
| 20 |
|
|---|
| 21 |
require_once dirname(__FILE__).'/../../config/ProjectConfiguration.class.php'; |
|---|
| 22 |
$configuration = ProjectConfiguration::getApplicationConfiguration($app, 'test', isset($debug) ? $debug : true); |
|---|
| 23 |
sfContext::createInstance($configuration); |
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 |
sfToolkit::clearDirectory(sfConfig::get('sf_app_cache_dir')); |
|---|
| 27 |
|
|---|