protected function execute($arguments = array(), $options = array()) { // initialize the database connection $databaseManager = new sfDatabaseManager($this->configuration); $connection = $databaseManager->getDatabase($options['connection'] ? $options['connection'] : null)->getConnection(); $deleted = PluginTagTable::purgeOrphans(); $redundant = PluginTagTable::purgeRedundantTaggings(); if ($options['verbose']) { $count = count($deleted); echo "deleted {$count} orphan tags.\n"; echo "deleted {$redundant} redundant taggings.\n"; } }