Exemplo n.º 1
0
 /**
  * @param string $module
  * @param int $entryId
  * @param string $redirectUrl
  * @return array|\Symfony\Component\HttpFoundation\RedirectResponse
  */
 public function execute($module, $entryId, $redirectUrl)
 {
     if ($this->request->getPost()->count() !== 0) {
         return $this->executePost($this->request->getPost()->all(), $module, $entryId, $redirectUrl);
     }
     return ['form' => array_merge($this->fetchFormDefaults($redirectUrl), $this->request->getPost()->all()), 'form_token' => $this->formTokenHelper->renderFormToken(), 'can_use_emoticons' => $this->emoticonsActive === true];
 }
Exemplo n.º 2
0
 /**
  * @return array|\Symfony\Component\HttpFoundation\RedirectResponse
  */
 public function execute()
 {
     if ($this->request->getPost()->count() !== 0) {
         return $this->executePost($this->request->getPost()->all());
     }
     return ['SEO_FORM_FIELDS' => $this->metaFormFieldsHelper->formFields(), 'form' => array_merge(['uri' => ''], $this->request->getPost()->all()), 'form_token' => $this->formTokenHelper->renderFormToken()];
 }
Exemplo n.º 3
0
 /**
  * @return array|\Symfony\Component\HttpFoundation\RedirectResponse
  */
 public function execute()
 {
     if ($this->request->getPost()->count() !== 0) {
         return $this->executePost($this->request->getPost()->all());
     }
     return ['form' => array_merge($this->config->getSettings(Emoticons\Installer\Schema::MODULE_NAME), $this->request->getPost()->all()), 'form_token' => $this->formTokenHelper->renderFormToken()];
 }
Exemplo n.º 4
0
 /**
  * @return array|\Symfony\Component\HttpFoundation\RedirectResponse
  */
 public function execute()
 {
     if ($this->request->getPost()->count() !== 0) {
         return $this->executePost($this->request->getPost()->all());
     }
     return ['form' => array_merge(['code' => '', 'description' => ''], $this->request->getPost()->all()), 'form_token' => $this->formTokenHelper->renderFormToken()];
 }
Exemplo n.º 5
0
 /**
  * @return array|\Symfony\Component\HttpFoundation\RedirectResponse
  */
 public function execute()
 {
     if ($this->request->getPost()->count() !== 0) {
         return $this->executePost($this->request->getPost()->all());
     }
     return ['modules' => $this->fetchActiveModules(), 'areas' => $this->fetchAreas(), 'privileges' => $this->fetchPrivileges(0), 'form' => array_merge(['resource' => '', 'area' => '', 'controller' => ''], $this->request->getPost()->all()), 'form_token' => $this->formTokenHelper->renderFormToken()];
 }
Exemplo n.º 6
0
 /**
  * @return array|\Symfony\Component\HttpFoundation\RedirectResponse
  */
 public function execute()
 {
     if ($this->request->getPost()->count() !== 0) {
         return $this->executePost($this->request->getPost()->all());
     }
     $defaults = ['mail' => ''];
     return ['form' => array_merge($defaults, $this->request->getPost()->all()), 'form_token' => $this->formTokenHelper->renderFormToken()];
 }
Exemplo n.º 7
0
 /**
  * @return array|\Symfony\Component\HttpFoundation\RedirectResponse
  */
 public function execute()
 {
     if ($this->request->getPost()->count() !== 0) {
         return $this->executePost($this->request->getPost()->all());
     }
     $defaults = ['title' => '', 'text' => '', 'uri' => '', 'link_title' => '', 'start' => '', 'end' => ''];
     return ['categories' => $this->categoriesHelpers->categoriesList(News\Installer\Schema::MODULE_NAME, '', true), 'options' => $this->fetchOptions(0, 0), 'target' => $this->formsHelper->linkTargetChoicesGenerator('target'), 'form' => array_merge($defaults, $this->request->getPost()->all()), 'form_token' => $this->formTokenHelper->renderFormToken(), 'SEO_URI_PATTERN' => News\Helpers::URL_KEY_PATTERN, 'SEO_ROUTE_NAME' => ''];
 }
