Perform\SpamBundle\SpamManager is the main service provided by the bundle.
All the available spam checkers are used by the manager, making it easily extensible.
It has 3 methods to examine text, forms, and requests.
Each method returns a
CheckResult, which stores a collection of
If a result has any reports, it is considered spam.
<?php $result = $manager->checkText('I am spam'); echo $result->isSpam() // true echo $result->getReports() // array of Report instances
The form checkers will only be called if the form has been submitted.