public function execute(Arguments $args, ConsoleIo $io)
    {
        try {
            $count = $this->ThumbManager->clearAll();
        } catch (Exception $e) {
            $io->err(__d('thumber', 'Error deleting thumbnails'));
            $this->abort();
        }

        $io->verbose(__d('thumber', 'Thumbnails deleted: {0}', $count));

        return null;
    }
public function execute(Arguments $args, ConsoleIo $io)
    {
        try {
            $count = $this->ThumbManager->clearAll();
        } catch (Exception $e) {
            $io->err(__d('thumber', 'Error deleting thumbnails'));
            $this->abort();
        }

        $io->verbose(__d('thumber', 'Thumbnails deleted: {0}', $count));

        return null;
    }
public function execute ( Arguments $ args , ConsoleIo $ io ) { try { $ count = $ this -> ThumbManager -> clearAll ( ) ; } catch ( Exception $ e ) { $ io -> err ( __d ( 'thumber' , 'Error deleting thumbnails' ) ) ; $ this -> abort ( ) ; } $ io -> verbose ( __d ( 'thumber' , 'Thumbnails deleted: {0}' , $ count ) ) ; return null ; }
Clears all thumbnails
@param Arguments $args The command arguments
@param ConsoleIo $io The console io
@return null|int The exit code or null for success
@uses $ThumbManager
Clears all thumbnails