neos/neos-development-collection

Get rid of NodeTypeConfigurationEnrichmentAspect

Open

#2,867 opened on Jan 17, 2020

View on GitHub
 (4 comments) (0 reactions) (0 assignees)PHP (248 forks)auto 404
!!! Next majorI: Discussion‌‌help 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:

  • addEditorDefaultsToNodeTypeConfiguration
  • addLabelsToNodeTypeConfiguration
  • mapIconNames

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.

Contributor guide