Gregwar/CaptchaBundle — Issue #7: garbageCollection()
Author: chyshyya
Created: 2011-12-01 10:24:43+00:00
State: open

$criteria = sprintf('>= now - %s minutes', $this->expiration);

Here you select files that new, but must select old files. And there is no implementation for "minutes" but "minute".
So the string must be:
$criteria = sprintf('<= now - %s minute', $this->expiration);

Also I think bundle in a future must provide ability to:
1. setup in config file $charset = 'abcdefghijklmnopqstuv23456789'; For example I want to use only digist 1234567890. Here is no implementation.
2. setup the font in config file for $font = __DIR__.'/Font/captcha.ttf';
3. public function validate(FormInterface $form) provide method where value changed in session only if i type it correct in a form. But what about if I want to change value even if it was wrong. And in this case my captcha field must be clear on submit.

Thank you for your bundle.