* * 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 8148 2008-03-29 07:58:59Z fabien $ */ class sfLogClearTask extends sfBaseTask { /** * @see sfTask */ protected function configure() { $this->aliases = array('log-purge'); $this->namespace = 'log'; $this->name = 'clear'; $this->briefDescription = 'Clears log files'; $this->detailedDescription = <<in(sfConfig::get('sf_log_dir')); $this->getFilesystem()->remove($logs); } }