Exemplo n.º 8
0
 /**
  * @return array|\Symfony\Component\HttpFoundation\RedirectResponse
  */
 public function execute()
 {
     if ($this->request->getPost()->count() !== 0) {
         return $this->executePost($this->request->getPost()->all());
     }
     $copy = [1 => $this->translator->t('contact', 'send_copy_to_sender')];
     return ['form' => array_merge($this->getFormDefaults(), $this->request->getPost()->all()), 'copy' => $this->formsHelper->checkboxGenerator('copy', $copy, 0), 'contact' => $this->config->getSettings(Contact\Installer\Schema::MODULE_NAME), 'form_token' => $this->formTokenHelper->renderFormToken()];
 }
Exemplo n.º 9
0
 /**
  * @return array|\Symfony\Component\HttpFoundation\RedirectResponse
  */
 public function execute()
 {
     if ($this->request->getPost()->count() !== 0) {
         return $this->executePost($this->request->getPost()->all());
     }
     $defaults = ['title' => '', 'text' => '', 'start' => '', 'end' => ''];
     return ['form' => array_merge($defaults, $this->request->getPost()->all()), 'form_token' => $this->formTokenHelper->renderFormToken(), 'SEO_URI_PATTERN' => Articles\Helpers::URL_KEY_PATTERN, 'SEO_ROUTE_NAME' => ''];
 }
Exemplo n.º 10
0
 /**
  * @return array|\Symfony\Component\HttpFoundation\RedirectResponse
  */
 public function execute()
 {
     if ($this->request->getPost()->has('submit')) {
         return $this->executePost($this->request->getPost()->all());
     }
     $defaults = ['title' => '', 'start' => '', 'end' => ''];
     return ['answers' => $this->getAnswers(), 'options' => $this->fetchOptions(0), 'form' => array_merge($defaults, $this->request->getPost()->all()), 'form_token' => $this->formTokenHelper->renderFormToken()];
 }
Exemplo n.º 11
0
 /**
  * @return array|\Symfony\Component\HttpFoundation\RedirectResponse
  */
 public function execute()
 {
     if ($this->request->getPost()->count() !== 0) {
         return $this->executePost($this->request->getPost()->all());
     }
     $settings = $this->config->getSettings(Users\Installer\Schema::MODULE_NAME);
     return ['languages' => $this->formsHelpers->yesNoCheckboxGenerator('language_override', $settings['language_override']), 'registration' => $this->formsHelpers->yesNoCheckboxGenerator('enable_registration', $settings['enable_registration']), 'form' => array_merge(['mail' => $settings['mail']], $this->request->getPost()->all()), 'form_token' => $this->formTokenHelper->renderFormToken()];
 }
Exemplo n.º 12
0
 /**
  * @return array|\Symfony\Component\HttpFoundation\RedirectResponse
  */
 public function execute()
 {
     if ($this->request->getPost()->count() !== 0) {
         return $this->executePost($this->request->getPost()->all());
     }
     $settings = $this->config->getSettings(Newsletter\Installer\Schema::MODULE_NAME);
     return ['html' => $this->formsHelper->yesNoCheckboxGenerator('html', $settings['html']), 'form' => array_merge($settings, $this->request->getPost()->all()), 'form_token' => $this->formTokenHelper->renderFormToken()];
 }
Exemplo n.º 13
0
 /**
  * @return array|\Symfony\Component\HttpFoundation\RedirectResponse
  */
 public function execute()
 {
     $settings = $this->config->getSettings(Newsletter\Installer\Schema::MODULE_NAME);
     if ($this->request->getPost()->count() !== 0) {
         return $this->executePost($this->request->getPost()->all(), $settings);
     }
     $actions = [1 => $this->translator->t('newsletter', 'send_and_save'), 0 => $this->translator->t('newsletter', 'only_save')];
     return ['settings' => $settings, 'test' => $this->formsHelper->yesNoCheckboxGenerator('test', 0), 'action' => $this->formsHelper->checkboxGenerator('action', $actions, 1), 'form' => array_merge(['title' => '', 'text' => '', 'date' => ''], $this->request->getPost()->all()), 'form_token' => $this->formTokenHelper->renderFormToken()];
 }
