Skip to content

Commit 6d0f4af

Browse files
committed
Fall back to classic Symfony loading
1 parent bcff6f7 commit 6d0f4af

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

lib/command/cli.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,17 @@
1313
{
1414
$autoload = dirname(__FILE__).'/../../autoload.php';
1515
}
16-
require_once $autoload;
16+
17+
// Fall back to classic Symfony loading
18+
if (!file_exists($autoload))
19+
{
20+
require_once(dirname(__FILE__).'/../autoload/sfCoreAutoload.class.php');
21+
sfCoreAutoload::register();
22+
}
23+
else
24+
{
25+
require_once $autoload;
26+
}
1727

1828
try
1929
{

0 commit comments

Comments
 (0)