12345678910111213141516171819202122232425262728293031323334353637 |
- #!/usr/bin/env php
- <?php
- /*
- * 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/config.php'))
- {
- include('config/config.php');
- }
- if (!isset($sf_symfony_lib_dir))
- {
- if (is_readable(dirname(__FILE__).'/../../lib/autoload/sfCoreAutoload.class.php'))
- {
- // SVN
- $sf_symfony_lib_dir = realpath(dirname(__FILE__).'/../../lib');
- }
- else
- {
- // PEAR
- $sf_symfony_lib_dir = '@PEAR-DIR@/symfony';
- if (!is_dir($sf_symfony_lib_dir))
- {
- throw new Exception('Unable to find symfony libraries');
- }
- }
- }
- include($sf_symfony_lib_dir.'/command/cli.php');
|