Exemplo n.º 14
0
 /**
  * @return array|\Symfony\Component\HttpFoundation\RedirectResponse
  */
 public function execute()
 {
     if ($this->request->getPost()->count() !== 0) {
         return $this->executePost($this->request->getPost()->all());
     }
     $defaults = ['title' => '', 'file_internal' => '', 'file_external' => '', 'filesize' => '', 'text' => '', 'start' => '', 'end' => ''];
     $external = [1 => $this->translator->t('files', 'external_resource')];
     return ['options' => $this->getOptions(['comments' => '0']), 'units' => $this->formsHelper->choicesGenerator('units', $this->getUnits(), ''), 'categories' => $this->categoriesHelpers->categoriesList(Files\Installer\Schema::MODULE_NAME, '', true), 'external' => $this->formsHelper->checkboxGenerator('external', $external), 'form' => array_merge($defaults, $this->request->getPost()->all()), 'form_token' => $this->formTokenHelper->renderFormToken(), 'SEO_URI_PATTERN' => Files\Helpers::URL_KEY_PATTERN, 'SEO_ROUTE_NAME' => ''];
 }
Exemplo n.º 15
0
 /**
  * @return array|\Symfony\Component\HttpFoundation\RedirectResponse
  */
 public function execute()
 {
     if ($this->request->getPost()->count() !== 0) {
         return $this->executePost($this->request->getPost()->all());
     }
     $defaults = ['first_name' => '', 'last_name' => '', 'mail' => ''];
     $salutations = [0 => $this->translator->t('newsletter', 'salutation_unspecified'), 1 => $this->translator->t('newsletter', 'salutation_female'), 2 => $this->translator->t('newsletter', 'salutation_male')];
     return ['salutation' => $this->formsHelper->choicesGenerator('salutation', $salutations), 'form' => array_merge($defaults, $this->request->getPost()->all()), 'form_token' => $this->formTokenHelper->renderFormToken()];
 }
Exemplo n.º 16
0
 /**
  * @return array|\Symfony\Component\HttpFoundation\RedirectResponse
  */
 public function execute()
 {
     if ($this->request->getPost()->count() !== 0) {
         return $this->executePost($this->request->getPost()->all());
     }
     $user = $this->user->getUserInfo();
     $this->view->assign($this->userFormsHelper->fetchUserProfileFormFields($user['birthday'], $user['country'], $user['gender']));
     return ['contact' => $this->userFormsHelper->fetchContactDetails($user['mail'], $user['website'], $user['icq'], $user['skype']), 'form' => array_merge($user, $this->request->getPost()->all()), 'form_token' => $this->formTokenHelper->renderFormToken()];
 }
Exemplo n.º 17
0
 /**
  * @return array|\Symfony\Component\HttpFoundation\RedirectResponse
  */
 public function execute()
 {
     if ($this->request->getPost()->count() !== 0) {
         return $this->executePost($this->request->getPost()->all());
     }
     $settings = $this->config->getSettings(Feeds\Installer\Schema::MODULE_NAME);
     $feedTypes = ['RSS 1.0' => 'RSS 1.0', 'RSS 2.0' => 'RSS 2.0', 'ATOM' => 'ATOM'];
     return ['feed_types' => $this->formsHelper->choicesGenerator('feed_type', $feedTypes, $settings['feed_type']), 'form' => array_merge($settings, $this->request->getPost()->all()), 'form_token' => $this->formTokenHelper->renderFormToken()];
 }
Exemplo n.º 18
0
 /**
  * @return array|\Symfony\Component\HttpFoundation\RedirectResponse
  */
 public function execute()
 {
     $settings = $this->config->getSettings(Users\Installer\Schema::MODULE_NAME);
     if ($this->request->getPost()->count() !== 0) {
         return $this->executePost($this->request->getPost()->all(), $settings);
     }
     $user = $this->usersModel->getOneById($this->user->getUserId());
     $this->view->assign($this->get('users.helpers.forms')->fetchUserSettingsFormFields($user['language'], $user['time_zone'], $user['address_display'], $user['birthday_display'], $user['country_display'], $user['mail_display']));
     return ['language_override' => $settings['language_override'], 'form' => array_merge($user, $this->request->getPost()->all()), 'form_token' => $this->formTokenHelper->renderFormToken()];
 }
Exemplo n.º 19
0
 /**
  * @return array|\Symfony\Component\HttpFoundation\RedirectResponse
  */
 public function execute()
 {
     if ($this->request->getPost()->count() !== 0) {
         return $this->executePost($this->request->getPost()->all());
     }
     $seoSettings = $this->config->getSettings(Seo\Installer\Schema::MODULE_NAME);
     $robots = [1 => $this->translator->t('seo', 'robots_index_follow'), 2 => $this->translator->t('seo', 'robots_index_nofollow'), 3 => $this->translator->t('seo', 'robots_noindex_follow'), 4 => $this->translator->t('seo', 'robots_noindex_nofollow')];
     $sitemapSaveMode = [1 => $this->translator->t('seo', 'sitemap_save_mode_automatically'), 2 => $this->translator->t('seo', 'sitemap_save_mode_manually')];
     return ['robots' => $this->formsHelper->choicesGenerator('robots', $robots, $seoSettings['robots']), 'sitemap_is_enabled' => $this->formsHelper->yesNoCheckboxGenerator('sitemap_is_enabled', $seoSettings['sitemap_is_enabled']), 'sitemap_save_mode' => $this->formsHelper->checkboxGenerator('sitemap_save_mode', $sitemapSaveMode, $seoSettings['sitemap_save_mode']), 'form' => array_merge($seoSettings, $this->request->getPost()->all()), 'form_token' => $this->formTokenHelper->renderFormToken()];
 }
Exemplo n.º 20
0
 /**
  * @return array|\Symfony\Component\HttpFoundation\JsonResponse|\Symfony\Component\HttpFoundation\RedirectResponse
  */
 public function execute()
 {
     if ($this->user->isAuthenticated() === true) {
         return $this->redirect()->toNewPage($this->appPath->getWebRoot());
     }
     if ($this->request->getPost()->count() !== 0) {
         return $this->executePost($this->request->getPost()->all());
     }
     return ['form' => array_merge(['nick_mail' => ''], $this->request->getPost()->all()), 'form_token' => $this->formTokenHelper->renderFormToken()];
 }
Exemplo n.º 21
0
 /**
  * @return array|\Symfony\Component\HttpFoundation\RedirectResponse
  */
 public function execute()
 {
     if ($this->request->getPost()->count() !== 0) {
         return $this->executePost($this->request->getPost()->all());
     }
     $systemSettings = $this->config->getSettings(System\Installer\Schema::MODULE_NAME);
     $pageCachePurgeMode = [1 => $this->translator->t('system', 'page_cache_purge_mode_automatically'), 2 => $this->translator->t('system', 'page_cache_purge_mode_manually')];
     $mailerTypes = ['mail' => $this->translator->t('system', 'mailer_type_php_mail'), 'smtp' => $this->translator->t('system', 'mailer_type_smtp')];
     $mailerSmtpSecurity = ['none' => $this->translator->t('system', 'mailer_smtp_security_none'), 'ssl' => $this->translator->t('system', 'mailer_smtp_security_ssl'), 'tls' => $this->translator->t('system', 'mailer_smtp_security_tls')];
     return ['entries' => $this->formsHelper->recordsPerPage($systemSettings['entries']), 'wysiwyg' => $this->fetchWysiwygEditors($systemSettings), 'languages' => $this->translator->getLanguagePack($systemSettings['lang']), 'mod_rewrite' => $this->formsHelper->yesNoCheckboxGenerator('mod_rewrite', $systemSettings['mod_rewrite']), 'time_zones' => $this->get('core.helpers.date')->getTimeZones($systemSettings['date_time_zone']), 'maintenance' => $this->formsHelper->yesNoCheckboxGenerator('maintenance_mode', $systemSettings['maintenance_mode']), 'page_cache' => $this->formsHelper->yesNoCheckboxGenerator('page_cache_is_enabled', $systemSettings['page_cache_is_enabled']), 'page_cache_purge_mode' => $this->formsHelper->checkboxGenerator('page_cache_purge_mode', $pageCachePurgeMode, $systemSettings['page_cache_purge_mode']), 'cache_images' => $this->formsHelper->yesNoCheckboxGenerator('cache_images', $systemSettings['cache_images']), 'mailer_type' => $this->formsHelper->choicesGenerator('mailer_type', $mailerTypes, $systemSettings['mailer_type']), 'mailer_smtp_auth' => $this->formsHelper->yesNoCheckboxGenerator('mailer_smtp_auth', $systemSettings['mailer_smtp_auth']), 'mailer_smtp_security' => $this->formsHelper->choicesGenerator('mailer_smtp_security', $mailerSmtpSecurity, $systemSettings['mailer_smtp_security']), 'form' => array_merge($systemSettings, $this->request->getPost()->all()), 'form_token' => $this->formTokenHelper->renderFormToken()];
 }
