Skip to content

Instantly share code, notes, and snippets.

@paulredmond
Created April 4, 2012 17:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulredmond/2304026 to your computer and use it in GitHub Desktop.
Save paulredmond/2304026 to your computer and use it in GitHub Desktop.
spam_detection.xml
<?xml version="1.0" encoding="UTF-8" ?>
<!--
This file is part of the FOSCommentBundle package.
(c) FriendsOfSymfony <http://friendsofsymfony.github.com/>
This source file is subject to the MIT license that is bundled
with this source code in the file LICENSE.
-->
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<services>
<service id="fos_comment.spam_detection.comment.akismet"
class="FOS\CommentBundle\SpamDetection\AkismetSpamDetection" scope="request" public="false">
<argument type="service" id="ornicar_akismet" />
</service>
<service id="fos_comment.listener.comment_spam" class="FOS\CommentBundle\EventListener\CommentSpamListener"
scope="request">
<argument type="service" id="fos_comment.spam_detection.comment" />
<!-- TODO: 2.1 <tag name="kernel.event_subscriber" /> -->
<tag name="kernel.event_listener" event="fos_comment.comment.pre_persist" method="spamCheck" />
</service>
</services>
</container>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment