Пример #1
0
 public function testConfigureOptionsWithContext()
 {
     $this->type->configureOptions($resolver = new OptionsResolver());
     $this->assertSame($options = ['path' => 'path_value', 'context' => ['context'], 'template' => 'template_name'], $resolver->resolve($options));
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 public function configureOptions(OptionsResolver $resolver)
 {
     parent::configureOptions($resolver);
     $resolver->setDefault('template', $this->template);
 }