/**
* {@inheritdoc}
*/
protected function getView(ServerRequestInterface $request)
{
$view = parent::getView($request);
$settings = $this->settings->all();
$this->events->fire(new PrepareUnserializedSettings($settings));
$view->setVariable('settings', $settings);
$view->setVariable('permissions', Permission::map());
$view->setVariable('extensions', $this->extensions->getExtensions()->toArray());
return $view;
}