Skip to content

Commit

Permalink
NGSTACK-489: bring back default subscribers
Browse files Browse the repository at this point in the history
  • Loading branch information
pspanja committed Mar 26, 2021
1 parent af40a3c commit c567ef1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,16 @@ services:
- { name: kernel.event_subscriber }

# Disabled for regression tests
#
# Symfony\Component\EventDispatcher\EventDispatcher:
# calls:
# - ['addSubscriber', ['@netgen_test.search.solr.event_subscriber.child_updates_parent']]
# - ['addSubscriber', ['@eZ\Publish\Core\Search\Common\EventSubscriber\ContentEventSubscriber']]
# - ['addSubscriber', ['@eZ\Publish\Core\Search\Common\EventSubscriber\LocationEventSubscriber']]
# - ['addSubscriber', ['@eZ\Publish\Core\Search\Common\EventSubscriber\ObjectStateEventSubscriber']]
# - ['addSubscriber', ['@eZ\Publish\Core\Search\Common\EventSubscriber\SectionEventSubscriber']]
# - ['addSubscriber', ['@eZ\Publish\Core\Search\Common\EventSubscriber\TrashEventSubscriber']]
# - ['addSubscriber', ['@eZ\Publish\Core\Search\Common\EventSubscriber\UserEventSubscriber']]

netgen_test.search.solr.field_mapper.content:
class: Netgen\EzPlatformSearchExtra\Tests\Integration\Implementation\Solr\FieldMapper\TestContentFieldMapper
Expand Down
6 changes: 6 additions & 0 deletions tests/lib/Integration/Resources/config/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ services:
Symfony\Component\EventDispatcher\EventDispatcher:
calls:
- ['addSubscriber', ['@netgen_test.search.solr.event_subscriber.child_updates_parent']]
- ['addSubscriber', ['@eZ\Publish\Core\Search\Common\EventSubscriber\ContentEventSubscriber']]
- ['addSubscriber', ['@eZ\Publish\Core\Search\Common\EventSubscriber\LocationEventSubscriber']]
- ['addSubscriber', ['@eZ\Publish\Core\Search\Common\EventSubscriber\ObjectStateEventSubscriber']]
- ['addSubscriber', ['@eZ\Publish\Core\Search\Common\EventSubscriber\SectionEventSubscriber']]
- ['addSubscriber', ['@eZ\Publish\Core\Search\Common\EventSubscriber\TrashEventSubscriber']]
- ['addSubscriber', ['@eZ\Publish\Core\Search\Common\EventSubscriber\UserEventSubscriber']]

netgen_test.search.solr.field_mapper.content:
class: Netgen\EzPlatformSearchExtra\Tests\Integration\Implementation\Solr\FieldMapper\TestContentFieldMapper
Expand Down

0 comments on commit c567ef1

Please sign in to comment.