Feature #47228

Allow doctrine event listeners to be configured

Added by Alexander Berl over 2 years ago. Updated about 2 years ago.

Status:Resolved Start date:2013-04-15
Priority:Should have Due date:
Assigned To:Alexander Berl % Done:

100%

Category:Persistence
Target version:-
PHP Version: Complexity:
Has patch:No

Description

The gedmo doctrine behavioral extensions depend on the doctrine event listener system to be configured when setting up the entity manager.
This is currently not possible in Flow, but could easily be handled via configuration.

I therefore suggest adding a new configuration setting TYPO3.Flow.doctrine.eventSubscribers which is a list of classes that extend
\Doctrine\Common\EventSubscriber and are to be registered with the doctrine event manager inside the entityManagerFactory.


Related issues

related to TYPO3.Flow - Task #41807: Initialize the eventmanager in the EntityManagerInterface Under Review 2012-10-09
related to TYPO3.Flow - Feature #38177: Signal/Slot adapter for persistence events Rejected 2012-06-19

Associated revisions

Revision 5540b3c3
Added by Alexander Berl about 2 years ago

[FEATURE] Allow configurable doctrine event subscribers

This change allows doctrine event subscribers and listeners to be configured
via the options TYPO3.Flow.persistence.doctrine.eventSubscribers and
TYPO3.Flow.persistence.doctrine.eventListeners respectively.

This feature allows doctrine extensions to be used with Flow, that depend on
the doctrine event system, like the gedmo behavioral extension.

Change-Id: Ib45d497c074d087db90f793a1c894e9432cbce52
Resolves: #47228
Releases: master

History

#1 Updated by Alexander Berl over 2 years ago

I mixed up event listeners and subscribers in the headline and description. I'm actually talking about the event subscribers, the basic idea could be extended for event listeners too, though those need a little different configuration syntax, as they need a list of event names and the event listener class.

#2 Updated by Gerrit Code Review over 2 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/19984

#3 Updated by Gerrit Code Review over 2 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/19984

#4 Updated by Gerrit Code Review about 2 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/19984

#5 Updated by Gerrit Code Review about 2 years ago

Patch set 4 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/19984

#6 Updated by Robert Lemke about 2 years ago

  • Target version deleted (2.1)

#7 Updated by Gerrit Code Review about 2 years ago

Patch set 5 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/19984

#8 Updated by Gerrit Code Review about 2 years ago

Patch set 6 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/19984

#9 Updated by Alexander Berl about 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF