We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 53213f3 + 61879ac commit 10542f7Copy full SHA for 10542f7
lib/command/cli.php
@@ -3,13 +3,17 @@
3
/*
4
* This file is part of the symfony package.
5
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
6
- *
+ *
7
* For the full copyright and license information, please view the LICENSE
8
* file that was distributed with this source code.
9
*/
10
11
-require_once(dirname(__FILE__).'/../autoload/sfCoreAutoload.class.php');
12
-sfCoreAutoload::register();
+// Try autoloading using composer if available.
+if (!file_exists($autoload = dirname(__FILE__).'/../../../../autoload.php'))
13
+{
14
+ $autoload = dirname(__FILE__).'/../../autoload.php';
15
+}
16
+require_once $autoload;
17
18
try
19
{
0 commit comments