Пример #1
0
 /**
  * Sign-in form factory.
  *
  * @return \Nette\Application\UI\Form
  */
 protected function createComponentSignForm()
 {
     $signForm = $this->signFormFactory->create();
     $signForm->onSuccess[] = function () {
         $this->redirect('Dashboard:');
     };
     return $signForm;
 }
Пример #2
0
 /**
  * Sign in
  */
 protected function createComponentSignInForm(\App\AdminModule\Forms\ISignFormFactory $factory)
 {
     $form = $factory->create();
     return $form;
 }