Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add support for SoftDeleteable

  • Loading branch information...
commit d03b4c32b3739483cd01be7e19ef16a1ab168790 1 parent 8d58d4b
Igor igorw authored
5 DependencyInjection/Configuration.php
View
@@ -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()
;
5 Resources/config/listeners.xml
View
@@ -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">
1  Resources/doc/index.rst
View
@@ -246,6 +246,7 @@ in YAML::
sluggable: ~
translatable: ~
loggable: ~
+ softdeleteable: ~
or in XML::
Please sign in to comment.
Something went wrong with that request. Please try again.