Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP][autoload] use composer classmap and deprecate sfAutoload #369

Draft
wants to merge 16 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
simplifying cli.php path search: removed pear and other methods
  • Loading branch information
connorhu committed Apr 4, 2024
commit 19c91531f8abc13aa0806aab9e40aed925fc77bd
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');
Loading