示例#1
0
文件: BatchType.php 项目: php-lug/lug
 /**
  * {@inheritdoc}
  */
 public function configureOptions(OptionsResolver $resolver)
 {
     parent::configureOptions($resolver);
     $resolver->setDefault('trans_domain', 'grids')->setAllowedTypes('trans_domain', 'string');
 }
示例#2
0
 /**
  * @expectedException \Symfony\Component\OptionsResolver\Exception\InvalidOptionsException
  */
 public function testConfigureOptionsWithInvalidGrid()
 {
     $this->type->configureOptions($resolver = new OptionsResolver());
     $resolver->resolve(['batch' => $this->createBatchMock(), 'grid' => 'foo']);
 }