Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
jsifalda committed Feb 20, 2014
1 parent 88e03dd commit 12dd4eb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Flame/Forms/FormFactory.php
Expand Up @@ -90,11 +90,8 @@ public function createTemplateForm()
*/
private function initForm(Form &$form)
{
$form->setTranslator($this->translator);

if($this->renderer !== null) {
$form->setRenderer($this->renderer);
}
$form->setTranslator($this->translator)
->setRenderer($this->renderer);

foreach ($this->processors as $processor) {
$processor->attach($form);
Expand Down

0 comments on commit 12dd4eb

Please sign in to comment.