protected function generateForumlayout($activeRecord)
 {
     Message::addInfo("Generating Layout");
     $row = $activeRecord->row();
     $row['skipInternalHook'] = true;
     $url = Controller::generateFrontendUrl($row, null, null, false);
     $frontendRequest = new \Contao\Request();
     $frontendRequest->send(Environment::get('url') . '/' . $url);
 }
 public function generateForumlayout(DataContainer $dc)
 {
     // Return if there is no active record (override all)
     if (!$dc->activeRecord || $dc->activeRecord->type != 'phpbb_forum') {
         return;
     }
     $row = $dc->activeRecord->row();
     // If it's a new object with no values we can skip here
     if (empty($row['phpbb_path']) && empty($row['phpbb_alias'])) {
         return;
     }
     Message::addInfo("Generating Layout");
     $row['skipInternalHook'] = true;
     $url = Controller::generateFrontendUrl($row, null, null, false);
     $frontendRequest = new \Contao\Request();
     $frontendRequest->send(Environment::get('url') . '/' . $url);
 }
 /**
  * Regenerates the Forum Layout
  */
 public function generateForumLayoutFiles()
 {
     $url = $this->getBridgeConfig('forum_pageUrl');
     if ($url !== null) {
         $frontendRequest = new \Contao\Request();
         $frontendRequest->send($url);
     }
 }