propel-bundle/Command/Phing.php
Fabien Potencier d2b2a18237 added files
2010-10-28 14:41:03 +02:00

31 lines
821 B
PHP

<?php
namespace Symfony\Bundle\PropelBundle\Command;
require_once 'phing/Phing.php';
/**
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/
class Phing extends \Phing
{
static public function getPhingVersion()
{
return 'Phing/Symfony';
}
/**
* @see Phing
*/
public function runBuild()
{
// workaround for included phing 2.3 which by default loads many tasks
// that are not needed and incompatible (eg phing.tasks.ext.FtpDeployTask)
// by placing current directory on the include path our defaults will be loaded
// see ticket #5054
$includePath = get_include_path();
set_include_path(dirname(__FILE__).PATH_SEPARATOR.$includePath);
parent::runBuild();
set_include_path($includePath);
}
}