It would be nice if I could use something like Expect::schemaFactory([$this, 'getItemSchema']) so function getItemSchema() could be called recursively as long as submenu's are present.
It would be nice if I could get Processor in CompilerExtension so I don't need to create one when I have custom config.
I'm trying to solve recursive schema validation in menu library when you have tree structure of menu (submenu items).
Here's what I did as temporary solution:
Full file is here
Expect::schemaFactory([$this, 'getItemSchema'])
so functiongetItemSchema()
could be called recursively as long as submenu's are present.Processor
inCompilerExtension
so I don't need to create one when I have custom config.