<?php

namespace Plainwork\UiAjax;

use Plainwork\Core\App;
use Plainwork\Ui\Ui;
use Plainwork\Ui\Component\Main;

class Boot
{
    public function __construct(App $app)
    {
        $app->onBoot(Ui::class, function ($ui) {
            $ui
                ->renderer(Main::class, Renderer\MainRendererDecorator::class)
                ;
        });
    }
}