Exemplo n.º 22
0
 /**
  * @param int $id
  *
  * @return array|\Symfony\Component\HttpFoundation\RedirectResponse
  * @throws \ACP3\Core\Controller\Exception\ResultNotExistsException
  */
 public function execute($id)
 {
     $emoticon = $this->emoticonsModel->getOneById($id);
     if (empty($emoticon) === false) {
         if ($this->request->getPost()->count() !== 0) {
             return $this->executePost($this->request->getPost()->all(), $emoticon, $id);
         }
         return ['form' => array_merge($emoticon, $this->request->getPost()->all()), 'form_token' => $this->formTokenHelper->renderFormToken()];
     }
     throw new Core\Controller\Exception\ResultNotExistsException();
 }
Exemplo n.º 23
0
 /**
  * @return array|\Symfony\Component\HttpFoundation\RedirectResponse
  */
 public function execute()
 {
     if ($this->request->getPost()->count() !== 0) {
         return $this->executePost($this->request->getPost()->all());
     }
     if ($this->newsletterActive === true && $this->newsletterSubscribeHelper) {
         $newsletterSubscription = [1 => $this->translator->t('guestbook', 'subscribe_to_newsletter', ['%title%' => $this->config->getSettings(Schema::MODULE_NAME)['site_title']])];
         $this->view->assign('subscribe_newsletter', $this->formsHelper->checkboxGenerator('subscribe_newsletter', $newsletterSubscription, '1'));
     }
     return ['form' => array_merge($this->fetchFormDefaults(), $this->request->getPost()->all()), 'form_token' => $this->formTokenHelper->renderFormToken(), 'can_use_emoticons' => $this->guestbookSettings['emoticons'] == 1];
 }
Exemplo n.º 24
0
 /**
  * @return array|\Symfony\Component\HttpFoundation\RedirectResponse
  */
 public function execute()
 {
     if ($this->request->getPost()->count() !== 0) {
         return $this->executePost($this->request->getPost()->all());
     }
     $settings = $this->config->getSettings(Files\Installer\Schema::MODULE_NAME);
     if ($this->commentsHelpers) {
         $this->view->assign('comments', $this->formsHelper->yesNoCheckboxGenerator('comments', $settings['comments']));
     }
     return ['dateformat' => $this->get('core.helpers.date')->dateFormatDropdown($settings['dateformat']), 'sidebar_entries' => $this->formsHelper->recordsPerPage((int) $settings['sidebar'], 1, 10, 'sidebar'), 'form_token' => $this->formTokenHelper->renderFormToken()];
 }
Exemplo n.º 25
0
 /**
  * @return array|\Symfony\Component\HttpFoundation\RedirectResponse
  */
 public function execute()
 {
     if ($this->request->getPost()->count() !== 0) {
         return $this->executePost($this->request->getPost()->all());
     }
     $systemSettings = $this->config->getSettings(Schema::MODULE_NAME);
     $this->view->assign($this->get('users.helpers.forms')->fetchUserSettingsFormFields($systemSettings['lang'], $systemSettings['date_time_zone']));
     $this->view->assign($this->get('users.helpers.forms')->fetchUserProfileFormFields());
     $defaults = ['nickname' => '', 'realname' => '', 'mail' => '', 'website' => '', 'street' => '', 'house_number' => '', 'zip' => '', 'city' => '', 'date_format_long' => $systemSettings['date_format_long'], 'date_format_short' => $systemSettings['date_format_short']];
     return ['roles' => $this->fetchUserRoles(), 'super_user' => $this->fetchIsSuperUser(), 'contact' => $this->get('users.helpers.forms')->fetchContactDetails(), 'form' => array_merge($defaults, $this->request->getPost()->all()), 'form_token' => $this->formTokenHelper->renderFormToken()];
 }
