Permalink
Browse files

Removing calls to get/setAttribute()

  • Loading branch information...
1 parent 7467836 commit 261e5c07428584eb4255ab1eba9cfb5346c68bae @Taluu Taluu committed Jun 1, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 Form/Type/SecurityRolesType.php
@@ -38,8 +38,6 @@ public function __construct(Pool $pool)
public function buildForm(FormBuilderInterface $builder, array $options)
{
parent::buildForm($builder, $options);
-
- $builder->getForm()->getConfig()->setAttribute('read_only_choices', $options['read_only_choices']);
}
/**
@@ -57,7 +55,7 @@ public function buildView(FormViewInterface $view, FormInterface $form, array $o
$view->setVars(array(
'attr' => $attr,
- 'read_only_choices' => $form->getConfig()->getAttribute('read_only_choices')
+ 'read_only_choices' => $options['read_only_choices']
));
}

0 comments on commit 261e5c0

Please sign in to comment.