Skip to content

Commit

Permalink
simplifying cli.php path search: removed pear and other methods
Browse files Browse the repository at this point in the history
  • Loading branch information
connorhu committed Apr 4, 2024
1 parent bb1bdb8 commit 19c9153
Showing 1 changed file with 2 additions and 27 deletions.
29 changes: 2 additions & 27 deletions data/bin/symfony
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,9 @@
/*
* This file is part of the symfony package.
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
*
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

// project exists?
if (file_exists('config/ProjectConfiguration.class.php'))
{
require_once('config/ProjectConfiguration.class.php');
$dir = sfCoreAutoload::getInstance()->getBaseDir();
}
else
{
if (is_readable(__DIR__.'/../../lib/autoload/sfCoreAutoload.class.php'))
{
// SVN
$dir = realpath(__DIR__.'/../../lib');
}
else
{
// PEAR
$dir = '@PEAR-DIR@/symfony';

if (!is_dir($dir))
{
throw new Exception('Unable to find symfony libraries');
}
}
}

include($dir.'/command/cli.php');
include(__DIR__.'/../../lib/command/cli.php');

0 comments on commit 19c9153

Please sign in to comment.