async-page-builder-demo icon indicating copy to clipboard operation
async-page-builder-demo copied to clipboard

Leverage named arguments

Open GromNaN opened this issue 1 year ago • 0 comments

Ideas from @fnash.

  • Blocks declaration uses named arguments, so we don't have to deal with a $options array partly typed (or write complex type definition).
  • The Block interface cannot declare __invoke, since arguments are specific to each block instance. Using an annotation to declare the method.

GromNaN avatar Oct 23 '22 22:10 GromNaN