smic,
@smic@mastodon.online avatar

Lazy feature request: Bring data processors to extbase plugins.

I think putting a data processor layer between the extbase controller and the fluid rendering would be a small step, but huge for flexibility.

alexanderschnitzler,
@alexanderschnitzler@mstdn.social avatar

@smic IMHO yet another layer to hide logic in. People already put too much logic into the view and view helpers. With data processors, we had yet another layer that would be misused.

However, if someone implements it, I don’t veto on gerrit.

smic,
@smic@mastodon.online avatar

@alexanderschnitzler Do we consider data processors as part of the controller layer or view layer? I had assumed the former and it would feel to me as moving logic out of the view.

alexanderschnitzler,
@alexanderschnitzler@mstdn.social avatar

@smic I agree. It’s controller logic to me as well but it’s logic that is not part of the controller then and you start searching the logic. Don’t see a reason we need this. Why not use the data processor logic in the controller and make it visible?

smic,
@smic@mastodon.online avatar

@alexanderschnitzler I see. I guess what I’m missing is a universal way to intercept and manipulate the data passed from the controller to the view. That could also be a PSR-14 event in the Abstract controller.

alexanderschnitzler,
@alexanderschnitzler@mstdn.social avatar

@smic Data processors are regular classes, aren’t they? Can’t you just manually call them in your actions and achieve the same result?

smic,
@smic@mastodon.online avatar

@alexanderschnitzler In my actions yes. But not in the ones of core or 3rd party extensions.

alexanderschnitzler,
@alexanderschnitzler@mstdn.social avatar

@smic Ok, this is a completely different case to me. Since code is fragmented in this case anyway, I think the best approach would be to implement events and use data processors in event listeners.

ervaude,
@ervaude@mastodon.social avatar

@alexanderschnitzler @smic

+1

I could really use that right now :)

alexanderschnitzler,
@alexanderschnitzler@mstdn.social avatar

@smic btw: my long term goal is to be able to dispatch extbase plugins without typoscript wrapper, directly from a middleware e.g. Introduction of data processors kind of contradicts that idea.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • php
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • megavids
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • provamag3
  • JUstTest
  • All magazines