Exemplo n.º 26
0
 /**
  * @return array|\Symfony\Component\HttpFoundation\RedirectResponse
  */
 public function execute()
 {
     if ($this->request->getPost()->count() !== 0) {
         return $this->executePost($this->request->getPost()->all());
     }
     $settings = $this->config->getSettings(News\Installer\Schema::MODULE_NAME);
     if ($this->modules->isActive('comments') === true) {
         $this->view->assign('allow_comments', $this->formsHelper->yesNoCheckboxGenerator('comments', $settings['comments']));
     }
     return ['dateformat' => $this->get('core.helpers.date')->dateFormatDropdown($settings['dateformat']), 'readmore' => $this->formsHelper->yesNoCheckboxGenerator('readmore', $settings['readmore']), 'readmore_chars' => $this->request->getPost()->get('readmore_chars', $settings['readmore_chars']), 'sidebar_entries' => $this->formsHelper->recordsPerPage((int) $settings['sidebar'], 1, 10, 'sidebar'), 'category_in_breadcrumb' => $this->formsHelper->yesNoCheckboxGenerator('category_in_breadcrumb', $settings['category_in_breadcrumb']), 'form_token' => $this->formTokenHelper->renderFormToken()];
 }
Exemplo n.º 27
0
 /**
  * @param int $id
  *
  * @return array|\Symfony\Component\HttpFoundation\RedirectResponse
  * @throws \ACP3\Core\Controller\Exception\ResultNotExistsException
  */
 public function execute($id)
 {
     $article = $this->articlesModel->getOneById($id);
     if (empty($article) === false) {
         $this->title->setPageTitlePostfix($article['title']);
         if ($this->request->getPost()->count() !== 0) {
             return $this->executePost($this->request->getPost()->all(), $id);
         }
         return ['form' => array_merge($article, $this->request->getPost()->all()), 'form_token' => $this->formTokenHelper->renderFormToken(), 'SEO_URI_PATTERN' => Articles\Helpers::URL_KEY_PATTERN, 'SEO_ROUTE_NAME' => sprintf(Articles\Helpers::URL_KEY_PATTERN, $id)];
     }
     throw new Core\Controller\Exception\ResultNotExistsException();
 }
Exemplo n.º 28
0
 /**
  * @return array|\Symfony\Component\HttpFoundation\RedirectResponse
  */
 public function execute()
 {
     if ($this->request->getPost()->count() !== 0) {
         return $this->executePost($this->request->getPost()->all());
     }
     $settings = $this->config->getSettings(Comments\Installer\Schema::MODULE_NAME);
     // Emoticons erlauben
     if ($this->modules->isActive('emoticons') === true) {
         $this->view->assign('allow_emoticons', $this->formsHelper->yesNoCheckboxGenerator('emoticons', $settings['emoticons']));
     }
     return ['dateformat' => $this->get('core.helpers.date')->dateFormatDropdown($settings['dateformat']), 'form_token' => $this->formTokenHelper->renderFormToken()];
 }
Exemplo n.º 29
0
 /**
  * @param int $id
  *
  * @return array|\Symfony\Component\HttpFoundation\RedirectResponse
  * @throws \ACP3\Core\Controller\Exception\ResultNotExistsException
  */
 public function execute($id)
 {
     $seo = $this->seoModel->getOneById($id);
     if (empty($seo) === false) {
         $this->title->setPageTitlePostfix($seo['alias']);
         if ($this->request->getPost()->count() !== 0) {
             return $this->executePost($this->request->getPost()->all(), $seo['uri'], $id);
         }
         return ['SEO_FORM_FIELDS' => $this->metaFormFieldsHelper->formFields($seo['uri']), 'form' => array_merge(['uri' => $seo['uri']], $this->request->getPost()->all()), 'form_token' => $this->formTokenHelper->renderFormToken()];
     }
     throw new Core\Controller\Exception\ResultNotExistsException();
 }
Exemplo n.º 30
0
 /**
  * @param int $id
  *
  * @return array|\Symfony\Component\HttpFoundation\RedirectResponse
  * @throws \ACP3\Core\Controller\Exception\ResultNotExistsException
  */
 public function execute($id)
 {
     $role = $this->rolesModel->getOneById($id);
     if (!empty($role)) {
         $this->title->setPageTitlePostfix($role['name']);
         if ($this->request->getPost()->count() !== 0) {
             return $this->executePost($this->request->getPost()->all(), $id);
         }
         return ['parent' => $id != 1 ? $this->fetchRoles($role['parent_id'], $role['left_id'], $role['right_id']) : [], 'modules' => $this->fetchModulePermissions($id), 'form' => array_merge($role, $this->request->getPost()->all()), 'form_token' => $this->formTokenHelper->renderFormToken()];
     }
     throw new Core\Controller\Exception\ResultNotExistsException();
 }