Elektrine lite

← Feed

@ghostwriter@phpc.social

2026-05-08 17:07 UTC

@pmjones@phpc.social That design effectively ties one controller instance to one command invocation, which means users would need to instantiate a new object every time they want to execute another command. If the console request were instead passed into run(), the same controller instance could be reused: $controller->run(new ArgvRequest($argv)); That feels more consistent with the HTTP side as well, where the request is execution input rather than construction-time configuration.

Replies (1)

  • @ghostwriter@phpc.social 2026-05-08 17:16

    @pmjones@phpc.social I think this is a reasonable interface hierarchy, to model a transport-agnostic abstraction while still allowing protocol-specific behavior. https://github.com/front-interop/interface/issues/1

    Open ##5263494