neos/neos-development-collection
View on GitHubGet rid of NodeTypeConfigurationEnrichmentAspect
Open
#2,867 opened on Jan 17, 2020
!!! Next majorI: Discussionhelp wanted
Repository metrics
- Stars
- (267 stars)
- PR merge metrics
- (PR metrics pending)
Description
The NodeTypeConfigurationEnrichmentAspect hooks into the NodeType::__construct and post-processes the node type configuration in three steps:
addEditorDefaultsToNodeTypeConfigurationaddLabelsToNodeTypeConfigurationmapIconNames
Using AOP for this seems needlessly complex and hard to debug. Furthermore it's no longer possible to adjust this behavior.
I would suggest to create three NodeTypePostprocessors as a replacement for the AOP aspect.