Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 651b80f733
Fetching contributors…

Cannot retrieve contributors at this time

executable file 37 lines (33 sloc) 0.825 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
#!/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/ProjectConfiguration.class.php'))
{
  require_once('config/ProjectConfiguration.class.php');
  $dir = sfCoreAutoload::getInstance()->getBaseDir();
}
else
{
  if (is_readable(dirname(__FILE__).'/../../lib/autoload/sfCoreAutoload.class.php'))
  {
    // SVN
    $dir = realpath(dirname(__FILE__).'/../../lib');
  }
  else
  {
    // PEAR
    $dir = '@PEAR-DIR@/symfony';

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

include($dir.'/command/cli.php');
Something went wrong with that request. Please try again.