public function register()
{
$this->app->singleton(['xe.widget' => WidgetHandler::class], function ($app) {
$proxyClass = $app['xe.interception']->proxy(WidgetHandler::class, 'XeWidget');
$widgetHandler = new $proxyClass($app['xe.pluginRegister'], $app['xe.auth'], $app['view'], $app['config']->get('app.debug') === true);
return $widgetHandler;
});
$this->app->singleton(['xe.widget.parser' => WidgetParser::class], function ($app) {
$handler = $app['xe.widget'];
return new WidgetParser($handler);
});
}