Created
April 4, 2012 17:25
-
-
Save paulredmond/2304026 to your computer and use it in GitHub Desktop.
spam_detection.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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