* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * Clears log files. * * @package symfony * @subpackage task * @author Fabien Potencier * @version SVN: $Id: sfLogClearTask.class.php 23922 2009-11-14 14:58:38Z fabien $ */ class sfLogClearTask extends sfBaseTask { /** * @see sfTask */ protected function configure() { $this->namespace = 'log'; $this->name = 'clear'; $this->briefDescription = 'Clears log files'; $this->detailedDescription = <<in(sfConfig::get('sf_log_dir')); $this->getFilesystem()->remove($logs); } }