Exemple #1
0
 /**
  * {@inheritdoc}
  */
 public function configureOptions(OptionsResolver $resolver)
 {
     parent::configureOptions($resolver);
     $resolver->setDefaults(['route_parameters' => [], 'route_reference_type' => UrlGeneratorInterface::ABSOLUTE_PATH])->setRequired('route')->setAllowedTypes('route', 'string')->setAllowedTypes('route_parameters', 'array')->setAllowedValues('route_reference_type', [UrlGeneratorInterface::ABSOLUTE_PATH, UrlGeneratorInterface::ABSOLUTE_URL, UrlGeneratorInterface::NETWORK_PATH, UrlGeneratorInterface::RELATIVE_PATH]);
 }
Exemple #2
0
 public function testParent()
 {
     $this->assertSame('action', $this->type->getParent());
 }