async-page-builder-demo
async-page-builder-demo copied to clipboard
Leverage named arguments
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.