Exemplo n.º 1
0
 protected function createComponentProviderForm()
 {
     $_this = $this;
     $this->providerFormFactory->setProvider($this->provider);
     $form = $this->providerFormFactory->invoke();
     $form['cancel']->onClick[] = function () use($_this) {
         $_this->redirect('this', array('provider' => NULL));
     };
     $form->onSuccess[] = $this->providerFormSuccess;
     return $form;
 }