Permalink
Browse files

add support for SoftDeleteable

  • Loading branch information...
1 parent 8d58d4b commit d03b4c32b3739483cd01be7e19ef16a1ab168790 @igorw igorw committed Apr 6, 2012
Showing with 11 additions and 0 deletions.
  1. +5 −0 DependencyInjection/Configuration.php
  2. +5 −0 Resources/config/listeners.xml
  3. +1 −0 Resources/doc/index.rst
@@ -50,6 +50,7 @@ private function getVendorNode($name)
->scalarNode('tree')->defaultFalse()->end()
->scalarNode('loggable')->defaultFalse()->end()
->scalarNode('sortable')->defaultFalse()->end()
+ ->scalarNode('softdeleteable')->defaultFalse()->end()
->end()
->end()
;
@@ -89,6 +90,10 @@ private function getClassNode()
->cannotBeEmpty()
->defaultValue('Gedmo\\Sortable\\SortableListener')
->end()
+ ->scalarNode('softdeleteable')
+ ->cannotBeEmpty()
+ ->defaultValue('Gedmo\\SoftDeleteable\\SoftDeleteableListener')
+ ->end()
->end()
;
@@ -49,6 +49,11 @@
<argument type="service" id="annotation_reader" />
</call>
</service>
+ <service id="stof_doctrine_extensions.listener.softdeleteable" class="%stof_doctrine_extensions.listener.softdeleteable.class%" public="false">
+ <call method="setAnnotationReader">
+ <argument type="service" id="annotation_reader" />
+ </call>
+ </service>
<!-- Symfony listeners -->
<service id="stof_doctrine_extensions.event_listener.locale" class="%stof_doctrine_extensions.event_listener.locale.class%" public="false">
@@ -246,6 +246,7 @@ in YAML::
sluggable: ~
translatable: ~
loggable: ~
+ softdeleteable: ~
or in XML::

0 comments on commit d03b4c3

Please sign in to comment.