neos/neos-development-collection

Get rid of NodeTypeConfigurationEnrichmentAspect

オープン

#2,867 opened on 2020/01/17

 (4 件のコメント) (0 件のリアクション) (0 人の担当者)PHP (248 件のフォーク)auto 404
!!! Next majorI: Discussion‌‌help wanted

Repository metrics

Stars
 (267 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド