license() public method

License form
public license ( ) : void
return void
示例#1
0
 /**
  * Display license
  *
  * @return array
  */
 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'));
 }
示例#2
0
 /**
  * Test
  *
  * @return void
  */
 public function testLicense()
 {
     $this->assertNull($this->object->license());
 }