public function licenseAction()
{
$this->checkInstall(2);
$this->installForm->license();
if ($this->getRequest()->isPost()) {
$postData = $this->getRequest()->getPost()->toArray();
$this->installForm->setData($postData);
if ($this->installForm->isValid()) {
return $this->redirect()->toRoute('install/check-config');
}
}
$this->layout()->setVariables(array('currentRoute' => $this->getRouteMatch()->getMatchedRouteName()));
return array('form' => $this->installForm, 'license' => file_get_contents(GC_APPLICATION_PATH . '/LICENSE.txt'));
}