symfony 817 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/usr/bin/env php
  2. <?php
  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. // project exists?
  11. if (file_exists('config/config.php'))
  12. {
  13. include('config/config.php');
  14. }
  15. if (!isset($sf_symfony_lib_dir))
  16. {
  17. if (is_readable(dirname(__FILE__).'/../../lib/autoload/sfCoreAutoload.class.php'))
  18. {
  19. // SVN
  20. $sf_symfony_lib_dir = realpath(dirname(__FILE__).'/../../lib');
  21. }
  22. else
  23. {
  24. // PEAR
  25. $sf_symfony_lib_dir = '@PEAR-DIR@/symfony';
  26. if (!is_dir($sf_symfony_lib_dir))
  27. {
  28. throw new Exception('Unable to find symfony libraries');
  29. }
  30. }
  31. }
  32. include($sf_symfony_lib_dir.'/command/cli.php');