bedita/manager

Deprecate Control.handlers config

Closed this issue · 1 comments

Control.handlers configuration should be handled in Properties.<type>.options, after #856 is resolved. I.e.:

'Properties' => [
    'documents' => [
        'options' => [
            'body' => [ 
                'render' => 'MyRenderClass',
            ],
        ],
    ],
],

In this scenario the render class should implement an interface, i.e.:

interface RenderFieldInterface
{
    public function view(array $options): string;
}

Done with #951